2 # From configure.in Revision: 1.562 .
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 --without-manpages suppress install of manpages
710 --without-progs suppress build with programs (e.g., tic)
711 --without-tests suppress build with test-programs
712 --without-curses-h install curses.h as ncurses.h only
713 --with-pkg-config{=path} enable/disable use of pkg-config
714 --with-pkg-config-libdir=XXX use given directory for installing pc-files
715 --enable-pc-files generate and install .pc files for pkg-config
716 --enable-mixed-case tic should assume mixed-case filenames
717 --with-install-prefix prefixes actual install-location ($DESTDIR)
718 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
719 --with-build-cc=XXX the build C compiler ($BUILD_CC)
720 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
721 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
722 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
723 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
724 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
725 Options to Specify the Libraries Built/Used:
726 --disable-libtool-version enable to use libtool's incompatible naming scheme
727 --with-libtool generate libraries with libtool
728 --with-shared generate shared-libraries
729 --with-normal generate normal-libraries (default)
730 --with-debug generate debug-libraries (default)
731 --with-profile generate profile-libraries
732 --with-lib-prefix override library-prefix
733 --with-termlib generate separate terminfo library
734 --with-ticlib generate separate tic library
735 --with-gpm use Alessandro Rubini's GPM library
736 --without-dlsym do not use dlsym() to load GPM dynamically
737 --with-sysmouse use sysmouse (FreeBSD console)
738 --enable-rpath use rpath option when generating shared libraries
739 --disable-relink relink shared libraries during install
740 --with-shlib-version=X Specify rel or abi version for shared libs
741 --disable-rpath-hack don't add rpath options for additional libraries
742 Fine-Tuning Your Configuration:
743 --disable-overwrite leave out the link to -lcurses
744 --disable-database do not use terminfo, only fallbacks/termcap
745 --with-database=XXX specify terminfo source to install
746 --with-hashed-db specify hashed-database library
747 --with-fallbacks=XXX specify list of fallback terminal descriptions
748 --without-xterm-new specify if xterm terminfo should be old version
749 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
750 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
751 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
752 --disable-big-core assume machine has little memory
753 --disable-big-strings assume compiler has only standard-size strings
754 --enable-termcap compile in termcap fallback support
755 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
756 --enable-getcap fast termcap load, no xrefs to terminfo
757 --enable-getcap-cache cache translated termcaps in ~/.terminfo
758 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
759 --disable-root-environ restrict environment when running as root
760 --enable-symlinks make tic use symbolic links not hard links
761 --enable-broken_linker compile with broken-linker support code
762 --enable-bsdpad recognize BSD-style prefix padding
763 --enable-widec compile with wide-char/UTF-8 code
764 --disable-lp64 allow chtype to be long (ignore _LP64)
765 --disable-largefile omit support for large files
766 --disable-tparm-varargs compile tparm() without varargs interface
767 --disable-tic-depends link tic library without explicit dependency on ncurses library
768 --with-bool=TYPE override fallback type of bool variable
769 --with-caps=alt compile with alternate Caps file
770 --with-chtype=TYPE override type of chtype
771 --with-ospeed=TYPE override type of ospeed variable
772 --with-mmask-t=TYPE override type of mmask_t
773 --with-ccharw-max=XXX override size CCHARW_MAX
774 --with-tparm-arg=TYPE override parameter type of tparm
775 --with-rcs-ids compile-in RCS identifiers
776 Options to Specify How Manpages are Installed:
777 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
778 optionally formatted/catonly, e.g., gzip,formatted
779 --with-manpage-renames specify manpage-renaming
780 --with-manpage-aliases specify manpage-aliases using .so
781 --with-manpage-symlinks specify manpage-aliases using symlinks
782 --with-manpage-tbl specify manpage processing with tbl
784 --disable-ext-funcs disable function-extensions
785 --enable-sp-funcs enable experimental SCREEN-extensions
786 --enable-term-driver enable experimental terminal-driver
787 --enable-const compile with extra/non-standard const
788 --enable-ext-colors compile for 256-color support
789 --enable-ext-mouse compile for extended mouse-encoding
790 --enable-no-padding compile with $NCURSES_NO_PADDING code
791 --enable-signed-char compile using signed Boolean's in term.h
792 --enable-sigwinch compile with SIGWINCH handler
793 --enable-tcap-names compile with user-definable terminal capabilities
795 --without-develop disable development options
796 --enable-hard-tabs compile with hard-tabs code
797 --enable-xmc-glitch compile with support for xmc (magic-cookie)
799 --disable-assumed-color do not assume anything about default-colors
800 --disable-hashmap compile without hashmap scrolling-optimization
801 --enable-colorfgbg compile-in experimental $COLORFGBG code
802 --enable-interop compile-in experimental interop bindings
803 --with-pthread use POSIX thread library
804 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
805 --enable-weak-symbols enable weak-symbols for pthreads
806 --enable-reentrant compile with experimental reentrant code
807 --with-wrap-prefix=XXX override prefix used for public variables
808 --enable-safe-sprintf compile with experimental safe-sprintf code
809 --disable-scroll-hints compile without scroll-hints code
810 --enable-wgetch-events compile with experimental wgetch-events code
811 Testing/development Options:
812 --disable-echo do not display "compiling" commands
813 --enable-warnings build: turn on GCC compiler warnings
814 --enable-string-hacks work around bogus compiler/loader warnings
815 --enable-assertions test: turn on generation of assertion code
816 --with-dmalloc test: use Gray Watson's dmalloc library
817 --with-dbmalloc test: use Conor Cahill's dbmalloc library
818 --with-valgrind test: use valgrind
819 --disable-leaks test: free permanent memory, analyze leaks
820 --enable-expanded test: generate functions for certain macros
821 --disable-macros test: use functions rather than macros
822 --with-trace test: add trace() function to all models of ncurses
823 Ada95 Binding Options:
824 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
825 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
826 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
827 --with-ada-sharedlib=XX build Ada95 shared-library
829 Some influential environment variables:
830 CC C compiler command
831 CFLAGS C compiler flags
832 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
833 nonstandard directory <lib dir>
834 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
835 headers in a nonstandard directory <include dir>
837 CXX C++ compiler command
838 CXXFLAGS C++ compiler flags
839 CXXCPP C++ preprocessor
841 Use these variables to override the choices made by `configure' or to help
842 it to find libraries and programs with nonstandard names/locations.
847 if test "$ac_init_help" = "recursive"; then
848 # If there are subdirs, report their specific --help.
850 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
852 # A "../" for each directory in /$ac_subdir.
853 ac_dots=`echo $ac_subdir |
854 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
857 .) # No --srcdir option. We are building in place.
858 ac_sub_srcdir=$srcdir ;;
859 [\\/]* | ?:[\\/]* ) # Absolute path.
860 ac_sub_srcdir=$srcdir/$ac_subdir ;;
862 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
865 # Check for guested configure; otherwise get Cygnus style configure.
866 if test -f $ac_sub_srcdir/configure.gnu; then
868 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
869 elif test -f $ac_sub_srcdir/configure; then
871 $SHELL $ac_sub_srcdir/configure --help=recursive
872 elif test -f $ac_sub_srcdir/configure.ac ||
873 test -f $ac_sub_srcdir/configure.in; then
877 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
883 test -n "$ac_init_help" && exit 0
884 if $ac_init_version; then
887 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
888 Free Software Foundation, Inc.
889 This configure script is free software; the Free Software Foundation
890 gives unlimited permission to copy, distribute and modify it.
896 This file contains any messages produced by compilers while
897 running configure, to aid debugging if configure makes a mistake.
899 It was created by $as_me, which was
900 generated by GNU Autoconf 2.52.20121002. Invocation command line was
911 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
912 uname -m = `(uname -m) 2>/dev/null || echo unknown`
913 uname -r = `(uname -r) 2>/dev/null || echo unknown`
914 uname -s = `(uname -s) 2>/dev/null || echo unknown`
915 uname -v = `(uname -v) 2>/dev/null || echo unknown`
917 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
918 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
920 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
921 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
922 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
923 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
924 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
925 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
926 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
940 # Keep a trace of the command line.
941 # Strip out --no-create and --no-recursion so they do not pile up.
942 # Also quote any args containing shell meta-characters.
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c) ;;
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
954 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
956 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
959 # Get rid of the leading space.
962 # When interrupted or exit'd, cleanup temporary files, and complete
963 # config.log. We remove comments because anyway the quotes in there
964 # would cause problems or look ugly.
966 # Save into config.log some information that might help in debugging.
968 echo "## ----------------- ##" >&5
969 echo "## Cache variables. ##" >&5
970 echo "## ----------------- ##" >&5
972 # The following way of writing the cache mishandles newlines in values,
975 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
978 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
983 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
987 sed "/^$/d" confdefs.h >conftest.log
988 if test -s conftest.log; then
990 echo "## ------------ ##" >&5
991 echo "## confdefs.h. ##" >&5
992 echo "## ------------ ##" >&5
997 test "$ac_signal" != 0 &&
998 echo "$as_me: caught signal $ac_signal" >&5
999 echo "$as_me: exit $exit_status" >&5
1000 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1003 for ac_signal in 1 2 13 15; do
1004 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1008 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1009 rm -rf conftest* confdefs.h
1010 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1013 # Let the site file select an alternate cache file if it wants to.
1014 # Prefer explicitly selected file to automatically selected ones.
1015 if test -z "$CONFIG_SITE"; then
1016 if test "x$prefix" != xNONE; then
1017 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1019 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1022 for ac_site_file in $CONFIG_SITE; do
1023 if test -r "$ac_site_file"; then
1024 { echo "$as_me:1024: loading site script $ac_site_file" >&5
1025 echo "$as_me: loading site script $ac_site_file" >&6;}
1026 cat "$ac_site_file" >&5
1031 if test -r "$cache_file"; then
1032 # Some versions of bash will fail to source /dev/null (special
1033 # files actually), so we avoid doing that.
1034 if test -f "$cache_file"; then
1035 { echo "$as_me:1035: loading cache $cache_file" >&5
1036 echo "$as_me: loading cache $cache_file" >&6;}
1038 [\\/]* | ?:[\\/]* ) . $cache_file;;
1039 *) . ./$cache_file;;
1043 { echo "$as_me:1043: creating cache $cache_file" >&5
1044 echo "$as_me: creating cache $cache_file" >&6;}
1048 # Check that the precious variables saved in the cache have kept the same
1050 ac_cache_corrupted=false
1051 for ac_var in `(set) 2>&1 |
1052 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1053 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1054 eval ac_new_set=\$ac_env_${ac_var}_set
1055 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1056 eval ac_new_val="\$ac_env_${ac_var}_value"
1057 case $ac_old_set,$ac_new_set in
1059 { echo "$as_me:1059: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1060 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1061 ac_cache_corrupted=: ;;
1063 { echo "$as_me:1063: error: \`$ac_var' was not set in the previous run" >&5
1064 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1065 ac_cache_corrupted=: ;;
1068 if test "x$ac_old_val" != "x$ac_new_val"; then
1069 { echo "$as_me:1069: error: \`$ac_var' has changed since the previous run:" >&5
1070 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1071 { echo "$as_me:1071: former value: $ac_old_val" >&5
1072 echo "$as_me: former value: $ac_old_val" >&2;}
1073 { echo "$as_me:1073: current value: $ac_new_val" >&5
1074 echo "$as_me: current value: $ac_new_val" >&2;}
1075 ac_cache_corrupted=:
1078 # Pass precious variables to config.status. It doesn't matter if
1079 # we pass some twice (in addition to the command line arguments).
1080 if test "$ac_new_set" = set; then
1082 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1083 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1084 ac_configure_args="$ac_configure_args '$ac_arg'"
1086 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1091 if $ac_cache_corrupted; then
1092 { echo "$as_me:1092: error: changes in the environment can compromise the build" >&5
1093 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1094 { { echo "$as_me:1094: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1095 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1096 { (exit 1); exit 1; }; }
1100 ac_cpp='$CPP $CPPFLAGS'
1101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1104 ac_main_return=return
1106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1107 *c*,-n*) ECHO_N= ECHO_C='
1109 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1110 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1112 echo "#! $SHELL" >conftest.sh
1113 echo "exit 0" >>conftest.sh
1114 chmod +x conftest.sh
1115 if { (echo "$as_me:1115: PATH=\".;.\"; conftest.sh") >&5
1116 (PATH=".;."; conftest.sh) 2>&5
1118 echo "$as_me:1118: \$? = $ac_status" >&5
1119 (exit $ac_status); }; then
1120 ac_path_separator=';'
1124 PATH_SEPARATOR="$ac_path_separator"
1127 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1131 echo "$as_me:1131: checking for egrep" >&5
1132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1133 if test "${ac_cv_prog_egrep+set}" = set; then
1134 echo $ECHO_N "(cached) $ECHO_C" >&6
1136 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1137 then ac_cv_prog_egrep='grep -E'
1138 else ac_cv_prog_egrep='egrep'
1141 echo "$as_me:1141: result: $ac_cv_prog_egrep" >&5
1142 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1143 EGREP=$ac_cv_prog_egrep
1145 test -z "$EGREP" && { { echo "$as_me:1145: error: No egrep program found" >&5
1146 echo "$as_me: error: No egrep program found" >&2;}
1147 { (exit 1); exit 1; }; }
1149 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1150 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1151 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1152 cf_cv_abi_version=${NCURSES_MAJOR}
1153 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1154 cf_cv_timestamp=`date`
1155 echo "$as_me:1155: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1156 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1158 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1160 # Check whether --with-rel-version or --without-rel-version was given.
1161 if test "${with_rel_version+set}" = set; then
1162 withval="$with_rel_version"
1163 { echo "$as_me:1163: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1164 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1165 cf_cv_rel_version=$withval
1168 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1169 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1171 if test -n "$NCURSES_MAJOR" ; then
1172 case $NCURSES_MAJOR in #(vi
1176 { { echo "$as_me:1176: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1177 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1178 { (exit 1); exit 1; }; }
1182 { { echo "$as_me:1182: error: Release major-version value is empty" >&5
1183 echo "$as_me: error: Release major-version value is empty" >&2;}
1184 { (exit 1); exit 1; }; }
1187 if test -n "$NCURSES_MINOR" ; then
1188 case $NCURSES_MINOR in #(vi
1192 { { echo "$as_me:1192: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1193 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1194 { (exit 1); exit 1; }; }
1198 { { echo "$as_me:1198: error: Release minor-version value is empty" >&5
1199 echo "$as_me: error: Release minor-version value is empty" >&2;}
1200 { (exit 1); exit 1; }; }
1203 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1205 # Check whether --with-abi-version or --without-abi-version was given.
1206 if test "${with_abi_version+set}" = set; then
1207 withval="$with_abi_version"
1208 { echo "$as_me:1208: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1209 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1210 cf_cv_abi_version=$withval
1213 if test -n "$cf_cv_abi_version" ; then
1214 case $cf_cv_abi_version in #(vi
1218 { { echo "$as_me:1218: error: ABI version is not a number: $cf_cv_abi_version" >&5
1219 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1220 { (exit 1); exit 1; }; }
1224 { { echo "$as_me:1224: error: ABI version value is empty" >&5
1225 echo "$as_me: error: ABI version value is empty" >&2;}
1226 { (exit 1); exit 1; }; }
1230 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1231 if test -f $ac_dir/install-sh; then
1233 ac_install_sh="$ac_aux_dir/install-sh -c"
1235 elif test -f $ac_dir/install.sh; then
1237 ac_install_sh="$ac_aux_dir/install.sh -c"
1239 elif test -f $ac_dir/shtool; then
1241 ac_install_sh="$ac_aux_dir/shtool install -c"
1245 if test -z "$ac_aux_dir"; then
1246 { { echo "$as_me:1246: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1247 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1248 { (exit 1); exit 1; }; }
1250 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1251 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1252 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1254 # Make sure we can run config.sub.
1255 $ac_config_sub sun4 >/dev/null 2>&1 ||
1256 { { echo "$as_me:1256: error: cannot run $ac_config_sub" >&5
1257 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1258 { (exit 1); exit 1; }; }
1260 echo "$as_me:1260: checking build system type" >&5
1261 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1262 if test "${ac_cv_build+set}" = set; then
1263 echo $ECHO_N "(cached) $ECHO_C" >&6
1265 ac_cv_build_alias=$build_alias
1266 test -z "$ac_cv_build_alias" &&
1267 ac_cv_build_alias=`$ac_config_guess`
1268 test -z "$ac_cv_build_alias" &&
1269 { { echo "$as_me:1269: error: cannot guess build type; you must specify one" >&5
1270 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1271 { (exit 1); exit 1; }; }
1272 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1273 { { echo "$as_me:1273: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1274 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1275 { (exit 1); exit 1; }; }
1278 echo "$as_me:1278: result: $ac_cv_build" >&5
1279 echo "${ECHO_T}$ac_cv_build" >&6
1281 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1282 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1283 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1285 echo "$as_me:1285: checking host system type" >&5
1286 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1287 if test "${ac_cv_host+set}" = set; then
1288 echo $ECHO_N "(cached) $ECHO_C" >&6
1290 ac_cv_host_alias=$host_alias
1291 test -z "$ac_cv_host_alias" &&
1292 ac_cv_host_alias=$ac_cv_build_alias
1293 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1294 { { echo "$as_me:1294: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1295 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1296 { (exit 1); exit 1; }; }
1299 echo "$as_me:1299: result: $ac_cv_host" >&5
1300 echo "${ECHO_T}$ac_cv_host" >&6
1302 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1303 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1304 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1306 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1307 echo "$as_me:1307: checking target system type" >&5
1308 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1309 if test "${ac_cv_target+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 ac_cv_target_alias=$target_alias
1313 test "x$ac_cv_target_alias" = "x" &&
1314 ac_cv_target_alias=$ac_cv_host_alias
1315 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1316 { { echo "$as_me:1316: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1317 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1318 { (exit 1); exit 1; }; }
1321 echo "$as_me:1321: result: $ac_cv_target" >&5
1322 echo "${ECHO_T}$ac_cv_target" >&6
1323 target=$ac_cv_target
1324 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1325 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1326 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1328 # The aliases save the names the user supplied, while $host etc.
1329 # will get canonicalized.
1330 test -n "$target_alias" &&
1331 test "$program_prefix$program_suffix$program_transform_name" = \
1333 program_prefix=${target_alias}-
1334 system_name="$host_os"
1336 system_name="`(uname -s -r) 2>/dev/null`"
1337 if test -z "$system_name" ; then
1338 system_name="`(hostname) 2>/dev/null`"
1341 test -n "$system_name" &&
1342 cat >>confdefs.h <<EOF
1343 #define SYSTEM_NAME "$system_name"
1346 if test "${cf_cv_system_name+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 cf_cv_system_name="$system_name"
1352 test -z "$system_name" && system_name="$cf_cv_system_name"
1353 test -n "$cf_cv_system_name" && echo "$as_me:1353: result: Configuring for $cf_cv_system_name" >&5
1354 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1356 if test ".$system_name" != ".$cf_cv_system_name" ; then
1357 echo "$as_me:1357: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1358 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1359 { { echo "$as_me:1359: error: \"Please remove config.cache and try again.\"" >&5
1360 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1361 { (exit 1); exit 1; }; }
1364 # Check whether --with-system-type or --without-system-type was given.
1365 if test "${with_system_type+set}" = set; then
1366 withval="$with_system_type"
1367 { echo "$as_me:1367: WARNING: overriding system type to $withval" >&5
1368 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1369 cf_cv_system_name=$withval
1374 ### Save the given $CFLAGS to allow user-override.
1375 cf_user_CFLAGS="$CFLAGS"
1377 ### Default install-location
1379 echo "$as_me:1379: checking for prefix" >&5
1380 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1381 if test "x$prefix" = "xNONE" ; then
1382 case "$cf_cv_system_name" in
1383 # non-vendor systems don't have a conflict
1384 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1387 *) prefix=$ac_default_prefix
1391 echo "$as_me:1391: result: $prefix" >&5
1392 echo "${ECHO_T}$prefix" >&6
1394 if test "x$prefix" = "xNONE" ; then
1395 echo "$as_me:1395: checking for default include-directory" >&5
1396 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1397 test -n "$verbose" && echo 1>&6
1400 $includedir/ncurses \
1402 $prefix/include/ncurses \
1403 /usr/local/include \
1404 /usr/local/include/ncurses \
1406 /usr/include/ncurses
1408 cf_dir=`eval echo $cf_symbol`
1409 if test -f $cf_dir/curses.h ; then
1410 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1411 includedir="$cf_symbol"
1412 test -n "$verbose" && echo $ac_n " found " 1>&6
1416 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1418 echo "$as_me:1418: result: $includedir" >&5
1419 echo "${ECHO_T}$includedir" >&6
1422 ### Checks for programs.
1424 # Check whether --with-ada or --without-ada was given.
1425 if test "${with_ada+set}" = set; then
1427 cf_with_ada=$withval
1431 if test "x$cf_with_ada" = xyes
1433 cf_PROG_CC="gnatgcc gcc cc"
1439 ac_cpp='$CPP $CPPFLAGS'
1440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1443 ac_main_return=return
1444 if test -n "$ac_tool_prefix"; then
1445 for ac_prog in $cf_PROG_CC
1447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1449 echo "$as_me:1449: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 if test -n "$CC"; then
1455 ac_cv_prog_CC="$CC" # Let the user override the test.
1457 ac_save_IFS=$IFS; IFS=$ac_path_separator
1459 for ac_dir in $ac_dummy; do
1461 test -z "$ac_dir" && ac_dir=.
1462 $as_executable_p "$ac_dir/$ac_word" || continue
1463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1464 echo "$as_me:1464: found $ac_dir/$ac_word" >&5
1471 if test -n "$CC"; then
1472 echo "$as_me:1472: result: $CC" >&5
1473 echo "${ECHO_T}$CC" >&6
1475 echo "$as_me:1475: result: no" >&5
1476 echo "${ECHO_T}no" >&6
1479 test -n "$CC" && break
1482 if test -z "$CC"; then
1484 for ac_prog in $cf_PROG_CC
1486 # Extract the first word of "$ac_prog", so it can be a program name with args.
1487 set dummy $ac_prog; ac_word=$2
1488 echo "$as_me:1488: checking for $ac_word" >&5
1489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 if test -n "$ac_ct_CC"; then
1494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1496 ac_save_IFS=$IFS; IFS=$ac_path_separator
1498 for ac_dir in $ac_dummy; do
1500 test -z "$ac_dir" && ac_dir=.
1501 $as_executable_p "$ac_dir/$ac_word" || continue
1502 ac_cv_prog_ac_ct_CC="$ac_prog"
1503 echo "$as_me:1503: found $ac_dir/$ac_word" >&5
1509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1510 if test -n "$ac_ct_CC"; then
1511 echo "$as_me:1511: result: $ac_ct_CC" >&5
1512 echo "${ECHO_T}$ac_ct_CC" >&6
1514 echo "$as_me:1514: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1518 test -n "$ac_ct_CC" && break
1524 test -z "$CC" && { { echo "$as_me:1524: error: no acceptable cc found in \$PATH" >&5
1525 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1526 { (exit 1); exit 1; }; }
1528 # Provide some information about the compiler.
1529 echo "$as_me:1529:" \
1530 "checking for C compiler version" >&5
1531 ac_compiler=`set X $ac_compile; echo $2`
1532 { (eval echo "$as_me:1532: \"$ac_compiler --version </dev/null >&5\"") >&5
1533 (eval $ac_compiler --version </dev/null >&5) 2>&5
1535 echo "$as_me:1535: \$? = $ac_status" >&5
1536 (exit $ac_status); }
1537 { (eval echo "$as_me:1537: \"$ac_compiler -v </dev/null >&5\"") >&5
1538 (eval $ac_compiler -v </dev/null >&5) 2>&5
1540 echo "$as_me:1540: \$? = $ac_status" >&5
1541 (exit $ac_status); }
1542 { (eval echo "$as_me:1542: \"$ac_compiler -V </dev/null >&5\"") >&5
1543 (eval $ac_compiler -V </dev/null >&5) 2>&5
1545 echo "$as_me:1545: \$? = $ac_status" >&5
1546 (exit $ac_status); }
1548 cat >conftest.$ac_ext <<_ACEOF
1549 #line 1549 "configure"
1550 #include "confdefs.h"
1560 ac_clean_files_save=$ac_clean_files
1561 ac_clean_files="$ac_clean_files a.out a.exe"
1562 # Try to create an executable without -o first, disregard a.out.
1563 # It will help us diagnose broken compilers, and finding out an intuition
1565 echo "$as_me:1565: checking for C compiler default output" >&5
1566 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1567 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1568 if { (eval echo "$as_me:1568: \"$ac_link_default\"") >&5
1569 (eval $ac_link_default) 2>&5
1571 echo "$as_me:1571: \$? = $ac_status" >&5
1572 (exit $ac_status); }; then
1573 # Find the output, starting from the most likely. This scheme is
1574 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1576 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1577 ls a.out conftest 2>/dev/null;
1578 ls a.* conftest.* 2>/dev/null`; do
1580 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1581 a.out ) # We found the default executable, but exeext='' is most
1584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1585 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1592 echo "$as_me: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1594 { { echo "$as_me:1594: error: C compiler cannot create executables" >&5
1595 echo "$as_me: error: C compiler cannot create executables" >&2;}
1596 { (exit 77); exit 77; }; }
1599 ac_exeext=$ac_cv_exeext
1600 echo "$as_me:1600: result: $ac_file" >&5
1601 echo "${ECHO_T}$ac_file" >&6
1603 # Check the compiler produces executables we can run. If not, either
1604 # the compiler is broken, or we cross compile.
1605 echo "$as_me:1605: checking whether the C compiler works" >&5
1606 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1607 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1608 # If not cross compiling, check that we can run a simple program.
1609 if test "$cross_compiling" != yes; then
1610 if { ac_try='./$ac_file'
1611 { (eval echo "$as_me:1611: \"$ac_try\"") >&5
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); }; }; then
1618 if test "$cross_compiling" = maybe; then
1621 { { echo "$as_me:1621: error: cannot run C compiled programs.
1622 If you meant to cross compile, use \`--host'." >&5
1623 echo "$as_me: error: cannot run C compiled programs.
1624 If you meant to cross compile, use \`--host'." >&2;}
1625 { (exit 1); exit 1; }; }
1629 echo "$as_me:1629: result: yes" >&5
1630 echo "${ECHO_T}yes" >&6
1632 rm -f a.out a.exe conftest$ac_cv_exeext
1633 ac_clean_files=$ac_clean_files_save
1634 # Check the compiler produces executables we can run. If not, either
1635 # the compiler is broken, or we cross compile.
1636 echo "$as_me:1636: checking whether we are cross compiling" >&5
1637 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1638 echo "$as_me:1638: result: $cross_compiling" >&5
1639 echo "${ECHO_T}$cross_compiling" >&6
1641 echo "$as_me:1641: checking for executable suffix" >&5
1642 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1643 if { (eval echo "$as_me:1643: \"$ac_link\"") >&5
1644 (eval $ac_link) 2>&5
1646 echo "$as_me:1646: \$? = $ac_status" >&5
1647 (exit $ac_status); }; then
1648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1650 # work properly (i.e., refer to `conftest.exe'), while it won't with
1652 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1654 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1662 { { echo "$as_me:1662: error: cannot compute EXEEXT: cannot compile and link" >&5
1663 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1664 { (exit 1); exit 1; }; }
1667 rm -f conftest$ac_cv_exeext
1668 echo "$as_me:1668: result: $ac_cv_exeext" >&5
1669 echo "${ECHO_T}$ac_cv_exeext" >&6
1671 rm -f conftest.$ac_ext
1672 EXEEXT=$ac_cv_exeext
1674 echo "$as_me:1674: checking for object suffix" >&5
1675 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1676 if test "${ac_cv_objext+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 cat >conftest.$ac_ext <<_ACEOF
1680 #line 1680 "configure"
1681 #include "confdefs.h"
1691 rm -f conftest.o conftest.obj
1692 if { (eval echo "$as_me:1692: \"$ac_compile\"") >&5
1693 (eval $ac_compile) 2>&5
1695 echo "$as_me:1695: \$? = $ac_status" >&5
1696 (exit $ac_status); }; then
1697 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1699 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1705 echo "$as_me: failed program was:" >&5
1706 cat conftest.$ac_ext >&5
1707 { { echo "$as_me:1707: error: cannot compute OBJEXT: cannot compile" >&5
1708 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1709 { (exit 1); exit 1; }; }
1712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1714 echo "$as_me:1714: result: $ac_cv_objext" >&5
1715 echo "${ECHO_T}$ac_cv_objext" >&6
1716 OBJEXT=$ac_cv_objext
1718 echo "$as_me:1718: checking whether we are using the GNU C compiler" >&5
1719 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1720 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 cat >conftest.$ac_ext <<_ACEOF
1724 #line 1724 "configure"
1725 #include "confdefs.h"
1738 rm -f conftest.$ac_objext
1739 if { (eval echo "$as_me:1739: \"$ac_compile\"") >&5
1740 (eval $ac_compile) 2>&5
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); } &&
1744 { ac_try='test -s conftest.$ac_objext'
1745 { (eval echo "$as_me:1745: \"$ac_try\"") >&5
1748 echo "$as_me:1748: \$? = $ac_status" >&5
1749 (exit $ac_status); }; }; then
1752 echo "$as_me: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1756 rm -f conftest.$ac_objext conftest.$ac_ext
1757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1760 echo "$as_me:1760: result: $ac_cv_c_compiler_gnu" >&5
1761 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1762 GCC=`test $ac_compiler_gnu = yes && echo yes`
1763 ac_test_CFLAGS=${CFLAGS+set}
1764 ac_save_CFLAGS=$CFLAGS
1766 echo "$as_me:1766: checking whether $CC accepts -g" >&5
1767 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1768 if test "${ac_cv_prog_cc_g+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 cat >conftest.$ac_ext <<_ACEOF
1772 #line 1772 "configure"
1773 #include "confdefs.h"
1783 rm -f conftest.$ac_objext
1784 if { (eval echo "$as_me:1784: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); } &&
1789 { ac_try='test -s conftest.$ac_objext'
1790 { (eval echo "$as_me:1790: \"$ac_try\"") >&5
1793 echo "$as_me:1793: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1801 rm -f conftest.$ac_objext conftest.$ac_ext
1803 echo "$as_me:1803: result: $ac_cv_prog_cc_g" >&5
1804 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1805 if test "$ac_test_CFLAGS" = set; then
1806 CFLAGS=$ac_save_CFLAGS
1807 elif test $ac_cv_prog_cc_g = yes; then
1808 if test "$GCC" = yes; then
1814 if test "$GCC" = yes; then
1820 # Some people use a C++ compiler to compile C. Since we use `exit',
1821 # in C++ we need to declare it. In case someone uses the same compiler
1822 # for both compiling C and C++ we need to have the C++ compiler decide
1823 # the declaration of exit, since it's the most demanding environment.
1824 cat >conftest.$ac_ext <<_ACEOF
1829 rm -f conftest.$ac_objext
1830 if { (eval echo "$as_me:1830: \"$ac_compile\"") >&5
1831 (eval $ac_compile) 2>&5
1833 echo "$as_me:1833: \$? = $ac_status" >&5
1834 (exit $ac_status); } &&
1835 { ac_try='test -s conftest.$ac_objext'
1836 { (eval echo "$as_me:1836: \"$ac_try\"") >&5
1839 echo "$as_me:1839: \$? = $ac_status" >&5
1840 (exit $ac_status); }; }; then
1841 for ac_declaration in \
1843 '#include <stdlib.h>' \
1844 'extern "C" void std::exit (int) throw (); using std::exit;' \
1845 'extern "C" void std::exit (int); using std::exit;' \
1846 'extern "C" void exit (int) throw ();' \
1847 'extern "C" void exit (int);' \
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1863 rm -f conftest.$ac_objext
1864 if { (eval echo "$as_me:1864: \"$ac_compile\"") >&5
1865 (eval $ac_compile) 2>&5
1867 echo "$as_me:1867: \$? = $ac_status" >&5
1868 (exit $ac_status); } &&
1869 { ac_try='test -s conftest.$ac_objext'
1870 { (eval echo "$as_me:1870: \"$ac_try\"") >&5
1873 echo "$as_me:1873: \$? = $ac_status" >&5
1874 (exit $ac_status); }; }; then
1877 echo "$as_me: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1881 rm -f conftest.$ac_objext conftest.$ac_ext
1882 cat >conftest.$ac_ext <<_ACEOF
1883 #line 1883 "configure"
1884 #include "confdefs.h"
1894 rm -f conftest.$ac_objext
1895 if { (eval echo "$as_me:1895: \"$ac_compile\"") >&5
1896 (eval $ac_compile) 2>&5
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); } &&
1900 { ac_try='test -s conftest.$ac_objext'
1901 { (eval echo "$as_me:1901: \"$ac_try\"") >&5
1904 echo "$as_me:1904: \$? = $ac_status" >&5
1905 (exit $ac_status); }; }; then
1908 echo "$as_me: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1911 rm -f conftest.$ac_objext conftest.$ac_ext
1914 if test -n "$ac_declaration"; then
1915 echo '#ifdef __cplusplus' >>confdefs.h
1916 echo $ac_declaration >>confdefs.h
1917 echo '#endif' >>confdefs.h
1921 echo "$as_me: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1924 rm -f conftest.$ac_objext conftest.$ac_ext
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 ac_main_return=return
1933 if test "$GCC" = yes ; then
1934 echo "$as_me:1934: checking version of $CC" >&5
1935 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1936 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.].*//'`"
1937 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1938 echo "$as_me:1938: result: $GCC_VERSION" >&5
1939 echo "${ECHO_T}$GCC_VERSION" >&6
1942 echo "$as_me:1942: checking for $CC option to accept ANSI C" >&5
1943 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1944 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 ac_cv_prog_cc_stdc=no
1949 cat >conftest.$ac_ext <<_ACEOF
1950 #line 1950 "configure"
1951 #include "confdefs.h"
1954 #include <sys/types.h>
1955 #include <sys/stat.h>
1956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1957 struct buf { int x; };
1958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1959 static char *e (p, i)
1965 static char *f (char * (*g) (char **, int), char **p, ...)
1970 s = g (p, va_arg (v,int));
1974 int test (int i, double x);
1975 struct s1 {int (*f) (int a);};
1976 struct s2 {int (*f) (double a);};
1977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1983 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1988 # Don't try gcc -ansi; that turns off useful extensions and
1989 # breaks some systems' header files.
1990 # AIX -qlanglvl=ansi
1991 # Ultrix and OSF/1 -std1
1992 # HP-UX 10.20 and later -Ae
1993 # HP-UX older versions -Aa -D_HPUX_SOURCE
1994 # SVR4 -Xc -D__EXTENSIONS__
1995 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1997 CC="$ac_save_CC $ac_arg"
1998 rm -f conftest.$ac_objext
1999 if { (eval echo "$as_me:1999: \"$ac_compile\"") >&5
2000 (eval $ac_compile) 2>&5
2002 echo "$as_me:2002: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:2005: \"$ac_try\"") >&5
2008 echo "$as_me:2008: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 ac_cv_prog_cc_stdc=$ac_arg
2013 echo "$as_me: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2016 rm -f conftest.$ac_objext
2018 rm -f conftest.$ac_ext conftest.$ac_objext
2023 case "x$ac_cv_prog_cc_stdc" in
2025 echo "$as_me:2025: result: none needed" >&5
2026 echo "${ECHO_T}none needed" >&6 ;;
2028 echo "$as_me:2028: result: $ac_cv_prog_cc_stdc" >&5
2029 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2030 CC="$CC $ac_cv_prog_cc_stdc" ;;
2033 # This should have been defined by AC_PROG_CC
2036 echo "$as_me:2036: checking \$CC variable" >&5
2037 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2040 echo "$as_me:2040: result: broken" >&5
2041 echo "${ECHO_T}broken" >&6
2042 { echo "$as_me:2042: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2043 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2045 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2046 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2051 cf_new_extra_cppflags=
2053 for cf_add_cflags in $cf_flags
2055 case $cf_fix_cppflags in
2057 case $cf_add_cflags in #(vi
2058 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2059 case $cf_add_cflags in
2061 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2063 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2064 && test -z "${cf_tst_cflags}" \
2065 && cf_fix_cppflags=yes
2067 if test $cf_fix_cppflags = yes ; then
2068 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2070 elif test "${cf_tst_cflags}" = "\"'" ; then
2071 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2077 *$cf_add_cflags) #(vi
2080 case $cf_add_cflags in #(vi
2082 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2084 CPPFLAGS=`echo "$CPPFLAGS" | \
2085 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2086 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2090 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2095 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2100 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2102 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2104 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2105 && test -z "${cf_tst_cflags}" \
2106 && cf_fix_cppflags=no
2111 if test -n "$cf_new_cflags" ; then
2113 CFLAGS="$CFLAGS $cf_new_cflags"
2116 if test -n "$cf_new_cppflags" ; then
2118 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2121 if test -n "$cf_new_extra_cppflags" ; then
2123 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2128 echo "$as_me:2128: result: ok" >&5
2129 echo "${ECHO_T}ok" >&6
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 ac_main_return=return
2139 echo "$as_me:2139: checking how to run the C preprocessor" >&5
2140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2141 # On Suns, sometimes $CPP names a directory.
2142 if test -n "$CPP" && test -d "$CPP"; then
2145 if test -z "$CPP"; then
2146 if test "${ac_cv_prog_CPP+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 # Double quotes because CPP needs to be expanded
2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2153 for ac_c_preproc_warn_flag in '' yes
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
2157 # On the NeXT, cc -E runs the code through the compiler's parser,
2158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line 2160 "configure"
2161 #include "confdefs.h"
2165 if { (eval echo "$as_me:2165: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:2171: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2181 if test -z "$ac_cpp_err"; then
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 # Broken: fails on valid input.
2189 rm -f conftest.err conftest.$ac_ext
2191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line 2194 "configure"
2195 #include "confdefs.h"
2196 #include <ac_nonexistent.h>
2198 if { (eval echo "$as_me:2198: \"$ac_cpp conftest.$ac_ext\"") >&5
2199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2201 egrep -v '^ *\+' conftest.er1 >conftest.err
2203 cat conftest.err >&5
2204 echo "$as_me:2204: \$? = $ac_status" >&5
2205 (exit $ac_status); } >/dev/null; then
2206 if test -s conftest.err; then
2207 ac_cpp_err=$ac_c_preproc_warn_flag
2214 if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 # Passes both tests.
2224 rm -f conftest.err conftest.$ac_ext
2227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228 rm -f conftest.err conftest.$ac_ext
2229 if $ac_preproc_ok; then
2241 echo "$as_me:2241: result: $CPP" >&5
2242 echo "${ECHO_T}$CPP" >&6
2244 for ac_c_preproc_warn_flag in '' yes
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # On the NeXT, cc -E runs the code through the compiler's parser,
2249 # not just through cpp. "Syntax error" is here to catch this case.
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line 2251 "configure"
2252 #include "confdefs.h"
2256 if { (eval echo "$as_me:2256: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:2262: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2272 if test -z "$ac_cpp_err"; then
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Broken: fails on valid input.
2280 rm -f conftest.err conftest.$ac_ext
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line 2285 "configure"
2286 #include "confdefs.h"
2287 #include <ac_nonexistent.h>
2289 if { (eval echo "$as_me:2289: \"$ac_cpp conftest.$ac_ext\"") >&5
2290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2292 egrep -v '^ *\+' conftest.er1 >conftest.err
2294 cat conftest.err >&5
2295 echo "$as_me:2295: \$? = $ac_status" >&5
2296 (exit $ac_status); } >/dev/null; then
2297 if test -s conftest.err; then
2298 ac_cpp_err=$ac_c_preproc_warn_flag
2305 if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2315 rm -f conftest.err conftest.$ac_ext
2318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319 rm -f conftest.err conftest.$ac_ext
2320 if $ac_preproc_ok; then
2323 { { echo "$as_me:2323: error: C preprocessor \"$CPP\" fails sanity check" >&5
2324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325 { (exit 1); exit 1; }; }
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 ac_main_return=return
2335 if test $ac_cv_c_compiler_gnu = yes; then
2336 echo "$as_me:2336: checking whether $CC needs -traditional" >&5
2337 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2338 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 ac_pattern="Autoconf.*'x'"
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2346 int Autoconf = TIOCGETP;
2348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2349 egrep "$ac_pattern" >/dev/null 2>&1; then
2350 ac_cv_prog_gcc_traditional=yes
2352 ac_cv_prog_gcc_traditional=no
2356 if test $ac_cv_prog_gcc_traditional = no; then
2357 cat >conftest.$ac_ext <<_ACEOF
2358 #line 2358 "configure"
2359 #include "confdefs.h"
2361 int Autoconf = TCGETA;
2363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2364 egrep "$ac_pattern" >/dev/null 2>&1; then
2365 ac_cv_prog_gcc_traditional=yes
2371 echo "$as_me:2371: result: $ac_cv_prog_gcc_traditional" >&5
2372 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2373 if test $ac_cv_prog_gcc_traditional = yes; then
2374 CC="$CC -traditional"
2378 echo "$as_me:2378: checking whether $CC understands -c and -o together" >&5
2379 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2380 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 cat > conftest.$ac_ext <<CF_EOF
2388 ${cf_cv_main_return:-return}(0);
2391 # We do the test twice because some compilers refuse to overwrite an
2392 # existing .o file with -o, though they will create one.
2393 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2394 if { (eval echo "$as_me:2394: \"$ac_try\"") >&5
2397 echo "$as_me:2397: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 test -f conftest2.$ac_objext && { (eval echo "$as_me:2399: \"$ac_try\"") >&5
2402 echo "$as_me:2402: \$? = $ac_status" >&5
2403 (exit $ac_status); };
2405 eval cf_cv_prog_CC_c_o=yes
2407 eval cf_cv_prog_CC_c_o=no
2412 if test $cf_cv_prog_CC_c_o = yes; then
2413 echo "$as_me:2413: result: yes" >&5
2414 echo "${ECHO_T}yes" >&6
2416 echo "$as_me:2416: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2420 if test "$cross_compiling" = yes ; then
2423 case "$cf_cv_system_name" in #(vi
2424 dragonfly*|mirbsd*|freebsd*) #(vi
2425 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2427 *) LDPATH=$PATH:/sbin:/usr/sbin
2428 # Extract the first word of "ldconfig", so it can be a program name with args.
2429 set dummy ldconfig; ac_word=$2
2430 echo "$as_me:2430: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2440 ac_save_IFS=$IFS; IFS=$ac_path_separator
2442 for ac_dir in $ac_dummy; do
2444 test -z "$ac_dir" && ac_dir=.
2445 if $as_executable_p "$ac_dir/$ac_word"; then
2446 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2447 echo "$as_me:2447: found $ac_dir/$ac_word" >&5
2455 LDCONFIG=$ac_cv_path_LDCONFIG
2457 if test -n "$LDCONFIG"; then
2458 echo "$as_me:2458: result: $LDCONFIG" >&5
2459 echo "${ECHO_T}$LDCONFIG" >&6
2461 echo "$as_me:2461: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2469 echo "$as_me:2469: checking if you want to ensure bool is consistent with C++" >&5
2470 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2472 # Check whether --with-cxx or --without-cxx was given.
2473 if test "${with_cxx+set}" = set; then
2475 cf_with_cxx=$withval
2479 echo "$as_me:2479: result: $cf_with_cxx" >&5
2480 echo "${ECHO_T}$cf_with_cxx" >&6
2481 if test "X$cf_with_cxx" = Xno ; then
2485 # with autoconf 2.13, we can change the error to a warning:
2487 ac_cpp='$CXXCPP $CPPFLAGS'
2488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2491 ac_main_return=return
2492 if test -n "$ac_tool_prefix"; then
2493 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2497 echo "$as_me:2497: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_CXX+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$CXX"; then
2503 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2505 ac_save_IFS=$IFS; IFS=$ac_path_separator
2507 for ac_dir in $ac_dummy; do
2509 test -z "$ac_dir" && ac_dir=.
2510 $as_executable_p "$ac_dir/$ac_word" || continue
2511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2512 echo "$as_me:2512: found $ac_dir/$ac_word" >&5
2519 if test -n "$CXX"; then
2520 echo "$as_me:2520: result: $CXX" >&5
2521 echo "${ECHO_T}$CXX" >&6
2523 echo "$as_me:2523: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2527 test -n "$CXX" && break
2530 if test -z "$CXX"; then
2532 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2534 # Extract the first word of "$ac_prog", so it can be a program name with args.
2535 set dummy $ac_prog; ac_word=$2
2536 echo "$as_me:2536: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2538 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 if test -n "$ac_ct_CXX"; then
2542 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2544 ac_save_IFS=$IFS; IFS=$ac_path_separator
2546 for ac_dir in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir=.
2549 $as_executable_p "$ac_dir/$ac_word" || continue
2550 ac_cv_prog_ac_ct_CXX="$ac_prog"
2551 echo "$as_me:2551: found $ac_dir/$ac_word" >&5
2557 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2558 if test -n "$ac_ct_CXX"; then
2559 echo "$as_me:2559: result: $ac_ct_CXX" >&5
2560 echo "${ECHO_T}$ac_ct_CXX" >&6
2562 echo "$as_me:2562: result: no" >&5
2563 echo "${ECHO_T}no" >&6
2566 test -n "$ac_ct_CXX" && break
2568 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2573 # Provide some information about the compiler.
2574 echo "$as_me:2574:" \
2575 "checking for C++ compiler version" >&5
2576 ac_compiler=`set X $ac_compile; echo $2`
2577 { (eval echo "$as_me:2577: \"$ac_compiler --version </dev/null >&5\"") >&5
2578 (eval $ac_compiler --version </dev/null >&5) 2>&5
2580 echo "$as_me:2580: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2582 { (eval echo "$as_me:2582: \"$ac_compiler -v </dev/null >&5\"") >&5
2583 (eval $ac_compiler -v </dev/null >&5) 2>&5
2585 echo "$as_me:2585: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2587 { (eval echo "$as_me:2587: \"$ac_compiler -V </dev/null >&5\"") >&5
2588 (eval $ac_compiler -V </dev/null >&5) 2>&5
2590 echo "$as_me:2590: \$? = $ac_status" >&5
2591 (exit $ac_status); }
2593 echo "$as_me:2593: checking whether we are using the GNU C++ compiler" >&5
2594 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2595 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2599 #line 2599 "configure"
2600 #include "confdefs.h"
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:2614: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2617 echo "$as_me:2617: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:2620: \"$ac_try\"") >&5
2623 echo "$as_me:2623: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2631 rm -f conftest.$ac_objext conftest.$ac_ext
2632 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2635 echo "$as_me:2635: result: $ac_cv_cxx_compiler_gnu" >&5
2636 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2637 GXX=`test $ac_compiler_gnu = yes && echo yes`
2638 ac_test_CXXFLAGS=${CXXFLAGS+set}
2639 ac_save_CXXFLAGS=$CXXFLAGS
2641 echo "$as_me:2641: checking whether $CXX accepts -g" >&5
2642 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2643 if test "${ac_cv_prog_cxx_g+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 cat >conftest.$ac_ext <<_ACEOF
2647 #line 2647 "configure"
2648 #include "confdefs.h"
2658 rm -f conftest.$ac_objext
2659 if { (eval echo "$as_me:2659: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>&5
2662 echo "$as_me:2662: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:2665: \"$ac_try\"") >&5
2668 echo "$as_me:2668: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 ac_cv_prog_cxx_g=yes
2672 echo "$as_me: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2676 rm -f conftest.$ac_objext conftest.$ac_ext
2678 echo "$as_me:2678: result: $ac_cv_prog_cxx_g" >&5
2679 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2680 if test "$ac_test_CXXFLAGS" = set; then
2681 CXXFLAGS=$ac_save_CXXFLAGS
2682 elif test $ac_cv_prog_cxx_g = yes; then
2683 if test "$GXX" = yes; then
2689 if test "$GXX" = yes; then
2695 for ac_declaration in \
2697 '#include <stdlib.h>' \
2698 'extern "C" void std::exit (int) throw (); using std::exit;' \
2699 'extern "C" void std::exit (int); using std::exit;' \
2700 'extern "C" void exit (int) throw ();' \
2701 'extern "C" void exit (int);' \
2704 cat >conftest.$ac_ext <<_ACEOF
2705 #line 2705 "configure"
2706 #include "confdefs.h"
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:2718: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>&5
2721 echo "$as_me:2721: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (eval echo "$as_me:2724: \"$ac_try\"") >&5
2727 echo "$as_me:2727: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2731 echo "$as_me: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2735 rm -f conftest.$ac_objext conftest.$ac_ext
2736 cat >conftest.$ac_ext <<_ACEOF
2737 #line 2737 "configure"
2738 #include "confdefs.h"
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:2749: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>&5
2752 echo "$as_me:2752: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:2755: \"$ac_try\"") >&5
2758 echo "$as_me:2758: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2762 echo "$as_me: failed program was:" >&5
2763 cat conftest.$ac_ext >&5
2765 rm -f conftest.$ac_objext conftest.$ac_ext
2768 if test -n "$ac_declaration"; then
2769 echo '#ifdef __cplusplus' >>confdefs.h
2770 echo $ac_declaration >>confdefs.h
2771 echo '#endif' >>confdefs.h
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 ac_main_return=return
2781 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
2782 if test "$CXX" = "g++" ; then
2783 # Extract the first word of "g++", so it can be a program name with args.
2784 set dummy g++; ac_word=$2
2785 echo "$as_me:2785: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2787 if test "${ac_cv_path_CXX+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2795 ac_save_IFS=$IFS; IFS=$ac_path_separator
2797 for ac_dir in $ac_dummy; do
2799 test -z "$ac_dir" && ac_dir=.
2800 if $as_executable_p "$ac_dir/$ac_word"; then
2801 ac_cv_path_CXX="$ac_dir/$ac_word"
2802 echo "$as_me:2802: found $ac_dir/$ac_word" >&5
2812 if test -n "$CXX"; then
2813 echo "$as_me:2813: result: $CXX" >&5
2814 echo "${ECHO_T}$CXX" >&6
2816 echo "$as_me:2816: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2821 case "x$CXX" in #(vi
2823 { echo "$as_me:2823: WARNING: You don't have any C++ compiler, too bad" >&5
2824 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
2825 cf_with_cxx=no; CXX=""; GXX="";
2831 if test "$GXX" = yes; then
2832 echo "$as_me:2832: checking version of ${CXX:-g++}" >&5
2833 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
2834 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2835 test -z "$GXX_VERSION" && GXX_VERSION=unknown
2836 echo "$as_me:2836: result: $GXX_VERSION" >&5
2837 echo "${ECHO_T}$GXX_VERSION" >&6
2840 case $GXX_VERSION in
2842 # GXX=""; CXX=""; ac_cv_prog_gxx=no
2844 { echo "$as_me:2844: WARNING: templates do not work" >&5
2845 echo "$as_me: WARNING: templates do not work" >&2;}
2849 echo "$as_me:2849: checking if you want to build C++ binding and demo" >&5
2850 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2852 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2853 if test "${with_cxx_binding+set}" = set; then
2854 withval="$with_cxx_binding"
2855 cf_with_cxx_binding=$withval
2857 cf_with_cxx_binding=$cf_with_cxx
2859 echo "$as_me:2859: result: $cf_with_cxx_binding" >&5
2860 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2862 echo "$as_me:2862: checking if you want to build with Ada95" >&5
2863 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2864 echo "$as_me:2864: result: $cf_with_ada" >&5
2865 echo "${ECHO_T}$cf_with_ada" >&6
2867 echo "$as_me:2867: checking if you want to install manpages" >&5
2868 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
2870 # Check whether --with-manpages or --without-manpages was given.
2871 if test "${with_manpages+set}" = set; then
2872 withval="$with_manpages"
2873 cf_with_manpages=$withval
2875 cf_with_manpages=yes
2877 echo "$as_me:2877: result: $cf_with_manpages" >&5
2878 echo "${ECHO_T}$cf_with_manpages" >&6
2880 echo "$as_me:2880: checking if you want to build programs such as tic" >&5
2881 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2883 # Check whether --with-progs or --without-progs was given.
2884 if test "${with_progs+set}" = set; then
2885 withval="$with_progs"
2886 cf_with_progs=$withval
2890 echo "$as_me:2890: result: $cf_with_progs" >&5
2891 echo "${ECHO_T}$cf_with_progs" >&6
2893 echo "$as_me:2893: checking if you want to build test-programs" >&5
2894 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2896 # Check whether --with-tests or --without-tests was given.
2897 if test "${with_tests+set}" = set; then
2898 withval="$with_tests"
2899 cf_with_tests=$withval
2903 echo "$as_me:2903: result: $cf_with_tests" >&5
2904 echo "${ECHO_T}$cf_with_tests" >&6
2906 echo "$as_me:2906: checking if you wish to install curses.h" >&5
2907 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2909 # Check whether --with-curses-h or --without-curses-h was given.
2910 if test "${with_curses_h+set}" = set; then
2911 withval="$with_curses_h"
2912 with_curses_h=$withval
2916 echo "$as_me:2916: result: $with_curses_h" >&5
2917 echo "${ECHO_T}$with_curses_h" >&6
2919 modules_to_build="ncurses"
2920 if test "X$cf_with_progs" != Xno ; then
2921 modules_to_build="$modules_to_build progs tack"
2923 modules_to_build="$modules_to_build panel menu form"
2925 test "$program_prefix" != NONE &&
2926 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2927 # Use a double $ so make ignores it.
2928 test "$program_suffix" != NONE &&
2929 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2930 # Double any \ or $. echo might interpret backslashes.
2931 # By default was `s,x,x', remove it if useless.
2932 cat <<\_ACEOF >conftest.sed
2933 s/[\\$]/&&/g;s/;s,x,x,$//
2935 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2938 for ac_prog in mawk gawk nawk awk
2940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 echo "$as_me:2942: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_AWK+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 if test -n "$AWK"; then
2948 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2950 ac_save_IFS=$IFS; IFS=$ac_path_separator
2952 for ac_dir in $ac_dummy; do
2954 test -z "$ac_dir" && ac_dir=.
2955 $as_executable_p "$ac_dir/$ac_word" || continue
2956 ac_cv_prog_AWK="$ac_prog"
2957 echo "$as_me:2957: found $ac_dir/$ac_word" >&5
2964 if test -n "$AWK"; then
2965 echo "$as_me:2965: result: $AWK" >&5
2966 echo "${ECHO_T}$AWK" >&6
2968 echo "$as_me:2968: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2972 test -n "$AWK" && break
2975 test -z "$AWK" && { { echo "$as_me:2975: error: No awk program found" >&5
2976 echo "$as_me: error: No awk program found" >&2;}
2977 { (exit 1); exit 1; }; }
2979 echo "$as_me:2979: checking for egrep" >&5
2980 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2981 if test "${ac_cv_prog_egrep+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2985 then ac_cv_prog_egrep='grep -E'
2986 else ac_cv_prog_egrep='egrep'
2989 echo "$as_me:2989: result: $ac_cv_prog_egrep" >&5
2990 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2991 EGREP=$ac_cv_prog_egrep
2993 test -z "$EGREP" && { { echo "$as_me:2993: error: No egrep program found" >&5
2994 echo "$as_me: error: No egrep program found" >&2;}
2995 { (exit 1); exit 1; }; }
2997 # Find a good install program. We prefer a C program (faster),
2998 # so one script is as good as another. But avoid the broken or
2999 # incompatible versions:
3000 # SysV /etc/install, /usr/sbin/install
3001 # SunOS /usr/etc/install
3002 # IRIX /sbin/install
3004 # AmigaOS /C/install, which installs bootblocks on floppy discs
3005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3008 # ./install, which can be erroneously created by make from ./install.sh.
3009 echo "$as_me:3009: checking for a BSD compatible install" >&5
3010 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3011 if test -z "$INSTALL"; then
3012 if test "${ac_cv_path_install+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 ac_save_IFS=$IFS; IFS=$ac_path_separator
3016 for ac_dir in $PATH; do
3018 # Account for people who put trailing slashes in PATH elements.
3020 / | ./ | .// | /cC/* \
3021 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3024 # OSF1 and SCO ODT 3.0 have their own names for install.
3025 # Don't use installbsd from OSF since it installs stuff as root
3027 for ac_prog in ginstall scoinst install; do
3028 if $as_executable_p "$ac_dir/$ac_prog"; then
3029 if test $ac_prog = install &&
3030 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3031 # AIX install. It has an incompatible calling convention.
3033 elif test $ac_prog = install &&
3034 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3035 # program-specific install script used by HP pwplus--don't use.
3038 ac_cv_path_install="$ac_dir/$ac_prog -c"
3048 if test "${ac_cv_path_install+set}" = set; then
3049 INSTALL=$ac_cv_path_install
3051 # As a last resort, use the slow shell script. We don't cache a
3052 # path for INSTALL within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the path is relative.
3055 INSTALL=$ac_install_sh
3058 echo "$as_me:3058: result: $INSTALL" >&5
3059 echo "${ECHO_T}$INSTALL" >&6
3061 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3062 # It thinks the first close brace ends the variable substitution.
3063 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3065 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3067 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3073 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3074 test -z "$cf_dir" && cf_dir=.
3075 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3079 for ac_prog in tdlint lint alint splint lclint
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 echo "$as_me:3083: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_LINT+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 if test -n "$LINT"; then
3089 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3091 ac_save_IFS=$IFS; IFS=$ac_path_separator
3093 for ac_dir in $ac_dummy; do
3095 test -z "$ac_dir" && ac_dir=.
3096 $as_executable_p "$ac_dir/$ac_word" || continue
3097 ac_cv_prog_LINT="$ac_prog"
3098 echo "$as_me:3098: found $ac_dir/$ac_word" >&5
3104 LINT=$ac_cv_prog_LINT
3105 if test -n "$LINT"; then
3106 echo "$as_me:3106: result: $LINT" >&5
3107 echo "${ECHO_T}$LINT" >&6
3109 echo "$as_me:3109: result: no" >&5
3110 echo "${ECHO_T}no" >&6
3113 test -n "$LINT" && break
3116 echo "$as_me:3116: checking whether ln -s works" >&5
3117 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3119 if test "$LN_S" = "ln -s"; then
3120 echo "$as_me:3120: result: yes" >&5
3121 echo "${ECHO_T}yes" >&6
3123 echo "$as_me:3123: result: no, using $LN_S" >&5
3124 echo "${ECHO_T}no, using $LN_S" >&6
3127 echo "$as_me:3127: checking if $LN_S -f options work" >&5
3128 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3130 rm -f conf$$.src conf$$dst
3132 echo first >conf$$.src
3133 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3138 rm -f conf$$.dst conf$$src
3139 echo "$as_me:3139: result: $cf_prog_ln_sf" >&5
3140 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3142 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3144 echo "$as_me:3144: checking for long file names" >&5
3145 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3146 if test "${ac_cv_sys_long_file_names+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 ac_cv_sys_long_file_names=yes
3150 # Test for long file names in all the places we know might matter:
3151 # . the current directory, where building will happen
3152 # $prefix/lib where we will be installing things
3153 # $exec_prefix/lib likewise
3154 # eval it to expand exec_prefix.
3155 # $TMPDIR if set, where it might want to write temporary files
3156 # if $TMPDIR is not set:
3157 # /tmp where it might want to write temporary files
3160 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3163 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3165 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3166 test -d $ac_dir || continue
3167 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3168 ac_xdir=$ac_dir/cf$$
3169 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3170 ac_tf1=$ac_xdir/conftest9012345
3171 ac_tf2=$ac_xdir/conftest9012346
3172 (echo 1 >$ac_tf1) 2>/dev/null
3173 (echo 2 >$ac_tf2) 2>/dev/null
3174 ac_val=`cat $ac_tf1 2>/dev/null`
3175 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3176 ac_cv_sys_long_file_names=no
3177 rm -rf $ac_xdir 2>/dev/null
3180 rm -rf $ac_xdir 2>/dev/null
3183 echo "$as_me:3183: result: $ac_cv_sys_long_file_names" >&5
3184 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3185 if test $ac_cv_sys_long_file_names = yes; then
3187 cat >>confdefs.h <<\EOF
3188 #define HAVE_LONG_FILE_NAMES 1
3193 # if we find pkg-config, check if we should install the ".pc" files.
3195 echo "$as_me:3195: checking if you want to use pkg-config" >&5
3196 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3198 # Check whether --with-pkg-config or --without-pkg-config was given.
3199 if test "${with_pkg_config+set}" = set; then
3200 withval="$with_pkg_config"
3201 cf_pkg_config=$withval
3205 echo "$as_me:3205: result: $cf_pkg_config" >&5
3206 echo "${ECHO_T}$cf_pkg_config" >&6
3208 case $cf_pkg_config in #(vi
3214 if test -n "$ac_tool_prefix"; then
3215 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3216 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3217 echo "$as_me:3217: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3227 ac_save_IFS=$IFS; IFS=$ac_path_separator
3229 for ac_dir in $ac_dummy; do
3231 test -z "$ac_dir" && ac_dir=.
3232 if $as_executable_p "$ac_dir/$ac_word"; then
3233 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3234 echo "$as_me:3234: found $ac_dir/$ac_word" >&5
3242 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3244 if test -n "$PKG_CONFIG"; then
3245 echo "$as_me:3245: result: $PKG_CONFIG" >&5
3246 echo "${ECHO_T}$PKG_CONFIG" >&6
3248 echo "$as_me:3248: result: no" >&5
3249 echo "${ECHO_T}no" >&6
3253 if test -z "$ac_cv_path_PKG_CONFIG"; then
3254 ac_pt_PKG_CONFIG=$PKG_CONFIG
3255 # Extract the first word of "pkg-config", so it can be a program name with args.
3256 set dummy pkg-config; ac_word=$2
3257 echo "$as_me:3257: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 case $ac_pt_PKG_CONFIG in
3264 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3267 ac_save_IFS=$IFS; IFS=$ac_path_separator
3269 for ac_dir in $ac_dummy; do
3271 test -z "$ac_dir" && ac_dir=.
3272 if $as_executable_p "$ac_dir/$ac_word"; then
3273 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3274 echo "$as_me:3274: found $ac_dir/$ac_word" >&5
3279 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3283 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3285 if test -n "$ac_pt_PKG_CONFIG"; then
3286 echo "$as_me:3286: result: $ac_pt_PKG_CONFIG" >&5
3287 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3289 echo "$as_me:3289: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3293 PKG_CONFIG=$ac_pt_PKG_CONFIG
3295 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3304 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3305 if test "$PKG_CONFIG" != none ; then
3307 if test "x$prefix" != xNONE; then
3308 cf_path_syntax="$prefix"
3310 cf_path_syntax="$ac_default_prefix"
3313 case ".$PKG_CONFIG" in #(vi
3314 .\$\(*\)*|.\'*\'*) #(vi
3318 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3320 .\${*prefix}*|.\${*dir}*) #(vi
3321 eval PKG_CONFIG="$PKG_CONFIG"
3322 case ".$PKG_CONFIG" in #(vi
3324 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3329 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3332 { { echo "$as_me:3332: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3333 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3334 { (exit 1); exit 1; }; }
3340 if test "$PKG_CONFIG" != none ; then
3341 echo "$as_me:3341: checking for $PKG_CONFIG library directory" >&5
3342 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3344 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3345 if test "${with_pkg_config_libdir+set}" = set; then
3346 withval="$with_pkg_config_libdir"
3347 PKG_CONFIG_LIBDIR=$withval
3349 PKG_CONFIG_LIBDIR=yes
3352 case x$PKG_CONFIG_LIBDIR in #(vi
3356 # look for the library directory using the same prefix as the executable
3357 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3358 case x`(arch) 2>/dev/null` in #(vi
3360 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
3362 if test -d $cf_config/pkgconfig
3364 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3370 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
3378 echo "$as_me:3378: result: $PKG_CONFIG_LIBDIR" >&5
3379 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3382 if test "$PKG_CONFIG" != none ; then
3383 echo "$as_me:3383: checking if we should install .pc files for $PKG_CONFIG" >&5
3384 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3386 # Check whether --enable-pc-files or --disable-pc-files was given.
3387 if test "${enable_pc_files+set}" = set; then
3388 enableval="$enable_pc_files"
3389 enable_pc_files=$enableval
3393 echo "$as_me:3393: result: $enable_pc_files" >&5
3394 echo "${ECHO_T}$enable_pc_files" >&6
3395 if test "$enable_pc_files" != no
3398 if test "x$prefix" != xNONE; then
3399 cf_path_syntax="$prefix"
3401 cf_path_syntax="$ac_default_prefix"
3404 case ".$PKG_CONFIG_LIBDIR" in #(vi
3405 .\$\(*\)*|.\'*\'*) #(vi
3409 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3411 .\${*prefix}*|.\${*dir}*) #(vi
3412 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3413 case ".$PKG_CONFIG_LIBDIR" in #(vi
3415 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3420 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3423 { { echo "$as_me:3423: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3424 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3425 { (exit 1); exit 1; }; }
3434 echo "$as_me:3434: checking if we should assume mixed-case filenames" >&5
3435 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3437 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3438 if test "${enable_mixed_case+set}" = set; then
3439 enableval="$enable_mixed_case"
3440 enable_mixedcase=$enableval
3442 enable_mixedcase=auto
3444 echo "$as_me:3444: result: $enable_mixedcase" >&5
3445 echo "${ECHO_T}$enable_mixedcase" >&6
3446 if test "$enable_mixedcase" = "auto" ; then
3448 echo "$as_me:3448: checking if filesystem supports mixed-case filenames" >&5
3449 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3450 if test "${cf_cv_mixedcase+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 if test "$cross_compiling" = yes ; then
3455 case $target_alias in #(vi
3456 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3464 rm -f conftest CONFTEST
3466 if test -f CONFTEST ; then
3471 rm -f conftest CONFTEST
3475 echo "$as_me:3475: result: $cf_cv_mixedcase" >&5
3476 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3477 test "$cf_cv_mixedcase" = yes &&
3478 cat >>confdefs.h <<\EOF
3479 #define MIXEDCASE_FILENAMES 1
3483 cf_cv_mixedcase=$enable_mixedcase
3484 if test "x$enable_mixedcase" = "xyes" ; then
3486 cat >>confdefs.h <<\EOF
3487 #define MIXEDCASE_FILENAMES 1
3493 # do this after mixed-case option (tags/TAGS is not as important as tic).
3494 echo "$as_me:3494: checking whether ${MAKE-make} sets \${MAKE}" >&5
3495 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3496 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3497 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 cat >conftest.make <<\EOF
3502 @echo 'ac_maketemp="${MAKE}"'
3504 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3505 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3506 if test -n "$ac_maketemp"; then
3507 eval ac_cv_prog_make_${ac_make}_set=yes
3509 eval ac_cv_prog_make_${ac_make}_set=no
3513 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3514 echo "$as_me:3514: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6
3518 echo "$as_me:3518: result: no" >&5
3519 echo "${ECHO_T}no" >&6
3520 SET_MAKE="MAKE=${MAKE-make}"
3523 for ac_prog in exctags ctags
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 echo "$as_me:3527: checking for $ac_word" >&5
3528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529 if test "${ac_cv_prog_CTAGS+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 if test -n "$CTAGS"; then
3533 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3535 ac_save_IFS=$IFS; IFS=$ac_path_separator
3537 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 $as_executable_p "$ac_dir/$ac_word" || continue
3541 ac_cv_prog_CTAGS="$ac_prog"
3542 echo "$as_me:3542: found $ac_dir/$ac_word" >&5
3548 CTAGS=$ac_cv_prog_CTAGS
3549 if test -n "$CTAGS"; then
3550 echo "$as_me:3550: result: $CTAGS" >&5
3551 echo "${ECHO_T}$CTAGS" >&6
3553 echo "$as_me:3553: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3557 test -n "$CTAGS" && break
3560 for ac_prog in exetags etags
3562 # Extract the first word of "$ac_prog", so it can be a program name with args.
3563 set dummy $ac_prog; ac_word=$2
3564 echo "$as_me:3564: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_prog_ETAGS+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 if test -n "$ETAGS"; then
3570 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3572 ac_save_IFS=$IFS; IFS=$ac_path_separator
3574 for ac_dir in $ac_dummy; do
3576 test -z "$ac_dir" && ac_dir=.
3577 $as_executable_p "$ac_dir/$ac_word" || continue
3578 ac_cv_prog_ETAGS="$ac_prog"
3579 echo "$as_me:3579: found $ac_dir/$ac_word" >&5
3585 ETAGS=$ac_cv_prog_ETAGS
3586 if test -n "$ETAGS"; then
3587 echo "$as_me:3587: result: $ETAGS" >&5
3588 echo "${ECHO_T}$ETAGS" >&6
3590 echo "$as_me:3590: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3594 test -n "$ETAGS" && break
3597 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3598 set dummy ${CTAGS:-ctags}; ac_word=$2
3599 echo "$as_me:3599: checking for $ac_word" >&5
3600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3601 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 if test -n "$MAKE_LOWER_TAGS"; then
3605 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3607 ac_save_IFS=$IFS; IFS=$ac_path_separator
3609 for ac_dir in $ac_dummy; do
3611 test -z "$ac_dir" && ac_dir=.
3612 $as_executable_p "$ac_dir/$ac_word" || continue
3613 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3614 echo "$as_me:3614: found $ac_dir/$ac_word" >&5
3618 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3621 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3622 if test -n "$MAKE_LOWER_TAGS"; then
3623 echo "$as_me:3623: result: $MAKE_LOWER_TAGS" >&5
3624 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3626 echo "$as_me:3626: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3630 if test "$cf_cv_mixedcase" = yes ; then
3631 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3632 set dummy ${ETAGS:-etags}; ac_word=$2
3633 echo "$as_me:3633: checking for $ac_word" >&5
3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3635 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 if test -n "$MAKE_UPPER_TAGS"; then
3639 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3641 ac_save_IFS=$IFS; IFS=$ac_path_separator
3643 for ac_dir in $ac_dummy; do
3645 test -z "$ac_dir" && ac_dir=.
3646 $as_executable_p "$ac_dir/$ac_word" || continue
3647 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3648 echo "$as_me:3648: found $ac_dir/$ac_word" >&5
3652 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3655 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3656 if test -n "$MAKE_UPPER_TAGS"; then
3657 echo "$as_me:3657: result: $MAKE_UPPER_TAGS" >&5
3658 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3660 echo "$as_me:3660: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3668 if test "$MAKE_UPPER_TAGS" = yes ; then
3674 if test "$MAKE_LOWER_TAGS" = yes ; then
3680 echo "$as_me:3680: checking for makeflags variable" >&5
3681 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3682 if test "${cf_cv_makeflags+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3689 cat >cf_makeflags.tmp <<CF_EOF
3692 @ echo '.$cf_option'
3694 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3695 case "$cf_result" in
3697 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3698 case "$cf_result" in
3699 .*CC=*) cf_cv_makeflags=
3701 *) cf_cv_makeflags=$cf_option
3707 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3711 rm -f cf_makeflags.tmp
3714 echo "$as_me:3714: result: $cf_cv_makeflags" >&5
3715 echo "${ECHO_T}$cf_cv_makeflags" >&6
3717 if test -n "$ac_tool_prefix"; then
3718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3720 echo "$as_me:3720: checking for $ac_word" >&5
3721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3722 if test "${ac_cv_prog_RANLIB+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 if test -n "$RANLIB"; then
3726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3728 ac_save_IFS=$IFS; IFS=$ac_path_separator
3730 for ac_dir in $ac_dummy; do
3732 test -z "$ac_dir" && ac_dir=.
3733 $as_executable_p "$ac_dir/$ac_word" || continue
3734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3735 echo "$as_me:3735: found $ac_dir/$ac_word" >&5
3741 RANLIB=$ac_cv_prog_RANLIB
3742 if test -n "$RANLIB"; then
3743 echo "$as_me:3743: result: $RANLIB" >&5
3744 echo "${ECHO_T}$RANLIB" >&6
3746 echo "$as_me:3746: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3751 if test -z "$ac_cv_prog_RANLIB"; then
3752 ac_ct_RANLIB=$RANLIB
3753 # Extract the first word of "ranlib", so it can be a program name with args.
3754 set dummy ranlib; ac_word=$2
3755 echo "$as_me:3755: checking for $ac_word" >&5
3756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if test -n "$ac_ct_RANLIB"; then
3761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3763 ac_save_IFS=$IFS; IFS=$ac_path_separator
3765 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 $as_executable_p "$ac_dir/$ac_word" || continue
3769 ac_cv_prog_ac_ct_RANLIB="ranlib"
3770 echo "$as_me:3770: found $ac_dir/$ac_word" >&5
3774 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3778 if test -n "$ac_ct_RANLIB"; then
3779 echo "$as_me:3779: result: $ac_ct_RANLIB" >&5
3780 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3782 echo "$as_me:3782: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3786 RANLIB=$ac_ct_RANLIB
3788 RANLIB="$ac_cv_prog_RANLIB"
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}ld; ac_word=$2
3794 echo "$as_me:3794: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3796 if test "${ac_cv_prog_LD+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 if test -n "$LD"; then
3800 ac_cv_prog_LD="$LD" # Let the user override the test.
3802 ac_save_IFS=$IFS; IFS=$ac_path_separator
3804 for ac_dir in $ac_dummy; do
3806 test -z "$ac_dir" && ac_dir=.
3807 $as_executable_p "$ac_dir/$ac_word" || continue
3808 ac_cv_prog_LD="${ac_tool_prefix}ld"
3809 echo "$as_me:3809: found $ac_dir/$ac_word" >&5
3816 if test -n "$LD"; then
3817 echo "$as_me:3817: result: $LD" >&5
3818 echo "${ECHO_T}$LD" >&6
3820 echo "$as_me:3820: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3825 if test -z "$ac_cv_prog_LD"; then
3827 # Extract the first word of "ld", so it can be a program name with args.
3828 set dummy ld; ac_word=$2
3829 echo "$as_me:3829: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 if test -n "$ac_ct_LD"; then
3835 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3837 ac_save_IFS=$IFS; IFS=$ac_path_separator
3839 for ac_dir in $ac_dummy; do
3841 test -z "$ac_dir" && ac_dir=.
3842 $as_executable_p "$ac_dir/$ac_word" || continue
3843 ac_cv_prog_ac_ct_LD="ld"
3844 echo "$as_me:3844: found $ac_dir/$ac_word" >&5
3848 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3851 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3852 if test -n "$ac_ct_LD"; then
3853 echo "$as_me:3853: result: $ac_ct_LD" >&5
3854 echo "${ECHO_T}$ac_ct_LD" >&6
3856 echo "$as_me:3856: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3865 if test -n "$ac_tool_prefix"; then
3866 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3867 set dummy ${ac_tool_prefix}ar; ac_word=$2
3868 echo "$as_me:3868: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_AR+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 if test -n "$AR"; then
3874 ac_cv_prog_AR="$AR" # Let the user override the test.
3876 ac_save_IFS=$IFS; IFS=$ac_path_separator
3878 for ac_dir in $ac_dummy; do
3880 test -z "$ac_dir" && ac_dir=.
3881 $as_executable_p "$ac_dir/$ac_word" || continue
3882 ac_cv_prog_AR="${ac_tool_prefix}ar"
3883 echo "$as_me:3883: found $ac_dir/$ac_word" >&5
3890 if test -n "$AR"; then
3891 echo "$as_me:3891: result: $AR" >&5
3892 echo "${ECHO_T}$AR" >&6
3894 echo "$as_me:3894: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3899 if test -z "$ac_cv_prog_AR"; then
3901 # Extract the first word of "ar", so it can be a program name with args.
3902 set dummy ar; ac_word=$2
3903 echo "$as_me:3903: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 if test -n "$ac_ct_AR"; then
3909 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3911 ac_save_IFS=$IFS; IFS=$ac_path_separator
3913 for ac_dir in $ac_dummy; do
3915 test -z "$ac_dir" && ac_dir=.
3916 $as_executable_p "$ac_dir/$ac_word" || continue
3917 ac_cv_prog_ac_ct_AR="ar"
3918 echo "$as_me:3918: found $ac_dir/$ac_word" >&5
3922 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3925 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3926 if test -n "$ac_ct_AR"; then
3927 echo "$as_me:3927: result: $ac_ct_AR" >&5
3928 echo "${ECHO_T}$ac_ct_AR" >&6
3930 echo "$as_me:3930: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3939 if test -n "$ac_tool_prefix"; then
3940 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3941 set dummy ${ac_tool_prefix}ar; ac_word=$2
3942 echo "$as_me:3942: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944 if test "${ac_cv_prog_AR+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 if test -n "$AR"; then
3948 ac_cv_prog_AR="$AR" # Let the user override the test.
3950 ac_save_IFS=$IFS; IFS=$ac_path_separator
3952 for ac_dir in $ac_dummy; do
3954 test -z "$ac_dir" && ac_dir=.
3955 $as_executable_p "$ac_dir/$ac_word" || continue
3956 ac_cv_prog_AR="${ac_tool_prefix}ar"
3957 echo "$as_me:3957: found $ac_dir/$ac_word" >&5
3964 if test -n "$AR"; then
3965 echo "$as_me:3965: result: $AR" >&5
3966 echo "${ECHO_T}$AR" >&6
3968 echo "$as_me:3968: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3973 if test -z "$ac_cv_prog_AR"; then
3975 # Extract the first word of "ar", so it can be a program name with args.
3976 set dummy ar; ac_word=$2
3977 echo "$as_me:3977: checking for $ac_word" >&5
3978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 if test -n "$ac_ct_AR"; then
3983 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3985 ac_save_IFS=$IFS; IFS=$ac_path_separator
3987 for ac_dir in $ac_dummy; do
3989 test -z "$ac_dir" && ac_dir=.
3990 $as_executable_p "$ac_dir/$ac_word" || continue
3991 ac_cv_prog_ac_ct_AR="ar"
3992 echo "$as_me:3992: found $ac_dir/$ac_word" >&5
3996 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3999 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4000 if test -n "$ac_ct_AR"; then
4001 echo "$as_me:4001: result: $ac_ct_AR" >&5
4002 echo "${ECHO_T}$ac_ct_AR" >&6
4004 echo "$as_me:4004: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4013 echo "$as_me:4013: checking for options to update archives" >&5
4014 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4015 if test "${cf_cv_ar_flags+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cf_cv_ar_flags=unknown
4020 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
4023 # check if $ARFLAGS already contains this choice
4024 if test "x$ARFLAGS" != "x" ; then
4025 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4026 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4032 rm -f conftest.$ac_cv_objext
4035 cat >conftest.$ac_ext <<EOF
4036 #line 4036 "configure"
4037 int testdata[3] = { 123, 456, 789 };
4039 if { (eval echo "$as_me:4039: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>&5
4042 echo "$as_me:4042: \$? = $ac_status" >&5
4043 (exit $ac_status); } ; then
4044 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4045 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4046 if test -f conftest.a ; then
4047 cf_cv_ar_flags=$cf_ar_flags
4051 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4053 echo "${as_me:-configure}:4053: testing cannot compile test-program ..." 1>&5
4058 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext