2 # From configure.in Revision: 1.590 .
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 --enable-mixed-case tic should assume mixed-case filenames
718 --with-install-prefix prefixes actual install-location ($DESTDIR)
719 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
720 --with-build-cc=XXX the build C compiler ($BUILD_CC)
721 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
722 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
723 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
724 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
725 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
726 Options to Specify the Libraries Built/Used:
727 --disable-libtool-version enable to use libtool's incompatible naming scheme
728 --with-libtool generate libraries with libtool
729 --with-shared generate shared-libraries
730 --with-normal generate normal-libraries (default)
731 --with-debug generate debug-libraries (default)
732 --with-profile generate profile-libraries
733 --with-cxx-shared generate C++ shared-libraries
734 --with-lib-prefix override library-prefix
735 --with-termlib generate separate terminfo library
736 --with-ticlib generate separate tic library
737 --with-gpm use Alessandro Rubini's GPM library
738 --without-dlsym do not use dlsym() to load GPM dynamically
739 --with-sysmouse use sysmouse (FreeBSD console)
740 --enable-rpath use rpath option when generating shared libraries
741 --disable-relink relink shared libraries during install
742 --with-shlib-version=X Specify rel or abi version for shared libs
743 --with-libtool-opts=XXX specify additional libtool options
744 --with-export-syms=XXX limit exported symbols using libtool
745 --with-versioned-syms=X markup versioned symbols using ld
746 --disable-lib-suffixes disable library suffixes
747 --disable-rpath-hack don't add rpath options for additional libraries
748 Fine-Tuning Your Configuration:
749 --disable-overwrite leave out the link to -lcurses
750 --disable-database do not use terminfo, only fallbacks/termcap
751 --with-database=XXX specify terminfo source to install
752 --with-hashed-db specify hashed-database library
753 --with-fallbacks=XXX specify list of fallback terminal descriptions
754 --without-xterm-new specify if xterm terminfo should be old version
755 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
756 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
757 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
758 --disable-big-core assume machine has little memory
759 --disable-big-strings assume compiler has only standard-size strings
760 --enable-termcap compile in termcap fallback support
761 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
762 --enable-getcap fast termcap load, no xrefs to terminfo
763 --enable-getcap-cache cache translated termcaps in ~/.terminfo
764 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
765 --disable-root-environ restrict environment when running as root
766 --enable-symlinks make tic use symbolic links not hard links
767 --enable-broken_linker compile with broken-linker support code
768 --enable-bsdpad recognize BSD-style prefix padding
769 --enable-widec compile with wide-char/UTF-8 code
770 --disable-lp64 allow chtype to be long (ignore _LP64)
771 --disable-largefile omit support for large files
772 --disable-tparm-varargs compile tparm() without varargs interface
773 --disable-tic-depends link tic library without explicit dependency on ncurses library
774 --with-bool=TYPE override fallback type of bool variable
775 --with-caps=alt compile with alternate Caps file
776 --with-chtype=TYPE override type of chtype
777 --with-ospeed=TYPE override type of ospeed variable
778 --with-mmask-t=TYPE override type of mmask_t
779 --with-ccharw-max=XXX override size CCHARW_MAX
780 --with-tparm-arg=TYPE override parameter type of tparm
781 --with-rcs-ids compile-in RCS identifiers
782 Options to Specify How Manpages are Installed:
783 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
784 optionally formatted/catonly, e.g., gzip,formatted
785 --with-manpage-renames specify manpage-renaming
786 --with-manpage-aliases specify manpage-aliases using .so
787 --with-manpage-symlinks specify manpage-aliases using symlinks
788 --with-manpage-tbl specify manpage processing with tbl
790 --disable-ext-funcs disable function-extensions
791 --enable-sp-funcs enable experimental SCREEN-extensions
792 --enable-term-driver enable experimental terminal-driver
793 --enable-const compile with extra/non-standard const
794 --enable-ext-colors compile for 256-color support
795 --enable-ext-mouse compile for extended mouse-encoding
796 --enable-no-padding compile with $NCURSES_NO_PADDING code
797 --enable-signed-char compile using signed Boolean's in term.h
798 --enable-sigwinch compile with SIGWINCH handler
799 --enable-tcap-names compile with user-definable terminal capabilities
801 --without-develop disable development options
802 --enable-hard-tabs compile with hard-tabs code
803 --enable-xmc-glitch compile with support for xmc (magic-cookie)
805 --disable-assumed-color do not assume anything about default-colors
806 --disable-hashmap compile without hashmap scrolling-optimization
807 --enable-colorfgbg compile-in experimental $COLORFGBG code
808 --enable-interop compile-in experimental interop bindings
809 --with-pthread use POSIX thread library
810 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
811 --enable-weak-symbols enable weak-symbols for pthreads
812 --enable-reentrant compile with experimental reentrant code
813 --with-wrap-prefix=XXX override prefix used for public variables
814 --enable-safe-sprintf compile with experimental safe-sprintf code
815 --disable-scroll-hints compile without scroll-hints code
816 --enable-wgetch-events compile with experimental wgetch-events code
817 Testing/development Options:
818 --disable-echo do not display "compiling" commands
819 --enable-warnings build: turn on GCC compiler warnings
820 --enable-string-hacks work around bogus compiler/loader warnings
821 --enable-assertions test: turn on generation of assertion code
822 --with-dmalloc test: use Gray Watson's dmalloc library
823 --with-dbmalloc test: use Conor Cahill's dbmalloc library
824 --with-valgrind test: use valgrind
825 --disable-leaks test: free permanent memory, analyze leaks
826 --enable-expanded test: generate functions for certain macros
827 --disable-macros test: use functions rather than macros
828 --with-trace test: add trace() function to all models of ncurses
829 --disable-gnat-projects test: disable GNAT projects even if usable
830 Ada95 Binding Options:
831 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
832 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
833 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
834 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
836 Some influential environment variables:
837 CC C compiler command
838 CFLAGS C compiler flags
839 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
840 nonstandard directory <lib dir>
841 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
842 headers in a nonstandard directory <include dir>
844 CXX C++ compiler command
845 CXXFLAGS C++ compiler flags
846 CXXCPP C++ preprocessor
848 Use these variables to override the choices made by `configure' or to help
849 it to find libraries and programs with nonstandard names/locations.
854 if test "$ac_init_help" = "recursive"; then
855 # If there are subdirs, report their specific --help.
857 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
859 # A "../" for each directory in /$ac_subdir.
860 ac_dots=`echo $ac_subdir |
861 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
864 .) # No --srcdir option. We are building in place.
865 ac_sub_srcdir=$srcdir ;;
866 [\\/]* | ?:[\\/]* ) # Absolute path.
867 ac_sub_srcdir=$srcdir/$ac_subdir ;;
869 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
872 # Check for guested configure; otherwise get Cygnus style configure.
873 if test -f $ac_sub_srcdir/configure.gnu; then
875 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
876 elif test -f $ac_sub_srcdir/configure; then
878 $SHELL $ac_sub_srcdir/configure --help=recursive
879 elif test -f $ac_sub_srcdir/configure.ac ||
880 test -f $ac_sub_srcdir/configure.in; then
884 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
890 test -n "$ac_init_help" && exit 0
891 if $ac_init_version; then
894 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
895 Free Software Foundation, Inc.
896 This configure script is free software; the Free Software Foundation
897 gives unlimited permission to copy, distribute and modify it.
903 This file contains any messages produced by compilers while
904 running configure, to aid debugging if configure makes a mistake.
906 It was created by $as_me, which was
907 generated by GNU Autoconf 2.52.20141204. Invocation command line was
918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
930 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
947 # Keep a trace of the command line.
948 # Strip out --no-create and --no-recursion so they do not pile up.
949 # Also quote any args containing shell meta-characters.
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c) ;;
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
959 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
960 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
961 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
963 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
966 # Get rid of the leading space.
969 # When interrupted or exit'd, cleanup temporary files, and complete
970 # config.log. We remove comments because anyway the quotes in there
971 # would cause problems or look ugly.
973 # Save into config.log some information that might help in debugging.
975 echo "## ----------------- ##" >&5
976 echo "## Cache variables. ##" >&5
977 echo "## ----------------- ##" >&5
979 # The following way of writing the cache mishandles newlines in values,
982 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
985 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
990 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
994 sed "/^$/d" confdefs.h >conftest.log
995 if test -s conftest.log; then
997 echo "## ------------ ##" >&5
998 echo "## confdefs.h. ##" >&5
999 echo "## ------------ ##" >&5
1001 cat conftest.log >&5
1004 test "$ac_signal" != 0 &&
1005 echo "$as_me: caught signal $ac_signal" >&5
1006 echo "$as_me: exit $exit_status" >&5
1007 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1010 for ac_signal in 1 2 13 15; do
1011 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1015 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1016 rm -rf conftest* confdefs.h
1017 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1020 # Let the site file select an alternate cache file if it wants to.
1021 # Prefer explicitly selected file to automatically selected ones.
1022 if test -z "$CONFIG_SITE"; then
1023 if test "x$prefix" != xNONE; then
1024 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1026 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1029 for ac_site_file in $CONFIG_SITE; do
1030 if test -r "$ac_site_file"; then
1031 { echo "$as_me:1031: loading site script $ac_site_file" >&5
1032 echo "$as_me: loading site script $ac_site_file" >&6;}
1033 cat "$ac_site_file" >&5
1038 if test -r "$cache_file"; then
1039 # Some versions of bash will fail to source /dev/null (special
1040 # files actually), so we avoid doing that.
1041 if test -f "$cache_file"; then
1042 { echo "$as_me:1042: loading cache $cache_file" >&5
1043 echo "$as_me: loading cache $cache_file" >&6;}
1045 [\\/]* | ?:[\\/]* ) . $cache_file;;
1046 *) . ./$cache_file;;
1050 { echo "$as_me:1050: creating cache $cache_file" >&5
1051 echo "$as_me: creating cache $cache_file" >&6;}
1055 # Check that the precious variables saved in the cache have kept the same
1057 ac_cache_corrupted=false
1058 for ac_var in `(set) 2>&1 |
1059 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1060 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1061 eval ac_new_set=\$ac_env_${ac_var}_set
1062 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1063 eval ac_new_val="\$ac_env_${ac_var}_value"
1064 case $ac_old_set,$ac_new_set in
1066 { echo "$as_me:1066: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1067 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1068 ac_cache_corrupted=: ;;
1070 { echo "$as_me:1070: error: \`$ac_var' was not set in the previous run" >&5
1071 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1072 ac_cache_corrupted=: ;;
1075 if test "x$ac_old_val" != "x$ac_new_val"; then
1076 { echo "$as_me:1076: error: \`$ac_var' has changed since the previous run:" >&5
1077 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1078 { echo "$as_me:1078: former value: $ac_old_val" >&5
1079 echo "$as_me: former value: $ac_old_val" >&2;}
1080 { echo "$as_me:1080: current value: $ac_new_val" >&5
1081 echo "$as_me: current value: $ac_new_val" >&2;}
1082 ac_cache_corrupted=:
1085 # Pass precious variables to config.status. It doesn't matter if
1086 # we pass some twice (in addition to the command line arguments).
1087 if test "$ac_new_set" = set; then
1089 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1090 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1091 ac_configure_args="$ac_configure_args '$ac_arg'"
1093 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1098 if $ac_cache_corrupted; then
1099 { echo "$as_me:1099: error: changes in the environment can compromise the build" >&5
1100 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1101 { { echo "$as_me:1101: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1102 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1103 { (exit 1); exit 1; }; }
1107 ac_cpp='$CPP $CPPFLAGS'
1108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1111 ac_main_return=return
1113 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1114 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1116 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1117 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1119 echo "#! $SHELL" >conftest.sh
1120 echo "exit 0" >>conftest.sh
1121 chmod +x conftest.sh
1122 if { (echo "$as_me:1122: PATH=\".;.\"; conftest.sh") >&5
1123 (PATH=".;."; conftest.sh) 2>&5
1125 echo "$as_me:1125: \$? = $ac_status" >&5
1126 (exit $ac_status); }; then
1127 ac_path_separator=';'
1131 PATH_SEPARATOR="$ac_path_separator"
1134 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1138 echo "$as_me:1138: checking for egrep" >&5
1139 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1140 if test "${ac_cv_prog_egrep+set}" = set; then
1141 echo $ECHO_N "(cached) $ECHO_C" >&6
1143 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1144 then ac_cv_prog_egrep='grep -E'
1145 else ac_cv_prog_egrep='egrep'
1148 echo "$as_me:1148: result: $ac_cv_prog_egrep" >&5
1149 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1150 EGREP=$ac_cv_prog_egrep
1152 test -z "$EGREP" && { { echo "$as_me:1152: error: No egrep program found" >&5
1153 echo "$as_me: error: No egrep program found" >&2;}
1154 { (exit 1); exit 1; }; }
1156 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1157 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1158 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1159 cf_cv_abi_version=${NCURSES_MAJOR}
1160 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1161 cf_cv_timestamp=`date`
1162 echo "$as_me:1162: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1163 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1165 if test -f $srcdir/VERSION ; then
1166 echo "$as_me:1166: checking for package version" >&5
1167 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1169 # if there are not enough fields, cut returns the last one...
1170 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1171 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1172 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1174 # this is how CF_BUNDLED_INTL uses $VERSION:
1175 VERSION="$cf_field1"
1177 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1178 test -z "$VERSION_MAJOR" && { { echo "$as_me:1178: error: missing major-version" >&5
1179 echo "$as_me: error: missing major-version" >&2;}
1180 { (exit 1); exit 1; }; }
1182 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1183 test -z "$VERSION_MINOR" && { { echo "$as_me:1183: error: missing minor-version" >&5
1184 echo "$as_me: error: missing minor-version" >&2;}
1185 { (exit 1); exit 1; }; }
1187 echo "$as_me:1187: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1188 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1190 echo "$as_me:1190: checking for package patch date" >&5
1191 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1192 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1193 case .$VERSION_PATCH in
1195 { { echo "$as_me:1195: error: missing patch-date $VERSION_PATCH" >&5
1196 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1197 { (exit 1); exit 1; }; }
1199 .[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1202 { { echo "$as_me:1202: error: illegal patch-date $VERSION_PATCH" >&5
1203 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1204 { (exit 1); exit 1; }; }
1207 echo "$as_me:1207: result: $VERSION_PATCH" >&5
1208 echo "${ECHO_T}$VERSION_PATCH" >&6
1210 { { echo "$as_me:1210: error: did not find $srcdir/VERSION" >&5
1211 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1212 { (exit 1); exit 1; }; }
1215 # show the actual data that we have for versions:
1216 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1218 echo "${as_me:-configure}:1218: testing ABI VERSION $VERSION ..." 1>&5
1220 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1222 echo "${as_me:-configure}:1222: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1224 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1226 echo "${as_me:-configure}:1226: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1228 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1230 echo "${as_me:-configure}:1230: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1235 cat >>confdefs.h <<EOF
1236 #define PACKAGE "$PACKAGE"
1239 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1241 cat >>confdefs.h <<EOF
1242 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1245 cat >>confdefs.h <<EOF
1246 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1249 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1251 # Check whether --with-rel-version or --without-rel-version was given.
1252 if test "${with_rel_version+set}" = set; then
1253 withval="$with_rel_version"
1254 { echo "$as_me:1254: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1255 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1256 cf_cv_rel_version=$withval
1259 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1260 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1262 if test -n "$NCURSES_MAJOR" ; then
1263 case $NCURSES_MAJOR in #(vi
1267 { { echo "$as_me:1267: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1268 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1269 { (exit 1); exit 1; }; }
1273 { { echo "$as_me:1273: error: Release major-version value is empty" >&5
1274 echo "$as_me: error: Release major-version value is empty" >&2;}
1275 { (exit 1); exit 1; }; }
1278 if test -n "$NCURSES_MINOR" ; then
1279 case $NCURSES_MINOR in #(vi
1283 { { echo "$as_me:1283: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1284 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1285 { (exit 1); exit 1; }; }
1289 { { echo "$as_me:1289: error: Release minor-version value is empty" >&5
1290 echo "$as_me: error: Release minor-version value is empty" >&2;}
1291 { (exit 1); exit 1; }; }
1294 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1296 # Check whether --with-abi-version or --without-abi-version was given.
1297 if test "${with_abi_version+set}" = set; then
1298 withval="$with_abi_version"
1299 { echo "$as_me:1299: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1300 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1301 cf_cv_abi_version=$withval
1304 if test -n "$cf_cv_abi_version" ; then
1305 case $cf_cv_abi_version in #(vi
1309 { { echo "$as_me:1309: error: ABI version is not a number: $cf_cv_abi_version" >&5
1310 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1311 { (exit 1); exit 1; }; }
1315 { { echo "$as_me:1315: error: ABI version value is empty" >&5
1316 echo "$as_me: error: ABI version value is empty" >&2;}
1317 { (exit 1); exit 1; }; }
1321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1322 if test -f $ac_dir/install-sh; then
1324 ac_install_sh="$ac_aux_dir/install-sh -c"
1326 elif test -f $ac_dir/install.sh; then
1328 ac_install_sh="$ac_aux_dir/install.sh -c"
1330 elif test -f $ac_dir/shtool; then
1332 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 if test -z "$ac_aux_dir"; then
1337 { { echo "$as_me:1337: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1338 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1339 { (exit 1); exit 1; }; }
1341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345 # Make sure we can run config.sub.
1346 $ac_config_sub sun4 >/dev/null 2>&1 ||
1347 { { echo "$as_me:1347: error: cannot run $ac_config_sub" >&5
1348 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1349 { (exit 1); exit 1; }; }
1351 echo "$as_me:1351: checking build system type" >&5
1352 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1353 if test "${ac_cv_build+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 ac_cv_build_alias=$build_alias
1357 test -z "$ac_cv_build_alias" &&
1358 ac_cv_build_alias=`$ac_config_guess`
1359 test -z "$ac_cv_build_alias" &&
1360 { { echo "$as_me:1360: error: cannot guess build type; you must specify one" >&5
1361 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1362 { (exit 1); exit 1; }; }
1363 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1364 { { echo "$as_me:1364: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1365 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1366 { (exit 1); exit 1; }; }
1369 echo "$as_me:1369: result: $ac_cv_build" >&5
1370 echo "${ECHO_T}$ac_cv_build" >&6
1372 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376 echo "$as_me:1376: checking host system type" >&5
1377 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1378 if test "${ac_cv_host+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 ac_cv_host_alias=$host_alias
1382 test -z "$ac_cv_host_alias" &&
1383 ac_cv_host_alias=$ac_cv_build_alias
1384 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1385 { { echo "$as_me:1385: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1386 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1387 { (exit 1); exit 1; }; }
1390 echo "$as_me:1390: result: $ac_cv_host" >&5
1391 echo "${ECHO_T}$ac_cv_host" >&6
1393 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1394 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1395 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1398 echo "$as_me:1398: checking target system type" >&5
1399 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1400 if test "${ac_cv_target+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 ac_cv_target_alias=$target_alias
1404 test "x$ac_cv_target_alias" = "x" &&
1405 ac_cv_target_alias=$ac_cv_host_alias
1406 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1407 { { echo "$as_me:1407: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1412 echo "$as_me:1412: result: $ac_cv_target" >&5
1413 echo "${ECHO_T}$ac_cv_target" >&6
1414 target=$ac_cv_target
1415 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419 # The aliases save the names the user supplied, while $host etc.
1420 # will get canonicalized.
1421 test -n "$target_alias" &&
1422 test "$program_prefix$program_suffix$program_transform_name" = \
1424 program_prefix=${target_alias}-
1425 system_name="$host_os"
1427 system_name="`(uname -s -r) 2>/dev/null`"
1428 if test -z "$system_name" ; then
1429 system_name="`(hostname) 2>/dev/null`"
1432 test -n "$system_name" &&
1433 cat >>confdefs.h <<EOF
1434 #define SYSTEM_NAME "$system_name"
1437 if test "${cf_cv_system_name+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 cf_cv_system_name="$system_name"
1443 test -z "$system_name" && system_name="$cf_cv_system_name"
1444 test -n "$cf_cv_system_name" && echo "$as_me:1444: result: Configuring for $cf_cv_system_name" >&5
1445 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1447 if test ".$system_name" != ".$cf_cv_system_name" ; then
1448 echo "$as_me:1448: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1449 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1450 { { echo "$as_me:1450: error: \"Please remove config.cache and try again.\"" >&5
1451 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1452 { (exit 1); exit 1; }; }
1455 # Check whether --with-system-type or --without-system-type was given.
1456 if test "${with_system_type+set}" = set; then
1457 withval="$with_system_type"
1458 { echo "$as_me:1458: WARNING: overriding system type to $withval" >&5
1459 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1460 cf_cv_system_name=$withval
1465 ### Save the given $CFLAGS to allow user-override.
1466 cf_user_CFLAGS="$CFLAGS"
1468 ### Default install-location
1470 echo "$as_me:1470: checking for prefix" >&5
1471 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1472 if test "x$prefix" = "xNONE" ; then
1473 case "$cf_cv_system_name" in
1474 # non-vendor systems don't have a conflict
1475 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1478 *) prefix=$ac_default_prefix
1482 echo "$as_me:1482: result: $prefix" >&5
1483 echo "${ECHO_T}$prefix" >&6
1485 if test "x$prefix" = "xNONE" ; then
1486 echo "$as_me:1486: checking for default include-directory" >&5
1487 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1488 test -n "$verbose" && echo 1>&6
1491 $includedir/ncurses \
1493 $prefix/include/ncurses \
1494 /usr/local/include \
1495 /usr/local/include/ncurses \
1497 /usr/include/ncurses
1499 cf_dir=`eval echo $cf_symbol`
1500 if test -f $cf_dir/curses.h ; then
1501 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1502 includedir="$cf_symbol"
1503 test -n "$verbose" && echo $ac_n " found " 1>&6
1507 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1509 echo "$as_me:1509: result: $includedir" >&5
1510 echo "${ECHO_T}$includedir" >&6
1513 ### Checks for programs.
1515 # Check whether --with-ada or --without-ada was given.
1516 if test "${with_ada+set}" = set; then
1518 cf_with_ada=$withval
1522 if test "x$cf_with_ada" = xyes
1524 cf_PROG_CC="gnatgcc gcc cc"
1530 ac_cpp='$CPP $CPPFLAGS'
1531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1534 ac_main_return=return
1535 if test -n "$ac_tool_prefix"; then
1536 for ac_prog in $cf_PROG_CC
1538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1540 echo "$as_me:1540: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1548 ac_save_IFS=$IFS; IFS=$ac_path_separator
1550 for ac_dir in $ac_dummy; do
1552 test -z "$ac_dir" && ac_dir=.
1553 $as_executable_p "$ac_dir/$ac_word" || continue
1554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1555 echo "$as_me:1555: found $ac_dir/$ac_word" >&5
1562 if test -n "$CC"; then
1563 echo "$as_me:1563: result: $CC" >&5
1564 echo "${ECHO_T}$CC" >&6
1566 echo "$as_me:1566: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1570 test -n "$CC" && break
1573 if test -z "$CC"; then
1575 for ac_prog in $cf_PROG_CC
1577 # Extract the first word of "$ac_prog", so it can be a program name with args.
1578 set dummy $ac_prog; ac_word=$2
1579 echo "$as_me:1579: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 if test -n "$ac_ct_CC"; then
1585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587 ac_save_IFS=$IFS; IFS=$ac_path_separator
1589 for ac_dir in $ac_dummy; do
1591 test -z "$ac_dir" && ac_dir=.
1592 $as_executable_p "$ac_dir/$ac_word" || continue
1593 ac_cv_prog_ac_ct_CC="$ac_prog"
1594 echo "$as_me:1594: found $ac_dir/$ac_word" >&5
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602 echo "$as_me:1602: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1605 echo "$as_me:1605: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1609 test -n "$ac_ct_CC" && break
1615 test -z "$CC" && { { echo "$as_me:1615: error: no acceptable cc found in \$PATH" >&5
1616 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1617 { (exit 1); exit 1; }; }
1619 # Provide some information about the compiler.
1620 echo "$as_me:1620:" \
1621 "checking for C compiler version" >&5
1622 ac_compiler=`set X $ac_compile; echo $2`
1623 { (eval echo "$as_me:1623: \"$ac_compiler --version </dev/null >&5\"") >&5
1624 (eval $ac_compiler --version </dev/null >&5) 2>&5
1626 echo "$as_me:1626: \$? = $ac_status" >&5
1627 (exit $ac_status); }
1628 { (eval echo "$as_me:1628: \"$ac_compiler -v </dev/null >&5\"") >&5
1629 (eval $ac_compiler -v </dev/null >&5) 2>&5
1631 echo "$as_me:1631: \$? = $ac_status" >&5
1632 (exit $ac_status); }
1633 { (eval echo "$as_me:1633: \"$ac_compiler -V </dev/null >&5\"") >&5
1634 (eval $ac_compiler -V </dev/null >&5) 2>&5
1636 echo "$as_me:1636: \$? = $ac_status" >&5
1637 (exit $ac_status); }
1639 cat >conftest.$ac_ext <<_ACEOF
1640 #line 1640 "configure"
1641 #include "confdefs.h"
1651 ac_clean_files_save=$ac_clean_files
1652 ac_clean_files="$ac_clean_files a.out a.exe"
1653 # Try to create an executable without -o first, disregard a.out.
1654 # It will help us diagnose broken compilers, and finding out an intuition
1656 echo "$as_me:1656: checking for C compiler default output" >&5
1657 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1658 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1659 if { (eval echo "$as_me:1659: \"$ac_link_default\"") >&5
1660 (eval $ac_link_default) 2>&5
1662 echo "$as_me:1662: \$? = $ac_status" >&5
1663 (exit $ac_status); }; then
1664 # Find the output, starting from the most likely. This scheme is
1665 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1667 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1668 ls a.out conftest 2>/dev/null;
1669 ls a.* conftest.* 2>/dev/null`; do
1671 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1672 a.out ) # We found the default executable, but exeext='' is most
1675 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1676 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1683 echo "$as_me: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1685 { { echo "$as_me:1685: error: C compiler cannot create executables" >&5
1686 echo "$as_me: error: C compiler cannot create executables" >&2;}
1687 { (exit 77); exit 77; }; }
1690 ac_exeext=$ac_cv_exeext
1691 echo "$as_me:1691: result: $ac_file" >&5
1692 echo "${ECHO_T}$ac_file" >&6
1694 # Check the compiler produces executables we can run. If not, either
1695 # the compiler is broken, or we cross compile.
1696 echo "$as_me:1696: checking whether the C compiler works" >&5
1697 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1698 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1699 # If not cross compiling, check that we can run a simple program.
1700 if test "$cross_compiling" != yes; then
1701 if { ac_try='./$ac_file'
1702 { (eval echo "$as_me:1702: \"$ac_try\"") >&5
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); }; }; then
1709 if test "$cross_compiling" = maybe; then
1712 { { echo "$as_me:1712: error: cannot run C compiled programs.
1713 If you meant to cross compile, use \`--host'." >&5
1714 echo "$as_me: error: cannot run C compiled programs.
1715 If you meant to cross compile, use \`--host'." >&2;}
1716 { (exit 1); exit 1; }; }
1720 echo "$as_me:1720: result: yes" >&5
1721 echo "${ECHO_T}yes" >&6
1723 rm -f a.out a.exe conftest$ac_cv_exeext
1724 ac_clean_files=$ac_clean_files_save
1725 # Check the compiler produces executables we can run. If not, either
1726 # the compiler is broken, or we cross compile.
1727 echo "$as_me:1727: checking whether we are cross compiling" >&5
1728 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1729 echo "$as_me:1729: result: $cross_compiling" >&5
1730 echo "${ECHO_T}$cross_compiling" >&6
1732 echo "$as_me:1732: checking for executable suffix" >&5
1733 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1734 if { (eval echo "$as_me:1734: \"$ac_link\"") >&5
1735 (eval $ac_link) 2>&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); }; then
1739 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1740 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1741 # work properly (i.e., refer to `conftest.exe'), while it won't with
1743 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1753 { { echo "$as_me:1753: error: cannot compute EXEEXT: cannot compile and link" >&5
1754 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1755 { (exit 1); exit 1; }; }
1758 rm -f conftest$ac_cv_exeext
1759 echo "$as_me:1759: result: $ac_cv_exeext" >&5
1760 echo "${ECHO_T}$ac_cv_exeext" >&6
1762 rm -f conftest.$ac_ext
1763 EXEEXT=$ac_cv_exeext
1765 echo "$as_me:1765: checking for object suffix" >&5
1766 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1767 if test "${ac_cv_objext+set}" = set; then
1768 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 cat >conftest.$ac_ext <<_ACEOF
1771 #line 1771 "configure"
1772 #include "confdefs.h"
1782 rm -f conftest.o conftest.obj
1783 if { (eval echo "$as_me:1783: \"$ac_compile\"") >&5
1784 (eval $ac_compile) 2>&5
1786 echo "$as_me:1786: \$? = $ac_status" >&5
1787 (exit $ac_status); }; then
1788 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1790 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1796 echo "$as_me: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1798 { { echo "$as_me:1798: error: cannot compute OBJEXT: cannot compile" >&5
1799 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1800 { (exit 1); exit 1; }; }
1803 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1805 echo "$as_me:1805: result: $ac_cv_objext" >&5
1806 echo "${ECHO_T}$ac_cv_objext" >&6
1807 OBJEXT=$ac_cv_objext
1809 echo "$as_me:1809: checking whether we are using the GNU C compiler" >&5
1810 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1811 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 cat >conftest.$ac_ext <<_ACEOF
1815 #line 1815 "configure"
1816 #include "confdefs.h"
1829 rm -f conftest.$ac_objext
1830 if { (eval echo "$as_me:1830: \"$ac_compile\"") >&5
1831 (eval $ac_compile) 2>&5
1833 echo "$as_me:1833: \$? = $ac_status" >&5
1834 (exit $ac_status); } &&
1835 { ac_try='test -s conftest.$ac_objext'
1836 { (eval echo "$as_me:1836: \"$ac_try\"") >&5
1839 echo "$as_me:1839: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1843 echo "$as_me: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1847 rm -f conftest.$ac_objext conftest.$ac_ext
1848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1851 echo "$as_me:1851: result: $ac_cv_c_compiler_gnu" >&5
1852 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1853 GCC=`test $ac_compiler_gnu = yes && echo yes`
1854 ac_test_CFLAGS=${CFLAGS+set}
1855 ac_save_CFLAGS=$CFLAGS
1857 echo "$as_me:1857: checking whether $CC accepts -g" >&5
1858 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1859 if test "${ac_cv_prog_cc_g+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 cat >conftest.$ac_ext <<_ACEOF
1863 #line 1863 "configure"
1864 #include "confdefs.h"
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:1875: \"$ac_compile\"") >&5
1876 (eval $ac_compile) 2>&5
1878 echo "$as_me:1878: \$? = $ac_status" >&5
1879 (exit $ac_status); } &&
1880 { ac_try='test -s conftest.$ac_objext'
1881 { (eval echo "$as_me:1881: \"$ac_try\"") >&5
1884 echo "$as_me:1884: \$? = $ac_status" >&5
1885 (exit $ac_status); }; }; then
1888 echo "$as_me: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1892 rm -f conftest.$ac_objext conftest.$ac_ext
1894 echo "$as_me:1894: result: $ac_cv_prog_cc_g" >&5
1895 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1896 if test "$ac_test_CFLAGS" = set; then
1897 CFLAGS=$ac_save_CFLAGS
1898 elif test $ac_cv_prog_cc_g = yes; then
1899 if test "$GCC" = yes; then
1905 if test "$GCC" = yes; then
1911 # Some people use a C++ compiler to compile C. Since we use `exit',
1912 # in C++ we need to declare it. In case someone uses the same compiler
1913 # for both compiling C and C++ we need to have the C++ compiler decide
1914 # the declaration of exit, since it's the most demanding environment.
1915 cat >conftest.$ac_ext <<_ACEOF
1920 rm -f conftest.$ac_objext
1921 if { (eval echo "$as_me:1921: \"$ac_compile\"") >&5
1922 (eval $ac_compile) 2>&5
1924 echo "$as_me:1924: \$? = $ac_status" >&5
1925 (exit $ac_status); } &&
1926 { ac_try='test -s conftest.$ac_objext'
1927 { (eval echo "$as_me:1927: \"$ac_try\"") >&5
1930 echo "$as_me:1930: \$? = $ac_status" >&5
1931 (exit $ac_status); }; }; then
1932 for ac_declaration in \
1934 '#include <stdlib.h>' \
1935 'extern "C" void std::exit (int) throw (); using std::exit;' \
1936 'extern "C" void std::exit (int); using std::exit;' \
1937 'extern "C" void exit (int) throw ();' \
1938 'extern "C" void exit (int);' \
1941 cat >conftest.$ac_ext <<_ACEOF
1942 #line 1942 "configure"
1943 #include "confdefs.h"
1954 rm -f conftest.$ac_objext
1955 if { (eval echo "$as_me:1955: \"$ac_compile\"") >&5
1956 (eval $ac_compile) 2>&5
1958 echo "$as_me:1958: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
1960 { ac_try='test -s conftest.$ac_objext'
1961 { (eval echo "$as_me:1961: \"$ac_try\"") >&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1968 echo "$as_me: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1972 rm -f conftest.$ac_objext conftest.$ac_ext
1973 cat >conftest.$ac_ext <<_ACEOF
1974 #line 1974 "configure"
1975 #include "confdefs.h"
1985 rm -f conftest.$ac_objext
1986 if { (eval echo "$as_me:1986: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>&5
1989 echo "$as_me:1989: \$? = $ac_status" >&5
1990 (exit $ac_status); } &&
1991 { ac_try='test -s conftest.$ac_objext'
1992 { (eval echo "$as_me:1992: \"$ac_try\"") >&5
1995 echo "$as_me:1995: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
1999 echo "$as_me: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2002 rm -f conftest.$ac_objext conftest.$ac_ext
2005 if test -n "$ac_declaration"; then
2006 echo '#ifdef __cplusplus' >>confdefs.h
2007 echo $ac_declaration >>confdefs.h
2008 echo '#endif' >>confdefs.h
2012 echo "$as_me: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2015 rm -f conftest.$ac_objext conftest.$ac_ext
2017 ac_cpp='$CPP $CPPFLAGS'
2018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021 ac_main_return=return
2024 if test "$GCC" = yes ; then
2025 echo "$as_me:2025: checking version of $CC" >&5
2026 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2027 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.].*//'`"
2028 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2029 echo "$as_me:2029: result: $GCC_VERSION" >&5
2030 echo "${ECHO_T}$GCC_VERSION" >&6
2033 echo "$as_me:2033: checking for $CC option to accept ANSI C" >&5
2034 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2035 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 ac_cv_prog_cc_stdc=no
2040 cat >conftest.$ac_ext <<_ACEOF
2041 #line 2041 "configure"
2042 #include "confdefs.h"
2045 #include <sys/types.h>
2046 #include <sys/stat.h>
2047 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2048 struct buf { int x; };
2049 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2050 static char *e (p, i)
2056 static char *f (char * (*g) (char **, int), char **p, ...)
2061 s = g (p, va_arg (v,int));
2065 int test (int i, double x);
2066 struct s1 {int (*f) (int a);};
2067 struct s2 {int (*f) (double a);};
2068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2074 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2079 # Don't try gcc -ansi; that turns off useful extensions and
2080 # breaks some systems' header files.
2081 # AIX -qlanglvl=ansi
2082 # Ultrix and OSF/1 -std1
2083 # HP-UX 10.20 and later -Ae
2084 # HP-UX older versions -Aa -D_HPUX_SOURCE
2085 # SVR4 -Xc -D__EXTENSIONS__
2086 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2088 CC="$ac_save_CC $ac_arg"
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:2090: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>&5
2093 echo "$as_me:2093: \$? = $ac_status" >&5
2094 (exit $ac_status); } &&
2095 { ac_try='test -s conftest.$ac_objext'
2096 { (eval echo "$as_me:2096: \"$ac_try\"") >&5
2099 echo "$as_me:2099: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2101 ac_cv_prog_cc_stdc=$ac_arg
2104 echo "$as_me: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2107 rm -f conftest.$ac_objext
2109 rm -f conftest.$ac_ext conftest.$ac_objext
2114 case "x$ac_cv_prog_cc_stdc" in
2116 echo "$as_me:2116: result: none needed" >&5
2117 echo "${ECHO_T}none needed" >&6 ;;
2119 echo "$as_me:2119: result: $ac_cv_prog_cc_stdc" >&5
2120 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2121 CC="$CC $ac_cv_prog_cc_stdc" ;;
2124 # This should have been defined by AC_PROG_CC
2127 echo "$as_me:2127: checking \$CC variable" >&5
2128 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2131 echo "$as_me:2131: result: broken" >&5
2132 echo "${ECHO_T}broken" >&6
2133 { echo "$as_me:2133: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2134 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2136 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2137 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2142 cf_new_extra_cppflags=
2144 for cf_add_cflags in $cf_flags
2146 case $cf_fix_cppflags in
2148 case $cf_add_cflags in #(vi
2149 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2150 case $cf_add_cflags in
2152 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2154 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2155 && test -z "${cf_tst_cflags}" \
2156 && cf_fix_cppflags=yes
2158 if test $cf_fix_cppflags = yes ; then
2159 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2161 elif test "${cf_tst_cflags}" = "\"'" ; then
2162 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2168 *$cf_add_cflags) #(vi
2171 case $cf_add_cflags in #(vi
2173 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2175 CPPFLAGS=`echo "$CPPFLAGS" | \
2176 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2177 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2181 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2186 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2191 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2193 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2195 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2196 && test -z "${cf_tst_cflags}" \
2197 && cf_fix_cppflags=no
2202 if test -n "$cf_new_cflags" ; then
2204 CFLAGS="$CFLAGS $cf_new_cflags"
2207 if test -n "$cf_new_cppflags" ; then
2209 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2212 if test -n "$cf_new_extra_cppflags" ; then
2214 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2219 echo "$as_me:2219: result: ok" >&5
2220 echo "${ECHO_T}ok" >&6
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 ac_main_return=return
2230 echo "$as_me:2230: checking how to run the C preprocessor" >&5
2231 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2232 # On Suns, sometimes $CPP names a directory.
2233 if test -n "$CPP" && test -d "$CPP"; then
2236 if test -z "$CPP"; then
2237 if test "${ac_cv_prog_CPP+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 # Double quotes because CPP needs to be expanded
2241 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2244 for ac_c_preproc_warn_flag in '' yes
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # On the NeXT, cc -E runs the code through the compiler's parser,
2249 # not just through cpp. "Syntax error" is here to catch this case.
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line 2251 "configure"
2252 #include "confdefs.h"
2256 if { (eval echo "$as_me:2256: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:2262: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2272 if test -z "$ac_cpp_err"; then
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Broken: fails on valid input.
2280 rm -f conftest.err conftest.$ac_ext
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line 2285 "configure"
2286 #include "confdefs.h"
2287 #include <ac_nonexistent.h>
2289 if { (eval echo "$as_me:2289: \"$ac_cpp conftest.$ac_ext\"") >&5
2290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2292 egrep -v '^ *\+' conftest.er1 >conftest.err
2294 cat conftest.err >&5
2295 echo "$as_me:2295: \$? = $ac_status" >&5
2296 (exit $ac_status); } >/dev/null; then
2297 if test -s conftest.err; then
2298 ac_cpp_err=$ac_c_preproc_warn_flag
2305 if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2315 rm -f conftest.err conftest.$ac_ext
2318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319 rm -f conftest.err conftest.$ac_ext
2320 if $ac_preproc_ok; then
2332 echo "$as_me:2332: result: $CPP" >&5
2333 echo "${ECHO_T}$CPP" >&6
2335 for ac_c_preproc_warn_flag in '' yes
2337 # Use a header file that comes with gcc, so configuring glibc
2338 # with a fresh cross-compiler works.
2339 # On the NeXT, cc -E runs the code through the compiler's parser,
2340 # not just through cpp. "Syntax error" is here to catch this case.
2341 cat >conftest.$ac_ext <<_ACEOF
2342 #line 2342 "configure"
2343 #include "confdefs.h"
2347 if { (eval echo "$as_me:2347: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2350 egrep -v '^ *\+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:2353: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2363 if test -z "$ac_cpp_err"; then
2366 echo "$as_me: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2368 # Broken: fails on valid input.
2371 rm -f conftest.err conftest.$ac_ext
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376 #line 2376 "configure"
2377 #include "confdefs.h"
2378 #include <ac_nonexistent.h>
2380 if { (eval echo "$as_me:2380: \"$ac_cpp conftest.$ac_ext\"") >&5
2381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 egrep -v '^ *\+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:2386: \$? = $ac_status" >&5
2387 (exit $ac_status); } >/dev/null; then
2388 if test -s conftest.err; then
2389 ac_cpp_err=$ac_c_preproc_warn_flag
2396 if test -z "$ac_cpp_err"; then
2397 # Broken: success on invalid input.
2400 echo "$as_me: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 # Passes both tests.
2406 rm -f conftest.err conftest.$ac_ext
2409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2410 rm -f conftest.err conftest.$ac_ext
2411 if $ac_preproc_ok; then
2414 { { echo "$as_me:2414: error: C preprocessor \"$CPP\" fails sanity check" >&5
2415 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2416 { (exit 1); exit 1; }; }
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424 ac_main_return=return
2426 if test $ac_cv_c_compiler_gnu = yes; then
2427 echo "$as_me:2427: checking whether $CC needs -traditional" >&5
2428 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2429 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 ac_pattern="Autoconf.*'x'"
2433 cat >conftest.$ac_ext <<_ACEOF
2434 #line 2434 "configure"
2435 #include "confdefs.h"
2437 int Autoconf = TIOCGETP;
2439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2440 egrep "$ac_pattern" >/dev/null 2>&1; then
2441 ac_cv_prog_gcc_traditional=yes
2443 ac_cv_prog_gcc_traditional=no
2447 if test $ac_cv_prog_gcc_traditional = no; then
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #line 2449 "configure"
2450 #include "confdefs.h"
2452 int Autoconf = TCGETA;
2454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2455 egrep "$ac_pattern" >/dev/null 2>&1; then
2456 ac_cv_prog_gcc_traditional=yes
2462 echo "$as_me:2462: result: $ac_cv_prog_gcc_traditional" >&5
2463 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2464 if test $ac_cv_prog_gcc_traditional = yes; then
2465 CC="$CC -traditional"
2469 echo "$as_me:2469: checking whether $CC understands -c and -o together" >&5
2470 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2471 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 cat > conftest.$ac_ext <<CF_EOF
2479 ${cf_cv_main_return:-return}(0);
2482 # We do the test twice because some compilers refuse to overwrite an
2483 # existing .o file with -o, though they will create one.
2484 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2485 if { (eval echo "$as_me:2485: \"$ac_try\"") >&5
2488 echo "$as_me:2488: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 test -f conftest2.$ac_objext && { (eval echo "$as_me:2490: \"$ac_try\"") >&5
2493 echo "$as_me:2493: \$? = $ac_status" >&5
2494 (exit $ac_status); };
2496 eval cf_cv_prog_CC_c_o=yes
2498 eval cf_cv_prog_CC_c_o=no
2503 if test $cf_cv_prog_CC_c_o = yes; then
2504 echo "$as_me:2504: result: yes" >&5
2505 echo "${ECHO_T}yes" >&6
2507 echo "$as_me:2507: result: no" >&5
2508 echo "${ECHO_T}no" >&6
2511 if test "$cross_compiling" = yes ; then
2514 case "$cf_cv_system_name" in #(vi
2515 dragonfly*|mirbsd*|freebsd*) #(vi
2516 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2518 *) LDPATH=$PATH:/sbin:/usr/sbin
2519 # Extract the first word of "ldconfig", so it can be a program name with args.
2520 set dummy ldconfig; ac_word=$2
2521 echo "$as_me:2521: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2531 ac_save_IFS=$IFS; IFS=$ac_path_separator
2533 for ac_dir in $ac_dummy; do
2535 test -z "$ac_dir" && ac_dir=.
2536 if $as_executable_p "$ac_dir/$ac_word"; then
2537 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2538 echo "$as_me:2538: found $ac_dir/$ac_word" >&5
2546 LDCONFIG=$ac_cv_path_LDCONFIG
2548 if test -n "$LDCONFIG"; then
2549 echo "$as_me:2549: result: $LDCONFIG" >&5
2550 echo "${ECHO_T}$LDCONFIG" >&6
2552 echo "$as_me:2552: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2560 echo "$as_me:2560: checking if you want to ensure bool is consistent with C++" >&5
2561 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2563 # Check whether --with-cxx or --without-cxx was given.
2564 if test "${with_cxx+set}" = set; then
2566 cf_with_cxx=$withval
2570 echo "$as_me:2570: result: $cf_with_cxx" >&5
2571 echo "${ECHO_T}$cf_with_cxx" >&6
2572 if test "X$cf_with_cxx" = Xno ; then
2576 # with autoconf 2.13, we can change the error to a warning:
2578 ac_cpp='$CXXCPP $CPPFLAGS'
2579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2582 ac_main_return=return
2583 if test -n "$ac_tool_prefix"; then
2584 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2588 echo "$as_me:2588: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2590 if test "${ac_cv_prog_CXX+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 if test -n "$CXX"; then
2594 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2596 ac_save_IFS=$IFS; IFS=$ac_path_separator
2598 for ac_dir in $ac_dummy; do
2600 test -z "$ac_dir" && ac_dir=.
2601 $as_executable_p "$ac_dir/$ac_word" || continue
2602 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2603 echo "$as_me:2603: found $ac_dir/$ac_word" >&5
2610 if test -n "$CXX"; then
2611 echo "$as_me:2611: result: $CXX" >&5
2612 echo "${ECHO_T}$CXX" >&6
2614 echo "$as_me:2614: result: no" >&5
2615 echo "${ECHO_T}no" >&6
2618 test -n "$CXX" && break
2621 if test -z "$CXX"; then
2623 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy $ac_prog; ac_word=$2
2627 echo "$as_me:2627: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2629 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 if test -n "$ac_ct_CXX"; then
2633 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2635 ac_save_IFS=$IFS; IFS=$ac_path_separator
2637 for ac_dir in $ac_dummy; do
2639 test -z "$ac_dir" && ac_dir=.
2640 $as_executable_p "$ac_dir/$ac_word" || continue
2641 ac_cv_prog_ac_ct_CXX="$ac_prog"
2642 echo "$as_me:2642: found $ac_dir/$ac_word" >&5
2648 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2649 if test -n "$ac_ct_CXX"; then
2650 echo "$as_me:2650: result: $ac_ct_CXX" >&5
2651 echo "${ECHO_T}$ac_ct_CXX" >&6
2653 echo "$as_me:2653: result: no" >&5
2654 echo "${ECHO_T}no" >&6
2657 test -n "$ac_ct_CXX" && break
2659 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2664 # Provide some information about the compiler.
2665 echo "$as_me:2665:" \
2666 "checking for C++ compiler version" >&5
2667 ac_compiler=`set X $ac_compile; echo $2`
2668 { (eval echo "$as_me:2668: \"$ac_compiler --version </dev/null >&5\"") >&5
2669 (eval $ac_compiler --version </dev/null >&5) 2>&5
2671 echo "$as_me:2671: \$? = $ac_status" >&5
2672 (exit $ac_status); }
2673 { (eval echo "$as_me:2673: \"$ac_compiler -v </dev/null >&5\"") >&5
2674 (eval $ac_compiler -v </dev/null >&5) 2>&5
2676 echo "$as_me:2676: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2678 { (eval echo "$as_me:2678: \"$ac_compiler -V </dev/null >&5\"") >&5
2679 (eval $ac_compiler -V </dev/null >&5) 2>&5
2681 echo "$as_me:2681: \$? = $ac_status" >&5
2682 (exit $ac_status); }
2684 echo "$as_me:2684: checking whether we are using the GNU C++ compiler" >&5
2685 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2686 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 cat >conftest.$ac_ext <<_ACEOF
2690 #line 2690 "configure"
2691 #include "confdefs.h"
2704 rm -f conftest.$ac_objext
2705 if { (eval echo "$as_me:2705: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>&5
2708 echo "$as_me:2708: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:2711: \"$ac_try\"") >&5
2714 echo "$as_me:2714: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2722 rm -f conftest.$ac_objext conftest.$ac_ext
2723 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2726 echo "$as_me:2726: result: $ac_cv_cxx_compiler_gnu" >&5
2727 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2728 GXX=`test $ac_compiler_gnu = yes && echo yes`
2729 ac_test_CXXFLAGS=${CXXFLAGS+set}
2730 ac_save_CXXFLAGS=$CXXFLAGS
2732 echo "$as_me:2732: checking whether $CXX accepts -g" >&5
2733 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2734 if test "${ac_cv_prog_cxx_g+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 cat >conftest.$ac_ext <<_ACEOF
2738 #line 2738 "configure"
2739 #include "confdefs.h"
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2753 echo "$as_me:2753: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:2756: \"$ac_try\"") >&5
2759 echo "$as_me:2759: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_prog_cxx_g=yes
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2767 rm -f conftest.$ac_objext conftest.$ac_ext
2769 echo "$as_me:2769: result: $ac_cv_prog_cxx_g" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2771 if test "$ac_test_CXXFLAGS" = set; then
2772 CXXFLAGS=$ac_save_CXXFLAGS
2773 elif test $ac_cv_prog_cxx_g = yes; then
2774 if test "$GXX" = yes; then
2780 if test "$GXX" = yes; then
2786 for ac_declaration in \
2788 '#include <stdlib.h>' \
2789 'extern "C" void std::exit (int) throw (); using std::exit;' \
2790 'extern "C" void std::exit (int); using std::exit;' \
2791 'extern "C" void exit (int) throw ();' \
2792 'extern "C" void exit (int);' \
2795 cat >conftest.$ac_ext <<_ACEOF
2796 #line 2796 "configure"
2797 #include "confdefs.h"
2808 rm -f conftest.$ac_objext
2809 if { (eval echo "$as_me:2809: \"$ac_compile\"") >&5
2810 (eval $ac_compile) 2>&5
2812 echo "$as_me:2812: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -s conftest.$ac_objext'
2815 { (eval echo "$as_me:2815: \"$ac_try\"") >&5
2818 echo "$as_me:2818: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2822 echo "$as_me: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2826 rm -f conftest.$ac_objext conftest.$ac_ext
2827 cat >conftest.$ac_ext <<_ACEOF
2828 #line 2828 "configure"
2829 #include "confdefs.h"
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:2840: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>&5
2843 echo "$as_me:2843: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:2846: \"$ac_try\"") >&5
2849 echo "$as_me:2849: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2853 echo "$as_me: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2856 rm -f conftest.$ac_objext conftest.$ac_ext
2859 if test -n "$ac_declaration"; then
2860 echo '#ifdef __cplusplus' >>confdefs.h
2861 echo $ac_declaration >>confdefs.h
2862 echo '#endif' >>confdefs.h
2866 ac_cpp='$CPP $CPPFLAGS'
2867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 ac_main_return=return
2873 ac_cpp='$CXXCPP $CPPFLAGS'
2874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2877 ac_main_return=return
2879 if test "x$cf_with_cxx" != xno
2881 # Several of the C++ configurations do not work, particularly when
2882 # cross-compiling (20140913 -TD)
2883 echo "$as_me:2883: checking if $CXX works" >&5
2884 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2886 save_CPPFLAGS="$CPPFLAGS"
2887 eval cf_includedir=${includedir}
2888 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2890 cat >conftest.$ac_ext <<_ACEOF
2891 #line 2891 "configure"
2892 #include "confdefs.h"
2901 printf("Hello world!\n")
2907 rm -f conftest.$ac_objext
2908 if { (eval echo "$as_me:2908: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>&5
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:2914: \"$ac_try\"") >&5
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2921 echo "$as_me: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2925 rm -f conftest.$ac_objext conftest.$ac_ext
2926 CPPFLAGS="$save_CPPFLAGS"
2928 echo "$as_me:2928: result: $cf_cxx_works" >&5
2929 echo "${ECHO_T}$cf_cxx_works" >&6
2930 if test "x$cf_cxx_works" = xno
2932 { echo "$as_me:2932: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
2933 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
2934 cf_with_cxx=no; CXX=""; GXX="";
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 ac_main_return=return
2944 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2945 if test "$CXX" = "g++" ; then
2946 # Extract the first word of "g++", so it can be a program name with args.
2947 set dummy g++; ac_word=$2
2948 echo "$as_me:2948: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2950 if test "${ac_cv_path_CXX+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2958 ac_save_IFS=$IFS; IFS=$ac_path_separator
2960 for ac_dir in $ac_dummy; do
2962 test -z "$ac_dir" && ac_dir=.
2963 if $as_executable_p "$ac_dir/$ac_word"; then
2964 ac_cv_path_CXX="$ac_dir/$ac_word"
2965 echo "$as_me:2965: found $ac_dir/$ac_word" >&5
2975 if test -n "$CXX"; then
2976 echo "$as_me:2976: result: $CXX" >&5
2977 echo "${ECHO_T}$CXX" >&6
2979 echo "$as_me:2979: result: no" >&5
2980 echo "${ECHO_T}no" >&6
2984 case "x$CXX" in #(vi
2986 { echo "$as_me:2986: WARNING: You don't have any C++ compiler, too bad" >&5
2987 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2988 cf_with_cxx=no; CXX=""; GXX="";
2994 if test "$GXX" = yes; then
2995 echo "$as_me:2995: checking version of ${CXX:-g++}" >&5
2996 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2997 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2998 test -z "$GXX_VERSION" && GXX_VERSION=unknown
2999 echo "$as_me:2999: result: $GXX_VERSION" >&5
3000 echo "${ECHO_T}$GXX_VERSION" >&6
3003 case $GXX_VERSION in
3005 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3007 { echo "$as_me:3007: WARNING: templates do not work" >&5
3008 echo "$as_me: WARNING: templates do not work" >&2;}
3012 echo "$as_me:3012: checking if you want to build C++ binding and demo" >&5
3013 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3015 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3016 if test "${with_cxx_binding+set}" = set; then
3017 withval="$with_cxx_binding"
3018 cf_with_cxx_binding=$withval
3020 cf_with_cxx_binding=$cf_with_cxx
3022 echo "$as_me:3022: result: $cf_with_cxx_binding" >&5
3023 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3025 echo "$as_me:3025: checking if you want to build with Ada95" >&5
3026 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3027 echo "$as_me:3027: result: $cf_with_ada" >&5
3028 echo "${ECHO_T}$cf_with_ada" >&6
3030 echo "$as_me:3030: checking if you want to install terminal database" >&5
3031 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3033 # Check whether --enable-db-install or --disable-db-install was given.
3034 if test "${enable_db_install+set}" = set; then
3035 enableval="$enable_db_install"
3036 cf_with_db_install=$enableval
3038 cf_with_db_install=yes
3040 echo "$as_me:3040: result: $cf_with_db_install" >&5
3041 echo "${ECHO_T}$cf_with_db_install" >&6
3043 echo "$as_me:3043: checking if you want to install manpages" >&5
3044 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3046 # Check whether --with-manpages or --without-manpages was given.
3047 if test "${with_manpages+set}" = set; then
3048 withval="$with_manpages"
3049 cf_with_manpages=$withval
3051 cf_with_manpages=yes
3053 echo "$as_me:3053: result: $cf_with_manpages" >&5
3054 echo "${ECHO_T}$cf_with_manpages" >&6
3056 echo "$as_me:3056: checking if you want to build programs such as tic" >&5
3057 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3059 # Check whether --with-progs or --without-progs was given.
3060 if test "${with_progs+set}" = set; then
3061 withval="$with_progs"
3062 cf_with_progs=$withval
3066 echo "$as_me:3066: result: $cf_with_progs" >&5
3067 echo "${ECHO_T}$cf_with_progs" >&6
3069 echo "$as_me:3069: checking if you want to build test-programs" >&5
3070 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3072 # Check whether --with-tests or --without-tests was given.
3073 if test "${with_tests+set}" = set; then
3074 withval="$with_tests"
3075 cf_with_tests=$withval
3079 echo "$as_me:3079: result: $cf_with_tests" >&5
3080 echo "${ECHO_T}$cf_with_tests" >&6
3082 echo "$as_me:3082: checking if you wish to install curses.h" >&5
3083 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3085 # Check whether --with-curses-h or --without-curses-h was given.
3086 if test "${with_curses_h+set}" = set; then
3087 withval="$with_curses_h"
3088 with_curses_h=$withval
3092 echo "$as_me:3092: result: $with_curses_h" >&5
3093 echo "${ECHO_T}$with_curses_h" >&6
3095 modules_to_build="ncurses"
3096 if test "X$cf_with_progs" != Xno ; then
3097 modules_to_build="$modules_to_build progs tack"
3099 modules_to_build="$modules_to_build panel menu form"
3101 test "$program_prefix" != NONE &&
3102 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3103 # Use a double $ so make ignores it.
3104 test "$program_suffix" != NONE &&
3105 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3106 # Double any \ or $. echo might interpret backslashes.
3107 # By default was `s,x,x', remove it if useless.
3108 cat <<\_ACEOF >conftest.sed
3109 s/[\\$]/&&/g;s/;s,x,x,$//
3111 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3114 for ac_prog in mawk gawk nawk awk
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 echo "$as_me:3118: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_AWK+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if test -n "$AWK"; then
3124 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3126 ac_save_IFS=$IFS; IFS=$ac_path_separator
3128 for ac_dir in $ac_dummy; do
3130 test -z "$ac_dir" && ac_dir=.
3131 $as_executable_p "$ac_dir/$ac_word" || continue
3132 ac_cv_prog_AWK="$ac_prog"
3133 echo "$as_me:3133: found $ac_dir/$ac_word" >&5
3140 if test -n "$AWK"; then
3141 echo "$as_me:3141: result: $AWK" >&5
3142 echo "${ECHO_T}$AWK" >&6
3144 echo "$as_me:3144: result: no" >&5
3145 echo "${ECHO_T}no" >&6
3148 test -n "$AWK" && break
3151 test -z "$AWK" && { { echo "$as_me:3151: error: No awk program found" >&5
3152 echo "$as_me: error: No awk program found" >&2;}
3153 { (exit 1); exit 1; }; }
3155 echo "$as_me:3155: checking for egrep" >&5
3156 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3157 if test "${ac_cv_prog_egrep+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3161 then ac_cv_prog_egrep='grep -E'
3162 else ac_cv_prog_egrep='egrep'
3165 echo "$as_me:3165: result: $ac_cv_prog_egrep" >&5
3166 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3167 EGREP=$ac_cv_prog_egrep
3169 test -z "$EGREP" && { { echo "$as_me:3169: error: No egrep program found" >&5
3170 echo "$as_me: error: No egrep program found" >&2;}
3171 { (exit 1); exit 1; }; }
3173 # Find a good install program. We prefer a C program (faster),
3174 # so one script is as good as another. But avoid the broken or
3175 # incompatible versions:
3176 # SysV /etc/install, /usr/sbin/install
3177 # SunOS /usr/etc/install
3178 # IRIX /sbin/install
3180 # AmigaOS /C/install, which installs bootblocks on floppy discs
3181 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3182 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3183 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3184 # ./install, which can be erroneously created by make from ./install.sh.
3185 echo "$as_me:3185: checking for a BSD compatible install" >&5
3186 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3187 if test -z "$INSTALL"; then
3188 if test "${ac_cv_path_install+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 ac_save_IFS=$IFS; IFS=$ac_path_separator
3192 for ac_dir in $PATH; do
3194 # Account for people who put trailing slashes in PATH elements.
3196 / | ./ | .// | /cC/* \
3197 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3200 # OSF1 and SCO ODT 3.0 have their own names for install.
3201 # Don't use installbsd from OSF since it installs stuff as root
3203 for ac_prog in ginstall scoinst install; do
3204 if $as_executable_p "$ac_dir/$ac_prog"; then
3205 if test $ac_prog = install &&
3206 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3207 # AIX install. It has an incompatible calling convention.
3209 elif test $ac_prog = install &&
3210 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3211 # program-specific install script used by HP pwplus--don't use.
3214 ac_cv_path_install="$ac_dir/$ac_prog -c"
3224 if test "${ac_cv_path_install+set}" = set; then
3225 INSTALL=$ac_cv_path_install
3227 # As a last resort, use the slow shell script. We don't cache a
3228 # path for INSTALL within a source directory, because that will
3229 # break other packages using the cache if that directory is
3230 # removed, or if the path is relative.
3231 INSTALL=$ac_install_sh
3234 echo "$as_me:3234: result: $INSTALL" >&5
3235 echo "${ECHO_T}$INSTALL" >&6
3237 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3238 # It thinks the first close brace ends the variable substitution.
3239 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3241 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3243 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3249 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3250 test -z "$cf_dir" && cf_dir=.
3251 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3255 for ac_prog in tdlint lint alint splint lclint
3257 # Extract the first word of "$ac_prog", so it can be a program name with args.
3258 set dummy $ac_prog; ac_word=$2
3259 echo "$as_me:3259: checking for $ac_word" >&5
3260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3261 if test "${ac_cv_prog_LINT+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 if test -n "$LINT"; then
3265 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3267 ac_save_IFS=$IFS; IFS=$ac_path_separator
3269 for ac_dir in $ac_dummy; do
3271 test -z "$ac_dir" && ac_dir=.
3272 $as_executable_p "$ac_dir/$ac_word" || continue
3273 ac_cv_prog_LINT="$ac_prog"
3274 echo "$as_me:3274: found $ac_dir/$ac_word" >&5
3280 LINT=$ac_cv_prog_LINT
3281 if test -n "$LINT"; then
3282 echo "$as_me:3282: result: $LINT" >&5
3283 echo "${ECHO_T}$LINT" >&6
3285 echo "$as_me:3285: result: no" >&5
3286 echo "${ECHO_T}no" >&6
3289 test -n "$LINT" && break
3292 echo "$as_me:3292: checking whether ln -s works" >&5
3293 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3295 if test "$LN_S" = "ln -s"; then
3296 echo "$as_me:3296: result: yes" >&5
3297 echo "${ECHO_T}yes" >&6
3299 echo "$as_me:3299: result: no, using $LN_S" >&5
3300 echo "${ECHO_T}no, using $LN_S" >&6
3303 echo "$as_me:3303: checking if $LN_S -f options work" >&5
3304 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3306 rm -f conf$$.src conf$$dst
3308 echo first >conf$$.src
3309 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3314 rm -f conf$$.dst conf$$src
3315 echo "$as_me:3315: result: $cf_prog_ln_sf" >&5
3316 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3318 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3320 echo "$as_me:3320: checking for long file names" >&5
3321 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3322 if test "${ac_cv_sys_long_file_names+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 ac_cv_sys_long_file_names=yes
3326 # Test for long file names in all the places we know might matter:
3327 # . the current directory, where building will happen
3328 # $prefix/lib where we will be installing things
3329 # $exec_prefix/lib likewise
3330 # eval it to expand exec_prefix.
3331 # $TMPDIR if set, where it might want to write temporary files
3332 # if $TMPDIR is not set:
3333 # /tmp where it might want to write temporary files
3336 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3339 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3341 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3342 test -d $ac_dir || continue
3343 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3344 ac_xdir=$ac_dir/cf$$
3345 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3346 ac_tf1=$ac_xdir/conftest9012345
3347 ac_tf2=$ac_xdir/conftest9012346
3348 (echo 1 >$ac_tf1) 2>/dev/null
3349 (echo 2 >$ac_tf2) 2>/dev/null
3350 ac_val=`cat $ac_tf1 2>/dev/null`
3351 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3352 ac_cv_sys_long_file_names=no
3353 rm -rf $ac_xdir 2>/dev/null
3356 rm -rf $ac_xdir 2>/dev/null
3359 echo "$as_me:3359: result: $ac_cv_sys_long_file_names" >&5
3360 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3361 if test $ac_cv_sys_long_file_names = yes; then
3363 cat >>confdefs.h <<\EOF
3364 #define HAVE_LONG_FILE_NAMES 1
3369 # if we find pkg-config, check if we should install the ".pc" files.
3371 echo "$as_me:3371: checking if you want to use pkg-config" >&5
3372 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3374 # Check whether --with-pkg-config or --without-pkg-config was given.
3375 if test "${with_pkg_config+set}" = set; then
3376 withval="$with_pkg_config"
3377 cf_pkg_config=$withval
3381 echo "$as_me:3381: result: $cf_pkg_config" >&5
3382 echo "${ECHO_T}$cf_pkg_config" >&6
3384 case $cf_pkg_config in #(vi
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3393 echo "$as_me:3393: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3403 ac_save_IFS=$IFS; IFS=$ac_path_separator
3405 for ac_dir in $ac_dummy; do
3407 test -z "$ac_dir" && ac_dir=.
3408 if $as_executable_p "$ac_dir/$ac_word"; then
3409 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3410 echo "$as_me:3410: found $ac_dir/$ac_word" >&5
3418 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3420 if test -n "$PKG_CONFIG"; then
3421 echo "$as_me:3421: result: $PKG_CONFIG" >&5
3422 echo "${ECHO_T}$PKG_CONFIG" >&6
3424 echo "$as_me:3424: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3429 if test -z "$ac_cv_path_PKG_CONFIG"; then
3430 ac_pt_PKG_CONFIG=$PKG_CONFIG
3431 # Extract the first word of "pkg-config", so it can be a program name with args.
3432 set dummy pkg-config; ac_word=$2
3433 echo "$as_me:3433: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 case $ac_pt_PKG_CONFIG in
3440 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3443 ac_save_IFS=$IFS; IFS=$ac_path_separator
3445 for ac_dir in $ac_dummy; do
3447 test -z "$ac_dir" && ac_dir=.
3448 if $as_executable_p "$ac_dir/$ac_word"; then
3449 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3450 echo "$as_me:3450: found $ac_dir/$ac_word" >&5
3455 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3459 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3461 if test -n "$ac_pt_PKG_CONFIG"; then
3462 echo "$as_me:3462: result: $ac_pt_PKG_CONFIG" >&5
3463 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3465 echo "$as_me:3465: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3469 PKG_CONFIG=$ac_pt_PKG_CONFIG
3471 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3480 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3481 if test "$PKG_CONFIG" != none ; then
3483 if test "x$prefix" != xNONE; then
3484 cf_path_syntax="$prefix"
3486 cf_path_syntax="$ac_default_prefix"
3489 case ".$PKG_CONFIG" in #(vi
3490 .\$\(*\)*|.\'*\'*) #(vi
3494 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3496 .\${*prefix}*|.\${*dir}*) #(vi
3497 eval PKG_CONFIG="$PKG_CONFIG"
3498 case ".$PKG_CONFIG" in #(vi
3500 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3505 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3508 { { echo "$as_me:3508: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3509 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3510 { (exit 1); exit 1; }; }
3516 if test "$PKG_CONFIG" != none ; then
3517 echo "$as_me:3517: checking for $PKG_CONFIG library directory" >&5
3518 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3520 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3521 if test "${with_pkg_config_libdir+set}" = set; then
3522 withval="$with_pkg_config_libdir"
3523 PKG_CONFIG_LIBDIR=$withval
3525 PKG_CONFIG_LIBDIR=yes
3528 case x$PKG_CONFIG_LIBDIR in #(vi
3532 # look for the library directory using the same prefix as the executable
3533 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3534 case x`(arch) 2>/dev/null` in #(vi
3536 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3538 if test -d $cf_config/pkgconfig
3540 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3546 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3554 echo "$as_me:3554: result: $PKG_CONFIG_LIBDIR" >&5
3555 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3558 if test "$PKG_CONFIG" != none ; then
3559 echo "$as_me:3559: checking if we should install .pc files for $PKG_CONFIG" >&5
3560 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3562 # Check whether --enable-pc-files or --disable-pc-files was given.
3563 if test "${enable_pc_files+set}" = set; then
3564 enableval="$enable_pc_files"
3565 enable_pc_files=$enableval
3569 echo "$as_me:3569: result: $enable_pc_files" >&5
3570 echo "${ECHO_T}$enable_pc_files" >&6
3571 if test "$enable_pc_files" != no
3574 if test "x$prefix" != xNONE; then
3575 cf_path_syntax="$prefix"
3577 cf_path_syntax="$ac_default_prefix"
3580 case ".$PKG_CONFIG_LIBDIR" in #(vi
3581 .\$\(*\)*|.\'*\'*) #(vi
3585 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3587 .\${*prefix}*|.\${*dir}*) #(vi
3588 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3589 case ".$PKG_CONFIG_LIBDIR" in #(vi
3591 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3596 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3599 { { echo "$as_me:3599: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3600 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3601 { (exit 1); exit 1; }; }
3610 echo "$as_me:3610: checking if we should assume mixed-case filenames" >&5
3611 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3613 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3614 if test "${enable_mixed_case+set}" = set; then
3615 enableval="$enable_mixed_case"
3616 enable_mixedcase=$enableval
3618 enable_mixedcase=auto
3620 echo "$as_me:3620: result: $enable_mixedcase" >&5
3621 echo "${ECHO_T}$enable_mixedcase" >&6
3622 if test "$enable_mixedcase" = "auto" ; then
3624 echo "$as_me:3624: checking if filesystem supports mixed-case filenames" >&5
3625 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3626 if test "${cf_cv_mixedcase+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 if test "$cross_compiling" = yes ; then
3631 case $target_alias in #(vi
3632 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
3640 rm -f conftest CONFTEST
3642 if test -f CONFTEST ; then
3647 rm -f conftest CONFTEST
3651 echo "$as_me:3651: result: $cf_cv_mixedcase" >&5
3652 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3653 test "$cf_cv_mixedcase" = yes &&
3654 cat >>confdefs.h <<\EOF
3655 #define MIXEDCASE_FILENAMES 1
3659 cf_cv_mixedcase=$enable_mixedcase
3660 if test "x$enable_mixedcase" = "xyes" ; then
3662 cat >>confdefs.h <<\EOF
3663 #define MIXEDCASE_FILENAMES 1
3669 # do this after mixed-case option (tags/TAGS is not as important as tic).
3670 echo "$as_me:3670: checking whether ${MAKE-make} sets \${MAKE}" >&5
3671 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3672 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3673 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 cat >conftest.make <<\EOF
3678 @echo 'ac_maketemp="${MAKE}"'
3680 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3681 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3682 if test -n "$ac_maketemp"; then
3683 eval ac_cv_prog_make_${ac_make}_set=yes
3685 eval ac_cv_prog_make_${ac_make}_set=no
3689 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3690 echo "$as_me:3690: result: yes" >&5
3691 echo "${ECHO_T}yes" >&6
3694 echo "$as_me:3694: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 SET_MAKE="MAKE=${MAKE-make}"
3699 for ac_prog in exctags ctags
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702 set dummy $ac_prog; ac_word=$2
3703 echo "$as_me:3703: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_CTAGS+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 if test -n "$CTAGS"; then
3709 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3711 ac_save_IFS=$IFS; IFS=$ac_path_separator
3713 for ac_dir in $ac_dummy; do
3715 test -z "$ac_dir" && ac_dir=.
3716 $as_executable_p "$ac_dir/$ac_word" || continue
3717 ac_cv_prog_CTAGS="$ac_prog"
3718 echo "$as_me:3718: found $ac_dir/$ac_word" >&5
3724 CTAGS=$ac_cv_prog_CTAGS
3725 if test -n "$CTAGS"; then
3726 echo "$as_me:3726: result: $CTAGS" >&5
3727 echo "${ECHO_T}$CTAGS" >&6
3729 echo "$as_me:3729: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3733 test -n "$CTAGS" && break
3736 for ac_prog in exetags etags
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy $ac_prog; ac_word=$2
3740 echo "$as_me:3740: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_prog_ETAGS+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 if test -n "$ETAGS"; then
3746 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3748 ac_save_IFS=$IFS; IFS=$ac_path_separator
3750 for ac_dir in $ac_dummy; do
3752 test -z "$ac_dir" && ac_dir=.
3753 $as_executable_p "$ac_dir/$ac_word" || continue
3754 ac_cv_prog_ETAGS="$ac_prog"
3755 echo "$as_me:3755: found $ac_dir/$ac_word" >&5
3761 ETAGS=$ac_cv_prog_ETAGS
3762 if test -n "$ETAGS"; then
3763 echo "$as_me:3763: result: $ETAGS" >&5
3764 echo "${ECHO_T}$ETAGS" >&6
3766 echo "$as_me:3766: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3770 test -n "$ETAGS" && break
3773 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3774 set dummy ${CTAGS:-ctags}; ac_word=$2
3775 echo "$as_me:3775: checking for $ac_word" >&5
3776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3777 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 if test -n "$MAKE_LOWER_TAGS"; then
3781 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3783 ac_save_IFS=$IFS; IFS=$ac_path_separator
3785 for ac_dir in $ac_dummy; do
3787 test -z "$ac_dir" && ac_dir=.
3788 $as_executable_p "$ac_dir/$ac_word" || continue
3789 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3790 echo "$as_me:3790: found $ac_dir/$ac_word" >&5
3794 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3797 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3798 if test -n "$MAKE_LOWER_TAGS"; then
3799 echo "$as_me:3799: result: $MAKE_LOWER_TAGS" >&5
3800 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3802 echo "$as_me:3802: result: no" >&5
3803 echo "${ECHO_T}no" >&6
3806 if test "$cf_cv_mixedcase" = yes ; then
3807 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3808 set dummy ${ETAGS:-etags}; ac_word=$2
3809 echo "$as_me:3809: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test -n "$MAKE_UPPER_TAGS"; then
3815 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3817 ac_save_IFS=$IFS; IFS=$ac_path_separator
3819 for ac_dir in $ac_dummy; do
3821 test -z "$ac_dir" && ac_dir=.
3822 $as_executable_p "$ac_dir/$ac_word" || continue
3823 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3824 echo "$as_me:3824: found $ac_dir/$ac_word" >&5
3828 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3831 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3832 if test -n "$MAKE_UPPER_TAGS"; then
3833 echo "$as_me:3833: result: $MAKE_UPPER_TAGS" >&5
3834 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3836 echo "$as_me:3836: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3844 if test "$MAKE_UPPER_TAGS" = yes ; then
3850 if test "$MAKE_LOWER_TAGS" = yes ; then
3856 echo "$as_me:3856: checking for makeflags variable" >&5
3857 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3858 if test "${cf_cv_makeflags+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3865 cat >cf_makeflags.tmp <<CF_EOF
3868 @ echo '.$cf_option'
3870 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3871 case "$cf_result" in
3873 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3874 case "$cf_result" in
3875 .*CC=*) cf_cv_makeflags=
3877 *) cf_cv_makeflags=$cf_option
3883 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3887 rm -f cf_makeflags.tmp
3890 echo "$as_me:3890: result: $cf_cv_makeflags" >&5
3891 echo "${ECHO_T}$cf_cv_makeflags" >&6
3893 if test -n "$ac_tool_prefix"; then
3894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3895 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3896 echo "$as_me:3896: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_prog_RANLIB+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 if test -n "$RANLIB"; then
3902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3904 ac_save_IFS=$IFS; IFS=$ac_path_separator
3906 for ac_dir in $ac_dummy; do
3908 test -z "$ac_dir" && ac_dir=.
3909 $as_executable_p "$ac_dir/$ac_word" || continue
3910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3911 echo "$as_me:3911: found $ac_dir/$ac_word" >&5
3917 RANLIB=$ac_cv_prog_RANLIB
3918 if test -n "$RANLIB"; then
3919 echo "$as_me:3919: result: $RANLIB" >&5
3920 echo "${ECHO_T}$RANLIB" >&6
3922 echo "$as_me:3922: result: no" >&5
3923 echo "${ECHO_T}no" >&6
3927 if test -z "$ac_cv_prog_RANLIB"; then
3928 ac_ct_RANLIB=$RANLIB
3929 # Extract the first word of "ranlib", so it can be a program name with args.
3930 set dummy ranlib; ac_word=$2
3931 echo "$as_me:3931: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 if test -n "$ac_ct_RANLIB"; then
3937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3939 ac_save_IFS=$IFS; IFS=$ac_path_separator
3941 for ac_dir in $ac_dummy; do
3943 test -z "$ac_dir" && ac_dir=.
3944 $as_executable_p "$ac_dir/$ac_word" || continue
3945 ac_cv_prog_ac_ct_RANLIB="ranlib"
3946 echo "$as_me:3946: found $ac_dir/$ac_word" >&5
3950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3954 if test -n "$ac_ct_RANLIB"; then
3955 echo "$as_me:3955: result: $ac_ct_RANLIB" >&5
3956 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3958 echo "$as_me:3958: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3962 RANLIB=$ac_ct_RANLIB
3964 RANLIB="$ac_cv_prog_RANLIB"
3967 if test -n "$ac_tool_prefix"; then
3968 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3969 set dummy ${ac_tool_prefix}ld; ac_word=$2
3970 echo "$as_me:3970: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_LD+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 if test -n "$LD"; then
3976 ac_cv_prog_LD="$LD" # Let the user override the test.
3978 ac_save_IFS=$IFS; IFS=$ac_path_separator
3980 for ac_dir in $ac_dummy; do
3982 test -z "$ac_dir" && ac_dir=.
3983 $as_executable_p "$ac_dir/$ac_word" || continue
3984 ac_cv_prog_LD="${ac_tool_prefix}ld"
3985 echo "$as_me:3985: found $ac_dir/$ac_word" >&5
3992 if test -n "$LD"; then
3993 echo "$as_me:3993: result: $LD" >&5
3994 echo "${ECHO_T}$LD" >&6
3996 echo "$as_me:3996: result: no" >&5
3997 echo "${ECHO_T}no" >&6
4001 if test -z "$ac_cv_prog_LD"; then
4003 # Extract the first word of "ld", so it can be a program name with args.
4004 set dummy ld; ac_word=$2
4005 echo "$as_me:4005: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 if test -n "$ac_ct_LD"; then
4011 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4013 ac_save_IFS=$IFS; IFS=$ac_path_separator
4015 for ac_dir in $ac_dummy; do
4017 test -z "$ac_dir" && ac_dir=.
4018 $as_executable_p "$ac_dir/$ac_word" || continue
4019 ac_cv_prog_ac_ct_LD="ld"
4020 echo "$as_me:4020: found $ac_dir/$ac_word" >&5
4024 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4027 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4028 if test -n "$ac_ct_LD"; then
4029 echo "$as_me:4029: result: $ac_ct_LD" >&5
4030 echo "${ECHO_T}$ac_ct_LD" >&6
4032 echo "$as_me:4032: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4041 if test -n "$ac_tool_prefix"; then
4042 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4043 set dummy ${ac_tool_prefix}ar; ac_word=$2
4044 echo "$as_me:4044: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_AR+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test -n "$AR"; then
4050 ac_cv_prog_AR="$AR" # Let the user override the test.
4052 ac_save_IFS=$IFS; IFS=$ac_path_separator
4054 for ac_dir in $ac_dummy; do
4056 test -z "$ac_dir" && ac_dir=.
4057 $as_executable_p "$ac_dir/$ac_word" || continue
4058 ac_cv_prog_AR="${ac_tool_prefix}ar"
4059 echo "$as_me:4059: found $ac_dir/$ac_word" >&5
4066 if test -n "$AR"; then
4067 echo "$as_me:4067: result: $AR" >&5
4068 echo "${ECHO_T}$AR" >&6
4070 echo "$as_me:4070: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4075 if test -z "$ac_cv_prog_AR"; then
4077 # Extract the first word of "ar", so it can be a program name with args.
4078 set dummy ar; ac_word=$2
4079 echo "$as_me:4079: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 if test -n "$ac_ct_AR"; then
4085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4087 ac_save_IFS=$IFS; IFS=$ac_path_separator
4089 for ac_dir in $ac_dummy; do
4091 test -z "$ac_dir" && ac_dir=.
4092 $as_executable_p "$ac_dir/$ac_word" || continue
4093 ac_cv_prog_ac_ct_AR="ar"
4094 echo "$as_me:4094: found $ac_dir/$ac_word" >&5
4098 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4101 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4102 if test -n "$ac_ct_AR"; then
4103 echo "$as_me:4103: result: $ac_ct_AR" >&5
4104 echo "${ECHO_T}$ac_ct_AR" >&6
4106 echo "$as_me:4106: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}nm; ac_word=$2
4118 echo "$as_me:4118: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_NM+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 if test -n "$NM"; then
4124 ac_cv_prog_NM="$NM" # Let the user override the test.
4126 ac_save_IFS=$IFS; IFS=$ac_path_separator
4128 for ac_dir in $ac_dummy; do
4130 test -z "$ac_dir" && ac_dir=.
4131 $as_executable_p "$ac_dir/$ac_word" || continue
4132 ac_cv_prog_NM="${ac_tool_prefix}nm"
4133 echo "$as_me:4133: found $ac_dir/$ac_word" >&5
4140 if test -n "$NM"; then
4141 echo "$as_me:4141: result: $NM" >&5
4142 echo "${ECHO_T}$NM" >&6
4144 echo "$as_me:4144: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4149 if test -z "$ac_cv_prog_NM"; then
4151 # Extract the first word of "nm", so it can be a program name with args.
4152 set dummy nm; ac_word=$2
4153 echo "$as_me:4153: checking for $ac_word" >&5
4154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 if test -n "$ac_ct_NM"; then
4159 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4161 ac_save_IFS=$IFS; IFS=$ac_path_separator
4163 for ac_dir in $ac_dummy; do
4165 test -z "$ac_dir" && ac_dir=.
4166 $as_executable_p "$ac_dir/$ac_word" || continue
4167 ac_cv_prog_ac_ct_NM="nm"
4168 echo "$as_me:4168: found $ac_dir/$ac_word" >&5
4172 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4175 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4176 if test -n "$ac_ct_NM"; then
4177 echo "$as_me:4177: result: $ac_ct_NM" >&5
4178 echo "${ECHO_T}$ac_ct_NM" >&6
4180 echo "$as_me:4180: result: no" >&5
4181 echo "${ECHO_T}no" >&6
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4191 set dummy ${ac_tool_prefix}ar; ac_word=$2
4192 echo "$as_me:4192: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_AR+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 if test -n "$AR"; then
4198 ac_cv_prog_AR="$AR" # Let the user override the test.
4200 ac_save_IFS=$IFS; IFS=$ac_path_separator
4202 for ac_dir in $ac_dummy; do
4204 test -z "$ac_dir" && ac_dir=.
4205 $as_executable_p "$ac_dir/$ac_word" || continue
4206 ac_cv_prog_AR="${ac_tool_prefix}ar"
4207 echo "$as_me:4207: found $ac_dir/$ac_word" >&5
4214 if test -n "$AR"; then
4215 echo "$as_me:4215: result: $AR" >&5
4216 echo "${ECHO_T}$AR" >&6
4218 echo "$as_me:4218: result: no" >&5
4219 echo "${ECHO_T}no" >&6
4223 if test -z "$ac_cv_prog_AR"; then
4225 # Extract the first word of "ar", so it can be a program name with args.
4226 set dummy ar; ac_word=$2
4227 echo "$as_me:4227: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 if test -n "$ac_ct_AR"; then
4233 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4235 ac_save_IFS=$IFS; IFS=$ac_path_separator
4237 for ac_dir in $ac_dummy; do
4239 test -z "$ac_dir" && ac_dir=.
4240 $as_executable_p "$ac_dir/$ac_word" || continue
4241 ac_cv_prog_ac_ct_AR="ar"
4242 echo "$as_me:4242: found $ac_dir/$ac_word" >&5
4246 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4250 if test -n "$ac_ct_AR"; then
4251 echo "$as_me:4251: result: $ac_ct_AR" >&5
4252 echo "${ECHO_T}$ac_ct_AR" >&6
4254 echo "$as_me:4254: result: no" >&5
4255 echo "${ECHO_T}no" >&6
4263 echo "$as_me:4263: checking for options to update archives" >&5
4264 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4265 if test "${cf_cv_ar_flags+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 cf_cv_ar_flags=unknown
4270 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4273 # check if $ARFLAGS already contains this choice
4274 if test "x$ARFLAGS" != "x" ; then
4275 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4276 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4282 rm -f conftest.$ac_cv_objext
4285 cat >conftest.$ac_ext <<EOF
4286 #line 4286 "configure"
4287 int testdata[3] = { 123, 456, 789 };
4289 if { (eval echo "$as_me:4289: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>&5
4292 echo "$as_me:4292: \$? = $ac_status" >&5
4293 (exit $ac_status); } ; then
4294 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4295 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4296 if test -f conftest.a ; then
4297 cf_cv_ar_flags=$cf_ar_flags
4301 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4303 echo "${as_me:-configure}:4303: testing cannot compile test-program ..." 1>&5
4308 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4311 echo "$as_me:4311: result: $cf_cv_ar_flags" >&5
4312 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4314 if test -n "$ARFLAGS" ; then
4315 if test -n "$cf_cv_ar_flags" ; then
4316 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4319 ARFLAGS=$cf_cv_ar_flags
4322 echo "$as_me:4322: checking if you have specified an install-prefix" >&5
4323 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4325 # Check whether --with-install-prefix or --without-install-prefix was given.
4326 if test "${with_install_prefix+set}" = set; then
4327 withval="$with_install_prefix"
4328 case "x$withval" in #(vi
4331 *) DESTDIR="$withval"
4335 echo "$as_me:4335: result: $DESTDIR" >&5
4336 echo "${ECHO_T}$DESTDIR" >&6
4338 ###############################################################################
4340 # If we're cross-compiling, allow the user to override the tools and their
4341 # options. The configure script is oriented toward identifying the host
4342 # compiler, etc., but we need a build compiler to generate parts of the source.
4344 if test "$cross_compiling" = yes ; then
4346 # defaults that we might want to override
4347 : ${BUILD_CFLAGS:=''}
4348 : ${BUILD_CPPFLAGS:=''}
4349 : ${BUILD_LDFLAGS:=''}
4351 : ${BUILD_EXEEXT:='$x'}
4352 : ${BUILD_OBJEXT:='o'}
4354 # Check whether --with-build-cc or --without-build-cc was given.
4355 if test "${with_build_cc+set}" = set; then
4356 withval="$with_build_cc"
4359 for ac_prog in gcc cc cl
4361 # Extract the first word of "$ac_prog", so it can be a program name with args.
4362 set dummy $ac_prog; ac_word=$2
4363 echo "$as_me:4363: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4365 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 if test -n "$BUILD_CC"; then
4369 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4371 ac_save_IFS=$IFS; IFS=$ac_path_separator
4373 for ac_dir in $ac_dummy; do
4375 test -z "$ac_dir" && ac_dir=.
4376 $as_executable_p "$ac_dir/$ac_word" || continue
4377 ac_cv_prog_BUILD_CC="$ac_prog"
4378 echo "$as_me:4378: found $ac_dir/$ac_word" >&5
4384 BUILD_CC=$ac_cv_prog_BUILD_CC
4385 if test -n "$BUILD_CC"; then
4386 echo "$as_me:4386: result: $BUILD_CC" >&5
4387 echo "${ECHO_T}$BUILD_CC" >&6
4389 echo "$as_me:4389: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4393 test -n "$BUILD_CC" && break
4397 echo "$as_me:4397: checking for native build C compiler" >&5
4398 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4399 echo "$as_me:4399: result: $BUILD_CC" >&5
4400 echo "${ECHO_T}$BUILD_CC" >&6
4402 echo "$as_me:4402: checking for native build C preprocessor" >&5
4403 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4405 # Check whether --with-build-cpp or --without-build-cpp was given.
4406 if test "${with_build_cpp+set}" = set; then
4407 withval="$with_build_cpp"
4408 BUILD_CPP="$withval"
4410 BUILD_CPP='${BUILD_CC} -E'
4412 echo "$as_me:4412: result: $BUILD_CPP" >&5
4413 echo "${ECHO_T}$BUILD_CPP" >&6
4415 echo "$as_me:4415: checking for native build C flags" >&5
4416 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4418 # Check whether --with-build-cflags or --without-build-cflags was given.
4419 if test "${with_build_cflags+set}" = set; then
4420 withval="$with_build_cflags"
4421 BUILD_CFLAGS="$withval"
4423 echo "$as_me:4423: result: $BUILD_CFLAGS" >&5
4424 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4426 echo "$as_me:4426: checking for native build C preprocessor-flags" >&5
4427 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4429 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4430 if test "${with_build_cppflags+set}" = set; then
4431 withval="$with_build_cppflags"
4432 BUILD_CPPFLAGS="$withval"
4434 echo "$as_me:4434: result: $BUILD_CPPFLAGS" >&5
4435 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4437 echo "$as_me:4437: checking for native build linker-flags" >&5
4438 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4440 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4441 if test "${with_build_ldflags+set}" = set; then
4442 withval="$with_build_ldflags"
4443 BUILD_LDFLAGS="$withval"
4445 echo "$as_me:4445: result: $BUILD_LDFLAGS" >&5
4446 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4448 echo "$as_me:4448: checking for native build linker-libraries" >&5
4449 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4451 # Check whether --with-build-libs or --without-build-libs was given.
4452 if test "${with_build_libs+set}" = set; then
4453 withval="$with_build_libs"
4454 BUILD_LIBS="$withval"
4456 echo "$as_me:4456: result: $BUILD_LIBS" >&5
4457 echo "${ECHO_T}$BUILD_LIBS" >&6
4459 # this assumes we're on Unix.
4463 : ${BUILD_CC:='${CC}'}
4465 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4466 { { echo "$as_me:4466: error: Cross-build requires two compilers.
4467 Use --with-build-cc to specify the native compiler." >&5
4468 echo "$as_me: error: Cross-build requires two compilers.
4469 Use --with-build-cc to specify the native compiler." >&2;}
4470 { (exit 1); exit 1; }; }
4474 : ${BUILD_CC:='${CC}'}
4475 : ${BUILD_CPP:='${CPP}'}
4476 : ${BUILD_CFLAGS:='${CFLAGS}'}
4477 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4478 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4479 : ${BUILD_LIBS:='${LIBS}'}
4480 : ${BUILD_EXEEXT:='$x'}
4481 : ${BUILD_OBJEXT:='o'}
4484 ###############################################################################
4486 ### Options to allow the user to specify the set of libraries which are used.
4487 ### Use "--without-normal --with-shared" to allow the default model to be
4488 ### shared, for example.
4491 echo "$as_me:4491: checking if libtool -version-number should be used" >&5
4492 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4494 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4495 if test "${enable_libtool_version+set}" = set; then
4496 enableval="$enable_libtool_version"
4497 test "$enableval" != no && enableval=yes
4498 if test "$enableval" != "yes" ; then
4499 cf_libtool_version=no
4501 cf_libtool_version=yes
4505 cf_libtool_version=yes
4508 echo "$as_me:4508: result: $cf_libtool_version" >&5
4509 echo "${ECHO_T}$cf_libtool_version" >&6
4511 if test "$cf_libtool_version" = yes ; then
4512 LIBTOOL_VERSION="-version-number"
4514 LIBTOOL_VERSION="-version-info"
4515 case "x$VERSION" in #(vi
4517 { echo "$as_me:4517: WARNING: VERSION was not set" >&5
4518 echo "$as_me: WARNING: VERSION was not set" >&2;}
4521 ABI_VERSION="$VERSION"
4522 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4524 echo "${as_me:-configure}:4524: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4528 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4529 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4531 echo "${as_me:-configure}:4531: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4535 { echo "$as_me:4535: WARNING: unexpected VERSION value: $VERSION" >&5
4536 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4543 # common library maintenance symbols that are convenient for libtool scripts:
4544 LIB_CREATE='${AR} -cr'
4545 LIB_OBJECT='${OBJECTS}'
4549 # symbols used to prop libtool up to enable it to determine what it should be
4557 echo "$as_me:4557: checking if you want to build libraries with libtool" >&5
4558 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4560 # Check whether --with-libtool or --without-libtool was given.
4561 if test "${with_libtool+set}" = set; then
4562 withval="$with_libtool"
4563 with_libtool=$withval
4567 echo "$as_me:4567: result: $with_libtool" >&5
4568 echo "${ECHO_T}$with_libtool" >&6
4569 if test "$with_libtool" != "no"; then
4571 if test "$with_libtool" != "yes" ; then
4573 if test "x$prefix" != xNONE; then
4574 cf_path_syntax="$prefix"
4576 cf_path_syntax="$ac_default_prefix"
4579 case ".$with_libtool" in #(vi
4580 .\$\(*\)*|.\'*\'*) #(vi
4584 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4586 .\${*prefix}*|.\${*dir}*) #(vi
4587 eval with_libtool="$with_libtool"
4588 case ".$with_libtool" in #(vi
4590 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4595 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4598 { { echo "$as_me:4598: error: expected a pathname, not \"$with_libtool\"" >&5
4599 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4600 { (exit 1); exit 1; }; }
4604 LIBTOOL=$with_libtool
4606 if test -n "$ac_tool_prefix"; then
4607 for ac_prog in libtool glibtool
4609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4611 echo "$as_me:4611: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4613 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 if test -n "$LIBTOOL"; then
4617 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4619 ac_save_IFS=$IFS; IFS=$ac_path_separator
4621 for ac_dir in $ac_dummy; do
4623 test -z "$ac_dir" && ac_dir=.
4624 $as_executable_p "$ac_dir/$ac_word" || continue
4625 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4626 echo "$as_me:4626: found $ac_dir/$ac_word" >&5
4632 LIBTOOL=$ac_cv_prog_LIBTOOL
4633 if test -n "$LIBTOOL"; then
4634 echo "$as_me:4634: result: $LIBTOOL" >&5
4635 echo "${ECHO_T}$LIBTOOL" >&6
4637 echo "$as_me:4637: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4641 test -n "$LIBTOOL" && break
4644 if test -z "$LIBTOOL"; then
4645 ac_ct_LIBTOOL=$LIBTOOL
4646 for ac_prog in libtool glibtool
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 echo "$as_me:4650: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4652 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 if test -n "$ac_ct_LIBTOOL"; then
4656 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4658 ac_save_IFS=$IFS; IFS=$ac_path_separator
4660 for ac_dir in $ac_dummy; do
4662 test -z "$ac_dir" && ac_dir=.
4663 $as_executable_p "$ac_dir/$ac_word" || continue
4664 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4665 echo "$as_me:4665: found $ac_dir/$ac_word" >&5
4671 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4672 if test -n "$ac_ct_LIBTOOL"; then
4673 echo "$as_me:4673: result: $ac_ct_LIBTOOL" >&5
4674 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4676 echo "$as_me:4676: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4680 test -n "$ac_ct_LIBTOOL" && break
4682 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4684 LIBTOOL=$ac_ct_LIBTOOL
4687 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4689 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.].*//'`
4691 cf_cv_libtool_version=
4693 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4695 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4698 unset ac_cv_prog_ac_ct_LIBTOOL
4702 if test -n "$ac_tool_prefix"; then
4703 for ac_prog in glibtool
4705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4707 echo "$as_me:4707: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4709 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 if test -n "$LIBTOOL"; then
4713 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4715 ac_save_IFS=$IFS; IFS=$ac_path_separator
4717 for ac_dir in $ac_dummy; do
4719 test -z "$ac_dir" && ac_dir=.
4720 $as_executable_p "$ac_dir/$ac_word" || continue
4721 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4722 echo "$as_me:4722: found $ac_dir/$ac_word" >&5
4728 LIBTOOL=$ac_cv_prog_LIBTOOL
4729 if test -n "$LIBTOOL"; then
4730 echo "$as_me:4730: result: $LIBTOOL" >&5
4731 echo "${ECHO_T}$LIBTOOL" >&6
4733 echo "$as_me:4733: result: no" >&5
4734 echo "${ECHO_T}no" >&6
4737 test -n "$LIBTOOL" && break
4740 if test -z "$LIBTOOL"; then
4741 ac_ct_LIBTOOL=$LIBTOOL
4742 for ac_prog in glibtool
4744 # Extract the first word of "$ac_prog", so it can be a program name with args.
4745 set dummy $ac_prog; ac_word=$2
4746 echo "$as_me:4746: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4748 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 if test -n "$ac_ct_LIBTOOL"; then
4752 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4754 ac_save_IFS=$IFS; IFS=$ac_path_separator
4756 for ac_dir in $ac_dummy; do
4758 test -z "$ac_dir" && ac_dir=.
4759 $as_executable_p "$ac_dir/$ac_word" || continue
4760 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4761 echo "$as_me:4761: found $ac_dir/$ac_word" >&5
4767 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4768 if test -n "$ac_ct_LIBTOOL"; then
4769 echo "$as_me:4769: result: $ac_ct_LIBTOOL" >&5
4770 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4772 echo "$as_me:4772: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4776 test -n "$ac_ct_LIBTOOL" && break
4778 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4780 LIBTOOL=$ac_ct_LIBTOOL
4783 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4785 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.].*//'`
4787 cf_cv_libtool_version=
4789 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4793 if test -z "$LIBTOOL" ; then
4794 { { echo "$as_me:4794: error: Cannot find libtool" >&5
4795 echo "$as_me: error: Cannot find libtool" >&2;}
4796 { (exit 1); exit 1; }; }
4798 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4799 LIB_OBJECT='${OBJECTS:.o=.lo}'
4801 LIB_CLEAN='${LIBTOOL} --mode=clean'
4802 LIB_COMPILE='${LIBTOOL} --mode=compile'
4803 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4804 LIB_INSTALL='${LIBTOOL} --mode=install'
4805 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4808 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4810 echo "$as_me:4810: checking version of $LIBTOOL" >&5
4811 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4813 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4815 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.].*//'`
4817 cf_cv_libtool_version=
4819 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4821 echo "$as_me:4821: result: $cf_cv_libtool_version" >&5
4822 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4823 if test -z "$cf_cv_libtool_version" ; then
4824 { { echo "$as_me:4824: error: This is not GNU libtool" >&5
4825 echo "$as_me: error: This is not GNU libtool" >&2;}
4826 { (exit 1); exit 1; }; }
4829 { { echo "$as_me:4829: error: GNU libtool has not been found" >&5
4830 echo "$as_me: error: GNU libtool has not been found" >&2;}
4831 { (exit 1); exit 1; }; }
4834 # special hack to add -no-undefined (which libtool should do for itself)
4836 case "$cf_cv_system_name" in #(vi
4837 cygwin*|msys*|mingw32*|uwin*|aix[4-7]) #(vi
4838 LT_UNDEF=-no-undefined
4842 # special hack to add --tag option for C++ compiler
4843 case $cf_cv_libtool_version in #(vi
4844 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4845 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4846 LIBTOOL="$LIBTOOL --tag=CC"
4849 LIBTOOL_CXX="$LIBTOOL"
4857 test -z "$LIBTOOL" && ECHO_LT=
4859 if test "$with_libtool" != "no" ; then
4861 cf_list_models="$cf_list_models libtool"
4865 echo "$as_me:4865: checking if you want to build shared libraries" >&5