2 # From configure.in Revision: 1.489 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20100320.
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-curses-h install curses.h as ncurses.h only
703 --with-pkg-config{=path} enable/disable use of pkg-config
704 --enable-pc-files generate and install .pc files for pkg-config
705 --enable-mixed-case tic should assume mixed-case filenames
706 --with-install-prefix prefixes actual install-location ($DESTDIR)
707 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
708 --with-build-cc=XXX the build C compiler ($BUILD_CC)
709 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
710 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
711 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
712 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
713 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
714 Options to Specify the Libraries Built/Used:
715 --with-libtool generate libraries with libtool
716 --with-shared generate shared-libraries
717 --with-normal generate normal-libraries (default)
718 --with-debug generate debug-libraries (default)
719 --with-profile generate profile-libraries
720 --with-termlib generate separate terminfo library
721 --with-ticlib generate separate tic library
722 --with-gpm use Alessandro Rubini's GPM library
723 --without-dlsym do not use dlsym() to load GPM dynamically
724 --with-sysmouse use sysmouse (FreeBSD console)
725 --enable-rpath use rpath option when generating shared libraries
726 --disable-relink relink shared libraries during install
727 --with-shlib-version=X Specify rel or abi version for shared libs
728 Fine-Tuning Your Configuration:
729 --disable-overwrite leave out the link to -lcurses
730 --disable-database do not use terminfo, only fallbacks/termcap
731 --with-database=XXX specify terminfo source to install
732 --with-hashed-db specify hashed-database library
733 --with-fallbacks=XXX specify list of fallback terminal descriptions
734 --without-xterm-new specify if xterm terminfo should be old version
735 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
736 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
737 --disable-big-core assume machine has little memory
738 --disable-big-strings assume compiler has only standard-size strings
739 --enable-termcap compile in termcap fallback support
740 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
741 --enable-getcap fast termcap load, no xrefs to terminfo
742 --enable-getcap-cache cache translated termcaps in ~/.terminfo
743 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
744 --disable-root-environ restrict environment when running as root
745 --enable-symlinks make tic use symbolic links not hard links
746 --enable-broken_linker compile with broken-linker support code
747 --enable-bsdpad recognize BSD-style prefix padding
748 --enable-widec compile with wide-char/UTF-8 code
749 --disable-lp64 allow chtype to be long (ignore _LP64)
750 --disable-largefile omit support for large files
751 --disable-tparm-varargs compile tparm() without varargs interface
752 --disable-tic-depends link tic library without explicit dependency on ncurses library
753 --with-bool=TYPE override fallback type of bool variable
754 --with-caps=alt compile with alternate Caps file
755 --with-chtype=TYPE override type of chtype
756 --with-ospeed=TYPE override type of ospeed variable
757 --with-mmask-t=TYPE override type of mmask_t
758 --with-ccharw-max=XXX override size CCHARW_MAX
759 --with-rcs-ids compile-in RCS identifiers
760 Options to Specify How Manpages are Installed:
761 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
762 optionally formatted/catonly, e.g., gzip,formatted
763 --with-manpage-renames specify manpage-renaming
764 --with-manpage-aliases specify manpage-aliases using .so
765 --with-manpage-symlinks specify manpage-aliases using symlinks
766 --with-manpage-tbl specify manpage processing with tbl
768 --disable-ext-funcs disable function-extensions
769 --enable-sp-funcs enable experimental SCREEN-extensions
770 --enable-term-driver enable experimental terminal-driver
771 --enable-const compile with extra/non-standard const
772 --enable-ext-colors compile for 256-color support
773 --enable-ext-mouse compile for extended mouse-encoding
774 --enable-no-padding compile with $NCURSES_NO_PADDING code
775 --enable-signed-char compile using signed Boolean's in term.h
776 --enable-sigwinch compile with SIGWINCH handler
777 --enable-tcap-names compile with user-definable terminal capabilities
779 --without-develop disable development options
780 --enable-hard-tabs compile with hard-tabs code
781 --enable-xmc-glitch compile with support for xmc (magic-cookie)
783 --disable-assumed-color do not assume anything about default-colors
784 --disable-hashmap compile without hashmap scrolling-optimization
785 --enable-colorfgbg compile-in experimental $COLORFGBG code
786 --enable-interop compile-in experimental interop bindings
787 --with-pthread use POSIX thread library
788 --enable-weak-symbols enable weak-symbols for pthreads
789 --enable-reentrant compile with experimental reentrant code
790 --with-wrap-prefix=XXX override prefix used for public variables
791 --enable-safe-sprintf compile with experimental safe-sprintf code
792 --disable-scroll-hints compile without scroll-hints code
793 --enable-wgetch-events compile with experimental wgetch-events code
794 Testing/development Options:
795 --enable-echo build: display "compiling" commands (default)
796 --enable-warnings build: turn on GCC compiler warnings
797 --enable-assertions test: turn on generation of assertion code
798 --with-dmalloc test: use Gray Watson's dmalloc library
799 --with-dbmalloc test: use Conor Cahill's dbmalloc library
800 --with-valgrind test: use valgrind
801 --disable-leaks test: free permanent memory, analyze leaks
802 --enable-expanded test: generate functions for certain macros
803 --disable-macros test: use functions rather than macros
804 --with-trace test: add trace() function to all models of ncurses
805 Ada95 Binding Options:
806 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
807 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
808 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
809 --disable-rpath-hack don't add rpath options for additional libraries
811 Some influential environment variables:
812 CC C compiler command
813 CFLAGS C compiler flags
814 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
815 nonstandard directory <lib dir>
816 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
817 headers in a nonstandard directory <include dir>
819 CXX C++ compiler command
820 CXXFLAGS C++ compiler flags
821 CXXCPP C++ preprocessor
823 Use these variables to override the choices made by `configure' or to help
824 it to find libraries and programs with nonstandard names/locations.
829 if test "$ac_init_help" = "recursive"; then
830 # If there are subdirs, report their specific --help.
832 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
834 # A "../" for each directory in /$ac_subdir.
835 ac_dots=`echo $ac_subdir |
836 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
839 .) # No --srcdir option. We are building in place.
840 ac_sub_srcdir=$srcdir ;;
841 [\\/]* | ?:[\\/]* ) # Absolute path.
842 ac_sub_srcdir=$srcdir/$ac_subdir ;;
844 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
847 # Check for guested configure; otherwise get Cygnus style configure.
848 if test -f $ac_sub_srcdir/configure.gnu; then
850 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
851 elif test -f $ac_sub_srcdir/configure; then
853 $SHELL $ac_sub_srcdir/configure --help=recursive
854 elif test -f $ac_sub_srcdir/configure.ac ||
855 test -f $ac_sub_srcdir/configure.in; then
859 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
865 test -n "$ac_init_help" && exit 0
866 if $ac_init_version; then
869 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
870 Free Software Foundation, Inc.
871 This configure script is free software; the Free Software Foundation
872 gives unlimited permission to copy, distribute and modify it.
878 This file contains any messages produced by compilers while
879 running configure, to aid debugging if configure makes a mistake.
881 It was created by $as_me, which was
882 generated by GNU Autoconf 2.52.20100320. Invocation command line was
893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
905 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
922 # Keep a trace of the command line.
923 # Strip out --no-create and --no-recursion so they do not pile up.
924 # Also quote any args containing shell meta-characters.
930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931 | --no-cr | --no-c) ;;
932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
934 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
935 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
936 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
938 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
941 # Get rid of the leading space.
944 # When interrupted or exit'd, cleanup temporary files, and complete
945 # config.log. We remove comments because anyway the quotes in there
946 # would cause problems or look ugly.
948 # Save into config.log some information that might help in debugging.
950 echo "## ----------------- ##" >&5
951 echo "## Cache variables. ##" >&5
952 echo "## ----------------- ##" >&5
954 # The following way of writing the cache mishandles newlines in values,
957 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
960 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
965 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
969 sed "/^$/d" confdefs.h >conftest.log
970 if test -s conftest.log; then
972 echo "## ------------ ##" >&5
973 echo "## confdefs.h. ##" >&5
974 echo "## ------------ ##" >&5
979 test "$ac_signal" != 0 &&
980 echo "$as_me: caught signal $ac_signal" >&5
981 echo "$as_me: exit $exit_status" >&5
982 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
985 for ac_signal in 1 2 13 15; do
986 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
990 # confdefs.h avoids OS command line length limits that DEFS can exceed.
991 rm -rf conftest* confdefs.h
992 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
995 # Let the site file select an alternate cache file if it wants to.
996 # Prefer explicitly selected file to automatically selected ones.
997 if test -z "$CONFIG_SITE"; then
998 if test "x$prefix" != xNONE; then
999 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1001 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1004 for ac_site_file in $CONFIG_SITE; do
1005 if test -r "$ac_site_file"; then
1006 { echo "$as_me:1006: loading site script $ac_site_file" >&5
1007 echo "$as_me: loading site script $ac_site_file" >&6;}
1008 cat "$ac_site_file" >&5
1013 if test -r "$cache_file"; then
1014 # Some versions of bash will fail to source /dev/null (special
1015 # files actually), so we avoid doing that.
1016 if test -f "$cache_file"; then
1017 { echo "$as_me:1017: loading cache $cache_file" >&5
1018 echo "$as_me: loading cache $cache_file" >&6;}
1020 [\\/]* | ?:[\\/]* ) . $cache_file;;
1021 *) . ./$cache_file;;
1025 { echo "$as_me:1025: creating cache $cache_file" >&5
1026 echo "$as_me: creating cache $cache_file" >&6;}
1030 # Check that the precious variables saved in the cache have kept the same
1032 ac_cache_corrupted=false
1033 for ac_var in `(set) 2>&1 |
1034 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1035 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1036 eval ac_new_set=\$ac_env_${ac_var}_set
1037 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1038 eval ac_new_val="\$ac_env_${ac_var}_value"
1039 case $ac_old_set,$ac_new_set in
1041 { echo "$as_me:1041: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1042 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1043 ac_cache_corrupted=: ;;
1045 { echo "$as_me:1045: error: \`$ac_var' was not set in the previous run" >&5
1046 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1047 ac_cache_corrupted=: ;;
1050 if test "x$ac_old_val" != "x$ac_new_val"; then
1051 { echo "$as_me:1051: error: \`$ac_var' has changed since the previous run:" >&5
1052 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1053 { echo "$as_me:1053: former value: $ac_old_val" >&5
1054 echo "$as_me: former value: $ac_old_val" >&2;}
1055 { echo "$as_me:1055: current value: $ac_new_val" >&5
1056 echo "$as_me: current value: $ac_new_val" >&2;}
1057 ac_cache_corrupted=:
1060 # Pass precious variables to config.status. It doesn't matter if
1061 # we pass some twice (in addition to the command line arguments).
1062 if test "$ac_new_set" = set; then
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1066 ac_configure_args="$ac_configure_args '$ac_arg'"
1068 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1073 if $ac_cache_corrupted; then
1074 { echo "$as_me:1074: error: changes in the environment can compromise the build" >&5
1075 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1076 { { echo "$as_me:1076: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1077 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1078 { (exit 1); exit 1; }; }
1082 ac_cpp='$CPP $CPPFLAGS'
1083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1086 ac_main_return=return
1088 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1089 *c*,-n*) ECHO_N= ECHO_C='
1091 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1092 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1094 echo "#! $SHELL" >conftest.sh
1095 echo "exit 0" >>conftest.sh
1096 chmod +x conftest.sh
1097 if { (echo "$as_me:1097: PATH=\".;.\"; conftest.sh") >&5
1098 (PATH=".;."; conftest.sh) 2>&5
1100 echo "$as_me:1100: \$? = $ac_status" >&5
1101 (exit $ac_status); }; then
1102 ac_path_separator=';'
1106 PATH_SEPARATOR="$ac_path_separator"
1109 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1113 echo "$as_me:1113: checking for egrep" >&5
1114 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1115 if test "${ac_cv_prog_egrep+set}" = set; then
1116 echo $ECHO_N "(cached) $ECHO_C" >&6
1118 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1119 then ac_cv_prog_egrep='grep -E'
1120 else ac_cv_prog_egrep='egrep'
1123 echo "$as_me:1123: result: $ac_cv_prog_egrep" >&5
1124 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1125 EGREP=$ac_cv_prog_egrep
1127 test -z "$EGREP" && { { echo "$as_me:1127: error: No egrep program found" >&5
1128 echo "$as_me: error: No egrep program found" >&2;}
1129 { (exit 1); exit 1; }; }
1131 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1132 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1133 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1134 cf_cv_abi_version=${NCURSES_MAJOR}
1135 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1136 cf_cv_timestamp=`date`
1137 echo "$as_me:1137: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1138 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1140 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1142 # Check whether --with-rel-version or --without-rel-version was given.
1143 if test "${with_rel_version+set}" = set; then
1144 withval="$with_rel_version"
1145 { echo "$as_me:1145: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1146 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1147 cf_cv_rel_version=$withval
1150 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1151 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1153 if test -n "$NCURSES_MAJOR" ; then
1154 case $NCURSES_MAJOR in #(vi
1158 { { echo "$as_me:1158: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1159 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1160 { (exit 1); exit 1; }; }
1164 { { echo "$as_me:1164: error: Release major-version value is empty" >&5
1165 echo "$as_me: error: Release major-version value is empty" >&2;}
1166 { (exit 1); exit 1; }; }
1169 if test -n "$NCURSES_MINOR" ; then
1170 case $NCURSES_MINOR in #(vi
1174 { { echo "$as_me:1174: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1175 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1176 { (exit 1); exit 1; }; }
1180 { { echo "$as_me:1180: error: Release minor-version value is empty" >&5
1181 echo "$as_me: error: Release minor-version value is empty" >&2;}
1182 { (exit 1); exit 1; }; }
1185 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1187 # Check whether --with-abi-version or --without-abi-version was given.
1188 if test "${with_abi_version+set}" = set; then
1189 withval="$with_abi_version"
1190 { echo "$as_me:1190: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1191 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1192 cf_cv_abi_version=$withval
1195 if test -n "$cf_cv_abi_version" ; then
1196 case $cf_cv_abi_version in #(vi
1200 { { echo "$as_me:1200: error: ABI version is not a number: $cf_cv_abi_version" >&5
1201 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1202 { (exit 1); exit 1; }; }
1206 { { echo "$as_me:1206: error: ABI version value is empty" >&5
1207 echo "$as_me: error: ABI version value is empty" >&2;}
1208 { (exit 1); exit 1; }; }
1212 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1213 if test -f $ac_dir/install-sh; then
1215 ac_install_sh="$ac_aux_dir/install-sh -c"
1217 elif test -f $ac_dir/install.sh; then
1219 ac_install_sh="$ac_aux_dir/install.sh -c"
1221 elif test -f $ac_dir/shtool; then
1223 ac_install_sh="$ac_aux_dir/shtool install -c"
1227 if test -z "$ac_aux_dir"; then
1228 { { echo "$as_me:1228: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1229 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1230 { (exit 1); exit 1; }; }
1232 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1233 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1234 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1236 # Make sure we can run config.sub.
1237 $ac_config_sub sun4 >/dev/null 2>&1 ||
1238 { { echo "$as_me:1238: error: cannot run $ac_config_sub" >&5
1239 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1240 { (exit 1); exit 1; }; }
1242 echo "$as_me:1242: checking build system type" >&5
1243 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1244 if test "${ac_cv_build+set}" = set; then
1245 echo $ECHO_N "(cached) $ECHO_C" >&6
1247 ac_cv_build_alias=$build_alias
1248 test -z "$ac_cv_build_alias" &&
1249 ac_cv_build_alias=`$ac_config_guess`
1250 test -z "$ac_cv_build_alias" &&
1251 { { echo "$as_me:1251: error: cannot guess build type; you must specify one" >&5
1252 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1253 { (exit 1); exit 1; }; }
1254 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1255 { { echo "$as_me:1255: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1256 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1257 { (exit 1); exit 1; }; }
1260 echo "$as_me:1260: result: $ac_cv_build" >&5
1261 echo "${ECHO_T}$ac_cv_build" >&6
1263 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1264 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1265 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1267 echo "$as_me:1267: checking host system type" >&5
1268 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1269 if test "${ac_cv_host+set}" = set; then
1270 echo $ECHO_N "(cached) $ECHO_C" >&6
1272 ac_cv_host_alias=$host_alias
1273 test -z "$ac_cv_host_alias" &&
1274 ac_cv_host_alias=$ac_cv_build_alias
1275 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1276 { { echo "$as_me:1276: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1277 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1278 { (exit 1); exit 1; }; }
1281 echo "$as_me:1281: result: $ac_cv_host" >&5
1282 echo "${ECHO_T}$ac_cv_host" >&6
1284 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1285 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1286 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1288 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1289 echo "$as_me:1289: checking target system type" >&5
1290 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1291 if test "${ac_cv_target+set}" = set; then
1292 echo $ECHO_N "(cached) $ECHO_C" >&6
1294 ac_cv_target_alias=$target_alias
1295 test "x$ac_cv_target_alias" = "x" &&
1296 ac_cv_target_alias=$ac_cv_host_alias
1297 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1298 { { echo "$as_me:1298: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1299 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1300 { (exit 1); exit 1; }; }
1303 echo "$as_me:1303: result: $ac_cv_target" >&5
1304 echo "${ECHO_T}$ac_cv_target" >&6
1305 target=$ac_cv_target
1306 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1307 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1308 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1310 # The aliases save the names the user supplied, while $host etc.
1311 # will get canonicalized.
1312 test -n "$target_alias" &&
1313 test "$program_prefix$program_suffix$program_transform_name" = \
1315 program_prefix=${target_alias}-
1316 system_name="$host_os"
1318 system_name="`(uname -s -r) 2>/dev/null`"
1319 if test -z "$system_name" ; then
1320 system_name="`(hostname) 2>/dev/null`"
1323 test -n "$system_name" && cat >>confdefs.h <<EOF
1324 #define SYSTEM_NAME "$system_name"
1327 if test "${cf_cv_system_name+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 cf_cv_system_name="$system_name"
1333 test -z "$system_name" && system_name="$cf_cv_system_name"
1334 test -n "$cf_cv_system_name" && echo "$as_me:1334: result: Configuring for $cf_cv_system_name" >&5
1335 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1337 if test ".$system_name" != ".$cf_cv_system_name" ; then
1338 echo "$as_me:1338: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1339 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1340 { { echo "$as_me:1340: error: \"Please remove config.cache and try again.\"" >&5
1341 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1342 { (exit 1); exit 1; }; }
1345 # Check whether --with-system-type or --without-system-type was given.
1346 if test "${with_system_type+set}" = set; then
1347 withval="$with_system_type"
1348 { echo "$as_me:1348: WARNING: overriding system type to $withval" >&5
1349 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1350 cf_cv_system_name=$withval
1353 ### Save the given $CFLAGS to allow user-override.
1354 cf_user_CFLAGS="$CFLAGS"
1356 ### Default install-location
1358 echo "$as_me:1358: checking for prefix" >&5
1359 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1360 if test "x$prefix" = "xNONE" ; then
1361 case "$cf_cv_system_name" in
1362 # non-vendor systems don't have a conflict
1363 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1366 *) prefix=$ac_default_prefix
1370 echo "$as_me:1370: result: $prefix" >&5
1371 echo "${ECHO_T}$prefix" >&6
1373 if test "x$prefix" = "xNONE" ; then
1374 echo "$as_me:1374: checking for default include-directory" >&5
1375 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1376 test -n "$verbose" && echo 1>&6
1379 $includedir/ncurses \
1381 $prefix/include/ncurses \
1382 /usr/local/include \
1383 /usr/local/include/ncurses \
1385 /usr/include/ncurses
1387 cf_dir=`eval echo $cf_symbol`
1388 if test -f $cf_dir/curses.h ; then
1389 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1390 includedir="$cf_symbol"
1391 test -n "$verbose" && echo $ac_n " found " 1>&6
1395 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1397 echo "$as_me:1397: result: $includedir" >&5
1398 echo "${ECHO_T}$includedir" >&6
1401 ### Checks for programs.
1403 ac_cpp='$CPP $CPPFLAGS'
1404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1407 ac_main_return=return
1408 if test -n "$ac_tool_prefix"; then
1409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1410 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1411 echo "$as_me:1411: checking for $ac_word" >&5
1412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413 if test "${ac_cv_prog_CC+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 if test -n "$CC"; then
1417 ac_cv_prog_CC="$CC" # Let the user override the test.
1419 ac_save_IFS=$IFS; IFS=$ac_path_separator
1421 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 $as_executable_p "$ac_dir/$ac_word" || continue
1425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1426 echo "$as_me:1426: found $ac_dir/$ac_word" >&5
1433 if test -n "$CC"; then
1434 echo "$as_me:1434: result: $CC" >&5
1435 echo "${ECHO_T}$CC" >&6
1437 echo "$as_me:1437: result: no" >&5
1438 echo "${ECHO_T}no" >&6
1442 if test -z "$ac_cv_prog_CC"; then
1444 # Extract the first word of "gcc", so it can be a program name with args.
1445 set dummy gcc; ac_word=$2
1446 echo "$as_me:1446: checking for $ac_word" >&5
1447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 if test -n "$ac_ct_CC"; then
1452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1454 ac_save_IFS=$IFS; IFS=$ac_path_separator
1456 for ac_dir in $ac_dummy; do
1458 test -z "$ac_dir" && ac_dir=.
1459 $as_executable_p "$ac_dir/$ac_word" || continue
1460 ac_cv_prog_ac_ct_CC="gcc"
1461 echo "$as_me:1461: found $ac_dir/$ac_word" >&5
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:1469: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1472 echo "$as_me:1472: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1481 if test -z "$CC"; then
1482 if test -n "$ac_tool_prefix"; then
1483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1484 set dummy ${ac_tool_prefix}cc; ac_word=$2
1485 echo "$as_me:1485: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 ac_save_IFS=$IFS; IFS=$ac_path_separator
1495 for ac_dir in $ac_dummy; do
1497 test -z "$ac_dir" && ac_dir=.
1498 $as_executable_p "$ac_dir/$ac_word" || continue
1499 ac_cv_prog_CC="${ac_tool_prefix}cc"
1500 echo "$as_me:1500: found $ac_dir/$ac_word" >&5
1507 if test -n "$CC"; then
1508 echo "$as_me:1508: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1511 echo "$as_me:1511: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1516 if test -z "$ac_cv_prog_CC"; then
1518 # Extract the first word of "cc", so it can be a program name with args.
1519 set dummy cc; ac_word=$2
1520 echo "$as_me:1520: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528 ac_save_IFS=$IFS; IFS=$ac_path_separator
1530 for ac_dir in $ac_dummy; do
1532 test -z "$ac_dir" && ac_dir=.
1533 $as_executable_p "$ac_dir/$ac_word" || continue
1534 ac_cv_prog_ac_ct_CC="cc"
1535 echo "$as_me:1535: found $ac_dir/$ac_word" >&5
1541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1542 if test -n "$ac_ct_CC"; then
1543 echo "$as_me:1543: result: $ac_ct_CC" >&5
1544 echo "${ECHO_T}$ac_ct_CC" >&6
1546 echo "$as_me:1546: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1556 if test -z "$CC"; then
1557 # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:1559: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1568 ac_save_IFS=$IFS; IFS=$ac_path_separator
1570 for ac_dir in $ac_dummy; do
1572 test -z "$ac_dir" && ac_dir=.
1573 $as_executable_p "$ac_dir/$ac_word" || continue
1574 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1575 ac_prog_rejected=yes
1579 echo "$as_me:1579: found $ac_dir/$ac_word" >&5
1583 if test $ac_prog_rejected = yes; then
1584 # We found a bogon in the path, so make sure we never use it.
1585 set dummy $ac_cv_prog_CC
1587 if test $# != 0; then
1588 # We chose a different compiler from the bogus one.
1589 # However, it has the same basename, so the bogon will be chosen
1590 # first if we set CC to just the basename; use the full file name.
1592 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1600 if test -n "$CC"; then
1601 echo "$as_me:1601: result: $CC" >&5
1602 echo "${ECHO_T}$CC" >&6
1604 echo "$as_me:1604: result: no" >&5
1605 echo "${ECHO_T}no" >&6
1609 if test -z "$CC"; then
1610 if test -n "$ac_tool_prefix"; then
1613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1615 echo "$as_me:1615: checking for $ac_word" >&5
1616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617 if test "${ac_cv_prog_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 if test -n "$CC"; then
1621 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 ac_save_IFS=$IFS; IFS=$ac_path_separator
1625 for ac_dir in $ac_dummy; do
1627 test -z "$ac_dir" && ac_dir=.
1628 $as_executable_p "$ac_dir/$ac_word" || continue
1629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1630 echo "$as_me:1630: found $ac_dir/$ac_word" >&5
1637 if test -n "$CC"; then
1638 echo "$as_me:1638: result: $CC" >&5
1639 echo "${ECHO_T}$CC" >&6
1641 echo "$as_me:1641: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1645 test -n "$CC" && break
1648 if test -z "$CC"; then
1652 # Extract the first word of "$ac_prog", so it can be a program name with args.
1653 set dummy $ac_prog; ac_word=$2
1654 echo "$as_me:1654: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662 ac_save_IFS=$IFS; IFS=$ac_path_separator
1664 for ac_dir in $ac_dummy; do
1666 test -z "$ac_dir" && ac_dir=.
1667 $as_executable_p "$ac_dir/$ac_word" || continue
1668 ac_cv_prog_ac_ct_CC="$ac_prog"
1669 echo "$as_me:1669: found $ac_dir/$ac_word" >&5
1675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677 echo "$as_me:1677: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1680 echo "$as_me:1680: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 test -n "$ac_ct_CC" && break
1692 test -z "$CC" && { { echo "$as_me:1692: error: no acceptable cc found in \$PATH" >&5
1693 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1694 { (exit 1); exit 1; }; }
1696 # Provide some information about the compiler.
1697 echo "$as_me:1697:" \
1698 "checking for C compiler version" >&5
1699 ac_compiler=`set X $ac_compile; echo $2`
1700 { (eval echo "$as_me:1700: \"$ac_compiler --version </dev/null >&5\"") >&5
1701 (eval $ac_compiler --version </dev/null >&5) 2>&5
1703 echo "$as_me:1703: \$? = $ac_status" >&5
1704 (exit $ac_status); }
1705 { (eval echo "$as_me:1705: \"$ac_compiler -v </dev/null >&5\"") >&5
1706 (eval $ac_compiler -v </dev/null >&5) 2>&5
1708 echo "$as_me:1708: \$? = $ac_status" >&5
1709 (exit $ac_status); }
1710 { (eval echo "$as_me:1710: \"$ac_compiler -V </dev/null >&5\"") >&5
1711 (eval $ac_compiler -V </dev/null >&5) 2>&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1716 cat >conftest.$ac_ext <<_ACEOF
1717 #line 1717 "configure"
1718 #include "confdefs.h"
1728 ac_clean_files_save=$ac_clean_files
1729 ac_clean_files="$ac_clean_files a.out a.exe"
1730 # Try to create an executable without -o first, disregard a.out.
1731 # It will help us diagnose broken compilers, and finding out an intuition
1733 echo "$as_me:1733: checking for C compiler default output" >&5
1734 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1735 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1736 if { (eval echo "$as_me:1736: \"$ac_link_default\"") >&5
1737 (eval $ac_link_default) 2>&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 # Find the output, starting from the most likely. This scheme is
1742 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1745 ls a.out conftest 2>/dev/null;
1746 ls a.* conftest.* 2>/dev/null`; do
1748 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1749 a.out ) # We found the default executable, but exeext='' is most
1752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1753 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1760 echo "$as_me: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1762 { { echo "$as_me:1762: error: C compiler cannot create executables" >&5
1763 echo "$as_me: error: C compiler cannot create executables" >&2;}
1764 { (exit 77); exit 77; }; }
1767 ac_exeext=$ac_cv_exeext
1768 echo "$as_me:1768: result: $ac_file" >&5
1769 echo "${ECHO_T}$ac_file" >&6
1771 # Check the compiler produces executables we can run. If not, either
1772 # the compiler is broken, or we cross compile.
1773 echo "$as_me:1773: checking whether the C compiler works" >&5
1774 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1775 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1776 # If not cross compiling, check that we can run a simple program.
1777 if test "$cross_compiling" != yes; then
1778 if { ac_try='./$ac_file'
1779 { (eval echo "$as_me:1779: \"$ac_try\"") >&5
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); }; }; then
1786 if test "$cross_compiling" = maybe; then
1789 { { echo "$as_me:1789: error: cannot run C compiled programs.
1790 If you meant to cross compile, use \`--host'." >&5
1791 echo "$as_me: error: cannot run C compiled programs.
1792 If you meant to cross compile, use \`--host'." >&2;}
1793 { (exit 1); exit 1; }; }
1797 echo "$as_me:1797: result: yes" >&5
1798 echo "${ECHO_T}yes" >&6
1800 rm -f a.out a.exe conftest$ac_cv_exeext
1801 ac_clean_files=$ac_clean_files_save
1802 # Check the compiler produces executables we can run. If not, either
1803 # the compiler is broken, or we cross compile.
1804 echo "$as_me:1804: checking whether we are cross compiling" >&5
1805 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1806 echo "$as_me:1806: result: $cross_compiling" >&5
1807 echo "${ECHO_T}$cross_compiling" >&6
1809 echo "$as_me:1809: checking for executable suffix" >&5
1810 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1811 if { (eval echo "$as_me:1811: \"$ac_link\"") >&5
1812 (eval $ac_link) 2>&5
1814 echo "$as_me:1814: \$? = $ac_status" >&5
1815 (exit $ac_status); }; then
1816 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1817 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1818 # work properly (i.e., refer to `conftest.exe'), while it won't with
1820 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1822 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1823 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1830 { { echo "$as_me:1830: error: cannot compute EXEEXT: cannot compile and link" >&5
1831 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1832 { (exit 1); exit 1; }; }
1835 rm -f conftest$ac_cv_exeext
1836 echo "$as_me:1836: result: $ac_cv_exeext" >&5
1837 echo "${ECHO_T}$ac_cv_exeext" >&6
1839 rm -f conftest.$ac_ext
1840 EXEEXT=$ac_cv_exeext
1842 echo "$as_me:1842: checking for object suffix" >&5
1843 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1844 if test "${ac_cv_objext+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line 1848 "configure"
1849 #include "confdefs.h"
1859 rm -f conftest.o conftest.obj
1860 if { (eval echo "$as_me:1860: \"$ac_compile\"") >&5
1861 (eval $ac_compile) 2>&5
1863 echo "$as_me:1863: \$? = $ac_status" >&5
1864 (exit $ac_status); }; then
1865 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1873 echo "$as_me: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1875 { { echo "$as_me:1875: error: cannot compute OBJEXT: cannot compile" >&5
1876 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1877 { (exit 1); exit 1; }; }
1880 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1882 echo "$as_me:1882: result: $ac_cv_objext" >&5
1883 echo "${ECHO_T}$ac_cv_objext" >&6
1884 OBJEXT=$ac_cv_objext
1886 echo "$as_me:1886: checking whether we are using the GNU C compiler" >&5
1887 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1888 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 cat >conftest.$ac_ext <<_ACEOF
1892 #line 1892 "configure"
1893 #include "confdefs.h"
1906 rm -f conftest.$ac_objext
1907 if { (eval echo "$as_me:1907: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>&5
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); } &&
1912 { ac_try='test -s conftest.$ac_objext'
1913 { (eval echo "$as_me:1913: \"$ac_try\"") >&5
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit $ac_status); }; }; then
1920 echo "$as_me: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1924 rm -f conftest.$ac_objext conftest.$ac_ext
1925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1928 echo "$as_me:1928: result: $ac_cv_c_compiler_gnu" >&5
1929 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1930 GCC=`test $ac_compiler_gnu = yes && echo yes`
1931 ac_test_CFLAGS=${CFLAGS+set}
1932 ac_save_CFLAGS=$CFLAGS
1934 echo "$as_me:1934: checking whether $CC accepts -g" >&5
1935 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1936 if test "${ac_cv_prog_cc_g+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 cat >conftest.$ac_ext <<_ACEOF
1940 #line 1940 "configure"
1941 #include "confdefs.h"
1951 rm -f conftest.$ac_objext
1952 if { (eval echo "$as_me:1952: \"$ac_compile\"") >&5
1953 (eval $ac_compile) 2>&5
1955 echo "$as_me:1955: \$? = $ac_status" >&5
1956 (exit $ac_status); } &&
1957 { ac_try='test -s conftest.$ac_objext'
1958 { (eval echo "$as_me:1958: \"$ac_try\"") >&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit $ac_status); }; }; then
1965 echo "$as_me: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1969 rm -f conftest.$ac_objext conftest.$ac_ext
1971 echo "$as_me:1971: result: $ac_cv_prog_cc_g" >&5
1972 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1973 if test "$ac_test_CFLAGS" = set; then
1974 CFLAGS=$ac_save_CFLAGS
1975 elif test $ac_cv_prog_cc_g = yes; then
1976 if test "$GCC" = yes; then
1982 if test "$GCC" = yes; then
1988 # Some people use a C++ compiler to compile C. Since we use `exit',
1989 # in C++ we need to declare it. In case someone uses the same compiler
1990 # for both compiling C and C++ we need to have the C++ compiler decide
1991 # the declaration of exit, since it's the most demanding environment.
1992 cat >conftest.$ac_ext <<_ACEOF
1997 rm -f conftest.$ac_objext
1998 if { (eval echo "$as_me:1998: \"$ac_compile\"") >&5
1999 (eval $ac_compile) 2>&5
2001 echo "$as_me:2001: \$? = $ac_status" >&5
2002 (exit $ac_status); } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:2004: \"$ac_try\"") >&5
2007 echo "$as_me:2007: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 for ac_declaration in \
2011 '#include <stdlib.h>' \
2012 'extern "C" void std::exit (int) throw (); using std::exit;' \
2013 'extern "C" void std::exit (int); using std::exit;' \
2014 'extern "C" void exit (int) throw ();' \
2015 'extern "C" void exit (int);' \
2018 cat >conftest.$ac_ext <<_ACEOF
2019 #line 2019 "configure"
2020 #include "confdefs.h"
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:2032: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>&5
2035 echo "$as_me:2035: \$? = $ac_status" >&5
2036 (exit $ac_status); } &&
2037 { ac_try='test -s conftest.$ac_objext'
2038 { (eval echo "$as_me:2038: \"$ac_try\"") >&5
2041 echo "$as_me:2041: \$? = $ac_status" >&5
2042 (exit $ac_status); }; }; then
2045 echo "$as_me: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 cat >conftest.$ac_ext <<_ACEOF
2051 #line 2051 "configure"
2052 #include "confdefs.h"
2062 rm -f conftest.$ac_objext
2063 if { (eval echo "$as_me:2063: \"$ac_compile\"") >&5
2064 (eval $ac_compile) 2>&5
2066 echo "$as_me:2066: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:2069: \"$ac_try\"") >&5
2072 echo "$as_me:2072: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2076 echo "$as_me: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2079 rm -f conftest.$ac_objext conftest.$ac_ext
2082 if test -n "$ac_declaration"; then
2083 echo '#ifdef __cplusplus' >>confdefs.h
2084 echo $ac_declaration >>confdefs.h
2085 echo '#endif' >>confdefs.h
2089 echo "$as_me: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 rm -f conftest.$ac_objext conftest.$ac_ext
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098 ac_main_return=return
2101 if test "$GCC" = yes ; then
2102 echo "$as_me:2102: checking version of $CC" >&5
2103 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2104 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2105 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2106 echo "$as_me:2106: result: $GCC_VERSION" >&5
2107 echo "${ECHO_T}$GCC_VERSION" >&6
2111 ac_cpp='$CPP $CPPFLAGS'
2112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2115 ac_main_return=return
2116 echo "$as_me:2116: checking how to run the C preprocessor" >&5
2117 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2118 # On Suns, sometimes $CPP names a directory.
2119 if test -n "$CPP" && test -d "$CPP"; then
2122 if test -z "$CPP"; then
2123 if test "${ac_cv_prog_CPP+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 # Double quotes because CPP needs to be expanded
2127 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2130 for ac_c_preproc_warn_flag in '' yes
2132 # Use a header file that comes with gcc, so configuring glibc
2133 # with a fresh cross-compiler works.
2134 # On the NeXT, cc -E runs the code through the compiler's parser,
2135 # not just through cpp. "Syntax error" is here to catch this case.
2136 cat >conftest.$ac_ext <<_ACEOF
2137 #line 2137 "configure"
2138 #include "confdefs.h"
2142 if { (eval echo "$as_me:2142: \"$ac_cpp conftest.$ac_ext\"") >&5
2143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2145 egrep -v '^ *\+' conftest.er1 >conftest.err
2147 cat conftest.err >&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } >/dev/null; then
2150 if test -s conftest.err; then
2151 ac_cpp_err=$ac_c_preproc_warn_flag
2158 if test -z "$ac_cpp_err"; then
2161 echo "$as_me: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 # Broken: fails on valid input.
2166 rm -f conftest.err conftest.$ac_ext
2168 # OK, works on sane cases. Now check whether non-existent headers
2169 # can be detected and how.
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #line 2171 "configure"
2172 #include "confdefs.h"
2173 #include <ac_nonexistent.h>
2175 if { (eval echo "$as_me:2175: \"$ac_cpp conftest.$ac_ext\"") >&5
2176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2178 egrep -v '^ *\+' conftest.er1 >conftest.err
2180 cat conftest.err >&5
2181 echo "$as_me:2181: \$? = $ac_status" >&5
2182 (exit $ac_status); } >/dev/null; then
2183 if test -s conftest.err; then
2184 ac_cpp_err=$ac_c_preproc_warn_flag
2191 if test -z "$ac_cpp_err"; then
2192 # Broken: success on invalid input.
2195 echo "$as_me: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 # Passes both tests.
2201 rm -f conftest.err conftest.$ac_ext
2204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2205 rm -f conftest.err conftest.$ac_ext
2206 if $ac_preproc_ok; then
2218 echo "$as_me:2218: result: $CPP" >&5
2219 echo "${ECHO_T}$CPP" >&6
2221 for ac_c_preproc_warn_flag in '' yes
2223 # Use a header file that comes with gcc, so configuring glibc
2224 # with a fresh cross-compiler works.
2225 # On the NeXT, cc -E runs the code through the compiler's parser,
2226 # not just through cpp. "Syntax error" is here to catch this case.
2227 cat >conftest.$ac_ext <<_ACEOF
2228 #line 2228 "configure"
2229 #include "confdefs.h"
2233 if { (eval echo "$as_me:2233: \"$ac_cpp conftest.$ac_ext\"") >&5
2234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2236 egrep -v '^ *\+' conftest.er1 >conftest.err
2238 cat conftest.err >&5
2239 echo "$as_me:2239: \$? = $ac_status" >&5
2240 (exit $ac_status); } >/dev/null; then
2241 if test -s conftest.err; then
2242 ac_cpp_err=$ac_c_preproc_warn_flag
2249 if test -z "$ac_cpp_err"; then
2252 echo "$as_me: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2254 # Broken: fails on valid input.
2257 rm -f conftest.err conftest.$ac_ext
2259 # OK, works on sane cases. Now check whether non-existent headers
2260 # can be detected and how.
2261 cat >conftest.$ac_ext <<_ACEOF
2262 #line 2262 "configure"
2263 #include "confdefs.h"
2264 #include <ac_nonexistent.h>
2266 if { (eval echo "$as_me:2266: \"$ac_cpp conftest.$ac_ext\"") >&5
2267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2269 egrep -v '^ *\+' conftest.er1 >conftest.err
2271 cat conftest.err >&5
2272 echo "$as_me:2272: \$? = $ac_status" >&5
2273 (exit $ac_status); } >/dev/null; then
2274 if test -s conftest.err; then
2275 ac_cpp_err=$ac_c_preproc_warn_flag
2282 if test -z "$ac_cpp_err"; then
2283 # Broken: success on invalid input.
2286 echo "$as_me: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2288 # Passes both tests.
2292 rm -f conftest.err conftest.$ac_ext
2295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2296 rm -f conftest.err conftest.$ac_ext
2297 if $ac_preproc_ok; then
2300 { { echo "$as_me:2300: error: C preprocessor \"$CPP\" fails sanity check" >&5
2301 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2302 { (exit 1); exit 1; }; }
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 ac_main_return=return
2312 if test $ac_cv_c_compiler_gnu = yes; then
2313 echo "$as_me:2313: checking whether $CC needs -traditional" >&5
2314 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2315 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 ac_pattern="Autoconf.*'x'"
2319 cat >conftest.$ac_ext <<_ACEOF
2320 #line 2320 "configure"
2321 #include "confdefs.h"
2323 int Autoconf = TIOCGETP;
2325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2326 egrep "$ac_pattern" >/dev/null 2>&1; then
2327 ac_cv_prog_gcc_traditional=yes
2329 ac_cv_prog_gcc_traditional=no
2333 if test $ac_cv_prog_gcc_traditional = no; then
2334 cat >conftest.$ac_ext <<_ACEOF
2335 #line 2335 "configure"
2336 #include "confdefs.h"
2338 int Autoconf = TCGETA;
2340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2341 egrep "$ac_pattern" >/dev/null 2>&1; then
2342 ac_cv_prog_gcc_traditional=yes
2348 echo "$as_me:2348: result: $ac_cv_prog_gcc_traditional" >&5
2349 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2350 if test $ac_cv_prog_gcc_traditional = yes; then
2351 CC="$CC -traditional"
2355 echo "$as_me:2355: checking whether $CC understands -c and -o together" >&5
2356 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2357 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat > conftest.$ac_ext <<CF_EOF
2365 ${cf_cv_main_return:-return}(0);
2368 # We do the test twice because some compilers refuse to overwrite an
2369 # existing .o file with -o, though they will create one.
2370 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2371 if { (eval echo "$as_me:2371: \"$ac_try\"") >&5
2374 echo "$as_me:2374: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 test -f conftest2.$ac_objext && { (eval echo "$as_me:2376: \"$ac_try\"") >&5
2379 echo "$as_me:2379: \$? = $ac_status" >&5
2380 (exit $ac_status); };
2382 eval cf_cv_prog_CC_c_o=yes
2384 eval cf_cv_prog_CC_c_o=no
2389 if test $cf_cv_prog_CC_c_o = yes; then
2390 echo "$as_me:2390: result: yes" >&5
2391 echo "${ECHO_T}yes" >&6
2393 echo "$as_me:2393: result: no" >&5
2394 echo "${ECHO_T}no" >&6
2397 echo "$as_me:2397: checking for POSIXized ISC" >&5
2398 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2399 if test -d /etc/conf/kconfig.d &&
2400 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2402 echo "$as_me:2402: result: yes" >&5
2403 echo "${ECHO_T}yes" >&6
2404 ISC=yes # If later tests want to check for ISC.
2406 cat >>confdefs.h <<\EOF
2407 #define _POSIX_SOURCE 1
2410 if test "$GCC" = yes; then
2416 echo "$as_me:2416: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2421 echo "$as_me:2421: checking for ${CC-cc} option to accept ANSI C" >&5
2422 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2423 if test "${cf_cv_ansi_cc+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 cf_save_CFLAGS="$CFLAGS"
2429 cf_save_CPPFLAGS="$CPPFLAGS"
2430 # Don't try gcc -ansi; that turns off useful extensions and
2431 # breaks some systems' header files.
2432 # AIX -qlanglvl=ansi
2433 # Ultrix and OSF/1 -std1
2434 # HP-UX -Aa -D_HPUX_SOURCE
2436 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2437 for cf_arg in "-DCC_HAS_PROTOS" \
2442 "-Aa -D_HPUX_SOURCE" \
2449 cf_new_extra_cppflags=
2451 for cf_add_cflags in $cf_arg
2453 case $cf_fix_cppflags in
2455 case $cf_add_cflags in #(vi
2456 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2457 case $cf_add_cflags in
2459 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2461 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2462 && test -z "${cf_tst_cflags}" \
2463 && cf_fix_cppflags=yes
2465 if test $cf_fix_cppflags = yes ; then
2466 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2468 elif test "${cf_tst_cflags}" = "\"'" ; then
2469 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2475 *$cf_add_cflags) #(vi
2478 case $cf_add_cflags in #(vi
2480 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2482 CPPFLAGS=`echo "$CPPFLAGS" | \
2483 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2484 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2488 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2493 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2498 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2500 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2502 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2503 && test -z "${cf_tst_cflags}" \
2504 && cf_fix_cppflags=no
2509 if test -n "$cf_new_cflags" ; then
2511 CFLAGS="$CFLAGS $cf_new_cflags"
2514 if test -n "$cf_new_cppflags" ; then
2516 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2519 if test -n "$cf_new_extra_cppflags" ; then
2521 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line 2525 "configure"
2526 #include "confdefs.h"
2528 #ifndef CC_HAS_PROTOS
2529 #if !defined(__STDC__) || (__STDC__ != 1)
2538 int test (int i, double x);
2539 struct s1 {int (*f) (int a);};
2540 struct s2 {int (*f) (double a);};
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:2546: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>&5
2549 echo "$as_me:2549: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:2552: \"$ac_try\"") >&5
2555 echo "$as_me:2555: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 cf_cv_ansi_cc="$cf_arg"; break
2559 echo "$as_me: failed program was:" >&5
2560 cat conftest.$ac_ext >&5
2562 rm -f conftest.$ac_objext conftest.$ac_ext
2564 CFLAGS="$cf_save_CFLAGS"
2565 CPPFLAGS="$cf_save_CPPFLAGS"
2568 echo "$as_me:2568: result: $cf_cv_ansi_cc" >&5
2569 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2571 if test "$cf_cv_ansi_cc" != "no"; then
2572 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2577 cf_new_extra_cppflags=
2579 for cf_add_cflags in $cf_cv_ansi_cc
2581 case $cf_fix_cppflags in
2583 case $cf_add_cflags in #(vi
2584 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2585 case $cf_add_cflags in
2587 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2589 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2590 && test -z "${cf_tst_cflags}" \
2591 && cf_fix_cppflags=yes
2593 if test $cf_fix_cppflags = yes ; then
2594 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2596 elif test "${cf_tst_cflags}" = "\"'" ; then
2597 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2603 *$cf_add_cflags) #(vi
2606 case $cf_add_cflags in #(vi
2608 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2610 CPPFLAGS=`echo "$CPPFLAGS" | \
2611 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2612 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2616 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2621 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2626 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2628 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2630 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2631 && test -z "${cf_tst_cflags}" \
2632 && cf_fix_cppflags=no
2637 if test -n "$cf_new_cflags" ; then
2639 CFLAGS="$CFLAGS $cf_new_cflags"
2642 if test -n "$cf_new_cppflags" ; then
2644 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2647 if test -n "$cf_new_extra_cppflags" ; then
2649 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2653 cat >>confdefs.h <<\EOF
2654 #define CC_HAS_PROTOS 1
2660 if test "$cf_cv_ansi_cc" = "no"; then
2661 { { echo "$as_me:2661: error: Your compiler does not appear to recognize prototypes.
2662 You have the following choices:
2663 a. adjust your compiler options
2664 b. get an up-to-date compiler
2665 c. use a wrapper such as unproto" >&5
2666 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2667 You have the following choices:
2668 a. adjust your compiler options
2669 b. get an up-to-date compiler
2670 c. use a wrapper such as unproto" >&2;}
2671 { (exit 1); exit 1; }; }
2674 case $cf_cv_system_name in
2676 CFLAGS="$CFLAGS -Zmt"
2677 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2678 CXXFLAGS="$CXXFLAGS -Zmt"
2679 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2680 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2687 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2688 #define PROG_EXT "$PROG_EXT"
2691 if test "$cross_compiling" = yes ; then
2694 case "$cf_cv_system_name" in #(vi
2695 dragonfly*|freebsd*) #(vi
2696 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2698 *) LDPATH=$PATH:/sbin:/usr/sbin
2699 # Extract the first word of "ldconfig", so it can be a program name with args.
2700 set dummy ldconfig; ac_word=$2
2701 echo "$as_me:2701: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2711 ac_save_IFS=$IFS; IFS=$ac_path_separator
2713 for ac_dir in $ac_dummy; do
2715 test -z "$ac_dir" && ac_dir=.
2716 if $as_executable_p "$ac_dir/$ac_word"; then
2717 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2718 echo "$as_me:2718: found $ac_dir/$ac_word" >&5
2726 LDCONFIG=$ac_cv_path_LDCONFIG
2728 if test -n "$LDCONFIG"; then
2729 echo "$as_me:2729: result: $LDCONFIG" >&5
2730 echo "${ECHO_T}$LDCONFIG" >&6
2732 echo "$as_me:2732: result: no" >&5
2733 echo "${ECHO_T}no" >&6
2740 echo "$as_me:2740: checking if you want to ensure bool is consistent with C++" >&5
2741 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2743 # Check whether --with-cxx or --without-cxx was given.
2744 if test "${with_cxx+set}" = set; then
2746 cf_with_cxx=$withval
2750 echo "$as_me:2750: result: $cf_with_cxx" >&5
2751 echo "${ECHO_T}$cf_with_cxx" >&6
2752 if test "X$cf_with_cxx" = Xno ; then
2756 # with autoconf 2.13, we can change the error to a warning:
2758 ac_cpp='$CXXCPP $CPPFLAGS'
2759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2762 ac_main_return=return
2763 if test -n "$ac_tool_prefix"; then
2764 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 echo "$as_me:2768: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2770 if test "${ac_cv_prog_CXX+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$CXX"; then
2774 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2776 ac_save_IFS=$IFS; IFS=$ac_path_separator
2778 for ac_dir in $ac_dummy; do
2780 test -z "$ac_dir" && ac_dir=.
2781 $as_executable_p "$ac_dir/$ac_word" || continue
2782 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2783 echo "$as_me:2783: found $ac_dir/$ac_word" >&5
2790 if test -n "$CXX"; then
2791 echo "$as_me:2791: result: $CXX" >&5
2792 echo "${ECHO_T}$CXX" >&6
2794 echo "$as_me:2794: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2798 test -n "$CXX" && break
2801 if test -z "$CXX"; then
2803 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 echo "$as_me:2807: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 if test -n "$ac_ct_CXX"; then
2813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2815 ac_save_IFS=$IFS; IFS=$ac_path_separator
2817 for ac_dir in $ac_dummy; do
2819 test -z "$ac_dir" && ac_dir=.
2820 $as_executable_p "$ac_dir/$ac_word" || continue
2821 ac_cv_prog_ac_ct_CXX="$ac_prog"
2822 echo "$as_me:2822: found $ac_dir/$ac_word" >&5
2828 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2829 if test -n "$ac_ct_CXX"; then
2830 echo "$as_me:2830: result: $ac_ct_CXX" >&5
2831 echo "${ECHO_T}$ac_ct_CXX" >&6
2833 echo "$as_me:2833: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2837 test -n "$ac_ct_CXX" && break
2839 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2844 # Provide some information about the compiler.
2845 echo "$as_me:2845:" \
2846 "checking for C++ compiler version" >&5
2847 ac_compiler=`set X $ac_compile; echo $2`
2848 { (eval echo "$as_me:2848: \"$ac_compiler --version </dev/null >&5\"") >&5
2849 (eval $ac_compiler --version </dev/null >&5) 2>&5
2851 echo "$as_me:2851: \$? = $ac_status" >&5
2852 (exit $ac_status); }
2853 { (eval echo "$as_me:2853: \"$ac_compiler -v </dev/null >&5\"") >&5
2854 (eval $ac_compiler -v </dev/null >&5) 2>&5
2856 echo "$as_me:2856: \$? = $ac_status" >&5
2857 (exit $ac_status); }
2858 { (eval echo "$as_me:2858: \"$ac_compiler -V </dev/null >&5\"") >&5
2859 (eval $ac_compiler -V </dev/null >&5) 2>&5
2861 echo "$as_me:2861: \$? = $ac_status" >&5
2862 (exit $ac_status); }
2864 echo "$as_me:2864: checking whether we are using the GNU C++ compiler" >&5
2865 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2866 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line 2870 "configure"
2871 #include "confdefs.h"
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:2885: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>&5
2888 echo "$as_me:2888: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:2891: \"$ac_try\"") >&5
2894 echo "$as_me:2894: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2898 echo "$as_me: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2902 rm -f conftest.$ac_objext conftest.$ac_ext
2903 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2906 echo "$as_me:2906: result: $ac_cv_cxx_compiler_gnu" >&5
2907 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2908 GXX=`test $ac_compiler_gnu = yes && echo yes`
2909 ac_test_CXXFLAGS=${CXXFLAGS+set}
2910 ac_save_CXXFLAGS=$CXXFLAGS
2912 echo "$as_me:2912: checking whether $CXX accepts -g" >&5
2913 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2914 if test "${ac_cv_prog_cxx_g+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 cat >conftest.$ac_ext <<_ACEOF
2918 #line 2918 "configure"
2919 #include "confdefs.h"
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:2930: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>&5
2933 echo "$as_me:2933: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:2936: \"$ac_try\"") >&5
2939 echo "$as_me:2939: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 ac_cv_prog_cxx_g=yes
2943 echo "$as_me: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2947 rm -f conftest.$ac_objext conftest.$ac_ext
2949 echo "$as_me:2949: result: $ac_cv_prog_cxx_g" >&5
2950 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2951 if test "$ac_test_CXXFLAGS" = set; then
2952 CXXFLAGS=$ac_save_CXXFLAGS
2953 elif test $ac_cv_prog_cxx_g = yes; then
2954 if test "$GXX" = yes; then
2960 if test "$GXX" = yes; then
2966 for ac_declaration in \
2968 '#include <stdlib.h>' \
2969 'extern "C" void std::exit (int) throw (); using std::exit;' \
2970 'extern "C" void std::exit (int); using std::exit;' \
2971 'extern "C" void exit (int) throw ();' \
2972 'extern "C" void exit (int);' \
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line 2976 "configure"
2977 #include "confdefs.h"
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3006 rm -f conftest.$ac_objext conftest.$ac_ext
3007 cat >conftest.$ac_ext <<_ACEOF
3008 #line 3008 "configure"
3009 #include "confdefs.h"
3019 rm -f conftest.$ac_objext
3020 if { (eval echo "$as_me:3020: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>&5
3023 echo "$as_me:3023: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -s conftest.$ac_objext'
3026 { (eval echo "$as_me:3026: \"$ac_try\"") >&5
3029 echo "$as_me:3029: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3033 echo "$as_me: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3036 rm -f conftest.$ac_objext conftest.$ac_ext
3039 if test -n "$ac_declaration"; then
3040 echo '#ifdef __cplusplus' >>confdefs.h
3041 echo $ac_declaration >>confdefs.h
3042 echo '#endif' >>confdefs.h
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 ac_main_return=return
3052 # autoconf 2.5x removed the error - by hardcoding it to g++.
3053 if test "$CXX" = "g++" ; then
3054 # Extract the first word of "g++", so it can be a program name with args.
3055 set dummy g++; ac_word=$2
3056 echo "$as_me:3056: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058 if test "${ac_cv_path_CXX+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3066 ac_save_IFS=$IFS; IFS=$ac_path_separator
3068 for ac_dir in $ac_dummy; do
3070 test -z "$ac_dir" && ac_dir=.
3071 if $as_executable_p "$ac_dir/$ac_word"; then
3072 ac_cv_path_CXX="$ac_dir/$ac_word"
3073 echo "$as_me:3073: found $ac_dir/$ac_word" >&5
3083 if test -n "$CXX"; then
3084 echo "$as_me:3084: result: $CXX" >&5
3085 echo "${ECHO_T}$CXX" >&6
3087 echo "$as_me:3087: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3092 if test "$CXX" = "g++" ; then
3093 { echo "$as_me:3093: WARNING: ignoring hardcoded g++" >&5
3094 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3095 cf_with_cxx=no; CXX=""; GXX="";
3100 if test "$GXX" = yes; then
3101 echo "$as_me:3101: checking version of g++" >&5
3102 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3103 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3104 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3105 echo "$as_me:3105: result: $GXX_VERSION" >&5
3106 echo "${ECHO_T}$GXX_VERSION" >&6
3109 case $GXX_VERSION in
3111 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3113 { echo "$as_me:3113: WARNING: templates do not work" >&5
3114 echo "$as_me: WARNING: templates do not work" >&2;}
3118 echo "$as_me:3118: checking if you want to build C++ binding and demo" >&5
3119 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3121 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3122 if test "${with_cxx_binding+set}" = set; then
3123 withval="$with_cxx_binding"
3124 cf_with_cxx_binding=$withval
3126 cf_with_cxx_binding=$cf_with_cxx
3128 echo "$as_me:3128: result: $cf_with_cxx_binding" >&5
3129 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3131 echo "$as_me:3131: checking if you want to build with Ada95" >&5
3132 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3134 # Check whether --with-ada or --without-ada was given.
3135 if test "${with_ada+set}" = set; then
3137 cf_with_ada=$withval
3141 echo "$as_me:3141: result: $cf_with_ada" >&5
3142 echo "${ECHO_T}$cf_with_ada" >&6
3144 echo "$as_me:3144: checking if you want to install manpages" >&5
3145 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3147 # Check whether --with-manpages or --without-manpages was given.
3148 if test "${with_manpages+set}" = set; then
3149 withval="$with_manpages"
3150 cf_with_manpages=$withval
3152 cf_with_manpages=yes
3154 echo "$as_me:3154: result: $cf_with_manpages" >&5
3155 echo "${ECHO_T}$cf_with_manpages" >&6
3157 echo "$as_me:3157: checking if you want to build programs such as tic" >&5
3158 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3160 # Check whether --with-progs or --without-progs was given.
3161 if test "${with_progs+set}" = set; then
3162 withval="$with_progs"
3163 cf_with_progs=$withval
3167 echo "$as_me:3167: result: $cf_with_progs" >&5
3168 echo "${ECHO_T}$cf_with_progs" >&6
3170 echo "$as_me:3170: checking if you wish to install curses.h" >&5
3171 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3173 # Check whether --with-curses-h or --without-curses-h was given.
3174 if test "${with_curses_h+set}" = set; then
3175 withval="$with_curses_h"
3176 with_curses_h=$withval
3180 echo "$as_me:3180: result: $with_curses_h" >&5
3181 echo "${ECHO_T}$with_curses_h" >&6
3183 modules_to_build="ncurses"
3184 if test "X$cf_with_progs" != Xno ; then
3185 modules_to_build="$modules_to_build progs tack"
3187 modules_to_build="$modules_to_build panel menu form"
3189 test "$program_prefix" != NONE &&
3190 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3191 # Use a double $ so make ignores it.
3192 test "$program_suffix" != NONE &&
3193 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3194 # Double any \ or $. echo might interpret backslashes.
3195 # By default was `s,x,x', remove it if useless.
3196 cat <<\_ACEOF >conftest.sed
3197 s/[\\$]/&&/g;s/;s,x,x,$//
3199 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3202 for ac_prog in mawk gawk nawk awk
3204 # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 echo "$as_me:3206: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_AWK+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 if test -n "$AWK"; then
3212 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3214 ac_save_IFS=$IFS; IFS=$ac_path_separator
3216 for ac_dir in $ac_dummy; do
3218 test -z "$ac_dir" && ac_dir=.
3219 $as_executable_p "$ac_dir/$ac_word" || continue
3220 ac_cv_prog_AWK="$ac_prog"
3221 echo "$as_me:3221: found $ac_dir/$ac_word" >&5
3228 if test -n "$AWK"; then
3229 echo "$as_me:3229: result: $AWK" >&5
3230 echo "${ECHO_T}$AWK" >&6
3232 echo "$as_me:3232: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 test -n "$AWK" && break
3239 test -z "$AWK" && { { echo "$as_me:3239: error: No awk program found" >&5
3240 echo "$as_me: error: No awk program found" >&2;}
3241 { (exit 1); exit 1; }; }
3243 echo "$as_me:3243: checking for egrep" >&5
3244 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3245 if test "${ac_cv_prog_egrep+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3249 then ac_cv_prog_egrep='grep -E'
3250 else ac_cv_prog_egrep='egrep'
3253 echo "$as_me:3253: result: $ac_cv_prog_egrep" >&5
3254 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3255 EGREP=$ac_cv_prog_egrep
3257 test -z "$EGREP" && { { echo "$as_me:3257: error: No egrep program found" >&5
3258 echo "$as_me: error: No egrep program found" >&2;}
3259 { (exit 1); exit 1; }; }
3261 # Find a good install program. We prefer a C program (faster),
3262 # so one script is as good as another. But avoid the broken or
3263 # incompatible versions:
3264 # SysV /etc/install, /usr/sbin/install
3265 # SunOS /usr/etc/install
3266 # IRIX /sbin/install
3268 # AmigaOS /C/install, which installs bootblocks on floppy discs
3269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3272 # ./install, which can be erroneously created by make from ./install.sh.
3273 echo "$as_me:3273: checking for a BSD compatible install" >&5
3274 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3275 if test -z "$INSTALL"; then
3276 if test "${ac_cv_path_install+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 ac_save_IFS=$IFS; IFS=$ac_path_separator
3280 for ac_dir in $PATH; do
3282 # Account for people who put trailing slashes in PATH elements.
3284 / | ./ | .// | /cC/* \
3285 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3288 # OSF1 and SCO ODT 3.0 have their own names for install.
3289 # Don't use installbsd from OSF since it installs stuff as root
3291 for ac_prog in ginstall scoinst install; do
3292 if $as_executable_p "$ac_dir/$ac_prog"; then
3293 if test $ac_prog = install &&
3294 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3295 # AIX install. It has an incompatible calling convention.
3297 elif test $ac_prog = install &&
3298 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3299 # program-specific install script used by HP pwplus--don't use.
3302 ac_cv_path_install="$ac_dir/$ac_prog -c"
3312 if test "${ac_cv_path_install+set}" = set; then
3313 INSTALL=$ac_cv_path_install
3315 # As a last resort, use the slow shell script. We don't cache a
3316 # path for INSTALL within a source directory, because that will
3317 # break other packages using the cache if that directory is
3318 # removed, or if the path is relative.
3319 INSTALL=$ac_install_sh
3322 echo "$as_me:3322: result: $INSTALL" >&5
3323 echo "${ECHO_T}$INSTALL" >&6
3325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3326 # It thinks the first close brace ends the variable substitution.
3327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3337 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3338 test -z "$cf_dir" && cf_dir=.
3339 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3343 for ac_prog in tdlint lint alint splint lclint
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346 set dummy $ac_prog; ac_word=$2
3347 echo "$as_me:3347: checking for $ac_word" >&5
3348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349 if test "${ac_cv_prog_LINT+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 if test -n "$LINT"; then
3353 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3355 ac_save_IFS=$IFS; IFS=$ac_path_separator
3357 for ac_dir in $ac_dummy; do
3359 test -z "$ac_dir" && ac_dir=.
3360 $as_executable_p "$ac_dir/$ac_word" || continue
3361 ac_cv_prog_LINT="$ac_prog"
3362 echo "$as_me:3362: found $ac_dir/$ac_word" >&5
3368 LINT=$ac_cv_prog_LINT
3369 if test -n "$LINT"; then
3370 echo "$as_me:3370: result: $LINT" >&5
3371 echo "${ECHO_T}$LINT" >&6
3373 echo "$as_me:3373: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3377 test -n "$LINT" && break
3380 echo "$as_me:3380: checking whether ln -s works" >&5
3381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3383 if test "$LN_S" = "ln -s"; then
3384 echo "$as_me:3384: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6
3387 echo "$as_me:3387: result: no, using $LN_S" >&5
3388 echo "${ECHO_T}no, using $LN_S" >&6
3391 echo "$as_me:3391: checking for long file names" >&5
3392 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3393 if test "${ac_cv_sys_long_file_names+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 ac_cv_sys_long_file_names=yes
3397 # Test for long file names in all the places we know might matter:
3398 # . the current directory, where building will happen
3399 # $prefix/lib where we will be installing things
3400 # $exec_prefix/lib likewise
3401 # eval it to expand exec_prefix.
3402 # $TMPDIR if set, where it might want to write temporary files
3403 # if $TMPDIR is not set:
3404 # /tmp where it might want to write temporary files
3407 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3410 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3412 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3413 test -d $ac_dir || continue
3414 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3415 ac_xdir=$ac_dir/cf$$
3416 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3417 ac_tf1=$ac_xdir/conftest9012345
3418 ac_tf2=$ac_xdir/conftest9012346
3419 (echo 1 >$ac_tf1) 2>/dev/null
3420 (echo 2 >$ac_tf2) 2>/dev/null
3421 ac_val=`cat $ac_tf1 2>/dev/null`
3422 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3423 ac_cv_sys_long_file_names=no
3424 rm -rf $ac_xdir 2>/dev/null
3427 rm -rf $ac_xdir 2>/dev/null
3430 echo "$as_me:3430: result: $ac_cv_sys_long_file_names" >&5
3431 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3432 if test $ac_cv_sys_long_file_names = yes; then
3434 cat >>confdefs.h <<\EOF
3435 #define HAVE_LONG_FILE_NAMES 1
3440 # if we find pkg-config, check if we should install the ".pc" files.
3442 echo "$as_me:3442: checking if you want to use pkg-config" >&5
3443 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3445 # Check whether --with-pkg-config or --without-pkg-config was given.
3446 if test "${with_pkg_config+set}" = set; then
3447 withval="$with_pkg_config"
3448 cf_pkg_config=$withval
3452 echo "$as_me:3452: result: $cf_pkg_config" >&5
3453 echo "${ECHO_T}$cf_pkg_config" >&6
3455 case $cf_pkg_config in #(vi
3460 # Extract the first word of "pkg-config", so it can be a program name with args.
3461 set dummy pkg-config; ac_word=$2
3462 echo "$as_me:3462: checking for $ac_word" >&5
3463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3464 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3472 ac_save_IFS=$IFS; IFS=$ac_path_separator
3474 for ac_dir in $ac_dummy; do
3476 test -z "$ac_dir" && ac_dir=.
3477 if $as_executable_p "$ac_dir/$ac_word"; then
3478 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3479 echo "$as_me:3479: found $ac_dir/$ac_word" >&5
3484 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3490 if test -n "$PKG_CONFIG"; then
3491 echo "$as_me:3491: result: $PKG_CONFIG" >&5
3492 echo "${ECHO_T}$PKG_CONFIG" >&6
3494 echo "$as_me:3494: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3504 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3505 if test "$PKG_CONFIG" != none ; then
3507 if test "x$prefix" != xNONE; then
3508 cf_path_syntax="$prefix"
3510 cf_path_syntax="$ac_default_prefix"
3513 case ".$PKG_CONFIG" in #(vi
3514 .\$\(*\)*|.\'*\'*) #(vi
3518 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3521 eval PKG_CONFIG="$PKG_CONFIG"
3522 case ".$PKG_CONFIG" in #(vi
3524 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3529 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3532 { { echo "$as_me:3532: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3533 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3534 { (exit 1); exit 1; }; }
3540 if test "$PKG_CONFIG" != no ; then
3541 echo "$as_me:3541: checking if we should install .pc files for $PKG_CONFIG" >&5
3542 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3544 # Leave this as something that can be overridden in the environment.
3545 if test -z "$PKG_CONFIG_LIBDIR" ; then
3546 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3548 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3549 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3551 # Check whether --enable-pc-files or --disable-pc-files was given.
3552 if test "${enable_pc_files+set}" = set; then
3553 enableval="$enable_pc_files"
3554 enable_pc_files=$enableval
3558 echo "$as_me:3558: result: $enable_pc_files" >&5
3559 echo "${ECHO_T}$enable_pc_files" >&6
3561 echo "$as_me:3561: result: no" >&5
3562 echo "${ECHO_T}no" >&6
3563 { echo "$as_me:3563: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3564 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3569 echo "$as_me:3569: checking if we should assume mixed-case filenames" >&5
3570 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3572 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3573 if test "${enable_mixed_case+set}" = set; then
3574 enableval="$enable_mixed_case"
3575 enable_mixedcase=$enableval
3577 enable_mixedcase=auto
3579 echo "$as_me:3579: result: $enable_mixedcase" >&5
3580 echo "${ECHO_T}$enable_mixedcase" >&6
3581 if test "$enable_mixedcase" = "auto" ; then
3583 echo "$as_me:3583: checking if filesystem supports mixed-case filenames" >&5
3584 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3585 if test "${cf_cv_mixedcase+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 if test "$cross_compiling" = yes ; then
3590 case $target_alias in #(vi
3591 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3599 rm -f conftest CONFTEST
3601 if test -f CONFTEST ; then
3606 rm -f conftest CONFTEST
3610 echo "$as_me:3610: result: $cf_cv_mixedcase" >&5
3611 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3612 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3613 #define MIXEDCASE_FILENAMES 1
3617 cf_cv_mixedcase=$enable_mixedcase
3618 if test "$enable_mixedcase" = "yes" ; then
3619 cat >>confdefs.h <<\EOF
3620 #define MIXEDCASE_FILENAMES 1
3626 # do this after mixed-case option (tags/TAGS is not as important as tic).
3627 echo "$as_me:3627: checking whether ${MAKE-make} sets \${MAKE}" >&5
3628 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3629 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3630 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 cat >conftest.make <<\EOF
3635 @echo 'ac_maketemp="${MAKE}"'
3637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3638 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3639 if test -n "$ac_maketemp"; then
3640 eval ac_cv_prog_make_${ac_make}_set=yes
3642 eval ac_cv_prog_make_${ac_make}_set=no
3646 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3647 echo "$as_me:3647: result: yes" >&5
3648 echo "${ECHO_T}yes" >&6
3651 echo "$as_me:3651: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3653 SET_MAKE="MAKE=${MAKE-make}"
3656 for ac_prog in exctags ctags
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 echo "$as_me:3660: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_prog_CTAGS+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 if test -n "$CTAGS"; then
3666 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3668 ac_save_IFS=$IFS; IFS=$ac_path_separator
3670 for ac_dir in $ac_dummy; do
3672 test -z "$ac_dir" && ac_dir=.
3673 $as_executable_p "$ac_dir/$ac_word" || continue
3674 ac_cv_prog_CTAGS="$ac_prog"
3675 echo "$as_me:3675: found $ac_dir/$ac_word" >&5
3681 CTAGS=$ac_cv_prog_CTAGS
3682 if test -n "$CTAGS"; then
3683 echo "$as_me:3683: result: $CTAGS" >&5
3684 echo "${ECHO_T}$CTAGS" >&6
3686 echo "$as_me:3686: result: no" >&5
3687 echo "${ECHO_T}no" >&6
3690 test -n "$CTAGS" && break
3693 for ac_prog in exetags etags
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 echo "$as_me:3697: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_prog_ETAGS+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 if test -n "$ETAGS"; then
3703 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3705 ac_save_IFS=$IFS; IFS=$ac_path_separator
3707 for ac_dir in $ac_dummy; do
3709 test -z "$ac_dir" && ac_dir=.
3710 $as_executable_p "$ac_dir/$ac_word" || continue
3711 ac_cv_prog_ETAGS="$ac_prog"
3712 echo "$as_me:3712: found $ac_dir/$ac_word" >&5
3718 ETAGS=$ac_cv_prog_ETAGS
3719 if test -n "$ETAGS"; then
3720 echo "$as_me:3720: result: $ETAGS" >&5
3721 echo "${ECHO_T}$ETAGS" >&6
3723 echo "$as_me:3723: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3727 test -n "$ETAGS" && break
3730 # Extract the first word of "${CTAGS-ctags}", so it can be a program name with args.
3731 set dummy ${CTAGS-ctags}; ac_word=$2
3732 echo "$as_me:3732: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 if test -n "$MAKE_LOWER_TAGS"; then
3738 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3740 ac_save_IFS=$IFS; IFS=$ac_path_separator
3742 for ac_dir in $ac_dummy; do
3744 test -z "$ac_dir" && ac_dir=.
3745 $as_executable_p "$ac_dir/$ac_word" || continue
3746 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3747 echo "$as_me:3747: found $ac_dir/$ac_word" >&5
3751 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3754 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3755 if test -n "$MAKE_LOWER_TAGS"; then
3756 echo "$as_me:3756: result: $MAKE_LOWER_TAGS" >&5
3757 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3759 echo "$as_me:3759: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3763 if test "$cf_cv_mixedcase" = yes ; then
3764 # Extract the first word of "${ETAGS-etags}", so it can be a program name with args.
3765 set dummy ${ETAGS-etags}; ac_word=$2
3766 echo "$as_me:3766: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 if test -n "$MAKE_UPPER_TAGS"; then
3772 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3774 ac_save_IFS=$IFS; IFS=$ac_path_separator
3776 for ac_dir in $ac_dummy; do
3778 test -z "$ac_dir" && ac_dir=.
3779 $as_executable_p "$ac_dir/$ac_word" || continue
3780 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3781 echo "$as_me:3781: found $ac_dir/$ac_word" >&5
3785 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3788 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3789 if test -n "$MAKE_UPPER_TAGS"; then
3790 echo "$as_me:3790: result: $MAKE_UPPER_TAGS" >&5
3791 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3793 echo "$as_me:3793: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3801 if test "$MAKE_UPPER_TAGS" = yes ; then
3807 if test "$MAKE_LOWER_TAGS" = yes ; then
3813 echo "$as_me:3813: checking for makeflags variable" >&5
3814 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3815 if test "${cf_cv_makeflags+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3822 cat >cf_makeflags.tmp <<CF_EOF
3825 @ echo '.$cf_option'
3827 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3828 case "$cf_result" in
3830 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3831 case "$cf_result" in
3832 .*CC=*) cf_cv_makeflags=
3834 *) cf_cv_makeflags=$cf_option
3840 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3844 rm -f cf_makeflags.tmp
3847 echo "$as_me:3847: result: $cf_cv_makeflags" >&5
3848 echo "${ECHO_T}$cf_cv_makeflags" >&6
3850 if test -n "$ac_tool_prefix"; then
3851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3853 echo "$as_me:3853: checking for $ac_word" >&5
3854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855 if test "${ac_cv_prog_RANLIB+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 if test -n "$RANLIB"; then
3859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3861 ac_save_IFS=$IFS; IFS=$ac_path_separator
3863 for ac_dir in $ac_dummy; do
3865 test -z "$ac_dir" && ac_dir=.
3866 $as_executable_p "$ac_dir/$ac_word" || continue
3867 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3868 echo "$as_me:3868: found $ac_dir/$ac_word" >&5
3874 RANLIB=$ac_cv_prog_RANLIB
3875 if test -n "$RANLIB"; then
3876 echo "$as_me:3876: result: $RANLIB" >&5
3877 echo "${ECHO_T}$RANLIB" >&6
3879 echo "$as_me:3879: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3884 if test -z "$ac_cv_prog_RANLIB"; then
3885 ac_ct_RANLIB=$RANLIB
3886 # Extract the first word of "ranlib", so it can be a program name with args.
3887 set dummy ranlib; ac_word=$2
3888 echo "$as_me:3888: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 if test -n "$ac_ct_RANLIB"; then
3894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3896 ac_save_IFS=$IFS; IFS=$ac_path_separator
3898 for ac_dir in $ac_dummy; do
3900 test -z "$ac_dir" && ac_dir=.
3901 $as_executable_p "$ac_dir/$ac_word" || continue
3902 ac_cv_prog_ac_ct_RANLIB="ranlib"
3903 echo "$as_me:3903: found $ac_dir/$ac_word" >&5
3907 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3910 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3911 if test -n "$ac_ct_RANLIB"; then
3912 echo "$as_me:3912: result: $ac_ct_RANLIB" >&5
3913 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3915 echo "$as_me:3915: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3919 RANLIB=$ac_ct_RANLIB
3921 RANLIB="$ac_cv_prog_RANLIB"
3924 if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3926 set dummy ${ac_tool_prefix}ld; ac_word=$2
3927 echo "$as_me:3927: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929 if test "${ac_cv_prog_LD+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 if test -n "$LD"; then
3933 ac_cv_prog_LD="$LD" # Let the user override the test.
3935 ac_save_IFS=$IFS; IFS=$ac_path_separator
3937 for ac_dir in $ac_dummy; do
3939 test -z "$ac_dir" && ac_dir=.
3940 $as_executable_p "$ac_dir/$ac_word" || continue
3941 ac_cv_prog_LD="${ac_tool_prefix}ld"
3942 echo "$as_me:3942: found $ac_dir/$ac_word" >&5
3949 if test -n "$LD"; then
3950 echo "$as_me:3950: result: $LD" >&5
3951 echo "${ECHO_T}$LD" >&6
3953 echo "$as_me:3953: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_LD"; then
3960 # Extract the first word of "ld", so it can be a program name with args.
3961 set dummy ld; ac_word=$2
3962 echo "$as_me:3962: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 if test -n "$ac_ct_LD"; then
3968 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3970 ac_save_IFS=$IFS; IFS=$ac_path_separator
3972 for ac_dir in $ac_dummy; do
3974 test -z "$ac_dir" && ac_dir=.
3975 $as_executable_p "$ac_dir/$ac_word" || continue
3976 ac_cv_prog_ac_ct_LD="ld"
3977 echo "$as_me:3977: found $ac_dir/$ac_word" >&5
3981 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3984 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3985 if test -n "$ac_ct_LD"; then
3986 echo "$as_me:3986: result: $ac_ct_LD" >&5
3987 echo "${ECHO_T}$ac_ct_LD" >&6
3989 echo "$as_me:3989: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}ar; ac_word=$2
4001 echo "$as_me:4001: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_AR+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 if test -n "$AR"; then
4007 ac_cv_prog_AR="$AR" # Let the user override the test.
4009 ac_save_IFS=$IFS; IFS=$ac_path_separator
4011 for ac_dir in $ac_dummy; do
4013 test -z "$ac_dir" && ac_dir=.
4014 $as_executable_p "$ac_dir/$ac_word" || continue
4015 ac_cv_prog_AR="${ac_tool_prefix}ar"
4016 echo "$as_me:4016: found $ac_dir/$ac_word" >&5
4023 if test -n "$AR"; then
4024 echo "$as_me:4024: result: $AR" >&5
4025 echo "${ECHO_T}$AR" >&6
4027 echo "$as_me:4027: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4032 if test -z "$ac_cv_prog_AR"; then
4034 # Extract the first word of "ar", so it can be a program name with args.
4035 set dummy ar; ac_word=$2
4036 echo "$as_me:4036: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 if test -n "$ac_ct_AR"; then
4042 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4044 ac_save_IFS=$IFS; IFS=$ac_path_separator
4046 for ac_dir in $ac_dummy; do
4048 test -z "$ac_dir" && ac_dir=.
4049 $as_executable_p "$ac_dir/$ac_word" || continue
4050 ac_cv_prog_ac_ct_AR="ar"
4051 echo "$as_me:4051: found $ac_dir/$ac_word" >&5
4055 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4058 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4059 if test -n "$ac_ct_AR"; then
4060 echo "$as_me:4060: result: $ac_ct_AR" >&5
4061 echo "${ECHO_T}$ac_ct_AR" >&6
4063 echo "$as_me:4063: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4072 if test -n "$ac_tool_prefix"; then
4073 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}ar; ac_word=$2
4075 echo "$as_me:4075: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_AR+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -n "$AR"; then
4081 ac_cv_prog_AR="$AR" # Let the user override the test.
4083 ac_save_IFS=$IFS; IFS=$ac_path_separator
4085 for ac_dir in $ac_dummy; do
4087 test -z "$ac_dir" && ac_dir=.
4088 $as_executable_p "$ac_dir/$ac_word" || continue
4089 ac_cv_prog_AR="${ac_tool_prefix}ar"
4090 echo "$as_me:4090: found $ac_dir/$ac_word" >&5
4097 if test -n "$AR"; then
4098 echo "$as_me:4098: result: $AR" >&5
4099 echo "${ECHO_T}$AR" >&6
4101 echo "$as_me:4101: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4106 if test -z "$ac_cv_prog_AR"; then
4108 # Extract the first word of "ar", so it can be a program name with args.
4109 set dummy ar; ac_word=$2
4110 echo "$as_me:4110: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$ac_ct_AR"; then
4116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4118 ac_save_IFS=$IFS; IFS=$ac_path_separator
4120 for ac_dir in $ac_dummy; do
4122 test -z "$ac_dir" && ac_dir=.
4123 $as_executable_p "$ac_dir/$ac_word" || continue
4124 ac_cv_prog_ac_ct_AR="ar"
4125 echo "$as_me:4125: found $ac_dir/$ac_word" >&5
4129 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4133 if test -n "$ac_ct_AR"; then
4134 echo "$as_me:4134: result: $ac_ct_AR" >&5
4135 echo "${ECHO_T}$ac_ct_AR" >&6
4137 echo "$as_me:4137: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4146 echo "$as_me:4146: checking for options to update archives" >&5
4147 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4148 if test "${cf_cv_ar_flags+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 cf_cv_ar_flags=unknown
4153 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4155 rm -f conftest.$ac_cv_objext
4158 cat >conftest.$ac_ext <<EOF
4159 #line 4159 "configure"
4160 int testdata[3] = { 123, 456, 789 };
4162 if { (eval echo "$as_me:4162: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>&5
4165 echo "$as_me:4165: \$? = $ac_status" >&5
4166 (exit $ac_status); } ; then
4167 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4168 if test -f conftest.a ; then
4169 cf_cv_ar_flags=$cf_ar_flags
4173 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4175 echo "${as_me-configure}:4175: testing cannot compile test-program ..." 1>&5
4180 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4183 echo "$as_me:4183: result: $cf_cv_ar_flags" >&5
4184 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4185 test -z "$ARFLAGS" && ARFLAGS=$cf_cv_ar_flags
4186 ARFLAGS=$cf_cv_ar_flags
4188 echo "$as_me:4188: checking if you have specified an install-prefix" >&5
4189 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4191 # Check whether --with-install-prefix or --without-install-prefix was given.
4192 if test "${with_install_prefix+set}" = set; then
4193 withval="$with_install_prefix"
4194 case "$withval" in #(vi
4197 *) DESTDIR="$withval"
4201 echo "$as_me:4201: result: $DESTDIR" >&5
4202 echo "${ECHO_T}$DESTDIR" >&6
4204 ###############################################################################
4206 # If we're cross-compiling, allow the user to override the tools and their
4207 # options. The configure script is oriented toward identifying the host
4208 # compiler, etc., but we need a build compiler to generate parts of the source.
4210 if test "$cross_compiling" = yes ; then
4212 # defaults that we might want to override
4213 : ${BUILD_CFLAGS:=''}
4214 : ${BUILD_CPPFLAGS:=''}
4215 : ${BUILD_LDFLAGS:=''}
4217 : ${BUILD_EXEEXT:='$x'}
4218 : ${BUILD_OBJEXT:='o'}
4220 # Check whether --with-build-cc or --without-build-cc was given.
4221 if test "${with_build_cc+set}" = set; then
4222 withval="$with_build_cc"
4225 for ac_prog in gcc cc cl
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 echo "$as_me:4229: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 if test -n "$BUILD_CC"; then
4235 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4237 ac_save_IFS=$IFS; IFS=$ac_path_separator
4239 for ac_dir in $ac_dummy; do
4241 test -z "$ac_dir" && ac_dir=.
4242 $as_executable_p "$ac_dir/$ac_word" || continue
4243 ac_cv_prog_BUILD_CC="$ac_prog"
4244 echo "$as_me:4244: found $ac_dir/$ac_word" >&5
4250 BUILD_CC=$ac_cv_prog_BUILD_CC
4251 if test -n "$BUILD_CC"; then
4252 echo "$as_me:4252: result: $BUILD_CC" >&5
4253 echo "${ECHO_T}$BUILD_CC" >&6
4255 echo "$as_me:4255: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4259 test -n "$BUILD_CC" && break
4263 echo "$as_me:4263: checking for native build C compiler" >&5
4264 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4265 echo "$as_me:4265: result: $BUILD_CC" >&5
4266 echo "${ECHO_T}$BUILD_CC" >&6
4268 echo "$as_me:4268: checking for native build C preprocessor" >&5
4269 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4271 # Check whether --with-build-cpp or --without-build-cpp was given.
4272 if test "${with_build_cpp+set}" = set; then
4273 withval="$with_build_cpp"
4274 BUILD_CPP="$withval"
4276 BUILD_CPP='${BUILD_CC} -E'
4278 echo "$as_me:4278: result: $BUILD_CPP" >&5
4279 echo "${ECHO_T}$BUILD_CPP" >&6
4281 echo "$as_me:4281: checking for native build C flags" >&5
4282 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4284 # Check whether --with-build-cflags or --without-build-cflags was given.
4285 if test "${with_build_cflags+set}" = set; then
4286 withval="$with_build_cflags"
4287 BUILD_CFLAGS="$withval"
4289 echo "$as_me:4289: result: $BUILD_CFLAGS" >&5
4290 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4292 echo "$as_me:4292: checking for native build C preprocessor-flags" >&5
4293 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4295 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4296 if test "${with_build_cppflags+set}" = set; then
4297 withval="$with_build_cppflags"
4298 BUILD_CPPFLAGS="$withval"
4300 echo "$as_me:4300: result: $BUILD_CPPFLAGS" >&5
4301 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4303 echo "$as_me:4303: checking for native build linker-flags" >&5
4304 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4306 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4307 if test "${with_build_ldflags+set}" = set; then
4308 withval="$with_build_ldflags"
4309 BUILD_LDFLAGS="$withval"
4311 echo "$as_me:4311: result: $BUILD_LDFLAGS" >&5
4312 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4314 echo "$as_me:4314: checking for native build linker-libraries" >&5
4315 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4317 # Check whether --with-build-libs or --without-build-libs was given.
4318 if test "${with_build_libs+set}" = set; then
4319 withval="$with_build_libs"
4320 BUILD_LIBS="$withval"
4322 echo "$as_me:4322: result: $BUILD_LIBS" >&5
4323 echo "${ECHO_T}$BUILD_LIBS" >&6
4325 # this assumes we're on Unix.
4329 : ${BUILD_CC:='${CC}'}
4331 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4332 { { echo "$as_me:4332: error: Cross-build requires two compilers.
4333 Use --with-build-cc to specify the native compiler." >&5
4334 echo "$as_me: error: Cross-build requires two compilers.
4335 Use --with-build-cc to specify the native compiler." >&2;}
4336 { (exit 1); exit 1; }; }
4340 : ${BUILD_CC:='${CC}'}
4341 : ${BUILD_CPP:='${CPP}'}
4342 : ${BUILD_CFLAGS:='${CFLAGS}'}
4343 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4344 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4345 : ${BUILD_LIBS:='${LIBS}'}
4346 : ${BUILD_EXEEXT:='$x'}
4347 : ${BUILD_OBJEXT:='o'}
4350 ###############################################################################
4352 ### Options to allow the user to specify the set of libraries which are used.
4353 ### Use "--without-normal --with-shared" to allow the default model to be
4354 ### shared, for example.
4359 # common library maintenance symbols that are convenient for libtool scripts:
4360 LIB_CREATE='${AR} -cr'
4361 LIB_OBJECT='${OBJECTS}'
4365 # symbols used to prop libtool up to enable it to determine what it should be
4373 echo "$as_me:4373: checking if you want to build libraries with libtool" >&5
4374 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4376 # Check whether --with-libtool or --without-libtool was given.
4377 if test "${with_libtool+set}" = set; then
4378 withval="$with_libtool"
4379 with_libtool=$withval
4383 echo "$as_me:4383: result: $with_libtool" >&5
4384 echo "${ECHO_T}$with_libtool" >&6
4385 if test "$with_libtool" != "no"; then
4387 if test "$with_libtool" != "yes" ; then
4389 if test "x$prefix" != xNONE; then
4390 cf_path_syntax="$prefix"
4392 cf_path_syntax="$ac_default_prefix"
4395 case ".$with_libtool" in #(vi
4396 .\$\(*\)*|.\'*\'*) #(vi
4400 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4403 eval with_libtool="$with_libtool"
4404 case ".$with_libtool" in #(vi
4406 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4411 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4414 { { echo "$as_me:4414: error: expected a pathname, not \"$with_libtool\"" >&5
4415 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4416 { (exit 1); exit 1; }; }
4420 LIBTOOL=$with_libtool
4422 # Extract the first word of "libtool", so it can be a program name with args.
4423 set dummy libtool; ac_word=$2
4424 echo "$as_me:4424: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_path_LIBTOOL+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
4434 ac_save_IFS=$IFS; IFS=$ac_path_separator
4436 for ac_dir in $ac_dummy; do
4438 test -z "$ac_dir" && ac_dir=.
4439 if $as_executable_p "$ac_dir/$ac_word"; then
4440 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
4441 echo "$as_me:4441: found $ac_dir/$ac_word" >&5
4449 LIBTOOL=$ac_cv_path_LIBTOOL
4451 if test -n "$LIBTOOL"; then
4452 echo "$as_me:4452: result: $LIBTOOL" >&5
4453 echo "${ECHO_T}$LIBTOOL" >&6
4455 echo "$as_me:4455: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4460 if test -z "$LIBTOOL" ; then
4461 { { echo "$as_me:4461: error: Cannot find libtool" >&5
4462 echo "$as_me: error: Cannot find libtool" >&2;}
4463 { (exit 1); exit 1; }; }
4465 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} -version-info `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} -o'
4466 LIB_OBJECT='${OBJECTS:.o=.lo}'
4468 LIB_CLEAN='${LIBTOOL} --mode=clean'
4469 LIB_COMPILE='${LIBTOOL} --mode=compile'
4470 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4471 LIB_INSTALL='${LIBTOOL} --mode=install'
4472 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4475 # Show the version of libtool
4476 echo "$as_me:4476: checking version of libtool" >&5
4477 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
4479 # Save the version in a cache variable - this is not entirely a good
4480 # thing, but the version string from libtool is very ugly, and for
4481 # bug reports it might be useful to have the original string. "("
4482 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.].*//'`
4483 echo "$as_me:4483: result: $cf_cv_libtool_version" >&5
4484 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4485 if test -z "$cf_cv_libtool_version" ; then
4486 { { echo "$as_me:4486: error: This is not GNU libtool" >&5
4487 echo "$as_me: error: This is not GNU libtool" >&2;}
4488 { (exit 1); exit 1; }; }
4491 # special hack to add -no-undefined (which libtool should do for itself)
4493 case "$cf_cv_system_name" in #(vi
4494 cygwin*|mingw32*|uwin*|aix[456]) #(vi
4495 LT_UNDEF=-no-undefined
4499 # special hack to add --tag option for C++ compiler
4500 case $cf_cv_libtool_version in #(vi
4501 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
4502 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
4503 LIBTOOL="$LIBTOOL --tag=CC"
4506 LIBTOOL_CXX="$LIBTOOL"
4514 test -z "$LIBTOOL" && ECHO_LT=
4516 if test "$with_libtool" != "no" ; then
4518 cf_list_models="$cf_list_models libtool"
4522 echo "$as_me:4522: checking if you want to build shared libraries" >&5
4523 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
4525 # Check whether --with-shared or --without-shared was given.
4526 if test "${with_shared+set}" = set; then
4527 withval="$with_shared"
4528 with_shared=$withval
4532 echo "$as_me:4532: result: $with_shared" >&5
4533 echo "${ECHO_T}$with_shared" >&6
4534 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
4536 echo "$as_me:4536: checking if you want to build static libraries" >&5
4537 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
4539 # Check whether --with-normal or --without-normal was given.
4540 if test "${with_normal+set}" = set; then
4541 withval="$with_normal"
4542 with_normal=$withval
4546 echo "$as_me:4546: result: $with_normal" >&5
4547 echo "${ECHO_T}$with_normal" >&6
4548 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
4550 echo "$as_me:4550: checking if you want to build debug libraries" >&5
4551 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
4553 # Check whether --with-debug or --without-debug was given.
4554 if test "${with_debug+set}" = set; then
4555 withval="$with_debug"
4560 echo "$as_me:4560: result: $with_debug" >&5
4561 echo "${ECHO_T}$with_debug" >&6
4562 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
4564 echo "$as_me:4564: checking if you want to build profiling libraries" >&5
4565 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
4567 # Check whether --with-profile or --without-profile was given.
4568 if test "${with_profile+set}" = set; then
4569 withval="$with_profile"
4570 with_profile=$withval
4574 echo "$as_me:4574: result: $with_profile" >&5
4575 echo "${ECHO_T}$with_profile" >&6
4576 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
4580 ###############################################################################
4582 echo "$as_me:4582: checking for specified models" >&5
4583 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
4584 test -z "$cf_list_models" && cf_list_models=normal
4585 test "$with_libtool" != "no" && cf_list_models=libtool
4586 echo "$as_me:4586: result: $cf_list_models" >&5
4587 echo "${ECHO_T}$cf_list_models" >&6
4589 ### Use the first model as the default, and save its suffix for use in building
4590 ### up test-applications.
4591 echo "$as_me:4591: checking for default model" >&5
4592 echo $ECHO_N "checking for default model... $ECHO_C" >&6
4593 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
4594 echo "$as_me:4594: result: $DFT_LWR_MODEL" >&5
4595 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
4597 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4608 case $cf_cv_system_name in #(vi
4615 cf_prefix=$LIB_PREFIX
4617 LIB_PREFIX=$cf_prefix
4621 ###############################################################################
4623 echo "$as_me:4623: checking if you want to build a separate terminfo library" >&5
4624 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
4626 # Check whether --with-termlib or --without-termlib was given.
4627 if test "${with_termlib+set}" = set; then
4628 withval="$with_termlib"
4629 with_termlib=$withval
4633 echo "$as_me:4633: result: $with_termlib" >&5
4634 echo "${ECHO_T}$with_termlib" >&6
4636 echo "$as_me:4636: checking if you want to build a separate tic library" >&5
4637 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
4639 # Check whether --with-ticlib or --without-ticlib was given.
4640 if test "${with_ticlib+set}" = set; then
4641 withval="$with_ticlib"
4642 with_ticlib=$withval
4646 echo "$as_me:4646: result: $with_ticlib" >&5
4647 echo "${ECHO_T}$with_ticlib" >&6
4649 ### Checks for special libraries, must be done up-front.
4652 echo "$as_me:4652: checking if you want to link with the GPM mouse library" >&5
4653 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
4655 # Check whether --with-gpm or --without-gpm was given.
4656 if test "${with_gpm+set}" = set; then
4662 echo "$as_me:4662: result: $with_gpm" >&5
4663 echo "${ECHO_T}$with_gpm" >&6
4665 if test "$with_gpm" != no ; then
4666 echo "$as_me:4666: checking for gpm.h" >&5
4667 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
4668 if test "${ac_cv_header_gpm_h+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 cat >conftest.$ac_ext <<_ACEOF
4672 #line 4672 "configure"
4673 #include "confdefs.h"
4676 if { (eval echo "$as_me:4676: \"$ac_cpp conftest.$ac_ext\"") >&5
4677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4679 egrep -v '^ *\+' conftest.er1 >conftest.err
4681 cat conftest.err >&5
4682 echo "$as_me:4682: \$? = $ac_status" >&5
4683 (exit $ac_status); } >/dev/null; then
4684 if test -s conftest.err; then
4685 ac_cpp_err=$ac_c_preproc_warn_flag
4692 if test -z "$ac_cpp_err"; then
4693 ac_cv_header_gpm_h=yes
4695 echo "$as_me: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4697 ac_cv_header_gpm_h=no
4699 rm -f conftest.err conftest.$ac_ext
4701 echo "$as_me:4701: result: $ac_cv_header_gpm_h" >&5
4702 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
4703 if test $ac_cv_header_gpm_h = yes; then
4705 cat >>confdefs.h <<\EOF
4706 #define HAVE_GPM_H 1
4709 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
4710 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
4712 echo "${as_me-configure}:4712: testing assuming we really have GPM library ..." 1>&5
4714 cat >>confdefs.h <<\EOF
4715 #define HAVE_LIBGPM 1
4719 echo "$as_me:4719: checking for Gpm_Open in -lgpm" >&5
4720 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4721 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 ac_check_lib_save_LIBS=$LIBS
4726 cat >conftest.$ac_ext <<_ACEOF
4727 #line 4727 "configure"
4728 #include "confdefs.h"
4730 /* Override any gcc2 internal prototype to avoid an error. */
4734 /* We use char because int might match the return type of a gcc2
4735 builtin and then its argument prototype would still apply. */
4745 rm -f conftest.$ac_objext conftest$ac_exeext
4746 if { (eval echo "$as_me:4746: \"$ac_link\"") >&5
4747 (eval $ac_link) 2>&5
4749 echo "$as_me:4749: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -s conftest$ac_exeext'
4752 { (eval echo "$as_me:4752: \"$ac_try\"") >&5
4755 echo "$as_me:4755: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_lib_gpm_Gpm_Open=yes
4759 echo "$as_me: failed program was:" >&5
4760 cat conftest.$ac_ext >&5
4761 ac_cv_lib_gpm_Gpm_Open=no
4763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4764 LIBS=$ac_check_lib_save_LIBS
4766 echo "$as_me:4766: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4767 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4768 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4772 { { echo "$as_me:4772: error: Cannot link with GPM library" >&5
4773 echo "$as_me: error: Cannot link with GPM library" >&2;}
4774 { (exit 1); exit 1; }; }
4782 test "$with_gpm" != maybe && { echo "$as_me:4782: WARNING: Cannot find GPM header" >&5
4783 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
4790 if test "$with_gpm" != no ; then
4791 echo "$as_me:4791: checking if you want to load GPM dynamically" >&5
4792 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
4794 # Check whether --with-dlsym or --without-dlsym was given.
4795 if test "${with_dlsym+set}" = set; then
4796 withval="$with_dlsym"
4801 echo "$as_me:4801: result: $with_dlsym" >&5
4802 echo "${ECHO_T}$with_dlsym" >&6
4803 if test "$with_dlsym" = yes ; then
4806 echo "$as_me:4806: checking for dlsym" >&5
4807 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
4808 if test "${ac_cv_func_dlsym+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4812 #line 4812 "configure"
4813 #include "confdefs.h"
4814 /* System header to define __stub macros and hopefully few prototypes,
4815 which can conflict with char dlsym (); below. */
4817 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4829 /* The GNU C library defines this for functions which it implements
4830 to always fail with ENOSYS. Some functions are actually named
4831 something starting with __ and the normal name is an alias. */
4832 #if defined (__stub_dlsym) || defined (__stub___dlsym)
4842 rm -f conftest.$ac_objext conftest$ac_exeext
4843 if { (eval echo "$as_me:4843: \"$ac_link\"") >&5
4844 (eval $ac_link) 2>&5
4846 echo "$as_me:4846: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -s conftest$ac_exeext'
4849 { (eval echo "$as_me:4849: \"$ac_try\"") >&5
4852 echo "$as_me:4852: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_cv_func_dlsym=yes
4856 echo "$as_me: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4862 echo "$as_me:4862: result: $ac_cv_func_dlsym" >&5
4863 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
4864 if test $ac_cv_func_dlsym = yes; then
4869 echo "$as_me:4869: checking for dlsym in -ldl" >&5
4870 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
4871 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 ac_check_lib_save_LIBS=$LIBS
4876 cat >conftest.$ac_ext <<_ACEOF
4877 #line 4877 "configure"
4878 #include "confdefs.h"
4880 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */