2 # From configure.in Revision: 1.11 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20081225.
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/lib/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.20081225. 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| 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 # Extract the first word of "ctags", so it can be a program name with args.
2888 set dummy ctags; ac_word=$2
2889 echo "$as_me:2889: checking for $ac_word" >&5
2890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 if test -n "$MAKE_LOWER_TAGS"; then
2895 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2897 ac_save_IFS=$IFS; IFS=$ac_path_separator
2899 for ac_dir in $ac_dummy; do
2901 test -z "$ac_dir" && ac_dir=.
2902 $as_executable_p "$ac_dir/$ac_word" || continue
2903 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2904 echo "$as_me:2904: found $ac_dir/$ac_word" >&5
2908 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2911 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2912 if test -n "$MAKE_LOWER_TAGS"; then
2913 echo "$as_me:2913: result: $MAKE_LOWER_TAGS" >&5
2914 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2916 echo "$as_me:2916: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2920 if test "$cf_cv_mixedcase" = yes ; then
2921 # Extract the first word of "etags", so it can be a program name with args.
2922 set dummy etags; ac_word=$2
2923 echo "$as_me:2923: checking for $ac_word" >&5
2924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 if test -n "$MAKE_UPPER_TAGS"; then
2929 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2931 ac_save_IFS=$IFS; IFS=$ac_path_separator
2933 for ac_dir in $ac_dummy; do
2935 test -z "$ac_dir" && ac_dir=.
2936 $as_executable_p "$ac_dir/$ac_word" || continue
2937 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2938 echo "$as_me:2938: found $ac_dir/$ac_word" >&5
2942 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2945 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2946 if test -n "$MAKE_UPPER_TAGS"; then
2947 echo "$as_me:2947: result: $MAKE_UPPER_TAGS" >&5
2948 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2950 echo "$as_me:2950: result: no" >&5
2951 echo "${ECHO_T}no" >&6
2958 if test "$MAKE_UPPER_TAGS" = yes ; then
2964 if test "$MAKE_LOWER_TAGS" = yes ; then
2970 echo "$as_me:2970: checking for makeflags variable" >&5
2971 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2972 if test "${cf_cv_makeflags+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2979 cat >cf_makeflags.tmp <<CF_EOF
2982 @ echo '.$cf_option'
2984 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
2985 case "$cf_result" in
2987 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2988 case "$cf_result" in
2989 .*CC=*) cf_cv_makeflags=
2991 *) cf_cv_makeflags=$cf_option
2997 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3001 rm -f cf_makeflags.tmp
3004 echo "$as_me:3004: result: $cf_cv_makeflags" >&5
3005 echo "${ECHO_T}$cf_cv_makeflags" >&6
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3010 echo "$as_me:3010: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3012 if test "${ac_cv_prog_RANLIB+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 if test -n "$RANLIB"; then
3016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3018 ac_save_IFS=$IFS; IFS=$ac_path_separator
3020 for ac_dir in $ac_dummy; do
3022 test -z "$ac_dir" && ac_dir=.
3023 $as_executable_p "$ac_dir/$ac_word" || continue
3024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3025 echo "$as_me:3025: found $ac_dir/$ac_word" >&5
3031 RANLIB=$ac_cv_prog_RANLIB
3032 if test -n "$RANLIB"; then
3033 echo "$as_me:3033: result: $RANLIB" >&5
3034 echo "${ECHO_T}$RANLIB" >&6
3036 echo "$as_me:3036: result: no" >&5
3037 echo "${ECHO_T}no" >&6
3041 if test -z "$ac_cv_prog_RANLIB"; then
3042 ac_ct_RANLIB=$RANLIB
3043 # Extract the first word of "ranlib", so it can be a program name with args.
3044 set dummy ranlib; ac_word=$2
3045 echo "$as_me:3045: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$ac_ct_RANLIB"; then
3051 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3053 ac_save_IFS=$IFS; IFS=$ac_path_separator
3055 for ac_dir in $ac_dummy; do
3057 test -z "$ac_dir" && ac_dir=.
3058 $as_executable_p "$ac_dir/$ac_word" || continue
3059 ac_cv_prog_ac_ct_RANLIB="ranlib"
3060 echo "$as_me:3060: found $ac_dir/$ac_word" >&5
3064 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3067 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3068 if test -n "$ac_ct_RANLIB"; then
3069 echo "$as_me:3069: result: $ac_ct_RANLIB" >&5
3070 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3072 echo "$as_me:3072: result: no" >&5
3073 echo "${ECHO_T}no" >&6
3076 RANLIB=$ac_ct_RANLIB
3078 RANLIB="$ac_cv_prog_RANLIB"
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}ld; 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_LD+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 if test -n "$LD"; then
3090 ac_cv_prog_LD="$LD" # 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_LD="${ac_tool_prefix}ld"
3099 echo "$as_me:3099: found $ac_dir/$ac_word" >&5
3106 if test -n "$LD"; then
3107 echo "$as_me:3107: result: $LD" >&5
3108 echo "${ECHO_T}$LD" >&6
3110 echo "$as_me:3110: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3115 if test -z "$ac_cv_prog_LD"; then
3117 # Extract the first word of "ld", so it can be a program name with args.
3118 set dummy ld; 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_LD+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 if test -n "$ac_ct_LD"; then
3125 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # 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_LD="ld"
3134 echo "$as_me:3134: found $ac_dir/$ac_word" >&5
3138 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3141 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3142 if test -n "$ac_ct_LD"; then
3143 echo "$as_me:3143: result: $ac_ct_LD" >&5
3144 echo "${ECHO_T}$ac_ct_LD" >&6
3146 echo "$as_me:3146: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 if test -n "$AR"; then
3164 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
3173 echo "$as_me:3173: found $ac_dir/$ac_word" >&5
3180 if test -n "$AR"; then
3181 echo "$as_me:3181: result: $AR" >&5
3182 echo "${ECHO_T}$AR" >&6
3184 echo "$as_me:3184: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3189 if test -z "$ac_cv_prog_AR"; then
3191 # Extract the first word of "ar", so it can be a program name with args.
3192 set dummy ar; 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_AR+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 if test -n "$ac_ct_AR"; then
3199 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
3208 echo "$as_me:3208: found $ac_dir/$ac_word" >&5
3212 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3215 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3216 if test -n "$ac_ct_AR"; then
3217 echo "$as_me:3217: result: $ac_ct_AR" >&5
3218 echo "${ECHO_T}$ac_ct_AR" >&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 echo "$as_me:3303: checking for options to update archives" >&5
3304 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3305 if test "${cf_cv_ar_flags+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 cf_cv_ar_flags=unknown
3310 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3312 rm -f conftest.$ac_cv_objext
3315 cat >conftest.$ac_ext <<EOF
3316 #line 3316 "configure"
3317 int testdata[3] = { 123, 456, 789 };
3319 if { (eval echo "$as_me:3319: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>&5
3322 echo "$as_me:3322: \$? = $ac_status" >&5
3323 (exit $ac_status); } ; then
3324 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3325 if test -f conftest.a ; then
3326 cf_cv_ar_flags=$cf_ar_flags
3330 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3332 echo "${as_me-configure}:3332: testing cannot compile test-program ..." 1>&5
3337 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3340 echo "$as_me:3340: result: $cf_cv_ar_flags" >&5
3341 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3342 test -z "$ARFLAGS" && ARFLAGS=$cf_cv_ar_flags
3343 ARFLAGS=$cf_cv_ar_flags
3345 echo "$as_me:3345: checking if you have specified an install-prefix" >&5
3346 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3348 # Check whether --with-install-prefix or --without-install-prefix was given.
3349 if test "${with_install_prefix+set}" = set; then
3350 withval="$with_install_prefix"
3351 case "$withval" in #(vi
3354 *) DESTDIR="$withval"
3358 echo "$as_me:3358: result: $DESTDIR" >&5
3359 echo "${ECHO_T}$DESTDIR" >&6
3361 ###############################################################################
3363 # If we're cross-compiling, allow the user to override the tools and their
3364 # options. The configure script is oriented toward identifying the host
3365 # compiler, etc., but we need a build compiler to generate parts of the source.
3367 if test "$cross_compiling" = yes ; then
3369 # defaults that we might want to override
3370 : ${BUILD_CFLAGS:=''}
3371 : ${BUILD_CPPFLAGS:=''}
3372 : ${BUILD_LDFLAGS:=''}
3374 : ${BUILD_EXEEXT:='$x'}
3375 : ${BUILD_OBJEXT:='o'}
3377 # Check whether --with-build-cc or --without-build-cc was given.
3378 if test "${with_build_cc+set}" = set; then
3379 withval="$with_build_cc"
3382 for ac_prog in gcc cc cl
3384 # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy $ac_prog; ac_word=$2
3386 echo "$as_me:3386: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 if test -n "$BUILD_CC"; then
3392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3394 ac_save_IFS=$IFS; IFS=$ac_path_separator
3396 for ac_dir in $ac_dummy; do
3398 test -z "$ac_dir" && ac_dir=.
3399 $as_executable_p "$ac_dir/$ac_word" || continue
3400 ac_cv_prog_BUILD_CC="$ac_prog"
3401 echo "$as_me:3401: found $ac_dir/$ac_word" >&5
3407 BUILD_CC=$ac_cv_prog_BUILD_CC
3408 if test -n "$BUILD_CC"; then
3409 echo "$as_me:3409: result: $BUILD_CC" >&5
3410 echo "${ECHO_T}$BUILD_CC" >&6
3412 echo "$as_me:3412: result: no" >&5
3413 echo "${ECHO_T}no" >&6
3416 test -n "$BUILD_CC" && break
3420 echo "$as_me:3420: checking for native build C compiler" >&5
3421 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3422 echo "$as_me:3422: result: $BUILD_CC" >&5
3423 echo "${ECHO_T}$BUILD_CC" >&6
3425 echo "$as_me:3425: checking for native build C preprocessor" >&5
3426 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3428 # Check whether --with-build-cpp or --without-build-cpp was given.
3429 if test "${with_build_cpp+set}" = set; then
3430 withval="$with_build_cpp"
3431 BUILD_CPP="$withval"
3433 BUILD_CPP='${BUILD_CC} -E'
3435 echo "$as_me:3435: result: $BUILD_CPP" >&5
3436 echo "${ECHO_T}$BUILD_CPP" >&6
3438 echo "$as_me:3438: checking for native build C flags" >&5
3439 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3441 # Check whether --with-build-cflags or --without-build-cflags was given.
3442 if test "${with_build_cflags+set}" = set; then
3443 withval="$with_build_cflags"
3444 BUILD_CFLAGS="$withval"
3446 echo "$as_me:3446: result: $BUILD_CFLAGS" >&5
3447 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3449 echo "$as_me:3449: checking for native build C preprocessor-flags" >&5
3450 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3452 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3453 if test "${with_build_cppflags+set}" = set; then
3454 withval="$with_build_cppflags"
3455 BUILD_CPPFLAGS="$withval"
3457 echo "$as_me:3457: result: $BUILD_CPPFLAGS" >&5
3458 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3460 echo "$as_me:3460: checking for native build linker-flags" >&5
3461 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3463 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3464 if test "${with_build_ldflags+set}" = set; then
3465 withval="$with_build_ldflags"
3466 BUILD_LDFLAGS="$withval"
3468 echo "$as_me:3468: result: $BUILD_LDFLAGS" >&5
3469 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3471 echo "$as_me:3471: checking for native build linker-libraries" >&5
3472 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3474 # Check whether --with-build-libs or --without-build-libs was given.
3475 if test "${with_build_libs+set}" = set; then
3476 withval="$with_build_libs"
3477 BUILD_LIBS="$withval"
3479 echo "$as_me:3479: result: $BUILD_LIBS" >&5
3480 echo "${ECHO_T}$BUILD_LIBS" >&6
3482 # this assumes we're on Unix.
3486 : ${BUILD_CC:='${CC}'}
3488 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3489 { { echo "$as_me:3489: error: Cross-build requires two compilers.
3490 Use --with-build-cc to specify the native compiler." >&5
3491 echo "$as_me: error: Cross-build requires two compilers.
3492 Use --with-build-cc to specify the native compiler." >&2;}
3493 { (exit 1); exit 1; }; }
3497 : ${BUILD_CC:='${CC}'}
3498 : ${BUILD_CPP:='${CPP}'}
3499 : ${BUILD_CFLAGS:='${CFLAGS}'}
3500 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3501 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3502 : ${BUILD_LIBS:='${LIBS}'}
3503 : ${BUILD_EXEEXT:='$x'}
3504 : ${BUILD_OBJEXT:='o'}
3507 ###############################################################################
3509 ### Options to allow the user to specify the set of libraries which are used.
3510 ### Use "--without-normal --with-shared" to allow the default model to be
3511 ### shared, for example.
3513 echo "$as_me:3513: checking for specified models" >&5
3514 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3515 test -z "$cf_list_models" && cf_list_models=normal
3516 echo "$as_me:3516: result: $cf_list_models" >&5
3517 echo "${ECHO_T}$cf_list_models" >&6
3519 ### Use the first model as the default, and save its suffix for use in building
3520 ### up test-applications.
3521 echo "$as_me:3521: checking for default model" >&5
3522 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3523 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3524 echo "$as_me:3524: result: $DFT_LWR_MODEL" >&5
3525 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3527 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3529 # Check whether --with-curses-dir or --without-curses-dir was given.
3530 if test "${with_curses_dir+set}" = set; then
3531 withval="$with_curses_dir"
3533 if test "x$prefix" != xNONE; then
3534 cf_path_syntax="$prefix"
3536 cf_path_syntax="$ac_default_prefix"
3539 case ".$withval" in #(vi
3540 .\$\(*\)*|.\'*\'*) #(vi
3544 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3547 eval withval="$withval"
3548 case ".$withval" in #(vi
3550 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3555 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3558 { { echo "$as_me:3558: error: expected a pathname, not \"$withval\"" >&5
3559 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3560 { (exit 1); exit 1; }; }
3564 cf_cv_curses_dir=$withval
3569 echo "$as_me:3569: checking if you want wide-character code" >&5
3570 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3572 # Check whether --enable-widec or --disable-widec was given.
3573 if test "${enable_widec+set}" = set; then
3574 enableval="$enable_widec"
3575 with_widec=$enableval
3579 echo "$as_me:3579: result: $with_widec" >&5
3580 echo "${ECHO_T}$with_widec" >&6
3581 if test "$with_widec" = yes ; then
3583 echo "$as_me:3583: checking for multibyte character support" >&5
3584 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3585 if test "${cf_cv_utf8_lib+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 cf_save_LIBS="$LIBS"
3590 cat >conftest.$ac_ext <<_ACEOF
3591 #line 3591 "configure"
3592 #include "confdefs.h"
3603 rm -f conftest.$ac_objext conftest$ac_exeext
3604 if { (eval echo "$as_me:3604: \"$ac_link\"") >&5
3605 (eval $ac_link) 2>&5
3607 echo "$as_me:3607: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -s conftest$ac_exeext'
3610 { (eval echo "$as_me:3610: \"$ac_try\"") >&5
3613 echo "$as_me:3613: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3617 echo "$as_me: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3620 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3621 # will be set on completion of the AC_TRY_LINK below.
3622 cf_cv_header_path_utf8=
3623 cf_cv_library_path_utf8=
3625 echo "${as_me-configure}:3625: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3627 cat >conftest.$ac_ext <<_ACEOF
3628 #line 3628 "configure"
3629 #include "confdefs.h"
3631 #include <libutf8.h>
3640 rm -f conftest.$ac_objext conftest$ac_exeext
3641 if { (eval echo "$as_me:3641: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>&5
3644 echo "$as_me:3644: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -s conftest$ac_exeext'
3647 { (eval echo "$as_me:3647: \"$ac_try\"") >&5
3650 echo "$as_me:3650: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 cf_cv_find_linkage_utf8=yes
3654 echo "$as_me: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 cf_cv_find_linkage_utf8=no
3659 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
3661 echo "${as_me-configure}:3661: testing find linkage for utf8 library ..." 1>&5
3663 echo "${as_me-configure}:3663: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3665 cf_save_CPPFLAGS="$CPPFLAGS"
3666 cf_test_CPPFLAGS="$CPPFLAGS"
3669 cf_header_path_list=""
3670 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3671 for cf_header_path in $CPPFLAGS $CFLAGS
3673 case $cf_header_path in #(vi
3675 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
3677 test "$cf_header_path" != "NONE" && \
3678 test -d "$cf_header_path" && \
3680 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
3681 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
3682 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
3683 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
3684 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
3685 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
3688 cf_header_path_list="$cf_header_path_list $cf_search"
3696 test "/usr" != "$prefix" && \
3698 (test $prefix = NONE || test -d $prefix) && {
3699 test -n "$verbose" && echo " ... testing for include-directories under /usr"
3700 test -d /usr/include && cf_search="$cf_search /usr/include"
3701 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
3702 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
3703 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
3704 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
3707 test "$prefix" != "NONE" && \
3708 test -d "$prefix" && \
3710 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
3711 test -d $prefix/include && cf_search="$cf_search $prefix/include"
3712 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
3713 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
3714 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
3715 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
3718 test "/usr/local" != "$prefix" && \
3719 test -d "/usr/local" && \
3720 (test $prefix = NONE || test -d $prefix) && {
3721 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
3722 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
3723 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
3724 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
3725 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
3726 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
3729 test "/opt" != "$prefix" && \
3731 (test $prefix = NONE || test -d $prefix) && {
3732 test -n "$verbose" && echo " ... testing for include-directories under /opt"
3733 test -d /opt/include && cf_search="$cf_search /opt/include"
3734 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
3735 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
3736 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
3737 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
3740 test "$HOME" != "$prefix" && \
3741 test -d "$HOME" && \
3742 (test $prefix = NONE || test -d $prefix) && {
3743 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
3744 test -d $HOME/include && cf_search="$cf_search $HOME/include"
3745 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
3746 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
3747 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
3748 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
3751 test "$includedir" != NONE && \
3752 test "$includedir" != "/usr/include" && \
3753 test -d "$includedir" && {
3754 test -d $includedir && cf_search="$cf_search $includedir"
3755 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
3758 test "$oldincludedir" != NONE && \
3759 test "$oldincludedir" != "/usr/include" && \
3760 test -d "$oldincludedir" && {
3761 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
3762 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
3765 cf_search="$cf_header_path_list $cf_search"
3767 for cf_cv_header_path_utf8 in $cf_search
3769 if test -d $cf_cv_header_path_utf8 ; then
3770 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
3772 echo "${as_me-configure}:3772: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
3774 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
3775 cat >conftest.$ac_ext <<_ACEOF
3776 #line 3776 "configure"
3777 #include "confdefs.h"
3779 #include <libutf8.h>
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:3789: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>&5
3792 echo "$as_me:3792: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:3795: \"$ac_try\"") >&5
3798 echo "$as_me:3798: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3801 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
3803 echo "${as_me-configure}:3803: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
3805 cf_cv_find_linkage_utf8=maybe
3806 cf_test_CPPFLAGS="$CPPFLAGS"
3809 echo "$as_me: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3812 CPPFLAGS="$cf_save_CPPFLAGS"
3815 rm -f conftest.$ac_objext conftest.$ac_ext
3819 if test "$cf_cv_find_linkage_utf8" = maybe ; then
3821 echo "${as_me-configure}:3821: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
3823 cf_save_LIBS="$LIBS"
3824 cf_save_LDFLAGS="$LDFLAGS"
3826 if test "$cf_cv_find_linkage_utf8" != yes ; then
3828 cf_library_path_list=""
3829 if test -n "${LDFLAGS}${LIBS}" ; then
3830 for cf_library_path in $LDFLAGS $LIBS
3832 case $cf_library_path in #(vi
3834 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
3836 test "$cf_library_path" != "NONE" && \
3837 test -d "$cf_library_path" && \
3839 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
3840 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
3841 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
3842 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
3843 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
3844 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
3847 cf_library_path_list="$cf_library_path_list $cf_search"
3855 test "/usr" != "$prefix" && \
3857 (test $prefix = NONE || test -d $prefix) && {
3858 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
3859 test -d /usr/lib && cf_search="$cf_search /usr/lib"
3860 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
3861 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
3862 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
3863 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
3866 test "$prefix" != "NONE" && \
3867 test -d "$prefix" && \
3869 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
3870 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
3871 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
3872 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
3873 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
3874 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
3877 test "/usr/local" != "$prefix" && \
3878 test -d "/usr/local" && \
3879 (test $prefix = NONE || test -d $prefix) && {
3880 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
3881 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
3882 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
3883 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
3884 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
3885 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
3888 test "/opt" != "$prefix" && \
3890 (test $prefix = NONE || test -d $prefix) && {
3891 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
3892 test -d /opt/lib && cf_search="$cf_search /opt/lib"
3893 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
3894 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
3895 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
3896 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
3899 test "$HOME" != "$prefix" && \
3900 test -d "$HOME" && \
3901 (test $prefix = NONE || test -d $prefix) && {
3902 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
3903 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
3904 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
3905 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
3906 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
3907 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
3910 cf_search="$cf_library_path_list $cf_search"
3912 for cf_cv_library_path_utf8 in $cf_search
3914 if test -d $cf_cv_library_path_utf8 ; then
3915 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
3917 echo "${as_me-configure}:3917: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
3919 CPPFLAGS="$cf_test_CPPFLAGS"
3920 LIBS="-lutf8 $cf_save_LIBS"
3921 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
3922 cat >conftest.$ac_ext <<_ACEOF
3923 #line 3923 "configure"
3924 #include "confdefs.h"
3926 #include <libutf8.h>
3935 rm -f conftest.$ac_objext conftest$ac_exeext
3936 if { (eval echo "$as_me:3936: \"$ac_link\"") >&5
3937 (eval $ac_link) 2>&5
3939 echo "$as_me:3939: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:3942: \"$ac_try\"") >&5
3945 echo "$as_me:3945: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3948 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
3950 echo "${as_me-configure}:3950: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
3952 cf_cv_find_linkage_utf8=yes
3953 cf_cv_library_file_utf8="-lutf8"
3956 echo "$as_me: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 CPPFLAGS="$cf_save_CPPFLAGS"
3960 LIBS="$cf_save_LIBS"
3961 LDFLAGS="$cf_save_LDFLAGS"
3964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3967 LIBS="$cf_save_LIBS"
3968 CPPFLAGS="$cf_save_CPPFLAGS"
3969 LDFLAGS="$cf_save_LDFLAGS"
3973 cf_cv_find_linkage_utf8=no
3977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3979 if test "$cf_cv_find_linkage_utf8" = yes ; then
3980 cf_cv_utf8_lib=add-on
3986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3988 echo "$as_me:3988: result: $cf_cv_utf8_lib" >&5
3989 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
3991 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
3993 if test "$cf_cv_utf8_lib" = "add-on" ; then
3994 cat >>confdefs.h <<\EOF
3995 #define HAVE_LIBUTF8_H 1
3998 if test -n "$cf_cv_header_path_utf8" ; then
3999 for cf_add_incdir in $cf_cv_header_path_utf8
4001 while test $cf_add_incdir != /usr/include
4003 if test -d $cf_add_incdir
4006 if test -n "$CFLAGS$CPPFLAGS" ; then
4007 # a loop is needed to ensure we can add subdirs of existing dirs
4008 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4009 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4010 cf_have_incdir=yes; break
4015 if test "$cf_have_incdir" = no ; then
4016 if test "$cf_add_incdir" = /usr/local/include ; then
4017 if test "$GCC" = yes
4019 cf_save_CPPFLAGS=$CPPFLAGS
4020 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4021 cat >conftest.$ac_ext <<_ACEOF
4022 #line 4022 "configure"
4023 #include "confdefs.h"
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:4034: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5
4037 echo "$as_me:4037: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:4040: \"$ac_try\"") >&5
4043 echo "$as_me:4043: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4047 echo "$as_me: failed program was:" >&5
4048 cat conftest.$ac_ext >&5
4051 rm -f conftest.$ac_objext conftest.$ac_ext
4052 CPPFLAGS=$cf_save_CPPFLAGS
4057 if test "$cf_have_incdir" = no ; then
4058 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4060 echo "${as_me-configure}:4060: testing adding $cf_add_incdir to include-path ..." 1>&5
4062 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4064 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4065 test "$cf_top_incdir" = "$cf_add_incdir" && break
4066 cf_add_incdir="$cf_top_incdir"
4075 if test -n "$cf_cv_library_path_utf8" ; then
4076 for cf_add_libdir in $cf_cv_library_path_utf8
4078 if test $cf_add_libdir = /usr/lib ; then
4080 elif test -d $cf_add_libdir
4083 if test -n "$LDFLAGS$LIBS" ; then
4084 # a loop is needed to ensure we can add subdirs of existing dirs
4085 for cf_test_libdir in $LDFLAGS $LIBS ; do
4086 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4087 cf_have_libdir=yes; break
4091 if test "$cf_have_libdir" = no ; then
4092 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4094 echo "${as_me-configure}:4094: testing adding $cf_add_libdir to library-path ..." 1>&5
4096 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4105 cf_ncuconfig_root=ncursesw
4107 echo "Looking for ${cf_ncuconfig_root}-config"
4108 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4110 # Extract the first word of "$ac_prog", so it can be a program name with args.
4111 set dummy $ac_prog; ac_word=$2
4112 echo "$as_me:4112: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 case $NCURSES_CONFIG in
4119 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
4122 ac_save_IFS=$IFS; IFS=$ac_path_separator
4124 for ac_dir in $ac_dummy; do
4126 test -z "$ac_dir" && ac_dir=.
4127 if $as_executable_p "$ac_dir/$ac_word"; then
4128 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
4129 echo "$as_me:4129: found $ac_dir/$ac_word" >&5
4137 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
4139 if test -n "$NCURSES_CONFIG"; then
4140 echo "$as_me:4140: result: $NCURSES_CONFIG" >&5
4141 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4143 echo "$as_me:4143: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4147 test -n "$NCURSES_CONFIG" && break
4149 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
4151 if test "$NCURSES_CONFIG" != none ; then
4153 cf_cv_ncurses_header=curses.h
4155 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4156 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4158 cat >>confdefs.h <<\EOF
4162 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4164 cat >>confdefs.h <<EOF
4165 #define $cf_nculib_ROOT 1
4168 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4172 cf_ncuhdr_root=ncursesw
4174 test -n "$cf_cv_curses_dir" && \
4175 test "$cf_cv_curses_dir" != "no" && { \
4177 if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4178 for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
4180 while test $cf_add_incdir != /usr/include
4182 if test -d $cf_add_incdir
4185 if test -n "$CFLAGS$CPPFLAGS" ; then
4186 # a loop is needed to ensure we can add subdirs of existing dirs
4187 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4188 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4189 cf_have_incdir=yes; break
4194 if test "$cf_have_incdir" = no ; then
4195 if test "$cf_add_incdir" = /usr/local/include ; then
4196 if test "$GCC" = yes
4198 cf_save_CPPFLAGS=$CPPFLAGS
4199 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4200 cat >conftest.$ac_ext <<_ACEOF
4201 #line 4201 "configure"
4202 #include "confdefs.h"
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:4213: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>&5
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:4219: \"$ac_try\"") >&5
4222 echo "$as_me:4222: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4226 echo "$as_me: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4230 rm -f conftest.$ac_objext conftest.$ac_ext
4231 CPPFLAGS=$cf_save_CPPFLAGS
4236 if test "$cf_have_incdir" = no ; then
4237 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4239 echo "${as_me-configure}:4239: testing adding $cf_add_incdir to include-path ..." 1>&5
4241 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4243 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4244 test "$cf_top_incdir" = "$cf_add_incdir" && break
4245 cf_add_incdir="$cf_top_incdir"
4256 echo "$as_me:4256: checking for $cf_ncuhdr_root header in include-path" >&5
4257 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4258 if test "${cf_cv_ncurses_h+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4263 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4264 for cf_header in $cf_header_list
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line 4268 "configure"
4269 #include "confdefs.h"
4271 #define _XOPEN_SOURCE_EXTENDED
4272 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
4273 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
4275 #include <$cf_header>
4280 #ifdef NCURSES_VERSION
4286 printf("%s\n", NCURSES_VERSION);
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:4300: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4303 echo "$as_me:4303: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:4306: \"$ac_try\"") >&5
4309 echo "$as_me:4309: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 cf_cv_ncurses_h=$cf_header
4314 echo "$as_me: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4318 rm -f conftest.$ac_objext conftest.$ac_ext
4320 test "$cf_cv_ncurses_h" != no && break
4324 echo "$as_me:4324: result: $cf_cv_ncurses_h" >&5
4325 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4327 if test "$cf_cv_ncurses_h" != no ; then
4328 cf_cv_ncurses_header=$cf_cv_ncurses_h
4331 echo "$as_me:4331: checking for $cf_ncuhdr_root include-path" >&5
4332 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4333 if test "${cf_cv_ncurses_h2+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 test -n "$verbose" && echo
4340 cf_header_path_list=""
4341 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4342 for cf_header_path in $CPPFLAGS $CFLAGS
4344 case $cf_header_path in #(vi
4346 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4348 test "$cf_header_path" != "NONE" && \
4349 test -d "$cf_header_path" && \
4351 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4352 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4353 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4354 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4355 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4356 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"
4359 cf_header_path_list="$cf_header_path_list $cf_search"
4367 test "/usr" != "$prefix" && \
4369 (test $prefix = NONE || test -d $prefix) && {
4370 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4371 test -d /usr/include && cf_search="$cf_search /usr/include"
4372 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
4373 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
4374 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
4375 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4378 test "$prefix" != "NONE" && \
4379 test -d "$prefix" && \
4381 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4382 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4383 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4384 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4385 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4386 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4389 test "/usr/local" != "$prefix" && \
4390 test -d "/usr/local" && \
4391 (test $prefix = NONE || test -d $prefix) && {
4392 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4393 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4394 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
4395 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
4396 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
4397 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4400 test "/opt" != "$prefix" && \
4402 (test $prefix = NONE || test -d $prefix) && {
4403 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4404 test -d /opt/include && cf_search="$cf_search /opt/include"
4405 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
4406 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
4407 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
4408 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4411 test "$HOME" != "$prefix" && \
4412 test -d "$HOME" && \
4413 (test $prefix = NONE || test -d $prefix) && {
4414 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4415 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4416 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
4417 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
4418 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
4419 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4422 test "$includedir" != NONE && \
4423 test "$includedir" != "/usr/include" && \
4424 test -d "$includedir" && {
4425 test -d $includedir && cf_search="$cf_search $includedir"
4426 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
4429 test "$oldincludedir" != NONE && \
4430 test "$oldincludedir" != "/usr/include" && \
4431 test -d "$oldincludedir" && {
4432 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4433 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
4436 cf_search="$cf_header_path_list $cf_search"
4438 test -n "$verbose" && echo search path $cf_search
4439 cf_save2_CPPFLAGS="$CPPFLAGS"
4440 for cf_incdir in $cf_search
4443 if test -n "$cf_incdir" ; then
4444 for cf_add_incdir in $cf_incdir
4446 while test $cf_add_incdir != /usr/include
4448 if test -d $cf_add_incdir
4451 if test -n "$CFLAGS$CPPFLAGS" ; then
4452 # a loop is needed to ensure we can add subdirs of existing dirs
4453 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4454 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4455 cf_have_incdir=yes; break
4460 if test "$cf_have_incdir" = no ; then
4461 if test "$cf_add_incdir" = /usr/local/include ; then
4462 if test "$GCC" = yes
4464 cf_save_CPPFLAGS=$CPPFLAGS
4465 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4466 cat >conftest.$ac_ext <<_ACEOF
4467 #line 4467 "configure"
4468 #include "confdefs.h"
4478 rm -f conftest.$ac_objext
4479 if { (eval echo "$as_me:4479: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>&5
4482 echo "$as_me:4482: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:4485: \"$ac_try\"") >&5
4488 echo "$as_me:4488: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4492 echo "$as_me: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4496 rm -f conftest.$ac_objext conftest.$ac_ext
4497 CPPFLAGS=$cf_save_CPPFLAGS
4502 if test "$cf_have_incdir" = no ; then
4503 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4505 echo "${as_me-configure}:4505: testing adding $cf_add_incdir to include-path ..." 1>&5
4507 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4509 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4510 test "$cf_top_incdir" = "$cf_add_incdir" && break
4511 cf_add_incdir="$cf_top_incdir"
4525 cat >conftest.$ac_ext <<_ACEOF
4526 #line 4526 "configure"
4527 #include "confdefs.h"
4529 #include <$cf_header>
4534 #ifdef NCURSES_VERSION
4536 printf("%s\n", NCURSES_VERSION);
4549 rm -f conftest.$ac_objext
4550 if { (eval echo "$as_me:4550: \"$ac_compile\"") >&5
4551 (eval $ac_compile) 2>&5
4553 echo "$as_me:4553: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:4556: \"$ac_try\"") >&5
4559 echo "$as_me:4559: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 cf_cv_ncurses_h2=$cf_header
4564 echo "$as_me: failed program was:" >&5
4565 cat conftest.$ac_ext >&5
4568 rm -f conftest.$ac_objext conftest.$ac_ext
4570 if test "$cf_cv_ncurses_h2" != no ; then
4571 cf_cv_ncurses_h2=$cf_incdir/$cf_header
4572 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
4575 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
4577 CPPFLAGS="$cf_save2_CPPFLAGS"
4578 test "$cf_cv_ncurses_h2" != no && break
4580 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:4580: error: not found" >&5
4581 echo "$as_me: error: not found" >&2;}
4582 { (exit 1); exit 1; }; }
4585 echo "$as_me:4585: result: $cf_cv_ncurses_h2" >&5
4586 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
4588 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
4589 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
4590 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
4591 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
4594 if test -n "$cf_1st_incdir" ; then
4595 for cf_add_incdir in $cf_1st_incdir
4597 while test $cf_add_incdir != /usr/include
4599 if test -d $cf_add_incdir
4602 if test -n "$CFLAGS$CPPFLAGS" ; then
4603 # a loop is needed to ensure we can add subdirs of existing dirs
4604 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4605 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4606 cf_have_incdir=yes; break
4611 if test "$cf_have_incdir" = no ; then
4612 if test "$cf_add_incdir" = /usr/local/include ; then
4613 if test "$GCC" = yes
4615 cf_save_CPPFLAGS=$CPPFLAGS
4616 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4617 cat >conftest.$ac_ext <<_ACEOF
4618 #line 4618 "configure"
4619 #include "confdefs.h"
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:4630: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>&5
4633 echo "$as_me:4633: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try='test -s conftest.$ac_objext'
4636 { (eval echo "$as_me:4636: \"$ac_try\"") >&5
4639 echo "$as_me:4639: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4643 echo "$as_me: failed program was:" >&5
4644 cat conftest.$ac_ext >&5