2 # From configure.in Revision: 1.574 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --enable-mixed-case tic should assume mixed-case filenames
718 --with-install-prefix prefixes actual install-location ($DESTDIR)
719 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
720 --with-build-cc=XXX the build C compiler ($BUILD_CC)
721 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
722 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
723 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
724 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
725 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
726 Options to Specify the Libraries Built/Used:
727 --disable-libtool-version enable to use libtool's incompatible naming scheme
728 --with-libtool generate libraries with libtool
729 --with-shared generate shared-libraries
730 --with-normal generate normal-libraries (default)
731 --with-debug generate debug-libraries (default)
732 --with-profile generate profile-libraries
733 --with-cxx-shared generate C++ shared-libraries
734 --with-lib-prefix override library-prefix
735 --with-termlib generate separate terminfo library
736 --with-ticlib generate separate tic library
737 --with-gpm use Alessandro Rubini's GPM library
738 --without-dlsym do not use dlsym() to load GPM dynamically
739 --with-sysmouse use sysmouse (FreeBSD console)
740 --enable-rpath use rpath option when generating shared libraries
741 --disable-relink relink shared libraries during install
742 --with-shlib-version=X Specify rel or abi version for shared libs
743 --disable-rpath-hack don't add rpath options for additional libraries
744 Fine-Tuning Your Configuration:
745 --disable-overwrite leave out the link to -lcurses
746 --disable-database do not use terminfo, only fallbacks/termcap
747 --with-database=XXX specify terminfo source to install
748 --with-hashed-db specify hashed-database library
749 --with-fallbacks=XXX specify list of fallback terminal descriptions
750 --without-xterm-new specify if xterm terminfo should be old version
751 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
752 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
753 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
754 --disable-big-core assume machine has little memory
755 --disable-big-strings assume compiler has only standard-size strings
756 --enable-termcap compile in termcap fallback support
757 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
758 --enable-getcap fast termcap load, no xrefs to terminfo
759 --enable-getcap-cache cache translated termcaps in ~/.terminfo
760 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
761 --disable-root-environ restrict environment when running as root
762 --enable-symlinks make tic use symbolic links not hard links
763 --enable-broken_linker compile with broken-linker support code
764 --enable-bsdpad recognize BSD-style prefix padding
765 --enable-widec compile with wide-char/UTF-8 code
766 --disable-lp64 allow chtype to be long (ignore _LP64)
767 --disable-largefile omit support for large files
768 --disable-tparm-varargs compile tparm() without varargs interface
769 --disable-tic-depends link tic library without explicit dependency on ncurses library
770 --with-bool=TYPE override fallback type of bool variable
771 --with-caps=alt compile with alternate Caps file
772 --with-chtype=TYPE override type of chtype
773 --with-ospeed=TYPE override type of ospeed variable
774 --with-mmask-t=TYPE override type of mmask_t
775 --with-ccharw-max=XXX override size CCHARW_MAX
776 --with-tparm-arg=TYPE override parameter type of tparm
777 --with-rcs-ids compile-in RCS identifiers
778 Options to Specify How Manpages are Installed:
779 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
780 optionally formatted/catonly, e.g., gzip,formatted
781 --with-manpage-renames specify manpage-renaming
782 --with-manpage-aliases specify manpage-aliases using .so
783 --with-manpage-symlinks specify manpage-aliases using symlinks
784 --with-manpage-tbl specify manpage processing with tbl
786 --disable-ext-funcs disable function-extensions
787 --enable-sp-funcs enable experimental SCREEN-extensions
788 --enable-term-driver enable experimental terminal-driver
789 --enable-const compile with extra/non-standard const
790 --enable-ext-colors compile for 256-color support
791 --enable-ext-mouse compile for extended mouse-encoding
792 --enable-no-padding compile with $NCURSES_NO_PADDING code
793 --enable-signed-char compile using signed Boolean's in term.h
794 --enable-sigwinch compile with SIGWINCH handler
795 --enable-tcap-names compile with user-definable terminal capabilities
797 --without-develop disable development options
798 --enable-hard-tabs compile with hard-tabs code
799 --enable-xmc-glitch compile with support for xmc (magic-cookie)
801 --disable-assumed-color do not assume anything about default-colors
802 --disable-hashmap compile without hashmap scrolling-optimization
803 --enable-colorfgbg compile-in experimental $COLORFGBG code
804 --enable-interop compile-in experimental interop bindings
805 --with-pthread use POSIX thread library
806 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
807 --enable-weak-symbols enable weak-symbols for pthreads
808 --enable-reentrant compile with experimental reentrant code
809 --with-wrap-prefix=XXX override prefix used for public variables
810 --enable-safe-sprintf compile with experimental safe-sprintf code
811 --disable-scroll-hints compile without scroll-hints code
812 --enable-wgetch-events compile with experimental wgetch-events code
813 Testing/development Options:
814 --disable-echo do not display "compiling" commands
815 --enable-warnings build: turn on GCC compiler warnings
816 --enable-string-hacks work around bogus compiler/loader warnings
817 --enable-assertions test: turn on generation of assertion code
818 --with-dmalloc test: use Gray Watson's dmalloc library
819 --with-dbmalloc test: use Conor Cahill's dbmalloc library
820 --with-valgrind test: use valgrind
821 --disable-leaks test: free permanent memory, analyze leaks
822 --enable-expanded test: generate functions for certain macros
823 --disable-macros test: use functions rather than macros
824 --with-trace test: add trace() function to all models of ncurses
825 Ada95 Binding Options:
826 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
827 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
828 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
829 --with-ada-sharedlib=XX build Ada95 shared-library
831 Some influential environment variables:
832 CC C compiler command
833 CFLAGS C compiler flags
834 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
835 nonstandard directory <lib dir>
836 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
837 headers in a nonstandard directory <include dir>
839 CXX C++ compiler command
840 CXXFLAGS C++ compiler flags
841 CXXCPP C++ preprocessor
843 Use these variables to override the choices made by `configure' or to help
844 it to find libraries and programs with nonstandard names/locations.
849 if test "$ac_init_help" = "recursive"; then
850 # If there are subdirs, report their specific --help.
852 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
854 # A "../" for each directory in /$ac_subdir.
855 ac_dots=`echo $ac_subdir |
856 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
859 .) # No --srcdir option. We are building in place.
860 ac_sub_srcdir=$srcdir ;;
861 [\\/]* | ?:[\\/]* ) # Absolute path.
862 ac_sub_srcdir=$srcdir/$ac_subdir ;;
864 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
867 # Check for guested configure; otherwise get Cygnus style configure.
868 if test -f $ac_sub_srcdir/configure.gnu; then
870 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
871 elif test -f $ac_sub_srcdir/configure; then
873 $SHELL $ac_sub_srcdir/configure --help=recursive
874 elif test -f $ac_sub_srcdir/configure.ac ||
875 test -f $ac_sub_srcdir/configure.in; then
879 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
885 test -n "$ac_init_help" && exit 0
886 if $ac_init_version; then
889 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
890 Free Software Foundation, Inc.
891 This configure script is free software; the Free Software Foundation
892 gives unlimited permission to copy, distribute and modify it.
898 This file contains any messages produced by compilers while
899 running configure, to aid debugging if configure makes a mistake.
901 It was created by $as_me, which was
902 generated by GNU Autoconf 2.52.20121002. Invocation command line was
913 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
914 uname -m = `(uname -m) 2>/dev/null || echo unknown`
915 uname -r = `(uname -r) 2>/dev/null || echo unknown`
916 uname -s = `(uname -s) 2>/dev/null || echo unknown`
917 uname -v = `(uname -v) 2>/dev/null || echo unknown`
919 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
920 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
922 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
923 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
924 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
925 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
926 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
927 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
928 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
942 # Keep a trace of the command line.
943 # Strip out --no-create and --no-recursion so they do not pile up.
944 # Also quote any args containing shell meta-characters.
950 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
951 | --no-cr | --no-c) ;;
952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
954 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
956 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
958 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
961 # Get rid of the leading space.
964 # When interrupted or exit'd, cleanup temporary files, and complete
965 # config.log. We remove comments because anyway the quotes in there
966 # would cause problems or look ugly.
968 # Save into config.log some information that might help in debugging.
970 echo "## ----------------- ##" >&5
971 echo "## Cache variables. ##" >&5
972 echo "## ----------------- ##" >&5
974 # The following way of writing the cache mishandles newlines in values,
977 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
980 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
989 sed "/^$/d" confdefs.h >conftest.log
990 if test -s conftest.log; then
992 echo "## ------------ ##" >&5
993 echo "## confdefs.h. ##" >&5
994 echo "## ------------ ##" >&5
999 test "$ac_signal" != 0 &&
1000 echo "$as_me: caught signal $ac_signal" >&5
1001 echo "$as_me: exit $exit_status" >&5
1002 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1005 for ac_signal in 1 2 13 15; do
1006 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1010 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1011 rm -rf conftest* confdefs.h
1012 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1015 # Let the site file select an alternate cache file if it wants to.
1016 # Prefer explicitly selected file to automatically selected ones.
1017 if test -z "$CONFIG_SITE"; then
1018 if test "x$prefix" != xNONE; then
1019 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1021 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1024 for ac_site_file in $CONFIG_SITE; do
1025 if test -r "$ac_site_file"; then
1026 { echo "$as_me:1026: loading site script $ac_site_file" >&5
1027 echo "$as_me: loading site script $ac_site_file" >&6;}
1028 cat "$ac_site_file" >&5
1033 if test -r "$cache_file"; then
1034 # Some versions of bash will fail to source /dev/null (special
1035 # files actually), so we avoid doing that.
1036 if test -f "$cache_file"; then
1037 { echo "$as_me:1037: loading cache $cache_file" >&5
1038 echo "$as_me: loading cache $cache_file" >&6;}
1040 [\\/]* | ?:[\\/]* ) . $cache_file;;
1041 *) . ./$cache_file;;
1045 { echo "$as_me:1045: creating cache $cache_file" >&5
1046 echo "$as_me: creating cache $cache_file" >&6;}
1050 # Check that the precious variables saved in the cache have kept the same
1052 ac_cache_corrupted=false
1053 for ac_var in `(set) 2>&1 |
1054 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1055 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1056 eval ac_new_set=\$ac_env_${ac_var}_set
1057 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1058 eval ac_new_val="\$ac_env_${ac_var}_value"
1059 case $ac_old_set,$ac_new_set in
1061 { echo "$as_me:1061: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1062 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1063 ac_cache_corrupted=: ;;
1065 { echo "$as_me:1065: error: \`$ac_var' was not set in the previous run" >&5
1066 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1067 ac_cache_corrupted=: ;;
1070 if test "x$ac_old_val" != "x$ac_new_val"; then
1071 { echo "$as_me:1071: error: \`$ac_var' has changed since the previous run:" >&5
1072 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1073 { echo "$as_me:1073: former value: $ac_old_val" >&5
1074 echo "$as_me: former value: $ac_old_val" >&2;}
1075 { echo "$as_me:1075: current value: $ac_new_val" >&5
1076 echo "$as_me: current value: $ac_new_val" >&2;}
1077 ac_cache_corrupted=:
1080 # Pass precious variables to config.status. It doesn't matter if
1081 # we pass some twice (in addition to the command line arguments).
1082 if test "$ac_new_set" = set; then
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1086 ac_configure_args="$ac_configure_args '$ac_arg'"
1088 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1093 if $ac_cache_corrupted; then
1094 { echo "$as_me:1094: error: changes in the environment can compromise the build" >&5
1095 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1096 { { echo "$as_me:1096: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1097 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1098 { (exit 1); exit 1; }; }
1102 ac_cpp='$CPP $CPPFLAGS'
1103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1106 ac_main_return=return
1108 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1109 *c*,-n*) ECHO_N= ECHO_C='
1111 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1112 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1114 echo "#! $SHELL" >conftest.sh
1115 echo "exit 0" >>conftest.sh
1116 chmod +x conftest.sh
1117 if { (echo "$as_me:1117: PATH=\".;.\"; conftest.sh") >&5
1118 (PATH=".;."; conftest.sh) 2>&5
1120 echo "$as_me:1120: \$? = $ac_status" >&5
1121 (exit $ac_status); }; then
1122 ac_path_separator=';'
1126 PATH_SEPARATOR="$ac_path_separator"
1129 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1133 echo "$as_me:1133: checking for egrep" >&5
1134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1135 if test "${ac_cv_prog_egrep+set}" = set; then
1136 echo $ECHO_N "(cached) $ECHO_C" >&6
1138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1139 then ac_cv_prog_egrep='grep -E'
1140 else ac_cv_prog_egrep='egrep'
1143 echo "$as_me:1143: result: $ac_cv_prog_egrep" >&5
1144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1145 EGREP=$ac_cv_prog_egrep
1147 test -z "$EGREP" && { { echo "$as_me:1147: error: No egrep program found" >&5
1148 echo "$as_me: error: No egrep program found" >&2;}
1149 { (exit 1); exit 1; }; }
1151 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1152 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1153 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1154 cf_cv_abi_version=${NCURSES_MAJOR}
1155 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1156 cf_cv_timestamp=`date`
1157 echo "$as_me:1157: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1158 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1160 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1162 # Check whether --with-rel-version or --without-rel-version was given.
1163 if test "${with_rel_version+set}" = set; then
1164 withval="$with_rel_version"
1165 { echo "$as_me:1165: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1166 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1167 cf_cv_rel_version=$withval
1170 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1171 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1173 if test -n "$NCURSES_MAJOR" ; then
1174 case $NCURSES_MAJOR in #(vi
1178 { { echo "$as_me:1178: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1179 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1180 { (exit 1); exit 1; }; }
1184 { { echo "$as_me:1184: error: Release major-version value is empty" >&5
1185 echo "$as_me: error: Release major-version value is empty" >&2;}
1186 { (exit 1); exit 1; }; }
1189 if test -n "$NCURSES_MINOR" ; then
1190 case $NCURSES_MINOR in #(vi
1194 { { echo "$as_me:1194: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1195 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1196 { (exit 1); exit 1; }; }
1200 { { echo "$as_me:1200: error: Release minor-version value is empty" >&5
1201 echo "$as_me: error: Release minor-version value is empty" >&2;}
1202 { (exit 1); exit 1; }; }
1205 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1207 # Check whether --with-abi-version or --without-abi-version was given.
1208 if test "${with_abi_version+set}" = set; then
1209 withval="$with_abi_version"
1210 { echo "$as_me:1210: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1211 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1212 cf_cv_abi_version=$withval
1215 if test -n "$cf_cv_abi_version" ; then
1216 case $cf_cv_abi_version in #(vi
1220 { { echo "$as_me:1220: error: ABI version is not a number: $cf_cv_abi_version" >&5
1221 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1222 { (exit 1); exit 1; }; }
1226 { { echo "$as_me:1226: error: ABI version value is empty" >&5
1227 echo "$as_me: error: ABI version value is empty" >&2;}
1228 { (exit 1); exit 1; }; }
1232 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1233 if test -f $ac_dir/install-sh; then
1235 ac_install_sh="$ac_aux_dir/install-sh -c"
1237 elif test -f $ac_dir/install.sh; then
1239 ac_install_sh="$ac_aux_dir/install.sh -c"
1241 elif test -f $ac_dir/shtool; then
1243 ac_install_sh="$ac_aux_dir/shtool install -c"
1247 if test -z "$ac_aux_dir"; then
1248 { { echo "$as_me:1248: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1249 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1250 { (exit 1); exit 1; }; }
1252 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1253 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1254 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1256 # Make sure we can run config.sub.
1257 $ac_config_sub sun4 >/dev/null 2>&1 ||
1258 { { echo "$as_me:1258: error: cannot run $ac_config_sub" >&5
1259 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1260 { (exit 1); exit 1; }; }
1262 echo "$as_me:1262: checking build system type" >&5
1263 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1264 if test "${ac_cv_build+set}" = set; then
1265 echo $ECHO_N "(cached) $ECHO_C" >&6
1267 ac_cv_build_alias=$build_alias
1268 test -z "$ac_cv_build_alias" &&
1269 ac_cv_build_alias=`$ac_config_guess`
1270 test -z "$ac_cv_build_alias" &&
1271 { { echo "$as_me:1271: error: cannot guess build type; you must specify one" >&5
1272 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1273 { (exit 1); exit 1; }; }
1274 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1275 { { echo "$as_me:1275: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1276 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1277 { (exit 1); exit 1; }; }
1280 echo "$as_me:1280: result: $ac_cv_build" >&5
1281 echo "${ECHO_T}$ac_cv_build" >&6
1283 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1284 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1285 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1287 echo "$as_me:1287: checking host system type" >&5
1288 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1289 if test "${ac_cv_host+set}" = set; then
1290 echo $ECHO_N "(cached) $ECHO_C" >&6
1292 ac_cv_host_alias=$host_alias
1293 test -z "$ac_cv_host_alias" &&
1294 ac_cv_host_alias=$ac_cv_build_alias
1295 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1296 { { echo "$as_me:1296: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1297 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1298 { (exit 1); exit 1; }; }
1301 echo "$as_me:1301: result: $ac_cv_host" >&5
1302 echo "${ECHO_T}$ac_cv_host" >&6
1304 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1305 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1306 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1308 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1309 echo "$as_me:1309: checking target system type" >&5
1310 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1311 if test "${ac_cv_target+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 ac_cv_target_alias=$target_alias
1315 test "x$ac_cv_target_alias" = "x" &&
1316 ac_cv_target_alias=$ac_cv_host_alias
1317 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1318 { { echo "$as_me:1318: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1319 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1320 { (exit 1); exit 1; }; }
1323 echo "$as_me:1323: result: $ac_cv_target" >&5
1324 echo "${ECHO_T}$ac_cv_target" >&6
1325 target=$ac_cv_target
1326 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1327 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1328 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1330 # The aliases save the names the user supplied, while $host etc.
1331 # will get canonicalized.
1332 test -n "$target_alias" &&
1333 test "$program_prefix$program_suffix$program_transform_name" = \
1335 program_prefix=${target_alias}-
1336 system_name="$host_os"
1338 system_name="`(uname -s -r) 2>/dev/null`"
1339 if test -z "$system_name" ; then
1340 system_name="`(hostname) 2>/dev/null`"
1343 test -n "$system_name" &&
1344 cat >>confdefs.h <<EOF
1345 #define SYSTEM_NAME "$system_name"
1348 if test "${cf_cv_system_name+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1351 cf_cv_system_name="$system_name"
1354 test -z "$system_name" && system_name="$cf_cv_system_name"
1355 test -n "$cf_cv_system_name" && echo "$as_me:1355: result: Configuring for $cf_cv_system_name" >&5
1356 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1358 if test ".$system_name" != ".$cf_cv_system_name" ; then
1359 echo "$as_me:1359: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1360 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1361 { { echo "$as_me:1361: error: \"Please remove config.cache and try again.\"" >&5
1362 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1363 { (exit 1); exit 1; }; }
1366 # Check whether --with-system-type or --without-system-type was given.
1367 if test "${with_system_type+set}" = set; then
1368 withval="$with_system_type"
1369 { echo "$as_me:1369: WARNING: overriding system type to $withval" >&5
1370 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1371 cf_cv_system_name=$withval
1376 ### Save the given $CFLAGS to allow user-override.
1377 cf_user_CFLAGS="$CFLAGS"
1379 ### Default install-location
1381 echo "$as_me:1381: checking for prefix" >&5
1382 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1383 if test "x$prefix" = "xNONE" ; then
1384 case "$cf_cv_system_name" in
1385 # non-vendor systems don't have a conflict
1386 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1389 *) prefix=$ac_default_prefix
1393 echo "$as_me:1393: result: $prefix" >&5
1394 echo "${ECHO_T}$prefix" >&6
1396 if test "x$prefix" = "xNONE" ; then
1397 echo "$as_me:1397: checking for default include-directory" >&5
1398 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1399 test -n "$verbose" && echo 1>&6
1402 $includedir/ncurses \
1404 $prefix/include/ncurses \
1405 /usr/local/include \
1406 /usr/local/include/ncurses \
1408 /usr/include/ncurses
1410 cf_dir=`eval echo $cf_symbol`
1411 if test -f $cf_dir/curses.h ; then
1412 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1413 includedir="$cf_symbol"
1414 test -n "$verbose" && echo $ac_n " found " 1>&6
1418 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1420 echo "$as_me:1420: result: $includedir" >&5
1421 echo "${ECHO_T}$includedir" >&6
1424 ### Checks for programs.
1426 # Check whether --with-ada or --without-ada was given.
1427 if test "${with_ada+set}" = set; then
1429 cf_with_ada=$withval
1433 if test "x$cf_with_ada" = xyes
1435 cf_PROG_CC="gnatgcc gcc cc"
1441 ac_cpp='$CPP $CPPFLAGS'
1442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1445 ac_main_return=return
1446 if test -n "$ac_tool_prefix"; then
1447 for ac_prog in $cf_PROG_CC
1449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1451 echo "$as_me:1451: checking for $ac_word" >&5
1452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453 if test "${ac_cv_prog_CC+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 if test -n "$CC"; then
1457 ac_cv_prog_CC="$CC" # Let the user override the test.
1459 ac_save_IFS=$IFS; IFS=$ac_path_separator
1461 for ac_dir in $ac_dummy; do
1463 test -z "$ac_dir" && ac_dir=.
1464 $as_executable_p "$ac_dir/$ac_word" || continue
1465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1466 echo "$as_me:1466: found $ac_dir/$ac_word" >&5
1473 if test -n "$CC"; then
1474 echo "$as_me:1474: result: $CC" >&5
1475 echo "${ECHO_T}$CC" >&6
1477 echo "$as_me:1477: result: no" >&5
1478 echo "${ECHO_T}no" >&6
1481 test -n "$CC" && break
1484 if test -z "$CC"; then
1486 for ac_prog in $cf_PROG_CC
1488 # Extract the first word of "$ac_prog", so it can be a program name with args.
1489 set dummy $ac_prog; ac_word=$2
1490 echo "$as_me:1490: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$ac_ct_CC"; then
1496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1498 ac_save_IFS=$IFS; IFS=$ac_path_separator
1500 for ac_dir in $ac_dummy; do
1502 test -z "$ac_dir" && ac_dir=.
1503 $as_executable_p "$ac_dir/$ac_word" || continue
1504 ac_cv_prog_ac_ct_CC="$ac_prog"
1505 echo "$as_me:1505: found $ac_dir/$ac_word" >&5
1511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1512 if test -n "$ac_ct_CC"; then
1513 echo "$as_me:1513: result: $ac_ct_CC" >&5
1514 echo "${ECHO_T}$ac_ct_CC" >&6
1516 echo "$as_me:1516: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1520 test -n "$ac_ct_CC" && break
1526 test -z "$CC" && { { echo "$as_me:1526: error: no acceptable cc found in \$PATH" >&5
1527 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1528 { (exit 1); exit 1; }; }
1530 # Provide some information about the compiler.
1531 echo "$as_me:1531:" \
1532 "checking for C compiler version" >&5
1533 ac_compiler=`set X $ac_compile; echo $2`
1534 { (eval echo "$as_me:1534: \"$ac_compiler --version </dev/null >&5\"") >&5
1535 (eval $ac_compiler --version </dev/null >&5) 2>&5
1537 echo "$as_me:1537: \$? = $ac_status" >&5
1538 (exit $ac_status); }
1539 { (eval echo "$as_me:1539: \"$ac_compiler -v </dev/null >&5\"") >&5
1540 (eval $ac_compiler -v </dev/null >&5) 2>&5
1542 echo "$as_me:1542: \$? = $ac_status" >&5
1543 (exit $ac_status); }
1544 { (eval echo "$as_me:1544: \"$ac_compiler -V </dev/null >&5\"") >&5
1545 (eval $ac_compiler -V </dev/null >&5) 2>&5
1547 echo "$as_me:1547: \$? = $ac_status" >&5
1548 (exit $ac_status); }
1550 cat >conftest.$ac_ext <<_ACEOF
1551 #line 1551 "configure"
1552 #include "confdefs.h"
1562 ac_clean_files_save=$ac_clean_files
1563 ac_clean_files="$ac_clean_files a.out a.exe"
1564 # Try to create an executable without -o first, disregard a.out.
1565 # It will help us diagnose broken compilers, and finding out an intuition
1567 echo "$as_me:1567: checking for C compiler default output" >&5
1568 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1569 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1570 if { (eval echo "$as_me:1570: \"$ac_link_default\"") >&5
1571 (eval $ac_link_default) 2>&5
1573 echo "$as_me:1573: \$? = $ac_status" >&5
1574 (exit $ac_status); }; then
1575 # Find the output, starting from the most likely. This scheme is
1576 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1578 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1579 ls a.out conftest 2>/dev/null;
1580 ls a.* conftest.* 2>/dev/null`; do
1582 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1583 a.out ) # We found the default executable, but exeext='' is most
1586 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1587 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1594 echo "$as_me: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1596 { { echo "$as_me:1596: error: C compiler cannot create executables" >&5
1597 echo "$as_me: error: C compiler cannot create executables" >&2;}
1598 { (exit 77); exit 77; }; }
1601 ac_exeext=$ac_cv_exeext
1602 echo "$as_me:1602: result: $ac_file" >&5
1603 echo "${ECHO_T}$ac_file" >&6
1605 # Check the compiler produces executables we can run. If not, either
1606 # the compiler is broken, or we cross compile.
1607 echo "$as_me:1607: checking whether the C compiler works" >&5
1608 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1609 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1610 # If not cross compiling, check that we can run a simple program.
1611 if test "$cross_compiling" != yes; then
1612 if { ac_try='./$ac_file'
1613 { (eval echo "$as_me:1613: \"$ac_try\"") >&5
1616 echo "$as_me:1616: \$? = $ac_status" >&5
1617 (exit $ac_status); }; }; then
1620 if test "$cross_compiling" = maybe; then
1623 { { echo "$as_me:1623: error: cannot run C compiled programs.
1624 If you meant to cross compile, use \`--host'." >&5
1625 echo "$as_me: error: cannot run C compiled programs.
1626 If you meant to cross compile, use \`--host'." >&2;}
1627 { (exit 1); exit 1; }; }
1631 echo "$as_me:1631: result: yes" >&5
1632 echo "${ECHO_T}yes" >&6
1634 rm -f a.out a.exe conftest$ac_cv_exeext
1635 ac_clean_files=$ac_clean_files_save
1636 # Check the compiler produces executables we can run. If not, either
1637 # the compiler is broken, or we cross compile.
1638 echo "$as_me:1638: checking whether we are cross compiling" >&5
1639 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1640 echo "$as_me:1640: result: $cross_compiling" >&5
1641 echo "${ECHO_T}$cross_compiling" >&6
1643 echo "$as_me:1643: checking for executable suffix" >&5
1644 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1645 if { (eval echo "$as_me:1645: \"$ac_link\"") >&5
1646 (eval $ac_link) 2>&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); }; then
1650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1651 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1652 # work properly (i.e., refer to `conftest.exe'), while it won't with
1654 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1656 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1664 { { echo "$as_me:1664: error: cannot compute EXEEXT: cannot compile and link" >&5
1665 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1666 { (exit 1); exit 1; }; }
1669 rm -f conftest$ac_cv_exeext
1670 echo "$as_me:1670: result: $ac_cv_exeext" >&5
1671 echo "${ECHO_T}$ac_cv_exeext" >&6
1673 rm -f conftest.$ac_ext
1674 EXEEXT=$ac_cv_exeext
1676 echo "$as_me:1676: checking for object suffix" >&5
1677 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1678 if test "${ac_cv_objext+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 cat >conftest.$ac_ext <<_ACEOF
1682 #line 1682 "configure"
1683 #include "confdefs.h"
1693 rm -f conftest.o conftest.obj
1694 if { (eval echo "$as_me:1694: \"$ac_compile\"") >&5
1695 (eval $ac_compile) 2>&5
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }; then
1699 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1701 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1707 echo "$as_me: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1709 { { echo "$as_me:1709: error: cannot compute OBJEXT: cannot compile" >&5
1710 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1711 { (exit 1); exit 1; }; }
1714 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1716 echo "$as_me:1716: result: $ac_cv_objext" >&5
1717 echo "${ECHO_T}$ac_cv_objext" >&6
1718 OBJEXT=$ac_cv_objext
1720 echo "$as_me:1720: checking whether we are using the GNU C compiler" >&5
1721 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1722 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1725 cat >conftest.$ac_ext <<_ACEOF
1726 #line 1726 "configure"
1727 #include "confdefs.h"
1740 rm -f conftest.$ac_objext
1741 if { (eval echo "$as_me:1741: \"$ac_compile\"") >&5
1742 (eval $ac_compile) 2>&5
1744 echo "$as_me:1744: \$? = $ac_status" >&5
1745 (exit $ac_status); } &&
1746 { ac_try='test -s conftest.$ac_objext'
1747 { (eval echo "$as_me:1747: \"$ac_try\"") >&5
1750 echo "$as_me:1750: \$? = $ac_status" >&5
1751 (exit $ac_status); }; }; then
1754 echo "$as_me: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1758 rm -f conftest.$ac_objext conftest.$ac_ext
1759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1762 echo "$as_me:1762: result: $ac_cv_c_compiler_gnu" >&5
1763 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1764 GCC=`test $ac_compiler_gnu = yes && echo yes`
1765 ac_test_CFLAGS=${CFLAGS+set}
1766 ac_save_CFLAGS=$CFLAGS
1768 echo "$as_me:1768: checking whether $CC accepts -g" >&5
1769 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1770 if test "${ac_cv_prog_cc_g+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 cat >conftest.$ac_ext <<_ACEOF
1774 #line 1774 "configure"
1775 #include "confdefs.h"
1785 rm -f conftest.$ac_objext
1786 if { (eval echo "$as_me:1786: \"$ac_compile\"") >&5
1787 (eval $ac_compile) 2>&5
1789 echo "$as_me:1789: \$? = $ac_status" >&5
1790 (exit $ac_status); } &&
1791 { ac_try='test -s conftest.$ac_objext'
1792 { (eval echo "$as_me:1792: \"$ac_try\"") >&5
1795 echo "$as_me:1795: \$? = $ac_status" >&5
1796 (exit $ac_status); }; }; then
1799 echo "$as_me: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1803 rm -f conftest.$ac_objext conftest.$ac_ext
1805 echo "$as_me:1805: result: $ac_cv_prog_cc_g" >&5
1806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1807 if test "$ac_test_CFLAGS" = set; then
1808 CFLAGS=$ac_save_CFLAGS
1809 elif test $ac_cv_prog_cc_g = yes; then
1810 if test "$GCC" = yes; then
1816 if test "$GCC" = yes; then
1822 # Some people use a C++ compiler to compile C. Since we use `exit',
1823 # in C++ we need to declare it. In case someone uses the same compiler
1824 # for both compiling C and C++ we need to have the C++ compiler decide
1825 # the declaration of exit, since it's the most demanding environment.
1826 cat >conftest.$ac_ext <<_ACEOF
1831 rm -f conftest.$ac_objext
1832 if { (eval echo "$as_me:1832: \"$ac_compile\"") >&5
1833 (eval $ac_compile) 2>&5
1835 echo "$as_me:1835: \$? = $ac_status" >&5
1836 (exit $ac_status); } &&
1837 { ac_try='test -s conftest.$ac_objext'
1838 { (eval echo "$as_me:1838: \"$ac_try\"") >&5
1841 echo "$as_me:1841: \$? = $ac_status" >&5
1842 (exit $ac_status); }; }; then
1843 for ac_declaration in \
1845 '#include <stdlib.h>' \
1846 'extern "C" void std::exit (int) throw (); using std::exit;' \
1847 'extern "C" void std::exit (int); using std::exit;' \
1848 'extern "C" void exit (int) throw ();' \
1849 'extern "C" void exit (int);' \
1852 cat >conftest.$ac_ext <<_ACEOF
1853 #line 1853 "configure"
1854 #include "confdefs.h"
1865 rm -f conftest.$ac_objext
1866 if { (eval echo "$as_me:1866: \"$ac_compile\"") >&5
1867 (eval $ac_compile) 2>&5
1869 echo "$as_me:1869: \$? = $ac_status" >&5
1870 (exit $ac_status); } &&
1871 { ac_try='test -s conftest.$ac_objext'
1872 { (eval echo "$as_me:1872: \"$ac_try\"") >&5
1875 echo "$as_me:1875: \$? = $ac_status" >&5
1876 (exit $ac_status); }; }; then
1879 echo "$as_me: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1883 rm -f conftest.$ac_objext conftest.$ac_ext
1884 cat >conftest.$ac_ext <<_ACEOF
1885 #line 1885 "configure"
1886 #include "confdefs.h"
1896 rm -f conftest.$ac_objext
1897 if { (eval echo "$as_me:1897: \"$ac_compile\"") >&5
1898 (eval $ac_compile) 2>&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); } &&
1902 { ac_try='test -s conftest.$ac_objext'
1903 { (eval echo "$as_me:1903: \"$ac_try\"") >&5
1906 echo "$as_me:1906: \$? = $ac_status" >&5
1907 (exit $ac_status); }; }; then
1910 echo "$as_me: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1913 rm -f conftest.$ac_objext conftest.$ac_ext
1916 if test -n "$ac_declaration"; then
1917 echo '#ifdef __cplusplus' >>confdefs.h
1918 echo $ac_declaration >>confdefs.h
1919 echo '#endif' >>confdefs.h
1923 echo "$as_me: failed program was:" >&5
1924 cat conftest.$ac_ext >&5
1926 rm -f conftest.$ac_objext conftest.$ac_ext
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 ac_main_return=return
1935 if test "$GCC" = yes ; then
1936 echo "$as_me:1936: checking version of $CC" >&5
1937 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1938 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1939 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1940 echo "$as_me:1940: result: $GCC_VERSION" >&5
1941 echo "${ECHO_T}$GCC_VERSION" >&6
1944 echo "$as_me:1944: checking for $CC option to accept ANSI C" >&5
1945 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1946 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 ac_cv_prog_cc_stdc=no
1951 cat >conftest.$ac_ext <<_ACEOF
1952 #line 1952 "configure"
1953 #include "confdefs.h"
1956 #include <sys/types.h>
1957 #include <sys/stat.h>
1958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1959 struct buf { int x; };
1960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1961 static char *e (p, i)
1967 static char *f (char * (*g) (char **, int), char **p, ...)
1972 s = g (p, va_arg (v,int));
1976 int test (int i, double x);
1977 struct s1 {int (*f) (int a);};
1978 struct s2 {int (*f) (double a);};
1979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1985 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1990 # Don't try gcc -ansi; that turns off useful extensions and
1991 # breaks some systems' header files.
1992 # AIX -qlanglvl=ansi
1993 # Ultrix and OSF/1 -std1
1994 # HP-UX 10.20 and later -Ae
1995 # HP-UX older versions -Aa -D_HPUX_SOURCE
1996 # SVR4 -Xc -D__EXTENSIONS__
1997 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1999 CC="$ac_save_CC $ac_arg"
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:2001: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>&5
2004 echo "$as_me:2004: \$? = $ac_status" >&5
2005 (exit $ac_status); } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:2007: \"$ac_try\"") >&5
2010 echo "$as_me:2010: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_cv_prog_cc_stdc=$ac_arg
2015 echo "$as_me: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 rm -f conftest.$ac_objext
2020 rm -f conftest.$ac_ext conftest.$ac_objext
2025 case "x$ac_cv_prog_cc_stdc" in
2027 echo "$as_me:2027: result: none needed" >&5
2028 echo "${ECHO_T}none needed" >&6 ;;
2030 echo "$as_me:2030: result: $ac_cv_prog_cc_stdc" >&5
2031 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2032 CC="$CC $ac_cv_prog_cc_stdc" ;;
2035 # This should have been defined by AC_PROG_CC
2038 echo "$as_me:2038: checking \$CC variable" >&5
2039 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2042 echo "$as_me:2042: result: broken" >&5
2043 echo "${ECHO_T}broken" >&6
2044 { echo "$as_me:2044: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2045 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2047 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2048 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2053 cf_new_extra_cppflags=
2055 for cf_add_cflags in $cf_flags
2057 case $cf_fix_cppflags in
2059 case $cf_add_cflags in #(vi
2060 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2061 case $cf_add_cflags in
2063 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2065 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2066 && test -z "${cf_tst_cflags}" \
2067 && cf_fix_cppflags=yes
2069 if test $cf_fix_cppflags = yes ; then
2070 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2072 elif test "${cf_tst_cflags}" = "\"'" ; then
2073 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2079 *$cf_add_cflags) #(vi
2082 case $cf_add_cflags in #(vi
2084 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2086 CPPFLAGS=`echo "$CPPFLAGS" | \
2087 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2088 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2092 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2097 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2102 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2104 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2106 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2107 && test -z "${cf_tst_cflags}" \
2108 && cf_fix_cppflags=no
2113 if test -n "$cf_new_cflags" ; then
2115 CFLAGS="$CFLAGS $cf_new_cflags"
2118 if test -n "$cf_new_cppflags" ; then
2120 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2123 if test -n "$cf_new_extra_cppflags" ; then
2125 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2130 echo "$as_me:2130: result: ok" >&5
2131 echo "${ECHO_T}ok" >&6
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 ac_main_return=return
2141 echo "$as_me:2141: checking how to run the C preprocessor" >&5
2142 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2143 # On Suns, sometimes $CPP names a directory.
2144 if test -n "$CPP" && test -d "$CPP"; then
2147 if test -z "$CPP"; then
2148 if test "${ac_cv_prog_CPP+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 # Double quotes because CPP needs to be expanded
2152 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2155 for ac_c_preproc_warn_flag in '' yes
2157 # Use a header file that comes with gcc, so configuring glibc
2158 # with a fresh cross-compiler works.
2159 # On the NeXT, cc -E runs the code through the compiler's parser,
2160 # not just through cpp. "Syntax error" is here to catch this case.
2161 cat >conftest.$ac_ext <<_ACEOF
2162 #line 2162 "configure"
2163 #include "confdefs.h"
2167 if { (eval echo "$as_me:2167: \"$ac_cpp conftest.$ac_ext\"") >&5
2168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2170 egrep -v '^ *\+' conftest.er1 >conftest.err
2172 cat conftest.err >&5
2173 echo "$as_me:2173: \$? = $ac_status" >&5
2174 (exit $ac_status); } >/dev/null; then
2175 if test -s conftest.err; then
2176 ac_cpp_err=$ac_c_preproc_warn_flag
2183 if test -z "$ac_cpp_err"; then
2186 echo "$as_me: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2188 # Broken: fails on valid input.
2191 rm -f conftest.err conftest.$ac_ext
2193 # OK, works on sane cases. Now check whether non-existent headers
2194 # can be detected and how.
2195 cat >conftest.$ac_ext <<_ACEOF
2196 #line 2196 "configure"
2197 #include "confdefs.h"
2198 #include <ac_nonexistent.h>
2200 if { (eval echo "$as_me:2200: \"$ac_cpp conftest.$ac_ext\"") >&5
2201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2203 egrep -v '^ *\+' conftest.er1 >conftest.err
2205 cat conftest.err >&5
2206 echo "$as_me:2206: \$? = $ac_status" >&5
2207 (exit $ac_status); } >/dev/null; then
2208 if test -s conftest.err; then
2209 ac_cpp_err=$ac_c_preproc_warn_flag
2216 if test -z "$ac_cpp_err"; then
2217 # Broken: success on invalid input.
2220 echo "$as_me: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2222 # Passes both tests.
2226 rm -f conftest.err conftest.$ac_ext
2229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2230 rm -f conftest.err conftest.$ac_ext
2231 if $ac_preproc_ok; then
2243 echo "$as_me:2243: result: $CPP" >&5
2244 echo "${ECHO_T}$CPP" >&6
2246 for ac_c_preproc_warn_flag in '' yes
2248 # Use a header file that comes with gcc, so configuring glibc
2249 # with a fresh cross-compiler works.
2250 # On the NeXT, cc -E runs the code through the compiler's parser,
2251 # not just through cpp. "Syntax error" is here to catch this case.
2252 cat >conftest.$ac_ext <<_ACEOF
2253 #line 2253 "configure"
2254 #include "confdefs.h"
2258 if { (eval echo "$as_me:2258: \"$ac_cpp conftest.$ac_ext\"") >&5
2259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2261 egrep -v '^ *\+' conftest.er1 >conftest.err
2263 cat conftest.err >&5
2264 echo "$as_me:2264: \$? = $ac_status" >&5
2265 (exit $ac_status); } >/dev/null; then
2266 if test -s conftest.err; then
2267 ac_cpp_err=$ac_c_preproc_warn_flag
2274 if test -z "$ac_cpp_err"; then
2277 echo "$as_me: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 # Broken: fails on valid input.
2282 rm -f conftest.err conftest.$ac_ext
2284 # OK, works on sane cases. Now check whether non-existent headers
2285 # can be detected and how.
2286 cat >conftest.$ac_ext <<_ACEOF
2287 #line 2287 "configure"
2288 #include "confdefs.h"
2289 #include <ac_nonexistent.h>
2291 if { (eval echo "$as_me:2291: \"$ac_cpp conftest.$ac_ext\"") >&5
2292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2294 egrep -v '^ *\+' conftest.er1 >conftest.err
2296 cat conftest.err >&5
2297 echo "$as_me:2297: \$? = $ac_status" >&5
2298 (exit $ac_status); } >/dev/null; then
2299 if test -s conftest.err; then
2300 ac_cpp_err=$ac_c_preproc_warn_flag
2307 if test -z "$ac_cpp_err"; then
2308 # Broken: success on invalid input.
2311 echo "$as_me: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2313 # Passes both tests.
2317 rm -f conftest.err conftest.$ac_ext
2320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2321 rm -f conftest.err conftest.$ac_ext
2322 if $ac_preproc_ok; then
2325 { { echo "$as_me:2325: error: C preprocessor \"$CPP\" fails sanity check" >&5
2326 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2327 { (exit 1); exit 1; }; }
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335 ac_main_return=return
2337 if test $ac_cv_c_compiler_gnu = yes; then
2338 echo "$as_me:2338: checking whether $CC needs -traditional" >&5
2339 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2340 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 ac_pattern="Autoconf.*'x'"
2344 cat >conftest.$ac_ext <<_ACEOF
2345 #line 2345 "configure"
2346 #include "confdefs.h"
2348 int Autoconf = TIOCGETP;
2350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2351 egrep "$ac_pattern" >/dev/null 2>&1; then
2352 ac_cv_prog_gcc_traditional=yes
2354 ac_cv_prog_gcc_traditional=no
2358 if test $ac_cv_prog_gcc_traditional = no; then
2359 cat >conftest.$ac_ext <<_ACEOF
2360 #line 2360 "configure"
2361 #include "confdefs.h"
2363 int Autoconf = TCGETA;
2365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2366 egrep "$ac_pattern" >/dev/null 2>&1; then
2367 ac_cv_prog_gcc_traditional=yes
2373 echo "$as_me:2373: result: $ac_cv_prog_gcc_traditional" >&5
2374 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2375 if test $ac_cv_prog_gcc_traditional = yes; then
2376 CC="$CC -traditional"
2380 echo "$as_me:2380: checking whether $CC understands -c and -o together" >&5
2381 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2382 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 cat > conftest.$ac_ext <<CF_EOF
2390 ${cf_cv_main_return:-return}(0);
2393 # We do the test twice because some compilers refuse to overwrite an
2394 # existing .o file with -o, though they will create one.
2395 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2396 if { (eval echo "$as_me:2396: \"$ac_try\"") >&5
2399 echo "$as_me:2399: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 test -f conftest2.$ac_objext && { (eval echo "$as_me:2401: \"$ac_try\"") >&5
2404 echo "$as_me:2404: \$? = $ac_status" >&5
2405 (exit $ac_status); };
2407 eval cf_cv_prog_CC_c_o=yes
2409 eval cf_cv_prog_CC_c_o=no
2414 if test $cf_cv_prog_CC_c_o = yes; then
2415 echo "$as_me:2415: result: yes" >&5
2416 echo "${ECHO_T}yes" >&6
2418 echo "$as_me:2418: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2422 if test "$cross_compiling" = yes ; then
2425 case "$cf_cv_system_name" in #(vi
2426 dragonfly*|mirbsd*|freebsd*) #(vi
2427 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2429 *) LDPATH=$PATH:/sbin:/usr/sbin
2430 # Extract the first word of "ldconfig", so it can be a program name with args.
2431 set dummy ldconfig; ac_word=$2
2432 echo "$as_me:2432: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2442 ac_save_IFS=$IFS; IFS=$ac_path_separator
2444 for ac_dir in $ac_dummy; do
2446 test -z "$ac_dir" && ac_dir=.
2447 if $as_executable_p "$ac_dir/$ac_word"; then
2448 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2449 echo "$as_me:2449: found $ac_dir/$ac_word" >&5
2457 LDCONFIG=$ac_cv_path_LDCONFIG
2459 if test -n "$LDCONFIG"; then
2460 echo "$as_me:2460: result: $LDCONFIG" >&5
2461 echo "${ECHO_T}$LDCONFIG" >&6
2463 echo "$as_me:2463: result: no" >&5
2464 echo "${ECHO_T}no" >&6
2471 echo "$as_me:2471: checking if you want to ensure bool is consistent with C++" >&5
2472 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2474 # Check whether --with-cxx or --without-cxx was given.
2475 if test "${with_cxx+set}" = set; then
2477 cf_with_cxx=$withval
2481 echo "$as_me:2481: result: $cf_with_cxx" >&5
2482 echo "${ECHO_T}$cf_with_cxx" >&6
2483 if test "X$cf_with_cxx" = Xno ; then
2487 # with autoconf 2.13, we can change the error to a warning:
2489 ac_cpp='$CXXCPP $CPPFLAGS'
2490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2493 ac_main_return=return
2494 if test -n "$ac_tool_prefix"; then
2495 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2499 echo "$as_me:2499: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_CXX+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$CXX"; then
2505 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2507 ac_save_IFS=$IFS; IFS=$ac_path_separator
2509 for ac_dir in $ac_dummy; do
2511 test -z "$ac_dir" && ac_dir=.
2512 $as_executable_p "$ac_dir/$ac_word" || continue
2513 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2514 echo "$as_me:2514: found $ac_dir/$ac_word" >&5
2521 if test -n "$CXX"; then
2522 echo "$as_me:2522: result: $CXX" >&5
2523 echo "${ECHO_T}$CXX" >&6
2525 echo "$as_me:2525: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2529 test -n "$CXX" && break
2532 if test -z "$CXX"; then
2534 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2536 # Extract the first word of "$ac_prog", so it can be a program name with args.
2537 set dummy $ac_prog; ac_word=$2
2538 echo "$as_me:2538: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2540 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 if test -n "$ac_ct_CXX"; then
2544 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2546 ac_save_IFS=$IFS; IFS=$ac_path_separator
2548 for ac_dir in $ac_dummy; do
2550 test -z "$ac_dir" && ac_dir=.
2551 $as_executable_p "$ac_dir/$ac_word" || continue
2552 ac_cv_prog_ac_ct_CXX="$ac_prog"
2553 echo "$as_me:2553: found $ac_dir/$ac_word" >&5
2559 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2560 if test -n "$ac_ct_CXX"; then
2561 echo "$as_me:2561: result: $ac_ct_CXX" >&5
2562 echo "${ECHO_T}$ac_ct_CXX" >&6
2564 echo "$as_me:2564: result: no" >&5
2565 echo "${ECHO_T}no" >&6
2568 test -n "$ac_ct_CXX" && break
2570 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2575 # Provide some information about the compiler.
2576 echo "$as_me:2576:" \
2577 "checking for C++ compiler version" >&5
2578 ac_compiler=`set X $ac_compile; echo $2`
2579 { (eval echo "$as_me:2579: \"$ac_compiler --version </dev/null >&5\"") >&5
2580 (eval $ac_compiler --version </dev/null >&5) 2>&5
2582 echo "$as_me:2582: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2584 { (eval echo "$as_me:2584: \"$ac_compiler -v </dev/null >&5\"") >&5
2585 (eval $ac_compiler -v </dev/null >&5) 2>&5
2587 echo "$as_me:2587: \$? = $ac_status" >&5
2588 (exit $ac_status); }
2589 { (eval echo "$as_me:2589: \"$ac_compiler -V </dev/null >&5\"") >&5
2590 (eval $ac_compiler -V </dev/null >&5) 2>&5
2592 echo "$as_me:2592: \$? = $ac_status" >&5
2593 (exit $ac_status); }
2595 echo "$as_me:2595: checking whether we are using the GNU C++ compiler" >&5
2596 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2597 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 cat >conftest.$ac_ext <<_ACEOF
2601 #line 2601 "configure"
2602 #include "confdefs.h"
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:2616: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>&5
2619 echo "$as_me:2619: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:2622: \"$ac_try\"") >&5
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2629 echo "$as_me: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2633 rm -f conftest.$ac_objext conftest.$ac_ext
2634 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2637 echo "$as_me:2637: result: $ac_cv_cxx_compiler_gnu" >&5
2638 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2639 GXX=`test $ac_compiler_gnu = yes && echo yes`
2640 ac_test_CXXFLAGS=${CXXFLAGS+set}
2641 ac_save_CXXFLAGS=$CXXFLAGS
2643 echo "$as_me:2643: checking whether $CXX accepts -g" >&5
2644 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2645 if test "${ac_cv_prog_cxx_g+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 cat >conftest.$ac_ext <<_ACEOF
2649 #line 2649 "configure"
2650 #include "confdefs.h"
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:2661: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>&5
2664 echo "$as_me:2664: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:2667: \"$ac_try\"") >&5
2670 echo "$as_me:2670: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 ac_cv_prog_cxx_g=yes
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2678 rm -f conftest.$ac_objext conftest.$ac_ext
2680 echo "$as_me:2680: result: $ac_cv_prog_cxx_g" >&5
2681 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2682 if test "$ac_test_CXXFLAGS" = set; then
2683 CXXFLAGS=$ac_save_CXXFLAGS
2684 elif test $ac_cv_prog_cxx_g = yes; then
2685 if test "$GXX" = yes; then
2691 if test "$GXX" = yes; then
2697 for ac_declaration in \
2699 '#include <stdlib.h>' \
2700 'extern "C" void std::exit (int) throw (); using std::exit;' \
2701 'extern "C" void std::exit (int); using std::exit;' \
2702 'extern "C" void exit (int) throw ();' \
2703 'extern "C" void exit (int);' \
2706 cat >conftest.$ac_ext <<_ACEOF
2707 #line 2707 "configure"
2708 #include "confdefs.h"
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:2720: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>&5
2723 echo "$as_me:2723: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (eval echo "$as_me:2726: \"$ac_try\"") >&5
2729 echo "$as_me:2729: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2733 echo "$as_me: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2737 rm -f conftest.$ac_objext conftest.$ac_ext
2738 cat >conftest.$ac_ext <<_ACEOF
2739 #line 2739 "configure"
2740 #include "confdefs.h"
2750 rm -f conftest.$ac_objext
2751 if { (eval echo "$as_me:2751: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>&5
2754 echo "$as_me:2754: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:2757: \"$ac_try\"") >&5
2760 echo "$as_me:2760: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2764 echo "$as_me: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2767 rm -f conftest.$ac_objext conftest.$ac_ext
2770 if test -n "$ac_declaration"; then
2771 echo '#ifdef __cplusplus' >>confdefs.h
2772 echo $ac_declaration >>confdefs.h
2773 echo '#endif' >>confdefs.h
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 ac_main_return=return
2783 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2784 if test "$CXX" = "g++" ; then
2785 # Extract the first word of "g++", so it can be a program name with args.
2786 set dummy g++; ac_word=$2
2787 echo "$as_me:2787: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_path_CXX+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2797 ac_save_IFS=$IFS; IFS=$ac_path_separator
2799 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if $as_executable_p "$ac_dir/$ac_word"; then
2803 ac_cv_path_CXX="$ac_dir/$ac_word"
2804 echo "$as_me:2804: found $ac_dir/$ac_word" >&5
2814 if test -n "$CXX"; then
2815 echo "$as_me:2815: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6
2818 echo "$as_me:2818: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2823 case "x$CXX" in #(vi
2825 { echo "$as_me:2825: WARNING: You don't have any C++ compiler, too bad" >&5
2826 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2827 cf_with_cxx=no; CXX=""; GXX="";
2833 if test "$GXX" = yes; then
2834 echo "$as_me:2834: checking version of ${CXX:-g++}" >&5
2835 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2836 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2837 test -z "$GXX_VERSION" && GXX_VERSION=unknown
2838 echo "$as_me:2838: result: $GXX_VERSION" >&5
2839 echo "${ECHO_T}$GXX_VERSION" >&6
2842 case $GXX_VERSION in
2844 # GXX=""; CXX=""; ac_cv_prog_gxx=no
2846 { echo "$as_me:2846: WARNING: templates do not work" >&5
2847 echo "$as_me: WARNING: templates do not work" >&2;}
2851 echo "$as_me:2851: checking if you want to build C++ binding and demo" >&5
2852 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2854 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2855 if test "${with_cxx_binding+set}" = set; then
2856 withval="$with_cxx_binding"
2857 cf_with_cxx_binding=$withval
2859 cf_with_cxx_binding=$cf_with_cxx
2861 echo "$as_me:2861: result: $cf_with_cxx_binding" >&5
2862 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2864 echo "$as_me:2864: checking if you want to build with Ada95" >&5
2865 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2866 echo "$as_me:2866: result: $cf_with_ada" >&5
2867 echo "${ECHO_T}$cf_with_ada" >&6
2869 echo "$as_me:2869: checking if you want to install terminal database" >&5
2870 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
2872 # Check whether --enable-db-install or --disable-db-install was given.
2873 if test "${enable_db_install+set}" = set; then
2874 enableval="$enable_db_install"
2875 cf_with_db_install=$enableval
2877 cf_with_db_install=yes
2879 echo "$as_me:2879: result: $cf_with_db_install" >&5
2880 echo "${ECHO_T}$cf_with_db_install" >&6
2882 echo "$as_me:2882: checking if you want to install manpages" >&5
2883 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
2885 # Check whether --with-manpages or --without-manpages was given.
2886 if test "${with_manpages+set}" = set; then
2887 withval="$with_manpages"
2888 cf_with_manpages=$withval
2890 cf_with_manpages=yes
2892 echo "$as_me:2892: result: $cf_with_manpages" >&5
2893 echo "${ECHO_T}$cf_with_manpages" >&6
2895 echo "$as_me:2895: checking if you want to build programs such as tic" >&5
2896 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2898 # Check whether --with-progs or --without-progs was given.
2899 if test "${with_progs+set}" = set; then
2900 withval="$with_progs"
2901 cf_with_progs=$withval
2905 echo "$as_me:2905: result: $cf_with_progs" >&5
2906 echo "${ECHO_T}$cf_with_progs" >&6
2908 echo "$as_me:2908: checking if you want to build test-programs" >&5
2909 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2911 # Check whether --with-tests or --without-tests was given.
2912 if test "${with_tests+set}" = set; then
2913 withval="$with_tests"
2914 cf_with_tests=$withval
2918 echo "$as_me:2918: result: $cf_with_tests" >&5
2919 echo "${ECHO_T}$cf_with_tests" >&6
2921 echo "$as_me:2921: checking if you wish to install curses.h" >&5
2922 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2924 # Check whether --with-curses-h or --without-curses-h was given.
2925 if test "${with_curses_h+set}" = set; then
2926 withval="$with_curses_h"
2927 with_curses_h=$withval
2931 echo "$as_me:2931: result: $with_curses_h" >&5
2932 echo "${ECHO_T}$with_curses_h" >&6
2934 modules_to_build="ncurses"
2935 if test "X$cf_with_progs" != Xno ; then
2936 modules_to_build="$modules_to_build progs tack"
2938 modules_to_build="$modules_to_build panel menu form"
2940 test "$program_prefix" != NONE &&
2941 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2942 # Use a double $ so make ignores it.
2943 test "$program_suffix" != NONE &&
2944 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2945 # Double any \ or $. echo might interpret backslashes.
2946 # By default was `s,x,x', remove it if useless.
2947 cat <<\_ACEOF >conftest.sed
2948 s/[\\$]/&&/g;s/;s,x,x,$//
2950 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2953 for ac_prog in mawk gawk nawk awk
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 echo "$as_me:2957: checking for $ac_word" >&5
2958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959 if test "${ac_cv_prog_AWK+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 if test -n "$AWK"; then
2963 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2965 ac_save_IFS=$IFS; IFS=$ac_path_separator
2967 for ac_dir in $ac_dummy; do
2969 test -z "$ac_dir" && ac_dir=.
2970 $as_executable_p "$ac_dir/$ac_word" || continue
2971 ac_cv_prog_AWK="$ac_prog"
2972 echo "$as_me:2972: found $ac_dir/$ac_word" >&5
2979 if test -n "$AWK"; then
2980 echo "$as_me:2980: result: $AWK" >&5
2981 echo "${ECHO_T}$AWK" >&6
2983 echo "$as_me:2983: result: no" >&5
2984 echo "${ECHO_T}no" >&6
2987 test -n "$AWK" && break
2990 test -z "$AWK" && { { echo "$as_me:2990: error: No awk program found" >&5
2991 echo "$as_me: error: No awk program found" >&2;}
2992 { (exit 1); exit 1; }; }
2994 echo "$as_me:2994: checking for egrep" >&5
2995 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2996 if test "${ac_cv_prog_egrep+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3000 then ac_cv_prog_egrep='grep -E'
3001 else ac_cv_prog_egrep='egrep'
3004 echo "$as_me:3004: result: $ac_cv_prog_egrep" >&5
3005 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3006 EGREP=$ac_cv_prog_egrep
3008 test -z "$EGREP" && { { echo "$as_me:3008: error: No egrep program found" >&5
3009 echo "$as_me: error: No egrep program found" >&2;}
3010 { (exit 1); exit 1; }; }
3012 # Find a good install program. We prefer a C program (faster),
3013 # so one script is as good as another. But avoid the broken or
3014 # incompatible versions:
3015 # SysV /etc/install, /usr/sbin/install
3016 # SunOS /usr/etc/install
3017 # IRIX /sbin/install
3019 # AmigaOS /C/install, which installs bootblocks on floppy discs
3020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3023 # ./install, which can be erroneously created by make from ./install.sh.
3024 echo "$as_me:3024: checking for a BSD compatible install" >&5
3025 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3026 if test -z "$INSTALL"; then
3027 if test "${ac_cv_path_install+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 ac_save_IFS=$IFS; IFS=$ac_path_separator
3031 for ac_dir in $PATH; do
3033 # Account for people who put trailing slashes in PATH elements.
3035 / | ./ | .// | /cC/* \
3036 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3039 # OSF1 and SCO ODT 3.0 have their own names for install.
3040 # Don't use installbsd from OSF since it installs stuff as root
3042 for ac_prog in ginstall scoinst install; do
3043 if $as_executable_p "$ac_dir/$ac_prog"; then
3044 if test $ac_prog = install &&
3045 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3046 # AIX install. It has an incompatible calling convention.
3048 elif test $ac_prog = install &&
3049 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3050 # program-specific install script used by HP pwplus--don't use.
3053 ac_cv_path_install="$ac_dir/$ac_prog -c"
3063 if test "${ac_cv_path_install+set}" = set; then
3064 INSTALL=$ac_cv_path_install
3066 # As a last resort, use the slow shell script. We don't cache a
3067 # path for INSTALL within a source directory, because that will
3068 # break other packages using the cache if that directory is
3069 # removed, or if the path is relative.
3070 INSTALL=$ac_install_sh
3073 echo "$as_me:3073: result: $INSTALL" >&5
3074 echo "${ECHO_T}$INSTALL" >&6
3076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3077 # It thinks the first close brace ends the variable substitution.
3078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3088 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3089 test -z "$cf_dir" && cf_dir=.
3090 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3094 for ac_prog in tdlint lint alint splint lclint
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy $ac_prog; ac_word=$2
3098 echo "$as_me:3098: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100 if test "${ac_cv_prog_LINT+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 if test -n "$LINT"; then
3104 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3106 ac_save_IFS=$IFS; IFS=$ac_path_separator
3108 for ac_dir in $ac_dummy; do
3110 test -z "$ac_dir" && ac_dir=.
3111 $as_executable_p "$ac_dir/$ac_word" || continue
3112 ac_cv_prog_LINT="$ac_prog"
3113 echo "$as_me:3113: found $ac_dir/$ac_word" >&5
3119 LINT=$ac_cv_prog_LINT
3120 if test -n "$LINT"; then
3121 echo "$as_me:3121: result: $LINT" >&5
3122 echo "${ECHO_T}$LINT" >&6
3124 echo "$as_me:3124: result: no" >&5
3125 echo "${ECHO_T}no" >&6
3128 test -n "$LINT" && break
3131 echo "$as_me:3131: checking whether ln -s works" >&5
3132 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3134 if test "$LN_S" = "ln -s"; then
3135 echo "$as_me:3135: result: yes" >&5
3136 echo "${ECHO_T}yes" >&6
3138 echo "$as_me:3138: result: no, using $LN_S" >&5
3139 echo "${ECHO_T}no, using $LN_S" >&6
3142 echo "$as_me:3142: checking if $LN_S -f options work" >&5
3143 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3145 rm -f conf$$.src conf$$dst
3147 echo first >conf$$.src
3148 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3153 rm -f conf$$.dst conf$$src
3154 echo "$as_me:3154: result: $cf_prog_ln_sf" >&5
3155 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3157 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3159 echo "$as_me:3159: checking for long file names" >&5
3160 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3161 if test "${ac_cv_sys_long_file_names+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 ac_cv_sys_long_file_names=yes
3165 # Test for long file names in all the places we know might matter:
3166 # . the current directory, where building will happen
3167 # $prefix/lib where we will be installing things
3168 # $exec_prefix/lib likewise
3169 # eval it to expand exec_prefix.
3170 # $TMPDIR if set, where it might want to write temporary files
3171 # if $TMPDIR is not set:
3172 # /tmp where it might want to write temporary files
3175 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3178 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3180 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3181 test -d $ac_dir || continue
3182 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3183 ac_xdir=$ac_dir/cf$$
3184 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3185 ac_tf1=$ac_xdir/conftest9012345
3186 ac_tf2=$ac_xdir/conftest9012346
3187 (echo 1 >$ac_tf1) 2>/dev/null
3188 (echo 2 >$ac_tf2) 2>/dev/null
3189 ac_val=`cat $ac_tf1 2>/dev/null`
3190 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3191 ac_cv_sys_long_file_names=no
3192 rm -rf $ac_xdir 2>/dev/null
3195 rm -rf $ac_xdir 2>/dev/null
3198 echo "$as_me:3198: result: $ac_cv_sys_long_file_names" >&5
3199 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3200 if test $ac_cv_sys_long_file_names = yes; then
3202 cat >>confdefs.h <<\EOF
3203 #define HAVE_LONG_FILE_NAMES 1
3208 # if we find pkg-config, check if we should install the ".pc" files.
3210 echo "$as_me:3210: checking if you want to use pkg-config" >&5
3211 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3213 # Check whether --with-pkg-config or --without-pkg-config was given.
3214 if test "${with_pkg_config+set}" = set; then
3215 withval="$with_pkg_config"
3216 cf_pkg_config=$withval
3220 echo "$as_me:3220: result: $cf_pkg_config" >&5
3221 echo "${ECHO_T}$cf_pkg_config" >&6
3223 case $cf_pkg_config in #(vi
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3232 echo "$as_me:3232: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3234 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3242 ac_save_IFS=$IFS; IFS=$ac_path_separator
3244 for ac_dir in $ac_dummy; do
3246 test -z "$ac_dir" && ac_dir=.
3247 if $as_executable_p "$ac_dir/$ac_word"; then
3248 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3249 echo "$as_me:3249: found $ac_dir/$ac_word" >&5
3257 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3259 if test -n "$PKG_CONFIG"; then
3260 echo "$as_me:3260: result: $PKG_CONFIG" >&5
3261 echo "${ECHO_T}$PKG_CONFIG" >&6
3263 echo "$as_me:3263: result: no" >&5
3264 echo "${ECHO_T}no" >&6
3268 if test -z "$ac_cv_path_PKG_CONFIG"; then
3269 ac_pt_PKG_CONFIG=$PKG_CONFIG
3270 # Extract the first word of "pkg-config", so it can be a program name with args.
3271 set dummy pkg-config; ac_word=$2
3272 echo "$as_me:3272: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 case $ac_pt_PKG_CONFIG in
3279 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3282 ac_save_IFS=$IFS; IFS=$ac_path_separator
3284 for ac_dir in $ac_dummy; do
3286 test -z "$ac_dir" && ac_dir=.
3287 if $as_executable_p "$ac_dir/$ac_word"; then
3288 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3289 echo "$as_me:3289: found $ac_dir/$ac_word" >&5
3294 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3298 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3300 if test -n "$ac_pt_PKG_CONFIG"; then
3301 echo "$as_me:3301: result: $ac_pt_PKG_CONFIG" >&5
3302 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3304 echo "$as_me:3304: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3308 PKG_CONFIG=$ac_pt_PKG_CONFIG
3310 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3319 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3320 if test "$PKG_CONFIG" != none ; then
3322 if test "x$prefix" != xNONE; then
3323 cf_path_syntax="$prefix"
3325 cf_path_syntax="$ac_default_prefix"
3328 case ".$PKG_CONFIG" in #(vi
3329 .\$\(*\)*|.\'*\'*) #(vi
3333 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3335 .\${*prefix}*|.\${*dir}*) #(vi
3336 eval PKG_CONFIG="$PKG_CONFIG"
3337 case ".$PKG_CONFIG" in #(vi
3339 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3344 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3347 { { echo "$as_me:3347: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3348 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3349 { (exit 1); exit 1; }; }
3355 if test "$PKG_CONFIG" != none ; then
3356 echo "$as_me:3356: checking for $PKG_CONFIG library directory" >&5
3357 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3359 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3360 if test "${with_pkg_config_libdir+set}" = set; then
3361 withval="$with_pkg_config_libdir"
3362 PKG_CONFIG_LIBDIR=$withval
3364 PKG_CONFIG_LIBDIR=yes
3367 case x$PKG_CONFIG_LIBDIR in #(vi
3371 # look for the library directory using the same prefix as the executable
3372 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3373 case x`(arch) 2>/dev/null` in #(vi
3375 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3377 if test -d $cf_config/pkgconfig
3379 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3385 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3393 echo "$as_me:3393: result: $PKG_CONFIG_LIBDIR" >&5
3394 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3397 if test "$PKG_CONFIG" != none ; then
3398 echo "$as_me:3398: checking if we should install .pc files for $PKG_CONFIG" >&5
3399 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3401 # Check whether --enable-pc-files or --disable-pc-files was given.
3402 if test "${enable_pc_files+set}" = set; then
3403 enableval="$enable_pc_files"
3404 enable_pc_files=$enableval
3408 echo "$as_me:3408: result: $enable_pc_files" >&5
3409 echo "${ECHO_T}$enable_pc_files" >&6
3410 if test "$enable_pc_files" != no
3413 if test "x$prefix" != xNONE; then
3414 cf_path_syntax="$prefix"
3416 cf_path_syntax="$ac_default_prefix"
3419 case ".$PKG_CONFIG_LIBDIR" in #(vi
3420 .\$\(*\)*|.\'*\'*) #(vi
3424 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3426 .\${*prefix}*|.\${*dir}*) #(vi
3427 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3428 case ".$PKG_CONFIG_LIBDIR" in #(vi
3430 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3435 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3438 { { echo "$as_me:3438: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3439 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3440 { (exit 1); exit 1; }; }
3449 echo "$as_me:3449: checking if we should assume mixed-case filenames" >&5
3450 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3452 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3453 if test "${enable_mixed_case+set}" = set; then
3454 enableval="$enable_mixed_case"
3455 enable_mixedcase=$enableval
3457 enable_mixedcase=auto
3459 echo "$as_me:3459: result: $enable_mixedcase" >&5
3460 echo "${ECHO_T}$enable_mixedcase" >&6
3461 if test "$enable_mixedcase" = "auto" ; then
3463 echo "$as_me:3463: checking if filesystem supports mixed-case filenames" >&5
3464 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3465 if test "${cf_cv_mixedcase+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 if test "$cross_compiling" = yes ; then
3470 case $target_alias in #(vi
3471 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw32*|*-uwin*) #(vi
3479 rm -f conftest CONFTEST
3481 if test -f CONFTEST ; then
3486 rm -f conftest CONFTEST
3490 echo "$as_me:3490: result: $cf_cv_mixedcase" >&5
3491 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3492 test "$cf_cv_mixedcase" = yes &&
3493 cat >>confdefs.h <<\EOF
3494 #define MIXEDCASE_FILENAMES 1
3498 cf_cv_mixedcase=$enable_mixedcase
3499 if test "x$enable_mixedcase" = "xyes" ; then
3501 cat >>confdefs.h <<\EOF
3502 #define MIXEDCASE_FILENAMES 1
3508 # do this after mixed-case option (tags/TAGS is not as important as tic).
3509 echo "$as_me:3509: checking whether ${MAKE-make} sets \${MAKE}" >&5
3510 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3511 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3512 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 cat >conftest.make <<\EOF
3517 @echo 'ac_maketemp="${MAKE}"'
3519 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3520 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3521 if test -n "$ac_maketemp"; then
3522 eval ac_cv_prog_make_${ac_make}_set=yes
3524 eval ac_cv_prog_make_${ac_make}_set=no
3528 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3529 echo "$as_me:3529: result: yes" >&5
3530 echo "${ECHO_T}yes" >&6
3533 echo "$as_me:3533: result: no" >&5
3534 echo "${ECHO_T}no" >&6
3535 SET_MAKE="MAKE=${MAKE-make}"
3538 for ac_prog in exctags ctags
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 echo "$as_me:3542: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_prog_CTAGS+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test -n "$CTAGS"; then
3548 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3550 ac_save_IFS=$IFS; IFS=$ac_path_separator
3552 for ac_dir in $ac_dummy; do
3554 test -z "$ac_dir" && ac_dir=.
3555 $as_executable_p "$ac_dir/$ac_word" || continue
3556 ac_cv_prog_CTAGS="$ac_prog"
3557 echo "$as_me:3557: found $ac_dir/$ac_word" >&5
3563 CTAGS=$ac_cv_prog_CTAGS
3564 if test -n "$CTAGS"; then
3565 echo "$as_me:3565: result: $CTAGS" >&5
3566 echo "${ECHO_T}$CTAGS" >&6
3568 echo "$as_me:3568: result: no" >&5
3569 echo "${ECHO_T}no" >&6
3572 test -n "$CTAGS" && break
3575 for ac_prog in exetags etags
3577 # Extract the first word of "$ac_prog", so it can be a program name with args.
3578 set dummy $ac_prog; ac_word=$2
3579 echo "$as_me:3579: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581 if test "${ac_cv_prog_ETAGS+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if test -n "$ETAGS"; then
3585 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3587 ac_save_IFS=$IFS; IFS=$ac_path_separator
3589 for ac_dir in $ac_dummy; do
3591 test -z "$ac_dir" && ac_dir=.
3592 $as_executable_p "$ac_dir/$ac_word" || continue
3593 ac_cv_prog_ETAGS="$ac_prog"
3594 echo "$as_me:3594: found $ac_dir/$ac_word" >&5
3600 ETAGS=$ac_cv_prog_ETAGS
3601 if test -n "$ETAGS"; then
3602 echo "$as_me:3602: result: $ETAGS" >&5
3603 echo "${ECHO_T}$ETAGS" >&6
3605 echo "$as_me:3605: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3609 test -n "$ETAGS" && break
3612 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3613 set dummy ${CTAGS:-ctags}; ac_word=$2
3614 echo "$as_me:3614: checking for $ac_word" >&5
3615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3616 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test -n "$MAKE_LOWER_TAGS"; then
3620 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3622 ac_save_IFS=$IFS; IFS=$ac_path_separator
3624 for ac_dir in $ac_dummy; do
3626 test -z "$ac_dir" && ac_dir=.
3627 $as_executable_p "$ac_dir/$ac_word" || continue
3628 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3629 echo "$as_me:3629: found $ac_dir/$ac_word" >&5
3633 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3636 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3637 if test -n "$MAKE_LOWER_TAGS"; then
3638 echo "$as_me:3638: result: $MAKE_LOWER_TAGS" >&5
3639 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3641 echo "$as_me:3641: result: no" >&5
3642 echo "${ECHO_T}no" >&6
3645 if test "$cf_cv_mixedcase" = yes ; then
3646 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3647 set dummy ${ETAGS:-etags}; ac_word=$2
3648 echo "$as_me:3648: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 if test -n "$MAKE_UPPER_TAGS"; then
3654 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3656 ac_save_IFS=$IFS; IFS=$ac_path_separator
3658 for ac_dir in $ac_dummy; do
3660 test -z "$ac_dir" && ac_dir=.
3661 $as_executable_p "$ac_dir/$ac_word" || continue
3662 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3663 echo "$as_me:3663: found $ac_dir/$ac_word" >&5
3667 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3670 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3671 if test -n "$MAKE_UPPER_TAGS"; then
3672 echo "$as_me:3672: result: $MAKE_UPPER_TAGS" >&5
3673 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3675 echo "$as_me:3675: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3683 if test "$MAKE_UPPER_TAGS" = yes ; then
3689 if test "$MAKE_LOWER_TAGS" = yes ; then
3695 echo "$as_me:3695: checking for makeflags variable" >&5
3696 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3697 if test "${cf_cv_makeflags+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3704 cat >cf_makeflags.tmp <<CF_EOF
3707 @ echo '.$cf_option'
3709 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3710 case "$cf_result" in
3712 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3713 case "$cf_result" in
3714 .*CC=*) cf_cv_makeflags=
3716 *) cf_cv_makeflags=$cf_option
3722 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3726 rm -f cf_makeflags.tmp
3729 echo "$as_me:3729: result: $cf_cv_makeflags" >&5
3730 echo "${ECHO_T}$cf_cv_makeflags" >&6
3732 if test -n "$ac_tool_prefix"; then
3733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3735 echo "$as_me:3735: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_RANLIB+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$RANLIB"; then
3741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3743 ac_save_IFS=$IFS; IFS=$ac_path_separator
3745 for ac_dir in $ac_dummy; do
3747 test -z "$ac_dir" && ac_dir=.
3748 $as_executable_p "$ac_dir/$ac_word" || continue
3749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3750 echo "$as_me:3750: found $ac_dir/$ac_word" >&5
3756 RANLIB=$ac_cv_prog_RANLIB
3757 if test -n "$RANLIB"; then
3758 echo "$as_me:3758: result: $RANLIB" >&5
3759 echo "${ECHO_T}$RANLIB" >&6
3761 echo "$as_me:3761: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3766 if test -z "$ac_cv_prog_RANLIB"; then
3767 ac_ct_RANLIB=$RANLIB
3768 # Extract the first word of "ranlib", so it can be a program name with args.
3769 set dummy ranlib; ac_word=$2
3770 echo "$as_me:3770: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 if test -n "$ac_ct_RANLIB"; then
3776 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3778 ac_save_IFS=$IFS; IFS=$ac_path_separator
3780 for ac_dir in $ac_dummy; do
3782 test -z "$ac_dir" && ac_dir=.
3783 $as_executable_p "$ac_dir/$ac_word" || continue
3784 ac_cv_prog_ac_ct_RANLIB="ranlib"
3785 echo "$as_me:3785: found $ac_dir/$ac_word" >&5
3789 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3793 if test -n "$ac_ct_RANLIB"; then
3794 echo "$as_me:3794: result: $ac_ct_RANLIB" >&5
3795 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3797 echo "$as_me:3797: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3801 RANLIB=$ac_ct_RANLIB
3803 RANLIB="$ac_cv_prog_RANLIB"
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ld; ac_word=$2
3809 echo "$as_me:3809: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_LD+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test -n "$LD"; then
3815 ac_cv_prog_LD="$LD" # Let the user override the test.
3817 ac_save_IFS=$IFS; IFS=$ac_path_separator
3819 for ac_dir in $ac_dummy; do
3821 test -z "$ac_dir" && ac_dir=.
3822 $as_executable_p "$ac_dir/$ac_word" || continue
3823 ac_cv_prog_LD="${ac_tool_prefix}ld"
3824 echo "$as_me:3824: found $ac_dir/$ac_word" >&5
3831 if test -n "$LD"; then
3832 echo "$as_me:3832: result: $LD" >&5
3833 echo "${ECHO_T}$LD" >&6
3835 echo "$as_me:3835: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3840 if test -z "$ac_cv_prog_LD"; then
3842 # Extract the first word of "ld", so it can be a program name with args.
3843 set dummy ld; ac_word=$2
3844 echo "$as_me:3844: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 if test -n "$ac_ct_LD"; then
3850 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3852 ac_save_IFS=$IFS; IFS=$ac_path_separator
3854 for ac_dir in $ac_dummy; do
3856 test -z "$ac_dir" && ac_dir=.
3857 $as_executable_p "$ac_dir/$ac_word" || continue
3858 ac_cv_prog_ac_ct_LD="ld"
3859 echo "$as_me:3859: found $ac_dir/$ac_word" >&5
3863 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3866 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3867 if test -n "$ac_ct_LD"; then
3868 echo "$as_me:3868: result: $ac_ct_LD" >&5
3869 echo "${ECHO_T}$ac_ct_LD" >&6
3871 echo "$as_me:3871: result: no" >&5
3872 echo "${ECHO_T}no" >&6
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}ar; ac_word=$2
3883 echo "$as_me:3883: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_AR+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 if test -n "$AR"; then
3889 ac_cv_prog_AR="$AR" # Let the user override the test.
3891 ac_save_IFS=$IFS; IFS=$ac_path_separator
3893 for ac_dir in $ac_dummy; do
3895 test -z "$ac_dir" && ac_dir=.
3896 $as_executable_p "$ac_dir/$ac_word" || continue
3897 ac_cv_prog_AR="${ac_tool_prefix}ar"
3898 echo "$as_me:3898: found $ac_dir/$ac_word" >&5
3905 if test -n "$AR"; then
3906 echo "$as_me:3906: result: $AR" >&5
3907 echo "${ECHO_T}$AR" >&6
3909 echo "$as_me:3909: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3914 if test -z "$ac_cv_prog_AR"; then
3916 # Extract the first word of "ar", so it can be a program name with args.
3917 set dummy ar; ac_word=$2
3918 echo "$as_me:3918: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -n "$ac_ct_AR"; then
3924 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3926 ac_save_IFS=$IFS; IFS=$ac_path_separator
3928 for ac_dir in $ac_dummy; do
3930 test -z "$ac_dir" && ac_dir=.
3931 $as_executable_p "$ac_dir/$ac_word" || continue
3932 ac_cv_prog_ac_ct_AR="ar"
3933 echo "$as_me:3933: found $ac_dir/$ac_word" >&5
3937 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3940 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3941 if test -n "$ac_ct_AR"; then
3942 echo "$as_me:3942: result: $ac_ct_AR" >&5
3943 echo "${ECHO_T}$ac_ct_AR" >&6
3945 echo "$as_me:3945: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3954 if test -n "$ac_tool_prefix"; then
3955 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}nm; ac_word=$2
3957 echo "$as_me:3957: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3959 if test "${ac_cv_prog_NM+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 if test -n "$NM"; then
3963 ac_cv_prog_NM="$NM" # Let the user override the test.
3965 ac_save_IFS=$IFS; IFS=$ac_path_separator
3967 for ac_dir in $ac_dummy; do
3969 test -z "$ac_dir" && ac_dir=.
3970 $as_executable_p "$ac_dir/$ac_word" || continue
3971 ac_cv_prog_NM="${ac_tool_prefix}nm"
3972 echo "$as_me:3972: found $ac_dir/$ac_word" >&5
3979 if test -n "$NM"; then
3980 echo "$as_me:3980: result: $NM" >&5
3981 echo "${ECHO_T}$NM" >&6
3983 echo "$as_me:3983: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3988 if test -z "$ac_cv_prog_NM"; then
3990 # Extract the first word of "nm", so it can be a program name with args.
3991 set dummy nm; ac_word=$2
3992 echo "$as_me:3992: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 if test -n "$ac_ct_NM"; then
3998 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4000 ac_save_IFS=$IFS; IFS=$ac_path_separator
4002 for ac_dir in $ac_dummy; do
4004 test -z "$ac_dir" && ac_dir=.
4005 $as_executable_p "$ac_dir/$ac_word" || continue
4006 ac_cv_prog_ac_ct_NM="nm"
4007 echo "$as_me:4007: found $ac_dir/$ac_word" >&5
4011 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4014 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4015 if test -n "$ac_ct_NM"; then
4016 echo "$as_me:4016: result: $ac_ct_NM" >&5
4017 echo "${ECHO_T}$ac_ct_NM" >&6
4019 echo "$as_me:4019: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}ar; ac_word=$2
4031 echo "$as_me:4031: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_AR+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if test -n "$AR"; then
4037 ac_cv_prog_AR="$AR" # Let the user override the test.
4039 ac_save_IFS=$IFS; IFS=$ac_path_separator
4041 for ac_dir in $ac_dummy; do
4043 test -z "$ac_dir" && ac_dir=.
4044 $as_executable_p "$ac_dir/$ac_word" || continue
4045 ac_cv_prog_AR="${ac_tool_prefix}ar"
4046 echo "$as_me:4046: found $ac_dir/$ac_word" >&5
4053 if test -n "$AR"; then
4054 echo "$as_me:4054: result: $AR" >&5
4055 echo "${ECHO_T}$AR" >&6
4057 echo "$as_me:4057: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4062 if test -z "$ac_cv_prog_AR"; then
4064 # Extract the first word of "ar", so it can be a program name with args.
4065 set dummy ar; ac_word=$2
4066 echo "$as_me:4066: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4068 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6