2 # From configure.in Revision: 1.543 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
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 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
253 eval "enable_$ac_feature='$ac_optarg'" ;;
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
268 -help | --help | --hel | --he | -h)
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
292 -libdir | --libdir | --libdi | --libd)
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
319 # Obsolete; use --without-fp.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
383 sbindir=$ac_optarg ;;
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
394 sharedstatedir=$ac_optarg ;;
396 -site | --site | --sit)
398 -site=* | --site=* | --sit=*)
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
421 -version | --version | --versio | --versi | --vers | -V)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 eval "with_$ac_package='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
499 eval ac_val=$`echo $ac_var`
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
511 eval ac_val=$`echo $ac_var`
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 test "$silent" = yes && exec 6>/dev/null
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597 ac_env_CXX_set=${CXX+set}
598 ac_env_CXX_value=$CXX
599 ac_cv_env_CXX_set=${CXX+set}
600 ac_cv_env_CXX_value=$CXX
601 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
602 ac_env_CXXFLAGS_value=$CXXFLAGS
603 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
604 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
605 ac_env_CXXCPP_set=${CXXCPP+set}
606 ac_env_CXXCPP_value=$CXXCPP
607 ac_cv_env_CXXCPP_set=${CXXCPP+set}
608 ac_cv_env_CXXCPP_value=$CXXCPP
611 # Report the --help message.
613 if test "$ac_init_help" = "long"; then
614 # Omit some internal or obsolete options to make the list less imposing.
615 # This message is too long to be a string in the A/UX 3.1 sh.
617 \`configure' configures this package to adapt to many kinds of systems.
619 Usage: $0 [OPTION]... [VAR=VALUE]...
621 To assign environment variables (e.g., CC, CFLAGS...), specify them as
622 VAR=VALUE. See below for descriptions of some of the useful variables.
624 Defaults for the options are specified in brackets.
627 -h, --help display this help and exit
628 --help=short display options specific to this package
629 --help=recursive display the short help of all the included packages
630 -V, --version display version information and exit
631 -q, --quiet, --silent do not print \`checking...' messages
632 --cache-file=FILE cache test results in FILE [disabled]
633 -C, --config-cache alias for \`--cache-file=config.cache'
634 -n, --no-create do not create output files
635 --srcdir=DIR find the sources in DIR [configure dir or \`..']
640 Installation directories:
641 --prefix=PREFIX install architecture-independent files in PREFIX
643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
646 By default, \`make install' will install all the files in
647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
649 for instance \`--prefix=\$HOME'.
651 For better control, use the options below.
653 Fine tuning of the installation directories:
654 --bindir=DIR user executables [EPREFIX/bin]
655 --sbindir=DIR system admin executables [EPREFIX/sbin]
656 --libexecdir=DIR program executables [EPREFIX/libexec]
657 --datadir=DIR read-only architecture-independent data [PREFIX/share]
658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
661 --libdir=DIR object code libraries [EPREFIX/lib]
662 --includedir=DIR C header files [PREFIX/include]
663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
664 --infodir=DIR info documentation [PREFIX/info]
665 --mandir=DIR man documentation [PREFIX/man]
671 --program-prefix=PREFIX prepend PREFIX to installed program names
672 --program-suffix=SUFFIX append SUFFIX to installed program names
673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
678 --target=TARGET configure for building compilers for TARGET [HOST]
682 if test -n "$ac_init_help"; then
687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
691 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
692 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
694 --with-rel-version=XXX override derived release version
695 --with-abi-version=XXX override derived ABI version
696 --with-system-type=XXX test: override derived host system-type
697 --without-cxx do not adjust ncurses bool to match C++
698 --without-cxx-binding do not build C++ binding and demo
699 --without-ada suppress check for Ada95, don't build demo
700 --without-manpages suppress install of manpages
701 --without-progs suppress build with programs (e.g., tic)
702 --without-tests suppress build with test-programs
703 --without-curses-h install curses.h as ncurses.h only
704 --with-pkg-config{=path} enable/disable use of pkg-config
705 --with-pkg-config-libdir=XXX use given directory for installing pc-files
706 --enable-pc-files generate and install .pc files for pkg-config
707 --enable-mixed-case tic should assume mixed-case filenames
708 --with-install-prefix prefixes actual install-location ($DESTDIR)
709 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
710 --with-build-cc=XXX the build C compiler ($BUILD_CC)
711 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
712 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
713 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
714 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
715 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
716 Options to Specify the Libraries Built/Used:
717 --disable-libtool-version enable to use libtool's incompatible naming scheme
718 --with-libtool generate libraries with libtool
719 --with-shared generate shared-libraries
720 --with-normal generate normal-libraries (default)
721 --with-debug generate debug-libraries (default)
722 --with-profile generate profile-libraries
723 --with-lib-prefix override library-prefix
724 --with-termlib generate separate terminfo library
725 --with-ticlib generate separate tic library
726 --with-gpm use Alessandro Rubini's GPM library
727 --without-dlsym do not use dlsym() to load GPM dynamically
728 --with-sysmouse use sysmouse (FreeBSD console)
729 --enable-rpath use rpath option when generating shared libraries
730 --disable-relink relink shared libraries during install
731 --with-shlib-version=X Specify rel or abi version for shared libs
732 --disable-rpath-hack don't add rpath options for additional libraries
733 Fine-Tuning Your Configuration:
734 --disable-overwrite leave out the link to -lcurses
735 --disable-database do not use terminfo, only fallbacks/termcap
736 --with-database=XXX specify terminfo source to install
737 --with-hashed-db specify hashed-database library
738 --with-fallbacks=XXX specify list of fallback terminal descriptions
739 --without-xterm-new specify if xterm terminfo should be old version
740 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
741 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
742 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
743 --disable-big-core assume machine has little memory
744 --disable-big-strings assume compiler has only standard-size strings
745 --enable-termcap compile in termcap fallback support
746 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
747 --enable-getcap fast termcap load, no xrefs to terminfo
748 --enable-getcap-cache cache translated termcaps in ~/.terminfo
749 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
750 --disable-root-environ restrict environment when running as root
751 --enable-symlinks make tic use symbolic links not hard links
752 --enable-broken_linker compile with broken-linker support code
753 --enable-bsdpad recognize BSD-style prefix padding
754 --enable-widec compile with wide-char/UTF-8 code
755 --disable-lp64 allow chtype to be long (ignore _LP64)
756 --disable-largefile omit support for large files
757 --disable-tparm-varargs compile tparm() without varargs interface
758 --disable-tic-depends link tic library without explicit dependency on ncurses library
759 --with-bool=TYPE override fallback type of bool variable
760 --with-caps=alt compile with alternate Caps file
761 --with-chtype=TYPE override type of chtype
762 --with-ospeed=TYPE override type of ospeed variable
763 --with-mmask-t=TYPE override type of mmask_t
764 --with-ccharw-max=XXX override size CCHARW_MAX
765 --with-tparm-arg=TYPE override parameter type of tparm
766 --with-rcs-ids compile-in RCS identifiers
767 Options to Specify How Manpages are Installed:
768 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
769 optionally formatted/catonly, e.g., gzip,formatted
770 --with-manpage-renames specify manpage-renaming
771 --with-manpage-aliases specify manpage-aliases using .so
772 --with-manpage-symlinks specify manpage-aliases using symlinks
773 --with-manpage-tbl specify manpage processing with tbl
775 --disable-ext-funcs disable function-extensions
776 --enable-sp-funcs enable experimental SCREEN-extensions
777 --enable-term-driver enable experimental terminal-driver
778 --enable-const compile with extra/non-standard const
779 --enable-ext-colors compile for 256-color support
780 --enable-ext-mouse compile for extended mouse-encoding
781 --enable-no-padding compile with $NCURSES_NO_PADDING code
782 --enable-signed-char compile using signed Boolean's in term.h
783 --enable-sigwinch compile with SIGWINCH handler
784 --enable-tcap-names compile with user-definable terminal capabilities
786 --without-develop disable development options
787 --enable-hard-tabs compile with hard-tabs code
788 --enable-xmc-glitch compile with support for xmc (magic-cookie)
790 --disable-assumed-color do not assume anything about default-colors
791 --disable-hashmap compile without hashmap scrolling-optimization
792 --enable-colorfgbg compile-in experimental $COLORFGBG code
793 --enable-interop compile-in experimental interop bindings
794 --with-pthread use POSIX thread library
795 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
796 --enable-weak-symbols enable weak-symbols for pthreads
797 --enable-reentrant compile with experimental reentrant code
798 --with-wrap-prefix=XXX override prefix used for public variables
799 --enable-safe-sprintf compile with experimental safe-sprintf code
800 --disable-scroll-hints compile without scroll-hints code
801 --enable-wgetch-events compile with experimental wgetch-events code
802 Testing/development Options:
803 --enable-echo build: display "compiling" commands (default)
804 --enable-warnings build: turn on GCC compiler warnings
805 --enable-assertions test: turn on generation of assertion code
806 --with-dmalloc test: use Gray Watson's dmalloc library
807 --with-dbmalloc test: use Conor Cahill's dbmalloc library
808 --with-valgrind test: use valgrind
809 --disable-leaks test: free permanent memory, analyze leaks
810 --enable-expanded test: generate functions for certain macros
811 --disable-macros test: use functions rather than macros
812 --with-trace test: add trace() function to all models of ncurses
813 Ada95 Binding Options:
814 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
815 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
816 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
817 --with-ada-sharedlib=XX build Ada95 shared-library
819 Some influential environment variables:
820 CC C compiler command
821 CFLAGS C compiler flags
822 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
823 nonstandard directory <lib dir>
824 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
825 headers in a nonstandard directory <include dir>
827 CXX C++ compiler command
828 CXXFLAGS C++ compiler flags
829 CXXCPP C++ preprocessor
831 Use these variables to override the choices made by `configure' or to help
832 it to find libraries and programs with nonstandard names/locations.
837 if test "$ac_init_help" = "recursive"; then
838 # If there are subdirs, report their specific --help.
840 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
842 # A "../" for each directory in /$ac_subdir.
843 ac_dots=`echo $ac_subdir |
844 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
847 .) # No --srcdir option. We are building in place.
848 ac_sub_srcdir=$srcdir ;;
849 [\\/]* | ?:[\\/]* ) # Absolute path.
850 ac_sub_srcdir=$srcdir/$ac_subdir ;;
852 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
855 # Check for guested configure; otherwise get Cygnus style configure.
856 if test -f $ac_sub_srcdir/configure.gnu; then
858 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
859 elif test -f $ac_sub_srcdir/configure; then
861 $SHELL $ac_sub_srcdir/configure --help=recursive
862 elif test -f $ac_sub_srcdir/configure.ac ||
863 test -f $ac_sub_srcdir/configure.in; then
867 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
873 test -n "$ac_init_help" && exit 0
874 if $ac_init_version; then
877 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
878 Free Software Foundation, Inc.
879 This configure script is free software; the Free Software Foundation
880 gives unlimited permission to copy, distribute and modify it.
886 This file contains any messages produced by compilers while
887 running configure, to aid debugging if configure makes a mistake.
889 It was created by $as_me, which was
890 generated by GNU Autoconf 2.52.20101002. Invocation command line was
901 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
902 uname -m = `(uname -m) 2>/dev/null || echo unknown`
903 uname -r = `(uname -r) 2>/dev/null || echo unknown`
904 uname -s = `(uname -s) 2>/dev/null || echo unknown`
905 uname -v = `(uname -v) 2>/dev/null || echo unknown`
907 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
908 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
910 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
911 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
912 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
913 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
914 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
915 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
916 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
930 # Keep a trace of the command line.
931 # Strip out --no-create and --no-recursion so they do not pile up.
932 # Also quote any args containing shell meta-characters.
938 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939 | --no-cr | --no-c) ;;
940 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
941 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
942 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
943 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
944 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
946 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
949 # Get rid of the leading space.
952 # When interrupted or exit'd, cleanup temporary files, and complete
953 # config.log. We remove comments because anyway the quotes in there
954 # would cause problems or look ugly.
956 # Save into config.log some information that might help in debugging.
958 echo "## ----------------- ##" >&5
959 echo "## Cache variables. ##" >&5
960 echo "## ----------------- ##" >&5
962 # The following way of writing the cache mishandles newlines in values,
965 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
968 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
973 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
977 sed "/^$/d" confdefs.h >conftest.log
978 if test -s conftest.log; then
980 echo "## ------------ ##" >&5
981 echo "## confdefs.h. ##" >&5
982 echo "## ------------ ##" >&5
987 test "$ac_signal" != 0 &&
988 echo "$as_me: caught signal $ac_signal" >&5
989 echo "$as_me: exit $exit_status" >&5
990 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
993 for ac_signal in 1 2 13 15; do
994 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
999 rm -rf conftest* confdefs.h
1000 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1003 # Let the site file select an alternate cache file if it wants to.
1004 # Prefer explicitly selected file to automatically selected ones.
1005 if test -z "$CONFIG_SITE"; then
1006 if test "x$prefix" != xNONE; then
1007 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1009 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1012 for ac_site_file in $CONFIG_SITE; do
1013 if test -r "$ac_site_file"; then
1014 { echo "$as_me:1014: loading site script $ac_site_file" >&5
1015 echo "$as_me: loading site script $ac_site_file" >&6;}
1016 cat "$ac_site_file" >&5
1021 if test -r "$cache_file"; then
1022 # Some versions of bash will fail to source /dev/null (special
1023 # files actually), so we avoid doing that.
1024 if test -f "$cache_file"; then
1025 { echo "$as_me:1025: loading cache $cache_file" >&5
1026 echo "$as_me: loading cache $cache_file" >&6;}
1028 [\\/]* | ?:[\\/]* ) . $cache_file;;
1029 *) . ./$cache_file;;
1033 { echo "$as_me:1033: creating cache $cache_file" >&5
1034 echo "$as_me: creating cache $cache_file" >&6;}
1038 # Check that the precious variables saved in the cache have kept the same
1040 ac_cache_corrupted=false
1041 for ac_var in `(set) 2>&1 |
1042 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1043 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1044 eval ac_new_set=\$ac_env_${ac_var}_set
1045 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1046 eval ac_new_val="\$ac_env_${ac_var}_value"
1047 case $ac_old_set,$ac_new_set in
1049 { echo "$as_me:1049: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1050 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1051 ac_cache_corrupted=: ;;
1053 { echo "$as_me:1053: error: \`$ac_var' was not set in the previous run" >&5
1054 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1055 ac_cache_corrupted=: ;;
1058 if test "x$ac_old_val" != "x$ac_new_val"; then
1059 { echo "$as_me:1059: error: \`$ac_var' has changed since the previous run:" >&5
1060 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1061 { echo "$as_me:1061: former value: $ac_old_val" >&5
1062 echo "$as_me: former value: $ac_old_val" >&2;}
1063 { echo "$as_me:1063: current value: $ac_new_val" >&5
1064 echo "$as_me: current value: $ac_new_val" >&2;}
1065 ac_cache_corrupted=:
1068 # Pass precious variables to config.status. It doesn't matter if
1069 # we pass some twice (in addition to the command line arguments).
1070 if test "$ac_new_set" = set; then
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1074 ac_configure_args="$ac_configure_args '$ac_arg'"
1076 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1081 if $ac_cache_corrupted; then
1082 { echo "$as_me:1082: error: changes in the environment can compromise the build" >&5
1083 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1084 { { echo "$as_me:1084: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1085 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1086 { (exit 1); exit 1; }; }
1090 ac_cpp='$CPP $CPPFLAGS'
1091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1094 ac_main_return=return
1096 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1097 *c*,-n*) ECHO_N= ECHO_C='
1099 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1100 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1102 echo "#! $SHELL" >conftest.sh
1103 echo "exit 0" >>conftest.sh
1104 chmod +x conftest.sh
1105 if { (echo "$as_me:1105: PATH=\".;.\"; conftest.sh") >&5
1106 (PATH=".;."; conftest.sh) 2>&5
1108 echo "$as_me:1108: \$? = $ac_status" >&5
1109 (exit $ac_status); }; then
1110 ac_path_separator=';'
1114 PATH_SEPARATOR="$ac_path_separator"
1117 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1121 echo "$as_me:1121: checking for egrep" >&5
1122 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1123 if test "${ac_cv_prog_egrep+set}" = set; then
1124 echo $ECHO_N "(cached) $ECHO_C" >&6
1126 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1127 then ac_cv_prog_egrep='grep -E'
1128 else ac_cv_prog_egrep='egrep'
1131 echo "$as_me:1131: result: $ac_cv_prog_egrep" >&5
1132 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1133 EGREP=$ac_cv_prog_egrep
1135 test -z "$EGREP" && { { echo "$as_me:1135: error: No egrep program found" >&5
1136 echo "$as_me: error: No egrep program found" >&2;}
1137 { (exit 1); exit 1; }; }
1139 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1140 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1141 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1142 cf_cv_abi_version=${NCURSES_MAJOR}
1143 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1144 cf_cv_timestamp=`date`
1145 echo "$as_me:1145: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1146 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1148 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1150 # Check whether --with-rel-version or --without-rel-version was given.
1151 if test "${with_rel_version+set}" = set; then
1152 withval="$with_rel_version"
1153 { echo "$as_me:1153: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1154 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1155 cf_cv_rel_version=$withval
1158 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1159 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1161 if test -n "$NCURSES_MAJOR" ; then
1162 case $NCURSES_MAJOR in #(vi
1166 { { echo "$as_me:1166: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1167 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1168 { (exit 1); exit 1; }; }
1172 { { echo "$as_me:1172: error: Release major-version value is empty" >&5
1173 echo "$as_me: error: Release major-version value is empty" >&2;}
1174 { (exit 1); exit 1; }; }
1177 if test -n "$NCURSES_MINOR" ; then
1178 case $NCURSES_MINOR in #(vi
1182 { { echo "$as_me:1182: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1183 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1184 { (exit 1); exit 1; }; }
1188 { { echo "$as_me:1188: error: Release minor-version value is empty" >&5
1189 echo "$as_me: error: Release minor-version value is empty" >&2;}
1190 { (exit 1); exit 1; }; }
1193 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1195 # Check whether --with-abi-version or --without-abi-version was given.
1196 if test "${with_abi_version+set}" = set; then
1197 withval="$with_abi_version"
1198 { echo "$as_me:1198: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1199 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1200 cf_cv_abi_version=$withval
1203 if test -n "$cf_cv_abi_version" ; then
1204 case $cf_cv_abi_version in #(vi
1208 { { echo "$as_me:1208: error: ABI version is not a number: $cf_cv_abi_version" >&5
1209 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1210 { (exit 1); exit 1; }; }
1214 { { echo "$as_me:1214: error: ABI version value is empty" >&5
1215 echo "$as_me: error: ABI version value is empty" >&2;}
1216 { (exit 1); exit 1; }; }
1220 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1221 if test -f $ac_dir/install-sh; then
1223 ac_install_sh="$ac_aux_dir/install-sh -c"
1225 elif test -f $ac_dir/install.sh; then
1227 ac_install_sh="$ac_aux_dir/install.sh -c"
1229 elif test -f $ac_dir/shtool; then
1231 ac_install_sh="$ac_aux_dir/shtool install -c"
1235 if test -z "$ac_aux_dir"; then
1236 { { echo "$as_me:1236: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1237 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1238 { (exit 1); exit 1; }; }
1240 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1241 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1242 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1244 # Make sure we can run config.sub.
1245 $ac_config_sub sun4 >/dev/null 2>&1 ||
1246 { { echo "$as_me:1246: error: cannot run $ac_config_sub" >&5
1247 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1248 { (exit 1); exit 1; }; }
1250 echo "$as_me:1250: checking build system type" >&5
1251 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1252 if test "${ac_cv_build+set}" = set; then
1253 echo $ECHO_N "(cached) $ECHO_C" >&6
1255 ac_cv_build_alias=$build_alias
1256 test -z "$ac_cv_build_alias" &&
1257 ac_cv_build_alias=`$ac_config_guess`
1258 test -z "$ac_cv_build_alias" &&
1259 { { echo "$as_me:1259: error: cannot guess build type; you must specify one" >&5
1260 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1261 { (exit 1); exit 1; }; }
1262 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1263 { { echo "$as_me:1263: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1264 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1265 { (exit 1); exit 1; }; }
1268 echo "$as_me:1268: result: $ac_cv_build" >&5
1269 echo "${ECHO_T}$ac_cv_build" >&6
1271 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1272 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1273 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1275 echo "$as_me:1275: checking host system type" >&5
1276 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1277 if test "${ac_cv_host+set}" = set; then
1278 echo $ECHO_N "(cached) $ECHO_C" >&6
1280 ac_cv_host_alias=$host_alias
1281 test -z "$ac_cv_host_alias" &&
1282 ac_cv_host_alias=$ac_cv_build_alias
1283 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1284 { { echo "$as_me:1284: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1285 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1286 { (exit 1); exit 1; }; }
1289 echo "$as_me:1289: result: $ac_cv_host" >&5
1290 echo "${ECHO_T}$ac_cv_host" >&6
1292 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1293 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1294 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1296 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1297 echo "$as_me:1297: checking target system type" >&5
1298 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1299 if test "${ac_cv_target+set}" = set; then
1300 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 ac_cv_target_alias=$target_alias
1303 test "x$ac_cv_target_alias" = "x" &&
1304 ac_cv_target_alias=$ac_cv_host_alias
1305 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1306 { { echo "$as_me:1306: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1307 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1308 { (exit 1); exit 1; }; }
1311 echo "$as_me:1311: result: $ac_cv_target" >&5
1312 echo "${ECHO_T}$ac_cv_target" >&6
1313 target=$ac_cv_target
1314 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1318 # The aliases save the names the user supplied, while $host etc.
1319 # will get canonicalized.
1320 test -n "$target_alias" &&
1321 test "$program_prefix$program_suffix$program_transform_name" = \
1323 program_prefix=${target_alias}-
1324 system_name="$host_os"
1326 system_name="`(uname -s -r) 2>/dev/null`"
1327 if test -z "$system_name" ; then
1328 system_name="`(hostname) 2>/dev/null`"
1331 test -n "$system_name" && cat >>confdefs.h <<EOF
1332 #define SYSTEM_NAME "$system_name"
1335 if test "${cf_cv_system_name+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 cf_cv_system_name="$system_name"
1341 test -z "$system_name" && system_name="$cf_cv_system_name"
1342 test -n "$cf_cv_system_name" && echo "$as_me:1342: result: Configuring for $cf_cv_system_name" >&5
1343 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1345 if test ".$system_name" != ".$cf_cv_system_name" ; then
1346 echo "$as_me:1346: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1347 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1348 { { echo "$as_me:1348: error: \"Please remove config.cache and try again.\"" >&5
1349 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1350 { (exit 1); exit 1; }; }
1353 # Check whether --with-system-type or --without-system-type was given.
1354 if test "${with_system_type+set}" = set; then
1355 withval="$with_system_type"
1356 { echo "$as_me:1356: WARNING: overriding system type to $withval" >&5
1357 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1358 cf_cv_system_name=$withval
1361 ### Save the given $CFLAGS to allow user-override.
1362 cf_user_CFLAGS="$CFLAGS"
1364 ### Default install-location
1366 echo "$as_me:1366: checking for prefix" >&5
1367 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1368 if test "x$prefix" = "xNONE" ; then
1369 case "$cf_cv_system_name" in
1370 # non-vendor systems don't have a conflict
1371 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1374 *) prefix=$ac_default_prefix
1378 echo "$as_me:1378: result: $prefix" >&5
1379 echo "${ECHO_T}$prefix" >&6
1381 if test "x$prefix" = "xNONE" ; then
1382 echo "$as_me:1382: checking for default include-directory" >&5
1383 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1384 test -n "$verbose" && echo 1>&6
1387 $includedir/ncurses \
1389 $prefix/include/ncurses \
1390 /usr/local/include \
1391 /usr/local/include/ncurses \
1393 /usr/include/ncurses
1395 cf_dir=`eval echo $cf_symbol`
1396 if test -f $cf_dir/curses.h ; then
1397 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1398 includedir="$cf_symbol"
1399 test -n "$verbose" && echo $ac_n " found " 1>&6
1403 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1405 echo "$as_me:1405: result: $includedir" >&5
1406 echo "${ECHO_T}$includedir" >&6
1409 ### Checks for programs.
1411 ac_cpp='$CPP $CPPFLAGS'
1412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1415 ac_main_return=return
1416 if test -n "$ac_tool_prefix"; then
1417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1418 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1419 echo "$as_me:1419: checking for $ac_word" >&5
1420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421 if test "${ac_cv_prog_CC+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 if test -n "$CC"; then
1425 ac_cv_prog_CC="$CC" # Let the user override the test.
1427 ac_save_IFS=$IFS; IFS=$ac_path_separator
1429 for ac_dir in $ac_dummy; do
1431 test -z "$ac_dir" && ac_dir=.
1432 $as_executable_p "$ac_dir/$ac_word" || continue
1433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1434 echo "$as_me:1434: found $ac_dir/$ac_word" >&5
1441 if test -n "$CC"; then
1442 echo "$as_me:1442: result: $CC" >&5
1443 echo "${ECHO_T}$CC" >&6
1445 echo "$as_me:1445: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1450 if test -z "$ac_cv_prog_CC"; then
1452 # Extract the first word of "gcc", so it can be a program name with args.
1453 set dummy gcc; ac_word=$2
1454 echo "$as_me:1454: checking for $ac_word" >&5
1455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 if test -n "$ac_ct_CC"; then
1460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1462 ac_save_IFS=$IFS; IFS=$ac_path_separator
1464 for ac_dir in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir=.
1467 $as_executable_p "$ac_dir/$ac_word" || continue
1468 ac_cv_prog_ac_ct_CC="gcc"
1469 echo "$as_me:1469: found $ac_dir/$ac_word" >&5
1475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1476 if test -n "$ac_ct_CC"; then
1477 echo "$as_me:1477: result: $ac_ct_CC" >&5
1478 echo "${ECHO_T}$ac_ct_CC" >&6
1480 echo "$as_me:1480: result: no" >&5
1481 echo "${ECHO_T}no" >&6
1489 if test -z "$CC"; then
1490 if test -n "$ac_tool_prefix"; then
1491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1492 set dummy ${ac_tool_prefix}cc; ac_word=$2
1493 echo "$as_me:1493: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 if test -n "$CC"; then
1499 ac_cv_prog_CC="$CC" # Let the user override the test.
1501 ac_save_IFS=$IFS; IFS=$ac_path_separator
1503 for ac_dir in $ac_dummy; do
1505 test -z "$ac_dir" && ac_dir=.
1506 $as_executable_p "$ac_dir/$ac_word" || continue
1507 ac_cv_prog_CC="${ac_tool_prefix}cc"
1508 echo "$as_me:1508: found $ac_dir/$ac_word" >&5
1515 if test -n "$CC"; then
1516 echo "$as_me:1516: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1519 echo "$as_me:1519: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1524 if test -z "$ac_cv_prog_CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args.
1527 set dummy cc; ac_word=$2
1528 echo "$as_me:1528: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$ac_ct_CC"; then
1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1536 ac_save_IFS=$IFS; IFS=$ac_path_separator
1538 for ac_dir in $ac_dummy; do
1540 test -z "$ac_dir" && ac_dir=.
1541 $as_executable_p "$ac_dir/$ac_word" || continue
1542 ac_cv_prog_ac_ct_CC="cc"
1543 echo "$as_me:1543: found $ac_dir/$ac_word" >&5
1549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1550 if test -n "$ac_ct_CC"; then
1551 echo "$as_me:1551: result: $ac_ct_CC" >&5
1552 echo "${ECHO_T}$ac_ct_CC" >&6
1554 echo "$as_me:1554: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1564 if test -z "$CC"; then
1565 # Extract the first word of "cc", so it can be a program name with args.
1566 set dummy cc; ac_word=$2
1567 echo "$as_me:1567: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$CC"; then
1573 ac_cv_prog_CC="$CC" # Let the user override the test.
1576 ac_save_IFS=$IFS; IFS=$ac_path_separator
1578 for ac_dir in $ac_dummy; do
1580 test -z "$ac_dir" && ac_dir=.
1581 $as_executable_p "$ac_dir/$ac_word" || continue
1582 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1583 ac_prog_rejected=yes
1587 echo "$as_me:1587: found $ac_dir/$ac_word" >&5
1591 if test $ac_prog_rejected = yes; then
1592 # We found a bogon in the path, so make sure we never use it.
1593 set dummy $ac_cv_prog_CC
1595 if test $# != 0; then
1596 # We chose a different compiler from the bogus one.
1597 # However, it has the same basename, so the bogon will be chosen
1598 # first if we set CC to just the basename; use the full file name.
1600 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1608 if test -n "$CC"; then
1609 echo "$as_me:1609: result: $CC" >&5
1610 echo "${ECHO_T}$CC" >&6
1612 echo "$as_me:1612: result: no" >&5
1613 echo "${ECHO_T}no" >&6
1617 if test -z "$CC"; then
1618 if test -n "$ac_tool_prefix"; then
1621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1623 echo "$as_me:1623: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1631 ac_save_IFS=$IFS; IFS=$ac_path_separator
1633 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 $as_executable_p "$ac_dir/$ac_word" || continue
1637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638 echo "$as_me:1638: found $ac_dir/$ac_word" >&5
1645 if test -n "$CC"; then
1646 echo "$as_me:1646: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1649 echo "$as_me:1649: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1653 test -n "$CC" && break
1656 if test -z "$CC"; then
1660 # Extract the first word of "$ac_prog", so it can be a program name with args.
1661 set dummy $ac_prog; ac_word=$2
1662 echo "$as_me:1662: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$ac_ct_CC"; then
1668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1670 ac_save_IFS=$IFS; IFS=$ac_path_separator
1672 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 $as_executable_p "$ac_dir/$ac_word" || continue
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:1677: found $ac_dir/$ac_word" >&5
1683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684 if test -n "$ac_ct_CC"; then
1685 echo "$as_me:1685: result: $ac_ct_CC" >&5
1686 echo "${ECHO_T}$ac_ct_CC" >&6
1688 echo "$as_me:1688: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1692 test -n "$ac_ct_CC" && break
1700 test -z "$CC" && { { echo "$as_me:1700: error: no acceptable cc found in \$PATH" >&5
1701 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1702 { (exit 1); exit 1; }; }
1704 # Provide some information about the compiler.
1705 echo "$as_me:1705:" \
1706 "checking for C compiler version" >&5
1707 ac_compiler=`set X $ac_compile; echo $2`
1708 { (eval echo "$as_me:1708: \"$ac_compiler --version </dev/null >&5\"") >&5
1709 (eval $ac_compiler --version </dev/null >&5) 2>&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1713 { (eval echo "$as_me:1713: \"$ac_compiler -v </dev/null >&5\"") >&5
1714 (eval $ac_compiler -v </dev/null >&5) 2>&5
1716 echo "$as_me:1716: \$? = $ac_status" >&5
1717 (exit $ac_status); }
1718 { (eval echo "$as_me:1718: \"$ac_compiler -V </dev/null >&5\"") >&5
1719 (eval $ac_compiler -V </dev/null >&5) 2>&5
1721 echo "$as_me:1721: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1724 cat >conftest.$ac_ext <<_ACEOF
1725 #line 1725 "configure"
1726 #include "confdefs.h"
1736 ac_clean_files_save=$ac_clean_files
1737 ac_clean_files="$ac_clean_files a.out a.exe"
1738 # Try to create an executable without -o first, disregard a.out.
1739 # It will help us diagnose broken compilers, and finding out an intuition
1741 echo "$as_me:1741: checking for C compiler default output" >&5
1742 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1743 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1744 if { (eval echo "$as_me:1744: \"$ac_link_default\"") >&5
1745 (eval $ac_link_default) 2>&5
1747 echo "$as_me:1747: \$? = $ac_status" >&5
1748 (exit $ac_status); }; then
1749 # Find the output, starting from the most likely. This scheme is
1750 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1752 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1753 ls a.out conftest 2>/dev/null;
1754 ls a.* conftest.* 2>/dev/null`; do
1756 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1757 a.out ) # We found the default executable, but exeext='' is most
1760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1761 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1768 echo "$as_me: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1770 { { echo "$as_me:1770: error: C compiler cannot create executables" >&5
1771 echo "$as_me: error: C compiler cannot create executables" >&2;}
1772 { (exit 77); exit 77; }; }
1775 ac_exeext=$ac_cv_exeext
1776 echo "$as_me:1776: result: $ac_file" >&5
1777 echo "${ECHO_T}$ac_file" >&6
1779 # Check the compiler produces executables we can run. If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:1781: checking whether the C compiler works" >&5
1782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784 # If not cross compiling, check that we can run a simple program.
1785 if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:1787: \"$ac_try\"") >&5
1790 echo "$as_me:1790: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1794 if test "$cross_compiling" = maybe; then
1797 { { echo "$as_me:1797: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'." >&5
1799 echo "$as_me: error: cannot run C compiled programs.
1800 If you meant to cross compile, use \`--host'." >&2;}
1801 { (exit 1); exit 1; }; }
1805 echo "$as_me:1805: result: yes" >&5
1806 echo "${ECHO_T}yes" >&6
1808 rm -f a.out a.exe conftest$ac_cv_exeext
1809 ac_clean_files=$ac_clean_files_save
1810 # Check the compiler produces executables we can run. If not, either
1811 # the compiler is broken, or we cross compile.
1812 echo "$as_me:1812: checking whether we are cross compiling" >&5
1813 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1814 echo "$as_me:1814: result: $cross_compiling" >&5
1815 echo "${ECHO_T}$cross_compiling" >&6
1817 echo "$as_me:1817: checking for executable suffix" >&5
1818 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1819 if { (eval echo "$as_me:1819: \"$ac_link\"") >&5
1820 (eval $ac_link) 2>&5
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); }; then
1824 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1825 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1826 # work properly (i.e., refer to `conftest.exe'), while it won't with
1828 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 { { echo "$as_me:1838: error: cannot compute EXEEXT: cannot compile and link" >&5
1839 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1840 { (exit 1); exit 1; }; }
1843 rm -f conftest$ac_cv_exeext
1844 echo "$as_me:1844: result: $ac_cv_exeext" >&5
1845 echo "${ECHO_T}$ac_cv_exeext" >&6
1847 rm -f conftest.$ac_ext
1848 EXEEXT=$ac_cv_exeext
1850 echo "$as_me:1850: checking for object suffix" >&5
1851 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1852 if test "${ac_cv_objext+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line 1856 "configure"
1857 #include "confdefs.h"
1867 rm -f conftest.o conftest.obj
1868 if { (eval echo "$as_me:1868: \"$ac_compile\"") >&5
1869 (eval $ac_compile) 2>&5
1871 echo "$as_me:1871: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1875 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1876 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1881 echo "$as_me: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 { { echo "$as_me:1883: error: cannot compute OBJEXT: cannot compile" >&5
1884 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1885 { (exit 1); exit 1; }; }
1888 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1890 echo "$as_me:1890: result: $ac_cv_objext" >&5
1891 echo "${ECHO_T}$ac_cv_objext" >&6
1892 OBJEXT=$ac_cv_objext
1894 echo "$as_me:1894: checking whether we are using the GNU C compiler" >&5
1895 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1896 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 cat >conftest.$ac_ext <<_ACEOF
1900 #line 1900 "configure"
1901 #include "confdefs.h"
1914 rm -f conftest.$ac_objext
1915 if { (eval echo "$as_me:1915: \"$ac_compile\"") >&5
1916 (eval $ac_compile) 2>&5
1918 echo "$as_me:1918: \$? = $ac_status" >&5
1919 (exit $ac_status); } &&
1920 { ac_try='test -s conftest.$ac_objext'
1921 { (eval echo "$as_me:1921: \"$ac_try\"") >&5
1924 echo "$as_me:1924: \$? = $ac_status" >&5
1925 (exit $ac_status); }; }; then
1928 echo "$as_me: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1932 rm -f conftest.$ac_objext conftest.$ac_ext
1933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1936 echo "$as_me:1936: result: $ac_cv_c_compiler_gnu" >&5
1937 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1938 GCC=`test $ac_compiler_gnu = yes && echo yes`
1939 ac_test_CFLAGS=${CFLAGS+set}
1940 ac_save_CFLAGS=$CFLAGS
1942 echo "$as_me:1942: checking whether $CC accepts -g" >&5
1943 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1944 if test "${ac_cv_prog_cc_g+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 cat >conftest.$ac_ext <<_ACEOF
1948 #line 1948 "configure"
1949 #include "confdefs.h"
1959 rm -f conftest.$ac_objext
1960 if { (eval echo "$as_me:1960: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>&5
1963 echo "$as_me:1963: \$? = $ac_status" >&5
1964 (exit $ac_status); } &&
1965 { ac_try='test -s conftest.$ac_objext'
1966 { (eval echo "$as_me:1966: \"$ac_try\"") >&5
1969 echo "$as_me:1969: \$? = $ac_status" >&5
1970 (exit $ac_status); }; }; then
1973 echo "$as_me: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1977 rm -f conftest.$ac_objext conftest.$ac_ext
1979 echo "$as_me:1979: result: $ac_cv_prog_cc_g" >&5
1980 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1981 if test "$ac_test_CFLAGS" = set; then
1982 CFLAGS=$ac_save_CFLAGS
1983 elif test $ac_cv_prog_cc_g = yes; then
1984 if test "$GCC" = yes; then
1990 if test "$GCC" = yes; then
1996 # Some people use a C++ compiler to compile C. Since we use `exit',
1997 # in C++ we need to declare it. In case someone uses the same compiler
1998 # for both compiling C and C++ we need to have the C++ compiler decide
1999 # the declaration of exit, since it's the most demanding environment.
2000 cat >conftest.$ac_ext <<_ACEOF
2005 rm -f conftest.$ac_objext
2006 if { (eval echo "$as_me:2006: \"$ac_compile\"") >&5
2007 (eval $ac_compile) 2>&5
2009 echo "$as_me:2009: \$? = $ac_status" >&5
2010 (exit $ac_status); } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:2012: \"$ac_try\"") >&5
2015 echo "$as_me:2015: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 for ac_declaration in \
2019 '#include <stdlib.h>' \
2020 'extern "C" void std::exit (int) throw (); using std::exit;' \
2021 'extern "C" void std::exit (int); using std::exit;' \
2022 'extern "C" void exit (int) throw ();' \
2023 'extern "C" void exit (int);' \
2026 cat >conftest.$ac_ext <<_ACEOF
2027 #line 2027 "configure"
2028 #include "confdefs.h"
2039 rm -f conftest.$ac_objext
2040 if { (eval echo "$as_me:2040: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>&5
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit $ac_status); } &&
2045 { ac_try='test -s conftest.$ac_objext'
2046 { (eval echo "$as_me:2046: \"$ac_try\"") >&5
2049 echo "$as_me:2049: \$? = $ac_status" >&5
2050 (exit $ac_status); }; }; then
2053 echo "$as_me: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2058 cat >conftest.$ac_ext <<_ACEOF
2059 #line 2059 "configure"
2060 #include "confdefs.h"
2070 rm -f conftest.$ac_objext
2071 if { (eval echo "$as_me:2071: \"$ac_compile\"") >&5
2072 (eval $ac_compile) 2>&5
2074 echo "$as_me:2074: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try='test -s conftest.$ac_objext'
2077 { (eval echo "$as_me:2077: \"$ac_try\"") >&5
2080 echo "$as_me:2080: \$? = $ac_status" >&5
2081 (exit $ac_status); }; }; then
2084 echo "$as_me: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 rm -f conftest.$ac_objext conftest.$ac_ext
2090 if test -n "$ac_declaration"; then
2091 echo '#ifdef __cplusplus' >>confdefs.h
2092 echo $ac_declaration >>confdefs.h
2093 echo '#endif' >>confdefs.h
2097 echo "$as_me: failed program was:" >&5
2098 cat conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 ac_main_return=return
2109 if test "$GCC" = yes ; then
2110 echo "$as_me:2110: checking version of $CC" >&5
2111 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2112 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2113 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2114 echo "$as_me:2114: result: $GCC_VERSION" >&5
2115 echo "${ECHO_T}$GCC_VERSION" >&6
2119 ac_cpp='$CPP $CPPFLAGS'
2120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123 ac_main_return=return
2124 echo "$as_me:2124: checking how to run the C preprocessor" >&5
2125 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2126 # On Suns, sometimes $CPP names a directory.
2127 if test -n "$CPP" && test -d "$CPP"; then
2130 if test -z "$CPP"; then
2131 if test "${ac_cv_prog_CPP+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 # Double quotes because CPP needs to be expanded
2135 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2138 for ac_c_preproc_warn_flag in '' yes
2140 # Use a header file that comes with gcc, so configuring glibc
2141 # with a fresh cross-compiler works.
2142 # On the NeXT, cc -E runs the code through the compiler's parser,
2143 # not just through cpp. "Syntax error" is here to catch this case.
2144 cat >conftest.$ac_ext <<_ACEOF
2145 #line 2145 "configure"
2146 #include "confdefs.h"
2150 if { (eval echo "$as_me:2150: \"$ac_cpp conftest.$ac_ext\"") >&5
2151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2153 egrep -v '^ *\+' conftest.er1 >conftest.err
2155 cat conftest.err >&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); } >/dev/null; then
2158 if test -s conftest.err; then
2159 ac_cpp_err=$ac_c_preproc_warn_flag
2166 if test -z "$ac_cpp_err"; then
2169 echo "$as_me: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2171 # Broken: fails on valid input.
2174 rm -f conftest.err conftest.$ac_ext
2176 # OK, works on sane cases. Now check whether non-existent headers
2177 # can be detected and how.
2178 cat >conftest.$ac_ext <<_ACEOF
2179 #line 2179 "configure"
2180 #include "confdefs.h"
2181 #include <ac_nonexistent.h>
2183 if { (eval echo "$as_me:2183: \"$ac_cpp conftest.$ac_ext\"") >&5
2184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2186 egrep -v '^ *\+' conftest.er1 >conftest.err
2188 cat conftest.err >&5
2189 echo "$as_me:2189: \$? = $ac_status" >&5
2190 (exit $ac_status); } >/dev/null; then
2191 if test -s conftest.err; then
2192 ac_cpp_err=$ac_c_preproc_warn_flag
2199 if test -z "$ac_cpp_err"; then
2200 # Broken: success on invalid input.
2203 echo "$as_me: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 # Passes both tests.
2209 rm -f conftest.err conftest.$ac_ext
2212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2213 rm -f conftest.err conftest.$ac_ext
2214 if $ac_preproc_ok; then
2226 echo "$as_me:2226: result: $CPP" >&5
2227 echo "${ECHO_T}$CPP" >&6
2229 for ac_c_preproc_warn_flag in '' yes
2231 # Use a header file that comes with gcc, so configuring glibc
2232 # with a fresh cross-compiler works.
2233 # On the NeXT, cc -E runs the code through the compiler's parser,
2234 # not just through cpp. "Syntax error" is here to catch this case.
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #line 2236 "configure"
2237 #include "confdefs.h"
2241 if { (eval echo "$as_me:2241: \"$ac_cpp conftest.$ac_ext\"") >&5
2242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2244 egrep -v '^ *\+' conftest.er1 >conftest.err
2246 cat conftest.err >&5
2247 echo "$as_me:2247: \$? = $ac_status" >&5
2248 (exit $ac_status); } >/dev/null; then
2249 if test -s conftest.err; then
2250 ac_cpp_err=$ac_c_preproc_warn_flag
2257 if test -z "$ac_cpp_err"; then
2260 echo "$as_me: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2262 # Broken: fails on valid input.
2265 rm -f conftest.err conftest.$ac_ext
2267 # OK, works on sane cases. Now check whether non-existent headers
2268 # can be detected and how.
2269 cat >conftest.$ac_ext <<_ACEOF
2270 #line 2270 "configure"
2271 #include "confdefs.h"
2272 #include <ac_nonexistent.h>
2274 if { (eval echo "$as_me:2274: \"$ac_cpp conftest.$ac_ext\"") >&5
2275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2277 egrep -v '^ *\+' conftest.er1 >conftest.err
2279 cat conftest.err >&5
2280 echo "$as_me:2280: \$? = $ac_status" >&5
2281 (exit $ac_status); } >/dev/null; then
2282 if test -s conftest.err; then
2283 ac_cpp_err=$ac_c_preproc_warn_flag
2290 if test -z "$ac_cpp_err"; then
2291 # Broken: success on invalid input.
2294 echo "$as_me: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2296 # Passes both tests.
2300 rm -f conftest.err conftest.$ac_ext
2303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2304 rm -f conftest.err conftest.$ac_ext
2305 if $ac_preproc_ok; then
2308 { { echo "$as_me:2308: error: C preprocessor \"$CPP\" fails sanity check" >&5
2309 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2310 { (exit 1); exit 1; }; }
2314 ac_cpp='$CPP $CPPFLAGS'
2315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2318 ac_main_return=return
2320 if test $ac_cv_c_compiler_gnu = yes; then
2321 echo "$as_me:2321: checking whether $CC needs -traditional" >&5
2322 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2323 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 ac_pattern="Autoconf.*'x'"
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line 2328 "configure"
2329 #include "confdefs.h"
2331 int Autoconf = TIOCGETP;
2333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2334 egrep "$ac_pattern" >/dev/null 2>&1; then
2335 ac_cv_prog_gcc_traditional=yes
2337 ac_cv_prog_gcc_traditional=no
2341 if test $ac_cv_prog_gcc_traditional = no; then
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2346 int Autoconf = TCGETA;
2348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2349 egrep "$ac_pattern" >/dev/null 2>&1; then
2350 ac_cv_prog_gcc_traditional=yes
2356 echo "$as_me:2356: result: $ac_cv_prog_gcc_traditional" >&5
2357 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2358 if test $ac_cv_prog_gcc_traditional = yes; then
2359 CC="$CC -traditional"
2363 echo "$as_me:2363: checking whether $CC understands -c and -o together" >&5
2364 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2365 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat > conftest.$ac_ext <<CF_EOF
2373 ${cf_cv_main_return:-return}(0);
2376 # We do the test twice because some compilers refuse to overwrite an
2377 # existing .o file with -o, though they will create one.
2378 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2379 if { (eval echo "$as_me:2379: \"$ac_try\"") >&5
2382 echo "$as_me:2382: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 test -f conftest2.$ac_objext && { (eval echo "$as_me:2384: \"$ac_try\"") >&5
2387 echo "$as_me:2387: \$? = $ac_status" >&5
2388 (exit $ac_status); };
2390 eval cf_cv_prog_CC_c_o=yes
2392 eval cf_cv_prog_CC_c_o=no
2397 if test $cf_cv_prog_CC_c_o = yes; then
2398 echo "$as_me:2398: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6
2401 echo "$as_me:2401: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2405 echo "$as_me:2405: checking for POSIXized ISC" >&5
2406 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2407 if test -d /etc/conf/kconfig.d &&
2408 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2410 echo "$as_me:2410: result: yes" >&5
2411 echo "${ECHO_T}yes" >&6
2412 ISC=yes # If later tests want to check for ISC.
2414 cat >>confdefs.h <<\EOF
2415 #define _POSIX_SOURCE 1
2418 if test "$GCC" = yes; then
2424 echo "$as_me:2424: result: no" >&5
2425 echo "${ECHO_T}no" >&6
2429 # This should have been defined by AC_PROG_CC
2432 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2433 # into CC. This will not help with broken scripts that wrap the compiler with
2434 # options, but eliminates a more common category of user confusion.
2435 echo "$as_me:2435: checking \$CC variable" >&5
2436 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2439 echo "$as_me:2439: result: broken" >&5
2440 echo "${ECHO_T}broken" >&6
2441 { echo "$as_me:2441: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2442 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2444 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2445 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2450 cf_new_extra_cppflags=
2452 for cf_add_cflags in $cf_flags
2454 case $cf_fix_cppflags in
2456 case $cf_add_cflags in #(vi
2457 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2458 case $cf_add_cflags in
2460 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2462 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2463 && test -z "${cf_tst_cflags}" \
2464 && cf_fix_cppflags=yes
2466 if test $cf_fix_cppflags = yes ; then
2467 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2469 elif test "${cf_tst_cflags}" = "\"'" ; then
2470 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2476 *$cf_add_cflags) #(vi
2479 case $cf_add_cflags in #(vi
2481 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2483 CPPFLAGS=`echo "$CPPFLAGS" | \
2484 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2485 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2489 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2494 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2499 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2501 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2503 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2504 && test -z "${cf_tst_cflags}" \
2505 && cf_fix_cppflags=no
2510 if test -n "$cf_new_cflags" ; then
2512 CFLAGS="$CFLAGS $cf_new_cflags"
2515 if test -n "$cf_new_cppflags" ; then
2517 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2520 if test -n "$cf_new_extra_cppflags" ; then
2522 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2527 echo "$as_me:2527: result: ok" >&5
2528 echo "${ECHO_T}ok" >&6
2532 echo "$as_me:2532: checking for ${CC:-cc} option to accept ANSI C" >&5
2533 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2534 if test "${cf_cv_ansi_cc+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 cf_save_CFLAGS="$CFLAGS"
2540 cf_save_CPPFLAGS="$CPPFLAGS"
2541 # Don't try gcc -ansi; that turns off useful extensions and
2542 # breaks some systems' header files.
2543 # AIX -qlanglvl=ansi
2544 # Ultrix and OSF/1 -std1
2545 # HP-UX -Aa -D_HPUX_SOURCE
2547 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2548 for cf_arg in "-DCC_HAS_PROTOS" \
2553 "-Aa -D_HPUX_SOURCE" \
2560 cf_new_extra_cppflags=
2562 for cf_add_cflags in $cf_arg
2564 case $cf_fix_cppflags in
2566 case $cf_add_cflags in #(vi
2567 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2568 case $cf_add_cflags in
2570 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2572 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2573 && test -z "${cf_tst_cflags}" \
2574 && cf_fix_cppflags=yes
2576 if test $cf_fix_cppflags = yes ; then
2577 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2579 elif test "${cf_tst_cflags}" = "\"'" ; then
2580 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2586 *$cf_add_cflags) #(vi
2589 case $cf_add_cflags in #(vi
2591 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2593 CPPFLAGS=`echo "$CPPFLAGS" | \
2594 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2595 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2599 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2604 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2609 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2611 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2613 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2614 && test -z "${cf_tst_cflags}" \
2615 && cf_fix_cppflags=no
2620 if test -n "$cf_new_cflags" ; then
2622 CFLAGS="$CFLAGS $cf_new_cflags"
2625 if test -n "$cf_new_cppflags" ; then
2627 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2630 if test -n "$cf_new_extra_cppflags" ; then
2632 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2635 cat >conftest.$ac_ext <<_ACEOF
2636 #line 2636 "configure"
2637 #include "confdefs.h"
2639 #ifndef CC_HAS_PROTOS
2640 #if !defined(__STDC__) || (__STDC__ != 1)
2649 int test (int i, double x);
2650 struct s1 {int (*f) (int a);};
2651 struct s2 {int (*f) (double a);};
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:2657: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>&5
2660 echo "$as_me:2660: \$? = $ac_status" >&5
2661 (exit $ac_status); } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:2663: \"$ac_try\"") >&5
2666 echo "$as_me:2666: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 cf_cv_ansi_cc="$cf_arg"; break
2670 echo "$as_me: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 rm -f conftest.$ac_objext conftest.$ac_ext
2675 CFLAGS="$cf_save_CFLAGS"
2676 CPPFLAGS="$cf_save_CPPFLAGS"
2679 echo "$as_me:2679: result: $cf_cv_ansi_cc" >&5
2680 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2682 if test "$cf_cv_ansi_cc" != "no"; then
2683 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2688 cf_new_extra_cppflags=
2690 for cf_add_cflags in $cf_cv_ansi_cc
2692 case $cf_fix_cppflags in
2694 case $cf_add_cflags in #(vi
2695 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2696 case $cf_add_cflags in
2698 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2700 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2701 && test -z "${cf_tst_cflags}" \
2702 && cf_fix_cppflags=yes
2704 if test $cf_fix_cppflags = yes ; then
2705 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2707 elif test "${cf_tst_cflags}" = "\"'" ; then
2708 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2714 *$cf_add_cflags) #(vi
2717 case $cf_add_cflags in #(vi
2719 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2721 CPPFLAGS=`echo "$CPPFLAGS" | \
2722 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2723 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2727 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2732 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2737 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2739 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2741 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2742 && test -z "${cf_tst_cflags}" \
2743 && cf_fix_cppflags=no
2748 if test -n "$cf_new_cflags" ; then
2750 CFLAGS="$CFLAGS $cf_new_cflags"
2753 if test -n "$cf_new_cppflags" ; then
2755 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2758 if test -n "$cf_new_extra_cppflags" ; then
2760 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2764 cat >>confdefs.h <<\EOF
2765 #define CC_HAS_PROTOS 1
2771 if test "$cf_cv_ansi_cc" = "no"; then
2772 { { echo "$as_me:2772: error: Your compiler does not appear to recognize prototypes.
2773 You have the following choices:
2774 a. adjust your compiler options
2775 b. get an up-to-date compiler
2776 c. use a wrapper such as unproto" >&5
2777 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2778 You have the following choices:
2779 a. adjust your compiler options
2780 b. get an up-to-date compiler
2781 c. use a wrapper such as unproto" >&2;}
2782 { (exit 1); exit 1; }; }
2785 case $cf_cv_system_name in
2787 CFLAGS="$CFLAGS -Zmt"
2788 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2789 CXXFLAGS="$CXXFLAGS -Zmt"
2790 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2791 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2798 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2799 #define PROG_EXT "$PROG_EXT"
2802 if test "$cross_compiling" = yes ; then
2805 case "$cf_cv_system_name" in #(vi
2806 dragonfly*|mirbsd*|freebsd*) #(vi
2807 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2809 *) LDPATH=$PATH:/sbin:/usr/sbin
2810 # Extract the first word of "ldconfig", so it can be a program name with args.
2811 set dummy ldconfig; ac_word=$2
2812 echo "$as_me:2812: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2822 ac_save_IFS=$IFS; IFS=$ac_path_separator
2824 for ac_dir in $ac_dummy; do
2826 test -z "$ac_dir" && ac_dir=.
2827 if $as_executable_p "$ac_dir/$ac_word"; then
2828 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2829 echo "$as_me:2829: found $ac_dir/$ac_word" >&5
2837 LDCONFIG=$ac_cv_path_LDCONFIG
2839 if test -n "$LDCONFIG"; then
2840 echo "$as_me:2840: result: $LDCONFIG" >&5
2841 echo "${ECHO_T}$LDCONFIG" >&6
2843 echo "$as_me:2843: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2851 echo "$as_me:2851: checking if you want to ensure bool is consistent with C++" >&5
2852 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2854 # Check whether --with-cxx or --without-cxx was given.
2855 if test "${with_cxx+set}" = set; then
2857 cf_with_cxx=$withval
2861 echo "$as_me:2861: result: $cf_with_cxx" >&5
2862 echo "${ECHO_T}$cf_with_cxx" >&6
2863 if test "X$cf_with_cxx" = Xno ; then
2867 # with autoconf 2.13, we can change the error to a warning:
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2873 ac_main_return=return
2874 if test -n "$ac_tool_prefix"; then
2875 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2879 echo "$as_me:2879: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881 if test "${ac_cv_prog_CXX+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 if test -n "$CXX"; then
2885 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2887 ac_save_IFS=$IFS; IFS=$ac_path_separator
2889 for ac_dir in $ac_dummy; do
2891 test -z "$ac_dir" && ac_dir=.
2892 $as_executable_p "$ac_dir/$ac_word" || continue
2893 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2894 echo "$as_me:2894: found $ac_dir/$ac_word" >&5
2901 if test -n "$CXX"; then
2902 echo "$as_me:2902: result: $CXX" >&5
2903 echo "${ECHO_T}$CXX" >&6
2905 echo "$as_me:2905: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2909 test -n "$CXX" && break
2912 if test -z "$CXX"; then
2914 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 echo "$as_me:2918: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2920 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 if test -n "$ac_ct_CXX"; then
2924 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2926 ac_save_IFS=$IFS; IFS=$ac_path_separator
2928 for ac_dir in $ac_dummy; do
2930 test -z "$ac_dir" && ac_dir=.
2931 $as_executable_p "$ac_dir/$ac_word" || continue
2932 ac_cv_prog_ac_ct_CXX="$ac_prog"
2933 echo "$as_me:2933: found $ac_dir/$ac_word" >&5
2939 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2940 if test -n "$ac_ct_CXX"; then
2941 echo "$as_me:2941: result: $ac_ct_CXX" >&5
2942 echo "${ECHO_T}$ac_ct_CXX" >&6
2944 echo "$as_me:2944: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2948 test -n "$ac_ct_CXX" && break
2950 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2955 # Provide some information about the compiler.
2956 echo "$as_me:2956:" \
2957 "checking for C++ compiler version" >&5
2958 ac_compiler=`set X $ac_compile; echo $2`
2959 { (eval echo "$as_me:2959: \"$ac_compiler --version </dev/null >&5\"") >&5
2960 (eval $ac_compiler --version </dev/null >&5) 2>&5
2962 echo "$as_me:2962: \$? = $ac_status" >&5
2963 (exit $ac_status); }
2964 { (eval echo "$as_me:2964: \"$ac_compiler -v </dev/null >&5\"") >&5
2965 (eval $ac_compiler -v </dev/null >&5) 2>&5
2967 echo "$as_me:2967: \$? = $ac_status" >&5
2968 (exit $ac_status); }
2969 { (eval echo "$as_me:2969: \"$ac_compiler -V </dev/null >&5\"") >&5
2970 (eval $ac_compiler -V </dev/null >&5) 2>&5
2972 echo "$as_me:2972: \$? = $ac_status" >&5
2973 (exit $ac_status); }
2975 echo "$as_me:2975: checking whether we are using the GNU C++ compiler" >&5
2976 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2977 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 cat >conftest.$ac_ext <<_ACEOF
2981 #line 2981 "configure"
2982 #include "confdefs.h"
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:2996: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>&5
2999 echo "$as_me:2999: \$? = $ac_status" >&5
3000 (exit $ac_status); } &&
3001 { ac_try='test -s conftest.$ac_objext'
3002 { (eval echo "$as_me:3002: \"$ac_try\"") >&5
3005 echo "$as_me:3005: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3009 echo "$as_me: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3013 rm -f conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3017 echo "$as_me:3017: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3023 echo "$as_me:3023: checking whether $CXX accepts -g" >&5
3024 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3025 if test "${ac_cv_prog_cxx_g+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line 3029 "configure"
3030 #include "confdefs.h"
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:3041: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>&5
3044 echo "$as_me:3044: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:3047: \"$ac_try\"") >&5
3050 echo "$as_me:3050: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_cv_prog_cxx_g=yes
3054 echo "$as_me: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3058 rm -f conftest.$ac_objext conftest.$ac_ext
3060 echo "$as_me:3060: result: $ac_cv_prog_cxx_g" >&5
3061 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3062 if test "$ac_test_CXXFLAGS" = set; then
3063 CXXFLAGS=$ac_save_CXXFLAGS
3064 elif test $ac_cv_prog_cxx_g = yes; then
3065 if test "$GXX" = yes; then
3071 if test "$GXX" = yes; then
3077 for ac_declaration in \
3079 '#include <stdlib.h>' \
3080 'extern "C" void std::exit (int) throw (); using std::exit;' \
3081 'extern "C" void std::exit (int); using std::exit;' \
3082 'extern "C" void exit (int) throw ();' \
3083 'extern "C" void exit (int);' \
3086 cat >conftest.$ac_ext <<_ACEOF
3087 #line 3087 "configure"
3088 #include "confdefs.h"
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:3100: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3103 echo "$as_me:3103: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:3106: \"$ac_try\"") >&5
3109 echo "$as_me:3109: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3117 rm -f conftest.$ac_objext conftest.$ac_ext
3118 cat >conftest.$ac_ext <<_ACEOF
3119 #line 3119 "configure"
3120 #include "confdefs.h"
3130 rm -f conftest.$ac_objext
3131 if { (eval echo "$as_me:3131: \"$ac_compile\"") >&5
3132 (eval $ac_compile) 2>&5
3134 echo "$as_me:3134: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (eval echo "$as_me:3137: \"$ac_try\"") >&5
3140 echo "$as_me:3140: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3144 echo "$as_me: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3147 rm -f conftest.$ac_objext conftest.$ac_ext
3150 if test -n "$ac_declaration"; then
3151 echo '#ifdef __cplusplus' >>confdefs.h
3152 echo $ac_declaration >>confdefs.h
3153 echo '#endif' >>confdefs.h
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161 ac_main_return=return
3163 # autoconf 2.5x removed the error - by hardcoding it to g++.
3164 if test "$CXX" = "g++" ; then
3165 # Extract the first word of "g++", so it can be a program name with args.
3166 set dummy g++; ac_word=$2
3167 echo "$as_me:3167: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_path_CXX+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3177 ac_save_IFS=$IFS; IFS=$ac_path_separator
3179 for ac_dir in $ac_dummy; do
3181 test -z "$ac_dir" && ac_dir=.
3182 if $as_executable_p "$ac_dir/$ac_word"; then
3183 ac_cv_path_CXX="$ac_dir/$ac_word"
3184 echo "$as_me:3184: found $ac_dir/$ac_word" >&5
3194 if test -n "$CXX"; then
3195 echo "$as_me:3195: result: $CXX" >&5
3196 echo "${ECHO_T}$CXX" >&6
3198 echo "$as_me:3198: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3203 if test "$CXX" = "g++" ; then
3204 { echo "$as_me:3204: WARNING: ignoring hardcoded g++" >&5
3205 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3206 cf_with_cxx=no; CXX=""; GXX="";
3211 if test "$GXX" = yes; then
3212 echo "$as_me:3212: checking version of g++" >&5
3213 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3214 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3215 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3216 echo "$as_me:3216: result: $GXX_VERSION" >&5
3217 echo "${ECHO_T}$GXX_VERSION" >&6
3220 case $GXX_VERSION in
3222 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3224 { echo "$as_me:3224: WARNING: templates do not work" >&5
3225 echo "$as_me: WARNING: templates do not work" >&2;}
3229 echo "$as_me:3229: checking if you want to build C++ binding and demo" >&5
3230 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3232 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3233 if test "${with_cxx_binding+set}" = set; then
3234 withval="$with_cxx_binding"
3235 cf_with_cxx_binding=$withval
3237 cf_with_cxx_binding=$cf_with_cxx
3239 echo "$as_me:3239: result: $cf_with_cxx_binding" >&5
3240 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3242 echo "$as_me:3242: checking if you want to build with Ada95" >&5
3243 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3245 # Check whether --with-ada or --without-ada was given.
3246 if test "${with_ada+set}" = set; then
3248 cf_with_ada=$withval
3252 echo "$as_me:3252: result: $cf_with_ada" >&5
3253 echo "${ECHO_T}$cf_with_ada" >&6
3255 echo "$as_me:3255: checking if you want to install manpages" >&5
3256 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3258 # Check whether --with-manpages or --without-manpages was given.
3259 if test "${with_manpages+set}" = set; then
3260 withval="$with_manpages"
3261 cf_with_manpages=$withval
3263 cf_with_manpages=yes
3265 echo "$as_me:3265: result: $cf_with_manpages" >&5
3266 echo "${ECHO_T}$cf_with_manpages" >&6
3268 echo "$as_me:3268: checking if you want to build programs such as tic" >&5
3269 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3271 # Check whether --with-progs or --without-progs was given.
3272 if test "${with_progs+set}" = set; then
3273 withval="$with_progs"
3274 cf_with_progs=$withval
3278 echo "$as_me:3278: result: $cf_with_progs" >&5
3279 echo "${ECHO_T}$cf_with_progs" >&6
3281 echo "$as_me:3281: checking if you want to build test-programs" >&5
3282 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3284 # Check whether --with-tests or --without-tests was given.
3285 if test "${with_tests+set}" = set; then
3286 withval="$with_tests"
3287 cf_with_tests=$withval
3291 echo "$as_me:3291: result: $cf_with_tests" >&5
3292 echo "${ECHO_T}$cf_with_tests" >&6
3294 echo "$as_me:3294: checking if you wish to install curses.h" >&5
3295 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3297 # Check whether --with-curses-h or --without-curses-h was given.
3298 if test "${with_curses_h+set}" = set; then
3299 withval="$with_curses_h"
3300 with_curses_h=$withval
3304 echo "$as_me:3304: result: $with_curses_h" >&5
3305 echo "${ECHO_T}$with_curses_h" >&6
3307 modules_to_build="ncurses"
3308 if test "X$cf_with_progs" != Xno ; then
3309 modules_to_build="$modules_to_build progs tack"
3311 modules_to_build="$modules_to_build panel menu form"
3313 test "$program_prefix" != NONE &&
3314 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3315 # Use a double $ so make ignores it.
3316 test "$program_suffix" != NONE &&
3317 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3318 # Double any \ or $. echo might interpret backslashes.
3319 # By default was `s,x,x', remove it if useless.
3320 cat <<\_ACEOF >conftest.sed
3321 s/[\\$]/&&/g;s/;s,x,x,$//
3323 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3326 for ac_prog in mawk gawk nawk awk
3328 # Extract the first word of "$ac_prog", so it can be a program name with args.
3329 set dummy $ac_prog; ac_word=$2
3330 echo "$as_me:3330: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_AWK+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 if test -n "$AWK"; then
3336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3338 ac_save_IFS=$IFS; IFS=$ac_path_separator
3340 for ac_dir in $ac_dummy; do
3342 test -z "$ac_dir" && ac_dir=.
3343 $as_executable_p "$ac_dir/$ac_word" || continue
3344 ac_cv_prog_AWK="$ac_prog"
3345 echo "$as_me:3345: found $ac_dir/$ac_word" >&5
3352 if test -n "$AWK"; then
3353 echo "$as_me:3353: result: $AWK" >&5
3354 echo "${ECHO_T}$AWK" >&6
3356 echo "$as_me:3356: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3360 test -n "$AWK" && break
3363 test -z "$AWK" && { { echo "$as_me:3363: error: No awk program found" >&5
3364 echo "$as_me: error: No awk program found" >&2;}
3365 { (exit 1); exit 1; }; }
3367 echo "$as_me:3367: checking for egrep" >&5
3368 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3369 if test "${ac_cv_prog_egrep+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3373 then ac_cv_prog_egrep='grep -E'
3374 else ac_cv_prog_egrep='egrep'
3377 echo "$as_me:3377: result: $ac_cv_prog_egrep" >&5
3378 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3379 EGREP=$ac_cv_prog_egrep
3381 test -z "$EGREP" && { { echo "$as_me:3381: error: No egrep program found" >&5
3382 echo "$as_me: error: No egrep program found" >&2;}
3383 { (exit 1); exit 1; }; }
3385 # Find a good install program. We prefer a C program (faster),
3386 # so one script is as good as another. But avoid the broken or
3387 # incompatible versions:
3388 # SysV /etc/install, /usr/sbin/install
3389 # SunOS /usr/etc/install
3390 # IRIX /sbin/install
3392 # AmigaOS /C/install, which installs bootblocks on floppy discs
3393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3396 # ./install, which can be erroneously created by make from ./install.sh.
3397 echo "$as_me:3397: checking for a BSD compatible install" >&5
3398 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3399 if test -z "$INSTALL"; then
3400 if test "${ac_cv_path_install+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 ac_save_IFS=$IFS; IFS=$ac_path_separator
3404 for ac_dir in $PATH; do
3406 # Account for people who put trailing slashes in PATH elements.
3408 / | ./ | .// | /cC/* \
3409 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3412 # OSF1 and SCO ODT 3.0 have their own names for install.
3413 # Don't use installbsd from OSF since it installs stuff as root
3415 for ac_prog in ginstall scoinst install; do
3416 if $as_executable_p "$ac_dir/$ac_prog"; then
3417 if test $ac_prog = install &&
3418 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3419 # AIX install. It has an incompatible calling convention.
3421 elif test $ac_prog = install &&
3422 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3423 # program-specific install script used by HP pwplus--don't use.
3426 ac_cv_path_install="$ac_dir/$ac_prog -c"
3436 if test "${ac_cv_path_install+set}" = set; then
3437 INSTALL=$ac_cv_path_install
3439 # As a last resort, use the slow shell script. We don't cache a
3440 # path for INSTALL within a source directory, because that will
3441 # break other packages using the cache if that directory is
3442 # removed, or if the path is relative.
3443 INSTALL=$ac_install_sh
3446 echo "$as_me:3446: result: $INSTALL" >&5
3447 echo "${ECHO_T}$INSTALL" >&6
3449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3450 # It thinks the first close brace ends the variable substitution.
3451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3461 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3462 test -z "$cf_dir" && cf_dir=.
3463 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3467 for ac_prog in tdlint lint alint splint lclint
3469 # Extract the first word of "$ac_prog", so it can be a program name with args.
3470 set dummy $ac_prog; ac_word=$2
3471 echo "$as_me:3471: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_prog_LINT+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$LINT"; then
3477 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3479 ac_save_IFS=$IFS; IFS=$ac_path_separator
3481 for ac_dir in $ac_dummy; do
3483 test -z "$ac_dir" && ac_dir=.
3484 $as_executable_p "$ac_dir/$ac_word" || continue
3485 ac_cv_prog_LINT="$ac_prog"
3486 echo "$as_me:3486: found $ac_dir/$ac_word" >&5
3492 LINT=$ac_cv_prog_LINT
3493 if test -n "$LINT"; then
3494 echo "$as_me:3494: result: $LINT" >&5
3495 echo "${ECHO_T}$LINT" >&6
3497 echo "$as_me:3497: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3501 test -n "$LINT" && break
3504 echo "$as_me:3504: checking whether ln -s works" >&5
3505 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3507 if test "$LN_S" = "ln -s"; then
3508 echo "$as_me:3508: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6
3511 echo "$as_me:3511: result: no, using $LN_S" >&5
3512 echo "${ECHO_T}no, using $LN_S" >&6
3515 echo "$as_me:3515: checking if $LN_S -f options work" >&5
3516 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3518 rm -f conf$$.src conf$$dst
3520 echo first >conf$$.src
3521 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3526 rm -f conf$$.dst conf$$src
3527 echo "$as_me:3527: result: $cf_prog_ln_sf" >&5
3528 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3530 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3532 echo "$as_me:3532: checking for long file names" >&5
3533 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3534 if test "${ac_cv_sys_long_file_names+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 ac_cv_sys_long_file_names=yes
3538 # Test for long file names in all the places we know might matter:
3539 # . the current directory, where building will happen
3540 # $prefix/lib where we will be installing things
3541 # $exec_prefix/lib likewise
3542 # eval it to expand exec_prefix.
3543 # $TMPDIR if set, where it might want to write temporary files
3544 # if $TMPDIR is not set:
3545 # /tmp where it might want to write temporary files
3548 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3551 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3553 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3554 test -d $ac_dir || continue
3555 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3556 ac_xdir=$ac_dir/cf$$
3557 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3558 ac_tf1=$ac_xdir/conftest9012345
3559 ac_tf2=$ac_xdir/conftest9012346
3560 (echo 1 >$ac_tf1) 2>/dev/null
3561 (echo 2 >$ac_tf2) 2>/dev/null
3562 ac_val=`cat $ac_tf1 2>/dev/null`
3563 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3564 ac_cv_sys_long_file_names=no
3565 rm -rf $ac_xdir 2>/dev/null
3568 rm -rf $ac_xdir 2>/dev/null
3571 echo "$as_me:3571: result: $ac_cv_sys_long_file_names" >&5
3572 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3573 if test $ac_cv_sys_long_file_names = yes; then
3575 cat >>confdefs.h <<\EOF
3576 #define HAVE_LONG_FILE_NAMES 1
3581 # if we find pkg-config, check if we should install the ".pc" files.
3583 echo "$as_me:3583: checking if you want to use pkg-config" >&5
3584 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3586 # Check whether --with-pkg-config or --without-pkg-config was given.
3587 if test "${with_pkg_config+set}" = set; then
3588 withval="$with_pkg_config"
3589 cf_pkg_config=$withval
3593 echo "$as_me:3593: result: $cf_pkg_config" >&5
3594 echo "${ECHO_T}$cf_pkg_config" >&6
3596 case $cf_pkg_config in #(vi
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3605 echo "$as_me:3605: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3615 ac_save_IFS=$IFS; IFS=$ac_path_separator
3617 for ac_dir in $ac_dummy; do
3619 test -z "$ac_dir" && ac_dir=.
3620 if $as_executable_p "$ac_dir/$ac_word"; then
3621 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3622 echo "$as_me:3622: found $ac_dir/$ac_word" >&5
3630 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3632 if test -n "$PKG_CONFIG"; then
3633 echo "$as_me:3633: result: $PKG_CONFIG" >&5
3634 echo "${ECHO_T}$PKG_CONFIG" >&6
3636 echo "$as_me:3636: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3641 if test -z "$ac_cv_path_PKG_CONFIG"; then
3642 ac_pt_PKG_CONFIG=$PKG_CONFIG
3643 # Extract the first word of "pkg-config", so it can be a program name with args.
3644 set dummy pkg-config; ac_word=$2
3645 echo "$as_me:3645: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 case $ac_pt_PKG_CONFIG in
3652 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3655 ac_save_IFS=$IFS; IFS=$ac_path_separator
3657 for ac_dir in $ac_dummy; do
3659 test -z "$ac_dir" && ac_dir=.
3660 if $as_executable_p "$ac_dir/$ac_word"; then
3661 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3662 echo "$as_me:3662: found $ac_dir/$ac_word" >&5
3667 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3671 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3673 if test -n "$ac_pt_PKG_CONFIG"; then
3674 echo "$as_me:3674: result: $ac_pt_PKG_CONFIG" >&5
3675 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3677 echo "$as_me:3677: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3681 PKG_CONFIG=$ac_pt_PKG_CONFIG
3683 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3692 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3693 if test "$PKG_CONFIG" != none ; then
3695 if test "x$prefix" != xNONE; then
3696 cf_path_syntax="$prefix"
3698 cf_path_syntax="$ac_default_prefix"
3701 case ".$PKG_CONFIG" in #(vi
3702 .\$\(*\)*|.\'*\'*) #(vi
3706 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3709 eval PKG_CONFIG="$PKG_CONFIG"
3710 case ".$PKG_CONFIG" in #(vi
3712 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3717 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3720 { { echo "$as_me:3720: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3721 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3722 { (exit 1); exit 1; }; }
3728 if test "$PKG_CONFIG" != none ; then
3729 echo "$as_me:3729: checking for $PKG_CONFIG library directory" >&5
3730 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3732 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3733 if test "${with_pkg_config_libdir+set}" = set; then
3734 withval="$with_pkg_config_libdir"
3735 PKG_CONFIG_LIBDIR=$withval
3737 PKG_CONFIG_LIBDIR=yes
3740 case x$PKG_CONFIG_LIBDIR in #(vi
3744 # look for the library directory using the same prefix as the executable
3745 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3746 case x`(arch) 2>/dev/null` in #(vi
3748 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3750 if test -d $cf_config/pkgconfig
3752 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3758 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3766 echo "$as_me:3766: result: $PKG_CONFIG_LIBDIR" >&5
3767 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3770 if test "$PKG_CONFIG" != none ; then
3771 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3772 echo "$as_me:3772: checking if we should install .pc files for $PKG_CONFIG" >&5
3773 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3775 # Check whether --enable-pc-files or --disable-pc-files was given.
3776 if test "${enable_pc_files+set}" = set; then
3777 enableval="$enable_pc_files"
3778 enable_pc_files=$enableval
3782 echo "$as_me:3782: result: $enable_pc_files" >&5
3783 echo "${ECHO_T}$enable_pc_files" >&6
3784 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3786 { echo "$as_me:3786: WARNING: did not find $PKG_CONFIG library" >&5
3787 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3793 echo "$as_me:3793: checking if we should assume mixed-case filenames" >&5
3794 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3796 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3797 if test "${enable_mixed_case+set}" = set; then
3798 enableval="$enable_mixed_case"
3799 enable_mixedcase=$enableval
3801 enable_mixedcase=auto
3803 echo "$as_me:3803: result: $enable_mixedcase" >&5
3804 echo "${ECHO_T}$enable_mixedcase" >&6
3805 if test "$enable_mixedcase" = "auto" ; then
3807 echo "$as_me:3807: checking if filesystem supports mixed-case filenames" >&5
3808 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3809 if test "${cf_cv_mixedcase+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 if test "$cross_compiling" = yes ; then
3814 case $target_alias in #(vi
3815 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3823 rm -f conftest CONFTEST
3825 if test -f CONFTEST ; then
3830 rm -f conftest CONFTEST
3834 echo "$as_me:3834: result: $cf_cv_mixedcase" >&5
3835 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3836 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3837 #define MIXEDCASE_FILENAMES 1
3841 cf_cv_mixedcase=$enable_mixedcase
3842 if test "$enable_mixedcase" = "yes" ; then
3843 cat >>confdefs.h <<\EOF
3844 #define MIXEDCASE_FILENAMES 1
3850 # do this after mixed-case option (tags/TAGS is not as important as tic).
3851 echo "$as_me:3851: checking whether ${MAKE-make} sets \${MAKE}" >&5
3852 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3853 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3854 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.make <<\EOF
3859 @echo 'ac_maketemp="${MAKE}"'
3861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3862 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3863 if test -n "$ac_maketemp"; then
3864 eval ac_cv_prog_make_${ac_make}_set=yes
3866 eval ac_cv_prog_make_${ac_make}_set=no
3870 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3871 echo "$as_me:3871: result: yes" >&5
3872 echo "${ECHO_T}yes" >&6
3875 echo "$as_me:3875: result: no" >&5
3876 echo "${ECHO_T}no" >&6
3877 SET_MAKE="MAKE=${MAKE-make}"
3880 for ac_prog in exctags ctags
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883 set dummy $ac_prog; ac_word=$2
3884 echo "$as_me:3884: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_CTAGS+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test -n "$CTAGS"; then
3890 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3892 ac_save_IFS=$IFS; IFS=$ac_path_separator
3894 for ac_dir in $ac_dummy; do
3896 test -z "$ac_dir" && ac_dir=.
3897 $as_executable_p "$ac_dir/$ac_word" || continue
3898 ac_cv_prog_CTAGS="$ac_prog"
3899 echo "$as_me:3899: found $ac_dir/$ac_word" >&5
3905 CTAGS=$ac_cv_prog_CTAGS
3906 if test -n "$CTAGS"; then
3907 echo "$as_me:3907: result: $CTAGS" >&5
3908 echo "${ECHO_T}$CTAGS" >&6
3910 echo "$as_me:3910: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3914 test -n "$CTAGS" && break
3917 for ac_prog in exetags etags
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 echo "$as_me:3921: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_ETAGS+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$ETAGS"; then
3927 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3929 ac_save_IFS=$IFS; IFS=$ac_path_separator
3931 for ac_dir in $ac_dummy; do
3933 test -z "$ac_dir" && ac_dir=.
3934 $as_executable_p "$ac_dir/$ac_word" || continue
3935 ac_cv_prog_ETAGS="$ac_prog"
3936 echo "$as_me:3936: found $ac_dir/$ac_word" >&5
3942 ETAGS=$ac_cv_prog_ETAGS
3943 if test -n "$ETAGS"; then
3944 echo "$as_me:3944: result: $ETAGS" >&5
3945 echo "${ECHO_T}$ETAGS" >&6
3947 echo "$as_me:3947: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3951 test -n "$ETAGS" && break
3954 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3955 set dummy ${CTAGS:-ctags}; ac_word=$2
3956 echo "$as_me:3956: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if test -n "$MAKE_LOWER_TAGS"; then
3962 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3964 ac_save_IFS=$IFS; IFS=$ac_path_separator
3966 for ac_dir in $ac_dummy; do
3968 test -z "$ac_dir" && ac_dir=.
3969 $as_executable_p "$ac_dir/$ac_word" || continue
3970 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3971 echo "$as_me:3971: found $ac_dir/$ac_word" >&5
3975 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3978 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3979 if test -n "$MAKE_LOWER_TAGS"; then
3980 echo "$as_me:3980: result: $MAKE_LOWER_TAGS" >&5
3981 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3983 echo "$as_me:3983: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3987 if test "$cf_cv_mixedcase" = yes ; then
3988 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3989 set dummy ${ETAGS:-etags}; ac_word=$2
3990 echo "$as_me:3990: checking for $ac_word" >&5
3991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3992 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 if test -n "$MAKE_UPPER_TAGS"; then
3996 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3998 ac_save_IFS=$IFS; IFS=$ac_path_separator
4000 for ac_dir in $ac_dummy; do
4002 test -z "$ac_dir" && ac_dir=.
4003 $as_executable_p "$ac_dir/$ac_word" || continue
4004 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4005 echo "$as_me:4005: found $ac_dir/$ac_word" >&5
4009 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4012 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4013 if test -n "$MAKE_UPPER_TAGS"; then
4014 echo "$as_me:4014: result: $MAKE_UPPER_TAGS" >&5
4015 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4017 echo "$as_me:4017: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4025 if test "$MAKE_UPPER_TAGS" = yes ; then
4031 if test "$MAKE_LOWER_TAGS" = yes ; then
4037 echo "$as_me:4037: checking for makeflags variable" >&5
4038 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4039 if test "${cf_cv_makeflags+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4046 cat >cf_makeflags.tmp <<CF_EOF
4049 @ echo '.$cf_option'
4051 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4052 case "$cf_result" in
4054 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4055 case "$cf_result" in
4056 .*CC=*) cf_cv_makeflags=
4058 *) cf_cv_makeflags=$cf_option
4064 *) echo "given option \"$cf_option\", no match \"$cf_result\""
4068 rm -f cf_makeflags.tmp
4071 echo "$as_me:4071: result: $cf_cv_makeflags" >&5
4072 echo "${ECHO_T}$cf_cv_makeflags" >&6
4074 if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4077 echo "$as_me:4077: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_RANLIB+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 if test -n "$RANLIB"; then
4083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4085 ac_save_IFS=$IFS; IFS=$ac_path_separator
4087 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 $as_executable_p "$ac_dir/$ac_word" || continue
4091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4092 echo "$as_me:4092: found $ac_dir/$ac_word" >&5
4098 RANLIB=$ac_cv_prog_RANLIB
4099 if test -n "$RANLIB"; then
4100 echo "$as_me:4100: result: $RANLIB" >&5
4101 echo "${ECHO_T}$RANLIB" >&6
4103 echo "$as_me:4103: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4108 if test -z "$ac_cv_prog_RANLIB"; then
4109 ac_ct_RANLIB=$RANLIB
4110 # Extract the first word of "ranlib", so it can be a program name with args.
4111 set dummy ranlib; ac_word=$2
4112 echo "$as_me:4112: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -n "$ac_ct_RANLIB"; then
4118 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4120 ac_save_IFS=$IFS; IFS=$ac_path_separator
4122 for ac_dir in $ac_dummy; do
4124 test -z "$ac_dir" && ac_dir=.
4125 $as_executable_p "$ac_dir/$ac_word" || continue
4126 ac_cv_prog_ac_ct_RANLIB="ranlib"
4127 echo "$as_me:4127: found $ac_dir/$ac_word" >&5
4131 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4135 if test -n "$ac_ct_RANLIB"; then
4136 echo "$as_me:4136: result: $ac_ct_RANLIB" >&5
4137 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4139 echo "$as_me:4139: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 RANLIB=$ac_ct_RANLIB
4145 RANLIB="$ac_cv_prog_RANLIB"
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}ld; ac_word=$2
4151 echo "$as_me:4151: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153 if test "${ac_cv_prog_LD+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 if test -n "$LD"; then
4157 ac_cv_prog_LD="$LD" # Let the user override the test.
4159 ac_save_IFS=$IFS; IFS=$ac_path_separator
4161 for ac_dir in $ac_dummy; do
4163 test -z "$ac_dir" && ac_dir=.
4164 $as_executable_p "$ac_dir/$ac_word" || continue
4165 ac_cv_prog_LD="${ac_tool_prefix}ld"
4166 echo "$as_me:4166: found $ac_dir/$ac_word" >&5
4173 if test -n "$LD"; then
4174 echo "$as_me:4174: result: $LD" >&5
4175 echo "${ECHO_T}$LD" >&6
4177 echo "$as_me:4177: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4182 if test -z "$ac_cv_prog_LD"; then
4184 # Extract the first word of "ld", so it can be a program name with args.
4185 set dummy ld; ac_word=$2
4186 echo "$as_me:4186: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if test -n "$ac_ct_LD"; then
4192 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4194 ac_save_IFS=$IFS; IFS=$ac_path_separator
4196 for ac_dir in $ac_dummy; do
4198 test -z "$ac_dir" && ac_dir=.
4199 $as_executable_p "$ac_dir/$ac_word" || continue
4200 ac_cv_prog_ac_ct_LD="ld"
4201 echo "$as_me:4201: found $ac_dir/$ac_word" >&5
4205 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4208 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4209 if test -n "$ac_ct_LD"; then
4210 echo "$as_me:4210: result: $ac_ct_LD" >&5
4211 echo "${ECHO_T}$ac_ct_LD" >&6
4213 echo "$as_me:4213: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}ar; ac_word=$2
4225 echo "$as_me:4225: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_prog_AR+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$AR"; then
4231 ac_cv_prog_AR="$AR" # Let the user override the test.
4233 ac_save_IFS=$IFS; IFS=$ac_path_separator
4235 for ac_dir in $ac_dummy; do
4237 test -z "$ac_dir" && ac_dir=.
4238 $as_executable_p "$ac_dir/$ac_word" || continue
4239 ac_cv_prog_AR="${ac_tool_prefix}ar"
4240 echo "$as_me:4240: found $ac_dir/$ac_word" >&5
4247 if test -n "$AR"; then
4248 echo "$as_me:4248: result: $AR" >&5
4249 echo "${ECHO_T}$AR" >&6
4251 echo "$as_me:4251: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4256 if test -z "$ac_cv_prog_AR"; then
4258 # Extract the first word of "ar", so it can be a program name with args.
4259 set dummy ar; ac_word=$2
4260 echo "$as_me:4260: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$ac_ct_AR"; then
4266 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4268 ac_save_IFS=$IFS; IFS=$ac_path_separator
4270 for ac_dir in $ac_dummy; do
4272 test -z "$ac_dir" && ac_dir=.
4273 $as_executable_p "$ac_dir/$ac_word" || continue
4274 ac_cv_prog_ac_ct_AR="ar"
4275 echo "$as_me:4275: found $ac_dir/$ac_word" >&5
4279 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4282 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4283 if test -n "$ac_ct_AR"; then
4284 echo "$as_me:4284: result: $ac_ct_AR" >&5
4285 echo "${ECHO_T}$ac_ct_AR" >&6
4287 echo "$as_me:4287: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4296 if test -n "$ac_tool_prefix"; then
4297 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4298 set dummy ${ac_tool_prefix}ar; ac_word=$2
4299 echo "$as_me:4299: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4301 if test "${ac_cv_prog_AR+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 if test -n "$AR"; then
4305 ac_cv_prog_AR="$AR" # Let the user override the test.
4307 ac_save_IFS=$IFS; IFS=$ac_path_separator
4309 for ac_dir in $ac_dummy; do
4311 test -z "$ac_dir" && ac_dir=.
4312 $as_executable_p "$ac_dir/$ac_word" || continue
4313 ac_cv_prog_AR="${ac_tool_prefix}ar"
4314 echo "$as_me:4314: found $ac_dir/$ac_word" >&5
4321 if test -n "$AR"; then
4322 echo "$as_me:4322: result: $AR" >&5
4323 echo "${ECHO_T}$AR" >&6
4325 echo "$as_me:4325: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4330 if test -z "$ac_cv_prog_AR"; then
4332 # Extract the first word of "ar", so it can be a program name with args.
4333 set dummy ar; ac_word=$2
4334 echo "$as_me:4334: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 if test -n "$ac_ct_AR"; then
4340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4342 ac_save_IFS=$IFS; IFS=$ac_path_separator
4344 for ac_dir in $ac_dummy; do
4346 test -z "$ac_dir" && ac_dir=.
4347 $as_executable_p "$ac_dir/$ac_word" || continue
4348 ac_cv_prog_ac_ct_AR="ar"
4349 echo "$as_me:4349: found $ac_dir/$ac_word" >&5
4353 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4356 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4357 if test -n "$ac_ct_AR"; then
4358 echo "$as_me:4358: result: $ac_ct_AR" >&5
4359 echo "${ECHO_T}$ac_ct_AR" >&6
4361 echo "$as_me:4361: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4370 echo "$as_me:4370: checking for options to update archives" >&5
4371 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4372 if test "${cf_cv_ar_flags+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 cf_cv_ar_flags=unknown
4377 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4380 # check if $ARFLAGS already contains this choice
4381 if test "x$ARFLAGS" != "x" ; then
4382 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4383 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4389 rm -f conftest.$ac_cv_objext
4392 cat >conftest.$ac_ext <<EOF
4393 #line 4393 "configure"
4394 int testdata[3] = { 123, 456, 789 };
4396 if { (eval echo "$as_me:4396: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4399 echo "$as_me:4399: \$? = $ac_status" >&5
4400 (exit $ac_status); } ; then
4401 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4402 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4403 if test -f conftest.a ; then
4404 cf_cv_ar_flags=$cf_ar_flags
4408 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4410 echo "${as_me:-configure}:4410: testing cannot compile test-program ..." 1>&5
4415 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4418 echo "$as_me:4418: result: $cf_cv_ar_flags" >&5
4419 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4421 if test -n "$ARFLAGS" ; then
4422 if test -n "$cf_cv_ar_flags" ; then
4423 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4426 ARFLAGS=$cf_cv_ar_flags
4429 echo "$as_me:4429: checking if you have specified an install-prefix" >&5
4430 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4432 # Check whether --with-install-prefix or --without-install-prefix was given.
4433 if test "${with_install_prefix+set}" = set; then
4434 withval="$with_install_prefix"
4435 case "$withval" in #(vi
4438 *) DESTDIR="$withval"
4442 echo "$as_me:4442: result: $DESTDIR" >&5
4443 echo "${ECHO_T}$DESTDIR" >&6
4445 ###############################################################################
4447 # If we're cross-compiling, allow the user to override the tools and their
4448 # options. The configure script is oriented toward identifying the host
4449 # compiler, etc., but we need a build compiler to generate parts of the source.
4451 if test "$cross_compiling" = yes ; then
4453 # defaults that we might want to override
4454 : ${BUILD_CFLAGS:=''}
4455 : ${BUILD_CPPFLAGS:=''}
4456 : ${BUILD_LDFLAGS:=''}
4458 : ${BUILD_EXEEXT:='$x'}
4459 : ${BUILD_OBJEXT:='o'}
4461 # Check whether --with-build-cc or --without-build-cc was given.
4462 if test "${with_build_cc+set}" = set; then
4463 withval="$with_build_cc"
4466 for ac_prog in gcc cc cl
4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4469 set dummy $ac_prog; ac_word=$2
4470 echo "$as_me:4470: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$BUILD_CC"; then
4476 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4478 ac_save_IFS=$IFS; IFS=$ac_path_separator
4480 for ac_dir in $ac_dummy; do
4482 test -z "$ac_dir" && ac_dir=.
4483 $as_executable_p "$ac_dir/$ac_word" || continue
4484 ac_cv_prog_BUILD_CC="$ac_prog"
4485 echo "$as_me:4485: found $ac_dir/$ac_word" >&5
4491 BUILD_CC=$ac_cv_prog_BUILD_CC
4492 if test -n "$BUILD_CC"; then
4493 echo "$as_me:4493: result: $BUILD_CC" >&5
4494 echo "${ECHO_T}$BUILD_CC" >&6
4496 echo "$as_me:4496: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4500 test -n "$BUILD_CC" && break
4504 echo "$as_me:4504: checking for native build C compiler" >&5
4505 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4506 echo "$as_me:4506: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6
4509 echo "$as_me:4509: checking for native build C preprocessor" >&5
4510 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4512 # Check whether --with-build-cpp or --without-build-cpp was given.
4513 if test "${with_build_cpp+set}" = set; then
4514 withval="$with_build_cpp"
4515 BUILD_CPP="$withval"
4517 BUILD_CPP='${BUILD_CC} -E'
4519 echo "$as_me:4519: result: $BUILD_CPP" >&5
4520 echo "${ECHO_T}$BUILD_CPP" >&6
4522 echo "$as_me:4522: checking for native build C flags" >&5
4523 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4525 # Check whether --with-build-cflags or --without-build-cflags was given.
4526 if test "${with_build_cflags+set}" = set; then
4527 withval="$with_build_cflags"
4528 BUILD_CFLAGS="$withval"
4530 echo "$as_me:4530: result: $BUILD_CFLAGS" >&5
4531 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4533 echo "$as_me:4533: checking for native build C preprocessor-flags" >&5
4534 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4536 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4537 if test "${with_build_cppflags+set}" = set; then
4538 withval="$with_build_cppflags"
4539 BUILD_CPPFLAGS="$withval"
4541 echo "$as_me:4541: result: $BUILD_CPPFLAGS" >&5
4542 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4544 echo "$as_me:4544: checking for native build linker-flags" >&5
4545 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4547 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4548 if test "${with_build_ldflags+set}" = set; then
4549 withval="$with_build_ldflags"
4550 BUILD_LDFLAGS="$withval"
4552 echo "$as_me:4552: result: $BUILD_LDFLAGS" >&5
4553 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4555 echo "$as_me:4555: checking for native build linker-libraries" >&5
4556 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4558 # Check whether --with-build-libs or --without-build-libs was given.
4559 if test "${with_build_libs+set}" = set; then
4560 withval="$with_build_libs"
4561 BUILD_LIBS="$withval"
4563 echo "$as_me:4563: result: $BUILD_LIBS" >&5
4564 echo "${ECHO_T}$BUILD_LIBS" >&6
4566 # this assumes we're on Unix.
4570 : ${BUILD_CC:='${CC}'}
4572 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4573 { { echo "$as_me:4573: error: Cross-build requires two compilers.
4574 Use --with-build-cc to specify the native compiler." >&5
4575 echo "$as_me: error: Cross-build requires two compilers.
4576 Use --with-build-cc to specify the native compiler." >&2;}
4577 { (exit 1); exit 1; }; }
4581 : ${BUILD_CC:='${CC}'}
4582 : ${BUILD_CPP:='${CPP}'}
4583 : ${BUILD_CFLAGS:='${CFLAGS}'}
4584 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4585 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4586 : ${BUILD_LIBS:='${LIBS}'}
4587 : ${BUILD_EXEEXT:='$x'}
4588 : ${BUILD_OBJEXT:='o'}
4591 ###############################################################################
4593 ### Options to allow the user to specify the set of libraries which are used.
4594 ### Use "--without-normal --with-shared" to allow the default model to be
4595 ### shared, for example.
4598 echo "$as_me:4598: checking if libtool -version-number should be used" >&5
4599 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4601 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4602 if test "${enable_libtool_version+set}" = set; then
4603 enableval="$enable_libtool_version"
4604 test "$enableval" != no && enableval=yes
4605 if test "$enableval" != "yes" ; then
4606 cf_libtool_version=no
4608 cf_libtool_version=yes
4612 cf_libtool_version=yes
4615 echo "$as_me:4615: result: $cf_libtool_version" >&5
4616 echo "${ECHO_T}$cf_libtool_version" >&6
4618 if test "$cf_libtool_version" = yes ; then
4619 LIBTOOL_VERSION="-version-number"
4621 LIBTOOL_VERSION="-version-info"
4626 # common library maintenance symbols that are convenient for libtool scripts:
4627 LIB_CREATE='${AR} -cr'
4628 LIB_OBJECT='${OBJECTS}'
4632 # symbols used to prop libtool up to enable it to determine what it should be
4640 echo "$as_me:4640: checking if you want to build libraries with libtool" >&5
4641 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4643 # Check whether --with-libtool or --without-libtool was given.
4644 if test "${with_libtool+set}" = set; then
4645 withval="$with_libtool"
4646 with_libtool=$withval
4650 echo "$as_me:4650: result: $with_libtool" >&5
4651 echo "${ECHO_T}$with_libtool" >&6
4652 if test "$with_libtool" != "no"; then
4654 if test "$with_libtool" != "yes" ; then
4656 if test "x$prefix" != xNONE; then
4657 cf_path_syntax="$prefix"
4659 cf_path_syntax="$ac_default_prefix"
4662 case ".$with_libtool" in #(vi
4663 .\$\(*\)*|.\'*\'*) #(vi
4667 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4670 eval with_libtool="$with_libtool"
4671 case ".$with_libtool" in #(vi
4673 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4678 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4681 { { echo "$as_me:4681: error: expected a pathname, not \"$with_libtool\"" >&5
4682 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4683 { (exit 1); exit 1; }; }
4687 LIBTOOL=$with_libtool
4689 # Extract the first word of "libtool", so it can be a program name with args.
4690 set dummy libtool; ac_word=$2
4691 echo "$as_me:4691: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4693 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4701 ac_save_IFS=$IFS; IFS=$ac_path_separator
4703 for ac_dir in $ac_dummy; do
4705 test -z "$ac_dir" && ac_dir=.
4706 if $as_executable_p "$ac_dir/$ac_word"; then
4707 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4708 echo "$as_me:4708: found $ac_dir/$ac_word" >&5
4716 LIBTOOL=$ac_cv_path_LIBTOOL
4718 if test -n "$LIBTOOL"; then
4719 echo "$as_me:4719: result: $LIBTOOL" >&5
4720 echo "${ECHO_T}$LIBTOOL" >&6
4722 echo "$as_me:4722: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4727 if test -z "$LIBTOOL" ; then
4728 { { echo "$as_me:4728: error: Cannot find libtool" >&5
4729 echo "$as_me: error: Cannot find libtool" >&2;}
4730 { (exit 1); exit 1; }; }
4732 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4733 LIB_OBJECT='${OBJECTS:.o=.lo}'
4735 LIB_CLEAN='${LIBTOOL} --mode=clean'
4736 LIB_COMPILE='${LIBTOOL} --mode=compile'
4737 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4738 LIB_INSTALL='${LIBTOOL} --mode=install'
4739 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4742 # Show the version of libtool
4743 echo "$as_me:4743: checking version of libtool" >&5
4744 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4746 # Save the version in a cache variable - this is not entirely a good
4747 # thing, but the version string from libtool is very ugly, and for
4748 # bug reports it might be useful to have the original string. "("
4749 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.].*//'`
4750 echo "$as_me:4750: result: $cf_cv_libtool_version" >&5
4751 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4752 if test -z "$cf_cv_libtool_version" ; then
4753 { { echo "$as_me:4753: error: This is not GNU libtool" >&5
4754 echo "$as_me: error: This is not GNU libtool" >&2;}
4755 { (exit 1); exit 1; }; }
4758 # special hack to add -no-undefined (which libtool should do for itself)
4760 case "$cf_cv_system_name" in #(vi
4761 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4762 LT_UNDEF=-no-undefined
4766 # special hack to add --tag option for C++ compiler
4767 case $cf_cv_libtool_version in #(vi
4768 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4769 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4770 LIBTOOL="$LIBTOOL --tag=CC"
4773 LIBTOOL_CXX="$LIBTOOL"
4781 test -z "$LIBTOOL" && ECHO_LT=
4783 if test "$with_libtool" != "no" ; then
4785 cf_list_models="$cf_list_models libtool"
4789 echo "$as_me:4789: checking if you want to build shared libraries" >&5
4790 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4792 # Check whether --with-shared or --without-shared was given.
4793 if test "${with_shared+set}" = set; then
4794 withval="$with_shared"
4795 with_shared=$withval
4799 echo "$as_me:4799: result: $with_shared" >&5
4800 echo "${ECHO_T}$with_shared" >&6
4801 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4803 echo "$as_me:4803: checking if you want to build static libraries" >&5
4804 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4806 # Check whether --with-normal or --without-normal was given.
4807 if test "${with_normal+set}" = set; then
4808 withval="$with_normal"
4809 with_normal=$withval
4813 echo "$as_me:4813: result: $with_normal" >&5
4814 echo "${ECHO_T}$with_normal" >&6
4815 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4817 echo "$as_me:4817: checking if you want to build debug libraries" >&5
4818 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4820 # Check whether --with-debug or --without-debug was given.
4821 if test "${with_debug+set}" = set; then
4822 withval="$with_debug"
4827 echo "$as_me:4827: result: $with_debug" >&5
4828 echo "${ECHO_T}$with_debug" >&6
4829 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4831 echo "$as_me:4831: checking if you want to build profiling libraries" >&5
4832 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4834 # Check whether --with-profile or --without-profile was given.
4835 if test "${with_profile+set}" = set; then
4836 withval="$with_profile"
4837 with_profile=$withval
4841 echo "$as_me:4841: result: $with_profile" >&5
4842 echo "${ECHO_T}$with_profile" >&6
4843 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4847 ###############################################################################
4849 echo "$as_me:4849: checking for specified models" >&5
4850 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4851 test -z "$cf_list_models" && cf_list_models=normal
4852 test "$with_libtool" != "no" && cf_list_models=libtool