2 # From configure.in Revision: 1.647 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20170501.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tack suppress build/install with tack program
713 --without-tests suppress build/install with test-programs
714 --without-curses-h install curses.h as ncurses.h only
715 --with-pkg-config{=path} enable/disable use of pkg-config
716 --with-pkg-config-libdir=XXX use given directory for installing pc-files
717 --enable-pc-files generate and install .pc files for pkg-config
718 --with-pc-suffix suffixes pc-files
719 --enable-mixed-case tic should assume mixed-case filenames
720 --with-install-prefix prefixes actual install-location ($DESTDIR)
721 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
722 --with-build-cc=XXX the build C compiler ($BUILD_CC)
723 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
724 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
725 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
726 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
727 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
728 Options to Specify the Libraries Built/Used:
729 --disable-libtool-version enable to use libtool's incompatible naming scheme
730 --with-libtool generate libraries with libtool
731 --with-shared generate shared-libraries
732 --with-normal generate normal-libraries (default)
733 --with-debug generate debug-libraries (default)
734 --with-profile generate profile-libraries
735 --with-cxx-shared generate C++ shared-libraries
736 --with-lib-prefix override library-prefix
737 --with-termlib generate separate terminfo library
738 --with-ticlib generate separate tic library
739 --with-gpm use Alessandro Rubini's GPM library
740 --without-dlsym do not use dlsym() to load GPM dynamically
741 --with-sysmouse use sysmouse (FreeBSD console)
742 --enable-rpath use rpath option when generating shared libraries
743 --disable-relink relink shared libraries during install
744 --with-shlib-version=X Specify rel or abi version for shared libs
745 --with-libtool-opts=XXX specify additional libtool options
746 --with-export-syms=XXX limit exported symbols using libtool
747 --with-versioned-syms=X markup versioned symbols using ld
748 --disable-lib-suffixes disable library suffixes
749 --disable-rpath-hack don't add rpath options for additional libraries
750 Fine-Tuning Your Configuration:
751 --with-extra-suffix=X append extra suffix to header/library paths
752 --disable-overwrite put headers in subdir, omit link to -lcurses
753 --disable-database do not use terminfo, only fallbacks/termcap
754 --with-database=XXX specify terminfo source to install
755 --with-hashed-db specify hashed-database library
756 --with-fallbacks=XXX specify list of fallback terminal descriptions
757 --without-xterm-new specify if xterm terminfo should be old version
758 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
759 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
760 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
761 --disable-big-core assume machine has little memory
762 --disable-big-strings assume compiler has only standard-size strings
763 --enable-termcap compile in termcap fallback support
764 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
765 --enable-getcap fast termcap load, no xrefs to terminfo
766 --enable-getcap-cache cache translated termcaps in ~/.terminfo
767 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
768 --disable-root-environ restrict environment when running as root
769 --enable-symlinks make tic use symbolic links not hard links
770 --enable-broken_linker compile with broken-linker support code
771 --enable-bsdpad recognize BSD-style prefix padding
772 --enable-widec compile with wide-char/UTF-8 code
773 --disable-lp64 allow chtype to be long (ignore _LP64)
774 --disable-largefile omit support for large files
775 --disable-tparm-varargs compile tparm() without varargs interface
776 --disable-tic-depends link tic library without explicit dependency on ncurses library
777 --disable-wattr-macros suppress wattr* macros to help with ncurses5/ncurses6 transition
778 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
779 --with-bool=TYPE override fallback type of bool variable
780 --with-caps=alt compile with alternate Caps file
781 --with-chtype=TYPE override type of chtype
782 --with-ospeed=TYPE override type of ospeed variable
783 --with-mmask-t=TYPE override type of mmask_t
784 --with-ccharw-max=XXX override size CCHARW_MAX
785 --with-tparm-arg=TYPE override parameter type of tparm
786 --with-rcs-ids compile-in RCS identifiers
787 Options to Specify How Manpages are Installed:
788 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
789 optionally formatted/catonly, e.g., gzip,formatted
790 --with-manpage-renames specify manpage-renaming
791 --with-manpage-aliases specify manpage-aliases using .so
792 --with-manpage-symlinks specify manpage-aliases using symlinks
793 --with-manpage-tbl specify manpage processing with tbl
795 --disable-ext-funcs disable function-extensions
796 --enable-sp-funcs enable SCREEN-extensions
797 --enable-term-driver enable terminal-driver
798 --enable-const compile with extra/non-standard const
799 --enable-ext-colors compile for 256-color support
800 --enable-ext-mouse compile for extended mouse-encoding
801 --enable-ext-putwin compile with extended putwin/screendump
802 --enable-no-padding compile with $NCURSES_NO_PADDING code
803 --enable-signed-char compile using signed Boolean's in term.h
804 --enable-sigwinch compile with SIGWINCH handler
805 --enable-tcap-names compile with user-definable terminal capabilities
806 --with-pthread use POSIX thread library
807 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
808 --enable-weak-symbols enable weak-symbols for pthreads
809 --enable-reentrant compile with reentrant code
810 --enable-opaque-curses make curses WINDOW, etc., "opaque"
811 --enable-opaque-form make form-library structures "opaque"
812 --enable-opaque-menu make menu-library structures "opaque"
813 --enable-opaque-panel make panel-library structures "opaque"
814 --with-wrap-prefix=XXX override prefix used for public variables
816 --without-develop disable development options
817 --enable-hard-tabs compile with hard-tabs code
818 --enable-xmc-glitch compile with support for xmc (magic-cookie)
820 --disable-assumed-color do not assume anything about default-colors
821 --disable-hashmap compile without hashmap scrolling-optimization
822 --enable-colorfgbg compile-in experimental $COLORFGBG code
823 --enable-interop compile-in interop bindings
824 --enable-safe-sprintf compile with experimental safe-sprintf code
825 --disable-scroll-hints compile without scroll-hints code
826 --enable-wgetch-events compile with wgetch-events code
827 Testing/development Options:
828 --disable-echo do not display "compiling" commands
829 --enable-warnings build: turn on GCC compiler warnings
830 --enable-string-hacks work around bogus compiler/loader warnings
831 --enable-assertions test: turn on generation of assertion code
832 --with-dmalloc test: use Gray Watson's dmalloc library
833 --with-dbmalloc test: use Conor Cahill's dbmalloc library
834 --with-valgrind test: use valgrind
835 --disable-leaks test: free permanent memory, analyze leaks
836 --enable-expanded test: generate functions for certain macros
837 --disable-macros test: use functions rather than macros
838 --with-trace test: add trace() function to all models of ncurses
839 --disable-gnat-projects test: disable GNAT projects even if usable
840 Ada95 Binding Options:
841 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
842 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
843 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
844 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
846 Some influential environment variables:
847 CC C compiler command
848 CFLAGS C compiler flags
849 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
850 nonstandard directory <lib dir>
851 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
852 headers in a nonstandard directory <include dir>
854 CXX C++ compiler command
855 CXXFLAGS C++ compiler flags
856 CXXCPP C++ preprocessor
858 Use these variables to override the choices made by `configure' or to help
859 it to find libraries and programs with nonstandard names/locations.
864 if test "$ac_init_help" = "recursive"; then
865 # If there are subdirs, report their specific --help.
867 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
869 # A "../" for each directory in /$ac_subdir.
870 ac_dots=`echo $ac_subdir |
871 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
874 .) # No --srcdir option. We are building in place.
875 ac_sub_srcdir=$srcdir ;;
876 [\\/]* | ?:[\\/]* ) # Absolute path.
877 ac_sub_srcdir=$srcdir/$ac_subdir ;;
879 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
882 # Check for guested configure; otherwise get Cygnus style configure.
883 if test -f $ac_sub_srcdir/configure.gnu; then
885 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
886 elif test -f $ac_sub_srcdir/configure; then
888 $SHELL $ac_sub_srcdir/configure --help=recursive
889 elif test -f $ac_sub_srcdir/configure.ac ||
890 test -f $ac_sub_srcdir/configure.in; then
894 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
900 test -n "$ac_init_help" && exit 0
901 if $ac_init_version; then
904 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
905 Free Software Foundation, Inc.
906 This configure script is free software; the Free Software Foundation
907 gives unlimited permission to copy, distribute and modify it.
913 This file contains any messages produced by compilers while
914 running configure, to aid debugging if configure makes a mistake.
916 It was created by $as_me, which was
917 generated by GNU Autoconf 2.52.20170501. Invocation command line was
928 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
929 uname -m = `(uname -m) 2>/dev/null || echo unknown`
930 uname -r = `(uname -r) 2>/dev/null || echo unknown`
931 uname -s = `(uname -s) 2>/dev/null || echo unknown`
932 uname -v = `(uname -v) 2>/dev/null || echo unknown`
934 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
935 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
937 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
938 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
939 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
940 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
941 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
942 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
943 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
957 # Keep a trace of the command line.
958 # Strip out --no-create and --no-recursion so they do not pile up.
959 # Also quote any args containing shell meta-characters.
965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966 | --no-cr | --no-c) ;;
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
969 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
970 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
971 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
973 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
976 # Get rid of the leading space.
979 # When interrupted or exit'd, cleanup temporary files, and complete
980 # config.log. We remove comments because anyway the quotes in there
981 # would cause problems or look ugly.
983 # Save into config.log some information that might help in debugging.
985 echo "## ----------------- ##" >&5
986 echo "## Cache variables. ##" >&5
987 echo "## ----------------- ##" >&5
989 # The following way of writing the cache mishandles newlines in values,
992 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
995 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1000 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1004 sed "/^$/d" confdefs.h >conftest.log
1005 if test -s conftest.log; then
1007 echo "## ------------ ##" >&5
1008 echo "## confdefs.h. ##" >&5
1009 echo "## ------------ ##" >&5
1011 cat conftest.log >&5
1014 test "$ac_signal" != 0 &&
1015 echo "$as_me: caught signal $ac_signal" >&5
1016 echo "$as_me: exit $exit_status" >&5
1017 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1020 for ac_signal in 1 2 13 15; do
1021 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1026 rm -rf conftest* confdefs.h
1027 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1030 # Let the site file select an alternate cache file if it wants to.
1031 # Prefer explicitly selected file to automatically selected ones.
1032 if test -z "$CONFIG_SITE"; then
1033 if test "x$prefix" != xNONE; then
1034 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1036 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1039 for ac_site_file in $CONFIG_SITE; do
1040 if test -r "$ac_site_file"; then
1041 { echo "$as_me:1041: loading site script $ac_site_file" >&5
1042 echo "$as_me: loading site script $ac_site_file" >&6;}
1043 cat "$ac_site_file" >&5
1048 if test -r "$cache_file"; then
1049 # Some versions of bash will fail to source /dev/null (special
1050 # files actually), so we avoid doing that.
1051 if test -f "$cache_file"; then
1052 { echo "$as_me:1052: loading cache $cache_file" >&5
1053 echo "$as_me: loading cache $cache_file" >&6;}
1055 [\\/]* | ?:[\\/]* ) . $cache_file;;
1056 *) . ./$cache_file;;
1060 { echo "$as_me:1060: creating cache $cache_file" >&5
1061 echo "$as_me: creating cache $cache_file" >&6;}
1065 # Check that the precious variables saved in the cache have kept the same
1067 ac_cache_corrupted=false
1068 for ac_var in `(set) 2>&1 |
1069 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1070 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1071 eval ac_new_set=\$ac_env_${ac_var}_set
1072 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1073 eval ac_new_val="\$ac_env_${ac_var}_value"
1074 case $ac_old_set,$ac_new_set in
1076 { echo "$as_me:1076: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1077 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1078 ac_cache_corrupted=: ;;
1080 { echo "$as_me:1080: error: \`$ac_var' was not set in the previous run" >&5
1081 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1082 ac_cache_corrupted=: ;;
1085 if test "x$ac_old_val" != "x$ac_new_val"; then
1086 { echo "$as_me:1086: error: \`$ac_var' has changed since the previous run:" >&5
1087 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1088 { echo "$as_me:1088: former value: $ac_old_val" >&5
1089 echo "$as_me: former value: $ac_old_val" >&2;}
1090 { echo "$as_me:1090: current value: $ac_new_val" >&5
1091 echo "$as_me: current value: $ac_new_val" >&2;}
1092 ac_cache_corrupted=:
1095 # Pass precious variables to config.status. It doesn't matter if
1096 # we pass some twice (in addition to the command line arguments).
1097 if test "$ac_new_set" = set; then
1099 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1101 ac_configure_args="$ac_configure_args '$ac_arg'"
1103 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1108 if $ac_cache_corrupted; then
1109 { echo "$as_me:1109: error: changes in the environment can compromise the build" >&5
1110 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1111 { { echo "$as_me:1111: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1112 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1113 { (exit 1); exit 1; }; }
1117 ac_cpp='$CPP $CPPFLAGS'
1118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1121 ac_main_return=return
1123 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1124 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1126 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1127 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1129 echo "#! $SHELL" >conftest.sh
1130 echo "exit 0" >>conftest.sh
1131 chmod +x conftest.sh
1132 if { (echo "$as_me:1132: PATH=\".;.\"; conftest.sh") >&5
1133 (PATH=".;."; conftest.sh) 2>&5
1135 echo "$as_me:1135: \$? = $ac_status" >&5
1136 (exit $ac_status); }; then
1137 ac_path_separator=';'
1141 PATH_SEPARATOR="$ac_path_separator"
1144 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1148 echo "$as_me:1148: checking for egrep" >&5
1149 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1150 if test "${ac_cv_prog_egrep+set}" = set; then
1151 echo $ECHO_N "(cached) $ECHO_C" >&6
1153 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1154 then ac_cv_prog_egrep='grep -E'
1155 else ac_cv_prog_egrep='egrep'
1158 echo "$as_me:1158: result: $ac_cv_prog_egrep" >&5
1159 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1160 EGREP=$ac_cv_prog_egrep
1162 test -z "$EGREP" && { { echo "$as_me:1162: error: No egrep program found" >&5
1163 echo "$as_me: error: No egrep program found" >&2;}
1164 { (exit 1); exit 1; }; }
1166 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1167 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1168 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1169 cf_cv_abi_version=${NCURSES_MAJOR}
1170 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1171 cf_cv_timestamp=`date`
1172 echo "$as_me:1172: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1173 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1175 if test -f $srcdir/VERSION ; then
1176 echo "$as_me:1176: checking for package version" >&5
1177 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1179 # if there are not enough fields, cut returns the last one...
1180 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1181 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1182 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1184 # this is how CF_BUNDLED_INTL uses $VERSION:
1185 VERSION="$cf_field1"
1187 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1188 test -z "$VERSION_MAJOR" && { { echo "$as_me:1188: error: missing major-version" >&5
1189 echo "$as_me: error: missing major-version" >&2;}
1190 { (exit 1); exit 1; }; }
1192 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1193 test -z "$VERSION_MINOR" && { { echo "$as_me:1193: error: missing minor-version" >&5
1194 echo "$as_me: error: missing minor-version" >&2;}
1195 { (exit 1); exit 1; }; }
1197 echo "$as_me:1197: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1198 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1200 echo "$as_me:1200: checking for package patch date" >&5
1201 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1202 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1203 case .$VERSION_PATCH in
1205 { { echo "$as_me:1205: error: missing patch-date $VERSION_PATCH" >&5
1206 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1207 { (exit 1); exit 1; }; }
1209 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1212 { { echo "$as_me:1212: error: illegal patch-date $VERSION_PATCH" >&5
1213 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1214 { (exit 1); exit 1; }; }
1217 echo "$as_me:1217: result: $VERSION_PATCH" >&5
1218 echo "${ECHO_T}$VERSION_PATCH" >&6
1220 { { echo "$as_me:1220: error: did not find $srcdir/VERSION" >&5
1221 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1222 { (exit 1); exit 1; }; }
1225 # show the actual data that we have for versions:
1226 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1228 echo "${as_me:-configure}:1228: testing ABI VERSION $VERSION ..." 1>&5
1230 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1232 echo "${as_me:-configure}:1232: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1234 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1236 echo "${as_me:-configure}:1236: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1238 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1240 echo "${as_me:-configure}:1240: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1245 cat >>confdefs.h <<EOF
1246 #define PACKAGE "$PACKAGE"
1249 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1251 cat >>confdefs.h <<EOF
1252 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1255 cat >>confdefs.h <<EOF
1256 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1259 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1261 # Check whether --with-rel-version or --without-rel-version was given.
1262 if test "${with_rel_version+set}" = set; then
1263 withval="$with_rel_version"
1264 { echo "$as_me:1264: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1265 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1266 cf_cv_rel_version=$withval
1269 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1270 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1272 if test -n "$NCURSES_MAJOR" ; then
1273 case $NCURSES_MAJOR in
1277 { { echo "$as_me:1277: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1278 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1279 { (exit 1); exit 1; }; }
1283 { { echo "$as_me:1283: error: Release major-version value is empty" >&5
1284 echo "$as_me: error: Release major-version value is empty" >&2;}
1285 { (exit 1); exit 1; }; }
1288 if test -n "$NCURSES_MINOR" ; then
1289 case $NCURSES_MINOR in
1293 { { echo "$as_me:1293: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1294 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1295 { (exit 1); exit 1; }; }
1299 { { echo "$as_me:1299: error: Release minor-version value is empty" >&5
1300 echo "$as_me: error: Release minor-version value is empty" >&2;}
1301 { (exit 1); exit 1; }; }
1304 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1306 # Check whether --with-abi-version or --without-abi-version was given.
1307 if test "${with_abi_version+set}" = set; then
1308 withval="$with_abi_version"
1310 if test "x$cf_cv_abi_version" != "x$withval"
1312 { echo "$as_me:1312: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1313 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1314 case $cf_cv_rel_version in
1316 cf_cv_rel_version=$withval.0
1319 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1323 cf_cv_abi_version=$withval
1326 if test -n "$cf_cv_abi_version" ; then
1327 case $cf_cv_abi_version in
1331 { { echo "$as_me:1331: error: ABI version is not a number: $cf_cv_abi_version" >&5
1332 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1333 { (exit 1); exit 1; }; }
1337 { { echo "$as_me:1337: error: ABI version value is empty" >&5
1338 echo "$as_me: error: ABI version value is empty" >&2;}
1339 { (exit 1); exit 1; }; }
1342 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1344 case $cf_cv_rel_version in
1346 cf_cv_rel_version=$with_abi_version.0
1352 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1353 if test -f $ac_dir/install-sh; then
1355 ac_install_sh="$ac_aux_dir/install-sh -c"
1357 elif test -f $ac_dir/install.sh; then
1359 ac_install_sh="$ac_aux_dir/install.sh -c"
1361 elif test -f $ac_dir/shtool; then
1363 ac_install_sh="$ac_aux_dir/shtool install -c"
1367 if test -z "$ac_aux_dir"; then
1368 { { echo "$as_me:1368: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1370 { (exit 1); exit 1; }; }
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376 # Make sure we can run config.sub.
1377 $ac_config_sub sun4 >/dev/null 2>&1 ||
1378 { { echo "$as_me:1378: error: cannot run $ac_config_sub" >&5
1379 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1380 { (exit 1); exit 1; }; }
1382 echo "$as_me:1382: checking build system type" >&5
1383 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1384 if test "${ac_cv_build+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 ac_cv_build_alias=$build_alias
1388 test -z "$ac_cv_build_alias" &&
1389 ac_cv_build_alias=`$ac_config_guess`
1390 test -z "$ac_cv_build_alias" &&
1391 { { echo "$as_me:1391: error: cannot guess build type; you must specify one" >&5
1392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1393 { (exit 1); exit 1; }; }
1394 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1395 { { echo "$as_me:1395: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:1400: result: $ac_cv_build" >&5
1401 echo "${ECHO_T}$ac_cv_build" >&6
1403 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$as_me:1407: checking host system type" >&5
1408 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1409 if test "${ac_cv_host+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_cv_host_alias=$host_alias
1413 test -z "$ac_cv_host_alias" &&
1414 ac_cv_host_alias=$ac_cv_build_alias
1415 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1416 { { echo "$as_me:1416: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:1421: result: $ac_cv_host" >&5
1422 echo "${ECHO_T}$ac_cv_host" >&6
1424 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1429 echo "$as_me:1429: checking target system type" >&5
1430 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1431 if test "${ac_cv_target+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 ac_cv_target_alias=$target_alias
1435 test "x$ac_cv_target_alias" = "x" &&
1436 ac_cv_target_alias=$ac_cv_host_alias
1437 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1438 { { echo "$as_me:1438: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1439 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1440 { (exit 1); exit 1; }; }
1443 echo "$as_me:1443: result: $ac_cv_target" >&5
1444 echo "${ECHO_T}$ac_cv_target" >&6
1445 target=$ac_cv_target
1446 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1447 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1448 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 # The aliases save the names the user supplied, while $host etc.
1451 # will get canonicalized.
1452 test -n "$target_alias" &&
1453 test "$program_prefix$program_suffix$program_transform_name" = \
1455 program_prefix=${target_alias}-
1456 system_name="$host_os"
1458 system_name="`(uname -s -r) 2>/dev/null`"
1459 if test -z "$system_name" ; then
1460 system_name="`(hostname) 2>/dev/null`"
1463 test -n "$system_name" &&
1464 cat >>confdefs.h <<EOF
1465 #define SYSTEM_NAME "$system_name"
1468 if test "${cf_cv_system_name+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 cf_cv_system_name="$system_name"
1474 test -z "$system_name" && system_name="$cf_cv_system_name"
1475 test -n "$cf_cv_system_name" && echo "$as_me:1475: result: Configuring for $cf_cv_system_name" >&5
1476 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1478 if test ".$system_name" != ".$cf_cv_system_name" ; then
1479 echo "$as_me:1479: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1480 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1481 { { echo "$as_me:1481: error: \"Please remove config.cache and try again.\"" >&5
1482 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1483 { (exit 1); exit 1; }; }
1486 # Check whether --with-system-type or --without-system-type was given.
1487 if test "${with_system_type+set}" = set; then
1488 withval="$with_system_type"
1489 { echo "$as_me:1489: WARNING: overriding system type to $withval" >&5
1490 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1491 cf_cv_system_name=$withval
1496 ### Save the given $CFLAGS to allow user-override.
1497 cf_user_CFLAGS="$CFLAGS"
1499 ### Default install-location
1501 echo "$as_me:1501: checking for prefix" >&5
1502 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1503 if test "x$prefix" = "xNONE" ; then
1504 case "$cf_cv_system_name" in
1505 # non-vendor systems don't have a conflict
1506 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1509 (*) prefix=$ac_default_prefix
1513 echo "$as_me:1513: result: $prefix" >&5
1514 echo "${ECHO_T}$prefix" >&6
1516 if test "x$prefix" = "xNONE" ; then
1517 echo "$as_me:1517: checking for default include-directory" >&5
1518 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1519 test -n "$verbose" && echo 1>&6
1522 $includedir/ncurses \
1524 $prefix/include/ncurses \
1525 /usr/local/include \
1526 /usr/local/include/ncurses \
1528 /usr/include/ncurses
1530 cf_dir=`eval echo $cf_symbol`
1531 if test -f $cf_dir/curses.h ; then
1532 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1533 includedir="$cf_symbol"
1534 test -n "$verbose" && echo $ac_n " found " 1>&6
1538 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1540 echo "$as_me:1540: result: $includedir" >&5
1541 echo "${ECHO_T}$includedir" >&6
1544 ### Defaults for ncurses ABI
1546 case x$cf_cv_abi_version in
1548 cf_dft_ext_colors=yes
1549 cf_dft_ext_const=yes
1550 cf_dft_ext_mouse=yes
1551 cf_dft_ext_putwin=yes
1552 cf_dft_ext_spfuncs=yes
1553 cf_dft_filter_syms=yes
1554 cf_dft_chtype=uint32_t
1555 cf_dft_mmask_t=uint32_t
1557 cf_dft_tparm_arg=intptr_t
1558 cf_dft_with_lp64=yes
1561 cf_dft_ext_colors=no
1564 cf_dft_ext_putwin=no
1565 cf_dft_ext_spfuncs=no
1566 cf_dft_filter_syms=no
1570 cf_dft_tparm_arg=long
1575 ### Checks for programs.
1577 # Check whether --with-ada or --without-ada was given.
1578 if test "${with_ada+set}" = set; then
1580 cf_with_ada=$withval
1584 if test "x$cf_with_ada" = xyes
1586 cf_PROG_CC="gnatgcc gcc cc"
1592 ac_cpp='$CPP $CPPFLAGS'
1593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1596 ac_main_return=return
1597 if test -n "$ac_tool_prefix"; then
1598 for ac_prog in $cf_PROG_CC
1600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1602 echo "$as_me:1602: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 ac_save_IFS=$IFS; IFS=$ac_path_separator
1612 for ac_dir in $ac_dummy; do
1614 test -z "$ac_dir" && ac_dir=.
1615 $as_executable_p "$ac_dir/$ac_word" || continue
1616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1617 echo "$as_me:1617: found $ac_dir/$ac_word" >&5
1624 if test -n "$CC"; then
1625 echo "$as_me:1625: result: $CC" >&5
1626 echo "${ECHO_T}$CC" >&6
1628 echo "$as_me:1628: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1632 test -n "$CC" && break
1635 if test -z "$CC"; then
1637 for ac_prog in $cf_PROG_CC
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy $ac_prog; ac_word=$2
1641 echo "$as_me:1641: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 if test -n "$ac_ct_CC"; then
1647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1649 ac_save_IFS=$IFS; IFS=$ac_path_separator
1651 for ac_dir in $ac_dummy; do
1653 test -z "$ac_dir" && ac_dir=.
1654 $as_executable_p "$ac_dir/$ac_word" || continue
1655 ac_cv_prog_ac_ct_CC="$ac_prog"
1656 echo "$as_me:1656: found $ac_dir/$ac_word" >&5
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664 echo "$as_me:1664: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1667 echo "$as_me:1667: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1671 test -n "$ac_ct_CC" && break
1677 test -z "$CC" && { { echo "$as_me:1677: error: no acceptable cc found in \$PATH" >&5
1678 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1679 { (exit 1); exit 1; }; }
1681 # Provide some information about the compiler.
1682 echo "$as_me:1682:" \
1683 "checking for C compiler version" >&5
1684 ac_compiler=`set X $ac_compile; echo $2`
1685 { (eval echo "$as_me:1685: \"$ac_compiler --version </dev/null >&5\"") >&5
1686 (eval $ac_compiler --version </dev/null >&5) 2>&5
1688 echo "$as_me:1688: \$? = $ac_status" >&5
1689 (exit $ac_status); }
1690 { (eval echo "$as_me:1690: \"$ac_compiler -v </dev/null >&5\"") >&5
1691 (eval $ac_compiler -v </dev/null >&5) 2>&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }
1695 { (eval echo "$as_me:1695: \"$ac_compiler -V </dev/null >&5\"") >&5
1696 (eval $ac_compiler -V </dev/null >&5) 2>&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); }
1701 cat >conftest.$ac_ext <<_ACEOF
1702 #line 1702 "configure"
1703 #include "confdefs.h"
1713 ac_clean_files_save=$ac_clean_files
1714 ac_clean_files="$ac_clean_files a.out a.exe"
1715 # Try to create an executable without -o first, disregard a.out.
1716 # It will help us diagnose broken compilers, and finding out an intuition
1718 echo "$as_me:1718: checking for C compiler default output" >&5
1719 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1720 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1721 if { (eval echo "$as_me:1721: \"$ac_link_default\"") >&5
1722 (eval $ac_link_default) 2>&5
1724 echo "$as_me:1724: \$? = $ac_status" >&5
1725 (exit $ac_status); }; then
1726 # Find the output, starting from the most likely. This scheme is
1727 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1729 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1730 ls a.out conftest 2>/dev/null;
1731 ls a.* conftest.* 2>/dev/null`; do
1733 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1734 a.out ) # We found the default executable, but exeext='' is most
1737 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1738 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1745 echo "$as_me: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1747 { { echo "$as_me:1747: error: C compiler cannot create executables" >&5
1748 echo "$as_me: error: C compiler cannot create executables" >&2;}
1749 { (exit 77); exit 77; }; }
1752 ac_exeext=$ac_cv_exeext
1753 echo "$as_me:1753: result: $ac_file" >&5
1754 echo "${ECHO_T}$ac_file" >&6
1756 # Check the compiler produces executables we can run. If not, either
1757 # the compiler is broken, or we cross compile.
1758 echo "$as_me:1758: checking whether the C compiler works" >&5
1759 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1760 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1761 # If not cross compiling, check that we can run a simple program.
1762 if test "$cross_compiling" != yes; then
1763 if { ac_try='./$ac_file'
1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }; }; then
1771 if test "$cross_compiling" = maybe; then
1774 { { echo "$as_me:1774: error: cannot run C compiled programs.
1775 If you meant to cross compile, use \`--host'." >&5
1776 echo "$as_me: error: cannot run C compiled programs.
1777 If you meant to cross compile, use \`--host'." >&2;}
1778 { (exit 1); exit 1; }; }
1782 echo "$as_me:1782: result: yes" >&5
1783 echo "${ECHO_T}yes" >&6
1785 rm -f a.out a.exe conftest$ac_cv_exeext
1786 ac_clean_files=$ac_clean_files_save
1787 # Check the compiler produces executables we can run. If not, either
1788 # the compiler is broken, or we cross compile.
1789 echo "$as_me:1789: checking whether we are cross compiling" >&5
1790 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1791 echo "$as_me:1791: result: $cross_compiling" >&5
1792 echo "${ECHO_T}$cross_compiling" >&6
1794 echo "$as_me:1794: checking for executable suffix" >&5
1795 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1796 if { (eval echo "$as_me:1796: \"$ac_link\"") >&5
1797 (eval $ac_link) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); }; then
1801 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1802 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1803 # work properly (i.e., refer to `conftest.exe'), while it won't with
1805 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1808 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 { { echo "$as_me:1815: error: cannot compute EXEEXT: cannot compile and link" >&5
1816 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1817 { (exit 1); exit 1; }; }
1820 rm -f conftest$ac_cv_exeext
1821 echo "$as_me:1821: result: $ac_cv_exeext" >&5
1822 echo "${ECHO_T}$ac_cv_exeext" >&6
1824 rm -f conftest.$ac_ext
1825 EXEEXT=$ac_cv_exeext
1827 echo "$as_me:1827: checking for object suffix" >&5
1828 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1829 if test "${ac_cv_objext+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 cat >conftest.$ac_ext <<_ACEOF
1833 #line 1833 "configure"
1834 #include "confdefs.h"
1844 rm -f conftest.o conftest.obj
1845 if { (eval echo "$as_me:1845: \"$ac_compile\"") >&5
1846 (eval $ac_compile) 2>&5
1848 echo "$as_me:1848: \$? = $ac_status" >&5
1849 (exit $ac_status); }; then
1850 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1852 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1853 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1858 echo "$as_me: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 { { echo "$as_me:1860: error: cannot compute OBJEXT: cannot compile" >&5
1861 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1862 { (exit 1); exit 1; }; }
1865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1867 echo "$as_me:1867: result: $ac_cv_objext" >&5
1868 echo "${ECHO_T}$ac_cv_objext" >&6
1869 OBJEXT=$ac_cv_objext
1871 echo "$as_me:1871: checking whether we are using the GNU C compiler" >&5
1872 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1873 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1891 rm -f conftest.$ac_objext
1892 if { (eval echo "$as_me:1892: \"$ac_compile\"") >&5
1893 (eval $ac_compile) 2>&5
1895 echo "$as_me:1895: \$? = $ac_status" >&5
1896 (exit $ac_status); } &&
1897 { ac_try='test -s conftest.$ac_objext'
1898 { (eval echo "$as_me:1898: \"$ac_try\"") >&5
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); }; }; then
1905 echo "$as_me: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1909 rm -f conftest.$ac_objext conftest.$ac_ext
1910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1913 echo "$as_me:1913: result: $ac_cv_c_compiler_gnu" >&5
1914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1915 GCC=`test $ac_compiler_gnu = yes && echo yes`
1916 ac_test_CFLAGS=${CFLAGS+set}
1917 ac_save_CFLAGS=$CFLAGS
1919 echo "$as_me:1919: checking whether $CC accepts -g" >&5
1920 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1921 if test "${ac_cv_prog_cc_g+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 cat >conftest.$ac_ext <<_ACEOF
1925 #line 1925 "configure"
1926 #include "confdefs.h"
1936 rm -f conftest.$ac_objext
1937 if { (eval echo "$as_me:1937: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1940 echo "$as_me:1940: \$? = $ac_status" >&5
1941 (exit $ac_status); } &&
1942 { ac_try='test -s conftest.$ac_objext'
1943 { (eval echo "$as_me:1943: \"$ac_try\"") >&5
1946 echo "$as_me:1946: \$? = $ac_status" >&5
1947 (exit $ac_status); }; }; then
1950 echo "$as_me: failed program was:" >&5
1951 cat conftest.$ac_ext >&5
1954 rm -f conftest.$ac_objext conftest.$ac_ext
1956 echo "$as_me:1956: result: $ac_cv_prog_cc_g" >&5
1957 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1958 if test "$ac_test_CFLAGS" = set; then
1959 CFLAGS=$ac_save_CFLAGS
1960 elif test $ac_cv_prog_cc_g = yes; then
1961 if test "$GCC" = yes; then
1967 if test "$GCC" = yes; then
1973 # Some people use a C++ compiler to compile C. Since we use `exit',
1974 # in C++ we need to declare it. In case someone uses the same compiler
1975 # for both compiling C and C++ we need to have the C++ compiler decide
1976 # the declaration of exit, since it's the most demanding environment.
1977 cat >conftest.$ac_ext <<_ACEOF
1982 rm -f conftest.$ac_objext
1983 if { (eval echo "$as_me:1983: \"$ac_compile\"") >&5
1984 (eval $ac_compile) 2>&5
1986 echo "$as_me:1986: \$? = $ac_status" >&5
1987 (exit $ac_status); } &&
1988 { ac_try='test -s conftest.$ac_objext'
1989 { (eval echo "$as_me:1989: \"$ac_try\"") >&5
1992 echo "$as_me:1992: \$? = $ac_status" >&5
1993 (exit $ac_status); }; }; then
1994 for ac_declaration in \
1996 '#include <stdlib.h>' \
1997 'extern "C" void std::exit (int) throw (); using std::exit;' \
1998 'extern "C" void std::exit (int); using std::exit;' \
1999 'extern "C" void exit (int) throw ();' \
2000 'extern "C" void exit (int);' \
2003 cat >conftest.$ac_ext <<_ACEOF
2004 #line 2004 "configure"
2005 #include "confdefs.h"
2016 rm -f conftest.$ac_objext
2017 if { (eval echo "$as_me:2017: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>&5
2020 echo "$as_me:2020: \$? = $ac_status" >&5
2021 (exit $ac_status); } &&
2022 { ac_try='test -s conftest.$ac_objext'
2023 { (eval echo "$as_me:2023: \"$ac_try\"") >&5
2026 echo "$as_me:2026: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2030 echo "$as_me: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2034 rm -f conftest.$ac_objext conftest.$ac_ext
2035 cat >conftest.$ac_ext <<_ACEOF
2036 #line 2036 "configure"
2037 #include "confdefs.h"
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:2048: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>&5
2051 echo "$as_me:2051: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try='test -s conftest.$ac_objext'
2054 { (eval echo "$as_me:2054: \"$ac_try\"") >&5
2057 echo "$as_me:2057: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2061 echo "$as_me: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2064 rm -f conftest.$ac_objext conftest.$ac_ext
2067 if test -n "$ac_declaration"; then
2068 echo '#ifdef __cplusplus' >>confdefs.h
2069 echo $ac_declaration >>confdefs.h
2070 echo '#endif' >>confdefs.h
2074 echo "$as_me: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2077 rm -f conftest.$ac_objext conftest.$ac_ext
2079 ac_cpp='$CPP $CPPFLAGS'
2080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083 ac_main_return=return
2086 if test "$GCC" = yes ; then
2087 echo "$as_me:2087: checking version of $CC" >&5
2088 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2089 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.].*//'`"
2090 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2091 echo "$as_me:2091: result: $GCC_VERSION" >&5
2092 echo "${ECHO_T}$GCC_VERSION" >&6
2095 echo "$as_me:2095: checking for $CC option to accept ANSI C" >&5
2096 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_cv_prog_cc_stdc=no
2102 cat >conftest.$ac_ext <<_ACEOF
2103 #line 2103 "configure"
2104 #include "confdefs.h"
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2110 struct buf { int x; };
2111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2112 static char *e (p, i)
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2123 s = g (p, va_arg (v,int));
2127 int test (int i, double x);
2128 struct s1 {int (*f) (int a);};
2129 struct s2 {int (*f) (double a);};
2130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2136 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2141 # Don't try gcc -ansi; that turns off useful extensions and
2142 # breaks some systems' header files.
2143 # AIX -qlanglvl=ansi
2144 # Ultrix and OSF/1 -std1
2145 # HP-UX 10.20 and later -Ae
2146 # HP-UX older versions -Aa -D_HPUX_SOURCE
2147 # SVR4 -Xc -D__EXTENSIONS__
2148 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2150 CC="$ac_save_CC $ac_arg"
2151 rm -f conftest.$ac_objext
2152 if { (eval echo "$as_me:2152: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>&5
2155 echo "$as_me:2155: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:2158: \"$ac_try\"") >&5
2161 echo "$as_me:2161: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 ac_cv_prog_cc_stdc=$ac_arg
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 rm -f conftest.$ac_objext
2171 rm -f conftest.$ac_ext conftest.$ac_objext
2176 case "x$ac_cv_prog_cc_stdc" in
2178 echo "$as_me:2178: result: none needed" >&5
2179 echo "${ECHO_T}none needed" >&6 ;;
2181 echo "$as_me:2181: result: $ac_cv_prog_cc_stdc" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2183 CC="$CC $ac_cv_prog_cc_stdc" ;;
2186 # This should have been defined by AC_PROG_CC
2189 echo "$as_me:2189: checking \$CC variable" >&5
2190 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2193 echo "$as_me:2193: result: broken" >&5
2194 echo "${ECHO_T}broken" >&6
2195 { echo "$as_me:2195: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2196 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2198 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2199 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2201 for cf_arg in $cf_flags
2209 cf_new_extra_cppflags=
2211 for cf_add_cflags in $cf_arg
2213 case $cf_fix_cppflags in
2215 case $cf_add_cflags in
2216 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2217 case $cf_add_cflags in
2219 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2221 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2222 && test -z "${cf_tst_cflags}" \
2223 && cf_fix_cppflags=yes
2225 if test $cf_fix_cppflags = yes ; then
2227 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2228 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2231 elif test "${cf_tst_cflags}" = "\"'" ; then
2233 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2234 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2244 case $cf_add_cflags in
2246 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2248 CPPFLAGS=`echo "$CPPFLAGS" | \
2249 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2250 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2255 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2256 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2263 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2264 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2271 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2272 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2274 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2276 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2277 && test -z "${cf_tst_cflags}" \
2278 && cf_fix_cppflags=no
2283 if test -n "$cf_new_cflags" ; then
2285 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2286 CFLAGS="${CFLAGS}$cf_new_cflags"
2290 if test -n "$cf_new_cppflags" ; then
2292 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2293 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2297 if test -n "$cf_new_extra_cppflags" ; then
2299 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2300 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2310 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2312 echo "${as_me:-configure}:2312: testing resulting CC: '$CC' ..." 1>&5
2314 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2316 echo "${as_me:-configure}:2316: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2318 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2320 echo "${as_me:-configure}:2320: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2324 echo "$as_me:2324: result: ok" >&5
2325 echo "${ECHO_T}ok" >&6
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 ac_main_return=return
2335 echo "$as_me:2335: checking how to run the C preprocessor" >&5
2336 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2337 # On Suns, sometimes $CPP names a directory.
2338 if test -n "$CPP" && test -d "$CPP"; then
2341 if test -z "$CPP"; then
2342 if test "${ac_cv_prog_CPP+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 # Double quotes because CPP needs to be expanded
2346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2349 for ac_c_preproc_warn_flag in '' yes
2351 # Use a header file that comes with gcc, so configuring glibc
2352 # with a fresh cross-compiler works.
2353 # On the NeXT, cc -E runs the code through the compiler's parser,
2354 # not just through cpp. "Syntax error" is here to catch this case.
2355 cat >conftest.$ac_ext <<_ACEOF
2356 #line 2356 "configure"
2357 #include "confdefs.h"
2361 if { (eval echo "$as_me:2361: \"$ac_cpp conftest.$ac_ext\"") >&5
2362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2364 egrep -v '^ *\+' conftest.er1 >conftest.err
2366 cat conftest.err >&5
2367 echo "$as_me:2367: \$? = $ac_status" >&5
2368 (exit $ac_status); } >/dev/null; then
2369 if test -s conftest.err; then
2370 ac_cpp_err=$ac_c_preproc_warn_flag
2377 if test -z "$ac_cpp_err"; then
2380 echo "$as_me: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2382 # Broken: fails on valid input.
2385 rm -f conftest.err conftest.$ac_ext
2387 # OK, works on sane cases. Now check whether non-existent headers
2388 # can be detected and how.
2389 cat >conftest.$ac_ext <<_ACEOF
2390 #line 2390 "configure"
2391 #include "confdefs.h"
2392 #include <ac_nonexistent.h>
2394 if { (eval echo "$as_me:2394: \"$ac_cpp conftest.$ac_ext\"") >&5
2395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2397 egrep -v '^ *\+' conftest.er1 >conftest.err
2399 cat conftest.err >&5
2400 echo "$as_me:2400: \$? = $ac_status" >&5
2401 (exit $ac_status); } >/dev/null; then
2402 if test -s conftest.err; then
2403 ac_cpp_err=$ac_c_preproc_warn_flag
2410 if test -z "$ac_cpp_err"; then
2411 # Broken: success on invalid input.
2414 echo "$as_me: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2416 # Passes both tests.
2420 rm -f conftest.err conftest.$ac_ext
2423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2424 rm -f conftest.err conftest.$ac_ext
2425 if $ac_preproc_ok; then
2437 echo "$as_me:2437: result: $CPP" >&5
2438 echo "${ECHO_T}$CPP" >&6
2440 for ac_c_preproc_warn_flag in '' yes
2442 # Use a header file that comes with gcc, so configuring glibc
2443 # with a fresh cross-compiler works.
2444 # On the NeXT, cc -E runs the code through the compiler's parser,
2445 # not just through cpp. "Syntax error" is here to catch this case.
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line 2447 "configure"
2448 #include "confdefs.h"
2452 if { (eval echo "$as_me:2452: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2455 egrep -v '^ *\+' conftest.er1 >conftest.err
2457 cat conftest.err >&5
2458 echo "$as_me:2458: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2468 if test -z "$ac_cpp_err"; then
2471 echo "$as_me: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2473 # Broken: fails on valid input.
2476 rm -f conftest.err conftest.$ac_ext
2478 # OK, works on sane cases. Now check whether non-existent headers
2479 # can be detected and how.
2480 cat >conftest.$ac_ext <<_ACEOF
2481 #line 2481 "configure"
2482 #include "confdefs.h"
2483 #include <ac_nonexistent.h>
2485 if { (eval echo "$as_me:2485: \"$ac_cpp conftest.$ac_ext\"") >&5
2486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2488 egrep -v '^ *\+' conftest.er1 >conftest.err
2490 cat conftest.err >&5
2491 echo "$as_me:2491: \$? = $ac_status" >&5
2492 (exit $ac_status); } >/dev/null; then
2493 if test -s conftest.err; then
2494 ac_cpp_err=$ac_c_preproc_warn_flag
2501 if test -z "$ac_cpp_err"; then
2502 # Broken: success on invalid input.
2505 echo "$as_me: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2507 # Passes both tests.
2511 rm -f conftest.err conftest.$ac_ext
2514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2515 rm -f conftest.err conftest.$ac_ext
2516 if $ac_preproc_ok; then
2519 { { echo "$as_me:2519: error: C preprocessor \"$CPP\" fails sanity check" >&5
2520 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2521 { (exit 1); exit 1; }; }
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529 ac_main_return=return
2531 if test $ac_cv_c_compiler_gnu = yes; then
2532 echo "$as_me:2532: checking whether $CC needs -traditional" >&5
2533 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2534 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 ac_pattern="Autoconf.*'x'"
2538 cat >conftest.$ac_ext <<_ACEOF
2539 #line 2539 "configure"
2540 #include "confdefs.h"
2542 int Autoconf = TIOCGETP;
2544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2545 egrep "$ac_pattern" >/dev/null 2>&1; then
2546 ac_cv_prog_gcc_traditional=yes
2548 ac_cv_prog_gcc_traditional=no
2552 if test $ac_cv_prog_gcc_traditional = no; then
2553 cat >conftest.$ac_ext <<_ACEOF
2554 #line 2554 "configure"
2555 #include "confdefs.h"
2557 int Autoconf = TCGETA;
2559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2560 egrep "$ac_pattern" >/dev/null 2>&1; then
2561 ac_cv_prog_gcc_traditional=yes
2567 echo "$as_me:2567: result: $ac_cv_prog_gcc_traditional" >&5
2568 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2569 if test $ac_cv_prog_gcc_traditional = yes; then
2570 CC="$CC -traditional"
2574 echo "$as_me:2574: checking whether $CC understands -c and -o together" >&5
2575 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2576 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 cat > conftest.$ac_ext <<CF_EOF
2583 ${cf_cv_main_return:-return}(0);
2586 # We do the test twice because some compilers refuse to overwrite an
2587 # existing .o file with -o, though they will create one.
2588 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2589 if { (eval echo "$as_me:2589: \"$ac_try\"") >&5
2592 echo "$as_me:2592: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 test -f conftest2.$ac_objext && { (eval echo "$as_me:2594: \"$ac_try\"") >&5
2597 echo "$as_me:2597: \$? = $ac_status" >&5
2598 (exit $ac_status); };
2600 eval cf_cv_prog_CC_c_o=yes
2602 eval cf_cv_prog_CC_c_o=no
2607 if test $cf_cv_prog_CC_c_o = yes; then
2608 echo "$as_me:2608: result: yes" >&5
2609 echo "${ECHO_T}yes" >&6
2611 echo "$as_me:2611: result: no" >&5
2612 echo "${ECHO_T}no" >&6
2615 if test "$cross_compiling" = yes ; then
2618 case "$cf_cv_system_name" in
2619 (dragonfly*|mirbsd*|freebsd*)
2620 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2622 (*) LDPATH=$PATH:/sbin:/usr/sbin
2623 # Extract the first word of "ldconfig", so it can be a program name with args.
2624 set dummy ldconfig; ac_word=$2
2625 echo "$as_me:2625: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2627 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2635 ac_save_IFS=$IFS; IFS=$ac_path_separator
2637 for ac_dir in $ac_dummy; do
2639 test -z "$ac_dir" && ac_dir=.
2640 if $as_executable_p "$ac_dir/$ac_word"; then
2641 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2642 echo "$as_me:2642: found $ac_dir/$ac_word" >&5
2650 LDCONFIG=$ac_cv_path_LDCONFIG
2652 if test -n "$LDCONFIG"; then
2653 echo "$as_me:2653: result: $LDCONFIG" >&5
2654 echo "${ECHO_T}$LDCONFIG" >&6
2656 echo "$as_me:2656: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2664 echo "$as_me:2664: checking if you want to ensure bool is consistent with C++" >&5
2665 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2667 # Check whether --with-cxx or --without-cxx was given.
2668 if test "${with_cxx+set}" = set; then
2670 cf_with_cxx=$withval
2674 echo "$as_me:2674: result: $cf_with_cxx" >&5
2675 echo "${ECHO_T}$cf_with_cxx" >&6
2676 if test "X$cf_with_cxx" = Xno ; then
2680 # with autoconf 2.13, we can change the error to a warning:
2682 ac_cpp='$CXXCPP $CPPFLAGS'
2683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2686 ac_main_return=return
2687 if test -n "$ac_tool_prefix"; then
2688 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2692 echo "$as_me:2692: checking for $ac_word" >&5
2693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2694 if test "${ac_cv_prog_CXX+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 if test -n "$CXX"; then
2698 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2700 ac_save_IFS=$IFS; IFS=$ac_path_separator
2702 for ac_dir in $ac_dummy; do
2704 test -z "$ac_dir" && ac_dir=.
2705 $as_executable_p "$ac_dir/$ac_word" || continue
2706 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2707 echo "$as_me:2707: found $ac_dir/$ac_word" >&5
2714 if test -n "$CXX"; then
2715 echo "$as_me:2715: result: $CXX" >&5
2716 echo "${ECHO_T}$CXX" >&6
2718 echo "$as_me:2718: result: no" >&5
2719 echo "${ECHO_T}no" >&6
2722 test -n "$CXX" && break
2725 if test -z "$CXX"; then
2727 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2729 # Extract the first word of "$ac_prog", so it can be a program name with args.
2730 set dummy $ac_prog; ac_word=$2
2731 echo "$as_me:2731: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$ac_ct_CXX"; then
2737 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2739 ac_save_IFS=$IFS; IFS=$ac_path_separator
2741 for ac_dir in $ac_dummy; do
2743 test -z "$ac_dir" && ac_dir=.
2744 $as_executable_p "$ac_dir/$ac_word" || continue
2745 ac_cv_prog_ac_ct_CXX="$ac_prog"
2746 echo "$as_me:2746: found $ac_dir/$ac_word" >&5
2752 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2753 if test -n "$ac_ct_CXX"; then
2754 echo "$as_me:2754: result: $ac_ct_CXX" >&5
2755 echo "${ECHO_T}$ac_ct_CXX" >&6
2757 echo "$as_me:2757: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2761 test -n "$ac_ct_CXX" && break
2763 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2768 # Provide some information about the compiler.
2769 echo "$as_me:2769:" \
2770 "checking for C++ compiler version" >&5
2771 ac_compiler=`set X $ac_compile; echo $2`
2772 { (eval echo "$as_me:2772: \"$ac_compiler --version </dev/null >&5\"") >&5
2773 (eval $ac_compiler --version </dev/null >&5) 2>&5
2775 echo "$as_me:2775: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2777 { (eval echo "$as_me:2777: \"$ac_compiler -v </dev/null >&5\"") >&5
2778 (eval $ac_compiler -v </dev/null >&5) 2>&5
2780 echo "$as_me:2780: \$? = $ac_status" >&5
2781 (exit $ac_status); }
2782 { (eval echo "$as_me:2782: \"$ac_compiler -V </dev/null >&5\"") >&5
2783 (eval $ac_compiler -V </dev/null >&5) 2>&5
2785 echo "$as_me:2785: \$? = $ac_status" >&5
2786 (exit $ac_status); }
2788 echo "$as_me:2788: checking whether we are using the GNU C++ compiler" >&5
2789 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2790 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 cat >conftest.$ac_ext <<_ACEOF
2794 #line 2794 "configure"
2795 #include "confdefs.h"
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:2809: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>&5
2812 echo "$as_me:2812: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -s conftest.$ac_objext'
2815 { (eval echo "$as_me:2815: \"$ac_try\"") >&5
2818 echo "$as_me:2818: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2822 echo "$as_me: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2826 rm -f conftest.$ac_objext conftest.$ac_ext
2827 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2830 echo "$as_me:2830: result: $ac_cv_cxx_compiler_gnu" >&5
2831 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2832 GXX=`test $ac_compiler_gnu = yes && echo yes`
2833 ac_test_CXXFLAGS=${CXXFLAGS+set}
2834 ac_save_CXXFLAGS=$CXXFLAGS
2836 echo "$as_me:2836: checking whether $CXX accepts -g" >&5
2837 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2838 if test "${ac_cv_prog_cxx_g+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 cat >conftest.$ac_ext <<_ACEOF
2842 #line 2842 "configure"
2843 #include "confdefs.h"
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>&5
2857 echo "$as_me:2857: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:2860: \"$ac_try\"") >&5
2863 echo "$as_me:2863: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 ac_cv_prog_cxx_g=yes
2867 echo "$as_me: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2871 rm -f conftest.$ac_objext conftest.$ac_ext
2873 echo "$as_me:2873: result: $ac_cv_prog_cxx_g" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2875 if test "$ac_test_CXXFLAGS" = set; then
2876 CXXFLAGS=$ac_save_CXXFLAGS
2877 elif test $ac_cv_prog_cxx_g = yes; then
2878 if test "$GXX" = yes; then
2884 if test "$GXX" = yes; then
2890 for ac_declaration in \
2892 '#include <stdlib.h>' \
2893 'extern "C" void std::exit (int) throw (); using std::exit;' \
2894 'extern "C" void std::exit (int); using std::exit;' \
2895 'extern "C" void exit (int) throw ();' \
2896 'extern "C" void exit (int);' \
2899 cat >conftest.$ac_ext <<_ACEOF
2900 #line 2900 "configure"
2901 #include "confdefs.h"
2912 rm -f conftest.$ac_objext
2913 if { (eval echo "$as_me:2913: \"$ac_compile\"") >&5
2914 (eval $ac_compile) 2>&5
2916 echo "$as_me:2916: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -s conftest.$ac_objext'
2919 { (eval echo "$as_me:2919: \"$ac_try\"") >&5
2922 echo "$as_me:2922: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2926 echo "$as_me: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2930 rm -f conftest.$ac_objext conftest.$ac_ext
2931 cat >conftest.$ac_ext <<_ACEOF
2932 #line 2932 "configure"
2933 #include "confdefs.h"
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:2944: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>&5
2947 echo "$as_me:2947: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:2950: \"$ac_try\"") >&5
2953 echo "$as_me:2953: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2960 rm -f conftest.$ac_objext conftest.$ac_ext
2963 if test -n "$ac_declaration"; then
2964 echo '#ifdef __cplusplus' >>confdefs.h
2965 echo $ac_declaration >>confdefs.h
2966 echo '#endif' >>confdefs.h
2970 ac_cpp='$CPP $CPPFLAGS'
2971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974 ac_main_return=return
2977 ac_cpp='$CXXCPP $CPPFLAGS'
2978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2981 ac_main_return=return
2983 if test "x$cf_with_cxx" != xno
2985 # Several of the C++ configurations do not work, particularly when
2986 # cross-compiling (20140913 -TD)
2987 echo "$as_me:2987: checking if $CXX works" >&5
2988 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2990 save_CPPFLAGS="$CPPFLAGS"
2991 eval cf_includedir=${includedir}
2992 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2994 cat >conftest.$ac_ext <<_ACEOF
2995 #line 2995 "configure"
2996 #include "confdefs.h"
3005 printf("Hello world!\n")
3011 rm -f conftest.$ac_objext
3012 if { (eval echo "$as_me:3012: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>&5
3015 echo "$as_me:3015: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (eval echo "$as_me:3018: \"$ac_try\"") >&5
3021 echo "$as_me:3021: \$? = $ac_status" >&5
3022 (exit $ac_status); }; }; then
3025 echo "$as_me: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3029 rm -f conftest.$ac_objext conftest.$ac_ext
3030 CPPFLAGS="$save_CPPFLAGS"
3032 echo "$as_me:3032: result: $cf_cxx_works" >&5
3033 echo "${ECHO_T}$cf_cxx_works" >&6
3034 if test "x$cf_cxx_works" = xno
3036 { echo "$as_me:3036: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3037 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3038 cf_with_cxx=no; CXX=""; GXX="";
3042 ac_cpp='$CPP $CPPFLAGS'
3043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3046 ac_main_return=return
3048 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3049 if test "$CXX" = "g++" ; then
3050 # Extract the first word of "g++", so it can be a program name with args.
3051 set dummy g++; ac_word=$2
3052 echo "$as_me:3052: checking for $ac_word" >&5
3053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3054 if test "${ac_cv_path_CXX+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3062 ac_save_IFS=$IFS; IFS=$ac_path_separator
3064 for ac_dir in $ac_dummy; do
3066 test -z "$ac_dir" && ac_dir=.
3067 if $as_executable_p "$ac_dir/$ac_word"; then
3068 ac_cv_path_CXX="$ac_dir/$ac_word"
3069 echo "$as_me:3069: found $ac_dir/$ac_word" >&5
3079 if test -n "$CXX"; then
3080 echo "$as_me:3080: result: $CXX" >&5
3081 echo "${ECHO_T}$CXX" >&6
3083 echo "$as_me:3083: result: no" >&5
3084 echo "${ECHO_T}no" >&6
3090 { echo "$as_me:3090: WARNING: You don't have any C++ compiler, too bad" >&5
3091 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3092 cf_with_cxx=no; CXX=""; GXX="";
3098 if test "$GXX" = yes; then
3099 echo "$as_me:3099: checking version of ${CXX:-g++}" >&5
3100 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3101 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3102 if test -z "$GXX_VERSION"
3107 echo "$as_me:3107: result: $GXX_VERSION" >&5
3108 echo "${ECHO_T}$GXX_VERSION" >&6
3111 case $GXX_VERSION in
3113 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3115 { echo "$as_me:3115: WARNING: templates do not work" >&5
3116 echo "$as_me: WARNING: templates do not work" >&2;}
3120 echo "$as_me:3120: checking if you want to build C++ binding and demo" >&5
3121 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3123 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3124 if test "${with_cxx_binding+set}" = set; then
3125 withval="$with_cxx_binding"
3126 cf_with_cxx_binding=$withval
3128 cf_with_cxx_binding=$cf_with_cxx
3130 echo "$as_me:3130: result: $cf_with_cxx_binding" >&5
3131 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3133 echo "$as_me:3133: checking if you want to build with Ada95" >&5
3134 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3135 echo "$as_me:3135: result: $cf_with_ada" >&5
3136 echo "${ECHO_T}$cf_with_ada" >&6
3138 echo "$as_me:3138: checking if you want to install terminal database" >&5
3139 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3141 # Check whether --enable-db-install or --disable-db-install was given.
3142 if test "${enable_db_install+set}" = set; then
3143 enableval="$enable_db_install"
3144 cf_with_db_install=$enableval
3146 cf_with_db_install=yes
3148 echo "$as_me:3148: result: $cf_with_db_install" >&5
3149 echo "${ECHO_T}$cf_with_db_install" >&6
3151 echo "$as_me:3151: checking if you want to install manpages" >&5
3152 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3154 # Check whether --with-manpages or --without-manpages was given.
3155 if test "${with_manpages+set}" = set; then
3156 withval="$with_manpages"
3157 cf_with_manpages=$withval
3159 cf_with_manpages=yes
3161 echo "$as_me:3161: result: $cf_with_manpages" >&5
3162 echo "${ECHO_T}$cf_with_manpages" >&6
3164 echo "$as_me:3164: checking if you want to build programs such as tic" >&5
3165 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3167 # Check whether --with-progs or --without-progs was given.
3168 if test "${with_progs+set}" = set; then
3169 withval="$with_progs"
3170 cf_with_progs=$withval
3174 echo "$as_me:3174: result: $cf_with_progs" >&5
3175 echo "${ECHO_T}$cf_with_progs" >&6
3177 if test -f $srcdir/tack/tack.h; then
3178 if test "x$cross_compiling" = xyes ; then
3179 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3181 echo "${as_me:-configure}:3181: testing ignoring tack because we are cross-compiling ..." 1>&5
3185 echo "$as_me:3185: checking if you want to build the tack program" >&5
3186 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3188 # Check whether --with-tack or --without-tack was given.
3189 if test "${with_tack+set}" = set; then
3190 withval="$with_tack"
3191 cf_with_tack=$withval
3193 cf_with_tack=$cf_with_progs
3195 echo "$as_me:3195: result: $cf_with_tack" >&5
3196 echo "${ECHO_T}$cf_with_tack" >&6
3202 echo "$as_me:3202: checking if you want to build test-programs" >&5
3203 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3205 # Check whether --with-tests or --without-tests was given.
3206 if test "${with_tests+set}" = set; then
3207 withval="$with_tests"
3208 cf_with_tests=$withval
3212 echo "$as_me:3212: result: $cf_with_tests" >&5
3213 echo "${ECHO_T}$cf_with_tests" >&6
3215 echo "$as_me:3215: checking if you wish to install curses.h" >&5
3216 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3218 # Check whether --with-curses-h or --without-curses-h was given.
3219 if test "${with_curses_h+set}" = set; then
3220 withval="$with_curses_h"
3221 with_curses_h=$withval
3225 echo "$as_me:3225: result: $with_curses_h" >&5
3226 echo "${ECHO_T}$with_curses_h" >&6
3228 modules_to_build="ncurses"
3229 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3230 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3231 modules_to_build="$modules_to_build panel menu form"
3233 test "$program_prefix" != NONE &&
3234 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3235 # Use a double $ so make ignores it.
3236 test "$program_suffix" != NONE &&
3237 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3238 # Double any \ or $. echo might interpret backslashes.
3239 # By default was `s,x,x', remove it if useless.
3240 cat <<\_ACEOF >conftest.sed
3241 s/[\\$]/&&/g;s/;s,x,x,$//
3243 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3246 for ac_prog in mawk gawk nawk awk
3248 # Extract the first word of "$ac_prog", so it can be a program name with args.
3249 set dummy $ac_prog; ac_word=$2
3250 echo "$as_me:3250: checking for $ac_word" >&5
3251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3252 if test "${ac_cv_prog_AWK+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 if test -n "$AWK"; then
3256 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3258 ac_save_IFS=$IFS; IFS=$ac_path_separator
3260 for ac_dir in $ac_dummy; do
3262 test -z "$ac_dir" && ac_dir=.
3263 $as_executable_p "$ac_dir/$ac_word" || continue
3264 ac_cv_prog_AWK="$ac_prog"
3265 echo "$as_me:3265: found $ac_dir/$ac_word" >&5
3272 if test -n "$AWK"; then
3273 echo "$as_me:3273: result: $AWK" >&5
3274 echo "${ECHO_T}$AWK" >&6
3276 echo "$as_me:3276: result: no" >&5
3277 echo "${ECHO_T}no" >&6
3280 test -n "$AWK" && break
3283 test -z "$AWK" && { { echo "$as_me:3283: error: No awk program found" >&5
3284 echo "$as_me: error: No awk program found" >&2;}
3285 { (exit 1); exit 1; }; }
3287 echo "$as_me:3287: checking for egrep" >&5
3288 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3289 if test "${ac_cv_prog_egrep+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3293 then ac_cv_prog_egrep='grep -E'
3294 else ac_cv_prog_egrep='egrep'
3297 echo "$as_me:3297: result: $ac_cv_prog_egrep" >&5
3298 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3299 EGREP=$ac_cv_prog_egrep
3301 test -z "$EGREP" && { { echo "$as_me:3301: error: No egrep program found" >&5
3302 echo "$as_me: error: No egrep program found" >&2;}
3303 { (exit 1); exit 1; }; }
3305 # Find a good install program. We prefer a C program (faster),
3306 # so one script is as good as another. But avoid the broken or
3307 # incompatible versions:
3308 # SysV /etc/install, /usr/sbin/install
3309 # SunOS /usr/etc/install
3310 # IRIX /sbin/install
3312 # AmigaOS /C/install, which installs bootblocks on floppy discs
3313 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3314 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3315 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3316 # ./install, which can be erroneously created by make from ./install.sh.
3317 echo "$as_me:3317: checking for a BSD compatible install" >&5
3318 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3319 if test -z "$INSTALL"; then
3320 if test "${ac_cv_path_install+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 ac_save_IFS=$IFS; IFS=$ac_path_separator
3324 for ac_dir in $PATH; do
3326 # Account for people who put trailing slashes in PATH elements.
3328 / | ./ | .// | /cC/* \
3329 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3332 # OSF1 and SCO ODT 3.0 have their own names for install.
3333 # Don't use installbsd from OSF since it installs stuff as root
3335 for ac_prog in ginstall scoinst install; do
3336 if $as_executable_p "$ac_dir/$ac_prog"; then
3337 if test $ac_prog = install &&
3338 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3339 # AIX install. It has an incompatible calling convention.
3341 elif test $ac_prog = install &&
3342 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3343 # program-specific install script used by HP pwplus--don't use.
3346 ac_cv_path_install="$ac_dir/$ac_prog -c"
3356 if test "${ac_cv_path_install+set}" = set; then
3357 INSTALL=$ac_cv_path_install
3359 # As a last resort, use the slow shell script. We don't cache a
3360 # path for INSTALL within a source directory, because that will
3361 # break other packages using the cache if that directory is
3362 # removed, or if the path is relative.
3363 INSTALL=$ac_install_sh
3366 echo "$as_me:3366: result: $INSTALL" >&5
3367 echo "${ECHO_T}$INSTALL" >&6
3369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3370 # It thinks the first close brace ends the variable substitution.
3371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3375 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3381 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3382 test -z "$cf_dir" && cf_dir=.
3383 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3387 for ac_prog in lint cppcheck splint
3389 # Extract the first word of "$ac_prog", so it can be a program name with args.
3390 set dummy $ac_prog; ac_word=$2
3391 echo "$as_me:3391: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_LINT+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$LINT"; then
3397 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3399 ac_save_IFS=$IFS; IFS=$ac_path_separator
3401 for ac_dir in $ac_dummy; do
3403 test -z "$ac_dir" && ac_dir=.
3404 $as_executable_p "$ac_dir/$ac_word" || continue
3405 ac_cv_prog_LINT="$ac_prog"
3406 echo "$as_me:3406: found $ac_dir/$ac_word" >&5
3412 LINT=$ac_cv_prog_LINT
3413 if test -n "$LINT"; then
3414 echo "$as_me:3414: result: $LINT" >&5
3415 echo "${ECHO_T}$LINT" >&6
3417 echo "$as_me:3417: result: no" >&5
3418 echo "${ECHO_T}no" >&6
3421 test -n "$LINT" && break
3424 echo "$as_me:3424: checking whether ln -s works" >&5
3425 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3427 if test "$LN_S" = "ln -s"; then
3428 echo "$as_me:3428: result: yes" >&5
3429 echo "${ECHO_T}yes" >&6
3431 echo "$as_me:3431: result: no, using $LN_S" >&5
3432 echo "${ECHO_T}no, using $LN_S" >&6
3435 echo "$as_me:3435: checking if $LN_S -f options work" >&5
3436 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3438 rm -f conf$$.src conf$$dst
3440 echo first >conf$$.src
3441 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3446 rm -f conf$$.dst conf$$src
3447 echo "$as_me:3447: result: $cf_prog_ln_sf" >&5
3448 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3450 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3452 echo "$as_me:3452: checking for long file names" >&5
3453 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3454 if test "${ac_cv_sys_long_file_names+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 ac_cv_sys_long_file_names=yes
3458 # Test for long file names in all the places we know might matter:
3459 # . the current directory, where building will happen
3460 # $prefix/lib where we will be installing things
3461 # $exec_prefix/lib likewise
3462 # eval it to expand exec_prefix.
3463 # $TMPDIR if set, where it might want to write temporary files
3464 # if $TMPDIR is not set:
3465 # /tmp where it might want to write temporary files
3468 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3471 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3473 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3474 test -d $ac_dir || continue
3475 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3476 ac_xdir=$ac_dir/cf$$
3477 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3478 ac_tf1=$ac_xdir/conftest9012345
3479 ac_tf2=$ac_xdir/conftest9012346
3480 (echo 1 >$ac_tf1) 2>/dev/null
3481 (echo 2 >$ac_tf2) 2>/dev/null
3482 ac_val=`cat $ac_tf1 2>/dev/null`
3483 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3484 ac_cv_sys_long_file_names=no
3485 rm -rf $ac_xdir 2>/dev/null
3488 rm -rf $ac_xdir 2>/dev/null
3491 echo "$as_me:3491: result: $ac_cv_sys_long_file_names" >&5
3492 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3493 if test $ac_cv_sys_long_file_names = yes; then
3495 cat >>confdefs.h <<\EOF
3496 #define HAVE_LONG_FILE_NAMES 1
3501 # if we find pkg-config, check if we should install the ".pc" files.
3503 echo "$as_me:3503: checking if you want to use pkg-config" >&5
3504 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3506 # Check whether --with-pkg-config or --without-pkg-config was given.
3507 if test "${with_pkg_config+set}" = set; then
3508 withval="$with_pkg_config"
3509 cf_pkg_config=$withval
3513 echo "$as_me:3513: result: $cf_pkg_config" >&5
3514 echo "${ECHO_T}$cf_pkg_config" >&6
3516 case $cf_pkg_config in
3522 if test -n "$ac_tool_prefix"; then
3523 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3524 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3525 echo "$as_me:3525: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3535 ac_save_IFS=$IFS; IFS=$ac_path_separator
3537 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 if $as_executable_p "$ac_dir/$ac_word"; then
3541 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3542 echo "$as_me:3542: found $ac_dir/$ac_word" >&5
3550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3552 if test -n "$PKG_CONFIG"; then
3553 echo "$as_me:3553: result: $PKG_CONFIG" >&5
3554 echo "${ECHO_T}$PKG_CONFIG" >&6
3556 echo "$as_me:3556: result: no" >&5
3557 echo "${ECHO_T}no" >&6
3561 if test -z "$ac_cv_path_PKG_CONFIG"; then
3562 ac_pt_PKG_CONFIG=$PKG_CONFIG
3563 # Extract the first word of "pkg-config", so it can be a program name with args.
3564 set dummy pkg-config; ac_word=$2
3565 echo "$as_me:3565: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 case $ac_pt_PKG_CONFIG in
3572 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3575 ac_save_IFS=$IFS; IFS=$ac_path_separator
3577 for ac_dir in $ac_dummy; do
3579 test -z "$ac_dir" && ac_dir=.
3580 if $as_executable_p "$ac_dir/$ac_word"; then
3581 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3582 echo "$as_me:3582: found $ac_dir/$ac_word" >&5
3587 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3591 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3593 if test -n "$ac_pt_PKG_CONFIG"; then
3594 echo "$as_me:3594: result: $ac_pt_PKG_CONFIG" >&5
3595 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3597 echo "$as_me:3597: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3601 PKG_CONFIG=$ac_pt_PKG_CONFIG
3603 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3612 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3613 if test "$PKG_CONFIG" != none ; then
3615 if test "x$prefix" != xNONE; then
3616 cf_path_syntax="$prefix"
3618 cf_path_syntax="$ac_default_prefix"
3621 case ".$PKG_CONFIG" in
3626 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3628 (.\${*prefix}*|.\${*dir}*)
3629 eval PKG_CONFIG="$PKG_CONFIG"
3630 case ".$PKG_CONFIG" in
3632 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3637 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3640 { { echo "$as_me:3640: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3641 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3642 { (exit 1); exit 1; }; }
3646 elif test "x$cf_pkg_config" != xno ; then
3647 { echo "$as_me:3647: WARNING: pkg-config is not installed" >&5
3648 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3653 echo "$as_me:3653: checking for pkg-config library directory" >&5
3654 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3657 echo "$as_me:3657: checking for $PKG_CONFIG library directory" >&5
3658 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3662 PKG_CONFIG_LIBDIR=no
3664 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3665 if test "${with_pkg_config_libdir+set}" = set; then
3666 withval="$with_pkg_config_libdir"
3667 PKG_CONFIG_LIBDIR=$withval
3669 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3672 case x$PKG_CONFIG_LIBDIR in
3676 # Look for the library directory using the same prefix as the executable
3677 if test "x$PKG_CONFIG" = xnone
3681 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3684 # If you don't like using the default architecture, you have to specify the
3685 # intended library directory and corresponding compiler/linker options.
3687 # This case allows for Debian's 2014-flavor of multiarch, along with the
3688 # most common variations before that point. Some other variants spell the
3689 # directory differently, e.g., "pkg-config", and put it in unusual places.
3690 # pkg-config has always been poorly standardized, which is ironic...
3691 case x`(arch) 2>/dev/null` in
3694 $cf_path/lib/*64-linux-gnu \
3702 $cf_path/lib/*-linux-gnu \
3710 test -n "$verbose" && echo " list..." 1>&6
3712 echo "${as_me:-configure}:3712: testing list... ..." 1>&5
3714 for cf_config in $cf_search_path
3716 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3718 echo "${as_me:-configure}:3718: testing checking $cf_config/pkgconfig ..." 1>&5
3720 if test -d $cf_config/pkgconfig
3722 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3723 echo "$as_me:3723: checking done" >&5
3724 echo $ECHO_N "checking done... $ECHO_C" >&6
3733 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3734 echo "$as_me:3734: result: $PKG_CONFIG_LIBDIR" >&5
3735 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3738 if test "x$PKG_CONFIG" != xnone
3740 echo "$as_me:3740: checking if we should install .pc files for $PKG_CONFIG" >&5
3741 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3743 echo "$as_me:3743: checking if we should install .pc files" >&5
3744 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3747 # Check whether --enable-pc-files or --disable-pc-files was given.
3748 if test "${enable_pc_files+set}" = set; then
3749 enableval="$enable_pc_files"
3750 enable_pc_files=$enableval
3754 echo "$as_me:3754: result: $enable_pc_files" >&5
3755 echo "${ECHO_T}$enable_pc_files" >&6
3757 if test "x$enable_pc_files" != xno
3760 case "x$PKG_CONFIG_LIBDIR" in
3762 { echo "$as_me:3762: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3763 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3767 if test "x$prefix" != xNONE; then
3768 cf_path_syntax="$prefix"
3770 cf_path_syntax="$ac_default_prefix"
3773 case ".$PKG_CONFIG_LIBDIR" in
3778 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3780 (.\${*prefix}*|.\${*dir}*)
3781 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3782 case ".$PKG_CONFIG_LIBDIR" in
3784 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3789 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3792 { { echo "$as_me:3792: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3793 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3794 { (exit 1); exit 1; }; }
3804 if test -z "$MAKE_PC_FILES"
3806 echo "$as_me:3806: checking for suffix to add to pc-files" >&5
3807 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3809 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3810 if test "${with_pc_suffix+set}" = set; then
3811 withval="$with_pc_suffix"
3816 (*) PC_MODULE_SUFFIX="$withval"
3820 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3821 echo "$as_me:3821: result: $PC_MODULE_SUFFIX" >&5
3822 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3823 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3827 echo "$as_me:3827: checking if we should assume mixed-case filenames" >&5
3828 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3830 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3831 if test "${enable_mixed_case+set}" = set; then
3832 enableval="$enable_mixed_case"
3833 enable_mixedcase=$enableval
3835 enable_mixedcase=auto
3837 echo "$as_me:3837: result: $enable_mixedcase" >&5
3838 echo "${ECHO_T}$enable_mixedcase" >&6
3839 if test "$enable_mixedcase" = "auto" ; then
3841 echo "$as_me:3841: checking if filesystem supports mixed-case filenames" >&5
3842 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3843 if test "${cf_cv_mixedcase+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 if test "$cross_compiling" = yes ; then
3848 case $target_alias in
3849 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3857 rm -f conftest CONFTEST
3859 if test -f CONFTEST ; then
3864 rm -f conftest CONFTEST
3868 echo "$as_me:3868: result: $cf_cv_mixedcase" >&5
3869 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3870 test "$cf_cv_mixedcase" = yes &&
3871 cat >>confdefs.h <<\EOF
3872 #define MIXEDCASE_FILENAMES 1
3876 cf_cv_mixedcase=$enable_mixedcase
3877 if test "x$enable_mixedcase" = "xyes" ; then
3879 cat >>confdefs.h <<\EOF
3880 #define MIXEDCASE_FILENAMES 1
3886 # do this after mixed-case option (tags/TAGS is not as important as tic).
3887 echo "$as_me:3887: checking whether ${MAKE-make} sets \${MAKE}" >&5
3888 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3889 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3890 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 cat >conftest.make <<\EOF
3895 @echo 'ac_maketemp="${MAKE}"'
3897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3898 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3899 if test -n "$ac_maketemp"; then
3900 eval ac_cv_prog_make_${ac_make}_set=yes
3902 eval ac_cv_prog_make_${ac_make}_set=no
3906 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3907 echo "$as_me:3907: result: yes" >&5
3908 echo "${ECHO_T}yes" >&6
3911 echo "$as_me:3911: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3913 SET_MAKE="MAKE=${MAKE-make}"
3916 for ac_prog in exctags ctags
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:3920: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CTAGS+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 if test -n "$CTAGS"; then
3926 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3928 ac_save_IFS=$IFS; IFS=$ac_path_separator
3930 for ac_dir in $ac_dummy; do
3932 test -z "$ac_dir" && ac_dir=.
3933 $as_executable_p "$ac_dir/$ac_word" || continue
3934 ac_cv_prog_CTAGS="$ac_prog"
3935 echo "$as_me:3935: found $ac_dir/$ac_word" >&5
3941 CTAGS=$ac_cv_prog_CTAGS
3942 if test -n "$CTAGS"; then
3943 echo "$as_me:3943: result: $CTAGS" >&5
3944 echo "${ECHO_T}$CTAGS" >&6
3946 echo "$as_me:3946: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3950 test -n "$CTAGS" && break
3953 for ac_prog in exetags etags
3955 # Extract the first word of "$ac_prog", so it can be a program name with args.
3956 set dummy $ac_prog; ac_word=$2
3957 echo "$as_me:3957: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_ETAGS+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if test -n "$ETAGS"; then
3963 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3965 ac_save_IFS=$IFS; IFS=$ac_path_separator
3967 for ac_dir in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir=.
3970 $as_executable_p "$ac_dir/$ac_word" || continue
3971 ac_cv_prog_ETAGS="$ac_prog"
3972 echo "$as_me:3972: found $ac_dir/$ac_word" >&5
3978 ETAGS=$ac_cv_prog_ETAGS
3979 if test -n "$ETAGS"; then
3980 echo "$as_me:3980: result: $ETAGS" >&5
3981 echo "${ECHO_T}$ETAGS" >&6
3983 echo "$as_me:3983: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3987 test -n "$ETAGS" && break
3990 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3991 set dummy ${CTAGS:-ctags}; ac_word=$2
3992 echo "$as_me:3992: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 if test -n "$MAKE_LOWER_TAGS"; then
3998 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4000 ac_save_IFS=$IFS; IFS=$ac_path_separator
4002 for ac_dir in $ac_dummy; do
4004 test -z "$ac_dir" && ac_dir=.
4005 $as_executable_p "$ac_dir/$ac_word" || continue
4006 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4007 echo "$as_me:4007: found $ac_dir/$ac_word" >&5
4011 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4014 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4015 if test -n "$MAKE_LOWER_TAGS"; then
4016 echo "$as_me:4016: result: $MAKE_LOWER_TAGS" >&5
4017 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4019 echo "$as_me:4019: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4023 if test "$cf_cv_mixedcase" = yes ; then
4024 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4025 set dummy ${ETAGS:-etags}; ac_word=$2
4026 echo "$as_me:4026: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 if test -n "$MAKE_UPPER_TAGS"; then
4032 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4034 ac_save_IFS=$IFS; IFS=$ac_path_separator
4036 for ac_dir in $ac_dummy; do
4038 test -z "$ac_dir" && ac_dir=.
4039 $as_executable_p "$ac_dir/$ac_word" || continue
4040 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4041 echo "$as_me:4041: found $ac_dir/$ac_word" >&5
4045 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4048 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4049 if test -n "$MAKE_UPPER_TAGS"; then
4050 echo "$as_me:4050: result: $MAKE_UPPER_TAGS" >&5
4051 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4053 echo "$as_me:4053: result: no" >&5
4054 echo "${ECHO_T}no" >&6
4061 if test "$MAKE_UPPER_TAGS" = yes ; then
4067 if test "$MAKE_LOWER_TAGS" = yes ; then
4073 echo "$as_me:4073: checking for makeflags variable" >&5
4074 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4075 if test "${cf_cv_makeflags+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4082 cat >cf_makeflags.tmp <<CF_EOF
4085 @ echo '.$cf_option'
4087 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4088 case "$cf_result" in
4090 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4091 case "$cf_result" in
4092 (.*CC=*) cf_cv_makeflags=
4094 (*) cf_cv_makeflags=$cf_option
4100 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4104 rm -f cf_makeflags.tmp
4107 echo "$as_me:4107: result: $cf_cv_makeflags" >&5
4108 echo "${ECHO_T}$cf_cv_makeflags" >&6
4110 if test -n "$ac_tool_prefix"; then
4111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4112 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4113 echo "$as_me:4113: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_RANLIB+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -n "$RANLIB"; then
4119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4121 ac_save_IFS=$IFS; IFS=$ac_path_separator
4123 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 $as_executable_p "$ac_dir/$ac_word" || continue
4127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4128 echo "$as_me:4128: found $ac_dir/$ac_word" >&5
4134 RANLIB=$ac_cv_prog_RANLIB
4135 if test -n "$RANLIB"; then
4136 echo "$as_me:4136: result: $RANLIB" >&5
4137 echo "${ECHO_T}$RANLIB" >&6
4139 echo "$as_me:4139: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4144 if test -z "$ac_cv_prog_RANLIB"; then
4145 ac_ct_RANLIB=$RANLIB
4146 # Extract the first word of "ranlib", so it can be a program name with args.
4147 set dummy ranlib; ac_word=$2
4148 echo "$as_me:4148: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$ac_ct_RANLIB"; then
4154 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4156 ac_save_IFS=$IFS; IFS=$ac_path_separator
4158 for ac_dir in $ac_dummy; do
4160 test -z "$ac_dir" && ac_dir=.
4161 $as_executable_p "$ac_dir/$ac_word" || continue
4162 ac_cv_prog_ac_ct_RANLIB="ranlib"
4163 echo "$as_me:4163: found $ac_dir/$ac_word" >&5
4167 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4170 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4171 if test -n "$ac_ct_RANLIB"; then
4172 echo "$as_me:4172: result: $ac_ct_RANLIB" >&5
4173 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4175 echo "$as_me:4175: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4179 RANLIB=$ac_ct_RANLIB
4181 RANLIB="$ac_cv_prog_RANLIB"
4184 if test -n "$ac_tool_prefix"; then
4185 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4186 set dummy ${ac_tool_prefix}ld; ac_word=$2
4187 echo "$as_me:4187: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_LD+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 if test -n "$LD"; then
4193 ac_cv_prog_LD="$LD" # Let the user override the test.
4195 ac_save_IFS=$IFS; IFS=$ac_path_separator
4197 for ac_dir in $ac_dummy; do
4199 test -z "$ac_dir" && ac_dir=.
4200 $as_executable_p "$ac_dir/$ac_word" || continue
4201 ac_cv_prog_LD="${ac_tool_prefix}ld"
4202 echo "$as_me:4202: found $ac_dir/$ac_word" >&5
4209 if test -n "$LD"; then
4210 echo "$as_me:4210: result: $LD" >&5
4211 echo "${ECHO_T}$LD" >&6
4213 echo "$as_me:4213: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4218 if test -z "$ac_cv_prog_LD"; then
4220 # Extract the first word of "ld", so it can be a program name with args.
4221 set dummy ld; ac_word=$2
4222 echo "$as_me:4222: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -n "$ac_ct_LD"; then
4228 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4230 ac_save_IFS=$IFS; IFS=$ac_path_separator
4232 for ac_dir in $ac_dummy; do
4234 test -z "$ac_dir" && ac_dir=.
4235 $as_executable_p "$ac_dir/$ac_word" || continue
4236 ac_cv_prog_ac_ct_LD="ld"
4237 echo "$as_me:4237: found $ac_dir/$ac_word" >&5
4241 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4244 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4245 if test -n "$ac_ct_LD"; then
4246 echo "$as_me:4246: result: $ac_ct_LD" >&5
4247 echo "${ECHO_T}$ac_ct_LD" >&6
4249 echo "$as_me:4249: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4258 if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4260 set dummy ${ac_tool_prefix}ar; ac_word=$2
4261 echo "$as_me:4261: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_AR+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test -n "$AR"; then
4267 ac_cv_prog_AR="$AR" # Let the user override the test.
4269 ac_save_IFS=$IFS; IFS=$ac_path_separator
4271 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 $as_executable_p "$ac_dir/$ac_word" || continue
4275 ac_cv_prog_AR="${ac_tool_prefix}ar"
4276 echo "$as_me:4276: found $ac_dir/$ac_word" >&5
4283 if test -n "$AR"; then
4284 echo "$as_me:4284: result: $AR" >&5
4285 echo "${ECHO_T}$AR" >&6
4287 echo "$as_me:4287: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4292 if test -z "$ac_cv_prog_AR"; then
4294 # Extract the first word of "ar", so it can be a program name with args.
4295 set dummy ar; ac_word=$2
4296 echo "$as_me:4296: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$ac_ct_AR"; then
4302 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4304 ac_save_IFS=$IFS; IFS=$ac_path_separator
4306 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 $as_executable_p "$ac_dir/$ac_word" || continue
4310 ac_cv_prog_ac_ct_AR="ar"
4311 echo "$as_me:4311: found $ac_dir/$ac_word" >&5
4315 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4318 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4319 if test -n "$ac_ct_AR"; then
4320 echo "$as_me:4320: result: $ac_ct_AR" >&5
4321 echo "${ECHO_T}$ac_ct_AR" >&6
4323 echo "$as_me:4323: result: no" >&5
4324 echo "${ECHO_T}no" >&6
4332 if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}nm; ac_word=$2
4335 echo "$as_me:4335: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if test "${ac_cv_prog_NM+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 if test -n "$NM"; then
4341 ac_cv_prog_NM="$NM" # Let the user override the test.
4343 ac_save_IFS=$IFS; IFS=$ac_path_separator
4345 for ac_dir in $ac_dummy; do
4347 test -z "$ac_dir" && ac_dir=.
4348 $as_executable_p "$ac_dir/$ac_word" || continue
4349 ac_cv_prog_NM="${ac_tool_prefix}nm"
4350 echo "$as_me:4350: found $ac_dir/$ac_word" >&5
4357 if test -n "$NM"; then
4358 echo "$as_me:4358: result: $NM" >&5
4359 echo "${ECHO_T}$NM" >&6
4361 echo "$as_me:4361: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4366 if test -z "$ac_cv_prog_NM"; then
4368 # Extract the first word of "nm", so it can be a program name with args.
4369 set dummy nm; ac_word=$2
4370 echo "$as_me:4370: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4372 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 if test -n "$ac_ct_NM"; then
4376 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4378 ac_save_IFS=$IFS; IFS=$ac_path_separator
4380 for ac_dir in $ac_dummy; do
4382 test -z "$ac_dir" && ac_dir=.
4383 $as_executable_p "$ac_dir/$ac_word" || continue
4384 ac_cv_prog_ac_ct_NM="nm"
4385 echo "$as_me:4385: found $ac_dir/$ac_word" >&5
4389 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4392 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4393 if test -n "$ac_ct_NM"; then
4394 echo "$as_me:4394: result: $ac_ct_NM" >&5
4395 echo "${ECHO_T}$ac_ct_NM" >&6
4397 echo "$as_me:4397: result: no" >&5
4398 echo "${ECHO_T}no" >&6
4406 if test -n "$ac_tool_prefix"; then
4407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4408 set dummy ${ac_tool_prefix}ar; ac_word=$2
4409 echo "$as_me:4409: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4411 if test "${ac_cv_prog_AR+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 if test -n "$AR"; then
4415 ac_cv_prog_AR="$AR" # Let the user override the test.
4417 ac_save_IFS=$IFS; IFS=$ac_path_separator
4419 for ac_dir in $ac_dummy; do
4421 test -z "$ac_dir" && ac_dir=.
4422 $as_executable_p "$ac_dir/$ac_word" || continue
4423 ac_cv_prog_AR="${ac_tool_prefix}ar"
4424 echo "$as_me:4424: found $ac_dir/$ac_word" >&5
4431 if test -n "$AR"; then
4432 echo "$as_me:4432: result: $AR" >&5
4433 echo "${ECHO_T}$AR" >&6
4435 echo "$as_me:4435: result: no" >&5
4436 echo "${ECHO_T}no" >&6
4440 if test -z "$ac_cv_prog_AR"; then
4442 # Extract the first word of "ar", so it can be a program name with args.
4443 set dummy ar; ac_word=$2
4444 echo "$as_me:4444: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4446 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 if test -n "$ac_ct_AR"; then
4450 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4452 ac_save_IFS=$IFS; IFS=$ac_path_separator
4454 for ac_dir in $ac_dummy; do
4456 test -z "$ac_dir" && ac_dir=.
4457 $as_executable_p "$ac_dir/$ac_word" || continue
4458 ac_cv_prog_ac_ct_AR="ar"
4459 echo "$as_me:4459: found $ac_dir/$ac_word" >&5
4463 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4466 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4467 if test -n "$ac_ct_AR"; then
4468 echo "$as_me:4468: result: $ac_ct_AR" >&5
4469 echo "${ECHO_T}$ac_ct_AR" >&6
4471 echo "$as_me:4471: result: no" >&5
4472 echo "${ECHO_T}no" >&6
4480 echo "$as_me:4480: checking for options to update archives" >&5
4481 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4482 if test "${cf_cv_ar_flags+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 cf_cv_ar_flags=unknown
4487 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4490 # check if $ARFLAGS already contains this choice
4491 if test "x$ARFLAGS" != "x" ; then
4492 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4493 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4499 rm -f conftest.$ac_cv_objext
4502 cat >conftest.$ac_ext <<EOF
4503 #line 4503 "configure"
4504 int testdata[3] = { 123, 456, 789 };
4506 if { (eval echo "$as_me:4506: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>&5
4509 echo "$as_me:4509: \$? = $ac_status" >&5
4510 (exit $ac_status); } ; then
4511 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4512 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4513 if test -f conftest.a ; then
4514 cf_cv_ar_flags=$cf_ar_flags
4518 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4520 echo "${as_me:-configure}:4520: testing cannot compile test-program ..." 1>&5
4525 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4528 echo "$as_me:4528: result: $cf_cv_ar_flags" >&5
4529 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4531 if test -n "$ARFLAGS" ; then
4532 if test -n "$cf_cv_ar_flags" ; then
4533 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4536 ARFLAGS=$cf_cv_ar_flags
4539 echo "$as_me:4539: checking if you have specified an install-prefix" >&5
4540 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4542 # Check whether --with-install-prefix or --without-install-prefix was given.
4543 if test "${with_install_prefix+set}" = set; then
4544 withval="$with_install_prefix"
4548 (*) DESTDIR="$withval"
4552 echo "$as_me:4552: result: $DESTDIR" >&5
4553 echo "${ECHO_T}$DESTDIR" >&6
4555 ###############################################################################
4557 # If we're cross-compiling, allow the user to override the tools and their
4558 # options. The configure script is oriented toward identifying the host
4559 # compiler, etc., but we need a build compiler to generate parts of the source.
4561 if test "$cross_compiling" = yes ; then
4563 # defaults that we might want to override
4564 : ${BUILD_CFLAGS:=''}
4565 : ${BUILD_CPPFLAGS:=''}
4566 : ${BUILD_LDFLAGS:=''}
4568 : ${BUILD_EXEEXT:='$x'}
4569 : ${BUILD_OBJEXT:='o'}
4571 # Check whether --with-build-cc or --without-build-cc was given.
4572 if test "${with_build_cc+set}" = set; then
4573 withval="$with_build_cc"
4576 for ac_prog in gcc cc cl
4578 # Extract the first word of "$ac_prog", so it can be a program name with args.
4579 set dummy $ac_prog; ac_word=$2
4580 echo "$as_me:4580: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 if test -n "$BUILD_CC"; then
4586 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4588 ac_save_IFS=$IFS; IFS=$ac_path_separator
4590 for ac_dir in $ac_dummy; do
4592 test -z "$ac_dir" && ac_dir=.
4593 $as_executable_p "$ac_dir/$ac_word" || continue
4594 ac_cv_prog_BUILD_CC="$ac_prog"
4595 echo "$as_me:4595: found $ac_dir/$ac_word" >&5
4601 BUILD_CC=$ac_cv_prog_BUILD_CC
4602 if test -n "$BUILD_CC"; then
4603 echo "$as_me:4603: result: $BUILD_CC" >&5
4604 echo "${ECHO_T}$BUILD_CC" >&6
4606 echo "$as_me:4606: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4610 test -n "$BUILD_CC" && break
4614 echo "$as_me:4614: checking for native build C compiler" >&5
4615 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4616 echo "$as_me:4616: result: $BUILD_CC" >&5
4617 echo "${ECHO_T}$BUILD_CC" >&6
4619 echo "$as_me:4619: checking for native build C preprocessor" >&5
4620 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4622 # Check whether --with-build-cpp or --without-build-cpp was given.
4623 if test "${with_build_cpp+set}" = set; then
4624 withval="$with_build_cpp"
4625 BUILD_CPP="$withval"
4627 BUILD_CPP='${BUILD_CC} -E'
4629 echo "$as_me:4629: result: $BUILD_CPP" >&5
4630 echo "${ECHO_T}$BUILD_CPP" >&6
4632 echo "$as_me:4632: checking for native build C flags" >&5
4633 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4635 # Check whether --with-build-cflags or --without-build-cflags was given.
4636 if test "${with_build_cflags+set}" = set; then
4637 withval="$with_build_cflags"
4638 BUILD_CFLAGS="$withval"
4640 echo "$as_me:4640: result: $BUILD_CFLAGS" >&5
4641 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4643 echo "$as_me:4643: checking for native build C preprocessor-flags" >&5
4644 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4646 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4647 if test "${with_build_cppflags+set}" = set; then
4648 withval="$with_build_cppflags"
4649 BUILD_CPPFLAGS="$withval"
4651 echo "$as_me:4651: result: $BUILD_CPPFLAGS" >&5
4652 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4654 echo "$as_me:4654: checking for native build linker-flags" >&5
4655 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4657 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4658 if test "${with_build_ldflags+set}" = set; then
4659 withval="$with_build_ldflags"
4660 BUILD_LDFLAGS="$withval"
4662 echo "$as_me:4662: result: $BUILD_LDFLAGS" >&5
4663 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4665 echo "$as_me:4665: checking for native build linker-libraries" >&5
4666 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4668 # Check whether --with-build-libs or --without-build-libs was given.
4669 if test "${with_build_libs+set}" = set; then
4670 withval="$with_build_libs"
4671 BUILD_LIBS="$withval"
4673 echo "$as_me:4673: result: $BUILD_LIBS" >&5
4674 echo "${ECHO_T}$BUILD_LIBS" >&6
4676 # this assumes we're on Unix.
4680 : ${BUILD_CC:='${CC}'}
4682 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4683 { { echo "$as_me:4683: error: Cross-build requires two compilers.
4684 Use --with-build-cc to specify the native compiler." >&5
4685 echo "$as_me: error: Cross-build requires two compilers.
4686 Use --with-build-cc to specify the native compiler." >&2;}
4687 { (exit 1); exit 1; }; }
4691 : ${BUILD_CC:='${CC}'}
4692 : ${BUILD_CPP:='${CPP}'}
4693 : ${BUILD_CFLAGS:='${CFLAGS}'}
4694 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4695 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4696 : ${BUILD_LIBS:='${LIBS}'}
4697 : ${BUILD_EXEEXT:='$x'}
4698 : ${BUILD_OBJEXT:='o'}
4701 ###############################################################################
4703 ### Options to allow the user to specify the set of libraries which are used.
4704 ### Use "--without-normal --with-shared" to allow the default model to be
4705 ### shared, for example.
4708 echo "$as_me:4708: checking if libtool -version-number should be used" >&5
4709 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4711 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4712 if test "${enable_libtool_version+set}" = set; then
4713 enableval="$enable_libtool_version"
4714 test "$enableval" != no && enableval=yes
4715 if test "$enableval" != "yes" ; then
4716 cf_libtool_version=no
4718 cf_libtool_version=yes
4722 cf_libtool_version=yes
4725 echo "$as_me:4725: result: $cf_libtool_version" >&5
4726 echo "${ECHO_T}$cf_libtool_version" >&6
4728 if test "$cf_libtool_version" = yes ; then
4729 LIBTOOL_VERSION="-version-number"
4731 LIBTOOL_VERSION="-version-info"
4734 { echo "$as_me:4734: WARNING: VERSION was not set" >&5
4735 echo "$as_me: WARNING: VERSION was not set" >&2;}
4738 ABI_VERSION="$VERSION"
4739 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4741 echo "${as_me:-configure}:4741: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4745 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4746 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4748 echo "${as_me:-configure}:4748: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4752 { echo "$as_me:4752: WARNING: unexpected VERSION value: $VERSION" >&5
4753 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4760 # common library maintenance symbols that are convenient for libtool scripts:
4761 LIB_CREATE='${AR} -cr'
4762 LIB_OBJECT='${OBJECTS}'
4766 # symbols used to prop libtool up to enable it to determine what it should be
4774 echo "$as_me:4774: checking if you want to build libraries with libtool" >&5
4775 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4777 # Check whether --with-libtool or --without-libtool was given.
4778 if test "${with_libtool+set}" = set; then
4779 withval="$with_libtool"
4780 with_libtool=$withval
4784 echo "$as_me:4784: result: $with_libtool" >&5
4785 echo "${ECHO_T}$with_libtool" >&6
4786 if test "$with_libtool" != "no"; then
4788 if test "$with_libtool" != "yes" ; then
4790 if test "x$prefix" != xNONE; then
4791 cf_path_syntax="$prefix"
4793 cf_path_syntax="$ac_default_prefix"
4796 case ".$with_libtool" in
4801 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4803 (.\${*prefix}*|.\${*dir}*)
4804 eval with_libtool="$with_libtool"
4805 case ".$with_libtool" in
4807 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4812 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4815 { { echo "$as_me:4815: error: expected a pathname, not \"$with_libtool\"" >&5
4816 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4817 { (exit 1); exit 1; }; }
4821 LIBTOOL=$with_libtool
4823 if test -n "$ac_tool_prefix"; then
4824 for ac_prog in libtool glibtool
4826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4828 echo "$as_me:4828: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4830 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 if test -n "$LIBTOOL"; then