2 # From configure.in Revision: 1.545 .
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-string-hacks work around bogus compiler/loader warnings
806 --enable-assertions test: turn on generation of assertion code
807 --with-dmalloc test: use Gray Watson's dmalloc library
808 --with-dbmalloc test: use Conor Cahill's dbmalloc library
809 --with-valgrind test: use valgrind
810 --disable-leaks test: free permanent memory, analyze leaks
811 --enable-expanded test: generate functions for certain macros
812 --disable-macros test: use functions rather than macros
813 --with-trace test: add trace() function to all models of ncurses
814 Ada95 Binding Options:
815 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
816 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
817 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
818 --with-ada-sharedlib=XX build Ada95 shared-library
820 Some influential environment variables:
821 CC C compiler command
822 CFLAGS C compiler flags
823 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
824 nonstandard directory <lib dir>
825 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
826 headers in a nonstandard directory <include dir>
828 CXX C++ compiler command
829 CXXFLAGS C++ compiler flags
830 CXXCPP C++ preprocessor
832 Use these variables to override the choices made by `configure' or to help
833 it to find libraries and programs with nonstandard names/locations.
838 if test "$ac_init_help" = "recursive"; then
839 # If there are subdirs, report their specific --help.
841 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
843 # A "../" for each directory in /$ac_subdir.
844 ac_dots=`echo $ac_subdir |
845 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
848 .) # No --srcdir option. We are building in place.
849 ac_sub_srcdir=$srcdir ;;
850 [\\/]* | ?:[\\/]* ) # Absolute path.
851 ac_sub_srcdir=$srcdir/$ac_subdir ;;
853 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
856 # Check for guested configure; otherwise get Cygnus style configure.
857 if test -f $ac_sub_srcdir/configure.gnu; then
859 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
860 elif test -f $ac_sub_srcdir/configure; then
862 $SHELL $ac_sub_srcdir/configure --help=recursive
863 elif test -f $ac_sub_srcdir/configure.ac ||
864 test -f $ac_sub_srcdir/configure.in; then
868 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
874 test -n "$ac_init_help" && exit 0
875 if $ac_init_version; then
878 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
879 Free Software Foundation, Inc.
880 This configure script is free software; the Free Software Foundation
881 gives unlimited permission to copy, distribute and modify it.
887 This file contains any messages produced by compilers while
888 running configure, to aid debugging if configure makes a mistake.
890 It was created by $as_me, which was
891 generated by GNU Autoconf 2.52.20101002. Invocation command line was
902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
909 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
911 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
912 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
914 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
915 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
916 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
917 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
931 # Keep a trace of the command line.
932 # Strip out --no-create and --no-recursion so they do not pile up.
933 # Also quote any args containing shell meta-characters.
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c) ;;
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
943 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
945 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
947 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
950 # Get rid of the leading space.
953 # When interrupted or exit'd, cleanup temporary files, and complete
954 # config.log. We remove comments because anyway the quotes in there
955 # would cause problems or look ugly.
957 # Save into config.log some information that might help in debugging.
959 echo "## ----------------- ##" >&5
960 echo "## Cache variables. ##" >&5
961 echo "## ----------------- ##" >&5
963 # The following way of writing the cache mishandles newlines in values,
966 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
969 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
974 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
978 sed "/^$/d" confdefs.h >conftest.log
979 if test -s conftest.log; then
981 echo "## ------------ ##" >&5
982 echo "## confdefs.h. ##" >&5
983 echo "## ------------ ##" >&5
988 test "$ac_signal" != 0 &&
989 echo "$as_me: caught signal $ac_signal" >&5
990 echo "$as_me: exit $exit_status" >&5
991 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
994 for ac_signal in 1 2 13 15; do
995 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
999 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1000 rm -rf conftest* confdefs.h
1001 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1004 # Let the site file select an alternate cache file if it wants to.
1005 # Prefer explicitly selected file to automatically selected ones.
1006 if test -z "$CONFIG_SITE"; then
1007 if test "x$prefix" != xNONE; then
1008 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1010 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1013 for ac_site_file in $CONFIG_SITE; do
1014 if test -r "$ac_site_file"; then
1015 { echo "$as_me:1015: loading site script $ac_site_file" >&5
1016 echo "$as_me: loading site script $ac_site_file" >&6;}
1017 cat "$ac_site_file" >&5
1022 if test -r "$cache_file"; then
1023 # Some versions of bash will fail to source /dev/null (special
1024 # files actually), so we avoid doing that.
1025 if test -f "$cache_file"; then
1026 { echo "$as_me:1026: loading cache $cache_file" >&5
1027 echo "$as_me: loading cache $cache_file" >&6;}
1029 [\\/]* | ?:[\\/]* ) . $cache_file;;
1030 *) . ./$cache_file;;
1034 { echo "$as_me:1034: creating cache $cache_file" >&5
1035 echo "$as_me: creating cache $cache_file" >&6;}
1039 # Check that the precious variables saved in the cache have kept the same
1041 ac_cache_corrupted=false
1042 for ac_var in `(set) 2>&1 |
1043 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1044 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1045 eval ac_new_set=\$ac_env_${ac_var}_set
1046 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1047 eval ac_new_val="\$ac_env_${ac_var}_value"
1048 case $ac_old_set,$ac_new_set in
1050 { echo "$as_me:1050: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1051 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1052 ac_cache_corrupted=: ;;
1054 { echo "$as_me:1054: error: \`$ac_var' was not set in the previous run" >&5
1055 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1056 ac_cache_corrupted=: ;;
1059 if test "x$ac_old_val" != "x$ac_new_val"; then
1060 { echo "$as_me:1060: error: \`$ac_var' has changed since the previous run:" >&5
1061 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1062 { echo "$as_me:1062: former value: $ac_old_val" >&5
1063 echo "$as_me: former value: $ac_old_val" >&2;}
1064 { echo "$as_me:1064: current value: $ac_new_val" >&5
1065 echo "$as_me: current value: $ac_new_val" >&2;}
1066 ac_cache_corrupted=:
1069 # Pass precious variables to config.status. It doesn't matter if
1070 # we pass some twice (in addition to the command line arguments).
1071 if test "$ac_new_set" = set; then
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1075 ac_configure_args="$ac_configure_args '$ac_arg'"
1077 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1082 if $ac_cache_corrupted; then
1083 { echo "$as_me:1083: error: changes in the environment can compromise the build" >&5
1084 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1085 { { echo "$as_me:1085: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1086 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1087 { (exit 1); exit 1; }; }
1091 ac_cpp='$CPP $CPPFLAGS'
1092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1095 ac_main_return=return
1097 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1098 *c*,-n*) ECHO_N= ECHO_C='
1100 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1101 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1103 echo "#! $SHELL" >conftest.sh
1104 echo "exit 0" >>conftest.sh
1105 chmod +x conftest.sh
1106 if { (echo "$as_me:1106: PATH=\".;.\"; conftest.sh") >&5
1107 (PATH=".;."; conftest.sh) 2>&5
1109 echo "$as_me:1109: \$? = $ac_status" >&5
1110 (exit $ac_status); }; then
1111 ac_path_separator=';'
1115 PATH_SEPARATOR="$ac_path_separator"
1118 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1122 echo "$as_me:1122: checking for egrep" >&5
1123 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1124 if test "${ac_cv_prog_egrep+set}" = set; then
1125 echo $ECHO_N "(cached) $ECHO_C" >&6
1127 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1128 then ac_cv_prog_egrep='grep -E'
1129 else ac_cv_prog_egrep='egrep'
1132 echo "$as_me:1132: result: $ac_cv_prog_egrep" >&5
1133 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1134 EGREP=$ac_cv_prog_egrep
1136 test -z "$EGREP" && { { echo "$as_me:1136: error: No egrep program found" >&5
1137 echo "$as_me: error: No egrep program found" >&2;}
1138 { (exit 1); exit 1; }; }
1140 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1141 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1142 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1143 cf_cv_abi_version=${NCURSES_MAJOR}
1144 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1145 cf_cv_timestamp=`date`
1146 echo "$as_me:1146: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1147 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1149 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1151 # Check whether --with-rel-version or --without-rel-version was given.
1152 if test "${with_rel_version+set}" = set; then
1153 withval="$with_rel_version"
1154 { echo "$as_me:1154: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1155 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1156 cf_cv_rel_version=$withval
1159 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1160 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1162 if test -n "$NCURSES_MAJOR" ; then
1163 case $NCURSES_MAJOR in #(vi
1167 { { echo "$as_me:1167: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1168 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1169 { (exit 1); exit 1; }; }
1173 { { echo "$as_me:1173: error: Release major-version value is empty" >&5
1174 echo "$as_me: error: Release major-version value is empty" >&2;}
1175 { (exit 1); exit 1; }; }
1178 if test -n "$NCURSES_MINOR" ; then
1179 case $NCURSES_MINOR in #(vi
1183 { { echo "$as_me:1183: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1184 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1185 { (exit 1); exit 1; }; }
1189 { { echo "$as_me:1189: error: Release minor-version value is empty" >&5
1190 echo "$as_me: error: Release minor-version value is empty" >&2;}
1191 { (exit 1); exit 1; }; }
1194 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1196 # Check whether --with-abi-version or --without-abi-version was given.
1197 if test "${with_abi_version+set}" = set; then
1198 withval="$with_abi_version"
1199 { echo "$as_me:1199: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1200 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1201 cf_cv_abi_version=$withval
1204 if test -n "$cf_cv_abi_version" ; then
1205 case $cf_cv_abi_version in #(vi
1209 { { echo "$as_me:1209: error: ABI version is not a number: $cf_cv_abi_version" >&5
1210 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1211 { (exit 1); exit 1; }; }
1215 { { echo "$as_me:1215: error: ABI version value is empty" >&5
1216 echo "$as_me: error: ABI version value is empty" >&2;}
1217 { (exit 1); exit 1; }; }
1221 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1222 if test -f $ac_dir/install-sh; then
1224 ac_install_sh="$ac_aux_dir/install-sh -c"
1226 elif test -f $ac_dir/install.sh; then
1228 ac_install_sh="$ac_aux_dir/install.sh -c"
1230 elif test -f $ac_dir/shtool; then
1232 ac_install_sh="$ac_aux_dir/shtool install -c"
1236 if test -z "$ac_aux_dir"; then
1237 { { echo "$as_me:1237: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1238 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1239 { (exit 1); exit 1; }; }
1241 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1242 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1243 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1245 # Make sure we can run config.sub.
1246 $ac_config_sub sun4 >/dev/null 2>&1 ||
1247 { { echo "$as_me:1247: error: cannot run $ac_config_sub" >&5
1248 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1249 { (exit 1); exit 1; }; }
1251 echo "$as_me:1251: checking build system type" >&5
1252 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1253 if test "${ac_cv_build+set}" = set; then
1254 echo $ECHO_N "(cached) $ECHO_C" >&6
1256 ac_cv_build_alias=$build_alias
1257 test -z "$ac_cv_build_alias" &&
1258 ac_cv_build_alias=`$ac_config_guess`
1259 test -z "$ac_cv_build_alias" &&
1260 { { echo "$as_me:1260: error: cannot guess build type; you must specify one" >&5
1261 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1262 { (exit 1); exit 1; }; }
1263 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1264 { { echo "$as_me:1264: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1265 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1266 { (exit 1); exit 1; }; }
1269 echo "$as_me:1269: result: $ac_cv_build" >&5
1270 echo "${ECHO_T}$ac_cv_build" >&6
1272 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1273 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1274 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1276 echo "$as_me:1276: checking host system type" >&5
1277 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1278 if test "${ac_cv_host+set}" = set; then
1279 echo $ECHO_N "(cached) $ECHO_C" >&6
1281 ac_cv_host_alias=$host_alias
1282 test -z "$ac_cv_host_alias" &&
1283 ac_cv_host_alias=$ac_cv_build_alias
1284 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1285 { { echo "$as_me:1285: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1286 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1287 { (exit 1); exit 1; }; }
1290 echo "$as_me:1290: result: $ac_cv_host" >&5
1291 echo "${ECHO_T}$ac_cv_host" >&6
1293 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1294 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1295 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1297 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1298 echo "$as_me:1298: checking target system type" >&5
1299 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1300 if test "${ac_cv_target+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 ac_cv_target_alias=$target_alias
1304 test "x$ac_cv_target_alias" = "x" &&
1305 ac_cv_target_alias=$ac_cv_host_alias
1306 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1307 { { echo "$as_me:1307: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:1312: result: $ac_cv_target" >&5
1313 echo "${ECHO_T}$ac_cv_target" >&6
1314 target=$ac_cv_target
1315 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 # The aliases save the names the user supplied, while $host etc.
1320 # will get canonicalized.
1321 test -n "$target_alias" &&
1322 test "$program_prefix$program_suffix$program_transform_name" = \
1324 program_prefix=${target_alias}-
1325 system_name="$host_os"
1327 system_name="`(uname -s -r) 2>/dev/null`"
1328 if test -z "$system_name" ; then
1329 system_name="`(hostname) 2>/dev/null`"
1332 test -n "$system_name" && cat >>confdefs.h <<EOF
1333 #define SYSTEM_NAME "$system_name"
1336 if test "${cf_cv_system_name+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1339 cf_cv_system_name="$system_name"
1342 test -z "$system_name" && system_name="$cf_cv_system_name"
1343 test -n "$cf_cv_system_name" && echo "$as_me:1343: result: Configuring for $cf_cv_system_name" >&5
1344 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1346 if test ".$system_name" != ".$cf_cv_system_name" ; then
1347 echo "$as_me:1347: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1348 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1349 { { echo "$as_me:1349: error: \"Please remove config.cache and try again.\"" >&5
1350 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1351 { (exit 1); exit 1; }; }
1354 # Check whether --with-system-type or --without-system-type was given.
1355 if test "${with_system_type+set}" = set; then
1356 withval="$with_system_type"
1357 { echo "$as_me:1357: WARNING: overriding system type to $withval" >&5
1358 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1359 cf_cv_system_name=$withval
1362 ### Save the given $CFLAGS to allow user-override.
1363 cf_user_CFLAGS="$CFLAGS"
1365 ### Default install-location
1367 echo "$as_me:1367: checking for prefix" >&5
1368 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1369 if test "x$prefix" = "xNONE" ; then
1370 case "$cf_cv_system_name" in
1371 # non-vendor systems don't have a conflict
1372 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1375 *) prefix=$ac_default_prefix
1379 echo "$as_me:1379: result: $prefix" >&5
1380 echo "${ECHO_T}$prefix" >&6
1382 if test "x$prefix" = "xNONE" ; then
1383 echo "$as_me:1383: checking for default include-directory" >&5
1384 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1385 test -n "$verbose" && echo 1>&6
1388 $includedir/ncurses \
1390 $prefix/include/ncurses \
1391 /usr/local/include \
1392 /usr/local/include/ncurses \
1394 /usr/include/ncurses
1396 cf_dir=`eval echo $cf_symbol`
1397 if test -f $cf_dir/curses.h ; then
1398 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1399 includedir="$cf_symbol"
1400 test -n "$verbose" && echo $ac_n " found " 1>&6
1404 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1406 echo "$as_me:1406: result: $includedir" >&5
1407 echo "${ECHO_T}$includedir" >&6
1410 ### Checks for programs.
1412 ac_cpp='$CPP $CPPFLAGS'
1413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1416 ac_main_return=return
1417 if test -n "$ac_tool_prefix"; then
1418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1420 echo "$as_me:1420: checking for $ac_word" >&5
1421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1422 if test "${ac_cv_prog_CC+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 if test -n "$CC"; then
1426 ac_cv_prog_CC="$CC" # Let the user override the test.
1428 ac_save_IFS=$IFS; IFS=$ac_path_separator
1430 for ac_dir in $ac_dummy; do
1432 test -z "$ac_dir" && ac_dir=.
1433 $as_executable_p "$ac_dir/$ac_word" || continue
1434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1435 echo "$as_me:1435: found $ac_dir/$ac_word" >&5
1442 if test -n "$CC"; then
1443 echo "$as_me:1443: result: $CC" >&5
1444 echo "${ECHO_T}$CC" >&6
1446 echo "$as_me:1446: result: no" >&5
1447 echo "${ECHO_T}no" >&6
1451 if test -z "$ac_cv_prog_CC"; then
1453 # Extract the first word of "gcc", so it can be a program name with args.
1454 set dummy gcc; ac_word=$2
1455 echo "$as_me:1455: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 if test -n "$ac_ct_CC"; then
1461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1463 ac_save_IFS=$IFS; IFS=$ac_path_separator
1465 for ac_dir in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir=.
1468 $as_executable_p "$ac_dir/$ac_word" || continue
1469 ac_cv_prog_ac_ct_CC="gcc"
1470 echo "$as_me:1470: found $ac_dir/$ac_word" >&5
1476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1477 if test -n "$ac_ct_CC"; then
1478 echo "$as_me:1478: result: $ac_ct_CC" >&5
1479 echo "${ECHO_T}$ac_ct_CC" >&6
1481 echo "$as_me:1481: result: no" >&5
1482 echo "${ECHO_T}no" >&6
1490 if test -z "$CC"; then
1491 if test -n "$ac_tool_prefix"; then
1492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1493 set dummy ${ac_tool_prefix}cc; ac_word=$2
1494 echo "$as_me:1494: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_CC+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$CC"; then
1500 ac_cv_prog_CC="$CC" # Let the user override the test.
1502 ac_save_IFS=$IFS; IFS=$ac_path_separator
1504 for ac_dir in $ac_dummy; do
1506 test -z "$ac_dir" && ac_dir=.
1507 $as_executable_p "$ac_dir/$ac_word" || continue
1508 ac_cv_prog_CC="${ac_tool_prefix}cc"
1509 echo "$as_me:1509: found $ac_dir/$ac_word" >&5
1516 if test -n "$CC"; then
1517 echo "$as_me:1517: result: $CC" >&5
1518 echo "${ECHO_T}$CC" >&6
1520 echo "$as_me:1520: result: no" >&5
1521 echo "${ECHO_T}no" >&6
1525 if test -z "$ac_cv_prog_CC"; then
1527 # Extract the first word of "cc", so it can be a program name with args.
1528 set dummy cc; ac_word=$2
1529 echo "$as_me:1529: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$ac_ct_CC"; then
1535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1537 ac_save_IFS=$IFS; IFS=$ac_path_separator
1539 for ac_dir in $ac_dummy; do
1541 test -z "$ac_dir" && ac_dir=.
1542 $as_executable_p "$ac_dir/$ac_word" || continue
1543 ac_cv_prog_ac_ct_CC="cc"
1544 echo "$as_me:1544: found $ac_dir/$ac_word" >&5
1550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1551 if test -n "$ac_ct_CC"; then
1552 echo "$as_me:1552: result: $ac_ct_CC" >&5
1553 echo "${ECHO_T}$ac_ct_CC" >&6
1555 echo "$as_me:1555: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1565 if test -z "$CC"; then
1566 # Extract the first word of "cc", so it can be a program name with args.
1567 set dummy cc; ac_word=$2
1568 echo "$as_me:1568: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_prog_CC+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 if test -n "$CC"; then
1574 ac_cv_prog_CC="$CC" # Let the user override the test.
1577 ac_save_IFS=$IFS; IFS=$ac_path_separator
1579 for ac_dir in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir=.
1582 $as_executable_p "$ac_dir/$ac_word" || continue
1583 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1584 ac_prog_rejected=yes
1588 echo "$as_me:1588: found $ac_dir/$ac_word" >&5
1592 if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1596 if test $# != 0; then
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1601 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1609 if test -n "$CC"; then
1610 echo "$as_me:1610: result: $CC" >&5
1611 echo "${ECHO_T}$CC" >&6
1613 echo "$as_me:1613: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1618 if test -z "$CC"; then
1619 if test -n "$ac_tool_prefix"; then
1622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1624 echo "$as_me:1624: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 ac_save_IFS=$IFS; IFS=$ac_path_separator
1634 for ac_dir in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir=.
1637 $as_executable_p "$ac_dir/$ac_word" || continue
1638 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1639 echo "$as_me:1639: found $ac_dir/$ac_word" >&5
1646 if test -n "$CC"; then
1647 echo "$as_me:1647: result: $CC" >&5
1648 echo "${ECHO_T}$CC" >&6
1650 echo "$as_me:1650: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1654 test -n "$CC" && break
1657 if test -z "$CC"; then
1661 # Extract the first word of "$ac_prog", so it can be a program name with args.
1662 set dummy $ac_prog; ac_word=$2
1663 echo "$as_me:1663: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$ac_ct_CC"; then
1669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671 ac_save_IFS=$IFS; IFS=$ac_path_separator
1673 for ac_dir in $ac_dummy; do
1675 test -z "$ac_dir" && ac_dir=.
1676 $as_executable_p "$ac_dir/$ac_word" || continue
1677 ac_cv_prog_ac_ct_CC="$ac_prog"
1678 echo "$as_me:1678: found $ac_dir/$ac_word" >&5
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686 echo "$as_me:1686: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1689 echo "$as_me:1689: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 test -n "$ac_ct_CC" && break
1701 test -z "$CC" && { { echo "$as_me:1701: error: no acceptable cc found in \$PATH" >&5
1702 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1703 { (exit 1); exit 1; }; }
1705 # Provide some information about the compiler.
1706 echo "$as_me:1706:" \
1707 "checking for C compiler version" >&5
1708 ac_compiler=`set X $ac_compile; echo $2`
1709 { (eval echo "$as_me:1709: \"$ac_compiler --version </dev/null >&5\"") >&5
1710 (eval $ac_compiler --version </dev/null >&5) 2>&5
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }
1714 { (eval echo "$as_me:1714: \"$ac_compiler -v </dev/null >&5\"") >&5
1715 (eval $ac_compiler -v </dev/null >&5) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }
1719 { (eval echo "$as_me:1719: \"$ac_compiler -V </dev/null >&5\"") >&5
1720 (eval $ac_compiler -V </dev/null >&5) 2>&5
1722 echo "$as_me:1722: \$? = $ac_status" >&5
1723 (exit $ac_status); }
1725 cat >conftest.$ac_ext <<_ACEOF
1726 #line 1726 "configure"
1727 #include "confdefs.h"
1737 ac_clean_files_save=$ac_clean_files
1738 ac_clean_files="$ac_clean_files a.out a.exe"
1739 # Try to create an executable without -o first, disregard a.out.
1740 # It will help us diagnose broken compilers, and finding out an intuition
1742 echo "$as_me:1742: checking for C compiler default output" >&5
1743 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1744 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1745 if { (eval echo "$as_me:1745: \"$ac_link_default\"") >&5
1746 (eval $ac_link_default) 2>&5
1748 echo "$as_me:1748: \$? = $ac_status" >&5
1749 (exit $ac_status); }; then
1750 # Find the output, starting from the most likely. This scheme is
1751 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1753 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1754 ls a.out conftest 2>/dev/null;
1755 ls a.* conftest.* 2>/dev/null`; do
1757 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1758 a.out ) # We found the default executable, but exeext='' is most
1761 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1762 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1769 echo "$as_me: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1771 { { echo "$as_me:1771: error: C compiler cannot create executables" >&5
1772 echo "$as_me: error: C compiler cannot create executables" >&2;}
1773 { (exit 77); exit 77; }; }
1776 ac_exeext=$ac_cv_exeext
1777 echo "$as_me:1777: result: $ac_file" >&5
1778 echo "${ECHO_T}$ac_file" >&6
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:1782: checking whether the C compiler works" >&5
1783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785 # If not cross compiling, check that we can run a simple program.
1786 if test "$cross_compiling" != yes; then
1787 if { ac_try='./$ac_file'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1795 if test "$cross_compiling" = maybe; then
1798 { { echo "$as_me:1798: error: cannot run C compiled programs.
1799 If you meant to cross compile, use \`--host'." >&5
1800 echo "$as_me: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'." >&2;}
1802 { (exit 1); exit 1; }; }
1806 echo "$as_me:1806: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1809 rm -f a.out a.exe conftest$ac_cv_exeext
1810 ac_clean_files=$ac_clean_files_save
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:1813: checking whether we are cross compiling" >&5
1814 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1815 echo "$as_me:1815: result: $cross_compiling" >&5
1816 echo "${ECHO_T}$cross_compiling" >&6
1818 echo "$as_me:1818: checking for executable suffix" >&5
1819 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1820 if { (eval echo "$as_me:1820: \"$ac_link\"") >&5
1821 (eval $ac_link) 2>&5
1823 echo "$as_me:1823: \$? = $ac_status" >&5
1824 (exit $ac_status); }; then
1825 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1826 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1827 # work properly (i.e., refer to `conftest.exe'), while it won't with
1829 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1831 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1839 { { echo "$as_me:1839: error: cannot compute EXEEXT: cannot compile and link" >&5
1840 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1841 { (exit 1); exit 1; }; }
1844 rm -f conftest$ac_cv_exeext
1845 echo "$as_me:1845: result: $ac_cv_exeext" >&5
1846 echo "${ECHO_T}$ac_cv_exeext" >&6
1848 rm -f conftest.$ac_ext
1849 EXEEXT=$ac_cv_exeext
1851 echo "$as_me:1851: checking for object suffix" >&5
1852 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1853 if test "${ac_cv_objext+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 cat >conftest.$ac_ext <<_ACEOF
1857 #line 1857 "configure"
1858 #include "confdefs.h"
1868 rm -f conftest.o conftest.obj
1869 if { (eval echo "$as_me:1869: \"$ac_compile\"") >&5
1870 (eval $ac_compile) 2>&5
1872 echo "$as_me:1872: \$? = $ac_status" >&5
1873 (exit $ac_status); }; then
1874 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1876 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1877 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1882 echo "$as_me: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1884 { { echo "$as_me:1884: error: cannot compute OBJEXT: cannot compile" >&5
1885 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1886 { (exit 1); exit 1; }; }
1889 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1891 echo "$as_me:1891: result: $ac_cv_objext" >&5
1892 echo "${ECHO_T}$ac_cv_objext" >&6
1893 OBJEXT=$ac_cv_objext
1895 echo "$as_me:1895: checking whether we are using the GNU C compiler" >&5
1896 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1897 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 cat >conftest.$ac_ext <<_ACEOF
1901 #line 1901 "configure"
1902 #include "confdefs.h"
1915 rm -f conftest.$ac_objext
1916 if { (eval echo "$as_me:1916: \"$ac_compile\"") >&5
1917 (eval $ac_compile) 2>&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); } &&
1921 { ac_try='test -s conftest.$ac_objext'
1922 { (eval echo "$as_me:1922: \"$ac_try\"") >&5
1925 echo "$as_me:1925: \$? = $ac_status" >&5
1926 (exit $ac_status); }; }; then
1929 echo "$as_me: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1933 rm -f conftest.$ac_objext conftest.$ac_ext
1934 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1937 echo "$as_me:1937: result: $ac_cv_c_compiler_gnu" >&5
1938 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1939 GCC=`test $ac_compiler_gnu = yes && echo yes`
1940 ac_test_CFLAGS=${CFLAGS+set}
1941 ac_save_CFLAGS=$CFLAGS
1943 echo "$as_me:1943: checking whether $CC accepts -g" >&5
1944 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1945 if test "${ac_cv_prog_cc_g+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 cat >conftest.$ac_ext <<_ACEOF
1949 #line 1949 "configure"
1950 #include "confdefs.h"
1960 rm -f conftest.$ac_objext
1961 if { (eval echo "$as_me:1961: \"$ac_compile\"") >&5
1962 (eval $ac_compile) 2>&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); } &&
1966 { ac_try='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:1967: \"$ac_try\"") >&5
1970 echo "$as_me:1970: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1974 echo "$as_me: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1978 rm -f conftest.$ac_objext conftest.$ac_ext
1980 echo "$as_me:1980: result: $ac_cv_prog_cc_g" >&5
1981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1982 if test "$ac_test_CFLAGS" = set; then
1983 CFLAGS=$ac_save_CFLAGS
1984 elif test $ac_cv_prog_cc_g = yes; then
1985 if test "$GCC" = yes; then
1991 if test "$GCC" = yes; then
1997 # Some people use a C++ compiler to compile C. Since we use `exit',
1998 # in C++ we need to declare it. In case someone uses the same compiler
1999 # for both compiling C and C++ we need to have the C++ compiler decide
2000 # the declaration of exit, since it's the most demanding environment.
2001 cat >conftest.$ac_ext <<_ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:2007: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:2013: \"$ac_try\"") >&5
2016 echo "$as_me:2016: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2018 for ac_declaration in \
2020 '#include <stdlib.h>' \
2021 'extern "C" void std::exit (int) throw (); using std::exit;' \
2022 'extern "C" void std::exit (int); using std::exit;' \
2023 'extern "C" void exit (int) throw ();' \
2024 'extern "C" void exit (int);' \
2027 cat >conftest.$ac_ext <<_ACEOF
2028 #line 2028 "configure"
2029 #include "confdefs.h"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:2041: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:2047: \"$ac_try\"") >&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2058 rm -f conftest.$ac_objext conftest.$ac_ext
2059 cat >conftest.$ac_ext <<_ACEOF
2060 #line 2060 "configure"
2061 #include "confdefs.h"
2071 rm -f conftest.$ac_objext
2072 if { (eval echo "$as_me:2072: \"$ac_compile\"") >&5
2073 (eval $ac_compile) 2>&5
2075 echo "$as_me:2075: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -s conftest.$ac_objext'
2078 { (eval echo "$as_me:2078: \"$ac_try\"") >&5
2081 echo "$as_me:2081: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2085 echo "$as_me: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 rm -f conftest.$ac_objext conftest.$ac_ext
2091 if test -n "$ac_declaration"; then
2092 echo '#ifdef __cplusplus' >>confdefs.h
2093 echo $ac_declaration >>confdefs.h
2094 echo '#endif' >>confdefs.h
2098 echo "$as_me: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 rm -f conftest.$ac_objext conftest.$ac_ext
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107 ac_main_return=return
2110 if test "$GCC" = yes ; then
2111 echo "$as_me:2111: checking version of $CC" >&5
2112 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2113 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2114 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2115 echo "$as_me:2115: result: $GCC_VERSION" >&5
2116 echo "${ECHO_T}$GCC_VERSION" >&6
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124 ac_main_return=return
2125 echo "$as_me:2125: checking how to run the C preprocessor" >&5
2126 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2127 # On Suns, sometimes $CPP names a directory.
2128 if test -n "$CPP" && test -d "$CPP"; then
2131 if test -z "$CPP"; then
2132 if test "${ac_cv_prog_CPP+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 # Double quotes because CPP needs to be expanded
2136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2139 for ac_c_preproc_warn_flag in '' yes
2141 # Use a header file that comes with gcc, so configuring glibc
2142 # with a fresh cross-compiler works.
2143 # On the NeXT, cc -E runs the code through the compiler's parser,
2144 # not just through cpp. "Syntax error" is here to catch this case.
2145 cat >conftest.$ac_ext <<_ACEOF
2146 #line 2146 "configure"
2147 #include "confdefs.h"
2151 if { (eval echo "$as_me:2151: \"$ac_cpp conftest.$ac_ext\"") >&5
2152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2154 egrep -v '^ *\+' conftest.er1 >conftest.err
2156 cat conftest.err >&5
2157 echo "$as_me:2157: \$? = $ac_status" >&5
2158 (exit $ac_status); } >/dev/null; then
2159 if test -s conftest.err; then
2160 ac_cpp_err=$ac_c_preproc_warn_flag
2167 if test -z "$ac_cpp_err"; then
2170 echo "$as_me: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 # Broken: fails on valid input.
2175 rm -f conftest.err conftest.$ac_ext
2177 # OK, works on sane cases. Now check whether non-existent headers
2178 # can be detected and how.
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line 2180 "configure"
2181 #include "confdefs.h"
2182 #include <ac_nonexistent.h>
2184 if { (eval echo "$as_me:2184: \"$ac_cpp conftest.$ac_ext\"") >&5
2185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2187 egrep -v '^ *\+' conftest.er1 >conftest.err
2189 cat conftest.err >&5
2190 echo "$as_me:2190: \$? = $ac_status" >&5
2191 (exit $ac_status); } >/dev/null; then
2192 if test -s conftest.err; then
2193 ac_cpp_err=$ac_c_preproc_warn_flag
2200 if test -z "$ac_cpp_err"; then
2201 # Broken: success on invalid input.
2204 echo "$as_me: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 # Passes both tests.
2210 rm -f conftest.err conftest.$ac_ext
2213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2214 rm -f conftest.err conftest.$ac_ext
2215 if $ac_preproc_ok; then
2227 echo "$as_me:2227: result: $CPP" >&5
2228 echo "${ECHO_T}$CPP" >&6
2230 for ac_c_preproc_warn_flag in '' yes
2232 # Use a header file that comes with gcc, so configuring glibc
2233 # with a fresh cross-compiler works.
2234 # On the NeXT, cc -E runs the code through the compiler's parser,
2235 # not just through cpp. "Syntax error" is here to catch this case.
2236 cat >conftest.$ac_ext <<_ACEOF
2237 #line 2237 "configure"
2238 #include "confdefs.h"
2242 if { (eval echo "$as_me:2242: \"$ac_cpp conftest.$ac_ext\"") >&5
2243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2245 egrep -v '^ *\+' conftest.er1 >conftest.err
2247 cat conftest.err >&5
2248 echo "$as_me:2248: \$? = $ac_status" >&5
2249 (exit $ac_status); } >/dev/null; then
2250 if test -s conftest.err; then
2251 ac_cpp_err=$ac_c_preproc_warn_flag
2258 if test -z "$ac_cpp_err"; then
2261 echo "$as_me: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2263 # Broken: fails on valid input.
2266 rm -f conftest.err conftest.$ac_ext
2268 # OK, works on sane cases. Now check whether non-existent headers
2269 # can be detected and how.
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line 2271 "configure"
2272 #include "confdefs.h"
2273 #include <ac_nonexistent.h>
2275 if { (eval echo "$as_me:2275: \"$ac_cpp conftest.$ac_ext\"") >&5
2276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278 egrep -v '^ *\+' conftest.er1 >conftest.err
2280 cat conftest.err >&5
2281 echo "$as_me:2281: \$? = $ac_status" >&5
2282 (exit $ac_status); } >/dev/null; then
2283 if test -s conftest.err; then
2284 ac_cpp_err=$ac_c_preproc_warn_flag
2291 if test -z "$ac_cpp_err"; then
2292 # Broken: success on invalid input.
2295 echo "$as_me: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2297 # Passes both tests.
2301 rm -f conftest.err conftest.$ac_ext
2304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2305 rm -f conftest.err conftest.$ac_ext
2306 if $ac_preproc_ok; then
2309 { { echo "$as_me:2309: error: C preprocessor \"$CPP\" fails sanity check" >&5
2310 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2311 { (exit 1); exit 1; }; }
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 ac_main_return=return
2321 if test $ac_cv_c_compiler_gnu = yes; then
2322 echo "$as_me:2322: checking whether $CC needs -traditional" >&5
2323 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2324 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 ac_pattern="Autoconf.*'x'"
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line 2329 "configure"
2330 #include "confdefs.h"
2332 int Autoconf = TIOCGETP;
2334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2335 egrep "$ac_pattern" >/dev/null 2>&1; then
2336 ac_cv_prog_gcc_traditional=yes
2338 ac_cv_prog_gcc_traditional=no
2342 if test $ac_cv_prog_gcc_traditional = no; then
2343 cat >conftest.$ac_ext <<_ACEOF
2344 #line 2344 "configure"
2345 #include "confdefs.h"
2347 int Autoconf = TCGETA;
2349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2350 egrep "$ac_pattern" >/dev/null 2>&1; then
2351 ac_cv_prog_gcc_traditional=yes
2357 echo "$as_me:2357: result: $ac_cv_prog_gcc_traditional" >&5
2358 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2359 if test $ac_cv_prog_gcc_traditional = yes; then
2360 CC="$CC -traditional"
2364 echo "$as_me:2364: checking whether $CC understands -c and -o together" >&5
2365 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2366 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat > conftest.$ac_ext <<CF_EOF
2374 ${cf_cv_main_return:-return}(0);
2377 # We do the test twice because some compilers refuse to overwrite an
2378 # existing .o file with -o, though they will create one.
2379 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2380 if { (eval echo "$as_me:2380: \"$ac_try\"") >&5
2383 echo "$as_me:2383: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 test -f conftest2.$ac_objext && { (eval echo "$as_me:2385: \"$ac_try\"") >&5
2388 echo "$as_me:2388: \$? = $ac_status" >&5
2389 (exit $ac_status); };
2391 eval cf_cv_prog_CC_c_o=yes
2393 eval cf_cv_prog_CC_c_o=no
2398 if test $cf_cv_prog_CC_c_o = yes; then
2399 echo "$as_me:2399: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2402 echo "$as_me:2402: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2406 echo "$as_me:2406: checking for POSIXized ISC" >&5
2407 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2408 if test -d /etc/conf/kconfig.d &&
2409 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2411 echo "$as_me:2411: result: yes" >&5
2412 echo "${ECHO_T}yes" >&6
2413 ISC=yes # If later tests want to check for ISC.
2415 cat >>confdefs.h <<\EOF
2416 #define _POSIX_SOURCE 1
2419 if test "$GCC" = yes; then
2425 echo "$as_me:2425: result: no" >&5
2426 echo "${ECHO_T}no" >&6
2430 # This should have been defined by AC_PROG_CC
2433 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2434 # into CC. This will not help with broken scripts that wrap the compiler with
2435 # options, but eliminates a more common category of user confusion.
2436 echo "$as_me:2436: checking \$CC variable" >&5
2437 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2440 echo "$as_me:2440: result: broken" >&5
2441 echo "${ECHO_T}broken" >&6
2442 { echo "$as_me:2442: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2443 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2445 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2446 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2451 cf_new_extra_cppflags=
2453 for cf_add_cflags in $cf_flags
2455 case $cf_fix_cppflags in
2457 case $cf_add_cflags in #(vi
2458 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2459 case $cf_add_cflags in
2461 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2463 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2464 && test -z "${cf_tst_cflags}" \
2465 && cf_fix_cppflags=yes
2467 if test $cf_fix_cppflags = yes ; then
2468 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2470 elif test "${cf_tst_cflags}" = "\"'" ; then
2471 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2477 *$cf_add_cflags) #(vi
2480 case $cf_add_cflags in #(vi
2482 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2484 CPPFLAGS=`echo "$CPPFLAGS" | \
2485 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2486 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2490 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2495 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2502 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2504 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2505 && test -z "${cf_tst_cflags}" \
2506 && cf_fix_cppflags=no
2511 if test -n "$cf_new_cflags" ; then
2513 CFLAGS="$CFLAGS $cf_new_cflags"
2516 if test -n "$cf_new_cppflags" ; then
2518 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2521 if test -n "$cf_new_extra_cppflags" ; then
2523 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2528 echo "$as_me:2528: result: ok" >&5
2529 echo "${ECHO_T}ok" >&6
2533 echo "$as_me:2533: checking for ${CC:-cc} option to accept ANSI C" >&5
2534 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2535 if test "${cf_cv_ansi_cc+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 cf_save_CFLAGS="$CFLAGS"
2541 cf_save_CPPFLAGS="$CPPFLAGS"
2542 # Don't try gcc -ansi; that turns off useful extensions and
2543 # breaks some systems' header files.
2544 # AIX -qlanglvl=ansi
2545 # Ultrix and OSF/1 -std1
2546 # HP-UX -Aa -D_HPUX_SOURCE
2548 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2549 for cf_arg in "-DCC_HAS_PROTOS" \
2554 "-Aa -D_HPUX_SOURCE" \
2561 cf_new_extra_cppflags=
2563 for cf_add_cflags in $cf_arg
2565 case $cf_fix_cppflags in
2567 case $cf_add_cflags in #(vi
2568 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2569 case $cf_add_cflags in
2571 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2573 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2574 && test -z "${cf_tst_cflags}" \
2575 && cf_fix_cppflags=yes
2577 if test $cf_fix_cppflags = yes ; then
2578 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2580 elif test "${cf_tst_cflags}" = "\"'" ; then
2581 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2587 *$cf_add_cflags) #(vi
2590 case $cf_add_cflags in #(vi
2592 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2594 CPPFLAGS=`echo "$CPPFLAGS" | \
2595 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2596 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2600 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2605 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2610 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2612 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2614 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2615 && test -z "${cf_tst_cflags}" \
2616 && cf_fix_cppflags=no
2621 if test -n "$cf_new_cflags" ; then
2623 CFLAGS="$CFLAGS $cf_new_cflags"
2626 if test -n "$cf_new_cppflags" ; then
2628 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2631 if test -n "$cf_new_extra_cppflags" ; then
2633 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2636 cat >conftest.$ac_ext <<_ACEOF
2637 #line 2637 "configure"
2638 #include "confdefs.h"
2640 #ifndef CC_HAS_PROTOS
2641 #if !defined(__STDC__) || (__STDC__ != 1)
2650 int test (int i, double x);
2651 struct s1 {int (*f) (int a);};
2652 struct s2 {int (*f) (double a);};
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:2658: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>&5
2661 echo "$as_me:2661: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -s conftest.$ac_objext'
2664 { (eval echo "$as_me:2664: \"$ac_try\"") >&5
2667 echo "$as_me:2667: \$? = $ac_status" >&5
2668 (exit $ac_status); }; }; then
2669 cf_cv_ansi_cc="$cf_arg"; break
2671 echo "$as_me: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2674 rm -f conftest.$ac_objext conftest.$ac_ext
2676 CFLAGS="$cf_save_CFLAGS"
2677 CPPFLAGS="$cf_save_CPPFLAGS"
2680 echo "$as_me:2680: result: $cf_cv_ansi_cc" >&5
2681 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2683 if test "$cf_cv_ansi_cc" != "no"; then
2684 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2689 cf_new_extra_cppflags=
2691 for cf_add_cflags in $cf_cv_ansi_cc
2693 case $cf_fix_cppflags in
2695 case $cf_add_cflags in #(vi
2696 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2697 case $cf_add_cflags in
2699 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2701 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2702 && test -z "${cf_tst_cflags}" \
2703 && cf_fix_cppflags=yes
2705 if test $cf_fix_cppflags = yes ; then
2706 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2708 elif test "${cf_tst_cflags}" = "\"'" ; then
2709 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2715 *$cf_add_cflags) #(vi
2718 case $cf_add_cflags in #(vi
2720 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2722 CPPFLAGS=`echo "$CPPFLAGS" | \
2723 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2724 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2728 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2733 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2738 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2740 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2742 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2743 && test -z "${cf_tst_cflags}" \
2744 && cf_fix_cppflags=no
2749 if test -n "$cf_new_cflags" ; then
2751 CFLAGS="$CFLAGS $cf_new_cflags"
2754 if test -n "$cf_new_cppflags" ; then
2756 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2759 if test -n "$cf_new_extra_cppflags" ; then
2761 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2765 cat >>confdefs.h <<\EOF
2766 #define CC_HAS_PROTOS 1
2772 if test "$cf_cv_ansi_cc" = "no"; then
2773 { { echo "$as_me:2773: error: Your compiler does not appear to recognize prototypes.
2774 You have the following choices:
2775 a. adjust your compiler options
2776 b. get an up-to-date compiler
2777 c. use a wrapper such as unproto" >&5
2778 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2779 You have the following choices:
2780 a. adjust your compiler options
2781 b. get an up-to-date compiler
2782 c. use a wrapper such as unproto" >&2;}
2783 { (exit 1); exit 1; }; }
2786 case $cf_cv_system_name in
2788 CFLAGS="$CFLAGS -Zmt"
2789 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2790 CXXFLAGS="$CXXFLAGS -Zmt"
2791 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2792 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2799 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2800 #define PROG_EXT "$PROG_EXT"
2803 if test "$cross_compiling" = yes ; then
2806 case "$cf_cv_system_name" in #(vi
2807 dragonfly*|mirbsd*|freebsd*) #(vi
2808 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2810 *) LDPATH=$PATH:/sbin:/usr/sbin
2811 # Extract the first word of "ldconfig", so it can be a program name with args.
2812 set dummy ldconfig; ac_word=$2
2813 echo "$as_me:2813: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2823 ac_save_IFS=$IFS; IFS=$ac_path_separator
2825 for ac_dir in $ac_dummy; do
2827 test -z "$ac_dir" && ac_dir=.
2828 if $as_executable_p "$ac_dir/$ac_word"; then
2829 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2830 echo "$as_me:2830: found $ac_dir/$ac_word" >&5
2838 LDCONFIG=$ac_cv_path_LDCONFIG
2840 if test -n "$LDCONFIG"; then
2841 echo "$as_me:2841: result: $LDCONFIG" >&5
2842 echo "${ECHO_T}$LDCONFIG" >&6
2844 echo "$as_me:2844: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2852 echo "$as_me:2852: checking if you want to ensure bool is consistent with C++" >&5
2853 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2855 # Check whether --with-cxx or --without-cxx was given.
2856 if test "${with_cxx+set}" = set; then
2858 cf_with_cxx=$withval
2862 echo "$as_me:2862: result: $cf_with_cxx" >&5
2863 echo "${ECHO_T}$cf_with_cxx" >&6
2864 if test "X$cf_with_cxx" = Xno ; then
2868 # with autoconf 2.13, we can change the error to a warning:
2870 ac_cpp='$CXXCPP $CPPFLAGS'
2871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2874 ac_main_return=return
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880 echo "$as_me:2880: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_CXX+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CXX"; then
2886 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2888 ac_save_IFS=$IFS; IFS=$ac_path_separator
2890 for ac_dir in $ac_dummy; do
2892 test -z "$ac_dir" && ac_dir=.
2893 $as_executable_p "$ac_dir/$ac_word" || continue
2894 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2895 echo "$as_me:2895: found $ac_dir/$ac_word" >&5
2902 if test -n "$CXX"; then
2903 echo "$as_me:2903: result: $CXX" >&5
2904 echo "${ECHO_T}$CXX" >&6
2906 echo "$as_me:2906: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2910 test -n "$CXX" && break
2913 if test -z "$CXX"; then
2915 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2917 # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 echo "$as_me:2919: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$ac_ct_CXX"; then
2925 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927 ac_save_IFS=$IFS; IFS=$ac_path_separator
2929 for ac_dir in $ac_dummy; do
2931 test -z "$ac_dir" && ac_dir=.
2932 $as_executable_p "$ac_dir/$ac_word" || continue
2933 ac_cv_prog_ac_ct_CXX="$ac_prog"
2934 echo "$as_me:2934: found $ac_dir/$ac_word" >&5
2940 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2941 if test -n "$ac_ct_CXX"; then
2942 echo "$as_me:2942: result: $ac_ct_CXX" >&5
2943 echo "${ECHO_T}$ac_ct_CXX" >&6
2945 echo "$as_me:2945: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2949 test -n "$ac_ct_CXX" && break
2951 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2956 # Provide some information about the compiler.
2957 echo "$as_me:2957:" \
2958 "checking for C++ compiler version" >&5
2959 ac_compiler=`set X $ac_compile; echo $2`
2960 { (eval echo "$as_me:2960: \"$ac_compiler --version </dev/null >&5\"") >&5
2961 (eval $ac_compiler --version </dev/null >&5) 2>&5
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2965 { (eval echo "$as_me:2965: \"$ac_compiler -v </dev/null >&5\"") >&5
2966 (eval $ac_compiler -v </dev/null >&5) 2>&5
2968 echo "$as_me:2968: \$? = $ac_status" >&5
2969 (exit $ac_status); }
2970 { (eval echo "$as_me:2970: \"$ac_compiler -V </dev/null >&5\"") >&5
2971 (eval $ac_compiler -V </dev/null >&5) 2>&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); }
2976 echo "$as_me:2976: checking whether we are using the GNU C++ compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2978 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line 2982 "configure"
2983 #include "confdefs.h"
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:2997: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3014 rm -f conftest.$ac_objext conftest.$ac_ext
3015 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3018 echo "$as_me:3018: result: $ac_cv_cxx_compiler_gnu" >&5
3019 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3020 GXX=`test $ac_compiler_gnu = yes && echo yes`
3021 ac_test_CXXFLAGS=${CXXFLAGS+set}
3022 ac_save_CXXFLAGS=$CXXFLAGS
3024 echo "$as_me:3024: checking whether $CXX accepts -g" >&5
3025 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3026 if test "${ac_cv_prog_cxx_g+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3041 rm -f conftest.$ac_objext
3042 if { (eval echo "$as_me:3042: \"$ac_compile\"") >&5
3043 (eval $ac_compile) 2>&5
3045 echo "$as_me:3045: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -s conftest.$ac_objext'
3048 { (eval echo "$as_me:3048: \"$ac_try\"") >&5
3051 echo "$as_me:3051: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 ac_cv_prog_cxx_g=yes
3055 echo "$as_me: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3059 rm -f conftest.$ac_objext conftest.$ac_ext
3061 echo "$as_me:3061: result: $ac_cv_prog_cxx_g" >&5
3062 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3063 if test "$ac_test_CXXFLAGS" = set; then
3064 CXXFLAGS=$ac_save_CXXFLAGS
3065 elif test $ac_cv_prog_cxx_g = yes; then
3066 if test "$GXX" = yes; then
3072 if test "$GXX" = yes; then
3078 for ac_declaration in \
3080 '#include <stdlib.h>' \
3081 'extern "C" void std::exit (int) throw (); using std::exit;' \
3082 'extern "C" void std::exit (int); using std::exit;' \
3083 'extern "C" void exit (int) throw ();' \
3084 'extern "C" void exit (int);' \
3087 cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:3101: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>&5
3104 echo "$as_me:3104: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (eval echo "$as_me:3107: \"$ac_try\"") >&5
3110 echo "$as_me:3110: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3114 echo "$as_me: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3118 rm -f conftest.$ac_objext conftest.$ac_ext
3119 cat >conftest.$ac_ext <<_ACEOF
3120 #line 3120 "configure"
3121 #include "confdefs.h"
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:3132: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3135 echo "$as_me:3135: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:3138: \"$ac_try\"") >&5
3141 echo "$as_me:3141: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3145 echo "$as_me: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3148 rm -f conftest.$ac_objext conftest.$ac_ext
3151 if test -n "$ac_declaration"; then
3152 echo '#ifdef __cplusplus' >>confdefs.h
3153 echo $ac_declaration >>confdefs.h
3154 echo '#endif' >>confdefs.h
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 ac_main_return=return
3164 # autoconf 2.5x removed the error - by hardcoding it to g++.
3165 if test "$CXX" = "g++" ; then
3166 # Extract the first word of "g++", so it can be a program name with args.
3167 set dummy g++; ac_word=$2
3168 echo "$as_me:3168: checking for $ac_word" >&5
3169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170 if test "${ac_cv_path_CXX+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3178 ac_save_IFS=$IFS; IFS=$ac_path_separator
3180 for ac_dir in $ac_dummy; do
3182 test -z "$ac_dir" && ac_dir=.
3183 if $as_executable_p "$ac_dir/$ac_word"; then
3184 ac_cv_path_CXX="$ac_dir/$ac_word"
3185 echo "$as_me:3185: found $ac_dir/$ac_word" >&5
3195 if test -n "$CXX"; then
3196 echo "$as_me:3196: result: $CXX" >&5
3197 echo "${ECHO_T}$CXX" >&6
3199 echo "$as_me:3199: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3204 if test "$CXX" = "g++" ; then
3205 { echo "$as_me:3205: WARNING: ignoring hardcoded g++" >&5
3206 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3207 cf_with_cxx=no; CXX=""; GXX="";
3212 if test "$GXX" = yes; then
3213 echo "$as_me:3213: checking version of g++" >&5
3214 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3215 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3216 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3217 echo "$as_me:3217: result: $GXX_VERSION" >&5
3218 echo "${ECHO_T}$GXX_VERSION" >&6
3221 case $GXX_VERSION in
3223 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3225 { echo "$as_me:3225: WARNING: templates do not work" >&5
3226 echo "$as_me: WARNING: templates do not work" >&2;}
3230 echo "$as_me:3230: checking if you want to build C++ binding and demo" >&5
3231 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3233 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3234 if test "${with_cxx_binding+set}" = set; then
3235 withval="$with_cxx_binding"
3236 cf_with_cxx_binding=$withval
3238 cf_with_cxx_binding=$cf_with_cxx
3240 echo "$as_me:3240: result: $cf_with_cxx_binding" >&5
3241 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3243 echo "$as_me:3243: checking if you want to build with Ada95" >&5
3244 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3246 # Check whether --with-ada or --without-ada was given.
3247 if test "${with_ada+set}" = set; then
3249 cf_with_ada=$withval
3253 echo "$as_me:3253: result: $cf_with_ada" >&5
3254 echo "${ECHO_T}$cf_with_ada" >&6
3256 echo "$as_me:3256: checking if you want to install manpages" >&5
3257 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3259 # Check whether --with-manpages or --without-manpages was given.
3260 if test "${with_manpages+set}" = set; then
3261 withval="$with_manpages"
3262 cf_with_manpages=$withval
3264 cf_with_manpages=yes
3266 echo "$as_me:3266: result: $cf_with_manpages" >&5
3267 echo "${ECHO_T}$cf_with_manpages" >&6
3269 echo "$as_me:3269: checking if you want to build programs such as tic" >&5
3270 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3272 # Check whether --with-progs or --without-progs was given.
3273 if test "${with_progs+set}" = set; then
3274 withval="$with_progs"
3275 cf_with_progs=$withval
3279 echo "$as_me:3279: result: $cf_with_progs" >&5
3280 echo "${ECHO_T}$cf_with_progs" >&6
3282 echo "$as_me:3282: checking if you want to build test-programs" >&5
3283 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3285 # Check whether --with-tests or --without-tests was given.
3286 if test "${with_tests+set}" = set; then
3287 withval="$with_tests"
3288 cf_with_tests=$withval
3292 echo "$as_me:3292: result: $cf_with_tests" >&5
3293 echo "${ECHO_T}$cf_with_tests" >&6
3295 echo "$as_me:3295: checking if you wish to install curses.h" >&5
3296 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3298 # Check whether --with-curses-h or --without-curses-h was given.
3299 if test "${with_curses_h+set}" = set; then
3300 withval="$with_curses_h"
3301 with_curses_h=$withval
3305 echo "$as_me:3305: result: $with_curses_h" >&5
3306 echo "${ECHO_T}$with_curses_h" >&6
3308 modules_to_build="ncurses"
3309 if test "X$cf_with_progs" != Xno ; then
3310 modules_to_build="$modules_to_build progs tack"
3312 modules_to_build="$modules_to_build panel menu form"
3314 test "$program_prefix" != NONE &&
3315 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3316 # Use a double $ so make ignores it.
3317 test "$program_suffix" != NONE &&
3318 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3319 # Double any \ or $. echo might interpret backslashes.
3320 # By default was `s,x,x', remove it if useless.
3321 cat <<\_ACEOF >conftest.sed
3322 s/[\\$]/&&/g;s/;s,x,x,$//
3324 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3327 for ac_prog in mawk gawk nawk awk
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 echo "$as_me:3331: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333 if test "${ac_cv_prog_AWK+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 if test -n "$AWK"; then
3337 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3339 ac_save_IFS=$IFS; IFS=$ac_path_separator
3341 for ac_dir in $ac_dummy; do
3343 test -z "$ac_dir" && ac_dir=.
3344 $as_executable_p "$ac_dir/$ac_word" || continue
3345 ac_cv_prog_AWK="$ac_prog"
3346 echo "$as_me:3346: found $ac_dir/$ac_word" >&5
3353 if test -n "$AWK"; then
3354 echo "$as_me:3354: result: $AWK" >&5
3355 echo "${ECHO_T}$AWK" >&6
3357 echo "$as_me:3357: result: no" >&5
3358 echo "${ECHO_T}no" >&6
3361 test -n "$AWK" && break
3364 test -z "$AWK" && { { echo "$as_me:3364: error: No awk program found" >&5
3365 echo "$as_me: error: No awk program found" >&2;}
3366 { (exit 1); exit 1; }; }
3368 echo "$as_me:3368: checking for egrep" >&5
3369 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3370 if test "${ac_cv_prog_egrep+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3374 then ac_cv_prog_egrep='grep -E'
3375 else ac_cv_prog_egrep='egrep'
3378 echo "$as_me:3378: result: $ac_cv_prog_egrep" >&5
3379 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3380 EGREP=$ac_cv_prog_egrep
3382 test -z "$EGREP" && { { echo "$as_me:3382: error: No egrep program found" >&5
3383 echo "$as_me: error: No egrep program found" >&2;}
3384 { (exit 1); exit 1; }; }
3386 # Find a good install program. We prefer a C program (faster),
3387 # so one script is as good as another. But avoid the broken or
3388 # incompatible versions:
3389 # SysV /etc/install, /usr/sbin/install
3390 # SunOS /usr/etc/install
3391 # IRIX /sbin/install
3393 # AmigaOS /C/install, which installs bootblocks on floppy discs
3394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3397 # ./install, which can be erroneously created by make from ./install.sh.
3398 echo "$as_me:3398: checking for a BSD compatible install" >&5
3399 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3400 if test -z "$INSTALL"; then
3401 if test "${ac_cv_path_install+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 ac_save_IFS=$IFS; IFS=$ac_path_separator
3405 for ac_dir in $PATH; do
3407 # Account for people who put trailing slashes in PATH elements.
3409 / | ./ | .// | /cC/* \
3410 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3413 # OSF1 and SCO ODT 3.0 have their own names for install.
3414 # Don't use installbsd from OSF since it installs stuff as root
3416 for ac_prog in ginstall scoinst install; do
3417 if $as_executable_p "$ac_dir/$ac_prog"; then
3418 if test $ac_prog = install &&
3419 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3420 # AIX install. It has an incompatible calling convention.
3422 elif test $ac_prog = install &&
3423 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3424 # program-specific install script used by HP pwplus--don't use.
3427 ac_cv_path_install="$ac_dir/$ac_prog -c"
3437 if test "${ac_cv_path_install+set}" = set; then
3438 INSTALL=$ac_cv_path_install
3440 # As a last resort, use the slow shell script. We don't cache a
3441 # path for INSTALL within a source directory, because that will
3442 # break other packages using the cache if that directory is
3443 # removed, or if the path is relative.
3444 INSTALL=$ac_install_sh
3447 echo "$as_me:3447: result: $INSTALL" >&5
3448 echo "${ECHO_T}$INSTALL" >&6
3450 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3451 # It thinks the first close brace ends the variable substitution.
3452 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3454 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3456 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3462 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3463 test -z "$cf_dir" && cf_dir=.
3464 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3468 for ac_prog in tdlint lint alint splint lclint
3470 # Extract the first word of "$ac_prog", so it can be a program name with args.
3471 set dummy $ac_prog; ac_word=$2
3472 echo "$as_me:3472: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_LINT+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 if test -n "$LINT"; then
3478 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3480 ac_save_IFS=$IFS; IFS=$ac_path_separator
3482 for ac_dir in $ac_dummy; do
3484 test -z "$ac_dir" && ac_dir=.
3485 $as_executable_p "$ac_dir/$ac_word" || continue
3486 ac_cv_prog_LINT="$ac_prog"
3487 echo "$as_me:3487: found $ac_dir/$ac_word" >&5
3493 LINT=$ac_cv_prog_LINT
3494 if test -n "$LINT"; then
3495 echo "$as_me:3495: result: $LINT" >&5
3496 echo "${ECHO_T}$LINT" >&6
3498 echo "$as_me:3498: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3502 test -n "$LINT" && break
3505 echo "$as_me:3505: checking whether ln -s works" >&5
3506 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3508 if test "$LN_S" = "ln -s"; then
3509 echo "$as_me:3509: result: yes" >&5
3510 echo "${ECHO_T}yes" >&6
3512 echo "$as_me:3512: result: no, using $LN_S" >&5
3513 echo "${ECHO_T}no, using $LN_S" >&6
3516 echo "$as_me:3516: checking if $LN_S -f options work" >&5
3517 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3519 rm -f conf$$.src conf$$dst
3521 echo first >conf$$.src
3522 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3527 rm -f conf$$.dst conf$$src
3528 echo "$as_me:3528: result: $cf_prog_ln_sf" >&5
3529 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3531 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3533 echo "$as_me:3533: checking for long file names" >&5
3534 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3535 if test "${ac_cv_sys_long_file_names+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 ac_cv_sys_long_file_names=yes
3539 # Test for long file names in all the places we know might matter:
3540 # . the current directory, where building will happen
3541 # $prefix/lib where we will be installing things
3542 # $exec_prefix/lib likewise
3543 # eval it to expand exec_prefix.
3544 # $TMPDIR if set, where it might want to write temporary files
3545 # if $TMPDIR is not set:
3546 # /tmp where it might want to write temporary files
3549 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3552 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3554 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3555 test -d $ac_dir || continue
3556 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3557 ac_xdir=$ac_dir/cf$$
3558 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3559 ac_tf1=$ac_xdir/conftest9012345
3560 ac_tf2=$ac_xdir/conftest9012346
3561 (echo 1 >$ac_tf1) 2>/dev/null
3562 (echo 2 >$ac_tf2) 2>/dev/null
3563 ac_val=`cat $ac_tf1 2>/dev/null`
3564 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3565 ac_cv_sys_long_file_names=no
3566 rm -rf $ac_xdir 2>/dev/null
3569 rm -rf $ac_xdir 2>/dev/null
3572 echo "$as_me:3572: result: $ac_cv_sys_long_file_names" >&5
3573 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3574 if test $ac_cv_sys_long_file_names = yes; then
3576 cat >>confdefs.h <<\EOF
3577 #define HAVE_LONG_FILE_NAMES 1
3582 # if we find pkg-config, check if we should install the ".pc" files.
3584 echo "$as_me:3584: checking if you want to use pkg-config" >&5
3585 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3587 # Check whether --with-pkg-config or --without-pkg-config was given.
3588 if test "${with_pkg_config+set}" = set; then
3589 withval="$with_pkg_config"
3590 cf_pkg_config=$withval
3594 echo "$as_me:3594: result: $cf_pkg_config" >&5
3595 echo "${ECHO_T}$cf_pkg_config" >&6
3597 case $cf_pkg_config in #(vi
3603 if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3605 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3606 echo "$as_me:3606: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3616 ac_save_IFS=$IFS; IFS=$ac_path_separator
3618 for ac_dir in $ac_dummy; do
3620 test -z "$ac_dir" && ac_dir=.
3621 if $as_executable_p "$ac_dir/$ac_word"; then
3622 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3623 echo "$as_me:3623: found $ac_dir/$ac_word" >&5
3631 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3633 if test -n "$PKG_CONFIG"; then
3634 echo "$as_me:3634: result: $PKG_CONFIG" >&5
3635 echo "${ECHO_T}$PKG_CONFIG" >&6
3637 echo "$as_me:3637: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3642 if test -z "$ac_cv_path_PKG_CONFIG"; then
3643 ac_pt_PKG_CONFIG=$PKG_CONFIG
3644 # Extract the first word of "pkg-config", so it can be a program name with args.
3645 set dummy pkg-config; ac_word=$2
3646 echo "$as_me:3646: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 case $ac_pt_PKG_CONFIG in
3653 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3656 ac_save_IFS=$IFS; IFS=$ac_path_separator
3658 for ac_dir in $ac_dummy; do
3660 test -z "$ac_dir" && ac_dir=.
3661 if $as_executable_p "$ac_dir/$ac_word"; then
3662 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3663 echo "$as_me:3663: found $ac_dir/$ac_word" >&5
3668 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3672 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3674 if test -n "$ac_pt_PKG_CONFIG"; then
3675 echo "$as_me:3675: result: $ac_pt_PKG_CONFIG" >&5
3676 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3678 echo "$as_me:3678: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3682 PKG_CONFIG=$ac_pt_PKG_CONFIG
3684 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3693 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3694 if test "$PKG_CONFIG" != none ; then
3696 if test "x$prefix" != xNONE; then
3697 cf_path_syntax="$prefix"
3699 cf_path_syntax="$ac_default_prefix"
3702 case ".$PKG_CONFIG" in #(vi
3703 .\$\(*\)*|.\'*\'*) #(vi
3707 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3710 eval PKG_CONFIG="$PKG_CONFIG"
3711 case ".$PKG_CONFIG" in #(vi
3713 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3718 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3721 { { echo "$as_me:3721: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3722 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3723 { (exit 1); exit 1; }; }
3729 if test "$PKG_CONFIG" != none ; then
3730 echo "$as_me:3730: checking for $PKG_CONFIG library directory" >&5
3731 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3733 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3734 if test "${with_pkg_config_libdir+set}" = set; then
3735 withval="$with_pkg_config_libdir"
3736 PKG_CONFIG_LIBDIR=$withval
3738 PKG_CONFIG_LIBDIR=yes
3741 case x$PKG_CONFIG_LIBDIR in #(vi
3745 # look for the library directory using the same prefix as the executable
3746 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3747 case x`(arch) 2>/dev/null` in #(vi
3749 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3751 if test -d $cf_config/pkgconfig
3753 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3759 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3767 echo "$as_me:3767: result: $PKG_CONFIG_LIBDIR" >&5
3768 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3771 if test "$PKG_CONFIG" != none ; then
3772 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3773 echo "$as_me:3773: checking if we should install .pc files for $PKG_CONFIG" >&5
3774 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3776 # Check whether --enable-pc-files or --disable-pc-files was given.
3777 if test "${enable_pc_files+set}" = set; then
3778 enableval="$enable_pc_files"
3779 enable_pc_files=$enableval
3783 echo "$as_me:3783: result: $enable_pc_files" >&5
3784 echo "${ECHO_T}$enable_pc_files" >&6
3785 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3787 { echo "$as_me:3787: WARNING: did not find $PKG_CONFIG library" >&5
3788 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3794 echo "$as_me:3794: checking if we should assume mixed-case filenames" >&5
3795 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3797 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3798 if test "${enable_mixed_case+set}" = set; then
3799 enableval="$enable_mixed_case"
3800 enable_mixedcase=$enableval
3802 enable_mixedcase=auto
3804 echo "$as_me:3804: result: $enable_mixedcase" >&5
3805 echo "${ECHO_T}$enable_mixedcase" >&6
3806 if test "$enable_mixedcase" = "auto" ; then
3808 echo "$as_me:3808: checking if filesystem supports mixed-case filenames" >&5
3809 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3810 if test "${cf_cv_mixedcase+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test "$cross_compiling" = yes ; then
3815 case $target_alias in #(vi
3816 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3824 rm -f conftest CONFTEST
3826 if test -f CONFTEST ; then
3831 rm -f conftest CONFTEST
3835 echo "$as_me:3835: result: $cf_cv_mixedcase" >&5
3836 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3837 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3838 #define MIXEDCASE_FILENAMES 1
3842 cf_cv_mixedcase=$enable_mixedcase
3843 if test "$enable_mixedcase" = "yes" ; then
3844 cat >>confdefs.h <<\EOF
3845 #define MIXEDCASE_FILENAMES 1
3851 # do this after mixed-case option (tags/TAGS is not as important as tic).
3852 echo "$as_me:3852: checking whether ${MAKE-make} sets \${MAKE}" >&5
3853 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3854 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3855 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 cat >conftest.make <<\EOF
3860 @echo 'ac_maketemp="${MAKE}"'
3862 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3863 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3864 if test -n "$ac_maketemp"; then
3865 eval ac_cv_prog_make_${ac_make}_set=yes
3867 eval ac_cv_prog_make_${ac_make}_set=no
3871 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3872 echo "$as_me:3872: result: yes" >&5
3873 echo "${ECHO_T}yes" >&6
3876 echo "$as_me:3876: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3878 SET_MAKE="MAKE=${MAKE-make}"
3881 for ac_prog in exctags ctags
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy $ac_prog; ac_word=$2
3885 echo "$as_me:3885: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_CTAGS+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 if test -n "$CTAGS"; then
3891 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3893 ac_save_IFS=$IFS; IFS=$ac_path_separator
3895 for ac_dir in $ac_dummy; do
3897 test -z "$ac_dir" && ac_dir=.
3898 $as_executable_p "$ac_dir/$ac_word" || continue
3899 ac_cv_prog_CTAGS="$ac_prog"
3900 echo "$as_me:3900: found $ac_dir/$ac_word" >&5
3906 CTAGS=$ac_cv_prog_CTAGS
3907 if test -n "$CTAGS"; then
3908 echo "$as_me:3908: result: $CTAGS" >&5
3909 echo "${ECHO_T}$CTAGS" >&6
3911 echo "$as_me:3911: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3915 test -n "$CTAGS" && break
3918 for ac_prog in exetags etags
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 echo "$as_me:3922: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ETAGS+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$ETAGS"; then
3928 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3930 ac_save_IFS=$IFS; IFS=$ac_path_separator
3932 for ac_dir in $ac_dummy; do
3934 test -z "$ac_dir" && ac_dir=.
3935 $as_executable_p "$ac_dir/$ac_word" || continue
3936 ac_cv_prog_ETAGS="$ac_prog"
3937 echo "$as_me:3937: found $ac_dir/$ac_word" >&5
3943 ETAGS=$ac_cv_prog_ETAGS
3944 if test -n "$ETAGS"; then
3945 echo "$as_me:3945: result: $ETAGS" >&5
3946 echo "${ECHO_T}$ETAGS" >&6
3948 echo "$as_me:3948: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3952 test -n "$ETAGS" && break
3955 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3956 set dummy ${CTAGS:-ctags}; ac_word=$2
3957 echo "$as_me:3957: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if test -n "$MAKE_LOWER_TAGS"; then
3963 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3965 ac_save_IFS=$IFS; IFS=$ac_path_separator
3967 for ac_dir in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir=.
3970 $as_executable_p "$ac_dir/$ac_word" || continue
3971 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3972 echo "$as_me:3972: found $ac_dir/$ac_word" >&5
3976 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3979 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3980 if test -n "$MAKE_LOWER_TAGS"; then
3981 echo "$as_me:3981: result: $MAKE_LOWER_TAGS" >&5
3982 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3984 echo "$as_me:3984: result: no" >&5
3985 echo "${ECHO_T}no" >&6
3988 if test "$cf_cv_mixedcase" = yes ; then
3989 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3990 set dummy ${ETAGS:-etags}; ac_word=$2
3991 echo "$as_me:3991: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 if test -n "$MAKE_UPPER_TAGS"; then
3997 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3999 ac_save_IFS=$IFS; IFS=$ac_path_separator
4001 for ac_dir in $ac_dummy; do
4003 test -z "$ac_dir" && ac_dir=.
4004 $as_executable_p "$ac_dir/$ac_word" || continue
4005 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4006 echo "$as_me:4006: found $ac_dir/$ac_word" >&5
4010 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4013 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4014 if test -n "$MAKE_UPPER_TAGS"; then
4015 echo "$as_me:4015: result: $MAKE_UPPER_TAGS" >&5
4016 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4018 echo "$as_me:4018: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4026 if test "$MAKE_UPPER_TAGS" = yes ; then
4032 if test "$MAKE_LOWER_TAGS" = yes ; then
4038 echo "$as_me:4038: checking for makeflags variable" >&5
4039 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4040 if test "${cf_cv_makeflags+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4047 cat >cf_makeflags.tmp <<CF_EOF
4050 @ echo '.$cf_option'
4052 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4053 case "$cf_result" in
4055 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4056 case "$cf_result" in
4057 .*CC=*) cf_cv_makeflags=
4059 *) cf_cv_makeflags=$cf_option
4065 *) echo "given option \"$cf_option\", no match \"$cf_result\""
4069 rm -f cf_makeflags.tmp
4072 echo "$as_me:4072: result: $cf_cv_makeflags" >&5
4073 echo "${ECHO_T}$cf_cv_makeflags" >&6
4075 if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4078 echo "$as_me:4078: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_prog_RANLIB+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 if test -n "$RANLIB"; then
4084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4086 ac_save_IFS=$IFS; IFS=$ac_path_separator
4088 for ac_dir in $ac_dummy; do
4090 test -z "$ac_dir" && ac_dir=.
4091 $as_executable_p "$ac_dir/$ac_word" || continue
4092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4093 echo "$as_me:4093: found $ac_dir/$ac_word" >&5
4099 RANLIB=$ac_cv_prog_RANLIB
4100 if test -n "$RANLIB"; then
4101 echo "$as_me:4101: result: $RANLIB" >&5
4102 echo "${ECHO_T}$RANLIB" >&6
4104 echo "$as_me:4104: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4109 if test -z "$ac_cv_prog_RANLIB"; then
4110 ac_ct_RANLIB=$RANLIB
4111 # Extract the first word of "ranlib", so it can be a program name with args.
4112 set dummy ranlib; ac_word=$2
4113 echo "$as_me:4113: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -n "$ac_ct_RANLIB"; then
4119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4121 ac_save_IFS=$IFS; IFS=$ac_path_separator
4123 for ac_dir in $ac_dummy; do
4125 test -z "$ac_dir" && ac_dir=.
4126 $as_executable_p "$ac_dir/$ac_word" || continue
4127 ac_cv_prog_ac_ct_RANLIB="ranlib"
4128 echo "$as_me:4128: found $ac_dir/$ac_word" >&5
4132 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4136 if test -n "$ac_ct_RANLIB"; then
4137 echo "$as_me:4137: result: $ac_ct_RANLIB" >&5
4138 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4140 echo "$as_me:4140: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4144 RANLIB=$ac_ct_RANLIB
4146 RANLIB="$ac_cv_prog_RANLIB"
4149 if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}ld; ac_word=$2
4152 echo "$as_me:4152: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if test "${ac_cv_prog_LD+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 if test -n "$LD"; then
4158 ac_cv_prog_LD="$LD" # Let the user override the test.
4160 ac_save_IFS=$IFS; IFS=$ac_path_separator
4162 for ac_dir in $ac_dummy; do
4164 test -z "$ac_dir" && ac_dir=.
4165 $as_executable_p "$ac_dir/$ac_word" || continue
4166 ac_cv_prog_LD="${ac_tool_prefix}ld"
4167 echo "$as_me:4167: found $ac_dir/$ac_word" >&5
4174 if test -n "$LD"; then
4175 echo "$as_me:4175: result: $LD" >&5
4176 echo "${ECHO_T}$LD" >&6
4178 echo "$as_me:4178: result: no" >&5
4179 echo "${ECHO_T}no" >&6
4183 if test -z "$ac_cv_prog_LD"; then
4185 # Extract the first word of "ld", so it can be a program name with args.
4186 set dummy ld; ac_word=$2
4187 echo "$as_me:4187: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 if test -n "$ac_ct_LD"; then
4193 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4195 ac_save_IFS=$IFS; IFS=$ac_path_separator
4197 for ac_dir in $ac_dummy; do
4199 test -z "$ac_dir" && ac_dir=.
4200 $as_executable_p "$ac_dir/$ac_word" || continue
4201 ac_cv_prog_ac_ct_LD="ld"
4202 echo "$as_me:4202: found $ac_dir/$ac_word" >&5
4206 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4209 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4210 if test -n "$ac_ct_LD"; then
4211 echo "$as_me:4211: result: $ac_ct_LD" >&5
4212 echo "${ECHO_T}$ac_ct_LD" >&6
4214 echo "$as_me:4214: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}ar; ac_word=$2
4226 echo "$as_me:4226: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_AR+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$AR"; then
4232 ac_cv_prog_AR="$AR" # Let the user override the test.
4234 ac_save_IFS=$IFS; IFS=$ac_path_separator
4236 for ac_dir in $ac_dummy; do
4238 test -z "$ac_dir" && ac_dir=.
4239 $as_executable_p "$ac_dir/$ac_word" || continue
4240 ac_cv_prog_AR="${ac_tool_prefix}ar"
4241 echo "$as_me:4241: found $ac_dir/$ac_word" >&5
4248 if test -n "$AR"; then
4249 echo "$as_me:4249: result: $AR" >&5
4250 echo "${ECHO_T}$AR" >&6
4252 echo "$as_me:4252: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4257 if test -z "$ac_cv_prog_AR"; then
4259 # Extract the first word of "ar", so it can be a program name with args.
4260 set dummy ar; ac_word=$2
4261 echo "$as_me:4261: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 if test -n "$ac_ct_AR"; then
4267 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4269 ac_save_IFS=$IFS; IFS=$ac_path_separator
4271 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 $as_executable_p "$ac_dir/$ac_word" || continue
4275 ac_cv_prog_ac_ct_AR="ar"
4276 echo "$as_me:4276: found $ac_dir/$ac_word" >&5
4280 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4284 if test -n "$ac_ct_AR"; then
4285 echo "$as_me:4285: result: $ac_ct_AR" >&5
4286 echo "${ECHO_T}$ac_ct_AR" >&6
4288 echo "$as_me:4288: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4297 if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4299 set dummy ${ac_tool_prefix}ar; ac_word=$2
4300 echo "$as_me:4300: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4302 if test "${ac_cv_prog_AR+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 if test -n "$AR"; then
4306 ac_cv_prog_AR="$AR" # Let the user override the test.
4308 ac_save_IFS=$IFS; IFS=$ac_path_separator
4310 for ac_dir in $ac_dummy; do
4312 test -z "$ac_dir" && ac_dir=.
4313 $as_executable_p "$ac_dir/$ac_word" || continue
4314 ac_cv_prog_AR="${ac_tool_prefix}ar"
4315 echo "$as_me:4315: found $ac_dir/$ac_word" >&5
4322 if test -n "$AR"; then
4323 echo "$as_me:4323: result: $AR" >&5
4324 echo "${ECHO_T}$AR" >&6
4326 echo "$as_me:4326: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4331 if test -z "$ac_cv_prog_AR"; then
4333 # Extract the first word of "ar", so it can be a program name with args.
4334 set dummy ar; ac_word=$2
4335 echo "$as_me:4335: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 if test -n "$ac_ct_AR"; then
4341 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4343 ac_save_IFS=$IFS; IFS=$ac_path_separator
4345 for ac_dir in $ac_dummy; do
4347 test -z "$ac_dir" && ac_dir=.
4348 $as_executable_p "$ac_dir/$ac_word" || continue
4349 ac_cv_prog_ac_ct_AR="ar"
4350 echo "$as_me:4350: found $ac_dir/$ac_word" >&5
4354 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4357 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358 if test -n "$ac_ct_AR"; then
4359 echo "$as_me:4359: result: $ac_ct_AR" >&5
4360 echo "${ECHO_T}$ac_ct_AR" >&6
4362 echo "$as_me:4362: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4371 echo "$as_me:4371: checking for options to update archives" >&5
4372 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4373 if test "${cf_cv_ar_flags+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 cf_cv_ar_flags=unknown
4378 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4381 # check if $ARFLAGS already contains this choice
4382 if test "x$ARFLAGS" != "x" ; then
4383 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4384 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4390 rm -f conftest.$ac_cv_objext
4393 cat >conftest.$ac_ext <<EOF
4394 #line 4394 "configure"
4395 int testdata[3] = { 123, 456, 789 };
4397 if { (eval echo "$as_me:4397: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>&5
4400 echo "$as_me:4400: \$? = $ac_status" >&5
4401 (exit $ac_status); } ; then
4402 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4403 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4404 if test -f conftest.a ; then
4405 cf_cv_ar_flags=$cf_ar_flags
4409 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4411 echo "${as_me:-configure}:4411: testing cannot compile test-program ..." 1>&5
4416 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4419 echo "$as_me:4419: result: $cf_cv_ar_flags" >&5
4420 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4422 if test -n "$ARFLAGS" ; then
4423 if test -n "$cf_cv_ar_flags" ; then
4424 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4427 ARFLAGS=$cf_cv_ar_flags
4430 echo "$as_me:4430: checking if you have specified an install-prefix" >&5
4431 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4433 # Check whether --with-install-prefix or --without-install-prefix was given.
4434 if test "${with_install_prefix+set}" = set; then
4435 withval="$with_install_prefix"
4436 case "$withval" in #(vi
4439 *) DESTDIR="$withval"
4443 echo "$as_me:4443: result: $DESTDIR" >&5
4444 echo "${ECHO_T}$DESTDIR" >&6
4446 ###############################################################################
4448 # If we're cross-compiling, allow the user to override the tools and their
4449 # options. The configure script is oriented toward identifying the host
4450 # compiler, etc., but we need a build compiler to generate parts of the source.
4452 if test "$cross_compiling" = yes ; then
4454 # defaults that we might want to override
4455 : ${BUILD_CFLAGS:=''}
4456 : ${BUILD_CPPFLAGS:=''}
4457 : ${BUILD_LDFLAGS:=''}
4459 : ${BUILD_EXEEXT:='$x'}
4460 : ${BUILD_OBJEXT:='o'}
4462 # Check whether --with-build-cc or --without-build-cc was given.
4463 if test "${with_build_cc+set}" = set; then
4464 withval="$with_build_cc"
4467 for ac_prog in gcc cc cl
4469 # Extract the first word of "$ac_prog", so it can be a program name with args.
4470 set dummy $ac_prog; ac_word=$2
4471 echo "$as_me:4471: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 if test -n "$BUILD_CC"; then
4477 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4479 ac_save_IFS=$IFS; IFS=$ac_path_separator
4481 for ac_dir in $ac_dummy; do
4483 test -z "$ac_dir" && ac_dir=.
4484 $as_executable_p "$ac_dir/$ac_word" || continue
4485 ac_cv_prog_BUILD_CC="$ac_prog"
4486 echo "$as_me:4486: found $ac_dir/$ac_word" >&5
4492 BUILD_CC=$ac_cv_prog_BUILD_CC
4493 if test -n "$BUILD_CC"; then
4494 echo "$as_me:4494: result: $BUILD_CC" >&5
4495 echo "${ECHO_T}$BUILD_CC" >&6
4497 echo "$as_me:4497: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4501 test -n "$BUILD_CC" && break
4505 echo "$as_me:4505: checking for native build C compiler" >&5
4506 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4507 echo "$as_me:4507: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6
4510 echo "$as_me:4510: checking for native build C preprocessor" >&5
4511 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4513 # Check whether --with-build-cpp or --without-build-cpp was given.
4514 if test "${with_build_cpp+set}" = set; then
4515 withval="$with_build_cpp"
4516 BUILD_CPP="$withval"
4518 BUILD_CPP='${BUILD_CC} -E'
4520 echo "$as_me:4520: result: $BUILD_CPP" >&5
4521 echo "${ECHO_T}$BUILD_CPP" >&6
4523 echo "$as_me:4523: checking for native build C flags" >&5
4524 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4526 # Check whether --with-build-cflags or --without-build-cflags was given.
4527 if test "${with_build_cflags+set}" = set; then
4528 withval="$with_build_cflags"
4529 BUILD_CFLAGS="$withval"
4531 echo "$as_me:4531: result: $BUILD_CFLAGS" >&5
4532 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4534 echo "$as_me:4534: checking for native build C preprocessor-flags" >&5
4535 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4537 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4538 if test "${with_build_cppflags+set}" = set; then
4539 withval="$with_build_cppflags"
4540 BUILD_CPPFLAGS="$withval"
4542 echo "$as_me:4542: result: $BUILD_CPPFLAGS" >&5
4543 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4545 echo "$as_me:4545: checking for native build linker-flags" >&5
4546 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4548 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4549 if test "${with_build_ldflags+set}" = set; then
4550 withval="$with_build_ldflags"
4551 BUILD_LDFLAGS="$withval"
4553 echo "$as_me:4553: result: $BUILD_LDFLAGS" >&5
4554 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4556 echo "$as_me:4556: checking for native build linker-libraries" >&5
4557 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4559 # Check whether --with-build-libs or --without-build-libs was given.
4560 if test "${with_build_libs+set}" = set; then
4561 withval="$with_build_libs"
4562 BUILD_LIBS="$withval"
4564 echo "$as_me:4564: result: $BUILD_LIBS" >&5
4565 echo "${ECHO_T}$BUILD_LIBS" >&6
4567 # this assumes we're on Unix.
4571 : ${BUILD_CC:='${CC}'}
4573 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4574 { { echo "$as_me:4574: error: Cross-build requires two compilers.
4575 Use --with-build-cc to specify the native compiler." >&5
4576 echo "$as_me: error: Cross-build requires two compilers.
4577 Use --with-build-cc to specify the native compiler." >&2;}
4578 { (exit 1); exit 1; }; }
4582 : ${BUILD_CC:='${CC}'}
4583 : ${BUILD_CPP:='${CPP}'}
4584 : ${BUILD_CFLAGS:='${CFLAGS}'}
4585 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4586 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4587 : ${BUILD_LIBS:='${LIBS}'}
4588 : ${BUILD_EXEEXT:='$x'}
4589 : ${BUILD_OBJEXT:='o'}
4592 ###############################################################################
4594 ### Options to allow the user to specify the set of libraries which are used.
4595 ### Use "--without-normal --with-shared" to allow the default model to be
4596 ### shared, for example.
4599 echo "$as_me:4599: checking if libtool -version-number should be used" >&5
4600 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4602 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4603 if test "${enable_libtool_version+set}" = set; then
4604 enableval="$enable_libtool_version"
4605 test "$enableval" != no && enableval=yes
4606 if test "$enableval" != "yes" ; then
4607 cf_libtool_version=no
4609 cf_libtool_version=yes
4613 cf_libtool_version=yes
4616 echo "$as_me:4616: result: $cf_libtool_version" >&5
4617 echo "${ECHO_T}$cf_libtool_version" >&6
4619 if test "$cf_libtool_version" = yes ; then
4620 LIBTOOL_VERSION="-version-number"
4622 LIBTOOL_VERSION="-version-info"
4627 # common library maintenance symbols that are convenient for libtool scripts:
4628 LIB_CREATE='${AR} -cr'
4629 LIB_OBJECT='${OBJECTS}'
4633 # symbols used to prop libtool up to enable it to determine what it should be
4641 echo "$as_me:4641: checking if you want to build libraries with libtool" >&5
4642 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4644 # Check whether --with-libtool or --without-libtool was given.
4645 if test "${with_libtool+set}" = set; then
4646 withval="$with_libtool"
4647 with_libtool=$withval
4651 echo "$as_me:4651: result: $with_libtool" >&5
4652 echo "${ECHO_T}$with_libtool" >&6
4653 if test "$with_libtool" != "no"; then
4655 if test "$with_libtool" != "yes" ; then
4657 if test "x$prefix" != xNONE; then
4658 cf_path_syntax="$prefix"
4660 cf_path_syntax="$ac_default_prefix"
4663 case ".$with_libtool" in #(vi
4664 .\$\(*\)*|.\'*\'*) #(vi
4668 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4671 eval with_libtool="$with_libtool"
4672 case ".$with_libtool" in #(vi
4674 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4679 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4682 { { echo "$as_me:4682: error: expected a pathname, not \"$with_libtool\"" >&5
4683 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4684 { (exit 1); exit 1; }; }
4688 LIBTOOL=$with_libtool
4690 # Extract the first word of "libtool", so it can be a program name with args.
4691 set dummy libtool; ac_word=$2
4692 echo "$as_me:4692: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4694 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4702 ac_save_IFS=$IFS; IFS=$ac_path_separator
4704 for ac_dir in $ac_dummy; do
4706 test -z "$ac_dir" && ac_dir=.
4707 if $as_executable_p "$ac_dir/$ac_word"; then
4708 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4709 echo "$as_me:4709: found $ac_dir/$ac_word" >&5
4717 LIBTOOL=$ac_cv_path_LIBTOOL
4719 if test -n "$LIBTOOL"; then
4720 echo "$as_me:4720: result: $LIBTOOL" >&5
4721 echo "${ECHO_T}$LIBTOOL" >&6
4723 echo "$as_me:4723: result: no" >&5
4724 echo "${ECHO_T}no" >&6
4728 if test -z "$LIBTOOL" ; then
4729 { { echo "$as_me:4729: error: Cannot find libtool" >&5
4730 echo "$as_me: error: Cannot find libtool" >&2;}
4731 { (exit 1); exit 1; }; }
4733 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4734 LIB_OBJECT='${OBJECTS:.o=.lo}'
4736 LIB_CLEAN='${LIBTOOL} --mode=clean'
4737 LIB_COMPILE='${LIBTOOL} --mode=compile'
4738 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4739 LIB_INSTALL='${LIBTOOL} --mode=install'
4740 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4743 # Show the version of libtool
4744 echo "$as_me:4744: checking version of libtool" >&5
4745 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4747 # Save the version in a cache variable - this is not entirely a good
4748 # thing, but the version string from libtool is very ugly, and for
4749 # bug reports it might be useful to have the original string. "("
4750 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.].*//'`
4751 echo "$as_me:4751: result: $cf_cv_libtool_version" >&5
4752 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4753 if test -z "$cf_cv_libtool_version" ; then
4754 { { echo "$as_me:4754: error: This is not GNU libtool" >&5
4755 echo "$as_me: error: This is not GNU libtool" >&2;}
4756 { (exit 1); exit 1; }; }
4759 # special hack to add -no-undefined (which libtool should do for itself)
4761 case "$cf_cv_system_name" in #(vi
4762 cygwin*|mingw32*|uwin*|aix[4-7]) #(vi
4763 LT_UNDEF=-no-undefined
4767 # special hack to add --tag option for C++ compiler
4768 case $cf_cv_libtool_version in #(vi
4769 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4770 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4771 LIBTOOL="$LIBTOOL --tag=CC"
4774 LIBTOOL_CXX="$LIBTOOL"
4782 test -z "$LIBTOOL" && ECHO_LT=
4784 if test "$with_libtool" != "no" ; then
4786 cf_list_models="$cf_list_models libtool"
4790 echo "$as_me:4790: checking if you want to build shared libraries" >&5
4791 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4793 # Check whether --with-shared or --without-shared was given.
4794 if test "${with_shared+set}" = set; then
4795 withval="$with_shared"
4796 with_shared=$withval
4800 echo "$as_me:4800: result: $with_shared" >&5
4801 echo "${ECHO_T}$with_shared" >&6
4802 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4804 echo "$as_me:4804: checking if you want to build static libraries" >&5
4805 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4807 # Check whether --with-normal or --without-normal was given.
4808 if test "${with_normal+set}" = set; then
4809 withval="$with_normal"
4810 with_normal=$withval
4814 echo "$as_me:4814: result: $with_normal" >&5
4815 echo "${ECHO_T}$with_normal" >&6
4816 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4818 echo "$as_me:4818: checking if you want to build debug libraries" >&5
4819 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4821 # Check whether --with-debug or --without-debug was given.
4822 if test "${with_debug+set}" = set; then
4823 withval="$with_debug"
4828 echo "$as_me:4828: result: $with_debug" >&5
4829 echo "${ECHO_T}$with_debug" >&6
4830 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4832 echo "$as_me:4832: checking if you want to build profiling libraries" >&5
4833 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4835 # Check whether --with-profile or --without-profile was given.
4836 if test "${with_profile+set}" = set; then
4837 withval="$with_profile"
4838 with_profile=$withval
4842 echo "$as_me:4842: result: $with_profile" >&5
4843 echo "${ECHO_T}$with_profile" >&6
4844 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4848 ###############################################################################
4850 echo "$as_me:4850: checking for specified models" >&5
4851 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4852 test -z "$cf_list_models" && cf_list_models=normal