2 # From configure.in Revision: 1.613 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20141204.
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-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --with-pc-suffix suffixes pc-files
718 --enable-mixed-case tic should assume mixed-case filenames
719 --with-install-prefix prefixes actual install-location ($DESTDIR)
720 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
721 --with-build-cc=XXX the build C compiler ($BUILD_CC)
722 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
723 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
724 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
725 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
726 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
727 Options to Specify the Libraries Built/Used:
728 --disable-libtool-version enable to use libtool's incompatible naming scheme
729 --with-libtool generate libraries with libtool
730 --with-shared generate shared-libraries
731 --with-normal generate normal-libraries (default)
732 --with-debug generate debug-libraries (default)
733 --with-profile generate profile-libraries
734 --with-cxx-shared generate C++ shared-libraries
735 --with-lib-prefix override library-prefix
736 --with-termlib generate separate terminfo library
737 --with-ticlib generate separate tic library
738 --with-gpm use Alessandro Rubini's GPM library
739 --without-dlsym do not use dlsym() to load GPM dynamically
740 --with-sysmouse use sysmouse (FreeBSD console)
741 --enable-rpath use rpath option when generating shared libraries
742 --disable-relink relink shared libraries during install
743 --with-shlib-version=X Specify rel or abi version for shared libs
744 --with-libtool-opts=XXX specify additional libtool options
745 --with-export-syms=XXX limit exported symbols using libtool
746 --with-versioned-syms=X markup versioned symbols using ld
747 --disable-lib-suffixes disable library suffixes
748 --disable-rpath-hack don't add rpath options for additional libraries
749 Fine-Tuning Your Configuration:
750 --with-extra-suffix=X append extra suffix to header/library paths
751 --disable-overwrite put headers in subdir, omit link to -lcurses
752 --disable-database do not use terminfo, only fallbacks/termcap
753 --with-database=XXX specify terminfo source to install
754 --with-hashed-db specify hashed-database library
755 --with-fallbacks=XXX specify list of fallback terminal descriptions
756 --without-xterm-new specify if xterm terminfo should be old version
757 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
758 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
759 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
760 --disable-big-core assume machine has little memory
761 --disable-big-strings assume compiler has only standard-size strings
762 --enable-termcap compile in termcap fallback support
763 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
764 --enable-getcap fast termcap load, no xrefs to terminfo
765 --enable-getcap-cache cache translated termcaps in ~/.terminfo
766 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
767 --disable-root-environ restrict environment when running as root
768 --enable-symlinks make tic use symbolic links not hard links
769 --enable-broken_linker compile with broken-linker support code
770 --enable-bsdpad recognize BSD-style prefix padding
771 --enable-widec compile with wide-char/UTF-8 code
772 --disable-lp64 allow chtype to be long (ignore _LP64)
773 --disable-largefile omit support for large files
774 --disable-tparm-varargs compile tparm() without varargs interface
775 --disable-tic-depends link tic library without explicit dependency on ncurses library
776 --with-bool=TYPE override fallback type of bool variable
777 --with-caps=alt compile with alternate Caps file
778 --with-chtype=TYPE override type of chtype
779 --with-ospeed=TYPE override type of ospeed variable
780 --with-mmask-t=TYPE override type of mmask_t
781 --with-ccharw-max=XXX override size CCHARW_MAX
782 --with-tparm-arg=TYPE override parameter type of tparm
783 --with-rcs-ids compile-in RCS identifiers
784 Options to Specify How Manpages are Installed:
785 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
786 optionally formatted/catonly, e.g., gzip,formatted
787 --with-manpage-renames specify manpage-renaming
788 --with-manpage-aliases specify manpage-aliases using .so
789 --with-manpage-symlinks specify manpage-aliases using symlinks
790 --with-manpage-tbl specify manpage processing with tbl
792 --disable-ext-funcs disable function-extensions
793 --enable-sp-funcs enable SCREEN-extensions
794 --enable-term-driver enable terminal-driver
795 --enable-const compile with extra/non-standard const
796 --enable-ext-colors compile for 256-color support
797 --enable-ext-mouse compile for extended mouse-encoding
798 --enable-ext-putwin compile with extended putwin/screendump
799 --enable-no-padding compile with $NCURSES_NO_PADDING code
800 --enable-signed-char compile using signed Boolean's in term.h
801 --enable-sigwinch compile with SIGWINCH handler
802 --enable-tcap-names compile with user-definable terminal capabilities
804 --without-develop disable development options
805 --enable-hard-tabs compile with hard-tabs code
806 --enable-xmc-glitch compile with support for xmc (magic-cookie)
808 --disable-assumed-color do not assume anything about default-colors
809 --disable-hashmap compile without hashmap scrolling-optimization
810 --enable-colorfgbg compile-in experimental $COLORFGBG code
811 --enable-interop compile-in interop bindings
812 --with-pthread use POSIX thread library
813 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
814 --enable-weak-symbols enable weak-symbols for pthreads
815 --enable-reentrant compile with reentrant code
816 --with-wrap-prefix=XXX override prefix used for public variables
817 --enable-safe-sprintf compile with experimental safe-sprintf code
818 --disable-scroll-hints compile without scroll-hints code
819 --enable-wgetch-events compile with wgetch-events code
820 Testing/development Options:
821 --disable-echo do not display "compiling" commands
822 --enable-warnings build: turn on GCC compiler warnings
823 --enable-string-hacks work around bogus compiler/loader warnings
824 --enable-assertions test: turn on generation of assertion code
825 --with-dmalloc test: use Gray Watson's dmalloc library
826 --with-dbmalloc test: use Conor Cahill's dbmalloc library
827 --with-valgrind test: use valgrind
828 --disable-leaks test: free permanent memory, analyze leaks
829 --enable-expanded test: generate functions for certain macros
830 --disable-macros test: use functions rather than macros
831 --with-trace test: add trace() function to all models of ncurses
832 --disable-gnat-projects test: disable GNAT projects even if usable
833 Ada95 Binding Options:
834 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
835 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
836 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
837 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
839 Some influential environment variables:
840 CC C compiler command
841 CFLAGS C compiler flags
842 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
843 nonstandard directory <lib dir>
844 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
845 headers in a nonstandard directory <include dir>
847 CXX C++ compiler command
848 CXXFLAGS C++ compiler flags
849 CXXCPP C++ preprocessor
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
862 # A "../" for each directory in /$ac_subdir.
863 ac_dots=`echo $ac_subdir |
864 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
867 .) # No --srcdir option. We are building in place.
868 ac_sub_srcdir=$srcdir ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_sub_srcdir=$srcdir/$ac_subdir ;;
872 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_sub_srcdir/configure.gnu; then
878 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_sub_srcdir/configure; then
881 $SHELL $ac_sub_srcdir/configure --help=recursive
882 elif test -f $ac_sub_srcdir/configure.ac ||
883 test -f $ac_sub_srcdir/configure.in; then
887 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52.20141204. Invocation command line was
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c) ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
969 # Get rid of the leading space.
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log. We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
976 # Save into config.log some information that might help in debugging.
978 echo "## ----------------- ##" >&5
979 echo "## Cache variables. ##" >&5
980 echo "## ----------------- ##" >&5
982 # The following way of writing the cache mishandles newlines in values,
985 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
988 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
997 sed "/^$/d" confdefs.h >conftest.log
998 if test -s conftest.log; then
1000 echo "## ------------ ##" >&5
1001 echo "## confdefs.h. ##" >&5
1002 echo "## ------------ ##" >&5
1004 cat conftest.log >&5
1007 test "$ac_signal" != 0 &&
1008 echo "$as_me: caught signal $ac_signal" >&5
1009 echo "$as_me: exit $exit_status" >&5
1010 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1013 for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026 if test "x$prefix" != xNONE; then
1027 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1029 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1032 for ac_site_file in $CONFIG_SITE; do
1033 if test -r "$ac_site_file"; then
1034 { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036 cat "$ac_site_file" >&5
1041 if test -r "$cache_file"; then
1042 # Some versions of bash will fail to source /dev/null (special
1043 # files actually), so we avoid doing that.
1044 if test -f "$cache_file"; then
1045 { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1048 [\\/]* | ?:[\\/]* ) . $cache_file;;
1049 *) . ./$cache_file;;
1053 { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1058 # Check that the precious variables saved in the cache have kept the same
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064 eval ac_new_set=\$ac_env_${ac_var}_set
1065 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066 eval ac_new_val="\$ac_env_${ac_var}_value"
1067 case $ac_old_set,$ac_new_set in
1069 { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071 ac_cache_corrupted=: ;;
1073 { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075 ac_cache_corrupted=: ;;
1078 if test "x$ac_old_val" != "x$ac_new_val"; then
1079 { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081 { echo "$as_me:1081: former value: $ac_old_val" >&5
1082 echo "$as_me: former value: $ac_old_val" >&2;}
1083 { echo "$as_me:1083: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 # Pass precious variables to config.status. It doesn't matter if
1089 # we pass some twice (in addition to the command line arguments).
1090 if test "$ac_new_set" = set; then
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094 ac_configure_args="$ac_configure_args '$ac_arg'"
1096 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1101 if $ac_cache_corrupted; then
1102 { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104 { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106 { (exit 1); exit 1; }; }
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1114 ac_main_return=return
1116 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1117 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1119 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1120 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1122 echo "#! $SHELL" >conftest.sh
1123 echo "exit 0" >>conftest.sh
1124 chmod +x conftest.sh
1125 if { (echo "$as_me:1125: PATH=\".;.\"; conftest.sh") >&5
1126 (PATH=".;."; conftest.sh) 2>&5
1128 echo "$as_me:1128: \$? = $ac_status" >&5
1129 (exit $ac_status); }; then
1130 ac_path_separator=';'
1134 PATH_SEPARATOR="$ac_path_separator"
1137 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1141 echo "$as_me:1141: checking for egrep" >&5
1142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1143 if test "${ac_cv_prog_egrep+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1147 then ac_cv_prog_egrep='grep -E'
1148 else ac_cv_prog_egrep='egrep'
1151 echo "$as_me:1151: result: $ac_cv_prog_egrep" >&5
1152 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1153 EGREP=$ac_cv_prog_egrep
1155 test -z "$EGREP" && { { echo "$as_me:1155: error: No egrep program found" >&5
1156 echo "$as_me: error: No egrep program found" >&2;}
1157 { (exit 1); exit 1; }; }
1159 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1161 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1162 cf_cv_abi_version=${NCURSES_MAJOR}
1163 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1164 cf_cv_timestamp=`date`
1165 echo "$as_me:1165: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1166 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1168 if test -f $srcdir/VERSION ; then
1169 echo "$as_me:1169: checking for package version" >&5
1170 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1172 # if there are not enough fields, cut returns the last one...
1173 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1174 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1175 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1177 # this is how CF_BUNDLED_INTL uses $VERSION:
1178 VERSION="$cf_field1"
1180 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1181 test -z "$VERSION_MAJOR" && { { echo "$as_me:1181: error: missing major-version" >&5
1182 echo "$as_me: error: missing major-version" >&2;}
1183 { (exit 1); exit 1; }; }
1185 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1186 test -z "$VERSION_MINOR" && { { echo "$as_me:1186: error: missing minor-version" >&5
1187 echo "$as_me: error: missing minor-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 echo "$as_me:1190: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1191 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1193 echo "$as_me:1193: checking for package patch date" >&5
1194 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1195 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1196 case .$VERSION_PATCH in
1198 { { echo "$as_me:1198: error: missing patch-date $VERSION_PATCH" >&5
1199 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1200 { (exit 1); exit 1; }; }
1202 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1205 { { echo "$as_me:1205: error: illegal patch-date $VERSION_PATCH" >&5
1206 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1207 { (exit 1); exit 1; }; }
1210 echo "$as_me:1210: result: $VERSION_PATCH" >&5
1211 echo "${ECHO_T}$VERSION_PATCH" >&6
1213 { { echo "$as_me:1213: error: did not find $srcdir/VERSION" >&5
1214 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1215 { (exit 1); exit 1; }; }
1218 # show the actual data that we have for versions:
1219 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1221 echo "${as_me:-configure}:1221: testing ABI VERSION $VERSION ..." 1>&5
1223 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1225 echo "${as_me:-configure}:1225: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1227 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1229 echo "${as_me:-configure}:1229: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1231 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1233 echo "${as_me:-configure}:1233: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1238 cat >>confdefs.h <<EOF
1239 #define PACKAGE "$PACKAGE"
1242 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1244 cat >>confdefs.h <<EOF
1245 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1248 cat >>confdefs.h <<EOF
1249 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1252 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1254 # Check whether --with-rel-version or --without-rel-version was given.
1255 if test "${with_rel_version+set}" = set; then
1256 withval="$with_rel_version"
1257 { echo "$as_me:1257: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1258 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1259 cf_cv_rel_version=$withval
1262 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1263 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1265 if test -n "$NCURSES_MAJOR" ; then
1266 case $NCURSES_MAJOR in
1270 { { echo "$as_me:1270: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1271 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1272 { (exit 1); exit 1; }; }
1276 { { echo "$as_me:1276: error: Release major-version value is empty" >&5
1277 echo "$as_me: error: Release major-version value is empty" >&2;}
1278 { (exit 1); exit 1; }; }
1281 if test -n "$NCURSES_MINOR" ; then
1282 case $NCURSES_MINOR in
1286 { { echo "$as_me:1286: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1287 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1288 { (exit 1); exit 1; }; }
1292 { { echo "$as_me:1292: error: Release minor-version value is empty" >&5
1293 echo "$as_me: error: Release minor-version value is empty" >&2;}
1294 { (exit 1); exit 1; }; }
1297 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1299 # Check whether --with-abi-version or --without-abi-version was given.
1300 if test "${with_abi_version+set}" = set; then
1301 withval="$with_abi_version"
1302 { echo "$as_me:1302: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1303 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1304 cf_cv_abi_version=$withval
1307 if test -n "$cf_cv_abi_version" ; then
1308 case $cf_cv_abi_version in
1312 { { echo "$as_me:1312: error: ABI version is not a number: $cf_cv_abi_version" >&5
1313 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1314 { (exit 1); exit 1; }; }
1318 { { echo "$as_me:1318: error: ABI version value is empty" >&5
1319 echo "$as_me: error: ABI version value is empty" >&2;}
1320 { (exit 1); exit 1; }; }
1324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325 if test -f $ac_dir/install-sh; then
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1329 elif test -f $ac_dir/install.sh; then
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1333 elif test -f $ac_dir/shtool; then
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:1340: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:1350: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1354 echo "$as_me:1354: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:1363: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:1367: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1369 { (exit 1); exit 1; }; }
1372 echo "$as_me:1372: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379 echo "$as_me:1379: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:1388: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:1393: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1401 echo "$as_me:1401: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:1410: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:1415: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 # The aliases save the names the user supplied, while $host etc.
1423 # will get canonicalized.
1424 test -n "$target_alias" &&
1425 test "$program_prefix$program_suffix$program_transform_name" = \
1427 program_prefix=${target_alias}-
1428 system_name="$host_os"
1430 system_name="`(uname -s -r) 2>/dev/null`"
1431 if test -z "$system_name" ; then
1432 system_name="`(hostname) 2>/dev/null`"
1435 test -n "$system_name" &&
1436 cat >>confdefs.h <<EOF
1437 #define SYSTEM_NAME "$system_name"
1440 if test "${cf_cv_system_name+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 cf_cv_system_name="$system_name"
1446 test -z "$system_name" && system_name="$cf_cv_system_name"
1447 test -n "$cf_cv_system_name" && echo "$as_me:1447: result: Configuring for $cf_cv_system_name" >&5
1448 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1450 if test ".$system_name" != ".$cf_cv_system_name" ; then
1451 echo "$as_me:1451: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1452 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1453 { { echo "$as_me:1453: error: \"Please remove config.cache and try again.\"" >&5
1454 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1455 { (exit 1); exit 1; }; }
1458 # Check whether --with-system-type or --without-system-type was given.
1459 if test "${with_system_type+set}" = set; then
1460 withval="$with_system_type"
1461 { echo "$as_me:1461: WARNING: overriding system type to $withval" >&5
1462 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1463 cf_cv_system_name=$withval
1468 ### Save the given $CFLAGS to allow user-override.
1469 cf_user_CFLAGS="$CFLAGS"
1471 ### Default install-location
1473 echo "$as_me:1473: checking for prefix" >&5
1474 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1475 if test "x$prefix" = "xNONE" ; then
1476 case "$cf_cv_system_name" in
1477 # non-vendor systems don't have a conflict
1478 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1481 (*) prefix=$ac_default_prefix
1485 echo "$as_me:1485: result: $prefix" >&5
1486 echo "${ECHO_T}$prefix" >&6
1488 if test "x$prefix" = "xNONE" ; then
1489 echo "$as_me:1489: checking for default include-directory" >&5
1490 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1491 test -n "$verbose" && echo 1>&6
1494 $includedir/ncurses \
1496 $prefix/include/ncurses \
1497 /usr/local/include \
1498 /usr/local/include/ncurses \
1500 /usr/include/ncurses
1502 cf_dir=`eval echo $cf_symbol`
1503 if test -f $cf_dir/curses.h ; then
1504 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1505 includedir="$cf_symbol"
1506 test -n "$verbose" && echo $ac_n " found " 1>&6
1510 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1512 echo "$as_me:1512: result: $includedir" >&5
1513 echo "${ECHO_T}$includedir" >&6
1516 ### Defaults for ncurses ABI
1518 case x$cf_cv_abi_version in
1520 cf_dft_ext_colors=yes
1521 cf_dft_ext_const=yes
1522 cf_dft_ext_mouse=yes
1523 cf_dft_ext_putwin=yes
1524 cf_dft_ext_spfuncs=yes
1525 cf_dft_chtype=uint32_t
1526 cf_dft_mmask_t=uint32_t
1528 cf_dft_tparm_arg=intptr_t
1531 cf_dft_ext_colors=no
1534 cf_dft_ext_putwin=no
1535 cf_dft_ext_spfuncs=no
1539 cf_dft_tparm_arg=long
1543 ### Checks for programs.
1545 # Check whether --with-ada or --without-ada was given.
1546 if test "${with_ada+set}" = set; then
1548 cf_with_ada=$withval
1552 if test "x$cf_with_ada" = xyes
1554 cf_PROG_CC="gnatgcc gcc cc"
1560 ac_cpp='$CPP $CPPFLAGS'
1561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564 ac_main_return=return
1565 if test -n "$ac_tool_prefix"; then
1566 for ac_prog in $cf_PROG_CC
1568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1570 echo "$as_me:1570: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1578 ac_save_IFS=$IFS; IFS=$ac_path_separator
1580 for ac_dir in $ac_dummy; do
1582 test -z "$ac_dir" && ac_dir=.
1583 $as_executable_p "$ac_dir/$ac_word" || continue
1584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1585 echo "$as_me:1585: found $ac_dir/$ac_word" >&5
1592 if test -n "$CC"; then
1593 echo "$as_me:1593: result: $CC" >&5
1594 echo "${ECHO_T}$CC" >&6
1596 echo "$as_me:1596: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1600 test -n "$CC" && break
1603 if test -z "$CC"; then
1605 for ac_prog in $cf_PROG_CC
1607 # Extract the first word of "$ac_prog", so it can be a program name with args.
1608 set dummy $ac_prog; ac_word=$2
1609 echo "$as_me:1609: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$ac_ct_CC"; then
1615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1617 ac_save_IFS=$IFS; IFS=$ac_path_separator
1619 for ac_dir in $ac_dummy; do
1621 test -z "$ac_dir" && ac_dir=.
1622 $as_executable_p "$ac_dir/$ac_word" || continue
1623 ac_cv_prog_ac_ct_CC="$ac_prog"
1624 echo "$as_me:1624: found $ac_dir/$ac_word" >&5
1630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1631 if test -n "$ac_ct_CC"; then
1632 echo "$as_me:1632: result: $ac_ct_CC" >&5
1633 echo "${ECHO_T}$ac_ct_CC" >&6
1635 echo "$as_me:1635: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1639 test -n "$ac_ct_CC" && break
1645 test -z "$CC" && { { echo "$as_me:1645: error: no acceptable cc found in \$PATH" >&5
1646 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1647 { (exit 1); exit 1; }; }
1649 # Provide some information about the compiler.
1650 echo "$as_me:1650:" \
1651 "checking for C compiler version" >&5
1652 ac_compiler=`set X $ac_compile; echo $2`
1653 { (eval echo "$as_me:1653: \"$ac_compiler --version </dev/null >&5\"") >&5
1654 (eval $ac_compiler --version </dev/null >&5) 2>&5
1656 echo "$as_me:1656: \$? = $ac_status" >&5
1657 (exit $ac_status); }
1658 { (eval echo "$as_me:1658: \"$ac_compiler -v </dev/null >&5\"") >&5
1659 (eval $ac_compiler -v </dev/null >&5) 2>&5
1661 echo "$as_me:1661: \$? = $ac_status" >&5
1662 (exit $ac_status); }
1663 { (eval echo "$as_me:1663: \"$ac_compiler -V </dev/null >&5\"") >&5
1664 (eval $ac_compiler -V </dev/null >&5) 2>&5
1666 echo "$as_me:1666: \$? = $ac_status" >&5
1667 (exit $ac_status); }
1669 cat >conftest.$ac_ext <<_ACEOF
1670 #line 1670 "configure"
1671 #include "confdefs.h"
1681 ac_clean_files_save=$ac_clean_files
1682 ac_clean_files="$ac_clean_files a.out a.exe"
1683 # Try to create an executable without -o first, disregard a.out.
1684 # It will help us diagnose broken compilers, and finding out an intuition
1686 echo "$as_me:1686: checking for C compiler default output" >&5
1687 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1688 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1689 if { (eval echo "$as_me:1689: \"$ac_link_default\"") >&5
1690 (eval $ac_link_default) 2>&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); }; then
1694 # Find the output, starting from the most likely. This scheme is
1695 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1697 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1698 ls a.out conftest 2>/dev/null;
1699 ls a.* conftest.* 2>/dev/null`; do
1701 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1702 a.out ) # We found the default executable, but exeext='' is most
1705 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1706 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1713 echo "$as_me: failed program was:" >&5
1714 cat conftest.$ac_ext >&5
1715 { { echo "$as_me:1715: error: C compiler cannot create executables" >&5
1716 echo "$as_me: error: C compiler cannot create executables" >&2;}
1717 { (exit 77); exit 77; }; }
1720 ac_exeext=$ac_cv_exeext
1721 echo "$as_me:1721: result: $ac_file" >&5
1722 echo "${ECHO_T}$ac_file" >&6
1724 # Check the compiler produces executables we can run. If not, either
1725 # the compiler is broken, or we cross compile.
1726 echo "$as_me:1726: checking whether the C compiler works" >&5
1727 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1728 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1729 # If not cross compiling, check that we can run a simple program.
1730 if test "$cross_compiling" != yes; then
1731 if { ac_try='./$ac_file'
1732 { (eval echo "$as_me:1732: \"$ac_try\"") >&5
1735 echo "$as_me:1735: \$? = $ac_status" >&5
1736 (exit $ac_status); }; }; then
1739 if test "$cross_compiling" = maybe; then
1742 { { echo "$as_me:1742: error: cannot run C compiled programs.
1743 If you meant to cross compile, use \`--host'." >&5
1744 echo "$as_me: error: cannot run C compiled programs.
1745 If you meant to cross compile, use \`--host'." >&2;}
1746 { (exit 1); exit 1; }; }
1750 echo "$as_me:1750: result: yes" >&5
1751 echo "${ECHO_T}yes" >&6
1753 rm -f a.out a.exe conftest$ac_cv_exeext
1754 ac_clean_files=$ac_clean_files_save
1755 # Check the compiler produces executables we can run. If not, either
1756 # the compiler is broken, or we cross compile.
1757 echo "$as_me:1757: checking whether we are cross compiling" >&5
1758 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1759 echo "$as_me:1759: result: $cross_compiling" >&5
1760 echo "${ECHO_T}$cross_compiling" >&6
1762 echo "$as_me:1762: checking for executable suffix" >&5
1763 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1764 if { (eval echo "$as_me:1764: \"$ac_link\"") >&5
1765 (eval $ac_link) 2>&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }; then
1769 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1770 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1771 # work properly (i.e., refer to `conftest.exe'), while it won't with
1773 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1775 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1776 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 { { echo "$as_me:1783: error: cannot compute EXEEXT: cannot compile and link" >&5
1784 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1785 { (exit 1); exit 1; }; }
1788 rm -f conftest$ac_cv_exeext
1789 echo "$as_me:1789: result: $ac_cv_exeext" >&5
1790 echo "${ECHO_T}$ac_cv_exeext" >&6
1792 rm -f conftest.$ac_ext
1793 EXEEXT=$ac_cv_exeext
1795 echo "$as_me:1795: checking for object suffix" >&5
1796 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1797 if test "${ac_cv_objext+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line 1801 "configure"
1802 #include "confdefs.h"
1812 rm -f conftest.o conftest.obj
1813 if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5
1814 (eval $ac_compile) 2>&5
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); }; then
1818 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1820 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1821 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1826 echo "$as_me: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1828 { { echo "$as_me:1828: error: cannot compute OBJEXT: cannot compile" >&5
1829 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1830 { (exit 1); exit 1; }; }
1833 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1835 echo "$as_me:1835: result: $ac_cv_objext" >&5
1836 echo "${ECHO_T}$ac_cv_objext" >&6
1837 OBJEXT=$ac_cv_objext
1839 echo "$as_me:1839: checking whether we are using the GNU C compiler" >&5
1840 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1841 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 cat >conftest.$ac_ext <<_ACEOF
1845 #line 1845 "configure"
1846 #include "confdefs.h"
1859 rm -f conftest.$ac_objext
1860 if { (eval echo "$as_me:1860: \"$ac_compile\"") >&5
1861 (eval $ac_compile) 2>&5
1863 echo "$as_me:1863: \$? = $ac_status" >&5
1864 (exit $ac_status); } &&
1865 { ac_try='test -s conftest.$ac_objext'
1866 { (eval echo "$as_me:1866: \"$ac_try\"") >&5
1869 echo "$as_me:1869: \$? = $ac_status" >&5
1870 (exit $ac_status); }; }; then
1873 echo "$as_me: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1877 rm -f conftest.$ac_objext conftest.$ac_ext
1878 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1881 echo "$as_me:1881: result: $ac_cv_c_compiler_gnu" >&5
1882 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1883 GCC=`test $ac_compiler_gnu = yes && echo yes`
1884 ac_test_CFLAGS=${CFLAGS+set}
1885 ac_save_CFLAGS=$CFLAGS
1887 echo "$as_me:1887: checking whether $CC accepts -g" >&5
1888 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1889 if test "${ac_cv_prog_cc_g+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 cat >conftest.$ac_ext <<_ACEOF
1893 #line 1893 "configure"
1894 #include "confdefs.h"
1904 rm -f conftest.$ac_objext
1905 if { (eval echo "$as_me:1905: \"$ac_compile\"") >&5
1906 (eval $ac_compile) 2>&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); } &&
1910 { ac_try='test -s conftest.$ac_objext'
1911 { (eval echo "$as_me:1911: \"$ac_try\"") >&5
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); }; }; then
1918 echo "$as_me: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1922 rm -f conftest.$ac_objext conftest.$ac_ext
1924 echo "$as_me:1924: result: $ac_cv_prog_cc_g" >&5
1925 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1926 if test "$ac_test_CFLAGS" = set; then
1927 CFLAGS=$ac_save_CFLAGS
1928 elif test $ac_cv_prog_cc_g = yes; then
1929 if test "$GCC" = yes; then
1935 if test "$GCC" = yes; then
1941 # Some people use a C++ compiler to compile C. Since we use `exit',
1942 # in C++ we need to declare it. In case someone uses the same compiler
1943 # for both compiling C and C++ we need to have the C++ compiler decide
1944 # the declaration of exit, since it's the most demanding environment.
1945 cat >conftest.$ac_ext <<_ACEOF
1950 rm -f conftest.$ac_objext
1951 if { (eval echo "$as_me:1951: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>&5
1954 echo "$as_me:1954: \$? = $ac_status" >&5
1955 (exit $ac_status); } &&
1956 { ac_try='test -s conftest.$ac_objext'
1957 { (eval echo "$as_me:1957: \"$ac_try\"") >&5
1960 echo "$as_me:1960: \$? = $ac_status" >&5
1961 (exit $ac_status); }; }; then
1962 for ac_declaration in \
1964 '#include <stdlib.h>' \
1965 'extern "C" void std::exit (int) throw (); using std::exit;' \
1966 'extern "C" void std::exit (int); using std::exit;' \
1967 'extern "C" void exit (int) throw ();' \
1968 'extern "C" void exit (int);' \
1971 cat >conftest.$ac_ext <<_ACEOF
1972 #line 1972 "configure"
1973 #include "confdefs.h"
1984 rm -f conftest.$ac_objext
1985 if { (eval echo "$as_me:1985: \"$ac_compile\"") >&5
1986 (eval $ac_compile) 2>&5
1988 echo "$as_me:1988: \$? = $ac_status" >&5
1989 (exit $ac_status); } &&
1990 { ac_try='test -s conftest.$ac_objext'
1991 { (eval echo "$as_me:1991: \"$ac_try\"") >&5
1994 echo "$as_me:1994: \$? = $ac_status" >&5
1995 (exit $ac_status); }; }; then
1998 echo "$as_me: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2002 rm -f conftest.$ac_objext conftest.$ac_ext
2003 cat >conftest.$ac_ext <<_ACEOF
2004 #line 2004 "configure"
2005 #include "confdefs.h"
2015 rm -f conftest.$ac_objext
2016 if { (eval echo "$as_me:2016: \"$ac_compile\"") >&5
2017 (eval $ac_compile) 2>&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); } &&
2021 { ac_try='test -s conftest.$ac_objext'
2022 { (eval echo "$as_me:2022: \"$ac_try\"") >&5
2025 echo "$as_me:2025: \$? = $ac_status" >&5
2026 (exit $ac_status); }; }; then
2029 echo "$as_me: failed program was:" >&5
2030 cat conftest.$ac_ext >&5
2032 rm -f conftest.$ac_objext conftest.$ac_ext
2035 if test -n "$ac_declaration"; then
2036 echo '#ifdef __cplusplus' >>confdefs.h
2037 echo $ac_declaration >>confdefs.h
2038 echo '#endif' >>confdefs.h
2042 echo "$as_me: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 rm -f conftest.$ac_objext conftest.$ac_ext
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051 ac_main_return=return
2054 if test "$GCC" = yes ; then
2055 echo "$as_me:2055: checking version of $CC" >&5
2056 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2057 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.].*//'`"
2058 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2059 echo "$as_me:2059: result: $GCC_VERSION" >&5
2060 echo "${ECHO_T}$GCC_VERSION" >&6
2063 echo "$as_me:2063: checking for $CC option to accept ANSI C" >&5
2064 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 ac_cv_prog_cc_stdc=no
2070 cat >conftest.$ac_ext <<_ACEOF
2071 #line 2071 "configure"
2072 #include "confdefs.h"
2075 #include <sys/types.h>
2076 #include <sys/stat.h>
2077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2078 struct buf { int x; };
2079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2080 static char *e (p, i)
2086 static char *f (char * (*g) (char **, int), char **p, ...)
2091 s = g (p, va_arg (v,int));
2095 int test (int i, double x);
2096 struct s1 {int (*f) (int a);};
2097 struct s2 {int (*f) (double a);};
2098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2109 # Don't try gcc -ansi; that turns off useful extensions and
2110 # breaks some systems' header files.
2111 # AIX -qlanglvl=ansi
2112 # Ultrix and OSF/1 -std1
2113 # HP-UX 10.20 and later -Ae
2114 # HP-UX older versions -Aa -D_HPUX_SOURCE
2115 # SVR4 -Xc -D__EXTENSIONS__
2116 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2118 CC="$ac_save_CC $ac_arg"
2119 rm -f conftest.$ac_objext
2120 if { (eval echo "$as_me:2120: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>&5
2123 echo "$as_me:2123: \$? = $ac_status" >&5
2124 (exit $ac_status); } &&
2125 { ac_try='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:2126: \"$ac_try\"") >&5
2129 echo "$as_me:2129: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2131 ac_cv_prog_cc_stdc=$ac_arg
2134 echo "$as_me: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2137 rm -f conftest.$ac_objext
2139 rm -f conftest.$ac_ext conftest.$ac_objext
2144 case "x$ac_cv_prog_cc_stdc" in
2146 echo "$as_me:2146: result: none needed" >&5
2147 echo "${ECHO_T}none needed" >&6 ;;
2149 echo "$as_me:2149: result: $ac_cv_prog_cc_stdc" >&5
2150 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2151 CC="$CC $ac_cv_prog_cc_stdc" ;;
2154 # This should have been defined by AC_PROG_CC
2157 echo "$as_me:2157: checking \$CC variable" >&5
2158 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2161 echo "$as_me:2161: result: broken" >&5
2162 echo "${ECHO_T}broken" >&6
2163 { echo "$as_me:2163: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2164 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2166 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2167 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2172 cf_new_extra_cppflags=
2174 for cf_add_cflags in $cf_flags
2176 case $cf_fix_cppflags in
2178 case $cf_add_cflags in
2179 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2180 case $cf_add_cflags in
2182 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2184 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2185 && test -z "${cf_tst_cflags}" \
2186 && cf_fix_cppflags=yes
2188 if test $cf_fix_cppflags = yes ; then
2189 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2191 elif test "${cf_tst_cflags}" = "\"'" ; then
2192 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2201 case $cf_add_cflags in
2203 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2205 CPPFLAGS=`echo "$CPPFLAGS" | \
2206 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2207 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2211 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2216 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2221 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2223 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2225 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2226 && test -z "${cf_tst_cflags}" \
2227 && cf_fix_cppflags=no
2232 if test -n "$cf_new_cflags" ; then
2234 CFLAGS="$CFLAGS $cf_new_cflags"
2237 if test -n "$cf_new_cppflags" ; then
2239 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2242 if test -n "$cf_new_extra_cppflags" ; then
2244 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2249 echo "$as_me:2249: result: ok" >&5
2250 echo "${ECHO_T}ok" >&6
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259 ac_main_return=return
2260 echo "$as_me:2260: checking how to run the C preprocessor" >&5
2261 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2262 # On Suns, sometimes $CPP names a directory.
2263 if test -n "$CPP" && test -d "$CPP"; then
2266 if test -z "$CPP"; then
2267 if test "${ac_cv_prog_CPP+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 # Double quotes because CPP needs to be expanded
2271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2274 for ac_c_preproc_warn_flag in '' yes
2276 # Use a header file that comes with gcc, so configuring glibc
2277 # with a fresh cross-compiler works.
2278 # On the NeXT, cc -E runs the code through the compiler's parser,
2279 # not just through cpp. "Syntax error" is here to catch this case.
2280 cat >conftest.$ac_ext <<_ACEOF
2281 #line 2281 "configure"
2282 #include "confdefs.h"
2286 if { (eval echo "$as_me:2286: \"$ac_cpp conftest.$ac_ext\"") >&5
2287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2289 egrep -v '^ *\+' conftest.er1 >conftest.err
2291 cat conftest.err >&5
2292 echo "$as_me:2292: \$? = $ac_status" >&5
2293 (exit $ac_status); } >/dev/null; then
2294 if test -s conftest.err; then
2295 ac_cpp_err=$ac_c_preproc_warn_flag
2302 if test -z "$ac_cpp_err"; then
2305 echo "$as_me: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2307 # Broken: fails on valid input.
2310 rm -f conftest.err conftest.$ac_ext
2312 # OK, works on sane cases. Now check whether non-existent headers
2313 # can be detected and how.
2314 cat >conftest.$ac_ext <<_ACEOF
2315 #line 2315 "configure"
2316 #include "confdefs.h"
2317 #include <ac_nonexistent.h>
2319 if { (eval echo "$as_me:2319: \"$ac_cpp conftest.$ac_ext\"") >&5
2320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2322 egrep -v '^ *\+' conftest.er1 >conftest.err
2324 cat conftest.err >&5
2325 echo "$as_me:2325: \$? = $ac_status" >&5
2326 (exit $ac_status); } >/dev/null; then
2327 if test -s conftest.err; then
2328 ac_cpp_err=$ac_c_preproc_warn_flag
2335 if test -z "$ac_cpp_err"; then
2336 # Broken: success on invalid input.
2339 echo "$as_me: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 # Passes both tests.
2345 rm -f conftest.err conftest.$ac_ext
2348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2349 rm -f conftest.err conftest.$ac_ext
2350 if $ac_preproc_ok; then
2362 echo "$as_me:2362: result: $CPP" >&5
2363 echo "${ECHO_T}$CPP" >&6
2365 for ac_c_preproc_warn_flag in '' yes
2367 # Use a header file that comes with gcc, so configuring glibc
2368 # with a fresh cross-compiler works.
2369 # On the NeXT, cc -E runs the code through the compiler's parser,
2370 # not just through cpp. "Syntax error" is here to catch this case.
2371 cat >conftest.$ac_ext <<_ACEOF
2372 #line 2372 "configure"
2373 #include "confdefs.h"
2377 if { (eval echo "$as_me:2377: \"$ac_cpp conftest.$ac_ext\"") >&5
2378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2380 egrep -v '^ *\+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:2383: \$? = $ac_status" >&5
2384 (exit $ac_status); } >/dev/null; then
2385 if test -s conftest.err; then
2386 ac_cpp_err=$ac_c_preproc_warn_flag
2393 if test -z "$ac_cpp_err"; then
2396 echo "$as_me: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2398 # Broken: fails on valid input.
2401 rm -f conftest.err conftest.$ac_ext
2403 # OK, works on sane cases. Now check whether non-existent headers
2404 # can be detected and how.
2405 cat >conftest.$ac_ext <<_ACEOF
2406 #line 2406 "configure"
2407 #include "confdefs.h"
2408 #include <ac_nonexistent.h>
2410 if { (eval echo "$as_me:2410: \"$ac_cpp conftest.$ac_ext\"") >&5
2411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2413 egrep -v '^ *\+' conftest.er1 >conftest.err
2415 cat conftest.err >&5
2416 echo "$as_me:2416: \$? = $ac_status" >&5
2417 (exit $ac_status); } >/dev/null; then
2418 if test -s conftest.err; then
2419 ac_cpp_err=$ac_c_preproc_warn_flag
2426 if test -z "$ac_cpp_err"; then
2427 # Broken: success on invalid input.
2430 echo "$as_me: failed program was:" >&5
2431 cat conftest.$ac_ext >&5
2432 # Passes both tests.
2436 rm -f conftest.err conftest.$ac_ext
2439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2440 rm -f conftest.err conftest.$ac_ext
2441 if $ac_preproc_ok; then
2444 { { echo "$as_me:2444: error: C preprocessor \"$CPP\" fails sanity check" >&5
2445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2446 { (exit 1); exit 1; }; }
2450 ac_cpp='$CPP $CPPFLAGS'
2451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 ac_main_return=return
2456 if test $ac_cv_c_compiler_gnu = yes; then
2457 echo "$as_me:2457: checking whether $CC needs -traditional" >&5
2458 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2459 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 ac_pattern="Autoconf.*'x'"
2463 cat >conftest.$ac_ext <<_ACEOF
2464 #line 2464 "configure"
2465 #include "confdefs.h"
2467 int Autoconf = TIOCGETP;
2469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2470 egrep "$ac_pattern" >/dev/null 2>&1; then
2471 ac_cv_prog_gcc_traditional=yes
2473 ac_cv_prog_gcc_traditional=no
2477 if test $ac_cv_prog_gcc_traditional = no; then
2478 cat >conftest.$ac_ext <<_ACEOF
2479 #line 2479 "configure"
2480 #include "confdefs.h"
2482 int Autoconf = TCGETA;
2484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2485 egrep "$ac_pattern" >/dev/null 2>&1; then
2486 ac_cv_prog_gcc_traditional=yes
2492 echo "$as_me:2492: result: $ac_cv_prog_gcc_traditional" >&5
2493 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2494 if test $ac_cv_prog_gcc_traditional = yes; then
2495 CC="$CC -traditional"
2499 echo "$as_me:2499: checking whether $CC understands -c and -o together" >&5
2500 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2501 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 cat > conftest.$ac_ext <<CF_EOF
2509 ${cf_cv_main_return:-return}(0);
2512 # We do the test twice because some compilers refuse to overwrite an
2513 # existing .o file with -o, though they will create one.
2514 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2515 if { (eval echo "$as_me:2515: \"$ac_try\"") >&5
2518 echo "$as_me:2518: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 test -f conftest2.$ac_objext && { (eval echo "$as_me:2520: \"$ac_try\"") >&5
2523 echo "$as_me:2523: \$? = $ac_status" >&5
2524 (exit $ac_status); };
2526 eval cf_cv_prog_CC_c_o=yes
2528 eval cf_cv_prog_CC_c_o=no
2533 if test $cf_cv_prog_CC_c_o = yes; then
2534 echo "$as_me:2534: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2537 echo "$as_me:2537: result: no" >&5
2538 echo "${ECHO_T}no" >&6
2541 if test "$cross_compiling" = yes ; then
2544 case "$cf_cv_system_name" in
2545 (dragonfly*|mirbsd*|freebsd*)
2546 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2548 (*) LDPATH=$PATH:/sbin:/usr/sbin
2549 # Extract the first word of "ldconfig", so it can be a program name with args.
2550 set dummy ldconfig; ac_word=$2
2551 echo "$as_me:2551: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2561 ac_save_IFS=$IFS; IFS=$ac_path_separator
2563 for ac_dir in $ac_dummy; do
2565 test -z "$ac_dir" && ac_dir=.
2566 if $as_executable_p "$ac_dir/$ac_word"; then
2567 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2568 echo "$as_me:2568: found $ac_dir/$ac_word" >&5
2576 LDCONFIG=$ac_cv_path_LDCONFIG
2578 if test -n "$LDCONFIG"; then
2579 echo "$as_me:2579: result: $LDCONFIG" >&5
2580 echo "${ECHO_T}$LDCONFIG" >&6
2582 echo "$as_me:2582: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2590 echo "$as_me:2590: checking if you want to ensure bool is consistent with C++" >&5
2591 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2593 # Check whether --with-cxx or --without-cxx was given.
2594 if test "${with_cxx+set}" = set; then
2596 cf_with_cxx=$withval
2600 echo "$as_me:2600: result: $cf_with_cxx" >&5
2601 echo "${ECHO_T}$cf_with_cxx" >&6
2602 if test "X$cf_with_cxx" = Xno ; then
2606 # with autoconf 2.13, we can change the error to a warning:
2608 ac_cpp='$CXXCPP $CPPFLAGS'
2609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2612 ac_main_return=return
2613 if test -n "$ac_tool_prefix"; then
2614 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 echo "$as_me:2618: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${ac_cv_prog_CXX+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 if test -n "$CXX"; then
2624 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2626 ac_save_IFS=$IFS; IFS=$ac_path_separator
2628 for ac_dir in $ac_dummy; do
2630 test -z "$ac_dir" && ac_dir=.
2631 $as_executable_p "$ac_dir/$ac_word" || continue
2632 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2633 echo "$as_me:2633: found $ac_dir/$ac_word" >&5
2640 if test -n "$CXX"; then
2641 echo "$as_me:2641: result: $CXX" >&5
2642 echo "${ECHO_T}$CXX" >&6
2644 echo "$as_me:2644: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2648 test -n "$CXX" && break
2651 if test -z "$CXX"; then
2653 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2655 # Extract the first word of "$ac_prog", so it can be a program name with args.
2656 set dummy $ac_prog; ac_word=$2
2657 echo "$as_me:2657: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2659 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 if test -n "$ac_ct_CXX"; then
2663 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2665 ac_save_IFS=$IFS; IFS=$ac_path_separator
2667 for ac_dir in $ac_dummy; do
2669 test -z "$ac_dir" && ac_dir=.
2670 $as_executable_p "$ac_dir/$ac_word" || continue
2671 ac_cv_prog_ac_ct_CXX="$ac_prog"
2672 echo "$as_me:2672: found $ac_dir/$ac_word" >&5
2678 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2679 if test -n "$ac_ct_CXX"; then
2680 echo "$as_me:2680: result: $ac_ct_CXX" >&5
2681 echo "${ECHO_T}$ac_ct_CXX" >&6
2683 echo "$as_me:2683: result: no" >&5
2684 echo "${ECHO_T}no" >&6
2687 test -n "$ac_ct_CXX" && break
2689 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2694 # Provide some information about the compiler.
2695 echo "$as_me:2695:" \
2696 "checking for C++ compiler version" >&5
2697 ac_compiler=`set X $ac_compile; echo $2`
2698 { (eval echo "$as_me:2698: \"$ac_compiler --version </dev/null >&5\"") >&5
2699 (eval $ac_compiler --version </dev/null >&5) 2>&5
2701 echo "$as_me:2701: \$? = $ac_status" >&5
2702 (exit $ac_status); }
2703 { (eval echo "$as_me:2703: \"$ac_compiler -v </dev/null >&5\"") >&5
2704 (eval $ac_compiler -v </dev/null >&5) 2>&5
2706 echo "$as_me:2706: \$? = $ac_status" >&5
2707 (exit $ac_status); }
2708 { (eval echo "$as_me:2708: \"$ac_compiler -V </dev/null >&5\"") >&5
2709 (eval $ac_compiler -V </dev/null >&5) 2>&5
2711 echo "$as_me:2711: \$? = $ac_status" >&5
2712 (exit $ac_status); }
2714 echo "$as_me:2714: checking whether we are using the GNU C++ compiler" >&5
2715 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2716 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 cat >conftest.$ac_ext <<_ACEOF
2720 #line 2720 "configure"
2721 #include "confdefs.h"
2734 rm -f conftest.$ac_objext
2735 if { (eval echo "$as_me:2735: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>&5
2738 echo "$as_me:2738: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:2741: \"$ac_try\"") >&5
2744 echo "$as_me:2744: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2748 echo "$as_me: failed program was:" >&5
2749 cat conftest.$ac_ext >&5
2752 rm -f conftest.$ac_objext conftest.$ac_ext
2753 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2756 echo "$as_me:2756: result: $ac_cv_cxx_compiler_gnu" >&5
2757 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2758 GXX=`test $ac_compiler_gnu = yes && echo yes`
2759 ac_test_CXXFLAGS=${CXXFLAGS+set}
2760 ac_save_CXXFLAGS=$CXXFLAGS
2762 echo "$as_me:2762: checking whether $CXX accepts -g" >&5
2763 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2764 if test "${ac_cv_prog_cxx_g+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 cat >conftest.$ac_ext <<_ACEOF
2768 #line 2768 "configure"
2769 #include "confdefs.h"
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:2780: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>&5
2783 echo "$as_me:2783: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:2786: \"$ac_try\"") >&5
2789 echo "$as_me:2789: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 ac_cv_prog_cxx_g=yes
2793 echo "$as_me: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2797 rm -f conftest.$ac_objext conftest.$ac_ext
2799 echo "$as_me:2799: result: $ac_cv_prog_cxx_g" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2801 if test "$ac_test_CXXFLAGS" = set; then
2802 CXXFLAGS=$ac_save_CXXFLAGS
2803 elif test $ac_cv_prog_cxx_g = yes; then
2804 if test "$GXX" = yes; then
2810 if test "$GXX" = yes; then
2816 for ac_declaration in \
2818 '#include <stdlib.h>' \
2819 'extern "C" void std::exit (int) throw (); using std::exit;' \
2820 'extern "C" void std::exit (int); using std::exit;' \
2821 'extern "C" void exit (int) throw ();' \
2822 'extern "C" void exit (int);' \
2825 cat >conftest.$ac_ext <<_ACEOF
2826 #line 2826 "configure"
2827 #include "confdefs.h"
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:2839: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>&5
2842 echo "$as_me:2842: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:2845: \"$ac_try\"") >&5
2848 echo "$as_me:2848: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2852 echo "$as_me: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2856 rm -f conftest.$ac_objext conftest.$ac_ext
2857 cat >conftest.$ac_ext <<_ACEOF
2858 #line 2858 "configure"
2859 #include "confdefs.h"
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:2870: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>&5
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:2876: \"$ac_try\"") >&5
2879 echo "$as_me:2879: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2883 echo "$as_me: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2886 rm -f conftest.$ac_objext conftest.$ac_ext
2889 if test -n "$ac_declaration"; then
2890 echo '#ifdef __cplusplus' >>confdefs.h
2891 echo $ac_declaration >>confdefs.h
2892 echo '#endif' >>confdefs.h
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 ac_main_return=return
2903 ac_cpp='$CXXCPP $CPPFLAGS'
2904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2907 ac_main_return=return
2909 if test "x$cf_with_cxx" != xno
2911 # Several of the C++ configurations do not work, particularly when
2912 # cross-compiling (20140913 -TD)
2913 echo "$as_me:2913: checking if $CXX works" >&5
2914 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2916 save_CPPFLAGS="$CPPFLAGS"
2917 eval cf_includedir=${includedir}
2918 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2920 cat >conftest.$ac_ext <<_ACEOF
2921 #line 2921 "configure"
2922 #include "confdefs.h"
2931 printf("Hello world!\n")
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:2938: \"$ac_compile\"") >&5
2939 (eval $ac_compile) 2>&5
2941 echo "$as_me:2941: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:2944: \"$ac_try\"") >&5
2947 echo "$as_me:2947: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2951 echo "$as_me: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2955 rm -f conftest.$ac_objext conftest.$ac_ext
2956 CPPFLAGS="$save_CPPFLAGS"
2958 echo "$as_me:2958: result: $cf_cxx_works" >&5
2959 echo "${ECHO_T}$cf_cxx_works" >&6
2960 if test "x$cf_cxx_works" = xno
2962 { echo "$as_me:2962: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2963 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2964 cf_with_cxx=no; CXX=""; GXX="";
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 ac_main_return=return
2974 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2975 if test "$CXX" = "g++" ; then
2976 # Extract the first word of "g++", so it can be a program name with args.
2977 set dummy g++; ac_word=$2
2978 echo "$as_me:2978: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980 if test "${ac_cv_path_CXX+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2988 ac_save_IFS=$IFS; IFS=$ac_path_separator
2990 for ac_dir in $ac_dummy; do
2992 test -z "$ac_dir" && ac_dir=.
2993 if $as_executable_p "$ac_dir/$ac_word"; then
2994 ac_cv_path_CXX="$ac_dir/$ac_word"
2995 echo "$as_me:2995: found $ac_dir/$ac_word" >&5
3005 if test -n "$CXX"; then
3006 echo "$as_me:3006: result: $CXX" >&5
3007 echo "${ECHO_T}$CXX" >&6
3009 echo "$as_me:3009: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3016 { echo "$as_me:3016: WARNING: You don't have any C++ compiler, too bad" >&5
3017 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3018 cf_with_cxx=no; CXX=""; GXX="";
3024 if test "$GXX" = yes; then
3025 echo "$as_me:3025: checking version of ${CXX:-g++}" >&5
3026 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3027 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3028 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3029 echo "$as_me:3029: result: $GXX_VERSION" >&5
3030 echo "${ECHO_T}$GXX_VERSION" >&6
3033 case $GXX_VERSION in
3035 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3037 { echo "$as_me:3037: WARNING: templates do not work" >&5
3038 echo "$as_me: WARNING: templates do not work" >&2;}
3042 echo "$as_me:3042: checking if you want to build C++ binding and demo" >&5
3043 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3045 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3046 if test "${with_cxx_binding+set}" = set; then
3047 withval="$with_cxx_binding"
3048 cf_with_cxx_binding=$withval
3050 cf_with_cxx_binding=$cf_with_cxx
3052 echo "$as_me:3052: result: $cf_with_cxx_binding" >&5
3053 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3055 echo "$as_me:3055: checking if you want to build with Ada95" >&5
3056 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3057 echo "$as_me:3057: result: $cf_with_ada" >&5
3058 echo "${ECHO_T}$cf_with_ada" >&6
3060 echo "$as_me:3060: checking if you want to install terminal database" >&5
3061 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3063 # Check whether --enable-db-install or --disable-db-install was given.
3064 if test "${enable_db_install+set}" = set; then
3065 enableval="$enable_db_install"
3066 cf_with_db_install=$enableval
3068 cf_with_db_install=yes
3070 echo "$as_me:3070: result: $cf_with_db_install" >&5
3071 echo "${ECHO_T}$cf_with_db_install" >&6
3073 echo "$as_me:3073: checking if you want to install manpages" >&5
3074 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3076 # Check whether --with-manpages or --without-manpages was given.
3077 if test "${with_manpages+set}" = set; then
3078 withval="$with_manpages"
3079 cf_with_manpages=$withval
3081 cf_with_manpages=yes
3083 echo "$as_me:3083: result: $cf_with_manpages" >&5
3084 echo "${ECHO_T}$cf_with_manpages" >&6
3086 echo "$as_me:3086: checking if you want to build programs such as tic" >&5
3087 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3089 # Check whether --with-progs or --without-progs was given.
3090 if test "${with_progs+set}" = set; then
3091 withval="$with_progs"
3092 cf_with_progs=$withval
3096 echo "$as_me:3096: result: $cf_with_progs" >&5
3097 echo "${ECHO_T}$cf_with_progs" >&6
3099 echo "$as_me:3099: checking if you want to build test-programs" >&5
3100 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3102 # Check whether --with-tests or --without-tests was given.
3103 if test "${with_tests+set}" = set; then
3104 withval="$with_tests"
3105 cf_with_tests=$withval
3109 echo "$as_me:3109: result: $cf_with_tests" >&5
3110 echo "${ECHO_T}$cf_with_tests" >&6
3112 echo "$as_me:3112: checking if you wish to install curses.h" >&5
3113 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3115 # Check whether --with-curses-h or --without-curses-h was given.
3116 if test "${with_curses_h+set}" = set; then
3117 withval="$with_curses_h"
3118 with_curses_h=$withval
3122 echo "$as_me:3122: result: $with_curses_h" >&5
3123 echo "${ECHO_T}$with_curses_h" >&6
3125 modules_to_build="ncurses"
3126 if test "X$cf_with_progs" != Xno ; then
3127 modules_to_build="$modules_to_build progs tack"
3129 modules_to_build="$modules_to_build panel menu form"
3131 test "$program_prefix" != NONE &&
3132 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3133 # Use a double $ so make ignores it.
3134 test "$program_suffix" != NONE &&
3135 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3136 # Double any \ or $. echo might interpret backslashes.
3137 # By default was `s,x,x', remove it if useless.
3138 cat <<\_ACEOF >conftest.sed
3139 s/[\\$]/&&/g;s/;s,x,x,$//
3141 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3144 for ac_prog in mawk gawk nawk awk
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 echo "$as_me:3148: checking for $ac_word" >&5
3149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3150 if test "${ac_cv_prog_AWK+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 if test -n "$AWK"; then
3154 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3156 ac_save_IFS=$IFS; IFS=$ac_path_separator
3158 for ac_dir in $ac_dummy; do
3160 test -z "$ac_dir" && ac_dir=.
3161 $as_executable_p "$ac_dir/$ac_word" || continue
3162 ac_cv_prog_AWK="$ac_prog"
3163 echo "$as_me:3163: found $ac_dir/$ac_word" >&5
3170 if test -n "$AWK"; then
3171 echo "$as_me:3171: result: $AWK" >&5
3172 echo "${ECHO_T}$AWK" >&6
3174 echo "$as_me:3174: result: no" >&5
3175 echo "${ECHO_T}no" >&6
3178 test -n "$AWK" && break
3181 test -z "$AWK" && { { echo "$as_me:3181: error: No awk program found" >&5
3182 echo "$as_me: error: No awk program found" >&2;}
3183 { (exit 1); exit 1; }; }
3185 echo "$as_me:3185: checking for egrep" >&5
3186 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3187 if test "${ac_cv_prog_egrep+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3191 then ac_cv_prog_egrep='grep -E'
3192 else ac_cv_prog_egrep='egrep'
3195 echo "$as_me:3195: result: $ac_cv_prog_egrep" >&5
3196 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3197 EGREP=$ac_cv_prog_egrep
3199 test -z "$EGREP" && { { echo "$as_me:3199: error: No egrep program found" >&5
3200 echo "$as_me: error: No egrep program found" >&2;}
3201 { (exit 1); exit 1; }; }
3203 # Find a good install program. We prefer a C program (faster),
3204 # so one script is as good as another. But avoid the broken or
3205 # incompatible versions:
3206 # SysV /etc/install, /usr/sbin/install
3207 # SunOS /usr/etc/install
3208 # IRIX /sbin/install
3210 # AmigaOS /C/install, which installs bootblocks on floppy discs
3211 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3212 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3213 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3214 # ./install, which can be erroneously created by make from ./install.sh.
3215 echo "$as_me:3215: checking for a BSD compatible install" >&5
3216 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3217 if test -z "$INSTALL"; then
3218 if test "${ac_cv_path_install+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 ac_save_IFS=$IFS; IFS=$ac_path_separator
3222 for ac_dir in $PATH; do
3224 # Account for people who put trailing slashes in PATH elements.
3226 / | ./ | .// | /cC/* \
3227 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3230 # OSF1 and SCO ODT 3.0 have their own names for install.
3231 # Don't use installbsd from OSF since it installs stuff as root
3233 for ac_prog in ginstall scoinst install; do
3234 if $as_executable_p "$ac_dir/$ac_prog"; then
3235 if test $ac_prog = install &&
3236 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3237 # AIX install. It has an incompatible calling convention.
3239 elif test $ac_prog = install &&
3240 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3241 # program-specific install script used by HP pwplus--don't use.
3244 ac_cv_path_install="$ac_dir/$ac_prog -c"
3254 if test "${ac_cv_path_install+set}" = set; then
3255 INSTALL=$ac_cv_path_install
3257 # As a last resort, use the slow shell script. We don't cache a
3258 # path for INSTALL within a source directory, because that will
3259 # break other packages using the cache if that directory is
3260 # removed, or if the path is relative.
3261 INSTALL=$ac_install_sh
3264 echo "$as_me:3264: result: $INSTALL" >&5
3265 echo "${ECHO_T}$INSTALL" >&6
3267 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3268 # It thinks the first close brace ends the variable substitution.
3269 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3271 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3273 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3279 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3280 test -z "$cf_dir" && cf_dir=.
3281 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3285 for ac_prog in tdlint lint alint splint lclint
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288 set dummy $ac_prog; ac_word=$2
3289 echo "$as_me:3289: checking for $ac_word" >&5
3290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291 if test "${ac_cv_prog_LINT+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 if test -n "$LINT"; then
3295 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3297 ac_save_IFS=$IFS; IFS=$ac_path_separator
3299 for ac_dir in $ac_dummy; do
3301 test -z "$ac_dir" && ac_dir=.
3302 $as_executable_p "$ac_dir/$ac_word" || continue
3303 ac_cv_prog_LINT="$ac_prog"
3304 echo "$as_me:3304: found $ac_dir/$ac_word" >&5
3310 LINT=$ac_cv_prog_LINT
3311 if test -n "$LINT"; then
3312 echo "$as_me:3312: result: $LINT" >&5
3313 echo "${ECHO_T}$LINT" >&6
3315 echo "$as_me:3315: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3319 test -n "$LINT" && break
3322 echo "$as_me:3322: checking whether ln -s works" >&5
3323 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3325 if test "$LN_S" = "ln -s"; then
3326 echo "$as_me:3326: result: yes" >&5
3327 echo "${ECHO_T}yes" >&6
3329 echo "$as_me:3329: result: no, using $LN_S" >&5
3330 echo "${ECHO_T}no, using $LN_S" >&6
3333 echo "$as_me:3333: checking if $LN_S -f options work" >&5
3334 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3336 rm -f conf$$.src conf$$dst
3338 echo first >conf$$.src
3339 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3344 rm -f conf$$.dst conf$$src
3345 echo "$as_me:3345: result: $cf_prog_ln_sf" >&5
3346 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3348 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3350 echo "$as_me:3350: checking for long file names" >&5
3351 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3352 if test "${ac_cv_sys_long_file_names+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 ac_cv_sys_long_file_names=yes
3356 # Test for long file names in all the places we know might matter:
3357 # . the current directory, where building will happen
3358 # $prefix/lib where we will be installing things
3359 # $exec_prefix/lib likewise
3360 # eval it to expand exec_prefix.
3361 # $TMPDIR if set, where it might want to write temporary files
3362 # if $TMPDIR is not set:
3363 # /tmp where it might want to write temporary files
3366 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3369 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3371 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3372 test -d $ac_dir || continue
3373 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3374 ac_xdir=$ac_dir/cf$$
3375 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3376 ac_tf1=$ac_xdir/conftest9012345
3377 ac_tf2=$ac_xdir/conftest9012346
3378 (echo 1 >$ac_tf1) 2>/dev/null
3379 (echo 2 >$ac_tf2) 2>/dev/null
3380 ac_val=`cat $ac_tf1 2>/dev/null`
3381 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3382 ac_cv_sys_long_file_names=no
3383 rm -rf $ac_xdir 2>/dev/null
3386 rm -rf $ac_xdir 2>/dev/null
3389 echo "$as_me:3389: result: $ac_cv_sys_long_file_names" >&5
3390 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3391 if test $ac_cv_sys_long_file_names = yes; then
3393 cat >>confdefs.h <<\EOF
3394 #define HAVE_LONG_FILE_NAMES 1
3399 # if we find pkg-config, check if we should install the ".pc" files.
3401 echo "$as_me:3401: checking if you want to use pkg-config" >&5
3402 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3404 # Check whether --with-pkg-config or --without-pkg-config was given.
3405 if test "${with_pkg_config+set}" = set; then
3406 withval="$with_pkg_config"
3407 cf_pkg_config=$withval
3411 echo "$as_me:3411: result: $cf_pkg_config" >&5
3412 echo "${ECHO_T}$cf_pkg_config" >&6
3414 case $cf_pkg_config in
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3423 echo "$as_me:3423: checking for $ac_word" >&5
3424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3433 ac_save_IFS=$IFS; IFS=$ac_path_separator
3435 for ac_dir in $ac_dummy; do
3437 test -z "$ac_dir" && ac_dir=.
3438 if $as_executable_p "$ac_dir/$ac_word"; then
3439 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3440 echo "$as_me:3440: found $ac_dir/$ac_word" >&5
3448 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3450 if test -n "$PKG_CONFIG"; then
3451 echo "$as_me:3451: result: $PKG_CONFIG" >&5
3452 echo "${ECHO_T}$PKG_CONFIG" >&6
3454 echo "$as_me:3454: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3459 if test -z "$ac_cv_path_PKG_CONFIG"; then
3460 ac_pt_PKG_CONFIG=$PKG_CONFIG
3461 # Extract the first word of "pkg-config", so it can be a program name with args.
3462 set dummy pkg-config; ac_word=$2
3463 echo "$as_me:3463: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3465 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 case $ac_pt_PKG_CONFIG in
3470 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3473 ac_save_IFS=$IFS; IFS=$ac_path_separator
3475 for ac_dir in $ac_dummy; do
3477 test -z "$ac_dir" && ac_dir=.
3478 if $as_executable_p "$ac_dir/$ac_word"; then
3479 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3480 echo "$as_me:3480: found $ac_dir/$ac_word" >&5
3485 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3489 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3491 if test -n "$ac_pt_PKG_CONFIG"; then
3492 echo "$as_me:3492: result: $ac_pt_PKG_CONFIG" >&5
3493 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3495 echo "$as_me:3495: result: no" >&5
3496 echo "${ECHO_T}no" >&6
3499 PKG_CONFIG=$ac_pt_PKG_CONFIG
3501 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3510 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3511 if test "$PKG_CONFIG" != none ; then
3513 if test "x$prefix" != xNONE; then
3514 cf_path_syntax="$prefix"
3516 cf_path_syntax="$ac_default_prefix"
3519 case ".$PKG_CONFIG" in
3524 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3526 (.\${*prefix}*|.\${*dir}*)
3527 eval PKG_CONFIG="$PKG_CONFIG"
3528 case ".$PKG_CONFIG" in
3530 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3535 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3538 { { echo "$as_me:3538: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3539 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3540 { (exit 1); exit 1; }; }
3544 elif test "x$cf_pkg_config" != xno ; then
3545 { echo "$as_me:3545: WARNING: pkg-config is not installed" >&5
3546 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3549 echo "$as_me:3549: checking for $PKG_CONFIG library directory" >&5
3550 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3551 if test "x$PKG_CONFIG" = xnone ; then
3552 PKG_CONFIG_LIBDIR=none
3555 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3556 if test "${with_pkg_config_libdir+set}" = set; then
3557 withval="$with_pkg_config_libdir"
3558 PKG_CONFIG_LIBDIR=$withval
3560 PKG_CONFIG_LIBDIR=yes
3564 case x$PKG_CONFIG_LIBDIR in
3568 # Look for the library directory using the same prefix as the executable
3569 if test "x$PKG_CONFIG" = xnone
3573 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3576 # If you don't like using the default architecture, you have to specify the
3577 # intended library directory and corresponding compiler/linker options.
3579 # This case allows for Debian's 2014-flavor of multiarch, along with the
3580 # most common variations before that point. Some other variants spell the
3581 # directory differently, e.g., "pkg-config", and put it in unusual places.
3582 # pkg-config has always been poorly standardized, which is ironic...
3583 case x`(arch) 2>/dev/null` in
3586 $cf_path/lib/*64-linux-gnu \
3594 $cf_path/lib/*-linux-gnu \
3602 test -n "$verbose" && echo " list..." 1>&6
3604 echo "${as_me:-configure}:3604: testing list... ..." 1>&5
3606 for cf_config in $cf_search_path
3608 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3610 echo "${as_me:-configure}:3610: testing checking $cf_config/pkgconfig ..." 1>&5
3612 if test -d $cf_config/pkgconfig
3614 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3615 echo "$as_me:3615: checking done" >&5
3616 echo $ECHO_N "checking done... $ECHO_C" >&6
3625 if test "x$PKG_CONFIG" != xnone ; then
3626 echo "$as_me:3626: result: $PKG_CONFIG_LIBDIR" >&5
3627 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3630 if test "x$PKG_CONFIG" != xnone
3632 echo "$as_me:3632: checking if we should install .pc files for $PKG_CONFIG" >&5
3633 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3635 echo "$as_me:3635: checking if we should install .pc files" >&5
3636 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3639 # Check whether --enable-pc-files or --disable-pc-files was given.
3640 if test "${enable_pc_files+set}" = set; then
3641 enableval="$enable_pc_files"
3642 enable_pc_files=$enableval
3646 echo "$as_me:3646: result: $enable_pc_files" >&5
3647 echo "${ECHO_T}$enable_pc_files" >&6
3649 if test "x$enable_pc_files" != xno
3651 case "x$PKG_CONFIG_LIBDIR" in
3653 { echo "$as_me:3653: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3654 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3659 if test "x$prefix" != xNONE; then
3660 cf_path_syntax="$prefix"
3662 cf_path_syntax="$ac_default_prefix"
3665 case ".$PKG_CONFIG_LIBDIR" in
3670 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3672 (.\${*prefix}*|.\${*dir}*)
3673 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3674 case ".$PKG_CONFIG_LIBDIR" in
3676 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3681 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3684 { { echo "$as_me:3684: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3685 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3686 { (exit 1); exit 1; }; }
3697 if test -z "$MAKE_PC_FILES"
3699 echo "$as_me:3699: checking for suffix to add to pc-files" >&5
3700 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3702 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3703 if test "${with_pc_suffix+set}" = set; then
3704 withval="$with_pc_suffix"
3709 (*) PC_MODULE_SUFFIX="$withval"
3713 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3714 echo "$as_me:3714: result: $PC_MODULE_SUFFIX" >&5
3715 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3716 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3720 echo "$as_me:3720: checking if we should assume mixed-case filenames" >&5
3721 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3723 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3724 if test "${enable_mixed_case+set}" = set; then
3725 enableval="$enable_mixed_case"
3726 enable_mixedcase=$enableval
3728 enable_mixedcase=auto
3730 echo "$as_me:3730: result: $enable_mixedcase" >&5
3731 echo "${ECHO_T}$enable_mixedcase" >&6
3732 if test "$enable_mixedcase" = "auto" ; then
3734 echo "$as_me:3734: checking if filesystem supports mixed-case filenames" >&5
3735 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3736 if test "${cf_cv_mixedcase+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test "$cross_compiling" = yes ; then
3741 case $target_alias in
3742 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3750 rm -f conftest CONFTEST
3752 if test -f CONFTEST ; then
3757 rm -f conftest CONFTEST
3761 echo "$as_me:3761: result: $cf_cv_mixedcase" >&5
3762 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3763 test "$cf_cv_mixedcase" = yes &&
3764 cat >>confdefs.h <<\EOF
3765 #define MIXEDCASE_FILENAMES 1
3769 cf_cv_mixedcase=$enable_mixedcase
3770 if test "x$enable_mixedcase" = "xyes" ; then
3772 cat >>confdefs.h <<\EOF
3773 #define MIXEDCASE_FILENAMES 1
3779 # do this after mixed-case option (tags/TAGS is not as important as tic).
3780 echo "$as_me:3780: checking whether ${MAKE-make} sets \${MAKE}" >&5
3781 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3782 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3783 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 cat >conftest.make <<\EOF
3788 @echo 'ac_maketemp="${MAKE}"'
3790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3791 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3792 if test -n "$ac_maketemp"; then
3793 eval ac_cv_prog_make_${ac_make}_set=yes
3795 eval ac_cv_prog_make_${ac_make}_set=no
3799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3800 echo "$as_me:3800: result: yes" >&5
3801 echo "${ECHO_T}yes" >&6
3804 echo "$as_me:3804: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3806 SET_MAKE="MAKE=${MAKE-make}"
3809 for ac_prog in exctags ctags
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 echo "$as_me:3813: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_CTAGS+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 if test -n "$CTAGS"; then
3819 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3821 ac_save_IFS=$IFS; IFS=$ac_path_separator
3823 for ac_dir in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir=.
3826 $as_executable_p "$ac_dir/$ac_word" || continue
3827 ac_cv_prog_CTAGS="$ac_prog"
3828 echo "$as_me:3828: found $ac_dir/$ac_word" >&5
3834 CTAGS=$ac_cv_prog_CTAGS
3835 if test -n "$CTAGS"; then
3836 echo "$as_me:3836: result: $CTAGS" >&5
3837 echo "${ECHO_T}$CTAGS" >&6
3839 echo "$as_me:3839: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3843 test -n "$CTAGS" && break
3846 for ac_prog in exetags etags
3848 # Extract the first word of "$ac_prog", so it can be a program name with args.
3849 set dummy $ac_prog; ac_word=$2
3850 echo "$as_me:3850: checking for $ac_word" >&5
3851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852 if test "${ac_cv_prog_ETAGS+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 if test -n "$ETAGS"; then
3856 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3858 ac_save_IFS=$IFS; IFS=$ac_path_separator
3860 for ac_dir in $ac_dummy; do
3862 test -z "$ac_dir" && ac_dir=.
3863 $as_executable_p "$ac_dir/$ac_word" || continue
3864 ac_cv_prog_ETAGS="$ac_prog"
3865 echo "$as_me:3865: found $ac_dir/$ac_word" >&5
3871 ETAGS=$ac_cv_prog_ETAGS
3872 if test -n "$ETAGS"; then
3873 echo "$as_me:3873: result: $ETAGS" >&5
3874 echo "${ECHO_T}$ETAGS" >&6
3876 echo "$as_me:3876: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3880 test -n "$ETAGS" && break
3883 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3884 set dummy ${CTAGS:-ctags}; ac_word=$2
3885 echo "$as_me:3885: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 if test -n "$MAKE_LOWER_TAGS"; then
3891 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3893 ac_save_IFS=$IFS; IFS=$ac_path_separator
3895 for ac_dir in $ac_dummy; do
3897 test -z "$ac_dir" && ac_dir=.
3898 $as_executable_p "$ac_dir/$ac_word" || continue
3899 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3900 echo "$as_me:3900: found $ac_dir/$ac_word" >&5
3904 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3907 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3908 if test -n "$MAKE_LOWER_TAGS"; then
3909 echo "$as_me:3909: result: $MAKE_LOWER_TAGS" >&5
3910 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3912 echo "$as_me:3912: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 if test "$cf_cv_mixedcase" = yes ; then
3917 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3918 set dummy ${ETAGS:-etags}; ac_word=$2
3919 echo "$as_me:3919: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 if test -n "$MAKE_UPPER_TAGS"; then
3925 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3927 ac_save_IFS=$IFS; IFS=$ac_path_separator
3929 for ac_dir in $ac_dummy; do
3931 test -z "$ac_dir" && ac_dir=.
3932 $as_executable_p "$ac_dir/$ac_word" || continue
3933 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3934 echo "$as_me:3934: found $ac_dir/$ac_word" >&5
3938 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3941 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3942 if test -n "$MAKE_UPPER_TAGS"; then
3943 echo "$as_me:3943: result: $MAKE_UPPER_TAGS" >&5
3944 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3946 echo "$as_me:3946: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3954 if test "$MAKE_UPPER_TAGS" = yes ; then
3960 if test "$MAKE_LOWER_TAGS" = yes ; then
3966 echo "$as_me:3966: checking for makeflags variable" >&5
3967 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3968 if test "${cf_cv_makeflags+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3975 cat >cf_makeflags.tmp <<CF_EOF
3978 @ echo '.$cf_option'
3980 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3981 case "$cf_result" in
3983 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3984 case "$cf_result" in
3985 (.*CC=*) cf_cv_makeflags=
3987 (*) cf_cv_makeflags=$cf_option
3993 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
3997 rm -f cf_makeflags.tmp
4000 echo "$as_me:4000: result: $cf_cv_makeflags" >&5
4001 echo "${ECHO_T}$cf_cv_makeflags" >&6
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4006 echo "$as_me:4006: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_RANLIB+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 if test -n "$RANLIB"; then
4012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4014 ac_save_IFS=$IFS; IFS=$ac_path_separator
4016 for ac_dir in $ac_dummy; do
4018 test -z "$ac_dir" && ac_dir=.
4019 $as_executable_p "$ac_dir/$ac_word" || continue
4020 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4021 echo "$as_me:4021: found $ac_dir/$ac_word" >&5
4027 RANLIB=$ac_cv_prog_RANLIB
4028 if test -n "$RANLIB"; then
4029 echo "$as_me:4029: result: $RANLIB" >&5
4030 echo "${ECHO_T}$RANLIB" >&6
4032 echo "$as_me:4032: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4037 if test -z "$ac_cv_prog_RANLIB"; then
4038 ac_ct_RANLIB=$RANLIB
4039 # Extract the first word of "ranlib", so it can be a program name with args.
4040 set dummy ranlib; ac_word=$2
4041 echo "$as_me:4041: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test -n "$ac_ct_RANLIB"; then
4047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4049 ac_save_IFS=$IFS; IFS=$ac_path_separator
4051 for ac_dir in $ac_dummy; do
4053 test -z "$ac_dir" && ac_dir=.
4054 $as_executable_p "$ac_dir/$ac_word" || continue
4055 ac_cv_prog_ac_ct_RANLIB="ranlib"
4056 echo "$as_me:4056: found $ac_dir/$ac_word" >&5
4060 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4064 if test -n "$ac_ct_RANLIB"; then
4065 echo "$as_me:4065: result: $ac_ct_RANLIB" >&5
4066 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4068 echo "$as_me:4068: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4072 RANLIB=$ac_ct_RANLIB
4074 RANLIB="$ac_cv_prog_RANLIB"
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}ld; ac_word=$2
4080 echo "$as_me:4080: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_prog_LD+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 if test -n "$LD"; then
4086 ac_cv_prog_LD="$LD" # Let the user override the test.
4088 ac_save_IFS=$IFS; IFS=$ac_path_separator
4090 for ac_dir in $ac_dummy; do
4092 test -z "$ac_dir" && ac_dir=.
4093 $as_executable_p "$ac_dir/$ac_word" || continue
4094 ac_cv_prog_LD="${ac_tool_prefix}ld"
4095 echo "$as_me:4095: found $ac_dir/$ac_word" >&5
4102 if test -n "$LD"; then
4103 echo "$as_me:4103: result: $LD" >&5
4104 echo "${ECHO_T}$LD" >&6
4106 echo "$as_me:4106: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4111 if test -z "$ac_cv_prog_LD"; then
4113 # Extract the first word of "ld", so it can be a program name with args.
4114 set dummy ld; ac_word=$2
4115 echo "$as_me:4115: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 if test -n "$ac_ct_LD"; then
4121 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4123 ac_save_IFS=$IFS; IFS=$ac_path_separator
4125 for ac_dir in $ac_dummy; do
4127 test -z "$ac_dir" && ac_dir=.
4128 $as_executable_p "$ac_dir/$ac_word" || continue
4129 ac_cv_prog_ac_ct_LD="ld"
4130 echo "$as_me:4130: found $ac_dir/$ac_word" >&5
4134 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4137 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4138 if test -n "$ac_ct_LD"; then
4139 echo "$as_me:4139: result: $ac_ct_LD" >&5
4140 echo "${ECHO_T}$ac_ct_LD" >&6
4142 echo "$as_me:4142: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}ar; ac_word=$2
4154 echo "$as_me:4154: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_AR+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$AR"; then
4160 ac_cv_prog_AR="$AR" # Let the user override the test.
4162 ac_save_IFS=$IFS; IFS=$ac_path_separator
4164 for ac_dir in $ac_dummy; do
4166 test -z "$ac_dir" && ac_dir=.
4167 $as_executable_p "$ac_dir/$ac_word" || continue
4168 ac_cv_prog_AR="${ac_tool_prefix}ar"
4169 echo "$as_me:4169: found $ac_dir/$ac_word" >&5
4176 if test -n "$AR"; then
4177 echo "$as_me:4177: result: $AR" >&5
4178 echo "${ECHO_T}$AR" >&6
4180 echo "$as_me:4180: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4185 if test -z "$ac_cv_prog_AR"; then
4187 # Extract the first word of "ar", so it can be a program name with args.
4188 set dummy ar; ac_word=$2
4189 echo "$as_me:4189: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 if test -n "$ac_ct_AR"; then
4195 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4197 ac_save_IFS=$IFS; IFS=$ac_path_separator
4199 for ac_dir in $ac_dummy; do
4201 test -z "$ac_dir" && ac_dir=.
4202 $as_executable_p "$ac_dir/$ac_word" || continue
4203 ac_cv_prog_ac_ct_AR="ar"
4204 echo "$as_me:4204: found $ac_dir/$ac_word" >&5
4208 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4211 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4212 if test -n "$ac_ct_AR"; then
4213 echo "$as_me:4213: result: $ac_ct_AR" >&5
4214 echo "${ECHO_T}$ac_ct_AR" >&6
4216 echo "$as_me:4216: result: no" >&5
4217 echo "${ECHO_T}no" >&6
4225 if test -n "$ac_tool_prefix"; then
4226 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4227 set dummy ${ac_tool_prefix}nm; ac_word=$2
4228 echo "$as_me:4228: checking for $ac_word" >&5
4229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230 if test "${ac_cv_prog_NM+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if test -n "$NM"; then
4234 ac_cv_prog_NM="$NM" # Let the user override the test.
4236 ac_save_IFS=$IFS; IFS=$ac_path_separator
4238 for ac_dir in $ac_dummy; do
4240 test -z "$ac_dir" && ac_dir=.
4241 $as_executable_p "$ac_dir/$ac_word" || continue
4242 ac_cv_prog_NM="${ac_tool_prefix}nm"
4243 echo "$as_me:4243: found $ac_dir/$ac_word" >&5
4250 if test -n "$NM"; then
4251 echo "$as_me:4251: result: $NM" >&5
4252 echo "${ECHO_T}$NM" >&6
4254 echo "$as_me:4254: result: no" >&5
4255 echo "${ECHO_T}no" >&6
4259 if test -z "$ac_cv_prog_NM"; then
4261 # Extract the first word of "nm", so it can be a program name with args.
4262 set dummy nm; ac_word=$2
4263 echo "$as_me:4263: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 if test -n "$ac_ct_NM"; then
4269 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4271 ac_save_IFS=$IFS; IFS=$ac_path_separator
4273 for ac_dir in $ac_dummy; do
4275 test -z "$ac_dir" && ac_dir=.
4276 $as_executable_p "$ac_dir/$ac_word" || continue
4277 ac_cv_prog_ac_ct_NM="nm"
4278 echo "$as_me:4278: found $ac_dir/$ac_word" >&5
4282 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4285 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4286 if test -n "$ac_ct_NM"; then
4287 echo "$as_me:4287: result: $ac_ct_NM" >&5
4288 echo "${ECHO_T}$ac_ct_NM" >&6
4290 echo "$as_me:4290: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4299 if test -n "$ac_tool_prefix"; then
4300 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4301 set dummy ${ac_tool_prefix}ar; ac_word=$2
4302 echo "$as_me:4302: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4304 if test "${ac_cv_prog_AR+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 if test -n "$AR"; then
4308 ac_cv_prog_AR="$AR" # Let the user override the test.
4310 ac_save_IFS=$IFS; IFS=$ac_path_separator
4312 for ac_dir in $ac_dummy; do
4314 test -z "$ac_dir" && ac_dir=.
4315 $as_executable_p "$ac_dir/$ac_word" || continue
4316 ac_cv_prog_AR="${ac_tool_prefix}ar"
4317 echo "$as_me:4317: found $ac_dir/$ac_word" >&5
4324 if test -n "$AR"; then
4325 echo "$as_me:4325: result: $AR" >&5
4326 echo "${ECHO_T}$AR" >&6
4328 echo "$as_me:4328: result: no" >&5
4329 echo "${ECHO_T}no" >&6
4333 if test -z "$ac_cv_prog_AR"; then
4335 # Extract the first word of "ar", so it can be a program name with args.
4336 set dummy ar; ac_word=$2
4337 echo "$as_me:4337: checking for $ac_word" >&5
4338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4339 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 if test -n "$ac_ct_AR"; then
4343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4345 ac_save_IFS=$IFS; IFS=$ac_path_separator
4347 for ac_dir in $ac_dummy; do
4349 test -z "$ac_dir" && ac_dir=.
4350 $as_executable_p "$ac_dir/$ac_word" || continue
4351 ac_cv_prog_ac_ct_AR="ar"
4352 echo "$as_me:4352: found $ac_dir/$ac_word" >&5
4356 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4360 if test -n "$ac_ct_AR"; then
4361 echo "$as_me:4361: result: $ac_ct_AR" >&5
4362 echo "${ECHO_T}$ac_ct_AR" >&6
4364 echo "$as_me:4364: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4373 echo "$as_me:4373: checking for options to update archives" >&5
4374 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4375 if test "${cf_cv_ar_flags+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 cf_cv_ar_flags=unknown
4380 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4383 # check if $ARFLAGS already contains this choice
4384 if test "x$ARFLAGS" != "x" ; then
4385 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4386 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4392 rm -f conftest.$ac_cv_objext
4395 cat >conftest.$ac_ext <<EOF
4396 #line 4396 "configure"
4397 int testdata[3] = { 123, 456, 789 };
4399 if { (eval echo "$as_me:4399: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4402 echo "$as_me:4402: \$? = $ac_status" >&5
4403 (exit $ac_status); } ; then
4404 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4405 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4406 if test -f conftest.a ; then
4407 cf_cv_ar_flags=$cf_ar_flags
4411 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4413 echo "${as_me:-configure}:4413: testing cannot compile test-program ..." 1>&5
4418 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4421 echo "$as_me:4421: result: $cf_cv_ar_flags" >&5
4422 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4424 if test -n "$ARFLAGS" ; then
4425 if test -n "$cf_cv_ar_flags" ; then
4426 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4429 ARFLAGS=$cf_cv_ar_flags
4432 echo "$as_me:4432: checking if you have specified an install-prefix" >&5
4433 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4435 # Check whether --with-install-prefix or --without-install-prefix was given.
4436 if test "${with_install_prefix+set}" = set; then
4437 withval="$with_install_prefix"
4441 (*) DESTDIR="$withval"
4445 echo "$as_me:4445: result: $DESTDIR" >&5
4446 echo "${ECHO_T}$DESTDIR" >&6
4448 ###############################################################################
4450 # If we're cross-compiling, allow the user to override the tools and their
4451 # options. The configure script is oriented toward identifying the host
4452 # compiler, etc., but we need a build compiler to generate parts of the source.
4454 if test "$cross_compiling" = yes ; then
4456 # defaults that we might want to override
4457 : ${BUILD_CFLAGS:=''}
4458 : ${BUILD_CPPFLAGS:=''}
4459 : ${BUILD_LDFLAGS:=''}
4461 : ${BUILD_EXEEXT:='$x'}
4462 : ${BUILD_OBJEXT:='o'}
4464 # Check whether --with-build-cc or --without-build-cc was given.
4465 if test "${with_build_cc+set}" = set; then
4466 withval="$with_build_cc"
4469 for ac_prog in gcc cc cl
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 echo "$as_me:4473: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4475 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 if test -n "$BUILD_CC"; then
4479 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481 ac_save_IFS=$IFS; IFS=$ac_path_separator
4483 for ac_dir in $ac_dummy; do
4485 test -z "$ac_dir" && ac_dir=.
4486 $as_executable_p "$ac_dir/$ac_word" || continue
4487 ac_cv_prog_BUILD_CC="$ac_prog"
4488 echo "$as_me:4488: found $ac_dir/$ac_word" >&5
4494 BUILD_CC=$ac_cv_prog_BUILD_CC
4495 if test -n "$BUILD_CC"; then
4496 echo "$as_me:4496: result: $BUILD_CC" >&5
4497 echo "${ECHO_T}$BUILD_CC" >&6
4499 echo "$as_me:4499: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4503 test -n "$BUILD_CC" && break
4507 echo "$as_me:4507: checking for native build C compiler" >&5
4508 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4509 echo "$as_me:4509: result: $BUILD_CC" >&5
4510 echo "${ECHO_T}$BUILD_CC" >&6
4512 echo "$as_me:4512: checking for native build C preprocessor" >&5
4513 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4515 # Check whether --with-build-cpp or --without-build-cpp was given.
4516 if test "${with_build_cpp+set}" = set; then
4517 withval="$with_build_cpp"
4518 BUILD_CPP="$withval"
4520 BUILD_CPP='${BUILD_CC} -E'
4522 echo "$as_me:4522: result: $BUILD_CPP" >&5
4523 echo "${ECHO_T}$BUILD_CPP" >&6
4525 echo "$as_me:4525: checking for native build C flags" >&5
4526 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4528 # Check whether --with-build-cflags or --without-build-cflags was given.
4529 if test "${with_build_cflags+set}" = set; then
4530 withval="$with_build_cflags"
4531 BUILD_CFLAGS="$withval"
4533 echo "$as_me:4533: result: $BUILD_CFLAGS" >&5
4534 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4536 echo "$as_me:4536: checking for native build C preprocessor-flags" >&5
4537 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4539 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4540 if test "${with_build_cppflags+set}" = set; then
4541 withval="$with_build_cppflags"
4542 BUILD_CPPFLAGS="$withval"
4544 echo "$as_me:4544: result: $BUILD_CPPFLAGS" >&5
4545 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4547 echo "$as_me:4547: checking for native build linker-flags" >&5
4548 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4550 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4551 if test "${with_build_ldflags+set}" = set; then
4552 withval="$with_build_ldflags"
4553 BUILD_LDFLAGS="$withval"
4555 echo "$as_me:4555: result: $BUILD_LDFLAGS" >&5
4556 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4558 echo "$as_me:4558: checking for native build linker-libraries" >&5
4559 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4561 # Check whether --with-build-libs or --without-build-libs was given.
4562 if test "${with_build_libs+set}" = set; then
4563 withval="$with_build_libs"
4564 BUILD_LIBS="$withval"
4566 echo "$as_me:4566: result: $BUILD_LIBS" >&5
4567 echo "${ECHO_T}$BUILD_LIBS" >&6
4569 # this assumes we're on Unix.
4573 : ${BUILD_CC:='${CC}'}
4575 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4576 { { echo "$as_me:4576: error: Cross-build requires two compilers.
4577 Use --with-build-cc to specify the native compiler." >&5
4578 echo "$as_me: error: Cross-build requires two compilers.
4579 Use --with-build-cc to specify the native compiler." >&2;}
4580 { (exit 1); exit 1; }; }
4584 : ${BUILD_CC:='${CC}'}
4585 : ${BUILD_CPP:='${CPP}'}
4586 : ${BUILD_CFLAGS:='${CFLAGS}'}
4587 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4588 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4589 : ${BUILD_LIBS:='${LIBS}'}
4590 : ${BUILD_EXEEXT:='$x'}
4591 : ${BUILD_OBJEXT:='o'}
4594 ###############################################################################
4596 ### Options to allow the user to specify the set of libraries which are used.
4597 ### Use "--without-normal --with-shared" to allow the default model to be
4598 ### shared, for example.
4601 echo "$as_me:4601: checking if libtool -version-number should be used" >&5
4602 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4604 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4605 if test "${enable_libtool_version+set}" = set; then
4606 enableval="$enable_libtool_version"
4607 test "$enableval" != no && enableval=yes
4608 if test "$enableval" != "yes" ; then
4609 cf_libtool_version=no
4611 cf_libtool_version=yes
4615 cf_libtool_version=yes
4618 echo "$as_me:4618: result: $cf_libtool_version" >&5
4619 echo "${ECHO_T}$cf_libtool_version" >&6
4621 if test "$cf_libtool_version" = yes ; then
4622 LIBTOOL_VERSION="-version-number"
4624 LIBTOOL_VERSION="-version-info"
4627 { echo "$as_me:4627: WARNING: VERSION was not set" >&5
4628 echo "$as_me: WARNING: VERSION was not set" >&2;}
4631 ABI_VERSION="$VERSION"
4632 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4634 echo "${as_me:-configure}:4634: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4638 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4639 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4641 echo "${as_me:-configure}:4641: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4645 { echo "$as_me:4645: WARNING: unexpected VERSION value: $VERSION" >&5
4646 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4653 # common library maintenance symbols that are convenient for libtool scripts:
4654 LIB_CREATE='${AR} -cr'
4655 LIB_OBJECT='${OBJECTS}'
4659 # symbols used to prop libtool up to enable it to determine what it should be
4667 echo "$as_me:4667: checking if you want to build libraries with libtool" >&5
4668 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4670 # Check whether --with-libtool or --without-libtool was given.
4671 if test "${with_libtool+set}" = set; then
4672 withval="$with_libtool"
4673 with_libtool=$withval
4677 echo "$as_me:4677: result: $with_libtool" >&5
4678 echo "${ECHO_T}$with_libtool" >&6
4679 if test "$with_libtool" != "no"; then
4681 if test "$with_libtool" != "yes" ; then
4683 if test "x$prefix" != xNONE; then
4684 cf_path_syntax="$prefix"
4686 cf_path_syntax="$ac_default_prefix"
4689 case ".$with_libtool" in
4694 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4696 (.\${*prefix}*|.\${*dir}*)
4697 eval with_libtool="$with_libtool"
4698 case ".$with_libtool" in
4700 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4705 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4708 { { echo "$as_me:4708: error: expected a pathname, not \"$with_libtool\"" >&5
4709 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4710 { (exit 1); exit 1; }; }
4714 LIBTOOL=$with_libtool
4716 if test -n "$ac_tool_prefix"; then
4717 for ac_prog in libtool glibtool
4719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4721 echo "$as_me:4721: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4723 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 if test -n "$LIBTOOL"; then
4727 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4729 ac_save_IFS=$IFS; IFS=$ac_path_separator
4731 for ac_dir in $ac_dummy; do
4733 test -z "$ac_dir" && ac_dir=.
4734 $as_executable_p "$ac_dir/$ac_word" || continue
4735 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4736 echo "$as_me:4736: found $ac_dir/$ac_word" >&5
4742 LIBTOOL=$ac_cv_prog_LIBTOOL
4743 if test -n "$LIBTOOL"; then
4744 echo "$as_me:4744: result: $LIBTOOL" >&5
4745 echo "${ECHO_T}$LIBTOOL" >&6
4747 echo "$as_me:4747: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4751 test -n "$LIBTOOL" && break
4754 if test -z "$LIBTOOL"; then
4755 ac_ct_LIBTOOL=$LIBTOOL
4756 for ac_prog in libtool glibtool
4758 # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy $ac_prog; ac_word=$2
4760 echo "$as_me:4760: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4762 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 if test -n "$ac_ct_LIBTOOL"; then
4766 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4768 ac_save_IFS=$IFS; IFS=$ac_path_separator
4770 for ac_dir in $ac_dummy; do
4772 test -z "$ac_dir" && ac_dir=.
4773 $as_executable_p "$ac_dir/$ac_word" || continue
4774 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4775 echo "$as_me:4775: found $ac_dir/$ac_word" >&5
4781 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4782 if test -n "$ac_ct_LIBTOOL"; then
4783 echo "$as_me:4783: result: $ac_ct_LIBTOOL" >&5
4784 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4786 echo "$as_me:4786: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4790 test -n "$ac_ct_LIBTOOL" && break
4792 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4794 LIBTOOL=$ac_ct_LIBTOOL
4797 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4799 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
4801 cf_cv_libtool_version=
4803 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4805 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4808 unset ac_cv_prog_ac_ct_LIBTOOL
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in glibtool
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 echo "$as_me:4817: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$LIBTOOL"; then
4823 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4825 ac_save_IFS=$IFS; IFS=$ac_path_separator
4827 for ac_dir in $ac_dummy; do
4829 test -z "$ac_dir" && ac_dir=.
4830 $as_executable_p "$ac_dir/$ac_word" || continue
4831 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4832 echo "$as_me:4832: found $ac_dir/$ac_word" >&5
4838 LIBTOOL=$ac_cv_prog_LIBTOOL
4839 if test -n "$LIBTOOL"; then
4840 echo "$as_me:4840: result: $LIBTOOL" >&5
4841 echo "${ECHO_T}$LIBTOOL" >&6
4843 echo "$as_me:4843: result: no" >&5
4844 echo "${ECHO_T}no" >&6
4847 test -n "$LIBTOOL" && break
4850 if test -z "$LIBTOOL"; then
4851 ac_ct_LIBTOOL=$LIBTOOL