2 # From configure.in Revision: 1.274 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20011227.
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"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -disable-* | --disable-*)
198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199 # Reject names that are not valid shell variable names.
200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202 { (exit 1); exit 1; }; }
203 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204 eval "enable_$ac_feature=no" ;;
206 -enable-* | --enable-*)
207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208 # Reject names that are not valid shell variable names.
209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211 { (exit 1); exit 1; }; }
212 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217 eval "enable_$ac_feature='$ac_optarg'" ;;
219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 | --exec | --exe | --ex)
222 ac_prev=exec_prefix ;;
223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 | --exec=* | --exe=* | --ex=*)
226 exec_prefix=$ac_optarg ;;
228 -gas | --gas | --ga | --g)
229 # Obsolete; use --with-gas.
232 -help | --help | --hel | --he | -h)
234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235 ac_init_help=recursive ;;
236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237 ac_init_help=short ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host_alias ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host_alias=$ac_optarg ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir=$ac_optarg ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir=$ac_optarg ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir=$ac_optarg ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir=$ac_optarg ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir=$ac_optarg ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix=$ac_optarg ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix=$ac_optarg ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name=$ac_optarg ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir=$ac_optarg ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir=$ac_optarg ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir=$ac_optarg ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target_alias ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target_alias=$ac_optarg ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers | -V)
389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid package name: $ac_package" >&2
393 { (exit 1); exit 1; }; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 eval "with_$ac_package='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid package name: $ac_package" >&2
406 { (exit 1); exit 1; }; }
407 ac_package=`echo $ac_package | sed 's/-/_/g'`
408 eval "with_$ac_package=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes=$ac_optarg ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries=$ac_optarg ;;
428 -*) { echo "$as_me: error: unrecognized option: $ac_option
429 Try \`$0 --help' for more information." >&2
430 { (exit 1); exit 1; }; }
434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435 # Reject names that are not valid shell variable names.
436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438 { (exit 1); exit 1; }; }
439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440 eval "$ac_envvar='$ac_optarg'"
444 # FIXME: should be removed in autoconf 3.0.
445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
454 if test -n "$ac_prev"; then
455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456 { echo "$as_me: error: missing argument to $ac_option" >&2
457 { (exit 1); exit 1; }; }
460 # Be sure to have absolute paths.
461 for ac_var in exec_prefix prefix
463 eval ac_val=$`echo $ac_var`
465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467 { (exit 1); exit 1; }; };;
471 # Be sure to have absolute paths.
472 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473 localstatedir libdir includedir oldincludedir infodir mandir
475 eval ac_val=$`echo $ac_var`
477 [\\/$]* | ?:[\\/]* ) ;;
478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479 { (exit 1); exit 1; }; };;
483 # There might be people who depend on the old broken behavior: `$host'
484 # used to hold the argument of --host etc.
489 # FIXME: should be removed in autoconf 3.0.
490 if test "x$host_alias" != x; then
491 if test "x$build_alias" = x; then
492 cross_compiling=maybe
493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494 If a cross compiler is detected then cross compile mode will be used." >&2
495 elif test "x$build_alias" != "x$host_alias"; then
501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503 test "$silent" = yes && exec 6>/dev/null
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522 { (exit 1); exit 1; }; }
524 { echo "$as_me: error: cannot find sources in $srcdir" >&2
525 { (exit 1); exit 1; }; }
528 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529 ac_env_build_alias_set=${build_alias+set}
530 ac_env_build_alias_value=$build_alias
531 ac_cv_env_build_alias_set=${build_alias+set}
532 ac_cv_env_build_alias_value=$build_alias
533 ac_env_host_alias_set=${host_alias+set}
534 ac_env_host_alias_value=$host_alias
535 ac_cv_env_host_alias_set=${host_alias+set}
536 ac_cv_env_host_alias_value=$host_alias
537 ac_env_target_alias_set=${target_alias+set}
538 ac_env_target_alias_value=$target_alias
539 ac_cv_env_target_alias_set=${target_alias+set}
540 ac_cv_env_target_alias_value=$target_alias
541 ac_env_CC_set=${CC+set}
543 ac_cv_env_CC_set=${CC+set}
544 ac_cv_env_CC_value=$CC
545 ac_env_CFLAGS_set=${CFLAGS+set}
546 ac_env_CFLAGS_value=$CFLAGS
547 ac_cv_env_CFLAGS_set=${CFLAGS+set}
548 ac_cv_env_CFLAGS_value=$CFLAGS
549 ac_env_LDFLAGS_set=${LDFLAGS+set}
550 ac_env_LDFLAGS_value=$LDFLAGS
551 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552 ac_cv_env_LDFLAGS_value=$LDFLAGS
553 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554 ac_env_CPPFLAGS_value=$CPPFLAGS
555 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557 ac_env_CPP_set=${CPP+set}
558 ac_env_CPP_value=$CPP
559 ac_cv_env_CPP_set=${CPP+set}
560 ac_cv_env_CPP_value=$CPP
561 ac_env_CXX_set=${CXX+set}
562 ac_env_CXX_value=$CXX
563 ac_cv_env_CXX_set=${CXX+set}
564 ac_cv_env_CXX_value=$CXX
565 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
566 ac_env_CXXFLAGS_value=$CXXFLAGS
567 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
568 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
569 ac_env_CXXCPP_set=${CXXCPP+set}
570 ac_env_CXXCPP_value=$CXXCPP
571 ac_cv_env_CXXCPP_set=${CXXCPP+set}
572 ac_cv_env_CXXCPP_value=$CXXCPP
575 # Report the --help message.
577 if test "$ac_init_help" = "long"; then
578 # Omit some internal or obsolete options to make the list less imposing.
579 # This message is too long to be a string in the A/UX 3.1 sh.
581 \`configure' configures this package to adapt to many kinds of systems.
583 Usage: $0 [OPTION]... [VAR=VALUE]...
585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
586 VAR=VALUE. See below for descriptions of some of the useful variables.
588 Defaults for the options are specified in brackets.
591 -h, --help display this help and exit
592 --help=short display options specific to this package
593 --help=recursive display the short help of all the included packages
594 -V, --version display version information and exit
595 -q, --quiet, --silent do not print \`checking...' messages
596 --cache-file=FILE cache test results in FILE [disabled]
597 -C, --config-cache alias for \`--cache-file=config.cache'
598 -n, --no-create do not create output files
599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
604 Installation directories:
605 --prefix=PREFIX install architecture-independent files in PREFIX
607 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
610 By default, \`make install' will install all the files in
611 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
612 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
613 for instance \`--prefix=\$HOME'.
615 For better control, use the options below.
617 Fine tuning of the installation directories:
618 --bindir=DIR user executables [EPREFIX/bin]
619 --sbindir=DIR system admin executables [EPREFIX/sbin]
620 --libexecdir=DIR program executables [EPREFIX/libexec]
621 --datadir=DIR read-only architecture-independent data [PREFIX/share]
622 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
623 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
624 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
625 --libdir=DIR object code libraries [EPREFIX/lib]
626 --includedir=DIR C header files [PREFIX/include]
627 --oldincludedir=DIR C header files for non-gcc [/usr/include]
628 --infodir=DIR info documentation [PREFIX/info]
629 --mandir=DIR man documentation [PREFIX/man]
635 --program-prefix=PREFIX prepend PREFIX to installed program names
636 --program-suffix=SUFFIX append SUFFIX to installed program names
637 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
642 --target=TARGET configure for building compilers for TARGET [HOST]
646 if test -n "$ac_init_help"; then
651 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
652 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
655 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
656 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
658 --with-system-type=XXX test: override derived host system-type
659 --enable-add-ons=DIR... used to check if we are a glibc add-on.
660 --with-build-cc=XXX if cross-compiling, the host C compiler (\$BUILD_CC)
661 --with-build-cflags=XXX if cross-compiling, the host C compiler-flags
662 --with-build-cppflags=XXX if cross-compiling, the host C preprocessor-flags
663 --with-build-ldflags=XXX if cross-compiling, the host linker-flags
664 --with-build-libs=XXX if cross-compiling, the host libraries
665 --without-cxx do not adjust ncurses bool to match C++
666 --without-cxx-binding do not build C++ binding and demo
667 --without-ada suppress check for Ada95, don't build demo
668 --without-progs suppress build with programs (e.g., tic)
669 --without-curses-h install curses.h as ncurses.h only
670 --with-install-prefix prefixes actual install-location (\$DESTDIR)
671 Options to Specify the Libraries Built/Used:
672 --with-libtool generate libraries with libtool
673 --with-shared generate shared-libraries
674 --with-normal generate normal-libraries (default)
675 --with-debug generate debug-libraries (default)
676 --with-profile generate profile-libraries
677 --with-termlib generate separate terminfo library
678 --with-dbmalloc test: use Conor Cahill's dbmalloc library
679 --with-dmalloc test: use Gray Watson's dmalloc library
680 --with-gpm use Alessandro Rubini's GPM library
681 --enable-rpath use rpath option when generating shared libraries
682 --with-shlib-version=X Specify rel or abi version for shared libs
683 Fine-Tuning Your Configuration:
684 --disable-overwrite leave out the link to -lcurses
685 --disable-database do not use terminfo, only fallbacks/termcap
686 --with-database=XXX specify terminfo source to install
687 --with-fallbacks=XXX specify list of fallback terminal descriptions
688 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
689 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
690 --disable-big-core assume machine has little memory
691 --enable-termcap compile in termcap fallback support
692 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
693 --enable-getcap fast termcap load, no xrefs to terminfo
694 --enable-getcap-cache cache translated termcaps in ~/.terminfo
695 --enable-symlinks make tic use symbolic links not hard links
696 --enable-broken_linker compile with broken-linker support code
697 --with-bool=TYPE override fallback type of bool variable
698 --with-ospeed=TYPE override type of ospeed variable
699 --enable-bsdpad recognize BSD-style prefix padding
700 --with-rcs-ids compile-in RCS identifiers
701 Options to Specify How Manpages are Installed:
702 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
703 optionally formatted, e.g., gzip,formatted
704 --with-manpage-renames specify manpage-renaming
705 --with-manpage-symlinks specify manpage-symlinks
706 --with-manpage-tbl specify manpage processing with tbl
708 --disable-ext-funcs disable function-extensions
709 --enable-const compile with extra/non-standard const
710 --enable-no-padding compile with \$NCURSES_NO_PADDING code
711 --enable-sigwinch compile with SIGWINCH handler
712 --enable-tcap-names compile with user-definable terminal capabilities
714 --with-develop enable all development options
715 --enable-hard-tabs compile with hard-tabs code
716 --disable-root-environ limit environment when running as root
717 --enable-xmc-glitch compile with limited support for xmc
719 --disable-assumed-color do not assume anything about default-colors
720 --disable-hashmap compile without hashmap scrolling-optimization
721 --enable-colorfgbg compile with \$COLORFGBG code
722 --enable-safe-sprintf compile with experimental safe-sprintf code
723 --disable-scroll-hints compile without scroll-hints code
724 --enable-widec compile with experimental wide-char/UTF-8 code
725 --with-caps=alt compile with experimental alternate Caps file
726 Testing/development Options:
727 --enable-echo build: display "compiling" commands (default)
728 --enable-warnings build: turn on GCC compiler warnings
729 --enable-assertions test: turn on generation of assertion code
730 --disable-leaks test: suppress permanent memory-leaks
731 --enable-expanded test: generate functions for certain macros
732 --disable-macros test: use functions rather than macros
733 Ada95 Binding Options:
734 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
735 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
736 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
738 Some influential environment variables:
739 CC C compiler command
740 CFLAGS C compiler flags
741 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
742 nonstandard directory <lib dir>
743 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
744 headers in a nonstandard directory <include dir>
746 CXX C++ compiler command
747 CXXFLAGS C++ compiler flags
748 CXXCPP C++ preprocessor
750 Use these variables to override the choices made by `configure' or to help
751 it to find libraries and programs with nonstandard names/locations.
756 if test "$ac_init_help" = "recursive"; then
757 # If there are subdirs, report their specific --help.
759 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
761 # A "../" for each directory in /$ac_subdir.
762 ac_dots=`echo $ac_subdir |
763 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
766 .) # No --srcdir option. We are building in place.
767 ac_sub_srcdir=$srcdir ;;
768 [\\/]* | ?:[\\/]* ) # Absolute path.
769 ac_sub_srcdir=$srcdir/$ac_subdir ;;
771 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
774 # Check for guested configure; otherwise get Cygnus style configure.
775 if test -f $ac_sub_srcdir/configure.gnu; then
777 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
778 elif test -f $ac_sub_srcdir/configure; then
780 $SHELL $ac_sub_srcdir/configure --help=recursive
781 elif test -f $ac_sub_srcdir/configure.ac ||
782 test -f $ac_sub_srcdir/configure.in; then
786 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
792 test -n "$ac_init_help" && exit 0
793 if $ac_init_version; then
796 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
797 Free Software Foundation, Inc.
798 This configure script is free software; the Free Software Foundation
799 gives unlimited permission to copy, distribute and modify it.
805 This file contains any messages produced by compilers while
806 running configure, to aid debugging if configure makes a mistake.
808 It was created by $as_me, which was
809 generated by GNU Autoconf 2.52.20011227. Invocation command line was
820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
827 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
829 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
830 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
832 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
833 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
834 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
835 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
849 # Keep a trace of the command line.
850 # Strip out --no-create and --no-recursion so they do not pile up.
851 # Also quote any args containing shell meta-characters.
857 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
858 | --no-cr | --no-c) ;;
859 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
860 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
861 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
862 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
863 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
865 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
868 # Get rid of the leading space.
871 # When interrupted or exit'd, cleanup temporary files, and complete
872 # config.log. We remove comments because anyway the quotes in there
873 # would cause problems or look ugly.
875 # Save into config.log some information that might help in debugging.
877 echo "## ----------------- ##" >&5
878 echo "## Cache variables. ##" >&5
879 echo "## ----------------- ##" >&5
881 # The following way of writing the cache mishandles newlines in values,
884 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
887 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
892 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
896 sed "/^$/d" confdefs.h >conftest.log
897 if test -s conftest.log; then
899 echo "## ------------ ##" >&5
900 echo "## confdefs.h. ##" >&5
901 echo "## ------------ ##" >&5
906 test "$ac_signal" != 0 &&
907 echo "$as_me: caught signal $ac_signal" >&5
908 echo "$as_me: exit $exit_status" >&5
909 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
912 for ac_signal in 1 2 13 15; do
913 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
917 # confdefs.h avoids OS command line length limits that DEFS can exceed.
918 rm -rf conftest* confdefs.h
919 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
922 # Let the site file select an alternate cache file if it wants to.
923 # Prefer explicitly selected file to automatically selected ones.
924 if test -z "$CONFIG_SITE"; then
925 if test "x$prefix" != xNONE; then
926 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
928 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
931 for ac_site_file in $CONFIG_SITE; do
932 if test -r "$ac_site_file"; then
933 { echo "$as_me:933: loading site script $ac_site_file" >&5
934 echo "$as_me: loading site script $ac_site_file" >&6;}
935 cat "$ac_site_file" >&5
940 if test -r "$cache_file"; then
941 # Some versions of bash will fail to source /dev/null (special
942 # files actually), so we avoid doing that.
943 if test -f "$cache_file"; then
944 { echo "$as_me:944: loading cache $cache_file" >&5
945 echo "$as_me: loading cache $cache_file" >&6;}
947 [\\/]* | ?:[\\/]* ) . $cache_file;;
952 { echo "$as_me:952: creating cache $cache_file" >&5
953 echo "$as_me: creating cache $cache_file" >&6;}
957 # Check that the precious variables saved in the cache have kept the same
959 ac_cache_corrupted=false
960 for ac_var in `(set) 2>&1 |
961 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
962 eval ac_old_set=\$ac_cv_env_${ac_var}_set
963 eval ac_new_set=\$ac_env_${ac_var}_set
964 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
965 eval ac_new_val="\$ac_env_${ac_var}_value"
966 case $ac_old_set,$ac_new_set in
968 { echo "$as_me:968: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
969 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
970 ac_cache_corrupted=: ;;
972 { echo "$as_me:972: error: \`$ac_var' was not set in the previous run" >&5
973 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
974 ac_cache_corrupted=: ;;
977 if test "x$ac_old_val" != "x$ac_new_val"; then
978 { echo "$as_me:978: error: \`$ac_var' has changed since the previous run:" >&5
979 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
980 { echo "$as_me:980: former value: $ac_old_val" >&5
981 echo "$as_me: former value: $ac_old_val" >&2;}
982 { echo "$as_me:982: current value: $ac_new_val" >&5
983 echo "$as_me: current value: $ac_new_val" >&2;}
987 # Pass precious variables to config.status. It doesn't matter if
988 # we pass some twice (in addition to the command line arguments).
989 if test "$ac_new_set" = set; then
991 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
992 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
993 ac_configure_args="$ac_configure_args '$ac_arg'"
995 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1000 if $ac_cache_corrupted; then
1001 { echo "$as_me:1001: error: changes in the environment can compromise the build" >&5
1002 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1003 { { echo "$as_me:1003: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1004 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1005 { (exit 1); exit 1; }; }
1009 ac_cpp='$CPP $CPPFLAGS'
1010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1014 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1015 *c*,-n*) ECHO_N= ECHO_C='
1017 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1018 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1020 echo "#! $SHELL" >conftest.sh
1021 echo "exit 0" >>conftest.sh
1022 chmod +x conftest.sh
1023 if { (echo "$as_me:1023: PATH=\".;.\"; conftest.sh") >&5
1024 (PATH=".;."; conftest.sh) 2>&5
1026 echo "$as_me:1026: \$? = $ac_status" >&5
1027 (exit $ac_status); }; then
1028 ac_path_separator=';'
1032 PATH_SEPARATOR="$ac_path_separator"
1035 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1037 NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1038 NCURSES_MINOR="`egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1039 NCURSES_PATCH="`egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1040 cf_cv_abi_version=${NCURSES_MAJOR}
1041 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1042 cf_cv_timestamp=`date`
1043 echo "$as_me:1043: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1044 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1047 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1048 if test -f $ac_dir/install-sh; then
1050 ac_install_sh="$ac_aux_dir/install-sh -c"
1052 elif test -f $ac_dir/install.sh; then
1054 ac_install_sh="$ac_aux_dir/install.sh -c"
1056 elif test -f $ac_dir/shtool; then
1058 ac_install_sh="$ac_aux_dir/shtool install -c"
1062 if test -z "$ac_aux_dir"; then
1063 { { echo "$as_me:1063: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1064 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1065 { (exit 1); exit 1; }; }
1067 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1068 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1069 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1071 # Make sure we can run config.sub.
1072 $ac_config_sub sun4 >/dev/null 2>&1 ||
1073 { { echo "$as_me:1073: error: cannot run $ac_config_sub" >&5
1074 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1075 { (exit 1); exit 1; }; }
1077 echo "$as_me:1077: checking build system type" >&5
1078 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1079 if test "${ac_cv_build+set}" = set; then
1080 echo $ECHO_N "(cached) $ECHO_C" >&6
1082 ac_cv_build_alias=$build_alias
1083 test -z "$ac_cv_build_alias" &&
1084 ac_cv_build_alias=`$ac_config_guess`
1085 test -z "$ac_cv_build_alias" &&
1086 { { echo "$as_me:1086: error: cannot guess build type; you must specify one" >&5
1087 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1088 { (exit 1); exit 1; }; }
1089 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1090 { { echo "$as_me:1090: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1091 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1092 { (exit 1); exit 1; }; }
1095 echo "$as_me:1095: result: $ac_cv_build" >&5
1096 echo "${ECHO_T}$ac_cv_build" >&6
1098 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1099 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1100 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1102 echo "$as_me:1102: checking host system type" >&5
1103 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1104 if test "${ac_cv_host+set}" = set; then
1105 echo $ECHO_N "(cached) $ECHO_C" >&6
1107 ac_cv_host_alias=$host_alias
1108 test -z "$ac_cv_host_alias" &&
1109 ac_cv_host_alias=$ac_cv_build_alias
1110 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1111 { { echo "$as_me:1111: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1112 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1113 { (exit 1); exit 1; }; }
1116 echo "$as_me:1116: result: $ac_cv_host" >&5
1117 echo "${ECHO_T}$ac_cv_host" >&6
1119 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1120 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1121 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123 if test -f $srcdir/config.guess ; then
1124 echo "$as_me:1124: checking target system type" >&5
1125 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1126 if test "${ac_cv_target+set}" = set; then
1127 echo $ECHO_N "(cached) $ECHO_C" >&6
1129 ac_cv_target_alias=$target_alias
1130 test "x$ac_cv_target_alias" = "x" &&
1131 ac_cv_target_alias=$ac_cv_host_alias
1132 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1133 { { echo "$as_me:1133: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1134 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1135 { (exit 1); exit 1; }; }
1138 echo "$as_me:1138: result: $ac_cv_target" >&5
1139 echo "${ECHO_T}$ac_cv_target" >&6
1140 target=$ac_cv_target
1141 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1142 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1143 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 # The aliases save the names the user supplied, while $host etc.
1146 # will get canonicalized.
1147 test -n "$target_alias" &&
1148 test "$program_prefix$program_suffix$program_transform_name" = \
1150 program_prefix=${target_alias}-
1151 system_name="$host_os"
1153 system_name="`(uname -s -r) 2>/dev/null`"
1154 if test -z "$system_name" ; then
1155 system_name="`(hostname) 2>/dev/null`"
1158 test -n "$system_name" && cat >>confdefs.h <<EOF
1159 #define SYSTEM_NAME "$system_name"
1162 if test "${cf_cv_system_name+set}" = set; then
1163 echo $ECHO_N "(cached) $ECHO_C" >&6
1165 cf_cv_system_name="$system_name"
1168 test -z "$system_name" && system_name="$cf_cv_system_name"
1169 test -n "$cf_cv_system_name" && echo "$as_me:1169: result: Configuring for $cf_cv_system_name" >&5
1170 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1172 if test ".$system_name" != ".$cf_cv_system_name" ; then
1173 echo "$as_me:1173: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1174 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1175 { { echo "$as_me:1175: error: \"Please remove config.cache and try again.\"" >&5
1176 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1177 { (exit 1); exit 1; }; }
1180 # Check whether --with-system-type or --without-system-type was given.
1181 if test "${with_system_type+set}" = set; then
1182 withval="$with_system_type"
1183 { echo "$as_me:1183: WARNING: overriding system type to $withval" >&5
1184 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1185 cf_cv_system_name=$withval
1188 # We need a configure script only when compiling as part of GNU C library.
1189 # Here we have to generate one of the files we need while compiling.
1191 # The only problem is that users of the package might think they have to
1192 # run configure themself and find it irritating when nothing happens.
1194 # So we try here to find out whether we are called from the glibc configure
1198 # Check whether --enable-add-ons or --disable-add-ons was given.
1199 if test "${enable_add_ons+set}" = set; then
1200 enableval="$enable_add_ons"
1206 if test x"$glibc_add_on" = "xyes" ; then
1207 rm -f $srcdir/Banner
1209 rm -f $srcdir/Makefile
1210 cp $srcdir/Makefile.glibc $srcdir/Makefile
1211 echo "ncurses `grep \"^[ ]*ncurses-version[ ]*=.*$\" \
1212 $srcdir/Makefile | sed -e \
1213 's/^[ ]*ncurses-version[ ]*=[ ]*\([^ ^ ]*\)[ ]*$/\1/'`" > $srcdir/Banner
1217 ### Save the given $CFLAGS to allow user-override.
1218 cf_user_CFLAGS="$CFLAGS"
1220 ### Default install-location
1222 echo "$as_me:1222: checking for prefix" >&5
1223 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1224 if test "x$prefix" = "xNONE" ; then
1225 case "$cf_cv_system_name" in
1226 # non-vendor systems don't have a conflict
1227 openbsd*|netbsd*|freebsd*|linux*|cygwin*)
1230 *) prefix=$ac_default_prefix
1234 echo "$as_me:1234: result: $prefix" >&5
1235 echo "${ECHO_T}$prefix" >&6
1237 if test "x$prefix" = "xNONE" ; then
1238 echo "$as_me:1238: checking for default include-directory" >&5
1239 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1240 test -n "$verbose" && echo 1>&6
1243 $includedir/ncurses \
1245 $prefix/include/ncurses \
1246 /usr/local/include \
1247 /usr/local/include/ncurses \
1249 /usr/include/ncurses
1251 cf_dir=`eval echo $cf_symbol`
1252 if test -f $cf_dir/curses.h ; then
1253 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1254 includedir="$cf_symbol"
1255 test -n "$verbose" && echo $ac_n " found " 1>&6
1259 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1261 echo "$as_me:1261: result: $includedir" >&5
1262 echo "${ECHO_T}$includedir" >&6
1265 ### Checks for programs.
1267 ac_cpp='$CPP $CPPFLAGS'
1268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1271 if test -n "$ac_tool_prefix"; then
1272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1274 echo "$as_me:1274: checking for $ac_word" >&5
1275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1276 if test "${ac_cv_prog_CC+set}" = set; then
1277 echo $ECHO_N "(cached) $ECHO_C" >&6
1279 if test -n "$CC"; then
1280 ac_cv_prog_CC="$CC" # Let the user override the test.
1282 ac_save_IFS=$IFS; IFS=$ac_path_separator
1284 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 $as_executable_p "$ac_dir/$ac_word" || continue
1288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1289 echo "$as_me:1289: found $ac_dir/$ac_word" >&5
1296 if test -n "$CC"; then
1297 echo "$as_me:1297: result: $CC" >&5
1298 echo "${ECHO_T}$CC" >&6
1300 echo "$as_me:1300: result: no" >&5
1301 echo "${ECHO_T}no" >&6
1305 if test -z "$ac_cv_prog_CC"; then
1307 # Extract the first word of "gcc", so it can be a program name with args.
1308 set dummy gcc; ac_word=$2
1309 echo "$as_me:1309: checking for $ac_word" >&5
1310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 if test -n "$ac_ct_CC"; then
1315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1317 ac_save_IFS=$IFS; IFS=$ac_path_separator
1319 for ac_dir in $ac_dummy; do
1321 test -z "$ac_dir" && ac_dir=.
1322 $as_executable_p "$ac_dir/$ac_word" || continue
1323 ac_cv_prog_ac_ct_CC="gcc"
1324 echo "$as_me:1324: found $ac_dir/$ac_word" >&5
1330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1331 if test -n "$ac_ct_CC"; then
1332 echo "$as_me:1332: result: $ac_ct_CC" >&5
1333 echo "${ECHO_T}$ac_ct_CC" >&6
1335 echo "$as_me:1335: result: no" >&5
1336 echo "${ECHO_T}no" >&6
1344 if test -z "$CC"; then
1345 if test -n "$ac_tool_prefix"; then
1346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1347 set dummy ${ac_tool_prefix}cc; ac_word=$2
1348 echo "$as_me:1348: checking for $ac_word" >&5
1349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1350 if test "${ac_cv_prog_CC+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 if test -n "$CC"; then
1354 ac_cv_prog_CC="$CC" # Let the user override the test.
1356 ac_save_IFS=$IFS; IFS=$ac_path_separator
1358 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 $as_executable_p "$ac_dir/$ac_word" || continue
1362 ac_cv_prog_CC="${ac_tool_prefix}cc"
1363 echo "$as_me:1363: found $ac_dir/$ac_word" >&5
1370 if test -n "$CC"; then
1371 echo "$as_me:1371: result: $CC" >&5
1372 echo "${ECHO_T}$CC" >&6
1374 echo "$as_me:1374: result: no" >&5
1375 echo "${ECHO_T}no" >&6
1379 if test -z "$ac_cv_prog_CC"; then
1381 # Extract the first word of "cc", so it can be a program name with args.
1382 set dummy cc; ac_word=$2
1383 echo "$as_me:1383: checking for $ac_word" >&5
1384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 if test -n "$ac_ct_CC"; then
1389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1391 ac_save_IFS=$IFS; IFS=$ac_path_separator
1393 for ac_dir in $ac_dummy; do
1395 test -z "$ac_dir" && ac_dir=.
1396 $as_executable_p "$ac_dir/$ac_word" || continue
1397 ac_cv_prog_ac_ct_CC="cc"
1398 echo "$as_me:1398: found $ac_dir/$ac_word" >&5
1404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1405 if test -n "$ac_ct_CC"; then
1406 echo "$as_me:1406: result: $ac_ct_CC" >&5
1407 echo "${ECHO_T}$ac_ct_CC" >&6
1409 echo "$as_me:1409: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1419 if test -z "$CC"; then
1420 # Extract the first word of "cc", so it can be a program name with args.
1421 set dummy cc; ac_word=$2
1422 echo "$as_me:1422: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 if test -n "$CC"; then
1428 ac_cv_prog_CC="$CC" # Let the user override the test.
1431 ac_save_IFS=$IFS; IFS=$ac_path_separator
1433 for ac_dir in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir=.
1436 $as_executable_p "$ac_dir/$ac_word" || continue
1437 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1438 ac_prog_rejected=yes
1442 echo "$as_me:1442: found $ac_dir/$ac_word" >&5
1446 if test $ac_prog_rejected = yes; then
1447 # We found a bogon in the path, so make sure we never use it.
1448 set dummy $ac_cv_prog_CC
1450 if test $# != 0; then
1451 # We chose a different compiler from the bogus one.
1452 # However, it has the same basename, so the bogon will be chosen
1453 # first if we set CC to just the basename; use the full file name.
1455 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1463 if test -n "$CC"; then
1464 echo "$as_me:1464: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1467 echo "$as_me:1467: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$CC"; then
1473 if test -n "$ac_tool_prefix"; then
1476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1478 echo "$as_me:1478: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 if test -n "$CC"; then
1484 ac_cv_prog_CC="$CC" # Let the user override the test.
1486 ac_save_IFS=$IFS; IFS=$ac_path_separator
1488 for ac_dir in $ac_dummy; do
1490 test -z "$ac_dir" && ac_dir=.
1491 $as_executable_p "$ac_dir/$ac_word" || continue
1492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1493 echo "$as_me:1493: found $ac_dir/$ac_word" >&5
1500 if test -n "$CC"; then
1501 echo "$as_me:1501: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1504 echo "$as_me:1504: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1508 test -n "$CC" && break
1511 if test -z "$CC"; then
1515 # Extract the first word of "$ac_prog", so it can be a program name with args.
1516 set dummy $ac_prog; ac_word=$2
1517 echo "$as_me:1517: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 ac_save_IFS=$IFS; IFS=$ac_path_separator
1527 for ac_dir in $ac_dummy; do
1529 test -z "$ac_dir" && ac_dir=.
1530 $as_executable_p "$ac_dir/$ac_word" || continue
1531 ac_cv_prog_ac_ct_CC="$ac_prog"
1532 echo "$as_me:1532: found $ac_dir/$ac_word" >&5
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:1540: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1543 echo "$as_me:1543: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1547 test -n "$ac_ct_CC" && break
1555 test -z "$CC" && { { echo "$as_me:1555: error: no acceptable cc found in \$PATH" >&5
1556 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1557 { (exit 1); exit 1; }; }
1559 # Provide some information about the compiler.
1560 echo "$as_me:1560:" \
1561 "checking for C compiler version" >&5
1562 ac_compiler=`set X $ac_compile; echo $2`
1563 { (eval echo "$as_me:1563: \"$ac_compiler --version </dev/null >&5\"") >&5
1564 (eval $ac_compiler --version </dev/null >&5) 2>&5
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }
1568 { (eval echo "$as_me:1568: \"$ac_compiler -v </dev/null >&5\"") >&5
1569 (eval $ac_compiler -v </dev/null >&5) 2>&5
1571 echo "$as_me:1571: \$? = $ac_status" >&5
1572 (exit $ac_status); }
1573 { (eval echo "$as_me:1573: \"$ac_compiler -V </dev/null >&5\"") >&5
1574 (eval $ac_compiler -V </dev/null >&5) 2>&5
1576 echo "$as_me:1576: \$? = $ac_status" >&5
1577 (exit $ac_status); }
1579 cat >conftest.$ac_ext <<_ACEOF
1580 #line 1580 "configure"
1581 #include "confdefs.h"
1591 ac_clean_files_save=$ac_clean_files
1592 ac_clean_files="$ac_clean_files a.out a.exe"
1593 # Try to create an executable without -o first, disregard a.out.
1594 # It will help us diagnose broken compilers, and finding out an intuition
1596 echo "$as_me:1596: checking for C compiler default output" >&5
1597 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1598 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1599 if { (eval echo "$as_me:1599: \"$ac_link_default\"") >&5
1600 (eval $ac_link_default) 2>&5
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; then
1604 # Find the output, starting from the most likely. This scheme is
1605 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1607 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1608 ls a.out conftest 2>/dev/null;
1609 ls a.* conftest.* 2>/dev/null`; do
1611 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1612 a.out ) # We found the default executable, but exeext='' is most
1615 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1616 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1623 echo "$as_me: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1625 { { echo "$as_me:1625: error: C compiler cannot create executables" >&5
1626 echo "$as_me: error: C compiler cannot create executables" >&2;}
1627 { (exit 77); exit 77; }; }
1630 ac_exeext=$ac_cv_exeext
1631 echo "$as_me:1631: result: $ac_file" >&5
1632 echo "${ECHO_T}$ac_file" >&6
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 the C compiler works" >&5
1637 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1638 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1639 # If not cross compiling, check that we can run a simple program.
1640 if test "$cross_compiling" != yes; then
1641 if { ac_try='./$ac_file'
1642 { (eval echo "$as_me:1642: \"$ac_try\"") >&5
1645 echo "$as_me:1645: \$? = $ac_status" >&5
1646 (exit $ac_status); }; }; then
1649 if test "$cross_compiling" = maybe; then
1652 { { echo "$as_me:1652: error: cannot run C compiled programs.
1653 If you meant to cross compile, use \`--host'." >&5
1654 echo "$as_me: error: cannot run C compiled programs.
1655 If you meant to cross compile, use \`--host'." >&2;}
1656 { (exit 1); exit 1; }; }
1660 echo "$as_me:1660: result: yes" >&5
1661 echo "${ECHO_T}yes" >&6
1663 rm -f a.out a.exe conftest$ac_cv_exeext
1664 ac_clean_files=$ac_clean_files_save
1665 # Check the compiler produces executables we can run. If not, either
1666 # the compiler is broken, or we cross compile.
1667 echo "$as_me:1667: checking whether we are cross compiling" >&5
1668 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1669 echo "$as_me:1669: result: $cross_compiling" >&5
1670 echo "${ECHO_T}$cross_compiling" >&6
1672 echo "$as_me:1672: checking for executable suffix" >&5
1673 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1674 if { (eval echo "$as_me:1674: \"$ac_link\"") >&5
1675 (eval $ac_link) 2>&5
1677 echo "$as_me:1677: \$? = $ac_status" >&5
1678 (exit $ac_status); }; then
1679 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1680 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1681 # work properly (i.e., refer to `conftest.exe'), while it won't with
1683 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1685 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1686 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1693 { { echo "$as_me:1693: error: cannot compute EXEEXT: cannot compile and link" >&5
1694 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1695 { (exit 1); exit 1; }; }
1698 rm -f conftest$ac_cv_exeext
1699 echo "$as_me:1699: result: $ac_cv_exeext" >&5
1700 echo "${ECHO_T}$ac_cv_exeext" >&6
1702 rm -f conftest.$ac_ext
1703 EXEEXT=$ac_cv_exeext
1705 echo "$as_me:1705: checking for object suffix" >&5
1706 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1707 if test "${ac_cv_objext+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 cat >conftest.$ac_ext <<_ACEOF
1711 #line 1711 "configure"
1712 #include "confdefs.h"
1722 rm -f conftest.o conftest.obj
1723 if { (eval echo "$as_me:1723: \"$ac_compile\"") >&5
1724 (eval $ac_compile) 2>&5
1726 echo "$as_me:1726: \$? = $ac_status" >&5
1727 (exit $ac_status); }; then
1728 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1731 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1736 echo "$as_me: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1738 { { echo "$as_me:1738: error: cannot compute OBJEXT: cannot compile" >&5
1739 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1740 { (exit 1); exit 1; }; }
1743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1745 echo "$as_me:1745: result: $ac_cv_objext" >&5
1746 echo "${ECHO_T}$ac_cv_objext" >&6
1747 OBJEXT=$ac_cv_objext
1749 echo "$as_me:1749: checking whether we are using the GNU C compiler" >&5
1750 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1751 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 cat >conftest.$ac_ext <<_ACEOF
1755 #line 1755 "configure"
1756 #include "confdefs.h"
1769 rm -f conftest.$ac_objext
1770 if { (eval echo "$as_me:1770: \"$ac_compile\"") >&5
1771 (eval $ac_compile) 2>&5
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); } &&
1775 { ac_try='test -s conftest.$ac_objext'
1776 { (eval echo "$as_me:1776: \"$ac_try\"") >&5
1779 echo "$as_me:1779: \$? = $ac_status" >&5
1780 (exit $ac_status); }; }; then
1783 echo "$as_me: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1787 rm -f conftest.$ac_objext conftest.$ac_ext
1788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1791 echo "$as_me:1791: result: $ac_cv_c_compiler_gnu" >&5
1792 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1793 GCC=`test $ac_compiler_gnu = yes && echo yes`
1794 ac_test_CFLAGS=${CFLAGS+set}
1795 ac_save_CFLAGS=$CFLAGS
1797 echo "$as_me:1797: checking whether $CC accepts -g" >&5
1798 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1799 if test "${ac_cv_prog_cc_g+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1814 rm -f conftest.$ac_objext
1815 if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
1816 (eval $ac_compile) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); } &&
1820 { ac_try='test -s conftest.$ac_objext'
1821 { (eval echo "$as_me:1821: \"$ac_try\"") >&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; }; then
1828 echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1832 rm -f conftest.$ac_objext conftest.$ac_ext
1834 echo "$as_me:1834: result: $ac_cv_prog_cc_g" >&5
1835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1836 if test "$ac_test_CFLAGS" = set; then
1837 CFLAGS=$ac_save_CFLAGS
1838 elif test $ac_cv_prog_cc_g = yes; then
1839 if test "$GCC" = yes; then
1845 if test "$GCC" = yes; then
1851 # Some people use a C++ compiler to compile C. Since we use `exit',
1852 # in C++ we need to declare it. In case someone uses the same compiler
1853 # for both compiling C and C++ we need to have the C++ compiler decide
1854 # the declaration of exit, since it's the most demanding environment.
1855 cat >conftest.$ac_ext <<_ACEOF
1860 rm -f conftest.$ac_objext
1861 if { (eval echo "$as_me:1861: \"$ac_compile\"") >&5
1862 (eval $ac_compile) 2>&5
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); } &&
1866 { ac_try='test -s conftest.$ac_objext'
1867 { (eval echo "$as_me:1867: \"$ac_try\"") >&5
1870 echo "$as_me:1870: \$? = $ac_status" >&5
1871 (exit $ac_status); }; }; then
1872 for ac_declaration in \
1874 '#include <stdlib.h>' \
1875 'extern "C" void std::exit (int) throw (); using std::exit;' \
1876 'extern "C" void std::exit (int); using std::exit;' \
1877 'extern "C" void exit (int) throw ();' \
1878 'extern "C" void exit (int);' \
1881 cat >conftest.$ac_ext <<_ACEOF
1882 #line 1882 "configure"
1883 #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
1912 rm -f conftest.$ac_objext conftest.$ac_ext
1913 cat >conftest.$ac_ext <<_ACEOF
1914 #line 1914 "configure"
1915 #include "confdefs.h"
1925 rm -f conftest.$ac_objext
1926 if { (eval echo "$as_me:1926: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1929 echo "$as_me:1929: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -s conftest.$ac_objext'
1932 { (eval echo "$as_me:1932: \"$ac_try\"") >&5
1935 echo "$as_me:1935: \$? = $ac_status" >&5
1936 (exit $ac_status); }; }; then
1939 echo "$as_me: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 rm -f conftest.$ac_objext conftest.$ac_ext
1945 if test -n "$ac_declaration"; then
1946 echo '#ifdef __cplusplus' >>confdefs.h
1947 echo $ac_declaration >>confdefs.h
1948 echo '#endif' >>confdefs.h
1952 echo "$as_me: failed program was:" >&5
1953 cat conftest.$ac_ext >&5
1955 rm -f conftest.$ac_objext conftest.$ac_ext
1957 ac_cpp='$CPP $CPPFLAGS'
1958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963 if test "$GCC" = yes ; then
1964 echo "$as_me:1964: checking version of gcc" >&5
1965 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6
1966 GCC_VERSION="`${CC} --version|head -1`"
1967 echo "$as_me:1967: result: $GCC_VERSION" >&5
1968 echo "${ECHO_T}$GCC_VERSION" >&6
1971 # If we're cross-compiling, allow the user to override the tools and their
1972 # options. The configure script is oriented toward identifying the target
1973 # compiler, etc., but we need a host compiler to generate parts of the source.
1975 BUILD_CFLAGS='$(CFLAGS)'
1976 BUILD_CPPFLAGS='$(CPPFLAGS)'
1977 BUILD_LDFLAGS='$(LDFLAGS)'
1978 BUILD_LIBS='$(LIBS)'
1979 if test "$host_alias" != "$target_alias" ; then
1981 # Check whether --with-build-cc or --without-build-cc was given.
1982 if test "${with_build_cc+set}" = set; then
1983 withval="$with_build_cc"
1986 for ac_prog in $CC gcc cc
1988 # Extract the first word of "$ac_prog", so it can be a program name with args.
1989 set dummy $ac_prog; ac_word=$2
1990 echo "$as_me:1990: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 if test -n "$BUILD_CC"; then
1996 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1998 ac_save_IFS=$IFS; IFS=$ac_path_separator
2000 for ac_dir in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir=.
2003 $as_executable_p "$ac_dir/$ac_word" || continue
2004 ac_cv_prog_BUILD_CC="$ac_prog"
2005 echo "$as_me:2005: found $ac_dir/$ac_word" >&5
2011 BUILD_CC=$ac_cv_prog_BUILD_CC
2012 if test -n "$BUILD_CC"; then
2013 echo "$as_me:2013: result: $BUILD_CC" >&5
2014 echo "${ECHO_T}$BUILD_CC" >&6
2016 echo "$as_me:2016: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 test -n "$BUILD_CC" && break
2025 # Check whether --with-build-cflags or --without-build-cflags was given.
2026 if test "${with_build_cflags+set}" = set; then
2027 withval="$with_build_cflags"
2028 BUILD_CFLAGS="$withval"
2031 # Check whether --with-build-cppflags or --without-build-cppflags was given.
2032 if test "${with_build_cppflags+set}" = set; then
2033 withval="$with_build_cppflags"
2034 BUILD_CPPFLAGS="$withval"
2037 # Check whether --with-build-ldflags or --without-build-ldflags was given.
2038 if test "${with_build_ldflags+set}" = set; then
2039 withval="$with_build_ldflags"
2040 BUILD_LDFLAGS="$withval"
2043 # Check whether --with-build-libs or --without-build-libs was given.
2044 if test "${with_build_libs+set}" = set; then
2045 withval="$with_build_libs"
2046 BUILD_LIBS="$withval"
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 echo "$as_me:2055: checking how to run the C preprocessor" >&5
2056 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2057 # On Suns, sometimes $CPP names a directory.
2058 if test -n "$CPP" && test -d "$CPP"; then
2061 if test -z "$CPP"; then
2062 if test "${ac_cv_prog_CPP+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 # Double quotes because CPP needs to be expanded
2066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2069 for ac_c_preproc_warn_flag in '' yes
2071 # Use a header file that comes with gcc, so configuring glibc
2072 # with a fresh cross-compiler works.
2073 # On the NeXT, cc -E runs the code through the compiler's parser,
2074 # not just through cpp. "Syntax error" is here to catch this case.
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line 2076 "configure"
2077 #include "confdefs.h"
2081 if { (eval echo "$as_me:2081: \"$ac_cpp conftest.$ac_ext\"") >&5
2082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2084 egrep -v '^ *\+' conftest.er1 >conftest.err
2086 cat conftest.err >&5
2087 echo "$as_me:2087: \$? = $ac_status" >&5
2088 (exit $ac_status); } >/dev/null; then
2089 if test -s conftest.err; then
2090 ac_cpp_err=$ac_c_preproc_warn_flag
2097 if test -z "$ac_cpp_err"; then
2100 echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 # Broken: fails on valid input.
2105 rm -f conftest.err conftest.$ac_ext
2107 # OK, works on sane cases. Now check whether non-existent headers
2108 # can be detected and how.
2109 cat >conftest.$ac_ext <<_ACEOF
2110 #line 2110 "configure"
2111 #include "confdefs.h"
2112 #include <ac_nonexistent.h>
2114 if { (eval echo "$as_me:2114: \"$ac_cpp conftest.$ac_ext\"") >&5
2115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2117 egrep -v '^ *\+' conftest.er1 >conftest.err
2119 cat conftest.err >&5
2120 echo "$as_me:2120: \$? = $ac_status" >&5
2121 (exit $ac_status); } >/dev/null; then
2122 if test -s conftest.err; then
2123 ac_cpp_err=$ac_c_preproc_warn_flag
2130 if test -z "$ac_cpp_err"; then
2131 # Broken: success on invalid input.
2134 echo "$as_me: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2136 # Passes both tests.
2140 rm -f conftest.err conftest.$ac_ext
2143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2144 rm -f conftest.err conftest.$ac_ext
2145 if $ac_preproc_ok; then
2157 echo "$as_me:2157: result: $CPP" >&5
2158 echo "${ECHO_T}$CPP" >&6
2160 for ac_c_preproc_warn_flag in '' yes
2162 # Use a header file that comes with gcc, so configuring glibc
2163 # with a fresh cross-compiler works.
2164 # On the NeXT, cc -E runs the code through the compiler's parser,
2165 # not just through cpp. "Syntax error" is here to catch this case.
2166 cat >conftest.$ac_ext <<_ACEOF
2167 #line 2167 "configure"
2168 #include "confdefs.h"
2172 if { (eval echo "$as_me:2172: \"$ac_cpp conftest.$ac_ext\"") >&5
2173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2175 egrep -v '^ *\+' conftest.er1 >conftest.err
2177 cat conftest.err >&5
2178 echo "$as_me:2178: \$? = $ac_status" >&5
2179 (exit $ac_status); } >/dev/null; then
2180 if test -s conftest.err; then
2181 ac_cpp_err=$ac_c_preproc_warn_flag
2188 if test -z "$ac_cpp_err"; then
2191 echo "$as_me: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 # Broken: fails on valid input.
2196 rm -f conftest.err conftest.$ac_ext
2198 # OK, works on sane cases. Now check whether non-existent headers
2199 # can be detected and how.
2200 cat >conftest.$ac_ext <<_ACEOF
2201 #line 2201 "configure"
2202 #include "confdefs.h"
2203 #include <ac_nonexistent.h>
2205 if { (eval echo "$as_me:2205: \"$ac_cpp conftest.$ac_ext\"") >&5
2206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2208 egrep -v '^ *\+' conftest.er1 >conftest.err
2210 cat conftest.err >&5
2211 echo "$as_me:2211: \$? = $ac_status" >&5
2212 (exit $ac_status); } >/dev/null; then
2213 if test -s conftest.err; then
2214 ac_cpp_err=$ac_c_preproc_warn_flag
2221 if test -z "$ac_cpp_err"; then
2222 # Broken: success on invalid input.
2225 echo "$as_me: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2227 # Passes both tests.
2231 rm -f conftest.err conftest.$ac_ext
2234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2235 rm -f conftest.err conftest.$ac_ext
2236 if $ac_preproc_ok; then
2239 { { echo "$as_me:2239: error: C preprocessor \"$CPP\" fails sanity check" >&5
2240 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2241 { (exit 1); exit 1; }; }
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250 if test $ac_cv_c_compiler_gnu = yes; then
2251 echo "$as_me:2251: checking whether $CC needs -traditional" >&5
2252 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2253 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 ac_pattern="Autoconf.*'x'"
2257 cat >conftest.$ac_ext <<_ACEOF
2258 #line 2258 "configure"
2259 #include "confdefs.h"
2263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2264 egrep "$ac_pattern" >/dev/null 2>&1; then
2265 ac_cv_prog_gcc_traditional=yes
2267 ac_cv_prog_gcc_traditional=no
2271 if test $ac_cv_prog_gcc_traditional = no; then
2272 cat >conftest.$ac_ext <<_ACEOF
2273 #line 2273 "configure"
2274 #include "confdefs.h"
2278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2279 egrep "$ac_pattern" >/dev/null 2>&1; then
2280 ac_cv_prog_gcc_traditional=yes
2286 echo "$as_me:2286: result: $ac_cv_prog_gcc_traditional" >&5
2287 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2288 if test $ac_cv_prog_gcc_traditional = yes; then
2289 CC="$CC -traditional"
2293 echo "$as_me:2293: checking for POSIXized ISC" >&5
2294 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2295 if test -d /etc/conf/kconfig.d &&
2296 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2298 echo "$as_me:2298: result: yes" >&5
2299 echo "${ECHO_T}yes" >&6
2300 ISC=yes # If later tests want to check for ISC.
2302 cat >>confdefs.h <<\EOF
2303 #define _POSIX_SOURCE 1
2306 if test "$GCC" = yes; then
2312 echo "$as_me:2312: result: no" >&5
2313 echo "${ECHO_T}no" >&6
2317 echo "$as_me:2317: checking for ${CC-cc} option to accept ANSI C" >&5
2318 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2319 if test "${cf_cv_ansi_cc+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 cf_save_CFLAGS="$CFLAGS"
2325 cf_save_CPPFLAGS="$CPPFLAGS"
2326 # Don't try gcc -ansi; that turns off useful extensions and
2327 # breaks some systems' header files.
2328 # AIX -qlanglvl=ansi
2329 # Ultrix and OSF/1 -std1
2330 # HP-UX -Aa -D_HPUX_SOURCE
2332 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2333 for cf_arg in "-DCC_HAS_PROTOS" \
2338 "-Aa -D_HPUX_SOURCE" \
2344 for cf_add_cflags in $cf_arg
2346 case $cf_add_cflags in #(vi
2347 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2349 *$cf_add_cflags) #(vi
2352 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2357 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2362 if test -n "$cf_new_cflags" ; then
2364 CFLAGS="$CFLAGS $cf_new_cflags"
2367 if test -n "$cf_new_cppflags" ; then
2369 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2372 cat >conftest.$ac_ext <<_ACEOF
2373 #line 2373 "configure"
2374 #include "confdefs.h"
2376 #ifndef CC_HAS_PROTOS
2377 #if !defined(__STDC__) || (__STDC__ != 1)
2386 int test (int i, double x);
2387 struct s1 {int (*f) (int a);};
2388 struct s2 {int (*f) (double a);};
2393 rm -f conftest.$ac_objext
2394 if { (eval echo "$as_me:2394: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>&5
2397 echo "$as_me:2397: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:2400: \"$ac_try\"") >&5
2403 echo "$as_me:2403: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 cf_cv_ansi_cc="$cf_arg"; break
2407 echo "$as_me: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2410 rm -f conftest.$ac_objext conftest.$ac_ext
2412 CFLAGS="$cf_save_CFLAGS"
2413 CPPFLAGS="$cf_save_CPPFLAGS"
2416 echo "$as_me:2416: result: $cf_cv_ansi_cc" >&5
2417 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2419 if test "$cf_cv_ansi_cc" != "no"; then
2420 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2424 for cf_add_cflags in $cf_cv_ansi_cc
2426 case $cf_add_cflags in #(vi
2427 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2429 *$cf_add_cflags) #(vi
2432 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2437 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2442 if test -n "$cf_new_cflags" ; then
2444 CFLAGS="$CFLAGS $cf_new_cflags"
2447 if test -n "$cf_new_cppflags" ; then
2449 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2453 cat >>confdefs.h <<\EOF
2454 #define CC_HAS_PROTOS 1
2460 if test "$cf_cv_ansi_cc" = "no"; then
2461 { { echo "$as_me:2461: error: Your compiler does not appear to recognize prototypes.
2462 You have the following choices:
2463 a. adjust your compiler options
2464 b. get an up-to-date compiler
2465 c. use a wrapper such as unproto" >&5
2466 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2467 You have the following choices:
2468 a. adjust your compiler options
2469 b. get an up-to-date compiler
2470 c. use a wrapper such as unproto" >&2;}
2471 { (exit 1); exit 1; }; }
2475 case $cf_cv_system_name in
2477 # We make sure -Zexe is not used -- it would interfere with @PROG_EXT@
2478 CFLAGS="$CFLAGS -Zmt"
2479 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2480 CXXFLAGS="$CXXFLAGS -Zmt"
2481 LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed "s/-Zexe//g"`
2489 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2490 #define PROG_EXT "$PROG_EXT"
2493 case "$cf_cv_system_name" in
2495 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2497 *) LDPATH=$PATH:/sbin:/usr/sbin
2498 # Extract the first word of "ldconfig", so it can be a program name with args.
2499 set dummy ldconfig; ac_word=$2
2500 echo "$as_me:2500: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2502 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2510 ac_save_IFS=$IFS; IFS=$ac_path_separator
2512 for ac_dir in $ac_dummy; do
2514 test -z "$ac_dir" && ac_dir=.
2515 if $as_executable_p "$ac_dir/$ac_word"; then
2516 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2517 echo "$as_me:2517: found $ac_dir/$ac_word" >&5
2525 LDCONFIG=$ac_cv_path_LDCONFIG
2527 if test -n "$LDCONFIG"; then
2528 echo "$as_me:2528: result: $LDCONFIG" >&5
2529 echo "${ECHO_T}$LDCONFIG" >&6
2531 echo "$as_me:2531: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2538 echo "$as_me:2538: checking if you want to ensure bool is consistent with C++" >&5
2539 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2541 # Check whether --with-cxx or --without-cxx was given.
2542 if test "${with_cxx+set}" = set; then
2544 cf_with_cxx=$withval
2548 echo "$as_me:2548: result: $cf_with_cxx" >&5
2549 echo "${ECHO_T}$cf_with_cxx" >&6
2550 if test "X$cf_with_cxx" = Xno ; then
2555 ac_cpp='$CXXCPP $CPPFLAGS'
2556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2559 if test -n "$ac_tool_prefix"; then
2560 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2564 echo "$as_me:2564: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2566 if test "${ac_cv_prog_CXX+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 if test -n "$CXX"; then
2570 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2572 ac_save_IFS=$IFS; IFS=$ac_path_separator
2574 for ac_dir in $ac_dummy; do
2576 test -z "$ac_dir" && ac_dir=.
2577 $as_executable_p "$ac_dir/$ac_word" || continue
2578 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2579 echo "$as_me:2579: found $ac_dir/$ac_word" >&5
2586 if test -n "$CXX"; then
2587 echo "$as_me:2587: result: $CXX" >&5
2588 echo "${ECHO_T}$CXX" >&6
2590 echo "$as_me:2590: result: no" >&5
2591 echo "${ECHO_T}no" >&6
2594 test -n "$CXX" && break
2597 if test -z "$CXX"; then
2599 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 echo "$as_me:2603: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 if test -n "$ac_ct_CXX"; then
2609 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2611 ac_save_IFS=$IFS; IFS=$ac_path_separator
2613 for ac_dir in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir=.
2616 $as_executable_p "$ac_dir/$ac_word" || continue
2617 ac_cv_prog_ac_ct_CXX="$ac_prog"
2618 echo "$as_me:2618: found $ac_dir/$ac_word" >&5
2624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2625 if test -n "$ac_ct_CXX"; then
2626 echo "$as_me:2626: result: $ac_ct_CXX" >&5
2627 echo "${ECHO_T}$ac_ct_CXX" >&6
2629 echo "$as_me:2629: result: no" >&5
2630 echo "${ECHO_T}no" >&6
2633 test -n "$ac_ct_CXX" && break
2635 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2640 # Provide some information about the compiler.
2641 echo "$as_me:2641:" \
2642 "checking for C++ compiler version" >&5
2643 ac_compiler=`set X $ac_compile; echo $2`
2644 { (eval echo "$as_me:2644: \"$ac_compiler --version </dev/null >&5\"") >&5
2645 (eval $ac_compiler --version </dev/null >&5) 2>&5
2647 echo "$as_me:2647: \$? = $ac_status" >&5
2648 (exit $ac_status); }
2649 { (eval echo "$as_me:2649: \"$ac_compiler -v </dev/null >&5\"") >&5
2650 (eval $ac_compiler -v </dev/null >&5) 2>&5
2652 echo "$as_me:2652: \$? = $ac_status" >&5
2653 (exit $ac_status); }
2654 { (eval echo "$as_me:2654: \"$ac_compiler -V </dev/null >&5\"") >&5
2655 (eval $ac_compiler -V </dev/null >&5) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); }
2660 echo "$as_me:2660: checking whether we are using the GNU C++ compiler" >&5
2661 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2662 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 cat >conftest.$ac_ext <<_ACEOF
2666 #line 2666 "configure"
2667 #include "confdefs.h"
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:2681: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>&5
2684 echo "$as_me:2684: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:2687: \"$ac_try\"") >&5
2690 echo "$as_me:2690: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 echo "$as_me: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2698 rm -f conftest.$ac_objext conftest.$ac_ext
2699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2702 echo "$as_me:2702: result: $ac_cv_cxx_compiler_gnu" >&5
2703 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2704 GXX=`test $ac_compiler_gnu = yes && echo yes`
2705 ac_test_CXXFLAGS=${CXXFLAGS+set}
2706 ac_save_CXXFLAGS=$CXXFLAGS
2708 echo "$as_me:2708: checking whether $CXX accepts -g" >&5
2709 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2710 if test "${ac_cv_prog_cxx_g+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 cat >conftest.$ac_ext <<_ACEOF
2714 #line 2714 "configure"
2715 #include "confdefs.h"
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:2726: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>&5
2729 echo "$as_me:2729: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (eval echo "$as_me:2732: \"$ac_try\"") >&5
2735 echo "$as_me:2735: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_cv_prog_cxx_g=yes
2739 echo "$as_me: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2743 rm -f conftest.$ac_objext conftest.$ac_ext
2745 echo "$as_me:2745: result: $ac_cv_prog_cxx_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2747 if test "$ac_test_CXXFLAGS" = set; then
2748 CXXFLAGS=$ac_save_CXXFLAGS
2749 elif test $ac_cv_prog_cxx_g = yes; then
2750 if test "$GXX" = yes; then
2756 if test "$GXX" = yes; then
2762 for ac_declaration in \
2764 '#include <stdlib.h>' \
2765 'extern "C" void std::exit (int) throw (); using std::exit;' \
2766 'extern "C" void std::exit (int); using std::exit;' \
2767 'extern "C" void exit (int) throw ();' \
2768 'extern "C" void exit (int);' \
2771 cat >conftest.$ac_ext <<_ACEOF
2772 #line 2772 "configure"
2773 #include "confdefs.h"
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:2785: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>&5
2788 echo "$as_me:2788: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:2791: \"$ac_try\"") >&5
2794 echo "$as_me:2794: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2798 echo "$as_me: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2802 rm -f conftest.$ac_objext conftest.$ac_ext
2803 cat >conftest.$ac_ext <<_ACEOF
2804 #line 2804 "configure"
2805 #include "confdefs.h"
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:2816: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>&5
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:2822: \"$ac_try\"") >&5
2825 echo "$as_me:2825: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2829 echo "$as_me: failed program was:" >&5
2830 cat conftest.$ac_ext >&5
2832 rm -f conftest.$ac_objext conftest.$ac_ext
2835 if test -n "$ac_declaration"; then
2836 echo '#ifdef __cplusplus' >>confdefs.h
2837 echo $ac_declaration >>confdefs.h
2838 echo '#endif' >>confdefs.h
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 if test "$GXX" = yes; then
2851 echo "$as_me:2851: checking version of g++" >&5
2852 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
2853 GXX_VERSION="`${CXX-g++} --version|head -1`"
2854 echo "$as_me:2854: result: $GXX_VERSION" >&5
2855 echo "${ECHO_T}$GXX_VERSION" >&6
2856 case $GXX_VERSION in
2858 GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
2860 { echo "$as_me:2860: WARNING: templates do not work" >&5
2861 echo "$as_me: WARNING: templates do not work" >&2;}
2866 echo "$as_me:2866: checking if you want to build C++ binding and demo" >&5
2867 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2869 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2870 if test "${with_cxx_binding+set}" = set; then
2871 withval="$with_cxx_binding"
2872 cf_with_cxx_binding=$withval
2874 cf_with_cxx_binding=$cf_with_cxx
2876 echo "$as_me:2876: result: $cf_with_cxx_binding" >&5
2877 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2879 echo "$as_me:2879: checking if you want to build with Ada95" >&5
2880 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2882 # Check whether --with-ada or --without-ada was given.
2883 if test "${with_ada+set}" = set; then
2885 cf_with_ada=$withval
2889 echo "$as_me:2889: result: $cf_with_ada" >&5
2890 echo "${ECHO_T}$cf_with_ada" >&6
2892 echo "$as_me:2892: checking if you want to build programs such as tic" >&5
2893 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2895 # Check whether --with-progs or --without-progs was given.
2896 if test "${with_progs+set}" = set; then
2897 withval="$with_progs"
2898 cf_with_progs=$withval
2902 echo "$as_me:2902: result: $cf_with_progs" >&5
2903 echo "${ECHO_T}$cf_with_progs" >&6
2905 echo "$as_me:2905: checking if you wish to install curses.h" >&5
2906 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2908 # Check whether --with-curses-h or --without-curses-h was given.
2909 if test "${with_curses_h+set}" = set; then
2910 withval="$with_curses_h"
2911 with_curses_h=$withval
2915 echo "$as_me:2915: result: $with_curses_h" >&5
2916 echo "${ECHO_T}$with_curses_h" >&6
2918 modules_to_build="ncurses"
2919 if test "X$cf_with_progs" != Xno ; then
2920 modules_to_build="$modules_to_build progs tack"
2922 modules_to_build="$modules_to_build panel menu form"
2924 test "$program_prefix" != NONE &&
2925 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2926 # Use a double $ so make ignores it.
2927 test "$program_suffix" != NONE &&
2928 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2929 # Double any \ or $. echo might interpret backslashes.
2930 # By default was `s,x,x', remove it if useless.
2931 cat <<\_ACEOF >conftest.sed
2932 s/[\\$]/&&/g;s/;s,x,x,$//
2934 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2937 for ac_prog in mawk gawk nawk awk
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 echo "$as_me:2941: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943 if test "${ac_cv_prog_AWK+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$AWK"; then
2947 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2949 ac_save_IFS=$IFS; IFS=$ac_path_separator
2951 for ac_dir in $ac_dummy; do
2953 test -z "$ac_dir" && ac_dir=.
2954 $as_executable_p "$ac_dir/$ac_word" || continue
2955 ac_cv_prog_AWK="$ac_prog"
2956 echo "$as_me:2956: found $ac_dir/$ac_word" >&5
2963 if test -n "$AWK"; then
2964 echo "$as_me:2964: result: $AWK" >&5
2965 echo "${ECHO_T}$AWK" >&6
2967 echo "$as_me:2967: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2971 test -n "$AWK" && break
2974 echo "$as_me:2974: checking whether ${MAKE-make} sets \${MAKE}" >&5
2975 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2976 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2977 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 cat >conftest.make <<\EOF
2982 @echo 'ac_maketemp="${MAKE}"'
2984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2985 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2986 if test -n "$ac_maketemp"; then
2987 eval ac_cv_prog_make_${ac_make}_set=yes
2989 eval ac_cv_prog_make_${ac_make}_set=no
2993 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2994 echo "$as_me:2994: result: yes" >&5
2995 echo "${ECHO_T}yes" >&6
2998 echo "$as_me:2998: result: no" >&5
2999 echo "${ECHO_T}no" >&6
3000 SET_MAKE="MAKE=${MAKE-make}"
3003 # Find a good install program. We prefer a C program (faster),
3004 # so one script is as good as another. But avoid the broken or
3005 # incompatible versions:
3006 # SysV /etc/install, /usr/sbin/install
3007 # SunOS /usr/etc/install
3008 # IRIX /sbin/install
3010 # AmigaOS /C/install, which installs bootblocks on floppy discs
3011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3014 # ./install, which can be erroneously created by make from ./install.sh.
3015 echo "$as_me:3015: checking for a BSD compatible install" >&5
3016 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3017 if test -z "$INSTALL"; then
3018 if test "${ac_cv_path_install+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 ac_save_IFS=$IFS; IFS=$ac_path_separator
3022 for ac_dir in $PATH; do
3024 # Account for people who put trailing slashes in PATH elements.
3026 / | ./ | .// | /cC/* \
3027 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3030 # OSF1 and SCO ODT 3.0 have their own names for install.
3031 # Don't use installbsd from OSF since it installs stuff as root
3033 for ac_prog in ginstall scoinst install; do
3034 if $as_executable_p "$ac_dir/$ac_prog"; then
3035 if test $ac_prog = install &&
3036 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3037 # AIX install. It has an incompatible calling convention.
3039 elif test $ac_prog = install &&
3040 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3041 # program-specific install script used by HP pwplus--don't use.
3044 ac_cv_path_install="$ac_dir/$ac_prog -c"
3054 if test "${ac_cv_path_install+set}" = set; then
3055 INSTALL=$ac_cv_path_install
3057 # As a last resort, use the slow shell script. We don't cache a
3058 # path for INSTALL within a source directory, because that will
3059 # break other packages using the cache if that directory is
3060 # removed, or if the path is relative.
3061 INSTALL=$ac_install_sh
3064 echo "$as_me:3064: result: $INSTALL" >&5
3065 echo "${ECHO_T}$INSTALL" >&6
3067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3068 # It thinks the first close brace ends the variable substitution.
3069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3079 cf_dir=`echo $INSTALL | sed -e 's:/[^/]*$::'`
3080 test -z "$cf_dir" && cf_dir=.
3081 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's:^.*/::'`
3085 echo "$as_me:3085: checking for long file names" >&5
3086 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3087 if test "${ac_cv_sys_long_file_names+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 ac_cv_sys_long_file_names=yes
3091 # Test for long file names in all the places we know might matter:
3092 # . the current directory, where building will happen
3093 # $prefix/lib where we will be installing things
3094 # $exec_prefix/lib likewise
3095 # eval it to expand exec_prefix.
3096 # $TMPDIR if set, where it might want to write temporary files
3097 # if $TMPDIR is not set:
3098 # /tmp where it might want to write temporary files
3101 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3104 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3106 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3107 test -d $ac_dir || continue
3108 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3109 ac_xdir=$ac_dir/cf$$
3110 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3111 ac_tf1=$ac_xdir/conftest9012345
3112 ac_tf2=$ac_xdir/conftest9012346
3113 (echo 1 >$ac_tf1) 2>/dev/null
3114 (echo 2 >$ac_tf2) 2>/dev/null
3115 ac_val=`cat $ac_tf1 2>/dev/null`
3116 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3117 ac_cv_sys_long_file_names=no
3118 rm -rf $ac_xdir 2>/dev/null
3121 rm -rf $ac_xdir 2>/dev/null
3124 echo "$as_me:3124: result: $ac_cv_sys_long_file_names" >&5
3125 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3126 if test $ac_cv_sys_long_file_names = yes; then
3128 cat >>confdefs.h <<\EOF
3129 #define HAVE_LONG_FILE_NAMES 1
3134 echo "$as_me:3134: checking if filesystem supports mixed-case filenames" >&5
3135 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3136 if test "${cf_cv_mixedcase+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 rm -f conftest CONFTEST
3142 if test -f CONFTEST ; then
3147 rm -f conftest CONFTEST
3150 echo "$as_me:3150: result: $cf_cv_mixedcase" >&5
3151 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3152 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3153 #define MIXEDCASE_FILENAMES 1
3156 echo "$as_me:3156: checking whether ln -s works" >&5
3157 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3159 if test "$LN_S" = "ln -s"; then
3160 echo "$as_me:3160: result: yes" >&5
3161 echo "${ECHO_T}yes" >&6
3163 echo "$as_me:3163: result: no, using $LN_S" >&5
3164 echo "${ECHO_T}no, using $LN_S" >&6
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3170 echo "$as_me:3170: checking for $ac_word" >&5
3171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3172 if test "${ac_cv_prog_RANLIB+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 if test -n "$RANLIB"; then
3176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3178 ac_save_IFS=$IFS; IFS=$ac_path_separator
3180 for ac_dir in $ac_dummy; do
3182 test -z "$ac_dir" && ac_dir=.
3183 $as_executable_p "$ac_dir/$ac_word" || continue
3184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3185 echo "$as_me:3185: found $ac_dir/$ac_word" >&5
3191 RANLIB=$ac_cv_prog_RANLIB
3192 if test -n "$RANLIB"; then
3193 echo "$as_me:3193: result: $RANLIB" >&5
3194 echo "${ECHO_T}$RANLIB" >&6
3196 echo "$as_me:3196: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3201 if test -z "$ac_cv_prog_RANLIB"; then
3202 ac_ct_RANLIB=$RANLIB
3203 # Extract the first word of "ranlib", so it can be a program name with args.
3204 set dummy ranlib; ac_word=$2
3205 echo "$as_me:3205: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$ac_ct_RANLIB"; then
3211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3213 ac_save_IFS=$IFS; IFS=$ac_path_separator
3215 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 $as_executable_p "$ac_dir/$ac_word" || continue
3219 ac_cv_prog_ac_ct_RANLIB="ranlib"
3220 echo "$as_me:3220: found $ac_dir/$ac_word" >&5
3224 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228 if test -n "$ac_ct_RANLIB"; then
3229 echo "$as_me:3229: result: $ac_ct_RANLIB" >&5
3230 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3232 echo "$as_me:3232: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 RANLIB=$ac_ct_RANLIB
3238 RANLIB="$ac_cv_prog_RANLIB"
3241 # Extract the first word of "ctags", so it can be a program name with args.
3242 set dummy ctags; ac_word=$2
3243 echo "$as_me:3243: checking for $ac_word" >&5
3244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 if test -n "$MAKE_LOWER_TAGS"; then
3249 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3251 ac_save_IFS=$IFS; IFS=$ac_path_separator
3253 for ac_dir in $ac_dummy; do
3255 test -z "$ac_dir" && ac_dir=.
3256 $as_executable_p "$ac_dir/$ac_word" || continue
3257 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3258 echo "$as_me:3258: found $ac_dir/$ac_word" >&5
3262 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3265 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3266 if test -n "$MAKE_LOWER_TAGS"; then
3267 echo "$as_me:3267: result: $MAKE_LOWER_TAGS" >&5
3268 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3270 echo "$as_me:3270: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3274 if test "$cf_cv_mixedcase" = yes ; then
3275 # Extract the first word of "etags", so it can be a program name with args.
3276 set dummy etags; ac_word=$2
3277 echo "$as_me:3277: checking for $ac_word" >&5
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if test -n "$MAKE_UPPER_TAGS"; then
3283 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3285 ac_save_IFS=$IFS; IFS=$ac_path_separator
3287 for ac_dir in $ac_dummy; do
3289 test -z "$ac_dir" && ac_dir=.
3290 $as_executable_p "$ac_dir/$ac_word" || continue
3291 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3292 echo "$as_me:3292: found $ac_dir/$ac_word" >&5
3296 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3299 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3300 if test -n "$MAKE_UPPER_TAGS"; then
3301 echo "$as_me:3301: result: $MAKE_UPPER_TAGS" >&5
3302 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3304 echo "$as_me:3304: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3312 if test "$MAKE_UPPER_TAGS" = yes ; then
3318 if test "$MAKE_LOWER_TAGS" = yes ; then
3324 for ac_prog in tdlint lint alint
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 echo "$as_me:3328: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330 if test "${ac_cv_prog_LINT+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 if test -n "$LINT"; then
3334 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3336 ac_save_IFS=$IFS; IFS=$ac_path_separator
3338 for ac_dir in $ac_dummy; do
3340 test -z "$ac_dir" && ac_dir=.
3341 $as_executable_p "$ac_dir/$ac_word" || continue
3342 ac_cv_prog_LINT="$ac_prog"
3343 echo "$as_me:3343: found $ac_dir/$ac_word" >&5
3349 LINT=$ac_cv_prog_LINT
3350 if test -n "$LINT"; then
3351 echo "$as_me:3351: result: $LINT" >&5
3352 echo "${ECHO_T}$LINT" >&6
3354 echo "$as_me:3354: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3358 test -n "$LINT" && break
3361 for ac_prog in man man_db
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364 set dummy $ac_prog; ac_word=$2
3365 echo "$as_me:3365: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_prog_MAN+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if test -n "$MAN"; then
3371 ac_cv_prog_MAN="$MAN" # Let the user override the test.
3373 ac_save_IFS=$IFS; IFS=$ac_path_separator
3375 for ac_dir in $ac_dummy; do
3377 test -z "$ac_dir" && ac_dir=.
3378 $as_executable_p "$ac_dir/$ac_word" || continue
3379 ac_cv_prog_MAN="$ac_prog"
3380 echo "$as_me:3380: found $ac_dir/$ac_word" >&5
3387 if test -n "$MAN"; then
3388 echo "$as_me:3388: result: $MAN" >&5
3389 echo "${ECHO_T}$MAN" >&6
3391 echo "$as_me:3391: result: no" >&5
3392 echo "${ECHO_T}no" >&6
3395 test -n "$MAN" && break
3398 if test "${cf_cv_subst_LD+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 echo "$as_me:3402: checking for loader (symbol LD)" >&5
3403 echo $ECHO_N "checking for loader (symbol LD)... $ECHO_C" >&6
3404 test -z "$LD" && LD=ld
3405 echo "$as_me:3405: result: $LD" >&5
3406 echo "${ECHO_T}$LD" >&6
3411 LD=${cf_cv_subst_LD}
3413 if test "${cf_cv_subst_AR+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 echo "$as_me:3417: checking for archiver (symbol AR)" >&5
3418 echo $ECHO_N "checking for archiver (symbol AR)... $ECHO_C" >&6
3419 test -z "$AR" && AR=ar
3420 echo "$as_me:3420: result: $AR" >&5
3421 echo "${ECHO_T}$AR" >&6
3426 AR=${cf_cv_subst_AR}
3428 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 echo "$as_me:3432: checking for archiver options (symbol AR_OPTS)" >&5
3433 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3434 test -z "$AR_OPTS" && AR_OPTS=rv
3435 echo "$as_me:3435: result: $AR_OPTS" >&5
3436 echo "${ECHO_T}$AR_OPTS" >&6
3438 cf_cv_subst_AR_OPTS=$AR_OPTS
3441 AR_OPTS=${cf_cv_subst_AR_OPTS}
3443 echo "$as_me:3443: checking for makeflags variable" >&5
3444 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3445 if test "${cf_cv_makeflags+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
3452 cat >cf_makeflags.tmp <<CF_EOF
3455 @ echo '.$cf_option'
3457 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`
3458 case "$cf_result" in
3460 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3461 case "$cf_result" in
3462 .*CC=*) cf_cv_makeflags=
3464 *) cf_cv_makeflags=$cf_option
3469 *) echo no match "$cf_result"
3473 rm -f cf_makeflags.tmp
3476 echo "$as_me:3476: result: $cf_cv_makeflags" >&5
3477 echo "${ECHO_T}$cf_cv_makeflags" >&6
3479 echo "$as_me:3479: checking if you have specified an install-prefix" >&5
3480 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3482 # Check whether --with-install-prefix or --without-install-prefix was given.
3483 if test "${with_install_prefix+set}" = set; then
3484 withval="$with_install_prefix"
3485 case "$withval" in #(vi
3488 *) DESTDIR="$withval"
3492 echo "$as_me:3492: result: $DESTDIR" >&5
3493 echo "${ECHO_T}$DESTDIR" >&6
3495 ###############################################################################
3497 ### Options to allow the user to specify the set of libraries which are used.
3498 ### Use "--without-normal --with-shared" to allow the default model to be
3499 ### shared, for example.
3502 echo "$as_me:3502: checking if you want to build libraries with libtool" >&5
3503 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
3505 # Check whether --with-libtool or --without-libtool was given.
3506 if test "${with_libtool+set}" = set; then
3507 withval="$with_libtool"
3508 with_libtool=$withval
3512 echo "$as_me:3512: result: $with_libtool" >&5
3513 echo "${ECHO_T}$with_libtool" >&6
3514 if test "$with_libtool" = "yes"; then
3515 cf_list_models="$cf_list_models libtool"
3516 test -z "$LIBTOOL" && LIBTOOL=libtool
3521 echo "$as_me:3521: checking if you want to build shared libraries" >&5
3522 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
3524 # Check whether --with-shared or --without-shared was given.
3525 if test "${with_shared+set}" = set; then
3526 withval="$with_shared"
3527 with_shared=$withval
3531 echo "$as_me:3531: result: $with_shared" >&5
3532 echo "${ECHO_T}$with_shared" >&6
3533 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3535 echo "$as_me:3535: checking if you want to build static libraries" >&5
3536 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
3538 # Check whether --with-normal or --without-normal was given.
3539 if test "${with_normal+set}" = set; then
3540 withval="$with_normal"
3541 with_normal=$withval
3545 echo "$as_me:3545: result: $with_normal" >&5
3546 echo "${ECHO_T}$with_normal" >&6
3547 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
3549 echo "$as_me:3549: checking if you want to build debug libraries" >&5
3550 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
3552 # Check whether --with-debug or --without-debug was given.
3553 if test "${with_debug+set}" = set; then
3554 withval="$with_debug"
3559 echo "$as_me:3559: result: $with_debug" >&5
3560 echo "${ECHO_T}$with_debug" >&6
3561 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
3563 echo "$as_me:3563: checking if you want to build profiling libraries" >&5
3564 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
3566 # Check whether --with-profile or --without-profile was given.
3567 if test "${with_profile+set}" = set; then
3568 withval="$with_profile"
3569 with_profile=$withval
3573 echo "$as_me:3573: result: $with_profile" >&5
3574 echo "${ECHO_T}$with_profile" >&6
3575 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
3577 ###############################################################################
3579 echo "$as_me:3579: checking for specified models" >&5
3580 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3581 test -z "$cf_list_models" && cf_list_models=normal
3582 test "$with_libtool" = "yes" && cf_list_models=libtool
3583 echo "$as_me:3583: result: $cf_list_models" >&5
3584 echo "${ECHO_T}$cf_list_models" >&6
3586 ### Use the first model as the default, and save its suffix for use in building
3587 ### up test-applications.
3588 echo "$as_me:3588: checking for default model" >&5
3589 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3590 DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
3591 echo "$as_me:3591: result: $DFT_LWR_MODEL" >&5
3592 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3594 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3602 case $cf_cv_system_name in
3603 OS/2*) LIB_PREFIX='' ;;
3604 os2*) LIB_PREFIX='' ;;
3605 *) LIB_PREFIX='lib' ;;
3607 cf_prefix=$LIB_PREFIX
3609 LIB_PREFIX=$cf_prefix
3613 ###############################################################################
3615 echo "$as_me:3615: checking if you want to build a separate terminfo library" >&5
3616 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
3618 # Check whether --with-termlib or --without-termlib was given.
3619 if test "${with_termlib+set}" = set; then
3620 withval="$with_termlib"
3621 with_termlib=$withval
3625 echo "$as_me:3625: result: $with_termlib" >&5
3626 echo "${ECHO_T}$with_termlib" >&6
3628 ### Checks for special libraries, must be done up-front.
3629 echo "$as_me:3629: checking if you want to link with dbmalloc for testing" >&5
3630 echo $ECHO_N "checking if you want to link with dbmalloc for testing... $ECHO_C" >&6
3632 # Check whether --with-dbmalloc or --without-dbmalloc was given.
3633 if test "${with_dbmalloc+set}" = set; then
3634 withval="$with_dbmalloc"
3635 with_dbmalloc=$withval
3639 echo "$as_me:3639: result: $with_dbmalloc" >&5
3640 echo "${ECHO_T}$with_dbmalloc" >&6
3641 if test "$with_dbmalloc" = yes ; then
3643 echo "$as_me:3643: checking for debug_malloc in -ldbmalloc" >&5
3644 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
3645 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 ac_check_lib_save_LIBS=$LIBS
3649 LIBS="-ldbmalloc $LIBS"
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line 3651 "configure"
3652 #include "confdefs.h"
3654 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3660 char debug_malloc ();
3669 rm -f conftest.$ac_objext conftest$ac_exeext
3670 if { (eval echo "$as_me:3670: \"$ac_link\"") >&5
3671 (eval $ac_link) 2>&5
3673 echo "$as_me:3673: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:3676: \"$ac_try\"") >&5
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_lib_dbmalloc_debug_malloc=yes
3683 echo "$as_me: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 ac_cv_lib_dbmalloc_debug_malloc=no
3687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3688 LIBS=$ac_check_lib_save_LIBS
3690 echo "$as_me:3690: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
3691 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
3692 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
3693 cat >>confdefs.h <<EOF
3694 #define HAVE_LIBDBMALLOC 1
3697 LIBS="-ldbmalloc $LIBS"
3703 echo "$as_me:3703: checking if you want to link with dmalloc for testing" >&5
3704 echo $ECHO_N "checking if you want to link with dmalloc for testing... $ECHO_C" >&6
3706 # Check whether --with-dmalloc or --without-dmalloc was given.
3707 if test "${with_dmalloc+set}" = set; then
3708 withval="$with_dmalloc"
3709 with_dmalloc=$withval
3713 echo "$as_me:3713: result: $with_dmalloc" >&5
3714 echo "${ECHO_T}$with_dmalloc" >&6
3715 if test "$with_dmalloc" = yes ; then
3717 echo "$as_me:3717: checking for dmalloc_debug in -ldmalloc" >&5
3718 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
3719 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_check_lib_save_LIBS=$LIBS
3723 LIBS="-ldmalloc $LIBS"
3724 cat >conftest.$ac_ext <<_ACEOF
3725 #line 3725 "configure"
3726 #include "confdefs.h"
3728 /* Override any gcc2 internal prototype to avoid an error. */
3732 /* We use char because int might match the return type of a gcc2
3733 builtin and then its argument prototype would still apply. */
3734 char dmalloc_debug ();
3743 rm -f conftest.$ac_objext conftest$ac_exeext
3744 if { (eval echo "$as_me:3744: \"$ac_link\"") >&5
3745 (eval $ac_link) 2>&5
3747 echo "$as_me:3747: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -s conftest$ac_exeext'
3750 { (eval echo "$as_me:3750: \"$ac_try\"") >&5
3753 echo "$as_me:3753: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_cv_lib_dmalloc_dmalloc_debug=yes
3757 echo "$as_me: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3759 ac_cv_lib_dmalloc_dmalloc_debug=no
3761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3762 LIBS=$ac_check_lib_save_LIBS
3764 echo "$as_me:3764: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
3765 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
3766 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
3767 cat >>confdefs.h <<EOF
3768 #define HAVE_LIBDMALLOC 1
3771 LIBS="-ldmalloc $LIBS"
3778 echo "$as_me:3778: checking if you want to link with the gpm mouse library" >&5
3779 echo $ECHO_N "checking if you want to link with the gpm mouse library... $ECHO_C" >&6
3781 # Check whether --with-gpm or --without-gpm was given.
3782 if test "${with_gpm+set}" = set; then
3788 echo "$as_me:3788: result: $with_gpm" >&5
3789 echo "${ECHO_T}$with_gpm" >&6
3790 if test "$with_gpm" = yes ; then
3791 echo "$as_me:3791: checking for Gpm_Open in -lgpm" >&5
3792 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
3793 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 ac_check_lib_save_LIBS=$LIBS
3798 cat >conftest.$ac_ext <<_ACEOF
3799 #line 3799 "configure"
3800 #include "confdefs.h"
3802 /* Override any gcc2 internal prototype to avoid an error. */
3806 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3817 rm -f conftest.$ac_objext conftest$ac_exeext
3818 if { (eval echo "$as_me:3818: \"$ac_link\"") >&5
3819 (eval $ac_link) 2>&5
3821 echo "$as_me:3821: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -s conftest$ac_exeext'
3824 { (eval echo "$as_me:3824: \"$ac_try\"") >&5
3827 echo "$as_me:3827: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 ac_cv_lib_gpm_Gpm_Open=yes
3831 echo "$as_me: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 ac_cv_lib_gpm_Gpm_Open=no
3835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3836 LIBS=$ac_check_lib_save_LIBS
3838 echo "$as_me:3838: result: $ac_cv_lib_gpm_Gpm_Open" >&5
3839 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
3840 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
3842 EXTRA_LIBS="-lgpm -lncurses $EXTRA_LIBS"
3843 SHLIB_LIST="-lgpm $SHLIB_LIST"
3844 cat >>confdefs.h <<\EOF
3845 #define HAVE_LIBGPM 1
3848 for ac_header in gpm.h
3850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 echo "$as_me:3851: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 cat >conftest.$ac_ext <<_ACEOF
3857 #line 3857 "configure"
3858 #include "confdefs.h"
3859 #include <$ac_header>
3861 if { (eval echo "$as_me:3861: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3864 egrep -v '^ *\+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:3867: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_c_preproc_warn_flag
3877 if test -z "$ac_cpp_err"; then
3878 eval "$as_ac_Header=yes"
3880 echo "$as_me: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 eval "$as_ac_Header=no"
3884 rm -f conftest.err conftest.$ac_ext
3886 echo "$as_me:3886: result: `eval echo '${'$as_ac_Header'}'`" >&5
3887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3889 cat >>confdefs.h <<EOF
3890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3897 { echo "$as_me:3897: WARNING: Cannot link with gpm library - read the FAQ" >&5
3898 echo "$as_me: WARNING: Cannot link with gpm library - read the FAQ" >&2;}
3903 if test X"$CC_G_OPT" = X"" ; then
3905 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
3908 if test X"$CXX_G_OPT" = X"" ; then
3910 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
3913 echo "$as_me:3913: checking for default loader flags" >&5
3914 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
3915 case $DFT_LWR_MODEL in
3916 libtool) LD_MODEL='' ;;
3917 normal) LD_MODEL='' ;;
3918 debug) LD_MODEL=$CC_G_OPT ;;
3919 profile) LD_MODEL='-pg';;
3920 shared) LD_MODEL='' ;;
3922 echo "$as_me:3922: result: $LD_MODEL" >&5
3923 echo "${ECHO_T}$LD_MODEL" >&6
3925 echo "$as_me:3925: checking if rpath option should be used" >&5
3926 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
3928 # Check whether --enable-rpath or --disable-rpath was given.
3929 if test "${enable_rpath+set}" = set; then
3930 enableval="$enable_rpath"
3931 cf_cv_ld_rpath=$enableval
3935 echo "$as_me:3935: result: $cf_cv_ld_rpath" >&5
3936 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
3941 INSTALL_LIB="-m 644"
3943 cf_cv_do_symlinks=no
3945 echo "$as_me:3945: checking if release/abi version should be used for shared libs" >&5
3946 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
3948 # Check whether --with-shlib-version or --without-shlib-version was given.
3949 if test "${with_shlib_version+set}" = set; then
3950 withval="$with_shlib_version"
3951 test -z "$withval" && withval=auto
3952 case $withval in #(vi
3954 cf_cv_shlib_version=auto
3956 rel|abi|auto|no) #(vi
3957 cf_cv_shlib_version=$withval
3960 { { echo "$as_me:3960: error: option value must be one of: rel, abi, auto or no" >&5
3961 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
3962 { (exit 1); exit 1; }; }
3967 cf_cv_shlib_version=auto
3969 echo "$as_me:3969: result: $cf_cv_shlib_version" >&5
3970 echo "${ECHO_T}$cf_cv_shlib_version" >&6
3974 # Some less-capable ports of gcc support only -fpic
3976 if test "$GCC" = yes
3978 echo "$as_me:3978: checking which $CC option to use" >&5
3979 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
3980 cf_save_CFLAGS="$CFLAGS"
3981 for CC_SHARED_OPTS in -fPIC -fpic ''
3983 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
3984 cat >conftest.$ac_ext <<_ACEOF
3985 #line 3985 "configure"
3986 #include "confdefs.h"
3996 rm -f conftest.$ac_objext
3997 if { (eval echo "$as_me:3997: \"$ac_compile\"") >&5
3998 (eval $ac_compile) 2>&5
4000 echo "$as_me:4000: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:4003: \"$ac_try\"") >&5
4006 echo "$as_me:4006: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4010 echo "$as_me: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4013 rm -f conftest.$ac_objext conftest.$ac_ext
4015 echo "$as_me:4015: result: $CC_SHARED_OPTS" >&5
4016 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
4017 CFLAGS="$cf_save_CFLAGS"
4020 cf_cv_shlib_version_infix=no
4022 case $cf_cv_system_name in
4024 MK_SHARED_LIB='$(CC) -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
4028 MK_SHARED_LIB='$(CC) -shared -Wl,--out-implib=$(IMPORT_LIB) -Wl,--export-all-symbols -o $(SHARED_LIB)'
4029 cf_cv_shlib_version=cygdll
4030 cf_cv_shlib_version_infix=cygdll
4033 EXTRA_CFLAGS="-no-cpp-precomp"
4034 CC_SHARED_OPTS="-dynamic"
4035 MK_SHARED_LIB='$(CC) -dynamiclib -install_name $(DESTDIR)$(libdir)/`basename $@` -compatibility_version $(ABI_VERSION) -current_version $(ABI_VERSION) -o $@'
4036 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
4037 cf_cv_shlib_version_infix=yes
4040 # (tested with gcc 2.7.2 -- I don't have c89)
4041 if test "$GCC" = yes; then
4042 LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)'
4045 LD_SHARED_OPTS='-Wl,+b,$(libdir)'
4047 MK_SHARED_LIB='$(LD) +b $(libdir) -b -o $@'
4048 # HP-UX shared libraries must be executable, and should be
4049 # readonly to exploit a quirk in the memory manager.
4050 INSTALL_LIB="-m 555"
4053 if test "$cf_cv_ld_rpath" = yes ; then
4054 cf_ld_rpath_opt="-Wl,-rpath,"
4055 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
4057 # tested with IRIX 5.2 and 'cc'.
4058 if test "$GCC" != yes; then
4059 CC_SHARED_OPTS='-KPIC'
4061 MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@` -o $@'
4062 cf_cv_rm_so_locs=yes
4065 if test "$DFT_LWR_MODEL" = "shared" ; then
4066 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
4067 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
4069 if test "$cf_cv_ld_rpath" = yes ; then
4070 cf_ld_rpath_opt="-Wl,-rpath,"
4071 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
4073 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4074 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@'
4077 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
4078 MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $@.$(ABI_VERSION)` -o $@'