2 # From configure.in Revision: 1.491 .
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 --disable-libtool-version enable to use libtool's incompatible naming scheme
716 --with-libtool generate libraries with libtool
717 --with-shared generate shared-libraries
718 --with-normal generate normal-libraries (default)
719 --with-debug generate debug-libraries (default)
720 --with-profile generate profile-libraries
721 --with-termlib generate separate terminfo library
722 --with-ticlib generate separate tic library
723 --with-gpm use Alessandro Rubini's GPM library
724 --without-dlsym do not use dlsym() to load GPM dynamically
725 --with-sysmouse use sysmouse (FreeBSD console)
726 --enable-rpath use rpath option when generating shared libraries
727 --disable-relink relink shared libraries during install
728 --with-shlib-version=X Specify rel or abi version for shared libs
729 Fine-Tuning Your Configuration:
730 --disable-overwrite leave out the link to -lcurses
731 --disable-database do not use terminfo, only fallbacks/termcap
732 --with-database=XXX specify terminfo source to install
733 --with-hashed-db specify hashed-database library
734 --with-fallbacks=XXX specify list of fallback terminal descriptions
735 --without-xterm-new specify if xterm terminfo should be old version
736 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
737 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
738 --disable-big-core assume machine has little memory
739 --disable-big-strings assume compiler has only standard-size strings
740 --enable-termcap compile in termcap fallback support
741 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
742 --enable-getcap fast termcap load, no xrefs to terminfo
743 --enable-getcap-cache cache translated termcaps in ~/.terminfo
744 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
745 --disable-root-environ restrict environment when running as root
746 --enable-symlinks make tic use symbolic links not hard links
747 --enable-broken_linker compile with broken-linker support code
748 --enable-bsdpad recognize BSD-style prefix padding
749 --enable-widec compile with wide-char/UTF-8 code
750 --disable-lp64 allow chtype to be long (ignore _LP64)
751 --disable-largefile omit support for large files
752 --disable-tparm-varargs compile tparm() without varargs interface
753 --disable-tic-depends link tic library without explicit dependency on ncurses library
754 --with-bool=TYPE override fallback type of bool variable
755 --with-caps=alt compile with alternate Caps file
756 --with-chtype=TYPE override type of chtype
757 --with-ospeed=TYPE override type of ospeed variable
758 --with-mmask-t=TYPE override type of mmask_t
759 --with-ccharw-max=XXX override size CCHARW_MAX
760 --with-rcs-ids compile-in RCS identifiers
761 Options to Specify How Manpages are Installed:
762 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
763 optionally formatted/catonly, e.g., gzip,formatted
764 --with-manpage-renames specify manpage-renaming
765 --with-manpage-aliases specify manpage-aliases using .so
766 --with-manpage-symlinks specify manpage-aliases using symlinks
767 --with-manpage-tbl specify manpage processing with tbl
769 --disable-ext-funcs disable function-extensions
770 --enable-sp-funcs enable experimental SCREEN-extensions
771 --enable-term-driver enable experimental terminal-driver
772 --enable-const compile with extra/non-standard const
773 --enable-ext-colors compile for 256-color support
774 --enable-ext-mouse compile for extended mouse-encoding
775 --enable-no-padding compile with $NCURSES_NO_PADDING code
776 --enable-signed-char compile using signed Boolean's in term.h
777 --enable-sigwinch compile with SIGWINCH handler
778 --enable-tcap-names compile with user-definable terminal capabilities
780 --without-develop disable development options
781 --enable-hard-tabs compile with hard-tabs code
782 --enable-xmc-glitch compile with support for xmc (magic-cookie)
784 --disable-assumed-color do not assume anything about default-colors
785 --disable-hashmap compile without hashmap scrolling-optimization
786 --enable-colorfgbg compile-in experimental $COLORFGBG code
787 --enable-interop compile-in experimental interop bindings
788 --with-pthread use POSIX thread library
789 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
790 --enable-weak-symbols enable weak-symbols for pthreads
791 --enable-reentrant compile with experimental reentrant code
792 --with-wrap-prefix=XXX override prefix used for public variables
793 --enable-safe-sprintf compile with experimental safe-sprintf code
794 --disable-scroll-hints compile without scroll-hints code
795 --enable-wgetch-events compile with experimental wgetch-events code
796 Testing/development Options:
797 --enable-echo build: display "compiling" commands (default)
798 --enable-warnings build: turn on GCC compiler warnings
799 --enable-assertions test: turn on generation of assertion code
800 --with-dmalloc test: use Gray Watson's dmalloc library
801 --with-dbmalloc test: use Conor Cahill's dbmalloc library
802 --with-valgrind test: use valgrind
803 --disable-leaks test: free permanent memory, analyze leaks
804 --enable-expanded test: generate functions for certain macros
805 --disable-macros test: use functions rather than macros
806 --with-trace test: add trace() function to all models of ncurses
807 Ada95 Binding Options:
808 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
809 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
810 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
811 --disable-rpath-hack don't add rpath options for additional libraries
813 Some influential environment variables:
814 CC C compiler command
815 CFLAGS C compiler flags
816 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
817 nonstandard directory <lib dir>
818 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
819 headers in a nonstandard directory <include dir>
821 CXX C++ compiler command
822 CXXFLAGS C++ compiler flags
823 CXXCPP C++ preprocessor
825 Use these variables to override the choices made by `configure' or to help
826 it to find libraries and programs with nonstandard names/locations.
831 if test "$ac_init_help" = "recursive"; then
832 # If there are subdirs, report their specific --help.
834 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
836 # A "../" for each directory in /$ac_subdir.
837 ac_dots=`echo $ac_subdir |
838 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
841 .) # No --srcdir option. We are building in place.
842 ac_sub_srcdir=$srcdir ;;
843 [\\/]* | ?:[\\/]* ) # Absolute path.
844 ac_sub_srcdir=$srcdir/$ac_subdir ;;
846 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
849 # Check for guested configure; otherwise get Cygnus style configure.
850 if test -f $ac_sub_srcdir/configure.gnu; then
852 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
853 elif test -f $ac_sub_srcdir/configure; then
855 $SHELL $ac_sub_srcdir/configure --help=recursive
856 elif test -f $ac_sub_srcdir/configure.ac ||
857 test -f $ac_sub_srcdir/configure.in; then
861 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
867 test -n "$ac_init_help" && exit 0
868 if $ac_init_version; then
871 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
872 Free Software Foundation, Inc.
873 This configure script is free software; the Free Software Foundation
874 gives unlimited permission to copy, distribute and modify it.
880 This file contains any messages produced by compilers while
881 running configure, to aid debugging if configure makes a mistake.
883 It was created by $as_me, which was
884 generated by GNU Autoconf 2.52.20100320. Invocation command line was
895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
907 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
924 # Keep a trace of the command line.
925 # Strip out --no-create and --no-recursion so they do not pile up.
926 # Also quote any args containing shell meta-characters.
932 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933 | --no-cr | --no-c) ;;
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
936 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
937 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
938 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
940 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
943 # Get rid of the leading space.
946 # When interrupted or exit'd, cleanup temporary files, and complete
947 # config.log. We remove comments because anyway the quotes in there
948 # would cause problems or look ugly.
950 # Save into config.log some information that might help in debugging.
952 echo "## ----------------- ##" >&5
953 echo "## Cache variables. ##" >&5
954 echo "## ----------------- ##" >&5
956 # The following way of writing the cache mishandles newlines in values,
959 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
962 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
967 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
971 sed "/^$/d" confdefs.h >conftest.log
972 if test -s conftest.log; then
974 echo "## ------------ ##" >&5
975 echo "## confdefs.h. ##" >&5
976 echo "## ------------ ##" >&5
981 test "$ac_signal" != 0 &&
982 echo "$as_me: caught signal $ac_signal" >&5
983 echo "$as_me: exit $exit_status" >&5
984 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
987 for ac_signal in 1 2 13 15; do
988 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
992 # confdefs.h avoids OS command line length limits that DEFS can exceed.
993 rm -rf conftest* confdefs.h
994 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
997 # Let the site file select an alternate cache file if it wants to.
998 # Prefer explicitly selected file to automatically selected ones.
999 if test -z "$CONFIG_SITE"; then
1000 if test "x$prefix" != xNONE; then
1001 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1003 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1006 for ac_site_file in $CONFIG_SITE; do
1007 if test -r "$ac_site_file"; then
1008 { echo "$as_me:1008: loading site script $ac_site_file" >&5
1009 echo "$as_me: loading site script $ac_site_file" >&6;}
1010 cat "$ac_site_file" >&5
1015 if test -r "$cache_file"; then
1016 # Some versions of bash will fail to source /dev/null (special
1017 # files actually), so we avoid doing that.
1018 if test -f "$cache_file"; then
1019 { echo "$as_me:1019: loading cache $cache_file" >&5
1020 echo "$as_me: loading cache $cache_file" >&6;}
1022 [\\/]* | ?:[\\/]* ) . $cache_file;;
1023 *) . ./$cache_file;;
1027 { echo "$as_me:1027: creating cache $cache_file" >&5
1028 echo "$as_me: creating cache $cache_file" >&6;}
1032 # Check that the precious variables saved in the cache have kept the same
1034 ac_cache_corrupted=false
1035 for ac_var in `(set) 2>&1 |
1036 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1037 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1038 eval ac_new_set=\$ac_env_${ac_var}_set
1039 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1040 eval ac_new_val="\$ac_env_${ac_var}_value"
1041 case $ac_old_set,$ac_new_set in
1043 { echo "$as_me:1043: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1044 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1045 ac_cache_corrupted=: ;;
1047 { echo "$as_me:1047: error: \`$ac_var' was not set in the previous run" >&5
1048 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1049 ac_cache_corrupted=: ;;
1052 if test "x$ac_old_val" != "x$ac_new_val"; then
1053 { echo "$as_me:1053: error: \`$ac_var' has changed since the previous run:" >&5
1054 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1055 { echo "$as_me:1055: former value: $ac_old_val" >&5
1056 echo "$as_me: former value: $ac_old_val" >&2;}
1057 { echo "$as_me:1057: current value: $ac_new_val" >&5
1058 echo "$as_me: current value: $ac_new_val" >&2;}
1059 ac_cache_corrupted=:
1062 # Pass precious variables to config.status. It doesn't matter if
1063 # we pass some twice (in addition to the command line arguments).
1064 if test "$ac_new_set" = set; then
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1068 ac_configure_args="$ac_configure_args '$ac_arg'"
1070 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1075 if $ac_cache_corrupted; then
1076 { echo "$as_me:1076: error: changes in the environment can compromise the build" >&5
1077 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1078 { { echo "$as_me:1078: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1079 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1080 { (exit 1); exit 1; }; }
1084 ac_cpp='$CPP $CPPFLAGS'
1085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1088 ac_main_return=return
1090 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1091 *c*,-n*) ECHO_N= ECHO_C='
1093 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1094 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1096 echo "#! $SHELL" >conftest.sh
1097 echo "exit 0" >>conftest.sh
1098 chmod +x conftest.sh
1099 if { (echo "$as_me:1099: PATH=\".;.\"; conftest.sh") >&5
1100 (PATH=".;."; conftest.sh) 2>&5
1102 echo "$as_me:1102: \$? = $ac_status" >&5
1103 (exit $ac_status); }; then
1104 ac_path_separator=';'
1108 PATH_SEPARATOR="$ac_path_separator"
1111 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1115 echo "$as_me:1115: checking for egrep" >&5
1116 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1117 if test "${ac_cv_prog_egrep+set}" = set; then
1118 echo $ECHO_N "(cached) $ECHO_C" >&6
1120 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1121 then ac_cv_prog_egrep='grep -E'
1122 else ac_cv_prog_egrep='egrep'
1125 echo "$as_me:1125: result: $ac_cv_prog_egrep" >&5
1126 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1127 EGREP=$ac_cv_prog_egrep
1129 test -z "$EGREP" && { { echo "$as_me:1129: error: No egrep program found" >&5
1130 echo "$as_me: error: No egrep program found" >&2;}
1131 { (exit 1); exit 1; }; }
1133 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1134 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1135 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1136 cf_cv_abi_version=${NCURSES_MAJOR}
1137 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1138 cf_cv_timestamp=`date`
1139 echo "$as_me:1139: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1140 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1142 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1144 # Check whether --with-rel-version or --without-rel-version was given.
1145 if test "${with_rel_version+set}" = set; then
1146 withval="$with_rel_version"
1147 { echo "$as_me:1147: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1148 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1149 cf_cv_rel_version=$withval
1152 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1153 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1155 if test -n "$NCURSES_MAJOR" ; then
1156 case $NCURSES_MAJOR in #(vi
1160 { { echo "$as_me:1160: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1161 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1162 { (exit 1); exit 1; }; }
1166 { { echo "$as_me:1166: error: Release major-version value is empty" >&5
1167 echo "$as_me: error: Release major-version value is empty" >&2;}
1168 { (exit 1); exit 1; }; }
1171 if test -n "$NCURSES_MINOR" ; then
1172 case $NCURSES_MINOR in #(vi
1176 { { echo "$as_me:1176: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1177 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1178 { (exit 1); exit 1; }; }
1182 { { echo "$as_me:1182: error: Release minor-version value is empty" >&5
1183 echo "$as_me: error: Release minor-version value is empty" >&2;}
1184 { (exit 1); exit 1; }; }
1187 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1189 # Check whether --with-abi-version or --without-abi-version was given.
1190 if test "${with_abi_version+set}" = set; then
1191 withval="$with_abi_version"
1192 { echo "$as_me:1192: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1193 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1194 cf_cv_abi_version=$withval
1197 if test -n "$cf_cv_abi_version" ; then
1198 case $cf_cv_abi_version in #(vi
1202 { { echo "$as_me:1202: error: ABI version is not a number: $cf_cv_abi_version" >&5
1203 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1204 { (exit 1); exit 1; }; }
1208 { { echo "$as_me:1208: error: ABI version value is empty" >&5
1209 echo "$as_me: error: ABI version value is empty" >&2;}
1210 { (exit 1); exit 1; }; }
1214 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1215 if test -f $ac_dir/install-sh; then
1217 ac_install_sh="$ac_aux_dir/install-sh -c"
1219 elif test -f $ac_dir/install.sh; then
1221 ac_install_sh="$ac_aux_dir/install.sh -c"
1223 elif test -f $ac_dir/shtool; then
1225 ac_install_sh="$ac_aux_dir/shtool install -c"
1229 if test -z "$ac_aux_dir"; then
1230 { { echo "$as_me:1230: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1231 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1232 { (exit 1); exit 1; }; }
1234 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1235 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1236 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1238 # Make sure we can run config.sub.
1239 $ac_config_sub sun4 >/dev/null 2>&1 ||
1240 { { echo "$as_me:1240: error: cannot run $ac_config_sub" >&5
1241 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1242 { (exit 1); exit 1; }; }
1244 echo "$as_me:1244: checking build system type" >&5
1245 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1246 if test "${ac_cv_build+set}" = set; then
1247 echo $ECHO_N "(cached) $ECHO_C" >&6
1249 ac_cv_build_alias=$build_alias
1250 test -z "$ac_cv_build_alias" &&
1251 ac_cv_build_alias=`$ac_config_guess`
1252 test -z "$ac_cv_build_alias" &&
1253 { { echo "$as_me:1253: error: cannot guess build type; you must specify one" >&5
1254 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1255 { (exit 1); exit 1; }; }
1256 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1257 { { echo "$as_me:1257: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1258 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1259 { (exit 1); exit 1; }; }
1262 echo "$as_me:1262: result: $ac_cv_build" >&5
1263 echo "${ECHO_T}$ac_cv_build" >&6
1265 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1266 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1267 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1269 echo "$as_me:1269: checking host system type" >&5
1270 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1271 if test "${ac_cv_host+set}" = set; then
1272 echo $ECHO_N "(cached) $ECHO_C" >&6
1274 ac_cv_host_alias=$host_alias
1275 test -z "$ac_cv_host_alias" &&
1276 ac_cv_host_alias=$ac_cv_build_alias
1277 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1278 { { echo "$as_me:1278: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1279 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1280 { (exit 1); exit 1; }; }
1283 echo "$as_me:1283: result: $ac_cv_host" >&5
1284 echo "${ECHO_T}$ac_cv_host" >&6
1286 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1287 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1288 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1290 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1291 echo "$as_me:1291: checking target system type" >&5
1292 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1293 if test "${ac_cv_target+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 ac_cv_target_alias=$target_alias
1297 test "x$ac_cv_target_alias" = "x" &&
1298 ac_cv_target_alias=$ac_cv_host_alias
1299 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1300 { { echo "$as_me:1300: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1301 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1302 { (exit 1); exit 1; }; }
1305 echo "$as_me:1305: result: $ac_cv_target" >&5
1306 echo "${ECHO_T}$ac_cv_target" >&6
1307 target=$ac_cv_target
1308 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1309 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1310 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1312 # The aliases save the names the user supplied, while $host etc.
1313 # will get canonicalized.
1314 test -n "$target_alias" &&
1315 test "$program_prefix$program_suffix$program_transform_name" = \
1317 program_prefix=${target_alias}-
1318 system_name="$host_os"
1320 system_name="`(uname -s -r) 2>/dev/null`"
1321 if test -z "$system_name" ; then
1322 system_name="`(hostname) 2>/dev/null`"
1325 test -n "$system_name" && cat >>confdefs.h <<EOF
1326 #define SYSTEM_NAME "$system_name"
1329 if test "${cf_cv_system_name+set}" = set; then
1330 echo $ECHO_N "(cached) $ECHO_C" >&6
1332 cf_cv_system_name="$system_name"
1335 test -z "$system_name" && system_name="$cf_cv_system_name"
1336 test -n "$cf_cv_system_name" && echo "$as_me:1336: result: Configuring for $cf_cv_system_name" >&5
1337 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1339 if test ".$system_name" != ".$cf_cv_system_name" ; then
1340 echo "$as_me:1340: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1341 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1342 { { echo "$as_me:1342: error: \"Please remove config.cache and try again.\"" >&5
1343 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1344 { (exit 1); exit 1; }; }
1347 # Check whether --with-system-type or --without-system-type was given.
1348 if test "${with_system_type+set}" = set; then
1349 withval="$with_system_type"
1350 { echo "$as_me:1350: WARNING: overriding system type to $withval" >&5
1351 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1352 cf_cv_system_name=$withval
1355 ### Save the given $CFLAGS to allow user-override.
1356 cf_user_CFLAGS="$CFLAGS"
1358 ### Default install-location
1360 echo "$as_me:1360: checking for prefix" >&5
1361 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1362 if test "x$prefix" = "xNONE" ; then
1363 case "$cf_cv_system_name" in
1364 # non-vendor systems don't have a conflict
1365 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1368 *) prefix=$ac_default_prefix
1372 echo "$as_me:1372: result: $prefix" >&5
1373 echo "${ECHO_T}$prefix" >&6
1375 if test "x$prefix" = "xNONE" ; then
1376 echo "$as_me:1376: checking for default include-directory" >&5
1377 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1378 test -n "$verbose" && echo 1>&6
1381 $includedir/ncurses \
1383 $prefix/include/ncurses \
1384 /usr/local/include \
1385 /usr/local/include/ncurses \
1387 /usr/include/ncurses
1389 cf_dir=`eval echo $cf_symbol`
1390 if test -f $cf_dir/curses.h ; then
1391 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1392 includedir="$cf_symbol"
1393 test -n "$verbose" && echo $ac_n " found " 1>&6
1397 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1399 echo "$as_me:1399: result: $includedir" >&5
1400 echo "${ECHO_T}$includedir" >&6
1403 ### Checks for programs.
1405 ac_cpp='$CPP $CPPFLAGS'
1406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1409 ac_main_return=return
1410 if test -n "$ac_tool_prefix"; then
1411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1413 echo "$as_me:1413: checking for $ac_word" >&5
1414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1415 if test "${ac_cv_prog_CC+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 if test -n "$CC"; then
1419 ac_cv_prog_CC="$CC" # Let the user override the test.
1421 ac_save_IFS=$IFS; IFS=$ac_path_separator
1423 for ac_dir in $ac_dummy; do
1425 test -z "$ac_dir" && ac_dir=.
1426 $as_executable_p "$ac_dir/$ac_word" || continue
1427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1428 echo "$as_me:1428: found $ac_dir/$ac_word" >&5
1435 if test -n "$CC"; then
1436 echo "$as_me:1436: result: $CC" >&5
1437 echo "${ECHO_T}$CC" >&6
1439 echo "$as_me:1439: result: no" >&5
1440 echo "${ECHO_T}no" >&6
1444 if test -z "$ac_cv_prog_CC"; then
1446 # Extract the first word of "gcc", so it can be a program name with args.
1447 set dummy gcc; ac_word=$2
1448 echo "$as_me:1448: checking for $ac_word" >&5
1449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 if test -n "$ac_ct_CC"; then
1454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1456 ac_save_IFS=$IFS; IFS=$ac_path_separator
1458 for ac_dir in $ac_dummy; do
1460 test -z "$ac_dir" && ac_dir=.
1461 $as_executable_p "$ac_dir/$ac_word" || continue
1462 ac_cv_prog_ac_ct_CC="gcc"
1463 echo "$as_me:1463: found $ac_dir/$ac_word" >&5
1469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1470 if test -n "$ac_ct_CC"; then
1471 echo "$as_me:1471: result: $ac_ct_CC" >&5
1472 echo "${ECHO_T}$ac_ct_CC" >&6
1474 echo "$as_me:1474: result: no" >&5
1475 echo "${ECHO_T}no" >&6
1483 if test -z "$CC"; then
1484 if test -n "$ac_tool_prefix"; then
1485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1486 set dummy ${ac_tool_prefix}cc; ac_word=$2
1487 echo "$as_me:1487: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1495 ac_save_IFS=$IFS; IFS=$ac_path_separator
1497 for ac_dir in $ac_dummy; do
1499 test -z "$ac_dir" && ac_dir=.
1500 $as_executable_p "$ac_dir/$ac_word" || continue
1501 ac_cv_prog_CC="${ac_tool_prefix}cc"
1502 echo "$as_me:1502: found $ac_dir/$ac_word" >&5
1509 if test -n "$CC"; then
1510 echo "$as_me:1510: result: $CC" >&5
1511 echo "${ECHO_T}$CC" >&6
1513 echo "$as_me:1513: result: no" >&5
1514 echo "${ECHO_T}no" >&6
1518 if test -z "$ac_cv_prog_CC"; then
1520 # Extract the first word of "cc", so it can be a program name with args.
1521 set dummy cc; ac_word=$2
1522 echo "$as_me:1522: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 if test -n "$ac_ct_CC"; then
1528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530 ac_save_IFS=$IFS; IFS=$ac_path_separator
1532 for ac_dir in $ac_dummy; do
1534 test -z "$ac_dir" && ac_dir=.
1535 $as_executable_p "$ac_dir/$ac_word" || continue
1536 ac_cv_prog_ac_ct_CC="cc"
1537 echo "$as_me:1537: found $ac_dir/$ac_word" >&5
1543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544 if test -n "$ac_ct_CC"; then
1545 echo "$as_me:1545: result: $ac_ct_CC" >&5
1546 echo "${ECHO_T}$ac_ct_CC" >&6
1548 echo "$as_me:1548: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1558 if test -z "$CC"; then
1559 # Extract the first word of "cc", so it can be a program name with args.
1560 set dummy cc; ac_word=$2
1561 echo "$as_me:1561: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 if test -n "$CC"; then
1567 ac_cv_prog_CC="$CC" # Let the user override the test.
1570 ac_save_IFS=$IFS; IFS=$ac_path_separator
1572 for ac_dir in $ac_dummy; do
1574 test -z "$ac_dir" && ac_dir=.
1575 $as_executable_p "$ac_dir/$ac_word" || continue
1576 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1577 ac_prog_rejected=yes
1581 echo "$as_me:1581: found $ac_dir/$ac_word" >&5
1585 if test $ac_prog_rejected = yes; then
1586 # We found a bogon in the path, so make sure we never use it.
1587 set dummy $ac_cv_prog_CC
1589 if test $# != 0; then
1590 # We chose a different compiler from the bogus one.
1591 # However, it has the same basename, so the bogon will be chosen
1592 # first if we set CC to just the basename; use the full file name.
1594 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1602 if test -n "$CC"; then
1603 echo "$as_me:1603: result: $CC" >&5
1604 echo "${ECHO_T}$CC" >&6
1606 echo "$as_me:1606: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1611 if test -z "$CC"; then
1612 if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1617 echo "$as_me:1617: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 ac_save_IFS=$IFS; IFS=$ac_path_separator
1627 for ac_dir in $ac_dummy; do
1629 test -z "$ac_dir" && ac_dir=.
1630 $as_executable_p "$ac_dir/$ac_word" || continue
1631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1632 echo "$as_me:1632: found $ac_dir/$ac_word" >&5
1639 if test -n "$CC"; then
1640 echo "$as_me:1640: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1643 echo "$as_me:1643: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1647 test -n "$CC" && break
1650 if test -z "$CC"; then
1654 # Extract the first word of "$ac_prog", so it can be a program name with args.
1655 set dummy $ac_prog; ac_word=$2
1656 echo "$as_me:1656: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$ac_ct_CC"; then
1662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1664 ac_save_IFS=$IFS; IFS=$ac_path_separator
1666 for ac_dir in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir=.
1669 $as_executable_p "$ac_dir/$ac_word" || continue
1670 ac_cv_prog_ac_ct_CC="$ac_prog"
1671 echo "$as_me:1671: found $ac_dir/$ac_word" >&5
1677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1678 if test -n "$ac_ct_CC"; then
1679 echo "$as_me:1679: result: $ac_ct_CC" >&5
1680 echo "${ECHO_T}$ac_ct_CC" >&6
1682 echo "$as_me:1682: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1686 test -n "$ac_ct_CC" && break
1694 test -z "$CC" && { { echo "$as_me:1694: error: no acceptable cc found in \$PATH" >&5
1695 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1696 { (exit 1); exit 1; }; }
1698 # Provide some information about the compiler.
1699 echo "$as_me:1699:" \
1700 "checking for C compiler version" >&5
1701 ac_compiler=`set X $ac_compile; echo $2`
1702 { (eval echo "$as_me:1702: \"$ac_compiler --version </dev/null >&5\"") >&5
1703 (eval $ac_compiler --version </dev/null >&5) 2>&5
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707 { (eval echo "$as_me:1707: \"$ac_compiler -v </dev/null >&5\"") >&5
1708 (eval $ac_compiler -v </dev/null >&5) 2>&5
1710 echo "$as_me:1710: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1712 { (eval echo "$as_me:1712: \"$ac_compiler -V </dev/null >&5\"") >&5
1713 (eval $ac_compiler -V </dev/null >&5) 2>&5
1715 echo "$as_me:1715: \$? = $ac_status" >&5
1716 (exit $ac_status); }
1718 cat >conftest.$ac_ext <<_ACEOF
1719 #line 1719 "configure"
1720 #include "confdefs.h"
1730 ac_clean_files_save=$ac_clean_files
1731 ac_clean_files="$ac_clean_files a.out a.exe"
1732 # Try to create an executable without -o first, disregard a.out.
1733 # It will help us diagnose broken compilers, and finding out an intuition
1735 echo "$as_me:1735: checking for C compiler default output" >&5
1736 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1737 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1738 if { (eval echo "$as_me:1738: \"$ac_link_default\"") >&5
1739 (eval $ac_link_default) 2>&5
1741 echo "$as_me:1741: \$? = $ac_status" >&5
1742 (exit $ac_status); }; then
1743 # Find the output, starting from the most likely. This scheme is
1744 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1746 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1747 ls a.out conftest 2>/dev/null;
1748 ls a.* conftest.* 2>/dev/null`; do
1750 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1751 a.out ) # We found the default executable, but exeext='' is most
1754 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1762 echo "$as_me: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1764 { { echo "$as_me:1764: error: C compiler cannot create executables" >&5
1765 echo "$as_me: error: C compiler cannot create executables" >&2;}
1766 { (exit 77); exit 77; }; }
1769 ac_exeext=$ac_cv_exeext
1770 echo "$as_me:1770: result: $ac_file" >&5
1771 echo "${ECHO_T}$ac_file" >&6
1773 # Check the compiler produces executables we can run. If not, either
1774 # the compiler is broken, or we cross compile.
1775 echo "$as_me:1775: checking whether the C compiler works" >&5
1776 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1777 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1778 # If not cross compiling, check that we can run a simple program.
1779 if test "$cross_compiling" != yes; then
1780 if { ac_try='./$ac_file'
1781 { (eval echo "$as_me:1781: \"$ac_try\"") >&5
1784 echo "$as_me:1784: \$? = $ac_status" >&5
1785 (exit $ac_status); }; }; then
1788 if test "$cross_compiling" = maybe; then
1791 { { echo "$as_me:1791: error: cannot run C compiled programs.
1792 If you meant to cross compile, use \`--host'." >&5
1793 echo "$as_me: error: cannot run C compiled programs.
1794 If you meant to cross compile, use \`--host'." >&2;}
1795 { (exit 1); exit 1; }; }
1799 echo "$as_me:1799: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1802 rm -f a.out a.exe conftest$ac_cv_exeext
1803 ac_clean_files=$ac_clean_files_save
1804 # Check the compiler produces executables we can run. If not, either
1805 # the compiler is broken, or we cross compile.
1806 echo "$as_me:1806: checking whether we are cross compiling" >&5
1807 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1808 echo "$as_me:1808: result: $cross_compiling" >&5
1809 echo "${ECHO_T}$cross_compiling" >&6
1811 echo "$as_me:1811: checking for executable suffix" >&5
1812 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1813 if { (eval echo "$as_me:1813: \"$ac_link\"") >&5
1814 (eval $ac_link) 2>&5
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); }; then
1818 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1819 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1820 # work properly (i.e., refer to `conftest.exe'), while it won't with
1822 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1824 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1832 { { echo "$as_me:1832: error: cannot compute EXEEXT: cannot compile and link" >&5
1833 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1834 { (exit 1); exit 1; }; }
1837 rm -f conftest$ac_cv_exeext
1838 echo "$as_me:1838: result: $ac_cv_exeext" >&5
1839 echo "${ECHO_T}$ac_cv_exeext" >&6
1841 rm -f conftest.$ac_ext
1842 EXEEXT=$ac_cv_exeext
1844 echo "$as_me:1844: checking for object suffix" >&5
1845 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1846 if test "${ac_cv_objext+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 cat >conftest.$ac_ext <<_ACEOF
1850 #line 1850 "configure"
1851 #include "confdefs.h"
1861 rm -f conftest.o conftest.obj
1862 if { (eval echo "$as_me:1862: \"$ac_compile\"") >&5
1863 (eval $ac_compile) 2>&5
1865 echo "$as_me:1865: \$? = $ac_status" >&5
1866 (exit $ac_status); }; then
1867 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1869 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1870 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1875 echo "$as_me: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1877 { { echo "$as_me:1877: error: cannot compute OBJEXT: cannot compile" >&5
1878 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1879 { (exit 1); exit 1; }; }
1882 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1884 echo "$as_me:1884: result: $ac_cv_objext" >&5
1885 echo "${ECHO_T}$ac_cv_objext" >&6
1886 OBJEXT=$ac_cv_objext
1888 echo "$as_me:1888: checking whether we are using the GNU C compiler" >&5
1889 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1890 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 cat >conftest.$ac_ext <<_ACEOF
1894 #line 1894 "configure"
1895 #include "confdefs.h"
1908 rm -f conftest.$ac_objext
1909 if { (eval echo "$as_me:1909: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1912 echo "$as_me:1912: \$? = $ac_status" >&5
1913 (exit $ac_status); } &&
1914 { ac_try='test -s conftest.$ac_objext'
1915 { (eval echo "$as_me:1915: \"$ac_try\"") >&5
1918 echo "$as_me:1918: \$? = $ac_status" >&5
1919 (exit $ac_status); }; }; then
1922 echo "$as_me: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1926 rm -f conftest.$ac_objext conftest.$ac_ext
1927 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1930 echo "$as_me:1930: result: $ac_cv_c_compiler_gnu" >&5
1931 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1932 GCC=`test $ac_compiler_gnu = yes && echo yes`
1933 ac_test_CFLAGS=${CFLAGS+set}
1934 ac_save_CFLAGS=$CFLAGS
1936 echo "$as_me:1936: checking whether $CC accepts -g" >&5
1937 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1938 if test "${ac_cv_prog_cc_g+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 cat >conftest.$ac_ext <<_ACEOF
1942 #line 1942 "configure"
1943 #include "confdefs.h"
1953 rm -f conftest.$ac_objext
1954 if { (eval echo "$as_me:1954: \"$ac_compile\"") >&5
1955 (eval $ac_compile) 2>&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); } &&
1959 { ac_try='test -s conftest.$ac_objext'
1960 { (eval echo "$as_me:1960: \"$ac_try\"") >&5
1963 echo "$as_me:1963: \$? = $ac_status" >&5
1964 (exit $ac_status); }; }; then
1967 echo "$as_me: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
1971 rm -f conftest.$ac_objext conftest.$ac_ext
1973 echo "$as_me:1973: result: $ac_cv_prog_cc_g" >&5
1974 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1975 if test "$ac_test_CFLAGS" = set; then
1976 CFLAGS=$ac_save_CFLAGS
1977 elif test $ac_cv_prog_cc_g = yes; then
1978 if test "$GCC" = yes; then
1984 if test "$GCC" = yes; then
1990 # Some people use a C++ compiler to compile C. Since we use `exit',
1991 # in C++ we need to declare it. In case someone uses the same compiler
1992 # for both compiling C and C++ we need to have the C++ compiler decide
1993 # the declaration of exit, since it's the most demanding environment.
1994 cat >conftest.$ac_ext <<_ACEOF
1999 rm -f conftest.$ac_objext
2000 if { (eval echo "$as_me:2000: \"$ac_compile\"") >&5
2001 (eval $ac_compile) 2>&5
2003 echo "$as_me:2003: \$? = $ac_status" >&5
2004 (exit $ac_status); } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:2006: \"$ac_try\"") >&5
2009 echo "$as_me:2009: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 for ac_declaration in \
2013 '#include <stdlib.h>' \
2014 'extern "C" void std::exit (int) throw (); using std::exit;' \
2015 'extern "C" void std::exit (int); using std::exit;' \
2016 'extern "C" void exit (int) throw ();' \
2017 'extern "C" void exit (int);' \
2020 cat >conftest.$ac_ext <<_ACEOF
2021 #line 2021 "configure"
2022 #include "confdefs.h"
2033 rm -f conftest.$ac_objext
2034 if { (eval echo "$as_me:2034: \"$ac_compile\"") >&5
2035 (eval $ac_compile) 2>&5
2037 echo "$as_me:2037: \$? = $ac_status" >&5
2038 (exit $ac_status); } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:2040: \"$ac_try\"") >&5
2043 echo "$as_me:2043: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2047 echo "$as_me: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
2051 rm -f conftest.$ac_objext conftest.$ac_ext
2052 cat >conftest.$ac_ext <<_ACEOF
2053 #line 2053 "configure"
2054 #include "confdefs.h"
2064 rm -f conftest.$ac_objext
2065 if { (eval echo "$as_me:2065: \"$ac_compile\"") >&5
2066 (eval $ac_compile) 2>&5
2068 echo "$as_me:2068: \$? = $ac_status" >&5
2069 (exit $ac_status); } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:2071: \"$ac_try\"") >&5
2074 echo "$as_me:2074: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2078 echo "$as_me: failed program was:" >&5
2079 cat conftest.$ac_ext >&5
2081 rm -f conftest.$ac_objext conftest.$ac_ext
2084 if test -n "$ac_declaration"; then
2085 echo '#ifdef __cplusplus' >>confdefs.h
2086 echo $ac_declaration >>confdefs.h
2087 echo '#endif' >>confdefs.h
2091 echo "$as_me: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2094 rm -f conftest.$ac_objext conftest.$ac_ext
2096 ac_cpp='$CPP $CPPFLAGS'
2097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2100 ac_main_return=return
2103 if test "$GCC" = yes ; then
2104 echo "$as_me:2104: checking version of $CC" >&5
2105 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2106 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2107 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2108 echo "$as_me:2108: result: $GCC_VERSION" >&5
2109 echo "${ECHO_T}$GCC_VERSION" >&6
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2117 ac_main_return=return
2118 echo "$as_me:2118: checking how to run the C preprocessor" >&5
2119 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2120 # On Suns, sometimes $CPP names a directory.
2121 if test -n "$CPP" && test -d "$CPP"; then
2124 if test -z "$CPP"; then
2125 if test "${ac_cv_prog_CPP+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 # Double quotes because CPP needs to be expanded
2129 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2132 for ac_c_preproc_warn_flag in '' yes
2134 # Use a header file that comes with gcc, so configuring glibc
2135 # with a fresh cross-compiler works.
2136 # On the NeXT, cc -E runs the code through the compiler's parser,
2137 # not just through cpp. "Syntax error" is here to catch this case.
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line 2139 "configure"
2140 #include "confdefs.h"
2144 if { (eval echo "$as_me:2144: \"$ac_cpp conftest.$ac_ext\"") >&5
2145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2147 egrep -v '^ *\+' conftest.er1 >conftest.err
2149 cat conftest.err >&5
2150 echo "$as_me:2150: \$? = $ac_status" >&5
2151 (exit $ac_status); } >/dev/null; then
2152 if test -s conftest.err; then
2153 ac_cpp_err=$ac_c_preproc_warn_flag
2160 if test -z "$ac_cpp_err"; then
2163 echo "$as_me: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 # Broken: fails on valid input.
2168 rm -f conftest.err conftest.$ac_ext
2170 # OK, works on sane cases. Now check whether non-existent headers
2171 # can be detected and how.
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line 2173 "configure"
2174 #include "confdefs.h"
2175 #include <ac_nonexistent.h>
2177 if { (eval echo "$as_me:2177: \"$ac_cpp conftest.$ac_ext\"") >&5
2178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2180 egrep -v '^ *\+' conftest.er1 >conftest.err
2182 cat conftest.err >&5
2183 echo "$as_me:2183: \$? = $ac_status" >&5
2184 (exit $ac_status); } >/dev/null; then
2185 if test -s conftest.err; then
2186 ac_cpp_err=$ac_c_preproc_warn_flag
2193 if test -z "$ac_cpp_err"; then
2194 # Broken: success on invalid input.
2197 echo "$as_me: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2199 # Passes both tests.
2203 rm -f conftest.err conftest.$ac_ext
2206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2207 rm -f conftest.err conftest.$ac_ext
2208 if $ac_preproc_ok; then
2220 echo "$as_me:2220: result: $CPP" >&5
2221 echo "${ECHO_T}$CPP" >&6
2223 for ac_c_preproc_warn_flag in '' yes
2225 # Use a header file that comes with gcc, so configuring glibc
2226 # with a fresh cross-compiler works.
2227 # On the NeXT, cc -E runs the code through the compiler's parser,
2228 # not just through cpp. "Syntax error" is here to catch this case.
2229 cat >conftest.$ac_ext <<_ACEOF
2230 #line 2230 "configure"
2231 #include "confdefs.h"
2235 if { (eval echo "$as_me:2235: \"$ac_cpp conftest.$ac_ext\"") >&5
2236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2238 egrep -v '^ *\+' conftest.er1 >conftest.err
2240 cat conftest.err >&5
2241 echo "$as_me:2241: \$? = $ac_status" >&5
2242 (exit $ac_status); } >/dev/null; then
2243 if test -s conftest.err; then
2244 ac_cpp_err=$ac_c_preproc_warn_flag
2251 if test -z "$ac_cpp_err"; then
2254 echo "$as_me: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2256 # Broken: fails on valid input.
2259 rm -f conftest.err conftest.$ac_ext
2261 # OK, works on sane cases. Now check whether non-existent headers
2262 # can be detected and how.
2263 cat >conftest.$ac_ext <<_ACEOF
2264 #line 2264 "configure"
2265 #include "confdefs.h"
2266 #include <ac_nonexistent.h>
2268 if { (eval echo "$as_me:2268: \"$ac_cpp conftest.$ac_ext\"") >&5
2269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2271 egrep -v '^ *\+' conftest.er1 >conftest.err
2273 cat conftest.err >&5
2274 echo "$as_me:2274: \$? = $ac_status" >&5
2275 (exit $ac_status); } >/dev/null; then
2276 if test -s conftest.err; then
2277 ac_cpp_err=$ac_c_preproc_warn_flag
2284 if test -z "$ac_cpp_err"; then
2285 # Broken: success on invalid input.
2288 echo "$as_me: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2290 # Passes both tests.
2294 rm -f conftest.err conftest.$ac_ext
2297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2298 rm -f conftest.err conftest.$ac_ext
2299 if $ac_preproc_ok; then
2302 { { echo "$as_me:2302: error: C preprocessor \"$CPP\" fails sanity check" >&5
2303 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2304 { (exit 1); exit 1; }; }
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312 ac_main_return=return
2314 if test $ac_cv_c_compiler_gnu = yes; then
2315 echo "$as_me:2315: checking whether $CC needs -traditional" >&5
2316 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2317 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 ac_pattern="Autoconf.*'x'"
2321 cat >conftest.$ac_ext <<_ACEOF
2322 #line 2322 "configure"
2323 #include "confdefs.h"
2325 int Autoconf = TIOCGETP;
2327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2328 egrep "$ac_pattern" >/dev/null 2>&1; then
2329 ac_cv_prog_gcc_traditional=yes
2331 ac_cv_prog_gcc_traditional=no
2335 if test $ac_cv_prog_gcc_traditional = no; then
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #line 2337 "configure"
2338 #include "confdefs.h"
2340 int Autoconf = TCGETA;
2342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2343 egrep "$ac_pattern" >/dev/null 2>&1; then
2344 ac_cv_prog_gcc_traditional=yes
2350 echo "$as_me:2350: result: $ac_cv_prog_gcc_traditional" >&5
2351 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2352 if test $ac_cv_prog_gcc_traditional = yes; then
2353 CC="$CC -traditional"
2357 echo "$as_me:2357: checking whether $CC understands -c and -o together" >&5
2358 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2359 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat > conftest.$ac_ext <<CF_EOF
2367 ${cf_cv_main_return:-return}(0);
2370 # We do the test twice because some compilers refuse to overwrite an
2371 # existing .o file with -o, though they will create one.
2372 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2373 if { (eval echo "$as_me:2373: \"$ac_try\"") >&5
2376 echo "$as_me:2376: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 test -f conftest2.$ac_objext && { (eval echo "$as_me:2378: \"$ac_try\"") >&5
2381 echo "$as_me:2381: \$? = $ac_status" >&5
2382 (exit $ac_status); };
2384 eval cf_cv_prog_CC_c_o=yes
2386 eval cf_cv_prog_CC_c_o=no
2391 if test $cf_cv_prog_CC_c_o = yes; then
2392 echo "$as_me:2392: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2395 echo "$as_me:2395: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2399 echo "$as_me:2399: checking for POSIXized ISC" >&5
2400 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2401 if test -d /etc/conf/kconfig.d &&
2402 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2404 echo "$as_me:2404: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6
2406 ISC=yes # If later tests want to check for ISC.
2408 cat >>confdefs.h <<\EOF
2409 #define _POSIX_SOURCE 1
2412 if test "$GCC" = yes; then
2418 echo "$as_me:2418: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2423 echo "$as_me:2423: checking for ${CC-cc} option to accept ANSI C" >&5
2424 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2425 if test "${cf_cv_ansi_cc+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 cf_save_CFLAGS="$CFLAGS"
2431 cf_save_CPPFLAGS="$CPPFLAGS"
2432 # Don't try gcc -ansi; that turns off useful extensions and
2433 # breaks some systems' header files.
2434 # AIX -qlanglvl=ansi
2435 # Ultrix and OSF/1 -std1
2436 # HP-UX -Aa -D_HPUX_SOURCE
2438 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2439 for cf_arg in "-DCC_HAS_PROTOS" \
2444 "-Aa -D_HPUX_SOURCE" \
2451 cf_new_extra_cppflags=
2453 for cf_add_cflags in $cf_arg
2455 case $cf_fix_cppflags in
2457 case $cf_add_cflags in #(vi
2458 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2459 case $cf_add_cflags in
2461 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2463 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2464 && test -z "${cf_tst_cflags}" \
2465 && cf_fix_cppflags=yes
2467 if test $cf_fix_cppflags = yes ; then
2468 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2470 elif test "${cf_tst_cflags}" = "\"'" ; then
2471 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2477 *$cf_add_cflags) #(vi
2480 case $cf_add_cflags in #(vi
2482 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2484 CPPFLAGS=`echo "$CPPFLAGS" | \
2485 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2486 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2490 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2495 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2500 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2502 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2504 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2505 && test -z "${cf_tst_cflags}" \
2506 && cf_fix_cppflags=no
2511 if test -n "$cf_new_cflags" ; then
2513 CFLAGS="$CFLAGS $cf_new_cflags"
2516 if test -n "$cf_new_cppflags" ; then
2518 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2521 if test -n "$cf_new_extra_cppflags" ; then
2523 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2526 cat >conftest.$ac_ext <<_ACEOF
2527 #line 2527 "configure"
2528 #include "confdefs.h"
2530 #ifndef CC_HAS_PROTOS
2531 #if !defined(__STDC__) || (__STDC__ != 1)
2540 int test (int i, double x);
2541 struct s1 {int (*f) (int a);};
2542 struct s2 {int (*f) (double a);};
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:2548: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>&5
2551 echo "$as_me:2551: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:2554: \"$ac_try\"") >&5
2557 echo "$as_me:2557: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 cf_cv_ansi_cc="$cf_arg"; break
2561 echo "$as_me: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2564 rm -f conftest.$ac_objext conftest.$ac_ext
2566 CFLAGS="$cf_save_CFLAGS"
2567 CPPFLAGS="$cf_save_CPPFLAGS"
2570 echo "$as_me:2570: result: $cf_cv_ansi_cc" >&5
2571 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2573 if test "$cf_cv_ansi_cc" != "no"; then
2574 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2579 cf_new_extra_cppflags=
2581 for cf_add_cflags in $cf_cv_ansi_cc
2583 case $cf_fix_cppflags in
2585 case $cf_add_cflags in #(vi
2586 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2587 case $cf_add_cflags in
2589 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2591 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2592 && test -z "${cf_tst_cflags}" \
2593 && cf_fix_cppflags=yes
2595 if test $cf_fix_cppflags = yes ; then
2596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2598 elif test "${cf_tst_cflags}" = "\"'" ; then
2599 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2605 *$cf_add_cflags) #(vi
2608 case $cf_add_cflags in #(vi
2610 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2612 CPPFLAGS=`echo "$CPPFLAGS" | \
2613 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2614 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2618 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2623 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2630 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2632 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2633 && test -z "${cf_tst_cflags}" \
2634 && cf_fix_cppflags=no
2639 if test -n "$cf_new_cflags" ; then
2641 CFLAGS="$CFLAGS $cf_new_cflags"
2644 if test -n "$cf_new_cppflags" ; then
2646 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2649 if test -n "$cf_new_extra_cppflags" ; then
2651 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2655 cat >>confdefs.h <<\EOF
2656 #define CC_HAS_PROTOS 1
2662 if test "$cf_cv_ansi_cc" = "no"; then
2663 { { echo "$as_me:2663: error: Your compiler does not appear to recognize prototypes.
2664 You have the following choices:
2665 a. adjust your compiler options
2666 b. get an up-to-date compiler
2667 c. use a wrapper such as unproto" >&5
2668 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2669 You have the following choices:
2670 a. adjust your compiler options
2671 b. get an up-to-date compiler
2672 c. use a wrapper such as unproto" >&2;}
2673 { (exit 1); exit 1; }; }
2676 case $cf_cv_system_name in
2678 CFLAGS="$CFLAGS -Zmt"
2679 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2680 CXXFLAGS="$CXXFLAGS -Zmt"
2681 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2682 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2689 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2690 #define PROG_EXT "$PROG_EXT"
2693 if test "$cross_compiling" = yes ; then
2696 case "$cf_cv_system_name" in #(vi
2697 dragonfly*|freebsd*) #(vi
2698 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2700 *) LDPATH=$PATH:/sbin:/usr/sbin
2701 # Extract the first word of "ldconfig", so it can be a program name with args.
2702 set dummy ldconfig; ac_word=$2
2703 echo "$as_me:2703: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2713 ac_save_IFS=$IFS; IFS=$ac_path_separator
2715 for ac_dir in $ac_dummy; do
2717 test -z "$ac_dir" && ac_dir=.
2718 if $as_executable_p "$ac_dir/$ac_word"; then
2719 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2720 echo "$as_me:2720: found $ac_dir/$ac_word" >&5
2728 LDCONFIG=$ac_cv_path_LDCONFIG
2730 if test -n "$LDCONFIG"; then
2731 echo "$as_me:2731: result: $LDCONFIG" >&5
2732 echo "${ECHO_T}$LDCONFIG" >&6
2734 echo "$as_me:2734: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2742 echo "$as_me:2742: checking if you want to ensure bool is consistent with C++" >&5
2743 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2745 # Check whether --with-cxx or --without-cxx was given.
2746 if test "${with_cxx+set}" = set; then
2748 cf_with_cxx=$withval
2752 echo "$as_me:2752: result: $cf_with_cxx" >&5
2753 echo "${ECHO_T}$cf_with_cxx" >&6
2754 if test "X$cf_with_cxx" = Xno ; then
2758 # with autoconf 2.13, we can change the error to a warning:
2760 ac_cpp='$CXXCPP $CPPFLAGS'
2761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2764 ac_main_return=return
2765 if test -n "$ac_tool_prefix"; then
2766 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2770 echo "$as_me:2770: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2772 if test "${ac_cv_prog_CXX+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 if test -n "$CXX"; then
2776 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2778 ac_save_IFS=$IFS; IFS=$ac_path_separator
2780 for ac_dir in $ac_dummy; do
2782 test -z "$ac_dir" && ac_dir=.
2783 $as_executable_p "$ac_dir/$ac_word" || continue
2784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:2785: found $ac_dir/$ac_word" >&5
2792 if test -n "$CXX"; then
2793 echo "$as_me:2793: result: $CXX" >&5
2794 echo "${ECHO_T}$CXX" >&6
2796 echo "$as_me:2796: result: no" >&5
2797 echo "${ECHO_T}no" >&6
2800 test -n "$CXX" && break
2803 if test -z "$CXX"; then
2805 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy $ac_prog; ac_word=$2
2809 echo "$as_me:2809: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2811 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 if test -n "$ac_ct_CXX"; then
2815 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2817 ac_save_IFS=$IFS; IFS=$ac_path_separator
2819 for ac_dir in $ac_dummy; do
2821 test -z "$ac_dir" && ac_dir=.
2822 $as_executable_p "$ac_dir/$ac_word" || continue
2823 ac_cv_prog_ac_ct_CXX="$ac_prog"
2824 echo "$as_me:2824: found $ac_dir/$ac_word" >&5
2830 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2831 if test -n "$ac_ct_CXX"; then
2832 echo "$as_me:2832: result: $ac_ct_CXX" >&5
2833 echo "${ECHO_T}$ac_ct_CXX" >&6
2835 echo "$as_me:2835: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2839 test -n "$ac_ct_CXX" && break
2841 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2846 # Provide some information about the compiler.
2847 echo "$as_me:2847:" \
2848 "checking for C++ compiler version" >&5
2849 ac_compiler=`set X $ac_compile; echo $2`
2850 { (eval echo "$as_me:2850: \"$ac_compiler --version </dev/null >&5\"") >&5
2851 (eval $ac_compiler --version </dev/null >&5) 2>&5
2853 echo "$as_me:2853: \$? = $ac_status" >&5
2854 (exit $ac_status); }
2855 { (eval echo "$as_me:2855: \"$ac_compiler -v </dev/null >&5\"") >&5
2856 (eval $ac_compiler -v </dev/null >&5) 2>&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); }
2860 { (eval echo "$as_me:2860: \"$ac_compiler -V </dev/null >&5\"") >&5
2861 (eval $ac_compiler -V </dev/null >&5) 2>&5
2863 echo "$as_me:2863: \$? = $ac_status" >&5
2864 (exit $ac_status); }
2866 echo "$as_me:2866: checking whether we are using the GNU C++ compiler" >&5
2867 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2868 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line 2872 "configure"
2873 #include "confdefs.h"
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:2887: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>&5
2890 echo "$as_me:2890: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:2893: \"$ac_try\"") >&5
2896 echo "$as_me:2896: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 echo "$as_me: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2904 rm -f conftest.$ac_objext conftest.$ac_ext
2905 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2908 echo "$as_me:2908: result: $ac_cv_cxx_compiler_gnu" >&5
2909 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2910 GXX=`test $ac_compiler_gnu = yes && echo yes`
2911 ac_test_CXXFLAGS=${CXXFLAGS+set}
2912 ac_save_CXXFLAGS=$CXXFLAGS
2914 echo "$as_me:2914: checking whether $CXX accepts -g" >&5
2915 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2916 if test "${ac_cv_prog_cxx_g+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 cat >conftest.$ac_ext <<_ACEOF
2920 #line 2920 "configure"
2921 #include "confdefs.h"
2931 rm -f conftest.$ac_objext
2932 if { (eval echo "$as_me:2932: \"$ac_compile\"") >&5
2933 (eval $ac_compile) 2>&5
2935 echo "$as_me:2935: \$? = $ac_status" >&5
2936 (exit $ac_status); } &&
2937 { ac_try='test -s conftest.$ac_objext'
2938 { (eval echo "$as_me:2938: \"$ac_try\"") >&5
2941 echo "$as_me:2941: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 ac_cv_prog_cxx_g=yes
2945 echo "$as_me: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2949 rm -f conftest.$ac_objext conftest.$ac_ext
2951 echo "$as_me:2951: result: $ac_cv_prog_cxx_g" >&5
2952 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2953 if test "$ac_test_CXXFLAGS" = set; then
2954 CXXFLAGS=$ac_save_CXXFLAGS
2955 elif test $ac_cv_prog_cxx_g = yes; then
2956 if test "$GXX" = yes; then
2962 if test "$GXX" = yes; then
2968 for ac_declaration in \
2970 '#include <stdlib.h>' \
2971 'extern "C" void std::exit (int) throw (); using std::exit;' \
2972 'extern "C" void std::exit (int); using std::exit;' \
2973 'extern "C" void exit (int) throw ();' \
2974 'extern "C" void exit (int);' \
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line 2978 "configure"
2979 #include "confdefs.h"
2990 rm -f conftest.$ac_objext
2991 if { (eval echo "$as_me:2991: \"$ac_compile\"") >&5
2992 (eval $ac_compile) 2>&5
2994 echo "$as_me:2994: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -s conftest.$ac_objext'
2997 { (eval echo "$as_me:2997: \"$ac_try\"") >&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3004 echo "$as_me: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3008 rm -f conftest.$ac_objext conftest.$ac_ext
3009 cat >conftest.$ac_ext <<_ACEOF
3010 #line 3010 "configure"
3011 #include "confdefs.h"
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:3022: \"$ac_compile\"") >&5
3023 (eval $ac_compile) 2>&5
3025 echo "$as_me:3025: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:3028: \"$ac_try\"") >&5
3031 echo "$as_me:3031: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3035 echo "$as_me: failed program was:" >&5
3036 cat conftest.$ac_ext >&5
3038 rm -f conftest.$ac_objext conftest.$ac_ext
3041 if test -n "$ac_declaration"; then
3042 echo '#ifdef __cplusplus' >>confdefs.h
3043 echo $ac_declaration >>confdefs.h
3044 echo '#endif' >>confdefs.h
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052 ac_main_return=return
3054 # autoconf 2.5x removed the error - by hardcoding it to g++.
3055 if test "$CXX" = "g++" ; then
3056 # Extract the first word of "g++", so it can be a program name with args.
3057 set dummy g++; ac_word=$2
3058 echo "$as_me:3058: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060 if test "${ac_cv_path_CXX+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3068 ac_save_IFS=$IFS; IFS=$ac_path_separator
3070 for ac_dir in $ac_dummy; do
3072 test -z "$ac_dir" && ac_dir=.
3073 if $as_executable_p "$ac_dir/$ac_word"; then
3074 ac_cv_path_CXX="$ac_dir/$ac_word"
3075 echo "$as_me:3075: found $ac_dir/$ac_word" >&5
3085 if test -n "$CXX"; then
3086 echo "$as_me:3086: result: $CXX" >&5
3087 echo "${ECHO_T}$CXX" >&6
3089 echo "$as_me:3089: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3094 if test "$CXX" = "g++" ; then
3095 { echo "$as_me:3095: WARNING: ignoring hardcoded g++" >&5
3096 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
3097 cf_with_cxx=no; CXX=""; GXX="";
3102 if test "$GXX" = yes; then
3103 echo "$as_me:3103: checking version of g++" >&5
3104 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
3105 GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3106 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3107 echo "$as_me:3107: result: $GXX_VERSION" >&5
3108 echo "${ECHO_T}$GXX_VERSION" >&6
3111 case $GXX_VERSION in
3113 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3115 { echo "$as_me:3115: WARNING: templates do not work" >&5
3116 echo "$as_me: WARNING: templates do not work" >&2;}
3120 echo "$as_me:3120: checking if you want to build C++ binding and demo" >&5
3121 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3123 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3124 if test "${with_cxx_binding+set}" = set; then
3125 withval="$with_cxx_binding"
3126 cf_with_cxx_binding=$withval
3128 cf_with_cxx_binding=$cf_with_cxx
3130 echo "$as_me:3130: result: $cf_with_cxx_binding" >&5
3131 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3133 echo "$as_me:3133: checking if you want to build with Ada95" >&5
3134 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3136 # Check whether --with-ada or --without-ada was given.
3137 if test "${with_ada+set}" = set; then
3139 cf_with_ada=$withval
3143 echo "$as_me:3143: result: $cf_with_ada" >&5
3144 echo "${ECHO_T}$cf_with_ada" >&6
3146 echo "$as_me:3146: checking if you want to install manpages" >&5
3147 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3149 # Check whether --with-manpages or --without-manpages was given.
3150 if test "${with_manpages+set}" = set; then
3151 withval="$with_manpages"
3152 cf_with_manpages=$withval
3154 cf_with_manpages=yes
3156 echo "$as_me:3156: result: $cf_with_manpages" >&5
3157 echo "${ECHO_T}$cf_with_manpages" >&6
3159 echo "$as_me:3159: checking if you want to build programs such as tic" >&5
3160 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3162 # Check whether --with-progs or --without-progs was given.
3163 if test "${with_progs+set}" = set; then
3164 withval="$with_progs"
3165 cf_with_progs=$withval
3169 echo "$as_me:3169: result: $cf_with_progs" >&5
3170 echo "${ECHO_T}$cf_with_progs" >&6
3172 echo "$as_me:3172: checking if you wish to install curses.h" >&5
3173 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3175 # Check whether --with-curses-h or --without-curses-h was given.
3176 if test "${with_curses_h+set}" = set; then
3177 withval="$with_curses_h"
3178 with_curses_h=$withval
3182 echo "$as_me:3182: result: $with_curses_h" >&5
3183 echo "${ECHO_T}$with_curses_h" >&6
3185 modules_to_build="ncurses"
3186 if test "X$cf_with_progs" != Xno ; then
3187 modules_to_build="$modules_to_build progs tack"
3189 modules_to_build="$modules_to_build panel menu form"
3191 test "$program_prefix" != NONE &&
3192 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3193 # Use a double $ so make ignores it.
3194 test "$program_suffix" != NONE &&
3195 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3196 # Double any \ or $. echo might interpret backslashes.
3197 # By default was `s,x,x', remove it if useless.
3198 cat <<\_ACEOF >conftest.sed
3199 s/[\\$]/&&/g;s/;s,x,x,$//
3201 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3204 for ac_prog in mawk gawk nawk awk
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy $ac_prog; ac_word=$2
3208 echo "$as_me:3208: checking for $ac_word" >&5
3209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3210 if test "${ac_cv_prog_AWK+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 if test -n "$AWK"; then
3214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3216 ac_save_IFS=$IFS; IFS=$ac_path_separator
3218 for ac_dir in $ac_dummy; do
3220 test -z "$ac_dir" && ac_dir=.
3221 $as_executable_p "$ac_dir/$ac_word" || continue
3222 ac_cv_prog_AWK="$ac_prog"
3223 echo "$as_me:3223: found $ac_dir/$ac_word" >&5
3230 if test -n "$AWK"; then
3231 echo "$as_me:3231: result: $AWK" >&5
3232 echo "${ECHO_T}$AWK" >&6
3234 echo "$as_me:3234: result: no" >&5
3235 echo "${ECHO_T}no" >&6
3238 test -n "$AWK" && break
3241 test -z "$AWK" && { { echo "$as_me:3241: error: No awk program found" >&5
3242 echo "$as_me: error: No awk program found" >&2;}
3243 { (exit 1); exit 1; }; }
3245 echo "$as_me:3245: checking for egrep" >&5
3246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3247 if test "${ac_cv_prog_egrep+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3251 then ac_cv_prog_egrep='grep -E'
3252 else ac_cv_prog_egrep='egrep'
3255 echo "$as_me:3255: result: $ac_cv_prog_egrep" >&5
3256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3257 EGREP=$ac_cv_prog_egrep
3259 test -z "$EGREP" && { { echo "$as_me:3259: error: No egrep program found" >&5
3260 echo "$as_me: error: No egrep program found" >&2;}
3261 { (exit 1); exit 1; }; }
3263 # Find a good install program. We prefer a C program (faster),
3264 # so one script is as good as another. But avoid the broken or
3265 # incompatible versions:
3266 # SysV /etc/install, /usr/sbin/install
3267 # SunOS /usr/etc/install
3268 # IRIX /sbin/install
3270 # AmigaOS /C/install, which installs bootblocks on floppy discs
3271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3274 # ./install, which can be erroneously created by make from ./install.sh.
3275 echo "$as_me:3275: checking for a BSD compatible install" >&5
3276 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3277 if test -z "$INSTALL"; then
3278 if test "${ac_cv_path_install+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 ac_save_IFS=$IFS; IFS=$ac_path_separator
3282 for ac_dir in $PATH; do
3284 # Account for people who put trailing slashes in PATH elements.
3286 / | ./ | .// | /cC/* \
3287 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3290 # OSF1 and SCO ODT 3.0 have their own names for install.
3291 # Don't use installbsd from OSF since it installs stuff as root
3293 for ac_prog in ginstall scoinst install; do
3294 if $as_executable_p "$ac_dir/$ac_prog"; then
3295 if test $ac_prog = install &&
3296 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3297 # AIX install. It has an incompatible calling convention.
3299 elif test $ac_prog = install &&
3300 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3301 # program-specific install script used by HP pwplus--don't use.
3304 ac_cv_path_install="$ac_dir/$ac_prog -c"
3314 if test "${ac_cv_path_install+set}" = set; then
3315 INSTALL=$ac_cv_path_install
3317 # As a last resort, use the slow shell script. We don't cache a
3318 # path for INSTALL within a source directory, because that will
3319 # break other packages using the cache if that directory is
3320 # removed, or if the path is relative.
3321 INSTALL=$ac_install_sh
3324 echo "$as_me:3324: result: $INSTALL" >&5
3325 echo "${ECHO_T}$INSTALL" >&6
3327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3328 # It thinks the first close brace ends the variable substitution.
3329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3339 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3340 test -z "$cf_dir" && cf_dir=.
3341 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3345 for ac_prog in tdlint lint alint splint lclint
3347 # Extract the first word of "$ac_prog", so it can be a program name with args.
3348 set dummy $ac_prog; ac_word=$2
3349 echo "$as_me:3349: checking for $ac_word" >&5
3350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3351 if test "${ac_cv_prog_LINT+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 if test -n "$LINT"; then
3355 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3357 ac_save_IFS=$IFS; IFS=$ac_path_separator
3359 for ac_dir in $ac_dummy; do
3361 test -z "$ac_dir" && ac_dir=.
3362 $as_executable_p "$ac_dir/$ac_word" || continue
3363 ac_cv_prog_LINT="$ac_prog"
3364 echo "$as_me:3364: found $ac_dir/$ac_word" >&5
3370 LINT=$ac_cv_prog_LINT
3371 if test -n "$LINT"; then
3372 echo "$as_me:3372: result: $LINT" >&5
3373 echo "${ECHO_T}$LINT" >&6
3375 echo "$as_me:3375: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3379 test -n "$LINT" && break
3382 echo "$as_me:3382: checking whether ln -s works" >&5
3383 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3385 if test "$LN_S" = "ln -s"; then
3386 echo "$as_me:3386: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3389 echo "$as_me:3389: result: no, using $LN_S" >&5
3390 echo "${ECHO_T}no, using $LN_S" >&6
3393 echo "$as_me:3393: checking for long file names" >&5
3394 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3395 if test "${ac_cv_sys_long_file_names+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 ac_cv_sys_long_file_names=yes
3399 # Test for long file names in all the places we know might matter:
3400 # . the current directory, where building will happen
3401 # $prefix/lib where we will be installing things
3402 # $exec_prefix/lib likewise
3403 # eval it to expand exec_prefix.
3404 # $TMPDIR if set, where it might want to write temporary files
3405 # if $TMPDIR is not set:
3406 # /tmp where it might want to write temporary files
3409 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3412 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3414 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3415 test -d $ac_dir || continue
3416 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3417 ac_xdir=$ac_dir/cf$$
3418 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3419 ac_tf1=$ac_xdir/conftest9012345
3420 ac_tf2=$ac_xdir/conftest9012346
3421 (echo 1 >$ac_tf1) 2>/dev/null
3422 (echo 2 >$ac_tf2) 2>/dev/null
3423 ac_val=`cat $ac_tf1 2>/dev/null`
3424 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3425 ac_cv_sys_long_file_names=no
3426 rm -rf $ac_xdir 2>/dev/null
3429 rm -rf $ac_xdir 2>/dev/null
3432 echo "$as_me:3432: result: $ac_cv_sys_long_file_names" >&5
3433 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3434 if test $ac_cv_sys_long_file_names = yes; then
3436 cat >>confdefs.h <<\EOF
3437 #define HAVE_LONG_FILE_NAMES 1
3442 # if we find pkg-config, check if we should install the ".pc" files.
3444 echo "$as_me:3444: checking if you want to use pkg-config" >&5
3445 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3447 # Check whether --with-pkg-config or --without-pkg-config was given.
3448 if test "${with_pkg_config+set}" = set; then
3449 withval="$with_pkg_config"
3450 cf_pkg_config=$withval
3454 echo "$as_me:3454: result: $cf_pkg_config" >&5
3455 echo "${ECHO_T}$cf_pkg_config" >&6
3457 case $cf_pkg_config in #(vi
3462 # Extract the first word of "pkg-config", so it can be a program name with args.
3463 set dummy pkg-config; ac_word=$2
3464 echo "$as_me:3464: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3474 ac_save_IFS=$IFS; IFS=$ac_path_separator
3476 for ac_dir in $ac_dummy; do
3478 test -z "$ac_dir" && ac_dir=.
3479 if $as_executable_p "$ac_dir/$ac_word"; then
3480 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3481 echo "$as_me:3481: found $ac_dir/$ac_word" >&5
3486 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
3490 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3492 if test -n "$PKG_CONFIG"; then
3493 echo "$as_me:3493: result: $PKG_CONFIG" >&5
3494 echo "${ECHO_T}$PKG_CONFIG" >&6
3496 echo "$as_me:3496: result: no" >&5
3497 echo "${ECHO_T}no" >&6
3506 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3507 if test "$PKG_CONFIG" != none ; then
3509 if test "x$prefix" != xNONE; then
3510 cf_path_syntax="$prefix"
3512 cf_path_syntax="$ac_default_prefix"
3515 case ".$PKG_CONFIG" in #(vi
3516 .\$\(*\)*|.\'*\'*) #(vi
3520 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3523 eval PKG_CONFIG="$PKG_CONFIG"
3524 case ".$PKG_CONFIG" in #(vi
3526 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3531 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3534 { { echo "$as_me:3534: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3535 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3536 { (exit 1); exit 1; }; }
3542 if test "$PKG_CONFIG" != no ; then
3543 echo "$as_me:3543: checking if we should install .pc files for $PKG_CONFIG" >&5
3544 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3546 # Leave this as something that can be overridden in the environment.
3547 if test -z "$PKG_CONFIG_LIBDIR" ; then
3548 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
3550 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
3551 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
3553 # Check whether --enable-pc-files or --disable-pc-files was given.
3554 if test "${enable_pc_files+set}" = set; then
3555 enableval="$enable_pc_files"
3556 enable_pc_files=$enableval
3560 echo "$as_me:3560: result: $enable_pc_files" >&5
3561 echo "${ECHO_T}$enable_pc_files" >&6
3563 echo "$as_me:3563: result: no" >&5
3564 echo "${ECHO_T}no" >&6
3565 { echo "$as_me:3565: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
3566 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
3571 echo "$as_me:3571: checking if we should assume mixed-case filenames" >&5
3572 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3574 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3575 if test "${enable_mixed_case+set}" = set; then
3576 enableval="$enable_mixed_case"
3577 enable_mixedcase=$enableval
3579 enable_mixedcase=auto
3581 echo "$as_me:3581: result: $enable_mixedcase" >&5
3582 echo "${ECHO_T}$enable_mixedcase" >&6
3583 if test "$enable_mixedcase" = "auto" ; then
3585 echo "$as_me:3585: checking if filesystem supports mixed-case filenames" >&5
3586 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3587 if test "${cf_cv_mixedcase+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 if test "$cross_compiling" = yes ; then
3592 case $target_alias in #(vi
3593 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3601 rm -f conftest CONFTEST
3603 if test -f CONFTEST ; then
3608 rm -f conftest CONFTEST
3612 echo "$as_me:3612: result: $cf_cv_mixedcase" >&5
3613 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3614 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3615 #define MIXEDCASE_FILENAMES 1
3619 cf_cv_mixedcase=$enable_mixedcase
3620 if test "$enable_mixedcase" = "yes" ; then
3621 cat >>confdefs.h <<\EOF
3622 #define MIXEDCASE_FILENAMES 1
3628 # do this after mixed-case option (tags/TAGS is not as important as tic).
3629 echo "$as_me:3629: checking whether ${MAKE-make} sets \${MAKE}" >&5
3630 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3631 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3632 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 cat >conftest.make <<\EOF
3637 @echo 'ac_maketemp="${MAKE}"'
3639 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3640 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3641 if test -n "$ac_maketemp"; then
3642 eval ac_cv_prog_make_${ac_make}_set=yes
3644 eval ac_cv_prog_make_${ac_make}_set=no
3648 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3649 echo "$as_me:3649: result: yes" >&5
3650 echo "${ECHO_T}yes" >&6
3653 echo "$as_me:3653: result: no" >&5
3654 echo "${ECHO_T}no" >&6
3655 SET_MAKE="MAKE=${MAKE-make}"
3658 for ac_prog in exctags ctags
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 echo "$as_me:3662: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_prog_CTAGS+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 if test -n "$CTAGS"; then
3668 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3670 ac_save_IFS=$IFS; IFS=$ac_path_separator
3672 for ac_dir in $ac_dummy; do
3674 test -z "$ac_dir" && ac_dir=.
3675 $as_executable_p "$ac_dir/$ac_word" || continue
3676 ac_cv_prog_CTAGS="$ac_prog"
3677 echo "$as_me:3677: found $ac_dir/$ac_word" >&5
3683 CTAGS=$ac_cv_prog_CTAGS
3684 if test -n "$CTAGS"; then
3685 echo "$as_me:3685: result: $CTAGS" >&5
3686 echo "${ECHO_T}$CTAGS" >&6
3688 echo "$as_me:3688: result: no" >&5
3689 echo "${ECHO_T}no" >&6
3692 test -n "$CTAGS" && break
3695 for ac_prog in exetags etags
3697 # Extract the first word of "$ac_prog", so it can be a program name with args.
3698 set dummy $ac_prog; ac_word=$2
3699 echo "$as_me:3699: checking for $ac_word" >&5
3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3701 if test "${ac_cv_prog_ETAGS+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 if test -n "$ETAGS"; then
3705 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3707 ac_save_IFS=$IFS; IFS=$ac_path_separator
3709 for ac_dir in $ac_dummy; do
3711 test -z "$ac_dir" && ac_dir=.
3712 $as_executable_p "$ac_dir/$ac_word" || continue
3713 ac_cv_prog_ETAGS="$ac_prog"
3714 echo "$as_me:3714: found $ac_dir/$ac_word" >&5
3720 ETAGS=$ac_cv_prog_ETAGS
3721 if test -n "$ETAGS"; then
3722 echo "$as_me:3722: result: $ETAGS" >&5
3723 echo "${ECHO_T}$ETAGS" >&6
3725 echo "$as_me:3725: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3729 test -n "$ETAGS" && break
3732 # Extract the first word of "${CTAGS-ctags}", so it can be a program name with args.
3733 set dummy ${CTAGS-ctags}; ac_word=$2
3734 echo "$as_me:3734: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if test -n "$MAKE_LOWER_TAGS"; then
3740 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3742 ac_save_IFS=$IFS; IFS=$ac_path_separator
3744 for ac_dir in $ac_dummy; do
3746 test -z "$ac_dir" && ac_dir=.
3747 $as_executable_p "$ac_dir/$ac_word" || continue
3748 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3749 echo "$as_me:3749: found $ac_dir/$ac_word" >&5
3753 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3756 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3757 if test -n "$MAKE_LOWER_TAGS"; then
3758 echo "$as_me:3758: result: $MAKE_LOWER_TAGS" >&5
3759 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3761 echo "$as_me:3761: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3765 if test "$cf_cv_mixedcase" = yes ; then
3766 # Extract the first word of "${ETAGS-etags}", so it can be a program name with args.
3767 set dummy ${ETAGS-etags}; ac_word=$2
3768 echo "$as_me:3768: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 if test -n "$MAKE_UPPER_TAGS"; then
3774 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3776 ac_save_IFS=$IFS; IFS=$ac_path_separator
3778 for ac_dir in $ac_dummy; do
3780 test -z "$ac_dir" && ac_dir=.
3781 $as_executable_p "$ac_dir/$ac_word" || continue
3782 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3783 echo "$as_me:3783: found $ac_dir/$ac_word" >&5
3787 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3790 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3791 if test -n "$MAKE_UPPER_TAGS"; then
3792 echo "$as_me:3792: result: $MAKE_UPPER_TAGS" >&5
3793 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3795 echo "$as_me:3795: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3803 if test "$MAKE_UPPER_TAGS" = yes ; then
3809 if test "$MAKE_LOWER_TAGS" = yes ; then
3815 echo "$as_me:3815: checking for makeflags variable" >&5
3816 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3817 if test "${cf_cv_makeflags+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3824 cat >cf_makeflags.tmp <<CF_EOF
3827 @ echo '.$cf_option'
3829 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3830 case "$cf_result" in
3832 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3833 case "$cf_result" in
3834 .*CC=*) cf_cv_makeflags=
3836 *) cf_cv_makeflags=$cf_option
3842 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3846 rm -f cf_makeflags.tmp
3849 echo "$as_me:3849: result: $cf_cv_makeflags" >&5
3850 echo "${ECHO_T}$cf_cv_makeflags" >&6
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3855 echo "$as_me:3855: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_prog_RANLIB+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 if test -n "$RANLIB"; then
3861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3863 ac_save_IFS=$IFS; IFS=$ac_path_separator
3865 for ac_dir in $ac_dummy; do
3867 test -z "$ac_dir" && ac_dir=.
3868 $as_executable_p "$ac_dir/$ac_word" || continue
3869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3870 echo "$as_me:3870: found $ac_dir/$ac_word" >&5
3876 RANLIB=$ac_cv_prog_RANLIB
3877 if test -n "$RANLIB"; then
3878 echo "$as_me:3878: result: $RANLIB" >&5
3879 echo "${ECHO_T}$RANLIB" >&6
3881 echo "$as_me:3881: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3886 if test -z "$ac_cv_prog_RANLIB"; then
3887 ac_ct_RANLIB=$RANLIB
3888 # Extract the first word of "ranlib", so it can be a program name with args.
3889 set dummy ranlib; ac_word=$2
3890 echo "$as_me:3890: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 if test -n "$ac_ct_RANLIB"; then
3896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3898 ac_save_IFS=$IFS; IFS=$ac_path_separator
3900 for ac_dir in $ac_dummy; do
3902 test -z "$ac_dir" && ac_dir=.
3903 $as_executable_p "$ac_dir/$ac_word" || continue
3904 ac_cv_prog_ac_ct_RANLIB="ranlib"
3905 echo "$as_me:3905: found $ac_dir/$ac_word" >&5
3909 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3913 if test -n "$ac_ct_RANLIB"; then
3914 echo "$as_me:3914: result: $ac_ct_RANLIB" >&5
3915 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3917 echo "$as_me:3917: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3921 RANLIB=$ac_ct_RANLIB
3923 RANLIB="$ac_cv_prog_RANLIB"
3926 if test -n "$ac_tool_prefix"; then
3927 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3928 set dummy ${ac_tool_prefix}ld; ac_word=$2
3929 echo "$as_me:3929: checking for $ac_word" >&5
3930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3931 if test "${ac_cv_prog_LD+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 if test -n "$LD"; then
3935 ac_cv_prog_LD="$LD" # Let the user override the test.
3937 ac_save_IFS=$IFS; IFS=$ac_path_separator
3939 for ac_dir in $ac_dummy; do
3941 test -z "$ac_dir" && ac_dir=.
3942 $as_executable_p "$ac_dir/$ac_word" || continue
3943 ac_cv_prog_LD="${ac_tool_prefix}ld"
3944 echo "$as_me:3944: found $ac_dir/$ac_word" >&5
3951 if test -n "$LD"; then
3952 echo "$as_me:3952: result: $LD" >&5
3953 echo "${ECHO_T}$LD" >&6
3955 echo "$as_me:3955: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3960 if test -z "$ac_cv_prog_LD"; then
3962 # Extract the first word of "ld", so it can be a program name with args.
3963 set dummy ld; ac_word=$2
3964 echo "$as_me:3964: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 if test -n "$ac_ct_LD"; then
3970 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3972 ac_save_IFS=$IFS; IFS=$ac_path_separator
3974 for ac_dir in $ac_dummy; do
3976 test -z "$ac_dir" && ac_dir=.
3977 $as_executable_p "$ac_dir/$ac_word" || continue
3978 ac_cv_prog_ac_ct_LD="ld"
3979 echo "$as_me:3979: found $ac_dir/$ac_word" >&5
3983 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3986 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3987 if test -n "$ac_ct_LD"; then
3988 echo "$as_me:3988: result: $ac_ct_LD" >&5
3989 echo "${ECHO_T}$ac_ct_LD" >&6
3991 echo "$as_me:3991: result: no" >&5
3992 echo "${ECHO_T}no" >&6
4000 if test -n "$ac_tool_prefix"; then
4001 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}ar; ac_word=$2
4003 echo "$as_me:4003: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_prog_AR+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 if test -n "$AR"; then
4009 ac_cv_prog_AR="$AR" # Let the user override the test.
4011 ac_save_IFS=$IFS; IFS=$ac_path_separator
4013 for ac_dir in $ac_dummy; do
4015 test -z "$ac_dir" && ac_dir=.
4016 $as_executable_p "$ac_dir/$ac_word" || continue
4017 ac_cv_prog_AR="${ac_tool_prefix}ar"
4018 echo "$as_me:4018: found $ac_dir/$ac_word" >&5
4025 if test -n "$AR"; then
4026 echo "$as_me:4026: result: $AR" >&5
4027 echo "${ECHO_T}$AR" >&6
4029 echo "$as_me:4029: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4034 if test -z "$ac_cv_prog_AR"; then
4036 # Extract the first word of "ar", so it can be a program name with args.
4037 set dummy ar; ac_word=$2
4038 echo "$as_me:4038: checking for $ac_word" >&5
4039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4040 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if test -n "$ac_ct_AR"; then
4044 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4046 ac_save_IFS=$IFS; IFS=$ac_path_separator
4048 for ac_dir in $ac_dummy; do
4050 test -z "$ac_dir" && ac_dir=.
4051 $as_executable_p "$ac_dir/$ac_word" || continue
4052 ac_cv_prog_ac_ct_AR="ar"
4053 echo "$as_me:4053: found $ac_dir/$ac_word" >&5
4057 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4060 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4061 if test -n "$ac_ct_AR"; then
4062 echo "$as_me:4062: result: $ac_ct_AR" >&5
4063 echo "${ECHO_T}$ac_ct_AR" >&6
4065 echo "$as_me:4065: result: no" >&5