2 # From configure.in Revision: 1.660 .
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-config-suffix=X suffixes ncursesXX-config file
716 --with-pkg-config{=path} enable/disable use of pkg-config
717 --with-pkg-config-libdir=XXX use given directory for installing pc-files
718 --enable-pc-files generate and install .pc files for pkg-config
719 --with-pc-suffix suffixes pc-files
720 --enable-mixed-case tic should assume mixed-case filenames
721 --with-install-prefix prefixes actual install-location ($DESTDIR)
722 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
723 --with-build-cc=XXX the build C compiler ($BUILD_CC)
724 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
725 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
726 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
727 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
728 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
729 Options to Specify the Libraries Built/Used:
730 --disable-libtool-version enable to use libtool's incompatible naming scheme
731 --with-libtool generate libraries with libtool
732 --with-shared generate shared-libraries
733 --with-normal generate normal-libraries (default)
734 --with-debug generate debug-libraries (default)
735 --with-profile generate profile-libraries
736 --with-cxx-shared generate C++ shared-libraries
737 --with-lib-prefix override library-prefix
738 --with-termlib generate separate terminfo library
739 --with-ticlib generate separate tic library
740 --enable-rpath use rpath option when generating shared libraries
741 --disable-relink relink shared libraries during install
742 --with-shlib-version=X Specify rel or abi version for shared libs
743 --with-libtool-opts=XXX specify additional libtool options
744 --with-export-syms=XXX limit exported symbols using libtool
745 --with-versioned-syms=X markup versioned symbols using ld
746 --with-gpm use Alessandro Rubini's GPM library
747 --without-dlsym do not use dlsym() to load GPM dynamically
748 --with-pcre2 use PCRE2 for regular-expressions
749 --with-sysmouse use sysmouse (FreeBSD console)
750 --disable-lib-suffixes disable library suffixes
751 --disable-rpath-hack don't add rpath options for additional libraries
752 Fine-Tuning Your Configuration:
753 --with-extra-suffix=X append extra suffix to header/library paths
754 --disable-overwrite put headers in subdir, omit link to -lcurses
755 --disable-database do not use terminfo, only fallbacks/termcap
756 --with-database=XXX specify terminfo source to install
757 --with-hashed-db specify hashed-database library
758 --with-fallbacks=XXX specify list of fallback terminal descriptions
759 --without-xterm-new specify if xterm terminfo should be old version
760 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
761 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
762 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
763 --disable-big-core assume machine has little memory
764 --disable-big-strings assume compiler has only standard-size strings
765 --enable-termcap compile in termcap fallback support
766 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
767 --enable-getcap fast termcap load, no xrefs to terminfo
768 --enable-getcap-cache cache translated termcaps in ~/.terminfo
769 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
770 --disable-root-environ restrict environment when running as root
771 --enable-symlinks make tic use symbolic links not hard links
772 --enable-broken_linker compile with broken-linker support code
773 --enable-bsdpad recognize BSD-style prefix padding
774 --enable-widec compile with wide-char/UTF-8 code
775 --disable-lp64 allow chtype to be long (ignore _LP64)
776 --disable-largefile omit support for large files
777 --disable-tparm-varargs compile tparm() without varargs interface
778 --disable-tic-depends link tic library without explicit dependency on ncurses library
779 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
780 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
781 --with-bool=TYPE override fallback type of bool variable
782 --with-caps=alt compile with alternate Caps file
783 --with-chtype=TYPE override type of chtype
784 --with-ospeed=TYPE override type of ospeed variable
785 --with-mmask-t=TYPE override type of mmask_t
786 --with-ccharw-max=XXX override size CCHARW_MAX
787 --enable-signed-char compile using signed Boolean's in term.h
788 --with-tparm-arg=TYPE override parameter type of tparm
789 --with-rcs-ids compile-in RCS identifiers
790 Options to Specify How Manpages are Installed:
791 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
792 optionally formatted/catonly, e.g., gzip,formatted
793 --with-manpage-renames specify manpage-renaming
794 --with-manpage-aliases specify manpage-aliases using .so
795 --with-manpage-symlinks specify manpage-aliases using symlinks
796 --with-manpage-tbl specify manpage processing with tbl
798 --disable-ext-funcs disable function-extensions
799 --enable-sp-funcs enable SCREEN-extensions
800 --enable-term-driver enable terminal-driver
801 --enable-const compile with extra/non-standard const
802 --enable-ext-colors compile for 256-color support
803 --enable-ext-mouse compile for extended mouse-encoding
804 --enable-ext-putwin compile with extended putwin/screendump
805 --enable-no-padding compile with $NCURSES_NO_PADDING code
806 --enable-sigwinch compile with SIGWINCH handler
807 --enable-tcap-names compile with user-definable terminal capabilities
809 --with-pthread use POSIX thread library
810 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
811 --enable-weak-symbols enable weak-symbols for pthreads
812 --enable-reentrant compile with reentrant code
813 --enable-opaque-curses make curses WINDOW, etc., "opaque"
814 --enable-opaque-form make form-library structures "opaque"
815 --enable-opaque-menu make menu-library structures "opaque"
816 --enable-opaque-panel make panel-library structures "opaque"
817 --with-wrap-prefix=XXX override prefix used for public variables
819 --without-develop disable development options
820 --enable-hard-tabs compile with hard-tabs code
821 --enable-xmc-glitch compile with support for xmc (magic-cookie)
823 --disable-assumed-color do not assume anything about default-colors
824 --disable-hashmap compile without hashmap scrolling-optimization
825 --enable-colorfgbg compile-in experimental $COLORFGBG code
826 --enable-interop compile-in interop bindings
827 --enable-safe-sprintf compile with experimental safe-sprintf code
828 --disable-scroll-hints compile without scroll-hints code
829 --enable-wgetch-events compile with wgetch-events code
830 Testing/development Options:
831 --disable-echo do not display "compiling" commands
832 --disable-stripping do not strip installed executables
833 --enable-warnings build: turn on GCC compiler warnings
834 --enable-string-hacks work around bogus compiler/loader warnings
835 --enable-assertions test: turn on generation of assertion code
836 --with-dmalloc test: use Gray Watson's dmalloc library
837 --with-dbmalloc test: use Conor Cahill's dbmalloc library
838 --with-valgrind test: use valgrind
839 --disable-leaks test: free permanent memory, analyze leaks
840 --enable-expanded test: generate functions for certain macros
841 --disable-macros test: use functions rather than macros
842 --with-trace test: add trace() function to all models of ncurses
843 --disable-gnat-projects test: disable GNAT projects even if usable
844 Ada95 Binding Options:
845 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
846 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
847 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
848 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
850 Some influential environment variables:
851 CC C compiler command
852 CFLAGS C compiler flags
853 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854 nonstandard directory <lib dir>
855 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856 headers in a nonstandard directory <include dir>
858 CXX C++ compiler command
859 CXXFLAGS C++ compiler flags
860 CXXCPP C++ preprocessor
862 Use these variables to override the choices made by `configure' or to help
863 it to find libraries and programs with nonstandard names/locations.
868 if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
871 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
873 # A "../" for each directory in /$ac_subdir.
874 ac_dots=`echo $ac_subdir |
875 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
878 .) # No --srcdir option. We are building in place.
879 ac_sub_srcdir=$srcdir ;;
880 [\\/]* | ?:[\\/]* ) # Absolute path.
881 ac_sub_srcdir=$srcdir/$ac_subdir ;;
883 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
886 # Check for guested configure; otherwise get Cygnus style configure.
887 if test -f $ac_sub_srcdir/configure.gnu; then
889 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
890 elif test -f $ac_sub_srcdir/configure; then
892 $SHELL $ac_sub_srcdir/configure --help=recursive
893 elif test -f $ac_sub_srcdir/configure.ac ||
894 test -f $ac_sub_srcdir/configure.in; then
898 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
904 test -n "$ac_init_help" && exit 0
905 if $ac_init_version; then
908 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
909 Free Software Foundation, Inc.
910 This configure script is free software; the Free Software Foundation
911 gives unlimited permission to copy, distribute and modify it.
917 This file contains any messages produced by compilers while
918 running configure, to aid debugging if configure makes a mistake.
920 It was created by $as_me, which was
921 generated by GNU Autoconf 2.52.20170501. Invocation command line was
932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
944 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
961 # Keep a trace of the command line.
962 # Strip out --no-create and --no-recursion so they do not pile up.
963 # Also quote any args containing shell meta-characters.
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c) ;;
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
973 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
974 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
975 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
977 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
980 # Get rid of the leading space.
983 # When interrupted or exit'd, cleanup temporary files, and complete
984 # config.log. We remove comments because anyway the quotes in there
985 # would cause problems or look ugly.
987 # Save into config.log some information that might help in debugging.
989 echo "## ----------------- ##" >&5
990 echo "## Cache variables. ##" >&5
991 echo "## ----------------- ##" >&5
993 # The following way of writing the cache mishandles newlines in values,
996 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
999 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1004 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1008 sed "/^$/d" confdefs.h >conftest.log
1009 if test -s conftest.log; then
1011 echo "## ------------ ##" >&5
1012 echo "## confdefs.h. ##" >&5
1013 echo "## ------------ ##" >&5
1015 cat conftest.log >&5
1018 test "$ac_signal" != 0 &&
1019 echo "$as_me: caught signal $ac_signal" >&5
1020 echo "$as_me: exit $exit_status" >&5
1021 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1024 for ac_signal in 1 2 13 15; do
1025 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1029 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1030 rm -rf conftest* confdefs.h
1031 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1034 # Let the site file select an alternate cache file if it wants to.
1035 # Prefer explicitly selected file to automatically selected ones.
1036 if test -z "$CONFIG_SITE"; then
1037 if test "x$prefix" != xNONE; then
1038 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1040 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1043 for ac_site_file in $CONFIG_SITE; do
1044 if test -r "$ac_site_file"; then
1045 { echo "$as_me:1045: loading site script $ac_site_file" >&5
1046 echo "$as_me: loading site script $ac_site_file" >&6;}
1047 cat "$ac_site_file" >&5
1052 if test -r "$cache_file"; then
1053 # Some versions of bash will fail to source /dev/null (special
1054 # files actually), so we avoid doing that.
1055 if test -f "$cache_file"; then
1056 { echo "$as_me:1056: loading cache $cache_file" >&5
1057 echo "$as_me: loading cache $cache_file" >&6;}
1059 [\\/]* | ?:[\\/]* ) . $cache_file;;
1060 *) . ./$cache_file;;
1064 { echo "$as_me:1064: creating cache $cache_file" >&5
1065 echo "$as_me: creating cache $cache_file" >&6;}
1069 # Check that the precious variables saved in the cache have kept the same
1071 ac_cache_corrupted=false
1072 for ac_var in `(set) 2>&1 |
1073 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1074 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1075 eval ac_new_set=\$ac_env_${ac_var}_set
1076 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1077 eval ac_new_val="\$ac_env_${ac_var}_value"
1078 case $ac_old_set,$ac_new_set in
1080 { echo "$as_me:1080: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1081 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1082 ac_cache_corrupted=: ;;
1084 { echo "$as_me:1084: error: \`$ac_var' was not set in the previous run" >&5
1085 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1086 ac_cache_corrupted=: ;;
1089 if test "x$ac_old_val" != "x$ac_new_val"; then
1090 { echo "$as_me:1090: error: \`$ac_var' has changed since the previous run:" >&5
1091 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1092 { echo "$as_me:1092: former value: $ac_old_val" >&5
1093 echo "$as_me: former value: $ac_old_val" >&2;}
1094 { echo "$as_me:1094: current value: $ac_new_val" >&5
1095 echo "$as_me: current value: $ac_new_val" >&2;}
1096 ac_cache_corrupted=:
1099 # Pass precious variables to config.status. It doesn't matter if
1100 # we pass some twice (in addition to the command line arguments).
1101 if test "$ac_new_set" = set; then
1103 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1104 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1105 ac_configure_args="$ac_configure_args '$ac_arg'"
1107 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1112 if $ac_cache_corrupted; then
1113 { echo "$as_me:1113: error: changes in the environment can compromise the build" >&5
1114 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1115 { { echo "$as_me:1115: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1116 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1117 { (exit 1); exit 1; }; }
1121 ac_cpp='$CPP $CPPFLAGS'
1122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1125 ac_main_return=return
1127 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1128 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1130 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1131 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1133 echo "#! $SHELL" >conftest.sh
1134 echo "exit 0" >>conftest.sh
1135 chmod +x conftest.sh
1136 if { (echo "$as_me:1136: PATH=\".;.\"; conftest.sh") >&5
1137 (PATH=".;."; conftest.sh) 2>&5
1139 echo "$as_me:1139: \$? = $ac_status" >&5
1140 (exit $ac_status); }; then
1141 ac_path_separator=';'
1145 PATH_SEPARATOR="$ac_path_separator"
1148 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1152 echo "$as_me:1152: checking for egrep" >&5
1153 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1154 if test "${ac_cv_prog_egrep+set}" = set; then
1155 echo $ECHO_N "(cached) $ECHO_C" >&6
1157 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1158 then ac_cv_prog_egrep='grep -E'
1159 else ac_cv_prog_egrep='egrep'
1162 echo "$as_me:1162: result: $ac_cv_prog_egrep" >&5
1163 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1164 EGREP=$ac_cv_prog_egrep
1166 test -z "$EGREP" && { { echo "$as_me:1166: error: No egrep program found" >&5
1167 echo "$as_me: error: No egrep program found" >&2;}
1168 { (exit 1); exit 1; }; }
1170 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1171 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1172 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1173 cf_cv_abi_version=${NCURSES_MAJOR}
1174 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1175 cf_cv_timestamp=`date`
1176 echo "$as_me:1176: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1177 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1179 if test -f $srcdir/VERSION ; then
1180 echo "$as_me:1180: checking for package version" >&5
1181 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1183 # if there are not enough fields, cut returns the last one...
1184 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1185 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1186 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1188 # this is how CF_BUNDLED_INTL uses $VERSION:
1189 VERSION="$cf_field1"
1191 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1192 test -z "$VERSION_MAJOR" && { { echo "$as_me:1192: error: missing major-version" >&5
1193 echo "$as_me: error: missing major-version" >&2;}
1194 { (exit 1); exit 1; }; }
1196 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1197 test -z "$VERSION_MINOR" && { { echo "$as_me:1197: error: missing minor-version" >&5
1198 echo "$as_me: error: missing minor-version" >&2;}
1199 { (exit 1); exit 1; }; }
1201 echo "$as_me:1201: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1202 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1204 echo "$as_me:1204: checking for package patch date" >&5
1205 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1206 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1207 case .$VERSION_PATCH in
1209 { { echo "$as_me:1209: error: missing patch-date $VERSION_PATCH" >&5
1210 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1211 { (exit 1); exit 1; }; }
1213 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1216 { { echo "$as_me:1216: error: illegal patch-date $VERSION_PATCH" >&5
1217 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1218 { (exit 1); exit 1; }; }
1221 echo "$as_me:1221: result: $VERSION_PATCH" >&5
1222 echo "${ECHO_T}$VERSION_PATCH" >&6
1224 { { echo "$as_me:1224: error: did not find $srcdir/VERSION" >&5
1225 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1226 { (exit 1); exit 1; }; }
1229 # show the actual data that we have for versions:
1230 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1232 echo "${as_me:-configure}:1232: testing ABI VERSION $VERSION ..." 1>&5
1234 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1236 echo "${as_me:-configure}:1236: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1238 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1240 echo "${as_me:-configure}:1240: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1242 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1244 echo "${as_me:-configure}:1244: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1249 cat >>confdefs.h <<EOF
1250 #define PACKAGE "$PACKAGE"
1253 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1255 cat >>confdefs.h <<EOF
1256 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1259 cat >>confdefs.h <<EOF
1260 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1263 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1265 # Check whether --with-rel-version or --without-rel-version was given.
1266 if test "${with_rel_version+set}" = set; then
1267 withval="$with_rel_version"
1268 { echo "$as_me:1268: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1269 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1270 cf_cv_rel_version=$withval
1273 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1274 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1276 if test -n "$NCURSES_MAJOR" ; then
1277 case $NCURSES_MAJOR in
1281 { { echo "$as_me:1281: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1282 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1283 { (exit 1); exit 1; }; }
1287 { { echo "$as_me:1287: error: Release major-version value is empty" >&5
1288 echo "$as_me: error: Release major-version value is empty" >&2;}
1289 { (exit 1); exit 1; }; }
1292 if test -n "$NCURSES_MINOR" ; then
1293 case $NCURSES_MINOR in
1297 { { echo "$as_me:1297: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1298 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1299 { (exit 1); exit 1; }; }
1303 { { echo "$as_me:1303: error: Release minor-version value is empty" >&5
1304 echo "$as_me: error: Release minor-version value is empty" >&2;}
1305 { (exit 1); exit 1; }; }
1308 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1310 # Check whether --with-abi-version or --without-abi-version was given.
1311 if test "${with_abi_version+set}" = set; then
1312 withval="$with_abi_version"
1314 if test "x$cf_cv_abi_version" != "x$withval"
1316 { echo "$as_me:1316: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1317 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1318 case $cf_cv_rel_version in
1320 cf_cv_rel_version=$withval.0
1323 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1327 cf_cv_abi_version=$withval
1330 if test -n "$cf_cv_abi_version" ; then
1331 case $cf_cv_abi_version in
1335 { { echo "$as_me:1335: error: ABI version is not a number: $cf_cv_abi_version" >&5
1336 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1337 { (exit 1); exit 1; }; }
1341 { { echo "$as_me:1341: error: ABI version value is empty" >&5
1342 echo "$as_me: error: ABI version value is empty" >&2;}
1343 { (exit 1); exit 1; }; }
1346 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1348 case $cf_cv_rel_version in
1350 cf_cv_rel_version=$with_abi_version.0
1356 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1357 if test -f $ac_dir/install-sh; then
1359 ac_install_sh="$ac_aux_dir/install-sh -c"
1361 elif test -f $ac_dir/install.sh; then
1363 ac_install_sh="$ac_aux_dir/install.sh -c"
1365 elif test -f $ac_dir/shtool; then
1367 ac_install_sh="$ac_aux_dir/shtool install -c"
1371 if test -z "$ac_aux_dir"; then
1372 { { echo "$as_me:1372: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1373 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1374 { (exit 1); exit 1; }; }
1376 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1377 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1378 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1380 # Make sure we can run config.sub.
1381 $ac_config_sub sun4 >/dev/null 2>&1 ||
1382 { { echo "$as_me:1382: error: cannot run $ac_config_sub" >&5
1383 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1384 { (exit 1); exit 1; }; }
1386 echo "$as_me:1386: checking build system type" >&5
1387 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1388 if test "${ac_cv_build+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 ac_cv_build_alias=$build_alias
1392 test -z "$ac_cv_build_alias" &&
1393 ac_cv_build_alias=`$ac_config_guess`
1394 test -z "$ac_cv_build_alias" &&
1395 { { echo "$as_me:1395: error: cannot guess build type; you must specify one" >&5
1396 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1397 { (exit 1); exit 1; }; }
1398 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1399 { { echo "$as_me:1399: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1400 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1401 { (exit 1); exit 1; }; }
1404 echo "$as_me:1404: result: $ac_cv_build" >&5
1405 echo "${ECHO_T}$ac_cv_build" >&6
1407 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1411 echo "$as_me:1411: checking host system type" >&5
1412 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1413 if test "${ac_cv_host+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 ac_cv_host_alias=$host_alias
1417 test -z "$ac_cv_host_alias" &&
1418 ac_cv_host_alias=$ac_cv_build_alias
1419 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1420 { { echo "$as_me:1420: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1425 echo "$as_me:1425: result: $ac_cv_host" >&5
1426 echo "${ECHO_T}$ac_cv_host" >&6
1428 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1433 echo "$as_me:1433: checking target system type" >&5
1434 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1435 if test "${ac_cv_target+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 ac_cv_target_alias=$target_alias
1439 test "x$ac_cv_target_alias" = "x" &&
1440 ac_cv_target_alias=$ac_cv_host_alias
1441 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1442 { { echo "$as_me:1442: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1444 { (exit 1); exit 1; }; }
1447 echo "$as_me:1447: result: $ac_cv_target" >&5
1448 echo "${ECHO_T}$ac_cv_target" >&6
1449 target=$ac_cv_target
1450 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 # The aliases save the names the user supplied, while $host etc.
1455 # will get canonicalized.
1456 test -n "$target_alias" &&
1457 test "$program_prefix$program_suffix$program_transform_name" = \
1459 program_prefix=${target_alias}-
1460 system_name="$host_os"
1462 system_name="`(uname -s -r) 2>/dev/null`"
1463 if test -z "$system_name" ; then
1464 system_name="`(hostname) 2>/dev/null`"
1467 test -n "$system_name" &&
1468 cat >>confdefs.h <<EOF
1469 #define SYSTEM_NAME "$system_name"
1472 if test "${cf_cv_system_name+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 cf_cv_system_name="$system_name"
1478 test -z "$system_name" && system_name="$cf_cv_system_name"
1479 test -n "$cf_cv_system_name" && echo "$as_me:1479: result: Configuring for $cf_cv_system_name" >&5
1480 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1482 if test ".$system_name" != ".$cf_cv_system_name" ; then
1483 echo "$as_me:1483: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1484 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1485 { { echo "$as_me:1485: error: \"Please remove config.cache and try again.\"" >&5
1486 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1487 { (exit 1); exit 1; }; }
1490 # Check whether --with-system-type or --without-system-type was given.
1491 if test "${with_system_type+set}" = set; then
1492 withval="$with_system_type"
1493 { echo "$as_me:1493: WARNING: overriding system type to $withval" >&5
1494 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1495 cf_cv_system_name=$withval
1500 ### Save the given $CFLAGS to allow user-override.
1501 cf_user_CFLAGS="$CFLAGS"
1503 ### Default install-location
1505 echo "$as_me:1505: checking for prefix" >&5
1506 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1507 if test "x$prefix" = "xNONE" ; then
1508 case "$cf_cv_system_name" in
1509 # non-vendor systems don't have a conflict
1510 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1513 (*) prefix=$ac_default_prefix
1517 echo "$as_me:1517: result: $prefix" >&5
1518 echo "${ECHO_T}$prefix" >&6
1520 if test "x$prefix" = "xNONE" ; then
1521 echo "$as_me:1521: checking for default include-directory" >&5
1522 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1523 test -n "$verbose" && echo 1>&6
1526 $includedir/ncurses \
1528 $prefix/include/ncurses \
1529 /usr/local/include \
1530 /usr/local/include/ncurses \
1532 /usr/include/ncurses
1534 cf_dir=`eval echo $cf_symbol`
1535 if test -f $cf_dir/curses.h ; then
1536 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1537 includedir="$cf_symbol"
1538 test -n "$verbose" && echo $ac_n " found " 1>&6
1542 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1544 echo "$as_me:1544: result: $includedir" >&5
1545 echo "${ECHO_T}$includedir" >&6
1548 ### Defaults for ncurses ABI
1550 case x$cf_cv_abi_version in
1552 cf_dft_ext_colors=yes
1553 cf_dft_ext_const=yes
1554 cf_dft_ext_mouse=yes
1555 cf_dft_ext_putwin=yes
1556 cf_dft_ext_spfuncs=yes
1557 cf_dft_filter_syms=yes
1558 cf_dft_chtype=uint32_t
1559 cf_dft_mmask_t=uint32_t
1561 cf_dft_tparm_arg=intptr_t
1562 cf_dft_with_lp64=yes
1565 cf_dft_ext_colors=no
1568 cf_dft_ext_putwin=no
1569 cf_dft_ext_spfuncs=no
1570 cf_dft_filter_syms=no
1574 cf_dft_tparm_arg=long
1579 ### Checks for programs.
1581 # Check whether --with-ada or --without-ada was given.
1582 if test "${with_ada+set}" = set; then
1584 cf_with_ada=$withval
1588 if test "x$cf_with_ada" = xyes
1590 cf_PROG_CC="gnatgcc gcc cc"
1596 ac_cpp='$CPP $CPPFLAGS'
1597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1600 ac_main_return=return
1601 if test -n "$ac_tool_prefix"; then
1602 for ac_prog in $cf_PROG_CC
1604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1606 echo "$as_me:1606: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 ac_save_IFS=$IFS; IFS=$ac_path_separator
1616 for ac_dir in $ac_dummy; do
1618 test -z "$ac_dir" && ac_dir=.
1619 $as_executable_p "$ac_dir/$ac_word" || continue
1620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1621 echo "$as_me:1621: found $ac_dir/$ac_word" >&5
1628 if test -n "$CC"; then
1629 echo "$as_me:1629: result: $CC" >&5
1630 echo "${ECHO_T}$CC" >&6
1632 echo "$as_me:1632: result: no" >&5
1633 echo "${ECHO_T}no" >&6
1636 test -n "$CC" && break
1639 if test -z "$CC"; then
1641 for ac_prog in $cf_PROG_CC
1643 # Extract the first word of "$ac_prog", so it can be a program name with args.
1644 set dummy $ac_prog; ac_word=$2
1645 echo "$as_me:1645: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 ac_save_IFS=$IFS; IFS=$ac_path_separator
1655 for ac_dir in $ac_dummy; do
1657 test -z "$ac_dir" && ac_dir=.
1658 $as_executable_p "$ac_dir/$ac_word" || continue
1659 ac_cv_prog_ac_ct_CC="$ac_prog"
1660 echo "$as_me:1660: found $ac_dir/$ac_word" >&5
1666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1667 if test -n "$ac_ct_CC"; then
1668 echo "$as_me:1668: result: $ac_ct_CC" >&5
1669 echo "${ECHO_T}$ac_ct_CC" >&6
1671 echo "$as_me:1671: result: no" >&5
1672 echo "${ECHO_T}no" >&6
1675 test -n "$ac_ct_CC" && break
1681 test -z "$CC" && { { echo "$as_me:1681: error: no acceptable cc found in \$PATH" >&5
1682 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1683 { (exit 1); exit 1; }; }
1685 # Provide some information about the compiler.
1686 echo "$as_me:1686:" \
1687 "checking for C compiler version" >&5
1688 ac_compiler=`set X $ac_compile; echo $2`
1689 { (eval echo "$as_me:1689: \"$ac_compiler --version </dev/null >&5\"") >&5
1690 (eval $ac_compiler --version </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); }
1699 { (eval echo "$as_me:1699: \"$ac_compiler -V </dev/null >&5\"") >&5
1700 (eval $ac_compiler -V </dev/null >&5) 2>&5
1702 echo "$as_me:1702: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1705 cat >conftest.$ac_ext <<_ACEOF
1706 #line 1706 "configure"
1707 #include "confdefs.h"
1717 ac_clean_files_save=$ac_clean_files
1718 ac_clean_files="$ac_clean_files a.out a.exe"
1719 # Try to create an executable without -o first, disregard a.out.
1720 # It will help us diagnose broken compilers, and finding out an intuition
1722 echo "$as_me:1722: checking for C compiler default output" >&5
1723 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1724 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1725 if { (eval echo "$as_me:1725: \"$ac_link_default\"") >&5
1726 (eval $ac_link_default) 2>&5
1728 echo "$as_me:1728: \$? = $ac_status" >&5
1729 (exit $ac_status); }; then
1730 # Find the output, starting from the most likely. This scheme is
1731 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1733 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1734 ls a.out conftest 2>/dev/null;
1735 ls a.* conftest.* 2>/dev/null`; do
1737 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1738 a.out ) # We found the default executable, but exeext='' is most
1741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1742 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1749 echo "$as_me: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1751 { { echo "$as_me:1751: error: C compiler cannot create executables" >&5
1752 echo "$as_me: error: C compiler cannot create executables" >&2;}
1753 { (exit 77); exit 77; }; }
1756 ac_exeext=$ac_cv_exeext
1757 echo "$as_me:1757: result: $ac_file" >&5
1758 echo "${ECHO_T}$ac_file" >&6
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:1762: checking whether the C compiler works" >&5
1763 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1764 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1765 # If not cross compiling, check that we can run a simple program.
1766 if test "$cross_compiling" != yes; then
1767 if { ac_try='./$ac_file'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1775 if test "$cross_compiling" = maybe; then
1778 { { echo "$as_me:1778: error: cannot run C compiled programs.
1779 If you meant to cross compile, use \`--host'." >&5
1780 echo "$as_me: error: cannot run C compiled programs.
1781 If you meant to cross compile, use \`--host'." >&2;}
1782 { (exit 1); exit 1; }; }
1786 echo "$as_me:1786: result: yes" >&5
1787 echo "${ECHO_T}yes" >&6
1789 rm -f a.out a.exe conftest$ac_cv_exeext
1790 ac_clean_files=$ac_clean_files_save
1791 # Check the compiler produces executables we can run. If not, either
1792 # the compiler is broken, or we cross compile.
1793 echo "$as_me:1793: checking whether we are cross compiling" >&5
1794 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1795 echo "$as_me:1795: result: $cross_compiling" >&5
1796 echo "${ECHO_T}$cross_compiling" >&6
1798 echo "$as_me:1798: checking for executable suffix" >&5
1799 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1800 if { (eval echo "$as_me:1800: \"$ac_link\"") >&5
1801 (eval $ac_link) 2>&5
1803 echo "$as_me:1803: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then
1805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1806 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1807 # work properly (i.e., refer to `conftest.exe'), while it won't with
1809 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 { { echo "$as_me:1819: error: cannot compute EXEEXT: cannot compile and link" >&5
1820 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1821 { (exit 1); exit 1; }; }
1824 rm -f conftest$ac_cv_exeext
1825 echo "$as_me:1825: result: $ac_cv_exeext" >&5
1826 echo "${ECHO_T}$ac_cv_exeext" >&6
1828 rm -f conftest.$ac_ext
1829 EXEEXT=$ac_cv_exeext
1831 echo "$as_me:1831: checking for object suffix" >&5
1832 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1833 if test "${ac_cv_objext+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 cat >conftest.$ac_ext <<_ACEOF
1837 #line 1837 "configure"
1838 #include "confdefs.h"
1848 rm -f conftest.o conftest.obj
1849 if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
1850 (eval $ac_compile) 2>&5
1852 echo "$as_me:1852: \$? = $ac_status" >&5
1853 (exit $ac_status); }; then
1854 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1856 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1857 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1862 echo "$as_me: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 { { echo "$as_me:1864: error: cannot compute OBJEXT: cannot compile" >&5
1865 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1866 { (exit 1); exit 1; }; }
1869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1871 echo "$as_me:1871: result: $ac_cv_objext" >&5
1872 echo "${ECHO_T}$ac_cv_objext" >&6
1873 OBJEXT=$ac_cv_objext
1875 echo "$as_me:1875: checking whether we are using the GNU C compiler" >&5
1876 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1877 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 cat >conftest.$ac_ext <<_ACEOF
1881 #line 1881 "configure"
1882 #include "confdefs.h"
1895 rm -f conftest.$ac_objext
1896 if { (eval echo "$as_me:1896: \"$ac_compile\"") >&5
1897 (eval $ac_compile) 2>&5
1899 echo "$as_me:1899: \$? = $ac_status" >&5
1900 (exit $ac_status); } &&
1901 { ac_try='test -s conftest.$ac_objext'
1902 { (eval echo "$as_me:1902: \"$ac_try\"") >&5
1905 echo "$as_me:1905: \$? = $ac_status" >&5
1906 (exit $ac_status); }; }; then
1909 echo "$as_me: failed program was:" >&5
1910 cat conftest.$ac_ext >&5
1913 rm -f conftest.$ac_objext conftest.$ac_ext
1914 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1917 echo "$as_me:1917: result: $ac_cv_c_compiler_gnu" >&5
1918 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1919 GCC=`test $ac_compiler_gnu = yes && echo yes`
1920 ac_test_CFLAGS=${CFLAGS+set}
1921 ac_save_CFLAGS=$CFLAGS
1923 echo "$as_me:1923: checking whether $CC accepts -g" >&5
1924 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1925 if test "${ac_cv_prog_cc_g+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 cat >conftest.$ac_ext <<_ACEOF
1929 #line 1929 "configure"
1930 #include "confdefs.h"
1940 rm -f conftest.$ac_objext
1941 if { (eval echo "$as_me:1941: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1944 echo "$as_me:1944: \$? = $ac_status" >&5
1945 (exit $ac_status); } &&
1946 { ac_try='test -s conftest.$ac_objext'
1947 { (eval echo "$as_me:1947: \"$ac_try\"") >&5
1950 echo "$as_me:1950: \$? = $ac_status" >&5
1951 (exit $ac_status); }; }; then
1954 echo "$as_me: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1958 rm -f conftest.$ac_objext conftest.$ac_ext
1960 echo "$as_me:1960: result: $ac_cv_prog_cc_g" >&5
1961 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1962 if test "$ac_test_CFLAGS" = set; then
1963 CFLAGS=$ac_save_CFLAGS
1964 elif test $ac_cv_prog_cc_g = yes; then
1965 if test "$GCC" = yes; then
1971 if test "$GCC" = yes; then
1977 # Some people use a C++ compiler to compile C. Since we use `exit',
1978 # in C++ we need to declare it. In case someone uses the same compiler
1979 # for both compiling C and C++ we need to have the C++ compiler decide
1980 # the declaration of exit, since it's the most demanding environment.
1981 cat >conftest.$ac_ext <<_ACEOF
1986 rm -f conftest.$ac_objext
1987 if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
1988 (eval $ac_compile) 2>&5
1990 echo "$as_me:1990: \$? = $ac_status" >&5
1991 (exit $ac_status); } &&
1992 { ac_try='test -s conftest.$ac_objext'
1993 { (eval echo "$as_me:1993: \"$ac_try\"") >&5
1996 echo "$as_me:1996: \$? = $ac_status" >&5
1997 (exit $ac_status); }; }; then
1998 for ac_declaration in \
2000 '#include <stdlib.h>' \
2001 'extern "C" void std::exit (int) throw (); using std::exit;' \
2002 'extern "C" void std::exit (int); using std::exit;' \
2003 'extern "C" void exit (int) throw ();' \
2004 'extern "C" void exit (int);' \
2007 cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:2027: \"$ac_try\"") >&5
2030 echo "$as_me:2030: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2034 echo "$as_me: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2038 rm -f conftest.$ac_objext conftest.$ac_ext
2039 cat >conftest.$ac_ext <<_ACEOF
2040 #line 2040 "configure"
2041 #include "confdefs.h"
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:2052: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>&5
2055 echo "$as_me:2055: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -s conftest.$ac_objext'
2058 { (eval echo "$as_me:2058: \"$ac_try\"") >&5
2061 echo "$as_me:2061: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2065 echo "$as_me: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2068 rm -f conftest.$ac_objext conftest.$ac_ext
2071 if test -n "$ac_declaration"; then
2072 echo '#ifdef __cplusplus' >>confdefs.h
2073 echo $ac_declaration >>confdefs.h
2074 echo '#endif' >>confdefs.h
2078 echo "$as_me: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 rm -f conftest.$ac_objext conftest.$ac_ext
2083 ac_cpp='$CPP $CPPFLAGS'
2084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2087 ac_main_return=return
2090 if test "$GCC" = yes ; then
2091 echo "$as_me:2091: checking version of $CC" >&5
2092 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2093 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.].*//'`"
2094 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2095 echo "$as_me:2095: result: $GCC_VERSION" >&5
2096 echo "${ECHO_T}$GCC_VERSION" >&6
2099 echo "$as_me:2099: checking for $CC option to accept ANSI C" >&5
2100 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 ac_cv_prog_cc_stdc=no
2106 cat >conftest.$ac_ext <<_ACEOF
2107 #line 2107 "configure"
2108 #include "confdefs.h"
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2127 s = g (p, va_arg (v,int));
2131 int test (int i, double x);
2132 struct s1 {int (*f) (int a);};
2133 struct s2 {int (*f) (double a);};
2134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2140 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2145 # Don't try gcc -ansi; that turns off useful extensions and
2146 # breaks some systems' header files.
2147 # AIX -qlanglvl=ansi
2148 # Ultrix and OSF/1 -std1
2149 # HP-UX 10.20 and later -Ae
2150 # HP-UX older versions -Aa -D_HPUX_SOURCE
2151 # SVR4 -Xc -D__EXTENSIONS__
2152 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2154 CC="$ac_save_CC $ac_arg"
2155 rm -f conftest.$ac_objext
2156 if { (eval echo "$as_me:2156: \"$ac_compile\"") >&5
2157 (eval $ac_compile) 2>&5
2159 echo "$as_me:2159: \$? = $ac_status" >&5
2160 (exit $ac_status); } &&
2161 { ac_try='test -s conftest.$ac_objext'
2162 { (eval echo "$as_me:2162: \"$ac_try\"") >&5
2165 echo "$as_me:2165: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2167 ac_cv_prog_cc_stdc=$ac_arg
2170 echo "$as_me: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2173 rm -f conftest.$ac_objext
2175 rm -f conftest.$ac_ext conftest.$ac_objext
2180 case "x$ac_cv_prog_cc_stdc" in
2182 echo "$as_me:2182: result: none needed" >&5
2183 echo "${ECHO_T}none needed" >&6 ;;
2185 echo "$as_me:2185: result: $ac_cv_prog_cc_stdc" >&5
2186 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2187 CC="$CC $ac_cv_prog_cc_stdc" ;;
2190 # This should have been defined by AC_PROG_CC
2193 echo "$as_me:2193: checking \$CC variable" >&5
2194 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2197 echo "$as_me:2197: result: broken" >&5
2198 echo "${ECHO_T}broken" >&6
2199 { echo "$as_me:2199: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2200 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2202 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2203 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2205 for cf_arg in $cf_flags
2213 cf_new_extra_cppflags=
2215 for cf_add_cflags in $cf_arg
2217 case $cf_fix_cppflags in
2219 case $cf_add_cflags in
2220 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2221 case $cf_add_cflags in
2223 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2225 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2226 && test -z "${cf_tst_cflags}" \
2227 && cf_fix_cppflags=yes
2229 if test $cf_fix_cppflags = yes ; then
2231 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2232 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2235 elif test "${cf_tst_cflags}" = "\"'" ; then
2237 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2238 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2248 case $cf_add_cflags in
2250 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2252 CPPFLAGS=`echo "$CPPFLAGS" | \
2253 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2254 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2259 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2260 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2267 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2268 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2275 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2276 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2278 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2280 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2281 && test -z "${cf_tst_cflags}" \
2282 && cf_fix_cppflags=no
2287 if test -n "$cf_new_cflags" ; then
2289 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2290 CFLAGS="${CFLAGS}$cf_new_cflags"
2294 if test -n "$cf_new_cppflags" ; then
2296 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2297 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2301 if test -n "$cf_new_extra_cppflags" ; then
2303 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2304 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2314 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2316 echo "${as_me:-configure}:2316: testing resulting CC: '$CC' ..." 1>&5
2318 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2320 echo "${as_me:-configure}:2320: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2322 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2324 echo "${as_me:-configure}:2324: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2328 echo "$as_me:2328: result: ok" >&5
2329 echo "${ECHO_T}ok" >&6
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 ac_main_return=return
2339 echo "$as_me:2339: checking how to run the C preprocessor" >&5
2340 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2341 # On Suns, sometimes $CPP names a directory.
2342 if test -n "$CPP" && test -d "$CPP"; then
2345 if test -z "$CPP"; then
2346 if test "${ac_cv_prog_CPP+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 # Double quotes because CPP needs to be expanded
2350 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2353 for ac_c_preproc_warn_flag in '' yes
2355 # Use a header file that comes with gcc, so configuring glibc
2356 # with a fresh cross-compiler works.
2357 # On the NeXT, cc -E runs the code through the compiler's parser,
2358 # not just through cpp. "Syntax error" is here to catch this case.
2359 cat >conftest.$ac_ext <<_ACEOF
2360 #line 2360 "configure"
2361 #include "confdefs.h"
2365 if { (eval echo "$as_me:2365: \"$ac_cpp conftest.$ac_ext\"") >&5
2366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2368 egrep -v '^ *\+' conftest.er1 >conftest.err
2370 cat conftest.err >&5
2371 echo "$as_me:2371: \$? = $ac_status" >&5
2372 (exit $ac_status); } >/dev/null; then
2373 if test -s conftest.err; then
2374 ac_cpp_err=$ac_c_preproc_warn_flag
2381 if test -z "$ac_cpp_err"; then
2384 echo "$as_me: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 # Broken: fails on valid input.
2389 rm -f conftest.err conftest.$ac_ext
2391 # OK, works on sane cases. Now check whether non-existent headers
2392 # can be detected and how.
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #line 2394 "configure"
2395 #include "confdefs.h"
2396 #include <ac_nonexistent.h>
2398 if { (eval echo "$as_me:2398: \"$ac_cpp conftest.$ac_ext\"") >&5
2399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2401 egrep -v '^ *\+' conftest.er1 >conftest.err
2403 cat conftest.err >&5
2404 echo "$as_me:2404: \$? = $ac_status" >&5
2405 (exit $ac_status); } >/dev/null; then
2406 if test -s conftest.err; then
2407 ac_cpp_err=$ac_c_preproc_warn_flag
2414 if test -z "$ac_cpp_err"; then
2415 # Broken: success on invalid input.
2418 echo "$as_me: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2420 # Passes both tests.
2424 rm -f conftest.err conftest.$ac_ext
2427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2428 rm -f conftest.err conftest.$ac_ext
2429 if $ac_preproc_ok; then
2441 echo "$as_me:2441: result: $CPP" >&5
2442 echo "${ECHO_T}$CPP" >&6
2444 for ac_c_preproc_warn_flag in '' yes
2446 # Use a header file that comes with gcc, so configuring glibc
2447 # with a fresh cross-compiler works.
2448 # On the NeXT, cc -E runs the code through the compiler's parser,
2449 # not just through cpp. "Syntax error" is here to catch this case.
2450 cat >conftest.$ac_ext <<_ACEOF
2451 #line 2451 "configure"
2452 #include "confdefs.h"
2456 if { (eval echo "$as_me:2456: \"$ac_cpp conftest.$ac_ext\"") >&5
2457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2459 egrep -v '^ *\+' conftest.er1 >conftest.err
2461 cat conftest.err >&5
2462 echo "$as_me:2462: \$? = $ac_status" >&5
2463 (exit $ac_status); } >/dev/null; then
2464 if test -s conftest.err; then
2465 ac_cpp_err=$ac_c_preproc_warn_flag
2472 if test -z "$ac_cpp_err"; then
2475 echo "$as_me: failed program was:" >&5
2476 cat conftest.$ac_ext >&5
2477 # Broken: fails on valid input.
2480 rm -f conftest.err conftest.$ac_ext
2482 # OK, works on sane cases. Now check whether non-existent headers
2483 # can be detected and how.
2484 cat >conftest.$ac_ext <<_ACEOF
2485 #line 2485 "configure"
2486 #include "confdefs.h"
2487 #include <ac_nonexistent.h>
2489 if { (eval echo "$as_me:2489: \"$ac_cpp conftest.$ac_ext\"") >&5
2490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492 egrep -v '^ *\+' conftest.er1 >conftest.err
2494 cat conftest.err >&5
2495 echo "$as_me:2495: \$? = $ac_status" >&5
2496 (exit $ac_status); } >/dev/null; then
2497 if test -s conftest.err; then
2498 ac_cpp_err=$ac_c_preproc_warn_flag
2505 if test -z "$ac_cpp_err"; then
2506 # Broken: success on invalid input.
2509 echo "$as_me: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2511 # Passes both tests.
2515 rm -f conftest.err conftest.$ac_ext
2518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2519 rm -f conftest.err conftest.$ac_ext
2520 if $ac_preproc_ok; then
2523 { { echo "$as_me:2523: error: C preprocessor \"$CPP\" fails sanity check" >&5
2524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2525 { (exit 1); exit 1; }; }
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2533 ac_main_return=return
2535 if test $ac_cv_c_compiler_gnu = yes; then
2536 echo "$as_me:2536: checking whether $CC needs -traditional" >&5
2537 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2538 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 ac_pattern="Autoconf.*'x'"
2542 cat >conftest.$ac_ext <<_ACEOF
2543 #line 2543 "configure"
2544 #include "confdefs.h"
2546 int Autoconf = TIOCGETP;
2548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2549 egrep "$ac_pattern" >/dev/null 2>&1; then
2550 ac_cv_prog_gcc_traditional=yes
2552 ac_cv_prog_gcc_traditional=no
2556 if test $ac_cv_prog_gcc_traditional = no; then
2557 cat >conftest.$ac_ext <<_ACEOF
2558 #line 2558 "configure"
2559 #include "confdefs.h"
2561 int Autoconf = TCGETA;
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564 egrep "$ac_pattern" >/dev/null 2>&1; then
2565 ac_cv_prog_gcc_traditional=yes
2571 echo "$as_me:2571: result: $ac_cv_prog_gcc_traditional" >&5
2572 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2573 if test $ac_cv_prog_gcc_traditional = yes; then
2574 CC="$CC -traditional"
2578 echo "$as_me:2578: checking whether $CC understands -c and -o together" >&5
2579 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2580 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 cat > conftest.$ac_ext <<CF_EOF
2587 ${cf_cv_main_return:-return}(0);
2590 # We do the test twice because some compilers refuse to overwrite an
2591 # existing .o file with -o, though they will create one.
2592 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2593 if { (eval echo "$as_me:2593: \"$ac_try\"") >&5
2596 echo "$as_me:2596: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 test -f conftest2.$ac_objext && { (eval echo "$as_me:2598: \"$ac_try\"") >&5
2601 echo "$as_me:2601: \$? = $ac_status" >&5
2602 (exit $ac_status); };
2604 eval cf_cv_prog_CC_c_o=yes
2606 eval cf_cv_prog_CC_c_o=no
2611 if test $cf_cv_prog_CC_c_o = yes; then
2612 echo "$as_me:2612: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2615 echo "$as_me:2615: result: no" >&5
2616 echo "${ECHO_T}no" >&6
2619 if test "$cross_compiling" = yes ; then
2622 case "$cf_cv_system_name" in
2623 (dragonfly*|mirbsd*|freebsd*)
2624 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2626 (*) LDPATH=$PATH:/sbin:/usr/sbin
2627 # Extract the first word of "ldconfig", so it can be a program name with args.
2628 set dummy ldconfig; ac_word=$2
2629 echo "$as_me:2629: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2631 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2639 ac_save_IFS=$IFS; IFS=$ac_path_separator
2641 for ac_dir in $ac_dummy; do
2643 test -z "$ac_dir" && ac_dir=.
2644 if $as_executable_p "$ac_dir/$ac_word"; then
2645 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2646 echo "$as_me:2646: found $ac_dir/$ac_word" >&5
2654 LDCONFIG=$ac_cv_path_LDCONFIG
2656 if test -n "$LDCONFIG"; then
2657 echo "$as_me:2657: result: $LDCONFIG" >&5
2658 echo "${ECHO_T}$LDCONFIG" >&6
2660 echo "$as_me:2660: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2668 echo "$as_me:2668: checking if you want to ensure bool is consistent with C++" >&5
2669 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2671 # Check whether --with-cxx or --without-cxx was given.
2672 if test "${with_cxx+set}" = set; then
2674 cf_with_cxx=$withval
2678 echo "$as_me:2678: result: $cf_with_cxx" >&5
2679 echo "${ECHO_T}$cf_with_cxx" >&6
2680 if test "X$cf_with_cxx" = Xno ; then
2684 # with autoconf 2.13, we can change the error to a warning:
2686 ac_cpp='$CXXCPP $CPPFLAGS'
2687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2690 ac_main_return=return
2691 if test -n "$ac_tool_prefix"; then
2692 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2696 echo "$as_me:2696: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2698 if test "${ac_cv_prog_CXX+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 if test -n "$CXX"; then
2702 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2704 ac_save_IFS=$IFS; IFS=$ac_path_separator
2706 for ac_dir in $ac_dummy; do
2708 test -z "$ac_dir" && ac_dir=.
2709 $as_executable_p "$ac_dir/$ac_word" || continue
2710 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2711 echo "$as_me:2711: found $ac_dir/$ac_word" >&5
2718 if test -n "$CXX"; then
2719 echo "$as_me:2719: result: $CXX" >&5
2720 echo "${ECHO_T}$CXX" >&6
2722 echo "$as_me:2722: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2726 test -n "$CXX" && break
2729 if test -z "$CXX"; then
2731 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
2734 set dummy $ac_prog; ac_word=$2
2735 echo "$as_me:2735: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 if test -n "$ac_ct_CXX"; then
2741 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2743 ac_save_IFS=$IFS; IFS=$ac_path_separator
2745 for ac_dir in $ac_dummy; do
2747 test -z "$ac_dir" && ac_dir=.
2748 $as_executable_p "$ac_dir/$ac_word" || continue
2749 ac_cv_prog_ac_ct_CXX="$ac_prog"
2750 echo "$as_me:2750: found $ac_dir/$ac_word" >&5
2756 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2757 if test -n "$ac_ct_CXX"; then
2758 echo "$as_me:2758: result: $ac_ct_CXX" >&5
2759 echo "${ECHO_T}$ac_ct_CXX" >&6
2761 echo "$as_me:2761: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2765 test -n "$ac_ct_CXX" && break
2767 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2772 # Provide some information about the compiler.
2773 echo "$as_me:2773:" \
2774 "checking for C++ compiler version" >&5
2775 ac_compiler=`set X $ac_compile; echo $2`
2776 { (eval echo "$as_me:2776: \"$ac_compiler --version </dev/null >&5\"") >&5
2777 (eval $ac_compiler --version </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); }
2786 { (eval echo "$as_me:2786: \"$ac_compiler -V </dev/null >&5\"") >&5
2787 (eval $ac_compiler -V </dev/null >&5) 2>&5
2789 echo "$as_me:2789: \$? = $ac_status" >&5
2790 (exit $ac_status); }
2792 echo "$as_me:2792: checking whether we are using the GNU C++ compiler" >&5
2793 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2794 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 cat >conftest.$ac_ext <<_ACEOF
2798 #line 2798 "configure"
2799 #include "confdefs.h"
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:2813: \"$ac_compile\"") >&5
2814 (eval $ac_compile) 2>&5
2816 echo "$as_me:2816: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:2819: \"$ac_try\"") >&5
2822 echo "$as_me:2822: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2826 echo "$as_me: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2830 rm -f conftest.$ac_objext conftest.$ac_ext
2831 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2834 echo "$as_me:2834: result: $ac_cv_cxx_compiler_gnu" >&5
2835 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2836 GXX=`test $ac_compiler_gnu = yes && echo yes`
2837 ac_test_CXXFLAGS=${CXXFLAGS+set}
2838 ac_save_CXXFLAGS=$CXXFLAGS
2840 echo "$as_me:2840: checking whether $CXX accepts -g" >&5
2841 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2842 if test "${ac_cv_prog_cxx_g+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line 2846 "configure"
2847 #include "confdefs.h"
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:2858: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>&5
2861 echo "$as_me:2861: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:2864: \"$ac_try\"") >&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_prog_cxx_g=yes
2871 echo "$as_me: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2875 rm -f conftest.$ac_objext conftest.$ac_ext
2877 echo "$as_me:2877: result: $ac_cv_prog_cxx_g" >&5
2878 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2879 if test "$ac_test_CXXFLAGS" = set; then
2880 CXXFLAGS=$ac_save_CXXFLAGS
2881 elif test $ac_cv_prog_cxx_g = yes; then
2882 if test "$GXX" = yes; then
2888 if test "$GXX" = yes; then
2894 for ac_declaration in \
2896 '#include <stdlib.h>' \
2897 'extern "C" void std::exit (int) throw (); using std::exit;' \
2898 'extern "C" void std::exit (int); using std::exit;' \
2899 'extern "C" void exit (int) throw ();' \
2900 'extern "C" void exit (int);' \
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line 2904 "configure"
2905 #include "confdefs.h"
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:2917: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>&5
2920 echo "$as_me:2920: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:2923: \"$ac_try\"") >&5
2926 echo "$as_me:2926: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2930 echo "$as_me: failed program was:" >&5
2931 cat conftest.$ac_ext >&5
2934 rm -f conftest.$ac_objext conftest.$ac_ext
2935 cat >conftest.$ac_ext <<_ACEOF
2936 #line 2936 "configure"
2937 #include "confdefs.h"
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:2948: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>&5
2951 echo "$as_me:2951: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:2954: \"$ac_try\"") >&5
2957 echo "$as_me:2957: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2961 echo "$as_me: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2964 rm -f conftest.$ac_objext conftest.$ac_ext
2967 if test -n "$ac_declaration"; then
2968 echo '#ifdef __cplusplus' >>confdefs.h
2969 echo $ac_declaration >>confdefs.h
2970 echo '#endif' >>confdefs.h
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 ac_main_return=return
2981 ac_cpp='$CXXCPP $CPPFLAGS'
2982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2985 ac_main_return=return
2987 if test "x$cf_with_cxx" != xno
2989 # Several of the C++ configurations do not work, particularly when
2990 # cross-compiling (20140913 -TD)
2991 echo "$as_me:2991: checking if $CXX works" >&5
2992 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2994 save_CPPFLAGS="$CPPFLAGS"
2995 eval cf_includedir=${includedir}
2996 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2998 cat >conftest.$ac_ext <<_ACEOF
2999 #line 2999 "configure"
3000 #include "confdefs.h"
3009 printf("Hello world!\n")
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:3016: \"$ac_compile\"") >&5
3017 (eval $ac_compile) 2>&5
3019 echo "$as_me:3019: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -s conftest.$ac_objext'
3022 { (eval echo "$as_me:3022: \"$ac_try\"") >&5
3025 echo "$as_me:3025: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
3029 echo "$as_me: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3033 rm -f conftest.$ac_objext conftest.$ac_ext
3034 CPPFLAGS="$save_CPPFLAGS"
3036 echo "$as_me:3036: result: $cf_cxx_works" >&5
3037 echo "${ECHO_T}$cf_cxx_works" >&6
3038 if test "x$cf_cxx_works" = xno
3040 { echo "$as_me:3040: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3041 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3042 cf_with_cxx=no; CXX=""; GXX="";
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 ac_main_return=return
3052 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3053 if test "$CXX" = "g++" ; then
3054 # Extract the first word of "g++", so it can be a program name with args.
3055 set dummy g++; ac_word=$2
3056 echo "$as_me:3056: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058 if test "${ac_cv_path_CXX+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3066 ac_save_IFS=$IFS; IFS=$ac_path_separator
3068 for ac_dir in $ac_dummy; do
3070 test -z "$ac_dir" && ac_dir=.
3071 if $as_executable_p "$ac_dir/$ac_word"; then
3072 ac_cv_path_CXX="$ac_dir/$ac_word"
3073 echo "$as_me:3073: found $ac_dir/$ac_word" >&5
3083 if test -n "$CXX"; then
3084 echo "$as_me:3084: result: $CXX" >&5
3085 echo "${ECHO_T}$CXX" >&6
3087 echo "$as_me:3087: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3094 { echo "$as_me:3094: WARNING: You don't have any C++ compiler, too bad" >&5
3095 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3096 cf_with_cxx=no; CXX=""; GXX="";
3102 if test "$GXX" = yes; then
3103 echo "$as_me:3103: checking version of ${CXX:-g++}" >&5
3104 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3105 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3106 if test -z "$GXX_VERSION"
3111 echo "$as_me:3111: result: $GXX_VERSION" >&5
3112 echo "${ECHO_T}$GXX_VERSION" >&6
3115 case $GXX_VERSION in
3117 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3119 { echo "$as_me:3119: WARNING: templates do not work" >&5
3120 echo "$as_me: WARNING: templates do not work" >&2;}
3124 echo "$as_me:3124: checking if you want to build C++ binding and demo" >&5
3125 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3127 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3128 if test "${with_cxx_binding+set}" = set; then
3129 withval="$with_cxx_binding"
3130 cf_with_cxx_binding=$withval
3132 cf_with_cxx_binding=$cf_with_cxx
3134 echo "$as_me:3134: result: $cf_with_cxx_binding" >&5
3135 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3137 echo "$as_me:3137: checking if you want to build with Ada95" >&5
3138 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3139 echo "$as_me:3139: result: $cf_with_ada" >&5
3140 echo "${ECHO_T}$cf_with_ada" >&6
3142 echo "$as_me:3142: checking if you want to install terminal database" >&5
3143 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3145 # Check whether --enable-db-install or --disable-db-install was given.
3146 if test "${enable_db_install+set}" = set; then
3147 enableval="$enable_db_install"
3148 cf_with_db_install=$enableval
3150 cf_with_db_install=yes
3152 echo "$as_me:3152: result: $cf_with_db_install" >&5
3153 echo "${ECHO_T}$cf_with_db_install" >&6
3155 echo "$as_me:3155: checking if you want to install manpages" >&5
3156 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3158 # Check whether --with-manpages or --without-manpages was given.
3159 if test "${with_manpages+set}" = set; then
3160 withval="$with_manpages"
3161 cf_with_manpages=$withval
3163 cf_with_manpages=yes
3165 echo "$as_me:3165: result: $cf_with_manpages" >&5
3166 echo "${ECHO_T}$cf_with_manpages" >&6
3168 echo "$as_me:3168: checking if you want to build programs such as tic" >&5
3169 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3171 # Check whether --with-progs or --without-progs was given.
3172 if test "${with_progs+set}" = set; then
3173 withval="$with_progs"
3174 cf_with_progs=$withval
3178 echo "$as_me:3178: result: $cf_with_progs" >&5
3179 echo "${ECHO_T}$cf_with_progs" >&6
3181 if test -f $srcdir/tack/tack.h; then
3182 if test "x$cross_compiling" = xyes ; then
3183 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3185 echo "${as_me:-configure}:3185: testing ignoring tack because we are cross-compiling ..." 1>&5
3189 echo "$as_me:3189: checking if you want to build the tack program" >&5
3190 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3192 # Check whether --with-tack or --without-tack was given.
3193 if test "${with_tack+set}" = set; then
3194 withval="$with_tack"
3195 cf_with_tack=$withval
3197 cf_with_tack=$cf_with_progs
3199 echo "$as_me:3199: result: $cf_with_tack" >&5
3200 echo "${ECHO_T}$cf_with_tack" >&6
3206 echo "$as_me:3206: checking if you want to build test-programs" >&5
3207 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3209 # Check whether --with-tests or --without-tests was given.
3210 if test "${with_tests+set}" = set; then
3211 withval="$with_tests"
3212 cf_with_tests=$withval
3216 echo "$as_me:3216: result: $cf_with_tests" >&5
3217 echo "${ECHO_T}$cf_with_tests" >&6
3219 echo "$as_me:3219: checking if you wish to install curses.h" >&5
3220 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3222 # Check whether --with-curses-h or --without-curses-h was given.
3223 if test "${with_curses_h+set}" = set; then
3224 withval="$with_curses_h"
3225 with_curses_h=$withval
3229 echo "$as_me:3229: result: $with_curses_h" >&5
3230 echo "${ECHO_T}$with_curses_h" >&6
3232 modules_to_build="ncurses"
3233 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3234 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3235 modules_to_build="$modules_to_build panel menu form"
3237 test "$program_prefix" != NONE &&
3238 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3239 # Use a double $ so make ignores it.
3240 test "$program_suffix" != NONE &&
3241 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3242 # Double any \ or $. echo might interpret backslashes.
3243 # By default was `s,x,x', remove it if useless.
3244 cat <<\_ACEOF >conftest.sed
3245 s/[\\$]/&&/g;s/;s,x,x,$//
3247 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3250 for ac_prog in mawk gawk nawk awk
3252 # Extract the first word of "$ac_prog", so it can be a program name with args.
3253 set dummy $ac_prog; ac_word=$2
3254 echo "$as_me:3254: checking for $ac_word" >&5
3255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3256 if test "${ac_cv_prog_AWK+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 if test -n "$AWK"; then
3260 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3262 ac_save_IFS=$IFS; IFS=$ac_path_separator
3264 for ac_dir in $ac_dummy; do
3266 test -z "$ac_dir" && ac_dir=.
3267 $as_executable_p "$ac_dir/$ac_word" || continue
3268 ac_cv_prog_AWK="$ac_prog"
3269 echo "$as_me:3269: found $ac_dir/$ac_word" >&5
3276 if test -n "$AWK"; then
3277 echo "$as_me:3277: result: $AWK" >&5
3278 echo "${ECHO_T}$AWK" >&6
3280 echo "$as_me:3280: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3284 test -n "$AWK" && break
3287 test -z "$AWK" && { { echo "$as_me:3287: error: No awk program found" >&5
3288 echo "$as_me: error: No awk program found" >&2;}
3289 { (exit 1); exit 1; }; }
3291 echo "$as_me:3291: checking for egrep" >&5
3292 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3293 if test "${ac_cv_prog_egrep+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3297 then ac_cv_prog_egrep='grep -E'
3298 else ac_cv_prog_egrep='egrep'
3301 echo "$as_me:3301: result: $ac_cv_prog_egrep" >&5
3302 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3303 EGREP=$ac_cv_prog_egrep
3305 test -z "$EGREP" && { { echo "$as_me:3305: error: No egrep program found" >&5
3306 echo "$as_me: error: No egrep program found" >&2;}
3307 { (exit 1); exit 1; }; }
3309 # Find a good install program. We prefer a C program (faster),
3310 # so one script is as good as another. But avoid the broken or
3311 # incompatible versions:
3312 # SysV /etc/install, /usr/sbin/install
3313 # SunOS /usr/etc/install
3314 # IRIX /sbin/install
3316 # AmigaOS /C/install, which installs bootblocks on floppy discs
3317 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3318 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3319 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3320 # ./install, which can be erroneously created by make from ./install.sh.
3321 echo "$as_me:3321: checking for a BSD compatible install" >&5
3322 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3323 if test -z "$INSTALL"; then
3324 if test "${ac_cv_path_install+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 ac_save_IFS=$IFS; IFS=$ac_path_separator
3328 for ac_dir in $PATH; do
3330 # Account for people who put trailing slashes in PATH elements.
3332 / | ./ | .// | /cC/* \
3333 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3336 # OSF1 and SCO ODT 3.0 have their own names for install.
3337 # Don't use installbsd from OSF since it installs stuff as root
3339 for ac_prog in ginstall scoinst install; do
3340 if $as_executable_p "$ac_dir/$ac_prog"; then
3341 if test $ac_prog = install &&
3342 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3343 # AIX install. It has an incompatible calling convention.
3345 elif test $ac_prog = install &&
3346 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3347 # program-specific install script used by HP pwplus--don't use.
3350 ac_cv_path_install="$ac_dir/$ac_prog -c"
3360 if test "${ac_cv_path_install+set}" = set; then
3361 INSTALL=$ac_cv_path_install
3363 # As a last resort, use the slow shell script. We don't cache a
3364 # path for INSTALL within a source directory, because that will
3365 # break other packages using the cache if that directory is
3366 # removed, or if the path is relative.
3367 INSTALL=$ac_install_sh
3370 echo "$as_me:3370: result: $INSTALL" >&5
3371 echo "${ECHO_T}$INSTALL" >&6
3373 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3374 # It thinks the first close brace ends the variable substitution.
3375 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3377 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3379 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3385 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3386 test -z "$cf_dir" && cf_dir=.
3387 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3391 for ac_prog in lint cppcheck splint
3393 # Extract the first word of "$ac_prog", so it can be a program name with args.
3394 set dummy $ac_prog; ac_word=$2
3395 echo "$as_me:3395: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_prog_LINT+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 if test -n "$LINT"; then
3401 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3403 ac_save_IFS=$IFS; IFS=$ac_path_separator
3405 for ac_dir in $ac_dummy; do
3407 test -z "$ac_dir" && ac_dir=.
3408 $as_executable_p "$ac_dir/$ac_word" || continue
3409 ac_cv_prog_LINT="$ac_prog"
3410 echo "$as_me:3410: found $ac_dir/$ac_word" >&5
3416 LINT=$ac_cv_prog_LINT
3417 if test -n "$LINT"; then
3418 echo "$as_me:3418: result: $LINT" >&5
3419 echo "${ECHO_T}$LINT" >&6
3421 echo "$as_me:3421: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3425 test -n "$LINT" && break
3428 echo "$as_me:3428: checking whether ln -s works" >&5
3429 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3431 if test "$LN_S" = "ln -s"; then
3432 echo "$as_me:3432: result: yes" >&5
3433 echo "${ECHO_T}yes" >&6
3435 echo "$as_me:3435: result: no, using $LN_S" >&5
3436 echo "${ECHO_T}no, using $LN_S" >&6
3439 echo "$as_me:3439: checking if $LN_S -f options work" >&5
3440 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3442 rm -f conf$$.src conf$$dst
3444 echo first >conf$$.src
3445 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3450 rm -f conf$$.dst conf$$src
3451 echo "$as_me:3451: result: $cf_prog_ln_sf" >&5
3452 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3454 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3456 echo "$as_me:3456: checking for long file names" >&5
3457 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3458 if test "${ac_cv_sys_long_file_names+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 ac_cv_sys_long_file_names=yes
3462 # Test for long file names in all the places we know might matter:
3463 # . the current directory, where building will happen
3464 # $prefix/lib where we will be installing things
3465 # $exec_prefix/lib likewise
3466 # eval it to expand exec_prefix.
3467 # $TMPDIR if set, where it might want to write temporary files
3468 # if $TMPDIR is not set:
3469 # /tmp where it might want to write temporary files
3472 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3475 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3477 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3478 test -d $ac_dir || continue
3479 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3480 ac_xdir=$ac_dir/cf$$
3481 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3482 ac_tf1=$ac_xdir/conftest9012345
3483 ac_tf2=$ac_xdir/conftest9012346
3484 (echo 1 >$ac_tf1) 2>/dev/null
3485 (echo 2 >$ac_tf2) 2>/dev/null
3486 ac_val=`cat $ac_tf1 2>/dev/null`
3487 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3488 ac_cv_sys_long_file_names=no
3489 rm -rf $ac_xdir 2>/dev/null
3492 rm -rf $ac_xdir 2>/dev/null
3495 echo "$as_me:3495: result: $ac_cv_sys_long_file_names" >&5
3496 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3497 if test $ac_cv_sys_long_file_names = yes; then
3499 cat >>confdefs.h <<\EOF
3500 #define HAVE_LONG_FILE_NAMES 1
3505 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3506 # of package conflict.
3509 # Check whether --with-config-suffix or --without-config-suffix was given.
3510 if test "${with_config_suffix+set}" = set; then
3511 withval="$with_config_suffix"
3514 { echo "$as_me:3514: WARNING: expected a value for config-suffix option" >&5
3515 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3517 (*) cf_config_suffix="$withval"
3522 # If we find pkg-config, check if we should install the ".pc" files.
3524 echo "$as_me:3524: checking if you want to use pkg-config" >&5
3525 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3527 # Check whether --with-pkg-config or --without-pkg-config was given.
3528 if test "${with_pkg_config+set}" = set; then
3529 withval="$with_pkg_config"
3530 cf_pkg_config=$withval
3534 echo "$as_me:3534: result: $cf_pkg_config" >&5
3535 echo "${ECHO_T}$cf_pkg_config" >&6
3537 case $cf_pkg_config in
3543 if test -n "$ac_tool_prefix"; then
3544 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3545 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3546 echo "$as_me:3546: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3556 ac_save_IFS=$IFS; IFS=$ac_path_separator
3558 for ac_dir in $ac_dummy; do
3560 test -z "$ac_dir" && ac_dir=.
3561 if $as_executable_p "$ac_dir/$ac_word"; then
3562 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3563 echo "$as_me:3563: found $ac_dir/$ac_word" >&5
3571 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3573 if test -n "$PKG_CONFIG"; then
3574 echo "$as_me:3574: result: $PKG_CONFIG" >&5
3575 echo "${ECHO_T}$PKG_CONFIG" >&6
3577 echo "$as_me:3577: result: no" >&5
3578 echo "${ECHO_T}no" >&6
3582 if test -z "$ac_cv_path_PKG_CONFIG"; then
3583 ac_pt_PKG_CONFIG=$PKG_CONFIG
3584 # Extract the first word of "pkg-config", so it can be a program name with args.
3585 set dummy pkg-config; ac_word=$2
3586 echo "$as_me:3586: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3588 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 case $ac_pt_PKG_CONFIG in
3593 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3596 ac_save_IFS=$IFS; IFS=$ac_path_separator
3598 for ac_dir in $ac_dummy; do
3600 test -z "$ac_dir" && ac_dir=.
3601 if $as_executable_p "$ac_dir/$ac_word"; then
3602 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3603 echo "$as_me:3603: found $ac_dir/$ac_word" >&5
3608 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3612 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3614 if test -n "$ac_pt_PKG_CONFIG"; then
3615 echo "$as_me:3615: result: $ac_pt_PKG_CONFIG" >&5
3616 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3618 echo "$as_me:3618: result: no" >&5
3619 echo "${ECHO_T}no" >&6
3622 PKG_CONFIG=$ac_pt_PKG_CONFIG
3624 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3633 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3634 if test "$PKG_CONFIG" != none ; then
3636 if test "x$prefix" != xNONE; then
3637 cf_path_syntax="$prefix"
3639 cf_path_syntax="$ac_default_prefix"
3642 case ".$PKG_CONFIG" in
3647 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3649 (.\${*prefix}*|.\${*dir}*)
3650 eval PKG_CONFIG="$PKG_CONFIG"
3651 case ".$PKG_CONFIG" in
3653 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3658 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3661 { { echo "$as_me:3661: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3662 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3663 { (exit 1); exit 1; }; }
3667 elif test "x$cf_pkg_config" != xno ; then
3668 { echo "$as_me:3668: WARNING: pkg-config is not installed" >&5
3669 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3674 echo "$as_me:3674: checking for pkg-config library directory" >&5
3675 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3678 echo "$as_me:3678: checking for $PKG_CONFIG library directory" >&5
3679 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3683 PKG_CONFIG_LIBDIR=no
3685 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3686 if test "${with_pkg_config_libdir+set}" = set; then
3687 withval="$with_pkg_config_libdir"
3688 PKG_CONFIG_LIBDIR=$withval
3690 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3693 case x$PKG_CONFIG_LIBDIR in
3697 # Look for the library directory using the same prefix as the executable
3698 if test "x$PKG_CONFIG" = xnone
3702 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3705 # If you don't like using the default architecture, you have to specify the
3706 # intended library directory and corresponding compiler/linker options.
3708 # This case allows for Debian's 2014-flavor of multiarch, along with the
3709 # most common variations before that point. Some other variants spell the
3710 # directory differently, e.g., "pkg-config", and put it in unusual places.
3711 # pkg-config has always been poorly standardized, which is ironic...
3712 case x`(arch) 2>/dev/null` in
3715 $cf_path/lib/*64-linux-gnu \
3723 $cf_path/lib/*-linux-gnu \
3731 test -n "$verbose" && echo " list..." 1>&6
3733 echo "${as_me:-configure}:3733: testing list... ..." 1>&5
3735 for cf_config in $cf_search_path
3737 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3739 echo "${as_me:-configure}:3739: testing checking $cf_config/pkgconfig ..." 1>&5
3741 if test -d $cf_config/pkgconfig
3743 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3744 echo "$as_me:3744: checking done" >&5
3745 echo $ECHO_N "checking done... $ECHO_C" >&6
3754 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3755 echo "$as_me:3755: result: $PKG_CONFIG_LIBDIR" >&5
3756 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3759 if test "x$PKG_CONFIG" != xnone
3761 echo "$as_me:3761: checking if we should install .pc files for $PKG_CONFIG" >&5
3762 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3764 echo "$as_me:3764: checking if we should install .pc files" >&5
3765 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3768 # Check whether --enable-pc-files or --disable-pc-files was given.
3769 if test "${enable_pc_files+set}" = set; then
3770 enableval="$enable_pc_files"
3771 enable_pc_files=$enableval
3775 echo "$as_me:3775: result: $enable_pc_files" >&5
3776 echo "${ECHO_T}$enable_pc_files" >&6
3778 if test "x$enable_pc_files" != xno
3781 case "x$PKG_CONFIG_LIBDIR" in
3783 { echo "$as_me:3783: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3784 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3788 if test "x$prefix" != xNONE; then
3789 cf_path_syntax="$prefix"
3791 cf_path_syntax="$ac_default_prefix"
3794 case ".$PKG_CONFIG_LIBDIR" in
3799 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3801 (.\${*prefix}*|.\${*dir}*)
3802 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3803 case ".$PKG_CONFIG_LIBDIR" in
3805 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3810 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3813 { { echo "$as_me:3813: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3814 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3815 { (exit 1); exit 1; }; }
3825 if test -z "$MAKE_PC_FILES"
3827 echo "$as_me:3827: checking for suffix to add to pc-files" >&5
3828 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3830 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3831 if test "${with_pc_suffix+set}" = set; then
3832 withval="$with_pc_suffix"
3837 (*) PC_MODULE_SUFFIX="$withval"
3841 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3842 echo "$as_me:3842: result: $PC_MODULE_SUFFIX" >&5
3843 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3844 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3848 echo "$as_me:3848: checking if we should assume mixed-case filenames" >&5
3849 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3851 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3852 if test "${enable_mixed_case+set}" = set; then
3853 enableval="$enable_mixed_case"
3854 enable_mixedcase=$enableval
3856 enable_mixedcase=auto
3858 echo "$as_me:3858: result: $enable_mixedcase" >&5
3859 echo "${ECHO_T}$enable_mixedcase" >&6
3860 if test "$enable_mixedcase" = "auto" ; then
3862 echo "$as_me:3862: checking if filesystem supports mixed-case filenames" >&5
3863 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3864 if test "${cf_cv_mixedcase+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 if test "$cross_compiling" = yes ; then
3869 case $target_alias in
3870 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3878 rm -f conftest CONFTEST
3880 if test -f CONFTEST ; then
3885 rm -f conftest CONFTEST
3889 echo "$as_me:3889: result: $cf_cv_mixedcase" >&5
3890 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3891 test "$cf_cv_mixedcase" = yes &&
3892 cat >>confdefs.h <<\EOF
3893 #define MIXEDCASE_FILENAMES 1
3897 cf_cv_mixedcase=$enable_mixedcase
3898 if test "x$enable_mixedcase" = "xyes" ; then
3900 cat >>confdefs.h <<\EOF
3901 #define MIXEDCASE_FILENAMES 1
3907 # do this after mixed-case option (tags/TAGS is not as important as tic).
3908 echo "$as_me:3908: checking whether ${MAKE-make} sets \${MAKE}" >&5
3909 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3910 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3911 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 cat >conftest.make <<\EOF
3916 @echo 'ac_maketemp="${MAKE}"'
3918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3919 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3920 if test -n "$ac_maketemp"; then
3921 eval ac_cv_prog_make_${ac_make}_set=yes
3923 eval ac_cv_prog_make_${ac_make}_set=no
3927 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3928 echo "$as_me:3928: result: yes" >&5
3929 echo "${ECHO_T}yes" >&6
3932 echo "$as_me:3932: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3934 SET_MAKE="MAKE=${MAKE-make}"
3937 for ac_prog in exctags ctags
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 echo "$as_me:3941: checking for $ac_word" >&5
3942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943 if test "${ac_cv_prog_CTAGS+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3946 if test -n "$CTAGS"; then
3947 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3949 ac_save_IFS=$IFS; IFS=$ac_path_separator
3951 for ac_dir in $ac_dummy; do
3953 test -z "$ac_dir" && ac_dir=.
3954 $as_executable_p "$ac_dir/$ac_word" || continue
3955 ac_cv_prog_CTAGS="$ac_prog"
3956 echo "$as_me:3956: found $ac_dir/$ac_word" >&5
3962 CTAGS=$ac_cv_prog_CTAGS
3963 if test -n "$CTAGS"; then
3964 echo "$as_me:3964: result: $CTAGS" >&5
3965 echo "${ECHO_T}$CTAGS" >&6
3967 echo "$as_me:3967: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3971 test -n "$CTAGS" && break
3974 for ac_prog in exetags etags
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 echo "$as_me:3978: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_ETAGS+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$ETAGS"; then
3984 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3986 ac_save_IFS=$IFS; IFS=$ac_path_separator
3988 for ac_dir in $ac_dummy; do
3990 test -z "$ac_dir" && ac_dir=.
3991 $as_executable_p "$ac_dir/$ac_word" || continue
3992 ac_cv_prog_ETAGS="$ac_prog"
3993 echo "$as_me:3993: found $ac_dir/$ac_word" >&5
3999 ETAGS=$ac_cv_prog_ETAGS
4000 if test -n "$ETAGS"; then
4001 echo "$as_me:4001: result: $ETAGS" >&5
4002 echo "${ECHO_T}$ETAGS" >&6
4004 echo "$as_me:4004: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4008 test -n "$ETAGS" && break
4011 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4012 set dummy ${CTAGS:-ctags}; ac_word=$2
4013 echo "$as_me:4013: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 if test -n "$MAKE_LOWER_TAGS"; then
4019 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4021 ac_save_IFS=$IFS; IFS=$ac_path_separator
4023 for ac_dir in $ac_dummy; do
4025 test -z "$ac_dir" && ac_dir=.
4026 $as_executable_p "$ac_dir/$ac_word" || continue
4027 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4028 echo "$as_me:4028: found $ac_dir/$ac_word" >&5
4032 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4035 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4036 if test -n "$MAKE_LOWER_TAGS"; then
4037 echo "$as_me:4037: result: $MAKE_LOWER_TAGS" >&5
4038 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4040 echo "$as_me:4040: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4044 if test "$cf_cv_mixedcase" = yes ; then
4045 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4046 set dummy ${ETAGS:-etags}; ac_word=$2
4047 echo "$as_me:4047: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$MAKE_UPPER_TAGS"; then
4053 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4055 ac_save_IFS=$IFS; IFS=$ac_path_separator
4057 for ac_dir in $ac_dummy; do
4059 test -z "$ac_dir" && ac_dir=.
4060 $as_executable_p "$ac_dir/$ac_word" || continue
4061 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4062 echo "$as_me:4062: found $ac_dir/$ac_word" >&5
4066 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4069 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4070 if test -n "$MAKE_UPPER_TAGS"; then
4071 echo "$as_me:4071: result: $MAKE_UPPER_TAGS" >&5
4072 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4074 echo "$as_me:4074: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4082 if test "$MAKE_UPPER_TAGS" = yes ; then
4088 if test "$MAKE_LOWER_TAGS" = yes ; then
4094 echo "$as_me:4094: checking for makeflags variable" >&5
4095 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4096 if test "${cf_cv_makeflags+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4103 cat >cf_makeflags.tmp <<CF_EOF
4106 @ echo '.$cf_option'
4108 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4109 case "$cf_result" in
4111 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4112 case "$cf_result" in
4113 (.*CC=*) cf_cv_makeflags=
4115 (*) cf_cv_makeflags=$cf_option
4124 echo "${as_me:-configure}:4124: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4129 rm -f cf_makeflags.tmp
4132 echo "$as_me:4132: result: $cf_cv_makeflags" >&5
4133 echo "${ECHO_T}$cf_cv_makeflags" >&6
4135 if test -n "$ac_tool_prefix"; then
4136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4138 echo "$as_me:4138: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_prog_RANLIB+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 if test -n "$RANLIB"; then
4144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4146 ac_save_IFS=$IFS; IFS=$ac_path_separator
4148 for ac_dir in $ac_dummy; do
4150 test -z "$ac_dir" && ac_dir=.
4151 $as_executable_p "$ac_dir/$ac_word" || continue
4152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4153 echo "$as_me:4153: found $ac_dir/$ac_word" >&5
4159 RANLIB=$ac_cv_prog_RANLIB
4160 if test -n "$RANLIB"; then
4161 echo "$as_me:4161: result: $RANLIB" >&5
4162 echo "${ECHO_T}$RANLIB" >&6
4164 echo "$as_me:4164: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4169 if test -z "$ac_cv_prog_RANLIB"; then
4170 ac_ct_RANLIB=$RANLIB
4171 # Extract the first word of "ranlib", so it can be a program name with args.
4172 set dummy ranlib; ac_word=$2
4173 echo "$as_me:4173: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4175 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 if test -n "$ac_ct_RANLIB"; then
4179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4181 ac_save_IFS=$IFS; IFS=$ac_path_separator
4183 for ac_dir in $ac_dummy; do
4185 test -z "$ac_dir" && ac_dir=.
4186 $as_executable_p "$ac_dir/$ac_word" || continue
4187 ac_cv_prog_ac_ct_RANLIB="ranlib"
4188 echo "$as_me:4188: found $ac_dir/$ac_word" >&5
4192 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4196 if test -n "$ac_ct_RANLIB"; then
4197 echo "$as_me:4197: result: $ac_ct_RANLIB" >&5
4198 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4200 echo "$as_me:4200: result: no" >&5
4201 echo "${ECHO_T}no" >&6
4204 RANLIB=$ac_ct_RANLIB
4206 RANLIB="$ac_cv_prog_RANLIB"
4209 if test -n "$ac_tool_prefix"; then
4210 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4211 set dummy ${ac_tool_prefix}ld; ac_word=$2
4212 echo "$as_me:4212: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214 if test "${ac_cv_prog_LD+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 if test -n "$LD"; then
4218 ac_cv_prog_LD="$LD" # Let the user override the test.
4220 ac_save_IFS=$IFS; IFS=$ac_path_separator
4222 for ac_dir in $ac_dummy; do
4224 test -z "$ac_dir" && ac_dir=.
4225 $as_executable_p "$ac_dir/$ac_word" || continue
4226 ac_cv_prog_LD="${ac_tool_prefix}ld"
4227 echo "$as_me:4227: found $ac_dir/$ac_word" >&5
4234 if test -n "$LD"; then
4235 echo "$as_me:4235: result: $LD" >&5
4236 echo "${ECHO_T}$LD" >&6
4238 echo "$as_me:4238: result: no" >&5
4239 echo "${ECHO_T}no" >&6
4243 if test -z "$ac_cv_prog_LD"; then
4245 # Extract the first word of "ld", so it can be a program name with args.
4246 set dummy ld; ac_word=$2
4247 echo "$as_me:4247: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4249 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 if test -n "$ac_ct_LD"; then
4253 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4255 ac_save_IFS=$IFS; IFS=$ac_path_separator
4257 for ac_dir in $ac_dummy; do
4259 test -z "$ac_dir" && ac_dir=.
4260 $as_executable_p "$ac_dir/$ac_word" || continue
4261 ac_cv_prog_ac_ct_LD="ld"
4262 echo "$as_me:4262: found $ac_dir/$ac_word" >&5
4266 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4269 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4270 if test -n "$ac_ct_LD"; then
4271 echo "$as_me:4271: result: $ac_ct_LD" >&5
4272 echo "${ECHO_T}$ac_ct_LD" >&6
4274 echo "$as_me:4274: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4283 if test -n "$ac_tool_prefix"; then
4284 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4285 set dummy ${ac_tool_prefix}ar; ac_word=$2
4286 echo "$as_me:4286: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288 if test "${ac_cv_prog_AR+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 if test -n "$AR"; then
4292 ac_cv_prog_AR="$AR" # Let the user override the test.
4294 ac_save_IFS=$IFS; IFS=$ac_path_separator
4296 for ac_dir in $ac_dummy; do
4298 test -z "$ac_dir" && ac_dir=.
4299 $as_executable_p "$ac_dir/$ac_word" || continue
4300 ac_cv_prog_AR="${ac_tool_prefix}ar"
4301 echo "$as_me:4301: found $ac_dir/$ac_word" >&5
4308 if test -n "$AR"; then
4309 echo "$as_me:4309: result: $AR" >&5
4310 echo "${ECHO_T}$AR" >&6
4312 echo "$as_me:4312: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4317 if test -z "$ac_cv_prog_AR"; then
4319 # Extract the first word of "ar", so it can be a program name with args.
4320 set dummy ar; ac_word=$2
4321 echo "$as_me:4321: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test -n "$ac_ct_AR"; then
4327 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4329 ac_save_IFS=$IFS; IFS=$ac_path_separator
4331 for ac_dir in $ac_dummy; do
4333 test -z "$ac_dir" && ac_dir=.
4334 $as_executable_p "$ac_dir/$ac_word" || continue
4335 ac_cv_prog_ac_ct_AR="ar"
4336 echo "$as_me:4336: found $ac_dir/$ac_word" >&5
4340 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4343 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4344 if test -n "$ac_ct_AR"; then
4345 echo "$as_me:4345: result: $ac_ct_AR" >&5
4346 echo "${ECHO_T}$ac_ct_AR" >&6
4348 echo "$as_me:4348: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4357 if test -n "$ac_tool_prefix"; then
4358 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}nm; ac_word=$2
4360 echo "$as_me:4360: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362 if test "${ac_cv_prog_NM+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 if test -n "$NM"; then
4366 ac_cv_prog_NM="$NM" # Let the user override the test.
4368 ac_save_IFS=$IFS; IFS=$ac_path_separator
4370 for ac_dir in $ac_dummy; do
4372 test -z "$ac_dir" && ac_dir=.
4373 $as_executable_p "$ac_dir/$ac_word" || continue
4374 ac_cv_prog_NM="${ac_tool_prefix}nm"
4375 echo "$as_me:4375: found $ac_dir/$ac_word" >&5
4382 if test -n "$NM"; then
4383 echo "$as_me:4383: result: $NM" >&5
4384 echo "${ECHO_T}$NM" >&6
4386 echo "$as_me:4386: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 if test -z "$ac_cv_prog_NM"; then
4393 # Extract the first word of "nm", so it can be a program name with args.
4394 set dummy nm; ac_word=$2
4395 echo "$as_me:4395: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$ac_ct_NM"; then
4401 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4403 ac_save_IFS=$IFS; IFS=$ac_path_separator
4405 for ac_dir in $ac_dummy; do
4407 test -z "$ac_dir" && ac_dir=.
4408 $as_executable_p "$ac_dir/$ac_word" || continue
4409 ac_cv_prog_ac_ct_NM="nm"
4410 echo "$as_me:4410: found $ac_dir/$ac_word" >&5
4414 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4417 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4418 if test -n "$ac_ct_NM"; then
4419 echo "$as_me:4419: result: $ac_ct_NM" >&5
4420 echo "${ECHO_T}$ac_ct_NM" >&6
4422 echo "$as_me:4422: result: no" >&5
4423 echo "${ECHO_T}no" >&6
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}ar; ac_word=$2
4434 echo "$as_me:4434: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_AR+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -n "$AR"; then
4440 ac_cv_prog_AR="$AR" # Let the user override the test.
4442 ac_save_IFS=$IFS; IFS=$ac_path_separator
4444 for ac_dir in $ac_dummy; do
4446 test -z "$ac_dir" && ac_dir=.
4447 $as_executable_p "$ac_dir/$ac_word" || continue
4448 ac_cv_prog_AR="${ac_tool_prefix}ar"
4449 echo "$as_me:4449: found $ac_dir/$ac_word" >&5
4456 if test -n "$AR"; then
4457 echo "$as_me:4457: result: $AR" >&5
4458 echo "${ECHO_T}$AR" >&6
4460 echo "$as_me:4460: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4465 if test -z "$ac_cv_prog_AR"; then
4467 # Extract the first word of "ar", so it can be a program name with args.
4468 set dummy ar; ac_word=$2
4469 echo "$as_me:4469: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 if test -n "$ac_ct_AR"; then
4475 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4477 ac_save_IFS=$IFS; IFS=$ac_path_separator
4479 for ac_dir in $ac_dummy; do
4481 test -z "$ac_dir" && ac_dir=.
4482 $as_executable_p "$ac_dir/$ac_word" || continue
4483 ac_cv_prog_ac_ct_AR="ar"
4484 echo "$as_me:4484: found $ac_dir/$ac_word" >&5
4488 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4491 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4492 if test -n "$ac_ct_AR"; then
4493 echo "$as_me:4493: result: $ac_ct_AR" >&5
4494 echo "${ECHO_T}$ac_ct_AR" >&6
4496 echo "$as_me:4496: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4505 echo "$as_me:4505: checking for options to update archives" >&5
4506 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4507 if test "${cf_cv_ar_flags+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 cf_cv_ar_flags=unknown
4512 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4515 # check if $ARFLAGS already contains this choice
4516 if test "x$ARFLAGS" != "x" ; then
4517 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4518 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4524 rm -f conftest.$ac_cv_objext
4527 cat >conftest.$ac_ext <<EOF
4528 #line 4528 "configure"
4529 int testdata[3] = { 123, 456, 789 };
4531 if { (eval echo "$as_me:4531: \"$ac_compile\"") >&5
4532 (eval $ac_compile) 2>&5
4534 echo "$as_me:4534: \$? = $ac_status" >&5
4535 (exit $ac_status); } ; then
4536 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4537 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4538 if test -f conftest.a ; then
4539 cf_cv_ar_flags=$cf_ar_flags
4543 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4545 echo "${as_me:-configure}:4545: testing cannot compile test-program ..." 1>&5
4550 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4553 echo "$as_me:4553: result: $cf_cv_ar_flags" >&5
4554 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4556 if test -n "$ARFLAGS" ; then
4557 if test -n "$cf_cv_ar_flags" ; then
4558 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4561 ARFLAGS=$cf_cv_ar_flags
4564 echo "$as_me:4564: checking if you have specified an install-prefix" >&5
4565 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4567 # Check whether --with-install-prefix or --without-install-prefix was given.
4568 if test "${with_install_prefix+set}" = set; then
4569 withval="$with_install_prefix"
4573 (*) DESTDIR="$withval"
4577 echo "$as_me:4577: result: $DESTDIR" >&5
4578 echo "${ECHO_T}$DESTDIR" >&6
4580 ###############################################################################
4582 # If we're cross-compiling, allow the user to override the tools and their
4583 # options. The configure script is oriented toward identifying the host
4584 # compiler, etc., but we need a build compiler to generate parts of the source.
4586 if test "$cross_compiling" = yes ; then
4588 # defaults that we might want to override
4589 : ${BUILD_CFLAGS:=''}
4590 : ${BUILD_CPPFLAGS:=''}
4591 : ${BUILD_LDFLAGS:=''}
4593 : ${BUILD_EXEEXT:='$x'}
4594 : ${BUILD_OBJEXT:='o'}
4596 # Check whether --with-build-cc or --without-build-cc was given.
4597 if test "${with_build_cc+set}" = set; then
4598 withval="$with_build_cc"
4601 for ac_prog in gcc clang c99 c89 cc cl
4603 # Extract the first word of "$ac_prog", so it can be a program name with args.
4604 set dummy $ac_prog; ac_word=$2
4605 echo "$as_me:4605: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 if test -n "$BUILD_CC"; then
4611 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4613 ac_save_IFS=$IFS; IFS=$ac_path_separator
4615 for ac_dir in $ac_dummy; do
4617 test -z "$ac_dir" && ac_dir=.
4618 $as_executable_p "$ac_dir/$ac_word" || continue
4619 ac_cv_prog_BUILD_CC="$ac_prog"
4620 echo "$as_me:4620: found $ac_dir/$ac_word" >&5
4626 BUILD_CC=$ac_cv_prog_BUILD_CC
4627 if test -n "$BUILD_CC"; then
4628 echo "$as_me:4628: result: $BUILD_CC" >&5
4629 echo "${ECHO_T}$BUILD_CC" >&6
4631 echo "$as_me:4631: result: no" >&5
4632 echo "${ECHO_T}no" >&6
4635 test -n "$BUILD_CC" && break
4637 test -n "$BUILD_CC" || BUILD_CC="none"
4640 echo "$as_me:4640: checking for native build C compiler" >&5
4641 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4642 echo "$as_me:4642: result: $BUILD_CC" >&5
4643 echo "${ECHO_T}$BUILD_CC" >&6
4645 echo "$as_me:4645: checking for native build C preprocessor" >&5
4646 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4648 # Check whether --with-build-cpp or --without-build-cpp was given.
4649 if test "${with_build_cpp+set}" = set; then
4650 withval="$with_build_cpp"
4651 BUILD_CPP="$withval"
4653 BUILD_CPP='${BUILD_CC} -E'
4655 echo "$as_me:4655: result: $BUILD_CPP" >&5
4656 echo "${ECHO_T}$BUILD_CPP" >&6
4658 echo "$as_me:4658: checking for native build C flags" >&5
4659 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4661 # Check whether --with-build-cflags or --without-build-cflags was given.
4662 if test "${with_build_cflags+set}" = set; then
4663 withval="$with_build_cflags"
4664 BUILD_CFLAGS="$withval"
4666 echo "$as_me:4666: result: $BUILD_CFLAGS" >&5
4667 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4669 echo "$as_me:4669: checking for native build C preprocessor-flags" >&5
4670 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4672 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4673 if test "${with_build_cppflags+set}" = set; then
4674 withval="$with_build_cppflags"
4675 BUILD_CPPFLAGS="$withval"
4677 echo "$as_me:4677: result: $BUILD_CPPFLAGS" >&5
4678 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4680 echo "$as_me:4680: checking for native build linker-flags" >&5
4681 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4683 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4684 if test "${with_build_ldflags+set}" = set; then
4685 withval="$with_build_ldflags"
4686 BUILD_LDFLAGS="$withval"
4688 echo "$as_me:4688: result: $BUILD_LDFLAGS" >&5
4689 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4691 echo "$as_me:4691: checking for native build linker-libraries" >&5
4692 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4694 # Check whether --with-build-libs or --without-build-libs was given.
4695 if test "${with_build_libs+set}" = set; then
4696 withval="$with_build_libs"
4697 BUILD_LIBS="$withval"
4699 echo "$as_me:4699: result: $BUILD_LIBS" >&5
4700 echo "${ECHO_T}$BUILD_LIBS" >&6
4702 # this assumes we're on Unix.
4706 : ${BUILD_CC:='${CC}'}
4708 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4709 { { echo "$as_me:4709: error: Cross-build requires two compilers.
4710 Use --with-build-cc to specify the native compiler." >&5
4711 echo "$as_me: error: Cross-build requires two compilers.
4712 Use --with-build-cc to specify the native compiler." >&2;}
4713 { (exit 1); exit 1; }; }
4717 : ${BUILD_CC:='${CC}'}
4718 : ${BUILD_CPP:='${CPP}'}
4719 : ${BUILD_CFLAGS:='${CFLAGS}'}
4720 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4721 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4722 : ${BUILD_LIBS:='${LIBS}'}
4723 : ${BUILD_EXEEXT:='$x'}
4724 : ${BUILD_OBJEXT:='o'}
4727 ###############################################################################
4729 ### Options to allow the user to specify the set of libraries which are used.
4730 ### Use "--without-normal --with-shared" to allow the default model to be
4731 ### shared, for example.
4734 echo "$as_me:4734: checking if libtool -version-number should be used" >&5
4735 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4737 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4738 if test "${enable_libtool_version+set}" = set; then
4739 enableval="$enable_libtool_version"
4740 test "$enableval" != no && enableval=yes
4741 if test "$enableval" != "yes" ; then
4742 cf_libtool_version=no
4744 cf_libtool_version=yes
4748 cf_libtool_version=yes
4751 echo "$as_me:4751: result: $cf_libtool_version" >&5
4752 echo "${ECHO_T}$cf_libtool_version" >&6
4754 if test "$cf_libtool_version" = yes ; then
4755 LIBTOOL_VERSION="-version-number"
4757 LIBTOOL_VERSION="-version-info"
4760 { echo "$as_me:4760: WARNING: VERSION was not set" >&5
4761 echo "$as_me: WARNING: VERSION was not set" >&2;}
4764 ABI_VERSION="$VERSION"
4765 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4767 echo "${as_me:-configure}:4767: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4771 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4772 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4774 echo "${as_me:-configure}:4774: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4778 { echo "$as_me:4778: WARNING: unexpected VERSION value: $VERSION" >&5
4779 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4786 # common library maintenance symbols that are convenient for libtool scripts:
4787 LIB_CREATE='${AR} -cr'
4788 LIB_OBJECT='${OBJECTS}'
4792 # symbols used to prop libtool up to enable it to determine what it should be
4800 echo "$as_me:4800: checking if you want to build libraries with libtool" >&5
4801 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4803 # Check whether --with-libtool or --without-libtool was given.
4804 if test "${with_libtool+set}" = set; then
4805 withval="$with_libtool"
4806 with_libtool=$withval
4810 echo "$as_me:4810: result: $with_libtool" >&5
4811 echo "${ECHO_T}$with_libtool" >&6
4812 if test "$with_libtool" != "no"; then
4814 if test "$with_libtool" != "yes" ; then
4816 if test "x$prefix" != xNONE; then
4817 cf_path_syntax="$prefix"
4819 cf_path_syntax="$ac_default_prefix"
4822 case ".$with_libtool" in
4827 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4829 (.\${*prefix}*|.\${*dir}*)
4830 eval with_libtool="$with_libtool"
4831 case ".$with_libtool" in
4833 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`