2 # From configure.in Revision: 1.30 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
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"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -disable-* | --disable-*)
198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199 # Reject names that are not valid shell variable names.
200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202 { (exit 1); exit 1; }; }
203 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204 eval "enable_$ac_feature=no" ;;
206 -enable-* | --enable-*)
207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208 # Reject names that are not valid shell variable names.
209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211 { (exit 1); exit 1; }; }
212 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217 eval "enable_$ac_feature='$ac_optarg'" ;;
219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 | --exec | --exe | --ex)
222 ac_prev=exec_prefix ;;
223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 | --exec=* | --exe=* | --ex=*)
226 exec_prefix=$ac_optarg ;;
228 -gas | --gas | --ga | --g)
229 # Obsolete; use --with-gas.
232 -help | --help | --hel | --he | -h)
234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235 ac_init_help=recursive ;;
236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237 ac_init_help=short ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host_alias ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host_alias=$ac_optarg ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir=$ac_optarg ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir=$ac_optarg ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir=$ac_optarg ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir=$ac_optarg ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir=$ac_optarg ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix=$ac_optarg ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix=$ac_optarg ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name=$ac_optarg ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir=$ac_optarg ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir=$ac_optarg ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir=$ac_optarg ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target_alias ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target_alias=$ac_optarg ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers | -V)
389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid package name: $ac_package" >&2
393 { (exit 1); exit 1; }; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 eval "with_$ac_package='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid package name: $ac_package" >&2
406 { (exit 1); exit 1; }; }
407 ac_package=`echo $ac_package | sed 's/-/_/g'`
408 eval "with_$ac_package=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes=$ac_optarg ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries=$ac_optarg ;;
428 -*) { echo "$as_me: error: unrecognized option: $ac_option
429 Try \`$0 --help' for more information." >&2
430 { (exit 1); exit 1; }; }
434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435 # Reject names that are not valid shell variable names.
436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438 { (exit 1); exit 1; }; }
439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440 eval "$ac_envvar='$ac_optarg'"
444 # FIXME: should be removed in autoconf 3.0.
445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
454 if test -n "$ac_prev"; then
455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456 { echo "$as_me: error: missing argument to $ac_option" >&2
457 { (exit 1); exit 1; }; }
460 # Be sure to have absolute paths.
461 for ac_var in exec_prefix prefix
463 eval ac_val=$`echo $ac_var`
465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467 { (exit 1); exit 1; }; };;
471 # Be sure to have absolute paths.
472 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473 localstatedir libdir includedir oldincludedir infodir mandir
475 eval ac_val=$`echo $ac_var`
477 [\\/$]* | ?:[\\/]* ) ;;
478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479 { (exit 1); exit 1; }; };;
483 # There might be people who depend on the old broken behavior: `$host'
484 # used to hold the argument of --host etc.
489 # FIXME: should be removed in autoconf 3.0.
490 if test "x$host_alias" != x; then
491 if test "x$build_alias" = x; then
492 cross_compiling=maybe
493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494 If a cross compiler is detected then cross compile mode will be used." >&2
495 elif test "x$build_alias" != "x$host_alias"; then
501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503 test "$silent" = yes && exec 6>/dev/null
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522 { (exit 1); exit 1; }; }
524 { echo "$as_me: error: cannot find sources in $srcdir" >&2
525 { (exit 1); exit 1; }; }
528 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529 ac_env_build_alias_set=${build_alias+set}
530 ac_env_build_alias_value=$build_alias
531 ac_cv_env_build_alias_set=${build_alias+set}
532 ac_cv_env_build_alias_value=$build_alias
533 ac_env_host_alias_set=${host_alias+set}
534 ac_env_host_alias_value=$host_alias
535 ac_cv_env_host_alias_set=${host_alias+set}
536 ac_cv_env_host_alias_value=$host_alias
537 ac_env_target_alias_set=${target_alias+set}
538 ac_env_target_alias_value=$target_alias
539 ac_cv_env_target_alias_set=${target_alias+set}
540 ac_cv_env_target_alias_value=$target_alias
541 ac_env_CC_set=${CC+set}
543 ac_cv_env_CC_set=${CC+set}
544 ac_cv_env_CC_value=$CC
545 ac_env_CFLAGS_set=${CFLAGS+set}
546 ac_env_CFLAGS_value=$CFLAGS
547 ac_cv_env_CFLAGS_set=${CFLAGS+set}
548 ac_cv_env_CFLAGS_value=$CFLAGS
549 ac_env_LDFLAGS_set=${LDFLAGS+set}
550 ac_env_LDFLAGS_value=$LDFLAGS
551 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552 ac_cv_env_LDFLAGS_value=$LDFLAGS
553 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554 ac_env_CPPFLAGS_value=$CPPFLAGS
555 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557 ac_env_CPP_set=${CPP+set}
558 ac_env_CPP_value=$CPP
559 ac_cv_env_CPP_set=${CPP+set}
560 ac_cv_env_CPP_value=$CPP
563 # Report the --help message.
565 if test "$ac_init_help" = "long"; then
566 # Omit some internal or obsolete options to make the list less imposing.
567 # This message is too long to be a string in the A/UX 3.1 sh.
569 \`configure' configures this package to adapt to many kinds of systems.
571 Usage: $0 [OPTION]... [VAR=VALUE]...
573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
574 VAR=VALUE. See below for descriptions of some of the useful variables.
576 Defaults for the options are specified in brackets.
579 -h, --help display this help and exit
580 --help=short display options specific to this package
581 --help=recursive display the short help of all the included packages
582 -V, --version display version information and exit
583 -q, --quiet, --silent do not print \`checking...' messages
584 --cache-file=FILE cache test results in FILE [disabled]
585 -C, --config-cache alias for \`--cache-file=config.cache'
586 -n, --no-create do not create output files
587 --srcdir=DIR find the sources in DIR [configure dir or \`..']
592 Installation directories:
593 --prefix=PREFIX install architecture-independent files in PREFIX
595 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
598 By default, \`make install' will install all the files in
599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
601 for instance \`--prefix=\$HOME'.
603 For better control, use the options below.
605 Fine tuning of the installation directories:
606 --bindir=DIR user executables [EPREFIX/bin]
607 --sbindir=DIR system admin executables [EPREFIX/sbin]
608 --libexecdir=DIR program executables [EPREFIX/libexec]
609 --datadir=DIR read-only architecture-independent data [PREFIX/share]
610 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
611 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
612 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
613 --libdir=DIR object code libraries [EPREFIX/lib]
614 --includedir=DIR C header files [PREFIX/include]
615 --oldincludedir=DIR C header files for non-gcc [/usr/include]
616 --infodir=DIR info documentation [PREFIX/info]
617 --mandir=DIR man documentation [PREFIX/man]
623 --program-prefix=PREFIX prepend PREFIX to installed program names
624 --program-suffix=SUFFIX append SUFFIX to installed program names
625 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
628 --build=BUILD configure for building on BUILD [guessed]
629 --host=HOST build programs to run on HOST [BUILD]
630 --target=TARGET configure for building compilers for TARGET [HOST]
634 if test -n "$ac_init_help"; then
639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
646 --with-system-type=XXX test: override derived host system-type
647 --with-pkg-config{=path} enable/disable use of pkg-config
648 --enable-pc-files generate and install .pc files for pkg-config
649 --without-tests suppress build with test-programs
650 --enable-mixed-case tic should assume mixed-case filenames
651 --with-install-prefix prefixes actual install-location ($DESTDIR)
652 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
653 --with-build-cc=XXX the build C compiler ($BUILD_CC)
654 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
655 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
656 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
657 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
658 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
659 Options to Specify the Libraries Built/Used:
660 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
661 --enable-widec compile with wide-char/UTF-8 code
662 --with-curses-dir=DIR directory in which (n)curses is installed
663 --with-shlib-version=X Specify rel or abi version for shared libs
664 --enable-rpath-link link sample programs with rpath option
665 Fine-Tuning Your Configuration:
666 --enable-broken_linker compile with broken-linker support code
667 --disable-largefile omit support for large files
668 --with-rcs-ids compile-in RCS identifiers
670 --disable-ext-funcs disable function-extensions
671 --enable-const compile with extra/non-standard const
673 --without-develop disable development options
675 --with-pthread use POSIX thread library
676 --enable-weak-symbols enable weak-symbols for pthreads
677 --enable-reentrant compile with experimental reentrant code
678 --with-wrap-prefix=XXX override prefix used for public variables
679 Testing/development Options:
680 --enable-echo build: display "compiling" commands (default)
681 --enable-warnings build: turn on GCC compiler warnings
682 --enable-assertions test: turn on generation of assertion code
683 --enable-expanded test: generate functions for certain macros
684 --disable-macros test: use functions rather than macros
685 --with-trace test: add trace() function to all models of ncurses
686 Ada95 Binding Options:
687 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
688 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
689 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
690 --with-ada-sharedlib=XX build Ada95 shared-library
692 Some influential environment variables:
693 CC C compiler command
694 CFLAGS C compiler flags
695 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
696 nonstandard directory <lib dir>
697 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
698 headers in a nonstandard directory <include dir>
701 Use these variables to override the choices made by `configure' or to help
702 it to find libraries and programs with nonstandard names/locations.
707 if test "$ac_init_help" = "recursive"; then
708 # If there are subdirs, report their specific --help.
710 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
712 # A "../" for each directory in /$ac_subdir.
713 ac_dots=`echo $ac_subdir |
714 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
717 .) # No --srcdir option. We are building in place.
718 ac_sub_srcdir=$srcdir ;;
719 [\\/]* | ?:[\\/]* ) # Absolute path.
720 ac_sub_srcdir=$srcdir/$ac_subdir ;;
722 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
725 # Check for guested configure; otherwise get Cygnus style configure.
726 if test -f $ac_sub_srcdir/configure.gnu; then
728 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
729 elif test -f $ac_sub_srcdir/configure; then
731 $SHELL $ac_sub_srcdir/configure --help=recursive
732 elif test -f $ac_sub_srcdir/configure.ac ||
733 test -f $ac_sub_srcdir/configure.in; then
737 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
743 test -n "$ac_init_help" && exit 0
744 if $ac_init_version; then
747 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
748 Free Software Foundation, Inc.
749 This configure script is free software; the Free Software Foundation
750 gives unlimited permission to copy, distribute and modify it.
756 This file contains any messages produced by compilers while
757 running configure, to aid debugging if configure makes a mistake.
759 It was created by $as_me, which was
760 generated by GNU Autoconf 2.52.20101002. Invocation command line was
771 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
772 uname -m = `(uname -m) 2>/dev/null || echo unknown`
773 uname -r = `(uname -r) 2>/dev/null || echo unknown`
774 uname -s = `(uname -s) 2>/dev/null || echo unknown`
775 uname -v = `(uname -v) 2>/dev/null || echo unknown`
777 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
778 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
780 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
781 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
782 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
783 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
784 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
785 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
786 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
800 # Keep a trace of the command line.
801 # Strip out --no-create and --no-recursion so they do not pile up.
802 # Also quote any args containing shell meta-characters.
808 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
809 | --no-cr | --no-c) ;;
810 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
811 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
812 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
813 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
814 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
816 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
819 # Get rid of the leading space.
822 # When interrupted or exit'd, cleanup temporary files, and complete
823 # config.log. We remove comments because anyway the quotes in there
824 # would cause problems or look ugly.
826 # Save into config.log some information that might help in debugging.
828 echo "## ----------------- ##" >&5
829 echo "## Cache variables. ##" >&5
830 echo "## ----------------- ##" >&5
832 # The following way of writing the cache mishandles newlines in values,
835 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
838 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
843 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
847 sed "/^$/d" confdefs.h >conftest.log
848 if test -s conftest.log; then
850 echo "## ------------ ##" >&5
851 echo "## confdefs.h. ##" >&5
852 echo "## ------------ ##" >&5
857 test "$ac_signal" != 0 &&
858 echo "$as_me: caught signal $ac_signal" >&5
859 echo "$as_me: exit $exit_status" >&5
860 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
863 for ac_signal in 1 2 13 15; do
864 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
868 # confdefs.h avoids OS command line length limits that DEFS can exceed.
869 rm -rf conftest* confdefs.h
870 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
873 # Let the site file select an alternate cache file if it wants to.
874 # Prefer explicitly selected file to automatically selected ones.
875 if test -z "$CONFIG_SITE"; then
876 if test "x$prefix" != xNONE; then
877 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
879 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
882 for ac_site_file in $CONFIG_SITE; do
883 if test -r "$ac_site_file"; then
884 { echo "$as_me:884: loading site script $ac_site_file" >&5
885 echo "$as_me: loading site script $ac_site_file" >&6;}
886 cat "$ac_site_file" >&5
891 if test -r "$cache_file"; then
892 # Some versions of bash will fail to source /dev/null (special
893 # files actually), so we avoid doing that.
894 if test -f "$cache_file"; then
895 { echo "$as_me:895: loading cache $cache_file" >&5
896 echo "$as_me: loading cache $cache_file" >&6;}
898 [\\/]* | ?:[\\/]* ) . $cache_file;;
903 { echo "$as_me:903: creating cache $cache_file" >&5
904 echo "$as_me: creating cache $cache_file" >&6;}
908 # Check that the precious variables saved in the cache have kept the same
910 ac_cache_corrupted=false
911 for ac_var in `(set) 2>&1 |
912 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
913 eval ac_old_set=\$ac_cv_env_${ac_var}_set
914 eval ac_new_set=\$ac_env_${ac_var}_set
915 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
916 eval ac_new_val="\$ac_env_${ac_var}_value"
917 case $ac_old_set,$ac_new_set in
919 { echo "$as_me:919: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
920 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
921 ac_cache_corrupted=: ;;
923 { echo "$as_me:923: error: \`$ac_var' was not set in the previous run" >&5
924 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
925 ac_cache_corrupted=: ;;
928 if test "x$ac_old_val" != "x$ac_new_val"; then
929 { echo "$as_me:929: error: \`$ac_var' has changed since the previous run:" >&5
930 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
931 { echo "$as_me:931: former value: $ac_old_val" >&5
932 echo "$as_me: former value: $ac_old_val" >&2;}
933 { echo "$as_me:933: current value: $ac_new_val" >&5
934 echo "$as_me: current value: $ac_new_val" >&2;}
938 # Pass precious variables to config.status. It doesn't matter if
939 # we pass some twice (in addition to the command line arguments).
940 if test "$ac_new_set" = set; then
942 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
943 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
944 ac_configure_args="$ac_configure_args '$ac_arg'"
946 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
951 if $ac_cache_corrupted; then
952 { echo "$as_me:952: error: changes in the environment can compromise the build" >&5
953 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
954 { { echo "$as_me:954: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
955 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
956 { (exit 1); exit 1; }; }
960 ac_cpp='$CPP $CPPFLAGS'
961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
964 ac_main_return=return
966 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
967 *c*,-n*) ECHO_N= ECHO_C='
969 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
970 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
972 echo "#! $SHELL" >conftest.sh
973 echo "exit 0" >>conftest.sh
975 if { (echo "$as_me:975: PATH=\".;.\"; conftest.sh") >&5
976 (PATH=".;."; conftest.sh) 2>&5
978 echo "$as_me:978: \$? = $ac_status" >&5
979 (exit $ac_status); }; then
980 ac_path_separator=';'
984 PATH_SEPARATOR="$ac_path_separator"
987 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
992 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
993 if test -f $ac_dir/install-sh; then
995 ac_install_sh="$ac_aux_dir/install-sh -c"
997 elif test -f $ac_dir/install.sh; then
999 ac_install_sh="$ac_aux_dir/install.sh -c"
1001 elif test -f $ac_dir/shtool; then
1003 ac_install_sh="$ac_aux_dir/shtool install -c"
1007 if test -z "$ac_aux_dir"; then
1008 { { echo "$as_me:1008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1009 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1010 { (exit 1); exit 1; }; }
1012 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1013 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1014 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1016 # Make sure we can run config.sub.
1017 $ac_config_sub sun4 >/dev/null 2>&1 ||
1018 { { echo "$as_me:1018: error: cannot run $ac_config_sub" >&5
1019 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1020 { (exit 1); exit 1; }; }
1022 echo "$as_me:1022: checking build system type" >&5
1023 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1024 if test "${ac_cv_build+set}" = set; then
1025 echo $ECHO_N "(cached) $ECHO_C" >&6
1027 ac_cv_build_alias=$build_alias
1028 test -z "$ac_cv_build_alias" &&
1029 ac_cv_build_alias=`$ac_config_guess`
1030 test -z "$ac_cv_build_alias" &&
1031 { { echo "$as_me:1031: error: cannot guess build type; you must specify one" >&5
1032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1033 { (exit 1); exit 1; }; }
1034 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1035 { { echo "$as_me:1035: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1036 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1037 { (exit 1); exit 1; }; }
1040 echo "$as_me:1040: result: $ac_cv_build" >&5
1041 echo "${ECHO_T}$ac_cv_build" >&6
1043 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 echo "$as_me:1047: checking host system type" >&5
1048 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1049 if test "${ac_cv_host+set}" = set; then
1050 echo $ECHO_N "(cached) $ECHO_C" >&6
1052 ac_cv_host_alias=$host_alias
1053 test -z "$ac_cv_host_alias" &&
1054 ac_cv_host_alias=$ac_cv_build_alias
1055 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1056 { { echo "$as_me:1056: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1057 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1058 { (exit 1); exit 1; }; }
1061 echo "$as_me:1061: result: $ac_cv_host" >&5
1062 echo "${ECHO_T}$ac_cv_host" >&6
1064 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1068 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1069 echo "$as_me:1069: checking target system type" >&5
1070 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1071 if test "${ac_cv_target+set}" = set; then
1072 echo $ECHO_N "(cached) $ECHO_C" >&6
1074 ac_cv_target_alias=$target_alias
1075 test "x$ac_cv_target_alias" = "x" &&
1076 ac_cv_target_alias=$ac_cv_host_alias
1077 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1078 { { echo "$as_me:1078: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1079 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1080 { (exit 1); exit 1; }; }
1083 echo "$as_me:1083: result: $ac_cv_target" >&5
1084 echo "${ECHO_T}$ac_cv_target" >&6
1085 target=$ac_cv_target
1086 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1090 # The aliases save the names the user supplied, while $host etc.
1091 # will get canonicalized.
1092 test -n "$target_alias" &&
1093 test "$program_prefix$program_suffix$program_transform_name" = \
1095 program_prefix=${target_alias}-
1096 system_name="$host_os"
1098 system_name="`(uname -s -r) 2>/dev/null`"
1099 if test -z "$system_name" ; then
1100 system_name="`(hostname) 2>/dev/null`"
1103 test -n "$system_name" && cat >>confdefs.h <<EOF
1104 #define SYSTEM_NAME "$system_name"
1107 if test "${cf_cv_system_name+set}" = set; then
1108 echo $ECHO_N "(cached) $ECHO_C" >&6
1110 cf_cv_system_name="$system_name"
1113 test -z "$system_name" && system_name="$cf_cv_system_name"
1114 test -n "$cf_cv_system_name" && echo "$as_me:1114: result: Configuring for $cf_cv_system_name" >&5
1115 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1117 if test ".$system_name" != ".$cf_cv_system_name" ; then
1118 echo "$as_me:1118: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1119 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1120 { { echo "$as_me:1120: error: \"Please remove config.cache and try again.\"" >&5
1121 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1122 { (exit 1); exit 1; }; }
1125 # Check whether --with-system-type or --without-system-type was given.
1126 if test "${with_system_type+set}" = set; then
1127 withval="$with_system_type"
1128 { echo "$as_me:1128: WARNING: overriding system type to $withval" >&5
1129 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1130 cf_cv_system_name=$withval
1133 ### Save the given $CFLAGS to allow user-override.
1134 cf_user_CFLAGS="$CFLAGS"
1136 ### Default install-location
1138 echo "$as_me:1138: checking for prefix" >&5
1139 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1140 if test "x$prefix" = "xNONE" ; then
1141 case "$cf_cv_system_name" in
1142 # non-vendor systems don't have a conflict
1143 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1146 *) prefix=$ac_default_prefix
1150 echo "$as_me:1150: result: $prefix" >&5
1151 echo "${ECHO_T}$prefix" >&6
1153 if test "x$prefix" = "xNONE" ; then
1154 echo "$as_me:1154: checking for default include-directory" >&5
1155 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1156 test -n "$verbose" && echo 1>&6
1159 $includedir/ncurses \
1161 $prefix/include/ncurses \
1162 /usr/local/include \
1163 /usr/local/include/ncurses \
1165 /usr/include/ncurses
1167 cf_dir=`eval echo $cf_symbol`
1168 if test -f $cf_dir/curses.h ; then
1169 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1170 includedir="$cf_symbol"
1171 test -n "$verbose" && echo $ac_n " found " 1>&6
1175 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1177 echo "$as_me:1177: result: $includedir" >&5
1178 echo "${ECHO_T}$includedir" >&6
1181 ### Checks for programs.
1183 ac_cpp='$CPP $CPPFLAGS'
1184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1187 ac_main_return=return
1188 if test -n "$ac_tool_prefix"; then
1189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1191 echo "$as_me:1191: checking for $ac_word" >&5
1192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1193 if test "${ac_cv_prog_CC+set}" = set; then
1194 echo $ECHO_N "(cached) $ECHO_C" >&6
1196 if test -n "$CC"; then
1197 ac_cv_prog_CC="$CC" # Let the user override the test.
1199 ac_save_IFS=$IFS; IFS=$ac_path_separator
1201 for ac_dir in $ac_dummy; do
1203 test -z "$ac_dir" && ac_dir=.
1204 $as_executable_p "$ac_dir/$ac_word" || continue
1205 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1206 echo "$as_me:1206: found $ac_dir/$ac_word" >&5
1213 if test -n "$CC"; then
1214 echo "$as_me:1214: result: $CC" >&5
1215 echo "${ECHO_T}$CC" >&6
1217 echo "$as_me:1217: result: no" >&5
1218 echo "${ECHO_T}no" >&6
1222 if test -z "$ac_cv_prog_CC"; then
1224 # Extract the first word of "gcc", so it can be a program name with args.
1225 set dummy gcc; ac_word=$2
1226 echo "$as_me:1226: checking for $ac_word" >&5
1227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1229 echo $ECHO_N "(cached) $ECHO_C" >&6
1231 if test -n "$ac_ct_CC"; then
1232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1234 ac_save_IFS=$IFS; IFS=$ac_path_separator
1236 for ac_dir in $ac_dummy; do
1238 test -z "$ac_dir" && ac_dir=.
1239 $as_executable_p "$ac_dir/$ac_word" || continue
1240 ac_cv_prog_ac_ct_CC="gcc"
1241 echo "$as_me:1241: found $ac_dir/$ac_word" >&5
1247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1248 if test -n "$ac_ct_CC"; then
1249 echo "$as_me:1249: result: $ac_ct_CC" >&5
1250 echo "${ECHO_T}$ac_ct_CC" >&6
1252 echo "$as_me:1252: result: no" >&5
1253 echo "${ECHO_T}no" >&6
1261 if test -z "$CC"; then
1262 if test -n "$ac_tool_prefix"; then
1263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1264 set dummy ${ac_tool_prefix}cc; ac_word=$2
1265 echo "$as_me:1265: checking for $ac_word" >&5
1266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1267 if test "${ac_cv_prog_CC+set}" = set; then
1268 echo $ECHO_N "(cached) $ECHO_C" >&6
1270 if test -n "$CC"; then
1271 ac_cv_prog_CC="$CC" # Let the user override the test.
1273 ac_save_IFS=$IFS; IFS=$ac_path_separator
1275 for ac_dir in $ac_dummy; do
1277 test -z "$ac_dir" && ac_dir=.
1278 $as_executable_p "$ac_dir/$ac_word" || continue
1279 ac_cv_prog_CC="${ac_tool_prefix}cc"
1280 echo "$as_me:1280: found $ac_dir/$ac_word" >&5
1287 if test -n "$CC"; then
1288 echo "$as_me:1288: result: $CC" >&5
1289 echo "${ECHO_T}$CC" >&6
1291 echo "$as_me:1291: result: no" >&5
1292 echo "${ECHO_T}no" >&6
1296 if test -z "$ac_cv_prog_CC"; then
1298 # Extract the first word of "cc", so it can be a program name with args.
1299 set dummy cc; ac_word=$2
1300 echo "$as_me:1300: checking for $ac_word" >&5
1301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1302 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1303 echo $ECHO_N "(cached) $ECHO_C" >&6
1305 if test -n "$ac_ct_CC"; then
1306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1308 ac_save_IFS=$IFS; IFS=$ac_path_separator
1310 for ac_dir in $ac_dummy; do
1312 test -z "$ac_dir" && ac_dir=.
1313 $as_executable_p "$ac_dir/$ac_word" || continue
1314 ac_cv_prog_ac_ct_CC="cc"
1315 echo "$as_me:1315: found $ac_dir/$ac_word" >&5
1321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1322 if test -n "$ac_ct_CC"; then
1323 echo "$as_me:1323: result: $ac_ct_CC" >&5
1324 echo "${ECHO_T}$ac_ct_CC" >&6
1326 echo "$as_me:1326: result: no" >&5
1327 echo "${ECHO_T}no" >&6
1336 if test -z "$CC"; then
1337 # Extract the first word of "cc", so it can be a program name with args.
1338 set dummy cc; ac_word=$2
1339 echo "$as_me:1339: checking for $ac_word" >&5
1340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341 if test "${ac_cv_prog_CC+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1344 if test -n "$CC"; then
1345 ac_cv_prog_CC="$CC" # Let the user override the test.
1348 ac_save_IFS=$IFS; IFS=$ac_path_separator
1350 for ac_dir in $ac_dummy; do
1352 test -z "$ac_dir" && ac_dir=.
1353 $as_executable_p "$ac_dir/$ac_word" || continue
1354 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1355 ac_prog_rejected=yes
1359 echo "$as_me:1359: found $ac_dir/$ac_word" >&5
1363 if test $ac_prog_rejected = yes; then
1364 # We found a bogon in the path, so make sure we never use it.
1365 set dummy $ac_cv_prog_CC
1367 if test $# != 0; then
1368 # We chose a different compiler from the bogus one.
1369 # However, it has the same basename, so the bogon will be chosen
1370 # first if we set CC to just the basename; use the full file name.
1372 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1380 if test -n "$CC"; then
1381 echo "$as_me:1381: result: $CC" >&5
1382 echo "${ECHO_T}$CC" >&6
1384 echo "$as_me:1384: result: no" >&5
1385 echo "${ECHO_T}no" >&6
1389 if test -z "$CC"; then
1390 if test -n "$ac_tool_prefix"; then
1393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1395 echo "$as_me:1395: checking for $ac_word" >&5
1396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397 if test "${ac_cv_prog_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 if test -n "$CC"; then
1401 ac_cv_prog_CC="$CC" # Let the user override the test.
1403 ac_save_IFS=$IFS; IFS=$ac_path_separator
1405 for ac_dir in $ac_dummy; do
1407 test -z "$ac_dir" && ac_dir=.
1408 $as_executable_p "$ac_dir/$ac_word" || continue
1409 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1410 echo "$as_me:1410: found $ac_dir/$ac_word" >&5
1417 if test -n "$CC"; then
1418 echo "$as_me:1418: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1421 echo "$as_me:1421: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1425 test -n "$CC" && break
1428 if test -z "$CC"; then
1432 # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy $ac_prog; ac_word=$2
1434 echo "$as_me:1434: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 if test -n "$ac_ct_CC"; then
1440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1442 ac_save_IFS=$IFS; IFS=$ac_path_separator
1444 for ac_dir in $ac_dummy; do
1446 test -z "$ac_dir" && ac_dir=.
1447 $as_executable_p "$ac_dir/$ac_word" || continue
1448 ac_cv_prog_ac_ct_CC="$ac_prog"
1449 echo "$as_me:1449: found $ac_dir/$ac_word" >&5
1455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1456 if test -n "$ac_ct_CC"; then
1457 echo "$as_me:1457: result: $ac_ct_CC" >&5
1458 echo "${ECHO_T}$ac_ct_CC" >&6
1460 echo "$as_me:1460: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 test -n "$ac_ct_CC" && break
1472 test -z "$CC" && { { echo "$as_me:1472: error: no acceptable cc found in \$PATH" >&5
1473 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1474 { (exit 1); exit 1; }; }
1476 # Provide some information about the compiler.
1477 echo "$as_me:1477:" \
1478 "checking for C compiler version" >&5
1479 ac_compiler=`set X $ac_compile; echo $2`
1480 { (eval echo "$as_me:1480: \"$ac_compiler --version </dev/null >&5\"") >&5
1481 (eval $ac_compiler --version </dev/null >&5) 2>&5
1483 echo "$as_me:1483: \$? = $ac_status" >&5
1484 (exit $ac_status); }
1485 { (eval echo "$as_me:1485: \"$ac_compiler -v </dev/null >&5\"") >&5
1486 (eval $ac_compiler -v </dev/null >&5) 2>&5
1488 echo "$as_me:1488: \$? = $ac_status" >&5
1489 (exit $ac_status); }
1490 { (eval echo "$as_me:1490: \"$ac_compiler -V </dev/null >&5\"") >&5
1491 (eval $ac_compiler -V </dev/null >&5) 2>&5
1493 echo "$as_me:1493: \$? = $ac_status" >&5
1494 (exit $ac_status); }
1496 cat >conftest.$ac_ext <<_ACEOF
1497 #line 1497 "configure"
1498 #include "confdefs.h"
1508 ac_clean_files_save=$ac_clean_files
1509 ac_clean_files="$ac_clean_files a.out a.exe"
1510 # Try to create an executable without -o first, disregard a.out.
1511 # It will help us diagnose broken compilers, and finding out an intuition
1513 echo "$as_me:1513: checking for C compiler default output" >&5
1514 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1516 if { (eval echo "$as_me:1516: \"$ac_link_default\"") >&5
1517 (eval $ac_link_default) 2>&5
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); }; then
1521 # Find the output, starting from the most likely. This scheme is
1522 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1524 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1525 ls a.out conftest 2>/dev/null;
1526 ls a.* conftest.* 2>/dev/null`; do
1528 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1529 a.out ) # We found the default executable, but exeext='' is most
1532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1533 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1540 echo "$as_me: failed program was:" >&5
1541 cat conftest.$ac_ext >&5
1542 { { echo "$as_me:1542: error: C compiler cannot create executables" >&5
1543 echo "$as_me: error: C compiler cannot create executables" >&2;}
1544 { (exit 77); exit 77; }; }
1547 ac_exeext=$ac_cv_exeext
1548 echo "$as_me:1548: result: $ac_file" >&5
1549 echo "${ECHO_T}$ac_file" >&6
1551 # Check the compiler produces executables we can run. If not, either
1552 # the compiler is broken, or we cross compile.
1553 echo "$as_me:1553: checking whether the C compiler works" >&5
1554 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1556 # If not cross compiling, check that we can run a simple program.
1557 if test "$cross_compiling" != yes; then
1558 if { ac_try='./$ac_file'
1559 { (eval echo "$as_me:1559: \"$ac_try\"") >&5
1562 echo "$as_me:1562: \$? = $ac_status" >&5
1563 (exit $ac_status); }; }; then
1566 if test "$cross_compiling" = maybe; then
1569 { { echo "$as_me:1569: error: cannot run C compiled programs.
1570 If you meant to cross compile, use \`--host'." >&5
1571 echo "$as_me: error: cannot run C compiled programs.
1572 If you meant to cross compile, use \`--host'." >&2;}
1573 { (exit 1); exit 1; }; }
1577 echo "$as_me:1577: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1580 rm -f a.out a.exe conftest$ac_cv_exeext
1581 ac_clean_files=$ac_clean_files_save
1582 # Check the compiler produces executables we can run. If not, either
1583 # the compiler is broken, or we cross compile.
1584 echo "$as_me:1584: checking whether we are cross compiling" >&5
1585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1586 echo "$as_me:1586: result: $cross_compiling" >&5
1587 echo "${ECHO_T}$cross_compiling" >&6
1589 echo "$as_me:1589: checking for executable suffix" >&5
1590 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1591 if { (eval echo "$as_me:1591: \"$ac_link\"") >&5
1592 (eval $ac_link) 2>&5
1594 echo "$as_me:1594: \$? = $ac_status" >&5
1595 (exit $ac_status); }; then
1596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1598 # work properly (i.e., refer to `conftest.exe'), while it won't with
1600 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1602 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1610 { { echo "$as_me:1610: error: cannot compute EXEEXT: cannot compile and link" >&5
1611 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1612 { (exit 1); exit 1; }; }
1615 rm -f conftest$ac_cv_exeext
1616 echo "$as_me:1616: result: $ac_cv_exeext" >&5
1617 echo "${ECHO_T}$ac_cv_exeext" >&6
1619 rm -f conftest.$ac_ext
1620 EXEEXT=$ac_cv_exeext
1622 echo "$as_me:1622: checking for object suffix" >&5
1623 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1624 if test "${ac_cv_objext+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 cat >conftest.$ac_ext <<_ACEOF
1628 #line 1628 "configure"
1629 #include "confdefs.h"
1639 rm -f conftest.o conftest.obj
1640 if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5
1641 (eval $ac_compile) 2>&5
1643 echo "$as_me:1643: \$? = $ac_status" >&5
1644 (exit $ac_status); }; then
1645 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1647 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1648 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1653 echo "$as_me: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1655 { { echo "$as_me:1655: error: cannot compute OBJEXT: cannot compile" >&5
1656 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1657 { (exit 1); exit 1; }; }
1660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1662 echo "$as_me:1662: result: $ac_cv_objext" >&5
1663 echo "${ECHO_T}$ac_cv_objext" >&6
1664 OBJEXT=$ac_cv_objext
1666 echo "$as_me:1666: checking whether we are using the GNU C compiler" >&5
1667 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1668 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 cat >conftest.$ac_ext <<_ACEOF
1672 #line 1672 "configure"
1673 #include "confdefs.h"
1686 rm -f conftest.$ac_objext
1687 if { (eval echo "$as_me:1687: \"$ac_compile\"") >&5
1688 (eval $ac_compile) 2>&5
1690 echo "$as_me:1690: \$? = $ac_status" >&5
1691 (exit $ac_status); } &&
1692 { ac_try='test -s conftest.$ac_objext'
1693 { (eval echo "$as_me:1693: \"$ac_try\"") >&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }; }; then
1700 echo "$as_me: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1704 rm -f conftest.$ac_objext conftest.$ac_ext
1705 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1708 echo "$as_me:1708: result: $ac_cv_c_compiler_gnu" >&5
1709 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1710 GCC=`test $ac_compiler_gnu = yes && echo yes`
1711 ac_test_CFLAGS=${CFLAGS+set}
1712 ac_save_CFLAGS=$CFLAGS
1714 echo "$as_me:1714: checking whether $CC accepts -g" >&5
1715 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1716 if test "${ac_cv_prog_cc_g+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 cat >conftest.$ac_ext <<_ACEOF
1720 #line 1720 "configure"
1721 #include "confdefs.h"
1731 rm -f conftest.$ac_objext
1732 if { (eval echo "$as_me:1732: \"$ac_compile\"") >&5
1733 (eval $ac_compile) 2>&5
1735 echo "$as_me:1735: \$? = $ac_status" >&5
1736 (exit $ac_status); } &&
1737 { ac_try='test -s conftest.$ac_objext'
1738 { (eval echo "$as_me:1738: \"$ac_try\"") >&5
1741 echo "$as_me:1741: \$? = $ac_status" >&5
1742 (exit $ac_status); }; }; then
1745 echo "$as_me: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1749 rm -f conftest.$ac_objext conftest.$ac_ext
1751 echo "$as_me:1751: result: $ac_cv_prog_cc_g" >&5
1752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1753 if test "$ac_test_CFLAGS" = set; then
1754 CFLAGS=$ac_save_CFLAGS
1755 elif test $ac_cv_prog_cc_g = yes; then
1756 if test "$GCC" = yes; then
1762 if test "$GCC" = yes; then
1768 # Some people use a C++ compiler to compile C. Since we use `exit',
1769 # in C++ we need to declare it. In case someone uses the same compiler
1770 # for both compiling C and C++ we need to have the C++ compiler decide
1771 # the declaration of exit, since it's the most demanding environment.
1772 cat >conftest.$ac_ext <<_ACEOF
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
1789 for ac_declaration in \
1791 '#include <stdlib.h>' \
1792 'extern "C" void std::exit (int) throw (); using std::exit;' \
1793 'extern "C" void std::exit (int); using std::exit;' \
1794 'extern "C" void exit (int) throw ();' \
1795 'extern "C" void exit (int);' \
1798 cat >conftest.$ac_ext <<_ACEOF
1799 #line 1799 "configure"
1800 #include "confdefs.h"
1811 rm -f conftest.$ac_objext
1812 if { (eval echo "$as_me:1812: \"$ac_compile\"") >&5
1813 (eval $ac_compile) 2>&5
1815 echo "$as_me:1815: \$? = $ac_status" >&5
1816 (exit $ac_status); } &&
1817 { ac_try='test -s conftest.$ac_objext'
1818 { (eval echo "$as_me:1818: \"$ac_try\"") >&5
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); }; }; then
1825 echo "$as_me: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1829 rm -f conftest.$ac_objext conftest.$ac_ext
1830 cat >conftest.$ac_ext <<_ACEOF
1831 #line 1831 "configure"
1832 #include "confdefs.h"
1842 rm -f conftest.$ac_objext
1843 if { (eval echo "$as_me:1843: \"$ac_compile\"") >&5
1844 (eval $ac_compile) 2>&5
1846 echo "$as_me:1846: \$? = $ac_status" >&5
1847 (exit $ac_status); } &&
1848 { ac_try='test -s conftest.$ac_objext'
1849 { (eval echo "$as_me:1849: \"$ac_try\"") >&5
1852 echo "$as_me:1852: \$? = $ac_status" >&5
1853 (exit $ac_status); }; }; then
1856 echo "$as_me: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 rm -f conftest.$ac_objext conftest.$ac_ext
1862 if test -n "$ac_declaration"; then
1863 echo '#ifdef __cplusplus' >>confdefs.h
1864 echo $ac_declaration >>confdefs.h
1865 echo '#endif' >>confdefs.h
1869 echo "$as_me: failed program was:" >&5
1870 cat conftest.$ac_ext >&5
1872 rm -f conftest.$ac_objext conftest.$ac_ext
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878 ac_main_return=return
1881 if test "$GCC" = yes ; then
1882 echo "$as_me:1882: checking version of $CC" >&5
1883 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1884 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1885 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1886 echo "$as_me:1886: result: $GCC_VERSION" >&5
1887 echo "${ECHO_T}$GCC_VERSION" >&6
1891 ac_cpp='$CPP $CPPFLAGS'
1892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1895 ac_main_return=return
1896 echo "$as_me:1896: checking how to run the C preprocessor" >&5
1897 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1898 # On Suns, sometimes $CPP names a directory.
1899 if test -n "$CPP" && test -d "$CPP"; then
1902 if test -z "$CPP"; then
1903 if test "${ac_cv_prog_CPP+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 # Double quotes because CPP needs to be expanded
1907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1910 for ac_c_preproc_warn_flag in '' yes
1912 # Use a header file that comes with gcc, so configuring glibc
1913 # with a fresh cross-compiler works.
1914 # On the NeXT, cc -E runs the code through the compiler's parser,
1915 # not just through cpp. "Syntax error" is here to catch this case.
1916 cat >conftest.$ac_ext <<_ACEOF
1917 #line 1917 "configure"
1918 #include "confdefs.h"
1922 if { (eval echo "$as_me:1922: \"$ac_cpp conftest.$ac_ext\"") >&5
1923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1925 egrep -v '^ *\+' conftest.er1 >conftest.err
1927 cat conftest.err >&5
1928 echo "$as_me:1928: \$? = $ac_status" >&5
1929 (exit $ac_status); } >/dev/null; then
1930 if test -s conftest.err; then
1931 ac_cpp_err=$ac_c_preproc_warn_flag
1938 if test -z "$ac_cpp_err"; then
1941 echo "$as_me: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1943 # Broken: fails on valid input.
1946 rm -f conftest.err conftest.$ac_ext
1948 # OK, works on sane cases. Now check whether non-existent headers
1949 # can be detected and how.
1950 cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1953 #include <ac_nonexistent.h>
1955 if { (eval echo "$as_me:1955: \"$ac_cpp conftest.$ac_ext\"") >&5
1956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1958 egrep -v '^ *\+' conftest.er1 >conftest.err
1960 cat conftest.err >&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit $ac_status); } >/dev/null; then
1963 if test -s conftest.err; then
1964 ac_cpp_err=$ac_c_preproc_warn_flag
1971 if test -z "$ac_cpp_err"; then
1972 # Broken: success on invalid input.
1975 echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 # Passes both tests.
1981 rm -f conftest.err conftest.$ac_ext
1984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1985 rm -f conftest.err conftest.$ac_ext
1986 if $ac_preproc_ok; then
1998 echo "$as_me:1998: result: $CPP" >&5
1999 echo "${ECHO_T}$CPP" >&6
2001 for ac_c_preproc_warn_flag in '' yes
2003 # Use a header file that comes with gcc, so configuring glibc
2004 # with a fresh cross-compiler works.
2005 # On the NeXT, cc -E runs the code through the compiler's parser,
2006 # not just through cpp. "Syntax error" is here to catch this case.
2007 cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2013 if { (eval echo "$as_me:2013: \"$ac_cpp conftest.$ac_ext\"") >&5
2014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2016 egrep -v '^ *\+' conftest.er1 >conftest.err
2018 cat conftest.err >&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); } >/dev/null; then
2021 if test -s conftest.err; then
2022 ac_cpp_err=$ac_c_preproc_warn_flag
2029 if test -z "$ac_cpp_err"; then
2032 echo "$as_me: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 # Broken: fails on valid input.
2037 rm -f conftest.err conftest.$ac_ext
2039 # OK, works on sane cases. Now check whether non-existent headers
2040 # can be detected and how.
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line 2042 "configure"
2043 #include "confdefs.h"
2044 #include <ac_nonexistent.h>
2046 if { (eval echo "$as_me:2046: \"$ac_cpp conftest.$ac_ext\"") >&5
2047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2049 egrep -v '^ *\+' conftest.er1 >conftest.err
2051 cat conftest.err >&5
2052 echo "$as_me:2052: \$? = $ac_status" >&5
2053 (exit $ac_status); } >/dev/null; then
2054 if test -s conftest.err; then
2055 ac_cpp_err=$ac_c_preproc_warn_flag
2062 if test -z "$ac_cpp_err"; then
2063 # Broken: success on invalid input.
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 # Passes both tests.
2072 rm -f conftest.err conftest.$ac_ext
2075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2076 rm -f conftest.err conftest.$ac_ext
2077 if $ac_preproc_ok; then
2080 { { echo "$as_me:2080: error: C preprocessor \"$CPP\" fails sanity check" >&5
2081 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2082 { (exit 1); exit 1; }; }
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 ac_main_return=return
2092 if test $ac_cv_c_compiler_gnu = yes; then
2093 echo "$as_me:2093: checking whether $CC needs -traditional" >&5
2094 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2095 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_pattern="Autoconf.*'x'"
2099 cat >conftest.$ac_ext <<_ACEOF
2100 #line 2100 "configure"
2101 #include "confdefs.h"
2103 int Autoconf = TIOCGETP;
2105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2106 egrep "$ac_pattern" >/dev/null 2>&1; then
2107 ac_cv_prog_gcc_traditional=yes
2109 ac_cv_prog_gcc_traditional=no
2113 if test $ac_cv_prog_gcc_traditional = no; then
2114 cat >conftest.$ac_ext <<_ACEOF
2115 #line 2115 "configure"
2116 #include "confdefs.h"
2118 int Autoconf = TCGETA;
2120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2121 egrep "$ac_pattern" >/dev/null 2>&1; then
2122 ac_cv_prog_gcc_traditional=yes
2128 echo "$as_me:2128: result: $ac_cv_prog_gcc_traditional" >&5
2129 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2130 if test $ac_cv_prog_gcc_traditional = yes; then
2131 CC="$CC -traditional"
2135 echo "$as_me:2135: checking whether $CC understands -c and -o together" >&5
2136 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2137 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 cat > conftest.$ac_ext <<CF_EOF
2145 ${cf_cv_main_return:-return}(0);
2148 # We do the test twice because some compilers refuse to overwrite an
2149 # existing .o file with -o, though they will create one.
2150 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2151 if { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 test -f conftest2.$ac_objext && { (eval echo "$as_me:2156: \"$ac_try\"") >&5
2159 echo "$as_me:2159: \$? = $ac_status" >&5
2160 (exit $ac_status); };
2162 eval cf_cv_prog_CC_c_o=yes
2164 eval cf_cv_prog_CC_c_o=no
2169 if test $cf_cv_prog_CC_c_o = yes; then
2170 echo "$as_me:2170: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6
2173 echo "$as_me:2173: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2177 echo "$as_me:2177: checking for POSIXized ISC" >&5
2178 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2179 if test -d /etc/conf/kconfig.d &&
2180 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2182 echo "$as_me:2182: result: yes" >&5
2183 echo "${ECHO_T}yes" >&6
2184 ISC=yes # If later tests want to check for ISC.
2186 cat >>confdefs.h <<\EOF
2187 #define _POSIX_SOURCE 1
2190 if test "$GCC" = yes; then
2196 echo "$as_me:2196: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2201 echo "$as_me:2201: checking for ${CC:-cc} option to accept ANSI C" >&5
2202 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2203 if test "${cf_cv_ansi_cc+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 cf_save_CFLAGS="$CFLAGS"
2209 cf_save_CPPFLAGS="$CPPFLAGS"
2210 # Don't try gcc -ansi; that turns off useful extensions and
2211 # breaks some systems' header files.
2212 # AIX -qlanglvl=ansi
2213 # Ultrix and OSF/1 -std1
2214 # HP-UX -Aa -D_HPUX_SOURCE
2216 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2217 for cf_arg in "-DCC_HAS_PROTOS" \
2222 "-Aa -D_HPUX_SOURCE" \
2229 cf_new_extra_cppflags=
2231 for cf_add_cflags in $cf_arg
2233 case $cf_fix_cppflags in
2235 case $cf_add_cflags in #(vi
2236 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2237 case $cf_add_cflags in
2239 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2241 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2242 && test -z "${cf_tst_cflags}" \
2243 && cf_fix_cppflags=yes
2245 if test $cf_fix_cppflags = yes ; then
2246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2248 elif test "${cf_tst_cflags}" = "\"'" ; then
2249 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2255 *$cf_add_cflags) #(vi
2258 case $cf_add_cflags in #(vi
2260 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2262 CPPFLAGS=`echo "$CPPFLAGS" | \
2263 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2264 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2268 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2273 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2278 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2280 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2282 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2283 && test -z "${cf_tst_cflags}" \
2284 && cf_fix_cppflags=no
2289 if test -n "$cf_new_cflags" ; then
2291 CFLAGS="$CFLAGS $cf_new_cflags"
2294 if test -n "$cf_new_cppflags" ; then
2296 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2299 if test -n "$cf_new_extra_cppflags" ; then
2301 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #line 2305 "configure"
2306 #include "confdefs.h"
2308 #ifndef CC_HAS_PROTOS
2309 #if !defined(__STDC__) || (__STDC__ != 1)
2318 int test (int i, double x);
2319 struct s1 {int (*f) (int a);};
2320 struct s2 {int (*f) (double a);};
2325 rm -f conftest.$ac_objext
2326 if { (eval echo "$as_me:2326: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>&5
2329 echo "$as_me:2329: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:2332: \"$ac_try\"") >&5
2335 echo "$as_me:2335: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 cf_cv_ansi_cc="$cf_arg"; break
2339 echo "$as_me: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2342 rm -f conftest.$ac_objext conftest.$ac_ext
2344 CFLAGS="$cf_save_CFLAGS"
2345 CPPFLAGS="$cf_save_CPPFLAGS"
2348 echo "$as_me:2348: result: $cf_cv_ansi_cc" >&5
2349 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2351 if test "$cf_cv_ansi_cc" != "no"; then
2352 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2357 cf_new_extra_cppflags=
2359 for cf_add_cflags in $cf_cv_ansi_cc
2361 case $cf_fix_cppflags in
2363 case $cf_add_cflags in #(vi
2364 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2365 case $cf_add_cflags in
2367 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2369 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2370 && test -z "${cf_tst_cflags}" \
2371 && cf_fix_cppflags=yes
2373 if test $cf_fix_cppflags = yes ; then
2374 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2376 elif test "${cf_tst_cflags}" = "\"'" ; then
2377 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2383 *$cf_add_cflags) #(vi
2386 case $cf_add_cflags in #(vi
2388 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2390 CPPFLAGS=`echo "$CPPFLAGS" | \
2391 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2392 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2396 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2401 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2406 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2408 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2410 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2411 && test -z "${cf_tst_cflags}" \
2412 && cf_fix_cppflags=no
2417 if test -n "$cf_new_cflags" ; then
2419 CFLAGS="$CFLAGS $cf_new_cflags"
2422 if test -n "$cf_new_cppflags" ; then
2424 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2427 if test -n "$cf_new_extra_cppflags" ; then
2429 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2433 cat >>confdefs.h <<\EOF
2434 #define CC_HAS_PROTOS 1
2440 if test "$cf_cv_ansi_cc" = "no"; then
2441 { { echo "$as_me:2441: error: Your compiler does not appear to recognize prototypes.
2442 You have the following choices:
2443 a. adjust your compiler options
2444 b. get an up-to-date compiler
2445 c. use a wrapper such as unproto" >&5
2446 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2447 You have the following choices:
2448 a. adjust your compiler options
2449 b. get an up-to-date compiler
2450 c. use a wrapper such as unproto" >&2;}
2451 { (exit 1); exit 1; }; }
2454 case $cf_cv_system_name in
2456 CFLAGS="$CFLAGS -Zmt"
2457 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2458 CXXFLAGS="$CXXFLAGS -Zmt"
2459 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2460 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2467 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2468 #define PROG_EXT "$PROG_EXT"
2471 test "$program_prefix" != NONE &&
2472 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2473 # Use a double $ so make ignores it.
2474 test "$program_suffix" != NONE &&
2475 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2476 # Double any \ or $. echo might interpret backslashes.
2477 # By default was `s,x,x', remove it if useless.
2478 cat <<\_ACEOF >conftest.sed
2479 s/[\\$]/&&/g;s/;s,x,x,$//
2481 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2484 for ac_prog in mawk gawk nawk awk
2486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2487 set dummy $ac_prog; ac_word=$2
2488 echo "$as_me:2488: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2490 if test "${ac_cv_prog_AWK+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 if test -n "$AWK"; then
2494 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2496 ac_save_IFS=$IFS; IFS=$ac_path_separator
2498 for ac_dir in $ac_dummy; do
2500 test -z "$ac_dir" && ac_dir=.
2501 $as_executable_p "$ac_dir/$ac_word" || continue
2502 ac_cv_prog_AWK="$ac_prog"
2503 echo "$as_me:2503: found $ac_dir/$ac_word" >&5
2510 if test -n "$AWK"; then
2511 echo "$as_me:2511: result: $AWK" >&5
2512 echo "${ECHO_T}$AWK" >&6
2514 echo "$as_me:2514: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2518 test -n "$AWK" && break
2521 test -z "$AWK" && { { echo "$as_me:2521: error: No awk program found" >&5
2522 echo "$as_me: error: No awk program found" >&2;}
2523 { (exit 1); exit 1; }; }
2525 echo "$as_me:2525: checking for egrep" >&5
2526 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2527 if test "${ac_cv_prog_egrep+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2531 then ac_cv_prog_egrep='grep -E'
2532 else ac_cv_prog_egrep='egrep'
2535 echo "$as_me:2535: result: $ac_cv_prog_egrep" >&5
2536 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2537 EGREP=$ac_cv_prog_egrep
2539 test -z "$EGREP" && { { echo "$as_me:2539: error: No egrep program found" >&5
2540 echo "$as_me: error: No egrep program found" >&2;}
2541 { (exit 1); exit 1; }; }
2543 # Find a good install program. We prefer a C program (faster),
2544 # so one script is as good as another. But avoid the broken or
2545 # incompatible versions:
2546 # SysV /etc/install, /usr/sbin/install
2547 # SunOS /usr/etc/install
2548 # IRIX /sbin/install
2550 # AmigaOS /C/install, which installs bootblocks on floppy discs
2551 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2552 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2553 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2554 # ./install, which can be erroneously created by make from ./install.sh.
2555 echo "$as_me:2555: checking for a BSD compatible install" >&5
2556 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2557 if test -z "$INSTALL"; then
2558 if test "${ac_cv_path_install+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 ac_save_IFS=$IFS; IFS=$ac_path_separator
2562 for ac_dir in $PATH; do
2564 # Account for people who put trailing slashes in PATH elements.
2566 / | ./ | .// | /cC/* \
2567 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2573 for ac_prog in ginstall scoinst install; do
2574 if $as_executable_p "$ac_dir/$ac_prog"; then
2575 if test $ac_prog = install &&
2576 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2577 # AIX install. It has an incompatible calling convention.
2579 elif test $ac_prog = install &&
2580 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2581 # program-specific install script used by HP pwplus--don't use.
2584 ac_cv_path_install="$ac_dir/$ac_prog -c"
2594 if test "${ac_cv_path_install+set}" = set; then
2595 INSTALL=$ac_cv_path_install
2597 # As a last resort, use the slow shell script. We don't cache a
2598 # path for INSTALL within a source directory, because that will
2599 # break other packages using the cache if that directory is
2600 # removed, or if the path is relative.
2601 INSTALL=$ac_install_sh
2604 echo "$as_me:2604: result: $INSTALL" >&5
2605 echo "${ECHO_T}$INSTALL" >&6
2607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608 # It thinks the first close brace ends the variable substitution.
2609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2615 echo "$as_me:2615: checking whether ln -s works" >&5
2616 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2618 if test "$LN_S" = "ln -s"; then
2619 echo "$as_me:2619: result: yes" >&5
2620 echo "${ECHO_T}yes" >&6
2622 echo "$as_me:2622: result: no, using $LN_S" >&5
2623 echo "${ECHO_T}no, using $LN_S" >&6
2626 echo "$as_me:2626: checking if $LN_S -f options work" >&5
2627 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2629 rm -f conf$$.src conf$$dst
2631 echo first >conf$$.src
2632 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2637 rm -f conf$$.dst conf$$src
2638 echo "$as_me:2638: result: $cf_prog_ln_sf" >&5
2639 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2641 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2643 echo "$as_me:2643: checking for long file names" >&5
2644 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2645 if test "${ac_cv_sys_long_file_names+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 ac_cv_sys_long_file_names=yes
2649 # Test for long file names in all the places we know might matter:
2650 # . the current directory, where building will happen
2651 # $prefix/lib where we will be installing things
2652 # $exec_prefix/lib likewise
2653 # eval it to expand exec_prefix.
2654 # $TMPDIR if set, where it might want to write temporary files
2655 # if $TMPDIR is not set:
2656 # /tmp where it might want to write temporary files
2659 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2662 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2664 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2665 test -d $ac_dir || continue
2666 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2667 ac_xdir=$ac_dir/cf$$
2668 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2669 ac_tf1=$ac_xdir/conftest9012345
2670 ac_tf2=$ac_xdir/conftest9012346
2671 (echo 1 >$ac_tf1) 2>/dev/null
2672 (echo 2 >$ac_tf2) 2>/dev/null
2673 ac_val=`cat $ac_tf1 2>/dev/null`
2674 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2675 ac_cv_sys_long_file_names=no
2676 rm -rf $ac_xdir 2>/dev/null
2679 rm -rf $ac_xdir 2>/dev/null
2682 echo "$as_me:2682: result: $ac_cv_sys_long_file_names" >&5
2683 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2684 if test $ac_cv_sys_long_file_names = yes; then
2686 cat >>confdefs.h <<\EOF
2687 #define HAVE_LONG_FILE_NAMES 1
2692 # if we find pkg-config, check if we should install the ".pc" files.
2694 echo "$as_me:2694: checking if you want to use pkg-config" >&5
2695 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2697 # Check whether --with-pkg-config or --without-pkg-config was given.
2698 if test "${with_pkg_config+set}" = set; then
2699 withval="$with_pkg_config"
2700 cf_pkg_config=$withval
2704 echo "$as_me:2704: result: $cf_pkg_config" >&5
2705 echo "${ECHO_T}$cf_pkg_config" >&6
2707 case $cf_pkg_config in #(vi
2713 if test -n "$ac_tool_prefix"; then
2714 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2715 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2716 echo "$as_me:2716: checking for $ac_word" >&5
2717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2718 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2726 ac_save_IFS=$IFS; IFS=$ac_path_separator
2728 for ac_dir in $ac_dummy; do
2730 test -z "$ac_dir" && ac_dir=.
2731 if $as_executable_p "$ac_dir/$ac_word"; then
2732 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2733 echo "$as_me:2733: found $ac_dir/$ac_word" >&5
2741 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2743 if test -n "$PKG_CONFIG"; then
2744 echo "$as_me:2744: result: $PKG_CONFIG" >&5
2745 echo "${ECHO_T}$PKG_CONFIG" >&6
2747 echo "$as_me:2747: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2752 if test -z "$ac_cv_path_PKG_CONFIG"; then
2753 ac_pt_PKG_CONFIG=$PKG_CONFIG
2754 # Extract the first word of "pkg-config", so it can be a program name with args.
2755 set dummy pkg-config; ac_word=$2
2756 echo "$as_me:2756: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 case $ac_pt_PKG_CONFIG in
2763 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2766 ac_save_IFS=$IFS; IFS=$ac_path_separator
2768 for ac_dir in $ac_dummy; do
2770 test -z "$ac_dir" && ac_dir=.
2771 if $as_executable_p "$ac_dir/$ac_word"; then
2772 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2773 echo "$as_me:2773: found $ac_dir/$ac_word" >&5
2778 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2782 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2784 if test -n "$ac_pt_PKG_CONFIG"; then
2785 echo "$as_me:2785: result: $ac_pt_PKG_CONFIG" >&5
2786 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2788 echo "$as_me:2788: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2792 PKG_CONFIG=$ac_pt_PKG_CONFIG
2794 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2803 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2804 if test "$PKG_CONFIG" != none ; then
2806 if test "x$prefix" != xNONE; then
2807 cf_path_syntax="$prefix"
2809 cf_path_syntax="$ac_default_prefix"
2812 case ".$PKG_CONFIG" in #(vi
2813 .\$\(*\)*|.\'*\'*) #(vi
2817 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2820 eval PKG_CONFIG="$PKG_CONFIG"
2821 case ".$PKG_CONFIG" in #(vi
2823 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2828 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2831 { { echo "$as_me:2831: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2832 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2833 { (exit 1); exit 1; }; }
2839 if test "$PKG_CONFIG" != none ; then
2840 echo "$as_me:2840: checking if we should install .pc files for $PKG_CONFIG" >&5
2841 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2843 # Leave this as something that can be overridden in the environment.
2844 if test -z "$PKG_CONFIG_LIBDIR" ; then
2845 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
2847 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
2848 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
2850 # Check whether --enable-pc-files or --disable-pc-files was given.
2851 if test "${enable_pc_files+set}" = set; then
2852 enableval="$enable_pc_files"
2853 enable_pc_files=$enableval
2857 echo "$as_me:2857: result: $enable_pc_files" >&5
2858 echo "${ECHO_T}$enable_pc_files" >&6
2860 echo "$as_me:2860: result: no" >&5
2861 echo "${ECHO_T}no" >&6
2862 { echo "$as_me:2862: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
2863 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
2868 echo "$as_me:2868: checking if you want to build test-programs" >&5
2869 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2871 # Check whether --with-tests or --without-tests was given.
2872 if test "${with_tests+set}" = set; then
2873 withval="$with_tests"
2874 cf_with_tests=$withval
2878 echo "$as_me:2878: result: $cf_with_tests" >&5
2879 echo "${ECHO_T}$cf_with_tests" >&6
2881 echo "$as_me:2881: checking if we should assume mixed-case filenames" >&5
2882 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2884 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2885 if test "${enable_mixed_case+set}" = set; then
2886 enableval="$enable_mixed_case"
2887 enable_mixedcase=$enableval
2889 enable_mixedcase=auto
2891 echo "$as_me:2891: result: $enable_mixedcase" >&5
2892 echo "${ECHO_T}$enable_mixedcase" >&6
2893 if test "$enable_mixedcase" = "auto" ; then
2895 echo "$as_me:2895: checking if filesystem supports mixed-case filenames" >&5
2896 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2897 if test "${cf_cv_mixedcase+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 if test "$cross_compiling" = yes ; then
2902 case $target_alias in #(vi
2903 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2911 rm -f conftest CONFTEST
2913 if test -f CONFTEST ; then
2918 rm -f conftest CONFTEST
2922 echo "$as_me:2922: result: $cf_cv_mixedcase" >&5
2923 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2924 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2925 #define MIXEDCASE_FILENAMES 1
2929 cf_cv_mixedcase=$enable_mixedcase
2930 if test "$enable_mixedcase" = "yes" ; then
2931 cat >>confdefs.h <<\EOF
2932 #define MIXEDCASE_FILENAMES 1
2938 # do this after mixed-case option (tags/TAGS is not as important as tic).
2939 echo "$as_me:2939: checking whether ${MAKE-make} sets \${MAKE}" >&5
2940 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2941 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2942 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 cat >conftest.make <<\EOF
2947 @echo 'ac_maketemp="${MAKE}"'
2949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2950 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2951 if test -n "$ac_maketemp"; then
2952 eval ac_cv_prog_make_${ac_make}_set=yes
2954 eval ac_cv_prog_make_${ac_make}_set=no
2958 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2959 echo "$as_me:2959: result: yes" >&5
2960 echo "${ECHO_T}yes" >&6
2963 echo "$as_me:2963: result: no" >&5
2964 echo "${ECHO_T}no" >&6
2965 SET_MAKE="MAKE=${MAKE-make}"
2968 for ac_prog in exctags ctags
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 echo "$as_me:2972: checking for $ac_word" >&5
2973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974 if test "${ac_cv_prog_CTAGS+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 if test -n "$CTAGS"; then
2978 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2980 ac_save_IFS=$IFS; IFS=$ac_path_separator
2982 for ac_dir in $ac_dummy; do
2984 test -z "$ac_dir" && ac_dir=.
2985 $as_executable_p "$ac_dir/$ac_word" || continue
2986 ac_cv_prog_CTAGS="$ac_prog"
2987 echo "$as_me:2987: found $ac_dir/$ac_word" >&5
2993 CTAGS=$ac_cv_prog_CTAGS
2994 if test -n "$CTAGS"; then
2995 echo "$as_me:2995: result: $CTAGS" >&5
2996 echo "${ECHO_T}$CTAGS" >&6
2998 echo "$as_me:2998: result: no" >&5
2999 echo "${ECHO_T}no" >&6
3002 test -n "$CTAGS" && break
3005 for ac_prog in exetags etags
3007 # Extract the first word of "$ac_prog", so it can be a program name with args.
3008 set dummy $ac_prog; ac_word=$2
3009 echo "$as_me:3009: checking for $ac_word" >&5
3010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011 if test "${ac_cv_prog_ETAGS+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 if test -n "$ETAGS"; then
3015 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3017 ac_save_IFS=$IFS; IFS=$ac_path_separator
3019 for ac_dir in $ac_dummy; do
3021 test -z "$ac_dir" && ac_dir=.
3022 $as_executable_p "$ac_dir/$ac_word" || continue
3023 ac_cv_prog_ETAGS="$ac_prog"
3024 echo "$as_me:3024: found $ac_dir/$ac_word" >&5
3030 ETAGS=$ac_cv_prog_ETAGS
3031 if test -n "$ETAGS"; then
3032 echo "$as_me:3032: result: $ETAGS" >&5
3033 echo "${ECHO_T}$ETAGS" >&6
3035 echo "$as_me:3035: result: no" >&5
3036 echo "${ECHO_T}no" >&6
3039 test -n "$ETAGS" && break
3042 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3043 set dummy ${CTAGS:-ctags}; ac_word=$2
3044 echo "$as_me:3044: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$MAKE_LOWER_TAGS"; then
3050 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3052 ac_save_IFS=$IFS; IFS=$ac_path_separator
3054 for ac_dir in $ac_dummy; do
3056 test -z "$ac_dir" && ac_dir=.
3057 $as_executable_p "$ac_dir/$ac_word" || continue
3058 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3059 echo "$as_me:3059: found $ac_dir/$ac_word" >&5
3063 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3066 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3067 if test -n "$MAKE_LOWER_TAGS"; then
3068 echo "$as_me:3068: result: $MAKE_LOWER_TAGS" >&5
3069 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3071 echo "$as_me:3071: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3075 if test "$cf_cv_mixedcase" = yes ; then
3076 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3077 set dummy ${ETAGS:-etags}; ac_word=$2
3078 echo "$as_me:3078: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 if test -n "$MAKE_UPPER_TAGS"; then
3084 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3086 ac_save_IFS=$IFS; IFS=$ac_path_separator
3088 for ac_dir in $ac_dummy; do
3090 test -z "$ac_dir" && ac_dir=.
3091 $as_executable_p "$ac_dir/$ac_word" || continue
3092 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3093 echo "$as_me:3093: found $ac_dir/$ac_word" >&5
3097 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3100 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3101 if test -n "$MAKE_UPPER_TAGS"; then
3102 echo "$as_me:3102: result: $MAKE_UPPER_TAGS" >&5
3103 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3105 echo "$as_me:3105: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3113 if test "$MAKE_UPPER_TAGS" = yes ; then
3119 if test "$MAKE_LOWER_TAGS" = yes ; then
3125 echo "$as_me:3125: checking for makeflags variable" >&5
3126 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3127 if test "${cf_cv_makeflags+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3134 cat >cf_makeflags.tmp <<CF_EOF
3137 @ echo '.$cf_option'
3139 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3140 case "$cf_result" in
3142 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3143 case "$cf_result" in
3144 .*CC=*) cf_cv_makeflags=
3146 *) cf_cv_makeflags=$cf_option
3152 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3156 rm -f cf_makeflags.tmp
3159 echo "$as_me:3159: result: $cf_cv_makeflags" >&5
3160 echo "${ECHO_T}$cf_cv_makeflags" >&6
3162 if test -n "$ac_tool_prefix"; then
3163 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3165 echo "$as_me:3165: checking for $ac_word" >&5
3166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167 if test "${ac_cv_prog_RANLIB+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 if test -n "$RANLIB"; then
3171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3173 ac_save_IFS=$IFS; IFS=$ac_path_separator
3175 for ac_dir in $ac_dummy; do
3177 test -z "$ac_dir" && ac_dir=.
3178 $as_executable_p "$ac_dir/$ac_word" || continue
3179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3180 echo "$as_me:3180: found $ac_dir/$ac_word" >&5
3186 RANLIB=$ac_cv_prog_RANLIB
3187 if test -n "$RANLIB"; then
3188 echo "$as_me:3188: result: $RANLIB" >&5
3189 echo "${ECHO_T}$RANLIB" >&6
3191 echo "$as_me:3191: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3196 if test -z "$ac_cv_prog_RANLIB"; then
3197 ac_ct_RANLIB=$RANLIB
3198 # Extract the first word of "ranlib", so it can be a program name with args.
3199 set dummy ranlib; ac_word=$2
3200 echo "$as_me:3200: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if test -n "$ac_ct_RANLIB"; then
3206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3208 ac_save_IFS=$IFS; IFS=$ac_path_separator
3210 for ac_dir in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir=.
3213 $as_executable_p "$ac_dir/$ac_word" || continue
3214 ac_cv_prog_ac_ct_RANLIB="ranlib"
3215 echo "$as_me:3215: found $ac_dir/$ac_word" >&5
3219 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3222 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3223 if test -n "$ac_ct_RANLIB"; then
3224 echo "$as_me:3224: result: $ac_ct_RANLIB" >&5
3225 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3227 echo "$as_me:3227: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3231 RANLIB=$ac_ct_RANLIB
3233 RANLIB="$ac_cv_prog_RANLIB"
3236 if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3238 set dummy ${ac_tool_prefix}ld; ac_word=$2
3239 echo "$as_me:3239: checking for $ac_word" >&5
3240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3241 if test "${ac_cv_prog_LD+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 if test -n "$LD"; then
3245 ac_cv_prog_LD="$LD" # Let the user override the test.
3247 ac_save_IFS=$IFS; IFS=$ac_path_separator
3249 for ac_dir in $ac_dummy; do
3251 test -z "$ac_dir" && ac_dir=.
3252 $as_executable_p "$ac_dir/$ac_word" || continue
3253 ac_cv_prog_LD="${ac_tool_prefix}ld"
3254 echo "$as_me:3254: found $ac_dir/$ac_word" >&5
3261 if test -n "$LD"; then
3262 echo "$as_me:3262: result: $LD" >&5
3263 echo "${ECHO_T}$LD" >&6
3265 echo "$as_me:3265: result: no" >&5
3266 echo "${ECHO_T}no" >&6
3270 if test -z "$ac_cv_prog_LD"; then
3272 # Extract the first word of "ld", so it can be a program name with args.
3273 set dummy ld; ac_word=$2
3274 echo "$as_me:3274: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 if test -n "$ac_ct_LD"; then
3280 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3282 ac_save_IFS=$IFS; IFS=$ac_path_separator
3284 for ac_dir in $ac_dummy; do
3286 test -z "$ac_dir" && ac_dir=.
3287 $as_executable_p "$ac_dir/$ac_word" || continue
3288 ac_cv_prog_ac_ct_LD="ld"
3289 echo "$as_me:3289: found $ac_dir/$ac_word" >&5
3293 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3296 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3297 if test -n "$ac_ct_LD"; then
3298 echo "$as_me:3298: result: $ac_ct_LD" >&5
3299 echo "${ECHO_T}$ac_ct_LD" >&6
3301 echo "$as_me:3301: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}ar; ac_word=$2
3313 echo "$as_me:3313: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_AR+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 if test -n "$AR"; then
3319 ac_cv_prog_AR="$AR" # Let the user override the test.
3321 ac_save_IFS=$IFS; IFS=$ac_path_separator
3323 for ac_dir in $ac_dummy; do
3325 test -z "$ac_dir" && ac_dir=.
3326 $as_executable_p "$ac_dir/$ac_word" || continue
3327 ac_cv_prog_AR="${ac_tool_prefix}ar"
3328 echo "$as_me:3328: found $ac_dir/$ac_word" >&5
3335 if test -n "$AR"; then
3336 echo "$as_me:3336: result: $AR" >&5
3337 echo "${ECHO_T}$AR" >&6
3339 echo "$as_me:3339: result: no" >&5
3340 echo "${ECHO_T}no" >&6
3344 if test -z "$ac_cv_prog_AR"; then
3346 # Extract the first word of "ar", so it can be a program name with args.
3347 set dummy ar; ac_word=$2
3348 echo "$as_me:3348: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 if test -n "$ac_ct_AR"; then
3354 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3356 ac_save_IFS=$IFS; IFS=$ac_path_separator
3358 for ac_dir in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir=.
3361 $as_executable_p "$ac_dir/$ac_word" || continue
3362 ac_cv_prog_ac_ct_AR="ar"
3363 echo "$as_me:3363: found $ac_dir/$ac_word" >&5
3367 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3370 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3371 if test -n "$ac_ct_AR"; then
3372 echo "$as_me:3372: result: $ac_ct_AR" >&5
3373 echo "${ECHO_T}$ac_ct_AR" >&6
3375 echo "$as_me:3375: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3384 if test -n "$ac_tool_prefix"; then
3385 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3386 set dummy ${ac_tool_prefix}ar; ac_word=$2
3387 echo "$as_me:3387: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_prog_AR+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 if test -n "$AR"; then
3393 ac_cv_prog_AR="$AR" # Let the user override the test.
3395 ac_save_IFS=$IFS; IFS=$ac_path_separator
3397 for ac_dir in $ac_dummy; do
3399 test -z "$ac_dir" && ac_dir=.
3400 $as_executable_p "$ac_dir/$ac_word" || continue
3401 ac_cv_prog_AR="${ac_tool_prefix}ar"
3402 echo "$as_me:3402: found $ac_dir/$ac_word" >&5
3409 if test -n "$AR"; then
3410 echo "$as_me:3410: result: $AR" >&5
3411 echo "${ECHO_T}$AR" >&6
3413 echo "$as_me:3413: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3418 if test -z "$ac_cv_prog_AR"; then
3420 # Extract the first word of "ar", so it can be a program name with args.
3421 set dummy ar; ac_word=$2
3422 echo "$as_me:3422: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if test -n "$ac_ct_AR"; then
3428 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3430 ac_save_IFS=$IFS; IFS=$ac_path_separator
3432 for ac_dir in $ac_dummy; do
3434 test -z "$ac_dir" && ac_dir=.
3435 $as_executable_p "$ac_dir/$ac_word" || continue
3436 ac_cv_prog_ac_ct_AR="ar"
3437 echo "$as_me:3437: found $ac_dir/$ac_word" >&5
3441 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3444 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3445 if test -n "$ac_ct_AR"; then
3446 echo "$as_me:3446: result: $ac_ct_AR" >&5
3447 echo "${ECHO_T}$ac_ct_AR" >&6
3449 echo "$as_me:3449: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3458 echo "$as_me:3458: checking for options to update archives" >&5
3459 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3460 if test "${cf_cv_ar_flags+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 cf_cv_ar_flags=unknown
3465 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3468 # check if $ARFLAGS already contains this choice
3469 if test "x$ARFLAGS" != "x" ; then
3470 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3471 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3477 rm -f conftest.$ac_cv_objext
3480 cat >conftest.$ac_ext <<EOF
3481 #line 3481 "configure"
3482 int testdata[3] = { 123, 456, 789 };
3484 if { (eval echo "$as_me:3484: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>&5
3487 echo "$as_me:3487: \$? = $ac_status" >&5
3488 (exit $ac_status); } ; then
3489 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3490 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3491 if test -f conftest.a ; then
3492 cf_cv_ar_flags=$cf_ar_flags
3496 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3498 echo "${as_me:-configure}:3498: testing cannot compile test-program ..." 1>&5
3503 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3506 echo "$as_me:3506: result: $cf_cv_ar_flags" >&5
3507 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3509 if test -n "$ARFLAGS" ; then
3510 if test -n "$cf_cv_ar_flags" ; then
3511 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3514 ARFLAGS=$cf_cv_ar_flags
3517 echo "$as_me:3517: checking if you have specified an install-prefix" >&5
3518 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3520 # Check whether --with-install-prefix or --without-install-prefix was given.
3521 if test "${with_install_prefix+set}" = set; then
3522 withval="$with_install_prefix"
3523 case "$withval" in #(vi
3526 *) DESTDIR="$withval"
3530 echo "$as_me:3530: result: $DESTDIR" >&5
3531 echo "${ECHO_T}$DESTDIR" >&6
3533 ###############################################################################
3535 # If we're cross-compiling, allow the user to override the tools and their
3536 # options. The configure script is oriented toward identifying the host
3537 # compiler, etc., but we need a build compiler to generate parts of the source.
3539 if test "$cross_compiling" = yes ; then
3541 # defaults that we might want to override
3542 : ${BUILD_CFLAGS:=''}
3543 : ${BUILD_CPPFLAGS:=''}
3544 : ${BUILD_LDFLAGS:=''}
3546 : ${BUILD_EXEEXT:='$x'}
3547 : ${BUILD_OBJEXT:='o'}
3549 # Check whether --with-build-cc or --without-build-cc was given.
3550 if test "${with_build_cc+set}" = set; then
3551 withval="$with_build_cc"
3554 for ac_prog in gcc cc cl
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 echo "$as_me:3558: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 if test -n "$BUILD_CC"; then
3564 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3566 ac_save_IFS=$IFS; IFS=$ac_path_separator
3568 for ac_dir in $ac_dummy; do
3570 test -z "$ac_dir" && ac_dir=.
3571 $as_executable_p "$ac_dir/$ac_word" || continue
3572 ac_cv_prog_BUILD_CC="$ac_prog"
3573 echo "$as_me:3573: found $ac_dir/$ac_word" >&5
3579 BUILD_CC=$ac_cv_prog_BUILD_CC
3580 if test -n "$BUILD_CC"; then
3581 echo "$as_me:3581: result: $BUILD_CC" >&5
3582 echo "${ECHO_T}$BUILD_CC" >&6
3584 echo "$as_me:3584: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3588 test -n "$BUILD_CC" && break
3592 echo "$as_me:3592: checking for native build C compiler" >&5
3593 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3594 echo "$as_me:3594: result: $BUILD_CC" >&5
3595 echo "${ECHO_T}$BUILD_CC" >&6
3597 echo "$as_me:3597: checking for native build C preprocessor" >&5
3598 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3600 # Check whether --with-build-cpp or --without-build-cpp was given.
3601 if test "${with_build_cpp+set}" = set; then
3602 withval="$with_build_cpp"
3603 BUILD_CPP="$withval"
3605 BUILD_CPP='${BUILD_CC} -E'
3607 echo "$as_me:3607: result: $BUILD_CPP" >&5
3608 echo "${ECHO_T}$BUILD_CPP" >&6
3610 echo "$as_me:3610: checking for native build C flags" >&5
3611 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3613 # Check whether --with-build-cflags or --without-build-cflags was given.
3614 if test "${with_build_cflags+set}" = set; then
3615 withval="$with_build_cflags"
3616 BUILD_CFLAGS="$withval"
3618 echo "$as_me:3618: result: $BUILD_CFLAGS" >&5
3619 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3621 echo "$as_me:3621: checking for native build C preprocessor-flags" >&5
3622 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3624 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3625 if test "${with_build_cppflags+set}" = set; then
3626 withval="$with_build_cppflags"
3627 BUILD_CPPFLAGS="$withval"
3629 echo "$as_me:3629: result: $BUILD_CPPFLAGS" >&5
3630 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3632 echo "$as_me:3632: checking for native build linker-flags" >&5
3633 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3635 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3636 if test "${with_build_ldflags+set}" = set; then
3637 withval="$with_build_ldflags"
3638 BUILD_LDFLAGS="$withval"
3640 echo "$as_me:3640: result: $BUILD_LDFLAGS" >&5
3641 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3643 echo "$as_me:3643: checking for native build linker-libraries" >&5
3644 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3646 # Check whether --with-build-libs or --without-build-libs was given.
3647 if test "${with_build_libs+set}" = set; then
3648 withval="$with_build_libs"
3649 BUILD_LIBS="$withval"
3651 echo "$as_me:3651: result: $BUILD_LIBS" >&5
3652 echo "${ECHO_T}$BUILD_LIBS" >&6
3654 # this assumes we're on Unix.
3658 : ${BUILD_CC:='${CC}'}
3660 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3661 { { echo "$as_me:3661: error: Cross-build requires two compilers.
3662 Use --with-build-cc to specify the native compiler." >&5
3663 echo "$as_me: error: Cross-build requires two compilers.
3664 Use --with-build-cc to specify the native compiler." >&2;}
3665 { (exit 1); exit 1; }; }
3669 : ${BUILD_CC:='${CC}'}
3670 : ${BUILD_CPP:='${CPP}'}
3671 : ${BUILD_CFLAGS:='${CFLAGS}'}
3672 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3673 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3674 : ${BUILD_LIBS:='${LIBS}'}
3675 : ${BUILD_EXEEXT:='$x'}
3676 : ${BUILD_OBJEXT:='o'}
3679 ###############################################################################
3681 ### Options to allow the user to specify the set of libraries which are used.
3682 ### Use "--without-normal --with-shared" to allow the default model to be
3683 ### shared, for example.
3686 echo "$as_me:3686: checking if you want to build shared C-objects" >&5
3687 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3689 # Check whether --with-shared or --without-shared was given.
3690 if test "${with_shared+set}" = set; then
3691 withval="$with_shared"
3692 with_shared=$withval
3696 echo "$as_me:3696: result: $with_shared" >&5
3697 echo "${ECHO_T}$with_shared" >&6
3698 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3700 echo "$as_me:3700: checking for specified models" >&5
3701 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3702 test -z "$cf_list_models" && cf_list_models=normal
3703 echo "$as_me:3703: result: $cf_list_models" >&5
3704 echo "${ECHO_T}$cf_list_models" >&6
3706 ### Use the first model as the default, and save its suffix for use in building
3707 ### up test-applications.
3708 echo "$as_me:3708: checking for default model" >&5
3709 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3710 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3711 echo "$as_me:3711: result: $DFT_LWR_MODEL" >&5
3712 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3714 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3716 echo "$as_me:3716: checking for specific curses-directory" >&5
3717 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3719 # Check whether --with-curses-dir or --without-curses-dir was given.
3720 if test "${with_curses_dir+set}" = set; then
3721 withval="$with_curses_dir"
3722 cf_cv_curses_dir=$withval
3726 echo "$as_me:3726: result: $cf_cv_curses_dir" >&5
3727 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3729 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3732 if test "x$prefix" != xNONE; then
3733 cf_path_syntax="$prefix"
3735 cf_path_syntax="$ac_default_prefix"
3738 case ".$withval" in #(vi
3739 .\$\(*\)*|.\'*\'*) #(vi
3743 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3746 eval withval="$withval"
3747 case ".$withval" in #(vi
3749 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3754 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3757 { { echo "$as_me:3757: error: expected a pathname, not \"$withval\"" >&5
3758 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3759 { (exit 1); exit 1; }; }
3763 if test -d "$cf_cv_curses_dir"
3766 if test -n "$cf_cv_curses_dir/include" ; then
3767 for cf_add_incdir in $cf_cv_curses_dir/include
3769 while test $cf_add_incdir != /usr/include
3771 if test -d $cf_add_incdir
3774 if test -n "$CFLAGS$CPPFLAGS" ; then
3775 # a loop is needed to ensure we can add subdirs of existing dirs
3776 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3777 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3778 cf_have_incdir=yes; break
3783 if test "$cf_have_incdir" = no ; then
3784 if test "$cf_add_incdir" = /usr/local/include ; then
3785 if test "$GCC" = yes
3787 cf_save_CPPFLAGS=$CPPFLAGS
3788 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3789 cat >conftest.$ac_ext <<_ACEOF
3790 #line 3790 "configure"
3791 #include "confdefs.h"
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:3802: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>&5
3805 echo "$as_me:3805: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -s conftest.$ac_objext'
3808 { (eval echo "$as_me:3808: \"$ac_try\"") >&5
3811 echo "$as_me:3811: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3815 echo "$as_me: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3819 rm -f conftest.$ac_objext conftest.$ac_ext
3820 CPPFLAGS=$cf_save_CPPFLAGS
3825 if test "$cf_have_incdir" = no ; then
3826 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3828 echo "${as_me:-configure}:3828: testing adding $cf_add_incdir to include-path ..." 1>&5
3830 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3832 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3833 test "$cf_top_incdir" = "$cf_add_incdir" && break
3834 cf_add_incdir="$cf_top_incdir"
3843 if test -n "$cf_cv_curses_dir/lib" ; then
3844 for cf_add_libdir in $cf_cv_curses_dir/lib
3846 if test $cf_add_libdir = /usr/lib ; then
3848 elif test -d $cf_add_libdir
3851 if test -n "$LDFLAGS$LIBS" ; then
3852 # a loop is needed to ensure we can add subdirs of existing dirs
3853 for cf_test_libdir in $LDFLAGS $LIBS ; do
3854 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3855 cf_have_libdir=yes; break
3859 if test "$cf_have_libdir" = no ; then
3860 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3862 echo "${as_me:-configure}:3862: testing adding $cf_add_libdir to library-path ..." 1>&5
3864 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3873 echo "$as_me:3873: checking if you want wide-character code" >&5
3874 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3876 # Check whether --enable-widec or --disable-widec was given.
3877 if test "${enable_widec+set}" = set; then
3878 enableval="$enable_widec"
3879 with_widec=$enableval
3883 echo "$as_me:3883: result: $with_widec" >&5
3884 echo "${ECHO_T}$with_widec" >&6
3885 if test "$with_widec" = yes ; then
3887 echo "$as_me:3887: checking for multibyte character support" >&5
3888 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3889 if test "${cf_cv_utf8_lib+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 cf_save_LIBS="$LIBS"
3894 cat >conftest.$ac_ext <<_ACEOF
3895 #line 3895 "configure"
3896 #include "confdefs.h"
3907 rm -f conftest.$ac_objext conftest$ac_exeext
3908 if { (eval echo "$as_me:3908: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>&5
3911 echo "$as_me:3911: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -s conftest$ac_exeext'
3914 { (eval echo "$as_me:3914: \"$ac_try\"") >&5
3917 echo "$as_me:3917: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3921 echo "$as_me: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3924 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3925 # will be set on completion of the AC_TRY_LINK below.
3926 cf_cv_header_path_utf8=
3927 cf_cv_library_path_utf8=
3929 echo "${as_me:-configure}:3929: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3931 cf_save_LIBS="$LIBS"
3933 cat >conftest.$ac_ext <<_ACEOF
3934 #line 3934 "configure"
3935 #include "confdefs.h"
3937 #include <libutf8.h>
3946 rm -f conftest.$ac_objext conftest$ac_exeext
3947 if { (eval echo "$as_me:3947: \"$ac_link\"") >&5
3948 (eval $ac_link) 2>&5
3950 echo "$as_me:3950: \$? = $ac_status" >&5
3951 (exit $ac_status); } &&
3952 { ac_try='test -s conftest$ac_exeext'
3953 { (eval echo "$as_me:3953: \"$ac_try\"") >&5
3956 echo "$as_me:3956: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3959 cf_cv_find_linkage_utf8=yes
3960 cf_cv_header_path_utf8=/usr/include
3961 cf_cv_library_path_utf8=/usr/lib
3964 echo "$as_me: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3967 LIBS="-lutf8 $cf_save_LIBS"
3969 cat >conftest.$ac_ext <<_ACEOF
3970 #line 3970 "configure"
3971 #include "confdefs.h"
3973 #include <libutf8.h>
3982 rm -f conftest.$ac_objext conftest$ac_exeext
3983 if { (eval echo "$as_me:3983: \"$ac_link\"") >&5
3984 (eval $ac_link) 2>&5
3986 echo "$as_me:3986: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try='test -s conftest$ac_exeext'
3989 { (eval echo "$as_me:3989: \"$ac_try\"") >&5
3992 echo "$as_me:3992: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3995 cf_cv_find_linkage_utf8=yes
3996 cf_cv_header_path_utf8=/usr/include
3997 cf_cv_library_path_utf8=/usr/lib
3998 cf_cv_library_file_utf8="-lutf8"
4001 echo "$as_me: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 cf_cv_find_linkage_utf8=no
4005 LIBS="$cf_save_LIBS"
4007 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
4009 echo "${as_me:-configure}:4009: testing find linkage for utf8 library ..." 1>&5
4011 echo "${as_me:-configure}:4011: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
4013 cf_save_CPPFLAGS="$CPPFLAGS"
4014 cf_test_CPPFLAGS="$CPPFLAGS"
4018 # collect the current set of include-directories from compiler flags
4019 cf_header_path_list=""
4020 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4021 for cf_header_path in $CPPFLAGS $CFLAGS
4023 case $cf_header_path in #(vi
4025 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4027 test "$cf_header_path" != "NONE" && \
4028 test -d "$cf_header_path" && \
4030 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4031 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4032 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
4033 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
4034 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
4035 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
4038 cf_header_path_list="$cf_header_path_list $cf_search"
4044 # add the variations for the package we are looking for
4048 test "/usr" != "$prefix" && \
4050 (test $prefix = NONE || test "/usr" != "$prefix") && {
4051 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4052 test -d /usr/include && cf_search="$cf_search /usr/include"
4053 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
4054 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
4055 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
4056 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
4059 test "$prefix" != "NONE" && \
4060 test -d "$prefix" && \
4062 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4063 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4064 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
4065 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
4066 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
4067 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
4070 test "/usr/local" != "$prefix" && \
4071 test -d "/usr/local" && \
4072 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4073 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4074 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4075 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
4076 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
4077 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
4078 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
4081 test "/opt" != "$prefix" && \
4083 (test $prefix = NONE || test "/opt" != "$prefix") && {
4084 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4085 test -d /opt/include && cf_search="$cf_search /opt/include"
4086 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
4087 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
4088 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
4089 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
4092 test "$HOME" != "$prefix" && \
4093 test -d "$HOME" && \
4094 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4095 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4096 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4097 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
4098 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
4099 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
4100 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
4103 test "$includedir" != NONE && \
4104 test "$includedir" != "/usr/include" && \
4105 test -d "$includedir" && {
4106 test -d $includedir && cf_search="$cf_search $includedir"
4107 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
4110 test "$oldincludedir" != NONE && \
4111 test "$oldincludedir" != "/usr/include" && \
4112 test -d "$oldincludedir" && {
4113 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4114 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
4117 cf_search="$cf_search $cf_header_path_list"
4119 for cf_cv_header_path_utf8 in $cf_search
4121 if test -d $cf_cv_header_path_utf8 ; then
4122 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
4124 echo "${as_me:-configure}:4124: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
4126 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
4127 cat >conftest.$ac_ext <<_ACEOF
4128 #line 4128 "configure"
4129 #include "confdefs.h"
4131 #include <libutf8.h>
4140 rm -f conftest.$ac_objext
4141 if { (eval echo "$as_me:4141: \"$ac_compile\"") >&5
4142 (eval $ac_compile) 2>&5
4144 echo "$as_me:4144: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (eval echo "$as_me:4147: \"$ac_try\"") >&5
4150 echo "$as_me:4150: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4153 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
4155 echo "${as_me:-configure}:4155: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
4157 cf_cv_find_linkage_utf8=maybe
4158 cf_test_CPPFLAGS="$CPPFLAGS"
4161 echo "$as_me: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 CPPFLAGS="$cf_save_CPPFLAGS"
4167 rm -f conftest.$ac_objext conftest.$ac_ext
4171 if test "$cf_cv_find_linkage_utf8" = maybe ; then
4173 echo "${as_me:-configure}:4173: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
4175 cf_save_LIBS="$LIBS"
4176 cf_save_LDFLAGS="$LDFLAGS"
4178 if test "$cf_cv_find_linkage_utf8" != yes ; then
4181 cf_library_path_list=""
4182 if test -n "${LDFLAGS}${LIBS}" ; then
4183 for cf_library_path in $LDFLAGS $LIBS
4185 case $cf_library_path in #(vi
4187 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
4189 test "$cf_library_path" != "NONE" && \
4190 test -d "$cf_library_path" && \
4192 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
4193 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
4194 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
4195 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
4196 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
4197 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
4200 cf_library_path_list="$cf_library_path_list $cf_search"
4208 test "/usr" != "$prefix" && \
4210 (test $prefix = NONE || test "/usr" != "$prefix") && {
4211 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
4212 test -d /usr/lib && cf_search="$cf_search /usr/lib"
4213 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
4214 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
4215 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
4216 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
4219 test "$prefix" != "NONE" && \
4220 test -d "$prefix" && \
4222 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
4223 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
4224 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
4225 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
4226 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
4227 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
4230 test "/usr/local" != "$prefix" && \
4231 test -d "/usr/local" && \
4232 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4233 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
4234 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
4235 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
4236 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
4237 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
4238 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
4241 test "/opt" != "$prefix" && \
4243 (test $prefix = NONE || test "/opt" != "$prefix") && {
4244 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
4245 test -d /opt/lib && cf_search="$cf_search /opt/lib"
4246 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
4247 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
4248 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
4249 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
4252 test "$HOME" != "$prefix" && \
4253 test -d "$HOME" && \
4254 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4255 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
4256 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
4257 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
4258 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
4259 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
4260 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
4263 cf_search="$cf_library_path_list $cf_search"
4265 for cf_cv_library_path_utf8 in $cf_search
4267 if test -d $cf_cv_library_path_utf8 ; then
4268 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
4270 echo "${as_me:-configure}:4270: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
4272 CPPFLAGS="$cf_test_CPPFLAGS"
4273 LIBS="-lutf8 $cf_save_LIBS"
4274 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
4275 cat >conftest.$ac_ext <<_ACEOF
4276 #line 4276 "configure"
4277 #include "confdefs.h"
4279 #include <libutf8.h>
4288 rm -f conftest.$ac_objext conftest$ac_exeext
4289 if { (eval echo "$as_me:4289: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>&5
4292 echo "$as_me:4292: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
4294 { ac_try='test -s conftest$ac_exeext'
4295 { (eval echo "$as_me:4295: \"$ac_try\"") >&5
4298 echo "$as_me:4298: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4301 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
4303 echo "${as_me:-configure}:4303: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
4305 cf_cv_find_linkage_utf8=yes
4306 cf_cv_library_file_utf8="-lutf8"
4309 echo "$as_me: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4312 CPPFLAGS="$cf_save_CPPFLAGS"
4313 LIBS="$cf_save_LIBS"
4314 LDFLAGS="$cf_save_LDFLAGS"
4317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4320 CPPFLAGS="$cf_save_CPPFLAGS"
4321 LDFLAGS="$cf_save_LDFLAGS"
4325 cf_cv_find_linkage_utf8=no
4329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4334 LIBS="$cf_save_LIBS"
4336 if test "$cf_cv_find_linkage_utf8" = yes ; then
4337 cf_cv_utf8_lib=add-on
4343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4345 echo "$as_me:4345: result: $cf_cv_utf8_lib" >&5
4346 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
4348 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
4350 if test "$cf_cv_utf8_lib" = "add-on" ; then
4351 cat >>confdefs.h <<\EOF
4352 #define HAVE_LIBUTF8_H 1
4355 if test -n "$cf_cv_header_path_utf8" ; then
4356 for cf_add_incdir in $cf_cv_header_path_utf8
4358 while test $cf_add_incdir != /usr/include
4360 if test -d $cf_add_incdir
4363 if test -n "$CFLAGS$CPPFLAGS" ; then
4364 # a loop is needed to ensure we can add subdirs of existing dirs
4365 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4366 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4367 cf_have_incdir=yes; break
4372 if test "$cf_have_incdir" = no ; then
4373 if test "$cf_add_incdir" = /usr/local/include ; then
4374 if test "$GCC" = yes
4376 cf_save_CPPFLAGS=$CPPFLAGS
4377 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4378 cat >conftest.$ac_ext <<_ACEOF
4379 #line 4379 "configure"
4380 #include "confdefs.h"
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:4391: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4394 echo "$as_me:4394: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (eval echo "$as_me:4397: \"$ac_try\"") >&5
4400 echo "$as_me:4400: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4404 echo "$as_me: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4408 rm -f conftest.$ac_objext conftest.$ac_ext
4409 CPPFLAGS=$cf_save_CPPFLAGS
4414 if test "$cf_have_incdir" = no ; then
4415 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4417 echo "${as_me:-configure}:4417: testing adding $cf_add_incdir to include-path ..." 1>&5
4419 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4421 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4422 test "$cf_top_incdir" = "$cf_add_incdir" && break
4423 cf_add_incdir="$cf_top_incdir"
4432 if test -n "$cf_cv_library_path_utf8" ; then
4433 for cf_add_libdir in $cf_cv_library_path_utf8
4435 if test $cf_add_libdir = /usr/lib ; then
4437 elif test -d $cf_add_libdir
4440 if test -n "$LDFLAGS$LIBS" ; then
4441 # a loop is needed to ensure we can add subdirs of existing dirs
4442 for cf_test_libdir in $LDFLAGS $LIBS ; do
4443 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4444 cf_have_libdir=yes; break
4448 if test "$cf_have_libdir" = no ; then
4449 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4451 echo "${as_me:-configure}:4451: testing adding $cf_add_libdir to library-path ..." 1>&5
4453 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4459 LIBS="$cf_cv_library_file_utf8 $LIBS"
4462 cf_ncuconfig_root=ncursesw
4464 echo "Looking for ${cf_ncuconfig_root}-config"
4465 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4467 # Extract the first word of "$ac_prog", so it can be a program name with args.
4468 set dummy $ac_prog; ac_word=$2
4469 echo "$as_me:4469: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 case $NCURSES_CONFIG in
4476 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
4479 ac_save_IFS=$IFS; IFS=$ac_path_separator
4481 for ac_dir in $ac_dummy; do
4483 test -z "$ac_dir" && ac_dir=.
4484 if $as_executable_p "$ac_dir/$ac_word"; then
4485 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
4486 echo "$as_me:4486: found $ac_dir/$ac_word" >&5
4494 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
4496 if test -n "$NCURSES_CONFIG"; then
4497 echo "$as_me:4497: result: $NCURSES_CONFIG" >&5
4498 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4500 echo "$as_me:4500: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4504 test -n "$NCURSES_CONFIG" && break
4506 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
4508 if test "$NCURSES_CONFIG" != none ; then
4510 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4511 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4513 # even with config script, some packages use no-override for curses.h
4515 echo "$as_me:4515: checking if we have identified curses headers" >&5
4516 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4517 if test "${cf_cv_ncurses_header+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 cf_cv_ncurses_header=none
4523 ncursesw/ncurses.h \
4528 cat >conftest.$ac_ext <<_ACEOF
4529 #line 4529 "configure"
4530 #include "confdefs.h"
4531 #include <${cf_header}>
4535 initscr(); tgoto("?", 0,0)
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:4541: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4544 echo "$as_me:4544: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest.$ac_objext'
4547 { (eval echo "$as_me:4547: \"$ac_try\"") >&5
4550 echo "$as_me:4550: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 cf_cv_ncurses_header=$cf_header; break
4554 echo "$as_me: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 rm -f conftest.$ac_objext conftest.$ac_ext
4561 echo "$as_me:4561: result: $cf_cv_ncurses_header" >&5
4562 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4564 if test "$cf_cv_ncurses_header" = none ; then
4565 { { echo "$as_me:4565: error: No curses header-files found" >&5
4566 echo "$as_me: error: No curses header-files found" >&2;}
4567 { (exit 1); exit 1; }; }
4570 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4572 for ac_header in $cf_cv_ncurses_header
4574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4575 echo "$as_me:4575: checking for $ac_header" >&5
4576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 cat >conftest.$ac_ext <<_ACEOF
4581 #line 4581 "configure"
4582 #include "confdefs.h"
4583 #include <$ac_header>
4585 if { (eval echo "$as_me:4585: \"$ac_cpp conftest.$ac_ext\"") >&5
4586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4588 egrep -v '^ *\+' conftest.er1 >conftest.err
4590 cat conftest.err >&5
4591 echo "$as_me:4591: \$? = $ac_status" >&5
4592 (exit $ac_status); } >/dev/null; then
4593 if test -s conftest.err; then
4594 ac_cpp_err=$ac_c_preproc_warn_flag
4601 if test -z "$ac_cpp_err"; then
4602 eval "$as_ac_Header=yes"
4604 echo "$as_me: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4606 eval "$as_ac_Header=no"
4608 rm -f conftest.err conftest.$ac_ext
4610 echo "$as_me:4610: result: `eval echo '${'$as_ac_Header'}'`" >&5
4611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4613 cat >>confdefs.h <<EOF
4614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4620 cat >>confdefs.h <<\EOF
4624 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4626 cat >>confdefs.h <<EOF
4627 #define $cf_nculib_ROOT 1
4630 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4634 cf_ncuhdr_root=ncursesw
4636 test -n "$cf_cv_curses_dir" && \
4637 test "$cf_cv_curses_dir" != "no" && { \
4639 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4640 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
4642 while test $cf_add_incdir != /usr/include
4644 if test -d $cf_add_incdir
4647 if test -n "$CFLAGS$CPPFLAGS" ; then
4648 # a loop is needed to ensure we can add subdirs of existing dirs
4649 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4650 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4651 cf_have_incdir=yes; break
4656 if test "$cf_have_incdir" = no ; then
4657 if test "$cf_add_incdir" = /usr/local/include ; then
4658 if test "$GCC" = yes
4660 cf_save_CPPFLAGS=$CPPFLAGS
4661 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4662 cat >conftest.$ac_ext <<_ACEOF
4663 #line 4663 "configure"
4664 #include "confdefs.h"
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:4675: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>&5
4678 echo "$as_me:4678: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:4681: \"$ac_try\"") >&5
4684 echo "$as_me:4684: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4688 echo "$as_me: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4692 rm -f conftest.$ac_objext conftest.$ac_ext
4693 CPPFLAGS=$cf_save_CPPFLAGS
4698 if test "$cf_have_incdir" = no ; then
4699 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4701 echo "${as_me:-configure}:4701: testing adding $cf_add_incdir to include-path ..." 1>&5
4703 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4705 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4706 test "$cf_top_incdir" = "$cf_add_incdir" && break
4707 cf_add_incdir="$cf_top_incdir"
4718 echo "$as_me:4718: checking for $cf_ncuhdr_root header in include-path" >&5
4719 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4720 if test "${cf_cv_ncurses_h+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4725 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4726 for cf_header in $cf_header_list
4729 cat >conftest.$ac_ext <<_ACEOF
4730 #line 4730 "configure"
4731 #include "confdefs.h"
4733 #define _XOPEN_SOURCE_EXTENDED
4734 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
4735 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
4737 #include <$cf_header>
4742 #ifdef NCURSES_VERSION
4748 printf("%s\n", NCURSES_VERSION);
4761 rm -f conftest.$ac_objext
4762 if { (eval echo "$as_me:4762: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>&5
4765 echo "$as_me:4765: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -s conftest.$ac_objext'
4768 { (eval echo "$as_me:4768: \"$ac_try\"") >&5
4771 echo "$as_me:4771: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 cf_cv_ncurses_h=$cf_header
4776 echo "$as_me: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4780 rm -f conftest.$ac_objext conftest.$ac_ext
4782 test "$cf_cv_ncurses_h" != no && break
4786 echo "$as_me:4786: result: $cf_cv_ncurses_h" >&5
4787 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4789 if test "$cf_cv_ncurses_h" != no ; then
4790 cf_cv_ncurses_header=$cf_cv_ncurses_h
4793 echo "$as_me:4793: checking for $cf_ncuhdr_root include-path" >&5
4794 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4795 if test "${cf_cv_ncurses_h2+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 test -n "$verbose" && echo
4803 # collect the current set of include-directories from compiler flags
4804 cf_header_path_list=""
4805 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4806 for cf_header_path in $CPPFLAGS $CFLAGS
4808 case $cf_header_path in #(vi
4810 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4812 test "$cf_header_path" != "NONE" && \
4813 test -d "$cf_header_path" && \
4815 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4816 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4817 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4818 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4819 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4820 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"
4823 cf_header_path_list="$cf_header_path_list $cf_search"
4829 # add the variations for the package we are looking for
4833 test "/usr" != "$prefix" && \
4835 (test $prefix = NONE || test "/usr" != "$prefix") && {
4836 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4837 test -d /usr/include && cf_search="$cf_search /usr/include"
4838 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
4839 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
4840 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
4841 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4844 test "$prefix" != "NONE" && \
4845 test -d "$prefix" && \
4847 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4848 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4849 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4850 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4851 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4852 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4855 test "/usr/local" != "$prefix" && \
4856 test -d "/usr/local" && \
4857 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4858 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4859 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4860 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
4861 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
4862 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
4863 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4866 test "/opt" != "$prefix" && \
4868 (test $prefix = NONE || test "/opt" != "$prefix") && {
4869 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4870 test -d /opt/include && cf_search="$cf_search /opt/include"
4871 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
4872 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
4873 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
4874 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4877 test "$HOME" != "$prefix" && \
4878 test -d "$HOME" && \
4879 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4880 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4881 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4882 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
4883 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
4884 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
4885 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4888 test "$includedir" != NONE && \
4889 test "$includedir" != "/usr/include" && \
4890 test -d "$includedir" && {
4891 test -d $includedir && cf_search="$cf_search $includedir"
4892 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
4895 test "$oldincludedir" != NONE && \
4896 test "$oldincludedir" != "/usr/include" && \
4897 test -d "$oldincludedir" && {
4898 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4899 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
4902 cf_search="$cf_search $cf_header_path_list"
4904 test -n "$verbose" && echo search path $cf_search
4905 cf_save2_CPPFLAGS="$CPPFLAGS"
4906 for cf_incdir in $cf_search
4909 if test -n "$cf_incdir" ; then
4910 for cf_add_incdir in $cf_incdir
4912 while test $cf_add_incdir != /usr/include
4914 if test -d $cf_add_incdir
4917 if test -n "$CFLAGS$CPPFLAGS" ; then
4918 # a loop is needed to ensure we can add subdirs of existing dirs
4919 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4920 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4921 cf_have_incdir=yes; break
4926 if test "$cf_have_incdir" = no ; then
4927 if test "$cf_add_incdir" = /usr/local/include ; then
4928 if test "$GCC" = yes
4930 cf_save_CPPFLAGS=$CPPFLAGS
4931 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line 4933 "configure"
4934 #include "confdefs.h"
4944 rm -f conftest.$ac_objext
4945 if { (eval echo "$as_me:4945: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>&5
4948 echo "$as_me:4948: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:4951: \"$ac_try\"") >&5
4954 echo "$as_me:4954: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4958 echo "$as_me: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4962 rm -f conftest.$ac_objext conftest.$ac_ext
4963 CPPFLAGS=$cf_save_CPPFLAGS
4968 if test "$cf_have_incdir" = no ; then
4969 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4971 echo "${as_me:-configure}:4971: testing adding $cf_add_incdir to include-path ..." 1>&5
4973 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4975 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4976 test "$cf_top_incdir" = "$cf_add_incdir" && break
4977 cf_add_incdir="$cf_top_incdir"
4991 cat >conftest.$ac_ext <<_ACEOF
4992 #line 4992 "configure"
4993 #include "confdefs.h"
4995 #include <$cf_header>
5000 #ifdef NCURSES_VERSION
5002 printf("%s\n", NCURSES_VERSION);
5015 rm -f conftest.$ac_objext
5016 if { (eval echo "$as_me:5016: \"$ac_compile\"") >&5
5017 (eval $ac_compile) 2>&5
5019 echo "$as_me:5019: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:5022: \"$ac_try\"") >&5
5025 echo "$as_me:5025: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 cf_cv_ncurses_h2=$cf_header
5030 echo "$as_me: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5034 rm -f conftest.$ac_objext conftest.$ac_ext
5036 if test "$cf_cv_ncurses_h2" != no ; then
5037 cf_cv_ncurses_h2=$cf_incdir/$cf_header
5038 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
5041 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
5043 CPPFLAGS="$cf_save2_CPPFLAGS"
5044 test "$cf_cv_ncurses_h2" != no && break
5046 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:5046: error: not found" >&5
5047 echo "$as_me: error: not found" >&2;}
5048 { (exit 1); exit 1; }; }
5051 echo "$as_me:5051: result: $cf_cv_ncurses_h2" >&5
5052 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
5054 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
5055 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
5056 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
5057 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
5060 if test -n "$cf_1st_incdir" ; then
5061 for cf_add_incdir in $cf_1st_incdir
5063 while test $cf_add_incdir != /usr/include
5065 if test -d $cf_add_incdir
5068 if test -n "$CFLAGS$CPPFLAGS" ; then
5069 # a loop is needed to ensure we can add subdirs of existing dirs
5070 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5071 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5072 cf_have_incdir=yes; break
5077 if test "$cf_have_incdir" = no ; then
5078 if test "$cf_add_incdir" = /usr/local/include ; then
5079 if test "$GCC" = yes
5081 cf_save_CPPFLAGS=$CPPFLAGS
5082 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line 5084 "configure"
5085 #include "confdefs.h"
5095 rm -f conftest.$ac_objext
5096 if { (eval echo "$as_me:5096: \"$ac_compile\"") >&5
5097 (eval $ac_compile) 2>&5
5099 echo "$as_me:5099: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -s conftest.$ac_objext'
5102 { (eval echo "$as_me:5102: \"$ac_try\"") >&5
5105 echo "$as_me:5105: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5109 echo "$as_me: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5113 rm -f conftest.$ac_objext conftest.$ac_ext
5114 CPPFLAGS=$cf_save_CPPFLAGS
5119 if test "$cf_have_incdir" = no ; then
5120 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5122 echo "${as_me:-configure}:5122: testing adding $cf_add_incdir to include-path ..." 1>&5
5124 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5126 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5127 test "$cf_top_incdir" = "$cf_add_incdir" && break
5128 cf_add_incdir="$cf_top_incdir"
5139 # Set definitions to allow ifdef'ing for ncurses.h
5141 case $cf_cv_ncurses_header in # (vi
5143 cat >>confdefs.h <<\EOF
5144 #define HAVE_NCURSES_H 1
5150 case $cf_cv_ncurses_header in # (vi
5151 ncurses/curses.h|ncurses/ncurses.h)
5152 cat >>confdefs.h <<\EOF
5153 #define HAVE_NCURSES_NCURSES_H 1
5157 ncursesw/curses.h|ncursesw/ncurses.h)
5158 cat >>confdefs.h <<\EOF
5159 #define HAVE_NCURSESW_NCURSES_H 1
5165 echo "$as_me:5165: checking for terminfo header" >&5
5166 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5167 if test "${cf_cv_term_header+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 case ${cf_cv_ncurses_header} in #(vi
5172 */ncurses.h|*/ncursesw.h) #(vi
5173 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5176 cf_term_header=term.h
5180 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5182 cat >conftest.$ac_ext <<_ACEOF
5183 #line 5183 "configure"
5184 #include "confdefs.h"
5186 #include <${cf_cv_ncurses_header:-curses.h}>
5192 int x = auto_left_margin
5197 rm -f conftest.$ac_objext
5198 if { (eval echo "$as_me:5198: \"$ac_compile\"") >&5
5199 (eval $ac_compile) 2>&5
5201 echo "$as_me:5201: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -s conftest.$ac_objext'
5204 { (eval echo "$as_me:5204: \"$ac_try\"") >&5
5207 echo "$as_me:5207: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5210 cf_cv_term_header="$cf_test"
5212 echo "$as_me: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 cf_cv_term_header=unknown
5218 rm -f conftest.$ac_objext conftest.$ac_ext
5219 test "$cf_cv_term_header" != unknown && break
5223 echo "$as_me:5223: result: $cf_cv_term_header" >&5
5224 echo "${ECHO_T}$cf_cv_term_header" >&6
5226 # Set definitions to allow ifdef'ing to accommodate subdirectories
5228 case $cf_cv_term_header in # (vi
5230 cat >>confdefs.h <<\EOF
5231 #define HAVE_TERM_H 1
5237 case $cf_cv_term_header in # (vi
5238 ncurses/term.h) #(vi
5239 cat >>confdefs.h <<\EOF
5240 #define HAVE_NCURSES_TERM_H 1
5245 cat >>confdefs.h <<\EOF
5246 #define HAVE_NCURSESW_TERM_H 1
5252 # some applications need this, but should check for NCURSES_VERSION
5253 cat >>confdefs.h <<\EOF
5257 echo "$as_me:5257: checking for ncurses version" >&5
5258 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5259 if test "${cf_cv_ncurses_version+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 cf_cv_ncurses_version=no
5266 if test "$cross_compiling" = yes; then
5268 # This will not work if the preprocessor splits the line after the
5269 # Autoconf token. The 'unproto' program does that.
5270 cat > conftest.$ac_ext <<EOF
5271 #include <${cf_cv_ncurses_header:-curses.h}>
5273 #ifdef NCURSES_VERSION
5274 Autoconf NCURSES_VERSION
5282 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5283 { (eval echo "$as_me:5283: \"$cf_try\"") >&5
5286 echo "$as_me:5286: \$? = $ac_status" >&5
5287 (exit $ac_status); }
5288 if test -f conftest.out ; then
5289 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5290 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #line 5296 "configure"
5297 #include "confdefs.h"
5299 #include <${cf_cv_ncurses_header:-curses.h}>
5303 FILE *fp = fopen("$cf_tempfile", "w");
5304 #ifdef NCURSES_VERSION
5305 # ifdef NCURSES_VERSION_PATCH
5306 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5308 fprintf(fp, "%s\n", NCURSES_VERSION);
5312 fprintf(fp, "old\n");
5317 ${cf_cv_main_return:-return}(0);
5320 rm -f conftest$ac_exeext
5321 if { (eval echo "$as_me:5321: \"$ac_link\"") >&5
5322 (eval $ac_link) 2>&5
5324 echo "$as_me:5324: \$? = $ac_status" >&5
5325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5326 { (eval echo "$as_me:5326: \"$ac_try\"") >&5
5329 echo "$as_me:5329: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5332 cf_cv_ncurses_version=`cat $cf_tempfile`
5334 echo "$as_me: program exited with status $ac_status" >&5
5335 echo "$as_me: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5338 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5343 echo "$as_me:5343: result: $cf_cv_ncurses_version" >&5
5344 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5345 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
5349 cf_nculib_root=ncursesw
5350 # This works, except for the special case where we find gpm, but
5351 # ncurses is in a nonstandard location via $LIBS, and we really want
5354 cf_ncurses_SAVE="$LIBS"
5355 echo "$as_me:5355: checking for Gpm_Open in -lgpm" >&5
5356 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5357 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 ac_check_lib_save_LIBS=$LIBS
5362 cat >conftest.$ac_ext <<_ACEOF
5363 #line 5363 "configure"
5364 #include "confdefs.h"
5366 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (eval echo "$as_me:5382: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>&5
5385 echo "$as_me:5385: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -s conftest$ac_exeext'
5388 { (eval echo "$as_me:5388: \"$ac_try\"") >&5
5391 echo "$as_me:5391: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_lib_gpm_Gpm_Open=yes
5395 echo "$as_me: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5397 ac_cv_lib_gpm_Gpm_Open=no
5399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5400 LIBS=$ac_check_lib_save_LIBS
5402 echo "$as_me:5402: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5403 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5404 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5405 echo "$as_me:5405: checking for initscr in -lgpm" >&5
5406 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
5407 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 ac_check_lib_save_LIBS=$LIBS
5412 cat >conftest.$ac_ext <<_ACEOF
5413 #line 5413 "configure"
5414 #include "confdefs.h"
5416 /* Override any gcc2 internal prototype to avoid an error. */
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:5432: \"$ac_link\"") >&5
5433 (eval $ac_link) 2>&5
5435 echo "$as_me:5435: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -s conftest$ac_exeext'
5438 { (eval echo "$as_me:5438: \"$ac_try\"") >&5
5441 echo "$as_me:5441: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_cv_lib_gpm_initscr=yes
5445 echo "$as_me: failed program was:" >&5
5446 cat conftest.$ac_ext >&5
5447 ac_cv_lib_gpm_initscr=no
5449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5450 LIBS=$ac_check_lib_save_LIBS
5452 echo "$as_me:5452: result: $ac_cv_lib_gpm_initscr" >&5
5453 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
5454 if test $ac_cv_lib_gpm_initscr = yes; then
5455 LIBS="$cf_ncurses_SAVE"
5457 cf_ncurses_LIBS="-lgpm"
5462 case $host_os in #(vi
5464 # This is only necessary if you are linking against an obsolete
5465 # version of ncurses (but it should do no harm, since it's static).
5466 if test "$cf_nculib_root" = ncurses ; then
5467 echo "$as_me:5467: checking for tgoto in -lmytinfo" >&5
5468 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5469 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 ac_check_lib_save_LIBS=$LIBS
5473 LIBS="-lmytinfo $LIBS"
5474 cat >conftest.$ac_ext <<_ACEOF
5475 #line 5475 "configure"
5476 #include "confdefs.h"
5478 /* Override any gcc2 internal prototype to avoid an error. */
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5493 rm -f conftest.$ac_objext conftest$ac_exeext
5494 if { (eval echo "$as_me:5494: \"$ac_link\"") >&5
5495 (eval $ac_link) 2>&5
5497 echo "$as_me:5497: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
5499 { ac_try='test -s conftest$ac_exeext'
5500 { (eval echo "$as_me:5500: \"$ac_try\"") >&5
5503 echo "$as_me:5503: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_lib_mytinfo_tgoto=yes
5507 echo "$as_me: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5509 ac_cv_lib_mytinfo_tgoto=no
5511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5512 LIBS=$ac_check_lib_save_LIBS
5514 echo "$as_me:5514: result: $ac_cv_lib_mytinfo_tgoto" >&5
5515 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5516 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5517 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
5524 LIBS="$cf_ncurses_LIBS $LIBS"
5526 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5528 LIBS="-l$cf_nculib_root $LIBS"
5531 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
5533 echo "$as_me:5533: checking for initscr" >&5
5534 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5535 if test "${ac_cv_func_initscr+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cat >conftest.$ac_ext <<_ACEOF
5539 #line 5539 "configure"
5540 #include "confdefs.h"
5541 /* System header to define __stub macros and hopefully few prototypes,
5542 which can conflict with char initscr (); below. */
5544 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5556 /* The GNU C library defines this for functions which it implements
5557 to always fail with ENOSYS. Some functions are actually named
5558 something starting with __ and the normal name is an alias. */
5559 #if defined (__stub_initscr) || defined (__stub___initscr)
5569 rm -f conftest.$ac_objext conftest$ac_exeext
5570 if { (eval echo "$as_me:5570: \"$ac_link\"") >&5
5571 (eval $ac_link) 2>&5
5573 echo "$as_me:5573: \$? = $ac_status" >&5
5574 (exit $ac_status); } &&
5575 { ac_try='test -s conftest$ac_exeext'
5576 { (eval echo "$as_me:5576: \"$ac_try\"") >&5
5579 echo "$as_me:5579: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_func_initscr=yes
5583 echo "$as_me: failed program was:" >&5
5584 cat conftest.$ac_ext >&5
5585 ac_cv_func_initscr=no
5587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5589 echo "$as_me:5589: result: $ac_cv_func_initscr" >&5
5590 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5591 if test $ac_cv_func_initscr = yes; then
5592 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5595 cf_save_LIBS="$LIBS"
5596 echo "$as_me:5596: checking for initscr in -l$cf_nculib_root" >&5
5597 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
5598 LIBS="-l$cf_nculib_root $LIBS"
5599 cat >conftest.$ac_ext <<_ACEOF
5600 #line 5600 "configure"
5601 #include "confdefs.h"
5602 #include <${cf_cv_ncurses_header:-curses.h}>
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:5612: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5615 echo "$as_me:5615: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:5618: \"$ac_try\"") >&5
5621 echo "$as_me:5621: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 echo "$as_me:5623: result: yes" >&5
5624 echo "${ECHO_T}yes" >&6
5625 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5628 echo "$as_me: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5630 echo "$as_me:5630: result: no" >&5
5631 echo "${ECHO_T}no" >&6
5634 cf_library_path_list=""
5635 if test -n "${LDFLAGS}${LIBS}" ; then
5636 for cf_library_path in $LDFLAGS $LIBS
5638 case $cf_library_path in #(vi
5640 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5642 test "$cf_library_path" != "NONE" && \
5643 test -d "$cf_library_path" && \
5645 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5646 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5647 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
5648 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
5649 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
5650 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"
5653 cf_library_path_list="$cf_library_path_list $cf_search"
5661 test "/usr" != "$prefix" && \
5663 (test $prefix = NONE || test "/usr" != "$prefix") && {
5664 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
5665 test -d /usr/lib && cf_search="$cf_search /usr/lib"
5666 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
5667 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
5668 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
5669 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
5672 test "$prefix" != "NONE" && \
5673 test -d "$prefix" && \
5675 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5676 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5677 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
5678 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
5679 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
5680 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
5683 test "/usr/local" != "$prefix" && \
5684 test -d "/usr/local" && \
5685 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
5686 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
5687 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
5688 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
5689 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
5690 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
5691 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
5694 test "/opt" != "$prefix" && \
5696 (test $prefix = NONE || test "/opt" != "$prefix") && {
5697 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
5698 test -d /opt/lib && cf_search="$cf_search /opt/lib"
5699 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
5700 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
5701 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
5702 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
5705 test "$HOME" != "$prefix" && \
5706 test -d "$HOME" && \
5707 (test $prefix = NONE || test "$HOME" != "$prefix") && {
5708 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
5709 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
5710 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
5711 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
5712 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
5713 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
5716 cf_search="$cf_library_path_list $cf_search"
5718 for cf_libdir in $cf_search
5720 echo "$as_me:5720: checking for -l$cf_nculib_root in $cf_libdir" >&5
5721 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
5722 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
5723 cat >conftest.$ac_ext <<_ACEOF
5724 #line 5724 "configure"
5725 #include "confdefs.h"
5726 #include <${cf_cv_ncurses_header:-curses.h}>
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (eval echo "$as_me:5736: \"$ac_link\"") >&5
5737 (eval $ac_link) 2>&5
5739 echo "$as_me:5739: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -s conftest$ac_exeext'
5742 { (eval echo "$as_me:5742: \"$ac_try\"") >&5
5745 echo "$as_me:5745: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 echo "$as_me:5747: result: yes" >&5
5748 echo "${ECHO_T}yes" >&6
5749 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5752 echo "$as_me: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5754 echo "$as_me:5754: result: no" >&5
5755 echo "${ECHO_T}no" >&6
5756 LIBS="$cf_save_LIBS"
5758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5766 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
5768 if test $cf_found_library = no ; then
5769 { { echo "$as_me:5769: error: Cannot link $cf_nculib_root library" >&5
5770 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
5771 { (exit 1); exit 1; }; }
5776 if test -n "$cf_ncurses_LIBS" ; then
5777 echo "$as_me:5777: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
5778 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
5779 cf_ncurses_SAVE="$LIBS"
5780 for p in $cf_ncurses_LIBS ; do
5781 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
5782 if test "$q" != "$LIBS" ; then
5786 cat >conftest.$ac_ext <<_ACEOF
5787 #line 5787 "configure"
5788 #include "confdefs.h"
5789 #include <${cf_cv_ncurses_header:-curses.h}>
5793 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
5798 rm -f conftest.$ac_objext conftest$ac_exeext
5799 if { (eval echo "$as_me:5799: \"$ac_link\"") >&5
5800 (eval $ac_link) 2>&5
5802 echo "$as_me:5802: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -s conftest$ac_exeext'
5805 { (eval echo "$as_me:5805: \"$ac_try\"") >&5
5808 echo "$as_me:5808: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 echo "$as_me:5810: result: yes" >&5
5811 echo "${ECHO_T}yes" >&6
5813 echo "$as_me: failed program was:" >&5
5814 cat conftest.$ac_ext >&5
5815 echo "$as_me:5815: result: no" >&5
5816 echo "${ECHO_T}no" >&6
5817 LIBS="$cf_ncurses_SAVE"
5819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5822 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5824 cat >>confdefs.h <<EOF
5825 #define $cf_nculib_ROOT 1
5832 cf_ncuconfig_root=ncurses
5834 echo "Looking for ${cf_ncuconfig_root}-config"
5835 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 echo "$as_me:5839: checking for $ac_word" >&5
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5841 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 case $NCURSES_CONFIG in
5846 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
5849 ac_save_IFS=$IFS; IFS=$ac_path_separator
5851 for ac_dir in $ac_dummy; do
5853 test -z "$ac_dir" && ac_dir=.
5854 if $as_executable_p "$ac_dir/$ac_word"; then
5855 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
5856 echo "$as_me:5856: found $ac_dir/$ac_word" >&5
5864 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
5866 if test -n "$NCURSES_CONFIG"; then
5867 echo "$as_me:5867: result: $NCURSES_CONFIG" >&5
5868 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5870 echo "$as_me:5870: result: no" >&5
5871 echo "${ECHO_T}no" >&6
5874 test -n "$NCURSES_CONFIG" && break
5876 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
5878 if test "$NCURSES_CONFIG" != none ; then
5880 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5881 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
5883 # even with config script, some packages use no-override for curses.h
5885 echo "$as_me:5885: checking if we have identified curses headers" >&5
5886 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5887 if test "${cf_cv_ncurses_header+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cf_cv_ncurses_header=none
5898 cat >conftest.$ac_ext <<_ACEOF
5899 #line 5899 "configure"
5900 #include "confdefs.h"
5901 #include <${cf_header}>
5905 initscr(); tgoto("?", 0,0)
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:5911: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>&5
5914 echo "$as_me:5914: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:5917: \"$ac_try\"") >&5
5920 echo "$as_me:5920: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 cf_cv_ncurses_header=$cf_header; break
5924 echo "$as_me: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5927 rm -f conftest.$ac_objext conftest.$ac_ext
5931 echo "$as_me:5931: result: $cf_cv_ncurses_header" >&5
5932 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5934 if test "$cf_cv_ncurses_header" = none ; then
5935 { { echo "$as_me:5935: error: No curses header-files found" >&5
5936 echo "$as_me: error: No curses header-files found" >&2;}
5937 { (exit 1); exit 1; }; }
5940 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5942 for ac_header in $cf_cv_ncurses_header
5944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5945 echo "$as_me:5945: checking for $ac_header" >&5
5946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 cat >conftest.$ac_ext <<_ACEOF
5951 #line 5951 "configure"
5952 #include "confdefs.h"
5953 #include <$ac_header>
5955 if { (eval echo "$as_me:5955: \"$ac_cpp conftest.$ac_ext\"") >&5
5956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5958 egrep -v '^ *\+' conftest.er1 >conftest.err
5960 cat conftest.err >&5
5961 echo "$as_me:5961: \$? = $ac_status" >&5
5962 (exit $ac_status); } >/dev/null; then
5963 if test -s conftest.err; then
5964 ac_cpp_err=$ac_c_preproc_warn_flag
5971 if test -z "$ac_cpp_err"; then
5972 eval "$as_ac_Header=yes"
5974 echo "$as_me: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5976 eval "$as_ac_Header=no"
5978 rm -f conftest.err conftest.$ac_ext
5980 echo "$as_me:5980: result: `eval echo '${'$as_ac_Header'}'`" >&5
5981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5983 cat >>confdefs.h <<EOF
5984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5990 cat >>confdefs.h <<\EOF
5994 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5996 cat >>confdefs.h <<EOF
5997 #define $cf_nculib_ROOT 1
6000 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6004 cf_ncuhdr_root=ncurses
6006 test -n "$cf_cv_curses_dir" && \
6007 test "$cf_cv_curses_dir" != "no" && { \
6009 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6010 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6012 while test $cf_add_incdir != /usr/include
6014 if test -d $cf_add_incdir
6017 if test -n "$CFLAGS$CPPFLAGS" ; then
6018 # a loop is needed to ensure we can add subdirs of existing dirs
6019 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6020 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6021 cf_have_incdir=yes; break
6026 if test "$cf_have_incdir" = no ; then
6027 if test "$cf_add_incdir" = /usr/local/include ; then
6028 if test "$GCC" = yes
6030 cf_save_CPPFLAGS=$CPPFLAGS
6031 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6032 cat >conftest.$ac_ext <<_ACEOF
6033 #line 6033 "configure"
6034 #include "confdefs.h"
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:6045: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>&5
6048 echo "$as_me:6048: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -s conftest.$ac_objext'
6051 { (eval echo "$as_me:6051: \"$ac_try\"") >&5
6054 echo "$as_me:6054: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6058 echo "$as_me: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6062 rm -f conftest.$ac_objext conftest.$ac_ext
6063 CPPFLAGS=$cf_save_CPPFLAGS
6068 if test "$cf_have_incdir" = no ; then
6069 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6071 echo "${as_me:-configure}:6071: testing adding $cf_add_incdir to include-path ..." 1>&5
6073 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6075 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6076 test "$cf_top_incdir" = "$cf_add_incdir" && break
6077 cf_add_incdir="$cf_top_incdir"
6088 echo "$as_me:6088: checking for $cf_ncuhdr_root header in include-path" >&5
6089 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
6090 if test "${cf_cv_ncurses_h+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
6095 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
6096 for cf_header in $cf_header_list
6099 cat >conftest.$ac_ext <<_ACEOF
6100 #line 6100 "configure"
6101 #include "confdefs.h"
6103 #include <$cf_header>
6108 #ifdef NCURSES_VERSION
6110 printf("%s\n", NCURSES_VERSION);
6123 rm -f conftest.$ac_objext
6124 if { (eval echo "$as_me:6124: \"$ac_compile\"") >&5
6125 (eval $ac_compile) 2>&5
6127 echo "$as_me:6127: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (eval echo "$as_me:6130: \"$ac_try\"") >&5
6133 echo "$as_me:6133: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 cf_cv_ncurses_h=$cf_header
6138 echo "$as_me: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6142 rm -f conftest.$ac_objext conftest.$ac_ext
6144 test "$cf_cv_ncurses_h" != no && break
6148 echo "$as_me:6148: result: $cf_cv_ncurses_h" >&5
6149 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6151 if test "$cf_cv_ncurses_h" != no ; then
6152 cf_cv_ncurses_header=$cf_cv_ncurses_h
6155 echo "$as_me:6155: checking for $cf_ncuhdr_root include-path" >&5
6156 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6157 if test "${cf_cv_ncurses_h2+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 test -n "$verbose" && echo
6165 # collect the current set of include-directories from compiler flags
6166 cf_header_path_list=""
6167 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6168 for cf_header_path in $CPPFLAGS $CFLAGS
6170 case $cf_header_path in #(vi
6172 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6174 test "$cf_header_path" != "NONE" && \
6175 test -d "$cf_header_path" && \
6177 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6178 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6179 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6180 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6181 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6182 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"
6185 cf_header_path_list="$cf_header_path_list $cf_search"
6191 # add the variations for the package we are looking for
6195 test "/usr" != "$prefix" && \
6197 (test $prefix = NONE || test "/usr" != "$prefix") && {
6198 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6199 test -d /usr/include && cf_search="$cf_search /usr/include"
6200 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
6201 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
6202 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
6203 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6206 test "$prefix" != "NONE" && \
6207 test -d "$prefix" && \
6209 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6210 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6211 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6212 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6213 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6214 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6217 test "/usr/local" != "$prefix" && \
6218 test -d "/usr/local" && \
6219 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6220 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6221 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6222 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
6223 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
6224 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
6225 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6228 test "/opt" != "$prefix" && \
6230 (test $prefix = NONE || test "/opt" != "$prefix") && {
6231 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6232 test -d /opt/include && cf_search="$cf_search /opt/include"
6233 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
6234 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
6235 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
6236 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6239 test "$HOME" != "$prefix" && \
6240 test -d "$HOME" && \
6241 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6242 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6243 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6244 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
6245 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
6246 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
6247 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6250 test "$includedir" != NONE && \
6251 test "$includedir" != "/usr/include" && \
6252 test -d "$includedir" && {
6253 test -d $includedir && cf_search="$cf_search $includedir"
6254 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6257 test "$oldincludedir" != NONE && \
6258 test "$oldincludedir" != "/usr/include" && \
6259 test -d "$oldincludedir" && {
6260 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6261 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6264 cf_search="$cf_search $cf_header_path_list"
6266 test -n "$verbose" && echo search path $cf_search
6267 cf_save2_CPPFLAGS="$CPPFLAGS"
6268 for cf_incdir in $cf_search
6271 if test -n "$cf_incdir" ; then
6272 for cf_add_incdir in $cf_incdir
6274 while test $cf_add_incdir != /usr/include
6276 if test -d $cf_add_incdir
6279 if test -n "$CFLAGS$CPPFLAGS" ; then
6280 # a loop is needed to ensure we can add subdirs of existing dirs
6281 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6282 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6283 cf_have_incdir=yes; break
6288 if test "$cf_have_incdir" = no ; then
6289 if test "$cf_add_incdir" = /usr/local/include ; then
6290 if test "$GCC" = yes
6292 cf_save_CPPFLAGS=$CPPFLAGS
6293 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6294 cat >conftest.$ac_ext <<_ACEOF
6295 #line 6295 "configure"
6296 #include "confdefs.h"
6306 rm -f conftest.$ac_objext
6307 if { (eval echo "$as_me:6307: \"$ac_compile\"") >&5
6308 (eval $ac_compile) 2>&5
6310 echo "$as_me:6310: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:6313: \"$ac_try\"") >&5
6316 echo "$as_me:6316: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6320 echo "$as_me: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6324 rm -f conftest.$ac_objext conftest.$ac_ext
6325 CPPFLAGS=$cf_save_CPPFLAGS
6330 if test "$cf_have_incdir" = no ; then
6331 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6333 echo "${as_me:-configure}:6333: testing adding $cf_add_incdir to include-path ..." 1>&5
6335 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6337 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6338 test "$cf_top_incdir" = "$cf_add_incdir" && break
6339 cf_add_incdir="$cf_top_incdir"
6353 cat >conftest.$ac_ext <<_ACEOF
6354 #line 6354 "configure"
6355 #include "confdefs.h"
6357 #include <$cf_header>
6362 #ifdef NCURSES_VERSION
6364 printf("%s\n", NCURSES_VERSION);
6377 rm -f conftest.$ac_objext
6378 if { (eval echo "$as_me:6378: \"$ac_compile\"") >&5
6379 (eval $ac_compile) 2>&5
6381 echo "$as_me:6381: \$? = $ac_status" >&5
6382 (exit $ac_status); } &&
6383 { ac_try='test -s conftest.$ac_objext'
6384 { (eval echo "$as_me:6384: \"$ac_try\"") >&5
6387 echo "$as_me:6387: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 cf_cv_ncurses_h2=$cf_header
6392 echo "$as_me: failed program was:" >&5
6393 cat conftest.$ac_ext >&5
6396 rm -f conftest.$ac_objext conftest.$ac_ext
6398 if test "$cf_cv_ncurses_h2" != no ; then
6399 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6400 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6403 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6405 CPPFLAGS="$cf_save2_CPPFLAGS"
6406 test "$cf_cv_ncurses_h2" != no && break
6408 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6408: error: not found" >&5
6409 echo "$as_me: error: not found" >&2;}
6410 { (exit 1); exit 1; }; }
6413 echo "$as_me:6413: result: $cf_cv_ncurses_h2" >&5
6414 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6416 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6417 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6418 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6419 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6422 if test -n "$cf_1st_incdir" ; then
6423 for cf_add_incdir in $cf_1st_incdir
6425 while test $cf_add_incdir != /usr/include
6427 if test -d $cf_add_incdir
6430 if test -n "$CFLAGS$CPPFLAGS" ; then
6431 # a loop is needed to ensure we can add subdirs of existing dirs
6432 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6433 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6434 cf_have_incdir=yes; break
6439 if test "$cf_have_incdir" = no ; then
6440 if test "$cf_add_incdir" = /usr/local/include ; then
6441 if test "$GCC" = yes
6443 cf_save_CPPFLAGS=$CPPFLAGS
6444 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line 6446 "configure"
6447 #include "confdefs.h"
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:6458: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>&5
6461 echo "$as_me:6461: \$? = $ac_status" >&5
6462 (exit $ac_status); } &&
6463 { ac_try='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:6464: \"$ac_try\"") >&5
6467 echo "$as_me:6467: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6471 echo "$as_me: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6475 rm -f conftest.$ac_objext conftest.$ac_ext
6476 CPPFLAGS=$cf_save_CPPFLAGS
6481 if test "$cf_have_incdir" = no ; then
6482 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6484 echo "${as_me:-configure}:6484: testing adding $cf_add_incdir to include-path ..." 1>&5
6486 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6488 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6489 test "$cf_top_incdir" = "$cf_add_incdir" && break
6490 cf_add_incdir="$cf_top_incdir"
6501 # Set definitions to allow ifdef'ing for ncurses.h
6503 case $cf_cv_ncurses_header in # (vi
6505 cat >>confdefs.h <<\EOF
6506 #define HAVE_NCURSES_H 1
6512 case $cf_cv_ncurses_header in # (vi
6513 ncurses/curses.h|ncurses/ncurses.h)
6514 cat >>confdefs.h <<\EOF
6515 #define HAVE_NCURSES_NCURSES_H 1
6519 ncursesw/curses.h|ncursesw/ncurses.h)
6520 cat >>confdefs.h <<\EOF
6521 #define HAVE_NCURSESW_NCURSES_H 1
6527 echo "$as_me:6527: checking for terminfo header" >&5
6528 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6529 if test "${cf_cv_term_header+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 case ${cf_cv_ncurses_header} in #(vi
6534 */ncurses.h|*/ncursesw.h) #(vi
6535 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6538 cf_term_header=term.h
6542 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6544 cat >conftest.$ac_ext <<_ACEOF
6545 #line 6545 "configure"
6546 #include "confdefs.h"
6548 #include <${cf_cv_ncurses_header:-curses.h}>
6554 int x = auto_left_margin
6559 rm -f conftest.$ac_objext
6560 if { (eval echo "$as_me:6560: \"$ac_compile\"") >&5
6561 (eval $ac_compile) 2>&5
6563 echo "$as_me:6563: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -s conftest.$ac_objext'
6566 { (eval echo "$as_me:6566: \"$ac_try\"") >&5
6569 echo "$as_me:6569: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6572 cf_cv_term_header="$cf_test"
6574 echo "$as_me: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 cf_cv_term_header=unknown
6580 rm -f conftest.$ac_objext conftest.$ac_ext
6581 test "$cf_cv_term_header" != unknown && break
6585 echo "$as_me:6585: result: $cf_cv_term_header" >&5
6586 echo "${ECHO_T}$cf_cv_term_header" >&6
6588 # Set definitions to allow ifdef'ing to accommodate subdirectories
6590 case $cf_cv_term_header in # (vi
6592 cat >>confdefs.h <<\EOF
6593 #define HAVE_TERM_H 1
6599 case $cf_cv_term_header in # (vi
6600 ncurses/term.h) #(vi
6601 cat >>confdefs.h <<\EOF
6602 #define HAVE_NCURSES_TERM_H 1
6607 cat >>confdefs.h <<\EOF
6608 #define HAVE_NCURSESW_TERM_H 1
6614 # some applications need this, but should check for NCURSES_VERSION
6615 cat >>confdefs.h <<\EOF
6619 echo "$as_me:6619: checking for ncurses version" >&5
6620 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6621 if test "${cf_cv_ncurses_version+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 cf_cv_ncurses_version=no
6628 if test "$cross_compiling" = yes; then
6630 # This will not work if the preprocessor splits the line after the
6631 # Autoconf token. The 'unproto' program does that.
6632 cat > conftest.$ac_ext <<EOF
6633 #include <${cf_cv_ncurses_header:-curses.h}>
6635 #ifdef NCURSES_VERSION
6636 Autoconf NCURSES_VERSION
6644 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6645 { (eval echo "$as_me:6645: \"$cf_try\"") >&5
6648 echo "$as_me:6648: \$? = $ac_status" >&5
6649 (exit $ac_status); }
6650 if test -f conftest.out ; then
6651 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6652 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6657 cat >conftest.$ac_ext <<_ACEOF
6658 #line 6658 "configure"
6659 #include "confdefs.h"
6661 #include <${cf_cv_ncurses_header:-curses.h}>
6665 FILE *fp = fopen("$cf_tempfile", "w");
6666 #ifdef NCURSES_VERSION
6667 # ifdef NCURSES_VERSION_PATCH
6668 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6670 fprintf(fp, "%s\n", NCURSES_VERSION);
6674 fprintf(fp, "old\n");
6679 ${cf_cv_main_return:-return}(0);
6682 rm -f conftest$ac_exeext
6683 if { (eval echo "$as_me:6683: \"$ac_link\"") >&5
6684 (eval $ac_link) 2>&5
6686 echo "$as_me:6686: \$? = $ac_status" >&5
6687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6688 { (eval echo "$as_me:6688: \"$ac_try\"") >&5
6691 echo "$as_me:6691: \$? = $ac_status" >&5
6692 (exit $ac_status); }; }; then
6694 cf_cv_ncurses_version=`cat $cf_tempfile`
6696 echo "$as_me: program exited with status $ac_status" >&5
6697 echo "$as_me: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6705 echo "$as_me:6705: result: $cf_cv_ncurses_version" >&5
6706 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6707 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
6711 cf_nculib_root=ncurses
6712 # This works, except for the special case where we find gpm, but
6713 # ncurses is in a nonstandard location via $LIBS, and we really want
6716 cf_ncurses_SAVE="$LIBS"
6717 echo "$as_me:6717: checking for Gpm_Open in -lgpm" >&5
6718 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6719 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 ac_check_lib_save_LIBS=$LIBS
6724 cat >conftest.$ac_ext <<_ACEOF
6725 #line 6725 "configure"
6726 #include "confdefs.h"
6728 /* Override any gcc2 internal prototype to avoid an error. */
6732 /* We use char because int might match the return type of a gcc2
6733 builtin and then its argument prototype would still apply. */
6743 rm -f conftest.$ac_objext conftest$ac_exeext
6744 if { (eval echo "$as_me:6744: \"$ac_link\"") >&5
6745 (eval $ac_link) 2>&5
6747 echo "$as_me:6747: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -s conftest$ac_exeext'
6750 { (eval echo "$as_me:6750: \"$ac_try\"") >&5
6753 echo "$as_me:6753: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_lib_gpm_Gpm_Open=yes
6757 echo "$as_me: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 ac_cv_lib_gpm_Gpm_Open=no
6761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6762 LIBS=$ac_check_lib_save_LIBS
6764 echo "$as_me:6764: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6765 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6766 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6767 echo "$as_me:6767: checking for initscr in -lgpm" >&5
6768 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6769 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 ac_check_lib_save_LIBS=$LIBS
6774 cat >conftest.$ac_ext <<_ACEOF
6775 #line 6775 "configure"
6776 #include "confdefs.h"
6778 /* Override any gcc2 internal prototype to avoid an error. */
6782 /* We use char because int might match the return type of a gcc2
6783 builtin and then its argument prototype would still apply. */
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:6794: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>&5
6797 echo "$as_me:6797: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:6800: \"$ac_try\"") >&5
6803 echo "$as_me:6803: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_lib_gpm_initscr=yes
6807 echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 ac_cv_lib_gpm_initscr=no
6811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6812 LIBS=$ac_check_lib_save_LIBS
6814 echo "$as_me:6814: result: $ac_cv_lib_gpm_initscr" >&5
6815 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6816 if test $ac_cv_lib_gpm_initscr = yes; then
6817 LIBS="$cf_ncurses_SAVE"
6819 cf_ncurses_LIBS="-lgpm"
6824 case $host_os in #(vi
6826 # This is only necessary if you are linking against an obsolete
6827 # version of ncurses (but it should do no harm, since it's static).
6828 if test "$cf_nculib_root" = ncurses ; then
6829 echo "$as_me:6829: checking for tgoto in -lmytinfo" >&5
6830 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6831 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 ac_check_lib_save_LIBS=$LIBS
6835 LIBS="-lmytinfo $LIBS"
6836 cat >conftest.$ac_ext <<_ACEOF
6837 #line 6837 "configure"
6838 #include "confdefs.h"
6840 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6855 rm -f conftest.$ac_objext conftest$ac_exeext
6856 if { (eval echo "$as_me:6856: \"$ac_link\"") >&5
6857 (eval $ac_link) 2>&5
6859 echo "$as_me:6859: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try='test -s conftest$ac_exeext'
6862 { (eval echo "$as_me:6862: \"$ac_try\"") >&5
6865 echo "$as_me:6865: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 ac_cv_lib_mytinfo_tgoto=yes
6869 echo "$as_me: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 ac_cv_lib_mytinfo_tgoto=no
6873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6874 LIBS=$ac_check_lib_save_LIBS
6876 echo "$as_me:6876: result: $ac_cv_lib_mytinfo_tgoto" >&5
6877 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6878 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6879 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6886 LIBS="$cf_ncurses_LIBS $LIBS"
6888 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6890 LIBS="-l$cf_nculib_root $LIBS"
6893 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6895 echo "$as_me:6895: checking for initscr" >&5
6896 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6897 if test "${ac_cv_func_initscr+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 cat >conftest.$ac_ext <<_ACEOF
6901 #line 6901 "configure"
6902 #include "confdefs.h"
6903 /* System header to define __stub macros and hopefully few prototypes,
6904 which can conflict with char initscr (); below. */
6906 /* Override any gcc2 internal prototype to avoid an error. */
6910 /* We use char because int might match the return type of a gcc2
6911 builtin and then its argument prototype would still apply. */
6918 /* The GNU C library defines this for functions which it implements
6919 to always fail with ENOSYS. Some functions are actually named
6920 something starting with __ and the normal name is an alias. */
6921 #if defined (__stub_initscr) || defined (__stub___initscr)
6931 rm -f conftest.$ac_objext conftest$ac_exeext
6932 if { (eval echo "$as_me:6932: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>&5
6935 echo "$as_me:6935: \$? = $ac_status" >&5
6936 (exit $ac_status); } &&
6937 { ac_try='test -s conftest$ac_exeext'
6938 { (eval echo "$as_me:6938: \"$ac_try\"") >&5
6941 echo "$as_me:6941: \$? = $ac_status" >&5
6942 (exit $ac_status); }; }; then
6943 ac_cv_func_initscr=yes
6945 echo "$as_me: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6947 ac_cv_func_initscr=no
6949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6951 echo "$as_me:6951: result: $ac_cv_func_initscr" >&5
6952 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6953 if test $ac_cv_func_initscr = yes; then
6954 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6957 cf_save_LIBS="$LIBS"
6958 echo "$as_me:6958: checking for initscr in -l$cf_nculib_root" >&5
6959 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6960 LIBS="-l$cf_nculib_root $LIBS"
6961 cat >conftest.$ac_ext <<_ACEOF
6962 #line 6962 "configure"
6963 #include "confdefs.h"
6964 #include <${cf_cv_ncurses_header:-curses.h}>
6973 rm -f conftest.$ac_objext conftest$ac_exeext
6974 if { (eval echo "$as_me:6974: \"$ac_link\"") >&5
6975 (eval $ac_link) 2>&5
6977 echo "$as_me:6977: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -s conftest$ac_exeext'
6980 { (eval echo "$as_me:6980: \"$ac_try\"") >&5
6983 echo "$as_me:6983: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6985 echo "$as_me:6985: result: yes" >&5
6986 echo "${ECHO_T}yes" >&6
6987 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 echo "$as_me:6992: result: no" >&5
6993 echo "${ECHO_T}no" >&6
6996 cf_library_path_list=""
6997 if test -n "${LDFLAGS}${LIBS}" ; then
6998 for cf_library_path in $LDFLAGS $LIBS
7000 case $cf_library_path in #(vi
7002 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7004 test "$cf_library_path" != "NONE" && \
7005 test -d "$cf_library_path" && \
7007 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7008 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7009 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7010 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7011 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7012 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"
7015 cf_library_path_list="$cf_library_path_list $cf_search"
7023 test "/usr" != "$prefix" && \
7025 (test $prefix = NONE || test "/usr" != "$prefix") && {
7026 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7027 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7028 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
7029 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
7030 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
7031 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
7034 test "$prefix" != "NONE" && \
7035 test -d "$prefix" && \
7037 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7038 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7039 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
7040 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
7041 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
7042 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
7045 test "/usr/local" != "$prefix" && \
7046 test -d "/usr/local" && \
7047 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7048 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7049 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7050 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
7051 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
7052 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
7053 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
7056 test "/opt" != "$prefix" && \
7058 (test $prefix = NONE || test "/opt" != "$prefix") && {
7059 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7060 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7061 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
7062 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
7063 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
7064 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
7067 test "$HOME" != "$prefix" && \
7068 test -d "$HOME" && \
7069 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7070 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7071 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7072 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
7073 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
7074 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
7075 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
7078 cf_search="$cf_library_path_list $cf_search"
7080 for cf_libdir in $cf_search
7082 echo "$as_me:7082: checking for -l$cf_nculib_root in $cf_libdir" >&5
7083 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
7084 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
7085 cat >conftest.$ac_ext <<_ACEOF
7086 #line 7086 "configure"
7087 #include "confdefs.h"
7088 #include <${cf_cv_ncurses_header:-curses.h}>
7097 rm -f conftest.$ac_objext conftest$ac_exeext
7098 if { (eval echo "$as_me:7098: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>&5
7101 echo "$as_me:7101: \$? = $ac_status" >&5
7102 (exit $ac_status); } &&
7103 { ac_try='test -s conftest$ac_exeext'
7104 { (eval echo "$as_me:7104: \"$ac_try\"") >&5
7107 echo "$as_me:7107: \$? = $ac_status" >&5
7108 (exit $ac_status); }; }; then
7109 echo "$as_me:7109: result: yes" >&5
7110 echo "${ECHO_T}yes" >&6
7111 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7114 echo "$as_me: failed program was:" >&5
7115 cat conftest.$ac_ext >&5
7116 echo "$as_me:7116: result: no" >&5
7117 echo "${ECHO_T}no" >&6
7118 LIBS="$cf_save_LIBS"
7120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7128 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7130 if test $cf_found_library = no ; then
7131 { { echo "$as_me:7131: error: Cannot link $cf_nculib_root library" >&5
7132 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7133 { (exit 1); exit 1; }; }
7138 if test -n "$cf_ncurses_LIBS" ; then
7139 echo "$as_me:7139: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7140 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7141 cf_ncurses_SAVE="$LIBS"
7142 for p in $cf_ncurses_LIBS ; do
7143 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7144 if test "$q" != "$LIBS" ; then
7148 cat >conftest.$ac_ext <<_ACEOF
7149 #line 7149 "configure"
7150 #include "confdefs.h"
7151 #include <${cf_cv_ncurses_header:-curses.h}>
7155 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7160 rm -f conftest.$ac_objext conftest$ac_exeext
7161 if { (eval echo "$as_me:7161: \"$ac_link\"") >&5
7162 (eval $ac_link) 2>&5
7164 echo "$as_me:7164: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -s conftest$ac_exeext'
7167 { (eval echo "$as_me:7167: \"$ac_try\"") >&5
7170 echo "$as_me:7170: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 echo "$as_me:7172: result: yes" >&5
7173 echo "${ECHO_T}yes" >&6
7175 echo "$as_me: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7177 echo "$as_me:7177: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7179 LIBS="$cf_ncurses_SAVE"
7181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7184 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7186 cat >>confdefs.h <<EOF
7187 #define $cf_nculib_ROOT 1
7194 if test "$NCURSES_CONFIG" != none ; then
7196 cf_version=`$NCURSES_CONFIG --version`
7198 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
7199 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
7200 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
7202 # ABI version is not available from headers
7203 cf_cv_abi_version=`$NCURSES_CONFIG --abi-version`
7207 for cf_name in MAJOR MINOR PATCH
7209 cat >conftest.$ac_ext <<CF_EOF
7210 #include <${cf_cv_ncurses_header:-curses.h}>
7211 AUTOCONF_$cf_name NCURSES_VERSION_$cf_name
7213 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | fgrep AUTOCONF_$cf_name >conftest.out"
7214 { (eval echo "$as_me:7214: \"$cf_try\"") >&5
7217 echo "$as_me:7217: \$? = $ac_status" >&5
7218 (exit $ac_status); }
7219 if test -f conftest.out ; then
7220 cf_result=`cat conftest.out | sed -e "s/^.*AUTOCONF_$cf_name[ ][ ]*//"`
7221 eval NCURSES_$cf_name=\"$cf_result\"
7222 # cat conftest.$ac_ext
7227 cf_cv_abi_version=${NCURSES_MAJOR}
7231 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
7233 cf_cv_timestamp=`date`
7235 echo "$as_me:7235: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
7236 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
7238 case $cf_cv_system_name in #(vi
7245 cf_prefix=$LIB_PREFIX
7247 LIB_PREFIX=$cf_prefix
7251 ###############################################################################
7253 if test X"$CC_G_OPT" = X"" ; then
7255 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
7258 echo "$as_me:7258: checking for default loader flags" >&5
7259 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
7260 case $DFT_LWR_MODEL in
7261 normal) LD_MODEL='' ;;
7262 debug) LD_MODEL=$CC_G_OPT ;;
7263 profile) LD_MODEL='-pg';;
7264 shared) LD_MODEL='' ;;
7266 echo "$as_me:7266: result: $LD_MODEL" >&5
7267 echo "${ECHO_T}$LD_MODEL" >&6
7270 echo "$as_me:7270: checking for an rpath option" >&5
7271 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
7272 case $cf_cv_system_name in #(vi
7274 if test "$GCC" = yes; then
7275 LD_RPATH_OPT="-Wl,-rpath,"
7277 LD_RPATH_OPT="-rpath "
7280 linux*|gnu*|k*bsd*-gnu) #(vi
7281 LD_RPATH_OPT="-Wl,-rpath,"
7283 openbsd[2-9].*|mirbsd*) #(vi
7284 LD_RPATH_OPT="-Wl,-rpath,"
7287 LD_RPATH_OPT="-rpath "
7290 LD_RPATH_OPT="-Wl,-rpath,"
7293 LD_RPATH_OPT="-rpath "
7301 echo "$as_me:7301: result: $LD_RPATH_OPT" >&5
7302 echo "${ECHO_T}$LD_RPATH_OPT" >&6
7304 case "x$LD_RPATH_OPT" in #(vi
7306 echo "$as_me:7306: checking if we need a space after rpath option" >&5
7307 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
7308 cf_save_LIBS="$LIBS"
7309 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
7310 cat >conftest.$ac_ext <<_ACEOF
7311 #line 7311 "configure"
7312 #include "confdefs.h"
7322 rm -f conftest.$ac_objext conftest$ac_exeext
7323 if { (eval echo "$as_me:7323: \"$ac_link\"") >&5
7324 (eval $ac_link) 2>&5
7326 echo "$as_me:7326: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -s conftest$ac_exeext'
7329 { (eval echo "$as_me:7329: \"$ac_try\"") >&5
7332 echo "$as_me:7332: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7336 echo "$as_me: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7341 LIBS="$cf_save_LIBS"
7342 echo "$as_me:7342: result: $cf_rpath_space" >&5
7343 echo "${ECHO_T}$cf_rpath_space" >&6
7344 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
7351 INSTALL_LIB="-m 644"
7353 cf_cv_do_symlinks=no
7355 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
7357 echo "$as_me:7357: checking if release/abi version should be used for shared libs" >&5
7358 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
7360 # Check whether --with-shlib-version or --without-shlib-version was given.
7361 if test "${with_shlib_version+set}" = set; then
7362 withval="$with_shlib_version"
7363 test -z "$withval" && withval=auto
7364 case $withval in #(vi
7366 cf_cv_shlib_version=auto
7368 rel|abi|auto|no) #(vi
7369 cf_cv_shlib_version=$withval
7372 { { echo "$as_me:7372: error: option value must be one of: rel, abi, auto or no" >&5
7373 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
7374 { (exit 1); exit 1; }; }
7379 cf_cv_shlib_version=auto
7381 echo "$as_me:7381: result: $cf_cv_shlib_version" >&5
7382 echo "${ECHO_T}$cf_cv_shlib_version" >&6
7386 # Some less-capable ports of gcc support only -fpic
7388 if test "$GCC" = yes
7390 echo "$as_me:7390: checking which $CC option to use" >&5
7391 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
7392 cf_save_CFLAGS="$CFLAGS"
7393 for CC_SHARED_OPTS in -fPIC -fpic ''
7395 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
7396 cat >conftest.$ac_ext <<_ACEOF
7397 #line 7397 "configure"
7398 #include "confdefs.h"
7408 rm -f conftest.$ac_objext
7409 if { (eval echo "$as_me:7409: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>&5
7412 echo "$as_me:7412: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:7415: \"$ac_try\"") >&5
7418 echo "$as_me:7418: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7422 echo "$as_me: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7425 rm -f conftest.$ac_objext conftest.$ac_ext
7427 echo "$as_me:7427: result: $CC_SHARED_OPTS" >&5
7428 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
7429 CFLAGS="$cf_save_CFLAGS"
7432 cf_cv_shlib_version_infix=no
7434 case $cf_cv_system_name in #(vi
7436 if test "$GCC" = yes; then
7438 MK_SHARED_LIB='$(CC) -shared'
7442 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
7446 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7447 cf_cv_shlib_version=cygdll
7448 cf_cv_shlib_version_infix=cygdll
7449 cat >mk_shared_lib.sh <<-CF_EOF
7452 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
7455 Linking shared library
7456 ** SHARED_LIB \$SHARED_LIB
7457 ** IMPORT_LIB \$IMPORT_LIB
7459 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
7461 chmod +x mk_shared_lib.sh
7464 EXTRA_CFLAGS="-no-cpp-precomp"
7465 CC_SHARED_OPTS="-dynamic"
7466 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
7467 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
7468 cf_cv_shlib_version_infix=yes
7469 echo "$as_me:7469: checking if ld -search_paths_first works" >&5
7470 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
7471 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 cf_save_LDFLAGS=$LDFLAGS
7476 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7477 cat >conftest.$ac_ext <<_ACEOF
7478 #line 7478 "configure"
7479 #include "confdefs.h"
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (eval echo "$as_me:7490: \"$ac_link\"") >&5
7491 (eval $ac_link) 2>&5
7493 echo "$as_me:7493: \$? = $ac_status" >&5
7494 (exit $ac_status); } &&
7495 { ac_try='test -s conftest$ac_exeext'
7496 { (eval echo "$as_me:7496: \"$ac_try\"") >&5
7499 echo "$as_me:7499: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 cf_cv_ldflags_search_paths_first=yes
7503 echo "$as_me: failed program was:" >&5
7504 cat conftest.$ac_ext >&5
7505 cf_cv_ldflags_search_paths_first=no
7507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7508 LDFLAGS=$cf_save_LDFLAGS
7510 echo "$as_me:7510: result: $cf_cv_ldflags_search_paths_first" >&5
7511 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
7512 if test $cf_cv_ldflags_search_paths_first = yes; then
7513 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7517 # (tested with gcc 2.7.2 -- I don't have c89)
7518 if test "$GCC" = yes; then
7519 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
7522 LD_SHARED_OPTS='-Wl,+b,${libdir}'
7524 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
7525 # HP-UX shared libraries must be executable, and should be
7526 # readonly to exploit a quirk in the memory manager.
7527 INSTALL_LIB="-m 555"
7530 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7531 if test "$cf_cv_shlib_version" = rel; then
7532 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
7534 cf_shared_soname='`basename `'
7537 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${libdir} -Wl,-h,'$cf_shared_soname' -o '
7540 if test "$cf_cv_enable_rpath" = yes ; then
7541 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7543 # tested with IRIX 5.2 and 'cc'.
7544 if test "$GCC" != yes; then
7545 CC_SHARED_OPTS='-KPIC'
7546 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
7548 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
7550 cf_cv_rm_so_locs=yes
7552 linux*|gnu*|k*bsd*-gnu) #(vi
7553 if test "$DFT_LWR_MODEL" = "shared" ; then
7554 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7555 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7557 if test "$cf_cv_enable_rpath" = yes ; then
7558 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7561 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7562 if test "$cf_cv_shlib_version" = rel; then
7563 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7565 cf_cv_shared_soname='`basename $@`'
7568 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7570 openbsd[2-9].*|mirbsd*) #(vi
7571 if test "$DFT_LWR_MODEL" = "shared" ; then
7572 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7573 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7575 if test "$cf_cv_enable_rpath" = yes ; then
7576 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7578 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7580 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7581 if test "$cf_cv_shlib_version" = rel; then
7582 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7584 cf_cv_shared_soname='`basename $@`'
7587 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7589 nto-qnx*|openbsd*|freebsd[12].*) #(vi
7590 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7591 MK_SHARED_LIB='${LD} -Bshareable -o $@'
7592 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7595 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7596 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7597 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7598 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${libdir} $LOCAL_LDFLAGS"
7599 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7602 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7603 if test "$cf_cv_shlib_version" = rel; then
7604 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7606 cf_cv_shared_soname='`basename $@`'
7609 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
7612 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7613 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7614 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7615 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7616 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${libdir} $EXTRA_LDFLAGS"
7617 if test "$cf_cv_shlib_version" = auto; then
7618 if test -f /usr/libexec/ld.elf_so; then
7619 cf_cv_shlib_version=abi
7621 cf_cv_shlib_version=rel
7625 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7626 if test "$cf_cv_shlib_version" = rel; then
7627 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7629 cf_cv_shared_soname='`basename $@`'
7632 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7634 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
7638 # tested with OSF/1 V3.2 and 'cc'
7639 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7640 # link with shared libs).
7641 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7642 case $host_os in #(vi
7644 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7647 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7648 if test "$DFT_LWR_MODEL" = "shared" ; then
7649 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7650 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7652 cf_cv_rm_so_locs=yes
7654 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
7655 # tested with osr5.0.5
7656 if test "$GCC" != yes; then
7657 CC_SHARED_OPTS='-belf -KPIC'
7659 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7660 if test "$cf_cv_enable_rpath" = yes ; then
7661 # only way is to set LD_RUN_PATH but no switch for it
7664 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7665 LINK_PROGS='LD_RUN_PATH=${libdir}'
7666 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7669 # tested with SunOS 4.1.1 and gcc 2.7.0
7670 if test "$GCC" != yes; then
7671 CC_SHARED_OPTS='-KPIC'
7673 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
7674 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7677 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7678 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7679 if test "$DFT_LWR_MODEL" = "shared" ; then
7680 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7681 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7683 if test "$cf_cv_enable_rpath" = yes ; then
7684 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7687 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7688 if test "$cf_cv_shlib_version" = rel; then
7689 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7691 cf_cv_shared_soname='`basename $@`'
7694 if test "$GCC" != yes; then
7695 cf_save_CFLAGS="$CFLAGS"
7696 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7698 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7699 cat >conftest.$ac_ext <<_ACEOF
7700 #line 7700 "configure"
7701 #include "confdefs.h"
7711 rm -f conftest.$ac_objext
7712 if { (eval echo "$as_me:7712: \"$ac_compile\"") >&5
7713 (eval $ac_compile) 2>&5
7715 echo "$as_me:7715: \$? = $ac_status" >&5
7716 (exit $ac_status); } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:7718: \"$ac_try\"") >&5
7721 echo "$as_me:7721: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7725 echo "$as_me: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7728 rm -f conftest.$ac_objext conftest.$ac_ext
7730 CFLAGS="$cf_save_CFLAGS"
7731 CC_SHARED_OPTS=$cf_shared_opts
7732 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
7734 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7737 sysv5uw7*|unix_sv*) #(vi
7738 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7739 if test "$GCC" != yes; then
7740 CC_SHARED_OPTS='-KPIC'
7742 MK_SHARED_LIB='${LD} -d y -G -o $@'
7745 CC_SHARED_OPTS='unknown'
7746 MK_SHARED_LIB='echo unknown'
7750 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7751 case "$cf_cv_shlib_version" in #(vi
7753 case "$MK_SHARED_LIB" in #(vi
7755 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7758 { echo "$as_me:7758: WARNING: ignored --with-shlib-version" >&5
7759 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7765 if test -n "$cf_ld_rpath_opt" ; then
7766 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
7769 # The test/sample programs in the original tree link using rpath option.
7770 # Make it optional for packagers.
7771 if test -n "$LOCAL_LDFLAGS"
7773 echo "$as_me:7773: checking if you want to link sample programs with rpath option" >&5
7774 echo $ECHO_N "checking if you want to link sample programs with rpath option... $ECHO_C" >&6
7776 # Check whether --enable-rpath-link or --disable-rpath-link was given.
7777 if test "${enable_rpath_link+set}" = set; then
7778 enableval="$enable_rpath_link"
7779 with_rpath_link=$enableval
7783 echo "$as_me:7783: result: $with_rpath_link" >&5
7784 echo "${ECHO_T}$with_rpath_link" >&6
7785 if test "$with_rpath_link" = no
7792 ###############################################################################
7794 case $cf_cv_system_name in
7795 os2*) PATH_SEPARATOR=';' ;;
7796 *) PATH_SEPARATOR=':' ;;
7799 ### use option --enable-broken-linker to force on use of broken-linker support
7800 echo "$as_me:7800: checking if you want broken-linker support code" >&5
7801 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7803 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7804 if test "${enable_broken_linker+set}" = set; then
7805 enableval="$enable_broken_linker"
7806 with_broken_linker=$enableval
7808 with_broken_linker=${BROKEN_LINKER:-no}
7810 echo "$as_me:7810: result: $with_broken_linker" >&5
7811 echo "${ECHO_T}$with_broken_linker" >&6
7814 if test "$with_broken_linker" = yes ; then
7815 cat >>confdefs.h <<\EOF
7816 #define BROKEN_LINKER 1
7820 elif test "$DFT_LWR_MODEL" = shared ; then
7821 case $cf_cv_system_name in #(vi
7823 cat >>confdefs.h <<\EOF
7824 #define BROKEN_LINKER 1
7828 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7830 echo "${as_me:-configure}:7830: testing cygwin linker is broken anyway ..." 1>&5
7836 # Check to define _XOPEN_SOURCE "automatically"
7839 cf_POSIX_C_SOURCE=199506L
7842 case $host_os in #(vi
7844 cf_xopen_source="-D_ALL_SOURCE"
7850 cf_xopen_source="-D_APPLE_C_SOURCE"
7853 cf_xopen_source="-D_DARWIN_C_SOURCE"
7855 freebsd*|dragonfly*) #(vi
7856 # 5.x headers associate
7857 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7858 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7859 cf_POSIX_C_SOURCE=200112L
7861 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7864 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7867 cf_xopen_source="-D_HPUX_SOURCE"
7870 cf_xopen_source="-D_SGI_SOURCE"
7872 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7874 echo "$as_me:7874: checking if we must define _GNU_SOURCE" >&5
7875 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7876 if test "${cf_cv_gnu_source+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7881 #line 7881 "configure"
7882 #include "confdefs.h"
7883 #include <sys/types.h>
7888 #ifndef _XOPEN_SOURCE
7895 rm -f conftest.$ac_objext
7896 if { (eval echo "$as_me:7896: \"$ac_compile\"") >&5
7897 (eval $ac_compile) 2>&5
7899 echo "$as_me:7899: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -s conftest.$ac_objext'
7902 { (eval echo "$as_me:7902: \"$ac_try\"") >&5
7905 echo "$as_me:7905: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7909 echo "$as_me: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7913 cat >conftest.$ac_ext <<_ACEOF
7914 #line 7914 "configure"
7915 #include "confdefs.h"
7916 #include <sys/types.h>
7921 #ifdef _XOPEN_SOURCE
7928 rm -f conftest.$ac_objext
7929 if { (eval echo "$as_me:7929: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>&5
7932 echo "$as_me:7932: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:7935: \"$ac_try\"") >&5
7938 echo "$as_me:7938: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7942 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7944 cf_cv_gnu_source=yes
7946 rm -f conftest.$ac_objext conftest.$ac_ext
7950 rm -f conftest.$ac_objext conftest.$ac_ext
7953 echo "$as_me:7953: result: $cf_cv_gnu_source" >&5
7954 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7955 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7959 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
7962 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7965 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7968 cf_xopen_source="-D_OSF_SOURCE"
7971 cf_xopen_source="-D_QNX_SOURCE"
7974 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7976 solaris2.1[0-9]) #(vi
7977 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7979 solaris2.[1-9]) #(vi
7980 cf_xopen_source="-D__EXTENSIONS__"
7983 echo "$as_me:7983: checking if we should define _XOPEN_SOURCE" >&5
7984 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7985 if test "${cf_cv_xopen_source+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 cat >conftest.$ac_ext <<_ACEOF
7990 #line 7990 "configure"
7991 #include "confdefs.h"
7992 #include <sys/types.h>
7997 #ifndef _XOPEN_SOURCE
8004 rm -f conftest.$ac_objext
8005 if { (eval echo "$as_me:8005: \"$ac_compile\"") >&5
8006 (eval $ac_compile) 2>&5
8008 echo "$as_me:8008: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -s conftest.$ac_objext'
8011 { (eval echo "$as_me:8011: \"$ac_try\"") >&5
8014 echo "$as_me:8014: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 cf_cv_xopen_source=no
8018 echo "$as_me: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8021 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8022 cat >conftest.$ac_ext <<_ACEOF
8023 #line 8023 "configure"
8024 #include "confdefs.h"
8025 #include <sys/types.h>
8030 #ifdef _XOPEN_SOURCE
8037 rm -f conftest.$ac_objext
8038 if { (eval echo "$as_me:8038: \"$ac_compile\"") >&5
8039 (eval $ac_compile) 2>&5
8041 echo "$as_me:8041: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -s conftest.$ac_objext'
8044 { (eval echo "$as_me:8044: \"$ac_try\"") >&5
8047 echo "$as_me:8047: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 cf_cv_xopen_source=no
8051 echo "$as_me: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8055 rm -f conftest.$ac_objext conftest.$ac_ext
8059 rm -f conftest.$ac_objext conftest.$ac_ext
8062 echo "$as_me:8062: result: $cf_cv_xopen_source" >&5
8063 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8064 if test "$cf_cv_xopen_source" != no ; then
8066 CFLAGS=`echo "$CFLAGS" | \
8067 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8068 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8070 CPPFLAGS=`echo "$CPPFLAGS" | \
8071 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8072 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8074 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8079 cf_new_extra_cppflags=
8081 for cf_add_cflags in $cf_temp_xopen_source
8083 case $cf_fix_cppflags in
8085 case $cf_add_cflags in #(vi
8086 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8087 case $cf_add_cflags in
8089 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8091 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8092 && test -z "${cf_tst_cflags}" \
8093 && cf_fix_cppflags=yes
8095 if test $cf_fix_cppflags = yes ; then
8096 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8098 elif test "${cf_tst_cflags}" = "\"'" ; then
8099 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8105 *$cf_add_cflags) #(vi
8108 case $cf_add_cflags in #(vi
8110 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8112 CPPFLAGS=`echo "$CPPFLAGS" | \
8113 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8114 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8118 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8123 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8130 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8132 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8133 && test -z "${cf_tst_cflags}" \
8134 && cf_fix_cppflags=no
8139 if test -n "$cf_new_cflags" ; then
8141 CFLAGS="$CFLAGS $cf_new_cflags"
8144 if test -n "$cf_new_cppflags" ; then
8146 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8149 if test -n "$cf_new_extra_cppflags" ; then
8151 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8156 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8158 cf_save_CFLAGS="$CFLAGS"
8159 cf_save_CPPFLAGS="$CPPFLAGS"
8161 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8162 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8163 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8165 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8166 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8167 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8169 echo "$as_me:8169: checking if we should define _POSIX_C_SOURCE" >&5
8170 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8171 if test "${cf_cv_posix_c_source+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 echo "${as_me:-configure}:8175: testing if the symbol is already defined go no further ..." 1>&5
8177 cat >conftest.$ac_ext <<_ACEOF
8178 #line 8178 "configure"
8179 #include "confdefs.h"
8180 #include <sys/types.h>
8185 #ifndef _POSIX_C_SOURCE
8192 rm -f conftest.$ac_objext
8193 if { (eval echo "$as_me:8193: \"$ac_compile\"") >&5
8194 (eval $ac_compile) 2>&5
8196 echo "$as_me:8196: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -s conftest.$ac_objext'
8199 { (eval echo "$as_me:8199: \"$ac_try\"") >&5
8202 echo "$as_me:8202: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 cf_cv_posix_c_source=no
8206 echo "$as_me: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8208 cf_want_posix_source=no
8209 case .$cf_POSIX_C_SOURCE in #(vi
8211 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8214 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8215 cf_want_posix_source=yes
8218 cf_want_posix_source=yes
8221 if test "$cf_want_posix_source" = yes ; then
8222 cat >conftest.$ac_ext <<_ACEOF
8223 #line 8223 "configure"
8224 #include "confdefs.h"
8225 #include <sys/types.h>
8230 #ifdef _POSIX_SOURCE
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:8238: \"$ac_compile\"") >&5
8239 (eval $ac_compile) 2>&5
8241 echo "$as_me:8241: \$? = $ac_status" >&5
8242 (exit $ac_status); } &&
8243 { ac_try='test -s conftest.$ac_objext'
8244 { (eval echo "$as_me:8244: \"$ac_try\"") >&5
8247 echo "$as_me:8247: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8251 echo "$as_me: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8253 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8255 rm -f conftest.$ac_objext conftest.$ac_ext
8258 echo "${as_me:-configure}:8258: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8260 CFLAGS="$cf_trim_CFLAGS"
8261 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8263 echo "${as_me:-configure}:8263: testing if the second compile does not leave our definition intact error ..." 1>&5
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line 8266 "configure"
8267 #include "confdefs.h"
8268 #include <sys/types.h>
8273 #ifndef _POSIX_C_SOURCE
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:8281: \"$ac_compile\"") >&5
8282 (eval $ac_compile) 2>&5
8284 echo "$as_me:8284: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -s conftest.$ac_objext'
8287 { (eval echo "$as_me:8287: \"$ac_try\"") >&5
8290 echo "$as_me:8290: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8294 echo "$as_me: failed program was:" >&5
8295 cat conftest.$ac_ext >&5
8296 cf_cv_posix_c_source=no
8298 rm -f conftest.$ac_objext conftest.$ac_ext
8299 CFLAGS="$cf_save_CFLAGS"
8300 CPPFLAGS="$cf_save_CPPFLAGS"
8303 rm -f conftest.$ac_objext conftest.$ac_ext
8306 echo "$as_me:8306: result: $cf_cv_posix_c_source" >&5
8307 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8309 if test "$cf_cv_posix_c_source" != no ; then
8310 CFLAGS="$cf_trim_CFLAGS"
8311 CPPFLAGS="$cf_trim_CPPFLAGS"
8316 cf_new_extra_cppflags=
8318 for cf_add_cflags in $cf_cv_posix_c_source
8320 case $cf_fix_cppflags in
8322 case $cf_add_cflags in #(vi
8323 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8324 case $cf_add_cflags in
8326 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8328 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8329 && test -z "${cf_tst_cflags}" \
8330 && cf_fix_cppflags=yes
8332 if test $cf_fix_cppflags = yes ; then
8333 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8335 elif test "${cf_tst_cflags}" = "\"'" ; then
8336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8342 *$cf_add_cflags) #(vi
8345 case $cf_add_cflags in #(vi
8347 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8349 CPPFLAGS=`echo "$CPPFLAGS" | \
8350 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8351 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8355 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8360 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8365 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8367 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8369 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8370 && test -z "${cf_tst_cflags}" \
8371 && cf_fix_cppflags=no
8376 if test -n "$cf_new_cflags" ; then
8378 CFLAGS="$CFLAGS $cf_new_cflags"
8381 if test -n "$cf_new_cppflags" ; then
8383 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8386 if test -n "$cf_new_extra_cppflags" ; then
8388 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8396 if test -n "$cf_xopen_source" ; then
8401 cf_new_extra_cppflags=
8403 for cf_add_cflags in $cf_xopen_source
8405 case $cf_fix_cppflags in
8407 case $cf_add_cflags in #(vi
8408 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8409 case $cf_add_cflags in
8411 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8413 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8414 && test -z "${cf_tst_cflags}" \
8415 && cf_fix_cppflags=yes
8417 if test $cf_fix_cppflags = yes ; then
8418 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8420 elif test "${cf_tst_cflags}" = "\"'" ; then
8421 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8427 *$cf_add_cflags) #(vi
8430 case $cf_add_cflags in #(vi
8432 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8434 CPPFLAGS=`echo "$CPPFLAGS" | \
8435 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8436 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8440 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8445 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8450 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8452 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8454 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8455 && test -z "${cf_tst_cflags}" \
8456 && cf_fix_cppflags=no
8461 if test -n "$cf_new_cflags" ; then
8463 CFLAGS="$CFLAGS $cf_new_cflags"
8466 if test -n "$cf_new_cppflags" ; then
8468 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8471 if test -n "$cf_new_extra_cppflags" ; then
8473 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8478 # Check whether --enable-largefile or --disable-largefile was given.
8479 if test "${enable_largefile+set}" = set; then
8480 enableval="$enable_largefile"
8483 if test "$enable_largefile" != no; then
8485 echo "$as_me:8485: checking for special C compiler options needed for large files" >&5
8486 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8487 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_cv_sys_largefile_CC=no
8491 if test "$GCC" != yes; then
8494 # IRIX 6.2 and later do not support large files by default,
8495 # so use the C compiler's -n32 option if that helps.
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line 8497 "configure"
8498 #include "confdefs.h"
8499 #include <sys/types.h>
8500 /* Check that off_t can represent 2**63 - 1 correctly.
8501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8502 since some C++ compilers masquerading as C compilers
8503 incorrectly reject 9223372036854775807. */
8504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8506 && LARGE_OFF_T % 2147483647 == 1)
8516 rm -f conftest.$ac_objext
8517 if { (eval echo "$as_me:8517: \"$ac_compile\"") >&5
8518 (eval $ac_compile) 2>&5
8520 echo "$as_me:8520: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -s conftest.$ac_objext'
8523 { (eval echo "$as_me:8523: \"$ac_try\"") >&5
8526 echo "$as_me:8526: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8530 echo "$as_me: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8533 rm -f conftest.$ac_objext
8535 rm -f conftest.$ac_objext
8536 if { (eval echo "$as_me:8536: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>&5
8539 echo "$as_me:8539: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:8542: \"$ac_try\"") >&5
8545 echo "$as_me:8545: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_sys_largefile_CC=' -n32'; break
8549 echo "$as_me: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8552 rm -f conftest.$ac_objext
8556 rm -f conftest.$ac_ext
8559 echo "$as_me:8559: result: $ac_cv_sys_largefile_CC" >&5
8560 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8561 if test "$ac_cv_sys_largefile_CC" != no; then
8562 CC=$CC$ac_cv_sys_largefile_CC
8565 echo "$as_me:8565: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8566 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8567 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 ac_cv_sys_file_offset_bits=no
8572 cat >conftest.$ac_ext <<_ACEOF
8573 #line 8573 "configure"
8574 #include "confdefs.h"
8575 #include <sys/types.h>
8576 /* Check that off_t can represent 2**63 - 1 correctly.
8577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8578 since some C++ compilers masquerading as C compilers
8579 incorrectly reject 9223372036854775807. */
8580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8582 && LARGE_OFF_T % 2147483647 == 1)
8592 rm -f conftest.$ac_objext
8593 if { (eval echo "$as_me:8593: \"$ac_compile\"") >&5
8594 (eval $ac_compile) 2>&5
8596 echo "$as_me:8596: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (eval echo "$as_me:8599: \"$ac_try\"") >&5
8602 echo "$as_me:8602: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8606 echo "$as_me: failed program was:" >&5
8607 cat conftest.$ac_ext >&5
8609 rm -f conftest.$ac_objext conftest.$ac_ext
8610 cat >conftest.$ac_ext <<_ACEOF
8611 #line 8611 "configure"
8612 #include "confdefs.h"
8613 #define _FILE_OFFSET_BITS 64
8614 #include <sys/types.h>
8615 /* Check that off_t can represent 2**63 - 1 correctly.
8616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8617 since some C++ compilers masquerading as C compilers
8618 incorrectly reject 9223372036854775807. */
8619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8621 && LARGE_OFF_T % 2147483647 == 1)
8631 rm -f conftest.$ac_objext
8632 if { (eval echo "$as_me:8632: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>&5
8635 echo "$as_me:8635: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:8638: \"$ac_try\"") >&5
8641 echo "$as_me:8641: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8643 ac_cv_sys_file_offset_bits=64; break
8645 echo "$as_me: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8648 rm -f conftest.$ac_objext conftest.$ac_ext
8652 echo "$as_me:8652: result: $ac_cv_sys_file_offset_bits" >&5
8653 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8654 if test "$ac_cv_sys_file_offset_bits" != no; then
8656 cat >>confdefs.h <<EOF
8657 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8662 echo "$as_me:8662: checking for _LARGE_FILES value needed for large files" >&5
8663 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8664 if test "${ac_cv_sys_large_files+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 ac_cv_sys_large_files=no
8669 cat >conftest.$ac_ext <<_ACEOF
8670 #line 8670 "configure"
8671 #include "confdefs.h"
8672 #include <sys/types.h>
8673 /* Check that off_t can represent 2**63 - 1 correctly.
8674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8675 since some C++ compilers masquerading as C compilers
8676 incorrectly reject 9223372036854775807. */
8677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8679 && LARGE_OFF_T % 2147483647 == 1)
8689 rm -f conftest.$ac_objext
8690 if { (eval echo "$as_me:8690: \"$ac_compile\"") >&5
8691 (eval $ac_compile) 2>&5
8693 echo "$as_me:8693: \$? = $ac_status" >&5
8694 (exit $ac_status); } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (eval echo "$as_me:8696: \"$ac_try\"") >&5
8699 echo "$as_me:8699: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8703 echo "$as_me: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8706 rm -f conftest.$ac_objext conftest.$ac_ext
8707 cat >conftest.$ac_ext <<_ACEOF
8708 #line 8708 "configure"
8709 #include "confdefs.h"
8710 #define _LARGE_FILES 1
8711 #include <sys/types.h>
8712 /* Check that off_t can represent 2**63 - 1 correctly.
8713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8714 since some C++ compilers masquerading as C compilers
8715 incorrectly reject 9223372036854775807. */
8716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8718 && LARGE_OFF_T % 2147483647 == 1)
8728 rm -f conftest.$ac_objext
8729 if { (eval echo "$as_me:8729: \"$ac_compile\"") >&5
8730 (eval $ac_compile) 2>&5
8732 echo "$as_me:8732: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -s conftest.$ac_objext'
8735 { (eval echo "$as_me:8735: \"$ac_try\"") >&5
8738 echo "$as_me:8738: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_sys_large_files=1; break
8742 echo "$as_me: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8745 rm -f conftest.$ac_objext conftest.$ac_ext
8749 echo "$as_me:8749: result: $ac_cv_sys_large_files" >&5
8750 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8751 if test "$ac_cv_sys_large_files" != no; then
8753 cat >>confdefs.h <<EOF
8754 #define _LARGE_FILES $ac_cv_sys_large_files
8761 if test "$enable_largefile" != no ; then
8762 echo "$as_me:8762: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8763 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
8764 if test "${ac_cv_sys_largefile_source+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 ac_cv_sys_largefile_source=no
8769 cat >conftest.$ac_ext <<_ACEOF
8770 #line 8770 "configure"
8771 #include "confdefs.h"
8781 rm -f conftest.$ac_objext
8782 if { (eval echo "$as_me:8782: \"$ac_compile\"") >&5
8783 (eval $ac_compile) 2>&5
8785 echo "$as_me:8785: \$? = $ac_status" >&5
8786 (exit $ac_status); } &&
8787 { ac_try='test -s conftest.$ac_objext'
8788 { (eval echo "$as_me:8788: \"$ac_try\"") >&5
8791 echo "$as_me:8791: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8795 echo "$as_me: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8798 rm -f conftest.$ac_objext conftest.$ac_ext
8799 cat >conftest.$ac_ext <<_ACEOF
8800 #line 8800 "configure"
8801 #include "confdefs.h"
8802 #define _LARGEFILE_SOURCE 1
8812 rm -f conftest.$ac_objext
8813 if { (eval echo "$as_me:8813: \"$ac_compile\"") >&5
8814 (eval $ac_compile) 2>&5
8816 echo "$as_me:8816: \$? = $ac_status" >&5
8817 (exit $ac_status); } &&
8818 { ac_try='test -s conftest.$ac_objext'
8819 { (eval echo "$as_me:8819: \"$ac_try\"") >&5
8822 echo "$as_me:8822: \$? = $ac_status" >&5
8823 (exit $ac_status); }; }; then
8824 ac_cv_sys_largefile_source=1; break
8826 echo "$as_me: failed program was:" >&5
8827 cat conftest.$ac_ext >&5
8829 rm -f conftest.$ac_objext conftest.$ac_ext
8833 echo "$as_me:8833: result: $ac_cv_sys_largefile_source" >&5
8834 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8835 if test "$ac_cv_sys_largefile_source" != no; then
8837 cat >>confdefs.h <<EOF
8838 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8844 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8845 # in glibc 2.1.3, but that breaks too many other things.
8846 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8847 echo "$as_me:8847: checking for fseeko" >&5
8848 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
8849 if test "${ac_cv_func_fseeko+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8853 #line 8853 "configure"
8854 #include "confdefs.h"
8859 return fseeko && fseeko (stdin, 0, 0);
8864 rm -f conftest.$ac_objext conftest$ac_exeext
8865 if { (eval echo "$as_me:8865: \"$ac_link\"") >&5
8866 (eval $ac_link) 2>&5
8868 echo "$as_me:8868: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -s conftest$ac_exeext'
8871 { (eval echo "$as_me:8871: \"$ac_try\"") >&5
8874 echo "$as_me:8874: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_func_fseeko=yes
8878 echo "$as_me: failed program was:" >&5
8879 cat conftest.$ac_ext >&5
8880 ac_cv_func_fseeko=no
8882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8884 echo "$as_me:8884: result: $ac_cv_func_fseeko" >&5
8885 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
8886 if test $ac_cv_func_fseeko = yes; then
8888 cat >>confdefs.h <<\EOF
8889 #define HAVE_FSEEKO 1
8894 # Normally we would collect these definitions in the config.h,
8895 # but (like _XOPEN_SOURCE), some environments rely on having these
8896 # defined before any of the system headers are included. Another
8897 # case comes up with C++, e.g., on AIX the compiler compiles the
8898 # header files by themselves before looking at the body files it is
8899 # told to compile. For ncurses, those header files do not include
8901 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
8902 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
8903 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
8905 echo "$as_me:8905: checking whether to use struct dirent64" >&5
8906 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
8907 if test "${cf_cv_struct_dirent64+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line 8912 "configure"
8913 #include "confdefs.h"
8915 #include <sys/types.h>
8922 /* if transitional largefile support is setup, this is true */
8923 extern struct dirent64 * readdir(DIR *);
8924 struct dirent64 *x = readdir((DIR *)0);
8925 struct dirent *y = readdir((DIR *)0);
8932 rm -f conftest.$ac_objext
8933 if { (eval echo "$as_me:8933: \"$ac_compile\"") >&5
8934 (eval $ac_compile) 2>&5
8936 echo "$as_me:8936: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -s conftest.$ac_objext'
8939 { (eval echo "$as_me:8939: \"$ac_try\"") >&5
8942 echo "$as_me:8942: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 cf_cv_struct_dirent64=yes
8946 echo "$as_me: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8948 cf_cv_struct_dirent64=no
8950 rm -f conftest.$ac_objext conftest.$ac_ext
8953 echo "$as_me:8953: result: $cf_cv_struct_dirent64" >&5
8954 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
8955 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
8956 #define HAVE_STRUCT_DIRENT64 1
8961 ### Enable compiling-in rcs id's
8962 echo "$as_me:8962: checking if RCS identifiers should be compiled-in" >&5
8963 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
8965 # Check whether --with-rcs-ids or --without-rcs-ids was given.
8966 if test "${with_rcs_ids+set}" = set; then
8967 withval="$with_rcs_ids"
8968 with_rcs_ids=$withval
8972 echo "$as_me:8972: result: $with_rcs_ids" >&5
8973 echo "${ECHO_T}$with_rcs_ids" >&6
8974 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
8975 #define USE_RCS_IDS 1
8978 ###############################################################################
8980 ### Note that some functions (such as const) are normally disabled anyway.
8981 echo "$as_me:8981: checking if you want to build with function extensions" >&5
8982 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
8984 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
8985 if test "${enable_ext_funcs+set}" = set; then
8986 enableval="$enable_ext_funcs"
8987 with_ext_funcs=$enableval
8991 echo "$as_me:8991: result: $with_ext_funcs" >&5
8992 echo "${ECHO_T}$with_ext_funcs" >&6
8993 if test "$with_ext_funcs" = yes ; then
8995 cat >>confdefs.h <<\EOF
8996 #define HAVE_USE_DEFAULT_COLORS 1
8999 cat >>confdefs.h <<\EOF
9000 #define NCURSES_EXT_FUNCS 1
9007 ### use option --enable-const to turn on use of const beyond that in XSI.
9008 echo "$as_me:9008: checking for extended use of const keyword" >&5
9009 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
9011 # Check whether --enable-const or --disable-const was given.
9012 if test "${enable_const+set}" = set; then
9013 enableval="$enable_const"
9014 with_ext_const=$enableval
9018 echo "$as_me:9018: result: $with_ext_const" >&5
9019 echo "${ECHO_T}$with_ext_const" >&6
9020 NCURSES_CONST='/*nothing*/'
9021 if test "$with_ext_const" = yes ; then
9025 ###############################################################################
9026 # These options are relatively safe to experiment with.
9028 echo "$as_me:9028: checking if you want all development code" >&5
9029 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
9031 # Check whether --with-develop or --without-develop was given.
9032 if test "${with_develop+set}" = set; then
9033 withval="$with_develop"
9034 with_develop=$withval
9038 echo "$as_me:9038: result: $with_develop" >&5
9039 echo "${ECHO_T}$with_develop" >&6
9041 ###############################################################################
9042 # These are just experimental, probably should not be in a package:
9044 # This is still experimental (20080329), but should ultimately be moved to
9045 # the script-block --with-normal, etc.
9047 echo "$as_me:9047: checking if you want to link with the pthread library" >&5
9048 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
9050 # Check whether --with-pthread or --without-pthread was given.
9051 if test "${with_pthread+set}" = set; then
9052 withval="$with_pthread"
9053 with_pthread=$withval
9057 echo "$as_me:9057: result: $with_pthread" >&5
9058 echo "${ECHO_T}$with_pthread" >&6
9060 if test "$with_pthread" != no ; then
9061 echo "$as_me:9061: checking for pthread.h" >&5
9062 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9063 if test "${ac_cv_header_pthread_h+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 cat >conftest.$ac_ext <<_ACEOF
9067 #line 9067 "configure"
9068 #include "confdefs.h"
9069 #include <pthread.h>
9071 if { (eval echo "$as_me:9071: \"$ac_cpp conftest.$ac_ext\"") >&5
9072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9074 egrep -v '^ *\+' conftest.er1 >conftest.err
9076 cat conftest.err >&5
9077 echo "$as_me:9077: \$? = $ac_status" >&5
9078 (exit $ac_status); } >/dev/null; then
9079 if test -s conftest.err; then
9080 ac_cpp_err=$ac_c_preproc_warn_flag
9087 if test -z "$ac_cpp_err"; then
9088 ac_cv_header_pthread_h=yes
9090 echo "$as_me: failed program was:" >&5
9091 cat conftest.$ac_ext >&5
9092 ac_cv_header_pthread_h=no
9094 rm -f conftest.err conftest.$ac_ext
9096 echo "$as_me:9096: result: $ac_cv_header_pthread_h" >&5
9097 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9098 if test $ac_cv_header_pthread_h = yes; then
9100 cat >>confdefs.h <<\EOF
9101 #define HAVE_PTHREADS_H 1
9104 echo "$as_me:9104: checking if we can link with the pthread library" >&5
9105 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
9106 cf_save_LIBS="$LIBS"
9107 LIBS="-lpthread $LIBS"
9108 cat >conftest.$ac_ext <<_ACEOF
9109 #line 9109 "configure"
9110 #include "confdefs.h"
9112 #include <pthread.h>
9118 int rc = pthread_create(0,0,0,0);
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (eval echo "$as_me:9125: \"$ac_link\"") >&5
9126 (eval $ac_link) 2>&5
9128 echo "$as_me:9128: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -s conftest$ac_exeext'
9131 { (eval echo "$as_me:9131: \"$ac_try\"") >&5
9134 echo "$as_me:9134: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9138 echo "$as_me: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9143 LIBS="$cf_save_LIBS"
9144 echo "$as_me:9144: result: $with_pthread" >&5
9145 echo "${ECHO_T}$with_pthread" >&6
9147 if test "$with_pthread" = yes ; then
9148 LIBS="-lpthread $LIBS"
9149 cat >>confdefs.h <<\EOF
9150 #define HAVE_LIBPTHREADS 1
9154 { { echo "$as_me:9154: error: Cannot link with pthread library" >&5
9155 echo "$as_me: error: Cannot link with pthread library" >&2;}
9156 { (exit 1); exit 1; }; }
9163 echo "$as_me:9163: checking if you want to use weak-symbols for pthreads" >&5
9164 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
9166 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
9167 if test "${enable_weak_symbols+set}" = set; then
9168 enableval="$enable_weak_symbols"
9169 use_weak_symbols=$withval
9173 echo "$as_me:9173: result: $use_weak_symbols" >&5
9174 echo "${ECHO_T}$use_weak_symbols" >&6
9175 if test "$use_weak_symbols" = yes ; then
9177 echo "$as_me:9177: checking if $CC supports weak symbols" >&5
9178 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
9179 if test "${cf_cv_weak_symbols+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 cat >conftest.$ac_ext <<_ACEOF
9184 #line 9184 "configure"
9185 #include "confdefs.h"
9192 #if defined(__GNUC__)
9193 # if defined __USE_ISOC99
9194 # define _cat_pragma(exp) _Pragma(#exp)
9195 # define _weak_pragma(exp) _cat_pragma(weak name)
9197 # define _weak_pragma(exp)
9199 # define _declare(name) __extension__ extern __typeof__(name) name
9200 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
9209 rm -f conftest.$ac_objext
9210 if { (eval echo "$as_me:9210: \"$ac_compile\"") >&5
9211 (eval $ac_compile) 2>&5
9213 echo "$as_me:9213: \$? = $ac_status" >&5
9214 (exit $ac_status); } &&
9215 { ac_try='test -s conftest.$ac_objext'
9216 { (eval echo "$as_me:9216: \"$ac_try\"") >&5
9219 echo "$as_me:9219: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 cf_cv_weak_symbols=yes
9223 echo "$as_me: failed program was:" >&5
9224 cat conftest.$ac_ext >&5
9225 cf_cv_weak_symbols=no
9227 rm -f conftest.$ac_objext conftest.$ac_ext
9230 echo "$as_me:9230: result: $cf_cv_weak_symbols" >&5
9231 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
9234 cf_cv_weak_symbols=no
9237 if test $cf_cv_weak_symbols = yes ; then
9238 cat >>confdefs.h <<\EOF
9239 #define USE_WEAK_SYMBOLS 1
9245 if test "$with_pthread" = "yes" ; then
9246 cat >>confdefs.h <<\EOF
9247 #define USE_PTHREADS 1
9250 enable_reentrant=yes
9251 if test $cf_cv_weak_symbols = yes ; then
9256 # OpenSUSE is installing ncurses6, using reentrant option.
9257 echo "$as_me:9257: checking for _nc_TABSIZE" >&5
9258 echo $ECHO_N "checking for _nc_TABSIZE... $ECHO_C" >&6
9259 if test "${ac_cv_func__nc_TABSIZE+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 cat >conftest.$ac_ext <<_ACEOF
9263 #line 9263 "configure"
9264 #include "confdefs.h"
9265 /* System header to define __stub macros and hopefully few prototypes,
9266 which can conflict with char _nc_TABSIZE (); below. */
9268 /* Override any gcc2 internal prototype to avoid an error. */
9272 /* We use char because int might match the return type of a gcc2
9273 builtin and then its argument prototype would still apply. */
9274 char _nc_TABSIZE ();
9280 /* The GNU C library defines this for functions which it implements
9281 to always fail with ENOSYS. Some functions are actually named
9282 something starting with __ and the normal name is an alias. */
9283 #if defined (__stub__nc_TABSIZE) || defined (__stub____nc_TABSIZE)
9293 rm -f conftest.$ac_objext conftest$ac_exeext
9294 if { (eval echo "$as_me:9294: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>&5
9297 echo "$as_me:9297: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
9299 { ac_try='test -s conftest$ac_exeext'
9300 { (eval echo "$as_me:9300: \"$ac_try\"") >&5
9303 echo "$as_me:9303: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 ac_cv_func__nc_TABSIZE=yes
9307 echo "$as_me: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9309 ac_cv_func__nc_TABSIZE=no
9311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9313 echo "$as_me:9313: result: $ac_cv_func__nc_TABSIZE" >&5
9314 echo "${ECHO_T}$ac_cv_func__nc_TABSIZE" >&6
9315 if test $ac_cv_func__nc_TABSIZE = yes; then
9316 assume_reentrant=yes
9321 # Reentrant code has to be opaque; there's little advantage to making ncurses
9322 # opaque outside of that, so there is no --enable-opaque option. We can use
9323 # this option without --with-pthreads, but this will be always set for
9325 echo "$as_me:9325: checking if you want experimental reentrant code" >&5
9326 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
9328 # Check whether --enable-reentrant or --disable-reentrant was given.
9329 if test "${enable_reentrant+set}" = set; then
9330 enableval="$enable_reentrant"
9331 with_reentrant=$enableval
9333 with_reentrant=$assume_reentrant
9335 echo "$as_me:9335: result: $with_reentrant" >&5
9336 echo "${ECHO_T}$with_reentrant" >&6
9337 if test "$with_reentrant" = yes ; then
9338 cf_cv_enable_reentrant=1
9339 if test $cf_cv_weak_symbols = yes ; then
9341 # remove pthread library from $LIBS
9342 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
9344 elif test "$assume_reentrant" = no ; then
9345 LIB_SUFFIX="t${LIB_SUFFIX}"
9347 cat >>confdefs.h <<\EOF
9348 #define USE_REENTRANT 1
9352 cf_cv_enable_reentrant=0
9355 ### Allow using a different wrap-prefix
9356 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
9357 echo "$as_me:9357: checking for prefix used to wrap public variables" >&5
9358 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
9360 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
9361 if test "${with_wrap_prefix+set}" = set; then
9362 withval="$with_wrap_prefix"
9363 NCURSES_WRAP_PREFIX=$withval
9365 NCURSES_WRAP_PREFIX=_nc_
9367 echo "$as_me:9367: result: $NCURSES_WRAP_PREFIX" >&5
9368 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
9370 NCURSES_WRAP_PREFIX=_nc_
9373 cat >>confdefs.h <<EOF
9374 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
9377 ###############################################################################
9379 ### use option --disable-echo to suppress full display compiling commands
9380 echo "$as_me:9380: checking if you want to display full commands during build" >&5
9381 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
9383 # Check whether --enable-echo or --disable-echo was given.
9384 if test "${enable_echo+set}" = set; then
9385 enableval="$enable_echo"
9386 with_echo=$enableval
9390 if test "$with_echo" = yes; then
9393 ECHO_LINK='@ echo linking $@ ... ;'
9395 echo "$as_me:9395: result: $with_echo" >&5
9396 echo "${ECHO_T}$with_echo" >&6
9398 ### use option --enable-warnings to turn on all gcc warnings
9399 echo "$as_me:9399: checking if you want to see compiler warnings" >&5
9400 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
9402 # Check whether --enable-warnings or --disable-warnings was given.
9403 if test "${enable_warnings+set}" = set; then
9404 enableval="$enable_warnings"
9405 with_warnings=$enableval
9407 echo "$as_me:9407: result: $with_warnings" >&5
9408 echo "${ECHO_T}$with_warnings" >&6
9410 if test "x$with_warnings" = "xyes"; then
9412 ADAFLAGS="$ADAFLAGS -gnatg"
9416 if test "$GCC" = yes ; then
9419 echo "$as_me:9419: checking if this is really Intel C compiler" >&5
9420 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
9421 cf_save_CFLAGS="$CFLAGS"
9422 CFLAGS="$CFLAGS -no-gcc"
9423 cat >conftest.$ac_ext <<_ACEOF
9424 #line 9424 "configure"
9425 #include "confdefs.h"
9431 #ifdef __INTEL_COMPILER
9440 rm -f conftest.$ac_objext
9441 if { (eval echo "$as_me:9441: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>&5
9444 echo "$as_me:9444: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -s conftest.$ac_objext'
9447 { (eval echo "$as_me:9447: \"$ac_try\"") >&5
9450 echo "$as_me:9450: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9453 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
9456 echo "$as_me: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9459 rm -f conftest.$ac_objext conftest.$ac_ext
9460 CFLAGS="$cf_save_CFLAGS"
9461 echo "$as_me:9461: result: $INTEL_COMPILER" >&5
9462 echo "${ECHO_T}$INTEL_COMPILER" >&6
9467 cat > conftest.$ac_ext <<EOF
9468 #line 9468 "${as_me:-configure}"
9469 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
9472 if test "$INTEL_COMPILER" = yes
9474 # The "-wdXXX" options suppress warnings:
9475 # remark #1419: external declaration in primary source file
9476 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9477 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
9478 # remark #193: zero used for undefined preprocessing identifier
9479 # remark #593: variable "curs_sb_left_arrow" was set but never used
9480 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
9481 # remark #869: parameter "tw" was never referenced
9482 # remark #981: operands are evaluated in unspecified order
9483 # warning #279: controlling expression is constant
9485 { echo "$as_me:9485: checking for $CC warning options..." >&5
9486 echo "$as_me: checking for $CC warning options..." >&6;}
9487 cf_save_CFLAGS="$CFLAGS"
9488 EXTRA_CFLAGS="-Wall"
9500 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9501 if { (eval echo "$as_me:9501: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>&5
9504 echo "$as_me:9504: \$? = $ac_status" >&5
9505 (exit $ac_status); }; then
9506 test -n "$verbose" && echo "$as_me:9506: result: ... -$cf_opt" >&5
9507 echo "${ECHO_T}... -$cf_opt" >&6
9508 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9511 CFLAGS="$cf_save_CFLAGS"
9513 elif test "$GCC" = yes
9515 { echo "$as_me:9515: checking for $CC warning options..." >&5
9516 echo "$as_me: checking for $CC warning options..." >&6;}
9517 cf_save_CFLAGS="$CFLAGS"
9520 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
9521 for cf_opt in W Wall \
9522 Wbad-function-cast \
9526 Wmissing-declarations \
9527 Wmissing-prototypes \
9531 Wstrict-prototypes \
9532 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
9534 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9535 if { (eval echo "$as_me:9535: \"$ac_compile\"") >&5
9536 (eval $ac_compile) 2>&5
9538 echo "$as_me:9538: \$? = $ac_status" >&5
9539 (exit $ac_status); }; then
9540 test -n "$verbose" && echo "$as_me:9540: result: ... -$cf_opt" >&5
9541 echo "${ECHO_T}... -$cf_opt" >&6
9542 case $cf_opt in #(vi
9544 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
9547 case $GCC_VERSION in
9549 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
9551 echo "${as_me:-configure}:9551: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
9557 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9560 CFLAGS="$cf_save_CFLAGS"
9566 if test "$GCC" = yes
9568 cat > conftest.i <<EOF
9570 #define GCC_PRINTF 0
9575 #ifndef GCC_NORETURN
9576 #define GCC_NORETURN /* nothing */
9579 #define GCC_UNUSED /* nothing */
9582 if test "$GCC" = yes
9584 { echo "$as_me:9584: checking for $CC __attribute__ directives..." >&5
9585 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
9586 cat > conftest.$ac_ext <<EOF
9587 #line 9587 "${as_me:-configure}"
9588 #include "confdefs.h"
9589 #include "conftest.h"
9590 #include "conftest.i"
9592 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
9594 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
9597 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
9599 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
9601 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
9602 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
9603 extern void foo(void) GCC_NORETURN;
9604 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
9606 cf_printf_attribute=no
9607 cf_scanf_attribute=no
9608 for cf_attribute in scanf printf unused noreturn
9611 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9613 cf_directive="__attribute__(($cf_attribute))"
9614 echo "checking for $CC $cf_directive" 1>&5
9616 case $cf_attribute in #(vi
9618 cf_printf_attribute=yes
9619 cat >conftest.h <<EOF
9620 #define GCC_$cf_ATTRIBUTE 1
9624 cf_scanf_attribute=yes
9625 cat >conftest.h <<EOF
9626 #define GCC_$cf_ATTRIBUTE 1
9630 cat >conftest.h <<EOF
9631 #define GCC_$cf_ATTRIBUTE $cf_directive
9636 if { (eval echo "$as_me:9636: \"$ac_compile\"") >&5
9637 (eval $ac_compile) 2>&5
9639 echo "$as_me:9639: \$? = $ac_status" >&5
9640 (exit $ac_status); }; then
9641 test -n "$verbose" && echo "$as_me:9641: result: ... $cf_attribute" >&5
9642 echo "${ECHO_T}... $cf_attribute" >&6
9643 cat conftest.h >>confdefs.h
9644 case $cf_attribute in #(vi
9646 if test "$cf_printf_attribute" = no ; then
9647 cat >>confdefs.h <<EOF
9648 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
9651 cat >>confdefs.h <<EOF
9652 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
9657 if test "$cf_scanf_attribute" = no ; then
9658 cat >>confdefs.h <<EOF
9659 #define GCC_SCANFLIKE(fmt,var) /* nothing */
9662 cat >>confdefs.h <<EOF
9663 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
9671 fgrep define conftest.i >>confdefs.h
9676 ### use option --enable-assertions to turn on generation of assertion code
9677 echo "$as_me:9677: checking if you want to enable runtime assertions" >&5
9678 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
9680 # Check whether --enable-assertions or --disable-assertions was given.
9681 if test "${enable_assertions+set}" = set; then
9682 enableval="$enable_assertions"
9683 with_assertions=$enableval
9687 echo "$as_me:9687: result: $with_assertions" >&5
9688 echo "${ECHO_T}$with_assertions" >&6
9691 if test "$with_assertions" = no
9693 cat >>confdefs.h <<\EOF
9697 CPPFLAGS="$CPPFLAGS -DNDEBUG"
9700 ADAFLAGS="$ADAFLAGS -gnata"
9705 ### use option --disable-leaks to suppress "permanent" leaks, for testing
9706 cat >>confdefs.h <<\EOF
9707 #define HAVE_NC_ALLOC_H 1
9710 ### use option --enable-expanded to generate certain macros as functions
9712 # Check whether --enable-expanded or --disable-expanded was given.
9713 if test "${enable_expanded+set}" = set; then
9714 enableval="$enable_expanded"
9715 test "$enableval" = yes && cat >>confdefs.h <<\EOF
9716 #define NCURSES_EXPANDED 1
9721 ### use option --disable-macros to suppress macros in favor of functions
9723 # Check whether --enable-macros or --disable-macros was given.
9724 if test "${enable_macros+set}" = set; then
9725 enableval="$enable_macros"
9726 test "$enableval" = no && cat >>confdefs.h <<\EOF
9727 #define NCURSES_NOMACROS 1
9732 # Normally we only add trace() to the debug-library. Allow this to be
9733 # extended to all models of the ncurses library:
9735 case "$CFLAGS $CPPFLAGS" in
9741 echo "$as_me:9741: checking whether to add trace feature to all models" >&5
9742 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
9744 # Check whether --with-trace or --without-trace was given.
9745 if test "${with_trace+set}" = set; then
9746 withval="$with_trace"
9747 cf_with_trace=$withval
9749 cf_with_trace=$cf_all_traces
9751 echo "$as_me:9751: result: $cf_with_trace" >&5
9752 echo "${ECHO_T}$cf_with_trace" >&6
9754 if test "$cf_with_trace" = yes ; then
9760 cf_new_extra_cppflags=
9762 for cf_add_cflags in -DTRACE
9764 case $cf_fix_cppflags in
9766 case $cf_add_cflags in #(vi
9767 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9768 case $cf_add_cflags in
9770 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9772 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9773 && test -z "${cf_tst_cflags}" \
9774 && cf_fix_cppflags=yes
9776 if test $cf_fix_cppflags = yes ; then
9777 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9779 elif test "${cf_tst_cflags}" = "\"'" ; then
9780 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9786 *$cf_add_cflags) #(vi
9789 case $cf_add_cflags in #(vi
9791 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9793 CPPFLAGS=`echo "$CPPFLAGS" | \
9794 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9795 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9799 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9804 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9809 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9811 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9813 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9814 && test -z "${cf_tst_cflags}" \
9815 && cf_fix_cppflags=no
9820 if test -n "$cf_new_cflags" ; then
9822 CFLAGS="$CFLAGS $cf_new_cflags"
9825 if test -n "$cf_new_cppflags" ; then
9827 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9830 if test -n "$cf_new_extra_cppflags" ; then
9832 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9839 ### Checks for libraries.
9840 case $cf_cv_system_name in #(vi
9844 echo "$as_me:9844: checking for gettimeofday" >&5
9845 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
9846 if test "${ac_cv_func_gettimeofday+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 cat >conftest.$ac_ext <<_ACEOF
9850 #line 9850 "configure"
9851 #include "confdefs.h"
9852 /* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char gettimeofday (); below. */
9855 /* Override any gcc2 internal prototype to avoid an error. */
9859 /* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */
9861 char gettimeofday ();
9867 /* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
9870 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:9881: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>&5
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:9887: \"$ac_try\"") >&5
9890 echo "$as_me:9890: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 ac_cv_func_gettimeofday=yes
9894 echo "$as_me: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9896 ac_cv_func_gettimeofday=no
9898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9900 echo "$as_me:9900: result: $ac_cv_func_gettimeofday" >&5
9901 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
9902 if test $ac_cv_func_gettimeofday = yes; then
9903 cat >>confdefs.h <<\EOF
9904 #define HAVE_GETTIMEOFDAY 1
9909 echo "$as_me:9909: checking for gettimeofday in -lbsd" >&5
9910 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
9911 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 ac_check_lib_save_LIBS=$LIBS
9916 cat >conftest.$ac_ext <<_ACEOF
9917 #line 9917 "configure"
9918 #include "confdefs.h"
9920 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9926 char gettimeofday ();
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (eval echo "$as_me:9936: \"$ac_link\"") >&5
9937 (eval $ac_link) 2>&5
9939 echo "$as_me:9939: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:9942: \"$ac_try\"") >&5
9945 echo "$as_me:9945: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_lib_bsd_gettimeofday=yes
9949 echo "$as_me: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9951 ac_cv_lib_bsd_gettimeofday=no
9953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_lib_save_LIBS
9956 echo "$as_me:9956: result: $ac_cv_lib_bsd_gettimeofday" >&5
9957 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
9958 if test $ac_cv_lib_bsd_gettimeofday = yes; then
9959 cat >>confdefs.h <<\EOF
9960 #define HAVE_GETTIMEOFDAY 1
9970 ### Checks for header files.
9971 echo "$as_me:9971: checking for ANSI C header files" >&5
9972 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9973 if test "${ac_cv_header_stdc+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line 9977 "configure"
9978 #include "confdefs.h"
9985 if { (eval echo "$as_me:9985: \"$ac_cpp conftest.$ac_ext\"") >&5
9986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9988 egrep -v '^ *\+' conftest.er1 >conftest.err
9990 cat conftest.err >&5
9991 echo "$as_me:9991: \$? = $ac_status" >&5
9992 (exit $ac_status); } >/dev/null; then
9993 if test -s conftest.err; then
9994 ac_cpp_err=$ac_c_preproc_warn_flag
10001 if test -z "$ac_cpp_err"; then
10002 ac_cv_header_stdc=yes
10004 echo "$as_me: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10006 ac_cv_header_stdc=no
10008 rm -f conftest.err conftest.$ac_ext
10010 if test $ac_cv_header_stdc = yes; then
10011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10012 cat >conftest.$ac_ext <<_ACEOF
10013 #line 10013 "configure"
10014 #include "confdefs.h"
10015 #include <string.h>
10018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10019 egrep "memchr" >/dev/null 2>&1; then
10022 ac_cv_header_stdc=no
10028 if test $ac_cv_header_stdc = yes; then
10029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10030 cat >conftest.$ac_ext <<_ACEOF
10031 #line 10031 "configure"
10032 #include "confdefs.h"
10033 #include <stdlib.h>
10036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10037 egrep "free" >/dev/null 2>&1; then
10040 ac_cv_header_stdc=no
10046 if test $ac_cv_header_stdc = yes; then
10047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10048 if test "$cross_compiling" = yes; then
10051 cat >conftest.$ac_ext <<_ACEOF
10052 #line 10052 "configure"
10053 #include "confdefs.h"
10055 #if ((' ' & 0x0FF) == 0x020)
10056 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10057 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10059 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10060 || ('j' <= (c) && (c) <= 'r') \
10061 || ('s' <= (c) && (c) <= 'z'))
10062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10070 for (i = 0; i < 256; i++)
10071 if (XOR (islower (i), ISLOWER (i))
10072 || toupper (i) != TOUPPER (i))
10073 $ac_main_return(2);
10074 $ac_main_return (0);
10077 rm -f conftest$ac_exeext
10078 if { (eval echo "$as_me:10078: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>&5
10081 echo "$as_me:10081: \$? = $ac_status" >&5
10082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10083 { (eval echo "$as_me:10083: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10086 echo "$as_me:10086: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10090 echo "$as_me: program exited with status $ac_status" >&5
10091 echo "$as_me: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10093 ac_cv_header_stdc=no
10095 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10099 echo "$as_me:10099: result: $ac_cv_header_stdc" >&5
10100 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10101 if test $ac_cv_header_stdc = yes; then
10103 cat >>confdefs.h <<\EOF
10104 #define STDC_HEADERS 1
10109 ac_header_dirent=no
10110 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10111 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10112 echo "$as_me:10112: checking for $ac_hdr that defines DIR" >&5
10113 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 cat >conftest.$ac_ext <<_ACEOF
10118 #line 10118 "configure"
10119 #include "confdefs.h"
10120 #include <sys/types.h>
10132 rm -f conftest.$ac_objext
10133 if { (eval echo "$as_me:10133: \"$ac_compile\"") >&5
10134 (eval $ac_compile) 2>&5
10136 echo "$as_me:10136: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -s conftest.$ac_objext'
10139 { (eval echo "$as_me:10139: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10142 echo "$as_me:10142: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 eval "$as_ac_Header=yes"
10146 echo "$as_me: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 eval "$as_ac_Header=no"
10150 rm -f conftest.$ac_objext conftest.$ac_ext
10152 echo "$as_me:10152: result: `eval echo '${'$as_ac_Header'}'`" >&5
10153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10155 cat >>confdefs.h <<EOF
10156 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10159 ac_header_dirent=$ac_hdr; break
10163 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10164 if test $ac_header_dirent = dirent.h; then
10165 echo "$as_me:10165: checking for opendir in -ldir" >&5
10166 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
10167 if test "${ac_cv_lib_dir_opendir+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 ac_check_lib_save_LIBS=$LIBS
10172 cat >conftest.$ac_ext <<_ACEOF
10173 #line 10173 "configure"
10174 #include "confdefs.h"
10176 /* Override any gcc2 internal prototype to avoid an error. */
10180 /* We use char because int might match the return type of a gcc2
10181 builtin and then its argument prototype would still apply. */
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (eval echo "$as_me:10192: \"$ac_link\"") >&5
10193 (eval $ac_link) 2>&5
10195 echo "$as_me:10195: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -s conftest$ac_exeext'
10198 { (eval echo "$as_me:10198: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10201 echo "$as_me:10201: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_lib_dir_opendir=yes
10205 echo "$as_me: failed program was:" >&5
10206 cat conftest.$ac_ext >&5
10207 ac_cv_lib_dir_opendir=no
10209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10210 LIBS=$ac_check_lib_save_LIBS
10212 echo "$as_me:10212: result: $ac_cv_lib_dir_opendir" >&5
10213 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
10214 if test $ac_cv_lib_dir_opendir = yes; then
10219 echo "$as_me:10219: checking for opendir in -lx" >&5
10220 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
10221 if test "${ac_cv_lib_x_opendir+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 ac_check_lib_save_LIBS=$LIBS
10226 cat >conftest.$ac_ext <<_ACEOF
10227 #line 10227 "configure"
10228 #include "confdefs.h"
10230 /* Override any gcc2 internal prototype to avoid an error. */
10234 /* We use char because int might match the return type of a gcc2
10235 builtin and then its argument prototype would still apply. */
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (eval echo "$as_me:10246: \"$ac_link\"") >&5
10247 (eval $ac_link) 2>&5
10249 echo "$as_me:10249: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (eval echo "$as_me:10252: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10255 echo "$as_me:10255: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_lib_x_opendir=yes
10259 echo "$as_me: failed program was:" >&5
10260 cat conftest.$ac_ext >&5
10261 ac_cv_lib_x_opendir=no
10263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10266 echo "$as_me:10266: result: $ac_cv_lib_x_opendir" >&5
10267 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
10268 if test $ac_cv_lib_x_opendir = yes; then
10274 echo "$as_me:10274: checking whether time.h and sys/time.h may both be included" >&5
10275 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10276 if test "${ac_cv_header_time+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line 10280 "configure"
10281 #include "confdefs.h"
10282 #include <sys/types.h>
10283 #include <sys/time.h>
10289 if ((struct tm *) 0)
10295 rm -f conftest.$ac_objext
10296 if { (eval echo "$as_me:10296: \"$ac_compile\"") >&5
10297 (eval $ac_compile) 2>&5
10299 echo "$as_me:10299: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -s conftest.$ac_objext'
10302 { (eval echo "$as_me:10302: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:10305: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_header_time=yes
10309 echo "$as_me: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10311 ac_cv_header_time=no
10313 rm -f conftest.$ac_objext conftest.$ac_ext
10315 echo "$as_me:10315: result: $ac_cv_header_time" >&5
10316 echo "${ECHO_T}$ac_cv_header_time" >&6
10317 if test $ac_cv_header_time = yes; then
10319 cat >>confdefs.h <<\EOF
10320 #define TIME_WITH_SYS_TIME 1
10325 ### checks for compiler characteristics
10327 ac_cpp='$CPP $CPPFLAGS'
10328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10331 ac_main_return=return
10333 echo "$as_me:10333: checking for $CC option to accept ANSI C" >&5
10334 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10335 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 ac_cv_prog_cc_stdc=no
10340 cat >conftest.$ac_ext <<_ACEOF
10341 #line 10341 "configure"
10342 #include "confdefs.h"
10343 #include <stdarg.h>
10345 #include <sys/types.h>
10346 #include <sys/stat.h>
10347 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10348 struct buf { int x; };
10349 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10350 static char *e (p, i)
10356 static char *f (char * (*g) (char **, int), char **p, ...)
10361 s = g (p, va_arg (v,int));
10365 int test (int i, double x);
10366 struct s1 {int (*f) (int a);};
10367 struct s2 {int (*f) (double a);};
10368 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10374 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10379 # Don't try gcc -ansi; that turns off useful extensions and
10380 # breaks some systems' header files.
10381 # AIX -qlanglvl=ansi
10382 # Ultrix and OSF/1 -std1
10383 # HP-UX 10.20 and later -Ae
10384 # HP-UX older versions -Aa -D_HPUX_SOURCE
10385 # SVR4 -Xc -D__EXTENSIONS__
10386 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10388 CC="$ac_save_CC $ac_arg"
10389 rm -f conftest.$ac_objext
10390 if { (eval echo "$as_me:10390: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>&5
10393 echo "$as_me:10393: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -s conftest.$ac_objext'
10396 { (eval echo "$as_me:10396: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10399 echo "$as_me:10399: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_cv_prog_cc_stdc=$ac_arg
10404 echo "$as_me: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10407 rm -f conftest.$ac_objext
10409 rm -f conftest.$ac_ext conftest.$ac_objext
10414 case "x$ac_cv_prog_cc_stdc" in
10416 echo "$as_me:10416: result: none needed" >&5
10417 echo "${ECHO_T}none needed" >&6 ;;
10419 echo "$as_me:10419: result: $ac_cv_prog_cc_stdc" >&5
10420 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10421 CC="$CC $ac_cv_prog_cc_stdc" ;;
10424 echo "$as_me:10424: checking for an ANSI C-conforming const" >&5
10425 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10426 if test "${ac_cv_c_const+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10429 cat >conftest.$ac_ext <<_ACEOF
10430 #line 10430 "configure"
10431 #include "confdefs.h"
10436 /* FIXME: Include the comments suggested by Paul. */
10437 #ifndef __cplusplus
10438 /* Ultrix mips cc rejects this. */
10439 typedef int charset[2];
10441 /* SunOS 4.1.1 cc rejects this. */
10442 char const *const *ccp;
10444 /* NEC SVR4.0.2 mips cc rejects this. */
10445 struct point {int x, y;};
10446 static struct point const zero = {0,0};
10447 /* AIX XL C 1.02.0.0 rejects this.
10448 It does not let you subtract one const X* pointer from another in
10449 an arm of an if-expression whose if-part is not a constant
10451 const char *g = "string";
10452 ccp = &g + (g ? g-g : 0);
10453 /* HPUX 7.0 cc rejects these. */
10456 ccp = (char const *const *) p;
10457 { /* SCO 3.2v4 cc rejects this. */
10459 char const *s = 0 ? (char *) 0 : (char const *) 0;
10463 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10464 int x[] = {25, 17};
10465 const int *foo = &x[0];
10468 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10469 typedef const int *iptr;
10473 { /* AIX XL C 1.02.0.0 rejects this saying
10474 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10475 struct s { int j; const int *ap[3]; };
10476 struct s *b; b->j = 5;
10478 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10479 const int foo = 10;
10487 rm -f conftest.$ac_objext
10488 if { (eval echo "$as_me:10488: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>&5
10491 echo "$as_me:10491: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -s conftest.$ac_objext'
10494 { (eval echo "$as_me:10494: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10501 echo "$as_me: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10505 rm -f conftest.$ac_objext conftest.$ac_ext
10507 echo "$as_me:10507: result: $ac_cv_c_const" >&5
10508 echo "${ECHO_T}$ac_cv_c_const" >&6
10509 if test $ac_cv_c_const = no; then
10511 cat >>confdefs.h <<\EOF
10517 ### Checks for external-data
10519 echo "$as_me:10519: checking if data-only library module links" >&5
10520 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
10521 if test "${cf_cv_link_dataonly+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 cat >conftest.$ac_ext <<EOF
10527 #line 10527 "configure"
10528 int testdata[3] = { 123, 456, 789 };
10530 if { (eval echo "$as_me:10530: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>&5
10533 echo "$as_me:10533: \$? = $ac_status" >&5
10534 (exit $ac_status); } ; then
10535 mv conftest.o data.o && \
10536 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
10538 rm -f conftest.$ac_ext data.o
10539 cat >conftest.$ac_ext <<EOF
10540 #line 10540 "configure"
10544 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
10546 extern int testdata[3];
10547 return testdata[0] == 123
10548 && testdata[1] == 456
10549 && testdata[2] == 789;
10553 if { (eval echo "$as_me:10553: \"$ac_compile\"") >&5
10554 (eval $ac_compile) 2>&5
10556 echo "$as_me:10556: \$? = $ac_status" >&5
10557 (exit $ac_status); }; then
10558 mv conftest.o func.o && \
10559 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
10561 rm -f conftest.$ac_ext func.o
10562 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
10563 cf_saveLIBS="$LIBS"
10564 LIBS="conftest.a $LIBS"
10565 if test "$cross_compiling" = yes; then
10566 cf_cv_link_dataonly=unknown
10568 cat >conftest.$ac_ext <<_ACEOF
10569 #line 10569 "configure"
10570 #include "confdefs.h"
10574 extern int testfunc();
10575 ${cf_cv_main_return:-return} (!testfunc());
10579 rm -f conftest$ac_exeext
10580 if { (eval echo "$as_me:10580: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>&5
10583 echo "$as_me:10583: \$? = $ac_status" >&5
10584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10585 { (eval echo "$as_me:10585: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:10588: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 cf_cv_link_dataonly=yes
10592 echo "$as_me: program exited with status $ac_status" >&5
10593 echo "$as_me: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10595 cf_cv_link_dataonly=no
10597 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10599 LIBS="$cf_saveLIBS"
10603 echo "$as_me:10603: result: $cf_cv_link_dataonly" >&5
10604 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
10606 if test "$cf_cv_link_dataonly" = no ; then
10607 cat >>confdefs.h <<\EOF
10608 #define BROKEN_LINKER 1
10614 ### Checks for library functions.
10616 echo "$as_me:10616: checking for working mkstemp" >&5
10617 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
10618 if test "${cf_cv_func_mkstemp+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 if test "$cross_compiling" = yes; then
10624 echo "$as_me:10624: checking for mkstemp" >&5
10625 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
10626 if test "${ac_cv_func_mkstemp+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 cat >conftest.$ac_ext <<_ACEOF
10630 #line 10630 "configure"
10631 #include "confdefs.h"
10632 /* System header to define __stub macros and hopefully few prototypes,
10633 which can conflict with char mkstemp (); below. */
10634 #include <assert.h>
10635 /* Override any gcc2 internal prototype to avoid an error. */
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10647 /* The GNU C library defines this for functions which it implements
10648 to always fail with ENOSYS. Some functions are actually named
10649 something starting with __ and the normal name is an alias. */
10650 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:10661: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>&5
10664 echo "$as_me:10664: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:10667: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:10670: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_func_mkstemp=yes
10674 echo "$as_me: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10676 ac_cv_func_mkstemp=no
10678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10680 echo "$as_me:10680: result: $ac_cv_func_mkstemp" >&5
10681 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
10684 cat >conftest.$ac_ext <<_ACEOF
10685 #line 10685 "configure"
10686 #include "confdefs.h"
10688 #include <sys/types.h>
10689 #include <stdlib.h>
10691 #include <string.h>
10692 #include <sys/stat.h>
10695 char *tmpl = "conftestXXXXXX";
10703 for (n = 0; n < 2; ++n) {
10704 strcpy(name[n], tmpl);
10705 if ((fd = mkstemp(name[n])) >= 0) {
10706 if (!strcmp(name[n], tmpl)
10707 || stat(name[n], &sb) != 0
10708 || (sb.st_mode & S_IFMT) != S_IFREG
10709 || (sb.st_mode & 077) != 0) {
10716 && !strcmp(name[0], name[1]))
10718 ${cf_cv_main_return:-return}(result);
10722 rm -f conftest$ac_exeext
10723 if { (eval echo "$as_me:10723: \"$ac_link\"") >&5
10724 (eval $ac_link) 2>&5
10726 echo "$as_me:10726: \$? = $ac_status" >&5
10727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10728 { (eval echo "$as_me:10728: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10731 echo "$as_me:10731: \$? = $ac_status" >&5
10732 (exit $ac_status); }; }; then
10733 cf_cv_func_mkstemp=yes
10736 echo "$as_me: program exited with status $ac_status" >&5
10737 echo "$as_me: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 cf_cv_func_mkstemp=no
10742 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10746 echo "$as_me:10746: result: $cf_cv_func_mkstemp" >&5
10747 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
10748 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
10749 cat >>confdefs.h <<\EOF
10750 #define HAVE_MKSTEMP 1
10755 echo "$as_me:10755: checking return type of signal handlers" >&5
10756 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10757 if test "${ac_cv_type_signal+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 cat >conftest.$ac_ext <<_ACEOF
10761 #line 10761 "configure"
10762 #include "confdefs.h"
10763 #include <sys/types.h>
10764 #include <signal.h>
10769 extern "C" void (*signal (int, void (*)(int)))(int);
10771 void (*signal ()) ();
10782 rm -f conftest.$ac_objext
10783 if { (eval echo "$as_me:10783: \"$ac_compile\"") >&5
10784 (eval $ac_compile) 2>&5
10786 echo "$as_me:10786: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (eval echo "$as_me:10789: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:10792: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_type_signal=void
10796 echo "$as_me: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 ac_cv_type_signal=int
10800 rm -f conftest.$ac_objext conftest.$ac_ext
10802 echo "$as_me:10802: result: $ac_cv_type_signal" >&5
10803 echo "${ECHO_T}$ac_cv_type_signal" >&6
10805 cat >>confdefs.h <<EOF
10806 #define RETSIGTYPE $ac_cv_type_signal
10809 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
10810 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10811 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10814 if test "$cf_with_ada" != "no" ; then
10816 cf_ada_make=gnatmake
10817 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
10818 set dummy $cf_ada_make; ac_word=$2
10819 echo "$as_me:10819: checking for $ac_word" >&5
10820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10821 if test "${ac_cv_prog_gnat_exists+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 if test -n "$gnat_exists"; then
10825 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
10827 ac_save_IFS=$IFS; IFS=$ac_path_separator
10829 for ac_dir in $ac_dummy; do
10831 test -z "$ac_dir" && ac_dir=.
10832 $as_executable_p "$ac_dir/$ac_word" || continue
10833 ac_cv_prog_gnat_exists="yes"
10834 echo "$as_me:10834: found $ac_dir/$ac_word" >&5
10838 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
10841 gnat_exists=$ac_cv_prog_gnat_exists
10842 if test -n "$gnat_exists"; then
10843 echo "$as_me:10843: result: $gnat_exists" >&5
10844 echo "${ECHO_T}$gnat_exists" >&6
10846 echo "$as_me:10846: result: no" >&5
10847 echo "${ECHO_T}no" >&6
10850 if test "$ac_cv_prog_gnat_exists" = no; then
10854 echo "$as_me:10854: checking for gnat version" >&5
10855 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
10856 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
10857 grep '[0-9].[0-9][0-9]*' |\
10858 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
10859 echo "$as_me:10859: result: $cf_gnat_version" >&5
10860 echo "${ECHO_T}$cf_gnat_version" >&6
10862 case $cf_gnat_version in #(vi
10863 3.1[1-9]*|3.[2-9]*|[4-9].*) #(vi
10864 cf_cv_prog_gnat_correct=yes
10867 { echo "$as_me:10867: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
10868 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
10869 cf_cv_prog_gnat_correct=no
10873 # Extract the first word of "m4", so it can be a program name with args.
10874 set dummy m4; ac_word=$2
10875 echo "$as_me:10875: checking for $ac_word" >&5
10876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10877 if test "${ac_cv_prog_M4_exists+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 if test -n "$M4_exists"; then
10881 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
10883 ac_save_IFS=$IFS; IFS=$ac_path_separator
10885 for ac_dir in $ac_dummy; do
10887 test -z "$ac_dir" && ac_dir=.
10888 $as_executable_p "$ac_dir/$ac_word" || continue
10889 ac_cv_prog_M4_exists="yes"
10890 echo "$as_me:10890: found $ac_dir/$ac_word" >&5
10894 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
10897 M4_exists=$ac_cv_prog_M4_exists
10898 if test -n "$M4_exists"; then
10899 echo "$as_me:10899: result: $M4_exists" >&5
10900 echo "${ECHO_T}$M4_exists" >&6
10902 echo "$as_me:10902: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10906 if test "$ac_cv_prog_M4_exists" = no; then
10907 cf_cv_prog_gnat_correct=no
10908 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
10910 if test "$cf_cv_prog_gnat_correct" = yes; then
10911 echo "$as_me:10911: checking if GNAT works" >&5
10912 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
10914 rm -rf conftest* *~conftest*
10915 cat >>conftest.ads <<CF_EOF
10916 procedure conftest;
10918 cat >>conftest.adb <<CF_EOF
10921 procedure conftest is
10923 Text_IO.Put ("Hello World");
10925 GNAT.OS_Lib.OS_Exit (0);
10928 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
10929 if ( ./conftest 1>&5 2>&1 ) ; then
10930 cf_cv_prog_gnat_correct=yes
10932 cf_cv_prog_gnat_correct=no
10935 cf_cv_prog_gnat_correct=no
10937 rm -rf conftest* *~conftest*
10939 echo "$as_me:10939: result: $cf_cv_prog_gnat_correct" >&5
10940 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
10944 if test "$cf_cv_prog_gnat_correct" = yes; then
10946 # make ADAFLAGS consistent with CFLAGS
10950 ADAFLAGS="$ADAFLAGS -g"
10957 ADAFLAGS="$ADAFLAGS -O3"
10962 echo "$as_me:10962: checking if GNAT supports generics" >&5
10963 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
10964 case $cf_gnat_version in #(vi
10965 3.[1-9]*|[4-9].*) #(vi
10966 cf_gnat_generics=yes
10969 cf_gnat_generics=no
10972 echo "$as_me:10972: result: $cf_gnat_generics" >&5
10973 echo "${ECHO_T}$cf_gnat_generics" >&6
10975 if test "$cf_gnat_generics" = yes
10977 cf_compile_generics=generics
10978 cf_generic_objects="\${GENOBJS}"
10980 cf_compile_generics=
10981 cf_generic_objects=
10984 echo "$as_me:10984: checking if GNAT supports SIGINT" >&5
10985 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
10986 if test "${cf_cv_gnat_sigint+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 rm -rf conftest* *~conftest*
10991 cat >>conftest.ads <<CF_EOF
10992 with Ada.Interrupts.Names;
10994 package ConfTest is
10996 pragma Warnings (Off); -- the next pragma exists since 3.11p
10997 pragma Unreserve_All_Interrupts;
10998 pragma Warnings (On);
11000 protected Process is
11002 function Continue return Boolean;
11003 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
11005 Done : Boolean := False;
11010 cat >>conftest.adb <<CF_EOF
11011 package body ConfTest is
11012 protected body Process is
11017 function Continue return Boolean is
11024 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11025 cf_cv_gnat_sigint=yes
11027 cf_cv_gnat_sigint=no
11029 rm -rf conftest* *~conftest*
11032 echo "$as_me:11032: result: $cf_cv_gnat_sigint" >&5
11033 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
11035 if test $cf_cv_gnat_sigint = yes ; then
11038 USE_GNAT_SIGINT="#"
11041 echo "$as_me:11041: checking if GNAT pragma Unreferenced works" >&5
11042 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
11043 if test "${cf_cv_pragma_unreferenced+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 rm -rf conftest* *~conftest*
11048 cat >>conftest.ads <<CF_EOF
11049 procedure conftest;
11051 cat >>conftest.adb <<CF_EOF
11054 procedure conftest is
11056 pragma Unreferenced (test);
11059 Text_IO.Put ("Hello World");
11061 GNAT.OS_Lib.OS_Exit (0);
11064 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11065 cf_cv_pragma_unreferenced=yes
11067 cf_cv_pragma_unreferenced=no
11069 rm -rf conftest* *~conftest*
11072 echo "$as_me:11072: result: $cf_cv_pragma_unreferenced" >&5
11073 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
11075 # if the pragma is supported, use it (needed in the Trace code).
11076 if test $cf_cv_pragma_unreferenced = yes ; then
11082 cf_gnat_libraries=no
11083 cf_gnat_projects=no
11085 echo "$as_me:11085: checking if GNAT supports project files" >&5
11086 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
11087 case $cf_gnat_version in #(vi
11091 case $cf_cv_system_name in #(vi
11095 mkdir conftest.src conftest.bin conftest.lib
11097 rm -rf conftest* *~conftest*
11098 cat >>library.gpr <<CF_EOF
11100 Kind := External ("LIB_KIND");
11101 for Library_Name use "ConfTest";
11102 for Object_Dir use ".";
11103 for Library_ALI_Dir use External("LIBRARY_DIR");
11104 for Library_Version use External ("SONAME");
11105 for Library_Kind use Kind;
11106 for Library_Dir use External("BUILD_DIR");
11107 Source_Dir := External ("SOURCE_DIR");
11108 for Source_Dirs use (Source_Dir);
11109 package Compiler is
11110 for Default_Switches ("Ada") use
11114 "-gnatVa", -- All validity checks
11115 "-gnatwa"); -- Activate all optional errors
11119 cat >>confpackage.ads <<CF_EOF
11120 package ConfPackage is
11121 procedure conftest;
11124 cat >>confpackage.adb <<CF_EOF
11126 package body ConfPackage is
11127 procedure conftest is
11129 Text_IO.Put ("Hello World");
11134 if ( $cf_ada_make $ADAFLAGS \
11136 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
11137 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
11138 -XSOURCE_DIR=`pwd` \
11139 -XSONAME=libConfTest.so.1 \
11140 -XLIB_KIND=static 1>&5 2>&1 ) ; then
11141 cf_gnat_projects=yes
11144 if test -f conftest.lib/confpackage.ali
11146 cf_gnat_libraries=yes
11148 rm -rf conftest* *~conftest*
11153 echo "$as_me:11153: result: $cf_gnat_projects" >&5
11154 echo "${ECHO_T}$cf_gnat_projects" >&6
11156 if test $cf_gnat_projects = yes
11158 echo "$as_me:11158: checking if GNAT supports libraries" >&5
11159 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
11160 echo "$as_me:11160: result: $cf_gnat_libraries" >&5
11161 echo "${ECHO_T}$cf_gnat_libraries" >&6
11164 if test "$cf_gnat_projects" = yes
11166 USE_OLD_MAKERULES="#"
11167 USE_GNAT_PROJECTS=""
11169 USE_OLD_MAKERULES=""
11170 USE_GNAT_PROJECTS="#"
11173 if test "$cf_gnat_libraries" = yes
11175 USE_GNAT_LIBRARIES=""
11177 USE_GNAT_LIBRARIES="#"
11180 echo "$as_me:11180: checking for ada-compiler" >&5
11181 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
11183 # Check whether --with-ada-compiler or --without-ada-compiler was given.
11184 if test "${with_ada_compiler+set}" = set; then
11185 withval="$with_ada_compiler"
11186 cf_ada_compiler=$withval
11188 cf_ada_compiler=gnatmake
11191 echo "$as_me:11191: result: $cf_ada_compiler" >&5
11192 echo "${ECHO_T}$cf_ada_compiler" >&6
11194 cf_ada_package=terminal_interface
11196 echo "$as_me:11196: checking for ada-include" >&5
11197 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
11199 # Check whether --with-ada-include or --without-ada-include was given.
11200 if test "${with_ada_include+set}" = set; then
11201 withval="$with_ada_include"
11204 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
11205 fi; if test -n "$prefix/share/ada/adainclude" ; then
11207 if test "x$prefix" != xNONE; then
11208 cf_path_syntax="$prefix"
11210 cf_path_syntax="$ac_default_prefix"
11213 case ".$withval" in #(vi
11214 .\$\(*\)*|.\'*\'*) #(vi
11218 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11220 .\${*prefix}*) #(vi
11221 eval withval="$withval"
11222 case ".$withval" in #(vi
11224 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11229 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11232 { { echo "$as_me:11232: error: expected a pathname, not \"$withval\"" >&5
11233 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11234 { (exit 1); exit 1; }; }
11239 ADA_INCLUDE="$withval"
11241 echo "$as_me:11241: result: $ADA_INCLUDE" >&5
11242 echo "${ECHO_T}$ADA_INCLUDE" >&6
11244 echo "$as_me:11244: checking for ada-objects" >&5
11245 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
11247 # Check whether --with-ada-objects or --without-ada-objects was given.
11248 if test "${with_ada_objects+set}" = set; then
11249 withval="$with_ada_objects"
11252 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
11253 fi; if test -n "$prefix/lib/ada/adalib" ; then
11255 if test "x$prefix" != xNONE; then
11256 cf_path_syntax="$prefix"
11258 cf_path_syntax="$ac_default_prefix"
11261 case ".$withval" in #(vi
11262 .\$\(*\)*|.\'*\'*) #(vi
11266 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11268 .\${*prefix}*) #(vi
11269 eval withval="$withval"
11270 case ".$withval" in #(vi
11272 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11277 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11280 { { echo "$as_me:11280: error: expected a pathname, not \"$withval\"" >&5
11281 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11282 { (exit 1); exit 1; }; }
11287 ADA_OBJECTS="$withval"
11289 echo "$as_me:11289: result: $ADA_OBJECTS" >&5
11290 echo "${ECHO_T}$ADA_OBJECTS" >&6
11292 echo "$as_me:11292: checking if an Ada95 shared-library should be built" >&5
11293 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
11295 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
11296 if test "${with_ada_sharedlib+set}" = set; then
11297 withval="$with_ada_sharedlib"
11298 with_ada_sharedlib=$withval
11300 with_ada_sharedlib=no
11302 echo "$as_me:11302: result: $with_ada_sharedlib" >&5
11303 echo "${ECHO_T}$with_ada_sharedlib" >&6
11305 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
11306 MAKE_ADA_SHAREDLIB="#"
11308 if test "x$with_ada_sharedlib" != xno
11310 MAKE_ADA_SHAREDLIB=
11311 if test "x$with_ada_sharedlib" != xyes
11313 ADA_SHAREDLIB="$with_ada_sharedlib"
11318 { { echo "$as_me:11318: error: No usable Ada compiler found" >&5
11319 echo "$as_me: error: No usable Ada compiler found" >&2;}
11320 { (exit 1); exit 1; }; }
11323 { { echo "$as_me:11323: error: The Ada compiler is needed for this package" >&5
11324 echo "$as_me: error: The Ada compiler is needed for this package" >&2;}
11325 { (exit 1); exit 1; }; }
11328 ################################################################################
11333 ### Construct the list of include-directories to be generated
11335 CPPFLAGS="$CPPFLAGS -I. -I../include"
11336 if test "$srcdir" != "."; then
11337 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
11339 if test "$GCC" != yes; then
11340 CPPFLAGS="$CPPFLAGS -I\${includedir}"
11341 elif test "$includedir" != "/usr/include"; then
11342 if test "$includedir" = '${prefix}/include' ; then
11343 if test $prefix != /usr ; then
11344 CPPFLAGS="$CPPFLAGS -I\${includedir}"
11347 CPPFLAGS="$CPPFLAGS -I\${includedir}"
11351 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
11352 if test "$srcdir" != "."; then
11353 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
11355 if test "$GCC" != yes; then
11356 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
11357 elif test "$includedir" != "/usr/include"; then
11358 if test "$includedir" = '${prefix}/include' ; then
11359 if test $prefix != /usr ; then
11360 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
11363 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
11367 ### Build up pieces for makefile rules
11368 echo "$as_me:11368: checking default library suffix" >&5
11369 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
11371 case $DFT_LWR_MODEL in
11372 libtool) DFT_ARG_SUFFIX='' ;;
11373 normal) DFT_ARG_SUFFIX='' ;;
11374 debug) DFT_ARG_SUFFIX='_g' ;;
11375 profile) DFT_ARG_SUFFIX='_p' ;;
11376 shared) DFT_ARG_SUFFIX='' ;;
11378 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
11379 echo "$as_me:11379: result: $DFT_ARG_SUFFIX" >&5
11380 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
11382 echo "$as_me:11382: checking default library-dependency suffix" >&5
11383 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
11385 case $DFT_LWR_MODEL in #(vi
11387 DFT_LIB_SUFFIX='.la'
11388 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11391 DFT_LIB_SUFFIX='.a'
11392 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11395 DFT_LIB_SUFFIX='_g.a'
11396 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11399 DFT_LIB_SUFFIX='_p.a'
11400 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11403 case $cf_cv_system_name in
11405 DFT_LIB_SUFFIX='.a'
11406 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11409 DFT_LIB_SUFFIX='.dll'
11410 DFT_DEP_SUFFIX='.dll.a'
11413 DFT_LIB_SUFFIX='.dylib'
11414 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11419 DFT_LIB_SUFFIX='.so'
11420 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11423 DFT_LIB_SUFFIX='.sl'
11424 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11428 *) DFT_LIB_SUFFIX='.so'
11429 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11433 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
11434 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
11435 echo "$as_me:11435: result: $DFT_DEP_SUFFIX" >&5
11436 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
11438 echo "$as_me:11438: checking default object directory" >&5
11439 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
11441 case $DFT_LWR_MODEL in
11442 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
11443 normal) DFT_OBJ_SUBDIR='objects' ;;
11444 debug) DFT_OBJ_SUBDIR='obj_g' ;;
11445 profile) DFT_OBJ_SUBDIR='obj_p' ;;
11447 case $cf_cv_system_name in #(vi
11449 DFT_OBJ_SUBDIR='objects' ;;
11451 DFT_OBJ_SUBDIR='obj_s' ;;
11454 echo "$as_me:11454: result: $DFT_OBJ_SUBDIR" >&5
11455 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
11457 ### Set up low-level terminfo dependencies for makefiles.
11459 if test "$DFT_LWR_MODEL" = shared ; then
11460 case $cf_cv_system_name in #(vi
11462 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
11467 ### Construct the list of subdirectories for which we'll customize makefiles
11468 ### with the appropriate compile-rules.
11470 SUB_MAKEFILES="gen/adacurses${DFT_ARG_SUFFIX}-config:gen/adacurses-config.in"
11472 cat >>confdefs.h <<EOF
11473 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
11476 ### Now that we're done running tests, add the compiler-warnings, if any
11481 cf_new_extra_cppflags=
11483 for cf_add_cflags in $EXTRA_CFLAGS
11485 case $cf_fix_cppflags in
11487 case $cf_add_cflags in #(vi
11488 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11489 case $cf_add_cflags in
11491 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11493 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11494 && test -z "${cf_tst_cflags}" \
11495 && cf_fix_cppflags=yes
11497 if test $cf_fix_cppflags = yes ; then
11498 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11500 elif test "${cf_tst_cflags}" = "\"'" ; then
11501 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11506 case "$CPPFLAGS" in
11507 *$cf_add_cflags) #(vi
11510 case $cf_add_cflags in #(vi
11512 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11514 CPPFLAGS=`echo "$CPPFLAGS" | \
11515 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11516 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11520 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11525 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11530 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11532 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11534 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11535 && test -z "${cf_tst_cflags}" \
11536 && cf_fix_cppflags=no
11541 if test -n "$cf_new_cflags" ; then
11543 CFLAGS="$CFLAGS $cf_new_cflags"
11546 if test -n "$cf_new_cppflags" ; then
11548 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11551 if test -n "$cf_new_extra_cppflags" ; then
11553 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11556 ################################################################################
11558 if test x"$enable_pc_files" = xyes ; then \
11559 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
11565 ################################################################################
11571 NCURSES_SHLIB2="sh -c"
11573 ADA_SUBDIRS="include gen src doc"
11574 if test "x$cf_with_tests" != "xno" ; then
11575 ADA_SUBDIRS="$ADA_SUBDIRS samples"
11577 for cf_dir in $ADA_SUBDIRS
11579 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
11586 # match layout used by make-tar.sh
11587 ADAHTML_DIR=../doc/ada
11589 ac_config_files="$ac_config_files $SUB_MAKEFILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in Makefile"
11590 ac_config_commands="$ac_config_commands default"
11591 cat >confcache <<\_ACEOF
11592 # This file is a shell script that caches the results of configure
11593 # tests run on this system so they can be shared between configure
11594 # scripts and configure runs, see configure's option --config-cache.
11595 # It is not useful on other systems. If it contains results you don't
11596 # want to keep, you may remove or edit it.
11598 # config.status only pays attention to the cache file if you give it
11599 # the --recheck option to rerun configure.
11601 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11603 # following values.
11607 # The following way of writing the cache mishandles newlines in values,
11608 # but we know of no workaround that is simple, portable, and efficient.
11609 # So, don't put newlines in cache variables' values.
11610 # Ultrix sh set writes to stderr and can't be redirected directly,
11611 # and sets the high bit in the cache file unless we assign to the vars.
11614 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11616 # `set' does not quote correctly, so add quotes (double-quote
11617 # substitution turns \\\\ into \\, and sed turns \\ into \).
11620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11623 # `set' quotes correctly as required by POSIX, so do not add quotes.
11625 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11634 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11636 if cmp -s $cache_file confcache; then :; else
11637 if test -w $cache_file; then
11638 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11639 cat confcache >$cache_file
11641 echo "not updating unwritable cache $cache_file"
11646 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11647 # Let make expand exec_prefix.
11648 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11650 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11651 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11652 # trailing colons and then remove the whole line if VPATH becomes empty
11653 # (actually we leave an empty line to preserve line numbers).
11654 if test "x$srcdir" = x.; then
11655 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11656 s/:*\$(srcdir):*/:/;
11657 s/:*\${srcdir}:*/:/;
11659 s/^\([^=]*=[ ]*\):*/\1/;
11665 DEFS=-DHAVE_CONFIG_H
11667 : ${CONFIG_STATUS=./config.status}
11668 ac_clean_files_save=$ac_clean_files
11669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11670 { echo "$as_me:11670: creating $CONFIG_STATUS" >&5
11671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11672 cat >$CONFIG_STATUS <<_ACEOF
11674 # Generated automatically by configure.
11675 # Run this file to recreate the current configuration.
11676 # Compiler output produced by configure, useful for debugging
11677 # configure, is in config.log if it exists.
11680 SHELL=\${CONFIG_SHELL-$SHELL}
11681 ac_cs_invocation="\$0 \$@"
11685 cat >>$CONFIG_STATUS <<\_ACEOF
11686 # Be Bourne compatible
11687 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11690 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11694 # Name of the executable.
11695 as_me=`echo "$0" |sed 's,.*[\\/],,'`
11697 if expr a : '\(a\)' >/dev/null 2>&1; then
11703 rm -f conf$$ conf$$.exe conf$$.file
11705 if ln -s conf$$.file conf$$ 2>/dev/null; then
11706 # We could just check for DJGPP; but this test a) works b) is more generic
11707 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11708 if test -f conf$$.exe; then
11709 # Don't use ln at all; we don't have any links
11714 elif ln conf$$.file conf$$ 2>/dev/null; then
11719 rm -f conf$$ conf$$.exe conf$$.file
11721 as_executable_p="test -f"
11723 # Support unset when possible.
11724 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11731 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
11732 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
11733 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
11734 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
11735 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
11736 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
11737 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
11738 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
11741 # We need space, tab and new line, in precisely that order.
11747 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
11753 # Files that config.status was made for.
11754 if test -n "$ac_config_files"; then
11755 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11758 if test -n "$ac_config_headers"; then
11759 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11762 if test -n "$ac_config_links"; then
11763 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11766 if test -n "$ac_config_commands"; then
11767 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11770 cat >>$CONFIG_STATUS <<\EOF
11773 \`$as_me' instantiates files from templates according to the
11774 current configuration.
11776 Usage: $0 [OPTIONS] [FILE]...
11778 -h, --help print this help, then exit
11779 -V, --version print version number, then exit
11780 -d, --debug don't remove temporary files
11781 --recheck update $as_me by reconfiguring in the same conditions
11782 --file=FILE[:TEMPLATE]
11783 instantiate the configuration file FILE
11784 --header=FILE[:TEMPLATE]
11785 instantiate the configuration header FILE
11787 Configuration files:
11790 Configuration headers:
11793 Configuration commands:
11796 Report bugs to <dickey@invisible-island.net>."
11799 cat >>$CONFIG_STATUS <<EOF
11802 configured by $0, generated by GNU Autoconf 2.52.20101002,
11803 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11805 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11806 Free Software Foundation, Inc.
11807 This config.status script is free software; the Free Software Foundation
11808 gives unlimited permission to copy, distribute and modify it."
11813 cat >>$CONFIG_STATUS <<\EOF
11814 # If no file are specified by the user, then we need to provide default
11815 # value. By we need to know if files were specified by the user.
11821 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11822 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11824 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11828 *) # This is not an option, so the user has probably given explicit
11830 ac_need_defaults=false;;
11834 # Handling of the options.
11836 cat >>$CONFIG_STATUS <<EOF
11837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11838 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11839 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11841 cat >>$CONFIG_STATUS <<\EOF
11842 --version | --vers* | -V )
11843 echo "$ac_cs_version"; exit 0 ;;
11845 # Conflict between --help and --header
11846 { { echo "$as_me:11846: error: ambiguous option: $1
11847 Try \`$0 --help' for more information." >&5
11848 echo "$as_me: error: ambiguous option: $1
11849 Try \`$0 --help' for more information." >&2;}
11850 { (exit 1); exit 1; }; };;
11851 --help | --hel | -h )
11852 echo "$ac_cs_usage"; exit 0 ;;
11853 --debug | --d* | -d )
11855 --file | --fil | --fi | --f )
11857 CONFIG_FILES="$CONFIG_FILES $1"
11858 ac_need_defaults=false;;
11859 --header | --heade | --head | --hea )
11861 CONFIG_HEADERS="$CONFIG_HEADERS $1"
11862 ac_need_defaults=false;;
11864 # This is an error.
11865 -*) { { echo "$as_me:11865: error: unrecognized option: $1
11866 Try \`$0 --help' for more information." >&5
11867 echo "$as_me: error: unrecognized option: $1
11868 Try \`$0 --help' for more information." >&2;}
11869 { (exit 1); exit 1; }; } ;;
11871 *) ac_config_targets="$ac_config_targets $1" ;;
11880 ## ----------------------- ##
11881 ## Running config.status. ##
11882 ## ----------------------- ##
11884 This file was extended by $as_me 2.52.20101002, executed with
11885 CONFIG_FILES = $CONFIG_FILES
11886 CONFIG_HEADERS = $CONFIG_HEADERS
11887 CONFIG_LINKS = $CONFIG_LINKS
11888 CONFIG_COMMANDS = $CONFIG_COMMANDS
11889 > $ac_cs_invocation
11890 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11895 cat >>$CONFIG_STATUS <<EOF
11897 # INIT-COMMANDS section.
11900 ### Special initialization commands, used to pass information from the
11901 ### configuration-run into config.status
11904 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
11905 DFT_LWR_MODEL="$DFT_LWR_MODEL"
11906 ECHO_LINK="$ECHO_LINK"
11907 LIB_NAME="$LIB_NAME"
11908 LIB_SUFFIX="$LIB_SUFFIX"
11910 NCURSES_MAJOR="$NCURSES_MAJOR"
11911 NCURSES_MINOR="$NCURSES_MINOR"
11912 NCURSES_PATCH="$NCURSES_PATCH"
11913 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
11914 cf_cv_abi_version="$cf_cv_abi_version"
11915 cf_cv_rel_version="$cf_cv_rel_version"
11916 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
11917 cf_cv_shared_soname='$cf_cv_shared_soname'
11918 cf_cv_shlib_version="$cf_cv_shlib_version"
11919 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
11920 cf_cv_system_name="$cf_cv_system_name"
11926 cat >>$CONFIG_STATUS <<\EOF
11927 for ac_config_target in $ac_config_targets
11929 case "$ac_config_target" in
11930 # Handling of arguments.
11931 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
11932 "doc/adacurses${DFT_ARG_SUFFIX}-config.1" ) CONFIG_FILES="$CONFIG_FILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in" ;;
11933 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11934 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11935 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
11936 *) { { echo "$as_me:11936: error: invalid argument: $ac_config_target" >&5
11937 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11938 { (exit 1); exit 1; }; };;
11942 # If the user did not use the arguments to specify the items to instantiate,
11943 # then the envvar interface is used. Set only those that are not.
11944 # We use the long form for the default assignment because of an extremely
11945 # bizarre bug on SunOS 4.1.3.
11946 if $ac_need_defaults; then
11947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11952 # Create a temporary directory, and hook for its removal unless debugging.
11955 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11956 trap '{ (exit 1); exit 1; }' 1 2 13 15
11959 # Create a (secure) tmp directory for tmp files.
11962 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11963 test -n "$tmp" && test -d "$tmp"
11966 tmp=$TMPDIR/cs$$-$RANDOM
11967 (umask 077 && mkdir $tmp)
11970 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11971 { (exit 1); exit 1; }
11976 cat >>$CONFIG_STATUS <<EOF
11979 # CONFIG_FILES section.
11982 # No need to generate the scripts if there are no CONFIG_FILES.
11983 # This happens for instance when ./config.status config.h
11984 if test -n "\$CONFIG_FILES"; then
11985 # Protect against being on the right side of a sed subst in config.status.
11986 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11987 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11988 s,@SHELL@,$SHELL,;t t
11989 s,@exec_prefix@,$exec_prefix,;t t
11990 s,@prefix@,$prefix,;t t
11991 s,@program_transform_name@,$program_transform_name,;t t
11992 s,@bindir@,$bindir,;t t
11993 s,@sbindir@,$sbindir,;t t
11994 s,@libexecdir@,$libexecdir,;t t
11995 s,@datadir@,$datadir,;t t
11996 s,@sysconfdir@,$sysconfdir,;t t
11997 s,@sharedstatedir@,$sharedstatedir,;t t
11998 s,@localstatedir@,$localstatedir,;t t
11999 s,@libdir@,$libdir,;t t
12000 s,@includedir@,$includedir,;t t
12001 s,@oldincludedir@,$oldincludedir,;t t
12002 s,@infodir@,$infodir,;t t
12003 s,@mandir@,$mandir,;t t
12004 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12005 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12006 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12007 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12008 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12009 s,@build_alias@,$build_alias,;t t
12010 s,@host_alias@,$host_alias,;t t
12011 s,@target_alias@,$target_alias,;t t
12012 s,@ECHO_C@,$ECHO_C,;t t
12013 s,@ECHO_N@,$ECHO_N,;t t
12014 s,@ECHO_T@,$ECHO_T,;t t
12015 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12016 s,@DEFS@,$DEFS,;t t
12017 s,@LIBS@,$LIBS,;t t
12018 s,@top_builddir@,$top_builddir,;t t
12019 s,@build@,$build,;t t
12020 s,@build_cpu@,$build_cpu,;t t
12021 s,@build_vendor@,$build_vendor,;t t
12022 s,@build_os@,$build_os,;t t
12023 s,@host@,$host,;t t
12024 s,@host_cpu@,$host_cpu,;t t
12025 s,@host_vendor@,$host_vendor,;t t
12026 s,@host_os@,$host_os,;t t
12027 s,@target@,$target,;t t
12028 s,@target_cpu@,$target_cpu,;t t
12029 s,@target_vendor@,$target_vendor,;t t
12030 s,@target_os@,$target_os,;t t
12032 s,@CFLAGS@,$CFLAGS,;t t
12033 s,@LDFLAGS@,$LDFLAGS,;t t
12034 s,@CPPFLAGS@,$CPPFLAGS,;t t
12035 s,@ac_ct_CC@,$ac_ct_CC,;t t
12036 s,@EXEEXT@,$EXEEXT,;t t
12037 s,@OBJEXT@,$OBJEXT,;t t
12039 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
12040 s,@PROG_EXT@,$PROG_EXT,;t t
12042 s,@EGREP@,$EGREP,;t t
12043 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12044 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12045 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12046 s,@LN_S@,$LN_S,;t t
12047 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12048 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
12049 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
12050 s,@SET_MAKE@,$SET_MAKE,;t t
12051 s,@CTAGS@,$CTAGS,;t t
12052 s,@ETAGS@,$ETAGS,;t t
12053 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
12054 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
12055 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
12056 s,@RANLIB@,$RANLIB,;t t
12057 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12059 s,@ac_ct_LD@,$ac_ct_LD,;t t
12061 s,@ac_ct_AR@,$ac_ct_AR,;t t
12062 s,@ARFLAGS@,$ARFLAGS,;t t
12063 s,@DESTDIR@,$DESTDIR,;t t
12064 s,@BUILD_CC@,$BUILD_CC,;t t
12065 s,@BUILD_CPP@,$BUILD_CPP,;t t
12066 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12067 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
12068 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
12069 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
12070 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
12071 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
12072 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
12073 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
12074 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
12075 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
12076 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
12077 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
12078 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
12079 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
12080 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
12081 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
12082 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
12083 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
12084 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
12085 s,@CC_G_OPT@,$CC_G_OPT,;t t
12086 s,@LD_MODEL@,$LD_MODEL,;t t
12087 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
12088 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
12089 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
12090 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
12091 s,@LINK_PROGS@,$LINK_PROGS,;t t
12092 s,@LINK_TESTS@,$LINK_TESTS,;t t
12093 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
12094 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
12095 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
12096 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
12097 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
12098 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
12099 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
12100 s,@PTHREAD@,$PTHREAD,;t t
12101 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
12102 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
12103 s,@ECHO_LINK@,$ECHO_LINK,;t t
12104 s,@ADAFLAGS@,$ADAFLAGS,;t t
12105 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
12106 s,@ADA_TRACE@,$ADA_TRACE,;t t
12107 s,@gnat_exists@,$gnat_exists,;t t
12108 s,@M4_exists@,$M4_exists,;t t
12109 s,@cf_ada_make@,$cf_ada_make,;t t
12110 s,@cf_compile_generics@,$cf_compile_generics,;t t
12111 s,@cf_generic_objects@,$cf_generic_objects,;t t
12112 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
12113 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
12114 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
12115 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
12116 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
12117 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
12118 s,@cf_ada_package@,$cf_ada_package,;t t
12119 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
12120 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
12121 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
12122 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
12123 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
12124 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
12125 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
12126 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
12127 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
12128 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
12129 s,@cross_compiling@,$cross_compiling,;t t
12130 s,@TEST_ARG2@,$TEST_ARG2,;t t
12131 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
12132 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
12133 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
12134 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
12135 s,@EXTERNAL_TREE@,$EXTERNAL_TREE,;t t
12136 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
12141 cat >>$CONFIG_STATUS <<\EOF
12142 # Split the substitutions into bite-sized pieces for seds with
12143 # small command number limits, like on Digital OSF/1 and HP-UX.
12144 ac_max_sed_lines=48
12145 ac_sed_frag=1 # Number of current file.
12146 ac_beg=1 # First line for current file.
12147 ac_end=$ac_max_sed_lines # Line after last line for current file.
12150 while $ac_more_lines; do
12151 if test $ac_beg -gt 1; then
12152 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12154 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12156 if test ! -s $tmp/subs.frag; then
12157 ac_more_lines=false
12159 # The purpose of the label and of the branching condition is to
12160 # speed up the sed processing (if there are no `@' at all, there
12161 # is no need to browse any of the substitutions).
12162 # These are the two extra sed commands mentioned above.
12164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12165 if test -z "$ac_sed_cmds"; then
12166 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12168 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12170 ac_sed_frag=`expr $ac_sed_frag + 1`
12172 ac_end=`expr $ac_end + $ac_max_sed_lines`
12175 if test -z "$ac_sed_cmds"; then
12178 fi # test -n "$CONFIG_FILES"
12181 cat >>$CONFIG_STATUS <<\EOF
12182 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12185 - | *:- | *:-:* ) # input from stdin
12187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12191 * ) ac_file_in=$ac_file.in ;;
12194 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12195 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12196 X"$ac_file" : 'X\(//\)[^/]' \| \
12197 X"$ac_file" : 'X\(//\)$' \| \
12198 X"$ac_file" : 'X\(/\)' \| \
12199 . : '\(.\)' 2>/dev/null ||
12201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12203 /^X\(\/\/\)$/{ s//\1/; q; }
12204 /^X\(\/\).*/{ s//\1/; q; }
12206 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12207 { case "$ac_dir" in
12208 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12212 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12213 case $as_mkdir_dir in
12214 # Skip DOS drivespec
12215 ?:) as_incr_dir=$as_mkdir_dir ;;
12217 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12218 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12223 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12224 # A "../" for each directory in $ac_dir_suffix.
12225 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12227 ac_dir_suffix= ac_dots=
12232 if test -z "$ac_dots"; then
12235 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12237 [\\/]* | ?:[\\/]* )
12238 ac_srcdir=$srcdir$ac_dir_suffix;
12239 ac_top_srcdir=$srcdir ;;
12240 *) # Relative path.
12241 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12242 ac_top_srcdir=$ac_dots$srcdir ;;
12246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12247 *) ac_INSTALL=$ac_dots$INSTALL ;;
12250 if test x"$ac_file" != x-; then
12251 { echo "$as_me:12251: creating $ac_file" >&5
12252 echo "$as_me: creating $ac_file" >&6;}
12255 # Let's still pretend it is `configure' which instantiates (i.e., don't
12256 # use $as_me), people would be surprised to read:
12257 # /* config.h. Generated automatically by config.status. */
12258 configure_input="Generated automatically from `echo $ac_file_in |
12259 sed 's,.*/,,'` by configure."
12261 # First look for the input files in the build tree, otherwise in the
12263 ac_file_inputs=`IFS=:
12264 for f in $ac_file_in; do
12266 -) echo $tmp/stdin ;;
12268 # Absolute (can't be DOS-style, as IFS=:)
12269 test -f "$f" || { { echo "$as_me:12269: error: cannot find input file: $f" >&5
12270 echo "$as_me: error: cannot find input file: $f" >&2;}
12271 { (exit 1); exit 1; }; }
12274 if test -f "$f"; then
12277 elif test -f "$srcdir/$f"; then
12282 { { echo "$as_me:12282: error: cannot find input file: $f" >&5
12283 echo "$as_me: error: cannot find input file: $f" >&2;}
12284 { (exit 1); exit 1; }; }
12287 done` || { (exit 1); exit 1; }
12289 cat >>$CONFIG_STATUS <<EOF
12293 cat >>$CONFIG_STATUS <<\EOF
12295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12296 s,@configure_input@,$configure_input,;t t
12297 s,@srcdir@,$ac_srcdir,;t t
12298 s,@top_srcdir@,$ac_top_srcdir,;t t
12299 s,@INSTALL@,$ac_INSTALL,;t t
12300 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12302 if test x"$ac_file" != x-; then
12303 mv $tmp/out $ac_file
12311 cat >>$CONFIG_STATUS <<\EOF
12314 # CONFIG_HEADER section.
12317 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12318 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12320 # ac_d sets the value in "#define NAME VALUE" lines.
12321 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12322 ac_dB='[ ].*$,\1#\2'
12325 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12326 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12327 ac_iB='\([ ]\),\1#\2define\3'
12330 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12331 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12332 ac_uB='$,\1#\2define\3'
12336 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12337 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12339 - | *:- | *:-:* ) # input from stdin
12341 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12342 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12343 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12344 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12345 * ) ac_file_in=$ac_file.in ;;
12348 test x"$ac_file" != x- && { echo "$as_me:12348: creating $ac_file" >&5
12349 echo "$as_me: creating $ac_file" >&6;}
12351 # First look for the input files in the build tree, otherwise in the
12353 ac_file_inputs=`IFS=:
12354 for f in $ac_file_in; do
12356 -) echo $tmp/stdin ;;
12358 # Absolute (can't be DOS-style, as IFS=:)
12359 test -f "$f" || { { echo "$as_me:12359: error: cannot find input file: $f" >&5
12360 echo "$as_me: error: cannot find input file: $f" >&2;}
12361 { (exit 1); exit 1; }; }
12364 if test -f "$f"; then
12367 elif test -f "$srcdir/$f"; then
12372 { { echo "$as_me:12372: error: cannot find input file: $f" >&5
12373 echo "$as_me: error: cannot find input file: $f" >&2;}
12374 { (exit 1); exit 1; }; }
12377 done` || { (exit 1); exit 1; }
12378 # Remove the trailing spaces.
12379 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12383 # Transform confdefs.h into a list of #define's. We won't use it as a sed
12384 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
12385 # be either 'cat' or 'sort'.
12386 cat confdefs.h | uniq >conftest.vals
12388 # Break up conftest.vals because some shells have a limit on
12389 # the size of here documents, and old seds have small limits too.
12391 rm -f conftest.tail
12392 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
12393 while grep . conftest.vals >/dev/null
12395 # Write chunks of a limited-size here document to conftest.frag.
12396 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
12397 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
12398 echo 'CEOF' >> $CONFIG_STATUS
12399 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12400 rm -f conftest.vals
12401 mv conftest.tail conftest.vals
12403 rm -f conftest.vals
12405 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
12407 echo ' cat >> conftest.edit <<CEOF
12408 /@DEFS@/r conftest.frag
12411 sed -f conftest.edit $tmp/in > $tmp/out
12413 mv $tmp/out $tmp/in
12414 rm -f conftest.edit conftest.frag
12415 ' >> $CONFIG_STATUS
12417 cat >>$CONFIG_STATUS <<\EOF
12418 # Let's still pretend it is `configure' which instantiates (i.e., don't
12419 # use $as_me), people would be surprised to read:
12420 # /* config.h. Generated automatically by config.status. */
12421 if test x"$ac_file" = x-; then
12422 echo "/* Generated automatically by configure. */" >$tmp/config.h
12424 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
12426 cat $tmp/in >>$tmp/config.h
12428 if test x"$ac_file" != x-; then
12429 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12430 { echo "$as_me:12430: $ac_file is unchanged" >&5
12431 echo "$as_me: $ac_file is unchanged" >&6;}
12433 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12434 X"$ac_file" : 'X\(//\)[^/]' \| \
12435 X"$ac_file" : 'X\(//\)$' \| \
12436 X"$ac_file" : 'X\(/\)' \| \
12437 . : '\(.\)' 2>/dev/null ||
12439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12441 /^X\(\/\/\)$/{ s//\1/; q; }
12442 /^X\(\/\).*/{ s//\1/; q; }
12444 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12445 { case "$ac_dir" in
12446 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12450 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12451 case $as_mkdir_dir in
12452 # Skip DOS drivespec
12453 ?:) as_incr_dir=$as_mkdir_dir ;;
12455 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12456 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12463 mv $tmp/config.h $ac_file
12467 rm -f $tmp/config.h
12471 cat >>$CONFIG_STATUS <<\EOF
12473 # CONFIG_COMMANDS section.
12475 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12476 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12477 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12481 if test -z "$USE_OLD_MAKERULES" ; then
12482 $AWK -f $srcdir/mk-1st.awk <$srcdir/src/modules >>src/Makefile
12489 cat >>$CONFIG_STATUS <<\EOF
12491 { (exit 0); exit 0; }
12493 chmod +x $CONFIG_STATUS
12494 ac_clean_files=$ac_clean_files_save
12496 # configure is writing to config.log, and then calls config.status.
12497 # config.status does its own redirection, appending to config.log.
12498 # Unfortunately, on DOS this fails, as config.log is still kept open
12499 # by configure, so config.status won't be able to write to it; its
12500 # output is simply discarded. So we exec the FD to /dev/null,
12501 # effectively closing config.log, so it can be properly (re)opened and
12502 # appended to by config.status. When coming back to configure, we
12503 # need to make the FD available again.
12504 if test "$no_create" != yes; then
12507 $SHELL $CONFIG_STATUS || ac_cs_success=false
12509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12510 # would make configure fail if this is the last instruction.
12511 $ac_cs_success || { (exit 1); exit 1; }
12513 ${MAKE:-make} preinstall