2 # From configure.in Revision: 1.41 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20120310.
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 --with-pkg-config-libdir=XXX use given directory for installing pc-files
649 --enable-pc-files generate and install .pc files for pkg-config
650 --without-tests suppress build with test-programs
651 --enable-mixed-case tic should assume mixed-case filenames
652 --with-install-prefix prefixes actual install-location ($DESTDIR)
653 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
654 --with-build-cc=XXX the build C compiler ($BUILD_CC)
655 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
656 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
657 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
658 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
659 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
660 Options to Specify the Libraries Built/Used:
661 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
662 --enable-widec compile with wide-char/UTF-8 code
663 --with-curses-dir=DIR directory in which (n)curses is installed
664 --with-lib-prefix override library-prefix
665 --with-shlib-version=X Specify rel or abi version for shared libs
666 --enable-rpath-link link sample programs with rpath option
667 Fine-Tuning Your Configuration:
668 --enable-broken_linker compile with broken-linker support code
669 --disable-largefile omit support for large files
670 --with-rcs-ids compile-in RCS identifiers
672 --disable-ext-funcs disable function-extensions
673 --enable-const compile with extra/non-standard const
675 --without-develop disable development options
677 --with-pthread use POSIX thread library
678 --enable-weak-symbols enable weak-symbols for pthreads
679 --enable-reentrant compile with experimental reentrant code
680 --with-wrap-prefix=XXX override prefix used for public variables
681 Testing/development Options:
682 --disable-echo display "compiling" commands
683 --enable-warnings build: turn on GCC compiler warnings
684 --enable-assertions test: turn on generation of assertion code
685 --enable-expanded test: generate functions for certain macros
686 --disable-macros test: use functions rather than macros
687 --with-trace test: add trace() function to all models of ncurses
688 Ada95 Binding Options:
689 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
690 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
691 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
692 --with-ada-sharedlib=XX build Ada95 shared-library
694 Some influential environment variables:
695 CC C compiler command
696 CFLAGS C compiler flags
697 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
698 nonstandard directory <lib dir>
699 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
700 headers in a nonstandard directory <include dir>
703 Use these variables to override the choices made by `configure' or to help
704 it to find libraries and programs with nonstandard names/locations.
709 if test "$ac_init_help" = "recursive"; then
710 # If there are subdirs, report their specific --help.
712 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
714 # A "../" for each directory in /$ac_subdir.
715 ac_dots=`echo $ac_subdir |
716 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
719 .) # No --srcdir option. We are building in place.
720 ac_sub_srcdir=$srcdir ;;
721 [\\/]* | ?:[\\/]* ) # Absolute path.
722 ac_sub_srcdir=$srcdir/$ac_subdir ;;
724 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
727 # Check for guested configure; otherwise get Cygnus style configure.
728 if test -f $ac_sub_srcdir/configure.gnu; then
730 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
731 elif test -f $ac_sub_srcdir/configure; then
733 $SHELL $ac_sub_srcdir/configure --help=recursive
734 elif test -f $ac_sub_srcdir/configure.ac ||
735 test -f $ac_sub_srcdir/configure.in; then
739 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
745 test -n "$ac_init_help" && exit 0
746 if $ac_init_version; then
749 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
750 Free Software Foundation, Inc.
751 This configure script is free software; the Free Software Foundation
752 gives unlimited permission to copy, distribute and modify it.
758 This file contains any messages produced by compilers while
759 running configure, to aid debugging if configure makes a mistake.
761 It was created by $as_me, which was
762 generated by GNU Autoconf 2.52.20120310. Invocation command line was
773 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
774 uname -m = `(uname -m) 2>/dev/null || echo unknown`
775 uname -r = `(uname -r) 2>/dev/null || echo unknown`
776 uname -s = `(uname -s) 2>/dev/null || echo unknown`
777 uname -v = `(uname -v) 2>/dev/null || echo unknown`
779 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
780 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
782 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
783 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
784 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
785 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
786 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
787 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
788 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
802 # Keep a trace of the command line.
803 # Strip out --no-create and --no-recursion so they do not pile up.
804 # Also quote any args containing shell meta-characters.
810 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
811 | --no-cr | --no-c) ;;
812 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
813 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
814 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
815 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
816 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
818 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
821 # Get rid of the leading space.
824 # When interrupted or exit'd, cleanup temporary files, and complete
825 # config.log. We remove comments because anyway the quotes in there
826 # would cause problems or look ugly.
828 # Save into config.log some information that might help in debugging.
830 echo "## ----------------- ##" >&5
831 echo "## Cache variables. ##" >&5
832 echo "## ----------------- ##" >&5
834 # The following way of writing the cache mishandles newlines in values,
837 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
840 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
845 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
849 sed "/^$/d" confdefs.h >conftest.log
850 if test -s conftest.log; then
852 echo "## ------------ ##" >&5
853 echo "## confdefs.h. ##" >&5
854 echo "## ------------ ##" >&5
859 test "$ac_signal" != 0 &&
860 echo "$as_me: caught signal $ac_signal" >&5
861 echo "$as_me: exit $exit_status" >&5
862 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
865 for ac_signal in 1 2 13 15; do
866 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
870 # confdefs.h avoids OS command line length limits that DEFS can exceed.
871 rm -rf conftest* confdefs.h
872 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
875 # Let the site file select an alternate cache file if it wants to.
876 # Prefer explicitly selected file to automatically selected ones.
877 if test -z "$CONFIG_SITE"; then
878 if test "x$prefix" != xNONE; then
879 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
881 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
884 for ac_site_file in $CONFIG_SITE; do
885 if test -r "$ac_site_file"; then
886 { echo "$as_me:886: loading site script $ac_site_file" >&5
887 echo "$as_me: loading site script $ac_site_file" >&6;}
888 cat "$ac_site_file" >&5
893 if test -r "$cache_file"; then
894 # Some versions of bash will fail to source /dev/null (special
895 # files actually), so we avoid doing that.
896 if test -f "$cache_file"; then
897 { echo "$as_me:897: loading cache $cache_file" >&5
898 echo "$as_me: loading cache $cache_file" >&6;}
900 [\\/]* | ?:[\\/]* ) . $cache_file;;
905 { echo "$as_me:905: creating cache $cache_file" >&5
906 echo "$as_me: creating cache $cache_file" >&6;}
910 # Check that the precious variables saved in the cache have kept the same
912 ac_cache_corrupted=false
913 for ac_var in `(set) 2>&1 |
914 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
915 eval ac_old_set=\$ac_cv_env_${ac_var}_set
916 eval ac_new_set=\$ac_env_${ac_var}_set
917 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
918 eval ac_new_val="\$ac_env_${ac_var}_value"
919 case $ac_old_set,$ac_new_set in
921 { echo "$as_me:921: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
922 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
923 ac_cache_corrupted=: ;;
925 { echo "$as_me:925: error: \`$ac_var' was not set in the previous run" >&5
926 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
927 ac_cache_corrupted=: ;;
930 if test "x$ac_old_val" != "x$ac_new_val"; then
931 { echo "$as_me:931: error: \`$ac_var' has changed since the previous run:" >&5
932 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
933 { echo "$as_me:933: former value: $ac_old_val" >&5
934 echo "$as_me: former value: $ac_old_val" >&2;}
935 { echo "$as_me:935: current value: $ac_new_val" >&5
936 echo "$as_me: current value: $ac_new_val" >&2;}
940 # Pass precious variables to config.status. It doesn't matter if
941 # we pass some twice (in addition to the command line arguments).
942 if test "$ac_new_set" = set; then
944 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
945 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
946 ac_configure_args="$ac_configure_args '$ac_arg'"
948 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
953 if $ac_cache_corrupted; then
954 { echo "$as_me:954: error: changes in the environment can compromise the build" >&5
955 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
956 { { echo "$as_me:956: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
957 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
958 { (exit 1); exit 1; }; }
962 ac_cpp='$CPP $CPPFLAGS'
963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
966 ac_main_return=return
968 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
969 *c*,-n*) ECHO_N= ECHO_C='
971 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
972 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
974 echo "#! $SHELL" >conftest.sh
975 echo "exit 0" >>conftest.sh
977 if { (echo "$as_me:977: PATH=\".;.\"; conftest.sh") >&5
978 (PATH=".;."; conftest.sh) 2>&5
980 echo "$as_me:980: \$? = $ac_status" >&5
981 (exit $ac_status); }; then
982 ac_path_separator=';'
986 PATH_SEPARATOR="$ac_path_separator"
989 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
994 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
995 if test -f $ac_dir/install-sh; then
997 ac_install_sh="$ac_aux_dir/install-sh -c"
999 elif test -f $ac_dir/install.sh; then
1001 ac_install_sh="$ac_aux_dir/install.sh -c"
1003 elif test -f $ac_dir/shtool; then
1005 ac_install_sh="$ac_aux_dir/shtool install -c"
1009 if test -z "$ac_aux_dir"; then
1010 { { echo "$as_me:1010: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1011 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1012 { (exit 1); exit 1; }; }
1014 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1015 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1016 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1018 # Make sure we can run config.sub.
1019 $ac_config_sub sun4 >/dev/null 2>&1 ||
1020 { { echo "$as_me:1020: error: cannot run $ac_config_sub" >&5
1021 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1022 { (exit 1); exit 1; }; }
1024 echo "$as_me:1024: checking build system type" >&5
1025 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1026 if test "${ac_cv_build+set}" = set; then
1027 echo $ECHO_N "(cached) $ECHO_C" >&6
1029 ac_cv_build_alias=$build_alias
1030 test -z "$ac_cv_build_alias" &&
1031 ac_cv_build_alias=`$ac_config_guess`
1032 test -z "$ac_cv_build_alias" &&
1033 { { echo "$as_me:1033: error: cannot guess build type; you must specify one" >&5
1034 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1035 { (exit 1); exit 1; }; }
1036 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1037 { { echo "$as_me:1037: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1038 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1039 { (exit 1); exit 1; }; }
1042 echo "$as_me:1042: result: $ac_cv_build" >&5
1043 echo "${ECHO_T}$ac_cv_build" >&6
1045 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1046 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1047 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$as_me:1049: checking host system type" >&5
1050 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1051 if test "${ac_cv_host+set}" = set; then
1052 echo $ECHO_N "(cached) $ECHO_C" >&6
1054 ac_cv_host_alias=$host_alias
1055 test -z "$ac_cv_host_alias" &&
1056 ac_cv_host_alias=$ac_cv_build_alias
1057 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1058 { { echo "$as_me:1058: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1059 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1060 { (exit 1); exit 1; }; }
1063 echo "$as_me:1063: result: $ac_cv_host" >&5
1064 echo "${ECHO_T}$ac_cv_host" >&6
1066 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1067 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1068 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1070 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1071 echo "$as_me:1071: checking target system type" >&5
1072 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1073 if test "${ac_cv_target+set}" = set; then
1074 echo $ECHO_N "(cached) $ECHO_C" >&6
1076 ac_cv_target_alias=$target_alias
1077 test "x$ac_cv_target_alias" = "x" &&
1078 ac_cv_target_alias=$ac_cv_host_alias
1079 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1080 { { echo "$as_me:1080: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1081 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1082 { (exit 1); exit 1; }; }
1085 echo "$as_me:1085: result: $ac_cv_target" >&5
1086 echo "${ECHO_T}$ac_cv_target" >&6
1087 target=$ac_cv_target
1088 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1089 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1090 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1092 # The aliases save the names the user supplied, while $host etc.
1093 # will get canonicalized.
1094 test -n "$target_alias" &&
1095 test "$program_prefix$program_suffix$program_transform_name" = \
1097 program_prefix=${target_alias}-
1098 system_name="$host_os"
1100 system_name="`(uname -s -r) 2>/dev/null`"
1101 if test -z "$system_name" ; then
1102 system_name="`(hostname) 2>/dev/null`"
1105 test -n "$system_name" && cat >>confdefs.h <<EOF
1106 #define SYSTEM_NAME "$system_name"
1109 if test "${cf_cv_system_name+set}" = set; then
1110 echo $ECHO_N "(cached) $ECHO_C" >&6
1112 cf_cv_system_name="$system_name"
1115 test -z "$system_name" && system_name="$cf_cv_system_name"
1116 test -n "$cf_cv_system_name" && echo "$as_me:1116: result: Configuring for $cf_cv_system_name" >&5
1117 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1119 if test ".$system_name" != ".$cf_cv_system_name" ; then
1120 echo "$as_me:1120: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1121 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1122 { { echo "$as_me:1122: error: \"Please remove config.cache and try again.\"" >&5
1123 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1124 { (exit 1); exit 1; }; }
1127 # Check whether --with-system-type or --without-system-type was given.
1128 if test "${with_system_type+set}" = set; then
1129 withval="$with_system_type"
1130 { echo "$as_me:1130: WARNING: overriding system type to $withval" >&5
1131 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1132 cf_cv_system_name=$withval
1135 ### Save the given $CFLAGS to allow user-override.
1136 cf_user_CFLAGS="$CFLAGS"
1138 ### Default install-location
1140 echo "$as_me:1140: checking for prefix" >&5
1141 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1142 if test "x$prefix" = "xNONE" ; then
1143 case "$cf_cv_system_name" in
1144 # non-vendor systems don't have a conflict
1145 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1148 *) prefix=$ac_default_prefix
1152 echo "$as_me:1152: result: $prefix" >&5
1153 echo "${ECHO_T}$prefix" >&6
1155 if test "x$prefix" = "xNONE" ; then
1156 echo "$as_me:1156: checking for default include-directory" >&5
1157 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1158 test -n "$verbose" && echo 1>&6
1161 $includedir/ncurses \
1163 $prefix/include/ncurses \
1164 /usr/local/include \
1165 /usr/local/include/ncurses \
1167 /usr/include/ncurses
1169 cf_dir=`eval echo $cf_symbol`
1170 if test -f $cf_dir/curses.h ; then
1171 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1172 includedir="$cf_symbol"
1173 test -n "$verbose" && echo $ac_n " found " 1>&6
1177 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1179 echo "$as_me:1179: result: $includedir" >&5
1180 echo "${ECHO_T}$includedir" >&6
1183 ### Checks for programs.
1185 ac_cpp='$CPP $CPPFLAGS'
1186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1189 ac_main_return=return
1190 if test -n "$ac_tool_prefix"; then
1191 for ac_prog in gnatgcc gcc cc
1193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1195 echo "$as_me:1195: checking for $ac_word" >&5
1196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1197 if test "${ac_cv_prog_CC+set}" = set; then
1198 echo $ECHO_N "(cached) $ECHO_C" >&6
1200 if test -n "$CC"; then
1201 ac_cv_prog_CC="$CC" # Let the user override the test.
1203 ac_save_IFS=$IFS; IFS=$ac_path_separator
1205 for ac_dir in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir=.
1208 $as_executable_p "$ac_dir/$ac_word" || continue
1209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1210 echo "$as_me:1210: found $ac_dir/$ac_word" >&5
1217 if test -n "$CC"; then
1218 echo "$as_me:1218: result: $CC" >&5
1219 echo "${ECHO_T}$CC" >&6
1221 echo "$as_me:1221: result: no" >&5
1222 echo "${ECHO_T}no" >&6
1225 test -n "$CC" && break
1228 if test -z "$CC"; then
1230 for ac_prog in gnatgcc gcc cc
1232 # Extract the first word of "$ac_prog", so it can be a program name with args.
1233 set dummy $ac_prog; ac_word=$2
1234 echo "$as_me:1234: checking for $ac_word" >&5
1235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1237 echo $ECHO_N "(cached) $ECHO_C" >&6
1239 if test -n "$ac_ct_CC"; then
1240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1242 ac_save_IFS=$IFS; IFS=$ac_path_separator
1244 for ac_dir in $ac_dummy; do
1246 test -z "$ac_dir" && ac_dir=.
1247 $as_executable_p "$ac_dir/$ac_word" || continue
1248 ac_cv_prog_ac_ct_CC="$ac_prog"
1249 echo "$as_me:1249: found $ac_dir/$ac_word" >&5
1255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1256 if test -n "$ac_ct_CC"; then
1257 echo "$as_me:1257: result: $ac_ct_CC" >&5
1258 echo "${ECHO_T}$ac_ct_CC" >&6
1260 echo "$as_me:1260: result: no" >&5
1261 echo "${ECHO_T}no" >&6
1264 test -n "$ac_ct_CC" && break
1270 test -z "$CC" && { { echo "$as_me:1270: error: no acceptable cc found in \$PATH" >&5
1271 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1272 { (exit 1); exit 1; }; }
1274 # Provide some information about the compiler.
1275 echo "$as_me:1275:" \
1276 "checking for C compiler version" >&5
1277 ac_compiler=`set X $ac_compile; echo $2`
1278 { (eval echo "$as_me:1278: \"$ac_compiler --version </dev/null >&5\"") >&5
1279 (eval $ac_compiler --version </dev/null >&5) 2>&5
1281 echo "$as_me:1281: \$? = $ac_status" >&5
1282 (exit $ac_status); }
1283 { (eval echo "$as_me:1283: \"$ac_compiler -v </dev/null >&5\"") >&5
1284 (eval $ac_compiler -v </dev/null >&5) 2>&5
1286 echo "$as_me:1286: \$? = $ac_status" >&5
1287 (exit $ac_status); }
1288 { (eval echo "$as_me:1288: \"$ac_compiler -V </dev/null >&5\"") >&5
1289 (eval $ac_compiler -V </dev/null >&5) 2>&5
1291 echo "$as_me:1291: \$? = $ac_status" >&5
1292 (exit $ac_status); }
1294 cat >conftest.$ac_ext <<_ACEOF
1295 #line 1295 "configure"
1296 #include "confdefs.h"
1306 ac_clean_files_save=$ac_clean_files
1307 ac_clean_files="$ac_clean_files a.out a.exe"
1308 # Try to create an executable without -o first, disregard a.out.
1309 # It will help us diagnose broken compilers, and finding out an intuition
1311 echo "$as_me:1311: checking for C compiler default output" >&5
1312 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1313 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1314 if { (eval echo "$as_me:1314: \"$ac_link_default\"") >&5
1315 (eval $ac_link_default) 2>&5
1317 echo "$as_me:1317: \$? = $ac_status" >&5
1318 (exit $ac_status); }; then
1319 # Find the output, starting from the most likely. This scheme is
1320 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1322 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1323 ls a.out conftest 2>/dev/null;
1324 ls a.* conftest.* 2>/dev/null`; do
1326 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1327 a.out ) # We found the default executable, but exeext='' is most
1330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1331 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1338 echo "$as_me: failed program was:" >&5
1339 cat conftest.$ac_ext >&5
1340 { { echo "$as_me:1340: error: C compiler cannot create executables" >&5
1341 echo "$as_me: error: C compiler cannot create executables" >&2;}
1342 { (exit 77); exit 77; }; }
1345 ac_exeext=$ac_cv_exeext
1346 echo "$as_me:1346: result: $ac_file" >&5
1347 echo "${ECHO_T}$ac_file" >&6
1349 # Check the compiler produces executables we can run. If not, either
1350 # the compiler is broken, or we cross compile.
1351 echo "$as_me:1351: checking whether the C compiler works" >&5
1352 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1353 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1354 # If not cross compiling, check that we can run a simple program.
1355 if test "$cross_compiling" != yes; then
1356 if { ac_try='./$ac_file'
1357 { (eval echo "$as_me:1357: \"$ac_try\"") >&5
1360 echo "$as_me:1360: \$? = $ac_status" >&5
1361 (exit $ac_status); }; }; then
1364 if test "$cross_compiling" = maybe; then
1367 { { echo "$as_me:1367: error: cannot run C compiled programs.
1368 If you meant to cross compile, use \`--host'." >&5
1369 echo "$as_me: error: cannot run C compiled programs.
1370 If you meant to cross compile, use \`--host'." >&2;}
1371 { (exit 1); exit 1; }; }
1375 echo "$as_me:1375: result: yes" >&5
1376 echo "${ECHO_T}yes" >&6
1378 rm -f a.out a.exe conftest$ac_cv_exeext
1379 ac_clean_files=$ac_clean_files_save
1380 # Check the compiler produces executables we can run. If not, either
1381 # the compiler is broken, or we cross compile.
1382 echo "$as_me:1382: checking whether we are cross compiling" >&5
1383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1384 echo "$as_me:1384: result: $cross_compiling" >&5
1385 echo "${ECHO_T}$cross_compiling" >&6
1387 echo "$as_me:1387: checking for executable suffix" >&5
1388 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1389 if { (eval echo "$as_me:1389: \"$ac_link\"") >&5
1390 (eval $ac_link) 2>&5
1392 echo "$as_me:1392: \$? = $ac_status" >&5
1393 (exit $ac_status); }; then
1394 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1395 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1396 # work properly (i.e., refer to `conftest.exe'), while it won't with
1398 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1400 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1408 { { echo "$as_me:1408: error: cannot compute EXEEXT: cannot compile and link" >&5
1409 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1410 { (exit 1); exit 1; }; }
1413 rm -f conftest$ac_cv_exeext
1414 echo "$as_me:1414: result: $ac_cv_exeext" >&5
1415 echo "${ECHO_T}$ac_cv_exeext" >&6
1417 rm -f conftest.$ac_ext
1418 EXEEXT=$ac_cv_exeext
1420 echo "$as_me:1420: checking for object suffix" >&5
1421 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1422 if test "${ac_cv_objext+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 cat >conftest.$ac_ext <<_ACEOF
1426 #line 1426 "configure"
1427 #include "confdefs.h"
1437 rm -f conftest.o conftest.obj
1438 if { (eval echo "$as_me:1438: \"$ac_compile\"") >&5
1439 (eval $ac_compile) 2>&5
1441 echo "$as_me:1441: \$? = $ac_status" >&5
1442 (exit $ac_status); }; then
1443 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1445 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1446 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1451 echo "$as_me: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1453 { { echo "$as_me:1453: error: cannot compute OBJEXT: cannot compile" >&5
1454 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1455 { (exit 1); exit 1; }; }
1458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1460 echo "$as_me:1460: result: $ac_cv_objext" >&5
1461 echo "${ECHO_T}$ac_cv_objext" >&6
1462 OBJEXT=$ac_cv_objext
1464 echo "$as_me:1464: checking whether we are using the GNU C compiler" >&5
1465 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1466 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 cat >conftest.$ac_ext <<_ACEOF
1470 #line 1470 "configure"
1471 #include "confdefs.h"
1484 rm -f conftest.$ac_objext
1485 if { (eval echo "$as_me:1485: \"$ac_compile\"") >&5
1486 (eval $ac_compile) 2>&5
1488 echo "$as_me:1488: \$? = $ac_status" >&5
1489 (exit $ac_status); } &&
1490 { ac_try='test -s conftest.$ac_objext'
1491 { (eval echo "$as_me:1491: \"$ac_try\"") >&5
1494 echo "$as_me:1494: \$? = $ac_status" >&5
1495 (exit $ac_status); }; }; then
1498 echo "$as_me: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1502 rm -f conftest.$ac_objext conftest.$ac_ext
1503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1506 echo "$as_me:1506: result: $ac_cv_c_compiler_gnu" >&5
1507 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1508 GCC=`test $ac_compiler_gnu = yes && echo yes`
1509 ac_test_CFLAGS=${CFLAGS+set}
1510 ac_save_CFLAGS=$CFLAGS
1512 echo "$as_me:1512: checking whether $CC accepts -g" >&5
1513 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1514 if test "${ac_cv_prog_cc_g+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 cat >conftest.$ac_ext <<_ACEOF
1518 #line 1518 "configure"
1519 #include "confdefs.h"
1529 rm -f conftest.$ac_objext
1530 if { (eval echo "$as_me:1530: \"$ac_compile\"") >&5
1531 (eval $ac_compile) 2>&5
1533 echo "$as_me:1533: \$? = $ac_status" >&5
1534 (exit $ac_status); } &&
1535 { ac_try='test -s conftest.$ac_objext'
1536 { (eval echo "$as_me:1536: \"$ac_try\"") >&5
1539 echo "$as_me:1539: \$? = $ac_status" >&5
1540 (exit $ac_status); }; }; then
1543 echo "$as_me: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1547 rm -f conftest.$ac_objext conftest.$ac_ext
1549 echo "$as_me:1549: result: $ac_cv_prog_cc_g" >&5
1550 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1551 if test "$ac_test_CFLAGS" = set; then
1552 CFLAGS=$ac_save_CFLAGS
1553 elif test $ac_cv_prog_cc_g = yes; then
1554 if test "$GCC" = yes; then
1560 if test "$GCC" = yes; then
1566 # Some people use a C++ compiler to compile C. Since we use `exit',
1567 # in C++ we need to declare it. In case someone uses the same compiler
1568 # for both compiling C and C++ we need to have the C++ compiler decide
1569 # the declaration of exit, since it's the most demanding environment.
1570 cat >conftest.$ac_ext <<_ACEOF
1575 rm -f conftest.$ac_objext
1576 if { (eval echo "$as_me:1576: \"$ac_compile\"") >&5
1577 (eval $ac_compile) 2>&5
1579 echo "$as_me:1579: \$? = $ac_status" >&5
1580 (exit $ac_status); } &&
1581 { ac_try='test -s conftest.$ac_objext'
1582 { (eval echo "$as_me:1582: \"$ac_try\"") >&5
1585 echo "$as_me:1585: \$? = $ac_status" >&5
1586 (exit $ac_status); }; }; then
1587 for ac_declaration in \
1589 '#include <stdlib.h>' \
1590 'extern "C" void std::exit (int) throw (); using std::exit;' \
1591 'extern "C" void std::exit (int); using std::exit;' \
1592 'extern "C" void exit (int) throw ();' \
1593 'extern "C" void exit (int);' \
1596 cat >conftest.$ac_ext <<_ACEOF
1597 #line 1597 "configure"
1598 #include "confdefs.h"
1609 rm -f conftest.$ac_objext
1610 if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5
1611 (eval $ac_compile) 2>&5
1613 echo "$as_me:1613: \$? = $ac_status" >&5
1614 (exit $ac_status); } &&
1615 { ac_try='test -s conftest.$ac_objext'
1616 { (eval echo "$as_me:1616: \"$ac_try\"") >&5
1619 echo "$as_me:1619: \$? = $ac_status" >&5
1620 (exit $ac_status); }; }; then
1623 echo "$as_me: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1627 rm -f conftest.$ac_objext conftest.$ac_ext
1628 cat >conftest.$ac_ext <<_ACEOF
1629 #line 1629 "configure"
1630 #include "confdefs.h"
1640 rm -f conftest.$ac_objext
1641 if { (eval echo "$as_me:1641: \"$ac_compile\"") >&5
1642 (eval $ac_compile) 2>&5
1644 echo "$as_me:1644: \$? = $ac_status" >&5
1645 (exit $ac_status); } &&
1646 { ac_try='test -s conftest.$ac_objext'
1647 { (eval echo "$as_me:1647: \"$ac_try\"") >&5
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); }; }; then
1654 echo "$as_me: failed program was:" >&5
1655 cat conftest.$ac_ext >&5
1657 rm -f conftest.$ac_objext conftest.$ac_ext
1660 if test -n "$ac_declaration"; then
1661 echo '#ifdef __cplusplus' >>confdefs.h
1662 echo $ac_declaration >>confdefs.h
1663 echo '#endif' >>confdefs.h
1667 echo "$as_me: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1670 rm -f conftest.$ac_objext conftest.$ac_ext
1672 ac_cpp='$CPP $CPPFLAGS'
1673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1676 ac_main_return=return
1679 if test "$GCC" = yes ; then
1680 echo "$as_me:1680: checking version of $CC" >&5
1681 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1682 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1683 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1684 echo "$as_me:1684: result: $GCC_VERSION" >&5
1685 echo "${ECHO_T}$GCC_VERSION" >&6
1689 ac_cpp='$CPP $CPPFLAGS'
1690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1693 ac_main_return=return
1694 echo "$as_me:1694: checking how to run the C preprocessor" >&5
1695 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1696 # On Suns, sometimes $CPP names a directory.
1697 if test -n "$CPP" && test -d "$CPP"; then
1700 if test -z "$CPP"; then
1701 if test "${ac_cv_prog_CPP+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 # Double quotes because CPP needs to be expanded
1705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1708 for ac_c_preproc_warn_flag in '' yes
1710 # Use a header file that comes with gcc, so configuring glibc
1711 # with a fresh cross-compiler works.
1712 # On the NeXT, cc -E runs the code through the compiler's parser,
1713 # not just through cpp. "Syntax error" is here to catch this case.
1714 cat >conftest.$ac_ext <<_ACEOF
1715 #line 1715 "configure"
1716 #include "confdefs.h"
1720 if { (eval echo "$as_me:1720: \"$ac_cpp conftest.$ac_ext\"") >&5
1721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1723 egrep -v '^ *\+' conftest.er1 >conftest.err
1725 cat conftest.err >&5
1726 echo "$as_me:1726: \$? = $ac_status" >&5
1727 (exit $ac_status); } >/dev/null; then
1728 if test -s conftest.err; then
1729 ac_cpp_err=$ac_c_preproc_warn_flag
1736 if test -z "$ac_cpp_err"; then
1739 echo "$as_me: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 # Broken: fails on valid input.
1744 rm -f conftest.err conftest.$ac_ext
1746 # OK, works on sane cases. Now check whether non-existent headers
1747 # can be detected and how.
1748 cat >conftest.$ac_ext <<_ACEOF
1749 #line 1749 "configure"
1750 #include "confdefs.h"
1751 #include <ac_nonexistent.h>
1753 if { (eval echo "$as_me:1753: \"$ac_cpp conftest.$ac_ext\"") >&5
1754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1756 egrep -v '^ *\+' conftest.er1 >conftest.err
1758 cat conftest.err >&5
1759 echo "$as_me:1759: \$? = $ac_status" >&5
1760 (exit $ac_status); } >/dev/null; then
1761 if test -s conftest.err; then
1762 ac_cpp_err=$ac_c_preproc_warn_flag
1769 if test -z "$ac_cpp_err"; then
1770 # Broken: success on invalid input.
1773 echo "$as_me: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1775 # Passes both tests.
1779 rm -f conftest.err conftest.$ac_ext
1782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1783 rm -f conftest.err conftest.$ac_ext
1784 if $ac_preproc_ok; then
1796 echo "$as_me:1796: result: $CPP" >&5
1797 echo "${ECHO_T}$CPP" >&6
1799 for ac_c_preproc_warn_flag in '' yes
1801 # Use a header file that comes with gcc, so configuring glibc
1802 # with a fresh cross-compiler works.
1803 # On the NeXT, cc -E runs the code through the compiler's parser,
1804 # not just through cpp. "Syntax error" is here to catch this case.
1805 cat >conftest.$ac_ext <<_ACEOF
1806 #line 1806 "configure"
1807 #include "confdefs.h"
1811 if { (eval echo "$as_me:1811: \"$ac_cpp conftest.$ac_ext\"") >&5
1812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1814 egrep -v '^ *\+' conftest.er1 >conftest.err
1816 cat conftest.err >&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); } >/dev/null; then
1819 if test -s conftest.err; then
1820 ac_cpp_err=$ac_c_preproc_warn_flag
1827 if test -z "$ac_cpp_err"; then
1830 echo "$as_me: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1832 # Broken: fails on valid input.
1835 rm -f conftest.err conftest.$ac_ext
1837 # OK, works on sane cases. Now check whether non-existent headers
1838 # can be detected and how.
1839 cat >conftest.$ac_ext <<_ACEOF
1840 #line 1840 "configure"
1841 #include "confdefs.h"
1842 #include <ac_nonexistent.h>
1844 if { (eval echo "$as_me:1844: \"$ac_cpp conftest.$ac_ext\"") >&5
1845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1847 egrep -v '^ *\+' conftest.er1 >conftest.err
1849 cat conftest.err >&5
1850 echo "$as_me:1850: \$? = $ac_status" >&5
1851 (exit $ac_status); } >/dev/null; then
1852 if test -s conftest.err; then
1853 ac_cpp_err=$ac_c_preproc_warn_flag
1860 if test -z "$ac_cpp_err"; then
1861 # Broken: success on invalid input.
1864 echo "$as_me: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1866 # Passes both tests.
1870 rm -f conftest.err conftest.$ac_ext
1873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1874 rm -f conftest.err conftest.$ac_ext
1875 if $ac_preproc_ok; then
1878 { { echo "$as_me:1878: error: C preprocessor \"$CPP\" fails sanity check" >&5
1879 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1880 { (exit 1); exit 1; }; }
1884 ac_cpp='$CPP $CPPFLAGS'
1885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888 ac_main_return=return
1890 if test $ac_cv_c_compiler_gnu = yes; then
1891 echo "$as_me:1891: checking whether $CC needs -traditional" >&5
1892 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
1893 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 ac_pattern="Autoconf.*'x'"
1897 cat >conftest.$ac_ext <<_ACEOF
1898 #line 1898 "configure"
1899 #include "confdefs.h"
1901 int Autoconf = TIOCGETP;
1903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1904 egrep "$ac_pattern" >/dev/null 2>&1; then
1905 ac_cv_prog_gcc_traditional=yes
1907 ac_cv_prog_gcc_traditional=no
1911 if test $ac_cv_prog_gcc_traditional = no; then
1912 cat >conftest.$ac_ext <<_ACEOF
1913 #line 1913 "configure"
1914 #include "confdefs.h"
1916 int Autoconf = TCGETA;
1918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1919 egrep "$ac_pattern" >/dev/null 2>&1; then
1920 ac_cv_prog_gcc_traditional=yes
1926 echo "$as_me:1926: result: $ac_cv_prog_gcc_traditional" >&5
1927 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1928 if test $ac_cv_prog_gcc_traditional = yes; then
1929 CC="$CC -traditional"
1933 echo "$as_me:1933: checking whether $CC understands -c and -o together" >&5
1934 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
1935 if test "${cf_cv_prog_CC_c_o+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 cat > conftest.$ac_ext <<CF_EOF
1943 ${cf_cv_main_return:-return}(0);
1946 # We do the test twice because some compilers refuse to overwrite an
1947 # existing .o file with -o, though they will create one.
1948 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
1949 if { (eval echo "$as_me:1949: \"$ac_try\"") >&5
1952 echo "$as_me:1952: \$? = $ac_status" >&5
1953 (exit $ac_status); } &&
1954 test -f conftest2.$ac_objext && { (eval echo "$as_me:1954: \"$ac_try\"") >&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); };
1960 eval cf_cv_prog_CC_c_o=yes
1962 eval cf_cv_prog_CC_c_o=no
1967 if test $cf_cv_prog_CC_c_o = yes; then
1968 echo "$as_me:1968: result: yes" >&5
1969 echo "${ECHO_T}yes" >&6
1971 echo "$as_me:1971: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1975 echo "$as_me:1975: checking for POSIXized ISC" >&5
1976 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
1977 if test -d /etc/conf/kconfig.d &&
1978 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1980 echo "$as_me:1980: result: yes" >&5
1981 echo "${ECHO_T}yes" >&6
1982 ISC=yes # If later tests want to check for ISC.
1984 cat >>confdefs.h <<\EOF
1985 #define _POSIX_SOURCE 1
1988 if test "$GCC" = yes; then
1994 echo "$as_me:1994: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 # This should have been defined by AC_PROG_CC
2002 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2003 # into CC. This will not help with broken scripts that wrap the compiler with
2004 # options, but eliminates a more common category of user confusion.
2005 echo "$as_me:2005: checking \$CC variable" >&5
2006 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2009 echo "$as_me:2009: result: broken" >&5
2010 echo "${ECHO_T}broken" >&6
2011 { echo "$as_me:2011: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2012 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2014 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2015 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2020 cf_new_extra_cppflags=
2022 for cf_add_cflags in $cf_flags
2024 case $cf_fix_cppflags in
2026 case $cf_add_cflags in #(vi
2027 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2028 case $cf_add_cflags in
2030 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2032 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2033 && test -z "${cf_tst_cflags}" \
2034 && cf_fix_cppflags=yes
2036 if test $cf_fix_cppflags = yes ; then
2037 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2039 elif test "${cf_tst_cflags}" = "\"'" ; then
2040 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2046 *$cf_add_cflags) #(vi
2049 case $cf_add_cflags in #(vi
2051 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2053 CPPFLAGS=`echo "$CPPFLAGS" | \
2054 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2055 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2059 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2064 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2069 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2071 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2073 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2074 && test -z "${cf_tst_cflags}" \
2075 && cf_fix_cppflags=no
2080 if test -n "$cf_new_cflags" ; then
2082 CFLAGS="$CFLAGS $cf_new_cflags"
2085 if test -n "$cf_new_cppflags" ; then
2087 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2090 if test -n "$cf_new_extra_cppflags" ; then
2092 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2097 echo "$as_me:2097: result: ok" >&5
2098 echo "${ECHO_T}ok" >&6
2102 echo "$as_me:2102: checking for ${CC:-cc} option to accept ANSI C" >&5
2103 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2104 if test "${cf_cv_ansi_cc+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 cf_save_CFLAGS="$CFLAGS"
2110 cf_save_CPPFLAGS="$CPPFLAGS"
2111 # Don't try gcc -ansi; that turns off useful extensions and
2112 # breaks some systems' header files.
2113 # AIX -qlanglvl=ansi
2114 # Ultrix and OSF/1 -std1
2115 # HP-UX -Aa -D_HPUX_SOURCE
2117 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2118 for cf_arg in "-DCC_HAS_PROTOS" \
2123 "-Aa -D_HPUX_SOURCE" \
2130 cf_new_extra_cppflags=
2132 for cf_add_cflags in $cf_arg
2134 case $cf_fix_cppflags in
2136 case $cf_add_cflags in #(vi
2137 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2138 case $cf_add_cflags in
2140 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2142 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2143 && test -z "${cf_tst_cflags}" \
2144 && cf_fix_cppflags=yes
2146 if test $cf_fix_cppflags = yes ; then
2147 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2149 elif test "${cf_tst_cflags}" = "\"'" ; then
2150 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2156 *$cf_add_cflags) #(vi
2159 case $cf_add_cflags in #(vi
2161 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2163 CPPFLAGS=`echo "$CPPFLAGS" | \
2164 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2165 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2169 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2174 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2179 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2181 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2183 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2184 && test -z "${cf_tst_cflags}" \
2185 && cf_fix_cppflags=no
2190 if test -n "$cf_new_cflags" ; then
2192 CFLAGS="$CFLAGS $cf_new_cflags"
2195 if test -n "$cf_new_cppflags" ; then
2197 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2200 if test -n "$cf_new_extra_cppflags" ; then
2202 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2205 cat >conftest.$ac_ext <<_ACEOF
2206 #line 2206 "configure"
2207 #include "confdefs.h"
2209 #ifndef CC_HAS_PROTOS
2210 #if !defined(__STDC__) || (__STDC__ != 1)
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:2227: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>&5
2230 echo "$as_me:2230: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:2233: \"$ac_try\"") >&5
2236 echo "$as_me:2236: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 cf_cv_ansi_cc="$cf_arg"; break
2240 echo "$as_me: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2243 rm -f conftest.$ac_objext conftest.$ac_ext
2245 CFLAGS="$cf_save_CFLAGS"
2246 CPPFLAGS="$cf_save_CPPFLAGS"
2249 echo "$as_me:2249: result: $cf_cv_ansi_cc" >&5
2250 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2252 if test "$cf_cv_ansi_cc" != "no"; then
2253 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2258 cf_new_extra_cppflags=
2260 for cf_add_cflags in $cf_cv_ansi_cc
2262 case $cf_fix_cppflags in
2264 case $cf_add_cflags in #(vi
2265 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2266 case $cf_add_cflags in
2268 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2270 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2271 && test -z "${cf_tst_cflags}" \
2272 && cf_fix_cppflags=yes
2274 if test $cf_fix_cppflags = yes ; then
2275 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2277 elif test "${cf_tst_cflags}" = "\"'" ; then
2278 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2284 *$cf_add_cflags) #(vi
2287 case $cf_add_cflags in #(vi
2289 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2291 CPPFLAGS=`echo "$CPPFLAGS" | \
2292 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2293 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2297 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2302 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2307 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2309 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2311 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2312 && test -z "${cf_tst_cflags}" \
2313 && cf_fix_cppflags=no
2318 if test -n "$cf_new_cflags" ; then
2320 CFLAGS="$CFLAGS $cf_new_cflags"
2323 if test -n "$cf_new_cppflags" ; then
2325 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2328 if test -n "$cf_new_extra_cppflags" ; then
2330 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2334 cat >>confdefs.h <<\EOF
2335 #define CC_HAS_PROTOS 1
2341 if test "$cf_cv_ansi_cc" = "no"; then
2342 { { echo "$as_me:2342: error: Your compiler does not appear to recognize prototypes.
2343 You have the following choices:
2344 a. adjust your compiler options
2345 b. get an up-to-date compiler
2346 c. use a wrapper such as unproto" >&5
2347 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2348 You have the following choices:
2349 a. adjust your compiler options
2350 b. get an up-to-date compiler
2351 c. use a wrapper such as unproto" >&2;}
2352 { (exit 1); exit 1; }; }
2355 case $cf_cv_system_name in
2357 CFLAGS="$CFLAGS -Zmt"
2358 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2359 CXXFLAGS="$CXXFLAGS -Zmt"
2360 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2361 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2368 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2369 #define PROG_EXT "$PROG_EXT"
2372 test "$program_prefix" != NONE &&
2373 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2374 # Use a double $ so make ignores it.
2375 test "$program_suffix" != NONE &&
2376 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2377 # Double any \ or $. echo might interpret backslashes.
2378 # By default was `s,x,x', remove it if useless.
2379 cat <<\_ACEOF >conftest.sed
2380 s/[\\$]/&&/g;s/;s,x,x,$//
2382 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2385 for ac_prog in mawk gawk nawk awk
2387 # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 echo "$as_me:2389: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391 if test "${ac_cv_prog_AWK+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$AWK"; then
2395 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2397 ac_save_IFS=$IFS; IFS=$ac_path_separator
2399 for ac_dir in $ac_dummy; do
2401 test -z "$ac_dir" && ac_dir=.
2402 $as_executable_p "$ac_dir/$ac_word" || continue
2403 ac_cv_prog_AWK="$ac_prog"
2404 echo "$as_me:2404: found $ac_dir/$ac_word" >&5
2411 if test -n "$AWK"; then
2412 echo "$as_me:2412: result: $AWK" >&5
2413 echo "${ECHO_T}$AWK" >&6
2415 echo "$as_me:2415: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2419 test -n "$AWK" && break
2422 test -z "$AWK" && { { echo "$as_me:2422: error: No awk program found" >&5
2423 echo "$as_me: error: No awk program found" >&2;}
2424 { (exit 1); exit 1; }; }
2426 echo "$as_me:2426: checking for egrep" >&5
2427 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2428 if test "${ac_cv_prog_egrep+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2432 then ac_cv_prog_egrep='grep -E'
2433 else ac_cv_prog_egrep='egrep'
2436 echo "$as_me:2436: result: $ac_cv_prog_egrep" >&5
2437 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2438 EGREP=$ac_cv_prog_egrep
2440 test -z "$EGREP" && { { echo "$as_me:2440: error: No egrep program found" >&5
2441 echo "$as_me: error: No egrep program found" >&2;}
2442 { (exit 1); exit 1; }; }
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # ./install, which can be erroneously created by make from ./install.sh.
2456 echo "$as_me:2456: checking for a BSD compatible install" >&5
2457 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2458 if test -z "$INSTALL"; then
2459 if test "${ac_cv_path_install+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 ac_save_IFS=$IFS; IFS=$ac_path_separator
2463 for ac_dir in $PATH; do
2465 # Account for people who put trailing slashes in PATH elements.
2467 / | ./ | .// | /cC/* \
2468 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2471 # OSF1 and SCO ODT 3.0 have their own names for install.
2472 # Don't use installbsd from OSF since it installs stuff as root
2474 for ac_prog in ginstall scoinst install; do
2475 if $as_executable_p "$ac_dir/$ac_prog"; then
2476 if test $ac_prog = install &&
2477 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2478 # AIX install. It has an incompatible calling convention.
2480 elif test $ac_prog = install &&
2481 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2482 # program-specific install script used by HP pwplus--don't use.
2485 ac_cv_path_install="$ac_dir/$ac_prog -c"
2495 if test "${ac_cv_path_install+set}" = set; then
2496 INSTALL=$ac_cv_path_install
2498 # As a last resort, use the slow shell script. We don't cache a
2499 # path for INSTALL within a source directory, because that will
2500 # break other packages using the cache if that directory is
2501 # removed, or if the path is relative.
2502 INSTALL=$ac_install_sh
2505 echo "$as_me:2505: result: $INSTALL" >&5
2506 echo "${ECHO_T}$INSTALL" >&6
2508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2509 # It thinks the first close brace ends the variable substitution.
2510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2516 echo "$as_me:2516: checking whether ln -s works" >&5
2517 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2519 if test "$LN_S" = "ln -s"; then
2520 echo "$as_me:2520: result: yes" >&5
2521 echo "${ECHO_T}yes" >&6
2523 echo "$as_me:2523: result: no, using $LN_S" >&5
2524 echo "${ECHO_T}no, using $LN_S" >&6
2527 echo "$as_me:2527: checking if $LN_S -f options work" >&5
2528 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2530 rm -f conf$$.src conf$$dst
2532 echo first >conf$$.src
2533 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2538 rm -f conf$$.dst conf$$src
2539 echo "$as_me:2539: result: $cf_prog_ln_sf" >&5
2540 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2542 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2544 echo "$as_me:2544: checking for long file names" >&5
2545 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2546 if test "${ac_cv_sys_long_file_names+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 ac_cv_sys_long_file_names=yes
2550 # Test for long file names in all the places we know might matter:
2551 # . the current directory, where building will happen
2552 # $prefix/lib where we will be installing things
2553 # $exec_prefix/lib likewise
2554 # eval it to expand exec_prefix.
2555 # $TMPDIR if set, where it might want to write temporary files
2556 # if $TMPDIR is not set:
2557 # /tmp where it might want to write temporary files
2560 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2563 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2565 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2566 test -d $ac_dir || continue
2567 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2568 ac_xdir=$ac_dir/cf$$
2569 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2570 ac_tf1=$ac_xdir/conftest9012345
2571 ac_tf2=$ac_xdir/conftest9012346
2572 (echo 1 >$ac_tf1) 2>/dev/null
2573 (echo 2 >$ac_tf2) 2>/dev/null
2574 ac_val=`cat $ac_tf1 2>/dev/null`
2575 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2576 ac_cv_sys_long_file_names=no
2577 rm -rf $ac_xdir 2>/dev/null
2580 rm -rf $ac_xdir 2>/dev/null
2583 echo "$as_me:2583: result: $ac_cv_sys_long_file_names" >&5
2584 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2585 if test $ac_cv_sys_long_file_names = yes; then
2587 cat >>confdefs.h <<\EOF
2588 #define HAVE_LONG_FILE_NAMES 1
2593 # if we find pkg-config, check if we should install the ".pc" files.
2595 echo "$as_me:2595: checking if you want to use pkg-config" >&5
2596 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2598 # Check whether --with-pkg-config or --without-pkg-config was given.
2599 if test "${with_pkg_config+set}" = set; then
2600 withval="$with_pkg_config"
2601 cf_pkg_config=$withval
2605 echo "$as_me:2605: result: $cf_pkg_config" >&5
2606 echo "${ECHO_T}$cf_pkg_config" >&6
2608 case $cf_pkg_config in #(vi
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2617 echo "$as_me:2617: checking for $ac_word" >&5
2618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2619 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2627 ac_save_IFS=$IFS; IFS=$ac_path_separator
2629 for ac_dir in $ac_dummy; do
2631 test -z "$ac_dir" && ac_dir=.
2632 if $as_executable_p "$ac_dir/$ac_word"; then
2633 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2634 echo "$as_me:2634: found $ac_dir/$ac_word" >&5
2642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2644 if test -n "$PKG_CONFIG"; then
2645 echo "$as_me:2645: result: $PKG_CONFIG" >&5
2646 echo "${ECHO_T}$PKG_CONFIG" >&6
2648 echo "$as_me:2648: result: no" >&5
2649 echo "${ECHO_T}no" >&6
2653 if test -z "$ac_cv_path_PKG_CONFIG"; then
2654 ac_pt_PKG_CONFIG=$PKG_CONFIG
2655 # Extract the first word of "pkg-config", so it can be a program name with args.
2656 set dummy pkg-config; ac_word=$2
2657 echo "$as_me:2657: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2659 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 case $ac_pt_PKG_CONFIG in
2664 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2667 ac_save_IFS=$IFS; IFS=$ac_path_separator
2669 for ac_dir in $ac_dummy; do
2671 test -z "$ac_dir" && ac_dir=.
2672 if $as_executable_p "$ac_dir/$ac_word"; then
2673 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2674 echo "$as_me:2674: found $ac_dir/$ac_word" >&5
2679 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2683 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2685 if test -n "$ac_pt_PKG_CONFIG"; then
2686 echo "$as_me:2686: result: $ac_pt_PKG_CONFIG" >&5
2687 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2689 echo "$as_me:2689: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2693 PKG_CONFIG=$ac_pt_PKG_CONFIG
2695 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2704 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2705 if test "$PKG_CONFIG" != none ; then
2707 if test "x$prefix" != xNONE; then
2708 cf_path_syntax="$prefix"
2710 cf_path_syntax="$ac_default_prefix"
2713 case ".$PKG_CONFIG" in #(vi
2714 .\$\(*\)*|.\'*\'*) #(vi
2718 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2720 .\${*prefix}*|.\${*dir}*) #(vi
2721 eval PKG_CONFIG="$PKG_CONFIG"
2722 case ".$PKG_CONFIG" in #(vi
2724 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2729 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2732 { { echo "$as_me:2732: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2733 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2734 { (exit 1); exit 1; }; }
2740 if test "$PKG_CONFIG" != none ; then
2741 echo "$as_me:2741: checking for $PKG_CONFIG library directory" >&5
2742 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2744 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2745 if test "${with_pkg_config_libdir+set}" = set; then
2746 withval="$with_pkg_config_libdir"
2747 PKG_CONFIG_LIBDIR=$withval
2749 PKG_CONFIG_LIBDIR=yes
2752 case x$PKG_CONFIG_LIBDIR in #(vi
2756 # look for the library directory using the same prefix as the executable
2757 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2758 case x`(arch) 2>/dev/null` in #(vi
2760 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
2762 if test -d $cf_config/pkgconfig
2764 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2770 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
2778 echo "$as_me:2778: result: $PKG_CONFIG_LIBDIR" >&5
2779 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2782 if test "$PKG_CONFIG" != none ; then
2783 echo "$as_me:2783: checking if we should install .pc files for $PKG_CONFIG" >&5
2784 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2786 # Check whether --enable-pc-files or --disable-pc-files was given.
2787 if test "${enable_pc_files+set}" = set; then
2788 enableval="$enable_pc_files"
2789 enable_pc_files=$enableval
2793 echo "$as_me:2793: result: $enable_pc_files" >&5
2794 echo "${ECHO_T}$enable_pc_files" >&6
2795 if test "$enable_pc_files" != no
2798 if test "x$prefix" != xNONE; then
2799 cf_path_syntax="$prefix"
2801 cf_path_syntax="$ac_default_prefix"
2804 case ".$PKG_CONFIG_LIBDIR" in #(vi
2805 .\$\(*\)*|.\'*\'*) #(vi
2809 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2811 .\${*prefix}*|.\${*dir}*) #(vi
2812 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
2813 case ".$PKG_CONFIG_LIBDIR" in #(vi
2815 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2820 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2823 { { echo "$as_me:2823: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
2824 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
2825 { (exit 1); exit 1; }; }
2834 echo "$as_me:2834: checking if you want to build test-programs" >&5
2835 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2837 # Check whether --with-tests or --without-tests was given.
2838 if test "${with_tests+set}" = set; then
2839 withval="$with_tests"
2840 cf_with_tests=$withval
2844 echo "$as_me:2844: result: $cf_with_tests" >&5
2845 echo "${ECHO_T}$cf_with_tests" >&6
2847 echo "$as_me:2847: checking if we should assume mixed-case filenames" >&5
2848 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2850 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2851 if test "${enable_mixed_case+set}" = set; then
2852 enableval="$enable_mixed_case"
2853 enable_mixedcase=$enableval
2855 enable_mixedcase=auto
2857 echo "$as_me:2857: result: $enable_mixedcase" >&5
2858 echo "${ECHO_T}$enable_mixedcase" >&6
2859 if test "$enable_mixedcase" = "auto" ; then
2861 echo "$as_me:2861: checking if filesystem supports mixed-case filenames" >&5
2862 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2863 if test "${cf_cv_mixedcase+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test "$cross_compiling" = yes ; then
2868 case $target_alias in #(vi
2869 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2877 rm -f conftest CONFTEST
2879 if test -f CONFTEST ; then
2884 rm -f conftest CONFTEST
2888 echo "$as_me:2888: result: $cf_cv_mixedcase" >&5
2889 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2890 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2891 #define MIXEDCASE_FILENAMES 1
2895 cf_cv_mixedcase=$enable_mixedcase
2896 if test "$enable_mixedcase" = "yes" ; then
2897 cat >>confdefs.h <<\EOF
2898 #define MIXEDCASE_FILENAMES 1
2904 # do this after mixed-case option (tags/TAGS is not as important as tic).
2905 echo "$as_me:2905: checking whether ${MAKE-make} sets \${MAKE}" >&5
2906 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2907 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2908 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 cat >conftest.make <<\EOF
2913 @echo 'ac_maketemp="${MAKE}"'
2915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2916 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2917 if test -n "$ac_maketemp"; then
2918 eval ac_cv_prog_make_${ac_make}_set=yes
2920 eval ac_cv_prog_make_${ac_make}_set=no
2924 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2925 echo "$as_me:2925: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2929 echo "$as_me:2929: result: no" >&5
2930 echo "${ECHO_T}no" >&6
2931 SET_MAKE="MAKE=${MAKE-make}"
2934 for ac_prog in exctags ctags
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 echo "$as_me:2938: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_CTAGS+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 if test -n "$CTAGS"; then
2944 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2946 ac_save_IFS=$IFS; IFS=$ac_path_separator
2948 for ac_dir in $ac_dummy; do
2950 test -z "$ac_dir" && ac_dir=.
2951 $as_executable_p "$ac_dir/$ac_word" || continue
2952 ac_cv_prog_CTAGS="$ac_prog"
2953 echo "$as_me:2953: found $ac_dir/$ac_word" >&5
2959 CTAGS=$ac_cv_prog_CTAGS
2960 if test -n "$CTAGS"; then
2961 echo "$as_me:2961: result: $CTAGS" >&5
2962 echo "${ECHO_T}$CTAGS" >&6
2964 echo "$as_me:2964: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2968 test -n "$CTAGS" && break
2971 for ac_prog in exetags etags
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 echo "$as_me:2975: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977 if test "${ac_cv_prog_ETAGS+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 if test -n "$ETAGS"; then
2981 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2983 ac_save_IFS=$IFS; IFS=$ac_path_separator
2985 for ac_dir in $ac_dummy; do
2987 test -z "$ac_dir" && ac_dir=.
2988 $as_executable_p "$ac_dir/$ac_word" || continue
2989 ac_cv_prog_ETAGS="$ac_prog"
2990 echo "$as_me:2990: found $ac_dir/$ac_word" >&5
2996 ETAGS=$ac_cv_prog_ETAGS
2997 if test -n "$ETAGS"; then
2998 echo "$as_me:2998: result: $ETAGS" >&5
2999 echo "${ECHO_T}$ETAGS" >&6
3001 echo "$as_me:3001: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3005 test -n "$ETAGS" && break
3008 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3009 set dummy ${CTAGS:-ctags}; 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_MAKE_LOWER_TAGS+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 if test -n "$MAKE_LOWER_TAGS"; then
3016 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # 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_MAKE_LOWER_TAGS="yes"
3025 echo "$as_me:3025: found $ac_dir/$ac_word" >&5
3029 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3032 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3033 if test -n "$MAKE_LOWER_TAGS"; then
3034 echo "$as_me:3034: result: $MAKE_LOWER_TAGS" >&5
3035 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3037 echo "$as_me:3037: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3041 if test "$cf_cv_mixedcase" = yes ; then
3042 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3043 set dummy ${ETAGS:-etags}; ac_word=$2
3044 echo "$as_me:3044: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$MAKE_UPPER_TAGS"; then
3050 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3052 ac_save_IFS=$IFS; IFS=$ac_path_separator
3054 for ac_dir in $ac_dummy; do
3056 test -z "$ac_dir" && ac_dir=.
3057 $as_executable_p "$ac_dir/$ac_word" || continue
3058 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3059 echo "$as_me:3059: found $ac_dir/$ac_word" >&5
3063 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3066 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3067 if test -n "$MAKE_UPPER_TAGS"; then
3068 echo "$as_me:3068: result: $MAKE_UPPER_TAGS" >&5
3069 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3071 echo "$as_me:3071: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3079 if test "$MAKE_UPPER_TAGS" = yes ; then
3085 if test "$MAKE_LOWER_TAGS" = yes ; then
3091 echo "$as_me:3091: checking for makeflags variable" >&5
3092 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3093 if test "${cf_cv_makeflags+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3100 cat >cf_makeflags.tmp <<CF_EOF
3103 @ echo '.$cf_option'
3105 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3106 case "$cf_result" in
3108 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3109 case "$cf_result" in
3110 .*CC=*) cf_cv_makeflags=
3112 *) cf_cv_makeflags=$cf_option
3118 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3122 rm -f cf_makeflags.tmp
3125 echo "$as_me:3125: result: $cf_cv_makeflags" >&5
3126 echo "${ECHO_T}$cf_cv_makeflags" >&6
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3131 echo "$as_me:3131: checking for $ac_word" >&5
3132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3133 if test "${ac_cv_prog_RANLIB+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 if test -n "$RANLIB"; then
3137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3139 ac_save_IFS=$IFS; IFS=$ac_path_separator
3141 for ac_dir in $ac_dummy; do
3143 test -z "$ac_dir" && ac_dir=.
3144 $as_executable_p "$ac_dir/$ac_word" || continue
3145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3146 echo "$as_me:3146: found $ac_dir/$ac_word" >&5
3152 RANLIB=$ac_cv_prog_RANLIB
3153 if test -n "$RANLIB"; then
3154 echo "$as_me:3154: result: $RANLIB" >&5
3155 echo "${ECHO_T}$RANLIB" >&6
3157 echo "$as_me:3157: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3162 if test -z "$ac_cv_prog_RANLIB"; then
3163 ac_ct_RANLIB=$RANLIB
3164 # Extract the first word of "ranlib", so it can be a program name with args.
3165 set dummy ranlib; ac_word=$2
3166 echo "$as_me:3166: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if test -n "$ac_ct_RANLIB"; then
3172 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3174 ac_save_IFS=$IFS; IFS=$ac_path_separator
3176 for ac_dir in $ac_dummy; do
3178 test -z "$ac_dir" && ac_dir=.
3179 $as_executable_p "$ac_dir/$ac_word" || continue
3180 ac_cv_prog_ac_ct_RANLIB="ranlib"
3181 echo "$as_me:3181: found $ac_dir/$ac_word" >&5
3185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3189 if test -n "$ac_ct_RANLIB"; then
3190 echo "$as_me:3190: result: $ac_ct_RANLIB" >&5
3191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3193 echo "$as_me:3193: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3197 RANLIB=$ac_ct_RANLIB
3199 RANLIB="$ac_cv_prog_RANLIB"
3202 if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}ld; ac_word=$2
3205 echo "$as_me:3205: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_LD+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$LD"; then
3211 ac_cv_prog_LD="$LD" # Let the user override the test.
3213 ac_save_IFS=$IFS; IFS=$ac_path_separator
3215 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 $as_executable_p "$ac_dir/$ac_word" || continue
3219 ac_cv_prog_LD="${ac_tool_prefix}ld"
3220 echo "$as_me:3220: found $ac_dir/$ac_word" >&5
3227 if test -n "$LD"; then
3228 echo "$as_me:3228: result: $LD" >&5
3229 echo "${ECHO_T}$LD" >&6
3231 echo "$as_me:3231: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3236 if test -z "$ac_cv_prog_LD"; then
3238 # Extract the first word of "ld", so it can be a program name with args.
3239 set dummy ld; ac_word=$2
3240 echo "$as_me:3240: checking for $ac_word" >&5
3241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 if test -n "$ac_ct_LD"; then
3246 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3248 ac_save_IFS=$IFS; IFS=$ac_path_separator
3250 for ac_dir in $ac_dummy; do
3252 test -z "$ac_dir" && ac_dir=.
3253 $as_executable_p "$ac_dir/$ac_word" || continue
3254 ac_cv_prog_ac_ct_LD="ld"
3255 echo "$as_me:3255: found $ac_dir/$ac_word" >&5
3259 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3262 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3263 if test -n "$ac_ct_LD"; then
3264 echo "$as_me:3264: result: $ac_ct_LD" >&5
3265 echo "${ECHO_T}$ac_ct_LD" >&6
3267 echo "$as_me:3267: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3276 if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3278 set dummy ${ac_tool_prefix}ar; ac_word=$2
3279 echo "$as_me:3279: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281 if test "${ac_cv_prog_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3287 ac_save_IFS=$IFS; IFS=$ac_path_separator
3289 for ac_dir in $ac_dummy; do
3291 test -z "$ac_dir" && ac_dir=.
3292 $as_executable_p "$ac_dir/$ac_word" || continue
3293 ac_cv_prog_AR="${ac_tool_prefix}ar"
3294 echo "$as_me:3294: found $ac_dir/$ac_word" >&5
3301 if test -n "$AR"; then
3302 echo "$as_me:3302: result: $AR" >&5
3303 echo "${ECHO_T}$AR" >&6
3305 echo "$as_me:3305: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3310 if test -z "$ac_cv_prog_AR"; then
3312 # Extract the first word of "ar", so it can be a program name with args.
3313 set dummy ar; ac_word=$2
3314 echo "$as_me:3314: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$ac_ct_AR"; then
3320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3322 ac_save_IFS=$IFS; IFS=$ac_path_separator
3324 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 $as_executable_p "$ac_dir/$ac_word" || continue
3328 ac_cv_prog_ac_ct_AR="ar"
3329 echo "$as_me:3329: found $ac_dir/$ac_word" >&5
3333 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3336 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3337 if test -n "$ac_ct_AR"; then
3338 echo "$as_me:3338: result: $ac_ct_AR" >&5
3339 echo "${ECHO_T}$ac_ct_AR" >&6
3341 echo "$as_me:3341: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}ar; ac_word=$2
3353 echo "$as_me:3353: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_AR+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$AR"; then
3359 ac_cv_prog_AR="$AR" # Let the user override the test.
3361 ac_save_IFS=$IFS; IFS=$ac_path_separator
3363 for ac_dir in $ac_dummy; do
3365 test -z "$ac_dir" && ac_dir=.
3366 $as_executable_p "$ac_dir/$ac_word" || continue
3367 ac_cv_prog_AR="${ac_tool_prefix}ar"
3368 echo "$as_me:3368: found $ac_dir/$ac_word" >&5
3375 if test -n "$AR"; then
3376 echo "$as_me:3376: result: $AR" >&5
3377 echo "${ECHO_T}$AR" >&6
3379 echo "$as_me:3379: result: no" >&5
3380 echo "${ECHO_T}no" >&6
3384 if test -z "$ac_cv_prog_AR"; then
3386 # Extract the first word of "ar", so it can be a program name with args.
3387 set dummy ar; ac_word=$2
3388 echo "$as_me:3388: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 if test -n "$ac_ct_AR"; then
3394 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3396 ac_save_IFS=$IFS; IFS=$ac_path_separator
3398 for ac_dir in $ac_dummy; do
3400 test -z "$ac_dir" && ac_dir=.
3401 $as_executable_p "$ac_dir/$ac_word" || continue
3402 ac_cv_prog_ac_ct_AR="ar"
3403 echo "$as_me:3403: found $ac_dir/$ac_word" >&5
3407 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3410 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3411 if test -n "$ac_ct_AR"; then
3412 echo "$as_me:3412: result: $ac_ct_AR" >&5
3413 echo "${ECHO_T}$ac_ct_AR" >&6
3415 echo "$as_me:3415: result: no" >&5
3416 echo "${ECHO_T}no" >&6
3424 echo "$as_me:3424: checking for options to update archives" >&5
3425 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3426 if test "${cf_cv_ar_flags+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 cf_cv_ar_flags=unknown
3431 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3434 # check if $ARFLAGS already contains this choice
3435 if test "x$ARFLAGS" != "x" ; then
3436 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3437 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3443 rm -f conftest.$ac_cv_objext
3446 cat >conftest.$ac_ext <<EOF
3447 #line 3447 "configure"
3448 int testdata[3] = { 123, 456, 789 };
3450 if { (eval echo "$as_me:3450: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>&5
3453 echo "$as_me:3453: \$? = $ac_status" >&5
3454 (exit $ac_status); } ; then
3455 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3456 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3457 if test -f conftest.a ; then
3458 cf_cv_ar_flags=$cf_ar_flags
3462 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3464 echo "${as_me:-configure}:3464: testing cannot compile test-program ..." 1>&5
3469 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3472 echo "$as_me:3472: result: $cf_cv_ar_flags" >&5
3473 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3475 if test -n "$ARFLAGS" ; then
3476 if test -n "$cf_cv_ar_flags" ; then
3477 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3480 ARFLAGS=$cf_cv_ar_flags
3483 echo "$as_me:3483: checking if you have specified an install-prefix" >&5
3484 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3486 # Check whether --with-install-prefix or --without-install-prefix was given.
3487 if test "${with_install_prefix+set}" = set; then
3488 withval="$with_install_prefix"
3489 case "$withval" in #(vi
3492 *) DESTDIR="$withval"
3496 echo "$as_me:3496: result: $DESTDIR" >&5
3497 echo "${ECHO_T}$DESTDIR" >&6
3499 ###############################################################################
3501 # If we're cross-compiling, allow the user to override the tools and their
3502 # options. The configure script is oriented toward identifying the host
3503 # compiler, etc., but we need a build compiler to generate parts of the source.
3505 if test "$cross_compiling" = yes ; then
3507 # defaults that we might want to override
3508 : ${BUILD_CFLAGS:=''}
3509 : ${BUILD_CPPFLAGS:=''}
3510 : ${BUILD_LDFLAGS:=''}
3512 : ${BUILD_EXEEXT:='$x'}
3513 : ${BUILD_OBJEXT:='o'}
3515 # Check whether --with-build-cc or --without-build-cc was given.
3516 if test "${with_build_cc+set}" = set; then
3517 withval="$with_build_cc"
3520 for ac_prog in gcc cc cl
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 echo "$as_me:3524: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 if test -n "$BUILD_CC"; then
3530 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3532 ac_save_IFS=$IFS; IFS=$ac_path_separator
3534 for ac_dir in $ac_dummy; do
3536 test -z "$ac_dir" && ac_dir=.
3537 $as_executable_p "$ac_dir/$ac_word" || continue
3538 ac_cv_prog_BUILD_CC="$ac_prog"
3539 echo "$as_me:3539: found $ac_dir/$ac_word" >&5
3545 BUILD_CC=$ac_cv_prog_BUILD_CC
3546 if test -n "$BUILD_CC"; then
3547 echo "$as_me:3547: result: $BUILD_CC" >&5
3548 echo "${ECHO_T}$BUILD_CC" >&6
3550 echo "$as_me:3550: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3554 test -n "$BUILD_CC" && break
3558 echo "$as_me:3558: checking for native build C compiler" >&5
3559 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3560 echo "$as_me:3560: result: $BUILD_CC" >&5
3561 echo "${ECHO_T}$BUILD_CC" >&6
3563 echo "$as_me:3563: checking for native build C preprocessor" >&5
3564 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3566 # Check whether --with-build-cpp or --without-build-cpp was given.
3567 if test "${with_build_cpp+set}" = set; then
3568 withval="$with_build_cpp"
3569 BUILD_CPP="$withval"
3571 BUILD_CPP='${BUILD_CC} -E'
3573 echo "$as_me:3573: result: $BUILD_CPP" >&5
3574 echo "${ECHO_T}$BUILD_CPP" >&6
3576 echo "$as_me:3576: checking for native build C flags" >&5
3577 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3579 # Check whether --with-build-cflags or --without-build-cflags was given.
3580 if test "${with_build_cflags+set}" = set; then
3581 withval="$with_build_cflags"
3582 BUILD_CFLAGS="$withval"
3584 echo "$as_me:3584: result: $BUILD_CFLAGS" >&5
3585 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3587 echo "$as_me:3587: checking for native build C preprocessor-flags" >&5
3588 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3590 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3591 if test "${with_build_cppflags+set}" = set; then
3592 withval="$with_build_cppflags"
3593 BUILD_CPPFLAGS="$withval"
3595 echo "$as_me:3595: result: $BUILD_CPPFLAGS" >&5
3596 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3598 echo "$as_me:3598: checking for native build linker-flags" >&5
3599 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3601 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3602 if test "${with_build_ldflags+set}" = set; then
3603 withval="$with_build_ldflags"
3604 BUILD_LDFLAGS="$withval"
3606 echo "$as_me:3606: result: $BUILD_LDFLAGS" >&5
3607 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3609 echo "$as_me:3609: checking for native build linker-libraries" >&5
3610 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3612 # Check whether --with-build-libs or --without-build-libs was given.
3613 if test "${with_build_libs+set}" = set; then
3614 withval="$with_build_libs"
3615 BUILD_LIBS="$withval"
3617 echo "$as_me:3617: result: $BUILD_LIBS" >&5
3618 echo "${ECHO_T}$BUILD_LIBS" >&6
3620 # this assumes we're on Unix.
3624 : ${BUILD_CC:='${CC}'}
3626 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3627 { { echo "$as_me:3627: error: Cross-build requires two compilers.
3628 Use --with-build-cc to specify the native compiler." >&5
3629 echo "$as_me: error: Cross-build requires two compilers.
3630 Use --with-build-cc to specify the native compiler." >&2;}
3631 { (exit 1); exit 1; }; }
3635 : ${BUILD_CC:='${CC}'}
3636 : ${BUILD_CPP:='${CPP}'}
3637 : ${BUILD_CFLAGS:='${CFLAGS}'}
3638 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3639 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3640 : ${BUILD_LIBS:='${LIBS}'}
3641 : ${BUILD_EXEEXT:='$x'}
3642 : ${BUILD_OBJEXT:='o'}
3645 ###############################################################################
3647 ### Options to allow the user to specify the set of libraries which are used.
3648 ### Use "--without-normal --with-shared" to allow the default model to be
3649 ### shared, for example.
3652 echo "$as_me:3652: checking if you want to build shared C-objects" >&5
3653 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3655 # Check whether --with-shared or --without-shared was given.
3656 if test "${with_shared+set}" = set; then
3657 withval="$with_shared"
3658 with_shared=$withval
3662 echo "$as_me:3662: result: $with_shared" >&5
3663 echo "${ECHO_T}$with_shared" >&6
3664 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3666 echo "$as_me:3666: checking for specified models" >&5
3667 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3668 test -z "$cf_list_models" && cf_list_models=normal
3669 echo "$as_me:3669: result: $cf_list_models" >&5
3670 echo "${ECHO_T}$cf_list_models" >&6
3672 ### Use the first model as the default, and save its suffix for use in building
3673 ### up test-applications.
3674 echo "$as_me:3674: checking for default model" >&5
3675 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3676 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3677 echo "$as_me:3677: result: $DFT_LWR_MODEL" >&5
3678 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3680 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3682 echo "$as_me:3682: checking for specific curses-directory" >&5
3683 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3685 # Check whether --with-curses-dir or --without-curses-dir was given.
3686 if test "${with_curses_dir+set}" = set; then
3687 withval="$with_curses_dir"
3688 cf_cv_curses_dir=$withval
3692 echo "$as_me:3692: result: $cf_cv_curses_dir" >&5
3693 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3695 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3698 if test "x$prefix" != xNONE; then
3699 cf_path_syntax="$prefix"
3701 cf_path_syntax="$ac_default_prefix"
3704 case ".$withval" in #(vi
3705 .\$\(*\)*|.\'*\'*) #(vi
3709 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3711 .\${*prefix}*|.\${*dir}*) #(vi
3712 eval withval="$withval"
3713 case ".$withval" in #(vi
3715 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3720 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3723 { { echo "$as_me:3723: error: expected a pathname, not \"$withval\"" >&5
3724 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3725 { (exit 1); exit 1; }; }
3729 if test -d "$cf_cv_curses_dir"
3732 if test -n "$cf_cv_curses_dir/include" ; then
3733 for cf_add_incdir in $cf_cv_curses_dir/include
3735 while test $cf_add_incdir != /usr/include
3737 if test -d $cf_add_incdir
3740 if test -n "$CFLAGS$CPPFLAGS" ; then
3741 # a loop is needed to ensure we can add subdirs of existing dirs
3742 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3743 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3744 cf_have_incdir=yes; break
3749 if test "$cf_have_incdir" = no ; then
3750 if test "$cf_add_incdir" = /usr/local/include ; then
3751 if test "$GCC" = yes
3753 cf_save_CPPFLAGS=$CPPFLAGS
3754 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3755 cat >conftest.$ac_ext <<_ACEOF
3756 #line 3756 "configure"
3757 #include "confdefs.h"
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:3768: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3771 echo "$as_me:3771: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:3774: \"$ac_try\"") >&5
3777 echo "$as_me:3777: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3785 rm -f conftest.$ac_objext conftest.$ac_ext
3786 CPPFLAGS=$cf_save_CPPFLAGS
3791 if test "$cf_have_incdir" = no ; then
3792 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3794 echo "${as_me:-configure}:3794: testing adding $cf_add_incdir to include-path ..." 1>&5
3796 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3798 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3799 test "$cf_top_incdir" = "$cf_add_incdir" && break
3800 cf_add_incdir="$cf_top_incdir"
3809 if test -n "$cf_cv_curses_dir/lib" ; then
3810 for cf_add_libdir in $cf_cv_curses_dir/lib
3812 if test $cf_add_libdir = /usr/lib ; then
3814 elif test -d $cf_add_libdir
3817 if test -n "$LDFLAGS$LIBS" ; then
3818 # a loop is needed to ensure we can add subdirs of existing dirs
3819 for cf_test_libdir in $LDFLAGS $LIBS ; do
3820 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3821 cf_have_libdir=yes; break
3825 if test "$cf_have_libdir" = no ; then
3826 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3828 echo "${as_me:-configure}:3828: testing adding $cf_add_libdir to library-path ..." 1>&5
3830 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3839 echo "$as_me:3839: checking if you want wide-character code" >&5
3840 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3842 # Check whether --enable-widec or --disable-widec was given.
3843 if test "${enable_widec+set}" = set; then
3844 enableval="$enable_widec"
3845 with_widec=$enableval
3849 echo "$as_me:3849: result: $with_widec" >&5
3850 echo "${ECHO_T}$with_widec" >&6
3851 if test "$with_widec" = yes ; then
3853 echo "$as_me:3853: checking for multibyte character support" >&5
3854 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3855 if test "${cf_cv_utf8_lib+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 cf_save_LIBS="$LIBS"
3860 cat >conftest.$ac_ext <<_ACEOF
3861 #line 3861 "configure"
3862 #include "confdefs.h"
3873 rm -f conftest.$ac_objext conftest$ac_exeext
3874 if { (eval echo "$as_me:3874: \"$ac_link\"") >&5
3875 (eval $ac_link) 2>&5
3877 echo "$as_me:3877: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -s conftest$ac_exeext'
3880 { (eval echo "$as_me:3880: \"$ac_try\"") >&5
3883 echo "$as_me:3883: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3887 echo "$as_me: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3891 # will be set on completion of the AC_TRY_LINK below.
3892 cf_cv_header_path_utf8=
3893 cf_cv_library_path_utf8=
3895 echo "${as_me:-configure}:3895: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3897 cf_save_LIBS="$LIBS"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 #line 3900 "configure"
3901 #include "confdefs.h"
3903 #include <libutf8.h>
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:3913: \"$ac_link\"") >&5
3914 (eval $ac_link) 2>&5
3916 echo "$as_me:3916: \$? = $ac_status" >&5
3917 (exit $ac_status); } &&
3918 { ac_try='test -s conftest$ac_exeext'
3919 { (eval echo "$as_me:3919: \"$ac_try\"") >&5
3922 echo "$as_me:3922: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3925 cf_cv_find_linkage_utf8=yes
3926 cf_cv_header_path_utf8=/usr/include
3927 cf_cv_library_path_utf8=/usr/lib
3930 echo "$as_me: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 LIBS="-lutf8 $cf_save_LIBS"
3935 cat >conftest.$ac_ext <<_ACEOF
3936 #line 3936 "configure"
3937 #include "confdefs.h"
3939 #include <libutf8.h>
3948 rm -f conftest.$ac_objext conftest$ac_exeext
3949 if { (eval echo "$as_me:3949: \"$ac_link\"") >&5
3950 (eval $ac_link) 2>&5
3952 echo "$as_me:3952: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -s conftest$ac_exeext'
3955 { (eval echo "$as_me:3955: \"$ac_try\"") >&5
3958 echo "$as_me:3958: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3961 cf_cv_find_linkage_utf8=yes
3962 cf_cv_header_path_utf8=/usr/include
3963 cf_cv_library_path_utf8=/usr/lib
3964 cf_cv_library_file_utf8="-lutf8"
3967 echo "$as_me: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3970 cf_cv_find_linkage_utf8=no
3971 LIBS="$cf_save_LIBS"
3973 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
3975 echo "${as_me:-configure}:3975: testing find linkage for utf8 library ..." 1>&5
3977 echo "${as_me:-configure}:3977: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3979 cf_save_CPPFLAGS="$CPPFLAGS"
3980 cf_test_CPPFLAGS="$CPPFLAGS"
3984 # collect the current set of include-directories from compiler flags
3985 cf_header_path_list=""
3986 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3987 for cf_header_path in $CPPFLAGS $CFLAGS
3989 case $cf_header_path in #(vi
3991 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
3993 test "$cf_header_path" != "NONE" && \
3994 test -d "$cf_header_path" && \
3996 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
3997 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
3998 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
3999 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
4000 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
4001 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
4004 cf_header_path_list="$cf_header_path_list $cf_search"
4010 # add the variations for the package we are looking for
4014 test "/usr" != "$prefix" && \
4016 (test $prefix = NONE || test "/usr" != "$prefix") && {
4017 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4018 test -d /usr/include && cf_search="$cf_search /usr/include"
4019 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
4020 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
4021 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
4022 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
4025 test "$prefix" != "NONE" && \
4026 test -d "$prefix" && \
4028 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4029 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4030 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
4031 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
4032 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
4033 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
4036 test "/usr/local" != "$prefix" && \
4037 test -d "/usr/local" && \
4038 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4039 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4040 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4041 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
4042 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
4043 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
4044 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
4047 test "/opt" != "$prefix" && \
4049 (test $prefix = NONE || test "/opt" != "$prefix") && {
4050 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4051 test -d /opt/include && cf_search="$cf_search /opt/include"
4052 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
4053 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
4054 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
4055 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
4058 test "$HOME" != "$prefix" && \
4059 test -d "$HOME" && \
4060 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4061 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4062 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4063 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
4064 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
4065 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
4066 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
4069 test "$includedir" != NONE && \
4070 test "$includedir" != "/usr/include" && \
4071 test -d "$includedir" && {
4072 test -d $includedir && cf_search="$cf_search $includedir"
4073 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
4076 test "$oldincludedir" != NONE && \
4077 test "$oldincludedir" != "/usr/include" && \
4078 test -d "$oldincludedir" && {
4079 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4080 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
4083 cf_search="$cf_search $cf_header_path_list"
4085 for cf_cv_header_path_utf8 in $cf_search
4087 if test -d $cf_cv_header_path_utf8 ; then
4088 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
4090 echo "${as_me:-configure}:4090: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
4092 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
4093 cat >conftest.$ac_ext <<_ACEOF
4094 #line 4094 "configure"
4095 #include "confdefs.h"
4097 #include <libutf8.h>
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:4107: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>&5
4110 echo "$as_me:4110: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try='test -s conftest.$ac_objext'
4113 { (eval echo "$as_me:4113: \"$ac_try\"") >&5
4116 echo "$as_me:4116: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4119 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
4121 echo "${as_me:-configure}:4121: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
4123 cf_cv_find_linkage_utf8=maybe
4124 cf_test_CPPFLAGS="$CPPFLAGS"
4127 echo "$as_me: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4130 CPPFLAGS="$cf_save_CPPFLAGS"
4133 rm -f conftest.$ac_objext conftest.$ac_ext
4137 if test "$cf_cv_find_linkage_utf8" = maybe ; then
4139 echo "${as_me:-configure}:4139: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
4141 cf_save_LIBS="$LIBS"
4142 cf_save_LDFLAGS="$LDFLAGS"
4144 if test "$cf_cv_find_linkage_utf8" != yes ; then
4147 cf_library_path_list=""
4148 if test -n "${LDFLAGS}${LIBS}" ; then
4149 for cf_library_path in $LDFLAGS $LIBS
4151 case $cf_library_path in #(vi
4153 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
4155 test "$cf_library_path" != "NONE" && \
4156 test -d "$cf_library_path" && \
4158 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
4159 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
4160 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
4161 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
4162 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
4163 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
4166 cf_library_path_list="$cf_library_path_list $cf_search"
4174 test "/usr" != "$prefix" && \
4176 (test $prefix = NONE || test "/usr" != "$prefix") && {
4177 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
4178 test -d /usr/lib && cf_search="$cf_search /usr/lib"
4179 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
4180 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
4181 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
4182 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
4185 test "$prefix" != "NONE" && \
4186 test -d "$prefix" && \
4188 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
4189 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
4190 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
4191 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
4192 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
4193 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
4196 test "/usr/local" != "$prefix" && \
4197 test -d "/usr/local" && \
4198 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4199 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
4200 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
4201 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
4202 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
4203 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
4204 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
4207 test "/opt" != "$prefix" && \
4209 (test $prefix = NONE || test "/opt" != "$prefix") && {
4210 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
4211 test -d /opt/lib && cf_search="$cf_search /opt/lib"
4212 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
4213 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
4214 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
4215 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
4218 test "$HOME" != "$prefix" && \
4219 test -d "$HOME" && \
4220 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4221 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
4222 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
4223 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
4224 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
4225 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
4226 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
4229 cf_search="$cf_library_path_list $cf_search"
4231 for cf_cv_library_path_utf8 in $cf_search
4233 if test -d $cf_cv_library_path_utf8 ; then
4234 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
4236 echo "${as_me:-configure}:4236: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
4238 CPPFLAGS="$cf_test_CPPFLAGS"
4239 LIBS="-lutf8 $cf_save_LIBS"
4240 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
4241 cat >conftest.$ac_ext <<_ACEOF
4242 #line 4242 "configure"
4243 #include "confdefs.h"
4245 #include <libutf8.h>
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (eval echo "$as_me:4255: \"$ac_link\"") >&5
4256 (eval $ac_link) 2>&5
4258 echo "$as_me:4258: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -s conftest$ac_exeext'
4261 { (eval echo "$as_me:4261: \"$ac_try\"") >&5
4264 echo "$as_me:4264: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4267 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
4269 echo "${as_me:-configure}:4269: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
4271 cf_cv_find_linkage_utf8=yes
4272 cf_cv_library_file_utf8="-lutf8"
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4278 CPPFLAGS="$cf_save_CPPFLAGS"
4279 LIBS="$cf_save_LIBS"
4280 LDFLAGS="$cf_save_LDFLAGS"
4283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4286 CPPFLAGS="$cf_save_CPPFLAGS"
4287 LDFLAGS="$cf_save_LDFLAGS"
4291 cf_cv_find_linkage_utf8=no
4295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4300 LIBS="$cf_save_LIBS"
4302 if test "$cf_cv_find_linkage_utf8" = yes ; then
4303 cf_cv_utf8_lib=add-on
4309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4311 echo "$as_me:4311: result: $cf_cv_utf8_lib" >&5
4312 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
4314 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
4316 if test "$cf_cv_utf8_lib" = "add-on" ; then
4317 cat >>confdefs.h <<\EOF
4318 #define HAVE_LIBUTF8_H 1
4321 if test -n "$cf_cv_header_path_utf8" ; then
4322 for cf_add_incdir in $cf_cv_header_path_utf8
4324 while test $cf_add_incdir != /usr/include
4326 if test -d $cf_add_incdir
4329 if test -n "$CFLAGS$CPPFLAGS" ; then
4330 # a loop is needed to ensure we can add subdirs of existing dirs
4331 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4332 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4333 cf_have_incdir=yes; break
4338 if test "$cf_have_incdir" = no ; then
4339 if test "$cf_add_incdir" = /usr/local/include ; then
4340 if test "$GCC" = yes
4342 cf_save_CPPFLAGS=$CPPFLAGS
4343 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4344 cat >conftest.$ac_ext <<_ACEOF
4345 #line 4345 "configure"
4346 #include "confdefs.h"
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:4357: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>&5
4360 echo "$as_me:4360: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:4363: \"$ac_try\"") >&5
4366 echo "$as_me:4366: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4370 echo "$as_me: failed program was:" >&5
4371 cat conftest.$ac_ext >&5
4374 rm -f conftest.$ac_objext conftest.$ac_ext
4375 CPPFLAGS=$cf_save_CPPFLAGS
4380 if test "$cf_have_incdir" = no ; then
4381 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4383 echo "${as_me:-configure}:4383: testing adding $cf_add_incdir to include-path ..." 1>&5
4385 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4387 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4388 test "$cf_top_incdir" = "$cf_add_incdir" && break
4389 cf_add_incdir="$cf_top_incdir"
4398 if test -n "$cf_cv_library_path_utf8" ; then
4399 for cf_add_libdir in $cf_cv_library_path_utf8
4401 if test $cf_add_libdir = /usr/lib ; then
4403 elif test -d $cf_add_libdir
4406 if test -n "$LDFLAGS$LIBS" ; then
4407 # a loop is needed to ensure we can add subdirs of existing dirs
4408 for cf_test_libdir in $LDFLAGS $LIBS ; do
4409 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4410 cf_have_libdir=yes; break
4414 if test "$cf_have_libdir" = no ; then
4415 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4417 echo "${as_me:-configure}:4417: testing adding $cf_add_libdir to library-path ..." 1>&5
4419 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4425 LIBS="$cf_cv_library_file_utf8 $LIBS"
4428 cf_ncuconfig_root=ncursesw
4430 echo "Looking for ${cf_ncuconfig_root}-config"
4432 if test -n "$ac_tool_prefix"; then
4433 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4437 echo "$as_me:4437: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 if test -n "$NCURSES_CONFIG"; then
4443 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
4445 ac_save_IFS=$IFS; IFS=$ac_path_separator
4447 for ac_dir in $ac_dummy; do
4449 test -z "$ac_dir" && ac_dir=.
4450 $as_executable_p "$ac_dir/$ac_word" || continue
4451 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
4452 echo "$as_me:4452: found $ac_dir/$ac_word" >&5
4458 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
4459 if test -n "$NCURSES_CONFIG"; then
4460 echo "$as_me:4460: result: $NCURSES_CONFIG" >&5
4461 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4463 echo "$as_me:4463: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4467 test -n "$NCURSES_CONFIG" && break
4470 if test -z "$NCURSES_CONFIG"; then
4471 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
4472 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4474 # Extract the first word of "$ac_prog", so it can be a program name with args.
4475 set dummy $ac_prog; ac_word=$2
4476 echo "$as_me:4476: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 if test -n "$ac_ct_NCURSES_CONFIG"; then
4482 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
4484 ac_save_IFS=$IFS; IFS=$ac_path_separator
4486 for ac_dir in $ac_dummy; do
4488 test -z "$ac_dir" && ac_dir=.
4489 $as_executable_p "$ac_dir/$ac_word" || continue
4490 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
4491 echo "$as_me:4491: found $ac_dir/$ac_word" >&5
4497 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
4498 if test -n "$ac_ct_NCURSES_CONFIG"; then
4499 echo "$as_me:4499: result: $ac_ct_NCURSES_CONFIG" >&5
4500 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
4502 echo "$as_me:4502: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 test -n "$ac_ct_NCURSES_CONFIG" && break
4508 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
4510 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
4513 if test "$NCURSES_CONFIG" != none ; then
4515 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4516 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4518 # even with config script, some packages use no-override for curses.h
4520 echo "$as_me:4520: checking if we have identified curses headers" >&5
4521 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4522 if test "${cf_cv_ncurses_header+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 cf_cv_ncurses_header=none
4528 ncursesw/ncurses.h \
4533 cat >conftest.$ac_ext <<_ACEOF
4534 #line 4534 "configure"
4535 #include "confdefs.h"
4536 #include <${cf_header}>
4540 initscr(); tgoto("?", 0,0)
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:4546: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>&5
4549 echo "$as_me:4549: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:4552: \"$ac_try\"") >&5
4555 echo "$as_me:4555: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 cf_cv_ncurses_header=$cf_header; break
4559 echo "$as_me: failed program was:" >&5
4560 cat conftest.$ac_ext >&5
4562 rm -f conftest.$ac_objext conftest.$ac_ext
4566 echo "$as_me:4566: result: $cf_cv_ncurses_header" >&5
4567 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4569 if test "$cf_cv_ncurses_header" = none ; then
4570 { { echo "$as_me:4570: error: No curses header-files found" >&5
4571 echo "$as_me: error: No curses header-files found" >&2;}
4572 { (exit 1); exit 1; }; }
4575 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4577 for ac_header in $cf_cv_ncurses_header
4579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 echo "$as_me:4580: checking for $ac_header" >&5
4581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line 4586 "configure"
4587 #include "confdefs.h"
4588 #include <$ac_header>
4590 if { (eval echo "$as_me:4590: \"$ac_cpp conftest.$ac_ext\"") >&5
4591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4593 egrep -v '^ *\+' conftest.er1 >conftest.err
4595 cat conftest.err >&5
4596 echo "$as_me:4596: \$? = $ac_status" >&5
4597 (exit $ac_status); } >/dev/null; then
4598 if test -s conftest.err; then
4599 ac_cpp_err=$ac_c_preproc_warn_flag
4606 if test -z "$ac_cpp_err"; then
4607 eval "$as_ac_Header=yes"
4609 echo "$as_me: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4611 eval "$as_ac_Header=no"
4613 rm -f conftest.err conftest.$ac_ext
4615 echo "$as_me:4615: result: `eval echo '${'$as_ac_Header'}'`" >&5
4616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4618 cat >>confdefs.h <<EOF
4619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4625 cat >>confdefs.h <<\EOF
4629 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4631 cat >>confdefs.h <<EOF
4632 #define $cf_nculib_ROOT 1
4635 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4639 cf_ncuhdr_root=ncursesw
4641 test -n "$cf_cv_curses_dir" && \
4642 test "$cf_cv_curses_dir" != "no" && { \
4644 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4645 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
4647 while test $cf_add_incdir != /usr/include
4649 if test -d $cf_add_incdir
4652 if test -n "$CFLAGS$CPPFLAGS" ; then
4653 # a loop is needed to ensure we can add subdirs of existing dirs
4654 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4655 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4656 cf_have_incdir=yes; break
4661 if test "$cf_have_incdir" = no ; then
4662 if test "$cf_add_incdir" = /usr/local/include ; then