2 # From configure.in Revision: 1.76 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20200111.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="gen/gen.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 runstatedir='${localstatedir}/run'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${datarootdir}/info'
184 mandir='${datarootdir}/man'
186 # Identity of this package.
196 # If the previous option needs an argument, assign it.
197 if test -n "$ac_prev"; then
198 eval "$ac_prev=\$ac_option"
203 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
205 # Accept the important Cygnus configure options, so we can diagnose typos.
209 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 -build | --build | --buil | --bui | --bu)
215 ac_prev=build_alias ;;
216 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
217 build_alias=$ac_optarg ;;
219 -cache-file | --cache-file | --cache-fil | --cache-fi \
220 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
221 ac_prev=cache_file ;;
222 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
223 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
224 cache_file=$ac_optarg ;;
227 cache_file=config.cache ;;
229 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 datadir=$ac_optarg ;;
235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
236 | --dataroo | --dataro | --datar)
237 ac_prev=datarootdir ;;
238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
240 datarootdir=$ac_optarg ;;
242 -disable-* | --disable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 eval "enable_$ac_feature=no" ;;
251 -enable-* | --enable-*)
252 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
253 # Reject names that are not valid shell variable names.
254 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
255 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
256 { (exit 1); exit 1; }; }
257 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
259 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 eval "enable_$ac_feature='$ac_optarg'" ;;
264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
266 | --exec | --exe | --ex)
267 ac_prev=exec_prefix ;;
268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
270 | --exec=* | --exe=* | --ex=*)
271 exec_prefix=$ac_optarg ;;
273 -gas | --gas | --ga | --g)
274 # Obsolete; use --with-gas.
277 -help | --help | --hel | --he | -h)
279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
280 ac_init_help=recursive ;;
281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
282 ac_init_help=short ;;
284 -host | --host | --hos | --ho)
285 ac_prev=host_alias ;;
286 -host=* | --host=* | --hos=* | --ho=*)
287 host_alias=$ac_optarg ;;
289 -includedir | --includedir | --includedi | --included | --include \
290 | --includ | --inclu | --incl | --inc)
291 ac_prev=includedir ;;
292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
293 | --includ=* | --inclu=* | --incl=* | --inc=*)
294 includedir=$ac_optarg ;;
296 -infodir | --infodir | --infodi | --infod | --info | --inf)
298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
299 infodir=$ac_optarg ;;
301 -libdir | --libdir | --libdi | --libd)
303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
307 | --libexe | --libex | --libe)
308 ac_prev=libexecdir ;;
309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
310 | --libexe=* | --libex=* | --libe=*)
311 libexecdir=$ac_optarg ;;
313 -localstatedir | --localstatedir | --localstatedi | --localstated \
314 | --localstate | --localstat | --localsta | --localst \
315 | --locals | --local | --loca | --loc | --lo)
316 ac_prev=localstatedir ;;
317 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
318 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
319 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
320 localstatedir=$ac_optarg ;;
322 -runstatedir | --runstatedir | --runstatedi | --runstated \
323 | --runstate | --runstat | --runsta | --runst \
324 | --runs | --run | --ru)
325 ac_prev=runstatedir ;;
326 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
327 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
328 | --runs=* | --run=* | --ru=*)
329 runstatedir=$ac_optarg ;;
331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 # Obsolete; use --without-fp.
340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
350 | --oldin | --oldi | --old | --ol | --o)
351 ac_prev=oldincludedir ;;
352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
355 oldincludedir=$ac_optarg ;;
357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
363 | --program-pre | --program-pr | --program-p)
364 ac_prev=program_prefix ;;
365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
367 program_prefix=$ac_optarg ;;
369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
370 | --program-suf | --program-su | --program-s)
371 ac_prev=program_suffix ;;
372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
374 program_suffix=$ac_optarg ;;
376 -program-transform-name | --program-transform-name \
377 | --program-transform-nam | --program-transform-na \
378 | --program-transform-n | --program-transform- \
379 | --program-transform | --program-transfor \
380 | --program-transfo | --program-transf \
381 | --program-trans | --program-tran \
382 | --progr-tra | --program-tr | --program-t)
383 ac_prev=program_transform_name ;;
384 -program-transform-name=* | --program-transform-name=* \
385 | --program-transform-nam=* | --program-transform-na=* \
386 | --program-transform-n=* | --program-transform-=* \
387 | --program-transform=* | --program-transfor=* \
388 | --program-transfo=* | --program-transf=* \
389 | --program-trans=* | --program-tran=* \
390 | --progr-tra=* | --program-tr=* | --program-t=*)
391 program_transform_name=$ac_optarg ;;
393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
394 | -silent | --silent | --silen | --sile | --sil)
397 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
399 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
401 sbindir=$ac_optarg ;;
403 -sharedstatedir | --sharedstatedir | --sharedstatedi \
404 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
405 | --sharedst | --shareds | --shared | --share | --shar \
407 ac_prev=sharedstatedir ;;
408 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
409 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
410 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
412 sharedstatedir=$ac_optarg ;;
414 -site | --site | --sit)
416 -site=* | --site=* | --sit=*)
419 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
421 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
425 | --syscon | --sysco | --sysc | --sys | --sy)
426 ac_prev=sysconfdir ;;
427 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
428 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
429 sysconfdir=$ac_optarg ;;
431 -target | --target | --targe | --targ | --tar | --ta | --t)
432 ac_prev=target_alias ;;
433 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
434 target_alias=$ac_optarg ;;
436 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 -version | --version | --versio | --versi | --vers | -V)
443 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit 1; }; }
448 ac_package=`echo $ac_package| sed 's/-/_/g'`
450 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 eval "with_$ac_package='$ac_optarg'" ;;
455 -without-* | --without-*)
456 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
457 # Reject names that are not valid shell variable names.
458 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
459 { echo "$as_me: error: invalid package name: $ac_package" >&2
460 { (exit 1); exit 1; }; }
461 ac_package=`echo $ac_package | sed 's/-/_/g'`
462 eval "with_$ac_package=no" ;;
465 # Obsolete; use --with-x.
468 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
469 | --x-incl | --x-inc | --x-in | --x-i)
470 ac_prev=x_includes ;;
471 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
472 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
473 x_includes=$ac_optarg ;;
475 -x-libraries | --x-libraries | --x-librarie | --x-librari \
476 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
477 ac_prev=x_libraries ;;
478 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
479 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
480 x_libraries=$ac_optarg ;;
482 -*) { echo "$as_me: error: unrecognized option: $ac_option
483 Try \`$0 --help' for more information." >&2
484 { (exit 1); exit 1; }; }
488 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
489 # Reject names that are not valid shell variable names.
490 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
491 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
492 { (exit 1); exit 1; }; }
493 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
494 eval "$ac_envvar='$ac_optarg'"
498 # FIXME: should be removed in autoconf 3.0.
499 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
500 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
501 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
502 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
508 if test -n "$ac_prev"; then
509 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
510 { echo "$as_me: error: missing argument to $ac_option" >&2
511 { (exit 1); exit 1; }; }
514 # Be sure to have absolute paths.
515 for ac_var in exec_prefix prefix
517 eval ac_val=$`echo $ac_var`
519 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
520 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
521 { (exit 1); exit 1; }; };;
525 # Be sure to have absolute paths.
526 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
527 localstatedir libdir includedir oldincludedir infodir mandir
529 eval ac_val=$`echo $ac_var`
531 [\\/$]* | ?:[\\/]* ) ;;
532 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
533 { (exit 1); exit 1; }; };;
537 # There might be people who depend on the old broken behavior: `$host'
538 # used to hold the argument of --host etc.
543 # FIXME: should be removed in autoconf 3.0.
544 if test "x$host_alias" != x; then
545 if test "x$build_alias" = x; then
546 cross_compiling=maybe
547 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
548 If a cross compiler is detected then cross compile mode will be used." >&2
549 elif test "x$build_alias" != "x$host_alias"; then
555 test -n "$host_alias" && ac_tool_prefix=$host_alias-
557 test "$silent" = yes && exec 6>/dev/null
559 # Find the source files, if location was not specified.
560 if test -z "$srcdir"; then
561 ac_srcdir_defaulted=yes
562 # Try the directory containing this script, then its parent.
564 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
565 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
567 if test ! -r $srcdir/$ac_unique_file; then
571 ac_srcdir_defaulted=no
573 if test ! -r $srcdir/$ac_unique_file; then
574 if test "$ac_srcdir_defaulted" = yes; then
575 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
576 { (exit 1); exit 1; }; }
578 { echo "$as_me: error: cannot find sources in $srcdir" >&2
579 { (exit 1); exit 1; }; }
582 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
583 ac_env_build_alias_set=${build_alias+set}
584 ac_env_build_alias_value=$build_alias
585 ac_cv_env_build_alias_set=${build_alias+set}
586 ac_cv_env_build_alias_value=$build_alias
587 ac_env_host_alias_set=${host_alias+set}
588 ac_env_host_alias_value=$host_alias
589 ac_cv_env_host_alias_set=${host_alias+set}
590 ac_cv_env_host_alias_value=$host_alias
591 ac_env_target_alias_set=${target_alias+set}
592 ac_env_target_alias_value=$target_alias
593 ac_cv_env_target_alias_set=${target_alias+set}
594 ac_cv_env_target_alias_value=$target_alias
595 ac_env_CC_set=${CC+set}
597 ac_cv_env_CC_set=${CC+set}
598 ac_cv_env_CC_value=$CC
599 ac_env_CFLAGS_set=${CFLAGS+set}
600 ac_env_CFLAGS_value=$CFLAGS
601 ac_cv_env_CFLAGS_set=${CFLAGS+set}
602 ac_cv_env_CFLAGS_value=$CFLAGS
603 ac_env_LDFLAGS_set=${LDFLAGS+set}
604 ac_env_LDFLAGS_value=$LDFLAGS
605 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_cv_env_LDFLAGS_value=$LDFLAGS
607 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
608 ac_env_CPPFLAGS_value=$CPPFLAGS
609 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
611 ac_env_CPP_set=${CPP+set}
612 ac_env_CPP_value=$CPP
613 ac_cv_env_CPP_set=${CPP+set}
614 ac_cv_env_CPP_value=$CPP
617 # Report the --help message.
619 if test "$ac_init_help" = "long"; then
620 # Omit some internal or obsolete options to make the list less imposing.
621 # This message is too long to be a string in the A/UX 3.1 sh.
623 \`configure' configures this package to adapt to many kinds of systems.
625 Usage: $0 [OPTION]... [VAR=VALUE]...
627 To assign environment variables (e.g., CC, CFLAGS...), specify them as
628 VAR=VALUE. See below for descriptions of some of the useful variables.
630 Defaults for the options are specified in brackets.
633 -h, --help display this help and exit
634 --help=short display options specific to this package
635 --help=recursive display the short help of all the included packages
636 -V, --version display version information and exit
637 -q, --quiet, --silent do not print \`checking...' messages
638 --cache-file=FILE cache test results in FILE [disabled]
639 -C, --config-cache alias for \`--cache-file=config.cache'
640 -n, --no-create do not create output files
641 --srcdir=DIR find the sources in DIR [configure dir or \`..']
646 Installation directories:
647 --prefix=PREFIX install architecture-independent files in PREFIX
649 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
652 By default, \`make install' will install all the files in
653 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
654 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
655 for instance \`--prefix=\$HOME'.
657 For better control, use the options below.
659 Fine tuning of the installation directories:
660 --bindir=DIR user executables [EPREFIX/bin]
661 --sbindir=DIR system admin executables [EPREFIX/sbin]
662 --libexecdir=DIR program executables [EPREFIX/libexec]
663 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
665 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
666 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
667 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
668 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
669 --libdir=DIR object code libraries [EPREFIX/lib]
670 --includedir=DIR C header files [PREFIX/include]
671 --oldincludedir=DIR C header files for non-gcc [/usr/include]
672 --infodir=DIR info documentation [DATAROOTDIR/info]
673 --mandir=DIR man documentation [DATAROOTDIR/man]
679 --program-prefix=PREFIX prepend PREFIX to installed program names
680 --program-suffix=SUFFIX append SUFFIX to installed program names
681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
684 --build=BUILD configure for building on BUILD [guessed]
685 --host=HOST build programs to run on HOST [BUILD]
686 --target=TARGET configure for building compilers for TARGET [HOST]
690 if test -n "$ac_init_help"; then
695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
699 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
700 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-system-type=XXX test: override derived host system-type
704 --disable-stripping do not strip (debug info) installed executables
705 --with-pkg-config{=path} enable/disable use of pkg-config
706 --with-pkg-config-libdir=XXX use given directory for installing pc-files
707 --without-tests suppress build with test-programs
708 --enable-mixed-case tic should assume mixed-case filenames
709 --with-install-prefix prefixes actual install-location ($DESTDIR)
710 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
711 --with-build-cc=XXX the build C compiler ($BUILD_CC)
712 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
713 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
714 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
715 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
716 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
717 Options to Specify the Libraries Built/Used:
718 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
719 --with-curses-dir=DIR directory in which (n)curses is installed
720 --enable-widec compile with wide-char/UTF-8 code
721 --with-lib-prefix override library-prefix
722 --with-shlib-version=X Specify rel or abi version for shared libs
723 --enable-rpath-link link sample programs with rpath option
724 Fine-Tuning Your Configuration:
725 --enable-broken_linker compile with broken-linker support code
726 --disable-largefile omit support for large files
727 --with-rcs-ids compile-in RCS identifiers
729 --disable-ext-funcs disable function-extensions
730 --enable-const compile with extra/non-standard const
732 --without-develop disable development options
734 --with-pthread use POSIX thread library
735 --enable-weak-symbols enable weak-symbols for pthreads
736 --enable-reentrant compile with experimental reentrant code
737 --with-wrap-prefix=XXX override prefix used for public variables
738 Testing/development Options:
739 --disable-echo do not display "compiling" commands
740 --enable-warnings build: turn on GCC compiler warnings
741 --enable-assertions test: turn on generation of assertion code
742 --enable-expanded test: generate functions for certain macros
743 --disable-macros test: use functions rather than macros
744 --with-trace test: add trace() function to all models of ncurses
745 --disable-gnat-projects test: disable GNAT projects even if usable
746 Ada95 Binding Options:
747 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
748 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
749 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
750 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
751 --with-ada-libname=XXX override default Ada library-name
753 Some influential environment variables:
754 CC C compiler command
755 CFLAGS C compiler flags
756 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
757 nonstandard directory <lib dir>
758 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
759 headers in a nonstandard directory <include dir>
762 Use these variables to override the choices made by `configure' or to help
763 it to find libraries and programs with nonstandard names/locations.
768 if test "$ac_init_help" = "recursive"; then
769 # If there are subdirs, report their specific --help.
771 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
773 # A "../" for each directory in /$ac_subdir.
774 ac_dots=`echo $ac_subdir |
775 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
778 .) # No --srcdir option. We are building in place.
779 ac_sub_srcdir=$srcdir ;;
780 [\\/]* | ?:[\\/]* ) # Absolute path.
781 ac_sub_srcdir=$srcdir/$ac_subdir ;;
783 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
786 # Check for guested configure; otherwise get Cygnus style configure.
787 if test -f $ac_sub_srcdir/configure.gnu; then
789 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
790 elif test -f $ac_sub_srcdir/configure; then
792 $SHELL $ac_sub_srcdir/configure --help=recursive
793 elif test -f $ac_sub_srcdir/configure.ac ||
794 test -f $ac_sub_srcdir/configure.in; then
798 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
804 test -n "$ac_init_help" && exit 0
805 if $ac_init_version; then
808 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
809 Free Software Foundation, Inc.
810 This configure script is free software; the Free Software Foundation
811 gives unlimited permission to copy, distribute and modify it.
817 This file contains any messages produced by compilers while
818 running configure, to aid debugging if configure makes a mistake.
820 It was created by $as_me, which was
821 generated by GNU Autoconf 2.52.20200111. Invocation command line was
832 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
833 uname -m = `(uname -m) 2>/dev/null || echo unknown`
834 uname -r = `(uname -r) 2>/dev/null || echo unknown`
835 uname -s = `(uname -s) 2>/dev/null || echo unknown`
836 uname -v = `(uname -v) 2>/dev/null || echo unknown`
838 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
839 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
841 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
842 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
843 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
844 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
845 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
846 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
847 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
861 # Keep a trace of the command line.
862 # Strip out --no-create and --no-recursion so they do not pile up.
863 # Also quote any args containing shell meta-characters.
869 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
870 | --no-cr | --no-c) ;;
871 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
872 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
873 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
874 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
875 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
877 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
880 # Get rid of the leading space.
883 # When interrupted or exit'd, cleanup temporary files, and complete
884 # config.log. We remove comments because anyway the quotes in there
885 # would cause problems or look ugly.
887 # Save into config.log some information that might help in debugging.
889 echo "## ----------------- ##" >&5
890 echo "## Cache variables. ##" >&5
891 echo "## ----------------- ##" >&5
893 # The following way of writing the cache mishandles newlines in values,
896 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
899 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
904 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
908 sed "/^$/d" confdefs.h >conftest.log
909 if test -s conftest.log; then
911 echo "## ------------ ##" >&5
912 echo "## confdefs.h. ##" >&5
913 echo "## ------------ ##" >&5
918 test "$ac_signal" != 0 &&
919 echo "$as_me: caught signal $ac_signal" >&5
920 echo "$as_me: exit $exit_status" >&5
921 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
924 for ac_signal in 1 2 13 15; do
925 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
929 # confdefs.h avoids OS command line length limits that DEFS can exceed.
930 rm -rf conftest* confdefs.h
931 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
934 # Let the site file select an alternate cache file if it wants to.
935 # Prefer explicitly selected file to automatically selected ones.
936 if test -z "$CONFIG_SITE"; then
937 if test "x$prefix" != xNONE; then
938 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
940 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
943 for ac_site_file in $CONFIG_SITE; do
944 if test -r "$ac_site_file"; then
945 { echo "$as_me:945: loading site script $ac_site_file" >&5
946 echo "$as_me: loading site script $ac_site_file" >&6;}
947 cat "$ac_site_file" >&5
952 if test -r "$cache_file"; then
953 # Some versions of bash will fail to source /dev/null (special
954 # files actually), so we avoid doing that.
955 if test -f "$cache_file"; then
956 { echo "$as_me:956: loading cache $cache_file" >&5
957 echo "$as_me: loading cache $cache_file" >&6;}
959 [\\/]* | ?:[\\/]* ) . $cache_file;;
964 { echo "$as_me:964: creating cache $cache_file" >&5
965 echo "$as_me: creating cache $cache_file" >&6;}
969 # Check that the precious variables saved in the cache have kept the same
971 ac_cache_corrupted=false
972 for ac_var in `(set) 2>&1 |
973 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
975 eval ac_new_set=\$ac_env_${ac_var}_set
976 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
977 eval ac_new_val="\$ac_env_${ac_var}_value"
978 case $ac_old_set,$ac_new_set in
980 { echo "$as_me:980: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
981 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
982 ac_cache_corrupted=: ;;
984 { echo "$as_me:984: error: \`$ac_var' was not set in the previous run" >&5
985 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
986 ac_cache_corrupted=: ;;
989 if test "x$ac_old_val" != "x$ac_new_val"; then
990 { echo "$as_me:990: error: \`$ac_var' has changed since the previous run:" >&5
991 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
992 { echo "$as_me:992: former value: $ac_old_val" >&5
993 echo "$as_me: former value: $ac_old_val" >&2;}
994 { echo "$as_me:994: current value: $ac_new_val" >&5
995 echo "$as_me: current value: $ac_new_val" >&2;}
999 # Pass precious variables to config.status. It doesn't matter if
1000 # we pass some twice (in addition to the command line arguments).
1001 if test "$ac_new_set" = set; then
1003 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1005 ac_configure_args="$ac_configure_args '$ac_arg'"
1007 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1012 if $ac_cache_corrupted; then
1013 { echo "$as_me:1013: error: changes in the environment can compromise the build" >&5
1014 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1015 { { echo "$as_me:1015: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1016 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1017 { (exit 1); exit 1; }; }
1021 ac_cpp='$CPP $CPPFLAGS'
1022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1025 ac_main_return=return
1027 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1028 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1030 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1031 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1033 echo "#! $SHELL" >conftest.sh
1034 echo "exit 0" >>conftest.sh
1035 chmod +x conftest.sh
1036 if { (echo "$as_me:1036: PATH=\".;.\"; conftest.sh") >&5
1037 (PATH=".;."; conftest.sh) 2>&5
1039 echo "$as_me:1039: \$? = $ac_status" >&5
1040 (exit $ac_status); }; then
1041 ac_path_separator=';'
1045 PATH_SEPARATOR="$ac_path_separator"
1048 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1053 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1054 if test -f $ac_dir/install-sh; then
1056 ac_install_sh="$ac_aux_dir/install-sh -c"
1058 elif test -f $ac_dir/install.sh; then
1060 ac_install_sh="$ac_aux_dir/install.sh -c"
1062 elif test -f $ac_dir/shtool; then
1064 ac_install_sh="$ac_aux_dir/shtool install -c"
1068 if test -z "$ac_aux_dir"; then
1069 { { echo "$as_me:1069: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1070 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1071 { (exit 1); exit 1; }; }
1073 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1074 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1075 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1077 # Make sure we can run config.sub.
1078 $ac_config_sub sun4 >/dev/null 2>&1 ||
1079 { { echo "$as_me:1079: error: cannot run $ac_config_sub" >&5
1080 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1081 { (exit 1); exit 1; }; }
1083 echo "$as_me:1083: checking build system type" >&5
1084 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1085 if test "${ac_cv_build+set}" = set; then
1086 echo $ECHO_N "(cached) $ECHO_C" >&6
1088 ac_cv_build_alias=$build_alias
1089 test -z "$ac_cv_build_alias" &&
1090 ac_cv_build_alias=`$ac_config_guess`
1091 test -z "$ac_cv_build_alias" &&
1092 { { echo "$as_me:1092: error: cannot guess build type; you must specify one" >&5
1093 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1094 { (exit 1); exit 1; }; }
1095 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1096 { { echo "$as_me:1096: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1097 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1098 { (exit 1); exit 1; }; }
1101 echo "$as_me:1101: result: $ac_cv_build" >&5
1102 echo "${ECHO_T}$ac_cv_build" >&6
1104 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1105 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1106 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1108 echo "$as_me:1108: checking host system type" >&5
1109 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1110 if test "${ac_cv_host+set}" = set; then
1111 echo $ECHO_N "(cached) $ECHO_C" >&6
1113 ac_cv_host_alias=$host_alias
1114 test -z "$ac_cv_host_alias" &&
1115 ac_cv_host_alias=$ac_cv_build_alias
1116 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1117 { { echo "$as_me:1117: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1118 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1119 { (exit 1); exit 1; }; }
1122 echo "$as_me:1122: result: $ac_cv_host" >&5
1123 echo "${ECHO_T}$ac_cv_host" >&6
1125 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1126 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1127 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1129 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1130 echo "$as_me:1130: checking target system type" >&5
1131 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1132 if test "${ac_cv_target+set}" = set; then
1133 echo $ECHO_N "(cached) $ECHO_C" >&6
1135 ac_cv_target_alias=$target_alias
1136 test "x$ac_cv_target_alias" = "x" &&
1137 ac_cv_target_alias=$ac_cv_host_alias
1138 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1139 { { echo "$as_me:1139: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1140 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1141 { (exit 1); exit 1; }; }
1144 echo "$as_me:1144: result: $ac_cv_target" >&5
1145 echo "${ECHO_T}$ac_cv_target" >&6
1146 target=$ac_cv_target
1147 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1148 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1149 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1151 # The aliases save the names the user supplied, while $host etc.
1152 # will get canonicalized.
1153 test -n "$target_alias" &&
1154 test "$program_prefix$program_suffix$program_transform_name" = \
1156 program_prefix=${target_alias}-
1157 system_name="$host_os"
1159 system_name="`(uname -s -r) 2>/dev/null`"
1160 if test -z "$system_name" ; then
1161 system_name="`(hostname) 2>/dev/null`"
1164 test -n "$system_name" &&
1165 cat >>confdefs.h <<EOF
1166 #define SYSTEM_NAME "$system_name"
1169 if test "${cf_cv_system_name+set}" = set; then
1170 echo $ECHO_N "(cached) $ECHO_C" >&6
1172 cf_cv_system_name="$system_name"
1175 test -z "$system_name" && system_name="$cf_cv_system_name"
1176 test -n "$cf_cv_system_name" && echo "$as_me:1176: result: Configuring for $cf_cv_system_name" >&5
1177 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1179 if test ".$system_name" != ".$cf_cv_system_name" ; then
1180 echo "$as_me:1180: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1181 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1182 { { echo "$as_me:1182: error: \"Please remove config.cache and try again.\"" >&5
1183 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1184 { (exit 1); exit 1; }; }
1187 # Check whether --with-system-type or --without-system-type was given.
1188 if test "${with_system_type+set}" = set; then
1189 withval="$with_system_type"
1190 { echo "$as_me:1190: WARNING: overriding system type to $withval" >&5
1191 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1192 cf_cv_system_name=$withval
1197 ### Save the given $CFLAGS to allow user-override.
1198 cf_user_CFLAGS="$CFLAGS"
1200 ### Default install-location
1202 echo "$as_me:1202: checking for prefix" >&5
1203 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1204 if test "x$prefix" = "xNONE" ; then
1205 case "$cf_cv_system_name" in
1206 # non-vendor systems don't have a conflict
1207 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1210 (*) prefix=$ac_default_prefix
1214 echo "$as_me:1214: result: $prefix" >&5
1215 echo "${ECHO_T}$prefix" >&6
1217 if test "x$prefix" = "xNONE" ; then
1218 echo "$as_me:1218: checking for default include-directory" >&5
1219 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1220 test -n "$verbose" && echo 1>&6
1223 $includedir/ncurses \
1225 $prefix/include/ncurses \
1226 /usr/local/include \
1227 /usr/local/include/ncurses \
1229 /usr/include/ncurses
1231 cf_dir=`eval echo $cf_symbol`
1232 if test -f $cf_dir/curses.h ; then
1233 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1234 includedir="$cf_symbol"
1235 test -n "$verbose" && echo $ac_n " found " 1>&6
1239 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1241 echo "$as_me:1241: result: $includedir" >&5
1242 echo "${ECHO_T}$includedir" >&6
1245 ### Checks for programs.
1248 ac_cpp='$CPP $CPPFLAGS'
1249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1252 ac_main_return=return
1253 if test -n "$ac_tool_prefix"; then
1254 for ac_prog in gnatgcc gcc cc
1256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1258 echo "$as_me:1258: checking for $ac_word" >&5
1259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1260 if test "${ac_cv_prog_CC+set}" = set; then
1261 echo $ECHO_N "(cached) $ECHO_C" >&6
1263 if test -n "$CC"; then
1264 ac_cv_prog_CC="$CC" # Let the user override the test.
1266 ac_save_IFS=$IFS; IFS=$ac_path_separator
1268 for ac_dir in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir=.
1271 $as_executable_p "$ac_dir/$ac_word" || continue
1272 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1273 echo "$as_me:1273: found $ac_dir/$ac_word" >&5
1280 if test -n "$CC"; then
1281 echo "$as_me:1281: result: $CC" >&5
1282 echo "${ECHO_T}$CC" >&6
1284 echo "$as_me:1284: result: no" >&5
1285 echo "${ECHO_T}no" >&6
1288 test -n "$CC" && break
1291 if test -z "$CC"; then
1293 for ac_prog in gnatgcc gcc cc
1295 # Extract the first word of "$ac_prog", so it can be a program name with args.
1296 set dummy $ac_prog; ac_word=$2
1297 echo "$as_me:1297: checking for $ac_word" >&5
1298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1300 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 if test -n "$ac_ct_CC"; then
1303 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1305 ac_save_IFS=$IFS; IFS=$ac_path_separator
1307 for ac_dir in $ac_dummy; do
1309 test -z "$ac_dir" && ac_dir=.
1310 $as_executable_p "$ac_dir/$ac_word" || continue
1311 ac_cv_prog_ac_ct_CC="$ac_prog"
1312 echo "$as_me:1312: found $ac_dir/$ac_word" >&5
1318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1319 if test -n "$ac_ct_CC"; then
1320 echo "$as_me:1320: result: $ac_ct_CC" >&5
1321 echo "${ECHO_T}$ac_ct_CC" >&6
1323 echo "$as_me:1323: result: no" >&5
1324 echo "${ECHO_T}no" >&6
1327 test -n "$ac_ct_CC" && break
1333 test -z "$CC" && { { echo "$as_me:1333: error: no acceptable cc found in \$PATH" >&5
1334 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1335 { (exit 1); exit 1; }; }
1337 # Provide some information about the compiler.
1338 echo "$as_me:1338:" \
1339 "checking for C compiler version" >&5
1340 ac_compiler=`set X $ac_compile; echo $2`
1341 { (eval echo "$as_me:1341: \"$ac_compiler --version </dev/null >&5\"") >&5
1342 (eval $ac_compiler --version </dev/null >&5) 2>&5
1344 echo "$as_me:1344: \$? = $ac_status" >&5
1345 (exit $ac_status); }
1346 { (eval echo "$as_me:1346: \"$ac_compiler -v </dev/null >&5\"") >&5
1347 (eval $ac_compiler -v </dev/null >&5) 2>&5
1349 echo "$as_me:1349: \$? = $ac_status" >&5
1350 (exit $ac_status); }
1351 { (eval echo "$as_me:1351: \"$ac_compiler -V </dev/null >&5\"") >&5
1352 (eval $ac_compiler -V </dev/null >&5) 2>&5
1354 echo "$as_me:1354: \$? = $ac_status" >&5
1355 (exit $ac_status); }
1357 cat >conftest.$ac_ext <<_ACEOF
1358 #line 1358 "configure"
1359 #include "confdefs.h"
1369 ac_clean_files_save=$ac_clean_files
1370 ac_clean_files="$ac_clean_files a.out a.exe"
1371 # Try to create an executable without -o first, disregard a.out.
1372 # It will help us diagnose broken compilers, and finding out an intuition
1374 echo "$as_me:1374: checking for C compiler default output" >&5
1375 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1376 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1377 if { (eval echo "$as_me:1377: \"$ac_link_default\"") >&5
1378 (eval $ac_link_default) 2>&5
1380 echo "$as_me:1380: \$? = $ac_status" >&5
1381 (exit $ac_status); }; then
1382 # Find the output, starting from the most likely. This scheme is
1383 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1385 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1386 ls a.out conftest 2>/dev/null;
1387 ls a.* conftest.* 2>/dev/null`; do
1389 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1390 a.out ) # We found the default executable, but exeext='' is most
1393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1394 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1401 echo "$as_me: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403 { { echo "$as_me:1403: error: C compiler cannot create executables" >&5
1404 echo "$as_me: error: C compiler cannot create executables" >&2;}
1405 { (exit 77); exit 77; }; }
1408 ac_exeext=$ac_cv_exeext
1409 echo "$as_me:1409: result: $ac_file" >&5
1410 echo "${ECHO_T}$ac_file" >&6
1412 # Check the compiler produces executables we can run. If not, either
1413 # the compiler is broken, or we cross compile.
1414 echo "$as_me:1414: checking whether the C compiler works" >&5
1415 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1416 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1417 # If not cross compiling, check that we can run a simple program.
1418 if test "$cross_compiling" != yes; then
1419 if { ac_try='./$ac_file'
1420 { (eval echo "$as_me:1420: \"$ac_try\"") >&5
1423 echo "$as_me:1423: \$? = $ac_status" >&5
1424 (exit $ac_status); }; }; then
1427 if test "$cross_compiling" = maybe; then
1430 { { echo "$as_me:1430: error: cannot run C compiled programs.
1431 If you meant to cross compile, use \`--host'." >&5
1432 echo "$as_me: error: cannot run C compiled programs.
1433 If you meant to cross compile, use \`--host'." >&2;}
1434 { (exit 1); exit 1; }; }
1438 echo "$as_me:1438: result: yes" >&5
1439 echo "${ECHO_T}yes" >&6
1441 rm -f a.out a.exe conftest$ac_cv_exeext
1442 ac_clean_files=$ac_clean_files_save
1443 # Check the compiler produces executables we can run. If not, either
1444 # the compiler is broken, or we cross compile.
1445 echo "$as_me:1445: checking whether we are cross compiling" >&5
1446 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1447 echo "$as_me:1447: result: $cross_compiling" >&5
1448 echo "${ECHO_T}$cross_compiling" >&6
1450 echo "$as_me:1450: checking for executable suffix" >&5
1451 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1452 if { (eval echo "$as_me:1452: \"$ac_link\"") >&5
1453 (eval $ac_link) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }; then
1457 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1458 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1459 # work properly (i.e., refer to `conftest.exe'), while it won't with
1461 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1463 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1464 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1471 { { echo "$as_me:1471: error: cannot compute EXEEXT: cannot compile and link" >&5
1472 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1473 { (exit 1); exit 1; }; }
1476 rm -f conftest$ac_cv_exeext
1477 echo "$as_me:1477: result: $ac_cv_exeext" >&5
1478 echo "${ECHO_T}$ac_cv_exeext" >&6
1480 rm -f conftest.$ac_ext
1481 EXEEXT=$ac_cv_exeext
1483 echo "$as_me:1483: checking for object suffix" >&5
1484 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1485 if test "${ac_cv_objext+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 cat >conftest.$ac_ext <<_ACEOF
1489 #line 1489 "configure"
1490 #include "confdefs.h"
1500 rm -f conftest.o conftest.obj
1501 if { (eval echo "$as_me:1501: \"$ac_compile\"") >&5
1502 (eval $ac_compile) 2>&5
1504 echo "$as_me:1504: \$? = $ac_status" >&5
1505 (exit $ac_status); }; then
1506 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1508 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1514 echo "$as_me: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 { { echo "$as_me:1516: error: cannot compute OBJEXT: cannot compile" >&5
1517 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1518 { (exit 1); exit 1; }; }
1521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1523 echo "$as_me:1523: result: $ac_cv_objext" >&5
1524 echo "${ECHO_T}$ac_cv_objext" >&6
1525 OBJEXT=$ac_cv_objext
1527 echo "$as_me:1527: checking whether we are using the GNU C compiler" >&5
1528 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 cat >conftest.$ac_ext <<_ACEOF
1533 #line 1533 "configure"
1534 #include "confdefs.h"
1547 rm -f conftest.$ac_objext
1548 if { (eval echo "$as_me:1548: \"$ac_compile\"") >&5
1549 (eval $ac_compile) 2>&5
1551 echo "$as_me:1551: \$? = $ac_status" >&5
1552 (exit $ac_status); } &&
1553 { ac_try='test -s conftest.$ac_objext'
1554 { (eval echo "$as_me:1554: \"$ac_try\"") >&5
1557 echo "$as_me:1557: \$? = $ac_status" >&5
1558 (exit $ac_status); }; }; then
1561 echo "$as_me: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1565 rm -f conftest.$ac_objext conftest.$ac_ext
1566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1569 echo "$as_me:1569: result: $ac_cv_c_compiler_gnu" >&5
1570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1571 GCC=`test $ac_compiler_gnu = yes && echo yes`
1572 ac_test_CFLAGS=${CFLAGS+set}
1573 ac_save_CFLAGS=$CFLAGS
1575 echo "$as_me:1575: checking whether $CC accepts -g" >&5
1576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1577 if test "${ac_cv_prog_cc_g+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 cat >conftest.$ac_ext <<_ACEOF
1581 #line 1581 "configure"
1582 #include "confdefs.h"
1592 rm -f conftest.$ac_objext
1593 if { (eval echo "$as_me:1593: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
1596 echo "$as_me:1596: \$? = $ac_status" >&5
1597 (exit $ac_status); } &&
1598 { ac_try='test -s conftest.$ac_objext'
1599 { (eval echo "$as_me:1599: \"$ac_try\"") >&5
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; }; then
1606 echo "$as_me: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1610 rm -f conftest.$ac_objext conftest.$ac_ext
1612 echo "$as_me:1612: result: $ac_cv_prog_cc_g" >&5
1613 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1614 if test "$ac_test_CFLAGS" = set; then
1615 CFLAGS=$ac_save_CFLAGS
1616 elif test $ac_cv_prog_cc_g = yes; then
1617 if test "$GCC" = yes; then
1623 if test "$GCC" = yes; then
1629 # Some people use a C++ compiler to compile C. Since we use `exit',
1630 # in C++ we need to declare it. In case someone uses the same compiler
1631 # for both compiling C and C++ we need to have the C++ compiler decide
1632 # the declaration of exit, since it's the most demanding environment.
1633 cat >conftest.$ac_ext <<_ACEOF
1638 rm -f conftest.$ac_objext
1639 if { (eval echo "$as_me:1639: \"$ac_compile\"") >&5
1640 (eval $ac_compile) 2>&5
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); } &&
1644 { ac_try='test -s conftest.$ac_objext'
1645 { (eval echo "$as_me:1645: \"$ac_try\"") >&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); }; }; then
1650 for ac_declaration in \
1652 '#include <stdlib.h>' \
1653 'extern "C" void std::exit (int) throw (); using std::exit;' \
1654 'extern "C" void std::exit (int); using std::exit;' \
1655 'extern "C" void exit (int) throw ();' \
1656 'extern "C" void exit (int);' \
1659 cat >conftest.$ac_ext <<_ACEOF
1660 #line 1660 "configure"
1661 #include "confdefs.h"
1672 rm -f conftest.$ac_objext
1673 if { (eval echo "$as_me:1673: \"$ac_compile\"") >&5
1674 (eval $ac_compile) 2>&5
1676 echo "$as_me:1676: \$? = $ac_status" >&5
1677 (exit $ac_status); } &&
1678 { ac_try='test -s conftest.$ac_objext'
1679 { (eval echo "$as_me:1679: \"$ac_try\"") >&5
1682 echo "$as_me:1682: \$? = $ac_status" >&5
1683 (exit $ac_status); }; }; then
1686 echo "$as_me: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1690 rm -f conftest.$ac_objext conftest.$ac_ext
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
1720 rm -f conftest.$ac_objext conftest.$ac_ext
1723 if test -n "$ac_declaration"; then
1724 echo '#ifdef __cplusplus' >>confdefs.h
1725 echo $ac_declaration >>confdefs.h
1726 echo '#endif' >>confdefs.h
1730 echo "$as_me: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1733 rm -f conftest.$ac_objext conftest.$ac_ext
1735 ac_cpp='$CPP $CPPFLAGS'
1736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1739 ac_main_return=return
1742 if test "$GCC" = yes ; then
1743 echo "$as_me:1743: checking version of $CC" >&5
1744 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1745 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.].*//'`"
1746 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1747 echo "$as_me:1747: result: $GCC_VERSION" >&5
1748 echo "${ECHO_T}$GCC_VERSION" >&6
1753 if test "$GCC" = yes ; then
1756 echo "$as_me:1756: checking if this is really Intel C compiler" >&5
1757 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1758 cf_save_CFLAGS="$CFLAGS"
1759 CFLAGS="$CFLAGS -no-gcc"
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line 1761 "configure"
1762 #include "confdefs.h"
1768 #ifdef __INTEL_COMPILER
1777 rm -f conftest.$ac_objext
1778 if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
1779 (eval $ac_compile) 2>&5
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); } &&
1783 { ac_try='test -s conftest.$ac_objext'
1784 { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1790 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1793 echo "$as_me: failed program was:" >&5
1794 cat conftest.$ac_ext >&5
1796 rm -f conftest.$ac_objext conftest.$ac_ext
1797 CFLAGS="$cf_save_CFLAGS"
1798 echo "$as_me:1798: result: $INTEL_COMPILER" >&5
1799 echo "${ECHO_T}$INTEL_COMPILER" >&6
1806 if test "$GCC" = yes ; then
1807 echo "$as_me:1807: checking if this is really Clang C compiler" >&5
1808 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1809 cf_save_CFLAGS="$CFLAGS"
1810 CFLAGS="$CFLAGS -Qunused-arguments"
1811 cat >conftest.$ac_ext <<_ACEOF
1812 #line 1812 "configure"
1813 #include "confdefs.h"
1828 rm -f conftest.$ac_objext
1829 if { (eval echo "$as_me:1829: \"$ac_compile\"") >&5
1830 (eval $ac_compile) 2>&5
1832 echo "$as_me:1832: \$? = $ac_status" >&5
1833 (exit $ac_status); } &&
1834 { ac_try='test -s conftest.$ac_objext'
1835 { (eval echo "$as_me:1835: \"$ac_try\"") >&5
1838 echo "$as_me:1838: \$? = $ac_status" >&5
1839 (exit $ac_status); }; }; then
1841 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
1844 echo "$as_me: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1847 rm -f conftest.$ac_objext conftest.$ac_ext
1848 CFLAGS="$cf_save_CFLAGS"
1849 echo "$as_me:1849: result: $CLANG_COMPILER" >&5
1850 echo "${ECHO_T}$CLANG_COMPILER" >&6
1853 echo "$as_me:1853: checking for $CC option to accept ANSI C" >&5
1854 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1855 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 ac_cv_prog_cc_stdc=no
1860 cat >conftest.$ac_ext <<_ACEOF
1861 #line 1861 "configure"
1862 #include "confdefs.h"
1865 #include <sys/types.h>
1866 #include <sys/stat.h>
1867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1868 struct buf { int x; };
1869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1870 static char *e (p, i)
1876 static char *f (char * (*g) (char **, int), char **p, ...)
1881 s = g (p, va_arg (v,int));
1885 int test (int i, double x);
1886 struct s1 {int (*f) (int a);};
1887 struct s2 {int (*f) (double a);};
1888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1899 # Don't try gcc -ansi; that turns off useful extensions and
1900 # breaks some systems' header files.
1901 # AIX -qlanglvl=ansi
1902 # Ultrix and OSF/1 -std1
1903 # HP-UX 10.20 and later -Ae
1904 # HP-UX older versions -Aa -D_HPUX_SOURCE
1905 # SVR4 -Xc -D__EXTENSIONS__
1906 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1908 CC="$ac_save_CC $ac_arg"
1909 rm -f conftest.$ac_objext
1910 if { (eval echo "$as_me:1910: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>&5
1913 echo "$as_me:1913: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try='test -s conftest.$ac_objext'
1916 { (eval echo "$as_me:1916: \"$ac_try\"") >&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); }; }; then
1921 ac_cv_prog_cc_stdc=$ac_arg
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1927 rm -f conftest.$ac_objext
1929 rm -f conftest.$ac_ext conftest.$ac_objext
1934 case "x$ac_cv_prog_cc_stdc" in
1936 echo "$as_me:1936: result: none needed" >&5
1937 echo "${ECHO_T}none needed" >&6 ;;
1939 echo "$as_me:1939: result: $ac_cv_prog_cc_stdc" >&5
1940 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1941 CC="$CC $ac_cv_prog_cc_stdc" ;;
1944 # This should have been defined by AC_PROG_CC
1947 echo "$as_me:1947: checking \$CFLAGS variable" >&5
1948 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
1951 echo "$as_me:1951: result: broken" >&5
1952 echo "${ECHO_T}broken" >&6
1953 { echo "$as_me:1953: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
1954 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
1957 for cf_arg in $cf_flags
1963 cf_new_extra_cppflags=
1965 for cf_add_cflags in $cf_arg
1967 case $cf_fix_cppflags in
1969 case $cf_add_cflags in
1970 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1971 case $cf_add_cflags in
1973 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1975 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1976 && test -z "${cf_tst_cflags}" \
1977 && cf_fix_cppflags=yes
1979 if test $cf_fix_cppflags = yes ; then
1981 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1982 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1985 elif test "${cf_tst_cflags}" = "\"'" ; then
1987 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1988 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1998 case $cf_add_cflags in
2000 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2002 CPPFLAGS=`echo "$CPPFLAGS" | \
2003 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2004 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2009 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2010 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2017 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2018 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2025 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2026 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2028 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2030 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2031 && test -z "${cf_tst_cflags}" \
2032 && cf_fix_cppflags=no
2037 if test -n "$cf_new_cflags" ; then
2039 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2040 CFLAGS="${CFLAGS}$cf_new_cflags"
2044 if test -n "$cf_new_cppflags" ; then
2046 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2047 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2051 if test -n "$cf_new_extra_cppflags" ; then
2053 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2054 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2061 echo "$as_me:2061: result: ok" >&5
2062 echo "${ECHO_T}ok" >&6
2066 echo "$as_me:2066: checking \$CC variable" >&5
2067 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2070 echo "$as_me:2070: result: broken" >&5
2071 echo "${ECHO_T}broken" >&6
2072 { echo "$as_me:2072: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2073 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2075 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2076 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2078 for cf_arg in $cf_flags
2086 cf_new_extra_cppflags=
2088 for cf_add_cflags in $cf_arg
2090 case $cf_fix_cppflags in
2092 case $cf_add_cflags in
2093 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2094 case $cf_add_cflags in
2096 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2098 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2099 && test -z "${cf_tst_cflags}" \
2100 && cf_fix_cppflags=yes
2102 if test $cf_fix_cppflags = yes ; then
2104 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2105 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2108 elif test "${cf_tst_cflags}" = "\"'" ; then
2110 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2111 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2121 case $cf_add_cflags in
2123 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2125 CPPFLAGS=`echo "$CPPFLAGS" | \
2126 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2127 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2132 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2133 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2140 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2141 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2148 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2149 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2151 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2153 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2154 && test -z "${cf_tst_cflags}" \
2155 && cf_fix_cppflags=no
2160 if test -n "$cf_new_cflags" ; then
2162 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2163 CFLAGS="${CFLAGS}$cf_new_cflags"
2167 if test -n "$cf_new_cppflags" ; then
2169 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2170 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2174 if test -n "$cf_new_extra_cppflags" ; then
2176 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2177 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2187 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2189 echo "${as_me:-configure}:2189: testing resulting CC: '$CC' ..." 1>&5
2191 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2193 echo "${as_me:-configure}:2193: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2195 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2197 echo "${as_me:-configure}:2197: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2201 echo "$as_me:2201: result: ok" >&5
2202 echo "${ECHO_T}ok" >&6
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 ac_main_return=return
2212 echo "$as_me:2212: checking how to run the C preprocessor" >&5
2213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2214 # On Suns, sometimes $CPP names a directory.
2215 if test -n "$CPP" && test -d "$CPP"; then
2218 if test -z "$CPP"; then
2219 if test "${ac_cv_prog_CPP+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 # Double quotes because CPP needs to be expanded
2223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2226 for ac_c_preproc_warn_flag in '' yes
2228 # Use a header file that comes with gcc, so configuring glibc
2229 # with a fresh cross-compiler works.
2230 # On the NeXT, cc -E runs the code through the compiler's parser,
2231 # not just through cpp. "Syntax error" is here to catch this case.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #line 2233 "configure"
2234 #include "confdefs.h"
2238 if { (eval echo "$as_me:2238: \"$ac_cpp conftest.$ac_ext\"") >&5
2239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2241 egrep -v '^ *\+' conftest.er1 >conftest.err
2243 cat conftest.err >&5
2244 echo "$as_me:2244: \$? = $ac_status" >&5
2245 (exit $ac_status); } >/dev/null; then
2246 if test -s conftest.err; then
2247 ac_cpp_err=$ac_c_preproc_warn_flag
2254 if test -z "$ac_cpp_err"; then
2257 echo "$as_me: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 # Broken: fails on valid input.
2262 rm -f conftest.err conftest.$ac_ext
2264 # OK, works on sane cases. Now check whether non-existent headers
2265 # can be detected and how.
2266 cat >conftest.$ac_ext <<_ACEOF
2267 #line 2267 "configure"
2268 #include "confdefs.h"
2269 #include <ac_nonexistent.h>
2271 if { (eval echo "$as_me:2271: \"$ac_cpp conftest.$ac_ext\"") >&5
2272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2274 egrep -v '^ *\+' conftest.er1 >conftest.err
2276 cat conftest.err >&5
2277 echo "$as_me:2277: \$? = $ac_status" >&5
2278 (exit $ac_status); } >/dev/null; then
2279 if test -s conftest.err; then
2280 ac_cpp_err=$ac_c_preproc_warn_flag
2287 if test -z "$ac_cpp_err"; then
2288 # Broken: success on invalid input.
2291 echo "$as_me: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 # Passes both tests.
2297 rm -f conftest.err conftest.$ac_ext
2300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2301 rm -f conftest.err conftest.$ac_ext
2302 if $ac_preproc_ok; then
2314 echo "$as_me:2314: result: $CPP" >&5
2315 echo "${ECHO_T}$CPP" >&6
2317 for ac_c_preproc_warn_flag in '' yes
2319 # Use a header file that comes with gcc, so configuring glibc
2320 # with a fresh cross-compiler works.
2321 # On the NeXT, cc -E runs the code through the compiler's parser,
2322 # not just through cpp. "Syntax error" is here to catch this case.
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line 2324 "configure"
2325 #include "confdefs.h"
2329 if { (eval echo "$as_me:2329: \"$ac_cpp conftest.$ac_ext\"") >&5
2330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2332 egrep -v '^ *\+' conftest.er1 >conftest.err
2334 cat conftest.err >&5
2335 echo "$as_me:2335: \$? = $ac_status" >&5
2336 (exit $ac_status); } >/dev/null; then
2337 if test -s conftest.err; then
2338 ac_cpp_err=$ac_c_preproc_warn_flag
2345 if test -z "$ac_cpp_err"; then
2348 echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 # Broken: fails on valid input.
2353 rm -f conftest.err conftest.$ac_ext
2355 # OK, works on sane cases. Now check whether non-existent headers
2356 # can be detected and how.
2357 cat >conftest.$ac_ext <<_ACEOF
2358 #line 2358 "configure"
2359 #include "confdefs.h"
2360 #include <ac_nonexistent.h>
2362 if { (eval echo "$as_me:2362: \"$ac_cpp conftest.$ac_ext\"") >&5
2363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2365 egrep -v '^ *\+' conftest.er1 >conftest.err
2367 cat conftest.err >&5
2368 echo "$as_me:2368: \$? = $ac_status" >&5
2369 (exit $ac_status); } >/dev/null; then
2370 if test -s conftest.err; then
2371 ac_cpp_err=$ac_c_preproc_warn_flag
2378 if test -z "$ac_cpp_err"; then
2379 # Broken: success on invalid input.
2382 echo "$as_me: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2384 # Passes both tests.
2388 rm -f conftest.err conftest.$ac_ext
2391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2392 rm -f conftest.err conftest.$ac_ext
2393 if $ac_preproc_ok; then
2396 { { echo "$as_me:2396: error: C preprocessor \"$CPP\" fails sanity check" >&5
2397 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2398 { (exit 1); exit 1; }; }
2402 ac_cpp='$CPP $CPPFLAGS'
2403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2406 ac_main_return=return
2408 if test $ac_cv_c_compiler_gnu = yes; then
2409 echo "$as_me:2409: checking whether $CC needs -traditional" >&5
2410 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2411 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 ac_pattern="Autoconf.*'x'"
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #line 2416 "configure"
2417 #include "confdefs.h"
2419 int Autoconf = TIOCGETP;
2421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2422 egrep "$ac_pattern" >/dev/null 2>&1; then
2423 ac_cv_prog_gcc_traditional=yes
2425 ac_cv_prog_gcc_traditional=no
2429 if test $ac_cv_prog_gcc_traditional = no; then
2430 cat >conftest.$ac_ext <<_ACEOF
2431 #line 2431 "configure"
2432 #include "confdefs.h"
2434 int Autoconf = TCGETA;
2436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2437 egrep "$ac_pattern" >/dev/null 2>&1; then
2438 ac_cv_prog_gcc_traditional=yes
2444 echo "$as_me:2444: result: $ac_cv_prog_gcc_traditional" >&5
2445 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2446 if test $ac_cv_prog_gcc_traditional = yes; then
2447 CC="$CC -traditional"
2451 echo "$as_me:2451: checking whether $CC understands -c and -o together" >&5
2452 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2453 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 cat > conftest.$ac_ext <<CF_EOF
2460 ${cf_cv_main_return:-return}(0);
2463 # We do the test twice because some compilers refuse to overwrite an
2464 # existing .o file with -o, though they will create one.
2465 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2466 if { (eval echo "$as_me:2466: \"$ac_try\"") >&5
2469 echo "$as_me:2469: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 test -f conftest2.$ac_objext && { (eval echo "$as_me:2471: \"$ac_try\"") >&5
2474 echo "$as_me:2474: \$? = $ac_status" >&5
2475 (exit $ac_status); };
2477 eval cf_cv_prog_CC_c_o=yes
2479 eval cf_cv_prog_CC_c_o=no
2484 if test $cf_cv_prog_CC_c_o = yes; then
2485 echo "$as_me:2485: result: yes" >&5
2486 echo "${ECHO_T}yes" >&6
2488 echo "$as_me:2488: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2492 test "$program_prefix" != NONE &&
2493 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2494 # Use a double $ so make ignores it.
2495 test "$program_suffix" != NONE &&
2496 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2497 # Double any \ or $. echo might interpret backslashes.
2498 # By default was `s,x,x', remove it if useless.
2499 cat <<\_ACEOF >conftest.sed
2500 s/[\\$]/&&/g;s/;s,x,x,$//
2502 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2505 for ac_prog in mawk gawk nawk awk
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy $ac_prog; ac_word=$2
2509 echo "$as_me:2509: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2511 if test "${ac_cv_prog_AWK+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 if test -n "$AWK"; then
2515 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2517 ac_save_IFS=$IFS; IFS=$ac_path_separator
2519 for ac_dir in $ac_dummy; do
2521 test -z "$ac_dir" && ac_dir=.
2522 $as_executable_p "$ac_dir/$ac_word" || continue
2523 ac_cv_prog_AWK="$ac_prog"
2524 echo "$as_me:2524: found $ac_dir/$ac_word" >&5
2531 if test -n "$AWK"; then
2532 echo "$as_me:2532: result: $AWK" >&5
2533 echo "${ECHO_T}$AWK" >&6
2535 echo "$as_me:2535: result: no" >&5
2536 echo "${ECHO_T}no" >&6
2539 test -n "$AWK" && break
2542 test -z "$AWK" && { { echo "$as_me:2542: error: No awk program found" >&5
2543 echo "$as_me: error: No awk program found" >&2;}
2544 { (exit 1); exit 1; }; }
2546 echo "$as_me:2546: checking for egrep" >&5
2547 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2548 if test "${ac_cv_prog_egrep+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2552 then ac_cv_prog_egrep='grep -E'
2553 else ac_cv_prog_egrep='egrep'
2556 echo "$as_me:2556: result: $ac_cv_prog_egrep" >&5
2557 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2558 EGREP=$ac_cv_prog_egrep
2560 test -z "$EGREP" && { { echo "$as_me:2560: error: No egrep program found" >&5
2561 echo "$as_me: error: No egrep program found" >&2;}
2562 { (exit 1); exit 1; }; }
2564 # Find a good install program. We prefer a C program (faster),
2565 # so one script is as good as another. But avoid the broken or
2566 # incompatible versions:
2567 # SysV /etc/install, /usr/sbin/install
2568 # SunOS /usr/etc/install
2569 # IRIX /sbin/install
2571 # AmigaOS /C/install, which installs bootblocks on floppy discs
2572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2575 # ./install, which can be erroneously created by make from ./install.sh.
2576 echo "$as_me:2576: checking for a BSD compatible install" >&5
2577 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2578 if test -z "$INSTALL"; then
2579 if test "${ac_cv_path_install+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 ac_save_IFS=$IFS; IFS=$ac_path_separator
2583 for ac_dir in $PATH; do
2585 # Account for people who put trailing slashes in PATH elements.
2587 / | ./ | .// | /cC/* \
2588 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2594 for ac_prog in ginstall scoinst install; do
2595 if $as_executable_p "$ac_dir/$ac_prog"; then
2596 if test $ac_prog = install &&
2597 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2598 # AIX install. It has an incompatible calling convention.
2600 elif test $ac_prog = install &&
2601 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2602 # program-specific install script used by HP pwplus--don't use.
2605 ac_cv_path_install="$ac_dir/$ac_prog -c"
2615 if test "${ac_cv_path_install+set}" = set; then
2616 INSTALL=$ac_cv_path_install
2618 # As a last resort, use the slow shell script. We don't cache a
2619 # path for INSTALL within a source directory, because that will
2620 # break other packages using the cache if that directory is
2621 # removed, or if the path is relative.
2622 INSTALL=$ac_install_sh
2625 echo "$as_me:2625: result: $INSTALL" >&5
2626 echo "${ECHO_T}$INSTALL" >&6
2628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2629 # It thinks the first close brace ends the variable substitution.
2630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2632 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2634 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2636 echo "$as_me:2636: checking whether ln -s works" >&5
2637 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2639 if test "$LN_S" = "ln -s"; then
2640 echo "$as_me:2640: result: yes" >&5
2641 echo "${ECHO_T}yes" >&6
2643 echo "$as_me:2643: result: no, using $LN_S" >&5
2644 echo "${ECHO_T}no, using $LN_S" >&6
2647 echo "$as_me:2647: checking if $LN_S -f options work" >&5
2648 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2650 rm -f conf$$.src conf$$dst
2652 echo first >conf$$.src
2653 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2658 rm -f conf$$.dst conf$$src
2659 echo "$as_me:2659: result: $cf_prog_ln_sf" >&5
2660 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2662 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2664 # Find a good install program. We prefer a C program (faster),
2665 # so one script is as good as another. But avoid the broken or
2666 # incompatible versions:
2667 # SysV /etc/install, /usr/sbin/install
2668 # SunOS /usr/etc/install
2669 # IRIX /sbin/install
2671 # AmigaOS /C/install, which installs bootblocks on floppy discs
2672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2675 # ./install, which can be erroneously created by make from ./install.sh.
2676 echo "$as_me:2676: checking for a BSD compatible install" >&5
2677 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2678 if test -z "$INSTALL"; then
2679 if test "${ac_cv_path_install+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 ac_save_IFS=$IFS; IFS=$ac_path_separator
2683 for ac_dir in $PATH; do
2685 # Account for people who put trailing slashes in PATH elements.
2687 / | ./ | .// | /cC/* \
2688 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2691 # OSF1 and SCO ODT 3.0 have their own names for install.
2692 # Don't use installbsd from OSF since it installs stuff as root
2694 for ac_prog in ginstall scoinst install; do
2695 if $as_executable_p "$ac_dir/$ac_prog"; then
2696 if test $ac_prog = install &&
2697 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2698 # AIX install. It has an incompatible calling convention.
2700 elif test $ac_prog = install &&
2701 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2702 # program-specific install script used by HP pwplus--don't use.
2705 ac_cv_path_install="$ac_dir/$ac_prog -c"
2715 if test "${ac_cv_path_install+set}" = set; then
2716 INSTALL=$ac_cv_path_install
2718 # As a last resort, use the slow shell script. We don't cache a
2719 # path for INSTALL within a source directory, because that will
2720 # break other packages using the cache if that directory is
2721 # removed, or if the path is relative.
2722 INSTALL=$ac_install_sh
2725 echo "$as_me:2725: result: $INSTALL" >&5
2726 echo "${ECHO_T}$INSTALL" >&6
2728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2729 # It thinks the first close brace ends the variable substitution.
2730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2740 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2741 test -z "$cf_dir" && cf_dir=.
2742 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2746 echo "$as_me:2746: checking if you want to install stripped executables" >&5
2747 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2749 # Check whether --enable-stripping or --disable-stripping was given.
2750 if test "${enable_stripping+set}" = set; then
2751 enableval="$enable_stripping"
2752 test "$enableval" != no && enableval=yes
2753 if test "$enableval" != "yes" ; then
2763 echo "$as_me:2763: result: $with_stripping" >&5
2764 echo "${ECHO_T}$with_stripping" >&6
2766 if test "$with_stripping" = yes
2773 : ${INSTALL:=install}
2774 echo "$as_me:2774: checking if install accepts -p option" >&5
2775 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2776 if test "${cf_cv_install_p+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2786 if test -f conftest.out/conftest.in
2788 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2789 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2790 if test -s conftest.err
2805 echo "$as_me:2805: result: $cf_cv_install_p" >&5
2806 echo "${ECHO_T}$cf_cv_install_p" >&6
2808 echo "$as_me:2808: checking if install needs to be told about ownership" >&5
2809 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2810 case `$ac_config_guess` in
2819 echo "$as_me:2819: result: $with_install_o" >&5
2820 echo "${ECHO_T}$with_install_o" >&6
2821 if test "x$with_install_o" = xyes
2823 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'`
2828 echo "$as_me:2828: checking for long file names" >&5
2829 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2830 if test "${ac_cv_sys_long_file_names+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 ac_cv_sys_long_file_names=yes
2834 # Test for long file names in all the places we know might matter:
2835 # . the current directory, where building will happen
2836 # $prefix/lib where we will be installing things
2837 # $exec_prefix/lib likewise
2838 # eval it to expand exec_prefix.
2839 # $TMPDIR if set, where it might want to write temporary files
2840 # if $TMPDIR is not set:
2841 # /tmp where it might want to write temporary files
2844 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2847 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2849 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2850 test -d $ac_dir || continue
2851 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2852 ac_xdir=$ac_dir/cf$$
2853 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2854 ac_tf1=$ac_xdir/conftest9012345
2855 ac_tf2=$ac_xdir/conftest9012346
2856 (echo 1 >$ac_tf1) 2>/dev/null
2857 (echo 2 >$ac_tf2) 2>/dev/null
2858 ac_val=`cat $ac_tf1 2>/dev/null`
2859 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2860 ac_cv_sys_long_file_names=no
2861 rm -rf $ac_xdir 2>/dev/null
2864 rm -rf $ac_xdir 2>/dev/null
2867 echo "$as_me:2867: result: $ac_cv_sys_long_file_names" >&5
2868 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2869 if test $ac_cv_sys_long_file_names = yes; then
2871 cat >>confdefs.h <<\EOF
2872 #define HAVE_LONG_FILE_NAMES 1
2877 # if we find pkg-config, check if we should install the ".pc" files.
2879 echo "$as_me:2879: checking if you want to use pkg-config" >&5
2880 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2882 # Check whether --with-pkg-config or --without-pkg-config was given.
2883 if test "${with_pkg_config+set}" = set; then
2884 withval="$with_pkg_config"
2885 cf_pkg_config=$withval
2889 echo "$as_me:2889: result: $cf_pkg_config" >&5
2890 echo "${ECHO_T}$cf_pkg_config" >&6
2892 case $cf_pkg_config in
2898 if test -n "$ac_tool_prefix"; then
2899 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2900 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2901 echo "$as_me:2901: checking for $ac_word" >&5
2902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2903 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2911 ac_save_IFS=$IFS; IFS=$ac_path_separator
2913 for ac_dir in $ac_dummy; do
2915 test -z "$ac_dir" && ac_dir=.
2916 if $as_executable_p "$ac_dir/$ac_word"; then
2917 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2918 echo "$as_me:2918: found $ac_dir/$ac_word" >&5
2926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2928 if test -n "$PKG_CONFIG"; then
2929 echo "$as_me:2929: result: $PKG_CONFIG" >&5
2930 echo "${ECHO_T}$PKG_CONFIG" >&6
2932 echo "$as_me:2932: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2937 if test -z "$ac_cv_path_PKG_CONFIG"; then
2938 ac_pt_PKG_CONFIG=$PKG_CONFIG
2939 # Extract the first word of "pkg-config", so it can be a program name with args.
2940 set dummy pkg-config; ac_word=$2
2941 echo "$as_me:2941: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 case $ac_pt_PKG_CONFIG in
2948 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2951 ac_save_IFS=$IFS; IFS=$ac_path_separator
2953 for ac_dir in $ac_dummy; do
2955 test -z "$ac_dir" && ac_dir=.
2956 if $as_executable_p "$ac_dir/$ac_word"; then
2957 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2958 echo "$as_me:2958: found $ac_dir/$ac_word" >&5
2963 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2967 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2969 if test -n "$ac_pt_PKG_CONFIG"; then
2970 echo "$as_me:2970: result: $ac_pt_PKG_CONFIG" >&5
2971 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2973 echo "$as_me:2973: result: no" >&5
2974 echo "${ECHO_T}no" >&6
2977 PKG_CONFIG=$ac_pt_PKG_CONFIG
2979 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2988 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2989 if test "$PKG_CONFIG" != none ; then
2991 if test "x$prefix" != xNONE; then
2992 cf_path_syntax="$prefix"
2994 cf_path_syntax="$ac_default_prefix"
2997 case ".$PKG_CONFIG" in
3002 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3004 (.\${*prefix}*|.\${*dir}*)
3005 eval PKG_CONFIG="$PKG_CONFIG"
3006 case ".$PKG_CONFIG" in
3008 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3013 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3016 { { echo "$as_me:3016: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3017 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3018 { (exit 1); exit 1; }; }
3022 elif test "x$cf_pkg_config" != xno ; then
3023 { echo "$as_me:3023: WARNING: pkg-config is not installed" >&5
3024 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3029 echo "$as_me:3029: checking for pkg-config library directory" >&5
3030 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3033 echo "$as_me:3033: checking for $PKG_CONFIG library directory" >&5
3034 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3038 PKG_CONFIG_LIBDIR=no
3040 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3041 if test "${with_pkg_config_libdir+set}" = set; then
3042 withval="$with_pkg_config_libdir"
3043 PKG_CONFIG_LIBDIR=$withval
3045 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3048 case x$PKG_CONFIG_LIBDIR in
3052 # Look for the library directory using the same prefix as the executable
3053 if test "x$PKG_CONFIG" = xnone
3057 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3060 # If you don't like using the default architecture, you have to specify the
3061 # intended library directory and corresponding compiler/linker options.
3063 # This case allows for Debian's 2014-flavor of multiarch, along with the
3064 # most common variations before that point. Some other variants spell the
3065 # directory differently, e.g., "pkg-config", and put it in unusual places.
3066 # pkg-config has always been poorly standardized, which is ironic...
3067 case x`(arch) 2>/dev/null` in
3070 $cf_path/lib/*64-linux-gnu \
3078 $cf_path/lib/*-linux-gnu \
3086 test -n "$verbose" && echo " list..." 1>&6
3088 echo "${as_me:-configure}:3088: testing list... ..." 1>&5
3090 for cf_config in $cf_search_path
3092 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3094 echo "${as_me:-configure}:3094: testing checking $cf_config/pkgconfig ..." 1>&5
3096 if test -d $cf_config/pkgconfig
3098 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3099 echo "$as_me:3099: checking done" >&5
3100 echo $ECHO_N "checking done... $ECHO_C" >&6
3109 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3110 echo "$as_me:3110: result: $PKG_CONFIG_LIBDIR" >&5
3111 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3114 echo "$as_me:3114: checking if you want to build test-programs" >&5
3115 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3117 # Check whether --with-tests or --without-tests was given.
3118 if test "${with_tests+set}" = set; then
3119 withval="$with_tests"
3120 cf_with_tests=$withval
3124 echo "$as_me:3124: result: $cf_with_tests" >&5
3125 echo "${ECHO_T}$cf_with_tests" >&6
3127 echo "$as_me:3127: checking if we should assume mixed-case filenames" >&5
3128 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3130 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3131 if test "${enable_mixed_case+set}" = set; then
3132 enableval="$enable_mixed_case"
3133 enable_mixedcase=$enableval
3135 enable_mixedcase=auto
3137 echo "$as_me:3137: result: $enable_mixedcase" >&5
3138 echo "${ECHO_T}$enable_mixedcase" >&6
3139 if test "$enable_mixedcase" = "auto" ; then
3141 echo "$as_me:3141: checking if filesystem supports mixed-case filenames" >&5
3142 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3143 if test "${cf_cv_mixedcase+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if test "$cross_compiling" = yes ; then
3148 case $target_alias in
3149 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3157 rm -f conftest CONFTEST
3159 if test -f CONFTEST ; then
3164 rm -f conftest CONFTEST
3168 echo "$as_me:3168: result: $cf_cv_mixedcase" >&5
3169 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3170 test "$cf_cv_mixedcase" = yes &&
3171 cat >>confdefs.h <<\EOF
3172 #define MIXEDCASE_FILENAMES 1
3176 cf_cv_mixedcase=$enable_mixedcase
3177 if test "$enable_mixedcase" = "yes" ; then
3178 cat >>confdefs.h <<\EOF
3179 #define MIXEDCASE_FILENAMES 1
3185 # do this after mixed-case option (tags/TAGS is not as important as tic).
3186 echo "$as_me:3186: checking whether ${MAKE-make} sets \${MAKE}" >&5
3187 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3188 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3189 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 cat >conftest.make <<\EOF
3194 @echo 'ac_maketemp="${MAKE}"'
3196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3197 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3198 if test -n "$ac_maketemp"; then
3199 eval ac_cv_prog_make_${ac_make}_set=yes
3201 eval ac_cv_prog_make_${ac_make}_set=no
3205 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3206 echo "$as_me:3206: result: yes" >&5
3207 echo "${ECHO_T}yes" >&6
3210 echo "$as_me:3210: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3212 SET_MAKE="MAKE=${MAKE-make}"
3215 for ac_prog in exctags ctags
3217 # Extract the first word of "$ac_prog", so it can be a program name with args.
3218 set dummy $ac_prog; ac_word=$2
3219 echo "$as_me:3219: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_prog_CTAGS+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if test -n "$CTAGS"; then
3225 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3227 ac_save_IFS=$IFS; IFS=$ac_path_separator
3229 for ac_dir in $ac_dummy; do
3231 test -z "$ac_dir" && ac_dir=.
3232 $as_executable_p "$ac_dir/$ac_word" || continue
3233 ac_cv_prog_CTAGS="$ac_prog"
3234 echo "$as_me:3234: found $ac_dir/$ac_word" >&5
3240 CTAGS=$ac_cv_prog_CTAGS
3241 if test -n "$CTAGS"; then
3242 echo "$as_me:3242: result: $CTAGS" >&5
3243 echo "${ECHO_T}$CTAGS" >&6
3245 echo "$as_me:3245: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3249 test -n "$CTAGS" && break
3252 for ac_prog in exetags etags
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255 set dummy $ac_prog; ac_word=$2
3256 echo "$as_me:3256: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_prog_ETAGS+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 if test -n "$ETAGS"; then
3262 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3264 ac_save_IFS=$IFS; IFS=$ac_path_separator
3266 for ac_dir in $ac_dummy; do
3268 test -z "$ac_dir" && ac_dir=.
3269 $as_executable_p "$ac_dir/$ac_word" || continue
3270 ac_cv_prog_ETAGS="$ac_prog"
3271 echo "$as_me:3271: found $ac_dir/$ac_word" >&5
3277 ETAGS=$ac_cv_prog_ETAGS
3278 if test -n "$ETAGS"; then
3279 echo "$as_me:3279: result: $ETAGS" >&5
3280 echo "${ECHO_T}$ETAGS" >&6
3282 echo "$as_me:3282: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3286 test -n "$ETAGS" && break
3289 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3290 set dummy ${CTAGS:-ctags}; ac_word=$2
3291 echo "$as_me:3291: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 if test -n "$MAKE_LOWER_TAGS"; then
3297 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3299 ac_save_IFS=$IFS; IFS=$ac_path_separator
3301 for ac_dir in $ac_dummy; do
3303 test -z "$ac_dir" && ac_dir=.
3304 $as_executable_p "$ac_dir/$ac_word" || continue
3305 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3306 echo "$as_me:3306: found $ac_dir/$ac_word" >&5
3310 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3313 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3314 if test -n "$MAKE_LOWER_TAGS"; then
3315 echo "$as_me:3315: result: $MAKE_LOWER_TAGS" >&5
3316 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3318 echo "$as_me:3318: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3322 if test "$cf_cv_mixedcase" = yes ; then
3323 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3324 set dummy ${ETAGS:-etags}; ac_word=$2
3325 echo "$as_me:3325: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$MAKE_UPPER_TAGS"; then
3331 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3333 ac_save_IFS=$IFS; IFS=$ac_path_separator
3335 for ac_dir in $ac_dummy; do
3337 test -z "$ac_dir" && ac_dir=.
3338 $as_executable_p "$ac_dir/$ac_word" || continue
3339 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3340 echo "$as_me:3340: found $ac_dir/$ac_word" >&5
3344 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3347 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3348 if test -n "$MAKE_UPPER_TAGS"; then
3349 echo "$as_me:3349: result: $MAKE_UPPER_TAGS" >&5
3350 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3352 echo "$as_me:3352: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3360 if test "$MAKE_UPPER_TAGS" = yes ; then
3366 if test "$MAKE_LOWER_TAGS" = yes ; then
3372 echo "$as_me:3372: checking for makeflags variable" >&5
3373 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3374 if test "${cf_cv_makeflags+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3381 cat >cf_makeflags.tmp <<CF_EOF
3384 @ echo '.$cf_option'
3386 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3387 case "$cf_result" in
3389 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3390 case "$cf_result" in
3391 (.*CC=*) cf_cv_makeflags=
3393 (*) cf_cv_makeflags=$cf_option
3402 echo "${as_me:-configure}:3402: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
3407 rm -f cf_makeflags.tmp
3410 echo "$as_me:3410: result: $cf_cv_makeflags" >&5
3411 echo "${ECHO_T}$cf_cv_makeflags" >&6
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3415 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3416 echo "$as_me:3416: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_prog_RANLIB+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 if test -n "$RANLIB"; then
3422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3424 ac_save_IFS=$IFS; IFS=$ac_path_separator
3426 for ac_dir in $ac_dummy; do
3428 test -z "$ac_dir" && ac_dir=.
3429 $as_executable_p "$ac_dir/$ac_word" || continue
3430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3431 echo "$as_me:3431: found $ac_dir/$ac_word" >&5
3437 RANLIB=$ac_cv_prog_RANLIB
3438 if test -n "$RANLIB"; then
3439 echo "$as_me:3439: result: $RANLIB" >&5
3440 echo "${ECHO_T}$RANLIB" >&6
3442 echo "$as_me:3442: result: no" >&5
3443 echo "${ECHO_T}no" >&6
3447 if test -z "$ac_cv_prog_RANLIB"; then
3448 ac_ct_RANLIB=$RANLIB
3449 # Extract the first word of "ranlib", so it can be a program name with args.
3450 set dummy ranlib; ac_word=$2
3451 echo "$as_me:3451: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 if test -n "$ac_ct_RANLIB"; then
3457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3459 ac_save_IFS=$IFS; IFS=$ac_path_separator
3461 for ac_dir in $ac_dummy; do
3463 test -z "$ac_dir" && ac_dir=.
3464 $as_executable_p "$ac_dir/$ac_word" || continue
3465 ac_cv_prog_ac_ct_RANLIB="ranlib"
3466 echo "$as_me:3466: found $ac_dir/$ac_word" >&5
3470 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3474 if test -n "$ac_ct_RANLIB"; then
3475 echo "$as_me:3475: result: $ac_ct_RANLIB" >&5
3476 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3478 echo "$as_me:3478: result: no" >&5
3479 echo "${ECHO_T}no" >&6
3482 RANLIB=$ac_ct_RANLIB
3484 RANLIB="$ac_cv_prog_RANLIB"
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}ld; ac_word=$2
3490 echo "$as_me:3490: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_LD+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 if test -n "$LD"; then
3496 ac_cv_prog_LD="$LD" # Let the user override the test.
3498 ac_save_IFS=$IFS; IFS=$ac_path_separator
3500 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 $as_executable_p "$ac_dir/$ac_word" || continue
3504 ac_cv_prog_LD="${ac_tool_prefix}ld"
3505 echo "$as_me:3505: found $ac_dir/$ac_word" >&5
3512 if test -n "$LD"; then
3513 echo "$as_me:3513: result: $LD" >&5
3514 echo "${ECHO_T}$LD" >&6
3516 echo "$as_me:3516: result: no" >&5
3517 echo "${ECHO_T}no" >&6
3521 if test -z "$ac_cv_prog_LD"; then
3523 # Extract the first word of "ld", so it can be a program name with args.
3524 set dummy ld; ac_word=$2
3525 echo "$as_me:3525: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 if test -n "$ac_ct_LD"; then
3531 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3533 ac_save_IFS=$IFS; IFS=$ac_path_separator
3535 for ac_dir in $ac_dummy; do
3537 test -z "$ac_dir" && ac_dir=.
3538 $as_executable_p "$ac_dir/$ac_word" || continue
3539 ac_cv_prog_ac_ct_LD="ld"
3540 echo "$as_me:3540: found $ac_dir/$ac_word" >&5
3544 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3547 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3548 if test -n "$ac_ct_LD"; then
3549 echo "$as_me:3549: result: $ac_ct_LD" >&5
3550 echo "${ECHO_T}$ac_ct_LD" >&6
3552 echo "$as_me:3552: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3561 if test -n "$ac_tool_prefix"; then
3562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3563 set dummy ${ac_tool_prefix}ar; ac_word=$2
3564 echo "$as_me:3564: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_prog_AR+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 if test -n "$AR"; then
3570 ac_cv_prog_AR="$AR" # Let the user override the test.
3572 ac_save_IFS=$IFS; IFS=$ac_path_separator
3574 for ac_dir in $ac_dummy; do
3576 test -z "$ac_dir" && ac_dir=.
3577 $as_executable_p "$ac_dir/$ac_word" || continue
3578 ac_cv_prog_AR="${ac_tool_prefix}ar"
3579 echo "$as_me:3579: found $ac_dir/$ac_word" >&5
3586 if test -n "$AR"; then
3587 echo "$as_me:3587: result: $AR" >&5
3588 echo "${ECHO_T}$AR" >&6
3590 echo "$as_me:3590: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3595 if test -z "$ac_cv_prog_AR"; then
3597 # Extract the first word of "ar", so it can be a program name with args.
3598 set dummy ar; ac_word=$2
3599 echo "$as_me:3599: checking for $ac_word" >&5
3600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3601 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 if test -n "$ac_ct_AR"; then
3605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3607 ac_save_IFS=$IFS; IFS=$ac_path_separator
3609 for ac_dir in $ac_dummy; do
3611 test -z "$ac_dir" && ac_dir=.
3612 $as_executable_p "$ac_dir/$ac_word" || continue
3613 ac_cv_prog_ac_ct_AR="ar"
3614 echo "$as_me:3614: found $ac_dir/$ac_word" >&5
3618 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3621 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3622 if test -n "$ac_ct_AR"; then
3623 echo "$as_me:3623: result: $ac_ct_AR" >&5
3624 echo "${ECHO_T}$ac_ct_AR" >&6
3626 echo "$as_me:3626: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3635 if test -n "$ac_tool_prefix"; then
3636 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3637 set dummy ${ac_tool_prefix}ar; ac_word=$2
3638 echo "$as_me:3638: checking for $ac_word" >&5
3639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3640 if test "${ac_cv_prog_AR+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 if test -n "$AR"; then
3644 ac_cv_prog_AR="$AR" # Let the user override the test.
3646 ac_save_IFS=$IFS; IFS=$ac_path_separator
3648 for ac_dir in $ac_dummy; do
3650 test -z "$ac_dir" && ac_dir=.
3651 $as_executable_p "$ac_dir/$ac_word" || continue
3652 ac_cv_prog_AR="${ac_tool_prefix}ar"
3653 echo "$as_me:3653: found $ac_dir/$ac_word" >&5
3660 if test -n "$AR"; then
3661 echo "$as_me:3661: result: $AR" >&5
3662 echo "${ECHO_T}$AR" >&6
3664 echo "$as_me:3664: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3669 if test -z "$ac_cv_prog_AR"; then
3671 # Extract the first word of "ar", so it can be a program name with args.
3672 set dummy ar; ac_word=$2
3673 echo "$as_me:3673: checking for $ac_word" >&5
3674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3675 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 if test -n "$ac_ct_AR"; then
3679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3681 ac_save_IFS=$IFS; IFS=$ac_path_separator
3683 for ac_dir in $ac_dummy; do
3685 test -z "$ac_dir" && ac_dir=.
3686 $as_executable_p "$ac_dir/$ac_word" || continue
3687 ac_cv_prog_ac_ct_AR="ar"
3688 echo "$as_me:3688: found $ac_dir/$ac_word" >&5
3692 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3695 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3696 if test -n "$ac_ct_AR"; then
3697 echo "$as_me:3697: result: $ac_ct_AR" >&5
3698 echo "${ECHO_T}$ac_ct_AR" >&6
3700 echo "$as_me:3700: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3709 echo "$as_me:3709: checking for options to update archives" >&5
3710 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3711 if test "${cf_cv_ar_flags+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 cf_cv_ar_flags=unknown
3716 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
3719 # check if $ARFLAGS already contains this choice
3720 if test "x$ARFLAGS" != "x" ; then
3721 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3722 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3728 rm -f conftest.$ac_cv_objext
3731 cat >conftest.$ac_ext <<EOF
3732 #line 3732 "configure"
3733 int testdata[3] = { 123, 456, 789 };
3735 if { (eval echo "$as_me:3735: \"$ac_compile\"") >&5
3736 (eval $ac_compile) 2>&5
3738 echo "$as_me:3738: \$? = $ac_status" >&5
3739 (exit $ac_status); } ; then
3740 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3741 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3742 if test -f conftest.a ; then
3743 cf_cv_ar_flags=$cf_ar_flags
3747 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3749 echo "${as_me:-configure}:3749: testing cannot compile test-program ..." 1>&5
3754 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3757 echo "$as_me:3757: result: $cf_cv_ar_flags" >&5
3758 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3760 if test -n "$ARFLAGS" ; then
3761 if test -n "$cf_cv_ar_flags" ; then
3762 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3765 ARFLAGS=$cf_cv_ar_flags
3768 echo "$as_me:3768: checking for PATH separator" >&5
3769 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3770 case $cf_cv_system_name in
3771 (os2*) PATH_SEPARATOR=';' ;;
3772 (*) ${PATH_SEPARATOR:=':'} ;;
3775 echo "$as_me:3775: result: $PATH_SEPARATOR" >&5
3776 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3778 echo "$as_me:3778: checking if you have specified an install-prefix" >&5
3779 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3781 # Check whether --with-install-prefix or --without-install-prefix was given.
3782 if test "${with_install_prefix+set}" = set; then
3783 withval="$with_install_prefix"
3787 (*) DESTDIR="$withval"
3791 echo "$as_me:3791: result: $DESTDIR" >&5
3792 echo "${ECHO_T}$DESTDIR" >&6
3794 ###############################################################################
3796 # If we're cross-compiling, allow the user to override the tools and their
3797 # options. The configure script is oriented toward identifying the host
3798 # compiler, etc., but we need a build compiler to generate parts of the source.
3800 if test "$cross_compiling" = yes ; then
3802 # defaults that we might want to override
3803 : ${BUILD_CFLAGS:=''}
3804 : ${BUILD_CPPFLAGS:=''}
3805 : ${BUILD_LDFLAGS:=''}
3807 : ${BUILD_EXEEXT:='$x'}
3808 : ${BUILD_OBJEXT:='o'}
3810 # Check whether --with-build-cc or --without-build-cc was given.
3811 if test "${with_build_cc+set}" = set; then
3812 withval="$with_build_cc"
3815 for ac_prog in gcc clang c99 c89 cc cl
3817 # Extract the first word of "$ac_prog", so it can be a program name with args.
3818 set dummy $ac_prog; ac_word=$2
3819 echo "$as_me:3819: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3821 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 if test -n "$BUILD_CC"; then
3825 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3827 ac_save_IFS=$IFS; IFS=$ac_path_separator
3829 for ac_dir in $ac_dummy; do
3831 test -z "$ac_dir" && ac_dir=.
3832 $as_executable_p "$ac_dir/$ac_word" || continue
3833 ac_cv_prog_BUILD_CC="$ac_prog"
3834 echo "$as_me:3834: found $ac_dir/$ac_word" >&5
3840 BUILD_CC=$ac_cv_prog_BUILD_CC
3841 if test -n "$BUILD_CC"; then
3842 echo "$as_me:3842: result: $BUILD_CC" >&5
3843 echo "${ECHO_T}$BUILD_CC" >&6
3845 echo "$as_me:3845: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3849 test -n "$BUILD_CC" && break
3851 test -n "$BUILD_CC" || BUILD_CC="none"
3854 echo "$as_me:3854: checking for native build C compiler" >&5
3855 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3856 echo "$as_me:3856: result: $BUILD_CC" >&5
3857 echo "${ECHO_T}$BUILD_CC" >&6
3859 echo "$as_me:3859: checking for native build C preprocessor" >&5
3860 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3862 # Check whether --with-build-cpp or --without-build-cpp was given.
3863 if test "${with_build_cpp+set}" = set; then
3864 withval="$with_build_cpp"
3865 BUILD_CPP="$withval"
3867 BUILD_CPP='${BUILD_CC} -E'
3869 echo "$as_me:3869: result: $BUILD_CPP" >&5
3870 echo "${ECHO_T}$BUILD_CPP" >&6
3872 echo "$as_me:3872: checking for native build C flags" >&5
3873 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3875 # Check whether --with-build-cflags or --without-build-cflags was given.
3876 if test "${with_build_cflags+set}" = set; then
3877 withval="$with_build_cflags"
3878 BUILD_CFLAGS="$withval"
3880 echo "$as_me:3880: result: $BUILD_CFLAGS" >&5
3881 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3883 echo "$as_me:3883: checking for native build C preprocessor-flags" >&5
3884 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3886 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3887 if test "${with_build_cppflags+set}" = set; then
3888 withval="$with_build_cppflags"
3889 BUILD_CPPFLAGS="$withval"
3891 echo "$as_me:3891: result: $BUILD_CPPFLAGS" >&5
3892 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3894 echo "$as_me:3894: checking for native build linker-flags" >&5
3895 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3897 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3898 if test "${with_build_ldflags+set}" = set; then
3899 withval="$with_build_ldflags"
3900 BUILD_LDFLAGS="$withval"
3902 echo "$as_me:3902: result: $BUILD_LDFLAGS" >&5
3903 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3905 echo "$as_me:3905: checking for native build linker-libraries" >&5
3906 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3908 # Check whether --with-build-libs or --without-build-libs was given.
3909 if test "${with_build_libs+set}" = set; then
3910 withval="$with_build_libs"
3911 BUILD_LIBS="$withval"
3913 echo "$as_me:3913: result: $BUILD_LIBS" >&5
3914 echo "${ECHO_T}$BUILD_LIBS" >&6
3916 # this assumes we're on Unix.
3920 : ${BUILD_CC:='${CC}'}
3922 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3923 { { echo "$as_me:3923: error: Cross-build requires two compilers.
3924 Use --with-build-cc to specify the native compiler." >&5
3925 echo "$as_me: error: Cross-build requires two compilers.
3926 Use --with-build-cc to specify the native compiler." >&2;}
3927 { (exit 1); exit 1; }; }
3931 : ${BUILD_CC:='${CC}'}
3932 : ${BUILD_CPP:='${CPP}'}
3933 : ${BUILD_CFLAGS:='${CFLAGS}'}
3934 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3935 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3936 : ${BUILD_LIBS:='${LIBS}'}
3937 : ${BUILD_EXEEXT:='$x'}
3938 : ${BUILD_OBJEXT:='o'}
3941 ###############################################################################
3943 ### Options to allow the user to specify the set of libraries which are used.
3944 ### Use "--without-normal --with-shared" to allow the default model to be
3945 ### shared, for example.
3948 echo "$as_me:3948: checking if you want to build shared C-objects" >&5
3949 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3951 # Check whether --with-shared or --without-shared was given.
3952 if test "${with_shared+set}" = set; then
3953 withval="$with_shared"
3954 with_shared=$withval
3958 echo "$as_me:3958: result: $with_shared" >&5
3959 echo "${ECHO_T}$with_shared" >&6
3960 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3962 echo "$as_me:3962: checking for specified models" >&5
3963 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3964 test -z "$cf_list_models" && cf_list_models=normal
3965 echo "$as_me:3965: result: $cf_list_models" >&5
3966 echo "${ECHO_T}$cf_list_models" >&6
3968 ### Use the first model as the default, and save its suffix for use in building
3969 ### up test-applications.
3970 echo "$as_me:3970: checking for default model" >&5
3971 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3972 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3973 echo "$as_me:3973: result: $DFT_LWR_MODEL" >&5
3974 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3976 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3978 echo "$as_me:3978: checking for specific curses-directory" >&5
3979 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3981 # Check whether --with-curses-dir or --without-curses-dir was given.
3982 if test "${with_curses_dir+set}" = set; then
3983 withval="$with_curses_dir"
3984 cf_cv_curses_dir=$withval
3988 echo "$as_me:3988: result: $cf_cv_curses_dir" >&5
3989 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3991 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3994 if test "x$prefix" != xNONE; then
3995 cf_path_syntax="$prefix"
3997 cf_path_syntax="$ac_default_prefix"
4005 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4007 (.\${*prefix}*|.\${*dir}*)
4008 eval withval="$withval"
4011 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4016 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4019 { { echo "$as_me:4019: error: expected a pathname, not \"$withval\"" >&5
4020 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4021 { (exit 1); exit 1; }; }
4025 if test -d "$cf_cv_curses_dir"
4028 if test -n "$cf_cv_curses_dir/include" ; then
4029 for cf_add_incdir in $cf_cv_curses_dir/include
4031 while test $cf_add_incdir != /usr/include
4033 if test -d $cf_add_incdir
4036 if test -n "$CFLAGS$CPPFLAGS" ; then
4037 # a loop is needed to ensure we can add subdirs of existing dirs
4038 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4039 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4040 cf_have_incdir=yes; break
4045 if test "$cf_have_incdir" = no ; then
4046 if test "$cf_add_incdir" = /usr/local/include ; then
4047 if test "$GCC" = yes
4049 cf_save_CPPFLAGS=$CPPFLAGS
4051 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4052 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
4054 cat >conftest.$ac_ext <<_ACEOF
4055 #line 4055 "configure"
4056 #include "confdefs.h"
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
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4084 rm -f conftest.$ac_objext conftest.$ac_ext
4085 CPPFLAGS=$cf_save_CPPFLAGS
4090 if test "$cf_have_incdir" = no ; then
4091 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4093 echo "${as_me:-configure}:4093: testing adding $cf_add_incdir to include-path ..." 1>&5
4095 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4097 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4098 test "$cf_top_incdir" = "$cf_add_incdir" && break
4099 cf_add_incdir="$cf_top_incdir"
4110 if test -n "$cf_cv_curses_dir/lib" ; then
4111 for cf_add_libdir in $cf_cv_curses_dir/lib
4113 if test $cf_add_libdir = /usr/lib ; then
4115 elif test -d $cf_add_libdir
4118 if test -n "$LDFLAGS$LIBS" ; then
4119 # a loop is needed to ensure we can add subdirs of existing dirs
4120 for cf_test_libdir in $LDFLAGS $LIBS ; do
4121 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4122 cf_have_libdir=yes; break
4126 if test "$cf_have_libdir" = no ; then
4127 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4129 echo "${as_me:-configure}:4129: testing adding $cf_add_libdir to library-path ..." 1>&5
4131 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4140 cf_ncuconfig_root=ncurses
4141 cf_have_ncuconfig=no
4143 if test "x${PKG_CONFIG:=none}" != xnone; then
4144 echo "$as_me:4144: checking pkg-config for $cf_ncuconfig_root" >&5
4145 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
4146 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
4147 echo "$as_me:4147: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6
4150 echo "$as_me:4150: checking if the $cf_ncuconfig_root package files work" >&5
4151 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
4152 cf_have_ncuconfig=unknown
4154 cf_save_CPPFLAGS="$CPPFLAGS"
4155 cf_save_LIBS="$LIBS"
4160 cf_new_extra_cppflags=
4162 for cf_add_cflags in `$PKG_CONFIG --cflags $cf_ncuconfig_root`
4164 case $cf_fix_cppflags in
4166 case $cf_add_cflags in
4167 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4168 case $cf_add_cflags in
4170 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4172 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4173 && test -z "${cf_tst_cflags}" \
4174 && cf_fix_cppflags=yes
4176 if test $cf_fix_cppflags = yes ; then
4178 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4179 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4182 elif test "${cf_tst_cflags}" = "\"'" ; then
4184 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4185 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4195 case $cf_add_cflags in
4197 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4199 CPPFLAGS=`echo "$CPPFLAGS" | \
4200 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4201 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4206 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4207 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4214 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4215 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4222 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4223 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4225 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4227 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4228 && test -z "${cf_tst_cflags}" \
4229 && cf_fix_cppflags=no
4234 if test -n "$cf_new_cflags" ; then
4236 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4237 CFLAGS="${CFLAGS}$cf_new_cflags"
4241 if test -n "$cf_new_cppflags" ; then
4243 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4244 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4248 if test -n "$cf_new_extra_cppflags" ; then
4250 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4251 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4258 for cf_add_1lib in `$PKG_CONFIG --libs $cf_ncuconfig_root`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
4260 for cf_add_1lib in $cf_add_0lib; do
4261 for cf_add_2lib in $cf_add_libs; do
4262 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
4267 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
4271 cat >conftest.$ac_ext <<_ACEOF
4272 #line 4272 "configure"
4273 #include "confdefs.h"
4274 #include <${cf_cv_ncurses_header:-curses.h}>
4278 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
4283 rm -f conftest.$ac_objext conftest$ac_exeext
4284 if { (eval echo "$as_me:4284: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4287 echo "$as_me:4287: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -s conftest$ac_exeext'
4290 { (eval echo "$as_me:4290: \"$ac_try\"") >&5
4293 echo "$as_me:4293: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 if test "$cross_compiling" = yes; then
4296 cf_have_ncuconfig=maybe
4298 cat >conftest.$ac_ext <<_ACEOF
4299 #line 4299 "configure"
4300 #include "confdefs.h"
4301 #include <${cf_cv_ncurses_header:-curses.h}>
4303 { char *xx = curses_version(); return (xx == 0); }
4305 rm -f conftest$ac_exeext
4306 if { (eval echo "$as_me:4306: \"$ac_link\"") >&5
4307 (eval $ac_link) 2>&5
4309 echo "$as_me:4309: \$? = $ac_status" >&5
4310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4311 { (eval echo "$as_me:4311: \"$ac_try\"") >&5
4314 echo "$as_me:4314: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 cf_have_ncuconfig=yes
4318 echo "$as_me: program exited with status $ac_status" >&5
4319 echo "$as_me: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 cf_have_ncuconfig=no
4323 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4326 echo "$as_me: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 cf_have_ncuconfig=no
4330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4331 echo "$as_me:4331: result: $cf_have_ncuconfig" >&5
4332 echo "${ECHO_T}$cf_have_ncuconfig" >&6
4333 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
4334 if test "$cf_have_ncuconfig" != "yes"
4336 CPPFLAGS="$cf_save_CPPFLAGS"
4337 LIBS="$cf_save_LIBS"
4338 NCURSES_CONFIG_PKG=none
4341 cat >>confdefs.h <<\EOF
4345 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
4347 echo "$as_me:4347: checking for terminfo header" >&5
4348 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4349 if test "${cf_cv_term_header+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 case ${cf_cv_ncurses_header} in
4354 (*/ncurses.h|*/ncursesw.h)
4355 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4358 cf_term_header=term.h
4362 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4364 cat >conftest.$ac_ext <<_ACEOF
4365 #line 4365 "configure"
4366 #include "confdefs.h"
4368 #include <${cf_cv_ncurses_header:-curses.h}>
4374 int x = auto_left_margin
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:4380: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4383 echo "$as_me:4383: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:4386: \"$ac_try\"") >&5
4389 echo "$as_me:4389: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4392 cf_cv_term_header="$cf_test"
4394 echo "$as_me: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4397 cf_cv_term_header=unknown
4400 rm -f conftest.$ac_objext conftest.$ac_ext
4401 test "$cf_cv_term_header" != unknown && break
4405 echo "$as_me:4405: result: $cf_cv_term_header" >&5
4406 echo "${ECHO_T}$cf_cv_term_header" >&6
4408 # Set definitions to allow ifdef'ing to accommodate subdirectories
4410 case $cf_cv_term_header in
4413 cat >>confdefs.h <<\EOF
4414 #define HAVE_TERM_H 1
4420 case $cf_cv_term_header in
4423 cat >>confdefs.h <<\EOF
4424 #define HAVE_NCURSES_TERM_H 1
4430 cat >>confdefs.h <<\EOF
4431 #define HAVE_NCURSESW_TERM_H 1
4440 echo "$as_me:4440: result: no" >&5
4441 echo "${ECHO_T}no" >&6
4442 NCURSES_CONFIG_PKG=none
4445 NCURSES_CONFIG_PKG=none
4448 if test "x$cf_have_ncuconfig" = "xno"; then
4449 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
4451 if test -n "$ac_tool_prefix"; then
4452 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4456 echo "$as_me:4456: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 if test -n "$NCURSES_CONFIG"; then
4462 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
4464 ac_save_IFS=$IFS; IFS=$ac_path_separator
4466 for ac_dir in $ac_dummy; do
4468 test -z "$ac_dir" && ac_dir=.
4469 $as_executable_p "$ac_dir/$ac_word" || continue
4470 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
4471 echo "$as_me:4471: found $ac_dir/$ac_word" >&5
4477 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
4478 if test -n "$NCURSES_CONFIG"; then
4479 echo "$as_me:4479: result: $NCURSES_CONFIG" >&5
4480 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4482 echo "$as_me:4482: result: no" >&5
4483 echo "${ECHO_T}no" >&6
4486 test -n "$NCURSES_CONFIG" && break
4489 if test -z "$NCURSES_CONFIG"; then
4490 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
4491 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4493 # Extract the first word of "$ac_prog", so it can be a program name with args.
4494 set dummy $ac_prog; ac_word=$2
4495 echo "$as_me:4495: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$ac_ct_NCURSES_CONFIG"; then
4501 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
4503 ac_save_IFS=$IFS; IFS=$ac_path_separator
4505 for ac_dir in $ac_dummy; do
4507 test -z "$ac_dir" && ac_dir=.
4508 $as_executable_p "$ac_dir/$ac_word" || continue
4509 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
4510 echo "$as_me:4510: found $ac_dir/$ac_word" >&5
4516 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
4517 if test -n "$ac_ct_NCURSES_CONFIG"; then
4518 echo "$as_me:4518: result: $ac_ct_NCURSES_CONFIG" >&5
4519 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
4521 echo "$as_me:4521: result: no" >&5
4522 echo "${ECHO_T}no" >&6
4525 test -n "$ac_ct_NCURSES_CONFIG" && break
4527 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
4529 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
4532 if test "$NCURSES_CONFIG" != none ; then
4537 cf_new_extra_cppflags=
4539 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
4541 case $cf_fix_cppflags in
4543 case $cf_add_cflags in
4544 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4545 case $cf_add_cflags in
4547 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4550 && test -z "${cf_tst_cflags}" \
4551 && cf_fix_cppflags=yes
4553 if test $cf_fix_cppflags = yes ; then
4555 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4556 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4559 elif test "${cf_tst_cflags}" = "\"'" ; then
4561 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4562 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4572 case $cf_add_cflags in
4574 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4576 CPPFLAGS=`echo "$CPPFLAGS" | \
4577 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4578 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4583 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4584 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4591 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4592 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4599 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4600 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4602 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4604 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4605 && test -z "${cf_tst_cflags}" \
4606 && cf_fix_cppflags=no
4611 if test -n "$cf_new_cflags" ; then
4613 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4614 CFLAGS="${CFLAGS}$cf_new_cflags"
4618 if test -n "$cf_new_cppflags" ; then
4620 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4621 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4625 if test -n "$cf_new_extra_cppflags" ; then
4627 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4628 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4635 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
4637 for cf_add_1lib in $cf_add_0lib; do
4638 for cf_add_2lib in $cf_add_libs; do
4639 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
4644 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
4648 # even with config script, some packages use no-override for curses.h
4650 echo "$as_me:4650: checking if we have identified curses headers" >&5
4651 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4652 if test "${cf_cv_ncurses_header+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 cf_cv_ncurses_header=none
4658 ncurses.h ncurses/ncurses.h \
4659 curses.h ncurses/curses.h
4661 cat >conftest.$ac_ext <<_ACEOF
4662 #line 4662 "configure"
4663 #include "confdefs.h"
4664 #include <${cf_header}>
4668 initscr(); tgoto("?", 0,0)
4673 rm -f conftest.$ac_objext
4674 if { (eval echo "$as_me:4674: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>&5
4677 echo "$as_me:4677: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:4680: \"$ac_try\"") >&5
4683 echo "$as_me:4683: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 cf_cv_ncurses_header=$cf_header; break
4687 echo "$as_me: failed program was:" >&5
4688 cat conftest.$ac_ext >&5
4690 rm -f conftest.$ac_objext conftest.$ac_ext
4694 echo "$as_me:4694: result: $cf_cv_ncurses_header" >&5
4695 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4697 if test "$cf_cv_ncurses_header" = none ; then
4698 { { echo "$as_me:4698: error: No curses header-files found" >&5
4699 echo "$as_me: error: No curses header-files found" >&2;}
4700 { (exit 1); exit 1; }; }
4703 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4705 for ac_header in $cf_cv_ncurses_header
4707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4708 echo "$as_me:4708: checking for $ac_header" >&5
4709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 cat >conftest.$ac_ext <<_ACEOF
4714 #line 4714 "configure"
4715 #include "confdefs.h"
4716 #include <$ac_header>
4718 if { (eval echo "$as_me:4718: \"$ac_cpp conftest.$ac_ext\"") >&5
4719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4721 egrep -v '^ *\+' conftest.er1 >conftest.err
4723 cat conftest.err >&5
4724 echo "$as_me:4724: \$? = $ac_status" >&5
4725 (exit $ac_status); } >/dev/null; then
4726 if test -s conftest.err; then
4727 ac_cpp_err=$ac_c_preproc_warn_flag
4734 if test -z "$ac_cpp_err"; then
4735 eval "$as_ac_Header=yes"
4737 echo "$as_me: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4739 eval "$as_ac_Header=no"
4741 rm -f conftest.err conftest.$ac_ext
4743 echo "$as_me:4743: result: `eval echo '${'$as_ac_Header'}'`" >&5
4744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4746 cat >>confdefs.h <<EOF
4747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753 cat >>confdefs.h <<\EOF
4757 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4759 cat >>confdefs.h <<EOF
4760 #define $cf_nculib_ROOT 1
4763 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4767 cf_ncuhdr_root=ncurses
4769 test -n "$cf_cv_curses_dir" && \
4770 test "$cf_cv_curses_dir" != "no" && { \
4772 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4773 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
4775 while test $cf_add_incdir != /usr/include
4777 if test -d $cf_add_incdir
4780 if test -n "$CFLAGS$CPPFLAGS" ; then
4781 # a loop is needed to ensure we can add subdirs of existing dirs
4782 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4783 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4784 cf_have_incdir=yes; break
4789 if test "$cf_have_incdir" = no ; then
4790 if test "$cf_add_incdir" = /usr/local/include ; then
4791 if test "$GCC" = yes
4793 cf_save_CPPFLAGS=$CPPFLAGS
4795 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4796 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
4798 cat >conftest.$ac_ext <<_ACEOF
4799 #line 4799 "configure"
4800 #include "confdefs.h"
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:4811: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4814 echo "$as_me:4814: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:4817: \"$ac_try\"") >&5
4820 echo "$as_me:4820: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4824 echo "$as_me: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4828 rm -f conftest.$ac_objext conftest.$ac_ext
4829 CPPFLAGS=$cf_save_CPPFLAGS
4834 if test "$cf_have_incdir" = no ; then
4835 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4837 echo "${as_me:-configure}:4837: testing adding $cf_add_incdir to include-path ..." 1>&5
4839 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4841 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4842 test "$cf_top_incdir" = "$cf_add_incdir" && break
4843 cf_add_incdir="$cf_top_incdir"
4856 echo "$as_me:4856: checking for $cf_ncuhdr_root header in include-path" >&5
4857 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4858 if test "${cf_cv_ncurses_h+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4863 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4864 for cf_header in $cf_header_list
4867 cat >conftest.$ac_ext <<_ACEOF
4868 #line 4868 "configure"
4869 #include "confdefs.h"
4871 #include <$cf_header>
4876 #ifdef NCURSES_VERSION
4878 printf("%s\n", NCURSES_VERSION);
4891 rm -f conftest.$ac_objext
4892 if { (eval echo "$as_me:4892: \"$ac_compile\"") >&5
4893 (eval $ac_compile) 2>&5
4895 echo "$as_me:4895: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:4898: \"$ac_try\"") >&5
4901 echo "$as_me:4901: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 cf_cv_ncurses_h=$cf_header
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4910 rm -f conftest.$ac_objext conftest.$ac_ext
4912 test "$cf_cv_ncurses_h" != no && break
4916 echo "$as_me:4916: result: $cf_cv_ncurses_h" >&5
4917 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4919 if test "$cf_cv_ncurses_h" != no ; then
4920 cf_cv_ncurses_header=$cf_cv_ncurses_h
4923 echo "$as_me:4923: checking for $cf_ncuhdr_root include-path" >&5
4924 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4925 if test "${cf_cv_ncurses_h2+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 test -n "$verbose" && echo
4933 # collect the current set of include-directories from compiler flags
4934 cf_header_path_list=""
4935 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4936 for cf_header_path in $CPPFLAGS $CFLAGS
4938 case $cf_header_path in
4940 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4942 test "x$cf_header_path" != "xNONE" && \
4943 test -d "$cf_header_path" && \
4945 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4946 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4947 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4948 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4949 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4950 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"
4953 cf_header_path_list="$cf_header_path_list $cf_search"
4959 # add the variations for the package we are looking for
4963 test "x$prefix" != "xNONE" && \
4964 test -d "$prefix" && \
4966 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4967 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4968 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4969 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4970 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4971 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4974 for cf_subdir_prefix in \
4983 test "x$cf_subdir_prefix" != "x$prefix" && \
4984 test -d "$cf_subdir_prefix" && \
4985 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
4986 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
4987 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
4988 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
4989 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
4990 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
4991 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"
4996 test "$includedir" != NONE && \
4997 test "$includedir" != "/usr/include" && \
4998 test -d "$includedir" && {
4999 test -d $includedir && cf_search="$cf_search $includedir"
5000 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
5003 test "$oldincludedir" != NONE && \
5004 test "$oldincludedir" != "/usr/include" && \
5005 test -d "$oldincludedir" && {
5006 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5007 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
5010 cf_search="$cf_search $cf_header_path_list"
5012 test -n "$verbose" && echo search path $cf_search
5013 cf_save2_CPPFLAGS="$CPPFLAGS"
5014 for cf_incdir in $cf_search
5017 if test -n "$cf_incdir" ; then
5018 for cf_add_incdir in $cf_incdir
5020 while test $cf_add_incdir != /usr/include
5022 if test -d $cf_add_incdir
5025 if test -n "$CFLAGS$CPPFLAGS" ; then
5026 # a loop is needed to ensure we can add subdirs of existing dirs
5027 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5028 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5029 cf_have_incdir=yes; break
5034 if test "$cf_have_incdir" = no ; then
5035 if test "$cf_add_incdir" = /usr/local/include ; then
5036 if test "$GCC" = yes
5038 cf_save_CPPFLAGS=$CPPFLAGS
5040 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5041 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line 5044 "configure"
5045 #include "confdefs.h"
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:5056: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>&5
5059 echo "$as_me:5059: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:5062: \"$ac_try\"") >&5
5065 echo "$as_me:5065: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5069 echo "$as_me: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5073 rm -f conftest.$ac_objext conftest.$ac_ext
5074 CPPFLAGS=$cf_save_CPPFLAGS
5079 if test "$cf_have_incdir" = no ; then
5080 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5082 echo "${as_me:-configure}:5082: testing adding $cf_add_incdir to include-path ..." 1>&5
5084 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5086 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5087 test "$cf_top_incdir" = "$cf_add_incdir" && break
5088 cf_add_incdir="$cf_top_incdir"
5104 cat >conftest.$ac_ext <<_ACEOF
5105 #line 5105 "configure"
5106 #include "confdefs.h"
5108 #include <$cf_header>
5113 #ifdef NCURSES_VERSION
5115 printf("%s\n", NCURSES_VERSION);
5128 rm -f conftest.$ac_objext
5129 if { (eval echo "$as_me:5129: \"$ac_compile\"") >&5
5130 (eval $ac_compile) 2>&5
5132 echo "$as_me:5132: \$? = $ac_status" >&5
5133 (exit $ac_status); } &&
5134 { ac_try='test -s conftest.$ac_objext'
5135 { (eval echo "$as_me:5135: \"$ac_try\"") >&5
5138 echo "$as_me:5138: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 cf_cv_ncurses_h2=$cf_header
5143 echo "$as_me: failed program was:" >&5
5144 cat conftest.$ac_ext >&5
5147 rm -f conftest.$ac_objext conftest.$ac_ext
5149 if test "$cf_cv_ncurses_h2" != no ; then
5150 cf_cv_ncurses_h2=$cf_incdir/$cf_header
5151 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
5154 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
5156 CPPFLAGS="$cf_save2_CPPFLAGS"
5157 test "$cf_cv_ncurses_h2" != no && break
5159 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:5159: error: not found" >&5
5160 echo "$as_me: error: not found" >&2;}
5161 { (exit 1); exit 1; }; }
5164 echo "$as_me:5164: result: $cf_cv_ncurses_h2" >&5
5165 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
5167 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
5168 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
5169 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
5170 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
5173 if test -n "$cf_1st_incdir" ; then
5174 for cf_add_incdir in $cf_1st_incdir
5176 while test $cf_add_incdir != /usr/include
5178 if test -d $cf_add_incdir
5181 if test -n "$CFLAGS$CPPFLAGS" ; then
5182 # a loop is needed to ensure we can add subdirs of existing dirs
5183 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5184 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5185 cf_have_incdir=yes; break
5190 if test "$cf_have_incdir" = no ; then
5191 if test "$cf_add_incdir" = /usr/local/include ; then
5192 if test "$GCC" = yes
5194 cf_save_CPPFLAGS=$CPPFLAGS
5196 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5197 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
5199 cat >conftest.$ac_ext <<_ACEOF
5200 #line 5200 "configure"
5201 #include "confdefs.h"
5211 rm -f conftest.$ac_objext
5212 if { (eval echo "$as_me:5212: \"$ac_compile\"") >&5
5213 (eval $ac_compile) 2>&5
5215 echo "$as_me:5215: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
5217 { ac_try='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:5218: \"$ac_try\"") >&5
5221 echo "$as_me:5221: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5225 echo "$as_me: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5229 rm -f conftest.$ac_objext conftest.$ac_ext
5230 CPPFLAGS=$cf_save_CPPFLAGS
5235 if test "$cf_have_incdir" = no ; then
5236 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5238 echo "${as_me:-configure}:5238: testing adding $cf_add_incdir to include-path ..." 1>&5
5240 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5242 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5243 test "$cf_top_incdir" = "$cf_add_incdir" && break
5244 cf_add_incdir="$cf_top_incdir"
5257 # Set definitions to allow ifdef'ing for ncurses.h
5259 case $cf_cv_ncurses_header in
5262 cat >>confdefs.h <<\EOF
5263 #define HAVE_NCURSES_H 1
5269 case $cf_cv_ncurses_header in
5270 (ncurses/curses.h|ncurses/ncurses.h)
5272 cat >>confdefs.h <<\EOF
5273 #define HAVE_NCURSES_NCURSES_H 1
5277 (ncursesw/curses.h|ncursesw/ncurses.h)
5279 cat >>confdefs.h <<\EOF
5280 #define HAVE_NCURSESW_NCURSES_H 1
5286 echo "$as_me:5286: checking for terminfo header" >&5
5287 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5288 if test "${cf_cv_term_header+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 case ${cf_cv_ncurses_header} in
5293 (*/ncurses.h|*/ncursesw.h)
5294 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5297 cf_term_header=term.h
5301 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5303 cat >conftest.$ac_ext <<_ACEOF
5304 #line 5304 "configure"
5305 #include "confdefs.h"
5307 #include <${cf_cv_ncurses_header:-curses.h}>
5313 int x = auto_left_margin
5318 rm -f conftest.$ac_objext
5319 if { (eval echo "$as_me:5319: \"$ac_compile\"") >&5
5320 (eval $ac_compile) 2>&5
5322 echo "$as_me:5322: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (eval echo "$as_me:5325: \"$ac_try\"") >&5
5328 echo "$as_me:5328: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5331 cf_cv_term_header="$cf_test"
5333 echo "$as_me: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5336 cf_cv_term_header=unknown
5339 rm -f conftest.$ac_objext conftest.$ac_ext
5340 test "$cf_cv_term_header" != unknown && break
5344 echo "$as_me:5344: result: $cf_cv_term_header" >&5
5345 echo "${ECHO_T}$cf_cv_term_header" >&6
5347 # Set definitions to allow ifdef'ing to accommodate subdirectories
5349 case $cf_cv_term_header in
5352 cat >>confdefs.h <<\EOF
5353 #define HAVE_TERM_H 1
5359 case $cf_cv_term_header in
5362 cat >>confdefs.h <<\EOF
5363 #define HAVE_NCURSES_TERM_H 1
5369 cat >>confdefs.h <<\EOF
5370 #define HAVE_NCURSESW_TERM_H 1
5376 # some applications need this, but should check for NCURSES_VERSION
5378 cat >>confdefs.h <<\EOF
5382 echo "$as_me:5382: checking for ncurses version" >&5
5383 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5384 if test "${cf_cv_ncurses_version+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 cf_cv_ncurses_version=no
5391 if test "$cross_compiling" = yes; then
5393 # This will not work if the preprocessor splits the line after the
5394 # Autoconf token. The 'unproto' program does that.
5395 cat > conftest.$ac_ext <<EOF
5396 #include <${cf_cv_ncurses_header:-curses.h}>
5398 #ifdef NCURSES_VERSION
5399 Autoconf NCURSES_VERSION
5407 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5408 { (eval echo "$as_me:5408: \"$cf_try\"") >&5
5411 echo "$as_me:5411: \$? = $ac_status" >&5
5412 (exit $ac_status); }
5413 if test -f conftest.out ; then
5414 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5415 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5420 cat >conftest.$ac_ext <<_ACEOF
5421 #line 5421 "configure"
5422 #include "confdefs.h"
5424 #include <${cf_cv_ncurses_header:-curses.h}>
5428 FILE *fp = fopen("$cf_tempfile", "w");
5429 #ifdef NCURSES_VERSION
5430 # ifdef NCURSES_VERSION_PATCH
5431 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5433 fprintf(fp, "%s\n", NCURSES_VERSION);
5437 fprintf(fp, "old\n");
5442 ${cf_cv_main_return:-return}(0);
5445 rm -f conftest$ac_exeext
5446 if { (eval echo "$as_me:5446: \"$ac_link\"") >&5
5447 (eval $ac_link) 2>&5
5449 echo "$as_me:5449: \$? = $ac_status" >&5
5450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5451 { (eval echo "$as_me:5451: \"$ac_try\"") >&5
5454 echo "$as_me:5454: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5457 cf_cv_ncurses_version=`cat $cf_tempfile`
5459 echo "$as_me: program exited with status $ac_status" >&5
5460 echo "$as_me: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5468 echo "$as_me:5468: result: $cf_cv_ncurses_version" >&5
5469 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5470 test "$cf_cv_ncurses_version" = no ||
5471 cat >>confdefs.h <<\EOF
5475 cf_nculib_root=ncurses
5476 # This works, except for the special case where we find gpm, but
5477 # ncurses is in a nonstandard location via $LIBS, and we really want
5480 cf_ncurses_SAVE="$LIBS"
5481 echo "$as_me:5481: checking for Gpm_Open in -lgpm" >&5
5482 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5483 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 ac_check_lib_save_LIBS=$LIBS
5488 cat >conftest.$ac_ext <<_ACEOF
5489 #line 5489 "configure"
5490 #include "confdefs.h"
5492 /* Override any gcc2 internal prototype to avoid an error. */
5496 /* We use char because int might match the return type of a gcc2
5497 builtin and then its argument prototype would still apply. */
5507 rm -f conftest.$ac_objext conftest$ac_exeext
5508 if { (eval echo "$as_me:5508: \"$ac_link\"") >&5
5509 (eval $ac_link) 2>&5
5511 echo "$as_me:5511: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -s conftest$ac_exeext'
5514 { (eval echo "$as_me:5514: \"$ac_try\"") >&5
5517 echo "$as_me:5517: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then
5519 ac_cv_lib_gpm_Gpm_Open=yes
5521 echo "$as_me: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5523 ac_cv_lib_gpm_Gpm_Open=no
5525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5526 LIBS=$ac_check_lib_save_LIBS
5528 echo "$as_me:5528: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5529 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5530 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5531 echo "$as_me:5531: checking for initscr in -lgpm" >&5
5532 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
5533 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 ac_check_lib_save_LIBS=$LIBS
5538 cat >conftest.$ac_ext <<_ACEOF
5539 #line 5539 "configure"
5540 #include "confdefs.h"
5542 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5557 rm -f conftest.$ac_objext conftest$ac_exeext
5558 if { (eval echo "$as_me:5558: \"$ac_link\"") >&5
5559 (eval $ac_link) 2>&5
5561 echo "$as_me:5561: \$? = $ac_status" >&5
5562 (exit $ac_status); } &&
5563 { ac_try='test -s conftest$ac_exeext'
5564 { (eval echo "$as_me:5564: \"$ac_try\"") >&5
5567 echo "$as_me:5567: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 ac_cv_lib_gpm_initscr=yes
5571 echo "$as_me: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5573 ac_cv_lib_gpm_initscr=no
5575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5576 LIBS=$ac_check_lib_save_LIBS
5578 echo "$as_me:5578: result: $ac_cv_lib_gpm_initscr" >&5
5579 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
5580 if test $ac_cv_lib_gpm_initscr = yes; then
5581 LIBS="$cf_ncurses_SAVE"
5583 cf_ncurses_LIBS="-lgpm"
5590 # This is only necessary if you are linking against an obsolete
5591 # version of ncurses (but it should do no harm, since it's static).
5592 if test "$cf_nculib_root" = ncurses ; then
5593 echo "$as_me:5593: checking for tgoto in -lmytinfo" >&5
5594 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5595 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 ac_check_lib_save_LIBS=$LIBS
5599 LIBS="-lmytinfo $LIBS"
5600 cat >conftest.$ac_ext <<_ACEOF
5601 #line 5601 "configure"
5602 #include "confdefs.h"
5604 /* Override any gcc2 internal prototype to avoid an error. */
5608 /* We use char because int might match the return type of a gcc2
5609 builtin and then its argument prototype would still apply. */
5619 rm -f conftest.$ac_objext conftest$ac_exeext
5620 if { (eval echo "$as_me:5620: \"$ac_link\"") >&5
5621 (eval $ac_link) 2>&5
5623 echo "$as_me:5623: \$? = $ac_status" >&5
5624 (exit $ac_status); } &&
5625 { ac_try='test -s conftest$ac_exeext'
5626 { (eval echo "$as_me:5626: \"$ac_try\"") >&5
5629 echo "$as_me:5629: \$? = $ac_status" >&5
5630 (exit $ac_status); }; }; then
5631 ac_cv_lib_mytinfo_tgoto=yes
5633 echo "$as_me: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5635 ac_cv_lib_mytinfo_tgoto=no
5637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5638 LIBS=$ac_check_lib_save_LIBS
5640 echo "$as_me:5640: result: $ac_cv_lib_mytinfo_tgoto" >&5
5641 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5642 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5643 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
5653 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5655 for cf_add_1lib in $cf_add_0lib; do
5656 for cf_add_2lib in $cf_add_libs; do
5657 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5662 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5666 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5672 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5674 for cf_add_1lib in $cf_add_0lib; do
5675 for cf_add_2lib in $cf_add_libs; do
5676 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5681 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5687 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
5689 echo "$as_me:5689: checking for initscr" >&5
5690 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5691 if test "${ac_cv_func_initscr+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line 5695 "configure"
5696 #include "confdefs.h"
5697 #define initscr autoconf_temporary
5698 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5707 char initscr (void);
5713 /* The GNU C library defines stubs for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_initscr) || defined (__stub___initscr)
5717 #error found stub for initscr
5725 rm -f conftest.$ac_objext conftest$ac_exeext
5726 if { (eval echo "$as_me:5726: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5729 echo "$as_me:5729: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:5732: \"$ac_try\"") >&5
5735 echo "$as_me:5735: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 ac_cv_func_initscr=yes
5739 echo "$as_me: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 ac_cv_func_initscr=no
5743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5745 echo "$as_me:5745: result: $ac_cv_func_initscr" >&5
5746 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5747 if test $ac_cv_func_initscr = yes; then
5748 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5751 cf_save_LIBS="$LIBS"
5752 echo "$as_me:5752: checking for initscr in -l$cf_nculib_root" >&5
5753 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
5754 LIBS="-l$cf_nculib_root $LIBS"
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line 5756 "configure"
5757 #include "confdefs.h"
5758 #include <${cf_cv_ncurses_header:-curses.h}>
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:5768: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>&5
5771 echo "$as_me:5771: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -s conftest$ac_exeext'
5774 { (eval echo "$as_me:5774: \"$ac_try\"") >&5
5777 echo "$as_me:5777: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 echo "$as_me:5779: result: yes" >&5
5780 echo "${ECHO_T}yes" >&6
5781 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5784 echo "$as_me: failed program was:" >&5
5785 cat conftest.$ac_ext >&5
5786 echo "$as_me:5786: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5790 cf_library_path_list=""
5791 if test -n "${LDFLAGS}${LIBS}" ; then
5792 for cf_library_path in $LDFLAGS $LIBS
5794 case $cf_library_path in
5796 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5798 test "x$cf_library_path" != "xNONE" && \
5799 test -d "$cf_library_path" && \
5801 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5802 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5803 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
5804 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
5805 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
5806 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"
5809 cf_library_path_list="$cf_library_path_list $cf_search"
5817 test "x$prefix" != "xNONE" && \
5818 test -d "$prefix" && \
5820 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5821 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5822 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
5823 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
5824 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
5825 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
5828 for cf_subdir_prefix in \
5837 test "x$cf_subdir_prefix" != "x$prefix" && \
5838 test -d "$cf_subdir_prefix" && \
5839 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
5840 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
5841 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
5842 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
5843 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
5844 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
5845 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"
5850 cf_search="$cf_library_path_list $cf_search"
5852 for cf_libdir in $cf_search
5854 echo "$as_me:5854: checking for -l$cf_nculib_root in $cf_libdir" >&5
5855 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
5856 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
5857 cat >conftest.$ac_ext <<_ACEOF
5858 #line 5858 "configure"
5859 #include "confdefs.h"
5860 #include <${cf_cv_ncurses_header:-curses.h}>
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (eval echo "$as_me:5870: \"$ac_link\"") >&5
5871 (eval $ac_link) 2>&5
5873 echo "$as_me:5873: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -s conftest$ac_exeext'
5876 { (eval echo "$as_me:5876: \"$ac_try\"") >&5
5879 echo "$as_me:5879: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 echo "$as_me:5881: result: yes" >&5
5882 echo "${ECHO_T}yes" >&6
5883 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5886 echo "$as_me: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5888 echo "$as_me:5888: result: no" >&5
5889 echo "${ECHO_T}no" >&6
5890 LIBS="$cf_save_LIBS"
5892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5900 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
5902 if test $cf_found_library = no ; then
5903 { { echo "$as_me:5903: error: Cannot link $cf_nculib_root library" >&5
5904 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
5905 { (exit 1); exit 1; }; }
5910 if test -n "$cf_ncurses_LIBS" ; then
5911 echo "$as_me:5911: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
5912 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
5913 cf_ncurses_SAVE="$LIBS"
5914 for p in $cf_ncurses_LIBS ; do
5915 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
5916 if test "$q" != "$LIBS" ; then
5920 cat >conftest.$ac_ext <<_ACEOF
5921 #line 5921 "configure"
5922 #include "confdefs.h"
5923 #include <${cf_cv_ncurses_header:-curses.h}>
5927 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
5932 rm -f conftest.$ac_objext conftest$ac_exeext
5933 if { (eval echo "$as_me:5933: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5936 echo "$as_me:5936: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -s conftest$ac_exeext'
5939 { (eval echo "$as_me:5939: \"$ac_try\"") >&5
5942 echo "$as_me:5942: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 echo "$as_me:5944: result: yes" >&5
5945 echo "${ECHO_T}yes" >&6
5947 echo "$as_me: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5949 echo "$as_me:5949: result: no" >&5
5950 echo "${ECHO_T}no" >&6
5951 LIBS="$cf_ncurses_SAVE"
5953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5956 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5958 cat >>confdefs.h <<EOF
5959 #define $cf_nculib_ROOT 1
5967 echo "$as_me:5967: checking if you want wide-character code" >&5
5968 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
5970 # Check whether --enable-widec or --disable-widec was given.
5971 if test "${enable_widec+set}" = set; then
5972 enableval="$enable_widec"
5973 with_widec=$enableval
5977 echo "$as_me:5977: result: $with_widec" >&5
5978 echo "${ECHO_T}$with_widec" >&6
5979 if test "$with_widec" = yes ; then
5981 echo "$as_me:5981: checking for multibyte character support" >&5
5982 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
5983 if test "${cf_cv_utf8_lib+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 cf_save_LIBS="$LIBS"
5988 cat >conftest.$ac_ext <<_ACEOF
5989 #line 5989 "configure"
5990 #include "confdefs.h"
6001 rm -f conftest.$ac_objext conftest$ac_exeext
6002 if { (eval echo "$as_me:6002: \"$ac_link\"") >&5
6003 (eval $ac_link) 2>&5
6005 echo "$as_me:6005: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -s conftest$ac_exeext'
6008 { (eval echo "$as_me:6008: \"$ac_try\"") >&5
6011 echo "$as_me:6011: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6015 echo "$as_me: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6018 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6019 # will be set on completion of the AC_TRY_LINK below.
6020 cf_cv_header_path_utf8=
6021 cf_cv_library_path_utf8=
6023 echo "${as_me:-configure}:6023: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
6025 cf_save_LIBS="$LIBS"
6027 cat >conftest.$ac_ext <<_ACEOF
6028 #line 6028 "configure"
6029 #include "confdefs.h"
6031 #include <libutf8.h>
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:6041: \"$ac_link\"") >&5
6042 (eval $ac_link) 2>&5
6044 echo "$as_me:6044: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:6047: \"$ac_try\"") >&5
6050 echo "$as_me:6050: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6053 cf_cv_find_linkage_utf8=yes
6054 cf_cv_header_path_utf8=/usr/include
6055 cf_cv_library_path_utf8=/usr/lib
6058 echo "$as_me: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 LIBS="-lutf8 $cf_save_LIBS"
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line 6064 "configure"
6065 #include "confdefs.h"
6067 #include <libutf8.h>
6076 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (eval echo "$as_me:6077: \"$ac_link\"") >&5
6078 (eval $ac_link) 2>&5
6080 echo "$as_me:6080: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -s conftest$ac_exeext'
6083 { (eval echo "$as_me:6083: \"$ac_try\"") >&5
6086 echo "$as_me:6086: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6089 cf_cv_find_linkage_utf8=yes
6090 cf_cv_header_path_utf8=/usr/include
6091 cf_cv_library_path_utf8=/usr/lib
6092 cf_cv_library_file_utf8="-lutf8"
6095 echo "$as_me: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6098 cf_cv_find_linkage_utf8=no
6099 LIBS="$cf_save_LIBS"
6101 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
6103 echo "${as_me:-configure}:6103: testing find linkage for utf8 library ..." 1>&5
6105 echo "${as_me:-configure}:6105: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
6107 cf_save_CPPFLAGS="$CPPFLAGS"
6108 cf_test_CPPFLAGS="$CPPFLAGS"
6112 # collect the current set of include-directories from compiler flags
6113 cf_header_path_list=""
6114 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6115 for cf_header_path in $CPPFLAGS $CFLAGS
6117 case $cf_header_path in
6119 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6121 test "x$cf_header_path" != "xNONE" && \
6122 test -d "$cf_header_path" && \
6124 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6125 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6126 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
6127 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
6128 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
6129 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
6132 cf_header_path_list="$cf_header_path_list $cf_search"
6138 # add the variations for the package we are looking for
6142 test "x$prefix" != "xNONE" && \
6143 test -d "$prefix" && \
6145 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6146 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6147 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
6148 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
6149 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
6150 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
6153 for cf_subdir_prefix in \
6162 test "x$cf_subdir_prefix" != "x$prefix" && \
6163 test -d "$cf_subdir_prefix" && \
6164 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6165 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6166 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
6167 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
6168 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
6169 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
6170 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
6175 test "$includedir" != NONE && \
6176 test "$includedir" != "/usr/include" && \
6177 test -d "$includedir" && {
6178 test -d $includedir && cf_search="$cf_search $includedir"
6179 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
6182 test "$oldincludedir" != NONE && \
6183 test "$oldincludedir" != "/usr/include" && \
6184 test -d "$oldincludedir" && {
6185 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6186 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
6189 cf_search="$cf_search $cf_header_path_list"
6191 for cf_cv_header_path_utf8 in $cf_search
6193 if test -d $cf_cv_header_path_utf8 ; then
6194 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
6196 echo "${as_me:-configure}:6196: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
6198 CPPFLAGS="$cf_save_CPPFLAGS"
6200 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6201 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
6203 cat >conftest.$ac_ext <<_ACEOF
6204 #line 6204 "configure"
6205 #include "confdefs.h"
6207 #include <libutf8.h>
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:6217: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>&5
6220 echo "$as_me:6220: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -s conftest.$ac_objext'
6223 { (eval echo "$as_me:6223: \"$ac_try\"") >&5
6226 echo "$as_me:6226: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6229 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
6231 echo "${as_me:-configure}:6231: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
6233 cf_cv_find_linkage_utf8=maybe
6234 cf_test_CPPFLAGS="$CPPFLAGS"
6237 echo "$as_me: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6240 CPPFLAGS="$cf_save_CPPFLAGS"
6243 rm -f conftest.$ac_objext conftest.$ac_ext
6247 if test "$cf_cv_find_linkage_utf8" = maybe ; then
6249 echo "${as_me:-configure}:6249: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
6251 cf_save_LIBS="$LIBS"
6252 cf_save_LDFLAGS="$LDFLAGS"
6254 if test "$cf_cv_find_linkage_utf8" != yes ; then
6257 cf_library_path_list=""
6258 if test -n "${LDFLAGS}${LIBS}" ; then
6259 for cf_library_path in $LDFLAGS $LIBS
6261 case $cf_library_path in
6263 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6265 test "x$cf_library_path" != "xNONE" && \
6266 test -d "$cf_library_path" && \
6268 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6269 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6270 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
6271 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
6272 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
6273 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
6276 cf_library_path_list="$cf_library_path_list $cf_search"
6284 test "x$prefix" != "xNONE" && \
6285 test -d "$prefix" && \
6287 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6288 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6289 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
6290 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
6291 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
6292 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
6295 for cf_subdir_prefix in \
6304 test "x$cf_subdir_prefix" != "x$prefix" && \
6305 test -d "$cf_subdir_prefix" && \
6306 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6307 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
6308 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
6309 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
6310 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
6311 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
6312 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
6317 cf_search="$cf_library_path_list $cf_search"
6319 for cf_cv_library_path_utf8 in $cf_search
6321 if test -d $cf_cv_library_path_utf8 ; then
6322 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
6324 echo "${as_me:-configure}:6324: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
6326 CPPFLAGS="$cf_test_CPPFLAGS"
6327 LIBS="-lutf8 $cf_save_LIBS"
6328 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
6329 cat >conftest.$ac_ext <<_ACEOF
6330 #line 6330 "configure"
6331 #include "confdefs.h"
6333 #include <libutf8.h>
6342 rm -f conftest.$ac_objext conftest$ac_exeext
6343 if { (eval echo "$as_me:6343: \"$ac_link\"") >&5
6344 (eval $ac_link) 2>&5
6346 echo "$as_me:6346: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -s conftest$ac_exeext'
6349 { (eval echo "$as_me:6349: \"$ac_try\"") >&5
6352 echo "$as_me:6352: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6355 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
6357 echo "${as_me:-configure}:6357: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
6359 cf_cv_find_linkage_utf8=yes
6360 cf_cv_library_file_utf8="-lutf8"
6363 echo "$as_me: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6366 CPPFLAGS="$cf_save_CPPFLAGS"
6367 LIBS="$cf_save_LIBS"
6368 LDFLAGS="$cf_save_LDFLAGS"
6371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6374 CPPFLAGS="$cf_save_CPPFLAGS"
6375 LDFLAGS="$cf_save_LDFLAGS"
6379 cf_cv_find_linkage_utf8=no
6383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6388 LIBS="$cf_save_LIBS"
6390 if test "$cf_cv_find_linkage_utf8" = yes ; then
6391 cf_cv_utf8_lib=add-on
6397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6399 echo "$as_me:6399: result: $cf_cv_utf8_lib" >&5
6400 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
6402 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
6404 if test "$cf_cv_utf8_lib" = "add-on" ; then
6406 cat >>confdefs.h <<\EOF
6407 #define HAVE_LIBUTF8_H 1
6410 if test -n "$cf_cv_header_path_utf8" ; then
6411 for cf_add_incdir in $cf_cv_header_path_utf8
6413 while test $cf_add_incdir != /usr/include
6415 if test -d $cf_add_incdir
6418 if test -n "$CFLAGS$CPPFLAGS" ; then
6419 # a loop is needed to ensure we can add subdirs of existing dirs
6420 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6421 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6422 cf_have_incdir=yes; break
6427 if test "$cf_have_incdir" = no ; then
6428 if test "$cf_add_incdir" = /usr/local/include ; then
6429 if test "$GCC" = yes
6431 cf_save_CPPFLAGS=$CPPFLAGS
6433 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6434 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line 6437 "configure"
6438 #include "confdefs.h"
6448 rm -f conftest.$ac_objext
6449 if { (eval echo "$as_me:6449: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>&5
6452 echo "$as_me:6452: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:6455: \"$ac_try\"") >&5
6458 echo "$as_me:6458: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6462 echo "$as_me: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6466 rm -f conftest.$ac_objext conftest.$ac_ext
6467 CPPFLAGS=$cf_save_CPPFLAGS
6472 if test "$cf_have_incdir" = no ; then
6473 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6475 echo "${as_me:-configure}:6475: testing adding $cf_add_incdir to include-path ..." 1>&5
6477 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6479 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6480 test "$cf_top_incdir" = "$cf_add_incdir" && break
6481 cf_add_incdir="$cf_top_incdir"
6492 if test -n "$cf_cv_library_path_utf8" ; then
6493 for cf_add_libdir in $cf_cv_library_path_utf8
6495 if test $cf_add_libdir = /usr/lib ; then
6497 elif test -d $cf_add_libdir
6500 if test -n "$LDFLAGS$LIBS" ; then
6501 # a loop is needed to ensure we can add subdirs of existing dirs
6502 for cf_test_libdir in $LDFLAGS $LIBS ; do
6503 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6504 cf_have_libdir=yes; break
6508 if test "$cf_have_libdir" = no ; then
6509 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6511 echo "${as_me:-configure}:6511: testing adding $cf_add_libdir to library-path ..." 1>&5
6513 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6522 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6524 for cf_add_1lib in $cf_add_0lib; do
6525 for cf_add_2lib in $cf_add_libs; do
6526 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6531 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6537 cf_ncuconfig_root=ncursesw
6538 cf_have_ncuconfig=no
6540 if test "x${PKG_CONFIG:=none}" != xnone; then
6541 echo "$as_me:6541: checking pkg-config for $cf_ncuconfig_root" >&5
6542 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
6543 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
6544 echo "$as_me:6544: result: yes" >&5
6545 echo "${ECHO_T}yes" >&6
6547 echo "$as_me:6547: checking if the $cf_ncuconfig_root package files work" >&5
6548 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
6549 cf_have_ncuconfig=unknown
6551 cf_save_CPPFLAGS="$CPPFLAGS"
6552 cf_save_LIBS="$LIBS"
6557 cf_new_extra_cppflags=
6559 for cf_add_cflags in `$PKG_CONFIG --cflags $cf_ncuconfig_root`
6561 case $cf_fix_cppflags in
6563 case $cf_add_cflags in
6564 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
6565 case $cf_add_cflags in
6567 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6569 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6570 && test -z "${cf_tst_cflags}" \
6571 && cf_fix_cppflags=yes
6573 if test $cf_fix_cppflags = yes ; then
6575 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6576 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6579 elif test "${cf_tst_cflags}" = "\"'" ; then
6581 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6582 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6592 case $cf_add_cflags in
6594 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6596 CPPFLAGS=`echo "$CPPFLAGS" | \
6597 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6598 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6603 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
6604 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
6611 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
6612 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
6619 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6620 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6622 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6624 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6625 && test -z "${cf_tst_cflags}" \
6626 && cf_fix_cppflags=no
6631 if test -n "$cf_new_cflags" ; then
6633 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
6634 CFLAGS="${CFLAGS}$cf_new_cflags"
6638 if test -n "$cf_new_cppflags" ; then
6640 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6641 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
6645 if test -n "$cf_new_extra_cppflags" ; then
6647 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
6648 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
6655 for cf_add_1lib in `$PKG_CONFIG --libs $cf_ncuconfig_root`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6657 for cf_add_1lib in $cf_add_0lib; do
6658 for cf_add_2lib in $cf_add_libs; do
6659 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6664 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6668 cat >conftest.$ac_ext <<_ACEOF
6669 #line 6669 "configure"
6670 #include "confdefs.h"
6671 #include <${cf_cv_ncurses_header:-curses.h}>
6675 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6680 rm -f conftest.$ac_objext conftest$ac_exeext
6681 if { (eval echo "$as_me:6681: \"$ac_link\"") >&5
6682 (eval $ac_link) 2>&5
6684 echo "$as_me:6684: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try='test -s conftest$ac_exeext'
6687 { (eval echo "$as_me:6687: \"$ac_try\"") >&5
6690 echo "$as_me:6690: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 if test "$cross_compiling" = yes; then
6693 cf_have_ncuconfig=maybe
6695 cat >conftest.$ac_ext <<_ACEOF
6696 #line 6696 "configure"
6697 #include "confdefs.h"
6698 #include <${cf_cv_ncurses_header:-curses.h}>
6700 { char *xx = curses_version(); return (xx == 0); }
6702 rm -f conftest$ac_exeext
6703 if { (eval echo "$as_me:6703: \"$ac_link\"") >&5
6704 (eval $ac_link) 2>&5
6706 echo "$as_me:6706: \$? = $ac_status" >&5
6707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6708 { (eval echo "$as_me:6708: \"$ac_try\"") >&5
6711 echo "$as_me:6711: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 cf_have_ncuconfig=yes
6715 echo "$as_me: program exited with status $ac_status" >&5
6716 echo "$as_me: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6718 cf_have_ncuconfig=no
6720 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6723 echo "$as_me: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6725 cf_have_ncuconfig=no
6727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6728 echo "$as_me:6728: result: $cf_have_ncuconfig" >&5
6729 echo "${ECHO_T}$cf_have_ncuconfig" >&6
6730 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
6731 if test "$cf_have_ncuconfig" != "yes"
6733 CPPFLAGS="$cf_save_CPPFLAGS"
6734 LIBS="$cf_save_LIBS"
6735 NCURSES_CONFIG_PKG=none
6738 cat >>confdefs.h <<\EOF
6742 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
6744 echo "$as_me:6744: checking for terminfo header" >&5
6745 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6746 if test "${cf_cv_term_header+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 case ${cf_cv_ncurses_header} in
6751 (*/ncurses.h|*/ncursesw.h)
6752 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6755 cf_term_header=term.h
6759 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6761 cat >conftest.$ac_ext <<_ACEOF
6762 #line 6762 "configure"
6763 #include "confdefs.h"
6765 #include <${cf_cv_ncurses_header:-curses.h}>
6771 int x = auto_left_margin
6776 rm -f conftest.$ac_objext
6777 if { (eval echo "$as_me:6777: \"$ac_compile\"") >&5
6778 (eval $ac_compile) 2>&5
6780 echo "$as_me:6780: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -s conftest.$ac_objext'
6783 { (eval echo "$as_me:6783: \"$ac_try\"") >&5
6786 echo "$as_me:6786: \$? = $ac_status" >&5
6787 (exit $ac_status); }; }; then
6789 cf_cv_term_header="$cf_test"
6791 echo "$as_me: failed program was:" >&5
6792 cat conftest.$ac_ext >&5
6794 cf_cv_term_header=unknown
6797 rm -f conftest.$ac_objext conftest.$ac_ext
6798 test "$cf_cv_term_header" != unknown && break
6802 echo "$as_me:6802: result: $cf_cv_term_header" >&5
6803 echo "${ECHO_T}$cf_cv_term_header" >&6
6805 # Set definitions to allow ifdef'ing to accommodate subdirectories
6807 case $cf_cv_term_header in
6810 cat >>confdefs.h <<\EOF
6811 #define HAVE_TERM_H 1
6817 case $cf_cv_term_header in
6820 cat >>confdefs.h <<\EOF
6821 #define HAVE_NCURSES_TERM_H 1
6827 cat >>confdefs.h <<\EOF
6828 #define HAVE_NCURSESW_TERM_H 1
6837 echo "$as_me:6837: result: no" >&5
6838 echo "${ECHO_T}no" >&6
6839 NCURSES_CONFIG_PKG=none
6842 NCURSES_CONFIG_PKG=none
6845 if test "x$cf_have_ncuconfig" = "xno"; then
6846 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
6848 if test -n "$ac_tool_prefix"; then
6849 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6853 echo "$as_me:6853: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6855 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 if test -n "$NCURSES_CONFIG"; then
6859 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
6861 ac_save_IFS=$IFS; IFS=$ac_path_separator
6863 for ac_dir in $ac_dummy; do
6865 test -z "$ac_dir" && ac_dir=.
6866 $as_executable_p "$ac_dir/$ac_word" || continue
6867 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
6868 echo "$as_me:6868: found $ac_dir/$ac_word" >&5
6874 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
6875 if test -n "$NCURSES_CONFIG"; then
6876 echo "$as_me:6876: result: $NCURSES_CONFIG" >&5
6877 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6879 echo "$as_me:6879: result: no" >&5
6880 echo "${ECHO_T}no" >&6
6883 test -n "$NCURSES_CONFIG" && break
6886 if test -z "$NCURSES_CONFIG"; then
6887 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
6888 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6890 # Extract the first word of "$ac_prog", so it can be a program name with args.
6891 set dummy $ac_prog; ac_word=$2
6892 echo "$as_me:6892: checking for $ac_word" >&5
6893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6894 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 if test -n "$ac_ct_NCURSES_CONFIG"; then
6898 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
6900 ac_save_IFS=$IFS; IFS=$ac_path_separator
6902 for ac_dir in $ac_dummy; do
6904 test -z "$ac_dir" && ac_dir=.
6905 $as_executable_p "$ac_dir/$ac_word" || continue
6906 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
6907 echo "$as_me:6907: found $ac_dir/$ac_word" >&5
6913 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
6914 if test -n "$ac_ct_NCURSES_CONFIG"; then
6915 echo "$as_me:6915: result: $ac_ct_NCURSES_CONFIG" >&5
6916 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
6918 echo "$as_me:6918: result: no" >&5
6919 echo "${ECHO_T}no" >&6
6922 test -n "$ac_ct_NCURSES_CONFIG" && break
6924 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
6926 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
6929 if test "$NCURSES_CONFIG" != none ; then
6934 cf_new_extra_cppflags=
6936 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
6938 case $cf_fix_cppflags in
6940 case $cf_add_cflags in
6941 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
6942 case $cf_add_cflags in
6944 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6946 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
6947 && test -z "${cf_tst_cflags}" \
6948 && cf_fix_cppflags=yes
6950 if test $cf_fix_cppflags = yes ; then
6952 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6953 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6956 elif test "${cf_tst_cflags}" = "\"'" ; then
6958 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6959 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6969 case $cf_add_cflags in
6971 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6973 CPPFLAGS=`echo "$CPPFLAGS" | \
6974 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6975 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6980 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
6981 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
6988 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
6989 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
6996 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
6997 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
6999 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7001 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7002 && test -z "${cf_tst_cflags}" \
7003 && cf_fix_cppflags=no
7008 if test -n "$cf_new_cflags" ; then
7010 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7011 CFLAGS="${CFLAGS}$cf_new_cflags"
7015 if test -n "$cf_new_cppflags" ; then
7017 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7018 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7022 if test -n "$cf_new_extra_cppflags" ; then
7024 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7025 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7032 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7034 for cf_add_1lib in $cf_add_0lib; do
7035 for cf_add_2lib in $cf_add_libs; do
7036 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7041 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7045 # even with config script, some packages use no-override for curses.h
7047 echo "$as_me:7047: checking if we have identified curses headers" >&5
7048 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7049 if test "${cf_cv_ncurses_header+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 cf_cv_ncurses_header=none
7055 ncurses.h ncursesw/ncurses.h \
7056 curses.h ncursesw/curses.h
7058 cat >conftest.$ac_ext <<_ACEOF
7059 #line 7059 "configure"
7060 #include "confdefs.h"
7061 #include <${cf_header}>
7065 initscr(); tgoto("?", 0,0)
7070 rm -f conftest.$ac_objext
7071 if { (eval echo "$as_me:7071: \"$ac_compile\"") >&5
7072 (eval $ac_compile) 2>&5
7074 echo "$as_me:7074: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -s conftest.$ac_objext'
7077 { (eval echo "$as_me:7077: \"$ac_try\"") >&5
7080 echo "$as_me:7080: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 cf_cv_ncurses_header=$cf_header; break
7084 echo "$as_me: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7087 rm -f conftest.$ac_objext conftest.$ac_ext
7091 echo "$as_me:7091: result: $cf_cv_ncurses_header" >&5
7092 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7094 if test "$cf_cv_ncurses_header" = none ; then
7095 { { echo "$as_me:7095: error: No curses header-files found" >&5
7096 echo "$as_me: error: No curses header-files found" >&2;}
7097 { (exit 1); exit 1; }; }
7100 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7102 for ac_header in $cf_cv_ncurses_header
7104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7105 echo "$as_me:7105: checking for $ac_header" >&5
7106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 cat >conftest.$ac_ext <<_ACEOF
7111 #line 7111 "configure"
7112 #include "confdefs.h"
7113 #include <$ac_header>
7115 if { (eval echo "$as_me:7115: \"$ac_cpp conftest.$ac_ext\"") >&5
7116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7118 egrep -v '^ *\+' conftest.er1 >conftest.err
7120 cat conftest.err >&5
7121 echo "$as_me:7121: \$? = $ac_status" >&5
7122 (exit $ac_status); } >/dev/null; then
7123 if test -s conftest.err; then
7124 ac_cpp_err=$ac_c_preproc_warn_flag
7131 if test -z "$ac_cpp_err"; then
7132 eval "$as_ac_Header=yes"
7134 echo "$as_me: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7136 eval "$as_ac_Header=no"
7138 rm -f conftest.err conftest.$ac_ext
7140 echo "$as_me:7140: result: `eval echo '${'$as_ac_Header'}'`" >&5
7141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7143 cat >>confdefs.h <<EOF
7144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7150 cat >>confdefs.h <<\EOF
7154 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7156 cat >>confdefs.h <<EOF
7157 #define $cf_nculib_ROOT 1
7160 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7164 cf_ncuhdr_root=ncursesw
7166 test -n "$cf_cv_curses_dir" && \
7167 test "$cf_cv_curses_dir" != "no" && { \
7169 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7170 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7172 while test $cf_add_incdir != /usr/include
7174 if test -d $cf_add_incdir
7177 if test -n "$CFLAGS$CPPFLAGS" ; then
7178 # a loop is needed to ensure we can add subdirs of existing dirs
7179 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7180 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7181 cf_have_incdir=yes; break
7186 if test "$cf_have_incdir" = no ; then
7187 if test "$cf_add_incdir" = /usr/local/include ; then
7188 if test "$GCC" = yes
7190 cf_save_CPPFLAGS=$CPPFLAGS
7192 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7193 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
7195 cat >conftest.$ac_ext <<_ACEOF
7196 #line 7196 "configure"
7197 #include "confdefs.h"
7207 rm -f conftest.$ac_objext
7208 if { (eval echo "$as_me:7208: \"$ac_compile\"") >&5
7209 (eval $ac_compile) 2>&5
7211 echo "$as_me:7211: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -s conftest.$ac_objext'
7214 { (eval echo "$as_me:7214: \"$ac_try\"") >&5
7217 echo "$as_me:7217: \$? = $ac_status" >&5
7218 (exit $ac_status); }; }; then
7221 echo "$as_me: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7225 rm -f conftest.$ac_objext conftest.$ac_ext
7226 CPPFLAGS=$cf_save_CPPFLAGS
7231 if test "$cf_have_incdir" = no ; then
7232 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7234 echo "${as_me:-configure}:7234: testing adding $cf_add_incdir to include-path ..." 1>&5
7236 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7238 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7239 test "$cf_top_incdir" = "$cf_add_incdir" && break
7240 cf_add_incdir="$cf_top_incdir"
7253 echo "$as_me:7253: checking for $cf_ncuhdr_root header in include-path" >&5
7254 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7255 if test "${cf_cv_ncurses_h+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7260 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7261 for cf_header in $cf_header_list
7264 cat >conftest.$ac_ext <<_ACEOF
7265 #line 7265 "configure"
7266 #include "confdefs.h"
7268 #define _XOPEN_SOURCE_EXTENDED
7269 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
7270 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
7272 #include <$cf_header>
7277 #ifdef NCURSES_VERSION
7283 printf("%s\n", NCURSES_VERSION);
7296 rm -f conftest.$ac_objext
7297 if { (eval echo "$as_me:7297: \"$ac_compile\"") >&5
7298 (eval $ac_compile) 2>&5
7300 echo "$as_me:7300: \$? = $ac_status" >&5
7301 (exit $ac_status); } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:7303: \"$ac_try\"") >&5
7306 echo "$as_me:7306: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 cf_cv_ncurses_h=$cf_header
7311 echo "$as_me: failed program was:" >&5
7312 cat conftest.$ac_ext >&5
7315 rm -f conftest.$ac_objext conftest.$ac_ext
7317 test "$cf_cv_ncurses_h" != no && break
7321 echo "$as_me:7321: result: $cf_cv_ncurses_h" >&5
7322 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7324 if test "$cf_cv_ncurses_h" != no ; then
7325 cf_cv_ncurses_header=$cf_cv_ncurses_h
7328 echo "$as_me:7328: checking for $cf_ncuhdr_root include-path" >&5
7329 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7330 if test "${cf_cv_ncurses_h2+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 test -n "$verbose" && echo
7338 # collect the current set of include-directories from compiler flags
7339 cf_header_path_list=""
7340 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7341 for cf_header_path in $CPPFLAGS $CFLAGS
7343 case $cf_header_path in
7345 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7347 test "x$cf_header_path" != "xNONE" && \
7348 test -d "$cf_header_path" && \
7350 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7351 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7352 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7353 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7354 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7355 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"
7358 cf_header_path_list="$cf_header_path_list $cf_search"
7364 # add the variations for the package we are looking for
7368 test "x$prefix" != "xNONE" && \
7369 test -d "$prefix" && \
7371 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7372 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7373 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
7374 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
7375 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
7376 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7379 for cf_subdir_prefix in \
7388 test "x$cf_subdir_prefix" != "x$prefix" && \
7389 test -d "$cf_subdir_prefix" && \
7390 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7391 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7392 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
7393 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
7394 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
7395 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
7396 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"
7401 test "$includedir" != NONE && \
7402 test "$includedir" != "/usr/include" && \
7403 test -d "$includedir" && {
7404 test -d $includedir && cf_search="$cf_search $includedir"
7405 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
7408 test "$oldincludedir" != NONE && \
7409 test "$oldincludedir" != "/usr/include" && \
7410 test -d "$oldincludedir" && {
7411 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7412 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
7415 cf_search="$cf_search $cf_header_path_list"
7417 test -n "$verbose" && echo search path $cf_search
7418 cf_save2_CPPFLAGS="$CPPFLAGS"
7419 for cf_incdir in $cf_search
7422 if test -n "$cf_incdir" ; then
7423 for cf_add_incdir in $cf_incdir
7425 while test $cf_add_incdir != /usr/include
7427 if test -d $cf_add_incdir
7430 if test -n "$CFLAGS$CPPFLAGS" ; then
7431 # a loop is needed to ensure we can add subdirs of existing dirs
7432 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7433 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7434 cf_have_incdir=yes; break
7439 if test "$cf_have_incdir" = no ; then
7440 if test "$cf_add_incdir" = /usr/local/include ; then
7441 if test "$GCC" = yes
7443 cf_save_CPPFLAGS=$CPPFLAGS
7445 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7446 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
7448 cat >conftest.$ac_ext <<_ACEOF
7449 #line 7449 "configure"
7450 #include "confdefs.h"
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:7461: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>&5
7464 echo "$as_me:7464: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -s conftest.$ac_objext'
7467 { (eval echo "$as_me:7467: \"$ac_try\"") >&5
7470 echo "$as_me:7470: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7474 echo "$as_me: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7478 rm -f conftest.$ac_objext conftest.$ac_ext
7479 CPPFLAGS=$cf_save_CPPFLAGS
7484 if test "$cf_have_incdir" = no ; then
7485 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7487 echo "${as_me:-configure}:7487: testing adding $cf_add_incdir to include-path ..." 1>&5
7489 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7491 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7492 test "$cf_top_incdir" = "$cf_add_incdir" && break
7493 cf_add_incdir="$cf_top_incdir"
7509 cat >conftest.$ac_ext <<_ACEOF
7510 #line 7510 "configure"
7511 #include "confdefs.h"
7513 #include <$cf_header>
7518 #ifdef NCURSES_VERSION
7520 printf("%s\n", NCURSES_VERSION);
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:7534: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>&5
7537 echo "$as_me:7537: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:7540: \"$ac_try\"") >&5
7543 echo "$as_me:7543: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 cf_cv_ncurses_h2=$cf_header
7548 echo "$as_me: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7552 rm -f conftest.$ac_objext conftest.$ac_ext
7554 if test "$cf_cv_ncurses_h2" != no ; then
7555 cf_cv_ncurses_h2=$cf_incdir/$cf_header
7556 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
7559 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
7561 CPPFLAGS="$cf_save2_CPPFLAGS"
7562 test "$cf_cv_ncurses_h2" != no && break
7564 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:7564: error: not found" >&5
7565 echo "$as_me: error: not found" >&2;}
7566 { (exit 1); exit 1; }; }
7569 echo "$as_me:7569: result: $cf_cv_ncurses_h2" >&5
7570 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
7572 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
7573 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
7574 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
7575 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
7578 if test -n "$cf_1st_incdir" ; then
7579 for cf_add_incdir in $cf_1st_incdir
7581 while test $cf_add_incdir != /usr/include
7583 if test -d $cf_add_incdir
7586 if test -n "$CFLAGS$CPPFLAGS" ; then
7587 # a loop is needed to ensure we can add subdirs of existing dirs
7588 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7589 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7590 cf_have_incdir=yes; break
7595 if test "$cf_have_incdir" = no ; then
7596 if test "$cf_add_incdir" = /usr/local/include ; then
7597 if test "$GCC" = yes
7599 cf_save_CPPFLAGS=$CPPFLAGS
7601 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7602 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
7604 cat >conftest.$ac_ext <<_ACEOF
7605 #line 7605 "configure"
7606 #include "confdefs.h"
7616 rm -f conftest.$ac_objext
7617 if { (eval echo "$as_me:7617: \"$ac_compile\"") >&5
7618 (eval $ac_compile) 2>&5
7620 echo "$as_me:7620: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:7623: \"$ac_try\"") >&5
7626 echo "$as_me:7626: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7630 echo "$as_me: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7634 rm -f conftest.$ac_objext conftest.$ac_ext
7635 CPPFLAGS=$cf_save_CPPFLAGS
7640 if test "$cf_have_incdir" = no ; then
7641 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7643 echo "${as_me:-configure}:7643: testing adding $cf_add_incdir to include-path ..." 1>&5
7645 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7647 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7648 test "$cf_top_incdir" = "$cf_add_incdir" && break
7649 cf_add_incdir="$cf_top_incdir"
7662 # Set definitions to allow ifdef'ing for ncurses.h
7664 case $cf_cv_ncurses_header in
7667 cat >>confdefs.h <<\EOF
7668 #define HAVE_NCURSES_H 1
7674 case $cf_cv_ncurses_header in
7675 (ncurses/curses.h|ncurses/ncurses.h)
7677 cat >>confdefs.h <<\EOF
7678 #define HAVE_NCURSES_NCURSES_H 1
7682 (ncursesw/curses.h|ncursesw/ncurses.h)
7684 cat >>confdefs.h <<\EOF
7685 #define HAVE_NCURSESW_NCURSES_H 1
7691 echo "$as_me:7691: checking for terminfo header" >&5
7692 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7693 if test "${cf_cv_term_header+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 case ${cf_cv_ncurses_header} in
7698 (*/ncurses.h|*/ncursesw.h)
7699 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7702 cf_term_header=term.h
7706 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line 7709 "configure"
7710 #include "confdefs.h"
7712 #include <${cf_cv_ncurses_header:-curses.h}>
7718 int x = auto_left_margin
7723 rm -f conftest.$ac_objext
7724 if { (eval echo "$as_me:7724: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>&5
7727 echo "$as_me:7727: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -s conftest.$ac_objext'
7730 { (eval echo "$as_me:7730: \"$ac_try\"") >&5
7733 echo "$as_me:7733: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7736 cf_cv_term_header="$cf_test"
7738 echo "$as_me: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7741 cf_cv_term_header=unknown
7744 rm -f conftest.$ac_objext conftest.$ac_ext
7745 test "$cf_cv_term_header" != unknown && break
7749 echo "$as_me:7749: result: $cf_cv_term_header" >&5
7750 echo "${ECHO_T}$cf_cv_term_header" >&6
7752 # Set definitions to allow ifdef'ing to accommodate subdirectories
7754 case $cf_cv_term_header in
7757 cat >>confdefs.h <<\EOF
7758 #define HAVE_TERM_H 1
7764 case $cf_cv_term_header in
7767 cat >>confdefs.h <<\EOF
7768 #define HAVE_NCURSES_TERM_H 1
7774 cat >>confdefs.h <<\EOF
7775 #define HAVE_NCURSESW_TERM_H 1
7781 # some applications need this, but should check for NCURSES_VERSION
7783 cat >>confdefs.h <<\EOF
7787 echo "$as_me:7787: checking for ncurses version" >&5
7788 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7789 if test "${cf_cv_ncurses_version+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 cf_cv_ncurses_version=no
7796 if test "$cross_compiling" = yes; then
7798 # This will not work if the preprocessor splits the line after the
7799 # Autoconf token. The 'unproto' program does that.
7800 cat > conftest.$ac_ext <<EOF
7801 #include <${cf_cv_ncurses_header:-curses.h}>
7803 #ifdef NCURSES_VERSION
7804 Autoconf NCURSES_VERSION
7812 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7813 { (eval echo "$as_me:7813: \"$cf_try\"") >&5
7816 echo "$as_me:7816: \$? = $ac_status" >&5
7817 (exit $ac_status); }
7818 if test -f conftest.out ; then
7819 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7820 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7825 cat >conftest.$ac_ext <<_ACEOF
7826 #line 7826 "configure"
7827 #include "confdefs.h"
7829 #include <${cf_cv_ncurses_header:-curses.h}>
7833 FILE *fp = fopen("$cf_tempfile", "w");
7834 #ifdef NCURSES_VERSION
7835 # ifdef NCURSES_VERSION_PATCH
7836 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7838 fprintf(fp, "%s\n", NCURSES_VERSION);
7842 fprintf(fp, "old\n");
7847 ${cf_cv_main_return:-return}(0);
7850 rm -f conftest$ac_exeext
7851 if { (eval echo "$as_me:7851: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>&5
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7856 { (eval echo "$as_me:7856: \"$ac_try\"") >&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7862 cf_cv_ncurses_version=`cat $cf_tempfile`
7864 echo "$as_me: program exited with status $ac_status" >&5
7865 echo "$as_me: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7868 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7873 echo "$as_me:7873: result: $cf_cv_ncurses_version" >&5
7874 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7875 test "$cf_cv_ncurses_version" = no ||
7876 cat >>confdefs.h <<\EOF
7880 cf_nculib_root=ncursesw
7881 # This works, except for the special case where we find gpm, but
7882 # ncurses is in a nonstandard location via $LIBS, and we really want
7885 cf_ncurses_SAVE="$LIBS"
7886 echo "$as_me:7886: checking for Gpm_Open in -lgpm" >&5
7887 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7888 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 ac_check_lib_save_LIBS=$LIBS
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line 7894 "configure"
7895 #include "confdefs.h"
7897 /* Override any gcc2 internal prototype to avoid an error. */
7901 /* We use char because int might match the return type of a gcc2
7902 builtin and then its argument prototype would still apply. */
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (eval echo "$as_me:7913: \"$ac_link\"") >&5
7914 (eval $ac_link) 2>&5
7916 echo "$as_me:7916: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -s conftest$ac_exeext'
7919 { (eval echo "$as_me:7919: \"$ac_try\"") >&5
7922 echo "$as_me:7922: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_lib_gpm_Gpm_Open=yes
7926 echo "$as_me: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7928 ac_cv_lib_gpm_Gpm_Open=no
7930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7931 LIBS=$ac_check_lib_save_LIBS
7933 echo "$as_me:7933: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7934 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7935 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7936 echo "$as_me:7936: checking for initscr in -lgpm" >&5
7937 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7938 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 ac_check_lib_save_LIBS=$LIBS
7943 cat >conftest.$ac_ext <<_ACEOF
7944 #line 7944 "configure"
7945 #include "confdefs.h"
7947 /* Override any gcc2 internal prototype to avoid an error. */
7951 /* We use char because int might match the return type of a gcc2
7952 builtin and then its argument prototype would still apply. */
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:7963: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>&5
7966 echo "$as_me:7966: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (eval echo "$as_me:7969: \"$ac_try\"") >&5
7972 echo "$as_me:7972: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_lib_gpm_initscr=yes
7976 echo "$as_me: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 ac_cv_lib_gpm_initscr=no
7980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7981 LIBS=$ac_check_lib_save_LIBS
7983 echo "$as_me:7983: result: $ac_cv_lib_gpm_initscr" >&5
7984 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7985 if test $ac_cv_lib_gpm_initscr = yes; then
7986 LIBS="$cf_ncurses_SAVE"
7988 cf_ncurses_LIBS="-lgpm"
7995 # This is only necessary if you are linking against an obsolete
7996 # version of ncurses (but it should do no harm, since it's static).
7997 if test "$cf_nculib_root" = ncurses ; then
7998 echo "$as_me:7998: checking for tgoto in -lmytinfo" >&5
7999 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8000 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 ac_check_lib_save_LIBS=$LIBS
8004 LIBS="-lmytinfo $LIBS"
8005 cat >conftest.$ac_ext <<_ACEOF
8006 #line 8006 "configure"
8007 #include "confdefs.h"
8009 /* Override any gcc2 internal prototype to avoid an error. */
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:8025: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>&5
8028 echo "$as_me:8028: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -s conftest$ac_exeext'
8031 { (eval echo "$as_me:8031: \"$ac_try\"") >&5
8034 echo "$as_me:8034: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_lib_mytinfo_tgoto=yes
8038 echo "$as_me: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8040 ac_cv_lib_mytinfo_tgoto=no
8042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8043 LIBS=$ac_check_lib_save_LIBS
8045 echo "$as_me:8045: result: $ac_cv_lib_mytinfo_tgoto" >&5
8046 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8047 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8048 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8058 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8060 for cf_add_1lib in $cf_add_0lib; do
8061 for cf_add_2lib in $cf_add_libs; do
8062 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8067 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8071 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8077 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8079 for cf_add_1lib in $cf_add_0lib; do
8080 for cf_add_2lib in $cf_add_libs; do
8081 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8086 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8092 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8094 echo "$as_me:8094: checking for initscr" >&5
8095 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8096 if test "${ac_cv_func_initscr+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line 8100 "configure"
8101 #include "confdefs.h"
8102 #define initscr autoconf_temporary
8103 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8112 char initscr (void);
8118 /* The GNU C library defines stubs for functions which it implements
8119 to always fail with ENOSYS. Some functions are actually named
8120 something starting with __ and the normal name is an alias. */
8121 #if defined (__stub_initscr) || defined (__stub___initscr)
8122 #error found stub for initscr
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (eval echo "$as_me:8131: \"$ac_link\"") >&5
8132 (eval $ac_link) 2>&5
8134 echo "$as_me:8134: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -s conftest$ac_exeext'
8137 { (eval echo "$as_me:8137: \"$ac_try\"") >&5
8140 echo "$as_me:8140: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 ac_cv_func_initscr=yes
8144 echo "$as_me: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8146 ac_cv_func_initscr=no
8148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8150 echo "$as_me:8150: result: $ac_cv_func_initscr" >&5
8151 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8152 if test $ac_cv_func_initscr = yes; then
8153 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8156 cf_save_LIBS="$LIBS"
8157 echo "$as_me:8157: checking for initscr in -l$cf_nculib_root" >&5
8158 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8159 LIBS="-l$cf_nculib_root $LIBS"
8160 cat >conftest.$ac_ext <<_ACEOF
8161 #line 8161 "configure"
8162 #include "confdefs.h"
8163 #include <${cf_cv_ncurses_header:-curses.h}>
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (eval echo "$as_me:8173: \"$ac_link\"") >&5
8174 (eval $ac_link) 2>&5
8176 echo "$as_me:8176: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (eval echo "$as_me:8179: \"$ac_try\"") >&5
8182 echo "$as_me:8182: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8184 echo "$as_me:8184: result: yes" >&5
8185 echo "${ECHO_T}yes" >&6
8186 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8189 echo "$as_me: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8191 echo "$as_me:8191: result: no" >&5
8192 echo "${ECHO_T}no" >&6
8195 cf_library_path_list=""
8196 if test -n "${LDFLAGS}${LIBS}" ; then
8197 for cf_library_path in $LDFLAGS $LIBS
8199 case $cf_library_path in
8201 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8203 test "x$cf_library_path" != "xNONE" && \
8204 test -d "$cf_library_path" && \
8206 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8207 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8208 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8209 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8210 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8211 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"
8214 cf_library_path_list="$cf_library_path_list $cf_search"
8222 test "x$prefix" != "xNONE" && \
8223 test -d "$prefix" && \
8225 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8226 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8227 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8228 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8229 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8230 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8233 for cf_subdir_prefix in \
8242 test "x$cf_subdir_prefix" != "x$prefix" && \
8243 test -d "$cf_subdir_prefix" && \
8244 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8245 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
8246 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
8247 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
8248 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
8249 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
8250 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"
8255 cf_search="$cf_library_path_list $cf_search"
8257 for cf_libdir in $cf_search
8259 echo "$as_me:8259: checking for -l$cf_nculib_root in $cf_libdir" >&5
8260 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8261 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8262 cat >conftest.$ac_ext <<_ACEOF
8263 #line 8263 "configure"
8264 #include "confdefs.h"
8265 #include <${cf_cv_ncurses_header:-curses.h}>
8274 rm -f conftest.$ac_objext conftest$ac_exeext
8275 if { (eval echo "$as_me:8275: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>&5
8278 echo "$as_me:8278: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:8281: \"$ac_try\"") >&5
8284 echo "$as_me:8284: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 echo "$as_me:8286: result: yes" >&5
8287 echo "${ECHO_T}yes" >&6
8288 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8291 echo "$as_me: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8293 echo "$as_me:8293: result: no" >&5
8294 echo "${ECHO_T}no" >&6
8295 LIBS="$cf_save_LIBS"
8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8305 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8307 if test $cf_found_library = no ; then
8308 { { echo "$as_me:8308: error: Cannot link $cf_nculib_root library" >&5
8309 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8310 { (exit 1); exit 1; }; }
8315 if test -n "$cf_ncurses_LIBS" ; then
8316 echo "$as_me:8316: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8317 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8318 cf_ncurses_SAVE="$LIBS"
8319 for p in $cf_ncurses_LIBS ; do
8320 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8321 if test "$q" != "$LIBS" ; then
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line 8326 "configure"
8327 #include "confdefs.h"
8328 #include <${cf_cv_ncurses_header:-curses.h}>
8332 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8337 rm -f conftest.$ac_objext conftest$ac_exeext
8338 if { (eval echo "$as_me:8338: \"$ac_link\"") >&5
8339 (eval $ac_link) 2>&5
8341 echo "$as_me:8341: \$? = $ac_status" >&5
8342 (exit $ac_status); } &&
8343 { ac_try='test -s conftest$ac_exeext'
8344 { (eval echo "$as_me:8344: \"$ac_try\"") >&5
8347 echo "$as_me:8347: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 echo "$as_me:8349: result: yes" >&5
8350 echo "${ECHO_T}yes" >&6
8352 echo "$as_me: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8354 echo "$as_me:8354: result: no" >&5
8355 echo "${ECHO_T}no" >&6
8356 LIBS="$cf_ncurses_SAVE"
8358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8361 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8363 cat >>confdefs.h <<EOF
8364 #define $cf_nculib_ROOT 1
8374 cf_ncuconfig_root=ncurses
8375 cf_have_ncuconfig=no
8377 if test "x${PKG_CONFIG:=none}" != xnone; then
8378 echo "$as_me:8378: checking pkg-config for $cf_ncuconfig_root" >&5
8379 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8380 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8381 echo "$as_me:8381: result: yes" >&5
8382 echo "${ECHO_T}yes" >&6
8384 echo "$as_me:8384: checking if the $cf_ncuconfig_root package files work" >&5
8385 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
8386 cf_have_ncuconfig=unknown
8388 cf_save_CPPFLAGS="$CPPFLAGS"
8389 cf_save_LIBS="$LIBS"
8394 cf_new_extra_cppflags=
8396 for cf_add_cflags in `$PKG_CONFIG --cflags $cf_ncuconfig_root`
8398 case $cf_fix_cppflags in
8400 case $cf_add_cflags in
8401 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8402 case $cf_add_cflags in
8404 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8406 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8407 && test -z "${cf_tst_cflags}" \
8408 && cf_fix_cppflags=yes
8410 if test $cf_fix_cppflags = yes ; then
8412 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8413 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8416 elif test "${cf_tst_cflags}" = "\"'" ; then
8418 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8419 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8429 case $cf_add_cflags in
8431 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8433 CPPFLAGS=`echo "$CPPFLAGS" | \
8434 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8435 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8440 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8441 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8448 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8449 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8456 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8457 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8459 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8461 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8462 && test -z "${cf_tst_cflags}" \
8463 && cf_fix_cppflags=no
8468 if test -n "$cf_new_cflags" ; then
8470 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8471 CFLAGS="${CFLAGS}$cf_new_cflags"
8475 if test -n "$cf_new_cppflags" ; then
8477 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8478 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8482 if test -n "$cf_new_extra_cppflags" ; then
8484 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8485 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8492 for cf_add_1lib in `$PKG_CONFIG --libs $cf_ncuconfig_root`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8494 for cf_add_1lib in $cf_add_0lib; do
8495 for cf_add_2lib in $cf_add_libs; do
8496 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8501 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8505 cat >conftest.$ac_ext <<_ACEOF
8506 #line 8506 "configure"
8507 #include "confdefs.h"
8508 #include <${cf_cv_ncurses_header:-curses.h}>
8512 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8517 rm -f conftest.$ac_objext conftest$ac_exeext
8518 if { (eval echo "$as_me:8518: \"$ac_link\"") >&5
8519 (eval $ac_link) 2>&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -s conftest$ac_exeext'
8524 { (eval echo "$as_me:8524: \"$ac_try\"") >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 if test "$cross_compiling" = yes; then
8530 cf_have_ncuconfig=maybe
8532 cat >conftest.$ac_ext <<_ACEOF
8533 #line 8533 "configure"
8534 #include "confdefs.h"
8535 #include <${cf_cv_ncurses_header:-curses.h}>
8537 { char *xx = curses_version(); return (xx == 0); }
8539 rm -f conftest$ac_exeext
8540 if { (eval echo "$as_me:8540: \"$ac_link\"") >&5
8541 (eval $ac_link) 2>&5
8543 echo "$as_me:8543: \$? = $ac_status" >&5
8544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8545 { (eval echo "$as_me:8545: \"$ac_try\"") >&5
8548 echo "$as_me:8548: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 cf_have_ncuconfig=yes
8552 echo "$as_me: program exited with status $ac_status" >&5
8553 echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8555 cf_have_ncuconfig=no
8557 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8560 echo "$as_me: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8562 cf_have_ncuconfig=no
8564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8565 echo "$as_me:8565: result: $cf_have_ncuconfig" >&5
8566 echo "${ECHO_T}$cf_have_ncuconfig" >&6
8567 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
8568 if test "$cf_have_ncuconfig" != "yes"
8570 CPPFLAGS="$cf_save_CPPFLAGS"
8571 LIBS="$cf_save_LIBS"
8572 NCURSES_CONFIG_PKG=none
8575 cat >>confdefs.h <<\EOF
8579 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
8581 echo "$as_me:8581: checking for terminfo header" >&5
8582 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8583 if test "${cf_cv_term_header+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 case ${cf_cv_ncurses_header} in
8588 (*/ncurses.h|*/ncursesw.h)
8589 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8592 cf_term_header=term.h
8596 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8598 cat >conftest.$ac_ext <<_ACEOF
8599 #line 8599 "configure"
8600 #include "confdefs.h"
8602 #include <${cf_cv_ncurses_header:-curses.h}>
8608 int x = auto_left_margin
8613 rm -f conftest.$ac_objext
8614 if { (eval echo "$as_me:8614: \"$ac_compile\"") >&5
8615 (eval $ac_compile) 2>&5
8617 echo "$as_me:8617: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:8620: \"$ac_try\"") >&5
8623 echo "$as_me:8623: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8626 cf_cv_term_header="$cf_test"
8628 echo "$as_me: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8631 cf_cv_term_header=unknown
8634 rm -f conftest.$ac_objext conftest.$ac_ext
8635 test "$cf_cv_term_header" != unknown && break
8639 echo "$as_me:8639: result: $cf_cv_term_header" >&5
8640 echo "${ECHO_T}$cf_cv_term_header" >&6
8642 # Set definitions to allow ifdef'ing to accommodate subdirectories
8644 case $cf_cv_term_header in
8647 cat >>confdefs.h <<\EOF
8648 #define HAVE_TERM_H 1
8654 case $cf_cv_term_header in
8657 cat >>confdefs.h <<\EOF
8658 #define HAVE_NCURSES_TERM_H 1
8664 cat >>confdefs.h <<\EOF
8665 #define HAVE_NCURSESW_TERM_H 1
8674 echo "$as_me:8674: result: no" >&5
8675 echo "${ECHO_T}no" >&6
8676 NCURSES_CONFIG_PKG=none
8679 NCURSES_CONFIG_PKG=none
8682 if test "x$cf_have_ncuconfig" = "xno"; then
8683 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
8685 if test -n "$ac_tool_prefix"; then
8686 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8690 echo "$as_me:8690: checking for $ac_word" >&5
8691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8692 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 if test -n "$NCURSES_CONFIG"; then
8696 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8698 ac_save_IFS=$IFS; IFS=$ac_path_separator
8700 for ac_dir in $ac_dummy; do
8702 test -z "$ac_dir" && ac_dir=.
8703 $as_executable_p "$ac_dir/$ac_word" || continue
8704 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8705 echo "$as_me:8705: found $ac_dir/$ac_word" >&5
8711 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8712 if test -n "$NCURSES_CONFIG"; then
8713 echo "$as_me:8713: result: $NCURSES_CONFIG" >&5
8714 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8716 echo "$as_me:8716: result: no" >&5
8717 echo "${ECHO_T}no" >&6
8720 test -n "$NCURSES_CONFIG" && break
8723 if test -z "$NCURSES_CONFIG"; then
8724 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8725 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8727 # Extract the first word of "$ac_prog", so it can be a program name with args.
8728 set dummy $ac_prog; ac_word=$2
8729 echo "$as_me:8729: checking for $ac_word" >&5
8730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8731 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 if test -n "$ac_ct_NCURSES_CONFIG"; then
8735 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8737 ac_save_IFS=$IFS; IFS=$ac_path_separator
8739 for ac_dir in $ac_dummy; do
8741 test -z "$ac_dir" && ac_dir=.
8742 $as_executable_p "$ac_dir/$ac_word" || continue
8743 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8744 echo "$as_me:8744: found $ac_dir/$ac_word" >&5
8750 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8751 if test -n "$ac_ct_NCURSES_CONFIG"; then
8752 echo "$as_me:8752: result: $ac_ct_NCURSES_CONFIG" >&5
8753 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8755 echo "$as_me:8755: result: no" >&5
8756 echo "${ECHO_T}no" >&6
8759 test -n "$ac_ct_NCURSES_CONFIG" && break
8761 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8763 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8766 if test "$NCURSES_CONFIG" != none ; then
8771 cf_new_extra_cppflags=
8773 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
8775 case $cf_fix_cppflags in
8777 case $cf_add_cflags in
8778 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8779 case $cf_add_cflags in
8781 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8783 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8784 && test -z "${cf_tst_cflags}" \
8785 && cf_fix_cppflags=yes
8787 if test $cf_fix_cppflags = yes ; then
8789 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8790 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8793 elif test "${cf_tst_cflags}" = "\"'" ; then
8795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8806 case $cf_add_cflags in
8808 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8810 CPPFLAGS=`echo "$CPPFLAGS" | \
8811 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8812 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8817 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8818 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8825 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8826 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8833 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8834 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8836 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8838 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8839 && test -z "${cf_tst_cflags}" \
8840 && cf_fix_cppflags=no
8845 if test -n "$cf_new_cflags" ; then
8847 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8848 CFLAGS="${CFLAGS}$cf_new_cflags"
8852 if test -n "$cf_new_cppflags" ; then
8854 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8855 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8859 if test -n "$cf_new_extra_cppflags" ; then
8861 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8862 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8869 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8871 for cf_add_1lib in $cf_add_0lib; do
8872 for cf_add_2lib in $cf_add_libs; do
8873 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8878 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8882 # even with config script, some packages use no-override for curses.h
8884 echo "$as_me:8884: checking if we have identified curses headers" >&5
8885 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8886 if test "${cf_cv_ncurses_header+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 cf_cv_ncurses_header=none
8892 ncurses.h ncurses/ncurses.h \
8893 curses.h ncurses/curses.h
8895 cat >conftest.$ac_ext <<_ACEOF
8896 #line 8896 "configure"
8897 #include "confdefs.h"
8898 #include <${cf_header}>
8902 initscr(); tgoto("?", 0,0)
8907 rm -f conftest.$ac_objext
8908 if { (eval echo "$as_me:8908: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>&5
8911 echo "$as_me:8911: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -s conftest.$ac_objext'
8914 { (eval echo "$as_me:8914: \"$ac_try\"") >&5
8917 echo "$as_me:8917: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 cf_cv_ncurses_header=$cf_header; break
8921 echo "$as_me: failed program was:" >&5
8922 cat conftest.$ac_ext >&5
8924 rm -f conftest.$ac_objext conftest.$ac_ext
8928 echo "$as_me:8928: result: $cf_cv_ncurses_header" >&5
8929 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8931 if test "$cf_cv_ncurses_header" = none ; then
8932 { { echo "$as_me:8932: error: No curses header-files found" >&5
8933 echo "$as_me: error: No curses header-files found" >&2;}
8934 { (exit 1); exit 1; }; }
8937 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8939 for ac_header in $cf_cv_ncurses_header
8941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8942 echo "$as_me:8942: checking for $ac_header" >&5
8943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 cat >conftest.$ac_ext <<_ACEOF
8948 #line 8948 "configure"
8949 #include "confdefs.h"
8950 #include <$ac_header>
8952 if { (eval echo "$as_me:8952: \"$ac_cpp conftest.$ac_ext\"") >&5
8953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8955 egrep -v '^ *\+' conftest.er1 >conftest.err
8957 cat conftest.err >&5
8958 echo "$as_me:8958: \$? = $ac_status" >&5
8959 (exit $ac_status); } >/dev/null; then
8960 if test -s conftest.err; then
8961 ac_cpp_err=$ac_c_preproc_warn_flag
8968 if test -z "$ac_cpp_err"; then
8969 eval "$as_ac_Header=yes"
8971 echo "$as_me: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 eval "$as_ac_Header=no"
8975 rm -f conftest.err conftest.$ac_ext
8977 echo "$as_me:8977: result: `eval echo '${'$as_ac_Header'}'`" >&5
8978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8980 cat >>confdefs.h <<EOF
8981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8987 cat >>confdefs.h <<\EOF
8991 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8993 cat >>confdefs.h <<EOF
8994 #define $cf_nculib_ROOT 1
8997 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
9001 cf_ncuhdr_root=ncurses
9003 test -n "$cf_cv_curses_dir" && \
9004 test "$cf_cv_curses_dir" != "no" && { \
9006 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
9007 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
9009 while test $cf_add_incdir != /usr/include
9011 if test -d $cf_add_incdir
9014 if test -n "$CFLAGS$CPPFLAGS" ; then
9015 # a loop is needed to ensure we can add subdirs of existing dirs
9016 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9017 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9018 cf_have_incdir=yes; break
9023 if test "$cf_have_incdir" = no ; then
9024 if test "$cf_add_incdir" = /usr/local/include ; then
9025 if test "$GCC" = yes
9027 cf_save_CPPFLAGS=$CPPFLAGS
9029 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9030 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9032 cat >conftest.$ac_ext <<_ACEOF
9033 #line 9033 "configure"
9034 #include "confdefs.h"
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:9045: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>&5
9048 echo "$as_me:9048: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:9051: \"$ac_try\"") >&5
9054 echo "$as_me:9054: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9058 echo "$as_me: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9062 rm -f conftest.$ac_objext conftest.$ac_ext
9063 CPPFLAGS=$cf_save_CPPFLAGS
9068 if test "$cf_have_incdir" = no ; then
9069 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9071 echo "${as_me:-configure}:9071: testing adding $cf_add_incdir to include-path ..." 1>&5
9073 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9075 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9076 test "$cf_top_incdir" = "$cf_add_incdir" && break
9077 cf_add_incdir="$cf_top_incdir"
9090 echo "$as_me:9090: checking for $cf_ncuhdr_root header in include-path" >&5
9091 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
9092 if test "${cf_cv_ncurses_h+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
9097 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
9098 for cf_header in $cf_header_list
9101 cat >conftest.$ac_ext <<_ACEOF
9102 #line 9102 "configure"
9103 #include "confdefs.h"
9105 #include <$cf_header>
9110 #ifdef NCURSES_VERSION
9112 printf("%s\n", NCURSES_VERSION);
9125 rm -f conftest.$ac_objext
9126 if { (eval echo "$as_me:9126: \"$ac_compile\"") >&5
9127 (eval $ac_compile) 2>&5
9129 echo "$as_me:9129: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (eval echo "$as_me:9132: \"$ac_try\"") >&5
9135 echo "$as_me:9135: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 cf_cv_ncurses_h=$cf_header
9140 echo "$as_me: failed program was:" >&5
9141 cat conftest.$ac_ext >&5
9144 rm -f conftest.$ac_objext conftest.$ac_ext
9146 test "$cf_cv_ncurses_h" != no && break
9150 echo "$as_me:9150: result: $cf_cv_ncurses_h" >&5
9151 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
9153 if test "$cf_cv_ncurses_h" != no ; then
9154 cf_cv_ncurses_header=$cf_cv_ncurses_h
9157 echo "$as_me:9157: checking for $cf_ncuhdr_root include-path" >&5
9158 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
9159 if test "${cf_cv_ncurses_h2+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 test -n "$verbose" && echo
9167 # collect the current set of include-directories from compiler flags
9168 cf_header_path_list=""
9169 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9170 for cf_header_path in $CPPFLAGS $CFLAGS
9172 case $cf_header_path in
9174 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9176 test "x$cf_header_path" != "xNONE" && \
9177 test -d "$cf_header_path" && \
9179 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9180 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9181 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
9182 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
9183 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
9184 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"
9187 cf_header_path_list="$cf_header_path_list $cf_search"
9193 # add the variations for the package we are looking for
9197 test "x$prefix" != "xNONE" && \
9198 test -d "$prefix" && \
9200 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9201 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9202 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
9203 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
9204 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
9205 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9208 for cf_subdir_prefix in \
9217 test "x$cf_subdir_prefix" != "x$prefix" && \
9218 test -d "$cf_subdir_prefix" && \
9219 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9220 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9221 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9222 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
9223 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
9224 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
9225 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"
9230 test "$includedir" != NONE && \
9231 test "$includedir" != "/usr/include" && \
9232 test -d "$includedir" && {
9233 test -d $includedir && cf_search="$cf_search $includedir"
9234 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
9237 test "$oldincludedir" != NONE && \
9238 test "$oldincludedir" != "/usr/include" && \
9239 test -d "$oldincludedir" && {
9240 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9241 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
9244 cf_search="$cf_search $cf_header_path_list"
9246 test -n "$verbose" && echo search path $cf_search
9247 cf_save2_CPPFLAGS="$CPPFLAGS"
9248 for cf_incdir in $cf_search
9251 if test -n "$cf_incdir" ; then
9252 for cf_add_incdir in $cf_incdir
9254 while test $cf_add_incdir != /usr/include
9256 if test -d $cf_add_incdir
9259 if test -n "$CFLAGS$CPPFLAGS" ; then
9260 # a loop is needed to ensure we can add subdirs of existing dirs
9261 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9262 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9263 cf_have_incdir=yes; break
9268 if test "$cf_have_incdir" = no ; then
9269 if test "$cf_add_incdir" = /usr/local/include ; then
9270 if test "$GCC" = yes
9272 cf_save_CPPFLAGS=$CPPFLAGS
9274 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9275 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9277 cat >conftest.$ac_ext <<_ACEOF
9278 #line 9278 "configure"
9279 #include "confdefs.h"
9289 rm -f conftest.$ac_objext
9290 if { (eval echo "$as_me:9290: \"$ac_compile\"") >&5
9291 (eval $ac_compile) 2>&5
9293 echo "$as_me:9293: \$? = $ac_status" >&5
9294 (exit $ac_status); } &&
9295 { ac_try='test -s conftest.$ac_objext'
9296 { (eval echo "$as_me:9296: \"$ac_try\"") >&5
9299 echo "$as_me:9299: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9303 echo "$as_me: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9307 rm -f conftest.$ac_objext conftest.$ac_ext
9308 CPPFLAGS=$cf_save_CPPFLAGS
9313 if test "$cf_have_incdir" = no ; then
9314 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9316 echo "${as_me:-configure}:9316: testing adding $cf_add_incdir to include-path ..." 1>&5
9318 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9320 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9321 test "$cf_top_incdir" = "$cf_add_incdir" && break
9322 cf_add_incdir="$cf_top_incdir"
9338 cat >conftest.$ac_ext <<_ACEOF
9339 #line 9339 "configure"
9340 #include "confdefs.h"
9342 #include <$cf_header>
9347 #ifdef NCURSES_VERSION
9349 printf("%s\n", NCURSES_VERSION);
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:9363: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>&5
9366 echo "$as_me:9366: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -s conftest.$ac_objext'
9369 { (eval echo "$as_me:9369: \"$ac_try\"") >&5
9372 echo "$as_me:9372: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 cf_cv_ncurses_h2=$cf_header
9377 echo "$as_me: failed program was:" >&5
9378 cat conftest.$ac_ext >&5
9381 rm -f conftest.$ac_objext conftest.$ac_ext
9383 if test "$cf_cv_ncurses_h2" != no ; then
9384 cf_cv_ncurses_h2=$cf_incdir/$cf_header
9385 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
9388 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
9390 CPPFLAGS="$cf_save2_CPPFLAGS"
9391 test "$cf_cv_ncurses_h2" != no && break
9393 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9393: error: not found" >&5
9394 echo "$as_me: error: not found" >&2;}
9395 { (exit 1); exit 1; }; }
9398 echo "$as_me:9398: result: $cf_cv_ncurses_h2" >&5
9399 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
9401 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
9402 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
9403 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
9404 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
9407 if test -n "$cf_1st_incdir" ; then
9408 for cf_add_incdir in $cf_1st_incdir
9410 while test $cf_add_incdir != /usr/include
9412 if test -d $cf_add_incdir
9415 if test -n "$CFLAGS$CPPFLAGS" ; then
9416 # a loop is needed to ensure we can add subdirs of existing dirs
9417 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9418 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9419 cf_have_incdir=yes; break
9424 if test "$cf_have_incdir" = no ; then
9425 if test "$cf_add_incdir" = /usr/local/include ; then
9426 if test "$GCC" = yes
9428 cf_save_CPPFLAGS=$CPPFLAGS
9430 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9431 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9433 cat >conftest.$ac_ext <<_ACEOF
9434 #line 9434 "configure"
9435 #include "confdefs.h"
9445 rm -f conftest.$ac_objext
9446 if { (eval echo "$as_me:9446: \"$ac_compile\"") >&5
9447 (eval $ac_compile) 2>&5
9449 echo "$as_me:9449: \$? = $ac_status" >&5
9450 (exit $ac_status); } &&
9451 { ac_try='test -s conftest.$ac_objext'
9452 { (eval echo "$as_me:9452: \"$ac_try\"") >&5
9455 echo "$as_me:9455: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9459 echo "$as_me: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9463 rm -f conftest.$ac_objext conftest.$ac_ext
9464 CPPFLAGS=$cf_save_CPPFLAGS
9469 if test "$cf_have_incdir" = no ; then
9470 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9472 echo "${as_me:-configure}:9472: testing adding $cf_add_incdir to include-path ..." 1>&5
9474 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9476 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9477 test "$cf_top_incdir" = "$cf_add_incdir" && break
9478 cf_add_incdir="$cf_top_incdir"
9491 # Set definitions to allow ifdef'ing for ncurses.h
9493 case $cf_cv_ncurses_header in
9496 cat >>confdefs.h <<\EOF
9497 #define HAVE_NCURSES_H 1
9503 case $cf_cv_ncurses_header in
9504 (ncurses/curses.h|ncurses/ncurses.h)
9506 cat >>confdefs.h <<\EOF
9507 #define HAVE_NCURSES_NCURSES_H 1
9511 (ncursesw/curses.h|ncursesw/ncurses.h)
9513 cat >>confdefs.h <<\EOF
9514 #define HAVE_NCURSESW_NCURSES_H 1
9520 echo "$as_me:9520: checking for terminfo header" >&5
9521 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9522 if test "${cf_cv_term_header+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 case ${cf_cv_ncurses_header} in
9527 (*/ncurses.h|*/ncursesw.h)
9528 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9531 cf_term_header=term.h
9535 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9537 cat >conftest.$ac_ext <<_ACEOF
9538 #line 9538 "configure"
9539 #include "confdefs.h"
9541 #include <${cf_cv_ncurses_header:-curses.h}>
9547 int x = auto_left_margin
9552 rm -f conftest.$ac_objext
9553 if { (eval echo "$as_me:9553: \"$ac_compile\"") >&5
9554 (eval $ac_compile) 2>&5
9556 echo "$as_me:9556: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -s conftest.$ac_objext'
9559 { (eval echo "$as_me:9559: \"$ac_try\"") >&5
9562 echo "$as_me:9562: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9565 cf_cv_term_header="$cf_test"
9567 echo "$as_me: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9570 cf_cv_term_header=unknown
9573 rm -f conftest.$ac_objext conftest.$ac_ext
9574 test "$cf_cv_term_header" != unknown && break
9578 echo "$as_me:9578: result: $cf_cv_term_header" >&5
9579 echo "${ECHO_T}$cf_cv_term_header" >&6
9581 # Set definitions to allow ifdef'ing to accommodate subdirectories
9583 case $cf_cv_term_header in
9586 cat >>confdefs.h <<\EOF
9587 #define HAVE_TERM_H 1
9593 case $cf_cv_term_header in
9596 cat >>confdefs.h <<\EOF
9597 #define HAVE_NCURSES_TERM_H 1
9603 cat >>confdefs.h <<\EOF
9604 #define HAVE_NCURSESW_TERM_H 1
9610 # some applications need this, but should check for NCURSES_VERSION
9612 cat >>confdefs.h <<\EOF
9616 echo "$as_me:9616: checking for ncurses version" >&5
9617 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
9618 if test "${cf_cv_ncurses_version+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 cf_cv_ncurses_version=no
9625 if test "$cross_compiling" = yes; then
9627 # This will not work if the preprocessor splits the line after the
9628 # Autoconf token. The 'unproto' program does that.
9629 cat > conftest.$ac_ext <<EOF
9630 #include <${cf_cv_ncurses_header:-curses.h}>
9632 #ifdef NCURSES_VERSION
9633 Autoconf NCURSES_VERSION
9641 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9642 { (eval echo "$as_me:9642: \"$cf_try\"") >&5
9645 echo "$as_me:9645: \$? = $ac_status" >&5
9646 (exit $ac_status); }
9647 if test -f conftest.out ; then
9648 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
9649 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9654 cat >conftest.$ac_ext <<_ACEOF
9655 #line 9655 "configure"
9656 #include "confdefs.h"
9658 #include <${cf_cv_ncurses_header:-curses.h}>
9662 FILE *fp = fopen("$cf_tempfile", "w");
9663 #ifdef NCURSES_VERSION
9664 # ifdef NCURSES_VERSION_PATCH
9665 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9667 fprintf(fp, "%s\n", NCURSES_VERSION);
9671 fprintf(fp, "old\n");
9676 ${cf_cv_main_return:-return}(0);
9679 rm -f conftest$ac_exeext
9680 if { (eval echo "$as_me:9680: \"$ac_link\"") >&5
9681 (eval $ac_link) 2>&5
9683 echo "$as_me:9683: \$? = $ac_status" >&5
9684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9685 { (eval echo "$as_me:9685: \"$ac_try\"") >&5
9688 echo "$as_me:9688: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9691 cf_cv_ncurses_version=`cat $cf_tempfile`
9693 echo "$as_me: program exited with status $ac_status" >&5
9694 echo "$as_me: failed program was:" >&5
9695 cat conftest.$ac_ext >&5
9697 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9702 echo "$as_me:9702: result: $cf_cv_ncurses_version" >&5
9703 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9704 test "$cf_cv_ncurses_version" = no ||
9705 cat >>confdefs.h <<\EOF
9709 cf_nculib_root=ncurses
9710 # This works, except for the special case where we find gpm, but
9711 # ncurses is in a nonstandard location via $LIBS, and we really want
9714 cf_ncurses_SAVE="$LIBS"
9715 echo "$as_me:9715: checking for Gpm_Open in -lgpm" >&5
9716 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9717 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 ac_check_lib_save_LIBS=$LIBS
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line 9723 "configure"
9724 #include "confdefs.h"
9726 /* Override any gcc2 internal prototype to avoid an error. */
9730 /* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */
9741 rm -f conftest.$ac_objext conftest$ac_exeext
9742 if { (eval echo "$as_me:9742: \"$ac_link\"") >&5
9743 (eval $ac_link) 2>&5
9745 echo "$as_me:9745: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:9748: \"$ac_try\"") >&5
9751 echo "$as_me:9751: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_lib_gpm_Gpm_Open=yes
9755 echo "$as_me: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 ac_cv_lib_gpm_Gpm_Open=no
9759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9760 LIBS=$ac_check_lib_save_LIBS
9762 echo "$as_me:9762: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9763 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9764 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
9765 echo "$as_me:9765: checking for initscr in -lgpm" >&5
9766 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9767 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_check_lib_save_LIBS=$LIBS
9772 cat >conftest.$ac_ext <<_ACEOF
9773 #line 9773 "configure"
9774 #include "confdefs.h"
9776 /* Override any gcc2 internal prototype to avoid an error. */
9780 /* We use char because int might match the return type of a gcc2
9781 builtin and then its argument prototype would still apply. */
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (eval echo "$as_me:9792: \"$ac_link\"") >&5
9793 (eval $ac_link) 2>&5
9795 echo "$as_me:9795: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (eval echo "$as_me:9798: \"$ac_try\"") >&5
9801 echo "$as_me:9801: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_lib_gpm_initscr=yes
9805 echo "$as_me: failed program was:" >&5
9806 cat conftest.$ac_ext >&5
9807 ac_cv_lib_gpm_initscr=no
9809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9810 LIBS=$ac_check_lib_save_LIBS
9812 echo "$as_me:9812: result: $ac_cv_lib_gpm_initscr" >&5
9813 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9814 if test $ac_cv_lib_gpm_initscr = yes; then
9815 LIBS="$cf_ncurses_SAVE"
9817 cf_ncurses_LIBS="-lgpm"
9824 # This is only necessary if you are linking against an obsolete
9825 # version of ncurses (but it should do no harm, since it's static).
9826 if test "$cf_nculib_root" = ncurses ; then
9827 echo "$as_me:9827: checking for tgoto in -lmytinfo" >&5
9828 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9829 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 ac_check_lib_save_LIBS=$LIBS
9833 LIBS="-lmytinfo $LIBS"
9834 cat >conftest.$ac_ext <<_ACEOF
9835 #line 9835 "configure"
9836 #include "confdefs.h"
9838 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:9854: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>&5
9857 echo "$as_me:9857: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:9860: \"$ac_try\"") >&5
9863 echo "$as_me:9863: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_lib_mytinfo_tgoto=yes
9867 echo "$as_me: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 ac_cv_lib_mytinfo_tgoto=no
9871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_check_lib_save_LIBS
9874 echo "$as_me:9874: result: $ac_cv_lib_mytinfo_tgoto" >&5
9875 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9876 if test $ac_cv_lib_mytinfo_tgoto = yes; then
9877 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9887 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9889 for cf_add_1lib in $cf_add_0lib; do
9890 for cf_add_2lib in $cf_add_libs; do
9891 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9896 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9900 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
9906 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9908 for cf_add_1lib in $cf_add_0lib; do
9909 for cf_add_2lib in $cf_add_libs; do
9910 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9915 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9921 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
9923 echo "$as_me:9923: checking for initscr" >&5
9924 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9925 if test "${ac_cv_func_initscr+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 cat >conftest.$ac_ext <<_ACEOF
9929 #line 9929 "configure"
9930 #include "confdefs.h"
9931 #define initscr autoconf_temporary
9932 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9939 /* We use char because int might match the return type of a gcc2
9940 builtin and then its argument prototype would still apply. */
9941 char initscr (void);
9947 /* The GNU C library defines stubs for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
9950 #if defined (__stub_initscr) || defined (__stub___initscr)
9951 #error found stub for initscr
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (eval echo "$as_me:9960: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>&5
9963 echo "$as_me:9963: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:9966: \"$ac_try\"") >&5
9969 echo "$as_me:9969: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 ac_cv_func_initscr=yes
9973 echo "$as_me: failed program was:" >&5
9974 cat conftest.$ac_ext >&5
9975 ac_cv_func_initscr=no
9977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9979 echo "$as_me:9979: result: $ac_cv_func_initscr" >&5
9980 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9981 if test $ac_cv_func_initscr = yes; then
9982 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9985 cf_save_LIBS="$LIBS"
9986 echo "$as_me:9986: checking for initscr in -l$cf_nculib_root" >&5
9987 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9988 LIBS="-l$cf_nculib_root $LIBS"
9989 cat >conftest.$ac_ext <<_ACEOF
9990 #line 9990 "configure"
9991 #include "confdefs.h"
9992 #include <${cf_cv_ncurses_header:-curses.h}>
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:10002: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10005 echo "$as_me:10005: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:10008: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:10011: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 echo "$as_me:10013: result: yes" >&5
10014 echo "${ECHO_T}yes" >&6
10015 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
10018 echo "$as_me: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10020 echo "$as_me:10020: result: no" >&5
10021 echo "${ECHO_T}no" >&6
10024 cf_library_path_list=""
10025 if test -n "${LDFLAGS}${LIBS}" ; then
10026 for cf_library_path in $LDFLAGS $LIBS
10028 case $cf_library_path in
10030 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
10032 test "x$cf_library_path" != "xNONE" && \
10033 test -d "$cf_library_path" && \
10035 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10036 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
10037 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
10038 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
10039 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
10040 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"
10043 cf_library_path_list="$cf_library_path_list $cf_search"
10051 test "x$prefix" != "xNONE" && \
10052 test -d "$prefix" && \
10054 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10055 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
10056 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
10057 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
10058 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
10059 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
10062 for cf_subdir_prefix in \
10071 test "x$cf_subdir_prefix" != "x$prefix" && \
10072 test -d "$cf_subdir_prefix" && \
10073 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10074 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
10075 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
10076 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
10077 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
10078 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
10079 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"
10084 cf_search="$cf_library_path_list $cf_search"
10086 for cf_libdir in $cf_search
10088 echo "$as_me:10088: checking for -l$cf_nculib_root in $cf_libdir" >&5
10089 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
10090 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 #line 10092 "configure"
10093 #include "confdefs.h"
10094 #include <${cf_cv_ncurses_header:-curses.h}>
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (eval echo "$as_me:10104: \"$ac_link\"") >&5
10105 (eval $ac_link) 2>&5
10107 echo "$as_me:10107: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -s conftest$ac_exeext'
10110 { (eval echo "$as_me:10110: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10113 echo "$as_me:10113: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
10115 echo "$as_me:10115: result: yes" >&5
10116 echo "${ECHO_T}yes" >&6
10117 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
10120 echo "$as_me: failed program was:" >&5
10121 cat conftest.$ac_ext >&5
10122 echo "$as_me:10122: result: no" >&5
10123 echo "${ECHO_T}no" >&6
10124 LIBS="$cf_save_LIBS"
10126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10134 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
10136 if test $cf_found_library = no ; then
10137 { { echo "$as_me:10137: error: Cannot link $cf_nculib_root library" >&5
10138 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
10139 { (exit 1); exit 1; }; }
10144 if test -n "$cf_ncurses_LIBS" ; then
10145 echo "$as_me:10145: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
10146 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
10147 cf_ncurses_SAVE="$LIBS"
10148 for p in $cf_ncurses_LIBS ; do
10149 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
10150 if test "$q" != "$LIBS" ; then
10154 cat >conftest.$ac_ext <<_ACEOF
10155 #line 10155 "configure"
10156 #include "confdefs.h"
10157 #include <${cf_cv_ncurses_header:-curses.h}>
10161 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:10167: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>&5
10170 echo "$as_me:10170: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:10173: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:10176: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 echo "$as_me:10178: result: yes" >&5
10179 echo "${ECHO_T}yes" >&6
10181 echo "$as_me: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10183 echo "$as_me:10183: result: no" >&5
10184 echo "${ECHO_T}no" >&6
10185 LIBS="$cf_ncurses_SAVE"
10187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10190 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10192 cat >>confdefs.h <<EOF
10193 #define $cf_nculib_ROOT 1
10198 NCURSES_CONFIG=none
10203 if test "$NCURSES_CONFIG_PKG" != none ; then
10204 cf_version=`$PKG_CONFIG --modversion $NCURSES_CONFIG_PKG 2>/dev/null`
10206 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
10207 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
10208 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
10210 cf_cv_abi_version=`$PKG_CONFIG --variable=abi_version $NCURSES_CONFIG_PKG 2>/dev/null`
10211 if test -z "$cf_cv_abi_version"
10213 cf_cv_abi_version=`$PKG_CONFIG --variable=major_version $NCURSES_CONFIG_PKG 2>/dev/null`
10216 elif test "$NCURSES_CONFIG" != none ; then
10218 cf_version=`$NCURSES_CONFIG --version 2>/dev/null`
10220 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
10221 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
10222 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
10224 # ABI version is not available from headers
10225 cf_cv_abi_version=`$NCURSES_CONFIG --abi-version 2>/dev/null`
10229 for cf_name in MAJOR MINOR PATCH
10231 cat >conftest.$ac_ext <<CF_EOF
10232 #include <${cf_cv_ncurses_header:-curses.h}>
10233 AUTOCONF_$cf_name NCURSES_VERSION_$cf_name
10235 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | fgrep AUTOCONF_$cf_name >conftest.out"
10236 { (eval echo "$as_me:10236: \"$cf_try\"") >&5
10237 (eval $cf_try) 2>&5
10239 echo "$as_me:10239: \$? = $ac_status" >&5
10240 (exit $ac_status); }
10241 if test -f conftest.out ; then
10242 cf_result=`cat conftest.out | sed -e "s/^.*AUTOCONF_$cf_name[ ][ ]*//"`
10243 eval NCURSES_$cf_name=\"$cf_result\"
10244 # cat conftest.$ac_ext
10249 cf_cv_abi_version=${NCURSES_MAJOR}
10253 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
10255 cf_cv_timestamp=`date`
10257 echo "$as_me:10257: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
10258 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
10260 echo "$as_me:10260: checking if you want to have a library-prefix" >&5
10261 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
10263 # Check whether --with-lib-prefix or --without-lib-prefix was given.
10264 if test "${with_lib_prefix+set}" = set; then
10265 withval="$with_lib_prefix"
10266 with_lib_prefix=$withval
10268 with_lib_prefix=auto
10270 echo "$as_me:10270: result: $with_lib_prefix" >&5
10271 echo "${ECHO_T}$with_lib_prefix" >&6
10273 if test $with_lib_prefix = auto
10276 case $cf_cv_system_name in
10278 if test "$DFT_LWR_MODEL" = libtool; then
10284 (*) LIB_PREFIX='lib'
10287 cf_prefix=$LIB_PREFIX
10289 elif test $with_lib_prefix = no
10293 LIB_PREFIX=$with_lib_prefix
10298 ###############################################################################
10300 if test X"$CC_G_OPT" = X"" ; then
10302 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
10305 echo "$as_me:10305: checking for default loader flags" >&5
10306 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
10307 case $DFT_LWR_MODEL in
10308 (normal) LD_MODEL='' ;;
10309 (debug) LD_MODEL=$CC_G_OPT ;;
10310 (profile) LD_MODEL='-pg';;
10311 (shared) LD_MODEL='' ;;
10313 echo "$as_me:10313: result: $LD_MODEL" >&5
10314 echo "${ECHO_T}$LD_MODEL" >&6
10317 if test "x$cf_cv_enable_rpath" != xno
10319 echo "$as_me:10319: checking for an rpath option" >&5
10320 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
10321 case $cf_cv_system_name in
10323 if test "$GCC" = yes; then
10324 LD_RPATH_OPT="-Wl,-rpath,"
10326 LD_RPATH_OPT="-rpath "
10329 (linux*|gnu*|k*bsd*-gnu|freebsd*)
10330 LD_RPATH_OPT="-Wl,-rpath,"
10332 (openbsd[2-9].*|mirbsd*)
10333 LD_RPATH_OPT="-Wl,-rpath,"
10336 LD_RPATH_OPT="-rpath "
10339 LD_RPATH_OPT="-Wl,-rpath,"
10342 LD_RPATH_OPT="-rpath "
10350 echo "$as_me:10350: result: $LD_RPATH_OPT" >&5
10351 echo "${ECHO_T}$LD_RPATH_OPT" >&6
10353 case "x$LD_RPATH_OPT" in
10355 echo "$as_me:10355: checking if we need a space after rpath option" >&5
10356 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
10357 cf_save_LIBS="$LIBS"
10359 cf_add_libs="$LIBS"
10362 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10363 # filter duplicates
10364 for cf_add_1lib in $cf_add_0lib; do
10365 for cf_add_2lib in $cf_add_libs; do
10366 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10371 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10373 LIBS="$cf_add_libs"
10375 cat >conftest.$ac_ext <<_ACEOF
10376 #line 10376 "configure"
10377 #include "confdefs.h"
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (eval echo "$as_me:10388: \"$ac_link\"") >&5
10389 (eval $ac_link) 2>&5
10391 echo "$as_me:10391: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -s conftest$ac_exeext'
10394 { (eval echo "$as_me:10394: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10397 echo "$as_me:10397: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10401 echo "$as_me: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10406 LIBS="$cf_save_LIBS"
10407 echo "$as_me:10407: result: $cf_rpath_space" >&5
10408 echo "${ECHO_T}$cf_rpath_space" >&6
10409 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
10418 INSTALL_LIB="-m 644"
10419 : ${rel_builddir:=.}
10425 cf_cv_do_symlinks=no
10427 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
10429 echo "$as_me:10429: checking if release/abi version should be used for shared libs" >&5
10430 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
10432 # Check whether --with-shlib-version or --without-shlib-version was given.
10433 if test "${with_shlib_version+set}" = set; then
10434 withval="$with_shlib_version"
10435 test -z "$withval" && withval=auto
10438 cf_cv_shlib_version=auto
10441 cf_cv_shlib_version=$withval
10444 echo "$as_me:10444: result: $withval" >&5
10445 echo "${ECHO_T}$withval" >&6
10446 { { echo "$as_me:10446: error: option value must be one of: rel, abi, or auto" >&5
10447 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
10448 { (exit 1); exit 1; }; }
10453 cf_cv_shlib_version=auto
10455 echo "$as_me:10455: result: $cf_cv_shlib_version" >&5
10456 echo "${ECHO_T}$cf_cv_shlib_version" >&6
10458 cf_cv_rm_so_locs=no
10461 # Some less-capable ports of gcc support only -fpic
10465 if test "$GCC" = yes
10469 case $cf_cv_system_name in
10470 (*linux*) # e.g., PGI compiler
10476 if test "$cf_try_fPIC" = yes
10478 echo "$as_me:10478: checking which $CC option to use" >&5
10479 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
10480 cf_save_CFLAGS="$CFLAGS"
10481 for CC_SHARED_OPTS in -fPIC -fpic ''
10483 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
10484 cat >conftest.$ac_ext <<_ACEOF
10485 #line 10485 "configure"
10486 #include "confdefs.h"
10496 rm -f conftest.$ac_objext
10497 if { (eval echo "$as_me:10497: \"$ac_compile\"") >&5
10498 (eval $ac_compile) 2>&5
10500 echo "$as_me:10500: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -s conftest.$ac_objext'
10503 { (eval echo "$as_me:10503: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10506 echo "$as_me:10506: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10510 echo "$as_me: failed program was:" >&5
10511 cat conftest.$ac_ext >&5
10513 rm -f conftest.$ac_objext conftest.$ac_ext
10515 echo "$as_me:10515: result: $CC_SHARED_OPTS" >&5
10516 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
10517 CFLAGS="$cf_save_CFLAGS"
10520 cf_cv_shlib_version_infix=no
10522 case $cf_cv_system_name in
10523 (aix4.3-9*|aix[5-7]*)
10524 if test "$GCC" = yes; then
10525 CC_SHARED_OPTS='-Wl,-brtl'
10526 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
10528 CC_SHARED_OPTS='-brtl'
10529 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
10530 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
10534 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
10538 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
10539 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
10540 cf_cv_shlib_version=cygdll
10541 cf_cv_shlib_version_infix=cygdll
10544 cat >mk_shared_lib.sh <<-CF_EOF
10547 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
10550 Linking shared library
10551 ** SHARED_LIB \$SHARED_LIB
10552 ** IMPORT_LIB \$IMPORT_LIB
10554 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
10556 chmod +x mk_shared_lib.sh
10560 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
10561 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
10562 cf_cv_shlib_version=msysdll
10563 cf_cv_shlib_version_infix=msysdll
10566 cat >mk_shared_lib.sh <<-CF_EOF
10569 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
10572 Linking shared library
10573 ** SHARED_LIB \$SHARED_LIB
10574 ** IMPORT_LIB \$IMPORT_LIB
10576 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
10578 chmod +x mk_shared_lib.sh
10581 cf_try_cflags="no-cpp-precomp"
10582 CC_SHARED_OPTS="-dynamic"
10583 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
10584 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
10585 cf_cv_shlib_version_infix=yes
10586 echo "$as_me:10586: checking if ld -search_paths_first works" >&5
10587 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
10588 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 cf_save_LDFLAGS=$LDFLAGS
10593 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
10594 cat >conftest.$ac_ext <<_ACEOF
10595 #line 10595 "configure"
10596 #include "confdefs.h"
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (eval echo "$as_me:10607: \"$ac_link\"") >&5
10608 (eval $ac_link) 2>&5
10610 echo "$as_me:10610: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -s conftest$ac_exeext'
10613 { (eval echo "$as_me:10613: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:10616: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 cf_cv_ldflags_search_paths_first=yes
10620 echo "$as_me: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 cf_cv_ldflags_search_paths_first=no
10624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10625 LDFLAGS=$cf_save_LDFLAGS
10627 echo "$as_me:10627: result: $cf_cv_ldflags_search_paths_first" >&5
10628 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
10629 if test $cf_cv_ldflags_search_paths_first = yes; then
10630 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
10634 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
10635 if test "$GCC" != yes; then
10636 CC_SHARED_OPTS='+Z'
10638 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
10639 INSTALL_LIB="-m 555"
10642 # (tested with gcc 2.7.2 -- I don't have c89)
10643 if test "$GCC" = yes; then
10644 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
10646 CC_SHARED_OPTS='+Z'
10647 LD_SHARED_OPTS='-Wl,+b,${libdir}'
10649 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
10650 # HP-UX shared libraries must be executable, and should be
10651 # readonly to exploit a quirk in the memory manager.
10652 INSTALL_LIB="-m 555"
10655 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10656 if test "$cf_cv_shlib_version" = rel; then
10657 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10659 cf_shared_soname='`basename $@`'
10662 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
10665 if test "$cf_cv_enable_rpath" = yes ; then
10666 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
10668 # tested with IRIX 5.2 and 'cc'.
10669 if test "$GCC" != yes; then
10670 CC_SHARED_OPTS='-KPIC'
10671 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
10673 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
10675 cf_cv_rm_so_locs=yes
10677 (linux*|gnu*|k*bsd*-gnu)
10678 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
10679 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
10680 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10682 if test "$cf_cv_enable_rpath" = yes ; then
10683 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
10686 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10687 if test "$cf_cv_shlib_version" = rel; then
10688 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10690 cf_cv_shared_soname='`basename $@`'
10693 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
10696 cf_cv_shlib_version=mingw
10697 cf_cv_shlib_version_infix=mingw
10700 if test "$DFT_LWR_MODEL" = "shared" ; then
10701 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
10702 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10703 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
10706 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
10707 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
10708 cat >mk_shared_lib.sh <<-CF_EOF
10711 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
10714 Linking shared library
10715 ** SHARED_LIB \$SHARED_LIB
10716 ** IMPORT_LIB \$IMPORT_LIB
10718 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
10720 chmod +x mk_shared_lib.sh
10722 (openbsd[2-9].*|mirbsd*)
10723 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
10724 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
10725 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10727 if test "$cf_cv_enable_rpath" = yes ; then
10728 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
10730 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
10732 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10733 if test "$cf_cv_shlib_version" = rel; then
10734 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10736 cf_cv_shared_soname='`basename $@`'
10739 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
10741 (nto-qnx*|openbsd*|freebsd[12].*)
10742 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
10743 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
10744 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10746 (dragonfly*|freebsd*)
10747 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
10748 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
10749 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
10750 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
10751 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
10754 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10755 if test "$cf_cv_shlib_version" = rel; then
10756 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10758 cf_cv_shared_soname='`basename $@`'
10761 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
10764 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
10765 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
10766 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
10767 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10768 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
10769 if test "$cf_cv_shlib_version" = auto; then
10770 if test -f /usr/libexec/ld.elf_so; then
10771 cf_cv_shlib_version=abi
10773 cf_cv_shlib_version=rel
10777 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10778 if test "$cf_cv_shlib_version" = rel; then
10779 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10781 cf_cv_shared_soname='`basename $@`'
10784 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
10786 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -Wl,-shared -Wl,-Bshareable -o $@'
10790 # tested with OSF/1 V3.2 and 'cc'
10791 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
10792 # link with shared libs).
10793 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
10796 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
10799 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
10800 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
10801 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
10802 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10804 cf_cv_rm_so_locs=yes
10806 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
10807 # tested with osr5.0.5
10808 if test "$GCC" != yes; then
10809 CC_SHARED_OPTS='-belf -KPIC'
10811 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
10812 if test "$cf_cv_enable_rpath" = yes ; then
10813 # only way is to set LD_RUN_PATH but no switch for it
10816 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10817 LINK_PROGS='LD_RUN_PATH=${libdir}'
10818 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
10821 # tested with SunOS 4.1.1 and gcc 2.7.0
10822 if test "$GCC" != yes; then
10823 CC_SHARED_OPTS='-KPIC'
10825 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
10826 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10829 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
10830 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
10831 if test "$DFT_LWR_MODEL" = "shared" ; then
10832 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
10833 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10835 if test "$cf_cv_enable_rpath" = yes ; then
10836 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
10839 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10840 if test "$cf_cv_shlib_version" = rel; then
10841 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10843 cf_cv_shared_soname='`basename $@`'
10846 if test "$GCC" != yes; then
10847 cf_save_CFLAGS="$CFLAGS"
10848 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
10850 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
10851 cat >conftest.$ac_ext <<_ACEOF
10852 #line 10852 "configure"
10853 #include "confdefs.h"
10863 rm -f conftest.$ac_objext
10864 if { (eval echo "$as_me:10864: \"$ac_compile\"") >&5
10865 (eval $ac_compile) 2>&5
10867 echo "$as_me:10867: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -s conftest.$ac_objext'
10870 { (eval echo "$as_me:10870: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10873 echo "$as_me:10873: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10877 echo "$as_me: failed program was:" >&5
10878 cat conftest.$ac_ext >&5
10880 rm -f conftest.$ac_objext conftest.$ac_ext
10882 CFLAGS="$cf_save_CFLAGS"
10883 CC_SHARED_OPTS=$cf_shared_opts
10884 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
10886 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
10889 (sysv5uw7*|unix_sv*)
10890 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
10891 if test "$GCC" != yes; then
10892 CC_SHARED_OPTS='-KPIC'
10894 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
10897 CC_SHARED_OPTS='unknown'
10898 MK_SHARED_LIB='echo unknown'
10902 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
10903 case "$cf_cv_shlib_version" in
10905 case "$MK_SHARED_LIB" in
10907 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
10910 { echo "$as_me:10910: WARNING: ignored --with-shlib-version" >&5
10911 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
10917 if test -n "$cf_try_cflags"
10919 cat > conftest.$ac_ext <<EOF
10920 #line 10920 "${as_me:-configure}"
10922 int main(int argc, char *argv[])
10925 return (argv[argc-1] == 0) ;
10928 cf_save_CFLAGS="$CFLAGS"
10929 for cf_opt in $cf_try_cflags
10931 CFLAGS="$cf_save_CFLAGS -$cf_opt"
10932 echo "$as_me:10932: checking if CFLAGS option -$cf_opt works" >&5
10933 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
10934 if { (eval echo "$as_me:10934: \"$ac_compile\"") >&5
10935 (eval $ac_compile) 2>&5
10937 echo "$as_me:10937: \$? = $ac_status" >&5
10938 (exit $ac_status); }; then
10939 echo "$as_me:10939: result: yes" >&5
10940 echo "${ECHO_T}yes" >&6
10941 cf_save_CFLAGS="$CFLAGS"
10943 echo "$as_me:10943: result: no" >&5
10944 echo "${ECHO_T}no" >&6
10947 CFLAGS="$cf_save_CFLAGS"
10950 # RPATH_LIST is a colon-separated list of directories
10951 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
10952 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
10954 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
10956 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
10958 echo "${as_me:-configure}:10958: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
10960 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
10962 echo "${as_me:-configure}:10962: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
10964 # The test/sample programs in the original tree link using rpath option.
10965 # Make it optional for packagers.
10966 if test -n "$LOCAL_LDFLAGS"
10968 echo "$as_me:10968: checking if you want to link sample programs with rpath option" >&5
10969 echo $ECHO_N "checking if you want to link sample programs with rpath option... $ECHO_C" >&6
10971 # Check whether --enable-rpath-link or --disable-rpath-link was given.
10972 if test "${enable_rpath_link+set}" = set; then
10973 enableval="$enable_rpath_link"
10974 with_rpath_link=$enableval
10976 with_rpath_link=yes
10978 echo "$as_me:10978: result: $with_rpath_link" >&5
10979 echo "${ECHO_T}$with_rpath_link" >&6
10980 if test "$with_rpath_link" = no
10987 ###############################################################################
10989 ### use option --enable-broken-linker to force on use of broken-linker support
10991 echo "$as_me:10991: checking if you want broken-linker support code" >&5
10992 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
10994 # Check whether --enable-broken_linker or --disable-broken_linker was given.
10995 if test "${enable_broken_linker+set}" = set; then
10996 enableval="$enable_broken_linker"
10997 with_broken_linker=$enableval
10999 with_broken_linker=no
11001 echo "$as_me:11001: result: $with_broken_linker" >&5
11002 echo "${ECHO_T}$with_broken_linker" >&6
11004 : ${BROKEN_LINKER:=0}
11005 if test "x$with_broken_linker" = xyes ; then
11007 cat >>confdefs.h <<\EOF
11008 #define BROKEN_LINKER 1
11014 # Check to define _XOPEN_SOURCE "automatically"
11016 echo "$as_me:11016: checking if the POSIX test-macros are already defined" >&5
11017 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
11018 if test "${cf_cv_posix_visible+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 cat >conftest.$ac_ext <<_ACEOF
11023 #line 11023 "configure"
11024 #include "confdefs.h"
11030 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
11031 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
11032 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
11033 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
11034 #error conflicting symbols found
11041 rm -f conftest.$ac_objext
11042 if { (eval echo "$as_me:11042: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>&5
11045 echo "$as_me:11045: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (eval echo "$as_me:11048: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:11051: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 cf_cv_posix_visible=no
11055 echo "$as_me: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 cf_cv_posix_visible=yes
11059 rm -f conftest.$ac_objext conftest.$ac_ext
11062 echo "$as_me:11062: result: $cf_cv_posix_visible" >&5
11063 echo "${ECHO_T}$cf_cv_posix_visible" >&6
11065 if test "$cf_cv_posix_visible" = no; then
11067 cf_XOPEN_SOURCE=600
11068 cf_POSIX_C_SOURCE=199506L
11073 cf_xopen_source="-D_ALL_SOURCE"
11076 cf_XOPEN_SOURCE=600
11079 cf_xopen_source="-D_APPLE_C_SOURCE"
11082 cf_xopen_source="-D_DARWIN_C_SOURCE"
11085 (freebsd*|dragonfly*|midnightbsd*)
11086 # 5.x headers associate
11087 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
11088 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
11089 cf_POSIX_C_SOURCE=200112L
11090 cf_XOPEN_SOURCE=600
11091 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11094 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
11097 cf_xopen_source="-D_HPUX_SOURCE"
11100 cf_xopen_source="-D_SGI_SOURCE"
11103 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
11105 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
11107 echo "$as_me:11107: checking if this is the GNU C library" >&5
11108 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
11109 if test "${cf_cv_gnu_library+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 cat >conftest.$ac_ext <<_ACEOF
11114 #line 11114 "configure"
11115 #include "confdefs.h"
11116 #include <sys/types.h>
11121 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
11123 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
11126 # error not GNU C library
11132 rm -f conftest.$ac_objext
11133 if { (eval echo "$as_me:11133: \"$ac_compile\"") >&5
11134 (eval $ac_compile) 2>&5
11136 echo "$as_me:11136: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -s conftest.$ac_objext'
11139 { (eval echo "$as_me:11139: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:11142: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 cf_cv_gnu_library=yes
11146 echo "$as_me: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11148 cf_cv_gnu_library=no
11150 rm -f conftest.$ac_objext conftest.$ac_ext
11153 echo "$as_me:11153: result: $cf_cv_gnu_library" >&5
11154 echo "${ECHO_T}$cf_cv_gnu_library" >&6
11156 if test x$cf_cv_gnu_library = xyes; then
11158 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
11159 # was changed to help a little. newlib incorporated the change about 4
11161 echo "$as_me:11161: checking if _DEFAULT_SOURCE can be used as a basis" >&5
11162 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
11163 if test "${cf_cv_gnu_library_219+set}" = set; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 cf_save="$CPPFLAGS"
11169 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11170 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
11172 cat >conftest.$ac_ext <<_ACEOF
11173 #line 11173 "configure"
11174 #include "confdefs.h"
11175 #include <sys/types.h>
11180 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
11182 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
11185 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
11191 rm -f conftest.$ac_objext
11192 if { (eval echo "$as_me:11192: \"$ac_compile\"") >&5
11193 (eval $ac_compile) 2>&5
11195 echo "$as_me:11195: \$? = $ac_status" >&5
11196 (exit $ac_status); } &&
11197 { ac_try='test -s conftest.$ac_objext'
11198 { (eval echo "$as_me:11198: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11201 echo "$as_me:11201: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 cf_cv_gnu_library_219=yes
11205 echo "$as_me: failed program was:" >&5
11206 cat conftest.$ac_ext >&5
11207 cf_cv_gnu_library_219=no
11209 rm -f conftest.$ac_objext conftest.$ac_ext
11210 CPPFLAGS="$cf_save"
11213 echo "$as_me:11213: result: $cf_cv_gnu_library_219" >&5
11214 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
11216 if test "x$cf_cv_gnu_library_219" = xyes; then
11217 cf_save="$CPPFLAGS"
11218 echo "$as_me:11218: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
11219 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
11220 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 cf_new_extra_cppflags=
11229 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
11231 case $cf_fix_cppflags in
11233 case $cf_add_cflags in
11234 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11235 case $cf_add_cflags in
11237 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11239 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11240 && test -z "${cf_tst_cflags}" \
11241 && cf_fix_cppflags=yes
11243 if test $cf_fix_cppflags = yes ; then
11245 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11246 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11249 elif test "${cf_tst_cflags}" = "\"'" ; then
11251 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11252 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11258 case "$CPPFLAGS" in
11262 case $cf_add_cflags in
11264 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11266 CPPFLAGS=`echo "$CPPFLAGS" | \
11267 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11268 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11273 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11274 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11281 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11282 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11289 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11290 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11292 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11294 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11295 && test -z "${cf_tst_cflags}" \
11296 && cf_fix_cppflags=no
11301 if test -n "$cf_new_cflags" ; then
11303 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11304 CFLAGS="${CFLAGS}$cf_new_cflags"
11308 if test -n "$cf_new_cppflags" ; then
11310 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11311 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11315 if test -n "$cf_new_extra_cppflags" ; then
11317 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11318 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11322 cat >conftest.$ac_ext <<_ACEOF
11323 #line 11323 "configure"
11324 #include "confdefs.h"
11326 #include <limits.h>
11327 #include <sys/types.h>
11333 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
11336 # error GNU C library is too old
11342 rm -f conftest.$ac_objext
11343 if { (eval echo "$as_me:11343: \"$ac_compile\"") >&5
11344 (eval $ac_compile) 2>&5
11346 echo "$as_me:11346: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -s conftest.$ac_objext'
11349 { (eval echo "$as_me:11349: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11352 echo "$as_me:11352: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 cf_cv_gnu_dftsrc_219=yes
11356 echo "$as_me: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11358 cf_cv_gnu_dftsrc_219=no
11360 rm -f conftest.$ac_objext conftest.$ac_ext
11363 echo "$as_me:11363: result: $cf_cv_gnu_dftsrc_219" >&5
11364 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
11365 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
11367 cf_cv_gnu_dftsrc_219=maybe
11370 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
11372 echo "$as_me:11372: checking if we must define _GNU_SOURCE" >&5
11373 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
11374 if test "${cf_cv_gnu_source+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 cat >conftest.$ac_ext <<_ACEOF
11379 #line 11379 "configure"
11380 #include "confdefs.h"
11381 #include <sys/types.h>
11386 #ifndef _XOPEN_SOURCE
11387 #error expected _XOPEN_SOURCE to be defined
11393 rm -f conftest.$ac_objext
11394 if { (eval echo "$as_me:11394: \"$ac_compile\"") >&5
11395 (eval $ac_compile) 2>&5
11397 echo "$as_me:11397: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (eval echo "$as_me:11400: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:11403: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 cf_cv_gnu_source=no
11407 echo "$as_me: failed program was:" >&5
11408 cat conftest.$ac_ext >&5
11409 cf_save="$CPPFLAGS"
11414 cf_new_extra_cppflags=
11416 for cf_add_cflags in -D_GNU_SOURCE
11418 case $cf_fix_cppflags in
11420 case $cf_add_cflags in
11421 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11422 case $cf_add_cflags in
11424 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11426 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11427 && test -z "${cf_tst_cflags}" \
11428 && cf_fix_cppflags=yes
11430 if test $cf_fix_cppflags = yes ; then
11432 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11433 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11436 elif test "${cf_tst_cflags}" = "\"'" ; then
11438 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11439 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11445 case "$CPPFLAGS" in
11449 case $cf_add_cflags in
11451 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11453 CPPFLAGS=`echo "$CPPFLAGS" | \
11454 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11455 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11460 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11461 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11468 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11469 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11476 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11477 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11479 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11481 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11482 && test -z "${cf_tst_cflags}" \
11483 && cf_fix_cppflags=no
11488 if test -n "$cf_new_cflags" ; then
11490 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11491 CFLAGS="${CFLAGS}$cf_new_cflags"
11495 if test -n "$cf_new_cppflags" ; then
11497 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11498 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11502 if test -n "$cf_new_extra_cppflags" ; then
11504 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11505 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11509 cat >conftest.$ac_ext <<_ACEOF
11510 #line 11510 "configure"
11511 #include "confdefs.h"
11512 #include <sys/types.h>
11517 #ifdef _XOPEN_SOURCE
11518 #error expected _XOPEN_SOURCE to be undefined
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:11525: \"$ac_compile\"") >&5
11526 (eval $ac_compile) 2>&5
11528 echo "$as_me:11528: \$? = $ac_status" >&5
11529 (exit $ac_status); } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (eval echo "$as_me:11531: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:11534: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 cf_cv_gnu_source=no
11538 echo "$as_me: failed program was:" >&5
11539 cat conftest.$ac_ext >&5
11540 cf_cv_gnu_source=yes
11542 rm -f conftest.$ac_objext conftest.$ac_ext
11543 CPPFLAGS="$cf_save"
11546 rm -f conftest.$ac_objext conftest.$ac_ext
11549 echo "$as_me:11549: result: $cf_cv_gnu_source" >&5
11550 echo "${ECHO_T}$cf_cv_gnu_source" >&6
11552 if test "$cf_cv_gnu_source" = yes
11554 echo "$as_me:11554: checking if we should also define _DEFAULT_SOURCE" >&5
11555 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
11556 if test "${cf_cv_default_source+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11561 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
11563 cat >conftest.$ac_ext <<_ACEOF
11564 #line 11564 "configure"
11565 #include "confdefs.h"
11566 #include <sys/types.h>
11571 #ifdef _DEFAULT_SOURCE
11572 #error expected _DEFAULT_SOURCE to be undefined
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:11579: \"$ac_compile\"") >&5
11580 (eval $ac_compile) 2>&5
11582 echo "$as_me:11582: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -s conftest.$ac_objext'
11585 { (eval echo "$as_me:11585: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:11588: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 cf_cv_default_source=no
11592 echo "$as_me: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11594 cf_cv_default_source=yes
11596 rm -f conftest.$ac_objext conftest.$ac_ext
11599 echo "$as_me:11599: result: $cf_cv_default_source" >&5
11600 echo "${ECHO_T}$cf_cv_default_source" >&6
11601 if test "$cf_cv_default_source" = yes
11604 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11605 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
11615 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
11618 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
11621 if test "$cf_cv_posix_visible" = no; then
11623 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11625 cf_save_CFLAGS="$CFLAGS"
11626 cf_save_CPPFLAGS="$CPPFLAGS"
11628 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11629 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11630 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11632 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11633 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11634 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11636 echo "$as_me:11636: checking if we should define _POSIX_C_SOURCE" >&5
11637 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11638 if test "${cf_cv_posix_c_source+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 echo "${as_me:-configure}:11642: testing if the symbol is already defined go no further ..." 1>&5
11644 cat >conftest.$ac_ext <<_ACEOF
11645 #line 11645 "configure"
11646 #include "confdefs.h"
11647 #include <sys/types.h>
11652 #ifndef _POSIX_C_SOURCE
11659 rm -f conftest.$ac_objext
11660 if { (eval echo "$as_me:11660: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>&5
11663 echo "$as_me:11663: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -s conftest.$ac_objext'
11666 { (eval echo "$as_me:11666: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11669 echo "$as_me:11669: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 cf_cv_posix_c_source=no
11673 echo "$as_me: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11675 cf_want_posix_source=no
11676 case .$cf_POSIX_C_SOURCE in
11678 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11681 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11682 cf_want_posix_source=yes
11685 cf_want_posix_source=yes
11688 if test "$cf_want_posix_source" = yes ; then
11689 cat >conftest.$ac_ext <<_ACEOF
11690 #line 11690 "configure"
11691 #include "confdefs.h"
11692 #include <sys/types.h>
11697 #ifdef _POSIX_SOURCE
11704 rm -f conftest.$ac_objext
11705 if { (eval echo "$as_me:11705: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>&5
11708 echo "$as_me:11708: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -s conftest.$ac_objext'
11711 { (eval echo "$as_me:11711: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:11714: \$? = $ac_status" >&5
11715 (exit $ac_status); }; }; then
11718 echo "$as_me: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11720 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11722 rm -f conftest.$ac_objext conftest.$ac_ext
11725 echo "${as_me:-configure}:11725: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11727 CFLAGS="$cf_trim_CFLAGS"
11728 CPPFLAGS="$cf_trim_CPPFLAGS"
11730 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11731 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11733 echo "${as_me:-configure}:11733: testing if the second compile does not leave our definition intact error ..." 1>&5
11735 cat >conftest.$ac_ext <<_ACEOF
11736 #line 11736 "configure"
11737 #include "confdefs.h"
11738 #include <sys/types.h>
11743 #ifndef _POSIX_C_SOURCE
11750 rm -f conftest.$ac_objext
11751 if { (eval echo "$as_me:11751: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>&5
11754 echo "$as_me:11754: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -s conftest.$ac_objext'
11757 { (eval echo "$as_me:11757: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:11760: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11764 echo "$as_me: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 cf_cv_posix_c_source=no
11768 rm -f conftest.$ac_objext conftest.$ac_ext
11769 CFLAGS="$cf_save_CFLAGS"
11770 CPPFLAGS="$cf_save_CPPFLAGS"
11773 rm -f conftest.$ac_objext conftest.$ac_ext
11776 echo "$as_me:11776: result: $cf_cv_posix_c_source" >&5
11777 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11779 if test "$cf_cv_posix_c_source" != no ; then
11780 CFLAGS="$cf_trim_CFLAGS"
11781 CPPFLAGS="$cf_trim_CPPFLAGS"
11786 cf_new_extra_cppflags=
11788 for cf_add_cflags in $cf_cv_posix_c_source
11790 case $cf_fix_cppflags in
11792 case $cf_add_cflags in
11793 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11794 case $cf_add_cflags in
11796 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11798 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11799 && test -z "${cf_tst_cflags}" \
11800 && cf_fix_cppflags=yes
11802 if test $cf_fix_cppflags = yes ; then
11804 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11805 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11808 elif test "${cf_tst_cflags}" = "\"'" ; then
11810 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11811 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11817 case "$CPPFLAGS" in
11821 case $cf_add_cflags in
11823 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11825 CPPFLAGS=`echo "$CPPFLAGS" | \
11826 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11827 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11832 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11833 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11840 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11841 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11848 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11849 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11851 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11853 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11854 && test -z "${cf_tst_cflags}" \
11855 && cf_fix_cppflags=no
11860 if test -n "$cf_new_cflags" ; then
11862 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11863 CFLAGS="${CFLAGS}$cf_new_cflags"
11867 if test -n "$cf_new_cppflags" ; then
11869 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11870 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11874 if test -n "$cf_new_extra_cppflags" ; then
11876 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11877 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11883 fi # cf_cv_posix_visible
11887 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
11890 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
11891 cf_xopen_source="-D_BSD_SOURCE"
11892 cf_XOPEN_SOURCE=600
11895 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
11898 cf_xopen_source="-D_OSF_SOURCE"
11901 cf_xopen_source="-D_QNX_SOURCE"
11904 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
11907 cf_xopen_source="-D__EXTENSIONS__"
11908 cf_cv_xopen_source=broken
11910 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
11916 echo "$as_me:11916: checking if we should define _XOPEN_SOURCE" >&5
11917 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11918 if test "${cf_cv_xopen_source+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 cat >conftest.$ac_ext <<_ACEOF
11923 #line 11923 "configure"
11924 #include "confdefs.h"
11926 #include <stdlib.h>
11927 #include <string.h>
11928 #include <sys/types.h>
11934 #ifndef _XOPEN_SOURCE
11941 rm -f conftest.$ac_objext
11942 if { (eval echo "$as_me:11942: \"$ac_compile\"") >&5
11943 (eval $ac_compile) 2>&5
11945 echo "$as_me:11945: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (eval echo "$as_me:11948: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:11951: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 cf_cv_xopen_source=no
11955 echo "$as_me: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11957 cf_save="$CPPFLAGS"
11959 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11960 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11962 cat >conftest.$ac_ext <<_ACEOF
11963 #line 11963 "configure"
11964 #include "confdefs.h"
11966 #include <stdlib.h>
11967 #include <string.h>
11968 #include <sys/types.h>
11974 #ifdef _XOPEN_SOURCE
11981 rm -f conftest.$ac_objext
11982 if { (eval echo "$as_me:11982: \"$ac_compile\"") >&5
11983 (eval $ac_compile) 2>&5
11985 echo "$as_me:11985: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -s conftest.$ac_objext'
11988 { (eval echo "$as_me:11988: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:11991: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 cf_cv_xopen_source=no
11995 echo "$as_me: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11999 rm -f conftest.$ac_objext conftest.$ac_ext
12000 CPPFLAGS="$cf_save"
12003 rm -f conftest.$ac_objext conftest.$ac_ext
12006 echo "$as_me:12006: result: $cf_cv_xopen_source" >&5
12007 echo "${ECHO_T}$cf_cv_xopen_source" >&6
12009 if test "$cf_cv_xopen_source" != no ; then
12011 CFLAGS=`echo "$CFLAGS" | \
12012 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12013 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12015 CPPFLAGS=`echo "$CPPFLAGS" | \
12016 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12017 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12019 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
12024 cf_new_extra_cppflags=
12026 for cf_add_cflags in $cf_temp_xopen_source
12028 case $cf_fix_cppflags in
12030 case $cf_add_cflags in
12031 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12032 case $cf_add_cflags in
12034 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12036 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12037 && test -z "${cf_tst_cflags}" \
12038 && cf_fix_cppflags=yes
12040 if test $cf_fix_cppflags = yes ; then
12042 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12043 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12046 elif test "${cf_tst_cflags}" = "\"'" ; then
12048 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12049 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12055 case "$CPPFLAGS" in
12059 case $cf_add_cflags in
12061 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12063 CPPFLAGS=`echo "$CPPFLAGS" | \
12064 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12065 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12070 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12071 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12078 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12079 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12086 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12087 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12089 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12091 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12092 && test -z "${cf_tst_cflags}" \
12093 && cf_fix_cppflags=no
12098 if test -n "$cf_new_cflags" ; then
12100 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12101 CFLAGS="${CFLAGS}$cf_new_cflags"
12105 if test -n "$cf_new_cppflags" ; then
12107 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12108 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12112 if test -n "$cf_new_extra_cppflags" ; then
12114 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12115 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12121 if test "$cf_cv_posix_visible" = no; then
12123 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
12125 cf_save_CFLAGS="$CFLAGS"
12126 cf_save_CPPFLAGS="$CPPFLAGS"
12128 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
12129 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12130 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
12132 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
12133 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12134 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
12136 echo "$as_me:12136: checking if we should define _POSIX_C_SOURCE" >&5
12137 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
12138 if test "${cf_cv_posix_c_source+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 echo "${as_me:-configure}:12142: testing if the symbol is already defined go no further ..." 1>&5
12144 cat >conftest.$ac_ext <<_ACEOF
12145 #line 12145 "configure"
12146 #include "confdefs.h"
12147 #include <sys/types.h>
12152 #ifndef _POSIX_C_SOURCE
12159 rm -f conftest.$ac_objext
12160 if { (eval echo "$as_me:12160: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>&5
12163 echo "$as_me:12163: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (eval echo "$as_me:12166: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:12169: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 cf_cv_posix_c_source=no
12173 echo "$as_me: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 cf_want_posix_source=no
12176 case .$cf_POSIX_C_SOURCE in
12178 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
12181 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
12182 cf_want_posix_source=yes
12185 cf_want_posix_source=yes
12188 if test "$cf_want_posix_source" = yes ; then
12189 cat >conftest.$ac_ext <<_ACEOF
12190 #line 12190 "configure"
12191 #include "confdefs.h"
12192 #include <sys/types.h>
12197 #ifdef _POSIX_SOURCE
12204 rm -f conftest.$ac_objext
12205 if { (eval echo "$as_me:12205: \"$ac_compile\"") >&5
12206 (eval $ac_compile) 2>&5
12208 echo "$as_me:12208: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (eval echo "$as_me:12211: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12214 echo "$as_me:12214: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12218 echo "$as_me: failed program was:" >&5
12219 cat conftest.$ac_ext >&5
12220 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
12222 rm -f conftest.$ac_objext conftest.$ac_ext
12225 echo "${as_me:-configure}:12225: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
12227 CFLAGS="$cf_trim_CFLAGS"
12228 CPPFLAGS="$cf_trim_CPPFLAGS"
12230 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12231 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
12233 echo "${as_me:-configure}:12233: testing if the second compile does not leave our definition intact error ..." 1>&5
12235 cat >conftest.$ac_ext <<_ACEOF
12236 #line 12236 "configure"
12237 #include "confdefs.h"
12238 #include <sys/types.h>
12243 #ifndef _POSIX_C_SOURCE
12250 rm -f conftest.$ac_objext
12251 if { (eval echo "$as_me:12251: \"$ac_compile\"") >&5
12252 (eval $ac_compile) 2>&5
12254 echo "$as_me:12254: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -s conftest.$ac_objext'
12257 { (eval echo "$as_me:12257: \"$ac_try\"") >&5
12258 (eval $ac_try) 2>&5
12260 echo "$as_me:12260: \$? = $ac_status" >&5
12261 (exit $ac_status); }; }; then
12264 echo "$as_me: failed program was:" >&5
12265 cat conftest.$ac_ext >&5
12266 cf_cv_posix_c_source=no
12268 rm -f conftest.$ac_objext conftest.$ac_ext
12269 CFLAGS="$cf_save_CFLAGS"
12270 CPPFLAGS="$cf_save_CPPFLAGS"
12273 rm -f conftest.$ac_objext conftest.$ac_ext
12276 echo "$as_me:12276: result: $cf_cv_posix_c_source" >&5
12277 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
12279 if test "$cf_cv_posix_c_source" != no ; then
12280 CFLAGS="$cf_trim_CFLAGS"
12281 CPPFLAGS="$cf_trim_CPPFLAGS"
12286 cf_new_extra_cppflags=
12288 for cf_add_cflags in $cf_cv_posix_c_source
12290 case $cf_fix_cppflags in
12292 case $cf_add_cflags in
12293 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12294 case $cf_add_cflags in
12296 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12298 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12299 && test -z "${cf_tst_cflags}" \
12300 && cf_fix_cppflags=yes
12302 if test $cf_fix_cppflags = yes ; then
12304 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12305 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12308 elif test "${cf_tst_cflags}" = "\"'" ; then
12310 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12311 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12317 case "$CPPFLAGS" in
12321 case $cf_add_cflags in
12323 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12325 CPPFLAGS=`echo "$CPPFLAGS" | \
12326 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12327 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12332 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12333 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12340 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12341 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12348 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12349 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12351 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12353 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12354 && test -z "${cf_tst_cflags}" \
12355 && cf_fix_cppflags=no
12360 if test -n "$cf_new_cflags" ; then
12362 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12363 CFLAGS="${CFLAGS}$cf_new_cflags"
12367 if test -n "$cf_new_cppflags" ; then
12369 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12370 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12374 if test -n "$cf_new_extra_cppflags" ; then
12376 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12377 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12383 fi # cf_cv_posix_visible
12388 if test -n "$cf_xopen_source" ; then
12393 cf_new_extra_cppflags=
12395 for cf_add_cflags in $cf_xopen_source
12397 case $cf_fix_cppflags in
12399 case $cf_add_cflags in
12400 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12401 case $cf_add_cflags in
12403 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12405 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12406 && test -z "${cf_tst_cflags}" \
12407 && cf_fix_cppflags=yes
12409 if test $cf_fix_cppflags = yes ; then
12411 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12412 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12415 elif test "${cf_tst_cflags}" = "\"'" ; then
12417 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12418 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12424 case "$CPPFLAGS" in
12428 case $cf_add_cflags in
12430 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12432 CPPFLAGS=`echo "$CPPFLAGS" | \
12433 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12434 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12439 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12440 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12447 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12448 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12455 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12456 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12458 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12460 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12461 && test -z "${cf_tst_cflags}" \
12462 && cf_fix_cppflags=no
12467 if test -n "$cf_new_cflags" ; then
12468 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12470 echo "${as_me:-configure}:12470: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12472 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12473 CFLAGS="${CFLAGS}$cf_new_cflags"
12477 if test -n "$cf_new_cppflags" ; then
12478 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12480 echo "${as_me:-configure}:12480: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12482 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12483 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12487 if test -n "$cf_new_extra_cppflags" ; then
12488 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12490 echo "${as_me:-configure}:12490: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12492 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12493 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12499 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
12500 echo "$as_me:12500: checking if _XOPEN_SOURCE really is set" >&5
12501 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
12502 cat >conftest.$ac_ext <<_ACEOF
12503 #line 12503 "configure"
12504 #include "confdefs.h"
12505 #include <stdlib.h>
12510 #ifndef _XOPEN_SOURCE
12517 rm -f conftest.$ac_objext
12518 if { (eval echo "$as_me:12518: \"$ac_compile\"") >&5
12519 (eval $ac_compile) 2>&5
12521 echo "$as_me:12521: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -s conftest.$ac_objext'
12524 { (eval echo "$as_me:12524: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12527 echo "$as_me:12527: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12529 cf_XOPEN_SOURCE_set=yes
12531 echo "$as_me: failed program was:" >&5
12532 cat conftest.$ac_ext >&5
12533 cf_XOPEN_SOURCE_set=no
12535 rm -f conftest.$ac_objext conftest.$ac_ext
12536 echo "$as_me:12536: result: $cf_XOPEN_SOURCE_set" >&5
12537 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
12538 if test $cf_XOPEN_SOURCE_set = yes
12540 cat >conftest.$ac_ext <<_ACEOF
12541 #line 12541 "configure"
12542 #include "confdefs.h"
12543 #include <stdlib.h>
12548 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:12556: \"$ac_compile\"") >&5
12557 (eval $ac_compile) 2>&5
12559 echo "$as_me:12559: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -s conftest.$ac_objext'
12562 { (eval echo "$as_me:12562: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:12565: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 cf_XOPEN_SOURCE_set_ok=yes
12569 echo "$as_me: failed program was:" >&5
12570 cat conftest.$ac_ext >&5
12571 cf_XOPEN_SOURCE_set_ok=no
12573 rm -f conftest.$ac_objext conftest.$ac_ext
12574 if test $cf_XOPEN_SOURCE_set_ok = no
12576 { echo "$as_me:12576: WARNING: _XOPEN_SOURCE is lower than requested" >&5
12577 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
12581 echo "$as_me:12581: checking if we should define _XOPEN_SOURCE" >&5
12582 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
12583 if test "${cf_cv_xopen_source+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 cat >conftest.$ac_ext <<_ACEOF
12588 #line 12588 "configure"
12589 #include "confdefs.h"
12591 #include <stdlib.h>
12592 #include <string.h>
12593 #include <sys/types.h>
12599 #ifndef _XOPEN_SOURCE
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:12607: \"$ac_compile\"") >&5
12608 (eval $ac_compile) 2>&5
12610 echo "$as_me:12610: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -s conftest.$ac_objext'
12613 { (eval echo "$as_me:12613: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12616 echo "$as_me:12616: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 cf_cv_xopen_source=no
12620 echo "$as_me: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 cf_save="$CPPFLAGS"
12624 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12625 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
12627 cat >conftest.$ac_ext <<_ACEOF
12628 #line 12628 "configure"
12629 #include "confdefs.h"
12631 #include <stdlib.h>
12632 #include <string.h>
12633 #include <sys/types.h>
12639 #ifdef _XOPEN_SOURCE
12646 rm -f conftest.$ac_objext
12647 if { (eval echo "$as_me:12647: \"$ac_compile\"") >&5
12648 (eval $ac_compile) 2>&5
12650 echo "$as_me:12650: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -s conftest.$ac_objext'
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 cf_cv_xopen_source=no
12660 echo "$as_me: failed program was:" >&5
12661 cat conftest.$ac_ext >&5
12662 cf_cv_xopen_source=$cf_XOPEN_SOURCE
12664 rm -f conftest.$ac_objext conftest.$ac_ext
12665 CPPFLAGS="$cf_save"
12668 rm -f conftest.$ac_objext conftest.$ac_ext
12671 echo "$as_me:12671: result: $cf_cv_xopen_source" >&5
12672 echo "${ECHO_T}$cf_cv_xopen_source" >&6
12674 if test "$cf_cv_xopen_source" != no ; then
12676 CFLAGS=`echo "$CFLAGS" | \
12677 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12678 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12680 CPPFLAGS=`echo "$CPPFLAGS" | \
12681 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12682 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12684 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
12689 cf_new_extra_cppflags=
12691 for cf_add_cflags in $cf_temp_xopen_source
12693 case $cf_fix_cppflags in
12695 case $cf_add_cflags in
12696 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12697 case $cf_add_cflags in
12699 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12701 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12702 && test -z "${cf_tst_cflags}" \
12703 && cf_fix_cppflags=yes
12705 if test $cf_fix_cppflags = yes ; then
12707 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12708 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12711 elif test "${cf_tst_cflags}" = "\"'" ; then
12713 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12714 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12720 case "$CPPFLAGS" in
12724 case $cf_add_cflags in
12726 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12728 CPPFLAGS=`echo "$CPPFLAGS" | \
12729 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12730 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12735 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12736 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12743 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12744 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12751 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12752 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12754 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12756 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12757 && test -z "${cf_tst_cflags}" \
12758 && cf_fix_cppflags=no
12763 if test -n "$cf_new_cflags" ; then
12765 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12766 CFLAGS="${CFLAGS}$cf_new_cflags"
12770 if test -n "$cf_new_cppflags" ; then
12772 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12773 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12777 if test -n "$cf_new_extra_cppflags" ; then
12779 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12780 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12788 fi # cf_cv_posix_visible
12790 # Check whether --enable-largefile or --disable-largefile was given.
12791 if test "${enable_largefile+set}" = set; then
12792 enableval="$enable_largefile"
12795 if test "$enable_largefile" != no; then
12797 echo "$as_me:12797: checking for special C compiler options needed for large files" >&5
12798 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12799 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 ac_cv_sys_largefile_CC=no
12803 if test "$GCC" != yes; then
12806 # IRIX 6.2 and later do not support large files by default,
12807 # so use the C compiler's -n32 option if that helps.
12808 cat >conftest.$ac_ext <<_ACEOF
12809 #line 12809 "configure"
12810 #include "confdefs.h"
12811 #include <sys/types.h>
12812 /* Check that off_t can represent 2**63 - 1 correctly.
12813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12814 since some C++ compilers masquerading as C compilers
12815 incorrectly reject 9223372036854775807. */
12816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12818 && LARGE_OFF_T % 2147483647 == 1)
12828 rm -f conftest.$ac_objext
12829 if { (eval echo "$as_me:12829: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>&5
12832 echo "$as_me:12832: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:12835: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12838 echo "$as_me:12838: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12842 echo "$as_me: failed program was:" >&5
12843 cat conftest.$ac_ext >&5
12845 rm -f conftest.$ac_objext
12847 rm -f conftest.$ac_objext
12848 if { (eval echo "$as_me:12848: \"$ac_compile\"") >&5
12849 (eval $ac_compile) 2>&5
12851 echo "$as_me:12851: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -s conftest.$ac_objext'
12854 { (eval echo "$as_me:12854: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:12857: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_sys_largefile_CC=' -n32'; break
12861 echo "$as_me: failed program was:" >&5
12862 cat conftest.$ac_ext >&5
12864 rm -f conftest.$ac_objext
12868 rm -f conftest.$ac_ext
12871 echo "$as_me:12871: result: $ac_cv_sys_largefile_CC" >&5
12872 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
12873 if test "$ac_cv_sys_largefile_CC" != no; then
12874 CC=$CC$ac_cv_sys_largefile_CC
12877 echo "$as_me:12877: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12878 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
12879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 ac_cv_sys_file_offset_bits=no
12884 cat >conftest.$ac_ext <<_ACEOF
12885 #line 12885 "configure"
12886 #include "confdefs.h"
12887 #include <sys/types.h>
12888 /* Check that off_t can represent 2**63 - 1 correctly.
12889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12890 since some C++ compilers masquerading as C compilers
12891 incorrectly reject 9223372036854775807. */
12892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12894 && LARGE_OFF_T % 2147483647 == 1)
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:12905: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>&5
12908 echo "$as_me:12908: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:12911: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:12914: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12918 echo "$as_me: failed program was:" >&5
12919 cat conftest.$ac_ext >&5
12921 rm -f conftest.$ac_objext conftest.$ac_ext
12922 cat >conftest.$ac_ext <<_ACEOF
12923 #line 12923 "configure"
12924 #include "confdefs.h"
12925 #define _FILE_OFFSET_BITS 64
12926 #include <sys/types.h>
12927 /* Check that off_t can represent 2**63 - 1 correctly.
12928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12929 since some C++ compilers masquerading as C compilers
12930 incorrectly reject 9223372036854775807. */
12931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12933 && LARGE_OFF_T % 2147483647 == 1)
12943 rm -f conftest.$ac_objext
12944 if { (eval echo "$as_me:12944: \"$ac_compile\"") >&5
12945 (eval $ac_compile) 2>&5
12947 echo "$as_me:12947: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
12949 { ac_try='test -s conftest.$ac_objext'
12950 { (eval echo "$as_me:12950: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12953 echo "$as_me:12953: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 ac_cv_sys_file_offset_bits=64; break
12957 echo "$as_me: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12960 rm -f conftest.$ac_objext conftest.$ac_ext
12964 echo "$as_me:12964: result: $ac_cv_sys_file_offset_bits" >&5
12965 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
12966 if test "$ac_cv_sys_file_offset_bits" != no; then
12968 cat >>confdefs.h <<EOF
12969 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12974 echo "$as_me:12974: checking for _LARGE_FILES value needed for large files" >&5
12975 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
12976 if test "${ac_cv_sys_large_files+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 ac_cv_sys_large_files=no
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line 12982 "configure"
12983 #include "confdefs.h"
12984 #include <sys/types.h>
12985 /* Check that off_t can represent 2**63 - 1 correctly.
12986 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12987 since some C++ compilers masquerading as C compilers
12988 incorrectly reject 9223372036854775807. */
12989 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12990 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12991 && LARGE_OFF_T % 2147483647 == 1)
13001 rm -f conftest.$ac_objext
13002 if { (eval echo "$as_me:13002: \"$ac_compile\"") >&5
13003 (eval $ac_compile) 2>&5
13005 echo "$as_me:13005: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:13008: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:13011: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13015 echo "$as_me: failed program was:" >&5
13016 cat conftest.$ac_ext >&5
13018 rm -f conftest.$ac_objext conftest.$ac_ext
13019 cat >conftest.$ac_ext <<_ACEOF
13020 #line 13020 "configure"
13021 #include "confdefs.h"
13022 #define _LARGE_FILES 1
13023 #include <sys/types.h>
13024 /* Check that off_t can represent 2**63 - 1 correctly.
13025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13026 since some C++ compilers masquerading as C compilers
13027 incorrectly reject 9223372036854775807. */
13028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13030 && LARGE_OFF_T % 2147483647 == 1)
13040 rm -f conftest.$ac_objext
13041 if { (eval echo "$as_me:13041: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>&5
13044 echo "$as_me:13044: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -s conftest.$ac_objext'
13047 { (eval echo "$as_me:13047: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:13050: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_sys_large_files=1; break
13054 echo "$as_me: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13057 rm -f conftest.$ac_objext conftest.$ac_ext
13061 echo "$as_me:13061: result: $ac_cv_sys_large_files" >&5
13062 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13063 if test "$ac_cv_sys_large_files" != no; then
13065 cat >>confdefs.h <<EOF
13066 #define _LARGE_FILES $ac_cv_sys_large_files
13073 if test "$enable_largefile" != no ; then
13074 echo "$as_me:13074: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13075 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13076 if test "${ac_cv_sys_largefile_source+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 ac_cv_sys_largefile_source=no
13081 cat >conftest.$ac_ext <<_ACEOF
13082 #line 13082 "configure"
13083 #include "confdefs.h"
13093 rm -f conftest.$ac_objext
13094 if { (eval echo "$as_me:13094: \"$ac_compile\"") >&5
13095 (eval $ac_compile) 2>&5
13097 echo "$as_me:13097: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -s conftest.$ac_objext'
13100 { (eval echo "$as_me:13100: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13103 echo "$as_me:13103: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13107 echo "$as_me: failed program was:" >&5
13108 cat conftest.$ac_ext >&5
13110 rm -f conftest.$ac_objext conftest.$ac_ext
13111 cat >conftest.$ac_ext <<_ACEOF
13112 #line 13112 "configure"
13113 #include "confdefs.h"
13114 #define _LARGEFILE_SOURCE 1
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:13125: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>&5
13128 echo "$as_me:13128: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:13131: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:13134: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_sys_largefile_source=1; break
13138 echo "$as_me: failed program was:" >&5
13139 cat conftest.$ac_ext >&5
13141 rm -f conftest.$ac_objext conftest.$ac_ext
13145 echo "$as_me:13145: result: $ac_cv_sys_largefile_source" >&5
13146 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13147 if test "$ac_cv_sys_largefile_source" != no; then
13149 cat >>confdefs.h <<EOF
13150 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13156 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13157 # in glibc 2.1.3, but that breaks too many other things.
13158 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13159 echo "$as_me:13159: checking for fseeko" >&5
13160 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13161 if test "${ac_cv_func_fseeko+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 cat >conftest.$ac_ext <<_ACEOF
13165 #line 13165 "configure"
13166 #include "confdefs.h"
13171 return fseeko && fseeko (stdin, 0, 0);
13176 rm -f conftest.$ac_objext conftest$ac_exeext
13177 if { (eval echo "$as_me:13177: \"$ac_link\"") >&5
13178 (eval $ac_link) 2>&5
13180 echo "$as_me:13180: \$? = $ac_status" >&5
13181 (exit $ac_status); } &&
13182 { ac_try='test -s conftest$ac_exeext'
13183 { (eval echo "$as_me:13183: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13186 echo "$as_me:13186: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_cv_func_fseeko=yes
13190 echo "$as_me: failed program was:" >&5
13191 cat conftest.$ac_ext >&5
13192 ac_cv_func_fseeko=no
13194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13196 echo "$as_me:13196: result: $ac_cv_func_fseeko" >&5
13197 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13198 if test $ac_cv_func_fseeko = yes; then
13200 cat >>confdefs.h <<\EOF
13201 #define HAVE_FSEEKO 1
13206 # Normally we would collect these definitions in the config.h,
13207 # but (like _XOPEN_SOURCE), some environments rely on having these
13208 # defined before any of the system headers are included. Another
13209 # case comes up with C++, e.g., on AIX the compiler compiles the
13210 # header files by themselves before looking at the body files it is
13211 # told to compile. For ncurses, those header files do not include
13213 if test "$ac_cv_sys_large_files" != no
13216 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13217 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13220 if test "$ac_cv_sys_largefile_source" != no
13223 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13224 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13227 if test "$ac_cv_sys_file_offset_bits" != no
13230 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13231 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13235 echo "$as_me:13235: checking whether to use struct dirent64" >&5
13236 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13237 if test "${cf_cv_struct_dirent64+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 cat >conftest.$ac_ext <<_ACEOF
13242 #line 13242 "configure"
13243 #include "confdefs.h"
13245 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13246 #include <sys/types.h>
13247 #include <dirent.h>
13253 /* if transitional largefile support is setup, this is true */
13254 extern struct dirent64 * readdir(DIR *);
13255 struct dirent64 *x = readdir((DIR *)0);
13256 struct dirent *y = readdir((DIR *)0);
13263 rm -f conftest.$ac_objext
13264 if { (eval echo "$as_me:13264: \"$ac_compile\"") >&5
13265 (eval $ac_compile) 2>&5
13267 echo "$as_me:13267: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:13270: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:13273: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 cf_cv_struct_dirent64=yes
13277 echo "$as_me: failed program was:" >&5
13278 cat conftest.$ac_ext >&5
13279 cf_cv_struct_dirent64=no
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13284 echo "$as_me:13284: result: $cf_cv_struct_dirent64" >&5
13285 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13286 test "$cf_cv_struct_dirent64" = yes &&
13287 cat >>confdefs.h <<\EOF
13288 #define HAVE_STRUCT_DIRENT64 1
13293 ### Enable compiling-in rcs id's
13294 echo "$as_me:13294: checking if RCS identifiers should be compiled-in" >&5
13295 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
13297 # Check whether --with-rcs-ids or --without-rcs-ids was given.
13298 if test "${with_rcs_ids+set}" = set; then
13299 withval="$with_rcs_ids"
13300 with_rcs_ids=$withval
13304 echo "$as_me:13304: result: $with_rcs_ids" >&5
13305 echo "${ECHO_T}$with_rcs_ids" >&6
13306 test "$with_rcs_ids" = yes &&
13307 cat >>confdefs.h <<\EOF
13308 #define USE_RCS_IDS 1
13311 ###############################################################################
13313 ### Note that some functions (such as const) are normally disabled anyway.
13314 echo "$as_me:13314: checking if you want to build with function extensions" >&5
13315 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
13317 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
13318 if test "${enable_ext_funcs+set}" = set; then
13319 enableval="$enable_ext_funcs"
13320 with_ext_funcs=$enableval
13324 echo "$as_me:13324: result: $with_ext_funcs" >&5
13325 echo "${ECHO_T}$with_ext_funcs" >&6
13326 if test "$with_ext_funcs" = yes ; then
13327 NCURSES_EXT_FUNCS=1
13329 cat >>confdefs.h <<\EOF
13330 #define HAVE_USE_DEFAULT_COLORS 1
13333 cat >>confdefs.h <<\EOF
13334 #define NCURSES_EXT_FUNCS 1
13338 NCURSES_EXT_FUNCS=0
13341 ### use option --enable-const to turn on use of const beyond that in XSI.
13342 echo "$as_me:13342: checking for extended use of const keyword" >&5
13343 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
13345 # Check whether --enable-const or --disable-const was given.
13346 if test "${enable_const+set}" = set; then
13347 enableval="$enable_const"
13348 with_ext_const=$enableval
13352 echo "$as_me:13352: result: $with_ext_const" >&5
13353 echo "${ECHO_T}$with_ext_const" >&6
13354 NCURSES_CONST='/*nothing*/'
13355 if test "$with_ext_const" = yes ; then
13356 NCURSES_CONST=const
13359 ###############################################################################
13360 # These options are relatively safe to experiment with.
13362 echo "$as_me:13362: checking if you want all development code" >&5
13363 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
13365 # Check whether --with-develop or --without-develop was given.
13366 if test "${with_develop+set}" = set; then
13367 withval="$with_develop"
13368 with_develop=$withval
13372 echo "$as_me:13372: result: $with_develop" >&5
13373 echo "${ECHO_T}$with_develop" >&6
13375 ###############################################################################
13376 # These are just experimental, probably should not be in a package:
13378 # This is still experimental (20080329), but should ultimately be moved to
13379 # the script-block --with-normal, etc.
13381 echo "$as_me:13381: checking if you want to link with the pthread library" >&5
13382 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
13384 # Check whether --with-pthread or --without-pthread was given.
13385 if test "${with_pthread+set}" = set; then
13386 withval="$with_pthread"
13387 with_pthread=$withval
13391 echo "$as_me:13391: result: $with_pthread" >&5
13392 echo "${ECHO_T}$with_pthread" >&6
13394 if test "$with_pthread" != no ; then
13395 echo "$as_me:13395: checking for pthread.h" >&5
13396 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13397 if test "${ac_cv_header_pthread_h+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 cat >conftest.$ac_ext <<_ACEOF
13401 #line 13401 "configure"
13402 #include "confdefs.h"
13403 #include <pthread.h>
13405 if { (eval echo "$as_me:13405: \"$ac_cpp conftest.$ac_ext\"") >&5
13406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13408 egrep -v '^ *\+' conftest.er1 >conftest.err
13410 cat conftest.err >&5
13411 echo "$as_me:13411: \$? = $ac_status" >&5
13412 (exit $ac_status); } >/dev/null; then
13413 if test -s conftest.err; then
13414 ac_cpp_err=$ac_c_preproc_warn_flag
13421 if test -z "$ac_cpp_err"; then
13422 ac_cv_header_pthread_h=yes
13424 echo "$as_me: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 ac_cv_header_pthread_h=no
13428 rm -f conftest.err conftest.$ac_ext
13430 echo "$as_me:13430: result: $ac_cv_header_pthread_h" >&5
13431 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13432 if test $ac_cv_header_pthread_h = yes; then
13434 cat >>confdefs.h <<\EOF
13435 #define HAVE_PTHREADS_H 1
13438 for cf_lib_pthread in pthread c_r
13440 echo "$as_me:13440: checking if we can link with the $cf_lib_pthread library" >&5
13441 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
13442 cf_save_LIBS="$LIBS"
13444 cf_add_libs="$LIBS"
13447 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13448 # filter duplicates
13449 for cf_add_1lib in $cf_add_0lib; do
13450 for cf_add_2lib in $cf_add_libs; do
13451 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13456 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13458 LIBS="$cf_add_libs"
13460 cat >conftest.$ac_ext <<_ACEOF
13461 #line 13461 "configure"
13462 #include "confdefs.h"
13464 #include <pthread.h>
13470 int rc = pthread_create(0,0,0,0);
13471 int r2 = pthread_mutexattr_settype(0, 0);
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (eval echo "$as_me:13478: \"$ac_link\"") >&5
13479 (eval $ac_link) 2>&5
13481 echo "$as_me:13481: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -s conftest$ac_exeext'
13484 { (eval echo "$as_me:13484: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13487 echo "$as_me:13487: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13491 echo "$as_me: failed program was:" >&5
13492 cat conftest.$ac_ext >&5
13495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13496 LIBS="$cf_save_LIBS"
13497 echo "$as_me:13497: result: $with_pthread" >&5
13498 echo "${ECHO_T}$with_pthread" >&6
13499 test "$with_pthread" = yes && break
13502 if test "$with_pthread" = yes ; then
13504 cf_add_libs="$LIBS"
13507 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13508 # filter duplicates
13509 for cf_add_1lib in $cf_add_0lib; do
13510 for cf_add_2lib in $cf_add_libs; do
13511 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13516 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13518 LIBS="$cf_add_libs"
13520 cat >>confdefs.h <<\EOF
13521 #define HAVE_LIBPTHREADS 1
13525 { { echo "$as_me:13525: error: Cannot link with pthread library" >&5
13526 echo "$as_me: error: Cannot link with pthread library" >&2;}
13527 { (exit 1); exit 1; }; }
13534 echo "$as_me:13534: checking if you want to use weak-symbols for pthreads" >&5
13535 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
13537 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
13538 if test "${enable_weak_symbols+set}" = set; then
13539 enableval="$enable_weak_symbols"
13540 use_weak_symbols=$withval
13542 use_weak_symbols=no
13544 echo "$as_me:13544: result: $use_weak_symbols" >&5
13545 echo "${ECHO_T}$use_weak_symbols" >&6
13546 if test "$use_weak_symbols" = yes ; then
13548 echo "$as_me:13548: checking if $CC supports weak symbols" >&5
13549 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
13550 if test "${cf_cv_weak_symbols+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 cat >conftest.$ac_ext <<_ACEOF
13555 #line 13555 "configure"
13556 #include "confdefs.h"
13563 #if defined(__GNUC__)
13564 # if defined __USE_ISOC99
13565 # define _cat_pragma(exp) _Pragma(#exp)
13566 # define _weak_pragma(exp) _cat_pragma(weak name)
13568 # define _weak_pragma(exp)
13570 # define _declare(name) __extension__ extern __typeof__(name) name
13571 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
13574 weak_symbol(fopen);
13580 rm -f conftest.$ac_objext
13581 if { (eval echo "$as_me:13581: \"$ac_compile\"") >&5
13582 (eval $ac_compile) 2>&5
13584 echo "$as_me:13584: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:13587: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:13590: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 cf_cv_weak_symbols=yes
13594 echo "$as_me: failed program was:" >&5
13595 cat conftest.$ac_ext >&5
13596 cf_cv_weak_symbols=no
13598 rm -f conftest.$ac_objext conftest.$ac_ext
13601 echo "$as_me:13601: result: $cf_cv_weak_symbols" >&5
13602 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
13605 cf_cv_weak_symbols=no
13608 if test $cf_cv_weak_symbols = yes ; then
13610 cat >>confdefs.h <<\EOF
13611 #define USE_WEAK_SYMBOLS 1
13617 if test "$with_pthread" = "yes" ; then
13619 cat >>confdefs.h <<\EOF
13620 #define USE_PTHREADS 1
13623 enable_reentrant=yes
13624 if test $cf_cv_weak_symbols = yes ; then
13629 # OpenSUSE is installing ncurses6, using reentrant option.
13630 echo "$as_me:13630: checking for _nc_TABSIZE" >&5
13631 echo $ECHO_N "checking for _nc_TABSIZE... $ECHO_C" >&6
13632 if test "${ac_cv_func__nc_TABSIZE+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 cat >conftest.$ac_ext <<_ACEOF
13636 #line 13636 "configure"
13637 #include "confdefs.h"
13638 #define _nc_TABSIZE autoconf_temporary
13639 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
13646 /* We use char because int might match the return type of a gcc2
13647 builtin and then its argument prototype would still apply. */
13648 char _nc_TABSIZE (void);
13654 /* The GNU C library defines stubs for functions which it implements
13655 to always fail with ENOSYS. Some functions are actually named
13656 something starting with __ and the normal name is an alias. */
13657 #if defined (__stub__nc_TABSIZE) || defined (__stub____nc_TABSIZE)
13658 #error found stub for _nc_TABSIZE
13661 return _nc_TABSIZE ();
13666 rm -f conftest.$ac_objext conftest$ac_exeext
13667 if { (eval echo "$as_me:13667: \"$ac_link\"") >&5
13668 (eval $ac_link) 2>&5
13670 echo "$as_me:13670: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -s conftest$ac_exeext'
13673 { (eval echo "$as_me:13673: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13676 echo "$as_me:13676: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 ac_cv_func__nc_TABSIZE=yes
13680 echo "$as_me: failed program was:" >&5
13681 cat conftest.$ac_ext >&5
13682 ac_cv_func__nc_TABSIZE=no
13684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13686 echo "$as_me:13686: result: $ac_cv_func__nc_TABSIZE" >&5
13687 echo "${ECHO_T}$ac_cv_func__nc_TABSIZE" >&6
13688 if test $ac_cv_func__nc_TABSIZE = yes; then
13689 assume_reentrant=yes
13691 assume_reentrant=no
13694 # Reentrant code has to be opaque; there's little advantage to making ncurses
13695 # opaque outside of that, so there is no --enable-opaque option. We can use
13696 # this option without --with-pthreads, but this will be always set for
13698 echo "$as_me:13698: checking if you want experimental reentrant code" >&5
13699 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
13701 # Check whether --enable-reentrant or --disable-reentrant was given.
13702 if test "${enable_reentrant+set}" = set; then
13703 enableval="$enable_reentrant"
13704 with_reentrant=$enableval
13706 with_reentrant=$assume_reentrant
13708 echo "$as_me:13708: result: $with_reentrant" >&5
13709 echo "${ECHO_T}$with_reentrant" >&6
13710 if test "$with_reentrant" = yes ; then
13711 cf_cv_enable_reentrant=1
13712 if test $cf_cv_weak_symbols = yes ; then
13714 # remove pthread library from $LIBS
13715 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
13717 elif test "$assume_reentrant" = no ; then
13718 LIB_SUFFIX="t${LIB_SUFFIX}"
13721 cat >>confdefs.h <<\EOF
13722 #define USE_REENTRANT 1
13726 cf_cv_enable_reentrant=0
13729 ### Allow using a different wrap-prefix
13730 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
13731 echo "$as_me:13731: checking for prefix used to wrap public variables" >&5
13732 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
13734 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
13735 if test "${with_wrap_prefix+set}" = set; then
13736 withval="$with_wrap_prefix"
13737 NCURSES_WRAP_PREFIX=$withval
13739 NCURSES_WRAP_PREFIX=_nc_
13741 echo "$as_me:13741: result: $NCURSES_WRAP_PREFIX" >&5
13742 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
13744 NCURSES_WRAP_PREFIX=_nc_
13747 cat >>confdefs.h <<EOF
13748 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
13751 ###############################################################################
13753 ### use option --disable-echo to suppress full display compiling commands
13755 echo "$as_me:13755: checking if you want to see long compiling messages" >&5
13756 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
13758 # Check whether --enable-echo or --disable-echo was given.
13759 if test "${enable_echo+set}" = set; then
13760 enableval="$enable_echo"
13761 test "$enableval" != no && enableval=yes
13762 if test "$enableval" != "yes" ; then
13765 ECHO_LD='@echo linking $@;'
13766 RULE_CC='@echo compiling $<'
13767 SHOW_CC='@echo compiling $@'
13789 echo "$as_me:13789: result: $enableval" >&5
13790 echo "${ECHO_T}$enableval" >&6
13792 ### use option --enable-warnings to turn on all gcc warnings
13793 echo "$as_me:13793: checking if you want to see compiler warnings" >&5
13794 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
13796 # Check whether --enable-warnings or --disable-warnings was given.
13797 if test "${enable_warnings+set}" = set; then
13798 enableval="$enable_warnings"
13799 with_warnings=$enableval
13801 echo "$as_me:13801: result: $with_warnings" >&5
13802 echo "${ECHO_T}$with_warnings" >&6
13804 if test "x$with_warnings" = "xyes"; then
13806 ADAFLAGS="$ADAFLAGS -gnatg"
13808 if test "x$have_x" = xyes; then
13810 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
13811 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
13812 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
13813 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
13814 for cf_X_CFLAGS in $X_CFLAGS
13816 case "x$cf_X_CFLAGS" in
13818 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
13821 CFLAGS="$CFLAGS $cf_X_CFLAGS"
13826 cat >conftest.$ac_ext <<_ACEOF
13827 #line 13827 "configure"
13828 #include "confdefs.h"
13830 #include <stdlib.h>
13831 #include <X11/Intrinsic.h>
13836 String foo = malloc(1)
13841 rm -f conftest.$ac_objext
13842 if { (eval echo "$as_me:13842: \"$ac_compile\"") >&5
13843 (eval $ac_compile) 2>&5
13845 echo "$as_me:13845: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:13848: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 echo "$as_me:13851: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13854 echo "$as_me:13854: checking for X11/Xt const-feature" >&5
13855 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
13856 if test "${cf_cv_const_x_string+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 cat >conftest.$ac_ext <<_ACEOF
13861 #line 13861 "configure"
13862 #include "confdefs.h"
13864 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
13865 #undef XTSTRINGDEFINES /* X11R5 and later */
13866 #include <stdlib.h>
13867 #include <X11/Intrinsic.h>
13872 String foo = malloc(1); *foo = 0
13877 rm -f conftest.$ac_objext
13878 if { (eval echo "$as_me:13878: \"$ac_compile\"") >&5
13879 (eval $ac_compile) 2>&5
13881 echo "$as_me:13881: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
13883 { ac_try='test -s conftest.$ac_objext'
13884 { (eval echo "$as_me:13884: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13887 echo "$as_me:13887: \$? = $ac_status" >&5
13888 (exit $ac_status); }; }; then
13890 cf_cv_const_x_string=no
13893 echo "$as_me: failed program was:" >&5
13894 cat conftest.$ac_ext >&5
13896 cf_cv_const_x_string=yes
13899 rm -f conftest.$ac_objext conftest.$ac_ext
13902 echo "$as_me:13902: result: $cf_cv_const_x_string" >&5
13903 echo "${ECHO_T}$cf_cv_const_x_string" >&6
13905 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
13906 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
13907 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
13909 case $cf_cv_const_x_string in
13912 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13913 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
13918 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13919 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
13925 echo "$as_me: failed program was:" >&5
13926 cat conftest.$ac_ext >&5
13928 rm -f conftest.$ac_objext conftest.$ac_ext
13930 cat > conftest.$ac_ext <<EOF
13931 #line 13931 "${as_me:-configure}"
13932 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13934 if test "$INTEL_COMPILER" = yes
13936 # The "-wdXXX" options suppress warnings:
13937 # remark #1419: external declaration in primary source file
13938 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13939 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13940 # remark #193: zero used for undefined preprocessing identifier
13941 # remark #593: variable "curs_sb_left_arrow" was set but never used
13942 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13943 # remark #869: parameter "tw" was never referenced
13944 # remark #981: operands are evaluated in unspecified order
13945 # warning #279: controlling expression is constant
13947 { echo "$as_me:13947: checking for $CC warning options..." >&5
13948 echo "$as_me: checking for $CC warning options..." >&6;}
13949 cf_save_CFLAGS="$CFLAGS"
13950 EXTRA_CFLAGS="-Wall"
13962 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13963 if { (eval echo "$as_me:13963: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>&5
13966 echo "$as_me:13966: \$? = $ac_status" >&5
13967 (exit $ac_status); }; then
13968 test -n "$verbose" && echo "$as_me:13968: result: ... -$cf_opt" >&5
13969 echo "${ECHO_T}... -$cf_opt" >&6
13970 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13973 CFLAGS="$cf_save_CFLAGS"
13974 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
13976 { echo "$as_me:13976: checking for $CC warning options..." >&5
13977 echo "$as_me: checking for $CC warning options..." >&6;}
13978 cf_save_CFLAGS="$CFLAGS"
13981 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13982 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13983 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13984 for cf_opt in W Wall \
13985 Wbad-function-cast \
13988 Wdeclaration-after-statement \
13991 Wmissing-declarations \
13992 Wmissing-prototypes \
13996 Wstrict-prototypes \
13997 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13999 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
14000 if { (eval echo "$as_me:14000: \"$ac_compile\"") >&5
14001 (eval $ac_compile) 2>&5
14003 echo "$as_me:14003: \$? = $ac_status" >&5
14004 (exit $ac_status); }; then
14005 test -n "$verbose" && echo "$as_me:14005: result: ... -$cf_opt" >&5
14006 echo "${ECHO_T}... -$cf_opt" >&6
14009 case $GCC_VERSION in
14011 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
14013 echo "${as_me:-configure}:14013: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
14019 case $GCC_VERSION in
14021 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
14023 echo "${as_me:-configure}:14023: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
14029 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
14032 CFLAGS="$cf_save_CFLAGS"
14038 if test "$GCC" = yes
14040 cat > conftest.i <<EOF
14042 #define GCC_PRINTF 0
14045 #define GCC_SCANF 0
14047 #ifndef GCC_NORETURN
14048 #define GCC_NORETURN /* nothing */
14051 #define GCC_UNUSED /* nothing */
14054 if test "$GCC" = yes
14056 { echo "$as_me:14056: checking for $CC __attribute__ directives..." >&5
14057 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
14058 cat > conftest.$ac_ext <<EOF
14059 #line 14059 "${as_me:-configure}"
14060 #include "confdefs.h"
14061 #include "conftest.h"
14062 #include "conftest.i"
14064 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
14066 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
14069 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
14071 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
14073 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
14074 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
14075 extern void foo(void) GCC_NORETURN;
14076 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
14078 cf_printf_attribute=no
14079 cf_scanf_attribute=no
14080 for cf_attribute in scanf printf unused noreturn
14083 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14085 cf_directive="__attribute__(($cf_attribute))"
14086 echo "checking for $CC $cf_directive" 1>&5
14088 case $cf_attribute in
14090 cf_printf_attribute=yes
14091 cat >conftest.h <<EOF
14092 #define GCC_$cf_ATTRIBUTE 1
14096 cf_scanf_attribute=yes
14097 cat >conftest.h <<EOF
14098 #define GCC_$cf_ATTRIBUTE 1
14102 cat >conftest.h <<EOF
14103 #define GCC_$cf_ATTRIBUTE $cf_directive
14108 if { (eval echo "$as_me:14108: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>&5
14111 echo "$as_me:14111: \$? = $ac_status" >&5
14112 (exit $ac_status); }; then
14113 test -n "$verbose" && echo "$as_me:14113: result: ... $cf_attribute" >&5
14114 echo "${ECHO_T}... $cf_attribute" >&6
14115 cat conftest.h >>confdefs.h
14116 case $cf_attribute in
14119 cat >>confdefs.h <<EOF
14120 #define GCC_NORETURN $cf_directive
14125 cf_value='/* nothing */'
14126 if test "$cf_printf_attribute" != no ; then
14127 cf_value='__attribute__((format(printf,fmt,var)))'
14129 cat >>confdefs.h <<\EOF
14130 #define GCC_PRINTF 1
14135 cat >>confdefs.h <<EOF
14136 #define GCC_PRINTFLIKE(fmt,var) $cf_value
14141 cf_value='/* nothing */'
14142 if test "$cf_scanf_attribute" != no ; then
14143 cf_value='__attribute__((format(scanf,fmt,var)))'
14145 cat >>confdefs.h <<\EOF
14146 #define GCC_SCANF 1
14151 cat >>confdefs.h <<EOF
14152 #define GCC_SCANFLIKE(fmt,var) $cf_value
14158 cat >>confdefs.h <<EOF
14159 #define GCC_UNUSED $cf_directive
14167 fgrep define conftest.i >>confdefs.h
14172 ### use option --enable-assertions to turn on generation of assertion code
14173 echo "$as_me:14173: checking if you want to enable runtime assertions" >&5
14174 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
14176 # Check whether --enable-assertions or --disable-assertions was given.
14177 if test "${enable_assertions+set}" = set; then
14178 enableval="$enable_assertions"
14179 with_assertions=$enableval
14183 echo "$as_me:14183: result: $with_assertions" >&5
14184 echo "${ECHO_T}$with_assertions" >&6
14187 if test "$with_assertions" = no
14189 CPPFLAGS="$CPPFLAGS -DNDEBUG"
14192 ADAFLAGS="$ADAFLAGS -gnata"
14197 ### use option --disable-leaks to suppress "permanent" leaks, for testing
14199 cat >>confdefs.h <<\EOF
14200 #define HAVE_NC_ALLOC_H 1
14203 ### use option --enable-expanded to generate certain macros as functions
14205 # Check whether --enable-expanded or --disable-expanded was given.
14206 if test "${enable_expanded+set}" = set; then
14207 enableval="$enable_expanded"
14208 test "$enableval" = yes &&
14209 cat >>confdefs.h <<\EOF
14210 #define NCURSES_EXPANDED 1
14215 ### use option --disable-macros to suppress macros in favor of functions
14217 # Check whether --enable-macros or --disable-macros was given.
14218 if test "${enable_macros+set}" = set; then
14219 enableval="$enable_macros"
14220 test "$enableval" = no &&
14221 cat >>confdefs.h <<\EOF
14222 #define NCURSES_NOMACROS 1
14227 # Normally we only add trace() to the debug-library. Allow this to be
14228 # extended to all models of the ncurses library:
14230 case "$CFLAGS $CPPFLAGS" in
14236 echo "$as_me:14236: checking whether to add trace feature to all models" >&5
14237 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
14239 # Check whether --with-trace or --without-trace was given.
14240 if test "${with_trace+set}" = set; then
14241 withval="$with_trace"
14242 cf_with_trace=$withval
14244 cf_with_trace=$cf_all_traces
14246 echo "$as_me:14246: result: $cf_with_trace" >&5
14247 echo "${ECHO_T}$cf_with_trace" >&6
14249 if test "$cf_with_trace" = yes ; then
14255 cf_new_extra_cppflags=
14257 for cf_add_cflags in -DTRACE
14259 case $cf_fix_cppflags in
14261 case $cf_add_cflags in
14262 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14263 case $cf_add_cflags in
14265 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14267 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14268 && test -z "${cf_tst_cflags}" \
14269 && cf_fix_cppflags=yes
14271 if test $cf_fix_cppflags = yes ; then
14273 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14274 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14277 elif test "${cf_tst_cflags}" = "\"'" ; then
14279 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14280 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14286 case "$CPPFLAGS" in
14290 case $cf_add_cflags in
14292 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14294 CPPFLAGS=`echo "$CPPFLAGS" | \
14295 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14296 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14301 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14302 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14309 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14310 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14317 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14318 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14320 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14322 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14323 && test -z "${cf_tst_cflags}" \
14324 && cf_fix_cppflags=no
14329 if test -n "$cf_new_cflags" ; then
14331 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14332 CFLAGS="${CFLAGS}$cf_new_cflags"
14336 if test -n "$cf_new_cppflags" ; then
14338 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14339 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14343 if test -n "$cf_new_extra_cppflags" ; then
14345 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14346 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14354 echo "$as_me:14354: checking if we want to use GNAT projects" >&5
14355 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
14357 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
14358 if test "${enable_gnat_projects+set}" = set; then
14359 enableval="$enable_gnat_projects"
14360 test "$enableval" != no && enableval=yes
14361 if test "$enableval" != "yes" ; then
14362 enable_gnat_projects=no
14364 enable_gnat_projects=yes
14368 enable_gnat_projects=yes
14371 echo "$as_me:14371: result: $enable_gnat_projects" >&5
14372 echo "${ECHO_T}$enable_gnat_projects" >&6
14374 ### Checks for libraries.
14375 case $cf_cv_system_name in
14379 echo "$as_me:14379: checking for gettimeofday" >&5
14380 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
14381 if test "${ac_cv_func_gettimeofday+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 cat >conftest.$ac_ext <<_ACEOF
14385 #line 14385 "configure"
14386 #include "confdefs.h"
14387 #define gettimeofday autoconf_temporary
14388 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14389 #undef gettimeofday
14395 /* We use char because int might match the return type of a gcc2
14396 builtin and then its argument prototype would still apply. */
14397 char gettimeofday (void);
14403 /* The GNU C library defines stubs for functions which it implements
14404 to always fail with ENOSYS. Some functions are actually named
14405 something starting with __ and the normal name is an alias. */
14406 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
14407 #error found stub for gettimeofday
14410 return gettimeofday ();
14415 rm -f conftest.$ac_objext conftest$ac_exeext
14416 if { (eval echo "$as_me:14416: \"$ac_link\"") >&5
14417 (eval $ac_link) 2>&5
14419 echo "$as_me:14419: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -s conftest$ac_exeext'
14422 { (eval echo "$as_me:14422: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14425 echo "$as_me:14425: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 ac_cv_func_gettimeofday=yes
14429 echo "$as_me: failed program was:" >&5
14430 cat conftest.$ac_ext >&5
14431 ac_cv_func_gettimeofday=no
14433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14435 echo "$as_me:14435: result: $ac_cv_func_gettimeofday" >&5
14436 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
14437 if test $ac_cv_func_gettimeofday = yes; then
14438 cat >>confdefs.h <<\EOF
14439 #define HAVE_GETTIMEOFDAY 1
14444 echo "$as_me:14444: checking for gettimeofday in -lbsd" >&5
14445 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
14446 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 ac_check_lib_save_LIBS=$LIBS
14451 cat >conftest.$ac_ext <<_ACEOF
14452 #line 14452 "configure"
14453 #include "confdefs.h"
14455 /* Override any gcc2 internal prototype to avoid an error. */
14459 /* We use char because int might match the return type of a gcc2
14460 builtin and then its argument prototype would still apply. */
14461 char gettimeofday ();
14470 rm -f conftest.$ac_objext conftest$ac_exeext
14471 if { (eval echo "$as_me:14471: \"$ac_link\"") >&5
14472 (eval $ac_link) 2>&5
14474 echo "$as_me:14474: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -s conftest$ac_exeext'
14477 { (eval echo "$as_me:14477: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:14480: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_lib_bsd_gettimeofday=yes
14484 echo "$as_me: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14486 ac_cv_lib_bsd_gettimeofday=no
14488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14489 LIBS=$ac_check_lib_save_LIBS
14491 echo "$as_me:14491: result: $ac_cv_lib_bsd_gettimeofday" >&5
14492 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
14493 if test $ac_cv_lib_bsd_gettimeofday = yes; then
14495 cat >>confdefs.h <<\EOF
14496 #define HAVE_GETTIMEOFDAY 1
14506 ### Checks for header files.
14507 echo "$as_me:14507: checking for ANSI C header files" >&5
14508 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14509 if test "${ac_cv_header_stdc+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 cat >conftest.$ac_ext <<_ACEOF
14513 #line 14513 "configure"
14514 #include "confdefs.h"
14515 #include <stdlib.h>
14516 #include <stdarg.h>
14517 #include <string.h>
14521 if { (eval echo "$as_me:14521: \"$ac_cpp conftest.$ac_ext\"") >&5
14522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14524 egrep -v '^ *\+' conftest.er1 >conftest.err
14526 cat conftest.err >&5
14527 echo "$as_me:14527: \$? = $ac_status" >&5
14528 (exit $ac_status); } >/dev/null; then
14529 if test -s conftest.err; then
14530 ac_cpp_err=$ac_c_preproc_warn_flag
14537 if test -z "$ac_cpp_err"; then
14538 ac_cv_header_stdc=yes
14540 echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 ac_cv_header_stdc=no
14544 rm -f conftest.err conftest.$ac_ext
14546 if test $ac_cv_header_stdc = yes; then
14547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14548 cat >conftest.$ac_ext <<_ACEOF
14549 #line 14549 "configure"
14550 #include "confdefs.h"
14551 #include <string.h>
14554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14555 egrep "memchr" >/dev/null 2>&1; then
14558 ac_cv_header_stdc=no
14564 if test $ac_cv_header_stdc = yes; then
14565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14566 cat >conftest.$ac_ext <<_ACEOF
14567 #line 14567 "configure"
14568 #include "confdefs.h"
14569 #include <stdlib.h>
14572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14573 egrep "free" >/dev/null 2>&1; then
14576 ac_cv_header_stdc=no
14582 if test $ac_cv_header_stdc = yes; then
14583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14584 if test "$cross_compiling" = yes; then
14587 cat >conftest.$ac_ext <<_ACEOF
14588 #line 14588 "configure"
14589 #include "confdefs.h"
14591 #if ((' ' & 0x0FF) == 0x020)
14592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14595 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14596 || ('j' <= (c) && (c) <= 'r') \
14597 || ('s' <= (c) && (c) <= 'z'))
14598 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14601 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14606 for (i = 0; i < 256; i++)
14607 if (XOR (islower (i), ISLOWER (i))
14608 || toupper (i) != TOUPPER (i))
14609 $ac_main_return(2);
14610 $ac_main_return (0);
14613 rm -f conftest$ac_exeext
14614 if { (eval echo "$as_me:14614: \"$ac_link\"") >&5
14615 (eval $ac_link) 2>&5
14617 echo "$as_me:14617: \$? = $ac_status" >&5
14618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14619 { (eval echo "$as_me:14619: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14622 echo "$as_me:14622: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14626 echo "$as_me: program exited with status $ac_status" >&5
14627 echo "$as_me: failed program was:" >&5
14628 cat conftest.$ac_ext >&5
14629 ac_cv_header_stdc=no
14631 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14635 echo "$as_me:14635: result: $ac_cv_header_stdc" >&5
14636 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14637 if test $ac_cv_header_stdc = yes; then
14639 cat >>confdefs.h <<\EOF
14640 #define STDC_HEADERS 1
14645 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14647 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14648 inttypes.h stdint.h unistd.h
14650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14651 echo "$as_me:14651: checking for $ac_header" >&5
14652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 cat >conftest.$ac_ext <<_ACEOF
14657 #line 14657 "configure"
14658 #include "confdefs.h"
14659 $ac_includes_default
14660 #include <$ac_header>
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:14663: \"$ac_compile\"") >&5
14664 (eval $ac_compile) 2>&5
14666 echo "$as_me:14666: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (eval echo "$as_me:14669: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:14672: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 eval "$as_ac_Header=yes"
14676 echo "$as_me: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14678 eval "$as_ac_Header=no"
14680 rm -f conftest.$ac_objext conftest.$ac_ext
14682 echo "$as_me:14682: result: `eval echo '${'$as_ac_Header'}'`" >&5
14683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14685 cat >>confdefs.h <<EOF
14686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14692 echo "$as_me:14692: checking for signed char" >&5
14693 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14694 if test "${ac_cv_type_signed_char+set}" = set; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 cat >conftest.$ac_ext <<_ACEOF
14698 #line 14698 "configure"
14699 #include "confdefs.h"
14700 $ac_includes_default
14704 if ((signed char *) 0)
14706 if (sizeof (signed char))
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:14713: \"$ac_compile\"") >&5
14714 (eval $ac_compile) 2>&5
14716 echo "$as_me:14716: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (eval echo "$as_me:14719: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:14722: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_cv_type_signed_char=yes
14726 echo "$as_me: failed program was:" >&5
14727 cat conftest.$ac_ext >&5
14728 ac_cv_type_signed_char=no
14730 rm -f conftest.$ac_objext conftest.$ac_ext
14732 echo "$as_me:14732: result: $ac_cv_type_signed_char" >&5
14733 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14735 echo "$as_me:14735: checking size of signed char" >&5
14736 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14737 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 if test "$ac_cv_type_signed_char" = yes; then
14741 if test "$cross_compiling" = yes; then
14742 # Depending upon the size, compute the lo and hi bounds.
14743 cat >conftest.$ac_ext <<_ACEOF
14744 #line 14744 "configure"
14745 #include "confdefs.h"
14746 $ac_includes_default
14750 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:14756: \"$ac_compile\"") >&5
14757 (eval $ac_compile) 2>&5
14759 echo "$as_me:14759: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try='test -s conftest.$ac_objext'
14762 { (eval echo "$as_me:14762: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14765 echo "$as_me:14765: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14769 cat >conftest.$ac_ext <<_ACEOF
14770 #line 14770 "configure"
14771 #include "confdefs.h"
14772 $ac_includes_default
14776 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:14782: \"$ac_compile\"") >&5
14783 (eval $ac_compile) 2>&5
14785 echo "$as_me:14785: \$? = $ac_status" >&5
14786 (exit $ac_status); } &&
14787 { ac_try='test -s conftest.$ac_objext'
14788 { (eval echo "$as_me:14788: \"$ac_try\"") >&5
14789 (eval $ac_try) 2>&5
14791 echo "$as_me:14791: \$? = $ac_status" >&5
14792 (exit $ac_status); }; }; then
14793 ac_hi=$ac_mid; break
14795 echo "$as_me: failed program was:" >&5
14796 cat conftest.$ac_ext >&5
14797 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
14799 rm -f conftest.$ac_objext conftest.$ac_ext
14802 echo "$as_me: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14806 cat >conftest.$ac_ext <<_ACEOF
14807 #line 14807 "configure"
14808 #include "confdefs.h"
14809 $ac_includes_default
14813 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:14819: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>&5
14822 echo "$as_me:14822: \$? = $ac_status" >&5
14823 (exit $ac_status); } &&
14824 { ac_try='test -s conftest.$ac_objext'
14825 { (eval echo "$as_me:14825: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:14828: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 ac_lo=$ac_mid; break
14832 echo "$as_me: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14834 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
14836 rm -f conftest.$ac_objext conftest.$ac_ext
14839 rm -f conftest.$ac_objext conftest.$ac_ext
14840 # Binary search between lo and hi bounds.
14841 while test "x$ac_lo" != "x$ac_hi"; do
14842 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14843 cat >conftest.$ac_ext <<_ACEOF
14844 #line 14844 "configure"
14845 #include "confdefs.h"
14846 $ac_includes_default
14850 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14855 rm -f conftest.$ac_objext
14856 if { (eval echo "$as_me:14856: \"$ac_compile\"") >&5
14857 (eval $ac_compile) 2>&5
14859 echo "$as_me:14859: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -s conftest.$ac_objext'
14862 { (eval echo "$as_me:14862: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14865 echo "$as_me:14865: \$? = $ac_status" >&5
14866 (exit $ac_status); }; }; then
14869 echo "$as_me: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
14871 ac_lo=`expr $ac_mid + 1`
14873 rm -f conftest.$ac_objext conftest.$ac_ext
14875 ac_cv_sizeof_signed_char=$ac_lo
14877 if test "$cross_compiling" = yes; then
14878 { { echo "$as_me:14878: error: cannot run test program while cross compiling" >&5
14879 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14880 { (exit 1); exit 1; }; }
14882 cat >conftest.$ac_ext <<_ACEOF
14883 #line 14883 "configure"
14884 #include "confdefs.h"
14885 $ac_includes_default
14889 FILE *f = fopen ("conftest.val", "w");
14891 $ac_main_return (1);
14892 fprintf (f, "%d", (sizeof (signed char)));
14898 rm -f conftest$ac_exeext
14899 if { (eval echo "$as_me:14899: \"$ac_link\"") >&5
14900 (eval $ac_link) 2>&5
14902 echo "$as_me:14902: \$? = $ac_status" >&5
14903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14904 { (eval echo "$as_me:14904: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14907 echo "$as_me:14907: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_cv_sizeof_signed_char=`cat conftest.val`
14911 echo "$as_me: program exited with status $ac_status" >&5
14912 echo "$as_me: failed program was:" >&5
14913 cat conftest.$ac_ext >&5
14915 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14920 ac_cv_sizeof_signed_char=0
14923 echo "$as_me:14923: result: $ac_cv_sizeof_signed_char" >&5
14924 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14925 cat >>confdefs.h <<EOF
14926 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14929 echo "$as_me:14929: checking for ANSI C header files" >&5
14930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14931 if test "${ac_cv_header_stdc+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 cat >conftest.$ac_ext <<_ACEOF
14935 #line 14935 "configure"
14936 #include "confdefs.h"
14937 #include <stdlib.h>
14938 #include <stdarg.h>
14939 #include <string.h>
14943 if { (eval echo "$as_me:14943: \"$ac_cpp conftest.$ac_ext\"") >&5
14944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14946 egrep -v '^ *\+' conftest.er1 >conftest.err
14948 cat conftest.err >&5
14949 echo "$as_me:14949: \$? = $ac_status" >&5
14950 (exit $ac_status); } >/dev/null; then
14951 if test -s conftest.err; then
14952 ac_cpp_err=$ac_c_preproc_warn_flag
14959 if test -z "$ac_cpp_err"; then
14960 ac_cv_header_stdc=yes
14962 echo "$as_me: failed program was:" >&5
14963 cat conftest.$ac_ext >&5
14964 ac_cv_header_stdc=no
14966 rm -f conftest.err conftest.$ac_ext
14968 if test $ac_cv_header_stdc = yes; then
14969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14970 cat >conftest.$ac_ext <<_ACEOF
14971 #line 14971 "configure"
14972 #include "confdefs.h"
14973 #include <string.h>
14976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14977 egrep "memchr" >/dev/null 2>&1; then
14980 ac_cv_header_stdc=no
14986 if test $ac_cv_header_stdc = yes; then
14987 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14988 cat >conftest.$ac_ext <<_ACEOF
14989 #line 14989 "configure"
14990 #include "confdefs.h"
14991 #include <stdlib.h>
14994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14995 egrep "free" >/dev/null 2>&1; then
14998 ac_cv_header_stdc=no
15004 if test $ac_cv_header_stdc = yes; then
15005 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15006 if test "$cross_compiling" = yes; then
15009 cat >conftest.$ac_ext <<_ACEOF
15010 #line 15010 "configure"
15011 #include "confdefs.h"
15013 #if ((' ' & 0x0FF) == 0x020)
15014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15017 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15018 || ('j' <= (c) && (c) <= 'r') \
15019 || ('s' <= (c) && (c) <= 'z'))
15020 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15023 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15028 for (i = 0; i < 256; i++)
15029 if (XOR (islower (i), ISLOWER (i))
15030 || toupper (i) != TOUPPER (i))
15031 $ac_main_return(2);
15032 $ac_main_return (0);
15035 rm -f conftest$ac_exeext
15036 if { (eval echo "$as_me:15036: \"$ac_link\"") >&5
15037 (eval $ac_link) 2>&5
15039 echo "$as_me:15039: \$? = $ac_status" >&5
15040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15041 { (eval echo "$as_me:15041: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:15044: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15048 echo "$as_me: program exited with status $ac_status" >&5
15049 echo "$as_me: failed program was:" >&5
15050 cat conftest.$ac_ext >&5
15051 ac_cv_header_stdc=no
15053 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15057 echo "$as_me:15057: result: $ac_cv_header_stdc" >&5
15058 echo "${ECHO_T}$ac_cv_header_stdc" >&6
15059 if test $ac_cv_header_stdc = yes; then
15061 cat >>confdefs.h <<\EOF
15062 #define STDC_HEADERS 1
15067 ac_header_dirent=no
15068 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15069 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15070 echo "$as_me:15070: checking for $ac_hdr that defines DIR" >&5
15071 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 cat >conftest.$ac_ext <<_ACEOF
15076 #line 15076 "configure"
15077 #include "confdefs.h"
15078 #include <sys/types.h>
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:15091: \"$ac_compile\"") >&5
15092 (eval $ac_compile) 2>&5
15094 echo "$as_me:15094: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -s conftest.$ac_objext'
15097 { (eval echo "$as_me:15097: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:15100: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 eval "$as_ac_Header=yes"
15104 echo "$as_me: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 eval "$as_ac_Header=no"
15108 rm -f conftest.$ac_objext conftest.$ac_ext
15110 echo "$as_me:15110: result: `eval echo '${'$as_ac_Header'}'`" >&5
15111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15113 cat >>confdefs.h <<EOF
15114 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15117 ac_header_dirent=$ac_hdr; break
15121 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15122 if test $ac_header_dirent = dirent.h; then
15123 echo "$as_me:15123: checking for opendir in -ldir" >&5
15124 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
15125 if test "${ac_cv_lib_dir_opendir+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 ac_check_lib_save_LIBS=$LIBS
15130 cat >conftest.$ac_ext <<_ACEOF
15131 #line 15131 "configure"
15132 #include "confdefs.h"
15134 /* Override any gcc2 internal prototype to avoid an error. */
15138 /* We use char because int might match the return type of a gcc2
15139 builtin and then its argument prototype would still apply. */
15149 rm -f conftest.$ac_objext conftest$ac_exeext
15150 if { (eval echo "$as_me:15150: \"$ac_link\"") >&5
15151 (eval $ac_link) 2>&5
15153 echo "$as_me:15153: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -s conftest$ac_exeext'
15156 { (eval echo "$as_me:15156: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15159 echo "$as_me:15159: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_cv_lib_dir_opendir=yes
15163 echo "$as_me: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15165 ac_cv_lib_dir_opendir=no
15167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15168 LIBS=$ac_check_lib_save_LIBS
15170 echo "$as_me:15170: result: $ac_cv_lib_dir_opendir" >&5
15171 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
15172 if test $ac_cv_lib_dir_opendir = yes; then
15177 echo "$as_me:15177: checking for opendir in -lx" >&5
15178 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
15179 if test "${ac_cv_lib_x_opendir+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 ac_check_lib_save_LIBS=$LIBS
15184 cat >conftest.$ac_ext <<_ACEOF
15185 #line 15185 "configure"
15186 #include "confdefs.h"
15188 /* Override any gcc2 internal prototype to avoid an error. */
15192 /* We use char because int might match the return type of a gcc2
15193 builtin and then its argument prototype would still apply. */
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (eval echo "$as_me:15204: \"$ac_link\"") >&5
15205 (eval $ac_link) 2>&5
15207 echo "$as_me:15207: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try='test -s conftest$ac_exeext'
15210 { (eval echo "$as_me:15210: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_cv_lib_x_opendir=yes
15217 echo "$as_me: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15219 ac_cv_lib_x_opendir=no
15221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15222 LIBS=$ac_check_lib_save_LIBS
15224 echo "$as_me:15224: result: $ac_cv_lib_x_opendir" >&5
15225 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
15226 if test $ac_cv_lib_x_opendir = yes; then
15232 echo "$as_me:15232: checking whether time.h and sys/time.h may both be included" >&5
15233 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15234 if test "${ac_cv_header_time+set}" = set; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 cat >conftest.$ac_ext <<_ACEOF
15238 #line 15238 "configure"
15239 #include "confdefs.h"
15240 #include <sys/types.h>
15241 #include <sys/time.h>
15247 if ((struct tm *) 0)
15253 rm -f conftest.$ac_objext
15254 if { (eval echo "$as_me:15254: \"$ac_compile\"") >&5
15255 (eval $ac_compile) 2>&5
15257 echo "$as_me:15257: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (eval echo "$as_me:15260: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15263 echo "$as_me:15263: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 ac_cv_header_time=yes
15267 echo "$as_me: failed program was:" >&5
15268 cat conftest.$ac_ext >&5
15269 ac_cv_header_time=no
15271 rm -f conftest.$ac_objext conftest.$ac_ext
15273 echo "$as_me:15273: result: $ac_cv_header_time" >&5
15274 echo "${ECHO_T}$ac_cv_header_time" >&6
15275 if test $ac_cv_header_time = yes; then
15277 cat >>confdefs.h <<\EOF
15278 #define TIME_WITH_SYS_TIME 1
15283 ### checks for compiler characteristics
15285 ac_cpp='$CPP $CPPFLAGS'
15286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15289 ac_main_return=return
15291 echo "$as_me:15291: checking for an ANSI C-conforming const" >&5
15292 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15293 if test "${ac_cv_c_const+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 cat >conftest.$ac_ext <<_ACEOF
15297 #line 15297 "configure"
15298 #include "confdefs.h"
15303 /* FIXME: Include the comments suggested by Paul. */
15304 #ifndef __cplusplus
15305 /* Ultrix mips cc rejects this. */
15306 typedef int charset[2];
15308 /* SunOS 4.1.1 cc rejects this. */
15309 char const *const *ccp;
15311 /* NEC SVR4.0.2 mips cc rejects this. */
15312 struct point {int x, y;};
15313 static struct point const zero = {0,0};
15314 /* AIX XL C 1.02.0.0 rejects this.
15315 It does not let you subtract one const X* pointer from another in
15316 an arm of an if-expression whose if-part is not a constant
15318 const char *g = "string";
15319 ccp = &g + (g ? g-g : 0);
15320 /* HPUX 7.0 cc rejects these. */
15323 ccp = (char const *const *) p;
15324 { /* SCO 3.2v4 cc rejects this. */
15326 char const *s = 0 ? (char *) 0 : (char const *) 0;
15330 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15331 int x[] = {25, 17};
15332 const int *foo = &x[0];
15335 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15336 typedef const int *iptr;
15340 { /* AIX XL C 1.02.0.0 rejects this saying
15341 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15342 struct s { int j; const int *ap[3]; };
15343 struct s *b; b->j = 5;
15345 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15346 const int foo = 10;
15354 rm -f conftest.$ac_objext
15355 if { (eval echo "$as_me:15355: \"$ac_compile\"") >&5
15356 (eval $ac_compile) 2>&5
15358 echo "$as_me:15358: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -s conftest.$ac_objext'
15361 { (eval echo "$as_me:15361: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15364 echo "$as_me:15364: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15368 echo "$as_me: failed program was:" >&5
15369 cat conftest.$ac_ext >&5
15372 rm -f conftest.$ac_objext conftest.$ac_ext
15374 echo "$as_me:15374: result: $ac_cv_c_const" >&5
15375 echo "${ECHO_T}$ac_cv_c_const" >&6
15376 if test $ac_cv_c_const = no; then
15378 cat >>confdefs.h <<\EOF
15384 ### Checks for external-data
15386 echo "$as_me:15386: checking if data-only library module links" >&5
15387 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
15388 if test "${cf_cv_link_dataonly+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 cat >conftest.$ac_ext <<EOF
15394 #line 15394 "configure"
15395 int testdata[3] = { 123, 456, 789 };
15397 if { (eval echo "$as_me:15397: \"$ac_compile\"") >&5
15398 (eval $ac_compile) 2>&5
15400 echo "$as_me:15400: \$? = $ac_status" >&5
15401 (exit $ac_status); } ; then
15402 mv conftest.o data.o && \
15403 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
15405 rm -f conftest.$ac_ext data.o
15406 cat >conftest.$ac_ext <<EOF
15407 #line 15407 "configure"
15411 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
15413 extern int testdata[3];
15414 return testdata[0] == 123
15415 && testdata[1] == 456
15416 && testdata[2] == 789;
15420 if { (eval echo "$as_me:15420: \"$ac_compile\"") >&5
15421 (eval $ac_compile) 2>&5
15423 echo "$as_me:15423: \$? = $ac_status" >&5
15424 (exit $ac_status); }; then
15425 mv conftest.o func.o && \
15426 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
15428 rm -f conftest.$ac_ext func.o
15429 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
15430 cf_saveLIBS="$LIBS"
15431 LIBS="conftest.a $LIBS"
15432 if test "$cross_compiling" = yes; then
15433 cf_cv_link_dataonly=unknown
15435 cat >conftest.$ac_ext <<_ACEOF
15436 #line 15436 "configure"
15437 #include "confdefs.h"
15441 extern int testfunc();
15442 ${cf_cv_main_return:-return} (!testfunc());
15446 rm -f conftest$ac_exeext
15447 if { (eval echo "$as_me:15447: \"$ac_link\"") >&5
15448 (eval $ac_link) 2>&5
15450 echo "$as_me:15450: \$? = $ac_status" >&5
15451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15452 { (eval echo "$as_me:15452: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:15455: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457 cf_cv_link_dataonly=yes
15459 echo "$as_me: program exited with status $ac_status" >&5
15460 echo "$as_me: failed program was:" >&5
15461 cat conftest.$ac_ext >&5
15462 cf_cv_link_dataonly=no
15464 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15466 LIBS="$cf_saveLIBS"
15470 echo "$as_me:15470: result: $cf_cv_link_dataonly" >&5
15471 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
15473 if test "$cf_cv_link_dataonly" = no ; then
15475 cat >>confdefs.h <<\EOF
15476 #define BROKEN_LINKER 1
15482 ### Checks for library functions.
15488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15489 echo "$as_me:15489: checking for $ac_header" >&5
15490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 cat >conftest.$ac_ext <<_ACEOF
15495 #line 15495 "configure"
15496 #include "confdefs.h"
15497 #include <$ac_header>
15499 if { (eval echo "$as_me:15499: \"$ac_cpp conftest.$ac_ext\"") >&5
15500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15502 egrep -v '^ *\+' conftest.er1 >conftest.err
15504 cat conftest.err >&5
15505 echo "$as_me:15505: \$? = $ac_status" >&5
15506 (exit $ac_status); } >/dev/null; then
15507 if test -s conftest.err; then
15508 ac_cpp_err=$ac_c_preproc_warn_flag
15515 if test -z "$ac_cpp_err"; then
15516 eval "$as_ac_Header=yes"
15518 echo "$as_me: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15520 eval "$as_ac_Header=no"
15522 rm -f conftest.err conftest.$ac_ext
15524 echo "$as_me:15524: result: `eval echo '${'$as_ac_Header'}'`" >&5
15525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15527 cat >>confdefs.h <<EOF
15528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15534 echo "$as_me:15534: checking for working mkstemp" >&5
15535 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
15536 if test "${cf_cv_func_mkstemp+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 if test "$cross_compiling" = yes; then
15542 cf_cv_func_mkstemp=maybe
15544 cat >conftest.$ac_ext <<_ACEOF
15545 #line 15545 "configure"
15546 #include "confdefs.h"
15548 #include <sys/types.h>
15549 #ifdef HAVE_UNISTD_H
15550 #include <unistd.h>
15552 #include <stdlib.h>
15554 #include <string.h>
15555 #include <sys/stat.h>
15558 char *tmpl = "conftestXXXXXX";
15566 for (n = 0; n < 2; ++n) {
15567 strcpy(name[n], tmpl);
15568 if ((fd = mkstemp(name[n])) >= 0) {
15569 if (!strcmp(name[n], tmpl)
15570 || stat(name[n], &sb) != 0
15571 || (sb.st_mode & S_IFMT) != S_IFREG
15572 || (sb.st_mode & 077) != 0) {
15579 && !strcmp(name[0], name[1]))
15581 ${cf_cv_main_return:-return}(result);
15585 rm -f conftest$ac_exeext
15586 if { (eval echo "$as_me:15586: \"$ac_link\"") >&5
15587 (eval $ac_link) 2>&5
15589 echo "$as_me:15589: \$? = $ac_status" >&5
15590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15591 { (eval echo "$as_me:15591: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15594 echo "$as_me:15594: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 cf_cv_func_mkstemp=yes
15599 echo "$as_me: program exited with status $ac_status" >&5
15600 echo "$as_me: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15602 cf_cv_func_mkstemp=no
15605 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15609 echo "$as_me:15609: result: $cf_cv_func_mkstemp" >&5
15610 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
15611 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
15612 echo "$as_me:15612: checking for mkstemp" >&5
15613 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
15614 if test "${ac_cv_func_mkstemp+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15617 cat >conftest.$ac_ext <<_ACEOF
15618 #line 15618 "configure"
15619 #include "confdefs.h"
15620 #define mkstemp autoconf_temporary
15621 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15628 /* We use char because int might match the return type of a gcc2
15629 builtin and then its argument prototype would still apply. */
15630 char mkstemp (void);
15636 /* The GNU C library defines stubs for functions which it implements
15637 to always fail with ENOSYS. Some functions are actually named
15638 something starting with __ and the normal name is an alias. */
15639 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
15640 #error found stub for mkstemp
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (eval echo "$as_me:15649: \"$ac_link\"") >&5
15650 (eval $ac_link) 2>&5
15652 echo "$as_me:15652: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -s conftest$ac_exeext'
15655 { (eval echo "$as_me:15655: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15658 echo "$as_me:15658: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 ac_cv_func_mkstemp=yes
15662 echo "$as_me: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 ac_cv_func_mkstemp=no
15666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15668 echo "$as_me:15668: result: $ac_cv_func_mkstemp" >&5
15669 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
15672 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
15674 cat >>confdefs.h <<\EOF
15675 #define HAVE_MKSTEMP 1
15680 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
15681 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
15682 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
15686 if test "$cf_with_ada" != "no" ; then
15688 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
15691 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15693 unset ac_cv_path_cf_TEMP_gnat
15695 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
15696 set dummy $cf_prog_gnat; ac_word=$2
15697 echo "$as_me:15697: checking for $ac_word" >&5
15698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15699 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 case $cf_TEMP_gnat in
15704 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
15707 ac_save_IFS=$IFS; IFS=$ac_path_separator
15709 for ac_dir in $ac_dummy; do
15711 test -z "$ac_dir" && ac_dir=.
15712 if $as_executable_p "$ac_dir/$ac_word"; then
15713 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
15714 echo "$as_me:15714: found $ac_dir/$ac_word" >&5
15719 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
15723 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
15725 if test -n "$cf_TEMP_gnat"; then
15726 echo "$as_me:15726: result: $cf_TEMP_gnat" >&5
15727 echo "${ECHO_T}$cf_TEMP_gnat" >&6
15729 echo "$as_me:15729: result: no" >&5
15730 echo "${ECHO_T}no" >&6
15733 eval cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat
15735 if test "x$cf_TEMP_gnat" != xno; then
15736 unset cf_cv_gnat_version
15739 echo "$as_me:15739: checking for $cf_prog_gnat version" >&5
15740 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
15741 if test "${cf_cv_gnat_version+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
15746 grep '[0-9].[0-9][0-9]*' |\
15747 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
15750 echo "$as_me:15750: result: $cf_cv_gnat_version" >&5
15751 echo "${ECHO_T}$cf_cv_gnat_version" >&6
15752 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
15753 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
15756 eval cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat
15759 unset cf_cv_gnat_version
15760 unset ac_cv_path_cf_TEMP_gnat
15763 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
15765 cf_cv_prog_gnat_correct=no
15767 cf_ada_make=gnatmake
15768 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
15769 # gprconfig is newer than gnatmake; we can continue...
15772 rm -rf conftest* *~conftest*
15773 if mkdir conftest.src
15777 for cf_gprconfig in Ada C
15779 echo "$as_me:15779: checking for gprconfig name for $cf_gprconfig" >&5
15780 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
15781 if test $cf_gprconfig = C
15783 for cf_gprconfig_param in \
15784 $cf_gprconfig,,,,GNATGCC \
15785 $cf_gprconfig,,,,GCC \
15788 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
15789 test -n "$cf_gprconfig_value" && break
15792 cf_gprconfig_param=$cf_gprconfig
15793 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
15795 if test -n "$cf_gprconfig_value"
15797 eval cf_ada_config_$cf_gprconfig=$cf_gprconfig_value
15798 echo "$as_me:15798: result: $cf_gprconfig_value" >&5
15799 echo "${ECHO_T}$cf_gprconfig_value" >&6
15801 echo "$as_me:15801: result: missing" >&5
15802 echo "${ECHO_T}missing" >&6
15808 rm -rf conftest* *~conftest*
15811 if test "x$cf_ada_config" != "x#"
15814 echo "$as_me:15814: checking for gnat version" >&5
15815 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
15816 if test "${cf_cv_gnat_version+set}" = set; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15820 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
15821 grep '[0-9].[0-9][0-9]*' |\
15822 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
15825 echo "$as_me:15825: result: $cf_cv_gnat_version" >&5
15826 echo "${ECHO_T}$cf_cv_gnat_version" >&6
15827 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
15829 case $cf_cv_gnat_version in
15830 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
15831 cf_cv_prog_gnat_correct=yes
15834 { echo "$as_me:15834: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
15835 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
15836 cf_cv_prog_gnat_correct=no
15840 # Extract the first word of "m4", so it can be a program name with args.
15841 set dummy m4; ac_word=$2
15842 echo "$as_me:15842: checking for $ac_word" >&5
15843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15844 if test "${ac_cv_prog_M4_exists+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 if test -n "$M4_exists"; then
15848 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
15850 ac_save_IFS=$IFS; IFS=$ac_path_separator
15852 for ac_dir in $ac_dummy; do
15854 test -z "$ac_dir" && ac_dir=.
15855 $as_executable_p "$ac_dir/$ac_word" || continue
15856 ac_cv_prog_M4_exists="yes"
15857 echo "$as_me:15857: found $ac_dir/$ac_word" >&5
15861 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
15864 M4_exists=$ac_cv_prog_M4_exists
15865 if test -n "$M4_exists"; then
15866 echo "$as_me:15866: result: $M4_exists" >&5
15867 echo "${ECHO_T}$M4_exists" >&6
15869 echo "$as_me:15869: result: no" >&5
15870 echo "${ECHO_T}no" >&6
15873 if test "$ac_cv_prog_M4_exists" = no; then
15874 cf_cv_prog_gnat_correct=no
15875 { echo "$as_me:15875: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
15876 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
15878 if test "$cf_cv_prog_gnat_correct" = yes; then
15879 echo "$as_me:15879: checking if GNAT works" >&5
15880 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
15882 rm -rf conftest* *~conftest*
15883 cat >>conftest.ads <<CF_EOF
15884 procedure conftest;
15886 cat >>conftest.adb <<CF_EOF
15889 procedure conftest is
15891 Text_IO.Put ("Hello World");
15893 GNAT.OS_Lib.OS_Exit (0);
15896 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
15897 if ( ./conftest 1>&5 2>&1 ) ; then
15898 cf_cv_prog_gnat_correct=yes
15900 cf_cv_prog_gnat_correct=no
15903 cf_cv_prog_gnat_correct=no
15905 rm -rf conftest* *~conftest*
15907 echo "$as_me:15907: result: $cf_cv_prog_gnat_correct" >&5
15908 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
15911 cf_cv_prog_gnat_correct=no
15915 if test "$cf_cv_prog_gnat_correct" = yes; then
15917 echo "$as_me:15917: checking optimization options for ADAFLAGS" >&5
15918 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
15922 ADAFLAGS="$ADAFLAGS -g"
15928 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
15930 ADAFLAGS="$ADAFLAGS $cf_O_flag"
15934 echo "$as_me:15934: result: $ADAFLAGS" >&5
15935 echo "${ECHO_T}$ADAFLAGS" >&6
15937 echo "$as_me:15937: checking if GNATPREP supports -T option" >&5
15938 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
15939 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 cf_cv_gnatprep_opt_t=no
15944 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
15947 echo "$as_me:15947: result: $cf_cv_gnatprep_opt_t" >&5
15948 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
15949 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
15951 echo "$as_me:15951: checking if GNAT supports generics" >&5
15952 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
15953 case $cf_cv_gnat_version in
15955 cf_gnat_generics=yes
15958 cf_gnat_generics=no
15961 echo "$as_me:15961: result: $cf_gnat_generics" >&5
15962 echo "${ECHO_T}$cf_gnat_generics" >&6
15964 if test "$cf_gnat_generics" = yes
15966 cf_compile_generics=generics
15967 cf_generic_objects="\${GENOBJS}"
15969 cf_compile_generics=
15970 cf_generic_objects=
15973 echo "$as_me:15973: checking if GNAT supports SIGINT" >&5
15974 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
15975 if test "${cf_cv_gnat_sigint+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 rm -rf conftest* *~conftest*
15980 cat >>conftest.ads <<CF_EOF
15981 with Ada.Interrupts.Names;
15983 package ConfTest is
15985 pragma Warnings (Off); -- the next pragma exists since 3.11p
15986 pragma Unreserve_All_Interrupts;
15987 pragma Warnings (On);
15989 protected Process is
15991 function Continue return Boolean;
15992 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
15994 Done : Boolean := False;
15999 cat >>conftest.adb <<CF_EOF
16000 package body ConfTest is
16001 protected body Process is
16006 function Continue return Boolean is
16013 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
16014 cf_cv_gnat_sigint=yes
16016 cf_cv_gnat_sigint=no
16018 rm -rf conftest* *~conftest*
16021 echo "$as_me:16021: result: $cf_cv_gnat_sigint" >&5
16022 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
16024 if test $cf_cv_gnat_sigint = yes ; then
16027 USE_GNAT_SIGINT="#"
16030 cf_gnat_libraries=no
16031 cf_gnat_projects=no
16033 if test "$enable_gnat_projects" != no ; then
16034 echo "$as_me:16034: checking if GNAT supports project files" >&5
16035 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
16036 case $cf_cv_gnat_version in
16040 case $cf_cv_system_name in
16044 rm -rf conftest* *~conftest*
16045 if mkdir conftest.src conftest.bin conftest.lib
16048 rm -rf conftest* *~conftest*
16049 cat >>library.gpr <<CF_EOF
16051 Kind := External ("LIB_KIND");
16052 for Library_Name use "ConfTest";
16053 for Object_Dir use ".";
16054 for Library_ALI_Dir use External("LIBRARY_DIR");
16055 for Library_Version use External ("SONAME");
16056 for Library_Kind use Kind;
16057 for Library_Dir use External("BUILD_DIR");
16058 Source_Dir := External ("SOURCE_DIR");
16059 for Source_Dirs use (Source_Dir);
16062 cat >>confpackage.ads <<CF_EOF
16063 package ConfPackage is
16064 procedure conftest;
16067 cat >>confpackage.adb <<CF_EOF
16069 package body ConfPackage is
16070 procedure conftest is
16072 Text_IO.Put ("Hello World");
16077 if ( $cf_ada_make $ADAFLAGS \
16079 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
16080 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
16081 -XSOURCE_DIR=`pwd` \
16082 -XSONAME=libConfTest.so.1 \
16083 -XLIB_KIND=static 1>&5 2>&1 ) ; then
16084 cf_gnat_projects=yes
16088 if test -f conftest.lib/confpackage.ali
16090 cf_gnat_libraries=yes
16092 rm -rf conftest* *~conftest*
16097 echo "$as_me:16097: result: $cf_gnat_projects" >&5
16098 echo "${ECHO_T}$cf_gnat_projects" >&6
16099 fi # enable_gnat_projects
16101 if test $cf_gnat_projects = yes
16103 echo "$as_me:16103: checking if GNAT supports libraries" >&5
16104 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
16105 echo "$as_me:16105: result: $cf_gnat_libraries" >&5
16106 echo "${ECHO_T}$cf_gnat_libraries" >&6
16109 if test "$cf_gnat_projects" = yes
16111 USE_OLD_MAKERULES="#"
16112 USE_GNAT_PROJECTS=""
16114 USE_OLD_MAKERULES=""
16115 USE_GNAT_PROJECTS="#"
16118 if test "$cf_gnat_libraries" = yes
16120 USE_GNAT_LIBRARIES=""
16122 USE_GNAT_LIBRARIES="#"
16125 echo "$as_me:16125: checking for ada-compiler" >&5
16126 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
16128 # Check whether --with-ada-compiler or --without-ada-compiler was given.
16129 if test "${with_ada_compiler+set}" = set; then
16130 withval="$with_ada_compiler"
16131 cf_ada_compiler=$withval
16133 cf_ada_compiler=gnatmake
16136 echo "$as_me:16136: result: $cf_ada_compiler" >&5
16137 echo "${ECHO_T}$cf_ada_compiler" >&6
16139 cf_ada_package=terminal_interface
16141 echo "$as_me:16141: checking for ada-include" >&5
16142 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
16144 # Check whether --with-ada-include or --without-ada-include was given.
16145 if test "${with_ada_include+set}" = set; then
16146 withval="$with_ada_include"
16149 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
16150 fi; if test -n "$prefix/share/ada/adainclude" ; then
16152 if test "x$prefix" != xNONE; then
16153 cf_path_syntax="$prefix"
16155 cf_path_syntax="$ac_default_prefix"
16158 case ".$withval" in
16159 (.\$\(*\)*|.\'*\'*)
16163 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
16165 (.\${*prefix}*|.\${*dir}*)
16166 eval withval="$withval"
16167 case ".$withval" in
16169 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16174 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16177 { { echo "$as_me:16177: error: expected a pathname, not \"$withval\"" >&5
16178 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16179 { (exit 1); exit 1; }; }
16184 eval ADA_INCLUDE="$withval"
16186 echo "$as_me:16186: result: $ADA_INCLUDE" >&5
16187 echo "${ECHO_T}$ADA_INCLUDE" >&6
16189 echo "$as_me:16189: checking for ada-objects" >&5
16190 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
16192 # Check whether --with-ada-objects or --without-ada-objects was given.
16193 if test "${with_ada_objects+set}" = set; then
16194 withval="$with_ada_objects"
16197 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
16198 fi; if test -n "$prefix/lib/ada/adalib" ; then
16200 if test "x$prefix" != xNONE; then
16201 cf_path_syntax="$prefix"
16203 cf_path_syntax="$ac_default_prefix"
16206 case ".$withval" in
16207 (.\$\(*\)*|.\'*\'*)
16211 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
16213 (.\${*prefix}*|.\${*dir}*)
16214 eval withval="$withval"
16215 case ".$withval" in
16217 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16222 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
16225 { { echo "$as_me:16225: error: expected a pathname, not \"$withval\"" >&5
16226 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
16227 { (exit 1); exit 1; }; }
16232 eval ADA_OBJECTS="$withval"
16234 echo "$as_me:16234: result: $ADA_OBJECTS" >&5
16235 echo "${ECHO_T}$ADA_OBJECTS" >&6
16237 echo "$as_me:16237: checking if an Ada95 shared-library should be built" >&5
16238 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
16240 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
16241 if test "${with_ada_sharedlib+set}" = set; then
16242 withval="$with_ada_sharedlib"
16243 with_ada_sharedlib=$withval
16245 with_ada_sharedlib=no
16247 echo "$as_me:16247: result: $with_ada_sharedlib" >&5
16248 echo "${ECHO_T}$with_ada_sharedlib" >&6
16250 if test "x$with_ada_sharedlib" != xno
16252 if test "x$cf_gnat_projects" != xyes
16254 { echo "$as_me:16254: WARNING: disabling shared-library since GNAT projects are not supported" >&5
16255 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
16256 with_ada_sharedlib=no
16260 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
16261 MAKE_ADA_SHAREDLIB="#"
16263 if test "x$with_ada_sharedlib" != xno
16265 MAKE_ADA_SHAREDLIB=
16266 if test "x$with_ada_sharedlib" != xyes
16268 ADA_SHAREDLIB="$with_ada_sharedlib"
16272 # allow the Ada binding to be renamed
16274 echo "$as_me:16274: checking for ada-libname" >&5
16275 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
16277 # Check whether --with-ada-libname or --without-ada-libname was given.
16278 if test "${with_ada_libname+set}" = set; then
16279 withval="$with_ada_libname"
16280 ADA_LIBNAME=$withval
16282 ADA_LIBNAME=AdaCurses
16284 case "x$ADA_LIBNAME" in
16286 ADA_LIBNAME=AdaCurses
16290 echo "$as_me:16290: result: $ADA_LIBNAME" >&5
16291 echo "${ECHO_T}$ADA_LIBNAME" >&6
16294 { { echo "$as_me:16294: error: No usable Ada compiler found" >&5
16295 echo "$as_me: error: No usable Ada compiler found" >&2;}
16296 { (exit 1); exit 1; }; }
16299 { { echo "$as_me:16299: error: The Ada compiler is needed for this package" >&5
16300 echo "$as_me: error: The Ada compiler is needed for this package" >&2;}
16301 { (exit 1); exit 1; }; }
16304 ################################################################################
16311 ### Construct the list of include-directories to be generated
16313 if test "$srcdir" != "."; then
16314 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
16316 CPPFLAGS="-I../include $CPPFLAGS"
16317 if test "$srcdir" != "."; then
16318 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
16320 CPPFLAGS="-I. $CPPFLAGS"
16322 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
16323 if test "$srcdir" != "."; then
16324 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
16326 if test "$GCC" != yes; then
16327 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16328 elif test "$includedir" != "/usr/include"; then
16329 if test "$includedir" = '${prefix}/include' ; then
16330 if test x$prefix != x/usr ; then
16331 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16334 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
16338 ### Build up pieces for makefile rules
16339 echo "$as_me:16339: checking default library suffix" >&5
16340 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
16342 case $DFT_LWR_MODEL in
16343 (libtool) DFT_ARG_SUFFIX='' ;;
16344 (normal) DFT_ARG_SUFFIX='' ;;
16345 (debug) DFT_ARG_SUFFIX='_g' ;;
16346 (profile) DFT_ARG_SUFFIX='_p' ;;
16347 (shared) DFT_ARG_SUFFIX='' ;;
16349 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
16350 echo "$as_me:16350: result: $DFT_ARG_SUFFIX" >&5
16351 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
16353 echo "$as_me:16353: checking default library-dependency suffix" >&5
16354 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
16356 case X$DFT_LWR_MODEL in
16358 DFT_LIB_SUFFIX='.la'
16359 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16362 DFT_LIB_SUFFIX='_g.a'
16363 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16366 DFT_LIB_SUFFIX='_p.a'
16367 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16370 case $cf_cv_system_name in
16372 DFT_LIB_SUFFIX='.so'
16373 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16375 (cygwin*|msys*|mingw*)
16376 DFT_LIB_SUFFIX='.dll'
16377 DFT_DEP_SUFFIX='.dll.a'
16380 DFT_LIB_SUFFIX='.dylib'
16381 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16386 DFT_LIB_SUFFIX='.so'
16387 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16390 DFT_LIB_SUFFIX='.sl'
16391 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16396 DFT_LIB_SUFFIX='.so'
16397 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16402 DFT_LIB_SUFFIX='.a'
16403 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
16406 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
16408 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
16409 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
16411 echo "$as_me:16411: result: $DFT_DEP_SUFFIX" >&5
16412 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
16414 echo "$as_me:16414: checking default object directory" >&5
16415 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
16417 case $DFT_LWR_MODEL in
16418 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
16419 (normal) DFT_OBJ_SUBDIR='objects' ;;
16420 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
16421 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
16423 case $cf_cv_system_name in
16425 DFT_OBJ_SUBDIR='objects' ;;
16427 DFT_OBJ_SUBDIR='obj_s' ;;
16430 echo "$as_me:16430: result: $DFT_OBJ_SUBDIR" >&5
16431 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
16433 ### Set up low-level terminfo dependencies for makefiles.
16435 if test "$DFT_LWR_MODEL" = shared ; then
16436 case $cf_cv_system_name in
16438 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
16441 # "lib" files have ".dll.a" suffix, "msys-" files have ".dll"
16446 USE_ARG_SUFFIX=${DFT_ARG_SUFFIX}
16448 USE_LIB_SUFFIX=${DFT_ARG_SUFFIX}
16450 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}
16452 ### Construct the list of subdirectories for which we'll customize makefiles
16453 ### with the appropriate compile-rules.
16455 SUB_MAKEFILES="gen/adacurses${USE_ARG_SUFFIX}-config:gen/adacurses-config.in"
16457 cat >>confdefs.h <<EOF
16458 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
16461 ### Now that we're done running tests, add the compiler-warnings, if any
16466 cf_new_extra_cppflags=
16468 for cf_add_cflags in $EXTRA_CFLAGS
16470 case $cf_fix_cppflags in
16472 case $cf_add_cflags in
16473 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16474 case $cf_add_cflags in
16476 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16478 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16479 && test -z "${cf_tst_cflags}" \
16480 && cf_fix_cppflags=yes
16482 if test $cf_fix_cppflags = yes ; then
16484 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16485 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16488 elif test "${cf_tst_cflags}" = "\"'" ; then
16490 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16491 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16497 case "$CPPFLAGS" in
16501 case $cf_add_cflags in
16503 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16505 CPPFLAGS=`echo "$CPPFLAGS" | \
16506 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16507 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16512 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16513 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16520 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16521 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16528 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16529 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16531 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16533 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16534 && test -z "${cf_tst_cflags}" \
16535 && cf_fix_cppflags=no
16540 if test -n "$cf_new_cflags" ; then
16542 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16543 CFLAGS="${CFLAGS}$cf_new_cflags"
16547 if test -n "$cf_new_cppflags" ; then
16549 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16550 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16554 if test -n "$cf_new_extra_cppflags" ; then
16556 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16557 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16561 ################################################################################
16567 NCURSES_SHLIB2="sh -c"
16569 ADA_SUBDIRS="include gen src doc"
16570 if test "x$cf_with_tests" != "xno" ; then
16571 ADA_SUBDIRS="$ADA_SUBDIRS samples"
16573 for cf_dir in $ADA_SUBDIRS
16575 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
16582 # match layout used by make-tar.sh
16583 ADAHTML_DIR=../doc/ada
16585 if test "x$cross_compiling" = xyes ; then
16586 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
16588 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
16591 ac_config_files="$ac_config_files $SUB_MAKEFILES src/library.gpr:src/library.gpr.in doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in Makefile"
16592 ac_config_commands="$ac_config_commands default"
16593 cat >confcache <<\_ACEOF
16594 # This file is a shell script that caches the results of configure
16595 # tests run on this system so they can be shared between configure
16596 # scripts and configure runs, see configure's option --config-cache.
16597 # It is not useful on other systems. If it contains results you don't
16598 # want to keep, you may remove or edit it.
16600 # config.status only pays attention to the cache file if you give it
16601 # the --recheck option to rerun configure.
16603 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16604 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16605 # following values.
16609 # The following way of writing the cache mishandles newlines in values,
16610 # but we know of no workaround that is simple, portable, and efficient.
16611 # So, don't put newlines in cache variables' values.
16612 # Ultrix sh set writes to stderr and can't be redirected directly,
16613 # and sets the high bit in the cache file unless we assign to the vars.
16616 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16618 # `set' does not quote correctly, so add quotes (double-quote
16619 # substitution turns \\\\ into \\, and sed turns \\ into \).
16622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16625 # `set' quotes correctly as required by POSIX, so do not add quotes.
16627 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16636 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16638 if cmp -s $cache_file confcache; then :; else
16639 if test -w $cache_file; then
16640 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16641 cat confcache >$cache_file
16643 echo "not updating unwritable cache $cache_file"
16648 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16649 # Let make expand exec_prefix.
16650 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16652 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16653 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16654 # trailing colons and then remove the whole line if VPATH becomes empty
16655 # (actually we leave an empty line to preserve line numbers).
16656 if test "x$srcdir" = x.; then
16657 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16658 s/:*\$(srcdir):*/:/;
16659 s/:*\${srcdir}:*/:/;
16661 s/^\([^=]*=[ ]*\):*/\1/;
16667 DEFS=-DHAVE_CONFIG_H
16669 : ${CONFIG_STATUS=./config.status}
16670 ac_clean_files_save=$ac_clean_files
16671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16672 { echo "$as_me:16672: creating $CONFIG_STATUS" >&5
16673 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16674 cat >$CONFIG_STATUS <<_ACEOF
16676 # Generated automatically by configure.
16677 # Run this file to recreate the current configuration.
16678 # Compiler output produced by configure, useful for debugging
16679 # configure, is in config.log if it exists.
16682 SHELL=\${CONFIG_SHELL-$SHELL}
16683 ac_cs_invocation="\$0 \$@"
16687 cat >>$CONFIG_STATUS <<\_ACEOF
16688 # Be Bourne compatible
16689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16692 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16696 # Name of the executable.
16697 as_me=`echo "$0" |sed 's,.*[\\/],,'`
16699 if expr a : '\(a\)' >/dev/null 2>&1; then
16705 rm -f conf$$ conf$$.exe conf$$.file
16707 if ln -s conf$$.file conf$$ 2>/dev/null; then
16708 # We could just check for DJGPP; but this test a) works b) is more generic
16709 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16710 if test -f conf$$.exe; then
16711 # Don't use ln at all; we don't have any links
16716 elif ln conf$$.file conf$$ 2>/dev/null; then
16721 rm -f conf$$ conf$$.exe conf$$.file
16723 as_executable_p="test -f"
16725 # Support unset when possible.
16726 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16733 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
16734 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
16735 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
16736 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
16737 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
16738 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
16739 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
16740 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
16743 # We need space, tab and new line, in precisely that order.
16749 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
16755 # Files that config.status was made for.
16756 if test -n "$ac_config_files"; then
16757 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16760 if test -n "$ac_config_headers"; then
16761 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16764 if test -n "$ac_config_links"; then
16765 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16768 if test -n "$ac_config_commands"; then
16769 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16772 cat >>$CONFIG_STATUS <<\EOF
16775 \`$as_me' instantiates files from templates according to the
16776 current configuration.
16778 Usage: $0 [OPTIONS] [FILE]...
16780 -h, --help print this help, then exit
16781 -V, --version print version number, then exit
16782 -d, --debug don't remove temporary files
16783 --recheck update $as_me by reconfiguring in the same conditions
16784 --file=FILE[:TEMPLATE]
16785 instantiate the configuration file FILE
16786 --header=FILE[:TEMPLATE]
16787 instantiate the configuration header FILE
16789 Configuration files:
16792 Configuration headers:
16795 Configuration commands:
16798 Report bugs to <dickey@invisible-island.net>."
16801 cat >>$CONFIG_STATUS <<EOF
16804 configured by $0, generated by GNU Autoconf 2.52.20200111,
16805 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16807 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16808 Free Software Foundation, Inc.
16809 This config.status script is free software; the Free Software Foundation
16810 gives unlimited permission to copy, distribute and modify it."
16815 cat >>$CONFIG_STATUS <<\EOF
16816 # If no file are specified by the user, then we need to provide default
16817 # value. By we need to know if files were specified by the user.
16823 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16824 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16826 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16830 *) # This is not an option, so the user has probably given explicit
16832 ac_need_defaults=false;;
16836 # Handling of the options.
16838 cat >>$CONFIG_STATUS <<EOF
16839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16840 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16841 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16843 cat >>$CONFIG_STATUS <<\EOF
16844 --version | --vers* | -V )
16845 echo "$ac_cs_version"; exit 0 ;;
16847 # Conflict between --help and --header
16848 { { echo "$as_me:16848: error: ambiguous option: $1
16849 Try \`$0 --help' for more information." >&5
16850 echo "$as_me: error: ambiguous option: $1
16851 Try \`$0 --help' for more information." >&2;}
16852 { (exit 1); exit 1; }; };;
16853 --help | --hel | -h )
16854 echo "$ac_cs_usage"; exit 0 ;;
16855 --debug | --d* | -d )
16857 --file | --fil | --fi | --f )
16859 CONFIG_FILES="$CONFIG_FILES $1"
16860 ac_need_defaults=false;;
16861 --header | --heade | --head | --hea )
16863 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16864 ac_need_defaults=false;;
16866 # This is an error.
16867 -*) { { echo "$as_me:16867: error: unrecognized option: $1
16868 Try \`$0 --help' for more information." >&5
16869 echo "$as_me: error: unrecognized option: $1
16870 Try \`$0 --help' for more information." >&2;}
16871 { (exit 1); exit 1; }; } ;;
16873 *) ac_config_targets="$ac_config_targets $1" ;;
16882 ## ----------------------- ##
16883 ## Running config.status. ##
16884 ## ----------------------- ##
16886 This file was extended by $as_me 2.52.20200111, executed with
16887 CONFIG_FILES = $CONFIG_FILES
16888 CONFIG_HEADERS = $CONFIG_HEADERS
16889 CONFIG_LINKS = $CONFIG_LINKS
16890 CONFIG_COMMANDS = $CONFIG_COMMANDS
16891 > $ac_cs_invocation
16892 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16897 cat >>$CONFIG_STATUS <<EOF
16899 # INIT-COMMANDS section.
16902 ### Special initialization commands, used to pass information from the
16903 ### configuration-run into config.status
16906 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
16907 DFT_LWR_MODEL="$DFT_LWR_MODEL"
16908 LIB_NAME="$LIB_NAME"
16909 LIB_PREFIX="$LIB_PREFIX"
16910 LIB_SUFFIX="$LIB_SUFFIX"
16912 NCURSES_MAJOR="$NCURSES_MAJOR"
16913 NCURSES_MINOR="$NCURSES_MINOR"
16914 NCURSES_PATCH="$NCURSES_PATCH"
16915 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
16916 cf_cv_abi_version="$cf_cv_abi_version"
16917 cf_cv_rel_version="$cf_cv_rel_version"
16918 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
16919 cf_cv_shared_soname='$cf_cv_shared_soname'
16920 cf_cv_shlib_version="$cf_cv_shlib_version"
16921 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
16922 cf_cv_system_name="$cf_cv_system_name"
16928 cat >>$CONFIG_STATUS <<\EOF
16929 for ac_config_target in $ac_config_targets
16931 case "$ac_config_target" in
16932 # Handling of arguments.
16933 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
16934 "src/library.gpr" ) CONFIG_FILES="$CONFIG_FILES src/library.gpr:src/library.gpr.in" ;;
16935 "doc/adacurses${DFT_ARG_SUFFIX}-config.1" ) CONFIG_FILES="$CONFIG_FILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in" ;;
16936 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16937 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16938 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
16939 *) { { echo "$as_me:16939: error: invalid argument: $ac_config_target" >&5
16940 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16941 { (exit 1); exit 1; }; };;
16945 # If the user did not use the arguments to specify the items to instantiate,
16946 # then the envvar interface is used. Set only those that are not.
16947 # We use the long form for the default assignment because of an extremely
16948 # bizarre bug on SunOS 4.1.3.
16949 if $ac_need_defaults; then
16950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16955 # Create a temporary directory, and hook for its removal unless debugging.
16958 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16959 trap '{ (exit 1); exit 1; }' 1 2 13 15
16962 # Create a (secure) tmp directory for tmp files.
16965 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16966 test -n "$tmp" && test -d "$tmp"
16969 tmp=$TMPDIR/cs$$-$RANDOM
16970 (umask 077 && mkdir $tmp)
16973 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16974 { (exit 1); exit 1; }
16979 cat >>$CONFIG_STATUS <<EOF
16982 # CONFIG_FILES section.
16985 # No need to generate the scripts if there are no CONFIG_FILES.
16986 # This happens for instance when ./config.status config.h
16987 if test -n "\$CONFIG_FILES"; then
16988 # Protect against being on the right side of a sed subst in config.status.
16989 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16990 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16991 s,@SHELL@,$SHELL,;t t
16992 s,@exec_prefix@,$exec_prefix,;t t
16993 s,@prefix@,$prefix,;t t
16994 s,@program_transform_name@,$program_transform_name,;t t
16995 s,@bindir@,$bindir,;t t
16996 s,@sbindir@,$sbindir,;t t
16997 s,@libexecdir@,$libexecdir,;t t
16998 s,@datarootdir@,$datarootdir,;t t
16999 s,@datadir@,$datadir,;t t
17000 s,@sysconfdir@,$sysconfdir,;t t
17001 s,@sharedstatedir@,$sharedstatedir,;t t
17002 s,@localstatedir@,$localstatedir,;t t
17003 s,@runstatedir@,$runstatedir,;t t
17004 s,@libdir@,$libdir,;t t
17005 s,@includedir@,$includedir,;t t
17006 s,@oldincludedir@,$oldincludedir,;t t
17007 s,@infodir@,$infodir,;t t
17008 s,@mandir@,$mandir,;t t
17009 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17010 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17011 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17012 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17013 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17014 s,@build_alias@,$build_alias,;t t
17015 s,@host_alias@,$host_alias,;t t
17016 s,@target_alias@,$target_alias,;t t
17017 s,@ECHO_C@,$ECHO_C,;t t
17018 s,@ECHO_N@,$ECHO_N,;t t
17019 s,@ECHO_T@,$ECHO_T,;t t
17020 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17021 s,@DEFS@,$DEFS,;t t
17022 s,@LIBS@,$LIBS,;t t
17023 s,@top_builddir@,$top_builddir,;t t
17024 s,@build@,$build,;t t
17025 s,@build_cpu@,$build_cpu,;t t
17026 s,@build_vendor@,$build_vendor,;t t
17027 s,@build_os@,$build_os,;t t
17028 s,@host@,$host,;t t
17029 s,@host_cpu@,$host_cpu,;t t
17030 s,@host_vendor@,$host_vendor,;t t
17031 s,@host_os@,$host_os,;t t
17032 s,@target@,$target,;t t
17033 s,@target_cpu@,$target_cpu,;t t
17034 s,@target_vendor@,$target_vendor,;t t
17035 s,@target_os@,$target_os,;t t
17037 s,@CFLAGS@,$CFLAGS,;t t
17038 s,@LDFLAGS@,$LDFLAGS,;t t
17039 s,@CPPFLAGS@,$CPPFLAGS,;t t
17040 s,@ac_ct_CC@,$ac_ct_CC,;t t
17041 s,@EXEEXT@,$EXEEXT,;t t
17042 s,@OBJEXT@,$OBJEXT,;t t
17043 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
17046 s,@EGREP@,$EGREP,;t t
17047 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17048 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17049 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17050 s,@LN_S@,$LN_S,;t t
17051 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
17052 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
17053 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17054 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
17055 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
17056 s,@SET_MAKE@,$SET_MAKE,;t t
17057 s,@CTAGS@,$CTAGS,;t t
17058 s,@ETAGS@,$ETAGS,;t t
17059 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
17060 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
17061 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
17062 s,@RANLIB@,$RANLIB,;t t
17063 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17065 s,@ac_ct_LD@,$ac_ct_LD,;t t
17067 s,@ac_ct_AR@,$ac_ct_AR,;t t
17068 s,@ARFLAGS@,$ARFLAGS,;t t
17069 s,@DESTDIR@,$DESTDIR,;t t
17070 s,@BUILD_CC@,$BUILD_CC,;t t
17071 s,@BUILD_CPP@,$BUILD_CPP,;t t
17072 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17073 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
17074 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
17075 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
17076 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
17077 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
17078 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
17079 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
17080 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
17081 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
17082 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
17083 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
17084 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
17085 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
17086 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
17087 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
17088 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
17089 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
17090 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
17091 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
17092 s,@CC_G_OPT@,$CC_G_OPT,;t t
17093 s,@LD_MODEL@,$LD_MODEL,;t t
17094 s,@shlibdir@,$shlibdir,;t t
17095 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
17096 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
17097 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
17098 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
17099 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
17100 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
17101 s,@LINK_PROGS@,$LINK_PROGS,;t t
17102 s,@LINK_TESTS@,$LINK_TESTS,;t t
17103 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
17104 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
17105 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
17106 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
17107 s,@RPATH_LIST@,$RPATH_LIST,;t t
17108 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
17109 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
17110 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
17111 s,@PTHREAD@,$PTHREAD,;t t
17112 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
17113 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
17114 s,@ECHO_LT@,$ECHO_LT,;t t
17115 s,@ECHO_LD@,$ECHO_LD,;t t
17116 s,@RULE_CC@,$RULE_CC,;t t
17117 s,@SHOW_CC@,$SHOW_CC,;t t
17118 s,@ECHO_CC@,$ECHO_CC,;t t
17119 s,@ADAFLAGS@,$ADAFLAGS,;t t
17120 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
17121 s,@ADA_TRACE@,$ADA_TRACE,;t t
17122 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
17123 s,@M4_exists@,$M4_exists,;t t
17124 s,@cf_ada_make@,$cf_ada_make,;t t
17125 s,@cf_ada_config@,$cf_ada_config,;t t
17126 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
17127 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
17128 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
17129 s,@cf_compile_generics@,$cf_compile_generics,;t t
17130 s,@cf_generic_objects@,$cf_generic_objects,;t t
17131 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
17132 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
17133 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
17134 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
17135 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
17136 s,@cf_ada_package@,$cf_ada_package,;t t
17137 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
17138 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
17139 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
17140 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
17141 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
17142 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
17143 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
17144 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
17145 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
17146 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
17147 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
17148 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
17149 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
17150 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
17151 s,@TEST_ARG2@,$TEST_ARG2,;t t
17152 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
17153 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
17154 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
17155 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
17156 s,@EXTERNAL_TREE@,$EXTERNAL_TREE,;t t
17157 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
17158 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
17163 cat >>$CONFIG_STATUS <<\EOF
17164 # Split the substitutions into bite-sized pieces for seds with
17165 # small command number limits, like on Digital OSF/1 and HP-UX.
17166 ac_max_sed_lines=48
17167 ac_sed_frag=1 # Number of current file.
17168 ac_beg=1 # First line for current file.
17169 ac_end=$ac_max_sed_lines # Line after last line for current file.
17172 while $ac_more_lines; do
17173 if test $ac_beg -gt 1; then
17174 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17176 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17178 if test ! -s $tmp/subs.frag; then
17179 ac_more_lines=false
17181 # The purpose of the label and of the branching condition is to
17182 # speed up the sed processing (if there are no `@' at all, there
17183 # is no need to browse any of the substitutions).
17184 # These are the two extra sed commands mentioned above.
17186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17187 # It is possible to make a multiline substitution using escaped newlines.
17188 # Ensure that we do not split the substitution between script fragments.
17190 ac_END=`expr $ac_end + $ac_max_sed_lines`
17191 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
17192 if test -s $tmp/subs.next; then
17193 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
17194 if test ! -s $tmp/subs.edit; then
17195 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
17196 if test ! -s $tmp/subs.edit; then
17197 if test $ac_beg -gt 1; then
17198 ac_end=`expr $ac_end - 1`
17205 if test -z "$ac_sed_cmds"; then
17206 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17208 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17210 ac_sed_frag=`expr $ac_sed_frag + 1`
17212 ac_end=`expr $ac_end + $ac_max_sed_lines`
17215 if test -z "$ac_sed_cmds"; then
17218 fi # test -n "$CONFIG_FILES"
17221 cat >>$CONFIG_STATUS <<\EOF
17222 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17225 - | *:- | *:-:* ) # input from stdin
17227 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17228 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17229 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17230 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17231 * ) ac_file_in=$ac_file.in ;;
17234 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17235 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236 X"$ac_file" : 'X\(//\)[^/]' \| \
17237 X"$ac_file" : 'X\(//\)$' \| \
17238 X"$ac_file" : 'X\(/\)' \| \
17239 . : '\(.\)' 2>/dev/null ||
17241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17243 /^X\(\/\/\)$/{ s//\1/; q; }
17244 /^X\(\/\).*/{ s//\1/; q; }
17246 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17247 { case "$ac_dir" in
17248 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17252 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17253 case $as_mkdir_dir in
17254 # Skip DOS drivespec
17255 ?:) as_incr_dir=$as_mkdir_dir ;;
17257 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17258 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17263 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
17264 # A "../" for each directory in $ac_dir_suffix.
17265 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
17267 ac_dir_suffix= ac_dots=
17272 if test -z "$ac_dots"; then
17275 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
17277 [\\/]* | ?:[\\/]* )
17278 ac_srcdir=$srcdir$ac_dir_suffix;
17279 ac_top_srcdir=$srcdir ;;
17280 *) # Relative path.
17281 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
17282 ac_top_srcdir=$ac_dots$srcdir ;;
17286 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17287 *) ac_INSTALL=$ac_dots$INSTALL ;;
17290 if test x"$ac_file" != x-; then
17291 { echo "$as_me:17291: creating $ac_file" >&5
17292 echo "$as_me: creating $ac_file" >&6;}
17295 # Let's still pretend it is `configure' which instantiates (i.e., don't
17296 # use $as_me), people would be surprised to read:
17297 # /* config.h. Generated automatically by config.status. */
17298 configure_input="Generated automatically from `echo $ac_file_in |
17299 sed 's,.*/,,'` by configure."
17301 # First look for the input files in the build tree, otherwise in the
17303 ac_file_inputs=`IFS=:
17304 for f in $ac_file_in; do
17306 -) echo $tmp/stdin ;;
17308 # Absolute (can't be DOS-style, as IFS=:)
17309 test -f "$f" || { { echo "$as_me:17309: error: cannot find input file: $f" >&5
17310 echo "$as_me: error: cannot find input file: $f" >&2;}
17311 { (exit 1); exit 1; }; }
17314 if test -f "$f"; then
17317 elif test -f "$srcdir/$f"; then
17322 { { echo "$as_me:17322: error: cannot find input file: $f" >&5
17323 echo "$as_me: error: cannot find input file: $f" >&2;}
17324 { (exit 1); exit 1; }; }
17327 done` || { (exit 1); exit 1; }
17329 cat >>$CONFIG_STATUS <<\EOF
17330 ac_warn_datarootdir=no
17331 if test x"$ac_file" != x-; then
17332 for ac_item in $ac_file_inputs
17334 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
17335 if test -n "$ac_seen"; then
17336 ac_used=`grep '@datarootdir@' $ac_item`
17337 if test -z "$ac_used"; then
17338 { echo "$as_me:17338: WARNING: datarootdir was used implicitly but not set:
17340 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
17342 ac_warn_datarootdir=yes
17345 ac_seen=`grep '${datarootdir}' $ac_item`
17346 if test -n "$ac_seen"; then
17347 { echo "$as_me:17347: WARNING: datarootdir was used explicitly but not set:
17349 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
17351 ac_warn_datarootdir=yes
17356 if test "x$ac_warn_datarootdir" = xyes; then
17357 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
17361 cat >>$CONFIG_STATUS <<EOF
17365 cat >>$CONFIG_STATUS <<\EOF
17367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17368 s,@configure_input@,$configure_input,;t t
17369 s,@srcdir@,$ac_srcdir,;t t
17370 s,@top_srcdir@,$ac_top_srcdir,;t t
17371 s,@INSTALL@,$ac_INSTALL,;t t
17372 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17374 if test x"$ac_file" != x-; then
17375 cp $tmp/out $ac_file
17377 for ac_name in prefix exec_prefix datarootdir
17379 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
17380 if test -n "$ac_seen"; then
17381 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
17382 if test -z "$ac_init"; then
17383 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
17384 { echo "$as_me:17384: WARNING: Variable $ac_name is used but was not set:
17386 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
17391 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
17392 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
17393 if test -s $tmp/out; then
17394 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
17395 { echo "$as_me:17395: WARNING: Some variables may not be substituted:
17397 echo "$as_me: WARNING: Some variables may not be substituted:
17407 cat >>$CONFIG_STATUS <<\EOF
17410 # CONFIG_HEADER section.
17413 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17414 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17416 # ac_d sets the value in "#define NAME VALUE" lines.
17417 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17418 ac_dB='[ ].*$,\1#\2'
17421 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17422 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17423 ac_iB='\([ ]\),\1#\2define\3'
17426 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17427 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17428 ac_uB='$,\1#\2define\3'
17432 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17433 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17435 - | *:- | *:-:* ) # input from stdin
17437 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17439 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17440 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17441 * ) ac_file_in=$ac_file.in ;;
17444 test x"$ac_file" != x- && { echo "$as_me:17444: creating $ac_file" >&5
17445 echo "$as_me: creating $ac_file" >&6;}
17447 # First look for the input files in the build tree, otherwise in the
17449 ac_file_inputs=`IFS=:
17450 for f in $ac_file_in; do
17452 -) echo $tmp/stdin ;;
17454 # Absolute (can't be DOS-style, as IFS=:)
17455 test -f "$f" || { { echo "$as_me:17455: error: cannot find input file: $f" >&5
17456 echo "$as_me: error: cannot find input file: $f" >&2;}
17457 { (exit 1); exit 1; }; }
17460 if test -f "$f"; then
17463 elif test -f "$srcdir/$f"; then
17468 { { echo "$as_me:17468: error: cannot find input file: $f" >&5
17469 echo "$as_me: error: cannot find input file: $f" >&2;}
17470 { (exit 1); exit 1; }; }
17473 done` || { (exit 1); exit 1; }
17474 # Remove the trailing spaces.
17475 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17479 # Transform confdefs.h into a list of #define's. We won't use it as a sed
17480 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
17481 # be either 'cat' or 'sort'.
17482 cat confdefs.h | uniq >conftest.vals
17484 # Break up conftest.vals because some shells have a limit on
17485 # the size of here documents, and old seds have small limits too.
17487 rm -f conftest.tail
17488 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
17489 while grep . conftest.vals >/dev/null
17491 # Write chunks of a limited-size here document to conftest.frag.
17492 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
17493 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
17494 echo 'CEOF' >> $CONFIG_STATUS
17495 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17496 rm -f conftest.vals
17497 mv conftest.tail conftest.vals
17499 rm -f conftest.vals
17501 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
17503 echo ' cat >> conftest.edit <<CEOF
17504 /@DEFS@/r conftest.frag
17507 sed -f conftest.edit $tmp/in > $tmp/out
17509 mv $tmp/out $tmp/in
17510 rm -f conftest.edit conftest.frag
17511 ' >> $CONFIG_STATUS
17513 cat >>$CONFIG_STATUS <<\EOF
17514 # Let's still pretend it is `configure' which instantiates (i.e., don't
17515 # use $as_me), people would be surprised to read:
17516 # /* config.h. Generated automatically by config.status. */
17517 if test x"$ac_file" = x-; then
17518 echo "/* Generated automatically by configure. */" >$tmp/config.h
17520 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
17522 cat $tmp/in >>$tmp/config.h
17524 if test x"$ac_file" != x-; then
17525 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17526 { echo "$as_me:17526: $ac_file is unchanged" >&5
17527 echo "$as_me: $ac_file is unchanged" >&6;}
17529 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17530 X"$ac_file" : 'X\(//\)[^/]' \| \
17531 X"$ac_file" : 'X\(//\)$' \| \
17532 X"$ac_file" : 'X\(/\)' \| \
17533 . : '\(.\)' 2>/dev/null ||
17535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17537 /^X\(\/\/\)$/{ s//\1/; q; }
17538 /^X\(\/\).*/{ s//\1/; q; }
17540 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17541 { case "$ac_dir" in
17542 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17546 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17547 case $as_mkdir_dir in
17548 # Skip DOS drivespec
17549 ?:) as_incr_dir=$as_mkdir_dir ;;
17551 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17552 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17559 mv $tmp/config.h $ac_file
17563 rm -f $tmp/config.h
17567 cat >>$CONFIG_STATUS <<\EOF
17569 # CONFIG_COMMANDS section.
17571 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17572 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17573 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17577 if test -z "$USE_OLD_MAKERULES" ; then
17578 $AWK -f $srcdir/mk-1st.awk <$srcdir/src/modules >>src/Makefile
17585 cat >>$CONFIG_STATUS <<\EOF
17587 { (exit 0); exit 0; }
17589 chmod +x $CONFIG_STATUS
17590 ac_clean_files=$ac_clean_files_save
17592 # configure is writing to config.log, and then calls config.status.
17593 # config.status does its own redirection, appending to config.log.
17594 # Unfortunately, on DOS this fails, as config.log is still kept open
17595 # by configure, so config.status won't be able to write to it; its
17596 # output is simply discarded. So we exec the FD to /dev/null,
17597 # effectively closing config.log, so it can be properly (re)opened and
17598 # appended to by config.status. When coming back to configure, we
17599 # need to make the FD available again.
17600 if test "$no_create" != yes; then
17603 $SHELL $CONFIG_STATUS || ac_cs_success=false
17605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17606 # would make configure fail if this is the last instruction.
17607 $ac_cs_success || { (exit 1); exit 1; }
17609 ${MAKE:-make} preinstall