2 # From configure.in Revision: 1.30 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
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="gen/gen.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
563 # Report the --help message.
565 if test "$ac_init_help" = "long"; then
566 # Omit some internal or obsolete options to make the list less imposing.
567 # This message is too long to be a string in the A/UX 3.1 sh.
569 \`configure' configures this package to adapt to many kinds of systems.
571 Usage: $0 [OPTION]... [VAR=VALUE]...
573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
574 VAR=VALUE. See below for descriptions of some of the useful variables.
576 Defaults for the options are specified in brackets.
579 -h, --help display this help and exit
580 --help=short display options specific to this package
581 --help=recursive display the short help of all the included packages
582 -V, --version display version information and exit
583 -q, --quiet, --silent do not print \`checking...' messages
584 --cache-file=FILE cache test results in FILE [disabled]
585 -C, --config-cache alias for \`--cache-file=config.cache'
586 -n, --no-create do not create output files
587 --srcdir=DIR find the sources in DIR [configure dir or \`..']
592 Installation directories:
593 --prefix=PREFIX install architecture-independent files in PREFIX
595 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
598 By default, \`make install' will install all the files in
599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
601 for instance \`--prefix=\$HOME'.
603 For better control, use the options below.
605 Fine tuning of the installation directories:
606 --bindir=DIR user executables [EPREFIX/bin]
607 --sbindir=DIR system admin executables [EPREFIX/sbin]
608 --libexecdir=DIR program executables [EPREFIX/libexec]
609 --datadir=DIR read-only architecture-independent data [PREFIX/share]
610 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
611 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
612 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
613 --libdir=DIR object code libraries [EPREFIX/lib]
614 --includedir=DIR C header files [PREFIX/include]
615 --oldincludedir=DIR C header files for non-gcc [/usr/include]
616 --infodir=DIR info documentation [PREFIX/info]
617 --mandir=DIR man documentation [PREFIX/man]
623 --program-prefix=PREFIX prepend PREFIX to installed program names
624 --program-suffix=SUFFIX append SUFFIX to installed program names
625 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
628 --build=BUILD configure for building on BUILD [guessed]
629 --host=HOST build programs to run on HOST [BUILD]
630 --target=TARGET configure for building compilers for TARGET [HOST]
634 if test -n "$ac_init_help"; then
639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
646 --with-system-type=XXX test: override derived host system-type
647 --with-pkg-config{=path} enable/disable use of pkg-config
648 --enable-pc-files generate and install .pc files for pkg-config
649 --without-tests suppress build with test-programs
650 --enable-mixed-case tic should assume mixed-case filenames
651 --with-install-prefix prefixes actual install-location ($DESTDIR)
652 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
653 --with-build-cc=XXX the build C compiler ($BUILD_CC)
654 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
655 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
656 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
657 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
658 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
659 Options to Specify the Libraries Built/Used:
660 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
661 --enable-widec compile with wide-char/UTF-8 code
662 --with-curses-dir=DIR directory in which (n)curses is installed
663 --with-shlib-version=X Specify rel or abi version for shared libs
664 --enable-rpath-link link sample programs with rpath option
665 Fine-Tuning Your Configuration:
666 --enable-broken_linker compile with broken-linker support code
667 --disable-largefile omit support for large files
668 --with-rcs-ids compile-in RCS identifiers
670 --disable-ext-funcs disable function-extensions
671 --enable-const compile with extra/non-standard const
673 --without-develop disable development options
675 --with-pthread use POSIX thread library
676 --enable-weak-symbols enable weak-symbols for pthreads
677 --enable-reentrant compile with experimental reentrant code
678 --with-wrap-prefix=XXX override prefix used for public variables
679 Testing/development Options:
680 --enable-echo build: display "compiling" commands (default)
681 --enable-warnings build: turn on GCC compiler warnings
682 --enable-assertions test: turn on generation of assertion code
683 --enable-expanded test: generate functions for certain macros
684 --disable-macros test: use functions rather than macros
685 --with-trace test: add trace() function to all models of ncurses
686 Ada95 Binding Options:
687 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
688 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
689 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
690 --with-ada-sharedlib=XX build Ada95 shared-library
692 Some influential environment variables:
693 CC C compiler command
694 CFLAGS C compiler flags
695 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
696 nonstandard directory <lib dir>
697 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
698 headers in a nonstandard directory <include dir>
701 Use these variables to override the choices made by `configure' or to help
702 it to find libraries and programs with nonstandard names/locations.
707 if test "$ac_init_help" = "recursive"; then
708 # If there are subdirs, report their specific --help.
710 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
712 # A "../" for each directory in /$ac_subdir.
713 ac_dots=`echo $ac_subdir |
714 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
717 .) # No --srcdir option. We are building in place.
718 ac_sub_srcdir=$srcdir ;;
719 [\\/]* | ?:[\\/]* ) # Absolute path.
720 ac_sub_srcdir=$srcdir/$ac_subdir ;;
722 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
725 # Check for guested configure; otherwise get Cygnus style configure.
726 if test -f $ac_sub_srcdir/configure.gnu; then
728 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
729 elif test -f $ac_sub_srcdir/configure; then
731 $SHELL $ac_sub_srcdir/configure --help=recursive
732 elif test -f $ac_sub_srcdir/configure.ac ||
733 test -f $ac_sub_srcdir/configure.in; then
737 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
743 test -n "$ac_init_help" && exit 0
744 if $ac_init_version; then
747 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
748 Free Software Foundation, Inc.
749 This configure script is free software; the Free Software Foundation
750 gives unlimited permission to copy, distribute and modify it.
756 This file contains any messages produced by compilers while
757 running configure, to aid debugging if configure makes a mistake.
759 It was created by $as_me, which was
760 generated by GNU Autoconf 2.52.20101002. Invocation command line was
771 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
772 uname -m = `(uname -m) 2>/dev/null || echo unknown`
773 uname -r = `(uname -r) 2>/dev/null || echo unknown`
774 uname -s = `(uname -s) 2>/dev/null || echo unknown`
775 uname -v = `(uname -v) 2>/dev/null || echo unknown`
777 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
778 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
780 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
781 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
782 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
783 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
784 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
785 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
786 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
800 # Keep a trace of the command line.
801 # Strip out --no-create and --no-recursion so they do not pile up.
802 # Also quote any args containing shell meta-characters.
808 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
809 | --no-cr | --no-c) ;;
810 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
811 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
812 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
813 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
814 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
816 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
819 # Get rid of the leading space.
822 # When interrupted or exit'd, cleanup temporary files, and complete
823 # config.log. We remove comments because anyway the quotes in there
824 # would cause problems or look ugly.
826 # Save into config.log some information that might help in debugging.
828 echo "## ----------------- ##" >&5
829 echo "## Cache variables. ##" >&5
830 echo "## ----------------- ##" >&5
832 # The following way of writing the cache mishandles newlines in values,
835 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
838 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
843 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
847 sed "/^$/d" confdefs.h >conftest.log
848 if test -s conftest.log; then
850 echo "## ------------ ##" >&5
851 echo "## confdefs.h. ##" >&5
852 echo "## ------------ ##" >&5
857 test "$ac_signal" != 0 &&
858 echo "$as_me: caught signal $ac_signal" >&5
859 echo "$as_me: exit $exit_status" >&5
860 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
863 for ac_signal in 1 2 13 15; do
864 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
868 # confdefs.h avoids OS command line length limits that DEFS can exceed.
869 rm -rf conftest* confdefs.h
870 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
873 # Let the site file select an alternate cache file if it wants to.
874 # Prefer explicitly selected file to automatically selected ones.
875 if test -z "$CONFIG_SITE"; then
876 if test "x$prefix" != xNONE; then
877 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
879 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
882 for ac_site_file in $CONFIG_SITE; do
883 if test -r "$ac_site_file"; then
884 { echo "$as_me:884: loading site script $ac_site_file" >&5
885 echo "$as_me: loading site script $ac_site_file" >&6;}
886 cat "$ac_site_file" >&5
891 if test -r "$cache_file"; then
892 # Some versions of bash will fail to source /dev/null (special
893 # files actually), so we avoid doing that.
894 if test -f "$cache_file"; then
895 { echo "$as_me:895: loading cache $cache_file" >&5
896 echo "$as_me: loading cache $cache_file" >&6;}
898 [\\/]* | ?:[\\/]* ) . $cache_file;;
903 { echo "$as_me:903: creating cache $cache_file" >&5
904 echo "$as_me: creating cache $cache_file" >&6;}
908 # Check that the precious variables saved in the cache have kept the same
910 ac_cache_corrupted=false
911 for ac_var in `(set) 2>&1 |
912 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
913 eval ac_old_set=\$ac_cv_env_${ac_var}_set
914 eval ac_new_set=\$ac_env_${ac_var}_set
915 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
916 eval ac_new_val="\$ac_env_${ac_var}_value"
917 case $ac_old_set,$ac_new_set in
919 { echo "$as_me:919: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
920 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
921 ac_cache_corrupted=: ;;
923 { echo "$as_me:923: error: \`$ac_var' was not set in the previous run" >&5
924 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
925 ac_cache_corrupted=: ;;
928 if test "x$ac_old_val" != "x$ac_new_val"; then
929 { echo "$as_me:929: error: \`$ac_var' has changed since the previous run:" >&5
930 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
931 { echo "$as_me:931: former value: $ac_old_val" >&5
932 echo "$as_me: former value: $ac_old_val" >&2;}
933 { echo "$as_me:933: current value: $ac_new_val" >&5
934 echo "$as_me: current value: $ac_new_val" >&2;}
938 # Pass precious variables to config.status. It doesn't matter if
939 # we pass some twice (in addition to the command line arguments).
940 if test "$ac_new_set" = set; then
942 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
943 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
944 ac_configure_args="$ac_configure_args '$ac_arg'"
946 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
951 if $ac_cache_corrupted; then
952 { echo "$as_me:952: error: changes in the environment can compromise the build" >&5
953 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
954 { { echo "$as_me:954: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
955 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
956 { (exit 1); exit 1; }; }
960 ac_cpp='$CPP $CPPFLAGS'
961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
964 ac_main_return=return
966 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
967 *c*,-n*) ECHO_N= ECHO_C='
969 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
970 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
972 echo "#! $SHELL" >conftest.sh
973 echo "exit 0" >>conftest.sh
975 if { (echo "$as_me:975: PATH=\".;.\"; conftest.sh") >&5
976 (PATH=".;."; conftest.sh) 2>&5
978 echo "$as_me:978: \$? = $ac_status" >&5
979 (exit $ac_status); }; then
980 ac_path_separator=';'
984 PATH_SEPARATOR="$ac_path_separator"
987 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
992 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
993 if test -f $ac_dir/install-sh; then
995 ac_install_sh="$ac_aux_dir/install-sh -c"
997 elif test -f $ac_dir/install.sh; then
999 ac_install_sh="$ac_aux_dir/install.sh -c"
1001 elif test -f $ac_dir/shtool; then
1003 ac_install_sh="$ac_aux_dir/shtool install -c"
1007 if test -z "$ac_aux_dir"; then
1008 { { echo "$as_me:1008: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1009 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1010 { (exit 1); exit 1; }; }
1012 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1013 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1014 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1016 # Make sure we can run config.sub.
1017 $ac_config_sub sun4 >/dev/null 2>&1 ||
1018 { { echo "$as_me:1018: error: cannot run $ac_config_sub" >&5
1019 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1020 { (exit 1); exit 1; }; }
1022 echo "$as_me:1022: checking build system type" >&5
1023 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1024 if test "${ac_cv_build+set}" = set; then
1025 echo $ECHO_N "(cached) $ECHO_C" >&6
1027 ac_cv_build_alias=$build_alias
1028 test -z "$ac_cv_build_alias" &&
1029 ac_cv_build_alias=`$ac_config_guess`
1030 test -z "$ac_cv_build_alias" &&
1031 { { echo "$as_me:1031: error: cannot guess build type; you must specify one" >&5
1032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1033 { (exit 1); exit 1; }; }
1034 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1035 { { echo "$as_me:1035: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1036 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1037 { (exit 1); exit 1; }; }
1040 echo "$as_me:1040: result: $ac_cv_build" >&5
1041 echo "${ECHO_T}$ac_cv_build" >&6
1043 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 echo "$as_me:1047: checking host system type" >&5
1048 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1049 if test "${ac_cv_host+set}" = set; then
1050 echo $ECHO_N "(cached) $ECHO_C" >&6
1052 ac_cv_host_alias=$host_alias
1053 test -z "$ac_cv_host_alias" &&
1054 ac_cv_host_alias=$ac_cv_build_alias
1055 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1056 { { echo "$as_me:1056: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1057 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1058 { (exit 1); exit 1; }; }
1061 echo "$as_me:1061: result: $ac_cv_host" >&5
1062 echo "${ECHO_T}$ac_cv_host" >&6
1064 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1068 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1069 echo "$as_me:1069: checking target system type" >&5
1070 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1071 if test "${ac_cv_target+set}" = set; then
1072 echo $ECHO_N "(cached) $ECHO_C" >&6
1074 ac_cv_target_alias=$target_alias
1075 test "x$ac_cv_target_alias" = "x" &&
1076 ac_cv_target_alias=$ac_cv_host_alias
1077 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1078 { { echo "$as_me:1078: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1079 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1080 { (exit 1); exit 1; }; }
1083 echo "$as_me:1083: result: $ac_cv_target" >&5
1084 echo "${ECHO_T}$ac_cv_target" >&6
1085 target=$ac_cv_target
1086 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1090 # The aliases save the names the user supplied, while $host etc.
1091 # will get canonicalized.
1092 test -n "$target_alias" &&
1093 test "$program_prefix$program_suffix$program_transform_name" = \
1095 program_prefix=${target_alias}-
1096 system_name="$host_os"
1098 system_name="`(uname -s -r) 2>/dev/null`"
1099 if test -z "$system_name" ; then
1100 system_name="`(hostname) 2>/dev/null`"
1103 test -n "$system_name" && cat >>confdefs.h <<EOF
1104 #define SYSTEM_NAME "$system_name"
1107 if test "${cf_cv_system_name+set}" = set; then
1108 echo $ECHO_N "(cached) $ECHO_C" >&6
1110 cf_cv_system_name="$system_name"
1113 test -z "$system_name" && system_name="$cf_cv_system_name"
1114 test -n "$cf_cv_system_name" && echo "$as_me:1114: result: Configuring for $cf_cv_system_name" >&5
1115 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1117 if test ".$system_name" != ".$cf_cv_system_name" ; then
1118 echo "$as_me:1118: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1119 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1120 { { echo "$as_me:1120: error: \"Please remove config.cache and try again.\"" >&5
1121 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1122 { (exit 1); exit 1; }; }
1125 # Check whether --with-system-type or --without-system-type was given.
1126 if test "${with_system_type+set}" = set; then
1127 withval="$with_system_type"
1128 { echo "$as_me:1128: WARNING: overriding system type to $withval" >&5
1129 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1130 cf_cv_system_name=$withval
1133 ### Save the given $CFLAGS to allow user-override.
1134 cf_user_CFLAGS="$CFLAGS"
1136 ### Default install-location
1138 echo "$as_me:1138: checking for prefix" >&5
1139 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1140 if test "x$prefix" = "xNONE" ; then
1141 case "$cf_cv_system_name" in
1142 # non-vendor systems don't have a conflict
1143 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1146 *) prefix=$ac_default_prefix
1150 echo "$as_me:1150: result: $prefix" >&5
1151 echo "${ECHO_T}$prefix" >&6
1153 if test "x$prefix" = "xNONE" ; then
1154 echo "$as_me:1154: checking for default include-directory" >&5
1155 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1156 test -n "$verbose" && echo 1>&6
1159 $includedir/ncurses \
1161 $prefix/include/ncurses \
1162 /usr/local/include \
1163 /usr/local/include/ncurses \
1165 /usr/include/ncurses
1167 cf_dir=`eval echo $cf_symbol`
1168 if test -f $cf_dir/curses.h ; then
1169 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1170 includedir="$cf_symbol"
1171 test -n "$verbose" && echo $ac_n " found " 1>&6
1175 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1177 echo "$as_me:1177: result: $includedir" >&5
1178 echo "${ECHO_T}$includedir" >&6
1181 ### Checks for programs.
1183 ac_cpp='$CPP $CPPFLAGS'
1184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1187 ac_main_return=return
1188 if test -n "$ac_tool_prefix"; then
1189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1191 echo "$as_me:1191: checking for $ac_word" >&5
1192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1193 if test "${ac_cv_prog_CC+set}" = set; then
1194 echo $ECHO_N "(cached) $ECHO_C" >&6
1196 if test -n "$CC"; then
1197 ac_cv_prog_CC="$CC" # Let the user override the test.
1199 ac_save_IFS=$IFS; IFS=$ac_path_separator
1201 for ac_dir in $ac_dummy; do
1203 test -z "$ac_dir" && ac_dir=.
1204 $as_executable_p "$ac_dir/$ac_word" || continue
1205 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1206 echo "$as_me:1206: found $ac_dir/$ac_word" >&5
1213 if test -n "$CC"; then
1214 echo "$as_me:1214: result: $CC" >&5
1215 echo "${ECHO_T}$CC" >&6
1217 echo "$as_me:1217: result: no" >&5
1218 echo "${ECHO_T}no" >&6
1222 if test -z "$ac_cv_prog_CC"; then
1224 # Extract the first word of "gcc", so it can be a program name with args.
1225 set dummy gcc; ac_word=$2
1226 echo "$as_me:1226: checking for $ac_word" >&5
1227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1229 echo $ECHO_N "(cached) $ECHO_C" >&6
1231 if test -n "$ac_ct_CC"; then
1232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1234 ac_save_IFS=$IFS; IFS=$ac_path_separator
1236 for ac_dir in $ac_dummy; do
1238 test -z "$ac_dir" && ac_dir=.
1239 $as_executable_p "$ac_dir/$ac_word" || continue
1240 ac_cv_prog_ac_ct_CC="gcc"
1241 echo "$as_me:1241: found $ac_dir/$ac_word" >&5
1247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1248 if test -n "$ac_ct_CC"; then
1249 echo "$as_me:1249: result: $ac_ct_CC" >&5
1250 echo "${ECHO_T}$ac_ct_CC" >&6
1252 echo "$as_me:1252: result: no" >&5
1253 echo "${ECHO_T}no" >&6
1261 if test -z "$CC"; then
1262 if test -n "$ac_tool_prefix"; then
1263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1264 set dummy ${ac_tool_prefix}cc; ac_word=$2
1265 echo "$as_me:1265: checking for $ac_word" >&5
1266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1267 if test "${ac_cv_prog_CC+set}" = set; then
1268 echo $ECHO_N "(cached) $ECHO_C" >&6
1270 if test -n "$CC"; then
1271 ac_cv_prog_CC="$CC" # Let the user override the test.
1273 ac_save_IFS=$IFS; IFS=$ac_path_separator
1275 for ac_dir in $ac_dummy; do
1277 test -z "$ac_dir" && ac_dir=.
1278 $as_executable_p "$ac_dir/$ac_word" || continue
1279 ac_cv_prog_CC="${ac_tool_prefix}cc"
1280 echo "$as_me:1280: found $ac_dir/$ac_word" >&5
1287 if test -n "$CC"; then
1288 echo "$as_me:1288: result: $CC" >&5
1289 echo "${ECHO_T}$CC" >&6
1291 echo "$as_me:1291: result: no" >&5
1292 echo "${ECHO_T}no" >&6
1296 if test -z "$ac_cv_prog_CC"; then
1298 # Extract the first word of "cc", so it can be a program name with args.
1299 set dummy cc; ac_word=$2
1300 echo "$as_me:1300: checking for $ac_word" >&5
1301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1302 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1303 echo $ECHO_N "(cached) $ECHO_C" >&6
1305 if test -n "$ac_ct_CC"; then
1306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1308 ac_save_IFS=$IFS; IFS=$ac_path_separator
1310 for ac_dir in $ac_dummy; do
1312 test -z "$ac_dir" && ac_dir=.
1313 $as_executable_p "$ac_dir/$ac_word" || continue
1314 ac_cv_prog_ac_ct_CC="cc"
1315 echo "$as_me:1315: found $ac_dir/$ac_word" >&5
1321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1322 if test -n "$ac_ct_CC"; then
1323 echo "$as_me:1323: result: $ac_ct_CC" >&5
1324 echo "${ECHO_T}$ac_ct_CC" >&6
1326 echo "$as_me:1326: result: no" >&5
1327 echo "${ECHO_T}no" >&6
1336 if test -z "$CC"; then
1337 # Extract the first word of "cc", so it can be a program name with args.
1338 set dummy cc; ac_word=$2
1339 echo "$as_me:1339: checking for $ac_word" >&5
1340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341 if test "${ac_cv_prog_CC+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1344 if test -n "$CC"; then
1345 ac_cv_prog_CC="$CC" # Let the user override the test.
1348 ac_save_IFS=$IFS; IFS=$ac_path_separator
1350 for ac_dir in $ac_dummy; do
1352 test -z "$ac_dir" && ac_dir=.
1353 $as_executable_p "$ac_dir/$ac_word" || continue
1354 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1355 ac_prog_rejected=yes
1359 echo "$as_me:1359: found $ac_dir/$ac_word" >&5
1363 if test $ac_prog_rejected = yes; then
1364 # We found a bogon in the path, so make sure we never use it.
1365 set dummy $ac_cv_prog_CC
1367 if test $# != 0; then
1368 # We chose a different compiler from the bogus one.
1369 # However, it has the same basename, so the bogon will be chosen
1370 # first if we set CC to just the basename; use the full file name.
1372 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1380 if test -n "$CC"; then
1381 echo "$as_me:1381: result: $CC" >&5
1382 echo "${ECHO_T}$CC" >&6
1384 echo "$as_me:1384: result: no" >&5
1385 echo "${ECHO_T}no" >&6
1389 if test -z "$CC"; then
1390 if test -n "$ac_tool_prefix"; then
1393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1395 echo "$as_me:1395: checking for $ac_word" >&5
1396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397 if test "${ac_cv_prog_CC+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 if test -n "$CC"; then
1401 ac_cv_prog_CC="$CC" # Let the user override the test.
1403 ac_save_IFS=$IFS; IFS=$ac_path_separator
1405 for ac_dir in $ac_dummy; do
1407 test -z "$ac_dir" && ac_dir=.
1408 $as_executable_p "$ac_dir/$ac_word" || continue
1409 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1410 echo "$as_me:1410: found $ac_dir/$ac_word" >&5
1417 if test -n "$CC"; then
1418 echo "$as_me:1418: result: $CC" >&5
1419 echo "${ECHO_T}$CC" >&6
1421 echo "$as_me:1421: result: no" >&5
1422 echo "${ECHO_T}no" >&6
1425 test -n "$CC" && break
1428 if test -z "$CC"; then
1432 # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy $ac_prog; ac_word=$2
1434 echo "$as_me:1434: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 if test -n "$ac_ct_CC"; then
1440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1442 ac_save_IFS=$IFS; IFS=$ac_path_separator
1444 for ac_dir in $ac_dummy; do
1446 test -z "$ac_dir" && ac_dir=.
1447 $as_executable_p "$ac_dir/$ac_word" || continue
1448 ac_cv_prog_ac_ct_CC="$ac_prog"
1449 echo "$as_me:1449: found $ac_dir/$ac_word" >&5
1455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1456 if test -n "$ac_ct_CC"; then
1457 echo "$as_me:1457: result: $ac_ct_CC" >&5
1458 echo "${ECHO_T}$ac_ct_CC" >&6
1460 echo "$as_me:1460: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 test -n "$ac_ct_CC" && break
1472 test -z "$CC" && { { echo "$as_me:1472: error: no acceptable cc found in \$PATH" >&5
1473 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1474 { (exit 1); exit 1; }; }
1476 # Provide some information about the compiler.
1477 echo "$as_me:1477:" \
1478 "checking for C compiler version" >&5
1479 ac_compiler=`set X $ac_compile; echo $2`
1480 { (eval echo "$as_me:1480: \"$ac_compiler --version </dev/null >&5\"") >&5
1481 (eval $ac_compiler --version </dev/null >&5) 2>&5
1483 echo "$as_me:1483: \$? = $ac_status" >&5
1484 (exit $ac_status); }
1485 { (eval echo "$as_me:1485: \"$ac_compiler -v </dev/null >&5\"") >&5
1486 (eval $ac_compiler -v </dev/null >&5) 2>&5
1488 echo "$as_me:1488: \$? = $ac_status" >&5
1489 (exit $ac_status); }
1490 { (eval echo "$as_me:1490: \"$ac_compiler -V </dev/null >&5\"") >&5
1491 (eval $ac_compiler -V </dev/null >&5) 2>&5
1493 echo "$as_me:1493: \$? = $ac_status" >&5
1494 (exit $ac_status); }
1496 cat >conftest.$ac_ext <<_ACEOF
1497 #line 1497 "configure"
1498 #include "confdefs.h"
1508 ac_clean_files_save=$ac_clean_files
1509 ac_clean_files="$ac_clean_files a.out a.exe"
1510 # Try to create an executable without -o first, disregard a.out.
1511 # It will help us diagnose broken compilers, and finding out an intuition
1513 echo "$as_me:1513: checking for C compiler default output" >&5
1514 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1516 if { (eval echo "$as_me:1516: \"$ac_link_default\"") >&5
1517 (eval $ac_link_default) 2>&5
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); }; then
1521 # Find the output, starting from the most likely. This scheme is
1522 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1524 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1525 ls a.out conftest 2>/dev/null;
1526 ls a.* conftest.* 2>/dev/null`; do
1528 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1529 a.out ) # We found the default executable, but exeext='' is most
1532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1533 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1540 echo "$as_me: failed program was:" >&5
1541 cat conftest.$ac_ext >&5
1542 { { echo "$as_me:1542: error: C compiler cannot create executables" >&5
1543 echo "$as_me: error: C compiler cannot create executables" >&2;}
1544 { (exit 77); exit 77; }; }
1547 ac_exeext=$ac_cv_exeext
1548 echo "$as_me:1548: result: $ac_file" >&5
1549 echo "${ECHO_T}$ac_file" >&6
1551 # Check the compiler produces executables we can run. If not, either
1552 # the compiler is broken, or we cross compile.
1553 echo "$as_me:1553: checking whether the C compiler works" >&5
1554 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1556 # If not cross compiling, check that we can run a simple program.
1557 if test "$cross_compiling" != yes; then
1558 if { ac_try='./$ac_file'
1559 { (eval echo "$as_me:1559: \"$ac_try\"") >&5
1562 echo "$as_me:1562: \$? = $ac_status" >&5
1563 (exit $ac_status); }; }; then
1566 if test "$cross_compiling" = maybe; then
1569 { { echo "$as_me:1569: error: cannot run C compiled programs.
1570 If you meant to cross compile, use \`--host'." >&5
1571 echo "$as_me: error: cannot run C compiled programs.
1572 If you meant to cross compile, use \`--host'." >&2;}
1573 { (exit 1); exit 1; }; }
1577 echo "$as_me:1577: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1580 rm -f a.out a.exe conftest$ac_cv_exeext
1581 ac_clean_files=$ac_clean_files_save
1582 # Check the compiler produces executables we can run. If not, either
1583 # the compiler is broken, or we cross compile.
1584 echo "$as_me:1584: checking whether we are cross compiling" >&5
1585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1586 echo "$as_me:1586: result: $cross_compiling" >&5
1587 echo "${ECHO_T}$cross_compiling" >&6
1589 echo "$as_me:1589: checking for executable suffix" >&5
1590 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1591 if { (eval echo "$as_me:1591: \"$ac_link\"") >&5
1592 (eval $ac_link) 2>&5
1594 echo "$as_me:1594: \$? = $ac_status" >&5
1595 (exit $ac_status); }; then
1596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1598 # work properly (i.e., refer to `conftest.exe'), while it won't with
1600 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1602 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1610 { { echo "$as_me:1610: error: cannot compute EXEEXT: cannot compile and link" >&5
1611 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1612 { (exit 1); exit 1; }; }
1615 rm -f conftest$ac_cv_exeext
1616 echo "$as_me:1616: result: $ac_cv_exeext" >&5
1617 echo "${ECHO_T}$ac_cv_exeext" >&6
1619 rm -f conftest.$ac_ext
1620 EXEEXT=$ac_cv_exeext
1622 echo "$as_me:1622: checking for object suffix" >&5
1623 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1624 if test "${ac_cv_objext+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 cat >conftest.$ac_ext <<_ACEOF
1628 #line 1628 "configure"
1629 #include "confdefs.h"
1639 rm -f conftest.o conftest.obj
1640 if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5
1641 (eval $ac_compile) 2>&5
1643 echo "$as_me:1643: \$? = $ac_status" >&5
1644 (exit $ac_status); }; then
1645 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1647 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1648 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1653 echo "$as_me: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1655 { { echo "$as_me:1655: error: cannot compute OBJEXT: cannot compile" >&5
1656 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1657 { (exit 1); exit 1; }; }
1660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1662 echo "$as_me:1662: result: $ac_cv_objext" >&5
1663 echo "${ECHO_T}$ac_cv_objext" >&6
1664 OBJEXT=$ac_cv_objext
1666 echo "$as_me:1666: checking whether we are using the GNU C compiler" >&5
1667 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1668 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 cat >conftest.$ac_ext <<_ACEOF
1672 #line 1672 "configure"
1673 #include "confdefs.h"
1686 rm -f conftest.$ac_objext
1687 if { (eval echo "$as_me:1687: \"$ac_compile\"") >&5
1688 (eval $ac_compile) 2>&5
1690 echo "$as_me:1690: \$? = $ac_status" >&5
1691 (exit $ac_status); } &&
1692 { ac_try='test -s conftest.$ac_objext'
1693 { (eval echo "$as_me:1693: \"$ac_try\"") >&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }; }; then
1700 echo "$as_me: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1704 rm -f conftest.$ac_objext conftest.$ac_ext
1705 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1708 echo "$as_me:1708: result: $ac_cv_c_compiler_gnu" >&5
1709 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1710 GCC=`test $ac_compiler_gnu = yes && echo yes`
1711 ac_test_CFLAGS=${CFLAGS+set}
1712 ac_save_CFLAGS=$CFLAGS
1714 echo "$as_me:1714: checking whether $CC accepts -g" >&5
1715 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1716 if test "${ac_cv_prog_cc_g+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 cat >conftest.$ac_ext <<_ACEOF
1720 #line 1720 "configure"
1721 #include "confdefs.h"
1731 rm -f conftest.$ac_objext
1732 if { (eval echo "$as_me:1732: \"$ac_compile\"") >&5
1733 (eval $ac_compile) 2>&5
1735 echo "$as_me:1735: \$? = $ac_status" >&5
1736 (exit $ac_status); } &&
1737 { ac_try='test -s conftest.$ac_objext'
1738 { (eval echo "$as_me:1738: \"$ac_try\"") >&5
1741 echo "$as_me:1741: \$? = $ac_status" >&5
1742 (exit $ac_status); }; }; then
1745 echo "$as_me: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1749 rm -f conftest.$ac_objext conftest.$ac_ext
1751 echo "$as_me:1751: result: $ac_cv_prog_cc_g" >&5
1752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1753 if test "$ac_test_CFLAGS" = set; then
1754 CFLAGS=$ac_save_CFLAGS
1755 elif test $ac_cv_prog_cc_g = yes; then
1756 if test "$GCC" = yes; then
1762 if test "$GCC" = yes; then
1768 # Some people use a C++ compiler to compile C. Since we use `exit',
1769 # in C++ we need to declare it. In case someone uses the same compiler
1770 # for both compiling C and C++ we need to have the C++ compiler decide
1771 # the declaration of exit, since it's the most demanding environment.
1772 cat >conftest.$ac_ext <<_ACEOF
1777 rm -f conftest.$ac_objext
1778 if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
1779 (eval $ac_compile) 2>&5
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); } &&
1783 { ac_try='test -s conftest.$ac_objext'
1784 { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1789 for ac_declaration in \
1791 '#include <stdlib.h>' \
1792 'extern "C" void std::exit (int) throw (); using std::exit;' \
1793 'extern "C" void std::exit (int); using std::exit;' \
1794 'extern "C" void exit (int) throw ();' \
1795 'extern "C" void exit (int);' \
1798 cat >conftest.$ac_ext <<_ACEOF
1799 #line 1799 "configure"
1800 #include "confdefs.h"
1811 rm -f conftest.$ac_objext
1812 if { (eval echo "$as_me:1812: \"$ac_compile\"") >&5
1813 (eval $ac_compile) 2>&5
1815 echo "$as_me:1815: \$? = $ac_status" >&5
1816 (exit $ac_status); } &&
1817 { ac_try='test -s conftest.$ac_objext'
1818 { (eval echo "$as_me:1818: \"$ac_try\"") >&5
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); }; }; then
1825 echo "$as_me: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1829 rm -f conftest.$ac_objext conftest.$ac_ext
1830 cat >conftest.$ac_ext <<_ACEOF
1831 #line 1831 "configure"
1832 #include "confdefs.h"
1842 rm -f conftest.$ac_objext
1843 if { (eval echo "$as_me:1843: \"$ac_compile\"") >&5
1844 (eval $ac_compile) 2>&5
1846 echo "$as_me:1846: \$? = $ac_status" >&5
1847 (exit $ac_status); } &&
1848 { ac_try='test -s conftest.$ac_objext'
1849 { (eval echo "$as_me:1849: \"$ac_try\"") >&5
1852 echo "$as_me:1852: \$? = $ac_status" >&5
1853 (exit $ac_status); }; }; then
1856 echo "$as_me: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 rm -f conftest.$ac_objext conftest.$ac_ext
1862 if test -n "$ac_declaration"; then
1863 echo '#ifdef __cplusplus' >>confdefs.h
1864 echo $ac_declaration >>confdefs.h
1865 echo '#endif' >>confdefs.h
1869 echo "$as_me: failed program was:" >&5
1870 cat conftest.$ac_ext >&5
1872 rm -f conftest.$ac_objext conftest.$ac_ext
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878 ac_main_return=return
1881 if test "$GCC" = yes ; then
1882 echo "$as_me:1882: checking version of $CC" >&5
1883 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1884 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1885 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1886 echo "$as_me:1886: result: $GCC_VERSION" >&5
1887 echo "${ECHO_T}$GCC_VERSION" >&6
1891 ac_cpp='$CPP $CPPFLAGS'
1892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1895 ac_main_return=return
1896 echo "$as_me:1896: checking how to run the C preprocessor" >&5
1897 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1898 # On Suns, sometimes $CPP names a directory.
1899 if test -n "$CPP" && test -d "$CPP"; then
1902 if test -z "$CPP"; then
1903 if test "${ac_cv_prog_CPP+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 # Double quotes because CPP needs to be expanded
1907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1910 for ac_c_preproc_warn_flag in '' yes
1912 # Use a header file that comes with gcc, so configuring glibc
1913 # with a fresh cross-compiler works.
1914 # On the NeXT, cc -E runs the code through the compiler's parser,
1915 # not just through cpp. "Syntax error" is here to catch this case.
1916 cat >conftest.$ac_ext <<_ACEOF
1917 #line 1917 "configure"
1918 #include "confdefs.h"
1922 if { (eval echo "$as_me:1922: \"$ac_cpp conftest.$ac_ext\"") >&5
1923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1925 egrep -v '^ *\+' conftest.er1 >conftest.err
1927 cat conftest.err >&5
1928 echo "$as_me:1928: \$? = $ac_status" >&5
1929 (exit $ac_status); } >/dev/null; then
1930 if test -s conftest.err; then
1931 ac_cpp_err=$ac_c_preproc_warn_flag
1938 if test -z "$ac_cpp_err"; then
1941 echo "$as_me: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1943 # Broken: fails on valid input.
1946 rm -f conftest.err conftest.$ac_ext
1948 # OK, works on sane cases. Now check whether non-existent headers
1949 # can be detected and how.
1950 cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1953 #include <ac_nonexistent.h>
1955 if { (eval echo "$as_me:1955: \"$ac_cpp conftest.$ac_ext\"") >&5
1956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1958 egrep -v '^ *\+' conftest.er1 >conftest.err
1960 cat conftest.err >&5
1961 echo "$as_me:1961: \$? = $ac_status" >&5
1962 (exit $ac_status); } >/dev/null; then
1963 if test -s conftest.err; then
1964 ac_cpp_err=$ac_c_preproc_warn_flag
1971 if test -z "$ac_cpp_err"; then
1972 # Broken: success on invalid input.
1975 echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 # Passes both tests.
1981 rm -f conftest.err conftest.$ac_ext
1984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1985 rm -f conftest.err conftest.$ac_ext
1986 if $ac_preproc_ok; then
1998 echo "$as_me:1998: result: $CPP" >&5
1999 echo "${ECHO_T}$CPP" >&6
2001 for ac_c_preproc_warn_flag in '' yes
2003 # Use a header file that comes with gcc, so configuring glibc
2004 # with a fresh cross-compiler works.
2005 # On the NeXT, cc -E runs the code through the compiler's parser,
2006 # not just through cpp. "Syntax error" is here to catch this case.
2007 cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2013 if { (eval echo "$as_me:2013: \"$ac_cpp conftest.$ac_ext\"") >&5
2014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2016 egrep -v '^ *\+' conftest.er1 >conftest.err
2018 cat conftest.err >&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); } >/dev/null; then
2021 if test -s conftest.err; then
2022 ac_cpp_err=$ac_c_preproc_warn_flag
2029 if test -z "$ac_cpp_err"; then
2032 echo "$as_me: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 # Broken: fails on valid input.
2037 rm -f conftest.err conftest.$ac_ext
2039 # OK, works on sane cases. Now check whether non-existent headers
2040 # can be detected and how.
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line 2042 "configure"
2043 #include "confdefs.h"
2044 #include <ac_nonexistent.h>
2046 if { (eval echo "$as_me:2046: \"$ac_cpp conftest.$ac_ext\"") >&5
2047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2049 egrep -v '^ *\+' conftest.er1 >conftest.err
2051 cat conftest.err >&5
2052 echo "$as_me:2052: \$? = $ac_status" >&5
2053 (exit $ac_status); } >/dev/null; then
2054 if test -s conftest.err; then
2055 ac_cpp_err=$ac_c_preproc_warn_flag
2062 if test -z "$ac_cpp_err"; then
2063 # Broken: success on invalid input.
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 # Passes both tests.
2072 rm -f conftest.err conftest.$ac_ext
2075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2076 rm -f conftest.err conftest.$ac_ext
2077 if $ac_preproc_ok; then
2080 { { echo "$as_me:2080: error: C preprocessor \"$CPP\" fails sanity check" >&5
2081 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2082 { (exit 1); exit 1; }; }
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 ac_main_return=return
2092 if test $ac_cv_c_compiler_gnu = yes; then
2093 echo "$as_me:2093: checking whether $CC needs -traditional" >&5
2094 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2095 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_pattern="Autoconf.*'x'"
2099 cat >conftest.$ac_ext <<_ACEOF
2100 #line 2100 "configure"
2101 #include "confdefs.h"
2103 int Autoconf = TIOCGETP;
2105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2106 egrep "$ac_pattern" >/dev/null 2>&1; then
2107 ac_cv_prog_gcc_traditional=yes
2109 ac_cv_prog_gcc_traditional=no
2113 if test $ac_cv_prog_gcc_traditional = no; then
2114 cat >conftest.$ac_ext <<_ACEOF
2115 #line 2115 "configure"
2116 #include "confdefs.h"
2118 int Autoconf = TCGETA;
2120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2121 egrep "$ac_pattern" >/dev/null 2>&1; then
2122 ac_cv_prog_gcc_traditional=yes
2128 echo "$as_me:2128: result: $ac_cv_prog_gcc_traditional" >&5
2129 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2130 if test $ac_cv_prog_gcc_traditional = yes; then
2131 CC="$CC -traditional"
2135 echo "$as_me:2135: checking whether $CC understands -c and -o together" >&5
2136 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2137 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 cat > conftest.$ac_ext <<CF_EOF
2145 ${cf_cv_main_return:-return}(0);
2148 # We do the test twice because some compilers refuse to overwrite an
2149 # existing .o file with -o, though they will create one.
2150 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2151 if { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 test -f conftest2.$ac_objext && { (eval echo "$as_me:2156: \"$ac_try\"") >&5
2159 echo "$as_me:2159: \$? = $ac_status" >&5
2160 (exit $ac_status); };
2162 eval cf_cv_prog_CC_c_o=yes
2164 eval cf_cv_prog_CC_c_o=no
2169 if test $cf_cv_prog_CC_c_o = yes; then
2170 echo "$as_me:2170: result: yes" >&5
2171 echo "${ECHO_T}yes" >&6
2173 echo "$as_me:2173: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2177 echo "$as_me:2177: checking for POSIXized ISC" >&5
2178 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2179 if test -d /etc/conf/kconfig.d &&
2180 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2182 echo "$as_me:2182: result: yes" >&5
2183 echo "${ECHO_T}yes" >&6
2184 ISC=yes # If later tests want to check for ISC.
2186 cat >>confdefs.h <<\EOF
2187 #define _POSIX_SOURCE 1
2190 if test "$GCC" = yes; then
2196 echo "$as_me:2196: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2201 # This should have been defined by AC_PROG_CC
2204 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2205 # into CC. This will not help with broken scripts that wrap the compiler with
2206 # options, but eliminates a more common category of user confusion.
2207 echo "$as_me:2207: checking \$CC variable" >&5
2208 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2211 echo "$as_me:2211: result: broken" >&5
2212 echo "${ECHO_T}broken" >&6
2213 { echo "$as_me:2213: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2214 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2216 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2217 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2222 cf_new_extra_cppflags=
2224 for cf_add_cflags in $cf_flags
2226 case $cf_fix_cppflags in
2228 case $cf_add_cflags in #(vi
2229 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2230 case $cf_add_cflags in
2232 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2234 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2235 && test -z "${cf_tst_cflags}" \
2236 && cf_fix_cppflags=yes
2238 if test $cf_fix_cppflags = yes ; then
2239 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2241 elif test "${cf_tst_cflags}" = "\"'" ; then
2242 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2248 *$cf_add_cflags) #(vi
2251 case $cf_add_cflags in #(vi
2253 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2255 CPPFLAGS=`echo "$CPPFLAGS" | \
2256 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2257 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2261 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2266 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2271 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2273 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2275 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2276 && test -z "${cf_tst_cflags}" \
2277 && cf_fix_cppflags=no
2282 if test -n "$cf_new_cflags" ; then
2284 CFLAGS="$CFLAGS $cf_new_cflags"
2287 if test -n "$cf_new_cppflags" ; then
2289 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2292 if test -n "$cf_new_extra_cppflags" ; then
2294 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2299 echo "$as_me:2299: result: ok" >&5
2300 echo "${ECHO_T}ok" >&6
2304 echo "$as_me:2304: checking for ${CC:-cc} option to accept ANSI C" >&5
2305 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2306 if test "${cf_cv_ansi_cc+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 cf_save_CFLAGS="$CFLAGS"
2312 cf_save_CPPFLAGS="$CPPFLAGS"
2313 # Don't try gcc -ansi; that turns off useful extensions and
2314 # breaks some systems' header files.
2315 # AIX -qlanglvl=ansi
2316 # Ultrix and OSF/1 -std1
2317 # HP-UX -Aa -D_HPUX_SOURCE
2319 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2320 for cf_arg in "-DCC_HAS_PROTOS" \
2325 "-Aa -D_HPUX_SOURCE" \
2332 cf_new_extra_cppflags=
2334 for cf_add_cflags in $cf_arg
2336 case $cf_fix_cppflags in
2338 case $cf_add_cflags in #(vi
2339 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2340 case $cf_add_cflags in
2342 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2344 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2345 && test -z "${cf_tst_cflags}" \
2346 && cf_fix_cppflags=yes
2348 if test $cf_fix_cppflags = yes ; then
2349 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2351 elif test "${cf_tst_cflags}" = "\"'" ; then
2352 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2358 *$cf_add_cflags) #(vi
2361 case $cf_add_cflags in #(vi
2363 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2365 CPPFLAGS=`echo "$CPPFLAGS" | \
2366 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2367 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2371 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2376 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2381 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2383 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2385 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2386 && test -z "${cf_tst_cflags}" \
2387 && cf_fix_cppflags=no
2392 if test -n "$cf_new_cflags" ; then
2394 CFLAGS="$CFLAGS $cf_new_cflags"
2397 if test -n "$cf_new_cppflags" ; then
2399 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2402 if test -n "$cf_new_extra_cppflags" ; then
2404 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2407 cat >conftest.$ac_ext <<_ACEOF
2408 #line 2408 "configure"
2409 #include "confdefs.h"
2411 #ifndef CC_HAS_PROTOS
2412 #if !defined(__STDC__) || (__STDC__ != 1)
2421 int test (int i, double x);
2422 struct s1 {int (*f) (int a);};
2423 struct s2 {int (*f) (double a);};
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:2429: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>&5
2432 echo "$as_me:2432: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (eval echo "$as_me:2435: \"$ac_try\"") >&5
2438 echo "$as_me:2438: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2440 cf_cv_ansi_cc="$cf_arg"; break
2442 echo "$as_me: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2447 CFLAGS="$cf_save_CFLAGS"
2448 CPPFLAGS="$cf_save_CPPFLAGS"
2451 echo "$as_me:2451: result: $cf_cv_ansi_cc" >&5
2452 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2454 if test "$cf_cv_ansi_cc" != "no"; then
2455 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2460 cf_new_extra_cppflags=
2462 for cf_add_cflags in $cf_cv_ansi_cc
2464 case $cf_fix_cppflags in
2466 case $cf_add_cflags in #(vi
2467 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2468 case $cf_add_cflags in
2470 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2472 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2473 && test -z "${cf_tst_cflags}" \
2474 && cf_fix_cppflags=yes
2476 if test $cf_fix_cppflags = yes ; then
2477 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2479 elif test "${cf_tst_cflags}" = "\"'" ; then
2480 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2486 *$cf_add_cflags) #(vi
2489 case $cf_add_cflags in #(vi
2491 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2493 CPPFLAGS=`echo "$CPPFLAGS" | \
2494 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2495 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2499 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2504 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2509 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2511 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2513 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2514 && test -z "${cf_tst_cflags}" \
2515 && cf_fix_cppflags=no
2520 if test -n "$cf_new_cflags" ; then
2522 CFLAGS="$CFLAGS $cf_new_cflags"
2525 if test -n "$cf_new_cppflags" ; then
2527 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2530 if test -n "$cf_new_extra_cppflags" ; then
2532 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2536 cat >>confdefs.h <<\EOF
2537 #define CC_HAS_PROTOS 1
2543 if test "$cf_cv_ansi_cc" = "no"; then
2544 { { echo "$as_me:2544: error: Your compiler does not appear to recognize prototypes.
2545 You have the following choices:
2546 a. adjust your compiler options
2547 b. get an up-to-date compiler
2548 c. use a wrapper such as unproto" >&5
2549 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2550 You have the following choices:
2551 a. adjust your compiler options
2552 b. get an up-to-date compiler
2553 c. use a wrapper such as unproto" >&2;}
2554 { (exit 1); exit 1; }; }
2557 case $cf_cv_system_name in
2559 CFLAGS="$CFLAGS -Zmt"
2560 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2561 CXXFLAGS="$CXXFLAGS -Zmt"
2562 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2563 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2570 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2571 #define PROG_EXT "$PROG_EXT"
2574 test "$program_prefix" != NONE &&
2575 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2576 # Use a double $ so make ignores it.
2577 test "$program_suffix" != NONE &&
2578 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2579 # Double any \ or $. echo might interpret backslashes.
2580 # By default was `s,x,x', remove it if useless.
2581 cat <<\_ACEOF >conftest.sed
2582 s/[\\$]/&&/g;s/;s,x,x,$//
2584 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2587 for ac_prog in mawk gawk nawk awk
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 echo "$as_me:2591: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2593 if test "${ac_cv_prog_AWK+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$AWK"; then
2597 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2599 ac_save_IFS=$IFS; IFS=$ac_path_separator
2601 for ac_dir in $ac_dummy; do
2603 test -z "$ac_dir" && ac_dir=.
2604 $as_executable_p "$ac_dir/$ac_word" || continue
2605 ac_cv_prog_AWK="$ac_prog"
2606 echo "$as_me:2606: found $ac_dir/$ac_word" >&5
2613 if test -n "$AWK"; then
2614 echo "$as_me:2614: result: $AWK" >&5
2615 echo "${ECHO_T}$AWK" >&6
2617 echo "$as_me:2617: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2621 test -n "$AWK" && break
2624 test -z "$AWK" && { { echo "$as_me:2624: error: No awk program found" >&5
2625 echo "$as_me: error: No awk program found" >&2;}
2626 { (exit 1); exit 1; }; }
2628 echo "$as_me:2628: checking for egrep" >&5
2629 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2630 if test "${ac_cv_prog_egrep+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2634 then ac_cv_prog_egrep='grep -E'
2635 else ac_cv_prog_egrep='egrep'
2638 echo "$as_me:2638: result: $ac_cv_prog_egrep" >&5
2639 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2640 EGREP=$ac_cv_prog_egrep
2642 test -z "$EGREP" && { { echo "$as_me:2642: error: No egrep program found" >&5
2643 echo "$as_me: error: No egrep program found" >&2;}
2644 { (exit 1); exit 1; }; }
2646 # Find a good install program. We prefer a C program (faster),
2647 # so one script is as good as another. But avoid the broken or
2648 # incompatible versions:
2649 # SysV /etc/install, /usr/sbin/install
2650 # SunOS /usr/etc/install
2651 # IRIX /sbin/install
2653 # AmigaOS /C/install, which installs bootblocks on floppy discs
2654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2657 # ./install, which can be erroneously created by make from ./install.sh.
2658 echo "$as_me:2658: checking for a BSD compatible install" >&5
2659 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2660 if test -z "$INSTALL"; then
2661 if test "${ac_cv_path_install+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 ac_save_IFS=$IFS; IFS=$ac_path_separator
2665 for ac_dir in $PATH; do
2667 # Account for people who put trailing slashes in PATH elements.
2669 / | ./ | .// | /cC/* \
2670 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2673 # OSF1 and SCO ODT 3.0 have their own names for install.
2674 # Don't use installbsd from OSF since it installs stuff as root
2676 for ac_prog in ginstall scoinst install; do
2677 if $as_executable_p "$ac_dir/$ac_prog"; then
2678 if test $ac_prog = install &&
2679 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2680 # AIX install. It has an incompatible calling convention.
2682 elif test $ac_prog = install &&
2683 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2684 # program-specific install script used by HP pwplus--don't use.
2687 ac_cv_path_install="$ac_dir/$ac_prog -c"
2697 if test "${ac_cv_path_install+set}" = set; then
2698 INSTALL=$ac_cv_path_install
2700 # As a last resort, use the slow shell script. We don't cache a
2701 # path for INSTALL within a source directory, because that will
2702 # break other packages using the cache if that directory is
2703 # removed, or if the path is relative.
2704 INSTALL=$ac_install_sh
2707 echo "$as_me:2707: result: $INSTALL" >&5
2708 echo "${ECHO_T}$INSTALL" >&6
2710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2711 # It thinks the first close brace ends the variable substitution.
2712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2714 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2716 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2718 echo "$as_me:2718: checking whether ln -s works" >&5
2719 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2721 if test "$LN_S" = "ln -s"; then
2722 echo "$as_me:2722: result: yes" >&5
2723 echo "${ECHO_T}yes" >&6
2725 echo "$as_me:2725: result: no, using $LN_S" >&5
2726 echo "${ECHO_T}no, using $LN_S" >&6
2729 echo "$as_me:2729: checking if $LN_S -f options work" >&5
2730 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2732 rm -f conf$$.src conf$$dst
2734 echo first >conf$$.src
2735 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2740 rm -f conf$$.dst conf$$src
2741 echo "$as_me:2741: result: $cf_prog_ln_sf" >&5
2742 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2744 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2746 echo "$as_me:2746: checking for long file names" >&5
2747 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2748 if test "${ac_cv_sys_long_file_names+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 ac_cv_sys_long_file_names=yes
2752 # Test for long file names in all the places we know might matter:
2753 # . the current directory, where building will happen
2754 # $prefix/lib where we will be installing things
2755 # $exec_prefix/lib likewise
2756 # eval it to expand exec_prefix.
2757 # $TMPDIR if set, where it might want to write temporary files
2758 # if $TMPDIR is not set:
2759 # /tmp where it might want to write temporary files
2762 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2765 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2767 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2768 test -d $ac_dir || continue
2769 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2770 ac_xdir=$ac_dir/cf$$
2771 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2772 ac_tf1=$ac_xdir/conftest9012345
2773 ac_tf2=$ac_xdir/conftest9012346
2774 (echo 1 >$ac_tf1) 2>/dev/null
2775 (echo 2 >$ac_tf2) 2>/dev/null
2776 ac_val=`cat $ac_tf1 2>/dev/null`
2777 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2778 ac_cv_sys_long_file_names=no
2779 rm -rf $ac_xdir 2>/dev/null
2782 rm -rf $ac_xdir 2>/dev/null
2785 echo "$as_me:2785: result: $ac_cv_sys_long_file_names" >&5
2786 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2787 if test $ac_cv_sys_long_file_names = yes; then
2789 cat >>confdefs.h <<\EOF
2790 #define HAVE_LONG_FILE_NAMES 1
2795 # if we find pkg-config, check if we should install the ".pc" files.
2797 echo "$as_me:2797: checking if you want to use pkg-config" >&5
2798 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2800 # Check whether --with-pkg-config or --without-pkg-config was given.
2801 if test "${with_pkg_config+set}" = set; then
2802 withval="$with_pkg_config"
2803 cf_pkg_config=$withval
2807 echo "$as_me:2807: result: $cf_pkg_config" >&5
2808 echo "${ECHO_T}$cf_pkg_config" >&6
2810 case $cf_pkg_config in #(vi
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2819 echo "$as_me:2819: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2821 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2829 ac_save_IFS=$IFS; IFS=$ac_path_separator
2831 for ac_dir in $ac_dummy; do
2833 test -z "$ac_dir" && ac_dir=.
2834 if $as_executable_p "$ac_dir/$ac_word"; then
2835 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2836 echo "$as_me:2836: found $ac_dir/$ac_word" >&5
2844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2846 if test -n "$PKG_CONFIG"; then
2847 echo "$as_me:2847: result: $PKG_CONFIG" >&5
2848 echo "${ECHO_T}$PKG_CONFIG" >&6
2850 echo "$as_me:2850: result: no" >&5
2851 echo "${ECHO_T}no" >&6
2855 if test -z "$ac_cv_path_PKG_CONFIG"; then
2856 ac_pt_PKG_CONFIG=$PKG_CONFIG
2857 # Extract the first word of "pkg-config", so it can be a program name with args.
2858 set dummy pkg-config; ac_word=$2
2859 echo "$as_me:2859: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2861 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 case $ac_pt_PKG_CONFIG in
2866 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2869 ac_save_IFS=$IFS; IFS=$ac_path_separator
2871 for ac_dir in $ac_dummy; do
2873 test -z "$ac_dir" && ac_dir=.
2874 if $as_executable_p "$ac_dir/$ac_word"; then
2875 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2876 echo "$as_me:2876: found $ac_dir/$ac_word" >&5
2881 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2885 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2887 if test -n "$ac_pt_PKG_CONFIG"; then
2888 echo "$as_me:2888: result: $ac_pt_PKG_CONFIG" >&5
2889 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2891 echo "$as_me:2891: result: no" >&5
2892 echo "${ECHO_T}no" >&6
2895 PKG_CONFIG=$ac_pt_PKG_CONFIG
2897 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2906 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2907 if test "$PKG_CONFIG" != none ; then
2909 if test "x$prefix" != xNONE; then
2910 cf_path_syntax="$prefix"
2912 cf_path_syntax="$ac_default_prefix"
2915 case ".$PKG_CONFIG" in #(vi
2916 .\$\(*\)*|.\'*\'*) #(vi
2920 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2923 eval PKG_CONFIG="$PKG_CONFIG"
2924 case ".$PKG_CONFIG" in #(vi
2926 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2931 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2934 { { echo "$as_me:2934: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2935 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2936 { (exit 1); exit 1; }; }
2942 if test "$PKG_CONFIG" != none ; then
2943 echo "$as_me:2943: checking if we should install .pc files for $PKG_CONFIG" >&5
2944 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2946 # Leave this as something that can be overridden in the environment.
2947 if test -z "$PKG_CONFIG_LIBDIR" ; then
2948 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
2950 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
2951 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
2953 # Check whether --enable-pc-files or --disable-pc-files was given.
2954 if test "${enable_pc_files+set}" = set; then
2955 enableval="$enable_pc_files"
2956 enable_pc_files=$enableval
2960 echo "$as_me:2960: result: $enable_pc_files" >&5
2961 echo "${ECHO_T}$enable_pc_files" >&6
2963 echo "$as_me:2963: result: no" >&5
2964 echo "${ECHO_T}no" >&6
2965 { echo "$as_me:2965: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
2966 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
2971 echo "$as_me:2971: checking if you want to build test-programs" >&5
2972 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2974 # Check whether --with-tests or --without-tests was given.
2975 if test "${with_tests+set}" = set; then
2976 withval="$with_tests"
2977 cf_with_tests=$withval
2981 echo "$as_me:2981: result: $cf_with_tests" >&5
2982 echo "${ECHO_T}$cf_with_tests" >&6
2984 echo "$as_me:2984: checking if we should assume mixed-case filenames" >&5
2985 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2987 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2988 if test "${enable_mixed_case+set}" = set; then
2989 enableval="$enable_mixed_case"
2990 enable_mixedcase=$enableval
2992 enable_mixedcase=auto
2994 echo "$as_me:2994: result: $enable_mixedcase" >&5
2995 echo "${ECHO_T}$enable_mixedcase" >&6
2996 if test "$enable_mixedcase" = "auto" ; then
2998 echo "$as_me:2998: checking if filesystem supports mixed-case filenames" >&5
2999 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3000 if test "${cf_cv_mixedcase+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 if test "$cross_compiling" = yes ; then
3005 case $target_alias in #(vi
3006 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3014 rm -f conftest CONFTEST
3016 if test -f CONFTEST ; then
3021 rm -f conftest CONFTEST
3025 echo "$as_me:3025: result: $cf_cv_mixedcase" >&5
3026 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3027 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3028 #define MIXEDCASE_FILENAMES 1
3032 cf_cv_mixedcase=$enable_mixedcase
3033 if test "$enable_mixedcase" = "yes" ; then
3034 cat >>confdefs.h <<\EOF
3035 #define MIXEDCASE_FILENAMES 1
3041 # do this after mixed-case option (tags/TAGS is not as important as tic).
3042 echo "$as_me:3042: checking whether ${MAKE-make} sets \${MAKE}" >&5
3043 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3044 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3045 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 cat >conftest.make <<\EOF
3050 @echo 'ac_maketemp="${MAKE}"'
3052 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3053 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3054 if test -n "$ac_maketemp"; then
3055 eval ac_cv_prog_make_${ac_make}_set=yes
3057 eval ac_cv_prog_make_${ac_make}_set=no
3061 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3062 echo "$as_me:3062: result: yes" >&5
3063 echo "${ECHO_T}yes" >&6
3066 echo "$as_me:3066: result: no" >&5
3067 echo "${ECHO_T}no" >&6
3068 SET_MAKE="MAKE=${MAKE-make}"
3071 for ac_prog in exctags ctags
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo "$as_me:3075: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_prog_CTAGS+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 if test -n "$CTAGS"; then
3081 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3083 ac_save_IFS=$IFS; IFS=$ac_path_separator
3085 for ac_dir in $ac_dummy; do
3087 test -z "$ac_dir" && ac_dir=.
3088 $as_executable_p "$ac_dir/$ac_word" || continue
3089 ac_cv_prog_CTAGS="$ac_prog"
3090 echo "$as_me:3090: found $ac_dir/$ac_word" >&5
3096 CTAGS=$ac_cv_prog_CTAGS
3097 if test -n "$CTAGS"; then
3098 echo "$as_me:3098: result: $CTAGS" >&5
3099 echo "${ECHO_T}$CTAGS" >&6
3101 echo "$as_me:3101: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3105 test -n "$CTAGS" && break
3108 for ac_prog in exetags etags
3110 # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 echo "$as_me:3112: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114 if test "${ac_cv_prog_ETAGS+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 if test -n "$ETAGS"; then
3118 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3120 ac_save_IFS=$IFS; IFS=$ac_path_separator
3122 for ac_dir in $ac_dummy; do
3124 test -z "$ac_dir" && ac_dir=.
3125 $as_executable_p "$ac_dir/$ac_word" || continue
3126 ac_cv_prog_ETAGS="$ac_prog"
3127 echo "$as_me:3127: found $ac_dir/$ac_word" >&5
3133 ETAGS=$ac_cv_prog_ETAGS
3134 if test -n "$ETAGS"; then
3135 echo "$as_me:3135: result: $ETAGS" >&5
3136 echo "${ECHO_T}$ETAGS" >&6
3138 echo "$as_me:3138: result: no" >&5
3139 echo "${ECHO_T}no" >&6
3142 test -n "$ETAGS" && break
3145 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3146 set dummy ${CTAGS:-ctags}; ac_word=$2
3147 echo "$as_me:3147: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 if test -n "$MAKE_LOWER_TAGS"; then
3153 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3155 ac_save_IFS=$IFS; IFS=$ac_path_separator
3157 for ac_dir in $ac_dummy; do
3159 test -z "$ac_dir" && ac_dir=.
3160 $as_executable_p "$ac_dir/$ac_word" || continue
3161 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3162 echo "$as_me:3162: found $ac_dir/$ac_word" >&5
3166 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3169 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3170 if test -n "$MAKE_LOWER_TAGS"; then
3171 echo "$as_me:3171: result: $MAKE_LOWER_TAGS" >&5
3172 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3174 echo "$as_me:3174: result: no" >&5
3175 echo "${ECHO_T}no" >&6
3178 if test "$cf_cv_mixedcase" = yes ; then
3179 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3180 set dummy ${ETAGS:-etags}; ac_word=$2
3181 echo "$as_me:3181: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$MAKE_UPPER_TAGS"; then
3187 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3189 ac_save_IFS=$IFS; IFS=$ac_path_separator
3191 for ac_dir in $ac_dummy; do
3193 test -z "$ac_dir" && ac_dir=.
3194 $as_executable_p "$ac_dir/$ac_word" || continue
3195 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3196 echo "$as_me:3196: found $ac_dir/$ac_word" >&5
3200 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3203 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3204 if test -n "$MAKE_UPPER_TAGS"; then
3205 echo "$as_me:3205: result: $MAKE_UPPER_TAGS" >&5
3206 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3208 echo "$as_me:3208: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3216 if test "$MAKE_UPPER_TAGS" = yes ; then
3222 if test "$MAKE_LOWER_TAGS" = yes ; then
3228 echo "$as_me:3228: checking for makeflags variable" >&5
3229 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3230 if test "${cf_cv_makeflags+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3237 cat >cf_makeflags.tmp <<CF_EOF
3240 @ echo '.$cf_option'
3242 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3243 case "$cf_result" in
3245 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3246 case "$cf_result" in
3247 .*CC=*) cf_cv_makeflags=
3249 *) cf_cv_makeflags=$cf_option
3255 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3259 rm -f cf_makeflags.tmp
3262 echo "$as_me:3262: result: $cf_cv_makeflags" >&5
3263 echo "${ECHO_T}$cf_cv_makeflags" >&6
3265 if test -n "$ac_tool_prefix"; then
3266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3267 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3268 echo "$as_me:3268: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_prog_RANLIB+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 if test -n "$RANLIB"; then
3274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3276 ac_save_IFS=$IFS; IFS=$ac_path_separator
3278 for ac_dir in $ac_dummy; do
3280 test -z "$ac_dir" && ac_dir=.
3281 $as_executable_p "$ac_dir/$ac_word" || continue
3282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3283 echo "$as_me:3283: found $ac_dir/$ac_word" >&5
3289 RANLIB=$ac_cv_prog_RANLIB
3290 if test -n "$RANLIB"; then
3291 echo "$as_me:3291: result: $RANLIB" >&5
3292 echo "${ECHO_T}$RANLIB" >&6
3294 echo "$as_me:3294: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3299 if test -z "$ac_cv_prog_RANLIB"; then
3300 ac_ct_RANLIB=$RANLIB
3301 # Extract the first word of "ranlib", so it can be a program name with args.
3302 set dummy ranlib; ac_word=$2
3303 echo "$as_me:3303: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3305 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 if test -n "$ac_ct_RANLIB"; then
3309 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3311 ac_save_IFS=$IFS; IFS=$ac_path_separator
3313 for ac_dir in $ac_dummy; do
3315 test -z "$ac_dir" && ac_dir=.
3316 $as_executable_p "$ac_dir/$ac_word" || continue
3317 ac_cv_prog_ac_ct_RANLIB="ranlib"
3318 echo "$as_me:3318: found $ac_dir/$ac_word" >&5
3322 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3325 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3326 if test -n "$ac_ct_RANLIB"; then
3327 echo "$as_me:3327: result: $ac_ct_RANLIB" >&5
3328 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3330 echo "$as_me:3330: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3334 RANLIB=$ac_ct_RANLIB
3336 RANLIB="$ac_cv_prog_RANLIB"
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3341 set dummy ${ac_tool_prefix}ld; ac_word=$2
3342 echo "$as_me:3342: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344 if test "${ac_cv_prog_LD+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -n "$LD"; then
3348 ac_cv_prog_LD="$LD" # Let the user override the test.
3350 ac_save_IFS=$IFS; IFS=$ac_path_separator
3352 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 $as_executable_p "$ac_dir/$ac_word" || continue
3356 ac_cv_prog_LD="${ac_tool_prefix}ld"
3357 echo "$as_me:3357: found $ac_dir/$ac_word" >&5
3364 if test -n "$LD"; then
3365 echo "$as_me:3365: result: $LD" >&5
3366 echo "${ECHO_T}$LD" >&6
3368 echo "$as_me:3368: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3373 if test -z "$ac_cv_prog_LD"; then
3375 # Extract the first word of "ld", so it can be a program name with args.
3376 set dummy ld; ac_word=$2
3377 echo "$as_me:3377: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test -n "$ac_ct_LD"; then
3383 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3385 ac_save_IFS=$IFS; IFS=$ac_path_separator
3387 for ac_dir in $ac_dummy; do
3389 test -z "$ac_dir" && ac_dir=.
3390 $as_executable_p "$ac_dir/$ac_word" || continue
3391 ac_cv_prog_ac_ct_LD="ld"
3392 echo "$as_me:3392: found $ac_dir/$ac_word" >&5
3396 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3399 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3400 if test -n "$ac_ct_LD"; then
3401 echo "$as_me:3401: result: $ac_ct_LD" >&5
3402 echo "${ECHO_T}$ac_ct_LD" >&6
3404 echo "$as_me:3404: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3415 set dummy ${ac_tool_prefix}ar; ac_word=$2
3416 echo "$as_me:3416: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_prog_AR+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 if test -n "$AR"; then
3422 ac_cv_prog_AR="$AR" # Let the user override the test.
3424 ac_save_IFS=$IFS; IFS=$ac_path_separator
3426 for ac_dir in $ac_dummy; do
3428 test -z "$ac_dir" && ac_dir=.
3429 $as_executable_p "$ac_dir/$ac_word" || continue
3430 ac_cv_prog_AR="${ac_tool_prefix}ar"
3431 echo "$as_me:3431: found $ac_dir/$ac_word" >&5
3438 if test -n "$AR"; then
3439 echo "$as_me:3439: result: $AR" >&5
3440 echo "${ECHO_T}$AR" >&6
3442 echo "$as_me:3442: result: no" >&5
3443 echo "${ECHO_T}no" >&6
3447 if test -z "$ac_cv_prog_AR"; then
3449 # Extract the first word of "ar", so it can be a program name with args.
3450 set dummy ar; ac_word=$2
3451 echo "$as_me:3451: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 if test -n "$ac_ct_AR"; then
3457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3459 ac_save_IFS=$IFS; IFS=$ac_path_separator
3461 for ac_dir in $ac_dummy; do
3463 test -z "$ac_dir" && ac_dir=.
3464 $as_executable_p "$ac_dir/$ac_word" || continue
3465 ac_cv_prog_ac_ct_AR="ar"
3466 echo "$as_me:3466: found $ac_dir/$ac_word" >&5
3470 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3473 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3474 if test -n "$ac_ct_AR"; then
3475 echo "$as_me:3475: result: $ac_ct_AR" >&5
3476 echo "${ECHO_T}$ac_ct_AR" >&6
3478 echo "$as_me:3478: result: no" >&5
3479 echo "${ECHO_T}no" >&6
3487 if test -n "$ac_tool_prefix"; then
3488 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3489 set dummy ${ac_tool_prefix}ar; ac_word=$2
3490 echo "$as_me:3490: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_prog_AR+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 if test -n "$AR"; then
3496 ac_cv_prog_AR="$AR" # Let the user override the test.
3498 ac_save_IFS=$IFS; IFS=$ac_path_separator
3500 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 $as_executable_p "$ac_dir/$ac_word" || continue
3504 ac_cv_prog_AR="${ac_tool_prefix}ar"
3505 echo "$as_me:3505: found $ac_dir/$ac_word" >&5
3512 if test -n "$AR"; then
3513 echo "$as_me:3513: result: $AR" >&5
3514 echo "${ECHO_T}$AR" >&6
3516 echo "$as_me:3516: result: no" >&5
3517 echo "${ECHO_T}no" >&6
3521 if test -z "$ac_cv_prog_AR"; then
3523 # Extract the first word of "ar", so it can be a program name with args.
3524 set dummy ar; ac_word=$2
3525 echo "$as_me:3525: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 if test -n "$ac_ct_AR"; then
3531 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3533 ac_save_IFS=$IFS; IFS=$ac_path_separator
3535 for ac_dir in $ac_dummy; do
3537 test -z "$ac_dir" && ac_dir=.
3538 $as_executable_p "$ac_dir/$ac_word" || continue
3539 ac_cv_prog_ac_ct_AR="ar"
3540 echo "$as_me:3540: found $ac_dir/$ac_word" >&5
3544 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3547 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3548 if test -n "$ac_ct_AR"; then
3549 echo "$as_me:3549: result: $ac_ct_AR" >&5
3550 echo "${ECHO_T}$ac_ct_AR" >&6
3552 echo "$as_me:3552: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3561 echo "$as_me:3561: checking for options to update archives" >&5
3562 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3563 if test "${cf_cv_ar_flags+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 cf_cv_ar_flags=unknown
3568 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3571 # check if $ARFLAGS already contains this choice
3572 if test "x$ARFLAGS" != "x" ; then
3573 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3574 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3580 rm -f conftest.$ac_cv_objext
3583 cat >conftest.$ac_ext <<EOF
3584 #line 3584 "configure"
3585 int testdata[3] = { 123, 456, 789 };
3587 if { (eval echo "$as_me:3587: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>&5
3590 echo "$as_me:3590: \$? = $ac_status" >&5
3591 (exit $ac_status); } ; then
3592 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3593 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3594 if test -f conftest.a ; then
3595 cf_cv_ar_flags=$cf_ar_flags
3599 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3601 echo "${as_me:-configure}:3601: testing cannot compile test-program ..." 1>&5
3606 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3609 echo "$as_me:3609: result: $cf_cv_ar_flags" >&5
3610 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3612 if test -n "$ARFLAGS" ; then
3613 if test -n "$cf_cv_ar_flags" ; then
3614 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3617 ARFLAGS=$cf_cv_ar_flags
3620 echo "$as_me:3620: checking if you have specified an install-prefix" >&5
3621 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3623 # Check whether --with-install-prefix or --without-install-prefix was given.
3624 if test "${with_install_prefix+set}" = set; then
3625 withval="$with_install_prefix"
3626 case "$withval" in #(vi
3629 *) DESTDIR="$withval"
3633 echo "$as_me:3633: result: $DESTDIR" >&5
3634 echo "${ECHO_T}$DESTDIR" >&6
3636 ###############################################################################
3638 # If we're cross-compiling, allow the user to override the tools and their
3639 # options. The configure script is oriented toward identifying the host
3640 # compiler, etc., but we need a build compiler to generate parts of the source.
3642 if test "$cross_compiling" = yes ; then
3644 # defaults that we might want to override
3645 : ${BUILD_CFLAGS:=''}
3646 : ${BUILD_CPPFLAGS:=''}
3647 : ${BUILD_LDFLAGS:=''}
3649 : ${BUILD_EXEEXT:='$x'}
3650 : ${BUILD_OBJEXT:='o'}
3652 # Check whether --with-build-cc or --without-build-cc was given.
3653 if test "${with_build_cc+set}" = set; then
3654 withval="$with_build_cc"
3657 for ac_prog in gcc cc cl
3659 # Extract the first word of "$ac_prog", so it can be a program name with args.
3660 set dummy $ac_prog; ac_word=$2
3661 echo "$as_me:3661: checking for $ac_word" >&5
3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 if test -n "$BUILD_CC"; then
3667 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3669 ac_save_IFS=$IFS; IFS=$ac_path_separator
3671 for ac_dir in $ac_dummy; do
3673 test -z "$ac_dir" && ac_dir=.
3674 $as_executable_p "$ac_dir/$ac_word" || continue
3675 ac_cv_prog_BUILD_CC="$ac_prog"
3676 echo "$as_me:3676: found $ac_dir/$ac_word" >&5
3682 BUILD_CC=$ac_cv_prog_BUILD_CC
3683 if test -n "$BUILD_CC"; then
3684 echo "$as_me:3684: result: $BUILD_CC" >&5
3685 echo "${ECHO_T}$BUILD_CC" >&6
3687 echo "$as_me:3687: result: no" >&5
3688 echo "${ECHO_T}no" >&6
3691 test -n "$BUILD_CC" && break
3695 echo "$as_me:3695: checking for native build C compiler" >&5
3696 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3697 echo "$as_me:3697: result: $BUILD_CC" >&5
3698 echo "${ECHO_T}$BUILD_CC" >&6
3700 echo "$as_me:3700: checking for native build C preprocessor" >&5
3701 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3703 # Check whether --with-build-cpp or --without-build-cpp was given.
3704 if test "${with_build_cpp+set}" = set; then
3705 withval="$with_build_cpp"
3706 BUILD_CPP="$withval"
3708 BUILD_CPP='${BUILD_CC} -E'
3710 echo "$as_me:3710: result: $BUILD_CPP" >&5
3711 echo "${ECHO_T}$BUILD_CPP" >&6
3713 echo "$as_me:3713: checking for native build C flags" >&5
3714 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3716 # Check whether --with-build-cflags or --without-build-cflags was given.
3717 if test "${with_build_cflags+set}" = set; then
3718 withval="$with_build_cflags"
3719 BUILD_CFLAGS="$withval"
3721 echo "$as_me:3721: result: $BUILD_CFLAGS" >&5
3722 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3724 echo "$as_me:3724: checking for native build C preprocessor-flags" >&5
3725 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3727 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3728 if test "${with_build_cppflags+set}" = set; then
3729 withval="$with_build_cppflags"
3730 BUILD_CPPFLAGS="$withval"
3732 echo "$as_me:3732: result: $BUILD_CPPFLAGS" >&5
3733 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3735 echo "$as_me:3735: checking for native build linker-flags" >&5
3736 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3738 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3739 if test "${with_build_ldflags+set}" = set; then
3740 withval="$with_build_ldflags"
3741 BUILD_LDFLAGS="$withval"
3743 echo "$as_me:3743: result: $BUILD_LDFLAGS" >&5
3744 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3746 echo "$as_me:3746: checking for native build linker-libraries" >&5
3747 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3749 # Check whether --with-build-libs or --without-build-libs was given.
3750 if test "${with_build_libs+set}" = set; then
3751 withval="$with_build_libs"
3752 BUILD_LIBS="$withval"
3754 echo "$as_me:3754: result: $BUILD_LIBS" >&5
3755 echo "${ECHO_T}$BUILD_LIBS" >&6
3757 # this assumes we're on Unix.
3761 : ${BUILD_CC:='${CC}'}
3763 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3764 { { echo "$as_me:3764: error: Cross-build requires two compilers.
3765 Use --with-build-cc to specify the native compiler." >&5
3766 echo "$as_me: error: Cross-build requires two compilers.
3767 Use --with-build-cc to specify the native compiler." >&2;}
3768 { (exit 1); exit 1; }; }
3772 : ${BUILD_CC:='${CC}'}
3773 : ${BUILD_CPP:='${CPP}'}
3774 : ${BUILD_CFLAGS:='${CFLAGS}'}
3775 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3776 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3777 : ${BUILD_LIBS:='${LIBS}'}
3778 : ${BUILD_EXEEXT:='$x'}
3779 : ${BUILD_OBJEXT:='o'}
3782 ###############################################################################
3784 ### Options to allow the user to specify the set of libraries which are used.
3785 ### Use "--without-normal --with-shared" to allow the default model to be
3786 ### shared, for example.
3789 echo "$as_me:3789: checking if you want to build shared C-objects" >&5
3790 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3792 # Check whether --with-shared or --without-shared was given.
3793 if test "${with_shared+set}" = set; then
3794 withval="$with_shared"
3795 with_shared=$withval
3799 echo "$as_me:3799: result: $with_shared" >&5
3800 echo "${ECHO_T}$with_shared" >&6
3801 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3803 echo "$as_me:3803: checking for specified models" >&5
3804 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3805 test -z "$cf_list_models" && cf_list_models=normal
3806 echo "$as_me:3806: result: $cf_list_models" >&5
3807 echo "${ECHO_T}$cf_list_models" >&6
3809 ### Use the first model as the default, and save its suffix for use in building
3810 ### up test-applications.
3811 echo "$as_me:3811: checking for default model" >&5
3812 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3813 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3814 echo "$as_me:3814: result: $DFT_LWR_MODEL" >&5
3815 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3817 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3819 echo "$as_me:3819: checking for specific curses-directory" >&5
3820 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3822 # Check whether --with-curses-dir or --without-curses-dir was given.
3823 if test "${with_curses_dir+set}" = set; then
3824 withval="$with_curses_dir"
3825 cf_cv_curses_dir=$withval
3829 echo "$as_me:3829: result: $cf_cv_curses_dir" >&5
3830 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3832 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3835 if test "x$prefix" != xNONE; then
3836 cf_path_syntax="$prefix"
3838 cf_path_syntax="$ac_default_prefix"
3841 case ".$withval" in #(vi
3842 .\$\(*\)*|.\'*\'*) #(vi
3846 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3849 eval withval="$withval"
3850 case ".$withval" in #(vi
3852 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3857 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3860 { { echo "$as_me:3860: error: expected a pathname, not \"$withval\"" >&5
3861 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3862 { (exit 1); exit 1; }; }
3866 if test -d "$cf_cv_curses_dir"
3869 if test -n "$cf_cv_curses_dir/include" ; then
3870 for cf_add_incdir in $cf_cv_curses_dir/include
3872 while test $cf_add_incdir != /usr/include
3874 if test -d $cf_add_incdir
3877 if test -n "$CFLAGS$CPPFLAGS" ; then
3878 # a loop is needed to ensure we can add subdirs of existing dirs
3879 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3880 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3881 cf_have_incdir=yes; break
3886 if test "$cf_have_incdir" = no ; then
3887 if test "$cf_add_incdir" = /usr/local/include ; then
3888 if test "$GCC" = yes
3890 cf_save_CPPFLAGS=$CPPFLAGS
3891 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3892 cat >conftest.$ac_ext <<_ACEOF
3893 #line 3893 "configure"
3894 #include "confdefs.h"
3904 rm -f conftest.$ac_objext
3905 if { (eval echo "$as_me:3905: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>&5
3908 echo "$as_me:3908: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
3910 { ac_try='test -s conftest.$ac_objext'
3911 { (eval echo "$as_me:3911: \"$ac_try\"") >&5
3914 echo "$as_me:3914: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3918 echo "$as_me: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3922 rm -f conftest.$ac_objext conftest.$ac_ext
3923 CPPFLAGS=$cf_save_CPPFLAGS
3928 if test "$cf_have_incdir" = no ; then
3929 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3931 echo "${as_me:-configure}:3931: testing adding $cf_add_incdir to include-path ..." 1>&5
3933 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3935 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3936 test "$cf_top_incdir" = "$cf_add_incdir" && break
3937 cf_add_incdir="$cf_top_incdir"
3946 if test -n "$cf_cv_curses_dir/lib" ; then
3947 for cf_add_libdir in $cf_cv_curses_dir/lib
3949 if test $cf_add_libdir = /usr/lib ; then
3951 elif test -d $cf_add_libdir
3954 if test -n "$LDFLAGS$LIBS" ; then
3955 # a loop is needed to ensure we can add subdirs of existing dirs
3956 for cf_test_libdir in $LDFLAGS $LIBS ; do
3957 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3958 cf_have_libdir=yes; break
3962 if test "$cf_have_libdir" = no ; then
3963 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3965 echo "${as_me:-configure}:3965: testing adding $cf_add_libdir to library-path ..." 1>&5
3967 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3976 echo "$as_me:3976: checking if you want wide-character code" >&5
3977 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3979 # Check whether --enable-widec or --disable-widec was given.
3980 if test "${enable_widec+set}" = set; then
3981 enableval="$enable_widec"
3982 with_widec=$enableval
3986 echo "$as_me:3986: result: $with_widec" >&5
3987 echo "${ECHO_T}$with_widec" >&6
3988 if test "$with_widec" = yes ; then
3990 echo "$as_me:3990: checking for multibyte character support" >&5
3991 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3992 if test "${cf_cv_utf8_lib+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 cf_save_LIBS="$LIBS"
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line 3998 "configure"
3999 #include "confdefs.h"
4010 rm -f conftest.$ac_objext conftest$ac_exeext
4011 if { (eval echo "$as_me:4011: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>&5
4014 echo "$as_me:4014: \$? = $ac_status" >&5
4015 (exit $ac_status); } &&
4016 { ac_try='test -s conftest$ac_exeext'
4017 { (eval echo "$as_me:4017: \"$ac_try\"") >&5
4020 echo "$as_me:4020: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4024 echo "$as_me: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4027 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
4028 # will be set on completion of the AC_TRY_LINK below.
4029 cf_cv_header_path_utf8=
4030 cf_cv_library_path_utf8=
4032 echo "${as_me:-configure}:4032: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
4034 cf_save_LIBS="$LIBS"
4036 cat >conftest.$ac_ext <<_ACEOF
4037 #line 4037 "configure"
4038 #include "confdefs.h"
4040 #include <libutf8.h>
4049 rm -f conftest.$ac_objext conftest$ac_exeext
4050 if { (eval echo "$as_me:4050: \"$ac_link\"") >&5
4051 (eval $ac_link) 2>&5
4053 echo "$as_me:4053: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -s conftest$ac_exeext'
4056 { (eval echo "$as_me:4056: \"$ac_try\"") >&5
4059 echo "$as_me:4059: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4062 cf_cv_find_linkage_utf8=yes
4063 cf_cv_header_path_utf8=/usr/include
4064 cf_cv_library_path_utf8=/usr/lib
4067 echo "$as_me: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4070 LIBS="-lutf8 $cf_save_LIBS"
4072 cat >conftest.$ac_ext <<_ACEOF
4073 #line 4073 "configure"
4074 #include "confdefs.h"
4076 #include <libutf8.h>
4085 rm -f conftest.$ac_objext conftest$ac_exeext
4086 if { (eval echo "$as_me:4086: \"$ac_link\"") >&5
4087 (eval $ac_link) 2>&5
4089 echo "$as_me:4089: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -s conftest$ac_exeext'
4092 { (eval echo "$as_me:4092: \"$ac_try\"") >&5
4095 echo "$as_me:4095: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4098 cf_cv_find_linkage_utf8=yes
4099 cf_cv_header_path_utf8=/usr/include
4100 cf_cv_library_path_utf8=/usr/lib
4101 cf_cv_library_file_utf8="-lutf8"
4104 echo "$as_me: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 cf_cv_find_linkage_utf8=no
4108 LIBS="$cf_save_LIBS"
4110 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
4112 echo "${as_me:-configure}:4112: testing find linkage for utf8 library ..." 1>&5
4114 echo "${as_me:-configure}:4114: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
4116 cf_save_CPPFLAGS="$CPPFLAGS"
4117 cf_test_CPPFLAGS="$CPPFLAGS"
4121 # collect the current set of include-directories from compiler flags
4122 cf_header_path_list=""
4123 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4124 for cf_header_path in $CPPFLAGS $CFLAGS
4126 case $cf_header_path in #(vi
4128 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4130 test "$cf_header_path" != "NONE" && \
4131 test -d "$cf_header_path" && \
4133 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4134 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4135 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
4136 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
4137 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
4138 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
4141 cf_header_path_list="$cf_header_path_list $cf_search"
4147 # add the variations for the package we are looking for
4151 test "/usr" != "$prefix" && \
4153 (test $prefix = NONE || test "/usr" != "$prefix") && {
4154 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4155 test -d /usr/include && cf_search="$cf_search /usr/include"
4156 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
4157 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
4158 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
4159 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
4162 test "$prefix" != "NONE" && \
4163 test -d "$prefix" && \
4165 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4166 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4167 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
4168 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
4169 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
4170 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
4173 test "/usr/local" != "$prefix" && \
4174 test -d "/usr/local" && \
4175 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4176 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4177 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4178 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
4179 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
4180 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
4181 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
4184 test "/opt" != "$prefix" && \
4186 (test $prefix = NONE || test "/opt" != "$prefix") && {
4187 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4188 test -d /opt/include && cf_search="$cf_search /opt/include"
4189 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
4190 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
4191 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
4192 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
4195 test "$HOME" != "$prefix" && \
4196 test -d "$HOME" && \
4197 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4198 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4199 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4200 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
4201 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
4202 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
4203 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
4206 test "$includedir" != NONE && \
4207 test "$includedir" != "/usr/include" && \
4208 test -d "$includedir" && {
4209 test -d $includedir && cf_search="$cf_search $includedir"
4210 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
4213 test "$oldincludedir" != NONE && \
4214 test "$oldincludedir" != "/usr/include" && \
4215 test -d "$oldincludedir" && {
4216 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4217 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
4220 cf_search="$cf_search $cf_header_path_list"
4222 for cf_cv_header_path_utf8 in $cf_search
4224 if test -d $cf_cv_header_path_utf8 ; then
4225 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
4227 echo "${as_me:-configure}:4227: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
4229 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
4230 cat >conftest.$ac_ext <<_ACEOF
4231 #line 4231 "configure"
4232 #include "confdefs.h"
4234 #include <libutf8.h>
4243 rm -f conftest.$ac_objext
4244 if { (eval echo "$as_me:4244: \"$ac_compile\"") >&5
4245 (eval $ac_compile) 2>&5
4247 echo "$as_me:4247: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (eval echo "$as_me:4250: \"$ac_try\"") >&5
4253 echo "$as_me:4253: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4256 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
4258 echo "${as_me:-configure}:4258: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
4260 cf_cv_find_linkage_utf8=maybe
4261 cf_test_CPPFLAGS="$CPPFLAGS"
4264 echo "$as_me: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4267 CPPFLAGS="$cf_save_CPPFLAGS"
4270 rm -f conftest.$ac_objext conftest.$ac_ext
4274 if test "$cf_cv_find_linkage_utf8" = maybe ; then
4276 echo "${as_me:-configure}:4276: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
4278 cf_save_LIBS="$LIBS"
4279 cf_save_LDFLAGS="$LDFLAGS"
4281 if test "$cf_cv_find_linkage_utf8" != yes ; then
4284 cf_library_path_list=""
4285 if test -n "${LDFLAGS}${LIBS}" ; then
4286 for cf_library_path in $LDFLAGS $LIBS
4288 case $cf_library_path in #(vi
4290 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
4292 test "$cf_library_path" != "NONE" && \
4293 test -d "$cf_library_path" && \
4295 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
4296 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
4297 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
4298 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
4299 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
4300 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
4303 cf_library_path_list="$cf_library_path_list $cf_search"
4311 test "/usr" != "$prefix" && \
4313 (test $prefix = NONE || test "/usr" != "$prefix") && {
4314 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
4315 test -d /usr/lib && cf_search="$cf_search /usr/lib"
4316 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
4317 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
4318 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
4319 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
4322 test "$prefix" != "NONE" && \
4323 test -d "$prefix" && \
4325 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
4326 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
4327 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
4328 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
4329 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
4330 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
4333 test "/usr/local" != "$prefix" && \
4334 test -d "/usr/local" && \
4335 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4336 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
4337 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
4338 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
4339 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
4340 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
4341 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
4344 test "/opt" != "$prefix" && \
4346 (test $prefix = NONE || test "/opt" != "$prefix") && {
4347 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
4348 test -d /opt/lib && cf_search="$cf_search /opt/lib"
4349 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
4350 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
4351 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
4352 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
4355 test "$HOME" != "$prefix" && \
4356 test -d "$HOME" && \
4357 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4358 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
4359 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
4360 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
4361 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
4362 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
4363 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
4366 cf_search="$cf_library_path_list $cf_search"
4368 for cf_cv_library_path_utf8 in $cf_search
4370 if test -d $cf_cv_library_path_utf8 ; then
4371 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
4373 echo "${as_me:-configure}:4373: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
4375 CPPFLAGS="$cf_test_CPPFLAGS"
4376 LIBS="-lutf8 $cf_save_LIBS"
4377 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
4378 cat >conftest.$ac_ext <<_ACEOF
4379 #line 4379 "configure"
4380 #include "confdefs.h"
4382 #include <libutf8.h>
4391 rm -f conftest.$ac_objext conftest$ac_exeext
4392 if { (eval echo "$as_me:4392: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4395 echo "$as_me:4395: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -s conftest$ac_exeext'
4398 { (eval echo "$as_me:4398: \"$ac_try\"") >&5
4401 echo "$as_me:4401: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4404 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
4406 echo "${as_me:-configure}:4406: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
4408 cf_cv_find_linkage_utf8=yes
4409 cf_cv_library_file_utf8="-lutf8"
4412 echo "$as_me: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4415 CPPFLAGS="$cf_save_CPPFLAGS"
4416 LIBS="$cf_save_LIBS"
4417 LDFLAGS="$cf_save_LDFLAGS"
4420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4423 CPPFLAGS="$cf_save_CPPFLAGS"
4424 LDFLAGS="$cf_save_LDFLAGS"
4428 cf_cv_find_linkage_utf8=no
4432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4437 LIBS="$cf_save_LIBS"
4439 if test "$cf_cv_find_linkage_utf8" = yes ; then
4440 cf_cv_utf8_lib=add-on
4446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4448 echo "$as_me:4448: result: $cf_cv_utf8_lib" >&5
4449 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
4451 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
4453 if test "$cf_cv_utf8_lib" = "add-on" ; then
4454 cat >>confdefs.h <<\EOF
4455 #define HAVE_LIBUTF8_H 1
4458 if test -n "$cf_cv_header_path_utf8" ; then
4459 for cf_add_incdir in $cf_cv_header_path_utf8
4461 while test $cf_add_incdir != /usr/include
4463 if test -d $cf_add_incdir
4466 if test -n "$CFLAGS$CPPFLAGS" ; then
4467 # a loop is needed to ensure we can add subdirs of existing dirs
4468 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4469 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4470 cf_have_incdir=yes; break
4475 if test "$cf_have_incdir" = no ; then
4476 if test "$cf_add_incdir" = /usr/local/include ; then
4477 if test "$GCC" = yes
4479 cf_save_CPPFLAGS=$CPPFLAGS
4480 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line 4482 "configure"
4483 #include "confdefs.h"
4493 rm -f conftest.$ac_objext
4494 if { (eval echo "$as_me:4494: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>&5
4497 echo "$as_me:4497: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:4500: \"$ac_try\"") >&5
4503 echo "$as_me:4503: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4507 echo "$as_me: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4511 rm -f conftest.$ac_objext conftest.$ac_ext
4512 CPPFLAGS=$cf_save_CPPFLAGS
4517 if test "$cf_have_incdir" = no ; then
4518 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4520 echo "${as_me:-configure}:4520: testing adding $cf_add_incdir to include-path ..." 1>&5
4522 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4524 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4525 test "$cf_top_incdir" = "$cf_add_incdir" && break
4526 cf_add_incdir="$cf_top_incdir"
4535 if test -n "$cf_cv_library_path_utf8" ; then
4536 for cf_add_libdir in $cf_cv_library_path_utf8
4538 if test $cf_add_libdir = /usr/lib ; then
4540 elif test -d $cf_add_libdir
4543 if test -n "$LDFLAGS$LIBS" ; then
4544 # a loop is needed to ensure we can add subdirs of existing dirs
4545 for cf_test_libdir in $LDFLAGS $LIBS ; do
4546 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4547 cf_have_libdir=yes; break
4551 if test "$cf_have_libdir" = no ; then
4552 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4554 echo "${as_me:-configure}:4554: testing adding $cf_add_libdir to library-path ..." 1>&5
4556 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4562 LIBS="$cf_cv_library_file_utf8 $LIBS"
4565 cf_ncuconfig_root=ncursesw
4567 echo "Looking for ${cf_ncuconfig_root}-config"
4568 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 echo "$as_me:4572: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 case $NCURSES_CONFIG in
4579 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
4582 ac_save_IFS=$IFS; IFS=$ac_path_separator
4584 for ac_dir in $ac_dummy; do
4586 test -z "$ac_dir" && ac_dir=.
4587 if $as_executable_p "$ac_dir/$ac_word"; then
4588 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
4589 echo "$as_me:4589: found $ac_dir/$ac_word" >&5
4597 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
4599 if test -n "$NCURSES_CONFIG"; then
4600 echo "$as_me:4600: result: $NCURSES_CONFIG" >&5
4601 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4603 echo "$as_me:4603: result: no" >&5
4604 echo "${ECHO_T}no" >&6
4607 test -n "$NCURSES_CONFIG" && break
4609 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
4611 if test "$NCURSES_CONFIG" != none ; then
4613 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4614 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4616 # even with config script, some packages use no-override for curses.h
4618 echo "$as_me:4618: checking if we have identified curses headers" >&5
4619 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4620 if test "${cf_cv_ncurses_header+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 cf_cv_ncurses_header=none
4626 ncursesw/ncurses.h \
4631 cat >conftest.$ac_ext <<_ACEOF
4632 #line 4632 "configure"
4633 #include "confdefs.h"
4634 #include <${cf_header}>
4638 initscr(); tgoto("?", 0,0)
4643 rm -f conftest.$ac_objext
4644 if { (eval echo "$as_me:4644: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>&5
4647 echo "$as_me:4647: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -s conftest.$ac_objext'
4650 { (eval echo "$as_me:4650: \"$ac_try\"") >&5
4653 echo "$as_me:4653: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 cf_cv_ncurses_header=$cf_header; break
4657 echo "$as_me: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4660 rm -f conftest.$ac_objext conftest.$ac_ext
4664 echo "$as_me:4664: result: $cf_cv_ncurses_header" >&5
4665 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4667 if test "$cf_cv_ncurses_header" = none ; then
4668 { { echo "$as_me:4668: error: No curses header-files found" >&5
4669 echo "$as_me: error: No curses header-files found" >&2;}
4670 { (exit 1); exit 1; }; }
4673 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4675 for ac_header in $cf_cv_ncurses_header
4677 as_ac_Header=`echo "ac_cv_h