2 # From configure.in Revision: 1.12 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20100530.
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 --enable-mixed-case tic should assume mixed-case filenames
650 --with-install-prefix prefixes actual install-location ($DESTDIR)
651 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
652 --with-build-cc=XXX the build C compiler ($BUILD_CC)
653 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
654 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
655 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
656 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
657 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
658 Options to Specify the Libraries Built/Used:
659 --enable-widec compile with wide-char/UTF-8 code
660 --with-curses-dir=DIR directory in which (n)curses is installed
661 --with-shlib-version=X Specify rel or abi version for shared libs
662 Fine-Tuning Your Configuration:
663 --enable-broken_linker compile with broken-linker support code
664 --disable-largefile omit support for large files
665 --with-rcs-ids compile-in RCS identifiers
667 --disable-ext-funcs disable function-extensions
668 --enable-const compile with extra/non-standard const
670 --without-develop disable development options
672 --with-pthread use POSIX thread library
673 --enable-weak-symbols enable weak-symbols for pthreads
674 --enable-reentrant compile with experimental reentrant code
675 --with-wrap-prefix=XXX override prefix used for public variables
676 Testing/development Options:
677 --enable-echo build: display "compiling" commands (default)
678 --enable-warnings build: turn on GCC compiler warnings
679 --enable-assertions test: turn on generation of assertion code
680 --enable-expanded test: generate functions for certain macros
681 --disable-macros test: use functions rather than macros
682 --with-trace test: add trace() function to all models of ncurses
683 Ada95 Binding Options:
684 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
685 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
686 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
688 Some influential environment variables:
689 CC C compiler command
690 CFLAGS C compiler flags
691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
692 nonstandard directory <lib dir>
693 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
694 headers in a nonstandard directory <include dir>
697 Use these variables to override the choices made by `configure' or to help
698 it to find libraries and programs with nonstandard names/locations.
703 if test "$ac_init_help" = "recursive"; then
704 # If there are subdirs, report their specific --help.
706 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708 # A "../" for each directory in /$ac_subdir.
709 ac_dots=`echo $ac_subdir |
710 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
713 .) # No --srcdir option. We are building in place.
714 ac_sub_srcdir=$srcdir ;;
715 [\\/]* | ?:[\\/]* ) # Absolute path.
716 ac_sub_srcdir=$srcdir/$ac_subdir ;;
718 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
721 # Check for guested configure; otherwise get Cygnus style configure.
722 if test -f $ac_sub_srcdir/configure.gnu; then
724 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
725 elif test -f $ac_sub_srcdir/configure; then
727 $SHELL $ac_sub_srcdir/configure --help=recursive
728 elif test -f $ac_sub_srcdir/configure.ac ||
729 test -f $ac_sub_srcdir/configure.in; then
733 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
739 test -n "$ac_init_help" && exit 0
740 if $ac_init_version; then
743 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
744 Free Software Foundation, Inc.
745 This configure script is free software; the Free Software Foundation
746 gives unlimited permission to copy, distribute and modify it.
752 This file contains any messages produced by compilers while
753 running configure, to aid debugging if configure makes a mistake.
755 It was created by $as_me, which was
756 generated by GNU Autoconf 2.52.20100530. Invocation command line was
767 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
768 uname -m = `(uname -m) 2>/dev/null || echo unknown`
769 uname -r = `(uname -r) 2>/dev/null || echo unknown`
770 uname -s = `(uname -s) 2>/dev/null || echo unknown`
771 uname -v = `(uname -v) 2>/dev/null || echo unknown`
773 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
774 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
776 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
777 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
778 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
779 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
780 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
781 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
782 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
796 # Keep a trace of the command line.
797 # Strip out --no-create and --no-recursion so they do not pile up.
798 # Also quote any args containing shell meta-characters.
804 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
805 | --no-cr | --no-c) ;;
806 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
807 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
808 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
809 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
810 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
812 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
815 # Get rid of the leading space.
818 # When interrupted or exit'd, cleanup temporary files, and complete
819 # config.log. We remove comments because anyway the quotes in there
820 # would cause problems or look ugly.
822 # Save into config.log some information that might help in debugging.
824 echo "## ----------------- ##" >&5
825 echo "## Cache variables. ##" >&5
826 echo "## ----------------- ##" >&5
828 # The following way of writing the cache mishandles newlines in values,
831 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
834 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
843 sed "/^$/d" confdefs.h >conftest.log
844 if test -s conftest.log; then
846 echo "## ------------ ##" >&5
847 echo "## confdefs.h. ##" >&5
848 echo "## ------------ ##" >&5
853 test "$ac_signal" != 0 &&
854 echo "$as_me: caught signal $ac_signal" >&5
855 echo "$as_me: exit $exit_status" >&5
856 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
859 for ac_signal in 1 2 13 15; do
860 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
865 rm -rf conftest* confdefs.h
866 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
869 # Let the site file select an alternate cache file if it wants to.
870 # Prefer explicitly selected file to automatically selected ones.
871 if test -z "$CONFIG_SITE"; then
872 if test "x$prefix" != xNONE; then
873 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
875 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
878 for ac_site_file in $CONFIG_SITE; do
879 if test -r "$ac_site_file"; then
880 { echo "$as_me:880: loading site script $ac_site_file" >&5
881 echo "$as_me: loading site script $ac_site_file" >&6;}
882 cat "$ac_site_file" >&5
887 if test -r "$cache_file"; then
888 # Some versions of bash will fail to source /dev/null (special
889 # files actually), so we avoid doing that.
890 if test -f "$cache_file"; then
891 { echo "$as_me:891: loading cache $cache_file" >&5
892 echo "$as_me: loading cache $cache_file" >&6;}
894 [\\/]* | ?:[\\/]* ) . $cache_file;;
899 { echo "$as_me:899: creating cache $cache_file" >&5
900 echo "$as_me: creating cache $cache_file" >&6;}
904 # Check that the precious variables saved in the cache have kept the same
906 ac_cache_corrupted=false
907 for ac_var in `(set) 2>&1 |
908 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
909 eval ac_old_set=\$ac_cv_env_${ac_var}_set
910 eval ac_new_set=\$ac_env_${ac_var}_set
911 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
912 eval ac_new_val="\$ac_env_${ac_var}_value"
913 case $ac_old_set,$ac_new_set in
915 { echo "$as_me:915: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
919 { echo "$as_me:919: error: \`$ac_var' was not set in the previous run" >&5
920 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
921 ac_cache_corrupted=: ;;
924 if test "x$ac_old_val" != "x$ac_new_val"; then
925 { echo "$as_me:925: error: \`$ac_var' has changed since the previous run:" >&5
926 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
927 { echo "$as_me:927: former value: $ac_old_val" >&5
928 echo "$as_me: former value: $ac_old_val" >&2;}
929 { echo "$as_me:929: current value: $ac_new_val" >&5
930 echo "$as_me: current value: $ac_new_val" >&2;}
934 # Pass precious variables to config.status. It doesn't matter if
935 # we pass some twice (in addition to the command line arguments).
936 if test "$ac_new_set" = set; then
938 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
940 ac_configure_args="$ac_configure_args '$ac_arg'"
942 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
947 if $ac_cache_corrupted; then
948 { echo "$as_me:948: error: changes in the environment can compromise the build" >&5
949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
950 { { echo "$as_me:950: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
952 { (exit 1); exit 1; }; }
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
960 ac_main_return=return
962 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
963 *c*,-n*) ECHO_N= ECHO_C='
965 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
966 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
968 echo "#! $SHELL" >conftest.sh
969 echo "exit 0" >>conftest.sh
971 if { (echo "$as_me:971: PATH=\".;.\"; conftest.sh") >&5
972 (PATH=".;."; conftest.sh) 2>&5
974 echo "$as_me:974: \$? = $ac_status" >&5
975 (exit $ac_status); }; then
976 ac_path_separator=';'
980 PATH_SEPARATOR="$ac_path_separator"
983 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
988 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
989 if test -f $ac_dir/install-sh; then
991 ac_install_sh="$ac_aux_dir/install-sh -c"
993 elif test -f $ac_dir/install.sh; then
995 ac_install_sh="$ac_aux_dir/install.sh -c"
997 elif test -f $ac_dir/shtool; then
999 ac_install_sh="$ac_aux_dir/shtool install -c"
1003 if test -z "$ac_aux_dir"; then
1004 { { echo "$as_me:1004: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1005 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1006 { (exit 1); exit 1; }; }
1008 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1009 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1010 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1012 # Make sure we can run config.sub.
1013 $ac_config_sub sun4 >/dev/null 2>&1 ||
1014 { { echo "$as_me:1014: error: cannot run $ac_config_sub" >&5
1015 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1016 { (exit 1); exit 1; }; }
1018 echo "$as_me:1018: checking build system type" >&5
1019 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1020 if test "${ac_cv_build+set}" = set; then
1021 echo $ECHO_N "(cached) $ECHO_C" >&6
1023 ac_cv_build_alias=$build_alias
1024 test -z "$ac_cv_build_alias" &&
1025 ac_cv_build_alias=`$ac_config_guess`
1026 test -z "$ac_cv_build_alias" &&
1027 { { echo "$as_me:1027: error: cannot guess build type; you must specify one" >&5
1028 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1029 { (exit 1); exit 1; }; }
1030 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1031 { { echo "$as_me:1031: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1032 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1033 { (exit 1); exit 1; }; }
1036 echo "$as_me:1036: result: $ac_cv_build" >&5
1037 echo "${ECHO_T}$ac_cv_build" >&6
1039 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1043 echo "$as_me:1043: checking host system type" >&5
1044 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1045 if test "${ac_cv_host+set}" = set; then
1046 echo $ECHO_N "(cached) $ECHO_C" >&6
1048 ac_cv_host_alias=$host_alias
1049 test -z "$ac_cv_host_alias" &&
1050 ac_cv_host_alias=$ac_cv_build_alias
1051 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1052 { { echo "$as_me:1052: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1053 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1054 { (exit 1); exit 1; }; }
1057 echo "$as_me:1057: result: $ac_cv_host" >&5
1058 echo "${ECHO_T}$ac_cv_host" >&6
1060 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1061 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1062 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1065 echo "$as_me:1065: checking target system type" >&5
1066 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1067 if test "${ac_cv_target+set}" = set; then
1068 echo $ECHO_N "(cached) $ECHO_C" >&6
1070 ac_cv_target_alias=$target_alias
1071 test "x$ac_cv_target_alias" = "x" &&
1072 ac_cv_target_alias=$ac_cv_host_alias
1073 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1074 { { echo "$as_me:1074: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1075 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1076 { (exit 1); exit 1; }; }
1079 echo "$as_me:1079: result: $ac_cv_target" >&5
1080 echo "${ECHO_T}$ac_cv_target" >&6
1081 target=$ac_cv_target
1082 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1083 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1084 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1086 # The aliases save the names the user supplied, while $host etc.
1087 # will get canonicalized.
1088 test -n "$target_alias" &&
1089 test "$program_prefix$program_suffix$program_transform_name" = \
1091 program_prefix=${target_alias}-
1092 system_name="$host_os"
1094 system_name="`(uname -s -r) 2>/dev/null`"
1095 if test -z "$system_name" ; then
1096 system_name="`(hostname) 2>/dev/null`"
1099 test -n "$system_name" && cat >>confdefs.h <<EOF
1100 #define SYSTEM_NAME "$system_name"
1103 if test "${cf_cv_system_name+set}" = set; then
1104 echo $ECHO_N "(cached) $ECHO_C" >&6
1106 cf_cv_system_name="$system_name"
1109 test -z "$system_name" && system_name="$cf_cv_system_name"
1110 test -n "$cf_cv_system_name" && echo "$as_me:1110: result: Configuring for $cf_cv_system_name" >&5
1111 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1113 if test ".$system_name" != ".$cf_cv_system_name" ; then
1114 echo "$as_me:1114: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1115 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1116 { { echo "$as_me:1116: error: \"Please remove config.cache and try again.\"" >&5
1117 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1118 { (exit 1); exit 1; }; }
1121 # Check whether --with-system-type or --without-system-type was given.
1122 if test "${with_system_type+set}" = set; then
1123 withval="$with_system_type"
1124 { echo "$as_me:1124: WARNING: overriding system type to $withval" >&5
1125 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1126 cf_cv_system_name=$withval
1129 ### Save the given $CFLAGS to allow user-override.
1130 cf_user_CFLAGS="$CFLAGS"
1132 ### Default install-location
1134 echo "$as_me:1134: checking for prefix" >&5
1135 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1136 if test "x$prefix" = "xNONE" ; then
1137 case "$cf_cv_system_name" in
1138 # non-vendor systems don't have a conflict
1139 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1142 *) prefix=$ac_default_prefix
1146 echo "$as_me:1146: result: $prefix" >&5
1147 echo "${ECHO_T}$prefix" >&6
1149 if test "x$prefix" = "xNONE" ; then
1150 echo "$as_me:1150: checking for default include-directory" >&5
1151 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1152 test -n "$verbose" && echo 1>&6
1155 $includedir/ncurses \
1157 $prefix/include/ncurses \
1158 /usr/local/include \
1159 /usr/local/include/ncurses \
1161 /usr/include/ncurses
1163 cf_dir=`eval echo $cf_symbol`
1164 if test -f $cf_dir/curses.h ; then
1165 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1166 includedir="$cf_symbol"
1167 test -n "$verbose" && echo $ac_n " found " 1>&6
1171 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1173 echo "$as_me:1173: result: $includedir" >&5
1174 echo "${ECHO_T}$includedir" >&6
1177 ### Checks for programs.
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1183 ac_main_return=return
1184 if test -n "$ac_tool_prefix"; then
1185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1187 echo "$as_me:1187: checking for $ac_word" >&5
1188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1189 if test "${ac_cv_prog_CC+set}" = set; then
1190 echo $ECHO_N "(cached) $ECHO_C" >&6
1192 if test -n "$CC"; then
1193 ac_cv_prog_CC="$CC" # Let the user override the test.
1195 ac_save_IFS=$IFS; IFS=$ac_path_separator
1197 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 $as_executable_p "$ac_dir/$ac_word" || continue
1201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1202 echo "$as_me:1202: found $ac_dir/$ac_word" >&5
1209 if test -n "$CC"; then
1210 echo "$as_me:1210: result: $CC" >&5
1211 echo "${ECHO_T}$CC" >&6
1213 echo "$as_me:1213: result: no" >&5
1214 echo "${ECHO_T}no" >&6
1218 if test -z "$ac_cv_prog_CC"; then
1220 # Extract the first word of "gcc", so it can be a program name with args.
1221 set dummy gcc; ac_word=$2
1222 echo "$as_me:1222: checking for $ac_word" >&5
1223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 if test -n "$ac_ct_CC"; then
1228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1230 ac_save_IFS=$IFS; IFS=$ac_path_separator
1232 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 $as_executable_p "$ac_dir/$ac_word" || continue
1236 ac_cv_prog_ac_ct_CC="gcc"
1237 echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1244 if test -n "$ac_ct_CC"; then
1245 echo "$as_me:1245: result: $ac_ct_CC" >&5
1246 echo "${ECHO_T}$ac_ct_CC" >&6
1248 echo "$as_me:1248: result: no" >&5
1249 echo "${ECHO_T}no" >&6
1257 if test -z "$CC"; then
1258 if test -n "$ac_tool_prefix"; then
1259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1260 set dummy ${ac_tool_prefix}cc; ac_word=$2
1261 echo "$as_me:1261: checking for $ac_word" >&5
1262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1263 if test "${ac_cv_prog_CC+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 if test -n "$CC"; then
1267 ac_cv_prog_CC="$CC" # Let the user override the test.
1269 ac_save_IFS=$IFS; IFS=$ac_path_separator
1271 for ac_dir in $ac_dummy; do
1273 test -z "$ac_dir" && ac_dir=.
1274 $as_executable_p "$ac_dir/$ac_word" || continue
1275 ac_cv_prog_CC="${ac_tool_prefix}cc"
1276 echo "$as_me:1276: found $ac_dir/$ac_word" >&5
1283 if test -n "$CC"; then
1284 echo "$as_me:1284: result: $CC" >&5
1285 echo "${ECHO_T}$CC" >&6
1287 echo "$as_me:1287: result: no" >&5
1288 echo "${ECHO_T}no" >&6
1292 if test -z "$ac_cv_prog_CC"; then
1294 # Extract the first word of "cc", so it can be a program name with args.
1295 set dummy cc; ac_word=$2
1296 echo "$as_me:1296: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 if test -n "$ac_ct_CC"; then
1302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1304 ac_save_IFS=$IFS; IFS=$ac_path_separator
1306 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 $as_executable_p "$ac_dir/$ac_word" || continue
1310 ac_cv_prog_ac_ct_CC="cc"
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1318 if test -n "$ac_ct_CC"; then
1319 echo "$as_me:1319: result: $ac_ct_CC" >&5
1320 echo "${ECHO_T}$ac_ct_CC" >&6
1322 echo "$as_me:1322: result: no" >&5
1323 echo "${ECHO_T}no" >&6
1332 if test -z "$CC"; then
1333 # Extract the first word of "cc", so it can be a program name with args.
1334 set dummy cc; ac_word=$2
1335 echo "$as_me:1335: checking for $ac_word" >&5
1336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1337 if test "${ac_cv_prog_CC+set}" = set; then
1338 echo $ECHO_N "(cached) $ECHO_C" >&6
1340 if test -n "$CC"; then
1341 ac_cv_prog_CC="$CC" # Let the user override the test.
1344 ac_save_IFS=$IFS; IFS=$ac_path_separator
1346 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 $as_executable_p "$ac_dir/$ac_word" || continue
1350 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1351 ac_prog_rejected=yes
1355 echo "$as_me:1355: found $ac_dir/$ac_word" >&5
1359 if test $ac_prog_rejected = yes; then
1360 # We found a bogon in the path, so make sure we never use it.
1361 set dummy $ac_cv_prog_CC
1363 if test $# != 0; then
1364 # We chose a different compiler from the bogus one.
1365 # However, it has the same basename, so the bogon will be chosen
1366 # first if we set CC to just the basename; use the full file name.
1368 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1376 if test -n "$CC"; then
1377 echo "$as_me:1377: result: $CC" >&5
1378 echo "${ECHO_T}$CC" >&6
1380 echo "$as_me:1380: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1385 if test -z "$CC"; then
1386 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1391 echo "$as_me:1391: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1399 ac_save_IFS=$IFS; IFS=$ac_path_separator
1401 for ac_dir in $ac_dummy; do
1403 test -z "$ac_dir" && ac_dir=.
1404 $as_executable_p "$ac_dir/$ac_word" || continue
1405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1406 echo "$as_me:1406: found $ac_dir/$ac_word" >&5
1413 if test -n "$CC"; then
1414 echo "$as_me:1414: result: $CC" >&5
1415 echo "${ECHO_T}$CC" >&6
1417 echo "$as_me:1417: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1421 test -n "$CC" && break
1424 if test -z "$CC"; then
1428 # Extract the first word of "$ac_prog", so it can be a program name with args.
1429 set dummy $ac_prog; ac_word=$2
1430 echo "$as_me:1430: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 ac_save_IFS=$IFS; IFS=$ac_path_separator
1440 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 $as_executable_p "$ac_dir/$ac_word" || continue
1444 ac_cv_prog_ac_ct_CC="$ac_prog"
1445 echo "$as_me:1445: found $ac_dir/$ac_word" >&5
1451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1452 if test -n "$ac_ct_CC"; then
1453 echo "$as_me:1453: result: $ac_ct_CC" >&5
1454 echo "${ECHO_T}$ac_ct_CC" >&6
1456 echo "$as_me:1456: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1460 test -n "$ac_ct_CC" && break
1468 test -z "$CC" && { { echo "$as_me:1468: error: no acceptable cc found in \$PATH" >&5
1469 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1470 { (exit 1); exit 1; }; }
1472 # Provide some information about the compiler.
1473 echo "$as_me:1473:" \
1474 "checking for C compiler version" >&5
1475 ac_compiler=`set X $ac_compile; echo $2`
1476 { (eval echo "$as_me:1476: \"$ac_compiler --version </dev/null >&5\"") >&5
1477 (eval $ac_compiler --version </dev/null >&5) 2>&5
1479 echo "$as_me:1479: \$? = $ac_status" >&5
1480 (exit $ac_status); }
1481 { (eval echo "$as_me:1481: \"$ac_compiler -v </dev/null >&5\"") >&5
1482 (eval $ac_compiler -v </dev/null >&5) 2>&5
1484 echo "$as_me:1484: \$? = $ac_status" >&5
1485 (exit $ac_status); }
1486 { (eval echo "$as_me:1486: \"$ac_compiler -V </dev/null >&5\"") >&5
1487 (eval $ac_compiler -V </dev/null >&5) 2>&5
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit $ac_status); }
1492 cat >conftest.$ac_ext <<_ACEOF
1493 #line 1493 "configure"
1494 #include "confdefs.h"
1504 ac_clean_files_save=$ac_clean_files
1505 ac_clean_files="$ac_clean_files a.out a.exe"
1506 # Try to create an executable without -o first, disregard a.out.
1507 # It will help us diagnose broken compilers, and finding out an intuition
1509 echo "$as_me:1509: checking for C compiler default output" >&5
1510 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1511 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1512 if { (eval echo "$as_me:1512: \"$ac_link_default\"") >&5
1513 (eval $ac_link_default) 2>&5
1515 echo "$as_me:1515: \$? = $ac_status" >&5
1516 (exit $ac_status); }; then
1517 # Find the output, starting from the most likely. This scheme is
1518 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1520 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1521 ls a.out conftest 2>/dev/null;
1522 ls a.* conftest.* 2>/dev/null`; do
1524 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1525 a.out ) # We found the default executable, but exeext='' is most
1528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1529 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1536 echo "$as_me: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 { { echo "$as_me:1538: error: C compiler cannot create executables" >&5
1539 echo "$as_me: error: C compiler cannot create executables" >&2;}
1540 { (exit 77); exit 77; }; }
1543 ac_exeext=$ac_cv_exeext
1544 echo "$as_me:1544: result: $ac_file" >&5
1545 echo "${ECHO_T}$ac_file" >&6
1547 # Check the compiler produces executables we can run. If not, either
1548 # the compiler is broken, or we cross compile.
1549 echo "$as_me:1549: checking whether the C compiler works" >&5
1550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1552 # If not cross compiling, check that we can run a simple program.
1553 if test "$cross_compiling" != yes; then
1554 if { ac_try='./$ac_file'
1555 { (eval echo "$as_me:1555: \"$ac_try\"") >&5
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit $ac_status); }; }; then
1562 if test "$cross_compiling" = maybe; then
1565 { { echo "$as_me:1565: error: cannot run C compiled programs.
1566 If you meant to cross compile, use \`--host'." >&5
1567 echo "$as_me: error: cannot run C compiled programs.
1568 If you meant to cross compile, use \`--host'." >&2;}
1569 { (exit 1); exit 1; }; }
1573 echo "$as_me:1573: result: yes" >&5
1574 echo "${ECHO_T}yes" >&6
1576 rm -f a.out a.exe conftest$ac_cv_exeext
1577 ac_clean_files=$ac_clean_files_save
1578 # Check the compiler produces executables we can run. If not, either
1579 # the compiler is broken, or we cross compile.
1580 echo "$as_me:1580: checking whether we are cross compiling" >&5
1581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1582 echo "$as_me:1582: result: $cross_compiling" >&5
1583 echo "${ECHO_T}$cross_compiling" >&6
1585 echo "$as_me:1585: checking for executable suffix" >&5
1586 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1587 if { (eval echo "$as_me:1587: \"$ac_link\"") >&5
1588 (eval $ac_link) 2>&5
1590 echo "$as_me:1590: \$? = $ac_status" >&5
1591 (exit $ac_status); }; then
1592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1594 # work properly (i.e., refer to `conftest.exe'), while it won't with
1596 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1598 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1606 { { echo "$as_me:1606: error: cannot compute EXEEXT: cannot compile and link" >&5
1607 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1608 { (exit 1); exit 1; }; }
1611 rm -f conftest$ac_cv_exeext
1612 echo "$as_me:1612: result: $ac_cv_exeext" >&5
1613 echo "${ECHO_T}$ac_cv_exeext" >&6
1615 rm -f conftest.$ac_ext
1616 EXEEXT=$ac_cv_exeext
1618 echo "$as_me:1618: checking for object suffix" >&5
1619 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1620 if test "${ac_cv_objext+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 cat >conftest.$ac_ext <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1635 rm -f conftest.o conftest.obj
1636 if { (eval echo "$as_me:1636: \"$ac_compile\"") >&5
1637 (eval $ac_compile) 2>&5
1639 echo "$as_me:1639: \$? = $ac_status" >&5
1640 (exit $ac_status); }; then
1641 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1643 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1644 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1649 echo "$as_me: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1651 { { echo "$as_me:1651: error: cannot compute OBJEXT: cannot compile" >&5
1652 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1653 { (exit 1); exit 1; }; }
1656 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1658 echo "$as_me:1658: result: $ac_cv_objext" >&5
1659 echo "${ECHO_T}$ac_cv_objext" >&6
1660 OBJEXT=$ac_cv_objext
1662 echo "$as_me:1662: checking whether we are using the GNU C compiler" >&5
1663 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1664 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1682 rm -f conftest.$ac_objext
1683 if { (eval echo "$as_me:1683: \"$ac_compile\"") >&5
1684 (eval $ac_compile) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); } &&
1688 { ac_try='test -s conftest.$ac_objext'
1689 { (eval echo "$as_me:1689: \"$ac_try\"") >&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); }; }; then
1696 echo "$as_me: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1700 rm -f conftest.$ac_objext conftest.$ac_ext
1701 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1704 echo "$as_me:1704: result: $ac_cv_c_compiler_gnu" >&5
1705 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1706 GCC=`test $ac_compiler_gnu = yes && echo yes`
1707 ac_test_CFLAGS=${CFLAGS+set}
1708 ac_save_CFLAGS=$CFLAGS
1710 echo "$as_me:1710: checking whether $CC accepts -g" >&5
1711 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1712 if test "${ac_cv_prog_cc_g+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line 1716 "configure"
1717 #include "confdefs.h"
1727 rm -f conftest.$ac_objext
1728 if { (eval echo "$as_me:1728: \"$ac_compile\"") >&5
1729 (eval $ac_compile) 2>&5
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit $ac_status); } &&
1733 { ac_try='test -s conftest.$ac_objext'
1734 { (eval echo "$as_me:1734: \"$ac_try\"") >&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); }; }; then
1741 echo "$as_me: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1745 rm -f conftest.$ac_objext conftest.$ac_ext
1747 echo "$as_me:1747: result: $ac_cv_prog_cc_g" >&5
1748 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1749 if test "$ac_test_CFLAGS" = set; then
1750 CFLAGS=$ac_save_CFLAGS
1751 elif test $ac_cv_prog_cc_g = yes; then
1752 if test "$GCC" = yes; then
1758 if test "$GCC" = yes; then
1764 # Some people use a C++ compiler to compile C. Since we use `exit',
1765 # in C++ we need to declare it. In case someone uses the same compiler
1766 # for both compiling C and C++ we need to have the C++ compiler decide
1767 # the declaration of exit, since it's the most demanding environment.
1768 cat >conftest.$ac_ext <<_ACEOF
1773 rm -f conftest.$ac_objext
1774 if { (eval echo "$as_me:1774: \"$ac_compile\"") >&5
1775 (eval $ac_compile) 2>&5
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit $ac_status); } &&
1779 { ac_try='test -s conftest.$ac_objext'
1780 { (eval echo "$as_me:1780: \"$ac_try\"") >&5
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); }; }; then
1785 for ac_declaration in \
1787 '#include <stdlib.h>' \
1788 'extern "C" void std::exit (int) throw (); using std::exit;' \
1789 'extern "C" void std::exit (int); using std::exit;' \
1790 'extern "C" void exit (int) throw ();' \
1791 'extern "C" void exit (int);' \
1794 cat >conftest.$ac_ext <<_ACEOF
1795 #line 1795 "configure"
1796 #include "confdefs.h"
1807 rm -f conftest.$ac_objext
1808 if { (eval echo "$as_me:1808: \"$ac_compile\"") >&5
1809 (eval $ac_compile) 2>&5
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); } &&
1813 { ac_try='test -s conftest.$ac_objext'
1814 { (eval echo "$as_me:1814: \"$ac_try\"") >&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); }; }; then
1821 echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1826 cat >conftest.$ac_ext <<_ACEOF
1827 #line 1827 "configure"
1828 #include "confdefs.h"
1838 rm -f conftest.$ac_objext
1839 if { (eval echo "$as_me:1839: \"$ac_compile\"") >&5
1840 (eval $ac_compile) 2>&5
1842 echo "$as_me:1842: \$? = $ac_status" >&5
1843 (exit $ac_status); } &&
1844 { ac_try='test -s conftest.$ac_objext'
1845 { (eval echo "$as_me:1845: \"$ac_try\"") >&5
1848 echo "$as_me:1848: \$? = $ac_status" >&5
1849 (exit $ac_status); }; }; then
1852 echo "$as_me: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 rm -f conftest.$ac_objext conftest.$ac_ext
1858 if test -n "$ac_declaration"; then
1859 echo '#ifdef __cplusplus' >>confdefs.h
1860 echo $ac_declaration >>confdefs.h
1861 echo '#endif' >>confdefs.h
1865 echo "$as_me: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1868 rm -f conftest.$ac_objext conftest.$ac_ext
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 ac_main_return=return
1877 if test "$GCC" = yes ; then
1878 echo "$as_me:1878: checking version of $CC" >&5
1879 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1880 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1881 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1882 echo "$as_me:1882: result: $GCC_VERSION" >&5
1883 echo "${ECHO_T}$GCC_VERSION" >&6
1887 ac_cpp='$CPP $CPPFLAGS'
1888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891 ac_main_return=return
1892 echo "$as_me:1892: checking how to run the C preprocessor" >&5
1893 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1894 # On Suns, sometimes $CPP names a directory.
1895 if test -n "$CPP" && test -d "$CPP"; then
1898 if test -z "$CPP"; then
1899 if test "${ac_cv_prog_CPP+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 # Double quotes because CPP needs to be expanded
1903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1906 for ac_c_preproc_warn_flag in '' yes
1908 # Use a header file that comes with gcc, so configuring glibc
1909 # with a fresh cross-compiler works.
1910 # On the NeXT, cc -E runs the code through the compiler's parser,
1911 # not just through cpp. "Syntax error" is here to catch this case.
1912 cat >conftest.$ac_ext <<_ACEOF
1913 #line 1913 "configure"
1914 #include "confdefs.h"
1918 if { (eval echo "$as_me:1918: \"$ac_cpp conftest.$ac_ext\"") >&5
1919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1921 egrep -v '^ *\+' conftest.er1 >conftest.err
1923 cat conftest.err >&5
1924 echo "$as_me:1924: \$? = $ac_status" >&5
1925 (exit $ac_status); } >/dev/null; then
1926 if test -s conftest.err; then
1927 ac_cpp_err=$ac_c_preproc_warn_flag
1934 if test -z "$ac_cpp_err"; then
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 # Broken: fails on valid input.
1942 rm -f conftest.err conftest.$ac_ext
1944 # OK, works on sane cases. Now check whether non-existent headers
1945 # can be detected and how.
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line 1947 "configure"
1948 #include "confdefs.h"
1949 #include <ac_nonexistent.h>
1951 if { (eval echo "$as_me:1951: \"$ac_cpp conftest.$ac_ext\"") >&5
1952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1954 egrep -v '^ *\+' conftest.er1 >conftest.err
1956 cat conftest.err >&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); } >/dev/null; then
1959 if test -s conftest.err; then
1960 ac_cpp_err=$ac_c_preproc_warn_flag
1967 if test -z "$ac_cpp_err"; then
1968 # Broken: success on invalid input.
1971 echo "$as_me: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1973 # Passes both tests.
1977 rm -f conftest.err conftest.$ac_ext
1980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1981 rm -f conftest.err conftest.$ac_ext
1982 if $ac_preproc_ok; then
1994 echo "$as_me:1994: result: $CPP" >&5
1995 echo "${ECHO_T}$CPP" >&6
1997 for ac_c_preproc_warn_flag in '' yes
1999 # Use a header file that comes with gcc, so configuring glibc
2000 # with a fresh cross-compiler works.
2001 # On the NeXT, cc -E runs the code through the compiler's parser,
2002 # not just through cpp. "Syntax error" is here to catch this case.
2003 cat >conftest.$ac_ext <<_ACEOF
2004 #line 2004 "configure"
2005 #include "confdefs.h"
2009 if { (eval echo "$as_me:2009: \"$ac_cpp conftest.$ac_ext\"") >&5
2010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2012 egrep -v '^ *\+' conftest.er1 >conftest.err
2014 cat conftest.err >&5
2015 echo "$as_me:2015: \$? = $ac_status" >&5
2016 (exit $ac_status); } >/dev/null; then
2017 if test -s conftest.err; then
2018 ac_cpp_err=$ac_c_preproc_warn_flag
2025 if test -z "$ac_cpp_err"; then
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2030 # Broken: fails on valid input.
2033 rm -f conftest.err conftest.$ac_ext
2035 # OK, works on sane cases. Now check whether non-existent headers
2036 # can be detected and how.
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line 2038 "configure"
2039 #include "confdefs.h"
2040 #include <ac_nonexistent.h>
2042 if { (eval echo "$as_me:2042: \"$ac_cpp conftest.$ac_ext\"") >&5
2043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2045 egrep -v '^ *\+' conftest.er1 >conftest.err
2047 cat conftest.err >&5
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); } >/dev/null; then
2050 if test -s conftest.err; then
2051 ac_cpp_err=$ac_c_preproc_warn_flag
2058 if test -z "$ac_cpp_err"; then
2059 # Broken: success on invalid input.
2062 echo "$as_me: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2064 # Passes both tests.
2068 rm -f conftest.err conftest.$ac_ext
2071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2072 rm -f conftest.err conftest.$ac_ext
2073 if $ac_preproc_ok; then
2076 { { echo "$as_me:2076: error: C preprocessor \"$CPP\" fails sanity check" >&5
2077 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2078 { (exit 1); exit 1; }; }
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086 ac_main_return=return
2088 if test $ac_cv_c_compiler_gnu = yes; then
2089 echo "$as_me:2089: checking whether $CC needs -traditional" >&5
2090 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2091 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 ac_pattern="Autoconf.*'x'"
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line 2096 "configure"
2097 #include "confdefs.h"
2099 int Autoconf = TIOCGETP;
2101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2102 egrep "$ac_pattern" >/dev/null 2>&1; then
2103 ac_cv_prog_gcc_traditional=yes
2105 ac_cv_prog_gcc_traditional=no
2109 if test $ac_cv_prog_gcc_traditional = no; then
2110 cat >conftest.$ac_ext <<_ACEOF
2111 #line 2111 "configure"
2112 #include "confdefs.h"
2114 int Autoconf = TCGETA;
2116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2117 egrep "$ac_pattern" >/dev/null 2>&1; then
2118 ac_cv_prog_gcc_traditional=yes
2124 echo "$as_me:2124: result: $ac_cv_prog_gcc_traditional" >&5
2125 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2126 if test $ac_cv_prog_gcc_traditional = yes; then
2127 CC="$CC -traditional"
2131 echo "$as_me:2131: checking whether $CC understands -c and -o together" >&5
2132 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2133 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 cat > conftest.$ac_ext <<CF_EOF
2141 ${cf_cv_main_return:-return}(0);
2144 # We do the test twice because some compilers refuse to overwrite an
2145 # existing .o file with -o, though they will create one.
2146 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2147 if { (eval echo "$as_me:2147: \"$ac_try\"") >&5
2150 echo "$as_me:2150: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 test -f conftest2.$ac_objext && { (eval echo "$as_me:2152: \"$ac_try\"") >&5
2155 echo "$as_me:2155: \$? = $ac_status" >&5
2156 (exit $ac_status); };
2158 eval cf_cv_prog_CC_c_o=yes
2160 eval cf_cv_prog_CC_c_o=no
2165 if test $cf_cv_prog_CC_c_o = yes; then
2166 echo "$as_me:2166: result: yes" >&5
2167 echo "${ECHO_T}yes" >&6
2169 echo "$as_me:2169: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2173 echo "$as_me:2173: checking for POSIXized ISC" >&5
2174 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2175 if test -d /etc/conf/kconfig.d &&
2176 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2178 echo "$as_me:2178: result: yes" >&5
2179 echo "${ECHO_T}yes" >&6
2180 ISC=yes # If later tests want to check for ISC.
2182 cat >>confdefs.h <<\EOF
2183 #define _POSIX_SOURCE 1
2186 if test "$GCC" = yes; then
2192 echo "$as_me:2192: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2197 echo "$as_me:2197: checking for ${CC-cc} option to accept ANSI C" >&5
2198 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2199 if test "${cf_cv_ansi_cc+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 cf_save_CFLAGS="$CFLAGS"
2205 cf_save_CPPFLAGS="$CPPFLAGS"
2206 # Don't try gcc -ansi; that turns off useful extensions and
2207 # breaks some systems' header files.
2208 # AIX -qlanglvl=ansi
2209 # Ultrix and OSF/1 -std1
2210 # HP-UX -Aa -D_HPUX_SOURCE
2212 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2213 for cf_arg in "-DCC_HAS_PROTOS" \
2218 "-Aa -D_HPUX_SOURCE" \
2225 cf_new_extra_cppflags=
2227 for cf_add_cflags in $cf_arg
2229 case $cf_fix_cppflags in
2231 case $cf_add_cflags in #(vi
2232 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2233 case $cf_add_cflags in
2235 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2237 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2238 && test -z "${cf_tst_cflags}" \
2239 && cf_fix_cppflags=yes
2241 if test $cf_fix_cppflags = yes ; then
2242 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2244 elif test "${cf_tst_cflags}" = "\"'" ; then
2245 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2251 *$cf_add_cflags) #(vi
2254 case $cf_add_cflags in #(vi
2256 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2258 CPPFLAGS=`echo "$CPPFLAGS" | \
2259 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2260 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2264 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2269 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2274 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2276 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2278 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2279 && test -z "${cf_tst_cflags}" \
2280 && cf_fix_cppflags=no
2285 if test -n "$cf_new_cflags" ; then
2287 CFLAGS="$CFLAGS $cf_new_cflags"
2290 if test -n "$cf_new_cppflags" ; then
2292 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2295 if test -n "$cf_new_extra_cppflags" ; then
2297 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #line 2301 "configure"
2302 #include "confdefs.h"
2304 #ifndef CC_HAS_PROTOS
2305 #if !defined(__STDC__) || (__STDC__ != 1)
2314 int test (int i, double x);
2315 struct s1 {int (*f) (int a);};
2316 struct s2 {int (*f) (double a);};
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:2322: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>&5
2325 echo "$as_me:2325: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:2328: \"$ac_try\"") >&5
2331 echo "$as_me:2331: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 cf_cv_ansi_cc="$cf_arg"; break
2335 echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 rm -f conftest.$ac_objext conftest.$ac_ext
2340 CFLAGS="$cf_save_CFLAGS"
2341 CPPFLAGS="$cf_save_CPPFLAGS"
2344 echo "$as_me:2344: result: $cf_cv_ansi_cc" >&5
2345 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2347 if test "$cf_cv_ansi_cc" != "no"; then
2348 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2353 cf_new_extra_cppflags=
2355 for cf_add_cflags in $cf_cv_ansi_cc
2357 case $cf_fix_cppflags in
2359 case $cf_add_cflags in #(vi
2360 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2361 case $cf_add_cflags in
2363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2365 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2366 && test -z "${cf_tst_cflags}" \
2367 && cf_fix_cppflags=yes
2369 if test $cf_fix_cppflags = yes ; then
2370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2372 elif test "${cf_tst_cflags}" = "\"'" ; then
2373 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2379 *$cf_add_cflags) #(vi
2382 case $cf_add_cflags in #(vi
2384 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2386 CPPFLAGS=`echo "$CPPFLAGS" | \
2387 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2388 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2392 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2397 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2402 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2404 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2406 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2407 && test -z "${cf_tst_cflags}" \
2408 && cf_fix_cppflags=no
2413 if test -n "$cf_new_cflags" ; then
2415 CFLAGS="$CFLAGS $cf_new_cflags"
2418 if test -n "$cf_new_cppflags" ; then
2420 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2423 if test -n "$cf_new_extra_cppflags" ; then
2425 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2429 cat >>confdefs.h <<\EOF
2430 #define CC_HAS_PROTOS 1
2436 if test "$cf_cv_ansi_cc" = "no"; then
2437 { { echo "$as_me:2437: error: Your compiler does not appear to recognize prototypes.
2438 You have the following choices:
2439 a. adjust your compiler options
2440 b. get an up-to-date compiler
2441 c. use a wrapper such as unproto" >&5
2442 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2443 You have the following choices:
2444 a. adjust your compiler options
2445 b. get an up-to-date compiler
2446 c. use a wrapper such as unproto" >&2;}
2447 { (exit 1); exit 1; }; }
2450 case $cf_cv_system_name in
2452 CFLAGS="$CFLAGS -Zmt"
2453 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2454 CXXFLAGS="$CXXFLAGS -Zmt"
2455 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2456 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2463 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2464 #define PROG_EXT "$PROG_EXT"
2467 test "$program_prefix" != NONE &&
2468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2469 # Use a double $ so make ignores it.
2470 test "$program_suffix" != NONE &&
2471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2472 # Double any \ or $. echo might interpret backslashes.
2473 # By default was `s,x,x', remove it if useless.
2474 cat <<\_ACEOF >conftest.sed
2475 s/[\\$]/&&/g;s/;s,x,x,$//
2477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2480 for ac_prog in mawk gawk nawk awk
2482 # Extract the first word of "$ac_prog", so it can be a program name with args.
2483 set dummy $ac_prog; ac_word=$2
2484 echo "$as_me:2484: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_AWK+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$AWK"; then
2490 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2492 ac_save_IFS=$IFS; IFS=$ac_path_separator
2494 for ac_dir in $ac_dummy; do
2496 test -z "$ac_dir" && ac_dir=.
2497 $as_executable_p "$ac_dir/$ac_word" || continue
2498 ac_cv_prog_AWK="$ac_prog"
2499 echo "$as_me:2499: found $ac_dir/$ac_word" >&5
2506 if test -n "$AWK"; then
2507 echo "$as_me:2507: result: $AWK" >&5
2508 echo "${ECHO_T}$AWK" >&6
2510 echo "$as_me:2510: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2514 test -n "$AWK" && break
2517 test -z "$AWK" && { { echo "$as_me:2517: error: No awk program found" >&5
2518 echo "$as_me: error: No awk program found" >&2;}
2519 { (exit 1); exit 1; }; }
2521 echo "$as_me:2521: checking for egrep" >&5
2522 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2523 if test "${ac_cv_prog_egrep+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2527 then ac_cv_prog_egrep='grep -E'
2528 else ac_cv_prog_egrep='egrep'
2531 echo "$as_me:2531: result: $ac_cv_prog_egrep" >&5
2532 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2533 EGREP=$ac_cv_prog_egrep
2535 test -z "$EGREP" && { { echo "$as_me:2535: error: No egrep program found" >&5
2536 echo "$as_me: error: No egrep program found" >&2;}
2537 { (exit 1); exit 1; }; }
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # ./install, which can be erroneously created by make from ./install.sh.
2551 echo "$as_me:2551: checking for a BSD compatible install" >&5
2552 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2553 if test -z "$INSTALL"; then
2554 if test "${ac_cv_path_install+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 ac_save_IFS=$IFS; IFS=$ac_path_separator
2558 for ac_dir in $PATH; do
2560 # Account for people who put trailing slashes in PATH elements.
2562 / | ./ | .// | /cC/* \
2563 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2566 # OSF1 and SCO ODT 3.0 have their own names for install.
2567 # Don't use installbsd from OSF since it installs stuff as root
2569 for ac_prog in ginstall scoinst install; do
2570 if $as_executable_p "$ac_dir/$ac_prog"; then
2571 if test $ac_prog = install &&
2572 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2573 # AIX install. It has an incompatible calling convention.
2575 elif test $ac_prog = install &&
2576 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2577 # program-specific install script used by HP pwplus--don't use.
2580 ac_cv_path_install="$ac_dir/$ac_prog -c"
2590 if test "${ac_cv_path_install+set}" = set; then
2591 INSTALL=$ac_cv_path_install
2593 # As a last resort, use the slow shell script. We don't cache a
2594 # path for INSTALL within a source directory, because that will
2595 # break other packages using the cache if that directory is
2596 # removed, or if the path is relative.
2597 INSTALL=$ac_install_sh
2600 echo "$as_me:2600: result: $INSTALL" >&5
2601 echo "${ECHO_T}$INSTALL" >&6
2603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2604 # It thinks the first close brace ends the variable substitution.
2605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611 echo "$as_me:2611: checking whether ln -s works" >&5
2612 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2614 if test "$LN_S" = "ln -s"; then
2615 echo "$as_me:2615: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6
2618 echo "$as_me:2618: result: no, using $LN_S" >&5
2619 echo "${ECHO_T}no, using $LN_S" >&6
2622 echo "$as_me:2622: checking for long file names" >&5
2623 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2624 if test "${ac_cv_sys_long_file_names+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 ac_cv_sys_long_file_names=yes
2628 # Test for long file names in all the places we know might matter:
2629 # . the current directory, where building will happen
2630 # $prefix/lib where we will be installing things
2631 # $exec_prefix/lib likewise
2632 # eval it to expand exec_prefix.
2633 # $TMPDIR if set, where it might want to write temporary files
2634 # if $TMPDIR is not set:
2635 # /tmp where it might want to write temporary files
2638 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2641 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2643 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2644 test -d $ac_dir || continue
2645 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2646 ac_xdir=$ac_dir/cf$$
2647 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2648 ac_tf1=$ac_xdir/conftest9012345
2649 ac_tf2=$ac_xdir/conftest9012346
2650 (echo 1 >$ac_tf1) 2>/dev/null
2651 (echo 2 >$ac_tf2) 2>/dev/null
2652 ac_val=`cat $ac_tf1 2>/dev/null`
2653 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2654 ac_cv_sys_long_file_names=no
2655 rm -rf $ac_xdir 2>/dev/null
2658 rm -rf $ac_xdir 2>/dev/null
2661 echo "$as_me:2661: result: $ac_cv_sys_long_file_names" >&5
2662 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2663 if test $ac_cv_sys_long_file_names = yes; then
2665 cat >>confdefs.h <<\EOF
2666 #define HAVE_LONG_FILE_NAMES 1
2671 # if we find pkg-config, check if we should install the ".pc" files.
2673 echo "$as_me:2673: checking if you want to use pkg-config" >&5
2674 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2676 # Check whether --with-pkg-config or --without-pkg-config was given.
2677 if test "${with_pkg_config+set}" = set; then
2678 withval="$with_pkg_config"
2679 cf_pkg_config=$withval
2683 echo "$as_me:2683: result: $cf_pkg_config" >&5
2684 echo "${ECHO_T}$cf_pkg_config" >&6
2686 case $cf_pkg_config in #(vi
2691 # Extract the first word of "pkg-config", so it can be a program name with args.
2692 set dummy pkg-config; ac_word=$2
2693 echo "$as_me:2693: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2703 ac_save_IFS=$IFS; IFS=$ac_path_separator
2705 for ac_dir in $ac_dummy; do
2707 test -z "$ac_dir" && ac_dir=.
2708 if $as_executable_p "$ac_dir/$ac_word"; then
2709 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2710 echo "$as_me:2710: found $ac_dir/$ac_word" >&5
2715 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
2719 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2721 if test -n "$PKG_CONFIG"; then
2722 echo "$as_me:2722: result: $PKG_CONFIG" >&5
2723 echo "${ECHO_T}$PKG_CONFIG" >&6
2725 echo "$as_me:2725: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2735 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2736 if test "$PKG_CONFIG" != none ; then
2738 if test "x$prefix" != xNONE; then
2739 cf_path_syntax="$prefix"
2741 cf_path_syntax="$ac_default_prefix"
2744 case ".$PKG_CONFIG" in #(vi
2745 .\$\(*\)*|.\'*\'*) #(vi
2749 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2752 eval PKG_CONFIG="$PKG_CONFIG"
2753 case ".$PKG_CONFIG" in #(vi
2755 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2760 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2763 { { echo "$as_me:2763: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2764 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2765 { (exit 1); exit 1; }; }
2771 if test "$PKG_CONFIG" != no ; then
2772 echo "$as_me:2772: checking if we should install .pc files for $PKG_CONFIG" >&5
2773 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2775 # Leave this as something that can be overridden in the environment.
2776 if test -z "$PKG_CONFIG_LIBDIR" ; then
2777 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
2779 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
2780 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
2782 # Check whether --enable-pc-files or --disable-pc-files was given.
2783 if test "${enable_pc_files+set}" = set; then
2784 enableval="$enable_pc_files"
2785 enable_pc_files=$enableval
2789 echo "$as_me:2789: result: $enable_pc_files" >&5
2790 echo "${ECHO_T}$enable_pc_files" >&6
2792 echo "$as_me:2792: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 { echo "$as_me:2794: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
2795 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
2800 echo "$as_me:2800: checking if we should assume mixed-case filenames" >&5
2801 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2803 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2804 if test "${enable_mixed_case+set}" = set; then
2805 enableval="$enable_mixed_case"
2806 enable_mixedcase=$enableval
2808 enable_mixedcase=auto
2810 echo "$as_me:2810: result: $enable_mixedcase" >&5
2811 echo "${ECHO_T}$enable_mixedcase" >&6
2812 if test "$enable_mixedcase" = "auto" ; then
2814 echo "$as_me:2814: checking if filesystem supports mixed-case filenames" >&5
2815 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2816 if test "${cf_cv_mixedcase+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test "$cross_compiling" = yes ; then
2821 case $target_alias in #(vi
2822 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2830 rm -f conftest CONFTEST
2832 if test -f CONFTEST ; then
2837 rm -f conftest CONFTEST
2841 echo "$as_me:2841: result: $cf_cv_mixedcase" >&5
2842 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2843 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2844 #define MIXEDCASE_FILENAMES 1
2848 cf_cv_mixedcase=$enable_mixedcase
2849 if test "$enable_mixedcase" = "yes" ; then
2850 cat >>confdefs.h <<\EOF
2851 #define MIXEDCASE_FILENAMES 1
2857 # do this after mixed-case option (tags/TAGS is not as important as tic).
2858 echo "$as_me:2858: checking whether ${MAKE-make} sets \${MAKE}" >&5
2859 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2860 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2861 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 cat >conftest.make <<\EOF
2866 @echo 'ac_maketemp="${MAKE}"'
2868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2869 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2870 if test -n "$ac_maketemp"; then
2871 eval ac_cv_prog_make_${ac_make}_set=yes
2873 eval ac_cv_prog_make_${ac_make}_set=no
2877 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2878 echo "$as_me:2878: result: yes" >&5
2879 echo "${ECHO_T}yes" >&6
2882 echo "$as_me:2882: result: no" >&5
2883 echo "${ECHO_T}no" >&6
2884 SET_MAKE="MAKE=${MAKE-make}"
2887 for ac_prog in exctags ctags
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 echo "$as_me:2891: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_CTAGS+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 if test -n "$CTAGS"; then
2897 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2899 ac_save_IFS=$IFS; IFS=$ac_path_separator
2901 for ac_dir in $ac_dummy; do
2903 test -z "$ac_dir" && ac_dir=.
2904 $as_executable_p "$ac_dir/$ac_word" || continue
2905 ac_cv_prog_CTAGS="$ac_prog"
2906 echo "$as_me:2906: found $ac_dir/$ac_word" >&5
2912 CTAGS=$ac_cv_prog_CTAGS
2913 if test -n "$CTAGS"; then
2914 echo "$as_me:2914: result: $CTAGS" >&5
2915 echo "${ECHO_T}$CTAGS" >&6
2917 echo "$as_me:2917: result: no" >&5
2918 echo "${ECHO_T}no" >&6
2921 test -n "$CTAGS" && break
2924 for ac_prog in exetags etags
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy $ac_prog; ac_word=$2
2928 echo "$as_me:2928: checking for $ac_word" >&5
2929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930 if test "${ac_cv_prog_ETAGS+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 if test -n "$ETAGS"; then
2934 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2936 ac_save_IFS=$IFS; IFS=$ac_path_separator
2938 for ac_dir in $ac_dummy; do
2940 test -z "$ac_dir" && ac_dir=.
2941 $as_executable_p "$ac_dir/$ac_word" || continue
2942 ac_cv_prog_ETAGS="$ac_prog"
2943 echo "$as_me:2943: found $ac_dir/$ac_word" >&5
2949 ETAGS=$ac_cv_prog_ETAGS
2950 if test -n "$ETAGS"; then
2951 echo "$as_me:2951: result: $ETAGS" >&5
2952 echo "${ECHO_T}$ETAGS" >&6
2954 echo "$as_me:2954: result: no" >&5
2955 echo "${ECHO_T}no" >&6
2958 test -n "$ETAGS" && break
2961 # Extract the first word of "${CTAGS-ctags}", so it can be a program name with args.
2962 set dummy ${CTAGS-ctags}; ac_word=$2
2963 echo "$as_me:2963: checking for $ac_word" >&5
2964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2965 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 if test -n "$MAKE_LOWER_TAGS"; then
2969 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2971 ac_save_IFS=$IFS; IFS=$ac_path_separator
2973 for ac_dir in $ac_dummy; do
2975 test -z "$ac_dir" && ac_dir=.
2976 $as_executable_p "$ac_dir/$ac_word" || continue
2977 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2978 echo "$as_me:2978: found $ac_dir/$ac_word" >&5
2982 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2985 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2986 if test -n "$MAKE_LOWER_TAGS"; then
2987 echo "$as_me:2987: result: $MAKE_LOWER_TAGS" >&5
2988 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2990 echo "$as_me:2990: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2994 if test "$cf_cv_mixedcase" = yes ; then
2995 # Extract the first word of "${ETAGS-etags}", so it can be a program name with args.
2996 set dummy ${ETAGS-etags}; ac_word=$2
2997 echo "$as_me:2997: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 if test -n "$MAKE_UPPER_TAGS"; then
3003 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3005 ac_save_IFS=$IFS; IFS=$ac_path_separator
3007 for ac_dir in $ac_dummy; do
3009 test -z "$ac_dir" && ac_dir=.
3010 $as_executable_p "$ac_dir/$ac_word" || continue
3011 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3012 echo "$as_me:3012: found $ac_dir/$ac_word" >&5
3016 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3019 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3020 if test -n "$MAKE_UPPER_TAGS"; then
3021 echo "$as_me:3021: result: $MAKE_UPPER_TAGS" >&5
3022 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3024 echo "$as_me:3024: result: no" >&5
3025 echo "${ECHO_T}no" >&6
3032 if test "$MAKE_UPPER_TAGS" = yes ; then
3038 if test "$MAKE_LOWER_TAGS" = yes ; then
3044 echo "$as_me:3044: checking for makeflags variable" >&5
3045 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3046 if test "${cf_cv_makeflags+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3053 cat >cf_makeflags.tmp <<CF_EOF
3056 @ echo '.$cf_option'
3058 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
3059 case "$cf_result" in
3061 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3062 case "$cf_result" in
3063 .*CC=*) cf_cv_makeflags=
3065 *) cf_cv_makeflags=$cf_option
3071 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3075 rm -f cf_makeflags.tmp
3078 echo "$as_me:3078: result: $cf_cv_makeflags" >&5
3079 echo "${ECHO_T}$cf_cv_makeflags" >&6
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3084 echo "$as_me:3084: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 if test "${ac_cv_prog_RANLIB+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 if test -n "$RANLIB"; then
3090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3092 ac_save_IFS=$IFS; IFS=$ac_path_separator
3094 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 $as_executable_p "$ac_dir/$ac_word" || continue
3098 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3099 echo "$as_me:3099: found $ac_dir/$ac_word" >&5
3105 RANLIB=$ac_cv_prog_RANLIB
3106 if test -n "$RANLIB"; then
3107 echo "$as_me:3107: result: $RANLIB" >&5
3108 echo "${ECHO_T}$RANLIB" >&6
3110 echo "$as_me:3110: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3115 if test -z "$ac_cv_prog_RANLIB"; then
3116 ac_ct_RANLIB=$RANLIB
3117 # Extract the first word of "ranlib", so it can be a program name with args.
3118 set dummy ranlib; ac_word=$2
3119 echo "$as_me:3119: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 if test -n "$ac_ct_RANLIB"; then
3125 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3127 ac_save_IFS=$IFS; IFS=$ac_path_separator
3129 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 $as_executable_p "$ac_dir/$ac_word" || continue
3133 ac_cv_prog_ac_ct_RANLIB="ranlib"
3134 echo "$as_me:3134: found $ac_dir/$ac_word" >&5
3138 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3141 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3142 if test -n "$ac_ct_RANLIB"; then
3143 echo "$as_me:3143: result: $ac_ct_RANLIB" >&5
3144 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3146 echo "$as_me:3146: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3150 RANLIB=$ac_ct_RANLIB
3152 RANLIB="$ac_cv_prog_RANLIB"
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}ld; ac_word=$2
3158 echo "$as_me:3158: checking for $ac_word" >&5
3159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160 if test "${ac_cv_prog_LD+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 if test -n "$LD"; then
3164 ac_cv_prog_LD="$LD" # Let the user override the test.
3166 ac_save_IFS=$IFS; IFS=$ac_path_separator
3168 for ac_dir in $ac_dummy; do
3170 test -z "$ac_dir" && ac_dir=.
3171 $as_executable_p "$ac_dir/$ac_word" || continue
3172 ac_cv_prog_LD="${ac_tool_prefix}ld"
3173 echo "$as_me:3173: found $ac_dir/$ac_word" >&5
3180 if test -n "$LD"; then
3181 echo "$as_me:3181: result: $LD" >&5
3182 echo "${ECHO_T}$LD" >&6
3184 echo "$as_me:3184: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3189 if test -z "$ac_cv_prog_LD"; then
3191 # Extract the first word of "ld", so it can be a program name with args.
3192 set dummy ld; ac_word=$2
3193 echo "$as_me:3193: checking for $ac_word" >&5
3194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 if test -n "$ac_ct_LD"; then
3199 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3201 ac_save_IFS=$IFS; IFS=$ac_path_separator
3203 for ac_dir in $ac_dummy; do
3205 test -z "$ac_dir" && ac_dir=.
3206 $as_executable_p "$ac_dir/$ac_word" || continue
3207 ac_cv_prog_ac_ct_LD="ld"
3208 echo "$as_me:3208: found $ac_dir/$ac_word" >&5
3212 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3215 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3216 if test -n "$ac_ct_LD"; then
3217 echo "$as_me:3217: result: $ac_ct_LD" >&5
3218 echo "${ECHO_T}$ac_ct_LD" >&6
3220 echo "$as_me:3220: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}ar; ac_word=$2
3232 echo "$as_me:3232: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3234 if test "${ac_cv_prog_AR+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 if test -n "$AR"; then
3238 ac_cv_prog_AR="$AR" # Let the user override the test.
3240 ac_save_IFS=$IFS; IFS=$ac_path_separator
3242 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 $as_executable_p "$ac_dir/$ac_word" || continue
3246 ac_cv_prog_AR="${ac_tool_prefix}ar"
3247 echo "$as_me:3247: found $ac_dir/$ac_word" >&5
3254 if test -n "$AR"; then
3255 echo "$as_me:3255: result: $AR" >&5
3256 echo "${ECHO_T}$AR" >&6
3258 echo "$as_me:3258: result: no" >&5
3259 echo "${ECHO_T}no" >&6
3263 if test -z "$ac_cv_prog_AR"; then
3265 # Extract the first word of "ar", so it can be a program name with args.
3266 set dummy ar; ac_word=$2
3267 echo "$as_me:3267: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 if test -n "$ac_ct_AR"; then
3273 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3275 ac_save_IFS=$IFS; IFS=$ac_path_separator
3277 for ac_dir in $ac_dummy; do
3279 test -z "$ac_dir" && ac_dir=.
3280 $as_executable_p "$ac_dir/$ac_word" || continue
3281 ac_cv_prog_ac_ct_AR="ar"
3282 echo "$as_me:3282: found $ac_dir/$ac_word" >&5
3286 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3289 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3290 if test -n "$ac_ct_AR"; then
3291 echo "$as_me:3291: result: $ac_ct_AR" >&5
3292 echo "${ECHO_T}$ac_ct_AR" >&6
3294 echo "$as_me:3294: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}ar; ac_word=$2
3306 echo "$as_me:3306: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_prog_AR+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 if test -n "$AR"; then
3312 ac_cv_prog_AR="$AR" # Let the user override the test.
3314 ac_save_IFS=$IFS; IFS=$ac_path_separator
3316 for ac_dir in $ac_dummy; do
3318 test -z "$ac_dir" && ac_dir=.
3319 $as_executable_p "$ac_dir/$ac_word" || continue
3320 ac_cv_prog_AR="${ac_tool_prefix}ar"
3321 echo "$as_me:3321: found $ac_dir/$ac_word" >&5
3328 if test -n "$AR"; then
3329 echo "$as_me:3329: result: $AR" >&5
3330 echo "${ECHO_T}$AR" >&6
3332 echo "$as_me:3332: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3337 if test -z "$ac_cv_prog_AR"; then
3339 # Extract the first word of "ar", so it can be a program name with args.
3340 set dummy ar; ac_word=$2
3341 echo "$as_me:3341: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 if test -n "$ac_ct_AR"; then
3347 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3349 ac_save_IFS=$IFS; IFS=$ac_path_separator
3351 for ac_dir in $ac_dummy; do
3353 test -z "$ac_dir" && ac_dir=.
3354 $as_executable_p "$ac_dir/$ac_word" || continue
3355 ac_cv_prog_ac_ct_AR="ar"
3356 echo "$as_me:3356: found $ac_dir/$ac_word" >&5
3360 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3363 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3364 if test -n "$ac_ct_AR"; then
3365 echo "$as_me:3365: result: $ac_ct_AR" >&5
3366 echo "${ECHO_T}$ac_ct_AR" >&6
3368 echo "$as_me:3368: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3377 echo "$as_me:3377: checking for options to update archives" >&5
3378 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3379 if test "${cf_cv_ar_flags+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 cf_cv_ar_flags=unknown
3384 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3387 # check if $ARFLAGS already contains this choice
3388 if test "x$ARFLAGS" != "x" ; then
3389 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3390 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3396 rm -f conftest.$ac_cv_objext
3399 cat >conftest.$ac_ext <<EOF
3400 #line 3400 "configure"
3401 int testdata[3] = { 123, 456, 789 };
3403 if { (eval echo "$as_me:3403: \"$ac_compile\"") >&5
3404 (eval $ac_compile) 2>&5
3406 echo "$as_me:3406: \$? = $ac_status" >&5
3407 (exit $ac_status); } ; then
3408 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3409 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3410 if test -f conftest.a ; then
3411 cf_cv_ar_flags=$cf_ar_flags
3415 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3417 echo "${as_me-configure}:3417: testing cannot compile test-program ..." 1>&5
3422 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3425 echo "$as_me:3425: result: $cf_cv_ar_flags" >&5
3426 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3428 if test -n "$ARFLAGS" ; then
3429 if test -n "$cf_cv_ar_flags" ; then
3430 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3433 ARFLAGS=$cf_cv_ar_flags
3436 echo "$as_me:3436: checking if you have specified an install-prefix" >&5
3437 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3439 # Check whether --with-install-prefix or --without-install-prefix was given.
3440 if test "${with_install_prefix+set}" = set; then
3441 withval="$with_install_prefix"
3442 case "$withval" in #(vi
3445 *) DESTDIR="$withval"
3449 echo "$as_me:3449: result: $DESTDIR" >&5
3450 echo "${ECHO_T}$DESTDIR" >&6
3452 ###############################################################################
3454 # If we're cross-compiling, allow the user to override the tools and their
3455 # options. The configure script is oriented toward identifying the host
3456 # compiler, etc., but we need a build compiler to generate parts of the source.
3458 if test "$cross_compiling" = yes ; then
3460 # defaults that we might want to override
3461 : ${BUILD_CFLAGS:=''}
3462 : ${BUILD_CPPFLAGS:=''}
3463 : ${BUILD_LDFLAGS:=''}
3465 : ${BUILD_EXEEXT:='$x'}
3466 : ${BUILD_OBJEXT:='o'}
3468 # Check whether --with-build-cc or --without-build-cc was given.
3469 if test "${with_build_cc+set}" = set; then
3470 withval="$with_build_cc"
3473 for ac_prog in gcc cc cl
3475 # Extract the first word of "$ac_prog", so it can be a program name with args.
3476 set dummy $ac_prog; ac_word=$2
3477 echo "$as_me:3477: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3479 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 if test -n "$BUILD_CC"; then
3483 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3485 ac_save_IFS=$IFS; IFS=$ac_path_separator
3487 for ac_dir in $ac_dummy; do
3489 test -z "$ac_dir" && ac_dir=.
3490 $as_executable_p "$ac_dir/$ac_word" || continue
3491 ac_cv_prog_BUILD_CC="$ac_prog"
3492 echo "$as_me:3492: found $ac_dir/$ac_word" >&5
3498 BUILD_CC=$ac_cv_prog_BUILD_CC
3499 if test -n "$BUILD_CC"; then
3500 echo "$as_me:3500: result: $BUILD_CC" >&5
3501 echo "${ECHO_T}$BUILD_CC" >&6
3503 echo "$as_me:3503: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 test -n "$BUILD_CC" && break
3511 echo "$as_me:3511: checking for native build C compiler" >&5
3512 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3513 echo "$as_me:3513: result: $BUILD_CC" >&5
3514 echo "${ECHO_T}$BUILD_CC" >&6
3516 echo "$as_me:3516: checking for native build C preprocessor" >&5
3517 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3519 # Check whether --with-build-cpp or --without-build-cpp was given.
3520 if test "${with_build_cpp+set}" = set; then
3521 withval="$with_build_cpp"
3522 BUILD_CPP="$withval"
3524 BUILD_CPP='${BUILD_CC} -E'
3526 echo "$as_me:3526: result: $BUILD_CPP" >&5
3527 echo "${ECHO_T}$BUILD_CPP" >&6
3529 echo "$as_me:3529: checking for native build C flags" >&5
3530 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3532 # Check whether --with-build-cflags or --without-build-cflags was given.
3533 if test "${with_build_cflags+set}" = set; then
3534 withval="$with_build_cflags"
3535 BUILD_CFLAGS="$withval"
3537 echo "$as_me:3537: result: $BUILD_CFLAGS" >&5
3538 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3540 echo "$as_me:3540: checking for native build C preprocessor-flags" >&5
3541 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3543 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3544 if test "${with_build_cppflags+set}" = set; then
3545 withval="$with_build_cppflags"
3546 BUILD_CPPFLAGS="$withval"
3548 echo "$as_me:3548: result: $BUILD_CPPFLAGS" >&5
3549 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3551 echo "$as_me:3551: checking for native build linker-flags" >&5
3552 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3554 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3555 if test "${with_build_ldflags+set}" = set; then
3556 withval="$with_build_ldflags"
3557 BUILD_LDFLAGS="$withval"
3559 echo "$as_me:3559: result: $BUILD_LDFLAGS" >&5
3560 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3562 echo "$as_me:3562: checking for native build linker-libraries" >&5
3563 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3565 # Check whether --with-build-libs or --without-build-libs was given.
3566 if test "${with_build_libs+set}" = set; then
3567 withval="$with_build_libs"
3568 BUILD_LIBS="$withval"
3570 echo "$as_me:3570: result: $BUILD_LIBS" >&5
3571 echo "${ECHO_T}$BUILD_LIBS" >&6
3573 # this assumes we're on Unix.
3577 : ${BUILD_CC:='${CC}'}
3579 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3580 { { echo "$as_me:3580: error: Cross-build requires two compilers.
3581 Use --with-build-cc to specify the native compiler." >&5
3582 echo "$as_me: error: Cross-build requires two compilers.
3583 Use --with-build-cc to specify the native compiler." >&2;}
3584 { (exit 1); exit 1; }; }
3588 : ${BUILD_CC:='${CC}'}
3589 : ${BUILD_CPP:='${CPP}'}
3590 : ${BUILD_CFLAGS:='${CFLAGS}'}
3591 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3592 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3593 : ${BUILD_LIBS:='${LIBS}'}
3594 : ${BUILD_EXEEXT:='$x'}
3595 : ${BUILD_OBJEXT:='o'}
3598 ###############################################################################
3600 ### Options to allow the user to specify the set of libraries which are used.
3601 ### Use "--without-normal --with-shared" to allow the default model to be
3602 ### shared, for example.
3604 echo "$as_me:3604: checking for specified models" >&5
3605 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3606 test -z "$cf_list_models" && cf_list_models=normal
3607 echo "$as_me:3607: result: $cf_list_models" >&5
3608 echo "${ECHO_T}$cf_list_models" >&6
3610 ### Use the first model as the default, and save its suffix for use in building
3611 ### up test-applications.
3612 echo "$as_me:3612: checking for default model" >&5
3613 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3614 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3615 echo "$as_me:3615: result: $DFT_LWR_MODEL" >&5
3616 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3618 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3620 # Check whether --with-curses-dir or --without-curses-dir was given.
3621 if test "${with_curses_dir+set}" = set; then
3622 withval="$with_curses_dir"
3624 if test "x$prefix" != xNONE; then
3625 cf_path_syntax="$prefix"
3627 cf_path_syntax="$ac_default_prefix"
3630 case ".$withval" in #(vi
3631 .\$\(*\)*|.\'*\'*) #(vi
3635 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3638 eval withval="$withval"
3639 case ".$withval" in #(vi
3641 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3646 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3649 { { echo "$as_me:3649: error: expected a pathname, not \"$withval\"" >&5
3650 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3651 { (exit 1); exit 1; }; }
3655 cf_cv_curses_dir=$withval
3660 echo "$as_me:3660: checking if you want wide-character code" >&5
3661 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3663 # Check whether --enable-widec or --disable-widec was given.
3664 if test "${enable_widec+set}" = set; then
3665 enableval="$enable_widec"
3666 with_widec=$enableval
3670 echo "$as_me:3670: result: $with_widec" >&5
3671 echo "${ECHO_T}$with_widec" >&6
3672 if test "$with_widec" = yes ; then
3674 echo "$as_me:3674: checking for multibyte character support" >&5
3675 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3676 if test "${cf_cv_utf8_lib+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 cf_save_LIBS="$LIBS"
3681 cat >conftest.$ac_ext <<_ACEOF
3682 #line 3682 "configure"
3683 #include "confdefs.h"
3694 rm -f conftest.$ac_objext conftest$ac_exeext
3695 if { (eval echo "$as_me:3695: \"$ac_link\"") >&5
3696 (eval $ac_link) 2>&5
3698 echo "$as_me:3698: \$? = $ac_status" >&5
3699 (exit $ac_status); } &&
3700 { ac_try='test -s conftest$ac_exeext'
3701 { (eval echo "$as_me:3701: \"$ac_try\"") >&5
3704 echo "$as_me:3704: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
3708 echo "$as_me: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3712 # will be set on completion of the AC_TRY_LINK below.
3713 cf_cv_header_path_utf8=
3714 cf_cv_library_path_utf8=
3716 echo "${as_me-configure}:3716: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3718 cf_save_LIBS="$LIBS"
3720 cat >conftest.$ac_ext <<_ACEOF
3721 #line 3721 "configure"
3722 #include "confdefs.h"
3724 #include <libutf8.h>
3733 rm -f conftest.$ac_objext conftest$ac_exeext
3734 if { (eval echo "$as_me:3734: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3737 echo "$as_me:3737: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -s conftest$ac_exeext'
3740 { (eval echo "$as_me:3740: \"$ac_try\"") >&5
3743 echo "$as_me:3743: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3746 cf_cv_find_linkage_utf8=yes
3747 cf_cv_header_path_utf8=/usr/include
3748 cf_cv_library_path_utf8=/usr/lib
3751 echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 LIBS="-lutf8 $cf_save_LIBS"
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line 3757 "configure"
3758 #include "confdefs.h"
3760 #include <libutf8.h>
3769 rm -f conftest.$ac_objext conftest$ac_exeext
3770 if { (eval echo "$as_me:3770: \"$ac_link\"") >&5
3771 (eval $ac_link) 2>&5
3773 echo "$as_me:3773: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:3776: \"$ac_try\"") >&5
3779 echo "$as_me:3779: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3782 cf_cv_find_linkage_utf8=yes
3783 cf_cv_header_path_utf8=/usr/include
3784 cf_cv_library_path_utf8=/usr/lib
3785 cf_cv_library_file_utf8="-lutf8"
3788 echo "$as_me: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3791 cf_cv_find_linkage_utf8=no
3792 LIBS="$cf_save_LIBS"
3794 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
3796 echo "${as_me-configure}:3796: testing find linkage for utf8 library ..." 1>&5
3798 echo "${as_me-configure}:3798: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3800 cf_save_CPPFLAGS="$CPPFLAGS"
3801 cf_test_CPPFLAGS="$CPPFLAGS"
3805 # collect the current set of include-directories from compiler flags
3806 cf_header_path_list=""
3807 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3808 for cf_header_path in $CPPFLAGS $CFLAGS
3810 case $cf_header_path in #(vi
3812 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
3814 test "$cf_header_path" != "NONE" && \
3815 test -d "$cf_header_path" && \
3817 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
3818 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
3819 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
3820 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
3821 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
3822 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
3825 cf_header_path_list="$cf_header_path_list $cf_search"
3831 # add the variations for the package we are looking for
3835 test "/usr" != "$prefix" && \
3837 (test $prefix = NONE || test -d $prefix) && {
3838 test -n "$verbose" && echo " ... testing for include-directories under /usr"
3839 test -d /usr/include && cf_search="$cf_search /usr/include"
3840 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
3841 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
3842 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
3843 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
3846 test "$prefix" != "NONE" && \
3847 test -d "$prefix" && \
3849 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
3850 test -d $prefix/include && cf_search="$cf_search $prefix/include"
3851 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
3852 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
3853 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
3854 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
3857 test "/usr/local" != "$prefix" && \
3858 test -d "/usr/local" && \
3859 (test $prefix = NONE || test -d $prefix) && {
3860 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
3861 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
3862 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
3863 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
3864 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
3865 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
3868 test "/opt" != "$prefix" && \
3870 (test $prefix = NONE || test -d $prefix) && {
3871 test -n "$verbose" && echo " ... testing for include-directories under /opt"
3872 test -d /opt/include && cf_search="$cf_search /opt/include"
3873 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
3874 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
3875 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
3876 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
3879 test "$HOME" != "$prefix" && \
3880 test -d "$HOME" && \
3881 (test $prefix = NONE || test -d $prefix) && {
3882 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
3883 test -d $HOME/include && cf_search="$cf_search $HOME/include"
3884 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
3885 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
3886 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
3887 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
3890 test "$includedir" != NONE && \
3891 test "$includedir" != "/usr/include" && \
3892 test -d "$includedir" && {
3893 test -d $includedir && cf_search="$cf_search $includedir"
3894 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
3897 test "$oldincludedir" != NONE && \
3898 test "$oldincludedir" != "/usr/include" && \
3899 test -d "$oldincludedir" && {
3900 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
3901 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
3904 cf_search="$cf_search $cf_header_path_list"
3906 for cf_cv_header_path_utf8 in $cf_search
3908 if test -d $cf_cv_header_path_utf8 ; then
3909 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
3911 echo "${as_me-configure}:3911: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
3913 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line 3915 "configure"
3916 #include "confdefs.h"
3918 #include <libutf8.h>
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:3928: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3931 echo "$as_me:3931: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:3934: \"$ac_try\"") >&5
3937 echo "$as_me:3937: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3940 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
3942 echo "${as_me-configure}:3942: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
3944 cf_cv_find_linkage_utf8=maybe
3945 cf_test_CPPFLAGS="$CPPFLAGS"
3948 echo "$as_me: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 CPPFLAGS="$cf_save_CPPFLAGS"
3954 rm -f conftest.$ac_objext conftest.$ac_ext
3958 if test "$cf_cv_find_linkage_utf8" = maybe ; then
3960 echo "${as_me-configure}:3960: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
3962 cf_save_LIBS="$LIBS"
3963 cf_save_LDFLAGS="$LDFLAGS"
3965 if test "$cf_cv_find_linkage_utf8" != yes ; then
3968 cf_library_path_list=""
3969 if test -n "${LDFLAGS}${LIBS}" ; then
3970 for cf_library_path in $LDFLAGS $LIBS
3972 case $cf_library_path in #(vi
3974 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
3976 test "$cf_library_path" != "NONE" && \
3977 test -d "$cf_library_path" && \
3979 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
3980 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
3981 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
3982 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
3983 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
3984 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
3987 cf_library_path_list="$cf_library_path_list $cf_search"
3995 test "/usr" != "$prefix" && \
3997 (test $prefix = NONE || test -d $prefix) && {
3998 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
3999 test -d /usr/lib && cf_search="$cf_search /usr/lib"
4000 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
4001 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
4002 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
4003 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
4006 test "$prefix" != "NONE" && \
4007 test -d "$prefix" && \
4009 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
4010 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
4011 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
4012 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
4013 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
4014 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
4017 test "/usr/local" != "$prefix" && \
4018 test -d "/usr/local" && \
4019 (test $prefix = NONE || test -d $prefix) && {
4020 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
4021 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
4022 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
4023 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
4024 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
4025 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
4028 test "/opt" != "$prefix" && \
4030 (test $prefix = NONE || test -d $prefix) && {
4031 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
4032 test -d /opt/lib && cf_search="$cf_search /opt/lib"
4033 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
4034 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
4035 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
4036 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
4039 test "$HOME" != "$prefix" && \
4040 test -d "$HOME" && \
4041 (test $prefix = NONE || test -d $prefix) && {
4042 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
4043 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
4044 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
4045 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
4046 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
4047 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
4050 cf_search="$cf_library_path_list $cf_search"
4052 for cf_cv_library_path_utf8 in $cf_search
4054 if test -d $cf_cv_library_path_utf8 ; then
4055 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
4057 echo "${as_me-configure}:4057: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
4059 CPPFLAGS="$cf_test_CPPFLAGS"
4060 LIBS="-lutf8 $cf_save_LIBS"
4061 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
4062 cat >conftest.$ac_ext <<_ACEOF
4063 #line 4063 "configure"
4064 #include "confdefs.h"
4066 #include <libutf8.h>
4075 rm -f conftest.$ac_objext conftest$ac_exeext
4076 if { (eval echo "$as_me:4076: \"$ac_link\"") >&5
4077 (eval $ac_link) 2>&5
4079 echo "$as_me:4079: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:4082: \"$ac_try\"") >&5
4085 echo "$as_me:4085: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4088 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
4090 echo "${as_me-configure}:4090: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
4092 cf_cv_find_linkage_utf8=yes
4093 cf_cv_library_file_utf8="-lutf8"
4096 echo "$as_me: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 CPPFLAGS="$cf_save_CPPFLAGS"
4100 LIBS="$cf_save_LIBS"
4101 LDFLAGS="$cf_save_LDFLAGS"
4104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4107 CPPFLAGS="$cf_save_CPPFLAGS"
4108 LDFLAGS="$cf_save_LDFLAGS"
4112 cf_cv_find_linkage_utf8=no
4116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4121 LIBS="$cf_save_LIBS"
4123 if test "$cf_cv_find_linkage_utf8" = yes ; then
4124 cf_cv_utf8_lib=add-on
4130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4132 echo "$as_me:4132: result: $cf_cv_utf8_lib" >&5
4133 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
4135 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
4137 if test "$cf_cv_utf8_lib" = "add-on" ; then
4138 cat >>confdefs.h <<\EOF
4139 #define HAVE_LIBUTF8_H 1
4142 if test -n "$cf_cv_header_path_utf8" ; then
4143 for cf_add_incdir in $cf_cv_header_path_utf8
4145 while test $cf_add_incdir != /usr/include
4147 if test -d $cf_add_incdir
4150 if test -n "$CFLAGS$CPPFLAGS" ; then
4151 # a loop is needed to ensure we can add subdirs of existing dirs
4152 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4153 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4154 cf_have_incdir=yes; break
4159 if test "$cf_have_incdir" = no ; then
4160 if test "$cf_add_incdir" = /usr/local/include ; then
4161 if test "$GCC" = yes
4163 cf_save_CPPFLAGS=$CPPFLAGS
4164 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 #line 4166 "configure"
4167 #include "confdefs.h"
4177 rm -f conftest.$ac_objext
4178 if { (eval echo "$as_me:4178: \"$ac_compile\"") >&5
4179 (eval $ac_compile) 2>&5
4181 echo "$as_me:4181: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (eval echo "$as_me:4184: \"$ac_try\"") >&5
4187 echo "$as_me:4187: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4191 echo "$as_me: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4195 rm -f conftest.$ac_objext conftest.$ac_ext
4196 CPPFLAGS=$cf_save_CPPFLAGS
4201 if test "$cf_have_incdir" = no ; then
4202 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4204 echo "${as_me-configure}:4204: testing adding $cf_add_incdir to include-path ..." 1>&5
4206 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4208 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4209 test "$cf_top_incdir" = "$cf_add_incdir" && break
4210 cf_add_incdir="$cf_top_incdir"
4219 if test -n "$cf_cv_library_path_utf8" ; then
4220 for cf_add_libdir in $cf_cv_library_path_utf8
4222 if test $cf_add_libdir = /usr/lib ; then
4224 elif test -d $cf_add_libdir
4227 if test -n "$LDFLAGS$LIBS" ; then
4228 # a loop is needed to ensure we can add subdirs of existing dirs
4229 for cf_test_libdir in $LDFLAGS $LIBS ; do
4230 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4231 cf_have_libdir=yes; break
4235 if test "$cf_have_libdir" = no ; then
4236 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4238 echo "${as_me-configure}:4238: testing adding $cf_add_libdir to library-path ..." 1>&5
4240 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4246 LIBS="$cf_cv_library_file_utf8 $LIBS"
4249 cf_ncuconfig_root=ncursesw
4251 echo "Looking for ${cf_ncuconfig_root}-config"
4252 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4254 # Extract the first word of "$ac_prog", so it can be a program name with args.
4255 set dummy $ac_prog; ac_word=$2
4256 echo "$as_me:4256: checking for $ac_word" >&5
4257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4258 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 case $NCURSES_CONFIG in
4263 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
4266 ac_save_IFS=$IFS; IFS=$ac_path_separator
4268 for ac_dir in $ac_dummy; do
4270 test -z "$ac_dir" && ac_dir=.
4271 if $as_executable_p "$ac_dir/$ac_word"; then
4272 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
4273 echo "$as_me:4273: found $ac_dir/$ac_word" >&5
4281 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
4283 if test -n "$NCURSES_CONFIG"; then
4284 echo "$as_me:4284: result: $NCURSES_CONFIG" >&5
4285 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4287 echo "$as_me:4287: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4291 test -n "$NCURSES_CONFIG" && break
4293 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
4295 if test "$NCURSES_CONFIG" != none ; then
4297 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4298 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4300 # even with config script, some packages use no-override for curses.h
4302 echo "$as_me:4302: checking if we have identified curses headers" >&5
4303 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4304 if test "${cf_cv_ncurses_header+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 cf_cv_ncurses_header=none
4311 ncursesw/ncurses.h \
4315 cat >conftest.$ac_ext <<_ACEOF
4316 #line 4316 "configure"
4317 #include "confdefs.h"
4318 #include <${cf_header}>
4322 initscr(); tgoto("?", 0,0)
4327 rm -f conftest.$ac_objext
4328 if { (eval echo "$as_me:4328: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>&5
4331 echo "$as_me:4331: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (eval echo "$as_me:4334: \"$ac_try\"") >&5
4337 echo "$as_me:4337: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 cf_cv_ncurses_header=$cf_header; break
4341 echo "$as_me: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 rm -f conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me:4348: result: $cf_cv_ncurses_header" >&5
4349 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4351 if test "$cf_cv_ncurses_header" = none ; then
4352 { { echo "$as_me:4352: error: No curses header-files found" >&5
4353 echo "$as_me: error: No curses header-files found" >&2;}
4354 { (exit 1); exit 1; }; }
4357 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4359 for ac_header in $cf_cv_ncurses_header
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 echo "$as_me:4362: checking for $ac_header" >&5
4363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4368 #line 4368 "configure"
4369 #include "confdefs.h"
4370 #include <$ac_header>
4372 if { (eval echo "$as_me:4372: \"$ac_cpp conftest.$ac_ext\"") >&5
4373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4375 egrep -v '^ *\+' conftest.er1 >conftest.err
4377 cat conftest.err >&5
4378 echo "$as_me:4378: \$? = $ac_status" >&5
4379 (exit $ac_status); } >/dev/null; then
4380 if test -s conftest.err; then
4381 ac_cpp_err=$ac_c_preproc_warn_flag
4388 if test -z "$ac_cpp_err"; then
4389 eval "$as_ac_Header=yes"
4391 echo "$as_me: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 eval "$as_ac_Header=no"
4395 rm -f conftest.err conftest.$ac_ext
4397 echo "$as_me:4397: result: `eval echo '${'$as_ac_Header'}'`" >&5
4398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4400 cat >>confdefs.h <<EOF
4401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4407 cat >>confdefs.h <<\EOF
4411 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4413 cat >>confdefs.h <<EOF
4414 #define $cf_nculib_ROOT 1
4417 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4421 cf_ncuhdr_root=ncursesw
4423 test -n "$cf_cv_curses_dir" && \
4424 test "$cf_cv_curses_dir" != "no" && { \
4426 if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4427 for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
4429 while test $cf_add_incdir != /usr/include
4431 if test -d $cf_add_incdir
4434 if test -n "$CFLAGS$CPPFLAGS" ; then
4435 # a loop is needed to ensure we can add subdirs of existing dirs
4436 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4437 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4438 cf_have_incdir=yes; break
4443 if test "$cf_have_incdir" = no ; then
4444 if test "$cf_add_incdir" = /usr/local/include ; then
4445 if test "$GCC" = yes
4447 cf_save_CPPFLAGS=$CPPFLAGS
4448 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4449 cat >conftest.$ac_ext <<_ACEOF
4450 #line 4450 "configure"
4451 #include "confdefs.h"
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:4462: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
4465 echo "$as_me:4465: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -s conftest.$ac_objext'
4468 { (eval echo "$as_me:4468: \"$ac_try\"") >&5
4471 echo "$as_me:4471: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4475 echo "$as_me: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4479 rm -f conftest.$ac_objext conftest.$ac_ext
4480 CPPFLAGS=$cf_save_CPPFLAGS
4485 if test "$cf_have_incdir" = no ; then
4486 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4488 echo "${as_me-configure}:4488: testing adding $cf_add_incdir to include-path ..." 1>&5
4490 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4492 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4493 test "$cf_top_incdir" = "$cf_add_incdir" && break
4494 cf_add_incdir="$cf_top_incdir"
4505 echo "$as_me:4505: checking for $cf_ncuhdr_root header in include-path" >&5
4506 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4507 if test "${cf_cv_ncurses_h+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4512 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4513 for cf_header in $cf_header_list
4516 cat >conftest.$ac_ext <<_ACEOF
4517 #line 4517 "configure"
4518 #include "confdefs.h"
4520 #define _XOPEN_SOURCE_EXTENDED
4521 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
4522 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
4524 #include <$cf_header>
4529 #ifdef NCURSES_VERSION
4535 printf("%s\n", NCURSES_VERSION);
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:4549: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>&5
4552 echo "$as_me:4552: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:4555: \"$ac_try\"") >&5
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 cf_cv_ncurses_h=$cf_header
4563 echo "$as_me: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4567 rm -f conftest.$ac_objext conftest.$ac_ext
4569 test "$cf_cv_ncurses_h" != no && break
4573 echo "$as_me:4573: result: $cf_cv_ncurses_h" >&5
4574 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4576 if test "$cf_cv_ncurses_h" != no ; then
4577 cf_cv_ncurses_header=$cf_cv_ncurses_h
4580 echo "$as_me:4580: checking for $cf_ncuhdr_root include-path" >&5
4581 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4582 if test "${cf_cv_ncurses_h2+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 test -n "$verbose" && echo
4590 # collect the current set of include-directories from compiler flags
4591 cf_header_path_list=""
4592 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4593 for cf_header_path in $CPPFLAGS $CFLAGS
4595 case $cf_header_path in #(vi
4597 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4599 test "$cf_header_path" != "NONE" && \
4600 test -d "$cf_header_path" && \
4602 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4603 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4604 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4605 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4606 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4607 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4610 cf_header_path_list="$cf_header_path_list $cf_search"
4616 # add the variations for the package we are looking for
4620 test "/usr" != "$prefix" && \
4622 (test $prefix = NONE || test -d $prefix) && {
4623 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4624 test -d /usr/include && cf_search="$cf_search /usr/include"
4625 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
4626 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
4627 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
4628 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4631 test "$prefix" != "NONE" && \
4632 test -d "$prefix" && \
4634 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4635 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4636 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4637 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4638 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4639 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4642 test "/usr/local" != "$prefix" && \
4643 test -d "/usr/local" && \
4644 (test $prefix = NONE || test -d $prefix) && {
4645 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4646 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4647 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
4648 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
4649 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
4650 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4653 test "/opt" != "$prefix" && \
4655 (test $prefix = NONE || test -d $prefix) && {
4656 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4657 test -d /opt/include && cf_search="$cf_search /opt/include"
4658 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
4659 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
4660 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
4661 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4664 test "$HOME" != "$prefix" && \
4665 test -d "$HOME" && \
4666 (test $prefix = NONE || test -d $prefix) && {
4667 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4668 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4669 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
4670 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
4671 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
4672 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4675 test "$includedir" != NONE && \