2 # From configure.in Revision: 1.579 .
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-lib-suffixes disable library suffixes
744 --disable-rpath-hack don't add rpath options for additional libraries
745 Fine-Tuning Your Configuration:
746 --disable-overwrite leave out the link to -lcurses
747 --disable-database do not use terminfo, only fallbacks/termcap
748 --with-database=XXX specify terminfo source to install
749 --with-hashed-db specify hashed-database library
750 --with-fallbacks=XXX specify list of fallback terminal descriptions
751 --without-xterm-new specify if xterm terminfo should be old version
752 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
753 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
754 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
755 --disable-big-core assume machine has little memory
756 --disable-big-strings assume compiler has only standard-size strings
757 --enable-termcap compile in termcap fallback support
758 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
759 --enable-getcap fast termcap load, no xrefs to terminfo
760 --enable-getcap-cache cache translated termcaps in ~/.terminfo
761 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
762 --disable-root-environ restrict environment when running as root
763 --enable-symlinks make tic use symbolic links not hard links
764 --enable-broken_linker compile with broken-linker support code
765 --enable-bsdpad recognize BSD-style prefix padding
766 --enable-widec compile with wide-char/UTF-8 code
767 --disable-lp64 allow chtype to be long (ignore _LP64)
768 --disable-largefile omit support for large files
769 --disable-tparm-varargs compile tparm() without varargs interface
770 --disable-tic-depends link tic library without explicit dependency on ncurses library
771 --with-bool=TYPE override fallback type of bool variable
772 --with-caps=alt compile with alternate Caps file
773 --with-chtype=TYPE override type of chtype
774 --with-ospeed=TYPE override type of ospeed variable
775 --with-mmask-t=TYPE override type of mmask_t
776 --with-ccharw-max=XXX override size CCHARW_MAX
777 --with-tparm-arg=TYPE override parameter type of tparm
778 --with-rcs-ids compile-in RCS identifiers
779 Options to Specify How Manpages are Installed:
780 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
781 optionally formatted/catonly, e.g., gzip,formatted
782 --with-manpage-renames specify manpage-renaming
783 --with-manpage-aliases specify manpage-aliases using .so
784 --with-manpage-symlinks specify manpage-aliases using symlinks
785 --with-manpage-tbl specify manpage processing with tbl
787 --disable-ext-funcs disable function-extensions
788 --enable-sp-funcs enable experimental SCREEN-extensions
789 --enable-term-driver enable experimental terminal-driver
790 --enable-const compile with extra/non-standard const
791 --enable-ext-colors compile for 256-color support
792 --enable-ext-mouse compile for extended mouse-encoding
793 --enable-no-padding compile with $NCURSES_NO_PADDING code
794 --enable-signed-char compile using signed Boolean's in term.h
795 --enable-sigwinch compile with SIGWINCH handler
796 --enable-tcap-names compile with user-definable terminal capabilities
798 --without-develop disable development options
799 --enable-hard-tabs compile with hard-tabs code
800 --enable-xmc-glitch compile with support for xmc (magic-cookie)
802 --disable-assumed-color do not assume anything about default-colors
803 --disable-hashmap compile without hashmap scrolling-optimization
804 --enable-colorfgbg compile-in experimental $COLORFGBG code
805 --enable-interop compile-in experimental interop bindings
806 --with-pthread use POSIX thread library
807 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
808 --enable-weak-symbols enable weak-symbols for pthreads
809 --enable-reentrant compile with experimental reentrant code
810 --with-wrap-prefix=XXX override prefix used for public variables
811 --enable-safe-sprintf compile with experimental safe-sprintf code
812 --disable-scroll-hints compile without scroll-hints code
813 --enable-wgetch-events compile with experimental wgetch-events code
814 Testing/development Options:
815 --disable-echo do not display "compiling" commands
816 --enable-warnings build: turn on GCC compiler warnings
817 --enable-string-hacks work around bogus compiler/loader warnings
818 --enable-assertions test: turn on generation of assertion code
819 --with-dmalloc test: use Gray Watson's dmalloc library
820 --with-dbmalloc test: use Conor Cahill's dbmalloc library
821 --with-valgrind test: use valgrind
822 --disable-leaks test: free permanent memory, analyze leaks
823 --enable-expanded test: generate functions for certain macros
824 --disable-macros test: use functions rather than macros
825 --with-trace test: add trace() function to all models of ncurses
826 Ada95 Binding Options:
827 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
828 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
829 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
830 --with-ada-sharedlib=XX build Ada95 shared-library
832 Some influential environment variables:
833 CC C compiler command
834 CFLAGS C compiler flags
835 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
836 nonstandard directory <lib dir>
837 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
838 headers in a nonstandard directory <include dir>
840 CXX C++ compiler command
841 CXXFLAGS C++ compiler flags
842 CXXCPP C++ preprocessor
844 Use these variables to override the choices made by `configure' or to help
845 it to find libraries and programs with nonstandard names/locations.
850 if test "$ac_init_help" = "recursive"; then
851 # If there are subdirs, report their specific --help.
853 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
855 # A "../" for each directory in /$ac_subdir.
856 ac_dots=`echo $ac_subdir |
857 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
860 .) # No --srcdir option. We are building in place.
861 ac_sub_srcdir=$srcdir ;;
862 [\\/]* | ?:[\\/]* ) # Absolute path.
863 ac_sub_srcdir=$srcdir/$ac_subdir ;;
865 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
868 # Check for guested configure; otherwise get Cygnus style configure.
869 if test -f $ac_sub_srcdir/configure.gnu; then
871 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
872 elif test -f $ac_sub_srcdir/configure; then
874 $SHELL $ac_sub_srcdir/configure --help=recursive
875 elif test -f $ac_sub_srcdir/configure.ac ||
876 test -f $ac_sub_srcdir/configure.in; then
880 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
886 test -n "$ac_init_help" && exit 0
887 if $ac_init_version; then
890 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
891 Free Software Foundation, Inc.
892 This configure script is free software; the Free Software Foundation
893 gives unlimited permission to copy, distribute and modify it.
899 This file contains any messages produced by compilers while
900 running configure, to aid debugging if configure makes a mistake.
902 It was created by $as_me, which was
903 generated by GNU Autoconf 2.52.20121002. Invocation command line was
914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
926 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
943 # Keep a trace of the command line.
944 # Strip out --no-create and --no-recursion so they do not pile up.
945 # Also quote any args containing shell meta-characters.
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c) ;;
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
955 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
956 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
957 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
959 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
962 # Get rid of the leading space.
965 # When interrupted or exit'd, cleanup temporary files, and complete
966 # config.log. We remove comments because anyway the quotes in there
967 # would cause problems or look ugly.
969 # Save into config.log some information that might help in debugging.
971 echo "## ----------------- ##" >&5
972 echo "## Cache variables. ##" >&5
973 echo "## ----------------- ##" >&5
975 # The following way of writing the cache mishandles newlines in values,
978 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
981 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
986 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
990 sed "/^$/d" confdefs.h >conftest.log
991 if test -s conftest.log; then
993 echo "## ------------ ##" >&5
994 echo "## confdefs.h. ##" >&5
995 echo "## ------------ ##" >&5
1000 test "$ac_signal" != 0 &&
1001 echo "$as_me: caught signal $ac_signal" >&5
1002 echo "$as_me: exit $exit_status" >&5
1003 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1006 for ac_signal in 1 2 13 15; do
1007 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1011 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1012 rm -rf conftest* confdefs.h
1013 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1016 # Let the site file select an alternate cache file if it wants to.
1017 # Prefer explicitly selected file to automatically selected ones.
1018 if test -z "$CONFIG_SITE"; then
1019 if test "x$prefix" != xNONE; then
1020 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1022 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1025 for ac_site_file in $CONFIG_SITE; do
1026 if test -r "$ac_site_file"; then
1027 { echo "$as_me:1027: loading site script $ac_site_file" >&5
1028 echo "$as_me: loading site script $ac_site_file" >&6;}
1029 cat "$ac_site_file" >&5
1034 if test -r "$cache_file"; then
1035 # Some versions of bash will fail to source /dev/null (special
1036 # files actually), so we avoid doing that.
1037 if test -f "$cache_file"; then
1038 { echo "$as_me:1038: loading cache $cache_file" >&5
1039 echo "$as_me: loading cache $cache_file" >&6;}
1041 [\\/]* | ?:[\\/]* ) . $cache_file;;
1042 *) . ./$cache_file;;
1046 { echo "$as_me:1046: creating cache $cache_file" >&5
1047 echo "$as_me: creating cache $cache_file" >&6;}
1051 # Check that the precious variables saved in the cache have kept the same
1053 ac_cache_corrupted=false
1054 for ac_var in `(set) 2>&1 |
1055 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1056 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1057 eval ac_new_set=\$ac_env_${ac_var}_set
1058 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1059 eval ac_new_val="\$ac_env_${ac_var}_value"
1060 case $ac_old_set,$ac_new_set in
1062 { echo "$as_me:1062: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1063 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1064 ac_cache_corrupted=: ;;
1066 { echo "$as_me:1066: error: \`$ac_var' was not set in the previous run" >&5
1067 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1068 ac_cache_corrupted=: ;;
1071 if test "x$ac_old_val" != "x$ac_new_val"; then
1072 { echo "$as_me:1072: error: \`$ac_var' has changed since the previous run:" >&5
1073 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1074 { echo "$as_me:1074: former value: $ac_old_val" >&5
1075 echo "$as_me: former value: $ac_old_val" >&2;}
1076 { echo "$as_me:1076: current value: $ac_new_val" >&5
1077 echo "$as_me: current value: $ac_new_val" >&2;}
1078 ac_cache_corrupted=:
1081 # Pass precious variables to config.status. It doesn't matter if
1082 # we pass some twice (in addition to the command line arguments).
1083 if test "$ac_new_set" = set; then
1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1086 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1087 ac_configure_args="$ac_configure_args '$ac_arg'"
1089 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1094 if $ac_cache_corrupted; then
1095 { echo "$as_me:1095: error: changes in the environment can compromise the build" >&5
1096 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1097 { { echo "$as_me:1097: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1098 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1099 { (exit 1); exit 1; }; }
1103 ac_cpp='$CPP $CPPFLAGS'
1104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1107 ac_main_return=return
1109 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1110 *c*,-n*) ECHO_N= ECHO_C='
1112 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1113 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1115 echo "#! $SHELL" >conftest.sh
1116 echo "exit 0" >>conftest.sh
1117 chmod +x conftest.sh
1118 if { (echo "$as_me:1118: PATH=\".;.\"; conftest.sh") >&5
1119 (PATH=".;."; conftest.sh) 2>&5
1121 echo "$as_me:1121: \$? = $ac_status" >&5
1122 (exit $ac_status); }; then
1123 ac_path_separator=';'
1127 PATH_SEPARATOR="$ac_path_separator"
1130 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1134 echo "$as_me:1134: checking for egrep" >&5
1135 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1136 if test "${ac_cv_prog_egrep+set}" = set; then
1137 echo $ECHO_N "(cached) $ECHO_C" >&6
1139 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1140 then ac_cv_prog_egrep='grep -E'
1141 else ac_cv_prog_egrep='egrep'
1144 echo "$as_me:1144: result: $ac_cv_prog_egrep" >&5
1145 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1146 EGREP=$ac_cv_prog_egrep
1148 test -z "$EGREP" && { { echo "$as_me:1148: error: No egrep program found" >&5
1149 echo "$as_me: error: No egrep program found" >&2;}
1150 { (exit 1); exit 1; }; }
1152 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1153 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1154 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1155 cf_cv_abi_version=${NCURSES_MAJOR}
1156 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1157 cf_cv_timestamp=`date`
1158 echo "$as_me:1158: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1159 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1161 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1163 # Check whether --with-rel-version or --without-rel-version was given.
1164 if test "${with_rel_version+set}" = set; then
1165 withval="$with_rel_version"
1166 { echo "$as_me:1166: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1167 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1168 cf_cv_rel_version=$withval
1171 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1172 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1174 if test -n "$NCURSES_MAJOR" ; then
1175 case $NCURSES_MAJOR in #(vi
1179 { { echo "$as_me:1179: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1180 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1181 { (exit 1); exit 1; }; }
1185 { { echo "$as_me:1185: error: Release major-version value is empty" >&5
1186 echo "$as_me: error: Release major-version value is empty" >&2;}
1187 { (exit 1); exit 1; }; }
1190 if test -n "$NCURSES_MINOR" ; then
1191 case $NCURSES_MINOR in #(vi
1195 { { echo "$as_me:1195: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1196 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1197 { (exit 1); exit 1; }; }
1201 { { echo "$as_me:1201: error: Release minor-version value is empty" >&5
1202 echo "$as_me: error: Release minor-version value is empty" >&2;}
1203 { (exit 1); exit 1; }; }
1206 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1208 # Check whether --with-abi-version or --without-abi-version was given.
1209 if test "${with_abi_version+set}" = set; then
1210 withval="$with_abi_version"
1211 { echo "$as_me:1211: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1212 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1213 cf_cv_abi_version=$withval
1216 if test -n "$cf_cv_abi_version" ; then
1217 case $cf_cv_abi_version in #(vi
1221 { { echo "$as_me:1221: error: ABI version is not a number: $cf_cv_abi_version" >&5
1222 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1223 { (exit 1); exit 1; }; }
1227 { { echo "$as_me:1227: error: ABI version value is empty" >&5
1228 echo "$as_me: error: ABI version value is empty" >&2;}
1229 { (exit 1); exit 1; }; }
1233 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1234 if test -f $ac_dir/install-sh; then
1236 ac_install_sh="$ac_aux_dir/install-sh -c"
1238 elif test -f $ac_dir/install.sh; then
1240 ac_install_sh="$ac_aux_dir/install.sh -c"
1242 elif test -f $ac_dir/shtool; then
1244 ac_install_sh="$ac_aux_dir/shtool install -c"
1248 if test -z "$ac_aux_dir"; then
1249 { { echo "$as_me:1249: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1250 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1251 { (exit 1); exit 1; }; }
1253 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1254 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1255 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1257 # Make sure we can run config.sub.
1258 $ac_config_sub sun4 >/dev/null 2>&1 ||
1259 { { echo "$as_me:1259: error: cannot run $ac_config_sub" >&5
1260 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1261 { (exit 1); exit 1; }; }
1263 echo "$as_me:1263: checking build system type" >&5
1264 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1265 if test "${ac_cv_build+set}" = set; then
1266 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 ac_cv_build_alias=$build_alias
1269 test -z "$ac_cv_build_alias" &&
1270 ac_cv_build_alias=`$ac_config_guess`
1271 test -z "$ac_cv_build_alias" &&
1272 { { echo "$as_me:1272: error: cannot guess build type; you must specify one" >&5
1273 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1274 { (exit 1); exit 1; }; }
1275 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1276 { { echo "$as_me:1276: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1277 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1278 { (exit 1); exit 1; }; }
1281 echo "$as_me:1281: result: $ac_cv_build" >&5
1282 echo "${ECHO_T}$ac_cv_build" >&6
1284 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1285 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1286 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1288 echo "$as_me:1288: checking host system type" >&5
1289 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1290 if test "${ac_cv_host+set}" = set; then
1291 echo $ECHO_N "(cached) $ECHO_C" >&6
1293 ac_cv_host_alias=$host_alias
1294 test -z "$ac_cv_host_alias" &&
1295 ac_cv_host_alias=$ac_cv_build_alias
1296 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1297 { { echo "$as_me:1297: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1298 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1299 { (exit 1); exit 1; }; }
1302 echo "$as_me:1302: result: $ac_cv_host" >&5
1303 echo "${ECHO_T}$ac_cv_host" >&6
1305 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1306 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1307 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1309 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1310 echo "$as_me:1310: checking target system type" >&5
1311 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1312 if test "${ac_cv_target+set}" = set; then
1313 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 ac_cv_target_alias=$target_alias
1316 test "x$ac_cv_target_alias" = "x" &&
1317 ac_cv_target_alias=$ac_cv_host_alias
1318 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1319 { { echo "$as_me:1319: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1320 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1321 { (exit 1); exit 1; }; }
1324 echo "$as_me:1324: result: $ac_cv_target" >&5
1325 echo "${ECHO_T}$ac_cv_target" >&6
1326 target=$ac_cv_target
1327 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1328 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1329 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331 # The aliases save the names the user supplied, while $host etc.
1332 # will get canonicalized.
1333 test -n "$target_alias" &&
1334 test "$program_prefix$program_suffix$program_transform_name" = \
1336 program_prefix=${target_alias}-
1337 system_name="$host_os"
1339 system_name="`(uname -s -r) 2>/dev/null`"
1340 if test -z "$system_name" ; then
1341 system_name="`(hostname) 2>/dev/null`"
1344 test -n "$system_name" &&
1345 cat >>confdefs.h <<EOF
1346 #define SYSTEM_NAME "$system_name"
1349 if test "${cf_cv_system_name+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 cf_cv_system_name="$system_name"
1355 test -z "$system_name" && system_name="$cf_cv_system_name"
1356 test -n "$cf_cv_system_name" && echo "$as_me:1356: result: Configuring for $cf_cv_system_name" >&5
1357 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1359 if test ".$system_name" != ".$cf_cv_system_name" ; then
1360 echo "$as_me:1360: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1361 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1362 { { echo "$as_me:1362: error: \"Please remove config.cache and try again.\"" >&5
1363 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1364 { (exit 1); exit 1; }; }
1367 # Check whether --with-system-type or --without-system-type was given.
1368 if test "${with_system_type+set}" = set; then
1369 withval="$with_system_type"
1370 { echo "$as_me:1370: WARNING: overriding system type to $withval" >&5
1371 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1372 cf_cv_system_name=$withval
1377 ### Save the given $CFLAGS to allow user-override.
1378 cf_user_CFLAGS="$CFLAGS"
1380 ### Default install-location
1382 echo "$as_me:1382: checking for prefix" >&5
1383 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1384 if test "x$prefix" = "xNONE" ; then
1385 case "$cf_cv_system_name" in
1386 # non-vendor systems don't have a conflict
1387 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1390 *) prefix=$ac_default_prefix
1394 echo "$as_me:1394: result: $prefix" >&5
1395 echo "${ECHO_T}$prefix" >&6
1397 if test "x$prefix" = "xNONE" ; then
1398 echo "$as_me:1398: checking for default include-directory" >&5
1399 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1400 test -n "$verbose" && echo 1>&6
1403 $includedir/ncurses \
1405 $prefix/include/ncurses \
1406 /usr/local/include \
1407 /usr/local/include/ncurses \
1409 /usr/include/ncurses
1411 cf_dir=`eval echo $cf_symbol`
1412 if test -f $cf_dir/curses.h ; then
1413 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1414 includedir="$cf_symbol"
1415 test -n "$verbose" && echo $ac_n " found " 1>&6
1419 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1421 echo "$as_me:1421: result: $includedir" >&5
1422 echo "${ECHO_T}$includedir" >&6
1425 ### Checks for programs.
1427 # Check whether --with-ada or --without-ada was given.
1428 if test "${with_ada+set}" = set; then
1430 cf_with_ada=$withval
1434 if test "x$cf_with_ada" = xyes
1436 cf_PROG_CC="gnatgcc gcc cc"
1442 ac_cpp='$CPP $CPPFLAGS'
1443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1446 ac_main_return=return
1447 if test -n "$ac_tool_prefix"; then
1448 for ac_prog in $cf_PROG_CC
1450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1452 echo "$as_me:1452: checking for $ac_word" >&5
1453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1454 if test "${ac_cv_prog_CC+set}" = set; then
1455 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 if test -n "$CC"; then
1458 ac_cv_prog_CC="$CC" # Let the user override the test.
1460 ac_save_IFS=$IFS; IFS=$ac_path_separator
1462 for ac_dir in $ac_dummy; do
1464 test -z "$ac_dir" && ac_dir=.
1465 $as_executable_p "$ac_dir/$ac_word" || continue
1466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1467 echo "$as_me:1467: found $ac_dir/$ac_word" >&5
1474 if test -n "$CC"; then
1475 echo "$as_me:1475: result: $CC" >&5
1476 echo "${ECHO_T}$CC" >&6
1478 echo "$as_me:1478: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1482 test -n "$CC" && break
1485 if test -z "$CC"; then
1487 for ac_prog in $cf_PROG_CC
1489 # Extract the first word of "$ac_prog", so it can be a program name with args.
1490 set dummy $ac_prog; ac_word=$2
1491 echo "$as_me:1491: checking for $ac_word" >&5
1492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 if test -n "$ac_ct_CC"; then
1497 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1499 ac_save_IFS=$IFS; IFS=$ac_path_separator
1501 for ac_dir in $ac_dummy; do
1503 test -z "$ac_dir" && ac_dir=.
1504 $as_executable_p "$ac_dir/$ac_word" || continue
1505 ac_cv_prog_ac_ct_CC="$ac_prog"
1506 echo "$as_me:1506: found $ac_dir/$ac_word" >&5
1512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1513 if test -n "$ac_ct_CC"; then
1514 echo "$as_me:1514: result: $ac_ct_CC" >&5
1515 echo "${ECHO_T}$ac_ct_CC" >&6
1517 echo "$as_me:1517: result: no" >&5
1518 echo "${ECHO_T}no" >&6
1521 test -n "$ac_ct_CC" && break
1527 test -z "$CC" && { { echo "$as_me:1527: error: no acceptable cc found in \$PATH" >&5
1528 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1529 { (exit 1); exit 1; }; }
1531 # Provide some information about the compiler.
1532 echo "$as_me:1532:" \
1533 "checking for C compiler version" >&5
1534 ac_compiler=`set X $ac_compile; echo $2`
1535 { (eval echo "$as_me:1535: \"$ac_compiler --version </dev/null >&5\"") >&5
1536 (eval $ac_compiler --version </dev/null >&5) 2>&5
1538 echo "$as_me:1538: \$? = $ac_status" >&5
1539 (exit $ac_status); }
1540 { (eval echo "$as_me:1540: \"$ac_compiler -v </dev/null >&5\"") >&5
1541 (eval $ac_compiler -v </dev/null >&5) 2>&5
1543 echo "$as_me:1543: \$? = $ac_status" >&5
1544 (exit $ac_status); }
1545 { (eval echo "$as_me:1545: \"$ac_compiler -V </dev/null >&5\"") >&5
1546 (eval $ac_compiler -V </dev/null >&5) 2>&5
1548 echo "$as_me:1548: \$? = $ac_status" >&5
1549 (exit $ac_status); }
1551 cat >conftest.$ac_ext <<_ACEOF
1552 #line 1552 "configure"
1553 #include "confdefs.h"
1563 ac_clean_files_save=$ac_clean_files
1564 ac_clean_files="$ac_clean_files a.out a.exe"
1565 # Try to create an executable without -o first, disregard a.out.
1566 # It will help us diagnose broken compilers, and finding out an intuition
1568 echo "$as_me:1568: checking for C compiler default output" >&5
1569 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1570 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1571 if { (eval echo "$as_me:1571: \"$ac_link_default\"") >&5
1572 (eval $ac_link_default) 2>&5
1574 echo "$as_me:1574: \$? = $ac_status" >&5
1575 (exit $ac_status); }; then
1576 # Find the output, starting from the most likely. This scheme is
1577 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1579 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1580 ls a.out conftest 2>/dev/null;
1581 ls a.* conftest.* 2>/dev/null`; do
1583 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1584 a.out ) # We found the default executable, but exeext='' is most
1587 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1588 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1595 echo "$as_me: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1597 { { echo "$as_me:1597: error: C compiler cannot create executables" >&5
1598 echo "$as_me: error: C compiler cannot create executables" >&2;}
1599 { (exit 77); exit 77; }; }
1602 ac_exeext=$ac_cv_exeext
1603 echo "$as_me:1603: result: $ac_file" >&5
1604 echo "${ECHO_T}$ac_file" >&6
1606 # Check the compiler produces executables we can run. If not, either
1607 # the compiler is broken, or we cross compile.
1608 echo "$as_me:1608: checking whether the C compiler works" >&5
1609 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1610 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1611 # If not cross compiling, check that we can run a simple program.
1612 if test "$cross_compiling" != yes; then
1613 if { ac_try='./$ac_file'
1614 { (eval echo "$as_me:1614: \"$ac_try\"") >&5
1617 echo "$as_me:1617: \$? = $ac_status" >&5
1618 (exit $ac_status); }; }; then
1621 if test "$cross_compiling" = maybe; then
1624 { { echo "$as_me:1624: error: cannot run C compiled programs.
1625 If you meant to cross compile, use \`--host'." >&5
1626 echo "$as_me: error: cannot run C compiled programs.
1627 If you meant to cross compile, use \`--host'." >&2;}
1628 { (exit 1); exit 1; }; }
1632 echo "$as_me:1632: result: yes" >&5
1633 echo "${ECHO_T}yes" >&6
1635 rm -f a.out a.exe conftest$ac_cv_exeext
1636 ac_clean_files=$ac_clean_files_save
1637 # Check the compiler produces executables we can run. If not, either
1638 # the compiler is broken, or we cross compile.
1639 echo "$as_me:1639: checking whether we are cross compiling" >&5
1640 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1641 echo "$as_me:1641: result: $cross_compiling" >&5
1642 echo "${ECHO_T}$cross_compiling" >&6
1644 echo "$as_me:1644: checking for executable suffix" >&5
1645 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1646 if { (eval echo "$as_me:1646: \"$ac_link\"") >&5
1647 (eval $ac_link) 2>&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); }; then
1651 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1652 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1653 # work properly (i.e., refer to `conftest.exe'), while it won't with
1655 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1657 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1665 { { echo "$as_me:1665: error: cannot compute EXEEXT: cannot compile and link" >&5
1666 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1667 { (exit 1); exit 1; }; }
1670 rm -f conftest$ac_cv_exeext
1671 echo "$as_me:1671: result: $ac_cv_exeext" >&5
1672 echo "${ECHO_T}$ac_cv_exeext" >&6
1674 rm -f conftest.$ac_ext
1675 EXEEXT=$ac_cv_exeext
1677 echo "$as_me:1677: checking for object suffix" >&5
1678 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1679 if test "${ac_cv_objext+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 cat >conftest.$ac_ext <<_ACEOF
1683 #line 1683 "configure"
1684 #include "confdefs.h"
1694 rm -f conftest.o conftest.obj
1695 if { (eval echo "$as_me:1695: \"$ac_compile\"") >&5
1696 (eval $ac_compile) 2>&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); }; then
1700 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1702 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1703 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1708 echo "$as_me: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1710 { { echo "$as_me:1710: error: cannot compute OBJEXT: cannot compile" >&5
1711 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1712 { (exit 1); exit 1; }; }
1715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1717 echo "$as_me:1717: result: $ac_cv_objext" >&5
1718 echo "${ECHO_T}$ac_cv_objext" >&6
1719 OBJEXT=$ac_cv_objext
1721 echo "$as_me:1721: checking whether we are using the GNU C compiler" >&5
1722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 cat >conftest.$ac_ext <<_ACEOF
1727 #line 1727 "configure"
1728 #include "confdefs.h"
1741 rm -f conftest.$ac_objext
1742 if { (eval echo "$as_me:1742: \"$ac_compile\"") >&5
1743 (eval $ac_compile) 2>&5
1745 echo "$as_me:1745: \$? = $ac_status" >&5
1746 (exit $ac_status); } &&
1747 { ac_try='test -s conftest.$ac_objext'
1748 { (eval echo "$as_me:1748: \"$ac_try\"") >&5
1751 echo "$as_me:1751: \$? = $ac_status" >&5
1752 (exit $ac_status); }; }; then
1755 echo "$as_me: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1759 rm -f conftest.$ac_objext conftest.$ac_ext
1760 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1763 echo "$as_me:1763: result: $ac_cv_c_compiler_gnu" >&5
1764 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1765 GCC=`test $ac_compiler_gnu = yes && echo yes`
1766 ac_test_CFLAGS=${CFLAGS+set}
1767 ac_save_CFLAGS=$CFLAGS
1769 echo "$as_me:1769: checking whether $CC accepts -g" >&5
1770 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1771 if test "${ac_cv_prog_cc_g+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 cat >conftest.$ac_ext <<_ACEOF
1775 #line 1775 "configure"
1776 #include "confdefs.h"
1786 rm -f conftest.$ac_objext
1787 if { (eval echo "$as_me:1787: \"$ac_compile\"") >&5
1788 (eval $ac_compile) 2>&5
1790 echo "$as_me:1790: \$? = $ac_status" >&5
1791 (exit $ac_status); } &&
1792 { ac_try='test -s conftest.$ac_objext'
1793 { (eval echo "$as_me:1793: \"$ac_try\"") >&5
1796 echo "$as_me:1796: \$? = $ac_status" >&5
1797 (exit $ac_status); }; }; then
1800 echo "$as_me: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1804 rm -f conftest.$ac_objext conftest.$ac_ext
1806 echo "$as_me:1806: result: $ac_cv_prog_cc_g" >&5
1807 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1808 if test "$ac_test_CFLAGS" = set; then
1809 CFLAGS=$ac_save_CFLAGS
1810 elif test $ac_cv_prog_cc_g = yes; then
1811 if test "$GCC" = yes; then
1817 if test "$GCC" = yes; then
1823 # Some people use a C++ compiler to compile C. Since we use `exit',
1824 # in C++ we need to declare it. In case someone uses the same compiler
1825 # for both compiling C and C++ we need to have the C++ compiler decide
1826 # the declaration of exit, since it's the most demanding environment.
1827 cat >conftest.$ac_ext <<_ACEOF
1832 rm -f conftest.$ac_objext
1833 if { (eval echo "$as_me:1833: \"$ac_compile\"") >&5
1834 (eval $ac_compile) 2>&5
1836 echo "$as_me:1836: \$? = $ac_status" >&5
1837 (exit $ac_status); } &&
1838 { ac_try='test -s conftest.$ac_objext'
1839 { (eval echo "$as_me:1839: \"$ac_try\"") >&5
1842 echo "$as_me:1842: \$? = $ac_status" >&5
1843 (exit $ac_status); }; }; then
1844 for ac_declaration in \
1846 '#include <stdlib.h>' \
1847 'extern "C" void std::exit (int) throw (); using std::exit;' \
1848 'extern "C" void std::exit (int); using std::exit;' \
1849 'extern "C" void exit (int) throw ();' \
1850 'extern "C" void exit (int);' \
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line 1854 "configure"
1855 #include "confdefs.h"
1866 rm -f conftest.$ac_objext
1867 if { (eval echo "$as_me:1867: \"$ac_compile\"") >&5
1868 (eval $ac_compile) 2>&5
1870 echo "$as_me:1870: \$? = $ac_status" >&5
1871 (exit $ac_status); } &&
1872 { ac_try='test -s conftest.$ac_objext'
1873 { (eval echo "$as_me:1873: \"$ac_try\"") >&5
1876 echo "$as_me:1876: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1880 echo "$as_me: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1884 rm -f conftest.$ac_objext conftest.$ac_ext
1885 cat >conftest.$ac_ext <<_ACEOF
1886 #line 1886 "configure"
1887 #include "confdefs.h"
1897 rm -f conftest.$ac_objext
1898 if { (eval echo "$as_me:1898: \"$ac_compile\"") >&5
1899 (eval $ac_compile) 2>&5
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); } &&
1903 { ac_try='test -s conftest.$ac_objext'
1904 { (eval echo "$as_me:1904: \"$ac_try\"") >&5
1907 echo "$as_me:1907: \$? = $ac_status" >&5
1908 (exit $ac_status); }; }; then
1911 echo "$as_me: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 rm -f conftest.$ac_objext conftest.$ac_ext
1917 if test -n "$ac_declaration"; then
1918 echo '#ifdef __cplusplus' >>confdefs.h
1919 echo $ac_declaration >>confdefs.h
1920 echo '#endif' >>confdefs.h
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1927 rm -f conftest.$ac_objext conftest.$ac_ext
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 ac_main_return=return
1936 if test "$GCC" = yes ; then
1937 echo "$as_me:1937: checking version of $CC" >&5
1938 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1939 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.].*//'`"
1940 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1941 echo "$as_me:1941: result: $GCC_VERSION" >&5
1942 echo "${ECHO_T}$GCC_VERSION" >&6
1945 echo "$as_me:1945: checking for $CC option to accept ANSI C" >&5
1946 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1947 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 ac_cv_prog_cc_stdc=no
1952 cat >conftest.$ac_ext <<_ACEOF
1953 #line 1953 "configure"
1954 #include "confdefs.h"
1957 #include <sys/types.h>
1958 #include <sys/stat.h>
1959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1960 struct buf { int x; };
1961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1962 static char *e (p, i)
1968 static char *f (char * (*g) (char **, int), char **p, ...)
1973 s = g (p, va_arg (v,int));
1977 int test (int i, double x);
1978 struct s1 {int (*f) (int a);};
1979 struct s2 {int (*f) (double a);};
1980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1986 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1991 # Don't try gcc -ansi; that turns off useful extensions and
1992 # breaks some systems' header files.
1993 # AIX -qlanglvl=ansi
1994 # Ultrix and OSF/1 -std1
1995 # HP-UX 10.20 and later -Ae
1996 # HP-UX older versions -Aa -D_HPUX_SOURCE
1997 # SVR4 -Xc -D__EXTENSIONS__
1998 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2000 CC="$ac_save_CC $ac_arg"
2001 rm -f conftest.$ac_objext
2002 if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>&5
2005 echo "$as_me:2005: \$? = $ac_status" >&5
2006 (exit $ac_status); } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:2008: \"$ac_try\"") >&5
2011 echo "$as_me:2011: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_cv_prog_cc_stdc=$ac_arg
2016 echo "$as_me: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2019 rm -f conftest.$ac_objext
2021 rm -f conftest.$ac_ext conftest.$ac_objext
2026 case "x$ac_cv_prog_cc_stdc" in
2028 echo "$as_me:2028: result: none needed" >&5
2029 echo "${ECHO_T}none needed" >&6 ;;
2031 echo "$as_me:2031: result: $ac_cv_prog_cc_stdc" >&5
2032 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2033 CC="$CC $ac_cv_prog_cc_stdc" ;;
2036 # This should have been defined by AC_PROG_CC
2039 echo "$as_me:2039: checking \$CC variable" >&5
2040 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2043 echo "$as_me:2043: result: broken" >&5
2044 echo "${ECHO_T}broken" >&6
2045 { echo "$as_me:2045: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2046 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2048 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2049 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2054 cf_new_extra_cppflags=
2056 for cf_add_cflags in $cf_flags
2058 case $cf_fix_cppflags in
2060 case $cf_add_cflags in #(vi
2061 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2062 case $cf_add_cflags in
2064 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2066 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2067 && test -z "${cf_tst_cflags}" \
2068 && cf_fix_cppflags=yes
2070 if test $cf_fix_cppflags = yes ; then
2071 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2073 elif test "${cf_tst_cflags}" = "\"'" ; then
2074 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2080 *$cf_add_cflags) #(vi
2083 case $cf_add_cflags in #(vi
2085 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2087 CPPFLAGS=`echo "$CPPFLAGS" | \
2088 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2089 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2093 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2098 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2103 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2105 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2107 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2108 && test -z "${cf_tst_cflags}" \
2109 && cf_fix_cppflags=no
2114 if test -n "$cf_new_cflags" ; then
2116 CFLAGS="$CFLAGS $cf_new_cflags"
2119 if test -n "$cf_new_cppflags" ; then
2121 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2124 if test -n "$cf_new_extra_cppflags" ; then
2126 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2131 echo "$as_me:2131: result: ok" >&5
2132 echo "${ECHO_T}ok" >&6
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141 ac_main_return=return
2142 echo "$as_me:2142: checking how to run the C preprocessor" >&5
2143 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2144 # On Suns, sometimes $CPP names a directory.
2145 if test -n "$CPP" && test -d "$CPP"; then
2148 if test -z "$CPP"; then
2149 if test "${ac_cv_prog_CPP+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 # Double quotes because CPP needs to be expanded
2153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2156 for ac_c_preproc_warn_flag in '' yes
2158 # Use a header file that comes with gcc, so configuring glibc
2159 # with a fresh cross-compiler works.
2160 # On the NeXT, cc -E runs the code through the compiler's parser,
2161 # not just through cpp. "Syntax error" is here to catch this case.
2162 cat >conftest.$ac_ext <<_ACEOF
2163 #line 2163 "configure"
2164 #include "confdefs.h"
2168 if { (eval echo "$as_me:2168: \"$ac_cpp conftest.$ac_ext\"") >&5
2169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2171 egrep -v '^ *\+' conftest.er1 >conftest.err
2173 cat conftest.err >&5
2174 echo "$as_me:2174: \$? = $ac_status" >&5
2175 (exit $ac_status); } >/dev/null; then
2176 if test -s conftest.err; then
2177 ac_cpp_err=$ac_c_preproc_warn_flag
2184 if test -z "$ac_cpp_err"; then
2187 echo "$as_me: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2189 # Broken: fails on valid input.
2192 rm -f conftest.err conftest.$ac_ext
2194 # OK, works on sane cases. Now check whether non-existent headers
2195 # can be detected and how.
2196 cat >conftest.$ac_ext <<_ACEOF
2197 #line 2197 "configure"
2198 #include "confdefs.h"
2199 #include <ac_nonexistent.h>
2201 if { (eval echo "$as_me:2201: \"$ac_cpp conftest.$ac_ext\"") >&5
2202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2204 egrep -v '^ *\+' conftest.er1 >conftest.err
2206 cat conftest.err >&5
2207 echo "$as_me:2207: \$? = $ac_status" >&5
2208 (exit $ac_status); } >/dev/null; then
2209 if test -s conftest.err; then
2210 ac_cpp_err=$ac_c_preproc_warn_flag
2217 if test -z "$ac_cpp_err"; then
2218 # Broken: success on invalid input.
2221 echo "$as_me: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2223 # Passes both tests.
2227 rm -f conftest.err conftest.$ac_ext
2230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2231 rm -f conftest.err conftest.$ac_ext
2232 if $ac_preproc_ok; then
2244 echo "$as_me:2244: result: $CPP" >&5
2245 echo "${ECHO_T}$CPP" >&6
2247 for ac_c_preproc_warn_flag in '' yes
2249 # Use a header file that comes with gcc, so configuring glibc
2250 # with a fresh cross-compiler works.
2251 # On the NeXT, cc -E runs the code through the compiler's parser,
2252 # not just through cpp. "Syntax error" is here to catch this case.
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #line 2254 "configure"
2255 #include "confdefs.h"
2259 if { (eval echo "$as_me:2259: \"$ac_cpp conftest.$ac_ext\"") >&5
2260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2262 egrep -v '^ *\+' conftest.er1 >conftest.err
2264 cat conftest.err >&5
2265 echo "$as_me:2265: \$? = $ac_status" >&5
2266 (exit $ac_status); } >/dev/null; then
2267 if test -s conftest.err; then
2268 ac_cpp_err=$ac_c_preproc_warn_flag
2275 if test -z "$ac_cpp_err"; then
2278 echo "$as_me: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2280 # Broken: fails on valid input.
2283 rm -f conftest.err conftest.$ac_ext
2285 # OK, works on sane cases. Now check whether non-existent headers
2286 # can be detected and how.
2287 cat >conftest.$ac_ext <<_ACEOF
2288 #line 2288 "configure"
2289 #include "confdefs.h"
2290 #include <ac_nonexistent.h>
2292 if { (eval echo "$as_me:2292: \"$ac_cpp conftest.$ac_ext\"") >&5
2293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2295 egrep -v '^ *\+' conftest.er1 >conftest.err
2297 cat conftest.err >&5
2298 echo "$as_me:2298: \$? = $ac_status" >&5
2299 (exit $ac_status); } >/dev/null; then
2300 if test -s conftest.err; then
2301 ac_cpp_err=$ac_c_preproc_warn_flag
2308 if test -z "$ac_cpp_err"; then
2309 # Broken: success on invalid input.
2312 echo "$as_me: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 # Passes both tests.
2318 rm -f conftest.err conftest.$ac_ext
2321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2322 rm -f conftest.err conftest.$ac_ext
2323 if $ac_preproc_ok; then
2326 { { echo "$as_me:2326: error: C preprocessor \"$CPP\" fails sanity check" >&5
2327 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2328 { (exit 1); exit 1; }; }
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 ac_main_return=return
2338 if test $ac_cv_c_compiler_gnu = yes; then
2339 echo "$as_me:2339: checking whether $CC needs -traditional" >&5
2340 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2341 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 ac_pattern="Autoconf.*'x'"
2345 cat >conftest.$ac_ext <<_ACEOF
2346 #line 2346 "configure"
2347 #include "confdefs.h"
2349 int Autoconf = TIOCGETP;
2351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2352 egrep "$ac_pattern" >/dev/null 2>&1; then
2353 ac_cv_prog_gcc_traditional=yes
2355 ac_cv_prog_gcc_traditional=no
2359 if test $ac_cv_prog_gcc_traditional = no; then
2360 cat >conftest.$ac_ext <<_ACEOF
2361 #line 2361 "configure"
2362 #include "confdefs.h"
2364 int Autoconf = TCGETA;
2366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2367 egrep "$ac_pattern" >/dev/null 2>&1; then
2368 ac_cv_prog_gcc_traditional=yes
2374 echo "$as_me:2374: result: $ac_cv_prog_gcc_traditional" >&5
2375 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2376 if test $ac_cv_prog_gcc_traditional = yes; then
2377 CC="$CC -traditional"
2381 echo "$as_me:2381: checking whether $CC understands -c and -o together" >&5
2382 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2383 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 cat > conftest.$ac_ext <<CF_EOF
2391 ${cf_cv_main_return:-return}(0);
2394 # We do the test twice because some compilers refuse to overwrite an
2395 # existing .o file with -o, though they will create one.
2396 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2397 if { (eval echo "$as_me:2397: \"$ac_try\"") >&5
2400 echo "$as_me:2400: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 test -f conftest2.$ac_objext && { (eval echo "$as_me:2402: \"$ac_try\"") >&5
2405 echo "$as_me:2405: \$? = $ac_status" >&5
2406 (exit $ac_status); };
2408 eval cf_cv_prog_CC_c_o=yes
2410 eval cf_cv_prog_CC_c_o=no
2415 if test $cf_cv_prog_CC_c_o = yes; then
2416 echo "$as_me:2416: result: yes" >&5
2417 echo "${ECHO_T}yes" >&6
2419 echo "$as_me:2419: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2423 if test "$cross_compiling" = yes ; then
2426 case "$cf_cv_system_name" in #(vi
2427 dragonfly*|mirbsd*|freebsd*) #(vi
2428 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2430 *) LDPATH=$PATH:/sbin:/usr/sbin
2431 # Extract the first word of "ldconfig", so it can be a program name with args.
2432 set dummy ldconfig; ac_word=$2
2433 echo "$as_me:2433: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2435 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2443 ac_save_IFS=$IFS; IFS=$ac_path_separator
2445 for ac_dir in $ac_dummy; do
2447 test -z "$ac_dir" && ac_dir=.
2448 if $as_executable_p "$ac_dir/$ac_word"; then
2449 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2450 echo "$as_me:2450: found $ac_dir/$ac_word" >&5
2458 LDCONFIG=$ac_cv_path_LDCONFIG
2460 if test -n "$LDCONFIG"; then
2461 echo "$as_me:2461: result: $LDCONFIG" >&5
2462 echo "${ECHO_T}$LDCONFIG" >&6
2464 echo "$as_me:2464: result: no" >&5
2465 echo "${ECHO_T}no" >&6
2472 echo "$as_me:2472: checking if you want to ensure bool is consistent with C++" >&5
2473 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2475 # Check whether --with-cxx or --without-cxx was given.
2476 if test "${with_cxx+set}" = set; then
2478 cf_with_cxx=$withval
2482 echo "$as_me:2482: result: $cf_with_cxx" >&5
2483 echo "${ECHO_T}$cf_with_cxx" >&6
2484 if test "X$cf_with_cxx" = Xno ; then
2488 # with autoconf 2.13, we can change the error to a warning:
2490 ac_cpp='$CXXCPP $CPPFLAGS'
2491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2494 ac_main_return=return
2495 if test -n "$ac_tool_prefix"; then
2496 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2500 echo "$as_me:2500: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2502 if test "${ac_cv_prog_CXX+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 if test -n "$CXX"; then
2506 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2508 ac_save_IFS=$IFS; IFS=$ac_path_separator
2510 for ac_dir in $ac_dummy; do
2512 test -z "$ac_dir" && ac_dir=.
2513 $as_executable_p "$ac_dir/$ac_word" || continue
2514 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2515 echo "$as_me:2515: found $ac_dir/$ac_word" >&5
2522 if test -n "$CXX"; then
2523 echo "$as_me:2523: result: $CXX" >&5
2524 echo "${ECHO_T}$CXX" >&6
2526 echo "$as_me:2526: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2530 test -n "$CXX" && break
2533 if test -z "$CXX"; then
2535 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2537 # Extract the first word of "$ac_prog", so it can be a program name with args.
2538 set dummy $ac_prog; ac_word=$2
2539 echo "$as_me:2539: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2541 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 if test -n "$ac_ct_CXX"; then
2545 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2547 ac_save_IFS=$IFS; IFS=$ac_path_separator
2549 for ac_dir in $ac_dummy; do
2551 test -z "$ac_dir" && ac_dir=.
2552 $as_executable_p "$ac_dir/$ac_word" || continue
2553 ac_cv_prog_ac_ct_CXX="$ac_prog"
2554 echo "$as_me:2554: found $ac_dir/$ac_word" >&5
2560 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2561 if test -n "$ac_ct_CXX"; then
2562 echo "$as_me:2562: result: $ac_ct_CXX" >&5
2563 echo "${ECHO_T}$ac_ct_CXX" >&6
2565 echo "$as_me:2565: result: no" >&5
2566 echo "${ECHO_T}no" >&6
2569 test -n "$ac_ct_CXX" && break
2571 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2576 # Provide some information about the compiler.
2577 echo "$as_me:2577:" \
2578 "checking for C++ compiler version" >&5
2579 ac_compiler=`set X $ac_compile; echo $2`
2580 { (eval echo "$as_me:2580: \"$ac_compiler --version </dev/null >&5\"") >&5
2581 (eval $ac_compiler --version </dev/null >&5) 2>&5
2583 echo "$as_me:2583: \$? = $ac_status" >&5
2584 (exit $ac_status); }
2585 { (eval echo "$as_me:2585: \"$ac_compiler -v </dev/null >&5\"") >&5
2586 (eval $ac_compiler -v </dev/null >&5) 2>&5
2588 echo "$as_me:2588: \$? = $ac_status" >&5
2589 (exit $ac_status); }
2590 { (eval echo "$as_me:2590: \"$ac_compiler -V </dev/null >&5\"") >&5
2591 (eval $ac_compiler -V </dev/null >&5) 2>&5
2593 echo "$as_me:2593: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2596 echo "$as_me:2596: checking whether we are using the GNU C++ compiler" >&5
2597 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2598 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #line 2602 "configure"
2603 #include "confdefs.h"
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:2617: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2620 echo "$as_me:2620: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:2623: \"$ac_try\"") >&5
2626 echo "$as_me:2626: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2630 echo "$as_me: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2634 rm -f conftest.$ac_objext conftest.$ac_ext
2635 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2638 echo "$as_me:2638: result: $ac_cv_cxx_compiler_gnu" >&5
2639 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2640 GXX=`test $ac_compiler_gnu = yes && echo yes`
2641 ac_test_CXXFLAGS=${CXXFLAGS+set}
2642 ac_save_CXXFLAGS=$CXXFLAGS
2644 echo "$as_me:2644: checking whether $CXX accepts -g" >&5
2645 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2646 if test "${ac_cv_prog_cxx_g+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 cat >conftest.$ac_ext <<_ACEOF
2650 #line 2650 "configure"
2651 #include "confdefs.h"
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:2662: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>&5
2665 echo "$as_me:2665: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try='test -s conftest.$ac_objext'
2668 { (eval echo "$as_me:2668: \"$ac_try\"") >&5
2671 echo "$as_me:2671: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 ac_cv_prog_cxx_g=yes
2675 echo "$as_me: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2679 rm -f conftest.$ac_objext conftest.$ac_ext
2681 echo "$as_me:2681: result: $ac_cv_prog_cxx_g" >&5
2682 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2683 if test "$ac_test_CXXFLAGS" = set; then
2684 CXXFLAGS=$ac_save_CXXFLAGS
2685 elif test $ac_cv_prog_cxx_g = yes; then
2686 if test "$GXX" = yes; then
2692 if test "$GXX" = yes; then
2698 for ac_declaration in \
2700 '#include <stdlib.h>' \
2701 'extern "C" void std::exit (int) throw (); using std::exit;' \
2702 'extern "C" void std::exit (int); using std::exit;' \
2703 'extern "C" void exit (int) throw ();' \
2704 'extern "C" void exit (int);' \
2707 cat >conftest.$ac_ext <<_ACEOF
2708 #line 2708 "configure"
2709 #include "confdefs.h"
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:2721: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>&5
2724 echo "$as_me:2724: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:2727: \"$ac_try\"") >&5
2730 echo "$as_me:2730: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2734 echo "$as_me: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2738 rm -f conftest.$ac_objext conftest.$ac_ext
2739 cat >conftest.$ac_ext <<_ACEOF
2740 #line 2740 "configure"
2741 #include "confdefs.h"
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:2752: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>&5
2755 echo "$as_me:2755: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:2758: \"$ac_try\"") >&5
2761 echo "$as_me:2761: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2765 echo "$as_me: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2768 rm -f conftest.$ac_objext conftest.$ac_ext
2771 if test -n "$ac_declaration"; then
2772 echo '#ifdef __cplusplus' >>confdefs.h
2773 echo $ac_declaration >>confdefs.h
2774 echo '#endif' >>confdefs.h
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 ac_main_return=return
2784 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2785 if test "$CXX" = "g++" ; then
2786 # Extract the first word of "g++", so it can be a program name with args.
2787 set dummy g++; ac_word=$2
2788 echo "$as_me:2788: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_path_CXX+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2798 ac_save_IFS=$IFS; IFS=$ac_path_separator
2800 for ac_dir in $ac_dummy; do
2802 test -z "$ac_dir" && ac_dir=.
2803 if $as_executable_p "$ac_dir/$ac_word"; then
2804 ac_cv_path_CXX="$ac_dir/$ac_word"
2805 echo "$as_me:2805: found $ac_dir/$ac_word" >&5
2815 if test -n "$CXX"; then
2816 echo "$as_me:2816: result: $CXX" >&5
2817 echo "${ECHO_T}$CXX" >&6
2819 echo "$as_me:2819: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2824 case "x$CXX" in #(vi
2826 { echo "$as_me:2826: WARNING: You don't have any C++ compiler, too bad" >&5
2827 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2828 cf_with_cxx=no; CXX=""; GXX="";
2834 if test "$GXX" = yes; then
2835 echo "$as_me:2835: checking version of ${CXX:-g++}" >&5
2836 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2837 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2838 test -z "$GXX_VERSION" && GXX_VERSION=unknown
2839 echo "$as_me:2839: result: $GXX_VERSION" >&5
2840 echo "${ECHO_T}$GXX_VERSION" >&6
2843 case $GXX_VERSION in
2845 # GXX=""; CXX=""; ac_cv_prog_gxx=no
2847 { echo "$as_me:2847: WARNING: templates do not work" >&5
2848 echo "$as_me: WARNING: templates do not work" >&2;}
2852 echo "$as_me:2852: checking if you want to build C++ binding and demo" >&5
2853 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2855 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2856 if test "${with_cxx_binding+set}" = set; then
2857 withval="$with_cxx_binding"
2858 cf_with_cxx_binding=$withval
2860 cf_with_cxx_binding=$cf_with_cxx
2862 echo "$as_me:2862: result: $cf_with_cxx_binding" >&5
2863 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2865 echo "$as_me:2865: checking if you want to build with Ada95" >&5
2866 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2867 echo "$as_me:2867: result: $cf_with_ada" >&5
2868 echo "${ECHO_T}$cf_with_ada" >&6
2870 echo "$as_me:2870: checking if you want to install terminal database" >&5
2871 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
2873 # Check whether --enable-db-install or --disable-db-install was given.
2874 if test "${enable_db_install+set}" = set; then
2875 enableval="$enable_db_install"
2876 cf_with_db_install=$enableval
2878 cf_with_db_install=yes
2880 echo "$as_me:2880: result: $cf_with_db_install" >&5
2881 echo "${ECHO_T}$cf_with_db_install" >&6
2883 echo "$as_me:2883: checking if you want to install manpages" >&5
2884 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
2886 # Check whether --with-manpages or --without-manpages was given.
2887 if test "${with_manpages+set}" = set; then
2888 withval="$with_manpages"
2889 cf_with_manpages=$withval
2891 cf_with_manpages=yes
2893 echo "$as_me:2893: result: $cf_with_manpages" >&5
2894 echo "${ECHO_T}$cf_with_manpages" >&6
2896 echo "$as_me:2896: checking if you want to build programs such as tic" >&5
2897 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2899 # Check whether --with-progs or --without-progs was given.
2900 if test "${with_progs+set}" = set; then
2901 withval="$with_progs"
2902 cf_with_progs=$withval
2906 echo "$as_me:2906: result: $cf_with_progs" >&5
2907 echo "${ECHO_T}$cf_with_progs" >&6
2909 echo "$as_me:2909: checking if you want to build test-programs" >&5
2910 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2912 # Check whether --with-tests or --without-tests was given.
2913 if test "${with_tests+set}" = set; then
2914 withval="$with_tests"
2915 cf_with_tests=$withval
2919 echo "$as_me:2919: result: $cf_with_tests" >&5
2920 echo "${ECHO_T}$cf_with_tests" >&6
2922 echo "$as_me:2922: checking if you wish to install curses.h" >&5
2923 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2925 # Check whether --with-curses-h or --without-curses-h was given.
2926 if test "${with_curses_h+set}" = set; then
2927 withval="$with_curses_h"
2928 with_curses_h=$withval
2932 echo "$as_me:2932: result: $with_curses_h" >&5
2933 echo "${ECHO_T}$with_curses_h" >&6
2935 modules_to_build="ncurses"
2936 if test "X$cf_with_progs" != Xno ; then
2937 modules_to_build="$modules_to_build progs tack"
2939 modules_to_build="$modules_to_build panel menu form"
2941 test "$program_prefix" != NONE &&
2942 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2943 # Use a double $ so make ignores it.
2944 test "$program_suffix" != NONE &&
2945 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2946 # Double any \ or $. echo might interpret backslashes.
2947 # By default was `s,x,x', remove it if useless.
2948 cat <<\_ACEOF >conftest.sed
2949 s/[\\$]/&&/g;s/;s,x,x,$//
2951 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2954 for ac_prog in mawk gawk nawk awk
2956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 echo "$as_me:2958: checking for $ac_word" >&5
2959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2960 if test "${ac_cv_prog_AWK+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 if test -n "$AWK"; then
2964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2966 ac_save_IFS=$IFS; IFS=$ac_path_separator
2968 for ac_dir in $ac_dummy; do
2970 test -z "$ac_dir" && ac_dir=.
2971 $as_executable_p "$ac_dir/$ac_word" || continue
2972 ac_cv_prog_AWK="$ac_prog"
2973 echo "$as_me:2973: found $ac_dir/$ac_word" >&5
2980 if test -n "$AWK"; then
2981 echo "$as_me:2981: result: $AWK" >&5
2982 echo "${ECHO_T}$AWK" >&6
2984 echo "$as_me:2984: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2988 test -n "$AWK" && break
2991 test -z "$AWK" && { { echo "$as_me:2991: error: No awk program found" >&5
2992 echo "$as_me: error: No awk program found" >&2;}
2993 { (exit 1); exit 1; }; }
2995 echo "$as_me:2995: checking for egrep" >&5
2996 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2997 if test "${ac_cv_prog_egrep+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3001 then ac_cv_prog_egrep='grep -E'
3002 else ac_cv_prog_egrep='egrep'
3005 echo "$as_me:3005: result: $ac_cv_prog_egrep" >&5
3006 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3007 EGREP=$ac_cv_prog_egrep
3009 test -z "$EGREP" && { { echo "$as_me:3009: error: No egrep program found" >&5
3010 echo "$as_me: error: No egrep program found" >&2;}
3011 { (exit 1); exit 1; }; }
3013 # Find a good install program. We prefer a C program (faster),
3014 # so one script is as good as another. But avoid the broken or
3015 # incompatible versions:
3016 # SysV /etc/install, /usr/sbin/install
3017 # SunOS /usr/etc/install
3018 # IRIX /sbin/install
3020 # AmigaOS /C/install, which installs bootblocks on floppy discs
3021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3024 # ./install, which can be erroneously created by make from ./install.sh.
3025 echo "$as_me:3025: checking for a BSD compatible install" >&5
3026 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3027 if test -z "$INSTALL"; then
3028 if test "${ac_cv_path_install+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 ac_save_IFS=$IFS; IFS=$ac_path_separator
3032 for ac_dir in $PATH; do
3034 # Account for people who put trailing slashes in PATH elements.
3036 / | ./ | .// | /cC/* \
3037 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3040 # OSF1 and SCO ODT 3.0 have their own names for install.
3041 # Don't use installbsd from OSF since it installs stuff as root
3043 for ac_prog in ginstall scoinst install; do
3044 if $as_executable_p "$ac_dir/$ac_prog"; then
3045 if test $ac_prog = install &&
3046 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3047 # AIX install. It has an incompatible calling convention.
3049 elif test $ac_prog = install &&
3050 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3051 # program-specific install script used by HP pwplus--don't use.
3054 ac_cv_path_install="$ac_dir/$ac_prog -c"
3064 if test "${ac_cv_path_install+set}" = set; then
3065 INSTALL=$ac_cv_path_install
3067 # As a last resort, use the slow shell script. We don't cache a
3068 # path for INSTALL within a source directory, because that will
3069 # break other packages using the cache if that directory is
3070 # removed, or if the path is relative.
3071 INSTALL=$ac_install_sh
3074 echo "$as_me:3074: result: $INSTALL" >&5
3075 echo "${ECHO_T}$INSTALL" >&6
3077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3078 # It thinks the first close brace ends the variable substitution.
3079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3089 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3090 test -z "$cf_dir" && cf_dir=.
3091 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3095 for ac_prog in tdlint lint alint splint lclint
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set dummy $ac_prog; ac_word=$2
3099 echo "$as_me:3099: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_prog_LINT+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 if test -n "$LINT"; then
3105 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3107 ac_save_IFS=$IFS; IFS=$ac_path_separator
3109 for ac_dir in $ac_dummy; do
3111 test -z "$ac_dir" && ac_dir=.
3112 $as_executable_p "$ac_dir/$ac_word" || continue
3113 ac_cv_prog_LINT="$ac_prog"
3114 echo "$as_me:3114: found $ac_dir/$ac_word" >&5
3120 LINT=$ac_cv_prog_LINT
3121 if test -n "$LINT"; then
3122 echo "$as_me:3122: result: $LINT" >&5
3123 echo "${ECHO_T}$LINT" >&6
3125 echo "$as_me:3125: result: no" >&5
3126 echo "${ECHO_T}no" >&6
3129 test -n "$LINT" && break
3132 echo "$as_me:3132: checking whether ln -s works" >&5
3133 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3135 if test "$LN_S" = "ln -s"; then
3136 echo "$as_me:3136: result: yes" >&5
3137 echo "${ECHO_T}yes" >&6
3139 echo "$as_me:3139: result: no, using $LN_S" >&5
3140 echo "${ECHO_T}no, using $LN_S" >&6
3143 echo "$as_me:3143: checking if $LN_S -f options work" >&5
3144 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3146 rm -f conf$$.src conf$$dst
3148 echo first >conf$$.src
3149 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3154 rm -f conf$$.dst conf$$src
3155 echo "$as_me:3155: result: $cf_prog_ln_sf" >&5
3156 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3158 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3160 echo "$as_me:3160: checking for long file names" >&5
3161 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3162 if test "${ac_cv_sys_long_file_names+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 ac_cv_sys_long_file_names=yes
3166 # Test for long file names in all the places we know might matter:
3167 # . the current directory, where building will happen
3168 # $prefix/lib where we will be installing things
3169 # $exec_prefix/lib likewise
3170 # eval it to expand exec_prefix.
3171 # $TMPDIR if set, where it might want to write temporary files
3172 # if $TMPDIR is not set:
3173 # /tmp where it might want to write temporary files
3176 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3179 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3181 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3182 test -d $ac_dir || continue
3183 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3184 ac_xdir=$ac_dir/cf$$
3185 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3186 ac_tf1=$ac_xdir/conftest9012345
3187 ac_tf2=$ac_xdir/conftest9012346
3188 (echo 1 >$ac_tf1) 2>/dev/null
3189 (echo 2 >$ac_tf2) 2>/dev/null
3190 ac_val=`cat $ac_tf1 2>/dev/null`
3191 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3192 ac_cv_sys_long_file_names=no
3193 rm -rf $ac_xdir 2>/dev/null
3196 rm -rf $ac_xdir 2>/dev/null
3199 echo "$as_me:3199: result: $ac_cv_sys_long_file_names" >&5
3200 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3201 if test $ac_cv_sys_long_file_names = yes; then
3203 cat >>confdefs.h <<\EOF
3204 #define HAVE_LONG_FILE_NAMES 1
3209 # if we find pkg-config, check if we should install the ".pc" files.
3211 echo "$as_me:3211: checking if you want to use pkg-config" >&5
3212 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3214 # Check whether --with-pkg-config or --without-pkg-config was given.
3215 if test "${with_pkg_config+set}" = set; then
3216 withval="$with_pkg_config"
3217 cf_pkg_config=$withval
3221 echo "$as_me:3221: result: $cf_pkg_config" >&5
3222 echo "${ECHO_T}$cf_pkg_config" >&6
3224 case $cf_pkg_config in #(vi
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3233 echo "$as_me:3233: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3243 ac_save_IFS=$IFS; IFS=$ac_path_separator
3245 for ac_dir in $ac_dummy; do
3247 test -z "$ac_dir" && ac_dir=.
3248 if $as_executable_p "$ac_dir/$ac_word"; then
3249 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3250 echo "$as_me:3250: found $ac_dir/$ac_word" >&5
3258 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3260 if test -n "$PKG_CONFIG"; then
3261 echo "$as_me:3261: result: $PKG_CONFIG" >&5
3262 echo "${ECHO_T}$PKG_CONFIG" >&6
3264 echo "$as_me:3264: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3269 if test -z "$ac_cv_path_PKG_CONFIG"; then
3270 ac_pt_PKG_CONFIG=$PKG_CONFIG
3271 # Extract the first word of "pkg-config", so it can be a program name with args.
3272 set dummy pkg-config; ac_word=$2
3273 echo "$as_me:3273: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 case $ac_pt_PKG_CONFIG in
3280 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3283 ac_save_IFS=$IFS; IFS=$ac_path_separator
3285 for ac_dir in $ac_dummy; do
3287 test -z "$ac_dir" && ac_dir=.
3288 if $as_executable_p "$ac_dir/$ac_word"; then
3289 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3290 echo "$as_me:3290: found $ac_dir/$ac_word" >&5
3295 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3299 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3301 if test -n "$ac_pt_PKG_CONFIG"; then
3302 echo "$as_me:3302: result: $ac_pt_PKG_CONFIG" >&5
3303 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3305 echo "$as_me:3305: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3309 PKG_CONFIG=$ac_pt_PKG_CONFIG
3311 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3320 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3321 if test "$PKG_CONFIG" != none ; then
3323 if test "x$prefix" != xNONE; then
3324 cf_path_syntax="$prefix"
3326 cf_path_syntax="$ac_default_prefix"
3329 case ".$PKG_CONFIG" in #(vi
3330 .\$\(*\)*|.\'*\'*) #(vi
3334 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3336 .\${*prefix}*|.\${*dir}*) #(vi
3337 eval PKG_CONFIG="$PKG_CONFIG"
3338 case ".$PKG_CONFIG" in #(vi
3340 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3345 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3348 { { echo "$as_me:3348: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3349 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3350 { (exit 1); exit 1; }; }
3356 if test "$PKG_CONFIG" != none ; then
3357 echo "$as_me:3357: checking for $PKG_CONFIG library directory" >&5
3358 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3360 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3361 if test "${with_pkg_config_libdir+set}" = set; then
3362 withval="$with_pkg_config_libdir"
3363 PKG_CONFIG_LIBDIR=$withval
3365 PKG_CONFIG_LIBDIR=yes
3368 case x$PKG_CONFIG_LIBDIR in #(vi
3372 # look for the library directory using the same prefix as the executable
3373 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3374 case x`(arch) 2>/dev/null` in #(vi
3376 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3378 if test -d $cf_config/pkgconfig
3380 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3386 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3394 echo "$as_me:3394: result: $PKG_CONFIG_LIBDIR" >&5
3395 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3398 if test "$PKG_CONFIG" != none ; then
3399 echo "$as_me:3399: checking if we should install .pc files for $PKG_CONFIG" >&5
3400 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3402 # Check whether --enable-pc-files or --disable-pc-files was given.
3403 if test "${enable_pc_files+set}" = set; then
3404 enableval="$enable_pc_files"
3405 enable_pc_files=$enableval
3409 echo "$as_me:3409: result: $enable_pc_files" >&5
3410 echo "${ECHO_T}$enable_pc_files" >&6
3411 if test "$enable_pc_files" != no
3414 if test "x$prefix" != xNONE; then
3415 cf_path_syntax="$prefix"
3417 cf_path_syntax="$ac_default_prefix"
3420 case ".$PKG_CONFIG_LIBDIR" in #(vi
3421 .\$\(*\)*|.\'*\'*) #(vi
3425 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3427 .\${*prefix}*|.\${*dir}*) #(vi
3428 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3429 case ".$PKG_CONFIG_LIBDIR" in #(vi
3431 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3436 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3439 { { echo "$as_me:3439: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3440 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3441 { (exit 1); exit 1; }; }
3450 echo "$as_me:3450: checking if we should assume mixed-case filenames" >&5
3451 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3453 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3454 if test "${enable_mixed_case+set}" = set; then
3455 enableval="$enable_mixed_case"
3456 enable_mixedcase=$enableval
3458 enable_mixedcase=auto
3460 echo "$as_me:3460: result: $enable_mixedcase" >&5
3461 echo "${ECHO_T}$enable_mixedcase" >&6
3462 if test "$enable_mixedcase" = "auto" ; then
3464 echo "$as_me:3464: checking if filesystem supports mixed-case filenames" >&5
3465 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3466 if test "${cf_cv_mixedcase+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 if test "$cross_compiling" = yes ; then
3471 case $target_alias in #(vi
3472 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
3480 rm -f conftest CONFTEST
3482 if test -f CONFTEST ; then
3487 rm -f conftest CONFTEST
3491 echo "$as_me:3491: result: $cf_cv_mixedcase" >&5
3492 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3493 test "$cf_cv_mixedcase" = yes &&
3494 cat >>confdefs.h <<\EOF
3495 #define MIXEDCASE_FILENAMES 1
3499 cf_cv_mixedcase=$enable_mixedcase
3500 if test "x$enable_mixedcase" = "xyes" ; then
3502 cat >>confdefs.h <<\EOF
3503 #define MIXEDCASE_FILENAMES 1
3509 # do this after mixed-case option (tags/TAGS is not as important as tic).
3510 echo "$as_me:3510: checking whether ${MAKE-make} sets \${MAKE}" >&5
3511 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3512 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3513 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 cat >conftest.make <<\EOF
3518 @echo 'ac_maketemp="${MAKE}"'
3520 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3521 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3522 if test -n "$ac_maketemp"; then
3523 eval ac_cv_prog_make_${ac_make}_set=yes
3525 eval ac_cv_prog_make_${ac_make}_set=no
3529 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3530 echo "$as_me:3530: result: yes" >&5
3531 echo "${ECHO_T}yes" >&6
3534 echo "$as_me:3534: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 SET_MAKE="MAKE=${MAKE-make}"
3539 for ac_prog in exctags ctags
3541 # Extract the first word of "$ac_prog", so it can be a program name with args.
3542 set dummy $ac_prog; ac_word=$2
3543 echo "$as_me:3543: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_prog_CTAGS+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if test -n "$CTAGS"; then
3549 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3551 ac_save_IFS=$IFS; IFS=$ac_path_separator
3553 for ac_dir in $ac_dummy; do
3555 test -z "$ac_dir" && ac_dir=.
3556 $as_executable_p "$ac_dir/$ac_word" || continue
3557 ac_cv_prog_CTAGS="$ac_prog"
3558 echo "$as_me:3558: found $ac_dir/$ac_word" >&5
3564 CTAGS=$ac_cv_prog_CTAGS
3565 if test -n "$CTAGS"; then
3566 echo "$as_me:3566: result: $CTAGS" >&5
3567 echo "${ECHO_T}$CTAGS" >&6
3569 echo "$as_me:3569: result: no" >&5
3570 echo "${ECHO_T}no" >&6
3573 test -n "$CTAGS" && break
3576 for ac_prog in exetags etags
3578 # Extract the first word of "$ac_prog", so it can be a program name with args.
3579 set dummy $ac_prog; ac_word=$2
3580 echo "$as_me:3580: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_prog_ETAGS+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if test -n "$ETAGS"; then
3586 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3588 ac_save_IFS=$IFS; IFS=$ac_path_separator
3590 for ac_dir in $ac_dummy; do
3592 test -z "$ac_dir" && ac_dir=.
3593 $as_executable_p "$ac_dir/$ac_word" || continue
3594 ac_cv_prog_ETAGS="$ac_prog"
3595 echo "$as_me:3595: found $ac_dir/$ac_word" >&5
3601 ETAGS=$ac_cv_prog_ETAGS
3602 if test -n "$ETAGS"; then
3603 echo "$as_me:3603: result: $ETAGS" >&5
3604 echo "${ECHO_T}$ETAGS" >&6
3606 echo "$as_me:3606: result: no" >&5
3607 echo "${ECHO_T}no" >&6
3610 test -n "$ETAGS" && break
3613 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3614 set dummy ${CTAGS:-ctags}; ac_word=$2
3615 echo "$as_me:3615: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 if test -n "$MAKE_LOWER_TAGS"; then
3621 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3623 ac_save_IFS=$IFS; IFS=$ac_path_separator
3625 for ac_dir in $ac_dummy; do
3627 test -z "$ac_dir" && ac_dir=.
3628 $as_executable_p "$ac_dir/$ac_word" || continue
3629 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3630 echo "$as_me:3630: found $ac_dir/$ac_word" >&5
3634 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3637 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3638 if test -n "$MAKE_LOWER_TAGS"; then
3639 echo "$as_me:3639: result: $MAKE_LOWER_TAGS" >&5
3640 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3642 echo "$as_me:3642: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3646 if test "$cf_cv_mixedcase" = yes ; then
3647 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3648 set dummy ${ETAGS:-etags}; ac_word=$2
3649 echo "$as_me:3649: checking for $ac_word" >&5
3650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 if test -n "$MAKE_UPPER_TAGS"; then
3655 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3657 ac_save_IFS=$IFS; IFS=$ac_path_separator
3659 for ac_dir in $ac_dummy; do
3661 test -z "$ac_dir" && ac_dir=.
3662 $as_executable_p "$ac_dir/$ac_word" || continue
3663 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3664 echo "$as_me:3664: found $ac_dir/$ac_word" >&5
3668 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3671 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3672 if test -n "$MAKE_UPPER_TAGS"; then
3673 echo "$as_me:3673: result: $MAKE_UPPER_TAGS" >&5
3674 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3676 echo "$as_me:3676: result: no" >&5
3677 echo "${ECHO_T}no" >&6
3684 if test "$MAKE_UPPER_TAGS" = yes ; then
3690 if test "$MAKE_LOWER_TAGS" = yes ; then
3696 echo "$as_me:3696: checking for makeflags variable" >&5
3697 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3698 if test "${cf_cv_makeflags+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3705 cat >cf_makeflags.tmp <<CF_EOF
3708 @ echo '.$cf_option'
3710 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3711 case "$cf_result" in
3713 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3714 case "$cf_result" in
3715 .*CC=*) cf_cv_makeflags=
3717 *) cf_cv_makeflags=$cf_option
3723 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3727 rm -f cf_makeflags.tmp
3730 echo "$as_me:3730: result: $cf_cv_makeflags" >&5
3731 echo "${ECHO_T}$cf_cv_makeflags" >&6
3733 if test -n "$ac_tool_prefix"; then
3734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3736 echo "$as_me:3736: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_prog_RANLIB+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 if test -n "$RANLIB"; then
3742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3744 ac_save_IFS=$IFS; IFS=$ac_path_separator
3746 for ac_dir in $ac_dummy; do
3748 test -z "$ac_dir" && ac_dir=.
3749 $as_executable_p "$ac_dir/$ac_word" || continue
3750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3751 echo "$as_me:3751: found $ac_dir/$ac_word" >&5
3757 RANLIB=$ac_cv_prog_RANLIB
3758 if test -n "$RANLIB"; then
3759 echo "$as_me:3759: result: $RANLIB" >&5
3760 echo "${ECHO_T}$RANLIB" >&6
3762 echo "$as_me:3762: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3767 if test -z "$ac_cv_prog_RANLIB"; then
3768 ac_ct_RANLIB=$RANLIB
3769 # Extract the first word of "ranlib", so it can be a program name with args.
3770 set dummy ranlib; ac_word=$2
3771 echo "$as_me:3771: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if test -n "$ac_ct_RANLIB"; then
3777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3779 ac_save_IFS=$IFS; IFS=$ac_path_separator
3781 for ac_dir in $ac_dummy; do
3783 test -z "$ac_dir" && ac_dir=.
3784 $as_executable_p "$ac_dir/$ac_word" || continue
3785 ac_cv_prog_ac_ct_RANLIB="ranlib"
3786 echo "$as_me:3786: found $ac_dir/$ac_word" >&5
3790 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3794 if test -n "$ac_ct_RANLIB"; then
3795 echo "$as_me:3795: result: $ac_ct_RANLIB" >&5
3796 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3798 echo "$as_me:3798: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3802 RANLIB=$ac_ct_RANLIB
3804 RANLIB="$ac_cv_prog_RANLIB"
3807 if test -n "$ac_tool_prefix"; then
3808 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3809 set dummy ${ac_tool_prefix}ld; ac_word=$2
3810 echo "$as_me:3810: checking for $ac_word" >&5
3811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3812 if test "${ac_cv_prog_LD+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 if test -n "$LD"; then
3816 ac_cv_prog_LD="$LD" # Let the user override the test.
3818 ac_save_IFS=$IFS; IFS=$ac_path_separator
3820 for ac_dir in $ac_dummy; do
3822 test -z "$ac_dir" && ac_dir=.
3823 $as_executable_p "$ac_dir/$ac_word" || continue
3824 ac_cv_prog_LD="${ac_tool_prefix}ld"
3825 echo "$as_me:3825: found $ac_dir/$ac_word" >&5
3832 if test -n "$LD"; then
3833 echo "$as_me:3833: result: $LD" >&5
3834 echo "${ECHO_T}$LD" >&6
3836 echo "$as_me:3836: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3841 if test -z "$ac_cv_prog_LD"; then
3843 # Extract the first word of "ld", so it can be a program name with args.
3844 set dummy ld; ac_word=$2
3845 echo "$as_me:3845: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test -n "$ac_ct_LD"; then
3851 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3853 ac_save_IFS=$IFS; IFS=$ac_path_separator
3855 for ac_dir in $ac_dummy; do
3857 test -z "$ac_dir" && ac_dir=.
3858 $as_executable_p "$ac_dir/$ac_word" || continue
3859 ac_cv_prog_ac_ct_LD="ld"
3860 echo "$as_me:3860: found $ac_dir/$ac_word" >&5
3864 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3867 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3868 if test -n "$ac_ct_LD"; then
3869 echo "$as_me:3869: result: $ac_ct_LD" >&5
3870 echo "${ECHO_T}$ac_ct_LD" >&6
3872 echo "$as_me:3872: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}ar; ac_word=$2
3884 echo "$as_me:3884: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_AR+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test -n "$AR"; then
3890 ac_cv_prog_AR="$AR" # Let the user override the test.
3892 ac_save_IFS=$IFS; IFS=$ac_path_separator
3894 for ac_dir in $ac_dummy; do
3896 test -z "$ac_dir" && ac_dir=.
3897 $as_executable_p "$ac_dir/$ac_word" || continue
3898 ac_cv_prog_AR="${ac_tool_prefix}ar"
3899 echo "$as_me:3899: found $ac_dir/$ac_word" >&5
3906 if test -n "$AR"; then
3907 echo "$as_me:3907: result: $AR" >&5
3908 echo "${ECHO_T}$AR" >&6
3910 echo "$as_me:3910: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3915 if test -z "$ac_cv_prog_AR"; then
3917 # Extract the first word of "ar", so it can be a program name with args.
3918 set dummy ar; ac_word=$2
3919 echo "$as_me:3919: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 if test -n "$ac_ct_AR"; then
3925 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3927 ac_save_IFS=$IFS; IFS=$ac_path_separator
3929 for ac_dir in $ac_dummy; do
3931 test -z "$ac_dir" && ac_dir=.
3932 $as_executable_p "$ac_dir/$ac_word" || continue
3933 ac_cv_prog_ac_ct_AR="ar"
3934 echo "$as_me:3934: found $ac_dir/$ac_word" >&5
3938 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3941 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3942 if test -n "$ac_ct_AR"; then
3943 echo "$as_me:3943: result: $ac_ct_AR" >&5
3944 echo "${ECHO_T}$ac_ct_AR" >&6
3946 echo "$as_me:3946: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3955 if test -n "$ac_tool_prefix"; then
3956 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3957 set dummy ${ac_tool_prefix}nm; ac_word=$2
3958 echo "$as_me:3958: checking for $ac_word" >&5
3959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960 if test "${ac_cv_prog_NM+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 if test -n "$NM"; then
3964 ac_cv_prog_NM="$NM" # Let the user override the test.
3966 ac_save_IFS=$IFS; IFS=$ac_path_separator
3968 for ac_dir in $ac_dummy; do
3970 test -z "$ac_dir" && ac_dir=.
3971 $as_executable_p "$ac_dir/$ac_word" || continue
3972 ac_cv_prog_NM="${ac_tool_prefix}nm"
3973 echo "$as_me:3973: found $ac_dir/$ac_word" >&5
3980 if test -n "$NM"; then
3981 echo "$as_me:3981: result: $NM" >&5
3982 echo "${ECHO_T}$NM" >&6
3984 echo "$as_me:3984: result: no" >&5
3985 echo "${ECHO_T}no" >&6
3989 if test -z "$ac_cv_prog_NM"; then
3991 # Extract the first word of "nm", so it can be a program name with args.
3992 set dummy nm; ac_word=$2
3993 echo "$as_me:3993: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 if test -n "$ac_ct_NM"; then
3999 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4001 ac_save_IFS=$IFS; IFS=$ac_path_separator
4003 for ac_dir in $ac_dummy; do
4005 test -z "$ac_dir" && ac_dir=.
4006 $as_executable_p "$ac_dir/$ac_word" || continue
4007 ac_cv_prog_ac_ct_NM="nm"
4008 echo "$as_me:4008: found $ac_dir/$ac_word" >&5
4012 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4015 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4016 if test -n "$ac_ct_NM"; then
4017 echo "$as_me:4017: result: $ac_ct_NM" >&5
4018 echo "${ECHO_T}$ac_ct_NM" >&6
4020 echo "$as_me:4020: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4029 if test -n "$ac_tool_prefix"; then
4030 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4031 set dummy ${ac_tool_prefix}ar; ac_word=$2
4032 echo "$as_me:4032: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_AR+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test -n "$AR"; then
4038 ac_cv_prog_AR="$AR" # Let the user override the test.
4040 ac_save_IFS=$IFS; IFS=$ac_path_separator
4042 for ac_dir in $ac_dummy; do
4044 test -z "$ac_dir" && ac_dir=.
4045 $as_executable_p "$ac_dir/$ac_word" || continue
4046 ac_cv_prog_AR="${ac_tool_prefix}ar"
4047 echo "$as_me:4047: found $ac_dir/$ac_word" >&5
4054 if test -n "$AR"; then
4055 echo "$as_me:4055: result: $AR" >&5
4056 echo "${ECHO_T}$AR" >&6
4058 echo "$as_me:4058: result: no" >&5
4059 echo "${ECHO_T}no" >&6
4063 if test -z "$ac_cv_prog_AR"; then
4065 # Extract the first word of "ar", so it can be a program name with args.
4066 set dummy ar; ac_word=$2
4067 echo "$as_me:4067: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then