2 # From configure.in Revision: 1.646 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20170501.
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="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tack suppress build/install with tack program
713 --without-tests suppress build/install with test-programs
714 --without-curses-h install curses.h as ncurses.h only
715 --with-pkg-config{=path} enable/disable use of pkg-config
716 --with-pkg-config-libdir=XXX use given directory for installing pc-files
717 --enable-pc-files generate and install .pc files for pkg-config
718 --with-pc-suffix suffixes pc-files
719 --enable-mixed-case tic should assume mixed-case filenames
720 --with-install-prefix prefixes actual install-location ($DESTDIR)
721 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
722 --with-build-cc=XXX the build C compiler ($BUILD_CC)
723 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
724 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
725 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
726 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
727 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
728 Options to Specify the Libraries Built/Used:
729 --disable-libtool-version enable to use libtool's incompatible naming scheme
730 --with-libtool generate libraries with libtool
731 --with-shared generate shared-libraries
732 --with-normal generate normal-libraries (default)
733 --with-debug generate debug-libraries (default)
734 --with-profile generate profile-libraries
735 --with-cxx-shared generate C++ shared-libraries
736 --with-lib-prefix override library-prefix
737 --with-termlib generate separate terminfo library
738 --with-ticlib generate separate tic library
739 --with-gpm use Alessandro Rubini's GPM library
740 --without-dlsym do not use dlsym() to load GPM dynamically
741 --with-sysmouse use sysmouse (FreeBSD console)
742 --enable-rpath use rpath option when generating shared libraries
743 --disable-relink relink shared libraries during install
744 --with-shlib-version=X Specify rel or abi version for shared libs
745 --with-libtool-opts=XXX specify additional libtool options
746 --with-export-syms=XXX limit exported symbols using libtool
747 --with-versioned-syms=X markup versioned symbols using ld
748 --disable-lib-suffixes disable library suffixes
749 --disable-rpath-hack don't add rpath options for additional libraries
750 Fine-Tuning Your Configuration:
751 --with-extra-suffix=X append extra suffix to header/library paths
752 --disable-overwrite put headers in subdir, omit link to -lcurses
753 --disable-database do not use terminfo, only fallbacks/termcap
754 --with-database=XXX specify terminfo source to install
755 --with-hashed-db specify hashed-database library
756 --with-fallbacks=XXX specify list of fallback terminal descriptions
757 --without-xterm-new specify if xterm terminfo should be old version
758 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
759 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
760 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
761 --disable-big-core assume machine has little memory
762 --disable-big-strings assume compiler has only standard-size strings
763 --enable-termcap compile in termcap fallback support
764 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
765 --enable-getcap fast termcap load, no xrefs to terminfo
766 --enable-getcap-cache cache translated termcaps in ~/.terminfo
767 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
768 --disable-root-environ restrict environment when running as root
769 --enable-symlinks make tic use symbolic links not hard links
770 --enable-broken_linker compile with broken-linker support code
771 --enable-bsdpad recognize BSD-style prefix padding
772 --enable-widec compile with wide-char/UTF-8 code
773 --disable-lp64 allow chtype to be long (ignore _LP64)
774 --disable-largefile omit support for large files
775 --disable-tparm-varargs compile tparm() without varargs interface
776 --disable-tic-depends link tic library without explicit dependency on ncurses library
777 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
778 --with-bool=TYPE override fallback type of bool variable
779 --with-caps=alt compile with alternate Caps file
780 --with-chtype=TYPE override type of chtype
781 --with-ospeed=TYPE override type of ospeed variable
782 --with-mmask-t=TYPE override type of mmask_t
783 --with-ccharw-max=XXX override size CCHARW_MAX
784 --with-tparm-arg=TYPE override parameter type of tparm
785 --with-rcs-ids compile-in RCS identifiers
786 Options to Specify How Manpages are Installed:
787 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
788 optionally formatted/catonly, e.g., gzip,formatted
789 --with-manpage-renames specify manpage-renaming
790 --with-manpage-aliases specify manpage-aliases using .so
791 --with-manpage-symlinks specify manpage-aliases using symlinks
792 --with-manpage-tbl specify manpage processing with tbl
794 --disable-ext-funcs disable function-extensions
795 --enable-sp-funcs enable SCREEN-extensions
796 --enable-term-driver enable terminal-driver
797 --enable-const compile with extra/non-standard const
798 --enable-ext-colors compile for 256-color support
799 --enable-ext-mouse compile for extended mouse-encoding
800 --enable-ext-putwin compile with extended putwin/screendump
801 --enable-no-padding compile with $NCURSES_NO_PADDING code
802 --enable-signed-char compile using signed Boolean's in term.h
803 --enable-sigwinch compile with SIGWINCH handler
804 --enable-tcap-names compile with user-definable terminal capabilities
805 --with-pthread use POSIX thread library
806 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
807 --enable-weak-symbols enable weak-symbols for pthreads
808 --enable-reentrant compile with reentrant code
809 --enable-opaque-curses make curses WINDOW, etc., "opaque"
810 --enable-opaque-form make form-library structures "opaque"
811 --enable-opaque-menu make menu-library structures "opaque"
812 --enable-opaque-panel make panel-library structures "opaque"
813 --with-wrap-prefix=XXX override prefix used for public variables
815 --without-develop disable development options
816 --enable-hard-tabs compile with hard-tabs code
817 --enable-xmc-glitch compile with support for xmc (magic-cookie)
819 --disable-assumed-color do not assume anything about default-colors
820 --disable-hashmap compile without hashmap scrolling-optimization
821 --enable-colorfgbg compile-in experimental $COLORFGBG code
822 --enable-interop compile-in interop bindings
823 --enable-safe-sprintf compile with experimental safe-sprintf code
824 --disable-scroll-hints compile without scroll-hints code
825 --enable-wgetch-events compile with wgetch-events code
826 Testing/development Options:
827 --disable-echo do not display "compiling" commands
828 --enable-warnings build: turn on GCC compiler warnings
829 --enable-string-hacks work around bogus compiler/loader warnings
830 --enable-assertions test: turn on generation of assertion code
831 --with-dmalloc test: use Gray Watson's dmalloc library
832 --with-dbmalloc test: use Conor Cahill's dbmalloc library
833 --with-valgrind test: use valgrind
834 --disable-leaks test: free permanent memory, analyze leaks
835 --enable-expanded test: generate functions for certain macros
836 --disable-macros test: use functions rather than macros
837 --with-trace test: add trace() function to all models of ncurses
838 --disable-gnat-projects test: disable GNAT projects even if usable
839 Ada95 Binding Options:
840 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
841 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
842 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
843 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
845 Some influential environment variables:
846 CC C compiler command
847 CFLAGS C compiler flags
848 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
849 nonstandard directory <lib dir>
850 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
851 headers in a nonstandard directory <include dir>
853 CXX C++ compiler command
854 CXXFLAGS C++ compiler flags
855 CXXCPP C++ preprocessor
857 Use these variables to override the choices made by `configure' or to help
858 it to find libraries and programs with nonstandard names/locations.
863 if test "$ac_init_help" = "recursive"; then
864 # If there are subdirs, report their specific --help.
866 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
868 # A "../" for each directory in /$ac_subdir.
869 ac_dots=`echo $ac_subdir |
870 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
873 .) # No --srcdir option. We are building in place.
874 ac_sub_srcdir=$srcdir ;;
875 [\\/]* | ?:[\\/]* ) # Absolute path.
876 ac_sub_srcdir=$srcdir/$ac_subdir ;;
878 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
881 # Check for guested configure; otherwise get Cygnus style configure.
882 if test -f $ac_sub_srcdir/configure.gnu; then
884 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
885 elif test -f $ac_sub_srcdir/configure; then
887 $SHELL $ac_sub_srcdir/configure --help=recursive
888 elif test -f $ac_sub_srcdir/configure.ac ||
889 test -f $ac_sub_srcdir/configure.in; then
893 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
899 test -n "$ac_init_help" && exit 0
900 if $ac_init_version; then
903 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
904 Free Software Foundation, Inc.
905 This configure script is free software; the Free Software Foundation
906 gives unlimited permission to copy, distribute and modify it.
912 This file contains any messages produced by compilers while
913 running configure, to aid debugging if configure makes a mistake.
915 It was created by $as_me, which was
916 generated by GNU Autoconf 2.52.20170501. Invocation command line was
927 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
928 uname -m = `(uname -m) 2>/dev/null || echo unknown`
929 uname -r = `(uname -r) 2>/dev/null || echo unknown`
930 uname -s = `(uname -s) 2>/dev/null || echo unknown`
931 uname -v = `(uname -v) 2>/dev/null || echo unknown`
933 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
934 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
936 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
937 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
938 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
939 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
940 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
941 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
942 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
956 # Keep a trace of the command line.
957 # Strip out --no-create and --no-recursion so they do not pile up.
958 # Also quote any args containing shell meta-characters.
964 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
965 | --no-cr | --no-c) ;;
966 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
968 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
969 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
970 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
972 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
975 # Get rid of the leading space.
978 # When interrupted or exit'd, cleanup temporary files, and complete
979 # config.log. We remove comments because anyway the quotes in there
980 # would cause problems or look ugly.
982 # Save into config.log some information that might help in debugging.
984 echo "## ----------------- ##" >&5
985 echo "## Cache variables. ##" >&5
986 echo "## ----------------- ##" >&5
988 # The following way of writing the cache mishandles newlines in values,
991 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
994 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
999 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1003 sed "/^$/d" confdefs.h >conftest.log
1004 if test -s conftest.log; then
1006 echo "## ------------ ##" >&5
1007 echo "## confdefs.h. ##" >&5
1008 echo "## ------------ ##" >&5
1010 cat conftest.log >&5
1013 test "$ac_signal" != 0 &&
1014 echo "$as_me: caught signal $ac_signal" >&5
1015 echo "$as_me: exit $exit_status" >&5
1016 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1019 for ac_signal in 1 2 13 15; do
1020 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1024 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1025 rm -rf conftest* confdefs.h
1026 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1029 # Let the site file select an alternate cache file if it wants to.
1030 # Prefer explicitly selected file to automatically selected ones.
1031 if test -z "$CONFIG_SITE"; then
1032 if test "x$prefix" != xNONE; then
1033 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1035 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1038 for ac_site_file in $CONFIG_SITE; do
1039 if test -r "$ac_site_file"; then
1040 { echo "$as_me:1040: loading site script $ac_site_file" >&5
1041 echo "$as_me: loading site script $ac_site_file" >&6;}
1042 cat "$ac_site_file" >&5
1047 if test -r "$cache_file"; then
1048 # Some versions of bash will fail to source /dev/null (special
1049 # files actually), so we avoid doing that.
1050 if test -f "$cache_file"; then
1051 { echo "$as_me:1051: loading cache $cache_file" >&5
1052 echo "$as_me: loading cache $cache_file" >&6;}
1054 [\\/]* | ?:[\\/]* ) . $cache_file;;
1055 *) . ./$cache_file;;
1059 { echo "$as_me:1059: creating cache $cache_file" >&5
1060 echo "$as_me: creating cache $cache_file" >&6;}
1064 # Check that the precious variables saved in the cache have kept the same
1066 ac_cache_corrupted=false
1067 for ac_var in `(set) 2>&1 |
1068 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1069 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1070 eval ac_new_set=\$ac_env_${ac_var}_set
1071 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1072 eval ac_new_val="\$ac_env_${ac_var}_value"
1073 case $ac_old_set,$ac_new_set in
1075 { echo "$as_me:1075: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1076 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1077 ac_cache_corrupted=: ;;
1079 { echo "$as_me:1079: error: \`$ac_var' was not set in the previous run" >&5
1080 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1081 ac_cache_corrupted=: ;;
1084 if test "x$ac_old_val" != "x$ac_new_val"; then
1085 { echo "$as_me:1085: error: \`$ac_var' has changed since the previous run:" >&5
1086 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1087 { echo "$as_me:1087: former value: $ac_old_val" >&5
1088 echo "$as_me: former value: $ac_old_val" >&2;}
1089 { echo "$as_me:1089: current value: $ac_new_val" >&5
1090 echo "$as_me: current value: $ac_new_val" >&2;}
1091 ac_cache_corrupted=:
1094 # Pass precious variables to config.status. It doesn't matter if
1095 # we pass some twice (in addition to the command line arguments).
1096 if test "$ac_new_set" = set; then
1098 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1099 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1100 ac_configure_args="$ac_configure_args '$ac_arg'"
1102 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1107 if $ac_cache_corrupted; then
1108 { echo "$as_me:1108: error: changes in the environment can compromise the build" >&5
1109 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1110 { { echo "$as_me:1110: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1111 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1112 { (exit 1); exit 1; }; }
1116 ac_cpp='$CPP $CPPFLAGS'
1117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1120 ac_main_return=return
1122 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1123 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1125 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1126 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1128 echo "#! $SHELL" >conftest.sh
1129 echo "exit 0" >>conftest.sh
1130 chmod +x conftest.sh
1131 if { (echo "$as_me:1131: PATH=\".;.\"; conftest.sh") >&5
1132 (PATH=".;."; conftest.sh) 2>&5
1134 echo "$as_me:1134: \$? = $ac_status" >&5
1135 (exit $ac_status); }; then
1136 ac_path_separator=';'
1140 PATH_SEPARATOR="$ac_path_separator"
1143 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1147 echo "$as_me:1147: checking for egrep" >&5
1148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1149 if test "${ac_cv_prog_egrep+set}" = set; then
1150 echo $ECHO_N "(cached) $ECHO_C" >&6
1152 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1153 then ac_cv_prog_egrep='grep -E'
1154 else ac_cv_prog_egrep='egrep'
1157 echo "$as_me:1157: result: $ac_cv_prog_egrep" >&5
1158 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1159 EGREP=$ac_cv_prog_egrep
1161 test -z "$EGREP" && { { echo "$as_me:1161: error: No egrep program found" >&5
1162 echo "$as_me: error: No egrep program found" >&2;}
1163 { (exit 1); exit 1; }; }
1165 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1166 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1167 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1168 cf_cv_abi_version=${NCURSES_MAJOR}
1169 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1170 cf_cv_timestamp=`date`
1171 echo "$as_me:1171: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1172 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1174 if test -f $srcdir/VERSION ; then
1175 echo "$as_me:1175: checking for package version" >&5
1176 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1178 # if there are not enough fields, cut returns the last one...
1179 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1180 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1181 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1183 # this is how CF_BUNDLED_INTL uses $VERSION:
1184 VERSION="$cf_field1"
1186 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1187 test -z "$VERSION_MAJOR" && { { echo "$as_me:1187: error: missing major-version" >&5
1188 echo "$as_me: error: missing major-version" >&2;}
1189 { (exit 1); exit 1; }; }
1191 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1192 test -z "$VERSION_MINOR" && { { echo "$as_me:1192: error: missing minor-version" >&5
1193 echo "$as_me: error: missing minor-version" >&2;}
1194 { (exit 1); exit 1; }; }
1196 echo "$as_me:1196: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1197 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1199 echo "$as_me:1199: checking for package patch date" >&5
1200 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1201 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1202 case .$VERSION_PATCH in
1204 { { echo "$as_me:1204: error: missing patch-date $VERSION_PATCH" >&5
1205 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1206 { (exit 1); exit 1; }; }
1208 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1211 { { echo "$as_me:1211: error: illegal patch-date $VERSION_PATCH" >&5
1212 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1213 { (exit 1); exit 1; }; }
1216 echo "$as_me:1216: result: $VERSION_PATCH" >&5
1217 echo "${ECHO_T}$VERSION_PATCH" >&6
1219 { { echo "$as_me:1219: error: did not find $srcdir/VERSION" >&5
1220 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1221 { (exit 1); exit 1; }; }
1224 # show the actual data that we have for versions:
1225 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1227 echo "${as_me:-configure}:1227: testing ABI VERSION $VERSION ..." 1>&5
1229 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1231 echo "${as_me:-configure}:1231: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1233 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1235 echo "${as_me:-configure}:1235: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1237 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1239 echo "${as_me:-configure}:1239: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1244 cat >>confdefs.h <<EOF
1245 #define PACKAGE "$PACKAGE"
1248 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1250 cat >>confdefs.h <<EOF
1251 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1254 cat >>confdefs.h <<EOF
1255 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1258 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1260 # Check whether --with-rel-version or --without-rel-version was given.
1261 if test "${with_rel_version+set}" = set; then
1262 withval="$with_rel_version"
1263 { echo "$as_me:1263: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1264 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1265 cf_cv_rel_version=$withval
1268 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1269 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1271 if test -n "$NCURSES_MAJOR" ; then
1272 case $NCURSES_MAJOR in
1276 { { echo "$as_me:1276: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1277 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1278 { (exit 1); exit 1; }; }
1282 { { echo "$as_me:1282: error: Release major-version value is empty" >&5
1283 echo "$as_me: error: Release major-version value is empty" >&2;}
1284 { (exit 1); exit 1; }; }
1287 if test -n "$NCURSES_MINOR" ; then
1288 case $NCURSES_MINOR in
1292 { { echo "$as_me:1292: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1293 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1294 { (exit 1); exit 1; }; }
1298 { { echo "$as_me:1298: error: Release minor-version value is empty" >&5
1299 echo "$as_me: error: Release minor-version value is empty" >&2;}
1300 { (exit 1); exit 1; }; }
1303 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1305 # Check whether --with-abi-version or --without-abi-version was given.
1306 if test "${with_abi_version+set}" = set; then
1307 withval="$with_abi_version"
1309 if test "x$cf_cv_abi_version" != "x$withval"
1311 { echo "$as_me:1311: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1312 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1313 case $cf_cv_rel_version in
1315 cf_cv_rel_version=$withval.0
1318 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1322 cf_cv_abi_version=$withval
1325 if test -n "$cf_cv_abi_version" ; then
1326 case $cf_cv_abi_version in
1330 { { echo "$as_me:1330: error: ABI version is not a number: $cf_cv_abi_version" >&5
1331 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1332 { (exit 1); exit 1; }; }
1336 { { echo "$as_me:1336: error: ABI version value is empty" >&5
1337 echo "$as_me: error: ABI version value is empty" >&2;}
1338 { (exit 1); exit 1; }; }
1341 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1343 case $cf_cv_rel_version in
1345 cf_cv_rel_version=$with_abi_version.0
1351 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1352 if test -f $ac_dir/install-sh; then
1354 ac_install_sh="$ac_aux_dir/install-sh -c"
1356 elif test -f $ac_dir/install.sh; then
1358 ac_install_sh="$ac_aux_dir/install.sh -c"
1360 elif test -f $ac_dir/shtool; then
1362 ac_install_sh="$ac_aux_dir/shtool install -c"
1366 if test -z "$ac_aux_dir"; then
1367 { { echo "$as_me:1367: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1368 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1369 { (exit 1); exit 1; }; }
1371 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1372 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1373 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1375 # Make sure we can run config.sub.
1376 $ac_config_sub sun4 >/dev/null 2>&1 ||
1377 { { echo "$as_me:1377: error: cannot run $ac_config_sub" >&5
1378 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1379 { (exit 1); exit 1; }; }
1381 echo "$as_me:1381: checking build system type" >&5
1382 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1383 if test "${ac_cv_build+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 ac_cv_build_alias=$build_alias
1387 test -z "$ac_cv_build_alias" &&
1388 ac_cv_build_alias=`$ac_config_guess`
1389 test -z "$ac_cv_build_alias" &&
1390 { { echo "$as_me:1390: error: cannot guess build type; you must specify one" >&5
1391 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1392 { (exit 1); exit 1; }; }
1393 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1394 { { echo "$as_me:1394: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1395 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1396 { (exit 1); exit 1; }; }
1399 echo "$as_me:1399: result: $ac_cv_build" >&5
1400 echo "${ECHO_T}$ac_cv_build" >&6
1402 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406 echo "$as_me:1406: checking host system type" >&5
1407 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408 if test "${ac_cv_host+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_host_alias=$host_alias
1412 test -z "$ac_cv_host_alias" &&
1413 ac_cv_host_alias=$ac_cv_build_alias
1414 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415 { { echo "$as_me:1415: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:1420: result: $ac_cv_host" >&5
1421 echo "${ECHO_T}$ac_cv_host" >&6
1423 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1428 echo "$as_me:1428: checking target system type" >&5
1429 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1430 if test "${ac_cv_target+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 ac_cv_target_alias=$target_alias
1434 test "x$ac_cv_target_alias" = "x" &&
1435 ac_cv_target_alias=$ac_cv_host_alias
1436 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1437 { { echo "$as_me:1437: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:1442: result: $ac_cv_target" >&5
1443 echo "${ECHO_T}$ac_cv_target" >&6
1444 target=$ac_cv_target
1445 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1449 # The aliases save the names the user supplied, while $host etc.
1450 # will get canonicalized.
1451 test -n "$target_alias" &&
1452 test "$program_prefix$program_suffix$program_transform_name" = \
1454 program_prefix=${target_alias}-
1455 system_name="$host_os"
1457 system_name="`(uname -s -r) 2>/dev/null`"
1458 if test -z "$system_name" ; then
1459 system_name="`(hostname) 2>/dev/null`"
1462 test -n "$system_name" &&
1463 cat >>confdefs.h <<EOF
1464 #define SYSTEM_NAME "$system_name"
1467 if test "${cf_cv_system_name+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 cf_cv_system_name="$system_name"
1473 test -z "$system_name" && system_name="$cf_cv_system_name"
1474 test -n "$cf_cv_system_name" && echo "$as_me:1474: result: Configuring for $cf_cv_system_name" >&5
1475 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1477 if test ".$system_name" != ".$cf_cv_system_name" ; then
1478 echo "$as_me:1478: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1479 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1480 { { echo "$as_me:1480: error: \"Please remove config.cache and try again.\"" >&5
1481 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1482 { (exit 1); exit 1; }; }
1485 # Check whether --with-system-type or --without-system-type was given.
1486 if test "${with_system_type+set}" = set; then
1487 withval="$with_system_type"
1488 { echo "$as_me:1488: WARNING: overriding system type to $withval" >&5
1489 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1490 cf_cv_system_name=$withval
1495 ### Save the given $CFLAGS to allow user-override.
1496 cf_user_CFLAGS="$CFLAGS"
1498 ### Default install-location
1500 echo "$as_me:1500: checking for prefix" >&5
1501 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1502 if test "x$prefix" = "xNONE" ; then
1503 case "$cf_cv_system_name" in
1504 # non-vendor systems don't have a conflict
1505 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1508 (*) prefix=$ac_default_prefix
1512 echo "$as_me:1512: result: $prefix" >&5
1513 echo "${ECHO_T}$prefix" >&6
1515 if test "x$prefix" = "xNONE" ; then
1516 echo "$as_me:1516: checking for default include-directory" >&5
1517 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1518 test -n "$verbose" && echo 1>&6
1521 $includedir/ncurses \
1523 $prefix/include/ncurses \
1524 /usr/local/include \
1525 /usr/local/include/ncurses \
1527 /usr/include/ncurses
1529 cf_dir=`eval echo $cf_symbol`
1530 if test -f $cf_dir/curses.h ; then
1531 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1532 includedir="$cf_symbol"
1533 test -n "$verbose" && echo $ac_n " found " 1>&6
1537 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1539 echo "$as_me:1539: result: $includedir" >&5
1540 echo "${ECHO_T}$includedir" >&6
1543 ### Defaults for ncurses ABI
1545 case x$cf_cv_abi_version in
1547 cf_dft_ext_colors=yes
1548 cf_dft_ext_const=yes
1549 cf_dft_ext_mouse=yes
1550 cf_dft_ext_putwin=yes
1551 cf_dft_ext_spfuncs=yes
1552 cf_dft_filter_syms=yes
1553 cf_dft_chtype=uint32_t
1554 cf_dft_mmask_t=uint32_t
1556 cf_dft_tparm_arg=intptr_t
1557 cf_dft_with_lp64=yes
1560 cf_dft_ext_colors=no
1563 cf_dft_ext_putwin=no
1564 cf_dft_ext_spfuncs=no
1565 cf_dft_filter_syms=no
1569 cf_dft_tparm_arg=long
1574 ### Checks for programs.
1576 # Check whether --with-ada or --without-ada was given.
1577 if test "${with_ada+set}" = set; then
1579 cf_with_ada=$withval
1583 if test "x$cf_with_ada" = xyes
1585 cf_PROG_CC="gnatgcc gcc cc"
1591 ac_cpp='$CPP $CPPFLAGS'
1592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1595 ac_main_return=return
1596 if test -n "$ac_tool_prefix"; then
1597 for ac_prog in $cf_PROG_CC
1599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1601 echo "$as_me:1601: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 ac_save_IFS=$IFS; IFS=$ac_path_separator
1611 for ac_dir in $ac_dummy; do
1613 test -z "$ac_dir" && ac_dir=.
1614 $as_executable_p "$ac_dir/$ac_word" || continue
1615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1616 echo "$as_me:1616: found $ac_dir/$ac_word" >&5
1623 if test -n "$CC"; then
1624 echo "$as_me:1624: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1627 echo "$as_me:1627: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1631 test -n "$CC" && break
1634 if test -z "$CC"; then
1636 for ac_prog in $cf_PROG_CC
1638 # Extract the first word of "$ac_prog", so it can be a program name with args.
1639 set dummy $ac_prog; ac_word=$2
1640 echo "$as_me:1640: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$ac_ct_CC"; then
1646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1648 ac_save_IFS=$IFS; IFS=$ac_path_separator
1650 for ac_dir in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir=.
1653 $as_executable_p "$ac_dir/$ac_word" || continue
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:1655: found $ac_dir/$ac_word" >&5
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663 echo "$as_me:1663: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1666 echo "$as_me:1666: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1670 test -n "$ac_ct_CC" && break
1676 test -z "$CC" && { { echo "$as_me:1676: error: no acceptable cc found in \$PATH" >&5
1677 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1678 { (exit 1); exit 1; }; }
1680 # Provide some information about the compiler.
1681 echo "$as_me:1681:" \
1682 "checking for C compiler version" >&5
1683 ac_compiler=`set X $ac_compile; echo $2`
1684 { (eval echo "$as_me:1684: \"$ac_compiler --version </dev/null >&5\"") >&5
1685 (eval $ac_compiler --version </dev/null >&5) 2>&5
1687 echo "$as_me:1687: \$? = $ac_status" >&5
1688 (exit $ac_status); }
1689 { (eval echo "$as_me:1689: \"$ac_compiler -v </dev/null >&5\"") >&5
1690 (eval $ac_compiler -v </dev/null >&5) 2>&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1694 { (eval echo "$as_me:1694: \"$ac_compiler -V </dev/null >&5\"") >&5
1695 (eval $ac_compiler -V </dev/null >&5) 2>&5
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }
1700 cat >conftest.$ac_ext <<_ACEOF
1701 #line 1701 "configure"
1702 #include "confdefs.h"
1712 ac_clean_files_save=$ac_clean_files
1713 ac_clean_files="$ac_clean_files a.out a.exe"
1714 # Try to create an executable without -o first, disregard a.out.
1715 # It will help us diagnose broken compilers, and finding out an intuition
1717 echo "$as_me:1717: checking for C compiler default output" >&5
1718 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1719 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1720 if { (eval echo "$as_me:1720: \"$ac_link_default\"") >&5
1721 (eval $ac_link_default) 2>&5
1723 echo "$as_me:1723: \$? = $ac_status" >&5
1724 (exit $ac_status); }; then
1725 # Find the output, starting from the most likely. This scheme is
1726 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1728 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1729 ls a.out conftest 2>/dev/null;
1730 ls a.* conftest.* 2>/dev/null`; do
1732 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1733 a.out ) # We found the default executable, but exeext='' is most
1736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1737 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1744 echo "$as_me: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1746 { { echo "$as_me:1746: error: C compiler cannot create executables" >&5
1747 echo "$as_me: error: C compiler cannot create executables" >&2;}
1748 { (exit 77); exit 77; }; }
1751 ac_exeext=$ac_cv_exeext
1752 echo "$as_me:1752: result: $ac_file" >&5
1753 echo "${ECHO_T}$ac_file" >&6
1755 # Check the compiler produces executables we can run. If not, either
1756 # the compiler is broken, or we cross compile.
1757 echo "$as_me:1757: checking whether the C compiler works" >&5
1758 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1759 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1760 # If not cross compiling, check that we can run a simple program.
1761 if test "$cross_compiling" != yes; then
1762 if { ac_try='./$ac_file'
1763 { (eval echo "$as_me:1763: \"$ac_try\"") >&5
1766 echo "$as_me:1766: \$? = $ac_status" >&5
1767 (exit $ac_status); }; }; then
1770 if test "$cross_compiling" = maybe; then
1773 { { echo "$as_me:1773: error: cannot run C compiled programs.
1774 If you meant to cross compile, use \`--host'." >&5
1775 echo "$as_me: error: cannot run C compiled programs.
1776 If you meant to cross compile, use \`--host'." >&2;}
1777 { (exit 1); exit 1; }; }
1781 echo "$as_me:1781: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6
1784 rm -f a.out a.exe conftest$ac_cv_exeext
1785 ac_clean_files=$ac_clean_files_save
1786 # Check the compiler produces executables we can run. If not, either
1787 # the compiler is broken, or we cross compile.
1788 echo "$as_me:1788: checking whether we are cross compiling" >&5
1789 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1790 echo "$as_me:1790: result: $cross_compiling" >&5
1791 echo "${ECHO_T}$cross_compiling" >&6
1793 echo "$as_me:1793: checking for executable suffix" >&5
1794 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1795 if { (eval echo "$as_me:1795: \"$ac_link\"") >&5
1796 (eval $ac_link) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); }; then
1800 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1801 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1802 # work properly (i.e., refer to `conftest.exe'), while it won't with
1804 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1807 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814 { { echo "$as_me:1814: error: cannot compute EXEEXT: cannot compile and link" >&5
1815 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1816 { (exit 1); exit 1; }; }
1819 rm -f conftest$ac_cv_exeext
1820 echo "$as_me:1820: result: $ac_cv_exeext" >&5
1821 echo "${ECHO_T}$ac_cv_exeext" >&6
1823 rm -f conftest.$ac_ext
1824 EXEEXT=$ac_cv_exeext
1826 echo "$as_me:1826: checking for object suffix" >&5
1827 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1828 if test "${ac_cv_objext+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 cat >conftest.$ac_ext <<_ACEOF
1832 #line 1832 "configure"
1833 #include "confdefs.h"
1843 rm -f conftest.o conftest.obj
1844 if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
1845 (eval $ac_compile) 2>&5
1847 echo "$as_me:1847: \$? = $ac_status" >&5
1848 (exit $ac_status); }; then
1849 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1851 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1857 echo "$as_me: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1859 { { echo "$as_me:1859: error: cannot compute OBJEXT: cannot compile" >&5
1860 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1861 { (exit 1); exit 1; }; }
1864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1866 echo "$as_me:1866: result: $ac_cv_objext" >&5
1867 echo "${ECHO_T}$ac_cv_objext" >&6
1868 OBJEXT=$ac_cv_objext
1870 echo "$as_me:1870: checking whether we are using the GNU C compiler" >&5
1871 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1872 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 cat >conftest.$ac_ext <<_ACEOF
1876 #line 1876 "configure"
1877 #include "confdefs.h"
1890 rm -f conftest.$ac_objext
1891 if { (eval echo "$as_me:1891: \"$ac_compile\"") >&5
1892 (eval $ac_compile) 2>&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); } &&
1896 { ac_try='test -s conftest.$ac_objext'
1897 { (eval echo "$as_me:1897: \"$ac_try\"") >&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); }; }; then
1904 echo "$as_me: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1908 rm -f conftest.$ac_objext conftest.$ac_ext
1909 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1912 echo "$as_me:1912: result: $ac_cv_c_compiler_gnu" >&5
1913 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1914 GCC=`test $ac_compiler_gnu = yes && echo yes`
1915 ac_test_CFLAGS=${CFLAGS+set}
1916 ac_save_CFLAGS=$CFLAGS
1918 echo "$as_me:1918: checking whether $CC accepts -g" >&5
1919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1920 if test "${ac_cv_prog_cc_g+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 cat >conftest.$ac_ext <<_ACEOF
1924 #line 1924 "configure"
1925 #include "confdefs.h"
1935 rm -f conftest.$ac_objext
1936 if { (eval echo "$as_me:1936: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); } &&
1941 { ac_try='test -s conftest.$ac_objext'
1942 { (eval echo "$as_me:1942: \"$ac_try\"") >&5
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1949 echo "$as_me: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1953 rm -f conftest.$ac_objext conftest.$ac_ext
1955 echo "$as_me:1955: result: $ac_cv_prog_cc_g" >&5
1956 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1957 if test "$ac_test_CFLAGS" = set; then
1958 CFLAGS=$ac_save_CFLAGS
1959 elif test $ac_cv_prog_cc_g = yes; then
1960 if test "$GCC" = yes; then
1966 if test "$GCC" = yes; then
1972 # Some people use a C++ compiler to compile C. Since we use `exit',
1973 # in C++ we need to declare it. In case someone uses the same compiler
1974 # for both compiling C and C++ we need to have the C++ compiler decide
1975 # the declaration of exit, since it's the most demanding environment.
1976 cat >conftest.$ac_ext <<_ACEOF
1981 rm -f conftest.$ac_objext
1982 if { (eval echo "$as_me:1982: \"$ac_compile\"") >&5
1983 (eval $ac_compile) 2>&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); } &&
1987 { ac_try='test -s conftest.$ac_objext'
1988 { (eval echo "$as_me:1988: \"$ac_try\"") >&5
1991 echo "$as_me:1991: \$? = $ac_status" >&5
1992 (exit $ac_status); }; }; then
1993 for ac_declaration in \
1995 '#include <stdlib.h>' \
1996 'extern "C" void std::exit (int) throw (); using std::exit;' \
1997 'extern "C" void std::exit (int); using std::exit;' \
1998 'extern "C" void exit (int) throw ();' \
1999 'extern "C" void exit (int);' \
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line 2003 "configure"
2004 #include "confdefs.h"
2015 rm -f conftest.$ac_objext
2016 if { (eval echo "$as_me:2016: \"$ac_compile\"") >&5
2017 (eval $ac_compile) 2>&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); } &&
2021 { ac_try='test -s conftest.$ac_objext'
2022 { (eval echo "$as_me:2022: \"$ac_try\"") >&5
2025 echo "$as_me:2025: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2029 echo "$as_me: failed program was:" >&5
2030 cat conftest.$ac_ext >&5
2033 rm -f conftest.$ac_objext conftest.$ac_ext
2034 cat >conftest.$ac_ext <<_ACEOF
2035 #line 2035 "configure"
2036 #include "confdefs.h"
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:2047: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); } &&
2052 { ac_try='test -s conftest.$ac_objext'
2053 { (eval echo "$as_me:2053: \"$ac_try\"") >&5
2056 echo "$as_me:2056: \$? = $ac_status" >&5
2057 (exit $ac_status); }; }; then
2060 echo "$as_me: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2066 if test -n "$ac_declaration"; then
2067 echo '#ifdef __cplusplus' >>confdefs.h
2068 echo $ac_declaration >>confdefs.h
2069 echo '#endif' >>confdefs.h
2073 echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 rm -f conftest.$ac_objext conftest.$ac_ext
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 ac_main_return=return
2085 if test "$GCC" = yes ; then
2086 echo "$as_me:2086: checking version of $CC" >&5
2087 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2088 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2089 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2090 echo "$as_me:2090: result: $GCC_VERSION" >&5
2091 echo "${ECHO_T}$GCC_VERSION" >&6
2094 echo "$as_me:2094: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_cv_prog_cc_stdc=no
2101 cat >conftest.$ac_ext <<_ACEOF
2102 #line 2102 "configure"
2103 #include "confdefs.h"
2106 #include <sys/types.h>
2107 #include <sys/stat.h>
2108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2109 struct buf { int x; };
2110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2111 static char *e (p, i)
2117 static char *f (char * (*g) (char **, int), char **p, ...)
2122 s = g (p, va_arg (v,int));
2126 int test (int i, double x);
2127 struct s1 {int (*f) (int a);};
2128 struct s2 {int (*f) (double a);};
2129 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2140 # Don't try gcc -ansi; that turns off useful extensions and
2141 # breaks some systems' header files.
2142 # AIX -qlanglvl=ansi
2143 # Ultrix and OSF/1 -std1
2144 # HP-UX 10.20 and later -Ae
2145 # HP-UX older versions -Aa -D_HPUX_SOURCE
2146 # SVR4 -Xc -D__EXTENSIONS__
2147 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2149 CC="$ac_save_CC $ac_arg"
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:2151: \"$ac_compile\"") >&5
2152 (eval $ac_compile) 2>&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:2157: \"$ac_try\"") >&5
2160 echo "$as_me:2160: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 ac_cv_prog_cc_stdc=$ac_arg
2165 echo "$as_me: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 rm -f conftest.$ac_objext
2170 rm -f conftest.$ac_ext conftest.$ac_objext
2175 case "x$ac_cv_prog_cc_stdc" in
2177 echo "$as_me:2177: result: none needed" >&5
2178 echo "${ECHO_T}none needed" >&6 ;;
2180 echo "$as_me:2180: result: $ac_cv_prog_cc_stdc" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC="$CC $ac_cv_prog_cc_stdc" ;;
2185 # This should have been defined by AC_PROG_CC
2188 echo "$as_me:2188: checking \$CC variable" >&5
2189 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2192 echo "$as_me:2192: result: broken" >&5
2193 echo "${ECHO_T}broken" >&6
2194 { echo "$as_me:2194: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2195 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2197 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2198 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2200 for cf_arg in $cf_flags
2208 cf_new_extra_cppflags=
2210 for cf_add_cflags in $cf_arg
2212 case $cf_fix_cppflags in
2214 case $cf_add_cflags in
2215 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2216 case $cf_add_cflags in
2218 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2220 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2221 && test -z "${cf_tst_cflags}" \
2222 && cf_fix_cppflags=yes
2224 if test $cf_fix_cppflags = yes ; then
2226 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2227 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2230 elif test "${cf_tst_cflags}" = "\"'" ; then
2232 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2233 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2243 case $cf_add_cflags in
2245 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2247 CPPFLAGS=`echo "$CPPFLAGS" | \
2248 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2249 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2254 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2255 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2262 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2263 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2270 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2271 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2273 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2275 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2276 && test -z "${cf_tst_cflags}" \
2277 && cf_fix_cppflags=no
2282 if test -n "$cf_new_cflags" ; then
2284 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2285 CFLAGS="${CFLAGS}$cf_new_cflags"
2289 if test -n "$cf_new_cppflags" ; then
2291 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2292 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2296 if test -n "$cf_new_extra_cppflags" ; then
2298 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2299 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2309 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2311 echo "${as_me:-configure}:2311: testing resulting CC: '$CC' ..." 1>&5
2313 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2315 echo "${as_me:-configure}:2315: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2317 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2319 echo "${as_me:-configure}:2319: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2323 echo "$as_me:2323: result: ok" >&5
2324 echo "${ECHO_T}ok" >&6
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 ac_main_return=return
2334 echo "$as_me:2334: checking how to run the C preprocessor" >&5
2335 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2336 # On Suns, sometimes $CPP names a directory.
2337 if test -n "$CPP" && test -d "$CPP"; then
2340 if test -z "$CPP"; then
2341 if test "${ac_cv_prog_CPP+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 # Double quotes because CPP needs to be expanded
2345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2348 for ac_c_preproc_warn_flag in '' yes
2350 # Use a header file that comes with gcc, so configuring glibc
2351 # with a fresh cross-compiler works.
2352 # On the NeXT, cc -E runs the code through the compiler's parser,
2353 # not just through cpp. "Syntax error" is here to catch this case.
2354 cat >conftest.$ac_ext <<_ACEOF
2355 #line 2355 "configure"
2356 #include "confdefs.h"
2360 if { (eval echo "$as_me:2360: \"$ac_cpp conftest.$ac_ext\"") >&5
2361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2363 egrep -v '^ *\+' conftest.er1 >conftest.err
2365 cat conftest.err >&5
2366 echo "$as_me:2366: \$? = $ac_status" >&5
2367 (exit $ac_status); } >/dev/null; then
2368 if test -s conftest.err; then
2369 ac_cpp_err=$ac_c_preproc_warn_flag
2376 if test -z "$ac_cpp_err"; then
2379 echo "$as_me: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2381 # Broken: fails on valid input.
2384 rm -f conftest.err conftest.$ac_ext
2386 # OK, works on sane cases. Now check whether non-existent headers
2387 # can be detected and how.
2388 cat >conftest.$ac_ext <<_ACEOF
2389 #line 2389 "configure"
2390 #include "confdefs.h"
2391 #include <ac_nonexistent.h>
2393 if { (eval echo "$as_me:2393: \"$ac_cpp conftest.$ac_ext\"") >&5
2394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2396 egrep -v '^ *\+' conftest.er1 >conftest.err
2398 cat conftest.err >&5
2399 echo "$as_me:2399: \$? = $ac_status" >&5
2400 (exit $ac_status); } >/dev/null; then
2401 if test -s conftest.err; then
2402 ac_cpp_err=$ac_c_preproc_warn_flag
2409 if test -z "$ac_cpp_err"; then
2410 # Broken: success on invalid input.
2413 echo "$as_me: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2415 # Passes both tests.
2419 rm -f conftest.err conftest.$ac_ext
2422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2423 rm -f conftest.err conftest.$ac_ext
2424 if $ac_preproc_ok; then
2436 echo "$as_me:2436: result: $CPP" >&5
2437 echo "${ECHO_T}$CPP" >&6
2439 for ac_c_preproc_warn_flag in '' yes
2441 # Use a header file that comes with gcc, so configuring glibc
2442 # with a fresh cross-compiler works.
2443 # On the NeXT, cc -E runs the code through the compiler's parser,
2444 # not just through cpp. "Syntax error" is here to catch this case.
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line 2446 "configure"
2447 #include "confdefs.h"
2451 if { (eval echo "$as_me:2451: \"$ac_cpp conftest.$ac_ext\"") >&5
2452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 egrep -v '^ *\+' conftest.er1 >conftest.err
2456 cat conftest.err >&5
2457 echo "$as_me:2457: \$? = $ac_status" >&5
2458 (exit $ac_status); } >/dev/null; then
2459 if test -s conftest.err; then
2460 ac_cpp_err=$ac_c_preproc_warn_flag
2467 if test -z "$ac_cpp_err"; then
2470 echo "$as_me: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2472 # Broken: fails on valid input.
2475 rm -f conftest.err conftest.$ac_ext
2477 # OK, works on sane cases. Now check whether non-existent headers
2478 # can be detected and how.
2479 cat >conftest.$ac_ext <<_ACEOF
2480 #line 2480 "configure"
2481 #include "confdefs.h"
2482 #include <ac_nonexistent.h>
2484 if { (eval echo "$as_me:2484: \"$ac_cpp conftest.$ac_ext\"") >&5
2485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487 egrep -v '^ *\+' conftest.er1 >conftest.err
2489 cat conftest.err >&5
2490 echo "$as_me:2490: \$? = $ac_status" >&5
2491 (exit $ac_status); } >/dev/null; then
2492 if test -s conftest.err; then
2493 ac_cpp_err=$ac_c_preproc_warn_flag
2500 if test -z "$ac_cpp_err"; then
2501 # Broken: success on invalid input.
2504 echo "$as_me: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2506 # Passes both tests.
2510 rm -f conftest.err conftest.$ac_ext
2513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2514 rm -f conftest.err conftest.$ac_ext
2515 if $ac_preproc_ok; then
2518 { { echo "$as_me:2518: error: C preprocessor \"$CPP\" fails sanity check" >&5
2519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2520 { (exit 1); exit 1; }; }
2524 ac_cpp='$CPP $CPPFLAGS'
2525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 ac_main_return=return
2530 if test $ac_cv_c_compiler_gnu = yes; then
2531 echo "$as_me:2531: checking whether $CC needs -traditional" >&5
2532 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2533 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 ac_pattern="Autoconf.*'x'"
2537 cat >conftest.$ac_ext <<_ACEOF
2538 #line 2538 "configure"
2539 #include "confdefs.h"
2541 int Autoconf = TIOCGETP;
2543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2544 egrep "$ac_pattern" >/dev/null 2>&1; then
2545 ac_cv_prog_gcc_traditional=yes
2547 ac_cv_prog_gcc_traditional=no
2551 if test $ac_cv_prog_gcc_traditional = no; then
2552 cat >conftest.$ac_ext <<_ACEOF
2553 #line 2553 "configure"
2554 #include "confdefs.h"
2556 int Autoconf = TCGETA;
2558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2559 egrep "$ac_pattern" >/dev/null 2>&1; then
2560 ac_cv_prog_gcc_traditional=yes
2566 echo "$as_me:2566: result: $ac_cv_prog_gcc_traditional" >&5
2567 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2568 if test $ac_cv_prog_gcc_traditional = yes; then
2569 CC="$CC -traditional"
2573 echo "$as_me:2573: checking whether $CC understands -c and -o together" >&5
2574 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2575 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 cat > conftest.$ac_ext <<CF_EOF
2582 ${cf_cv_main_return:-return}(0);
2585 # We do the test twice because some compilers refuse to overwrite an
2586 # existing .o file with -o, though they will create one.
2587 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2588 if { (eval echo "$as_me:2588: \"$ac_try\"") >&5
2591 echo "$as_me:2591: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 test -f conftest2.$ac_objext && { (eval echo "$as_me:2593: \"$ac_try\"") >&5
2596 echo "$as_me:2596: \$? = $ac_status" >&5
2597 (exit $ac_status); };
2599 eval cf_cv_prog_CC_c_o=yes
2601 eval cf_cv_prog_CC_c_o=no
2606 if test $cf_cv_prog_CC_c_o = yes; then
2607 echo "$as_me:2607: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2610 echo "$as_me:2610: result: no" >&5
2611 echo "${ECHO_T}no" >&6
2614 if test "$cross_compiling" = yes ; then
2617 case "$cf_cv_system_name" in
2618 (dragonfly*|mirbsd*|freebsd*)
2619 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2621 (*) LDPATH=$PATH:/sbin:/usr/sbin
2622 # Extract the first word of "ldconfig", so it can be a program name with args.
2623 set dummy ldconfig; ac_word=$2
2624 echo "$as_me:2624: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2626 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2634 ac_save_IFS=$IFS; IFS=$ac_path_separator
2636 for ac_dir in $ac_dummy; do
2638 test -z "$ac_dir" && ac_dir=.
2639 if $as_executable_p "$ac_dir/$ac_word"; then
2640 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2641 echo "$as_me:2641: found $ac_dir/$ac_word" >&5
2649 LDCONFIG=$ac_cv_path_LDCONFIG
2651 if test -n "$LDCONFIG"; then
2652 echo "$as_me:2652: result: $LDCONFIG" >&5
2653 echo "${ECHO_T}$LDCONFIG" >&6
2655 echo "$as_me:2655: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2663 echo "$as_me:2663: checking if you want to ensure bool is consistent with C++" >&5
2664 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2666 # Check whether --with-cxx or --without-cxx was given.
2667 if test "${with_cxx+set}" = set; then
2669 cf_with_cxx=$withval
2673 echo "$as_me:2673: result: $cf_with_cxx" >&5
2674 echo "${ECHO_T}$cf_with_cxx" >&6
2675 if test "X$cf_with_cxx" = Xno ; then
2679 # with autoconf 2.13, we can change the error to a warning:
2681 ac_cpp='$CXXCPP $CPPFLAGS'
2682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2685 ac_main_return=return
2686 if test -n "$ac_tool_prefix"; then
2687 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691 echo "$as_me:2691: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693 if test "${ac_cv_prog_CXX+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 if test -n "$CXX"; then
2697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2699 ac_save_IFS=$IFS; IFS=$ac_path_separator
2701 for ac_dir in $ac_dummy; do
2703 test -z "$ac_dir" && ac_dir=.
2704 $as_executable_p "$ac_dir/$ac_word" || continue
2705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2706 echo "$as_me:2706: found $ac_dir/$ac_word" >&5
2713 if test -n "$CXX"; then
2714 echo "$as_me:2714: result: $CXX" >&5
2715 echo "${ECHO_T}$CXX" >&6
2717 echo "$as_me:2717: result: no" >&5
2718 echo "${ECHO_T}no" >&6
2721 test -n "$CXX" && break
2724 if test -z "$CXX"; then
2726 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 echo "$as_me:2730: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$ac_ct_CXX"; then
2736 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2738 ac_save_IFS=$IFS; IFS=$ac_path_separator
2740 for ac_dir in $ac_dummy; do
2742 test -z "$ac_dir" && ac_dir=.
2743 $as_executable_p "$ac_dir/$ac_word" || continue
2744 ac_cv_prog_ac_ct_CXX="$ac_prog"
2745 echo "$as_me:2745: found $ac_dir/$ac_word" >&5
2751 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2752 if test -n "$ac_ct_CXX"; then
2753 echo "$as_me:2753: result: $ac_ct_CXX" >&5
2754 echo "${ECHO_T}$ac_ct_CXX" >&6
2756 echo "$as_me:2756: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2760 test -n "$ac_ct_CXX" && break
2762 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2767 # Provide some information about the compiler.
2768 echo "$as_me:2768:" \
2769 "checking for C++ compiler version" >&5
2770 ac_compiler=`set X $ac_compile; echo $2`
2771 { (eval echo "$as_me:2771: \"$ac_compiler --version </dev/null >&5\"") >&5
2772 (eval $ac_compiler --version </dev/null >&5) 2>&5
2774 echo "$as_me:2774: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2776 { (eval echo "$as_me:2776: \"$ac_compiler -v </dev/null >&5\"") >&5
2777 (eval $ac_compiler -v </dev/null >&5) 2>&5
2779 echo "$as_me:2779: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2781 { (eval echo "$as_me:2781: \"$ac_compiler -V </dev/null >&5\"") >&5
2782 (eval $ac_compiler -V </dev/null >&5) 2>&5
2784 echo "$as_me:2784: \$? = $ac_status" >&5
2785 (exit $ac_status); }
2787 echo "$as_me:2787: checking whether we are using the GNU C++ compiler" >&5
2788 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2789 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #line 2793 "configure"
2794 #include "confdefs.h"
2807 rm -f conftest.$ac_objext
2808 if { (eval echo "$as_me:2808: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>&5
2811 echo "$as_me:2811: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:2814: \"$ac_try\"") >&5
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2821 echo "$as_me: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2825 rm -f conftest.$ac_objext conftest.$ac_ext
2826 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2829 echo "$as_me:2829: result: $ac_cv_cxx_compiler_gnu" >&5
2830 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2831 GXX=`test $ac_compiler_gnu = yes && echo yes`
2832 ac_test_CXXFLAGS=${CXXFLAGS+set}
2833 ac_save_CXXFLAGS=$CXXFLAGS
2835 echo "$as_me:2835: checking whether $CXX accepts -g" >&5
2836 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2837 if test "${ac_cv_prog_cxx_g+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line 2841 "configure"
2842 #include "confdefs.h"
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>&5
2856 echo "$as_me:2856: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:2859: \"$ac_try\"") >&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_cxx_g=yes
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2870 rm -f conftest.$ac_objext conftest.$ac_ext
2872 echo "$as_me:2872: result: $ac_cv_prog_cxx_g" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2874 if test "$ac_test_CXXFLAGS" = set; then
2875 CXXFLAGS=$ac_save_CXXFLAGS
2876 elif test $ac_cv_prog_cxx_g = yes; then
2877 if test "$GXX" = yes; then
2883 if test "$GXX" = yes; then
2889 for ac_declaration in \
2891 '#include <stdlib.h>' \
2892 'extern "C" void std::exit (int) throw (); using std::exit;' \
2893 'extern "C" void std::exit (int); using std::exit;' \
2894 'extern "C" void exit (int) throw ();' \
2895 'extern "C" void exit (int);' \
2898 cat >conftest.$ac_ext <<_ACEOF
2899 #line 2899 "configure"
2900 #include "confdefs.h"
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:2912: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>&5
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:2918: \"$ac_try\"") >&5
2921 echo "$as_me:2921: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2925 echo "$as_me: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2929 rm -f conftest.$ac_objext conftest.$ac_ext
2930 cat >conftest.$ac_ext <<_ACEOF
2931 #line 2931 "configure"
2932 #include "confdefs.h"
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>&5
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:2949: \"$ac_try\"") >&5
2952 echo "$as_me:2952: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 rm -f conftest.$ac_objext conftest.$ac_ext
2962 if test -n "$ac_declaration"; then
2963 echo '#ifdef __cplusplus' >>confdefs.h
2964 echo $ac_declaration >>confdefs.h
2965 echo '#endif' >>confdefs.h
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973 ac_main_return=return
2976 ac_cpp='$CXXCPP $CPPFLAGS'
2977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2980 ac_main_return=return
2982 if test "x$cf_with_cxx" != xno
2984 # Several of the C++ configurations do not work, particularly when
2985 # cross-compiling (20140913 -TD)
2986 echo "$as_me:2986: checking if $CXX works" >&5
2987 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2989 save_CPPFLAGS="$CPPFLAGS"
2990 eval cf_includedir=${includedir}
2991 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line 2994 "configure"
2995 #include "confdefs.h"
3004 printf("Hello world!\n")
3010 rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:3011: \"$ac_compile\"") >&5
3012 (eval $ac_compile) 2>&5
3014 echo "$as_me:3014: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -s conftest.$ac_objext'
3017 { (eval echo "$as_me:3017: \"$ac_try\"") >&5
3020 echo "$as_me:3020: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3024 echo "$as_me: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3028 rm -f conftest.$ac_objext conftest.$ac_ext
3029 CPPFLAGS="$save_CPPFLAGS"
3031 echo "$as_me:3031: result: $cf_cxx_works" >&5
3032 echo "${ECHO_T}$cf_cxx_works" >&6
3033 if test "x$cf_cxx_works" = xno
3035 { echo "$as_me:3035: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3036 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3037 cf_with_cxx=no; CXX=""; GXX="";
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 ac_main_return=return
3047 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3048 if test "$CXX" = "g++" ; then
3049 # Extract the first word of "g++", so it can be a program name with args.
3050 set dummy g++; ac_word=$2
3051 echo "$as_me:3051: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3053 if test "${ac_cv_path_CXX+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3061 ac_save_IFS=$IFS; IFS=$ac_path_separator
3063 for ac_dir in $ac_dummy; do
3065 test -z "$ac_dir" && ac_dir=.
3066 if $as_executable_p "$ac_dir/$ac_word"; then
3067 ac_cv_path_CXX="$ac_dir/$ac_word"
3068 echo "$as_me:3068: found $ac_dir/$ac_word" >&5
3078 if test -n "$CXX"; then
3079 echo "$as_me:3079: result: $CXX" >&5
3080 echo "${ECHO_T}$CXX" >&6
3082 echo "$as_me:3082: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3089 { echo "$as_me:3089: WARNING: You don't have any C++ compiler, too bad" >&5
3090 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3091 cf_with_cxx=no; CXX=""; GXX="";
3097 if test "$GXX" = yes; then
3098 echo "$as_me:3098: checking version of ${CXX:-g++}" >&5
3099 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3100 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3101 if test -z "$GXX_VERSION"
3106 echo "$as_me:3106: result: $GXX_VERSION" >&5
3107 echo "${ECHO_T}$GXX_VERSION" >&6
3110 case $GXX_VERSION in
3112 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3114 { echo "$as_me:3114: WARNING: templates do not work" >&5
3115 echo "$as_me: WARNING: templates do not work" >&2;}
3119 echo "$as_me:3119: checking if you want to build C++ binding and demo" >&5
3120 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3122 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3123 if test "${with_cxx_binding+set}" = set; then
3124 withval="$with_cxx_binding"
3125 cf_with_cxx_binding=$withval
3127 cf_with_cxx_binding=$cf_with_cxx
3129 echo "$as_me:3129: result: $cf_with_cxx_binding" >&5
3130 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3132 echo "$as_me:3132: checking if you want to build with Ada95" >&5
3133 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3134 echo "$as_me:3134: result: $cf_with_ada" >&5
3135 echo "${ECHO_T}$cf_with_ada" >&6
3137 echo "$as_me:3137: checking if you want to install terminal database" >&5
3138 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3140 # Check whether --enable-db-install or --disable-db-install was given.
3141 if test "${enable_db_install+set}" = set; then
3142 enableval="$enable_db_install"
3143 cf_with_db_install=$enableval
3145 cf_with_db_install=yes
3147 echo "$as_me:3147: result: $cf_with_db_install" >&5
3148 echo "${ECHO_T}$cf_with_db_install" >&6
3150 echo "$as_me:3150: checking if you want to install manpages" >&5
3151 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3153 # Check whether --with-manpages or --without-manpages was given.
3154 if test "${with_manpages+set}" = set; then
3155 withval="$with_manpages"
3156 cf_with_manpages=$withval
3158 cf_with_manpages=yes
3160 echo "$as_me:3160: result: $cf_with_manpages" >&5
3161 echo "${ECHO_T}$cf_with_manpages" >&6
3163 echo "$as_me:3163: checking if you want to build programs such as tic" >&5
3164 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3166 # Check whether --with-progs or --without-progs was given.
3167 if test "${with_progs+set}" = set; then
3168 withval="$with_progs"
3169 cf_with_progs=$withval
3173 echo "$as_me:3173: result: $cf_with_progs" >&5
3174 echo "${ECHO_T}$cf_with_progs" >&6
3176 if test -f $srcdir/tack/tack.h; then
3177 if test "x$cross_compiling" = xyes ; then
3178 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3180 echo "${as_me:-configure}:3180: testing ignoring tack because we are cross-compiling ..." 1>&5
3184 echo "$as_me:3184: checking if you want to build the tack program" >&5
3185 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3187 # Check whether --with-tack or --without-tack was given.
3188 if test "${with_tack+set}" = set; then
3189 withval="$with_tack"
3190 cf_with_tack=$withval
3192 cf_with_tack=$cf_with_progs
3194 echo "$as_me:3194: result: $cf_with_tack" >&5
3195 echo "${ECHO_T}$cf_with_tack" >&6
3201 echo "$as_me:3201: checking if you want to build test-programs" >&5
3202 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3204 # Check whether --with-tests or --without-tests was given.
3205 if test "${with_tests+set}" = set; then
3206 withval="$with_tests"
3207 cf_with_tests=$withval
3211 echo "$as_me:3211: result: $cf_with_tests" >&5
3212 echo "${ECHO_T}$cf_with_tests" >&6
3214 echo "$as_me:3214: checking if you wish to install curses.h" >&5
3215 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3217 # Check whether --with-curses-h or --without-curses-h was given.
3218 if test "${with_curses_h+set}" = set; then
3219 withval="$with_curses_h"
3220 with_curses_h=$withval
3224 echo "$as_me:3224: result: $with_curses_h" >&5
3225 echo "${ECHO_T}$with_curses_h" >&6
3227 modules_to_build="ncurses"
3228 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3229 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3230 modules_to_build="$modules_to_build panel menu form"
3232 test "$program_prefix" != NONE &&
3233 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3234 # Use a double $ so make ignores it.
3235 test "$program_suffix" != NONE &&
3236 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3237 # Double any \ or $. echo might interpret backslashes.
3238 # By default was `s,x,x', remove it if useless.
3239 cat <<\_ACEOF >conftest.sed
3240 s/[\\$]/&&/g;s/;s,x,x,$//
3242 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3245 for ac_prog in mawk gawk nawk awk
3247 # Extract the first word of "$ac_prog", so it can be a program name with args.
3248 set dummy $ac_prog; ac_word=$2
3249 echo "$as_me:3249: checking for $ac_word" >&5
3250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3251 if test "${ac_cv_prog_AWK+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 if test -n "$AWK"; then
3255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3257 ac_save_IFS=$IFS; IFS=$ac_path_separator
3259 for ac_dir in $ac_dummy; do
3261 test -z "$ac_dir" && ac_dir=.
3262 $as_executable_p "$ac_dir/$ac_word" || continue
3263 ac_cv_prog_AWK="$ac_prog"
3264 echo "$as_me:3264: found $ac_dir/$ac_word" >&5
3271 if test -n "$AWK"; then
3272 echo "$as_me:3272: result: $AWK" >&5
3273 echo "${ECHO_T}$AWK" >&6
3275 echo "$as_me:3275: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3279 test -n "$AWK" && break
3282 test -z "$AWK" && { { echo "$as_me:3282: error: No awk program found" >&5
3283 echo "$as_me: error: No awk program found" >&2;}
3284 { (exit 1); exit 1; }; }
3286 echo "$as_me:3286: checking for egrep" >&5
3287 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3288 if test "${ac_cv_prog_egrep+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3292 then ac_cv_prog_egrep='grep -E'
3293 else ac_cv_prog_egrep='egrep'
3296 echo "$as_me:3296: result: $ac_cv_prog_egrep" >&5
3297 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3298 EGREP=$ac_cv_prog_egrep
3300 test -z "$EGREP" && { { echo "$as_me:3300: error: No egrep program found" >&5
3301 echo "$as_me: error: No egrep program found" >&2;}
3302 { (exit 1); exit 1; }; }
3304 # Find a good install program. We prefer a C program (faster),
3305 # so one script is as good as another. But avoid the broken or
3306 # incompatible versions:
3307 # SysV /etc/install, /usr/sbin/install
3308 # SunOS /usr/etc/install
3309 # IRIX /sbin/install
3311 # AmigaOS /C/install, which installs bootblocks on floppy discs
3312 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3313 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3314 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3315 # ./install, which can be erroneously created by make from ./install.sh.
3316 echo "$as_me:3316: checking for a BSD compatible install" >&5
3317 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3318 if test -z "$INSTALL"; then
3319 if test "${ac_cv_path_install+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 ac_save_IFS=$IFS; IFS=$ac_path_separator
3323 for ac_dir in $PATH; do
3325 # Account for people who put trailing slashes in PATH elements.
3327 / | ./ | .// | /cC/* \
3328 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3331 # OSF1 and SCO ODT 3.0 have their own names for install.
3332 # Don't use installbsd from OSF since it installs stuff as root
3334 for ac_prog in ginstall scoinst install; do
3335 if $as_executable_p "$ac_dir/$ac_prog"; then
3336 if test $ac_prog = install &&
3337 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3338 # AIX install. It has an incompatible calling convention.
3340 elif test $ac_prog = install &&
3341 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3342 # program-specific install script used by HP pwplus--don't use.
3345 ac_cv_path_install="$ac_dir/$ac_prog -c"
3355 if test "${ac_cv_path_install+set}" = set; then
3356 INSTALL=$ac_cv_path_install
3358 # As a last resort, use the slow shell script. We don't cache a
3359 # path for INSTALL within a source directory, because that will
3360 # break other packages using the cache if that directory is
3361 # removed, or if the path is relative.
3362 INSTALL=$ac_install_sh
3365 echo "$as_me:3365: result: $INSTALL" >&5
3366 echo "${ECHO_T}$INSTALL" >&6
3368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3369 # It thinks the first close brace ends the variable substitution.
3370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3380 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3381 test -z "$cf_dir" && cf_dir=.
3382 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3386 for ac_prog in lint cppcheck splint
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 echo "$as_me:3390: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_LINT+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 if test -n "$LINT"; then
3396 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3398 ac_save_IFS=$IFS; IFS=$ac_path_separator
3400 for ac_dir in $ac_dummy; do
3402 test -z "$ac_dir" && ac_dir=.
3403 $as_executable_p "$ac_dir/$ac_word" || continue
3404 ac_cv_prog_LINT="$ac_prog"
3405 echo "$as_me:3405: found $ac_dir/$ac_word" >&5
3411 LINT=$ac_cv_prog_LINT
3412 if test -n "$LINT"; then
3413 echo "$as_me:3413: result: $LINT" >&5
3414 echo "${ECHO_T}$LINT" >&6
3416 echo "$as_me:3416: result: no" >&5
3417 echo "${ECHO_T}no" >&6
3420 test -n "$LINT" && break
3423 echo "$as_me:3423: checking whether ln -s works" >&5
3424 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3426 if test "$LN_S" = "ln -s"; then
3427 echo "$as_me:3427: result: yes" >&5
3428 echo "${ECHO_T}yes" >&6
3430 echo "$as_me:3430: result: no, using $LN_S" >&5
3431 echo "${ECHO_T}no, using $LN_S" >&6
3434 echo "$as_me:3434: checking if $LN_S -f options work" >&5
3435 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3437 rm -f conf$$.src conf$$dst
3439 echo first >conf$$.src
3440 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3445 rm -f conf$$.dst conf$$src
3446 echo "$as_me:3446: result: $cf_prog_ln_sf" >&5
3447 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3449 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3451 echo "$as_me:3451: checking for long file names" >&5
3452 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3453 if test "${ac_cv_sys_long_file_names+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 ac_cv_sys_long_file_names=yes
3457 # Test for long file names in all the places we know might matter:
3458 # . the current directory, where building will happen
3459 # $prefix/lib where we will be installing things
3460 # $exec_prefix/lib likewise
3461 # eval it to expand exec_prefix.
3462 # $TMPDIR if set, where it might want to write temporary files
3463 # if $TMPDIR is not set:
3464 # /tmp where it might want to write temporary files
3467 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3470 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3472 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3473 test -d $ac_dir || continue
3474 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3475 ac_xdir=$ac_dir/cf$$
3476 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3477 ac_tf1=$ac_xdir/conftest9012345
3478 ac_tf2=$ac_xdir/conftest9012346
3479 (echo 1 >$ac_tf1) 2>/dev/null
3480 (echo 2 >$ac_tf2) 2>/dev/null
3481 ac_val=`cat $ac_tf1 2>/dev/null`
3482 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3483 ac_cv_sys_long_file_names=no
3484 rm -rf $ac_xdir 2>/dev/null
3487 rm -rf $ac_xdir 2>/dev/null
3490 echo "$as_me:3490: result: $ac_cv_sys_long_file_names" >&5
3491 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3492 if test $ac_cv_sys_long_file_names = yes; then
3494 cat >>confdefs.h <<\EOF
3495 #define HAVE_LONG_FILE_NAMES 1
3500 # if we find pkg-config, check if we should install the ".pc" files.
3502 echo "$as_me:3502: checking if you want to use pkg-config" >&5
3503 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3505 # Check whether --with-pkg-config or --without-pkg-config was given.
3506 if test "${with_pkg_config+set}" = set; then
3507 withval="$with_pkg_config"
3508 cf_pkg_config=$withval
3512 echo "$as_me:3512: result: $cf_pkg_config" >&5
3513 echo "${ECHO_T}$cf_pkg_config" >&6
3515 case $cf_pkg_config in
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3523 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3524 echo "$as_me:3524: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3534 ac_save_IFS=$IFS; IFS=$ac_path_separator
3536 for ac_dir in $ac_dummy; do
3538 test -z "$ac_dir" && ac_dir=.
3539 if $as_executable_p "$ac_dir/$ac_word"; then
3540 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3541 echo "$as_me:3541: found $ac_dir/$ac_word" >&5
3549 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3551 if test -n "$PKG_CONFIG"; then
3552 echo "$as_me:3552: result: $PKG_CONFIG" >&5
3553 echo "${ECHO_T}$PKG_CONFIG" >&6
3555 echo "$as_me:3555: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3560 if test -z "$ac_cv_path_PKG_CONFIG"; then
3561 ac_pt_PKG_CONFIG=$PKG_CONFIG
3562 # Extract the first word of "pkg-config", so it can be a program name with args.
3563 set dummy pkg-config; ac_word=$2
3564 echo "$as_me:3564: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 case $ac_pt_PKG_CONFIG in
3571 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3574 ac_save_IFS=$IFS; IFS=$ac_path_separator
3576 for ac_dir in $ac_dummy; do
3578 test -z "$ac_dir" && ac_dir=.
3579 if $as_executable_p "$ac_dir/$ac_word"; then
3580 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3581 echo "$as_me:3581: found $ac_dir/$ac_word" >&5
3586 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3590 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3592 if test -n "$ac_pt_PKG_CONFIG"; then
3593 echo "$as_me:3593: result: $ac_pt_PKG_CONFIG" >&5
3594 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3596 echo "$as_me:3596: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3600 PKG_CONFIG=$ac_pt_PKG_CONFIG
3602 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3611 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3612 if test "$PKG_CONFIG" != none ; then
3614 if test "x$prefix" != xNONE; then
3615 cf_path_syntax="$prefix"
3617 cf_path_syntax="$ac_default_prefix"
3620 case ".$PKG_CONFIG" in
3625 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3627 (.\${*prefix}*|.\${*dir}*)
3628 eval PKG_CONFIG="$PKG_CONFIG"
3629 case ".$PKG_CONFIG" in
3631 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3636 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3639 { { echo "$as_me:3639: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3640 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3641 { (exit 1); exit 1; }; }
3645 elif test "x$cf_pkg_config" != xno ; then
3646 { echo "$as_me:3646: WARNING: pkg-config is not installed" >&5
3647 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3652 echo "$as_me:3652: checking for pkg-config library directory" >&5
3653 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3656 echo "$as_me:3656: checking for $PKG_CONFIG library directory" >&5
3657 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3661 PKG_CONFIG_LIBDIR=no
3663 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3664 if test "${with_pkg_config_libdir+set}" = set; then
3665 withval="$with_pkg_config_libdir"
3666 PKG_CONFIG_LIBDIR=$withval
3668 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3671 case x$PKG_CONFIG_LIBDIR in
3675 # Look for the library directory using the same prefix as the executable
3676 if test "x$PKG_CONFIG" = xnone
3680 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3683 # If you don't like using the default architecture, you have to specify the
3684 # intended library directory and corresponding compiler/linker options.
3686 # This case allows for Debian's 2014-flavor of multiarch, along with the
3687 # most common variations before that point. Some other variants spell the
3688 # directory differently, e.g., "pkg-config", and put it in unusual places.
3689 # pkg-config has always been poorly standardized, which is ironic...
3690 case x`(arch) 2>/dev/null` in
3693 $cf_path/lib/*64-linux-gnu \
3701 $cf_path/lib/*-linux-gnu \
3709 test -n "$verbose" && echo " list..." 1>&6
3711 echo "${as_me:-configure}:3711: testing list... ..." 1>&5
3713 for cf_config in $cf_search_path
3715 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3717 echo "${as_me:-configure}:3717: testing checking $cf_config/pkgconfig ..." 1>&5
3719 if test -d $cf_config/pkgconfig
3721 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3722 echo "$as_me:3722: checking done" >&5
3723 echo $ECHO_N "checking done... $ECHO_C" >&6
3732 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3733 echo "$as_me:3733: result: $PKG_CONFIG_LIBDIR" >&5
3734 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3737 if test "x$PKG_CONFIG" != xnone
3739 echo "$as_me:3739: checking if we should install .pc files for $PKG_CONFIG" >&5
3740 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3742 echo "$as_me:3742: checking if we should install .pc files" >&5
3743 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3746 # Check whether --enable-pc-files or --disable-pc-files was given.
3747 if test "${enable_pc_files+set}" = set; then
3748 enableval="$enable_pc_files"
3749 enable_pc_files=$enableval
3753 echo "$as_me:3753: result: $enable_pc_files" >&5
3754 echo "${ECHO_T}$enable_pc_files" >&6
3756 if test "x$enable_pc_files" != xno
3759 case "x$PKG_CONFIG_LIBDIR" in
3761 { echo "$as_me:3761: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3762 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3766 if test "x$prefix" != xNONE; then
3767 cf_path_syntax="$prefix"
3769 cf_path_syntax="$ac_default_prefix"
3772 case ".$PKG_CONFIG_LIBDIR" in
3777 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3779 (.\${*prefix}*|.\${*dir}*)
3780 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3781 case ".$PKG_CONFIG_LIBDIR" in
3783 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3788 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3791 { { echo "$as_me:3791: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3792 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3793 { (exit 1); exit 1; }; }
3803 if test -z "$MAKE_PC_FILES"
3805 echo "$as_me:3805: checking for suffix to add to pc-files" >&5
3806 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3808 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3809 if test "${with_pc_suffix+set}" = set; then
3810 withval="$with_pc_suffix"
3815 (*) PC_MODULE_SUFFIX="$withval"
3819 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3820 echo "$as_me:3820: result: $PC_MODULE_SUFFIX" >&5
3821 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3822 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3826 echo "$as_me:3826: checking if we should assume mixed-case filenames" >&5
3827 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3829 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3830 if test "${enable_mixed_case+set}" = set; then
3831 enableval="$enable_mixed_case"
3832 enable_mixedcase=$enableval
3834 enable_mixedcase=auto
3836 echo "$as_me:3836: result: $enable_mixedcase" >&5
3837 echo "${ECHO_T}$enable_mixedcase" >&6
3838 if test "$enable_mixedcase" = "auto" ; then
3840 echo "$as_me:3840: checking if filesystem supports mixed-case filenames" >&5
3841 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3842 if test "${cf_cv_mixedcase+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 if test "$cross_compiling" = yes ; then
3847 case $target_alias in
3848 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3856 rm -f conftest CONFTEST
3858 if test -f CONFTEST ; then
3863 rm -f conftest CONFTEST
3867 echo "$as_me:3867: result: $cf_cv_mixedcase" >&5
3868 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3869 test "$cf_cv_mixedcase" = yes &&
3870 cat >>confdefs.h <<\EOF
3871 #define MIXEDCASE_FILENAMES 1
3875 cf_cv_mixedcase=$enable_mixedcase
3876 if test "x$enable_mixedcase" = "xyes" ; then
3878 cat >>confdefs.h <<\EOF
3879 #define MIXEDCASE_FILENAMES 1
3885 # do this after mixed-case option (tags/TAGS is not as important as tic).
3886 echo "$as_me:3886: checking whether ${MAKE-make} sets \${MAKE}" >&5
3887 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3888 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3889 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 cat >conftest.make <<\EOF
3894 @echo 'ac_maketemp="${MAKE}"'
3896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3897 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3898 if test -n "$ac_maketemp"; then
3899 eval ac_cv_prog_make_${ac_make}_set=yes
3901 eval ac_cv_prog_make_${ac_make}_set=no
3905 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3906 echo "$as_me:3906: result: yes" >&5
3907 echo "${ECHO_T}yes" >&6
3910 echo "$as_me:3910: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3912 SET_MAKE="MAKE=${MAKE-make}"
3915 for ac_prog in exctags ctags
3917 # Extract the first word of "$ac_prog", so it can be a program name with args.
3918 set dummy $ac_prog; ac_word=$2
3919 echo "$as_me:3919: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_prog_CTAGS+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 if test -n "$CTAGS"; then
3925 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3927 ac_save_IFS=$IFS; IFS=$ac_path_separator
3929 for ac_dir in $ac_dummy; do
3931 test -z "$ac_dir" && ac_dir=.
3932 $as_executable_p "$ac_dir/$ac_word" || continue
3933 ac_cv_prog_CTAGS="$ac_prog"
3934 echo "$as_me:3934: found $ac_dir/$ac_word" >&5
3940 CTAGS=$ac_cv_prog_CTAGS
3941 if test -n "$CTAGS"; then
3942 echo "$as_me:3942: result: $CTAGS" >&5
3943 echo "${ECHO_T}$CTAGS" >&6
3945 echo "$as_me:3945: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3949 test -n "$CTAGS" && break
3952 for ac_prog in exetags etags
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 echo "$as_me:3956: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_ETAGS+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test -n "$ETAGS"; then
3962 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3964 ac_save_IFS=$IFS; IFS=$ac_path_separator
3966 for ac_dir in $ac_dummy; do
3968 test -z "$ac_dir" && ac_dir=.
3969 $as_executable_p "$ac_dir/$ac_word" || continue
3970 ac_cv_prog_ETAGS="$ac_prog"
3971 echo "$as_me:3971: found $ac_dir/$ac_word" >&5
3977 ETAGS=$ac_cv_prog_ETAGS
3978 if test -n "$ETAGS"; then
3979 echo "$as_me:3979: result: $ETAGS" >&5
3980 echo "${ECHO_T}$ETAGS" >&6
3982 echo "$as_me:3982: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3986 test -n "$ETAGS" && break
3989 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3990 set dummy ${CTAGS:-ctags}; ac_word=$2
3991 echo "$as_me:3991: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if test -n "$MAKE_LOWER_TAGS"; then
3997 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3999 ac_save_IFS=$IFS; IFS=$ac_path_separator
4001 for ac_dir in $ac_dummy; do
4003 test -z "$ac_dir" && ac_dir=.
4004 $as_executable_p "$ac_dir/$ac_word" || continue
4005 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4006 echo "$as_me:4006: found $ac_dir/$ac_word" >&5
4010 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4013 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4014 if test -n "$MAKE_LOWER_TAGS"; then
4015 echo "$as_me:4015: result: $MAKE_LOWER_TAGS" >&5
4016 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4018 echo "$as_me:4018: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4022 if test "$cf_cv_mixedcase" = yes ; then
4023 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4024 set dummy ${ETAGS:-etags}; ac_word=$2
4025 echo "$as_me:4025: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$MAKE_UPPER_TAGS"; then
4031 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4033 ac_save_IFS=$IFS; IFS=$ac_path_separator
4035 for ac_dir in $ac_dummy; do
4037 test -z "$ac_dir" && ac_dir=.
4038 $as_executable_p "$ac_dir/$ac_word" || continue
4039 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4040 echo "$as_me:4040: found $ac_dir/$ac_word" >&5
4044 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4047 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4048 if test -n "$MAKE_UPPER_TAGS"; then
4049 echo "$as_me:4049: result: $MAKE_UPPER_TAGS" >&5
4050 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4052 echo "$as_me:4052: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4060 if test "$MAKE_UPPER_TAGS" = yes ; then
4066 if test "$MAKE_LOWER_TAGS" = yes ; then
4072 echo "$as_me:4072: checking for makeflags variable" >&5
4073 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4074 if test "${cf_cv_makeflags+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4081 cat >cf_makeflags.tmp <<CF_EOF
4084 @ echo '.$cf_option'
4086 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4087 case "$cf_result" in
4089 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4090 case "$cf_result" in
4091 (.*CC=*) cf_cv_makeflags=
4093 (*) cf_cv_makeflags=$cf_option
4099 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4103 rm -f cf_makeflags.tmp
4106 echo "$as_me:4106: result: $cf_cv_makeflags" >&5
4107 echo "${ECHO_T}$cf_cv_makeflags" >&6
4109 if test -n "$ac_tool_prefix"; then
4110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4112 echo "$as_me:4112: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_RANLIB+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -n "$RANLIB"; then
4118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4120 ac_save_IFS=$IFS; IFS=$ac_path_separator
4122 for ac_dir in $ac_dummy; do
4124 test -z "$ac_dir" && ac_dir=.
4125 $as_executable_p "$ac_dir/$ac_word" || continue
4126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4127 echo "$as_me:4127: found $ac_dir/$ac_word" >&5
4133 RANLIB=$ac_cv_prog_RANLIB
4134 if test -n "$RANLIB"; then
4135 echo "$as_me:4135: result: $RANLIB" >&5
4136 echo "${ECHO_T}$RANLIB" >&6
4138 echo "$as_me:4138: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4143 if test -z "$ac_cv_prog_RANLIB"; then
4144 ac_ct_RANLIB=$RANLIB
4145 # Extract the first word of "ranlib", so it can be a program name with args.
4146 set dummy ranlib; ac_word=$2
4147 echo "$as_me:4147: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if test -n "$ac_ct_RANLIB"; then
4153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4155 ac_save_IFS=$IFS; IFS=$ac_path_separator
4157 for ac_dir in $ac_dummy; do
4159 test -z "$ac_dir" && ac_dir=.
4160 $as_executable_p "$ac_dir/$ac_word" || continue
4161 ac_cv_prog_ac_ct_RANLIB="ranlib"
4162 echo "$as_me:4162: found $ac_dir/$ac_word" >&5
4166 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4170 if test -n "$ac_ct_RANLIB"; then
4171 echo "$as_me:4171: result: $ac_ct_RANLIB" >&5
4172 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4174 echo "$as_me:4174: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4178 RANLIB=$ac_ct_RANLIB
4180 RANLIB="$ac_cv_prog_RANLIB"
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}ld; ac_word=$2
4186 echo "$as_me:4186: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_LD+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test -n "$LD"; then
4192 ac_cv_prog_LD="$LD" # Let the user override the test.
4194 ac_save_IFS=$IFS; IFS=$ac_path_separator
4196 for ac_dir in $ac_dummy; do
4198 test -z "$ac_dir" && ac_dir=.
4199 $as_executable_p "$ac_dir/$ac_word" || continue
4200 ac_cv_prog_LD="${ac_tool_prefix}ld"
4201 echo "$as_me:4201: found $ac_dir/$ac_word" >&5
4208 if test -n "$LD"; then
4209 echo "$as_me:4209: result: $LD" >&5
4210 echo "${ECHO_T}$LD" >&6
4212 echo "$as_me:4212: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4217 if test -z "$ac_cv_prog_LD"; then
4219 # Extract the first word of "ld", so it can be a program name with args.
4220 set dummy ld; ac_word=$2
4221 echo "$as_me:4221: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 if test -n "$ac_ct_LD"; then
4227 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4229 ac_save_IFS=$IFS; IFS=$ac_path_separator
4231 for ac_dir in $ac_dummy; do
4233 test -z "$ac_dir" && ac_dir=.
4234 $as_executable_p "$ac_dir/$ac_word" || continue
4235 ac_cv_prog_ac_ct_LD="ld"
4236 echo "$as_me:4236: found $ac_dir/$ac_word" >&5
4240 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4243 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4244 if test -n "$ac_ct_LD"; then
4245 echo "$as_me:4245: result: $ac_ct_LD" >&5
4246 echo "${ECHO_T}$ac_ct_LD" >&6
4248 echo "$as_me:4248: result: no" >&5
4249 echo "${ECHO_T}no" >&6
4257 if test -n "$ac_tool_prefix"; then
4258 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4259 set dummy ${ac_tool_prefix}ar; ac_word=$2
4260 echo "$as_me:4260: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_AR+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$AR"; then
4266 ac_cv_prog_AR="$AR" # Let the user override the test.
4268 ac_save_IFS=$IFS; IFS=$ac_path_separator
4270 for ac_dir in $ac_dummy; do
4272 test -z "$ac_dir" && ac_dir=.
4273 $as_executable_p "$ac_dir/$ac_word" || continue
4274 ac_cv_prog_AR="${ac_tool_prefix}ar"
4275 echo "$as_me:4275: found $ac_dir/$ac_word" >&5
4282 if test -n "$AR"; then
4283 echo "$as_me:4283: result: $AR" >&5
4284 echo "${ECHO_T}$AR" >&6
4286 echo "$as_me:4286: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4291 if test -z "$ac_cv_prog_AR"; then
4293 # Extract the first word of "ar", so it can be a program name with args.
4294 set dummy ar; ac_word=$2
4295 echo "$as_me:4295: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$ac_ct_AR"; then
4301 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4303 ac_save_IFS=$IFS; IFS=$ac_path_separator
4305 for ac_dir in $ac_dummy; do
4307 test -z "$ac_dir" && ac_dir=.
4308 $as_executable_p "$ac_dir/$ac_word" || continue
4309 ac_cv_prog_ac_ct_AR="ar"
4310 echo "$as_me:4310: found $ac_dir/$ac_word" >&5
4314 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4317 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4318 if test -n "$ac_ct_AR"; then
4319 echo "$as_me:4319: result: $ac_ct_AR" >&5
4320 echo "${ECHO_T}$ac_ct_AR" >&6
4322 echo "$as_me:4322: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4331 if test -n "$ac_tool_prefix"; then
4332 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4333 set dummy ${ac_tool_prefix}nm; ac_word=$2
4334 echo "$as_me:4334: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4336 if test "${ac_cv_prog_NM+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 if test -n "$NM"; then
4340 ac_cv_prog_NM="$NM" # Let the user override the test.
4342 ac_save_IFS=$IFS; IFS=$ac_path_separator
4344 for ac_dir in $ac_dummy; do
4346 test -z "$ac_dir" && ac_dir=.
4347 $as_executable_p "$ac_dir/$ac_word" || continue
4348 ac_cv_prog_NM="${ac_tool_prefix}nm"
4349 echo "$as_me:4349: found $ac_dir/$ac_word" >&5
4356 if test -n "$NM"; then
4357 echo "$as_me:4357: result: $NM" >&5
4358 echo "${ECHO_T}$NM" >&6
4360 echo "$as_me:4360: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4365 if test -z "$ac_cv_prog_NM"; then
4367 # Extract the first word of "nm", so it can be a program name with args.
4368 set dummy nm; ac_word=$2
4369 echo "$as_me:4369: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4371 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 if test -n "$ac_ct_NM"; then
4375 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4377 ac_save_IFS=$IFS; IFS=$ac_path_separator
4379 for ac_dir in $ac_dummy; do
4381 test -z "$ac_dir" && ac_dir=.
4382 $as_executable_p "$ac_dir/$ac_word" || continue
4383 ac_cv_prog_ac_ct_NM="nm"
4384 echo "$as_me:4384: found $ac_dir/$ac_word" >&5
4388 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4391 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4392 if test -n "$ac_ct_NM"; then
4393 echo "$as_me:4393: result: $ac_ct_NM" >&5
4394 echo "${ECHO_T}$ac_ct_NM" >&6
4396 echo "$as_me:4396: result: no" >&5
4397 echo "${ECHO_T}no" >&6
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4407 set dummy ${ac_tool_prefix}ar; ac_word=$2
4408 echo "$as_me:4408: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4410 if test "${ac_cv_prog_AR+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test -n "$AR"; then
4414 ac_cv_prog_AR="$AR" # Let the user override the test.
4416 ac_save_IFS=$IFS; IFS=$ac_path_separator
4418 for ac_dir in $ac_dummy; do
4420 test -z "$ac_dir" && ac_dir=.
4421 $as_executable_p "$ac_dir/$ac_word" || continue
4422 ac_cv_prog_AR="${ac_tool_prefix}ar"
4423 echo "$as_me:4423: found $ac_dir/$ac_word" >&5
4430 if test -n "$AR"; then
4431 echo "$as_me:4431: result: $AR" >&5
4432 echo "${ECHO_T}$AR" >&6
4434 echo "$as_me:4434: result: no" >&5
4435 echo "${ECHO_T}no" >&6
4439 if test -z "$ac_cv_prog_AR"; then
4441 # Extract the first word of "ar", so it can be a program name with args.
4442 set dummy ar; ac_word=$2
4443 echo "$as_me:4443: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4445 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 if test -n "$ac_ct_AR"; then
4449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4451 ac_save_IFS=$IFS; IFS=$ac_path_separator
4453 for ac_dir in $ac_dummy; do
4455 test -z "$ac_dir" && ac_dir=.
4456 $as_executable_p "$ac_dir/$ac_word" || continue
4457 ac_cv_prog_ac_ct_AR="ar"
4458 echo "$as_me:4458: found $ac_dir/$ac_word" >&5
4462 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4466 if test -n "$ac_ct_AR"; then
4467 echo "$as_me:4467: result: $ac_ct_AR" >&5
4468 echo "${ECHO_T}$ac_ct_AR" >&6
4470 echo "$as_me:4470: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4479 echo "$as_me:4479: checking for options to update archives" >&5
4480 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4481 if test "${cf_cv_ar_flags+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 cf_cv_ar_flags=unknown
4486 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4489 # check if $ARFLAGS already contains this choice
4490 if test "x$ARFLAGS" != "x" ; then
4491 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4492 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4498 rm -f conftest.$ac_cv_objext
4501 cat >conftest.$ac_ext <<EOF
4502 #line 4502 "configure"
4503 int testdata[3] = { 123, 456, 789 };
4505 if { (eval echo "$as_me:4505: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5
4508 echo "$as_me:4508: \$? = $ac_status" >&5
4509 (exit $ac_status); } ; then
4510 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4511 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4512 if test -f conftest.a ; then
4513 cf_cv_ar_flags=$cf_ar_flags
4517 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4519 echo "${as_me:-configure}:4519: testing cannot compile test-program ..." 1>&5
4524 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4527 echo "$as_me:4527: result: $cf_cv_ar_flags" >&5
4528 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4530 if test -n "$ARFLAGS" ; then
4531 if test -n "$cf_cv_ar_flags" ; then
4532 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4535 ARFLAGS=$cf_cv_ar_flags
4538 echo "$as_me:4538: checking if you have specified an install-prefix" >&5
4539 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4541 # Check whether --with-install-prefix or --without-install-prefix was given.
4542 if test "${with_install_prefix+set}" = set; then
4543 withval="$with_install_prefix"
4547 (*) DESTDIR="$withval"
4551 echo "$as_me:4551: result: $DESTDIR" >&5
4552 echo "${ECHO_T}$DESTDIR" >&6
4554 ###############################################################################
4556 # If we're cross-compiling, allow the user to override the tools and their
4557 # options. The configure script is oriented toward identifying the host
4558 # compiler, etc., but we need a build compiler to generate parts of the source.
4560 if test "$cross_compiling" = yes ; then
4562 # defaults that we might want to override
4563 : ${BUILD_CFLAGS:=''}
4564 : ${BUILD_CPPFLAGS:=''}
4565 : ${BUILD_LDFLAGS:=''}
4567 : ${BUILD_EXEEXT:='$x'}
4568 : ${BUILD_OBJEXT:='o'}
4570 # Check whether --with-build-cc or --without-build-cc was given.
4571 if test "${with_build_cc+set}" = set; then
4572 withval="$with_build_cc"
4575 for ac_prog in gcc cc cl
4577 # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 echo "$as_me:4579: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$BUILD_CC"; then
4585 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4587 ac_save_IFS=$IFS; IFS=$ac_path_separator
4589 for ac_dir in $ac_dummy; do
4591 test -z "$ac_dir" && ac_dir=.
4592 $as_executable_p "$ac_dir/$ac_word" || continue
4593 ac_cv_prog_BUILD_CC="$ac_prog"
4594 echo "$as_me:4594: found $ac_dir/$ac_word" >&5
4600 BUILD_CC=$ac_cv_prog_BUILD_CC
4601 if test -n "$BUILD_CC"; then
4602 echo "$as_me:4602: result: $BUILD_CC" >&5
4603 echo "${ECHO_T}$BUILD_CC" >&6
4605 echo "$as_me:4605: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4609 test -n "$BUILD_CC" && break
4613 echo "$as_me:4613: checking for native build C compiler" >&5
4614 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4615 echo "$as_me:4615: result: $BUILD_CC" >&5
4616 echo "${ECHO_T}$BUILD_CC" >&6
4618 echo "$as_me:4618: checking for native build C preprocessor" >&5
4619 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4621 # Check whether --with-build-cpp or --without-build-cpp was given.
4622 if test "${with_build_cpp+set}" = set; then
4623 withval="$with_build_cpp"
4624 BUILD_CPP="$withval"
4626 BUILD_CPP='${BUILD_CC} -E'
4628 echo "$as_me:4628: result: $BUILD_CPP" >&5
4629 echo "${ECHO_T}$BUILD_CPP" >&6
4631 echo "$as_me:4631: checking for native build C flags" >&5
4632 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4634 # Check whether --with-build-cflags or --without-build-cflags was given.
4635 if test "${with_build_cflags+set}" = set; then
4636 withval="$with_build_cflags"
4637 BUILD_CFLAGS="$withval"
4639 echo "$as_me:4639: result: $BUILD_CFLAGS" >&5
4640 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4642 echo "$as_me:4642: checking for native build C preprocessor-flags" >&5
4643 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4645 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4646 if test "${with_build_cppflags+set}" = set; then
4647 withval="$with_build_cppflags"
4648 BUILD_CPPFLAGS="$withval"
4650 echo "$as_me:4650: result: $BUILD_CPPFLAGS" >&5
4651 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4653 echo "$as_me:4653: checking for native build linker-flags" >&5
4654 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4656 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4657 if test "${with_build_ldflags+set}" = set; then
4658 withval="$with_build_ldflags"
4659 BUILD_LDFLAGS="$withval"
4661 echo "$as_me:4661: result: $BUILD_LDFLAGS" >&5
4662 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4664 echo "$as_me:4664: checking for native build linker-libraries" >&5
4665 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4667 # Check whether --with-build-libs or --without-build-libs was given.
4668 if test "${with_build_libs+set}" = set; then
4669 withval="$with_build_libs"
4670 BUILD_LIBS="$withval"
4672 echo "$as_me:4672: result: $BUILD_LIBS" >&5
4673 echo "${ECHO_T}$BUILD_LIBS" >&6
4675 # this assumes we're on Unix.
4679 : ${BUILD_CC:='${CC}'}
4681 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4682 { { echo "$as_me:4682: error: Cross-build requires two compilers.
4683 Use --with-build-cc to specify the native compiler." >&5
4684 echo "$as_me: error: Cross-build requires two compilers.
4685 Use --with-build-cc to specify the native compiler." >&2;}
4686 { (exit 1); exit 1; }; }
4690 : ${BUILD_CC:='${CC}'}
4691 : ${BUILD_CPP:='${CPP}'}
4692 : ${BUILD_CFLAGS:='${CFLAGS}'}
4693 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4694 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4695 : ${BUILD_LIBS:='${LIBS}'}
4696 : ${BUILD_EXEEXT:='$x'}
4697 : ${BUILD_OBJEXT:='o'}
4700 ###############################################################################
4702 ### Options to allow the user to specify the set of libraries which are used.
4703 ### Use "--without-normal --with-shared" to allow the default model to be
4704 ### shared, for example.
4707 echo "$as_me:4707: checking if libtool -version-number should be used" >&5
4708 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4710 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4711 if test "${enable_libtool_version+set}" = set; then
4712 enableval="$enable_libtool_version"
4713 test "$enableval" != no && enableval=yes
4714 if test "$enableval" != "yes" ; then
4715 cf_libtool_version=no
4717 cf_libtool_version=yes
4721 cf_libtool_version=yes
4724 echo "$as_me:4724: result: $cf_libtool_version" >&5
4725 echo "${ECHO_T}$cf_libtool_version" >&6
4727 if test "$cf_libtool_version" = yes ; then
4728 LIBTOOL_VERSION="-version-number"
4730 LIBTOOL_VERSION="-version-info"
4733 { echo "$as_me:4733: WARNING: VERSION was not set" >&5
4734 echo "$as_me: WARNING: VERSION was not set" >&2;}
4737 ABI_VERSION="$VERSION"
4738 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4740 echo "${as_me:-configure}:4740: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4744 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4745 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4747 echo "${as_me:-configure}:4747: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4751 { echo "$as_me:4751: WARNING: unexpected VERSION value: $VERSION" >&5
4752 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4759 # common library maintenance symbols that are convenient for libtool scripts:
4760 LIB_CREATE='${AR} -cr'
4761 LIB_OBJECT='${OBJECTS}'
4765 # symbols used to prop libtool up to enable it to determine what it should be
4773 echo "$as_me:4773: checking if you want to build libraries with libtool" >&5
4774 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4776 # Check whether --with-libtool or --without-libtool was given.
4777 if test "${with_libtool+set}" = set; then
4778 withval="$with_libtool"
4779 with_libtool=$withval
4783 echo "$as_me:4783: result: $with_libtool" >&5
4784 echo "${ECHO_T}$with_libtool" >&6
4785 if test "$with_libtool" != "no"; then
4787 if test "$with_libtool" != "yes" ; then
4789 if test "x$prefix" != xNONE; then
4790 cf_path_syntax="$prefix"
4792 cf_path_syntax="$ac_default_prefix"
4795 case ".$with_libtool" in
4800 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4802 (.\${*prefix}*|.\${*dir}*)
4803 eval with_libtool="$with_libtool"
4804 case ".$with_libtool" in
4806 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4811 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4814 { { echo "$as_me:4814: error: expected a pathname, not \"$with_libtool\"" >&5
4815 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4816 { (exit 1); exit 1; }; }
4820 LIBTOOL=$with_libtool
4822 if test -n "$ac_tool_prefix"; then
4823 for ac_prog in libtool glibtool
4825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4827 echo "$as_me:4827: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 if test -n "$LIBTOOL"; then
4833 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.