2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20101002.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="dialog.h"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
663 --build=BUILD configure for building on BUILD [guessed]
664 --host=HOST build programs to run on HOST [BUILD]
668 if test -n "$ac_init_help"; then
673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
680 --disable-echo display "compiling" commands
681 --disable-largefile omit support for large files
682 --with-warnings test: turn on gcc warnings
683 --with-package=XXX rename dialog to XXX, library to libXXX.a, etc
684 --enable-header-subdir install dlg_XXX headers to subdirectory
685 --with-libiconv-prefix=DIR
686 search for libiconv in DIR/include and DIR/lib
687 --enable-nls use Native Language Support
688 --with-included-gettext use the GNU gettext library included here
689 --with-textdomain=PKG NLS text-domain (default is package name)
690 --disable-included-msgs use included messages, for i18n support
691 --with-dmalloc test: use Gray Watson's dmalloc library
692 --with-dbmalloc test: use Conor Cahill's dbmalloc library
693 --with-purify test: use Purify
694 --with-valgrind test: use valgrind
695 --with-no-leaks test: free permanent memory, analyze leaks
696 --disable-trace do not support --trace option
697 --disable-libtool-version enable to use libtool's incompatible naming scheme
698 --with-libtool generate libraries with libtool
699 --with-libtool-opts=XXX specify additional libtool options
700 --with-curses-dir=DIR directory in which (n)curses is installed
701 --with-ncurses compile/link with ncurses library
702 --with-ncursesw compile/link with wide-char ncurses library
703 --disable-extras do not include extra dialogs
704 --disable-rc-file do not include config-file support
705 --disable-Xdialog do not include Xdialog-style dialogs
706 --disable-form do not include the form dialog
707 --disable-gauge do not include the gauge dialogs
708 --disable-tailbox do not include the tailbox dialog
709 --disable-mixedform do not include the mixedform dialog
710 --disable-mixedgauge do not include the mixedgauge dialog
711 --enable-widec enable wide-curses features
712 --disable-rpath-hack don't add rpath options for additional libraries
714 Some influential environment variables:
715 CC C compiler command
716 CFLAGS C compiler flags
717 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
718 nonstandard directory <lib dir>
719 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
720 headers in a nonstandard directory <include dir>
723 Use these variables to override the choices made by `configure' or to help
724 it to find libraries and programs with nonstandard names/locations.
729 if test "$ac_init_help" = "recursive"; then
730 # If there are subdirs, report their specific --help.
732 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
734 # A "../" for each directory in /$ac_subdir.
735 ac_dots=`echo $ac_subdir |
736 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
739 .) # No --srcdir option. We are building in place.
740 ac_sub_srcdir=$srcdir ;;
741 [\\/]* | ?:[\\/]* ) # Absolute path.
742 ac_sub_srcdir=$srcdir/$ac_subdir ;;
744 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
747 # Check for guested configure; otherwise get Cygnus style configure.
748 if test -f $ac_sub_srcdir/configure.gnu; then
750 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
751 elif test -f $ac_sub_srcdir/configure; then
753 $SHELL $ac_sub_srcdir/configure --help=recursive
754 elif test -f $ac_sub_srcdir/configure.ac ||
755 test -f $ac_sub_srcdir/configure.in; then
759 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
765 test -n "$ac_init_help" && exit 0
766 if $ac_init_version; then
769 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
770 Free Software Foundation, Inc.
771 This configure script is free software; the Free Software Foundation
772 gives unlimited permission to copy, distribute and modify it.
778 This file contains any messages produced by compilers while
779 running configure, to aid debugging if configure makes a mistake.
781 It was created by $as_me, which was
782 generated by GNU Autoconf 2.52.20101002. Invocation command line was
793 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
794 uname -m = `(uname -m) 2>/dev/null || echo unknown`
795 uname -r = `(uname -r) 2>/dev/null || echo unknown`
796 uname -s = `(uname -s) 2>/dev/null || echo unknown`
797 uname -v = `(uname -v) 2>/dev/null || echo unknown`
799 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
800 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
802 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
803 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
804 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
805 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
806 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
807 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
808 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
822 # Keep a trace of the command line.
823 # Strip out --no-create and --no-recursion so they do not pile up.
824 # Also quote any args containing shell meta-characters.
830 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
831 | --no-cr | --no-c) ;;
832 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
833 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
834 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
835 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
836 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
838 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
841 # Get rid of the leading space.
844 # When interrupted or exit'd, cleanup temporary files, and complete
845 # config.log. We remove comments because anyway the quotes in there
846 # would cause problems or look ugly.
848 # Save into config.log some information that might help in debugging.
850 echo "## ----------------- ##" >&5
851 echo "## Cache variables. ##" >&5
852 echo "## ----------------- ##" >&5
854 # The following way of writing the cache mishandles newlines in values,
857 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
860 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
865 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
869 sed "/^$/d" confdefs.h >conftest.log
870 if test -s conftest.log; then
872 echo "## ------------ ##" >&5
873 echo "## confdefs.h. ##" >&5
874 echo "## ------------ ##" >&5
879 test "$ac_signal" != 0 &&
880 echo "$as_me: caught signal $ac_signal" >&5
881 echo "$as_me: exit $exit_status" >&5
882 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
885 for ac_signal in 1 2 13 15; do
886 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
890 # confdefs.h avoids OS command line length limits that DEFS can exceed.
891 rm -rf conftest* confdefs.h
892 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
895 # Let the site file select an alternate cache file if it wants to.
896 # Prefer explicitly selected file to automatically selected ones.
897 if test -z "$CONFIG_SITE"; then
898 if test "x$prefix" != xNONE; then
899 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
901 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
904 for ac_site_file in $CONFIG_SITE; do
905 if test -r "$ac_site_file"; then
906 { echo "$as_me:906: loading site script $ac_site_file" >&5
907 echo "$as_me: loading site script $ac_site_file" >&6;}
908 cat "$ac_site_file" >&5
913 if test -r "$cache_file"; then
914 # Some versions of bash will fail to source /dev/null (special
915 # files actually), so we avoid doing that.
916 if test -f "$cache_file"; then
917 { echo "$as_me:917: loading cache $cache_file" >&5
918 echo "$as_me: loading cache $cache_file" >&6;}
920 [\\/]* | ?:[\\/]* ) . $cache_file;;
925 { echo "$as_me:925: creating cache $cache_file" >&5
926 echo "$as_me: creating cache $cache_file" >&6;}
930 # Check that the precious variables saved in the cache have kept the same
932 ac_cache_corrupted=false
933 for ac_var in `(set) 2>&1 |
934 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
936 eval ac_new_set=\$ac_env_${ac_var}_set
937 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
938 eval ac_new_val="\$ac_env_${ac_var}_value"
939 case $ac_old_set,$ac_new_set in
941 { echo "$as_me:941: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
942 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
943 ac_cache_corrupted=: ;;
945 { echo "$as_me:945: error: \`$ac_var' was not set in the previous run" >&5
946 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
947 ac_cache_corrupted=: ;;
950 if test "x$ac_old_val" != "x$ac_new_val"; then
951 { echo "$as_me:951: error: \`$ac_var' has changed since the previous run:" >&5
952 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
953 { echo "$as_me:953: former value: $ac_old_val" >&5
954 echo "$as_me: former value: $ac_old_val" >&2;}
955 { echo "$as_me:955: current value: $ac_new_val" >&5
956 echo "$as_me: current value: $ac_new_val" >&2;}
960 # Pass precious variables to config.status. It doesn't matter if
961 # we pass some twice (in addition to the command line arguments).
962 if test "$ac_new_set" = set; then
964 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
965 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
966 ac_configure_args="$ac_configure_args '$ac_arg'"
968 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
973 if $ac_cache_corrupted; then
974 { echo "$as_me:974: error: changes in the environment can compromise the build" >&5
975 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
976 { { echo "$as_me:976: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
977 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
978 { (exit 1); exit 1; }; }
982 ac_cpp='$CPP $CPPFLAGS'
983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
986 ac_main_return=return
988 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
989 *c*,-n*) ECHO_N= ECHO_C='
991 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
992 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
994 echo "#! $SHELL" >conftest.sh
995 echo "exit 0" >>conftest.sh
997 if { (echo "$as_me:997: PATH=\".;.\"; conftest.sh") >&5
998 (PATH=".;."; conftest.sh) 2>&5
1000 echo "$as_me:1000: \$? = $ac_status" >&5
1001 (exit $ac_status); }; then
1002 ac_path_separator=';'
1006 PATH_SEPARATOR="$ac_path_separator"
1009 ac_config_headers="$ac_config_headers dlg_config.h:config.hin"
1011 test "$program_prefix" != NONE &&
1012 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1013 # Use a double $ so make ignores it.
1014 test "$program_suffix" != NONE &&
1015 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1016 # Double any \ or $. echo might interpret backslashes.
1017 # By default was `s,x,x', remove it if useless.
1018 cat <<\_ACEOF >conftest.sed
1019 s/[\\$]/&&/g;s/;s,x,x,$//
1021 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1027 ac_cpp='$CPP $CPPFLAGS'
1028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1031 ac_main_return=return
1032 if test -n "$ac_tool_prefix"; then
1033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1035 echo "$as_me:1035: checking for $ac_word" >&5
1036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1037 if test "${ac_cv_prog_CC+set}" = set; then
1038 echo $ECHO_N "(cached) $ECHO_C" >&6
1040 if test -n "$CC"; then
1041 ac_cv_prog_CC="$CC" # Let the user override the test.
1043 ac_save_IFS=$IFS; IFS=$ac_path_separator
1045 for ac_dir in $ac_dummy; do
1047 test -z "$ac_dir" && ac_dir=.
1048 $as_executable_p "$ac_dir/$ac_word" || continue
1049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1050 echo "$as_me:1050: found $ac_dir/$ac_word" >&5
1057 if test -n "$CC"; then
1058 echo "$as_me:1058: result: $CC" >&5
1059 echo "${ECHO_T}$CC" >&6
1061 echo "$as_me:1061: result: no" >&5
1062 echo "${ECHO_T}no" >&6
1066 if test -z "$ac_cv_prog_CC"; then
1068 # Extract the first word of "gcc", so it can be a program name with args.
1069 set dummy gcc; ac_word=$2
1070 echo "$as_me:1070: checking for $ac_word" >&5
1071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1073 echo $ECHO_N "(cached) $ECHO_C" >&6
1075 if test -n "$ac_ct_CC"; then
1076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1078 ac_save_IFS=$IFS; IFS=$ac_path_separator
1080 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 $as_executable_p "$ac_dir/$ac_word" || continue
1084 ac_cv_prog_ac_ct_CC="gcc"
1085 echo "$as_me:1085: found $ac_dir/$ac_word" >&5
1091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1092 if test -n "$ac_ct_CC"; then
1093 echo "$as_me:1093: result: $ac_ct_CC" >&5
1094 echo "${ECHO_T}$ac_ct_CC" >&6
1096 echo "$as_me:1096: result: no" >&5
1097 echo "${ECHO_T}no" >&6
1105 if test -z "$CC"; then
1106 if test -n "$ac_tool_prefix"; then
1107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1108 set dummy ${ac_tool_prefix}cc; ac_word=$2
1109 echo "$as_me:1109: checking for $ac_word" >&5
1110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1111 if test "${ac_cv_prog_CC+set}" = set; then
1112 echo $ECHO_N "(cached) $ECHO_C" >&6
1114 if test -n "$CC"; then
1115 ac_cv_prog_CC="$CC" # Let the user override the test.
1117 ac_save_IFS=$IFS; IFS=$ac_path_separator
1119 for ac_dir in $ac_dummy; do
1121 test -z "$ac_dir" && ac_dir=.
1122 $as_executable_p "$ac_dir/$ac_word" || continue
1123 ac_cv_prog_CC="${ac_tool_prefix}cc"
1124 echo "$as_me:1124: found $ac_dir/$ac_word" >&5
1131 if test -n "$CC"; then
1132 echo "$as_me:1132: result: $CC" >&5
1133 echo "${ECHO_T}$CC" >&6
1135 echo "$as_me:1135: result: no" >&5
1136 echo "${ECHO_T}no" >&6
1140 if test -z "$ac_cv_prog_CC"; then
1142 # Extract the first word of "cc", so it can be a program name with args.
1143 set dummy cc; ac_word=$2
1144 echo "$as_me:1144: checking for $ac_word" >&5
1145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1147 echo $ECHO_N "(cached) $ECHO_C" >&6
1149 if test -n "$ac_ct_CC"; then
1150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1152 ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 $as_executable_p "$ac_dir/$ac_word" || continue
1158 ac_cv_prog_ac_ct_CC="cc"
1159 echo "$as_me:1159: found $ac_dir/$ac_word" >&5
1165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1166 if test -n "$ac_ct_CC"; then
1167 echo "$as_me:1167: result: $ac_ct_CC" >&5
1168 echo "${ECHO_T}$ac_ct_CC" >&6
1170 echo "$as_me:1170: result: no" >&5
1171 echo "${ECHO_T}no" >&6
1180 if test -z "$CC"; then
1181 # Extract the first word of "cc", so it can be a program name with args.
1182 set dummy cc; ac_word=$2
1183 echo "$as_me:1183: checking for $ac_word" >&5
1184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185 if test "${ac_cv_prog_CC+set}" = set; then
1186 echo $ECHO_N "(cached) $ECHO_C" >&6
1188 if test -n "$CC"; then
1189 ac_cv_prog_CC="$CC" # Let the user override the test.
1192 ac_save_IFS=$IFS; IFS=$ac_path_separator
1194 for ac_dir in $ac_dummy; do
1196 test -z "$ac_dir" && ac_dir=.
1197 $as_executable_p "$ac_dir/$ac_word" || continue
1198 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1199 ac_prog_rejected=yes
1203 echo "$as_me:1203: found $ac_dir/$ac_word" >&5
1207 if test $ac_prog_rejected = yes; then
1208 # We found a bogon in the path, so make sure we never use it.
1209 set dummy $ac_cv_prog_CC
1211 if test $# != 0; then
1212 # We chose a different compiler from the bogus one.
1213 # However, it has the same basename, so the bogon will be chosen
1214 # first if we set CC to just the basename; use the full file name.
1216 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1224 if test -n "$CC"; then
1225 echo "$as_me:1225: result: $CC" >&5
1226 echo "${ECHO_T}$CC" >&6
1228 echo "$as_me:1228: result: no" >&5
1229 echo "${ECHO_T}no" >&6
1233 if test -z "$CC"; then
1234 if test -n "$ac_tool_prefix"; then
1237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1239 echo "$as_me:1239: checking for $ac_word" >&5
1240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1241 if test "${ac_cv_prog_CC+set}" = set; then
1242 echo $ECHO_N "(cached) $ECHO_C" >&6
1244 if test -n "$CC"; then
1245 ac_cv_prog_CC="$CC" # Let the user override the test.
1247 ac_save_IFS=$IFS; IFS=$ac_path_separator
1249 for ac_dir in $ac_dummy; do
1251 test -z "$ac_dir" && ac_dir=.
1252 $as_executable_p "$ac_dir/$ac_word" || continue
1253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1254 echo "$as_me:1254: found $ac_dir/$ac_word" >&5
1261 if test -n "$CC"; then
1262 echo "$as_me:1262: result: $CC" >&5
1263 echo "${ECHO_T}$CC" >&6
1265 echo "$as_me:1265: result: no" >&5
1266 echo "${ECHO_T}no" >&6
1269 test -n "$CC" && break
1272 if test -z "$CC"; then
1276 # Extract the first word of "$ac_prog", so it can be a program name with args.
1277 set dummy $ac_prog; ac_word=$2
1278 echo "$as_me:1278: checking for $ac_word" >&5
1279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1281 echo $ECHO_N "(cached) $ECHO_C" >&6
1283 if test -n "$ac_ct_CC"; then
1284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1286 ac_save_IFS=$IFS; IFS=$ac_path_separator
1288 for ac_dir in $ac_dummy; do
1290 test -z "$ac_dir" && ac_dir=.
1291 $as_executable_p "$ac_dir/$ac_word" || continue
1292 ac_cv_prog_ac_ct_CC="$ac_prog"
1293 echo "$as_me:1293: found $ac_dir/$ac_word" >&5
1299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1300 if test -n "$ac_ct_CC"; then
1301 echo "$as_me:1301: result: $ac_ct_CC" >&5
1302 echo "${ECHO_T}$ac_ct_CC" >&6
1304 echo "$as_me:1304: result: no" >&5
1305 echo "${ECHO_T}no" >&6
1308 test -n "$ac_ct_CC" && break
1316 test -z "$CC" && { { echo "$as_me:1316: error: no acceptable cc found in \$PATH" >&5
1317 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1318 { (exit 1); exit 1; }; }
1320 # Provide some information about the compiler.
1321 echo "$as_me:1321:" \
1322 "checking for C compiler version" >&5
1323 ac_compiler=`set X $ac_compile; echo $2`
1324 { (eval echo "$as_me:1324: \"$ac_compiler --version </dev/null >&5\"") >&5
1325 (eval $ac_compiler --version </dev/null >&5) 2>&5
1327 echo "$as_me:1327: \$? = $ac_status" >&5
1328 (exit $ac_status); }
1329 { (eval echo "$as_me:1329: \"$ac_compiler -v </dev/null >&5\"") >&5
1330 (eval $ac_compiler -v </dev/null >&5) 2>&5
1332 echo "$as_me:1332: \$? = $ac_status" >&5
1333 (exit $ac_status); }
1334 { (eval echo "$as_me:1334: \"$ac_compiler -V </dev/null >&5\"") >&5
1335 (eval $ac_compiler -V </dev/null >&5) 2>&5
1337 echo "$as_me:1337: \$? = $ac_status" >&5
1338 (exit $ac_status); }
1340 cat >conftest.$ac_ext <<_ACEOF
1341 #line 1341 "configure"
1342 #include "confdefs.h"
1352 ac_clean_files_save=$ac_clean_files
1353 ac_clean_files="$ac_clean_files a.out a.exe"
1354 # Try to create an executable without -o first, disregard a.out.
1355 # It will help us diagnose broken compilers, and finding out an intuition
1357 echo "$as_me:1357: checking for C compiler default output" >&5
1358 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1359 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1360 if { (eval echo "$as_me:1360: \"$ac_link_default\"") >&5
1361 (eval $ac_link_default) 2>&5
1363 echo "$as_me:1363: \$? = $ac_status" >&5
1364 (exit $ac_status); }; then
1365 # Find the output, starting from the most likely. This scheme is
1366 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1368 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1369 ls a.out conftest 2>/dev/null;
1370 ls a.* conftest.* 2>/dev/null`; do
1372 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1373 a.out ) # We found the default executable, but exeext='' is most
1376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1377 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1384 echo "$as_me: failed program was:" >&5
1385 cat conftest.$ac_ext >&5
1386 { { echo "$as_me:1386: error: C compiler cannot create executables" >&5
1387 echo "$as_me: error: C compiler cannot create executables" >&2;}
1388 { (exit 77); exit 77; }; }
1391 ac_exeext=$ac_cv_exeext
1392 echo "$as_me:1392: result: $ac_file" >&5
1393 echo "${ECHO_T}$ac_file" >&6
1395 # Check the compiler produces executables we can run. If not, either
1396 # the compiler is broken, or we cross compile.
1397 echo "$as_me:1397: checking whether the C compiler works" >&5
1398 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1399 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1400 # If not cross compiling, check that we can run a simple program.
1401 if test "$cross_compiling" != yes; then
1402 if { ac_try='./$ac_file'
1403 { (eval echo "$as_me:1403: \"$ac_try\"") >&5
1406 echo "$as_me:1406: \$? = $ac_status" >&5
1407 (exit $ac_status); }; }; then
1410 if test "$cross_compiling" = maybe; then
1413 { { echo "$as_me:1413: error: cannot run C compiled programs.
1414 If you meant to cross compile, use \`--host'." >&5
1415 echo "$as_me: error: cannot run C compiled programs.
1416 If you meant to cross compile, use \`--host'." >&2;}
1417 { (exit 1); exit 1; }; }
1421 echo "$as_me:1421: result: yes" >&5
1422 echo "${ECHO_T}yes" >&6
1424 rm -f a.out a.exe conftest$ac_cv_exeext
1425 ac_clean_files=$ac_clean_files_save
1426 # Check the compiler produces executables we can run. If not, either
1427 # the compiler is broken, or we cross compile.
1428 echo "$as_me:1428: checking whether we are cross compiling" >&5
1429 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1430 echo "$as_me:1430: result: $cross_compiling" >&5
1431 echo "${ECHO_T}$cross_compiling" >&6
1433 echo "$as_me:1433: checking for executable suffix" >&5
1434 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1435 if { (eval echo "$as_me:1435: \"$ac_link\"") >&5
1436 (eval $ac_link) 2>&5
1438 echo "$as_me:1438: \$? = $ac_status" >&5
1439 (exit $ac_status); }; then
1440 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1441 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1442 # work properly (i.e., refer to `conftest.exe'), while it won't with
1444 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1446 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1454 { { echo "$as_me:1454: error: cannot compute EXEEXT: cannot compile and link" >&5
1455 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1456 { (exit 1); exit 1; }; }
1459 rm -f conftest$ac_cv_exeext
1460 echo "$as_me:1460: result: $ac_cv_exeext" >&5
1461 echo "${ECHO_T}$ac_cv_exeext" >&6
1463 rm -f conftest.$ac_ext
1464 EXEEXT=$ac_cv_exeext
1466 echo "$as_me:1466: checking for object suffix" >&5
1467 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1468 if test "${ac_cv_objext+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 cat >conftest.$ac_ext <<_ACEOF
1472 #line 1472 "configure"
1473 #include "confdefs.h"
1483 rm -f conftest.o conftest.obj
1484 if { (eval echo "$as_me:1484: \"$ac_compile\"") >&5
1485 (eval $ac_compile) 2>&5
1487 echo "$as_me:1487: \$? = $ac_status" >&5
1488 (exit $ac_status); }; then
1489 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1491 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1497 echo "$as_me: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1499 { { echo "$as_me:1499: error: cannot compute OBJEXT: cannot compile" >&5
1500 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1501 { (exit 1); exit 1; }; }
1504 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1506 echo "$as_me:1506: result: $ac_cv_objext" >&5
1507 echo "${ECHO_T}$ac_cv_objext" >&6
1508 OBJEXT=$ac_cv_objext
1510 echo "$as_me:1510: checking whether we are using the GNU C compiler" >&5
1511 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 cat >conftest.$ac_ext <<_ACEOF
1516 #line 1516 "configure"
1517 #include "confdefs.h"
1530 rm -f conftest.$ac_objext
1531 if { (eval echo "$as_me:1531: \"$ac_compile\"") >&5
1532 (eval $ac_compile) 2>&5
1534 echo "$as_me:1534: \$? = $ac_status" >&5
1535 (exit $ac_status); } &&
1536 { ac_try='test -s conftest.$ac_objext'
1537 { (eval echo "$as_me:1537: \"$ac_try\"") >&5
1540 echo "$as_me:1540: \$? = $ac_status" >&5
1541 (exit $ac_status); }; }; then
1544 echo "$as_me: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1548 rm -f conftest.$ac_objext conftest.$ac_ext
1549 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1552 echo "$as_me:1552: result: $ac_cv_c_compiler_gnu" >&5
1553 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1554 GCC=`test $ac_compiler_gnu = yes && echo yes`
1555 ac_test_CFLAGS=${CFLAGS+set}
1556 ac_save_CFLAGS=$CFLAGS
1558 echo "$as_me:1558: checking whether $CC accepts -g" >&5
1559 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1560 if test "${ac_cv_prog_cc_g+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 cat >conftest.$ac_ext <<_ACEOF
1564 #line 1564 "configure"
1565 #include "confdefs.h"
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
1589 echo "$as_me: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1593 rm -f conftest.$ac_objext conftest.$ac_ext
1595 echo "$as_me:1595: result: $ac_cv_prog_cc_g" >&5
1596 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1597 if test "$ac_test_CFLAGS" = set; then
1598 CFLAGS=$ac_save_CFLAGS
1599 elif test $ac_cv_prog_cc_g = yes; then
1600 if test "$GCC" = yes; then
1606 if test "$GCC" = yes; then
1612 # Some people use a C++ compiler to compile C. Since we use `exit',
1613 # in C++ we need to declare it. In case someone uses the same compiler
1614 # for both compiling C and C++ we need to have the C++ compiler decide
1615 # the declaration of exit, since it's the most demanding environment.
1616 cat >conftest.$ac_ext <<_ACEOF
1621 rm -f conftest.$ac_objext
1622 if { (eval echo "$as_me:1622: \"$ac_compile\"") >&5
1623 (eval $ac_compile) 2>&5
1625 echo "$as_me:1625: \$? = $ac_status" >&5
1626 (exit $ac_status); } &&
1627 { ac_try='test -s conftest.$ac_objext'
1628 { (eval echo "$as_me:1628: \"$ac_try\"") >&5
1631 echo "$as_me:1631: \$? = $ac_status" >&5
1632 (exit $ac_status); }; }; then
1633 for ac_declaration in \
1635 '#include <stdlib.h>' \
1636 'extern "C" void std::exit (int) throw (); using std::exit;' \
1637 'extern "C" void std::exit (int); using std::exit;' \
1638 'extern "C" void exit (int) throw ();' \
1639 'extern "C" void exit (int);' \
1642 cat >conftest.$ac_ext <<_ACEOF
1643 #line 1643 "configure"
1644 #include "confdefs.h"
1655 rm -f conftest.$ac_objext
1656 if { (eval echo "$as_me:1656: \"$ac_compile\"") >&5
1657 (eval $ac_compile) 2>&5
1659 echo "$as_me:1659: \$? = $ac_status" >&5
1660 (exit $ac_status); } &&
1661 { ac_try='test -s conftest.$ac_objext'
1662 { (eval echo "$as_me:1662: \"$ac_try\"") >&5
1665 echo "$as_me:1665: \$? = $ac_status" >&5
1666 (exit $ac_status); }; }; then
1669 echo "$as_me: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1673 rm -f conftest.$ac_objext conftest.$ac_ext
1674 cat >conftest.$ac_ext <<_ACEOF
1675 #line 1675 "configure"
1676 #include "confdefs.h"
1686 rm -f conftest.$ac_objext
1687 if { (eval echo "$as_me:1687: \"$ac_compile\"") >&5
1688 (eval $ac_compile) 2>&5
1690 echo "$as_me:1690: \$? = $ac_status" >&5
1691 (exit $ac_status); } &&
1692 { ac_try='test -s conftest.$ac_objext'
1693 { (eval echo "$as_me:1693: \"$ac_try\"") >&5
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }; }; then
1700 echo "$as_me: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1703 rm -f conftest.$ac_objext conftest.$ac_ext
1706 if test -n "$ac_declaration"; then
1707 echo '#ifdef __cplusplus' >>confdefs.h
1708 echo $ac_declaration >>confdefs.h
1709 echo '#endif' >>confdefs.h
1713 echo "$as_me: failed program was:" >&5
1714 cat conftest.$ac_ext >&5
1716 rm -f conftest.$ac_objext conftest.$ac_ext
1718 ac_cpp='$CPP $CPPFLAGS'
1719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1722 ac_main_return=return
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1729 ac_main_return=return
1730 echo "$as_me:1730: checking how to run the C preprocessor" >&5
1731 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1732 # On Suns, sometimes $CPP names a directory.
1733 if test -n "$CPP" && test -d "$CPP"; then
1736 if test -z "$CPP"; then
1737 if test "${ac_cv_prog_CPP+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 # Double quotes because CPP needs to be expanded
1741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1744 for ac_c_preproc_warn_flag in '' yes
1746 # Use a header file that comes with gcc, so configuring glibc
1747 # with a fresh cross-compiler works.
1748 # On the NeXT, cc -E runs the code through the compiler's parser,
1749 # not just through cpp. "Syntax error" is here to catch this case.
1750 cat >conftest.$ac_ext <<_ACEOF
1751 #line 1751 "configure"
1752 #include "confdefs.h"
1756 if { (eval echo "$as_me:1756: \"$ac_cpp conftest.$ac_ext\"") >&5
1757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1759 egrep -v '^ *\+' conftest.er1 >conftest.err
1761 cat conftest.err >&5
1762 echo "$as_me:1762: \$? = $ac_status" >&5
1763 (exit $ac_status); } >/dev/null; then
1764 if test -s conftest.err; then
1765 ac_cpp_err=$ac_c_preproc_warn_flag
1772 if test -z "$ac_cpp_err"; then
1775 echo "$as_me: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 # Broken: fails on valid input.
1780 rm -f conftest.err conftest.$ac_ext
1782 # OK, works on sane cases. Now check whether non-existent headers
1783 # can be detected and how.
1784 cat >conftest.$ac_ext <<_ACEOF
1785 #line 1785 "configure"
1786 #include "confdefs.h"
1787 #include <ac_nonexistent.h>
1789 if { (eval echo "$as_me:1789: \"$ac_cpp conftest.$ac_ext\"") >&5
1790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1792 egrep -v '^ *\+' conftest.er1 >conftest.err
1794 cat conftest.err >&5
1795 echo "$as_me:1795: \$? = $ac_status" >&5
1796 (exit $ac_status); } >/dev/null; then
1797 if test -s conftest.err; then
1798 ac_cpp_err=$ac_c_preproc_warn_flag
1805 if test -z "$ac_cpp_err"; then
1806 # Broken: success on invalid input.
1809 echo "$as_me: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 # Passes both tests.
1815 rm -f conftest.err conftest.$ac_ext
1818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1819 rm -f conftest.err conftest.$ac_ext
1820 if $ac_preproc_ok; then
1832 echo "$as_me:1832: result: $CPP" >&5
1833 echo "${ECHO_T}$CPP" >&6
1835 for ac_c_preproc_warn_flag in '' yes
1837 # Use a header file that comes with gcc, so configuring glibc
1838 # with a fresh cross-compiler works.
1839 # On the NeXT, cc -E runs the code through the compiler's parser,
1840 # not just through cpp. "Syntax error" is here to catch this case.
1841 cat >conftest.$ac_ext <<_ACEOF
1842 #line 1842 "configure"
1843 #include "confdefs.h"
1847 if { (eval echo "$as_me:1847: \"$ac_cpp conftest.$ac_ext\"") >&5
1848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1850 egrep -v '^ *\+' conftest.er1 >conftest.err
1852 cat conftest.err >&5
1853 echo "$as_me:1853: \$? = $ac_status" >&5
1854 (exit $ac_status); } >/dev/null; then
1855 if test -s conftest.err; then
1856 ac_cpp_err=$ac_c_preproc_warn_flag
1863 if test -z "$ac_cpp_err"; then
1866 echo "$as_me: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1868 # Broken: fails on valid input.
1871 rm -f conftest.err conftest.$ac_ext
1873 # OK, works on sane cases. Now check whether non-existent headers
1874 # can be detected and how.
1875 cat >conftest.$ac_ext <<_ACEOF
1876 #line 1876 "configure"
1877 #include "confdefs.h"
1878 #include <ac_nonexistent.h>
1880 if { (eval echo "$as_me:1880: \"$ac_cpp conftest.$ac_ext\"") >&5
1881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1883 egrep -v '^ *\+' conftest.er1 >conftest.err
1885 cat conftest.err >&5
1886 echo "$as_me:1886: \$? = $ac_status" >&5
1887 (exit $ac_status); } >/dev/null; then
1888 if test -s conftest.err; then
1889 ac_cpp_err=$ac_c_preproc_warn_flag
1896 if test -z "$ac_cpp_err"; then
1897 # Broken: success on invalid input.
1900 echo "$as_me: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 # Passes both tests.
1906 rm -f conftest.err conftest.$ac_ext
1909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1910 rm -f conftest.err conftest.$ac_ext
1911 if $ac_preproc_ok; then
1914 { { echo "$as_me:1914: error: C preprocessor \"$CPP\" fails sanity check" >&5
1915 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1916 { (exit 1); exit 1; }; }
1920 ac_cpp='$CPP $CPPFLAGS'
1921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924 ac_main_return=return
1926 if test $ac_cv_c_compiler_gnu = yes; then
1927 echo "$as_me:1927: checking whether $CC needs -traditional" >&5
1928 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
1929 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 ac_pattern="Autoconf.*'x'"
1933 cat >conftest.$ac_ext <<_ACEOF
1934 #line 1934 "configure"
1935 #include "confdefs.h"
1937 int Autoconf = TIOCGETP;
1939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1940 egrep "$ac_pattern" >/dev/null 2>&1; then
1941 ac_cv_prog_gcc_traditional=yes
1943 ac_cv_prog_gcc_traditional=no
1947 if test $ac_cv_prog_gcc_traditional = no; then
1948 cat >conftest.$ac_ext <<_ACEOF
1949 #line 1949 "configure"
1950 #include "confdefs.h"
1952 int Autoconf = TCGETA;
1954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1955 egrep "$ac_pattern" >/dev/null 2>&1; then
1956 ac_cv_prog_gcc_traditional=yes
1962 echo "$as_me:1962: result: $ac_cv_prog_gcc_traditional" >&5
1963 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1964 if test $ac_cv_prog_gcc_traditional = yes; then
1965 CC="$CC -traditional"
1969 echo "$as_me:1969: checking whether ${MAKE-make} sets \${MAKE}" >&5
1970 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1971 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1972 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 cat >conftest.make <<\EOF
1977 @echo 'ac_maketemp="${MAKE}"'
1979 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1980 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1981 if test -n "$ac_maketemp"; then
1982 eval ac_cv_prog_make_${ac_make}_set=yes
1984 eval ac_cv_prog_make_${ac_make}_set=no
1988 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1989 echo "$as_me:1989: result: yes" >&5
1990 echo "${ECHO_T}yes" >&6
1993 echo "$as_me:1993: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1995 SET_MAKE="MAKE=${MAKE-make}"
1998 if test -n "$ac_tool_prefix"; then
1999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2001 echo "$as_me:2001: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_RANLIB+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$RANLIB"; then
2007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2009 ac_save_IFS=$IFS; IFS=$ac_path_separator
2011 for ac_dir in $ac_dummy; do
2013 test -z "$ac_dir" && ac_dir=.
2014 $as_executable_p "$ac_dir/$ac_word" || continue
2015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2016 echo "$as_me:2016: found $ac_dir/$ac_word" >&5
2022 RANLIB=$ac_cv_prog_RANLIB
2023 if test -n "$RANLIB"; then
2024 echo "$as_me:2024: result: $RANLIB" >&5
2025 echo "${ECHO_T}$RANLIB" >&6
2027 echo "$as_me:2027: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2032 if test -z "$ac_cv_prog_RANLIB"; then
2033 ac_ct_RANLIB=$RANLIB
2034 # Extract the first word of "ranlib", so it can be a program name with args.
2035 set dummy ranlib; ac_word=$2
2036 echo "$as_me:2036: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$ac_ct_RANLIB"; then
2042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2044 ac_save_IFS=$IFS; IFS=$ac_path_separator
2046 for ac_dir in $ac_dummy; do
2048 test -z "$ac_dir" && ac_dir=.
2049 $as_executable_p "$ac_dir/$ac_word" || continue
2050 ac_cv_prog_ac_ct_RANLIB="ranlib"
2051 echo "$as_me:2051: found $ac_dir/$ac_word" >&5
2055 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2058 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2059 if test -n "$ac_ct_RANLIB"; then
2060 echo "$as_me:2060: result: $ac_ct_RANLIB" >&5
2061 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2063 echo "$as_me:2063: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2067 RANLIB=$ac_ct_RANLIB
2069 RANLIB="$ac_cv_prog_RANLIB"
2073 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2074 if test -f $ac_dir/install-sh; then
2076 ac_install_sh="$ac_aux_dir/install-sh -c"
2078 elif test -f $ac_dir/install.sh; then
2080 ac_install_sh="$ac_aux_dir/install.sh -c"
2082 elif test -f $ac_dir/shtool; then
2084 ac_install_sh="$ac_aux_dir/shtool install -c"
2088 if test -z "$ac_aux_dir"; then
2089 { { echo "$as_me:2089: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2090 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2091 { (exit 1); exit 1; }; }
2093 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2094 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2095 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2097 # Find a good install program. We prefer a C program (faster),
2098 # so one script is as good as another. But avoid the broken or
2099 # incompatible versions:
2100 # SysV /etc/install, /usr/sbin/install
2101 # SunOS /usr/etc/install
2102 # IRIX /sbin/install
2104 # AmigaOS /C/install, which installs bootblocks on floppy discs
2105 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2106 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2107 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2108 # ./install, which can be erroneously created by make from ./install.sh.
2109 echo "$as_me:2109: checking for a BSD compatible install" >&5
2110 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2111 if test -z "$INSTALL"; then
2112 if test "${ac_cv_path_install+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 ac_save_IFS=$IFS; IFS=$ac_path_separator
2116 for ac_dir in $PATH; do
2118 # Account for people who put trailing slashes in PATH elements.
2120 / | ./ | .// | /cC/* \
2121 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2124 # OSF1 and SCO ODT 3.0 have their own names for install.
2125 # Don't use installbsd from OSF since it installs stuff as root
2127 for ac_prog in ginstall scoinst install; do
2128 if $as_executable_p "$ac_dir/$ac_prog"; then
2129 if test $ac_prog = install &&
2130 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2131 # AIX install. It has an incompatible calling convention.
2133 elif test $ac_prog = install &&
2134 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2135 # program-specific install script used by HP pwplus--don't use.
2138 ac_cv_path_install="$ac_dir/$ac_prog -c"
2148 if test "${ac_cv_path_install+set}" = set; then
2149 INSTALL=$ac_cv_path_install
2151 # As a last resort, use the slow shell script. We don't cache a
2152 # path for INSTALL within a source directory, because that will
2153 # break other packages using the cache if that directory is
2154 # removed, or if the path is relative.
2155 INSTALL=$ac_install_sh
2158 echo "$as_me:2158: result: $INSTALL" >&5
2159 echo "${ECHO_T}$INSTALL" >&6
2161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2162 # It thinks the first close brace ends the variable substitution.
2163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2169 if test -n "$ac_tool_prefix"; then
2170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2171 set dummy ${ac_tool_prefix}ar; ac_word=$2
2172 echo "$as_me:2172: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174 if test "${ac_cv_prog_AR+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$AR"; then
2178 ac_cv_prog_AR="$AR" # Let the user override the test.
2180 ac_save_IFS=$IFS; IFS=$ac_path_separator
2182 for ac_dir in $ac_dummy; do
2184 test -z "$ac_dir" && ac_dir=.
2185 $as_executable_p "$ac_dir/$ac_word" || continue
2186 ac_cv_prog_AR="${ac_tool_prefix}ar"
2187 echo "$as_me:2187: found $ac_dir/$ac_word" >&5
2194 if test -n "$AR"; then
2195 echo "$as_me:2195: result: $AR" >&5
2196 echo "${ECHO_T}$AR" >&6
2198 echo "$as_me:2198: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2203 if test -z "$ac_cv_prog_AR"; then
2205 # Extract the first word of "ar", so it can be a program name with args.
2206 set dummy ar; ac_word=$2
2207 echo "$as_me:2207: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2209 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$ac_ct_AR"; then
2213 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2215 ac_save_IFS=$IFS; IFS=$ac_path_separator
2217 for ac_dir in $ac_dummy; do
2219 test -z "$ac_dir" && ac_dir=.
2220 $as_executable_p "$ac_dir/$ac_word" || continue
2221 ac_cv_prog_ac_ct_AR="ar"
2222 echo "$as_me:2222: found $ac_dir/$ac_word" >&5
2226 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
2229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2230 if test -n "$ac_ct_AR"; then
2231 echo "$as_me:2231: result: $ac_ct_AR" >&5
2232 echo "${ECHO_T}$ac_ct_AR" >&6
2234 echo "$as_me:2234: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2243 echo "$as_me:2243: checking for POSIXized ISC" >&5
2244 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2245 if test -d /etc/conf/kconfig.d &&
2246 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2248 echo "$as_me:2248: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2250 ISC=yes # If later tests want to check for ISC.
2252 cat >>confdefs.h <<\EOF
2253 #define _POSIX_SOURCE 1
2256 if test "$GCC" = yes; then
2262 echo "$as_me:2262: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2267 echo "$as_me:2267: checking for $CC option to accept ANSI C" >&5
2268 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2269 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 ac_cv_prog_cc_stdc=no
2274 cat >conftest.$ac_ext <<_ACEOF
2275 #line 2275 "configure"
2276 #include "confdefs.h"
2279 #include <sys/types.h>
2280 #include <sys/stat.h>
2281 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2282 struct buf { int x; };
2283 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2284 static char *e (p, i)
2290 static char *f (char * (*g) (char **, int), char **p, ...)
2295 s = g (p, va_arg (v,int));
2299 int test (int i, double x);
2300 struct s1 {int (*f) (int a);};
2301 struct s2 {int (*f) (double a);};
2302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2313 # Don't try gcc -ansi; that turns off useful extensions and
2314 # breaks some systems' header files.
2315 # AIX -qlanglvl=ansi
2316 # Ultrix and OSF/1 -std1
2317 # HP-UX 10.20 and later -Ae
2318 # HP-UX older versions -Aa -D_HPUX_SOURCE
2319 # SVR4 -Xc -D__EXTENSIONS__
2320 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2322 CC="$ac_save_CC $ac_arg"
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:2324: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>&5
2327 echo "$as_me:2327: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:2330: \"$ac_try\"") >&5
2333 echo "$as_me:2333: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 ac_cv_prog_cc_stdc=$ac_arg
2338 echo "$as_me: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 rm -f conftest.$ac_objext
2343 rm -f conftest.$ac_ext conftest.$ac_objext
2348 case "x$ac_cv_prog_cc_stdc" in
2350 echo "$as_me:2350: result: none needed" >&5
2351 echo "${ECHO_T}none needed" >&6 ;;
2353 echo "$as_me:2353: result: $ac_cv_prog_cc_stdc" >&5
2354 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2355 CC="$CC $ac_cv_prog_cc_stdc" ;;
2358 echo "$as_me:2358: checking for an ANSI C-conforming const" >&5
2359 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2360 if test "${ac_cv_c_const+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.$ac_ext <<_ACEOF
2364 #line 2364 "configure"
2365 #include "confdefs.h"
2370 /* FIXME: Include the comments suggested by Paul. */
2372 /* Ultrix mips cc rejects this. */
2373 typedef int charset[2];
2375 /* SunOS 4.1.1 cc rejects this. */
2376 char const *const *ccp;
2378 /* NEC SVR4.0.2 mips cc rejects this. */
2379 struct point {int x, y;};
2380 static struct point const zero = {0,0};
2381 /* AIX XL C 1.02.0.0 rejects this.
2382 It does not let you subtract one const X* pointer from another in
2383 an arm of an if-expression whose if-part is not a constant
2385 const char *g = "string";
2386 ccp = &g + (g ? g-g : 0);
2387 /* HPUX 7.0 cc rejects these. */
2390 ccp = (char const *const *) p;
2391 { /* SCO 3.2v4 cc rejects this. */
2393 char const *s = 0 ? (char *) 0 : (char const *) 0;
2397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2399 const int *foo = &x[0];
2402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2403 typedef const int *iptr;
2407 { /* AIX XL C 1.02.0.0 rejects this saying
2408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2409 struct s { int j; const int *ap[3]; };
2410 struct s *b; b->j = 5;
2412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:2422: \"$ac_compile\"") >&5
2423 (eval $ac_compile) 2>&5
2425 echo "$as_me:2425: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
2427 { ac_try='test -s conftest.$ac_objext'
2428 { (eval echo "$as_me:2428: \"$ac_try\"") >&5
2431 echo "$as_me:2431: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
2435 echo "$as_me: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2439 rm -f conftest.$ac_objext conftest.$ac_ext
2441 echo "$as_me:2441: result: $ac_cv_c_const" >&5
2442 echo "${ECHO_T}$ac_cv_c_const" >&6
2443 if test $ac_cv_c_const = no; then
2445 cat >>confdefs.h <<\EOF
2451 echo "$as_me:2451: checking for makeflags variable" >&5
2452 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2453 if test "${cf_cv_makeflags+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2460 cat >cf_makeflags.tmp <<CF_EOF
2463 @ echo '.$cf_option'
2465 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
2466 case "$cf_result" in
2468 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2469 case "$cf_result" in
2470 .*CC=*) cf_cv_makeflags=
2472 *) cf_cv_makeflags=$cf_option
2478 *) echo "given option \"$cf_option\", no match \"$cf_result\""
2482 rm -f cf_makeflags.tmp
2485 echo "$as_me:2485: result: $cf_cv_makeflags" >&5
2486 echo "${ECHO_T}$cf_cv_makeflags" >&6
2488 echo "$as_me:2488: checking if filesystem supports mixed-case filenames" >&5
2489 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2490 if test "${cf_cv_mixedcase+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 if test "$cross_compiling" = yes ; then
2495 case $target_alias in #(vi
2496 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2504 rm -f conftest CONFTEST
2506 if test -f CONFTEST ; then
2511 rm -f conftest CONFTEST
2515 echo "$as_me:2515: result: $cf_cv_mixedcase" >&5
2516 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2517 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2518 #define MIXEDCASE_FILENAMES 1
2521 for ac_prog in exctags ctags
2523 # Extract the first word of "$ac_prog", so it can be a program name with args.
2524 set dummy $ac_prog; ac_word=$2
2525 echo "$as_me:2525: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2527 if test "${ac_cv_prog_CTAGS+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 if test -n "$CTAGS"; then
2531 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2533 ac_save_IFS=$IFS; IFS=$ac_path_separator
2535 for ac_dir in $ac_dummy; do
2537 test -z "$ac_dir" && ac_dir=.
2538 $as_executable_p "$ac_dir/$ac_word" || continue
2539 ac_cv_prog_CTAGS="$ac_prog"
2540 echo "$as_me:2540: found $ac_dir/$ac_word" >&5
2546 CTAGS=$ac_cv_prog_CTAGS
2547 if test -n "$CTAGS"; then
2548 echo "$as_me:2548: result: $CTAGS" >&5
2549 echo "${ECHO_T}$CTAGS" >&6
2551 echo "$as_me:2551: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 test -n "$CTAGS" && break
2558 for ac_prog in exetags etags
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561 set dummy $ac_prog; ac_word=$2
2562 echo "$as_me:2562: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2564 if test "${ac_cv_prog_ETAGS+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 if test -n "$ETAGS"; then
2568 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2570 ac_save_IFS=$IFS; IFS=$ac_path_separator
2572 for ac_dir in $ac_dummy; do
2574 test -z "$ac_dir" && ac_dir=.
2575 $as_executable_p "$ac_dir/$ac_word" || continue
2576 ac_cv_prog_ETAGS="$ac_prog"
2577 echo "$as_me:2577: found $ac_dir/$ac_word" >&5
2583 ETAGS=$ac_cv_prog_ETAGS
2584 if test -n "$ETAGS"; then
2585 echo "$as_me:2585: result: $ETAGS" >&5
2586 echo "${ECHO_T}$ETAGS" >&6
2588 echo "$as_me:2588: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2592 test -n "$ETAGS" && break
2595 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2596 set dummy ${CTAGS:-ctags}; ac_word=$2
2597 echo "$as_me:2597: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 if test -n "$MAKE_LOWER_TAGS"; then
2603 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2605 ac_save_IFS=$IFS; IFS=$ac_path_separator
2607 for ac_dir in $ac_dummy; do
2609 test -z "$ac_dir" && ac_dir=.
2610 $as_executable_p "$ac_dir/$ac_word" || continue
2611 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2612 echo "$as_me:2612: found $ac_dir/$ac_word" >&5
2616 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2619 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2620 if test -n "$MAKE_LOWER_TAGS"; then
2621 echo "$as_me:2621: result: $MAKE_LOWER_TAGS" >&5
2622 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2624 echo "$as_me:2624: result: no" >&5
2625 echo "${ECHO_T}no" >&6
2628 if test "$cf_cv_mixedcase" = yes ; then
2629 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2630 set dummy ${ETAGS:-etags}; ac_word=$2
2631 echo "$as_me:2631: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if test -n "$MAKE_UPPER_TAGS"; then
2637 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2639 ac_save_IFS=$IFS; IFS=$ac_path_separator
2641 for ac_dir in $ac_dummy; do
2643 test -z "$ac_dir" && ac_dir=.
2644 $as_executable_p "$ac_dir/$ac_word" || continue
2645 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2646 echo "$as_me:2646: found $ac_dir/$ac_word" >&5
2650 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2653 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2654 if test -n "$MAKE_UPPER_TAGS"; then
2655 echo "$as_me:2655: result: $MAKE_UPPER_TAGS" >&5
2656 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2658 echo "$as_me:2658: result: no" >&5
2659 echo "${ECHO_T}no" >&6
2666 if test "$MAKE_UPPER_TAGS" = yes ; then
2672 if test "$MAKE_LOWER_TAGS" = yes ; then
2678 echo "$as_me:2678: checking if you want to see long compiling messages" >&5
2679 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
2681 # Check whether --enable-echo or --disable-echo was given.
2682 if test "${enable_echo+set}" = set; then
2683 enableval="$enable_echo"
2684 test "$enableval" != no && enableval=yes
2685 if test "$enableval" != "yes" ; then
2688 ECHO_LD='@echo linking $@;'
2689 RULE_CC='@echo compiling $<'
2690 SHOW_CC='@echo compiling $@'
2712 echo "$as_me:2712: result: $enableval" >&5
2713 echo "${ECHO_T}$enableval" >&6
2715 # Make sure we can run config.sub.
2716 $ac_config_sub sun4 >/dev/null 2>&1 ||
2717 { { echo "$as_me:2717: error: cannot run $ac_config_sub" >&5
2718 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2719 { (exit 1); exit 1; }; }
2721 echo "$as_me:2721: checking build system type" >&5
2722 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2723 if test "${ac_cv_build+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 ac_cv_build_alias=$build_alias
2727 test -z "$ac_cv_build_alias" &&
2728 ac_cv_build_alias=`$ac_config_guess`
2729 test -z "$ac_cv_build_alias" &&
2730 { { echo "$as_me:2730: error: cannot guess build type; you must specify one" >&5
2731 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2732 { (exit 1); exit 1; }; }
2733 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2734 { { echo "$as_me:2734: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2735 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2736 { (exit 1); exit 1; }; }
2739 echo "$as_me:2739: result: $ac_cv_build" >&5
2740 echo "${ECHO_T}$ac_cv_build" >&6
2742 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2743 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2744 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2746 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
2747 echo "$as_me:2747: checking host system type" >&5
2748 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2749 if test "${ac_cv_host+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 ac_cv_host_alias=$host_alias
2753 test -z "$ac_cv_host_alias" &&
2754 ac_cv_host_alias=$ac_cv_build_alias
2755 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2756 { { echo "$as_me:2756: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2757 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2758 { (exit 1); exit 1; }; }
2761 echo "$as_me:2761: result: $ac_cv_host" >&5
2762 echo "${ECHO_T}$ac_cv_host" >&6
2764 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2765 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2766 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2768 system_name="$host_os"
2770 system_name="`(uname -s -r) 2>/dev/null`"
2771 if test -z "$system_name" ; then
2772 system_name="`(hostname) 2>/dev/null`"
2775 test -n "$system_name" && cat >>confdefs.h <<EOF
2776 #define SYSTEM_NAME "$system_name"
2779 if test "${cf_cv_system_name+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 cf_cv_system_name="$system_name"
2785 test -z "$system_name" && system_name="$cf_cv_system_name"
2786 test -n "$cf_cv_system_name" && echo "$as_me:2786: result: Configuring for $cf_cv_system_name" >&5
2787 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
2789 if test ".$system_name" != ".$cf_cv_system_name" ; then
2790 echo "$as_me:2790: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
2791 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
2792 { { echo "$as_me:2792: error: \"Please remove config.cache and try again.\"" >&5
2793 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
2794 { (exit 1); exit 1; }; }
2797 case $cf_cv_system_name in
2799 CFLAGS="$CFLAGS -Zmt"
2800 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2801 CXXFLAGS="$CXXFLAGS -Zmt"
2802 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2803 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2810 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2811 #define PROG_EXT "$PROG_EXT"
2814 case $cf_cv_system_name in
2815 os2*) PATH_SEPARATOR=';' ;;
2816 *) PATH_SEPARATOR=':' ;;
2819 case $cf_cv_system_name in #(vi
2828 cf_POSIX_C_SOURCE=199506L
2831 case $host_os in #(vi
2833 cf_xopen_source="-D_ALL_SOURCE"
2839 cf_xopen_source="-D_APPLE_C_SOURCE"
2842 cf_xopen_source="-D_DARWIN_C_SOURCE"
2844 freebsd*|dragonfly*) #(vi
2845 # 5.x headers associate
2846 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2847 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2848 cf_POSIX_C_SOURCE=200112L
2850 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2853 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2856 cf_xopen_source="-D_HPUX_SOURCE"
2859 cf_xopen_source="-D_SGI_SOURCE"
2861 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2863 echo "$as_me:2863: checking if we must define _GNU_SOURCE" >&5
2864 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2865 if test "${cf_cv_gnu_source+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line 2870 "configure"
2871 #include "confdefs.h"
2872 #include <sys/types.h>
2877 #ifndef _XOPEN_SOURCE
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:2885: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>&5
2888 echo "$as_me:2888: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:2891: \"$ac_try\"") >&5
2894 echo "$as_me:2894: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2898 echo "$as_me: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2901 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2902 cat >conftest.$ac_ext <<_ACEOF
2903 #line 2903 "configure"
2904 #include "confdefs.h"
2905 #include <sys/types.h>
2910 #ifdef _XOPEN_SOURCE
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:2918: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>&5
2921 echo "$as_me:2921: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try='test -s conftest.$ac_objext'
2924 { (eval echo "$as_me:2924: \"$ac_try\"") >&5
2927 echo "$as_me:2927: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2931 echo "$as_me: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 cf_cv_gnu_source=yes
2935 rm -f conftest.$ac_objext conftest.$ac_ext
2939 rm -f conftest.$ac_objext conftest.$ac_ext
2942 echo "$as_me:2942: result: $cf_cv_gnu_source" >&5
2943 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2944 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2948 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2951 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2954 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2957 cf_xopen_source="-D_OSF_SOURCE"
2960 cf_xopen_source="-D_QNX_SOURCE"
2963 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2965 solaris2.1[0-9]) #(vi
2966 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2968 solaris2.[1-9]) #(vi
2969 cf_xopen_source="-D__EXTENSIONS__"
2972 echo "$as_me:2972: checking if we should define _XOPEN_SOURCE" >&5
2973 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2974 if test "${cf_cv_xopen_source+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 cat >conftest.$ac_ext <<_ACEOF
2979 #line 2979 "configure"
2980 #include "confdefs.h"
2981 #include <sys/types.h>
2986 #ifndef _XOPEN_SOURCE
2993 rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:2994: \"$ac_compile\"") >&5
2995 (eval $ac_compile) 2>&5
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:3000: \"$ac_try\"") >&5
3003 echo "$as_me:3003: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3005 cf_cv_xopen_source=no
3007 echo "$as_me: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3010 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line 3012 "configure"
3013 #include "confdefs.h"
3014 #include <sys/types.h>
3019 #ifdef _XOPEN_SOURCE
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:3027: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>&5
3030 echo "$as_me:3030: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (eval echo "$as_me:3033: \"$ac_try\"") >&5
3036 echo "$as_me:3036: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3038 cf_cv_xopen_source=no
3040 echo "$as_me: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3042 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3044 rm -f conftest.$ac_objext conftest.$ac_ext
3048 rm -f conftest.$ac_objext conftest.$ac_ext
3051 echo "$as_me:3051: result: $cf_cv_xopen_source" >&5
3052 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3053 if test "$cf_cv_xopen_source" != no ; then
3055 CFLAGS=`echo "$CFLAGS" | \
3056 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3057 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3059 CPPFLAGS=`echo "$CPPFLAGS" | \
3060 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3061 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3063 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3068 cf_new_extra_cppflags=
3070 for cf_add_cflags in $cf_temp_xopen_source
3072 case $cf_fix_cppflags in
3074 case $cf_add_cflags in #(vi
3075 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3076 case $cf_add_cflags in
3078 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3080 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3081 && test -z "${cf_tst_cflags}" \
3082 && cf_fix_cppflags=yes
3084 if test $cf_fix_cppflags = yes ; then
3085 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3087 elif test "${cf_tst_cflags}" = "\"'" ; then
3088 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3094 *$cf_add_cflags) #(vi
3097 case $cf_add_cflags in #(vi
3099 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3101 CPPFLAGS=`echo "$CPPFLAGS" | \
3102 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3103 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3107 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3112 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3117 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3119 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3121 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3122 && test -z "${cf_tst_cflags}" \
3123 && cf_fix_cppflags=no
3128 if test -n "$cf_new_cflags" ; then
3130 CFLAGS="$CFLAGS $cf_new_cflags"
3133 if test -n "$cf_new_cppflags" ; then
3135 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3138 if test -n "$cf_new_extra_cppflags" ; then
3140 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3145 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3147 cf_save_CFLAGS="$CFLAGS"
3148 cf_save_CPPFLAGS="$CPPFLAGS"
3150 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3151 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3152 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3154 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3155 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3156 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3158 echo "$as_me:3158: checking if we should define _POSIX_C_SOURCE" >&5
3159 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3160 if test "${cf_cv_posix_c_source+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 echo "${as_me:-configure}:3164: testing if the symbol is already defined go no further ..." 1>&5
3166 cat >conftest.$ac_ext <<_ACEOF
3167 #line 3167 "configure"
3168 #include "confdefs.h"
3169 #include <sys/types.h>
3174 #ifndef _POSIX_C_SOURCE
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:3182: \"$ac_compile\"") >&5
3183 (eval $ac_compile) 2>&5
3185 echo "$as_me:3185: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:3188: \"$ac_try\"") >&5
3191 echo "$as_me:3191: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 cf_cv_posix_c_source=no
3195 echo "$as_me: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3197 cf_want_posix_source=no
3198 case .$cf_POSIX_C_SOURCE in #(vi
3200 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3203 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3204 cf_want_posix_source=yes
3207 cf_want_posix_source=yes
3210 if test "$cf_want_posix_source" = yes ; then
3211 cat >conftest.$ac_ext <<_ACEOF
3212 #line 3212 "configure"
3213 #include "confdefs.h"
3214 #include <sys/types.h>
3219 #ifdef _POSIX_SOURCE
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:3227: \"$ac_compile\"") >&5
3228 (eval $ac_compile) 2>&5
3230 echo "$as_me:3230: \$? = $ac_status" >&5
3231 (exit $ac_status); } &&
3232 { ac_try='test -s conftest.$ac_objext'
3233 { (eval echo "$as_me:3233: \"$ac_try\"") >&5
3236 echo "$as_me:3236: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
3240 echo "$as_me: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3244 rm -f conftest.$ac_objext conftest.$ac_ext
3247 echo "${as_me:-configure}:3247: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3249 CFLAGS="$cf_trim_CFLAGS"
3250 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3252 echo "${as_me:-configure}:3252: testing if the second compile does not leave our definition intact error ..." 1>&5
3254 cat >conftest.$ac_ext <<_ACEOF
3255 #line 3255 "configure"
3256 #include "confdefs.h"
3257 #include <sys/types.h>
3262 #ifndef _POSIX_C_SOURCE
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:3270: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>&5
3273 echo "$as_me:3273: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -s conftest.$ac_objext'
3276 { (eval echo "$as_me:3276: \"$ac_try\"") >&5
3279 echo "$as_me:3279: \$? = $ac_status" >&5
3280 (exit $ac_status); }; }; then
3283 echo "$as_me: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 cf_cv_posix_c_source=no
3287 rm -f conftest.$ac_objext conftest.$ac_ext
3288 CFLAGS="$cf_save_CFLAGS"
3289 CPPFLAGS="$cf_save_CPPFLAGS"
3292 rm -f conftest.$ac_objext conftest.$ac_ext
3295 echo "$as_me:3295: result: $cf_cv_posix_c_source" >&5
3296 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3298 if test "$cf_cv_posix_c_source" != no ; then
3299 CFLAGS="$cf_trim_CFLAGS"
3300 CPPFLAGS="$cf_trim_CPPFLAGS"
3305 cf_new_extra_cppflags=
3307 for cf_add_cflags in $cf_cv_posix_c_source
3309 case $cf_fix_cppflags in
3311 case $cf_add_cflags in #(vi
3312 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3313 case $cf_add_cflags in
3315 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3317 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3318 && test -z "${cf_tst_cflags}" \
3319 && cf_fix_cppflags=yes
3321 if test $cf_fix_cppflags = yes ; then
3322 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3324 elif test "${cf_tst_cflags}" = "\"'" ; then
3325 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3331 *$cf_add_cflags) #(vi
3334 case $cf_add_cflags in #(vi
3336 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3338 CPPFLAGS=`echo "$CPPFLAGS" | \
3339 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3340 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3344 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3349 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3354 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3356 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3358 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3359 && test -z "${cf_tst_cflags}" \
3360 && cf_fix_cppflags=no
3365 if test -n "$cf_new_cflags" ; then
3367 CFLAGS="$CFLAGS $cf_new_cflags"
3370 if test -n "$cf_new_cppflags" ; then
3372 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3375 if test -n "$cf_new_extra_cppflags" ; then
3377 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3385 if test -n "$cf_xopen_source" ; then
3390 cf_new_extra_cppflags=
3392 for cf_add_cflags in $cf_xopen_source
3394 case $cf_fix_cppflags in
3396 case $cf_add_cflags in #(vi
3397 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3398 case $cf_add_cflags in
3400 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3402 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3403 && test -z "${cf_tst_cflags}" \
3404 && cf_fix_cppflags=yes
3406 if test $cf_fix_cppflags = yes ; then
3407 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3409 elif test "${cf_tst_cflags}" = "\"'" ; then
3410 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3416 *$cf_add_cflags) #(vi
3419 case $cf_add_cflags in #(vi
3421 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3423 CPPFLAGS=`echo "$CPPFLAGS" | \
3424 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3425 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3429 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3434 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3439 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3441 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3443 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3444 && test -z "${cf_tst_cflags}" \
3445 && cf_fix_cppflags=no
3450 if test -n "$cf_new_cflags" ; then
3452 CFLAGS="$CFLAGS $cf_new_cflags"
3455 if test -n "$cf_new_cppflags" ; then
3457 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3460 if test -n "$cf_new_extra_cppflags" ; then
3462 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3467 # Check whether --enable-largefile or --disable-largefile was given.
3468 if test "${enable_largefile+set}" = set; then
3469 enableval="$enable_largefile"
3472 if test "$enable_largefile" != no; then
3474 echo "$as_me:3474: checking for special C compiler options needed for large files" >&5
3475 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3476 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 ac_cv_sys_largefile_CC=no
3480 if test "$GCC" != yes; then
3483 # IRIX 6.2 and later do not support large files by default,
3484 # so use the C compiler's -n32 option if that helps.
3485 cat >conftest.$ac_ext <<_ACEOF
3486 #line 3486 "configure"
3487 #include "confdefs.h"
3488 #include <sys/types.h>
3489 /* Check that off_t can represent 2**63 - 1 correctly.
3490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3491 since some C++ compilers masquerading as C compilers
3492 incorrectly reject 9223372036854775807. */
3493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3495 && LARGE_OFF_T % 2147483647 == 1)
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:3506: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>&5
3509 echo "$as_me:3509: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
3511 { ac_try='test -s conftest.$ac_objext'
3512 { (eval echo "$as_me:3512: \"$ac_try\"") >&5
3515 echo "$as_me:3515: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3519 echo "$as_me: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3522 rm -f conftest.$ac_objext
3524 rm -f conftest.$ac_objext
3525 if { (eval echo "$as_me:3525: \"$ac_compile\"") >&5
3526 (eval $ac_compile) 2>&5
3528 echo "$as_me:3528: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -s conftest.$ac_objext'
3531 { (eval echo "$as_me:3531: \"$ac_try\"") >&5
3534 echo "$as_me:3534: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_cv_sys_largefile_CC=' -n32'; break
3538 echo "$as_me: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3541 rm -f conftest.$ac_objext
3545 rm -f conftest.$ac_ext
3548 echo "$as_me:3548: result: $ac_cv_sys_largefile_CC" >&5
3549 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3550 if test "$ac_cv_sys_largefile_CC" != no; then
3551 CC=$CC$ac_cv_sys_largefile_CC
3554 echo "$as_me:3554: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3555 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3556 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 ac_cv_sys_file_offset_bits=no
3561 cat >conftest.$ac_ext <<_ACEOF
3562 #line 3562 "configure"
3563 #include "confdefs.h"
3564 #include <sys/types.h>
3565 /* Check that off_t can represent 2**63 - 1 correctly.
3566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3567 since some C++ compilers masquerading as C compilers
3568 incorrectly reject 9223372036854775807. */
3569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3571 && LARGE_OFF_T % 2147483647 == 1)
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:3582: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>&5
3585 echo "$as_me:3585: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:3588: \"$ac_try\"") >&5
3591 echo "$as_me:3591: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3595 echo "$as_me: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 rm -f conftest.$ac_objext conftest.$ac_ext
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line 3600 "configure"
3601 #include "confdefs.h"
3602 #define _FILE_OFFSET_BITS 64
3603 #include <sys/types.h>
3604 /* Check that off_t can represent 2**63 - 1 correctly.
3605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3606 since some C++ compilers masquerading as C compilers
3607 incorrectly reject 9223372036854775807. */
3608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3610 && LARGE_OFF_T % 2147483647 == 1)
3620 rm -f conftest.$ac_objext
3621 if { (eval echo "$as_me:3621: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:3627: \"$ac_try\"") >&5
3630 echo "$as_me:3630: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_cv_sys_file_offset_bits=64; break
3634 echo "$as_me: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3637 rm -f conftest.$ac_objext conftest.$ac_ext
3641 echo "$as_me:3641: result: $ac_cv_sys_file_offset_bits" >&5
3642 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3643 if test "$ac_cv_sys_file_offset_bits" != no; then
3645 cat >>confdefs.h <<EOF
3646 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3651 echo "$as_me:3651: checking for _LARGE_FILES value needed for large files" >&5
3652 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3653 if test "${ac_cv_sys_large_files+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_cv_sys_large_files=no
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line 3659 "configure"
3660 #include "confdefs.h"
3661 #include <sys/types.h>
3662 /* Check that off_t can represent 2**63 - 1 correctly.
3663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3664 since some C++ compilers masquerading as C compilers
3665 incorrectly reject 9223372036854775807. */
3666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3668 && LARGE_OFF_T % 2147483647 == 1)
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:3679: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>&5
3682 echo "$as_me:3682: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:3685: \"$ac_try\"") >&5
3688 echo "$as_me:3688: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3692 echo "$as_me: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3695 rm -f conftest.$ac_objext conftest.$ac_ext
3696 cat >conftest.$ac_ext <<_ACEOF
3697 #line 3697 "configure"
3698 #include "confdefs.h"
3699 #define _LARGE_FILES 1
3700 #include <sys/types.h>
3701 /* Check that off_t can represent 2**63 - 1 correctly.
3702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3703 since some C++ compilers masquerading as C compilers
3704 incorrectly reject 9223372036854775807. */
3705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3707 && LARGE_OFF_T % 2147483647 == 1)
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:3718: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>&5
3721 echo "$as_me:3721: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -s conftest.$ac_objext'
3724 { (eval echo "$as_me:3724: \"$ac_try\"") >&5
3727 echo "$as_me:3727: \$? = $ac_status" >&5
3728 (exit $ac_status); }; }; then
3729 ac_cv_sys_large_files=1; break
3731 echo "$as_me: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3734 rm -f conftest.$ac_objext conftest.$ac_ext
3738 echo "$as_me:3738: result: $ac_cv_sys_large_files" >&5
3739 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3740 if test "$ac_cv_sys_large_files" != no; then
3742 cat >>confdefs.h <<EOF
3743 #define _LARGE_FILES $ac_cv_sys_large_files
3750 if test "$enable_largefile" != no ; then
3751 echo "$as_me:3751: checking for _LARGEFILE_SOURCE value needed for large files" >&5
3752 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
3753 if test "${ac_cv_sys_largefile_source+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cv_sys_largefile_source=no
3758 cat >conftest.$ac_ext <<_ACEOF
3759 #line 3759 "configure"
3760 #include "confdefs.h"
3770 rm -f conftest.$ac_objext
3771 if { (eval echo "$as_me:3771: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>&5
3774 echo "$as_me:3774: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -s conftest.$ac_objext'
3777 { (eval echo "$as_me:3777: \"$ac_try\"") >&5
3780 echo "$as_me:3780: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3784 echo "$as_me: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3787 rm -f conftest.$ac_objext conftest.$ac_ext
3788 cat >conftest.$ac_ext <<_ACEOF
3789 #line 3789 "configure"
3790 #include "confdefs.h"
3791 #define _LARGEFILE_SOURCE 1
3801 rm -f conftest.$ac_objext
3802 if { (eval echo "$as_me:3802: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>&5
3805 echo "$as_me:3805: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -s conftest.$ac_objext'
3808 { (eval echo "$as_me:3808: \"$ac_try\"") >&5
3811 echo "$as_me:3811: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3813 ac_cv_sys_largefile_source=1; break
3815 echo "$as_me: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3818 rm -f conftest.$ac_objext conftest.$ac_ext
3822 echo "$as_me:3822: result: $ac_cv_sys_largefile_source" >&5
3823 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
3824 if test "$ac_cv_sys_largefile_source" != no; then
3826 cat >>confdefs.h <<EOF
3827 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
3833 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
3834 # in glibc 2.1.3, but that breaks too many other things.
3835 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
3836 echo "$as_me:3836: checking for fseeko" >&5
3837 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
3838 if test "${ac_cv_func_fseeko+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3842 #line 3842 "configure"
3843 #include "confdefs.h"
3848 return fseeko && fseeko (stdin, 0, 0);
3853 rm -f conftest.$ac_objext conftest$ac_exeext
3854 if { (eval echo "$as_me:3854: \"$ac_link\"") >&5
3855 (eval $ac_link) 2>&5
3857 echo "$as_me:3857: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -s conftest$ac_exeext'
3860 { (eval echo "$as_me:3860: \"$ac_try\"") >&5
3863 echo "$as_me:3863: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_func_fseeko=yes
3867 echo "$as_me: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3869 ac_cv_func_fseeko=no
3871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3873 echo "$as_me:3873: result: $ac_cv_func_fseeko" >&5
3874 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
3875 if test $ac_cv_func_fseeko = yes; then
3877 cat >>confdefs.h <<\EOF
3878 #define HAVE_FSEEKO 1
3883 # Normally we would collect these definitions in the config.h,
3884 # but (like _XOPEN_SOURCE), some environments rely on having these
3885 # defined before any of the system headers are included. Another
3886 # case comes up with C++, e.g., on AIX the compiler compiles the
3887 # header files by themselves before looking at the body files it is
3888 # told to compile. For ncurses, those header files do not include
3890 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
3891 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
3892 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
3894 echo "$as_me:3894: checking whether to use struct dirent64" >&5
3895 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
3896 if test "${cf_cv_struct_dirent64+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 cat >conftest.$ac_ext <<_ACEOF
3901 #line 3901 "configure"
3902 #include "confdefs.h"
3904 #include <sys/types.h>
3911 /* if transitional largefile support is setup, this is true */
3912 extern struct dirent64 * readdir(DIR *);
3913 struct dirent64 *x = readdir((DIR *)0);
3914 struct dirent *y = readdir((DIR *)0);
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:3922: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>&5
3925 echo "$as_me:3925: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -s conftest.$ac_objext'
3928 { (eval echo "$as_me:3928: \"$ac_try\"") >&5
3931 echo "$as_me:3931: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 cf_cv_struct_dirent64=yes
3935 echo "$as_me: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3937 cf_cv_struct_dirent64=no
3939 rm -f conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:3942: result: $cf_cv_struct_dirent64" >&5
3943 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
3944 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
3945 #define HAVE_STRUCT_DIRENT64 1
3951 if test "$GCC" = yes ; then
3952 echo "$as_me:3952: checking version of $CC" >&5
3953 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3954 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3955 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3956 echo "$as_me:3956: result: $GCC_VERSION" >&5
3957 echo "${ECHO_T}$GCC_VERSION" >&6
3960 if ( test "$GCC" = yes || test "$GXX" = yes )
3962 echo "$as_me:3962: checking if you want to check for gcc warnings" >&5
3963 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
3965 # Check whether --with-warnings or --without-warnings was given.
3966 if test "${with_warnings+set}" = set; then
3967 withval="$with_warnings"
3968 cf_opt_with_warnings=$withval
3970 cf_opt_with_warnings=no
3972 echo "$as_me:3972: result: $cf_opt_with_warnings" >&5
3973 echo "${ECHO_T}$cf_opt_with_warnings" >&6
3974 if test "$cf_opt_with_warnings" != no ; then
3976 if test "$GCC" = yes
3978 cat > conftest.i <<EOF
3980 #define GCC_PRINTF 0
3985 #ifndef GCC_NORETURN
3986 #define GCC_NORETURN /* nothing */
3989 #define GCC_UNUSED /* nothing */
3992 if test "$GCC" = yes
3994 { echo "$as_me:3994: checking for $CC __attribute__ directives..." >&5
3995 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3996 cat > conftest.$ac_ext <<EOF
3997 #line 3997 "${as_me:-configure}"
3998 #include "confdefs.h"
3999 #include "conftest.h"
4000 #include "conftest.i"
4002 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4004 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4007 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4009 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
4011 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4012 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4013 extern void foo(void) GCC_NORETURN;
4014 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4016 cf_printf_attribute=no
4017 cf_scanf_attribute=no
4018 for cf_attribute in scanf printf unused noreturn
4021 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4023 cf_directive="__attribute__(($cf_attribute))"
4024 echo "checking for $CC $cf_directive" 1>&5
4026 case $cf_attribute in #(vi
4028 cf_printf_attribute=yes
4029 cat >conftest.h <<EOF
4030 #define GCC_$cf_ATTRIBUTE 1
4034 cf_scanf_attribute=yes
4035 cat >conftest.h <<EOF
4036 #define GCC_$cf_ATTRIBUTE 1
4040 cat >conftest.h <<EOF
4041 #define GCC_$cf_ATTRIBUTE $cf_directive
4046 if { (eval echo "$as_me:4046: \"$ac_compile\"") >&5
4047 (eval $ac_compile) 2>&5
4049 echo "$as_me:4049: \$? = $ac_status" >&5
4050 (exit $ac_status); }; then
4051 test -n "$verbose" && echo "$as_me:4051: result: ... $cf_attribute" >&5
4052 echo "${ECHO_T}... $cf_attribute" >&6
4053 cat conftest.h >>confdefs.h
4054 case $cf_attribute in #(vi
4056 if test "$cf_printf_attribute" = no ; then
4057 cat >>confdefs.h <<EOF
4058 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
4061 cat >>confdefs.h <<EOF
4062 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4067 if test "$cf_scanf_attribute" = no ; then
4068 cat >>confdefs.h <<EOF
4069 #define GCC_SCANFLIKE(fmt,var) /* nothing */
4072 cat >>confdefs.h <<EOF
4073 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4081 fgrep define conftest.i >>confdefs.h
4088 if test "$GCC" = yes ; then
4091 echo "$as_me:4091: checking if this is really Intel C compiler" >&5
4092 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4093 cf_save_CFLAGS="$CFLAGS"
4094 CFLAGS="$CFLAGS -no-gcc"
4095 cat >conftest.$ac_ext <<_ACEOF
4096 #line 4096 "configure"
4097 #include "confdefs.h"
4103 #ifdef __INTEL_COMPILER
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:4113: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
4116 echo "$as_me:4116: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (eval echo "$as_me:4119: \"$ac_try\"") >&5
4122 echo "$as_me:4122: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4125 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
4128 echo "$as_me: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 rm -f conftest.$ac_objext conftest.$ac_ext
4132 CFLAGS="$cf_save_CFLAGS"
4133 echo "$as_me:4133: result: $INTEL_COMPILER" >&5
4134 echo "${ECHO_T}$INTEL_COMPILER" >&6
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4140 "${as_me:-configure}"
4141 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4144 if test "$INTEL_COMPILER" = yes
4146 # The "-wdXXX" options suppress warnings:
4147 # remark #1419: external declaration in primary source file
4148 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4149 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4150 # remark #193: zero used for undefined preprocessing identifier
4151 # remark #593: variable "curs_sb_left_arrow" was set but never used
4152 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4153 # remark #869: parameter "tw" was never referenced
4154 # remark #981: operands are evaluated in unspecified order
4155 # warning #279: controlling expression is constant
4157 { echo "$as_me:4157: checking for $CC warning options..." >&5
4158 echo "$as_me: checking for $CC warning options..." >&6;}
4159 cf_save_CFLAGS="$CFLAGS"
4160 EXTRA_CFLAGS="-Wall"
4172 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4173 if { (eval echo "$as_me:4173: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>&5
4176 echo "$as_me:4176: \$? = $ac_status" >&5
4177 (exit $ac_status); }; then
4178 test -n "$verbose" && echo "$as_me:4178: result: ... -$cf_opt" >&5
4179 echo "${ECHO_T}... -$cf_opt" >&6
4180 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4183 CFLAGS="$cf_save_CFLAGS"
4185 elif test "$GCC" = yes
4187 { echo "$as_me:4187: checking for $CC warning options..." >&5
4188 echo "$as_me: checking for $CC warning options..." >&6;}
4189 cf_save_CFLAGS="$CFLAGS"
4192 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4193 for cf_opt in W Wall \
4194 Wbad-function-cast \
4198 Wmissing-declarations \
4199 Wmissing-prototypes \
4203 Wstrict-prototypes \
4204 Wundef $cf_warn_CONST
4206 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:4210: \$? = $ac_status" >&5
4211 (exit $ac_status); }; then
4212 test -n "$verbose" && echo "$as_me:4212: result: ... -$cf_opt" >&5
4213 echo "${ECHO_T}... -$cf_opt" >&6
4214 case $cf_opt in #(vi
4216 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4219 case $GCC_VERSION in
4221 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4223 echo "${as_me:-configure}:4223: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4229 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4232 CFLAGS="$cf_save_CFLAGS"
4239 # Check whether --with-package or --without-package was given.
4240 if test "${with_package+set}" = set; then
4241 withval="$with_package"
4247 if test -f $srcdir/VERSION ; then
4248 echo "$as_me:4248: checking for package version" >&5
4249 echo $ECHO_N "checking for package version... $ECHO_C" >&6
4251 # if there are not enough fields, cut returns the last one...
4252 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
4253 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
4254 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
4256 # this is how CF_BUNDLED_INTL uses $VERSION:
4257 VERSION="$cf_field1"
4259 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
4260 test -z "$VERSION_MAJOR" && { { echo "$as_me:4260: error: missing major-version" >&5
4261 echo "$as_me: error: missing major-version" >&2;}
4262 { (exit 1); exit 1; }; }
4264 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
4265 test -z "$VERSION_MINOR" && { { echo "$as_me:4265: error: missing minor-version" >&5
4266 echo "$as_me: error: missing minor-version" >&2;}
4267 { (exit 1); exit 1; }; }
4269 echo "$as_me:4269: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
4270 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
4272 echo "$as_me:4272: checking for package patch date" >&5
4273 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
4274 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
4275 case .$VERSION_PATCH in
4277 { { echo "$as_me:4277: error: missing patch-date $VERSION_PATCH" >&5
4278 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
4279 { (exit 1); exit 1; }; }
4281 .[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
4284 { { echo "$as_me:4284: error: illegal patch-date $VERSION_PATCH" >&5
4285 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
4286 { (exit 1); exit 1; }; }
4289 echo "$as_me:4289: result: $VERSION_PATCH" >&5
4290 echo "${ECHO_T}$VERSION_PATCH" >&6
4292 { { echo "$as_me:4292: error: did not find $srcdir/VERSION" >&5
4293 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
4294 { (exit 1); exit 1; }; }
4297 # show the actual data that we have for versions:
4298 test -n "$verbose" && echo " VERSION $VERSION" 1>&6
4300 echo "${as_me:-configure}:4300: testing VERSION $VERSION ..." 1>&5
4302 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
4304 echo "${as_me:-configure}:4304: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
4306 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
4308 echo "${as_me:-configure}:4308: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
4310 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
4312 echo "${as_me:-configure}:4312: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
4316 cat >>confdefs.h <<EOF
4317 #define PACKAGE "$PACKAGE"
4320 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4322 cat >>confdefs.h <<EOF
4323 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
4326 cat >>confdefs.h <<EOF
4327 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
4330 # Check whether --enable-header-subdir or --disable-header-subdir was given.
4331 if test "${enable_header_subdir+set}" = set; then
4332 enableval="$enable_header_subdir"
4339 echo "$as_me:4339: checking for ANSI C header files" >&5
4340 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4341 if test "${ac_cv_header_stdc+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 cat >conftest.$ac_ext <<_ACEOF
4345 #line 4345 "configure"
4346 #include "confdefs.h"
4353 if { (eval echo "$as_me:4353: \"$ac_cpp conftest.$ac_ext\"") >&5
4354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4356 egrep -v '^ *\+' conftest.er1 >conftest.err
4358 cat conftest.err >&5
4359 echo "$as_me:4359: \$? = $ac_status" >&5
4360 (exit $ac_status); } >/dev/null; then
4361 if test -s conftest.err; then
4362 ac_cpp_err=$ac_c_preproc_warn_flag
4369 if test -z "$ac_cpp_err"; then
4370 ac_cv_header_stdc=yes
4372 echo "$as_me: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4374 ac_cv_header_stdc=no
4376 rm -f conftest.err conftest.$ac_ext
4378 if test $ac_cv_header_stdc = yes; then
4379 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4380 cat >conftest.$ac_ext <<_ACEOF
4381 #line 4381 "configure"
4382 #include "confdefs.h"
4386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4387 egrep "memchr" >/dev/null 2>&1; then
4390 ac_cv_header_stdc=no
4396 if test $ac_cv_header_stdc = yes; then
4397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4398 cat >conftest.$ac_ext <<_ACEOF
4399 #line 4399 "configure"
4400 #include "confdefs.h"
4404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405 egrep "free" >/dev/null 2>&1; then
4408 ac_cv_header_stdc=no
4414 if test $ac_cv_header_stdc = yes; then
4415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4416 if test "$cross_compiling" = yes; then
4419 cat >conftest.$ac_ext <<_ACEOF
4420 #line 4420 "configure"
4421 #include "confdefs.h"
4423 #if ((' ' & 0x0FF) == 0x020)
4424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4427 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4428 || ('j' <= (c) && (c) <= 'r') \
4429 || ('s' <= (c) && (c) <= 'z'))
4430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4438 for (i = 0; i < 256; i++)
4439 if (XOR (islower (i), ISLOWER (i))
4440 || toupper (i) != TOUPPER (i))
4442 $ac_main_return (0);
4445 rm -f conftest$ac_exeext
4446 if { (eval echo "$as_me:4446: \"$ac_link\"") >&5
4447 (eval $ac_link) 2>&5
4449 echo "$as_me:4449: \$? = $ac_status" >&5
4450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4451 { (eval echo "$as_me:4451: \"$ac_try\"") >&5
4454 echo "$as_me:4454: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4458 echo "$as_me: program exited with status $ac_status" >&5
4459 echo "$as_me: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461 ac_cv_header_stdc=no
4463 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4467 echo "$as_me:4467: result: $ac_cv_header_stdc" >&5
4468 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4469 if test $ac_cv_header_stdc = yes; then
4471 cat >>confdefs.h <<\EOF
4472 #define STDC_HEADERS 1
4477 echo "$as_me:4477: checking for inline" >&5
4478 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4479 if test "${ac_cv_c_inline+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 for ac_kw in inline __inline__ __inline; do
4484 cat >conftest.$ac_ext <<_ACEOF
4485 #line 4485 "configure"
4486 #include "confdefs.h"
4488 static $ac_kw int static_foo () {return 0; }
4489 $ac_kw int foo () {return 0; }
4493 rm -f conftest.$ac_objext
4494 if { (eval echo "$as_me:4494: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>&5
4497 echo "$as_me:4497: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:4500: \"$ac_try\"") >&5
4503 echo "$as_me:4503: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_cv_c_inline=$ac_kw; break
4507 echo "$as_me: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 rm -f conftest.$ac_objext conftest.$ac_ext
4514 echo "$as_me:4514: result: $ac_cv_c_inline" >&5
4515 echo "${ECHO_T}$ac_cv_c_inline" >&6
4516 case $ac_cv_c_inline in
4519 cat >>confdefs.h <<\EOF
4523 *) cat >>confdefs.h <<EOF
4524 #define inline $ac_cv_c_inline
4529 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4532 inttypes.h stdint.h unistd.h
4534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4535 echo "$as_me:4535: checking for $ac_header" >&5
4536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 cat >conftest.$ac_ext <<_ACEOF
4541 #line 4541 "configure"
4542 #include "confdefs.h"
4543 $ac_includes_default
4544 #include <$ac_header>
4546 rm -f conftest.$ac_objext
4547 if { (eval echo "$as_me:4547: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>&5
4550 echo "$as_me:4550: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:4553: \"$ac_try\"") >&5
4556 echo "$as_me:4556: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 eval "$as_ac_Header=yes"
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 eval "$as_ac_Header=no"
4564 rm -f conftest.$ac_objext conftest.$ac_ext
4566 echo "$as_me:4566: result: `eval echo '${'$as_ac_Header'}'`" >&5
4567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h <<EOF
4570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4576 echo "$as_me:4576: checking for off_t" >&5
4577 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4578 if test "${ac_cv_type_off_t+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 cat >conftest.$ac_ext <<_ACEOF
4582 #line 4582 "configure"
4583 #include "confdefs.h"
4584 $ac_includes_default
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:4597: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>&5
4600 echo "$as_me:4600: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:4603: \"$ac_try\"") >&5
4606 echo "$as_me:4606: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_cv_type_off_t=yes
4610 echo "$as_me: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4614 rm -f conftest.$ac_objext conftest.$ac_ext
4616 echo "$as_me:4616: result: $ac_cv_type_off_t" >&5
4617 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4618 if test $ac_cv_type_off_t = yes; then
4622 cat >>confdefs.h <<EOF
4628 echo "$as_me:4628: checking for size_t" >&5
4629 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4630 if test "${ac_cv_type_size_t+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 cat >conftest.$ac_ext <<_ACEOF
4634 #line 4634 "configure"
4635 #include "confdefs.h"
4636 $ac_includes_default
4642 if (sizeof (size_t))
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:4649: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>&5
4652 echo "$as_me:4652: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -s conftest.$ac_objext'
4655 { (eval echo "$as_me:4655: \"$ac_try\"") >&5
4658 echo "$as_me:4658: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_cv_type_size_t=yes
4662 echo "$as_me: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4664 ac_cv_type_size_t=no
4666 rm -f conftest.$ac_objext conftest.$ac_ext
4668 echo "$as_me:4668: result: $ac_cv_type_size_t" >&5
4669 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4670 if test $ac_cv_type_size_t = yes; then
4674 cat >>confdefs.h <<EOF
4675 #define size_t unsigned
4680 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4681 # for constant arguments. Useless!
4682 echo "$as_me:4682: checking for working alloca.h" >&5
4683 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4684 if test "${ac_cv_working_alloca_h+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 cat >conftest.$ac_ext <<_ACEOF
4688 #line 4688 "configure"
4689 #include "confdefs.h"
4694 char *p = (char *) alloca (2 * sizeof (int));
4699 rm -f conftest.$ac_objext conftest$ac_exeext
4700 if { (eval echo "$as_me:4700: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>&5
4703 echo "$as_me:4703: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try='test -s conftest$ac_exeext'
4706 { (eval echo "$as_me:4706: \"$ac_try\"") >&5
4709 echo "$as_me:4709: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 ac_cv_working_alloca_h=yes
4713 echo "$as_me: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4715 ac_cv_working_alloca_h=no
4717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4719 echo "$as_me:4719: result: $ac_cv_working_alloca_h" >&5
4720 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4721 if test $ac_cv_working_alloca_h = yes; then
4723 cat >>confdefs.h <<\EOF
4724 #define HAVE_ALLOCA_H 1
4729 echo "$as_me:4729: checking for alloca" >&5
4730 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4731 if test "${ac_cv_func_alloca_works+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 cat >conftest.$ac_ext <<_ACEOF
4735 #line 4735 "configure"
4736 #include "confdefs.h"
4738 # define alloca __builtin_alloca
4741 # include <malloc.h>
4742 # define alloca _alloca
4745 # include <alloca.h>
4750 # ifndef alloca /* predefined by HP cc +Olibcalls */
4761 char *p = (char *) alloca (1);
4766 rm -f conftest.$ac_objext conftest$ac_exeext
4767 if { (eval echo "$as_me:4767: \"$ac_link\"") >&5
4768 (eval $ac_link) 2>&5
4770 echo "$as_me:4770: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -s conftest$ac_exeext'
4773 { (eval echo "$as_me:4773: \"$ac_try\"") >&5
4776 echo "$as_me:4776: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_func_alloca_works=yes
4780 echo "$as_me: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4782 ac_cv_func_alloca_works=no
4784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4786 echo "$as_me:4786: result: $ac_cv_func_alloca_works" >&5
4787 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4789 if test $ac_cv_func_alloca_works = yes; then
4791 cat >>confdefs.h <<\EOF
4792 #define HAVE_ALLOCA 1
4796 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4797 # that cause trouble. Some versions do not even contain alloca or
4798 # contain a buggy version. If you still want to use their alloca,
4799 # use ar to extract alloca.o from them instead of compiling alloca.c.
4801 ALLOCA=alloca.$ac_objext
4803 cat >>confdefs.h <<\EOF
4807 echo "$as_me:4807: checking whether \`alloca.c' needs Cray hooks" >&5
4808 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4809 if test "${ac_cv_os_cray+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 cat >conftest.$ac_ext <<_ACEOF
4813 #line 4813 "configure"
4814 #include "confdefs.h"
4815 #if defined(CRAY) && ! defined(CRAY2)
4822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4823 egrep "webecray" >/dev/null 2>&1; then
4831 echo "$as_me:4831: result: $ac_cv_os_cray" >&5
4832 echo "${ECHO_T}$ac_cv_os_cray" >&6
4833 if test $ac_cv_os_cray = yes; then
4834 for ac_func in _getb67 GETB67 getb67; do
4835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4836 echo "$as_me:4836: checking for $ac_func" >&5
4837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4838 if eval "test \"\${$as_ac_var+set}\" = set"; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line 4842 "configure"
4843 #include "confdefs.h"
4844 /* System header to define __stub macros and hopefully few prototypes,
4845 which can conflict with char $ac_func (); below. */
4847 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4859 /* The GNU C library defines this for functions which it implements
4860 to always fail with ENOSYS. Some functions are actually named
4861 something starting with __ and the normal name is an alias. */
4862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:4873: \"$ac_link\"") >&5
4874 (eval $ac_link) 2>&5
4876 echo "$as_me:4876: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -s conftest$ac_exeext'
4879 { (eval echo "$as_me:4879: \"$ac_try\"") >&5
4882 echo "$as_me:4882: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 eval "$as_ac_var=yes"
4886 echo "$as_me: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4888 eval "$as_ac_var=no"
4890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4892 echo "$as_me:4892: result: `eval echo '${'$as_ac_var'}'`" >&5
4893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4894 if test `eval echo '${'$as_ac_var'}'` = yes; then
4896 cat >>confdefs.h <<EOF
4897 #define CRAY_STACKSEG_END $ac_func
4906 echo "$as_me:4906: checking stack direction for C alloca" >&5
4907 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4908 if test "${ac_cv_c_stack_direction+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 if test "$cross_compiling" = yes; then
4912 ac_cv_c_stack_direction=0
4914 cat >conftest.$ac_ext <<_ACEOF
4915 #line 4915 "configure"
4916 #include "confdefs.h"
4918 find_stack_direction ()
4920 static char *addr = 0;
4925 return find_stack_direction ();
4928 return (&dummy > addr) ? 1 : -1;
4934 $ac_main_return (find_stack_direction () < 0);
4937 rm -f conftest$ac_exeext
4938 if { (eval echo "$as_me:4938: \"$ac_link\"") >&5
4939 (eval $ac_link) 2>&5
4941 echo "$as_me:4941: \$? = $ac_status" >&5
4942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4943 { (eval echo "$as_me:4943: \"$ac_try\"") >&5
4946 echo "$as_me:4946: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_cv_c_stack_direction=1
4950 echo "$as_me: program exited with status $ac_status" >&5
4951 echo "$as_me: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4953 ac_cv_c_stack_direction=-1
4955 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4958 echo "$as_me:4958: result: $ac_cv_c_stack_direction" >&5
4959 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4961 cat >>confdefs.h <<EOF
4962 #define STACK_DIRECTION $ac_cv_c_stack_direction
4967 for ac_header in stdlib.h unistd.h
4969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4970 echo "$as_me:4970: checking for $ac_header" >&5
4971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 cat >conftest.$ac_ext <<_ACEOF
4976 #line 4976 "configure"
4977 #include "confdefs.h"
4978 #include <$ac_header>
4980 if { (eval echo "$as_me:4980: \"$ac_cpp conftest.$ac_ext\"") >&5
4981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4983 egrep -v '^ *\+' conftest.er1 >conftest.err
4985 cat conftest.err >&5
4986 echo "$as_me:4986: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null; then
4988 if test -s conftest.err; then
4989 ac_cpp_err=$ac_c_preproc_warn_flag
4996 if test -z "$ac_cpp_err"; then
4997 eval "$as_ac_Header=yes"
4999 echo "$as_me: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5001 eval "$as_ac_Header=no"
5003 rm -f conftest.err conftest.$ac_ext
5005 echo "$as_me:5005: result: `eval echo '${'$as_ac_Header'}'`" >&5
5006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5008 cat >>confdefs.h <<EOF
5009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5015 for ac_func in getpagesize
5017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5018 echo "$as_me:5018: checking for $ac_func" >&5
5019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5020 if eval "test \"\${$as_ac_var+set}\" = set"; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 cat >conftest.$ac_ext <<_ACEOF
5024 #line 5024 "configure"
5025 #include "confdefs.h"
5026 /* System header to define __stub macros and hopefully few prototypes,
5027 which can conflict with char $ac_func (); below. */
5029 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5041 /* The GNU C library defines this for functions which it implements
5042 to always fail with ENOSYS. Some functions are actually named
5043 something starting with __ and the normal name is an alias. */
5044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5054 rm -f conftest.$ac_objext conftest$ac_exeext
5055 if { (eval echo "$as_me:5055: \"$ac_link\"") >&5
5056 (eval $ac_link) 2>&5
5058 echo "$as_me:5058: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -s conftest$ac_exeext'
5061 { (eval echo "$as_me:5061: \"$ac_try\"") >&5
5064 echo "$as_me:5064: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5066 eval "$as_ac_var=yes"
5068 echo "$as_me: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5070 eval "$as_ac_var=no"
5072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5074 echo "$as_me:5074: result: `eval echo '${'$as_ac_var'}'`" >&5
5075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5076 if test `eval echo '${'$as_ac_var'}'` = yes; then
5077 cat >>confdefs.h <<EOF
5078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5084 echo "$as_me:5084: checking for working mmap" >&5
5085 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5086 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 if test "$cross_compiling" = yes; then
5090 ac_cv_func_mmap_fixed_mapped=no
5092 cat >conftest.$ac_ext <<_ACEOF
5093 #line 5093 "configure"
5094 #include "confdefs.h"
5095 $ac_includes_default
5096 /* Thanks to Mike Haertel and Jim Avera for this test.
5097 Here is a matrix of mmap possibilities:
5098 mmap private not fixed
5099 mmap private fixed at somewhere currently unmapped
5100 mmap private fixed at somewhere already mapped
5101 mmap shared not fixed
5102 mmap shared fixed at somewhere currently unmapped
5103 mmap shared fixed at somewhere already mapped
5104 For private mappings, we should verify that changes cannot be read()
5105 back from the file, nor mmap's back from the file at a different
5106 address. (There have been systems where private was not correctly
5107 implemented like the infamous i386 svr4.0, and systems where the
5108 VM page cache was not coherent with the file system buffer cache
5109 like early versions of FreeBSD and possibly contemporary NetBSD.)
5110 For shared mappings, we should conversely verify that changes get
5111 propogated back to all the places they're supposed to be.
5113 Grep wants private fixed already mapped.
5114 The main things grep needs to know about mmap are:
5115 * does it exist and is it safe to write into the mmap'd area
5116 * how to use it (BSD variants) */
5119 #include <sys/mman.h>
5121 #if !STDC_HEADERS && !HAVE_STDLIB_H
5125 /* This mess was copied from the GNU getpagesize.h. */
5126 #if !HAVE_GETPAGESIZE
5127 /* Assume that all systems that can run configure have sys/param.h. */
5128 # if !HAVE_SYS_PARAM_H
5129 # define HAVE_SYS_PARAM_H 1
5132 # ifdef _SC_PAGESIZE
5133 # define getpagesize() sysconf(_SC_PAGESIZE)
5134 # else /* no _SC_PAGESIZE */
5135 # if HAVE_SYS_PARAM_H
5136 # include <sys/param.h>
5137 # ifdef EXEC_PAGESIZE
5138 # define getpagesize() EXEC_PAGESIZE
5139 # else /* no EXEC_PAGESIZE */
5141 # define getpagesize() NBPG * CLSIZE
5144 # endif /* no CLSIZE */
5145 # else /* no NBPG */
5147 # define getpagesize() NBPC
5148 # else /* no NBPC */
5150 # define getpagesize() PAGESIZE
5151 # endif /* PAGESIZE */
5152 # endif /* no NBPC */
5153 # endif /* no NBPG */
5154 # endif /* no EXEC_PAGESIZE */
5155 # else /* no HAVE_SYS_PARAM_H */
5156 # define getpagesize() 8192 /* punt totally */
5157 # endif /* no HAVE_SYS_PARAM_H */
5158 # endif /* no _SC_PAGESIZE */
5160 #endif /* no HAVE_GETPAGESIZE */
5165 char *data, *data2, *data3;
5169 pagesize = getpagesize ();
5171 /* First, make a file with some known garbage in it. */
5172 data = (char *) malloc (pagesize);
5174 $ac_main_return (1);
5175 for (i = 0; i < pagesize; ++i)
5176 *(data + i) = rand ();
5178 fd = creat ("conftest.mmap", 0600);
5180 $ac_main_return (1);
5181 if (write (fd, data, pagesize) != pagesize)
5182 $ac_main_return (1);
5185 /* Next, try to mmap the file at a fixed address which already has
5186 something else allocated at it. If we can, also make sure that
5187 we see the same garbage. */
5188 fd = open ("conftest.mmap", O_RDWR);
5190 $ac_main_return (1);
5191 data2 = (char *) malloc (2 * pagesize);
5193 $ac_main_return (1);
5194 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5195 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5197 $ac_main_return (1);
5198 for (i = 0; i < pagesize; ++i)
5199 if (*(data + i) != *(data2 + i))
5200 $ac_main_return (1);
5202 /* Finally, make sure that changes to the mapped area do not
5203 percolate back to the file as seen by read(). (This is a bug on
5204 some variants of i386 svr4.0.) */
5205 for (i = 0; i < pagesize; ++i)
5206 *(data2 + i) = *(data2 + i) + 1;
5207 data3 = (char *) malloc (pagesize);
5209 $ac_main_return (1);
5210 if (read (fd, data3, pagesize) != pagesize)
5211 $ac_main_return (1);
5212 for (i = 0; i < pagesize; ++i)
5213 if (*(data + i) != *(data3 + i))
5214 $ac_main_return (1);
5216 $ac_main_return (0);
5219 rm -f conftest$ac_exeext
5220 if { (eval echo "$as_me:5220: \"$ac_link\"") >&5
5221 (eval $ac_link) 2>&5
5223 echo "$as_me:5223: \$? = $ac_status" >&5
5224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5225 { (eval echo "$as_me:5225: \"$ac_try\"") >&5
5228 echo "$as_me:5228: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_cv_func_mmap_fixed_mapped=yes
5232 echo "$as_me: program exited with status $ac_status" >&5
5233 echo "$as_me: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5235 ac_cv_func_mmap_fixed_mapped=no
5237 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5240 echo "$as_me:5240: result: $ac_cv_func_mmap_fixed_mapped" >&5
5241 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5242 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5244 cat >>confdefs.h <<\EOF
5251 echo "$as_me:5251: checking whether we are using the GNU C Library 2.1 or newer" >&5
5252 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5253 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 cat >conftest.$ac_ext <<_ACEOF
5257 #line 5257 "configure"
5258 #include "confdefs.h"
5260 #include <features.h>
5261 #ifdef __GNU_LIBRARY__
5262 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5269 egrep "Lucky GNU user" >/dev/null 2>&1; then
5270 ac_cv_gnu_library_2_1=yes
5272 ac_cv_gnu_library_2_1=no
5277 echo "$as_me:5277: result: $ac_cv_gnu_library_2_1" >&5
5278 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5280 GLIBC21="$ac_cv_gnu_library_2_1"
5282 cf_makefile=makefile
5284 test -z "$ALL_LINGUAS" && ALL_LINGUAS=`test -d $srcdir/po && cd $srcdir/po && echo *.po|sed -e 's/\.po//g' -e 's/*//'`
5286 # Allow override of "config.h" definition:
5287 : ${CONFIG_H:=config.h}
5289 if test -z "$PACKAGE" ; then
5290 { { echo "$as_me:5290: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&5
5291 echo "$as_me: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&2;}
5292 { (exit 1); exit 1; }; }
5295 if test -z "$VERSION" ; then
5296 if test -f $srcdir/VERSION ; then
5297 VERSION=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
5303 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5304 stdlib.h string.h unistd.h sys/param.h
5306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307 echo "$as_me:5307: checking for $ac_header" >&5
5308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 cat >conftest.$ac_ext <<_ACEOF
5313 #line 5313 "configure"
5314 #include "confdefs.h"
5315 #include <$ac_header>
5317 if { (eval echo "$as_me:5317: \"$ac_cpp conftest.$ac_ext\"") >&5
5318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5320 egrep -v '^ *\+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:5323: \$? = $ac_status" >&5
5324 (exit $ac_status); } >/dev/null; then
5325 if test -s conftest.err; then
5326 ac_cpp_err=$ac_c_preproc_warn_flag
5333 if test -z "$ac_cpp_err"; then
5334 eval "$as_ac_Header=yes"
5336 echo "$as_me: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5338 eval "$as_ac_Header=no"
5340 rm -f conftest.err conftest.$ac_ext
5342 echo "$as_me:5342: result: `eval echo '${'$as_ac_Header'}'`" >&5
5343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5345 cat >>confdefs.h <<EOF
5346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5352 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5353 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5354 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5357 echo "$as_me:5357: checking for $ac_func" >&5
5358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5359 if eval "test \"\${$as_ac_var+set}\" = set"; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5363 #line 5363 "configure"
5364 #include "confdefs.h"
5365 /* System header to define __stub macros and hopefully few prototypes,
5366 which can conflict with char $ac_func (); below. */
5368 /* Override any gcc2 internal prototype to avoid an error. */
5372 /* We use char because int might match the return type of a gcc2
5373 builtin and then its argument prototype would still apply. */
5380 /* The GNU C library defines this for functions which it implements
5381 to always fail with ENOSYS. Some functions are actually named
5382 something starting with __ and the normal name is an alias. */
5383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5393 rm -f conftest.$ac_objext conftest$ac_exeext
5394 if { (eval echo "$as_me:5394: \"$ac_link\"") >&5
5395 (eval $ac_link) 2>&5
5397 echo "$as_me:5397: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -s conftest$ac_exeext'
5400 { (eval echo "$as_me:5400: \"$ac_try\"") >&5
5403 echo "$as_me:5403: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 eval "$as_ac_var=yes"
5407 echo "$as_me: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5409 eval "$as_ac_var=no"
5411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5413 echo "$as_me:5413: result: `eval echo '${'$as_ac_var'}'`" >&5
5414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5415 if test `eval echo '${'$as_ac_var'}'` = yes; then
5416 cat >>confdefs.h <<EOF
5417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5423 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5424 if test "${with_libiconv_prefix+set}" = set; then
5425 withval="$with_libiconv_prefix"
5427 case "$withval" in #(vi
5434 for cf_searchpath in `echo "$withval" | tr $PATH_SEPARATOR ' '`; do
5435 if test -d $cf_searchpath/include; then
5437 if test -n "$cf_searchpath/include" ; then
5438 for cf_add_incdir in $cf_searchpath/include
5440 while test $cf_add_incdir != /usr/include
5442 if test -d $cf_add_incdir
5445 if test -n "$CFLAGS$CPPFLAGS" ; then
5446 # a loop is needed to ensure we can add subdirs of existing dirs
5447 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5448 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5449 cf_have_incdir=yes; break
5454 if test "$cf_have_incdir" = no ; then
5455 if test "$cf_add_incdir" = /usr/local/include ; then
5456 if test "$GCC" = yes
5458 cf_save_CPPFLAGS=$CPPFLAGS
5459 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line 5461 "configure"
5462 #include "confdefs.h"
5472 rm -f conftest.$ac_objext
5473 if { (eval echo "$as_me:5473: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>&5
5476 echo "$as_me:5476: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:5479: \"$ac_try\"") >&5
5482 echo "$as_me:5482: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5486 echo "$as_me: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5490 rm -f conftest.$ac_objext conftest.$ac_ext
5491 CPPFLAGS=$cf_save_CPPFLAGS
5496 if test "$cf_have_incdir" = no ; then
5497 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5499 echo "${as_me:-configure}:5499: testing adding $cf_add_incdir to include-path ..." 1>&5
5501 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5503 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5504 test "$cf_top_incdir" = "$cf_add_incdir" && break
5505 cf_add_incdir="$cf_top_incdir"
5514 elif test -d $cf_searchpath/../include ; then
5516 if test -n "$cf_searchpath/../include" ; then
5517 for cf_add_incdir in $cf_searchpath/../include
5519 while test $cf_add_incdir != /usr/include
5521 if test -d $cf_add_incdir
5524 if test -n "$CFLAGS$CPPFLAGS" ; then
5525 # a loop is needed to ensure we can add subdirs of existing dirs
5526 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5527 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5528 cf_have_incdir=yes; break
5533 if test "$cf_have_incdir" = no ; then
5534 if test "$cf_add_incdir" = /usr/local/include ; then
5535 if test "$GCC" = yes
5537 cf_save_CPPFLAGS=$CPPFLAGS
5538 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5539 cat >conftest.$ac_ext <<_ACEOF
5540 #line 5540 "configure"
5541 #include "confdefs.h"
5551 rm -f conftest.$ac_objext
5552 if { (eval echo "$as_me:5552: \"$ac_compile\"") >&5
5553 (eval $ac_compile) 2>&5
5555 echo "$as_me:5555: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -s conftest.$ac_objext'
5558 { (eval echo "$as_me:5558: \"$ac_try\"") >&5
5561 echo "$as_me:5561: \$? = $ac_status" >&5
5562 (exit $ac_status); }; }; then
5565 echo "$as_me: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5569 rm -f conftest.$ac_objext conftest.$ac_ext
5570 CPPFLAGS=$cf_save_CPPFLAGS
5575 if test "$cf_have_incdir" = no ; then
5576 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5578 echo "${as_me:-configure}:5578: testing adding $cf_add_incdir to include-path ..." 1>&5
5580 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5582 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5583 test "$cf_top_incdir" = "$cf_add_incdir" && break
5584 cf_add_incdir="$cf_top_incdir"
5594 { { echo "$as_me:5594: error: cannot find libiconv under $withval" >&5
5595 echo "$as_me: error: cannot find libiconv under $withval" >&2;}
5596 { (exit 1); exit 1; }; }
5598 if test -d $cf_searchpath/lib; then
5600 if test -n "$cf_searchpath/lib" ; then
5601 for cf_add_libdir in $cf_searchpath/lib
5603 if test $cf_add_libdir = /usr/lib ; then
5605 elif test -d $cf_add_libdir
5608 if test -n "$LDFLAGS$LIBS" ; then
5609 # a loop is needed to ensure we can add subdirs of existing dirs
5610 for cf_test_libdir in $LDFLAGS $LIBS ; do
5611 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5612 cf_have_libdir=yes; break
5616 if test "$cf_have_libdir" = no ; then
5617 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5619 echo "${as_me:-configure}:5619: testing adding $cf_add_libdir to library-path ..." 1>&5
5621 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5627 elif test -d $cf_searchpath ; then
5629 if test -n "$cf_searchpath" ; then
5630 for cf_add_libdir in $cf_searchpath
5632 if test $cf_add_libdir = /usr/lib ; then
5634 elif test -d $cf_add_libdir
5637 if test -n "$LDFLAGS$LIBS" ; then
5638 # a loop is needed to ensure we can add subdirs of existing dirs
5639 for cf_test_libdir in $LDFLAGS $LIBS ; do
5640 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5641 cf_have_libdir=yes; break
5645 if test "$cf_have_libdir" = no ; then
5646 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5648 echo "${as_me:-configure}:5648: testing adding $cf_add_libdir to library-path ..." 1>&5
5650 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5657 { { echo "$as_me:5657: error: cannot find libiconv under $withval" >&5
5658 echo "$as_me: error: cannot find libiconv under $withval" >&2;}
5659 { (exit 1); exit 1; }; }
5668 echo "$as_me:5668: checking for iconv" >&5
5669 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5670 if test "${am_cv_func_iconv+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
5675 # will be set on completion of the AC_TRY_LINK below.
5676 cf_cv_header_path_iconv=
5677 cf_cv_library_path_iconv=
5679 echo "${as_me:-configure}:5679: testing Starting FIND_LINKAGE(iconv,) ..." 1>&5
5681 cf_save_LIBS="$LIBS"
5683 cat >conftest.$ac_ext <<_ACEOF
5684 #line 5684 "configure"
5685 #include "confdefs.h"
5694 iconv_t cd = iconv_open("","");
5695 iconv(cd,NULL,NULL,NULL,NULL);
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (eval echo "$as_me:5703: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>&5
5706 echo "$as_me:5706: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:5709: \"$ac_try\"") >&5
5712 echo "$as_me:5712: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5715 cf_cv_find_linkage_iconv=yes
5716 cf_cv_header_path_iconv=/usr/include
5717 cf_cv_library_path_iconv=/usr/lib
5720 echo "$as_me: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5723 LIBS="-liconv $cf_save_LIBS"
5725 cat >conftest.$ac_ext <<_ACEOF
5726 #line 5726 "configure"
5727 #include "confdefs.h"
5736 iconv_t cd = iconv_open("","");
5737 iconv(cd,NULL,NULL,NULL,NULL);
5744 rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (eval echo "$as_me:5745: \"$ac_link\"") >&5
5746 (eval $ac_link) 2>&5
5748 echo "$as_me:5748: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try='test -s conftest$ac_exeext'
5751 { (eval echo "$as_me:5751: \"$ac_try\"") >&5
5754 echo "$as_me:5754: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5757 cf_cv_find_linkage_iconv=yes
5758 cf_cv_header_path_iconv=/usr/include
5759 cf_cv_library_path_iconv=/usr/lib
5760 cf_cv_library_file_iconv="-liconv"
5763 echo "$as_me: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5766 cf_cv_find_linkage_iconv=no
5767 LIBS="$cf_save_LIBS"
5769 test -n "$verbose" && echo " find linkage for iconv library" 1>&6
5771 echo "${as_me:-configure}:5771: testing find linkage for iconv library ..." 1>&5
5773 echo "${as_me:-configure}:5773: testing Searching for headers in FIND_LINKAGE(iconv,) ..." 1>&5
5775 cf_save_CPPFLAGS="$CPPFLAGS"
5776 cf_test_CPPFLAGS="$CPPFLAGS"
5780 # collect the current set of include-directories from compiler flags
5781 cf_header_path_list=""
5782 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5783 for cf_header_path in $CPPFLAGS $CFLAGS
5785 case $cf_header_path in #(vi
5787 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5789 test "$cf_header_path" != "NONE" && \
5790 test -d "$cf_header_path" && \
5792 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5793 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
5794 test -d $cf_header_path/include/iconv && cf_search="$cf_search $cf_header_path/include/iconv"
5795 test -d $cf_header_path/include/iconv/include && cf_search="$cf_search $cf_header_path/include/iconv/include"
5796 test -d $cf_header_path/iconv/include && cf_search="$cf_search $cf_header_path/iconv/include"
5797 test -d $cf_header_path/iconv/include/iconv && cf_search="$cf_search $cf_header_path/iconv/include/iconv"
5800 cf_header_path_list="$cf_header_path_list $cf_search"
5806 # add the variations for the package we are looking for
5810 test "/usr" != "$prefix" && \
5812 (test $prefix = NONE || test "/usr" != "$prefix") && {
5813 test -n "$verbose" && echo " ... testing for include-directories under /usr"
5814 test -d /usr/include && cf_search="$cf_search /usr/include"
5815 test -d /usr/include/iconv && cf_search="$cf_search /usr/include/iconv"
5816 test -d /usr/include/iconv/include && cf_search="$cf_search /usr/include/iconv/include"
5817 test -d /usr/iconv/include && cf_search="$cf_search /usr/iconv/include"
5818 test -d /usr/iconv/include/iconv && cf_search="$cf_search /usr/iconv/include/iconv"
5821 test "$prefix" != "NONE" && \
5822 test -d "$prefix" && \
5824 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5825 test -d $prefix/include && cf_search="$cf_search $prefix/include"
5826 test -d $prefix/include/iconv && cf_search="$cf_search $prefix/include/iconv"
5827 test -d $prefix/include/iconv/include && cf_search="$cf_search $prefix/include/iconv/include"
5828 test -d $prefix/iconv/include && cf_search="$cf_search $prefix/iconv/include"
5829 test -d $prefix/iconv/include/iconv && cf_search="$cf_search $prefix/iconv/include/iconv"
5832 test "/usr/local" != "$prefix" && \
5833 test -d "/usr/local" && \
5834 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
5835 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
5836 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
5837 test -d /usr/local/include/iconv && cf_search="$cf_search /usr/local/include/iconv"
5838 test -d /usr/local/include/iconv/include && cf_search="$cf_search /usr/local/include/iconv/include"
5839 test -d /usr/local/iconv/include && cf_search="$cf_search /usr/local/iconv/include"
5840 test -d /usr/local/iconv/include/iconv && cf_search="$cf_search /usr/local/iconv/include/iconv"
5843 test "/opt" != "$prefix" && \
5845 (test $prefix = NONE || test "/opt" != "$prefix") && {
5846 test -n "$verbose" && echo " ... testing for include-directories under /opt"
5847 test -d /opt/include && cf_search="$cf_search /opt/include"
5848 test -d /opt/include/iconv && cf_search="$cf_search /opt/include/iconv"
5849 test -d /opt/include/iconv/include && cf_search="$cf_search /opt/include/iconv/include"
5850 test -d /opt/iconv/include && cf_search="$cf_search /opt/iconv/include"
5851 test -d /opt/iconv/include/iconv && cf_search="$cf_search /opt/iconv/include/iconv"
5854 test "$HOME" != "$prefix" && \
5855 test -d "$HOME" && \
5856 (test $prefix = NONE || test "$HOME" != "$prefix") && {
5857 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
5858 test -d $HOME/include && cf_search="$cf_search $HOME/include"
5859 test -d $HOME/include/iconv && cf_search="$cf_search $HOME/include/iconv"
5860 test -d $HOME/include/iconv/include && cf_search="$cf_search $HOME/include/iconv/include"
5861 test -d $HOME/iconv/include && cf_search="$cf_search $HOME/iconv/include"
5862 test -d $HOME/iconv/include/iconv && cf_search="$cf_search $HOME/iconv/include/iconv"
5865 test "$includedir" != NONE && \
5866 test "$includedir" != "/usr/include" && \
5867 test -d "$includedir" && {
5868 test -d $includedir && cf_search="$cf_search $includedir"
5869 test -d $includedir/iconv && cf_search="$cf_search $includedir/iconv"
5872 test "$oldincludedir" != NONE && \
5873 test "$oldincludedir" != "/usr/include" && \
5874 test -d "$oldincludedir" && {
5875 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5876 test -d $oldincludedir/iconv && cf_search="$cf_search $oldincludedir/iconv"
5879 cf_search="$cf_search $cf_header_path_list"
5881 for cf_cv_header_path_iconv in $cf_search
5883 if test -d $cf_cv_header_path_iconv ; then
5884 test -n "$verbose" && echo " ... testing $cf_cv_header_path_iconv" 1>&6
5886 echo "${as_me:-configure}:5886: testing ... testing $cf_cv_header_path_iconv ..." 1>&5
5888 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_iconv"
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line 5890 "configure"
5891 #include "confdefs.h"
5900 iconv_t cd = iconv_open("","");
5901 iconv(cd,NULL,NULL,NULL,NULL);
5908 rm -f conftest.$ac_objext
5909 if { (eval echo "$as_me:5909: \"$ac_compile\"") >&5
5910 (eval $ac_compile) 2>&5
5912 echo "$as_me:5912: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:5915: \"$ac_try\"") >&5
5918 echo "$as_me:5918: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5921 test -n "$verbose" && echo " ... found iconv headers in $cf_cv_header_path_iconv" 1>&6
5923 echo "${as_me:-configure}:5923: testing ... found iconv headers in $cf_cv_header_path_iconv ..." 1>&5
5925 cf_cv_find_linkage_iconv=maybe
5926 cf_test_CPPFLAGS="$CPPFLAGS"
5929 echo "$as_me: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5932 CPPFLAGS="$cf_save_CPPFLAGS"
5935 rm -f conftest.$ac_objext conftest.$ac_ext
5939 if test "$cf_cv_find_linkage_iconv" = maybe ; then
5941 echo "${as_me:-configure}:5941: testing Searching for iconv library in FIND_LINKAGE(iconv,) ..." 1>&5
5943 cf_save_LIBS="$LIBS"
5944 cf_save_LDFLAGS="$LDFLAGS"
5946 if test "$cf_cv_find_linkage_iconv" != yes ; then
5949 cf_library_path_list=""
5950 if test -n "${LDFLAGS}${LIBS}" ; then
5951 for cf_library_path in $LDFLAGS $LIBS
5953 case $cf_library_path in #(vi
5955 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5957 test "$cf_library_path" != "NONE" && \
5958 test -d "$cf_library_path" && \
5960 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5961 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5962 test -d $cf_library_path/lib/iconv && cf_search="$cf_search $cf_library_path/lib/iconv"
5963 test -d $cf_library_path/lib/iconv/lib && cf_search="$cf_search $cf_library_path/lib/iconv/lib"
5964 test -d $cf_library_path/iconv/lib && cf_search="$cf_search $cf_library_path/iconv/lib"
5965 test -d $cf_library_path/iconv/lib/iconv && cf_search="$cf_search $cf_library_path/iconv/lib/iconv"
5968 cf_library_path_list="$cf_library_path_list $cf_search"
5976 test "/usr" != "$prefix" && \
5978 (test $prefix = NONE || test "/usr" != "$prefix") && {
5979 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
5980 test -d /usr/lib && cf_search="$cf_search /usr/lib"
5981 test -d /usr/lib/iconv && cf_search="$cf_search /usr/lib/iconv"
5982 test -d /usr/lib/iconv/lib && cf_search="$cf_search /usr/lib/iconv/lib"
5983 test -d /usr/iconv/lib && cf_search="$cf_search /usr/iconv/lib"
5984 test -d /usr/iconv/lib/iconv && cf_search="$cf_search /usr/iconv/lib/iconv"
5987 test "$prefix" != "NONE" && \
5988 test -d "$prefix" && \
5990 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5991 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5992 test -d $prefix/lib/iconv && cf_search="$cf_search $prefix/lib/iconv"
5993 test -d $prefix/lib/iconv/lib && cf_search="$cf_search $prefix/lib/iconv/lib"
5994 test -d $prefix/iconv/lib && cf_search="$cf_search $prefix/iconv/lib"
5995 test -d $prefix/iconv/lib/iconv && cf_search="$cf_search $prefix/iconv/lib/iconv"
5998 test "/usr/local" != "$prefix" && \
5999 test -d "/usr/local" && \
6000 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6001 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6002 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6003 test -d /usr/local/lib/iconv && cf_search="$cf_search /usr/local/lib/iconv"
6004 test -d /usr/local/lib/iconv/lib && cf_search="$cf_search /usr/local/lib/iconv/lib"
6005 test -d /usr/local/iconv/lib && cf_search="$cf_search /usr/local/iconv/lib"
6006 test -d /usr/local/iconv/lib/iconv && cf_search="$cf_search /usr/local/iconv/lib/iconv"
6009 test "/opt" != "$prefix" && \
6011 (test $prefix = NONE || test "/opt" != "$prefix") && {
6012 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6013 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6014 test -d /opt/lib/iconv && cf_search="$cf_search /opt/lib/iconv"
6015 test -d /opt/lib/iconv/lib && cf_search="$cf_search /opt/lib/iconv/lib"
6016 test -d /opt/iconv/lib && cf_search="$cf_search /opt/iconv/lib"
6017 test -d /opt/iconv/lib/iconv && cf_search="$cf_search /opt/iconv/lib/iconv"
6020 test "$HOME" != "$prefix" && \
6021 test -d "$HOME" && \
6022 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6023 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6024 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6025 test -d $HOME/lib/iconv && cf_search="$cf_search $HOME/lib/iconv"
6026 test -d $HOME/lib/iconv/lib && cf_search="$cf_search $HOME/lib/iconv/lib"
6027 test -d $HOME/iconv/lib && cf_search="$cf_search $HOME/iconv/lib"
6028 test -d $HOME/iconv/lib/iconv && cf_search="$cf_search $HOME/iconv/lib/iconv"
6031 cf_search="$cf_library_path_list $cf_search"
6033 for cf_cv_library_path_iconv in $cf_search
6035 if test -d $cf_cv_library_path_iconv ; then
6036 test -n "$verbose" && echo " ... testing $cf_cv_library_path_iconv" 1>&6
6038 echo "${as_me:-configure}:6038: testing ... testing $cf_cv_library_path_iconv ..." 1>&5
6040 CPPFLAGS="$cf_test_CPPFLAGS"
6041 LIBS="-liconv $cf_save_LIBS"
6042 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_iconv"
6043 cat >conftest.$ac_ext <<_ACEOF
6044 #line 6044 "configure"
6045 #include "confdefs.h"
6054 iconv_t cd = iconv_open("","");
6055 iconv(cd,NULL,NULL,NULL,NULL);
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (eval echo "$as_me:6063: \"$ac_link\"") >&5
6064 (eval $ac_link) 2>&5
6066 echo "$as_me:6066: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -s conftest$ac_exeext'
6069 { (eval echo "$as_me:6069: \"$ac_try\"") >&5
6072 echo "$as_me:6072: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6075 test -n "$verbose" && echo " ... found iconv library in $cf_cv_library_path_iconv" 1>&6
6077 echo "${as_me:-configure}:6077: testing ... found iconv library in $cf_cv_library_path_iconv ..." 1>&5
6079 cf_cv_find_linkage_iconv=yes
6080 cf_cv_library_file_iconv="-liconv"
6083 echo "$as_me: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6086 CPPFLAGS="$cf_save_CPPFLAGS"
6087 LIBS="$cf_save_LIBS"
6088 LDFLAGS="$cf_save_LDFLAGS"
6091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6094 CPPFLAGS="$cf_save_CPPFLAGS"
6095 LDFLAGS="$cf_save_LDFLAGS"
6099 cf_cv_find_linkage_iconv=no
6103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6108 LIBS="$cf_save_LIBS"
6110 if test "$cf_cv_find_linkage_iconv" = yes ; then
6111 am_cv_func_iconv=yes
6113 am_cv_func_iconv="no, consider installing GNU libiconv"
6117 echo "$as_me:6117: result: $am_cv_func_iconv" >&5
6118 echo "${ECHO_T}$am_cv_func_iconv" >&6
6120 if test "$am_cv_func_iconv" = yes; then
6122 cat >>confdefs.h <<\EOF
6123 #define HAVE_ICONV 1
6126 echo "$as_me:6126: checking if the declaration of iconv() needs const." >&5
6127 echo $ECHO_N "checking if the declaration of iconv() needs const.... $ECHO_C" >&6
6128 if test "${am_cv_proto_iconv_const+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 cat >conftest.$ac_ext <<_ACEOF
6133 #line 6133 "configure"
6134 #include "confdefs.h"
6143 #if defined(__STDC__) || defined(__cplusplus)
6144 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:6158: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6161 echo "$as_me:6161: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:6164: \"$ac_try\"") >&5
6167 echo "$as_me:6167: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 am_cv_proto_iconv_const=no
6171 echo "$as_me: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6173 am_cv_proto_iconv_const=yes
6175 rm -f conftest.$ac_objext conftest.$ac_ext
6177 echo "$as_me:6177: result: $am_cv_proto_iconv_const" >&5
6178 echo "${ECHO_T}$am_cv_proto_iconv_const" >&6
6180 if test "$am_cv_proto_iconv_const" = yes ; then
6181 am_cv_proto_iconv_arg1="const"
6183 am_cv_proto_iconv_arg1=""
6186 cat >>confdefs.h <<EOF
6187 #define ICONV_CONST $am_cv_proto_iconv_arg1
6193 if test "$cf_cv_find_linkage_iconv" = yes; then
6195 if test -n "$cf_cv_header_path_iconv" ; then
6196 for cf_add_incdir in $cf_cv_header_path_iconv
6198 while test $cf_add_incdir != /usr/include
6200 if test -d $cf_add_incdir
6203 if test -n "$CFLAGS$CPPFLAGS" ; then
6204 # a loop is needed to ensure we can add subdirs of existing dirs
6205 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6206 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6207 cf_have_incdir=yes; break
6212 if test "$cf_have_incdir" = no ; then
6213 if test "$cf_add_incdir" = /usr/local/include ; then
6214 if test "$GCC" = yes
6216 cf_save_CPPFLAGS=$CPPFLAGS
6217 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6218 cat >conftest.$ac_ext <<_ACEOF
6219 #line 6219 "configure"
6220 #include "confdefs.h"
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:6231: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>&5
6234 echo "$as_me:6234: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -s conftest.$ac_objext'
6237 { (eval echo "$as_me:6237: \"$ac_try\"") >&5
6240 echo "$as_me:6240: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6244 echo "$as_me: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6248 rm -f conftest.$ac_objext conftest.$ac_ext
6249 CPPFLAGS=$cf_save_CPPFLAGS
6254 if test "$cf_have_incdir" = no ; then
6255 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6257 echo "${as_me:-configure}:6257: testing adding $cf_add_incdir to include-path ..." 1>&5
6259 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6261 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6262 test "$cf_top_incdir" = "$cf_add_incdir" && break
6263 cf_add_incdir="$cf_top_incdir"
6272 if test -n "$cf_cv_library_file_iconv" ; then
6275 if test -n "$cf_cv_library_path_iconv" ; then
6276 for cf_add_libdir in $cf_cv_library_path_iconv
6278 if test $cf_add_libdir = /usr/lib ; then
6280 elif test -d $cf_add_libdir
6283 if test -n "$LDFLAGS$LIBS" ; then
6284 # a loop is needed to ensure we can add subdirs of existing dirs
6285 for cf_test_libdir in $LDFLAGS $LIBS ; do
6286 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6287 cf_have_libdir=yes; break
6291 if test "$cf_have_libdir" = no ; then
6292 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6294 echo "${as_me:-configure}:6294: testing adding $cf_add_libdir to library-path ..." 1>&5
6296 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6305 echo "$as_me:6305: checking for nl_langinfo and CODESET" >&5
6306 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6307 if test "${am_cv_langinfo_codeset+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 cat >conftest.$ac_ext <<_ACEOF
6311 #line 6311 "configure"
6312 #include "confdefs.h"
6313 #include <langinfo.h>
6317 char* cs = nl_langinfo(CODESET);
6322 rm -f conftest.$ac_objext conftest$ac_exeext
6323 if { (eval echo "$as_me:6323: \"$ac_link\"") >&5
6324 (eval $ac_link) 2>&5
6326 echo "$as_me:6326: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -s conftest$ac_exeext'
6329 { (eval echo "$as_me:6329: \"$ac_try\"") >&5
6332 echo "$as_me:6332: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 am_cv_langinfo_codeset=yes
6336 echo "$as_me: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6338 am_cv_langinfo_codeset=no
6340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6343 echo "$as_me:6343: result: $am_cv_langinfo_codeset" >&5
6344 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6345 if test $am_cv_langinfo_codeset = yes; then
6347 cat >>confdefs.h <<\EOF
6348 #define HAVE_LANGINFO_CODESET 1
6353 if test $ac_cv_header_locale_h = yes; then
6354 echo "$as_me:6354: checking for LC_MESSAGES" >&5
6355 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6356 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line 6360 "configure"
6361 #include "confdefs.h"
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (eval echo "$as_me:6372: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>&5
6375 echo "$as_me:6375: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:6378: \"$ac_try\"") >&5
6381 echo "$as_me:6381: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 am_cv_val_LC_MESSAGES=yes
6385 echo "$as_me: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6387 am_cv_val_LC_MESSAGES=no
6389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6391 echo "$as_me:6391: result: $am_cv_val_LC_MESSAGES" >&5
6392 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6393 if test $am_cv_val_LC_MESSAGES = yes; then
6395 cat >>confdefs.h <<\EOF
6396 #define HAVE_LC_MESSAGES 1
6401 echo "$as_me:6401: checking whether NLS is requested" >&5
6402 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6404 # Check whether --enable-nls or --disable-nls was given.
6405 if test "${enable_nls+set}" = set; then
6406 enableval="$enable_nls"
6411 echo "$as_me:6411: result: $USE_NLS" >&5
6412 echo "${ECHO_T}$USE_NLS" >&6
6414 BUILD_INCLUDED_LIBINTL=no
6415 USE_INCLUDED_LIBINTL=no
6418 if test "$USE_NLS" = "yes"; then
6420 cat >>confdefs.h <<\EOF
6421 #define ENABLE_NLS 1
6424 echo "$as_me:6424: checking whether included gettext is requested" >&5
6425 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6427 # Check whether --with-included-gettext or --without-included-gettext was given.
6428 if test "${with_included_gettext+set}" = set; then
6429 withval="$with_included_gettext"
6430 nls_cv_force_use_gnu_gettext=$withval
6432 nls_cv_force_use_gnu_gettext=no
6434 echo "$as_me:6434: result: $nls_cv_force_use_gnu_gettext" >&5
6435 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6437 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6438 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6441 cf_save_LIBS_1="$LIBS"
6442 LIBS="$LIBICONV $LIBS"
6443 echo "$as_me:6443: checking for libintl.h and gettext()" >&5
6444 echo $ECHO_N "checking for libintl.h and gettext()... $ECHO_C" >&6
6445 if test "${cf_cv_func_gettext+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6450 # will be set on completion of the AC_TRY_LINK below.
6451 cf_cv_header_path_intl=
6452 cf_cv_library_path_intl=
6454 echo "${as_me:-configure}:6454: testing Starting FIND_LINKAGE(intl,) ..." 1>&5
6456 cf_save_LIBS="$LIBS"
6458 cat >conftest.$ac_ext <<_ACEOF
6459 #line 6459 "configure"
6460 #include "confdefs.h"
6462 #include <libintl.h>
6463 extern int _nl_msg_cat_cntr;
6469 bindtextdomain ("", "");
6470 return (int) gettext ("")
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (eval echo "$as_me:6479: \"$ac_link\"") >&5
6480 (eval $ac_link) 2>&5
6482 echo "$as_me:6482: \$? = $ac_status" >&5
6483 (exit $ac_status); } &&
6484 { ac_try='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:6485: \"$ac_try\"") >&5
6488 echo "$as_me:6488: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6491 cf_cv_find_linkage_intl=yes
6492 cf_cv_header_path_intl=/usr/include
6493 cf_cv_library_path_intl=/usr/lib
6496 echo "$as_me: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 LIBS="-lintl $cf_save_LIBS"
6501 cat >conftest.$ac_ext <<_ACEOF
6502 #line 6502 "configure"
6503 #include "confdefs.h"
6505 #include <libintl.h>
6506 extern int _nl_msg_cat_cntr;
6512 bindtextdomain ("", "");
6513 return (int) gettext ("")
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo "$as_me:6522: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>&5
6525 echo "$as_me:6525: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -s conftest$ac_exeext'
6528 { (eval echo "$as_me:6528: \"$ac_try\"") >&5
6531 echo "$as_me:6531: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6534 cf_cv_find_linkage_intl=yes
6535 cf_cv_header_path_intl=/usr/include
6536 cf_cv_library_path_intl=/usr/lib
6537 cf_cv_library_file_intl="-lintl"
6540 echo "$as_me: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6543 cf_cv_find_linkage_intl=no
6544 LIBS="$cf_save_LIBS"
6546 test -n "$verbose" && echo " find linkage for intl library" 1>&6
6548 echo "${as_me:-configure}:6548: testing find linkage for intl library ..." 1>&5
6550 echo "${as_me:-configure}:6550: testing Searching for headers in FIND_LINKAGE(intl,) ..." 1>&5
6552 cf_save_CPPFLAGS="$CPPFLAGS"
6553 cf_test_CPPFLAGS="$CPPFLAGS"
6557 # collect the current set of include-directories from compiler flags
6558 cf_header_path_list=""
6559 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6560 for cf_header_path in $CPPFLAGS $CFLAGS
6562 case $cf_header_path in #(vi
6564 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6566 test "$cf_header_path" != "NONE" && \
6567 test -d "$cf_header_path" && \
6569 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6570 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6571 test -d $cf_header_path/include/intl && cf_search="$cf_search $cf_header_path/include/intl"
6572 test -d $cf_header_path/include/intl/include && cf_search="$cf_search $cf_header_path/include/intl/include"
6573 test -d $cf_header_path/intl/include && cf_search="$cf_search $cf_header_path/intl/include"
6574 test -d $cf_header_path/intl/include/intl && cf_search="$cf_search $cf_header_path/intl/include/intl"
6577 cf_header_path_list="$cf_header_path_list $cf_search"
6583 # add the variations for the package we are looking for
6587 test "/usr" != "$prefix" && \
6589 (test $prefix = NONE || test "/usr" != "$prefix") && {
6590 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6591 test -d /usr/include && cf_search="$cf_search /usr/include"
6592 test -d /usr/include/intl && cf_search="$cf_search /usr/include/intl"
6593 test -d /usr/include/intl/include && cf_search="$cf_search /usr/include/intl/include"
6594 test -d /usr/intl/include && cf_search="$cf_search /usr/intl/include"
6595 test -d /usr/intl/include/intl && cf_search="$cf_search /usr/intl/include/intl"
6598 test "$prefix" != "NONE" && \
6599 test -d "$prefix" && \
6601 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6602 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6603 test -d $prefix/include/intl && cf_search="$cf_search $prefix/include/intl"
6604 test -d $prefix/include/intl/include && cf_search="$cf_search $prefix/include/intl/include"
6605 test -d $prefix/intl/include && cf_search="$cf_search $prefix/intl/include"
6606 test -d $prefix/intl/include/intl && cf_search="$cf_search $prefix/intl/include/intl"
6609 test "/usr/local" != "$prefix" && \
6610 test -d "/usr/local" && \
6611 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6612 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6613 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6614 test -d /usr/local/include/intl && cf_search="$cf_search /usr/local/include/intl"
6615 test -d /usr/local/include/intl/include && cf_search="$cf_search /usr/local/include/intl/include"
6616 test -d /usr/local/intl/include && cf_search="$cf_search /usr/local/intl/include"
6617 test -d /usr/local/intl/include/intl && cf_search="$cf_search /usr/local/intl/include/intl"
6620 test "/opt" != "$prefix" && \
6622 (test $prefix = NONE || test "/opt" != "$prefix") && {
6623 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6624 test -d /opt/include && cf_search="$cf_search /opt/include"
6625 test -d /opt/include/intl && cf_search="$cf_search /opt/include/intl"
6626 test -d /opt/include/intl/include && cf_search="$cf_search /opt/include/intl/include"
6627 test -d /opt/intl/include && cf_search="$cf_search /opt/intl/include"
6628 test -d /opt/intl/include/intl && cf_search="$cf_search /opt/intl/include/intl"
6631 test "$HOME" != "$prefix" && \
6632 test -d "$HOME" && \
6633 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6634 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6635 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6636 test -d $HOME/include/intl && cf_search="$cf_search $HOME/include/intl"
6637 test -d $HOME/include/intl/include && cf_search="$cf_search $HOME/include/intl/include"
6638 test -d $HOME/intl/include && cf_search="$cf_search $HOME/intl/include"
6639 test -d $HOME/intl/include/intl && cf_search="$cf_search $HOME/intl/include/intl"
6642 test "$includedir" != NONE && \
6643 test "$includedir" != "/usr/include" && \
6644 test -d "$includedir" && {
6645 test -d $includedir && cf_search="$cf_search $includedir"
6646 test -d $includedir/intl && cf_search="$cf_search $includedir/intl"
6649 test "$oldincludedir" != NONE && \
6650 test "$oldincludedir" != "/usr/include" && \
6651 test -d "$oldincludedir" && {
6652 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6653 test -d $oldincludedir/intl && cf_search="$cf_search $oldincludedir/intl"
6656 cf_search="$cf_search $cf_header_path_list"
6658 for cf_cv_header_path_intl in $cf_search
6660 if test -d $cf_cv_header_path_intl ; then
6661 test -n "$verbose" && echo " ... testing $cf_cv_header_path_intl" 1>&6
6663 echo "${as_me:-configure}:6663: testing ... testing $cf_cv_header_path_intl ..." 1>&5
6665 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_intl"
6666 cat >conftest.$ac_ext <<_ACEOF
6667 #line 6667 "configure"
6668 #include "confdefs.h"
6670 #include <libintl.h>
6671 extern int _nl_msg_cat_cntr;
6677 bindtextdomain ("", "");
6678 return (int) gettext ("")
6686 rm -f conftest.$ac_objext
6687 if { (eval echo "$as_me:6687: \"$ac_compile\"") >&5
6688 (eval $ac_compile) 2>&5
6690 echo "$as_me:6690: \$? = $ac_status" >&5
6691 (exit $ac_status); } &&
6692 { ac_try='test -s conftest.$ac_objext'
6693 { (eval echo "$as_me:6693: \"$ac_try\"") >&5
6696 echo "$as_me:6696: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6699 test -n "$verbose" && echo " ... found intl headers in $cf_cv_header_path_intl" 1>&6
6701 echo "${as_me:-configure}:6701: testing ... found intl headers in $cf_cv_header_path_intl ..." 1>&5
6703 cf_cv_find_linkage_intl=maybe
6704 cf_test_CPPFLAGS="$CPPFLAGS"
6707 echo "$as_me: failed program was:" >&5
6708 cat conftest.$ac_ext >&5
6710 CPPFLAGS="$cf_save_CPPFLAGS"
6713 rm -f conftest.$ac_objext conftest.$ac_ext
6717 if test "$cf_cv_find_linkage_intl" = maybe ; then
6719 echo "${as_me:-configure}:6719: testing Searching for intl library in FIND_LINKAGE(intl,) ..." 1>&5
6721 cf_save_LIBS="$LIBS"
6722 cf_save_LDFLAGS="$LDFLAGS"
6724 if test "$cf_cv_find_linkage_intl" != yes ; then
6727 cf_library_path_list=""
6728 if test -n "${LDFLAGS}${LIBS}" ; then
6729 for cf_library_path in $LDFLAGS $LIBS
6731 case $cf_library_path in #(vi
6733 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6735 test "$cf_library_path" != "NONE" && \
6736 test -d "$cf_library_path" && \
6738 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6739 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6740 test -d $cf_library_path/lib/intl && cf_search="$cf_search $cf_library_path/lib/intl"
6741 test -d $cf_library_path/lib/intl/lib && cf_search="$cf_search $cf_library_path/lib/intl/lib"
6742 test -d $cf_library_path/intl/lib && cf_search="$cf_search $cf_library_path/intl/lib"
6743 test -d $cf_library_path/intl/lib/intl && cf_search="$cf_search $cf_library_path/intl/lib/intl"
6746 cf_library_path_list="$cf_library_path_list $cf_search"
6754 test "/usr" != "$prefix" && \
6756 (test $prefix = NONE || test "/usr" != "$prefix") && {
6757 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6758 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6759 test -d /usr/lib/intl && cf_search="$cf_search /usr/lib/intl"
6760 test -d /usr/lib/intl/lib && cf_search="$cf_search /usr/lib/intl/lib"
6761 test -d /usr/intl/lib && cf_search="$cf_search /usr/intl/lib"
6762 test -d /usr/intl/lib/intl && cf_search="$cf_search /usr/intl/lib/intl"
6765 test "$prefix" != "NONE" && \
6766 test -d "$prefix" && \
6768 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6769 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6770 test -d $prefix/lib/intl && cf_search="$cf_search $prefix/lib/intl"
6771 test -d $prefix/lib/intl/lib && cf_search="$cf_search $prefix/lib/intl/lib"
6772 test -d $prefix/intl/lib && cf_search="$cf_search $prefix/intl/lib"
6773 test -d $prefix/intl/lib/intl && cf_search="$cf_search $prefix/intl/lib/intl"
6776 test "/usr/local" != "$prefix" && \
6777 test -d "/usr/local" && \
6778 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6779 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6780 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6781 test -d /usr/local/lib/intl && cf_search="$cf_search /usr/local/lib/intl"
6782 test -d /usr/local/lib/intl/lib && cf_search="$cf_search /usr/local/lib/intl/lib"
6783 test -d /usr/local/intl/lib && cf_search="$cf_search /usr/local/intl/lib"
6784 test -d /usr/local/intl/lib/intl && cf_search="$cf_search /usr/local/intl/lib/intl"
6787 test "/opt" != "$prefix" && \
6789 (test $prefix = NONE || test "/opt" != "$prefix") && {
6790 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6791 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6792 test -d /opt/lib/intl && cf_search="$cf_search /opt/lib/intl"
6793 test -d /opt/lib/intl/lib && cf_search="$cf_search /opt/lib/intl/lib"
6794 test -d /opt/intl/lib && cf_search="$cf_search /opt/intl/lib"
6795 test -d /opt/intl/lib/intl && cf_search="$cf_search /opt/intl/lib/intl"
6798 test "$HOME" != "$prefix" && \
6799 test -d "$HOME" && \
6800 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6801 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6802 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6803 test -d $HOME/lib/intl && cf_search="$cf_search $HOME/lib/intl"
6804 test -d $HOME/lib/intl/lib && cf_search="$cf_search $HOME/lib/intl/lib"
6805 test -d $HOME/intl/lib && cf_search="$cf_search $HOME/intl/lib"
6806 test -d $HOME/intl/lib/intl && cf_search="$cf_search $HOME/intl/lib/intl"
6809 cf_search="$cf_library_path_list $cf_search"
6811 for cf_cv_library_path_intl in $cf_search
6813 if test -d $cf_cv_library_path_intl ; then
6814 test -n "$verbose" && echo " ... testing $cf_cv_library_path_intl" 1>&6
6816 echo "${as_me:-configure}:6816: testing ... testing $cf_cv_library_path_intl ..." 1>&5
6818 CPPFLAGS="$cf_test_CPPFLAGS"
6819 LIBS="-lintl $cf_save_LIBS"
6820 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_intl"
6821 cat >conftest.$ac_ext <<_ACEOF
6822 #line 6822 "configure"
6823 #include "confdefs.h"
6825 #include <libintl.h>
6826 extern int _nl_msg_cat_cntr;
6832 bindtextdomain ("", "");
6833 return (int) gettext ("")
6841 rm -f conftest.$ac_objext conftest$ac_exeext
6842 if { (eval echo "$as_me:6842: \"$ac_link\"") >&5
6843 (eval $ac_link) 2>&5
6845 echo "$as_me:6845: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -s conftest$ac_exeext'
6848 { (eval echo "$as_me:6848: \"$ac_try\"") >&5
6851 echo "$as_me:6851: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6854 test -n "$verbose" && echo " ... found intl library in $cf_cv_library_path_intl" 1>&6
6856 echo "${as_me:-configure}:6856: testing ... found intl library in $cf_cv_library_path_intl ..." 1>&5
6858 cf_cv_find_linkage_intl=yes
6859 cf_cv_library_file_intl="-lintl"
6862 echo "$as_me: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6865 CPPFLAGS="$cf_save_CPPFLAGS"
6866 LIBS="$cf_save_LIBS"
6867 LDFLAGS="$cf_save_LDFLAGS"
6870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6873 CPPFLAGS="$cf_save_CPPFLAGS"
6874 LDFLAGS="$cf_save_LDFLAGS"
6878 cf_cv_find_linkage_intl=no
6882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6887 LIBS="$cf_save_LIBS"
6889 if test "$cf_cv_find_linkage_intl" = yes ; then
6890 cf_cv_func_gettext=yes
6892 cf_cv_func_gettext=no
6896 echo "$as_me:6896: result: $cf_cv_func_gettext" >&5
6897 echo "${ECHO_T}$cf_cv_func_gettext" >&6
6898 LIBS="$cf_save_LIBS_1"
6900 if test "$cf_cv_func_gettext" = yes ; then
6901 cat >>confdefs.h <<\EOF
6902 #define HAVE_LIBINTL_H 1
6905 if test "$PACKAGE" != gettext; then
6907 cat >>confdefs.h <<\EOF
6908 #define HAVE_GETTEXT 1
6911 if test -n "$cf_cv_header_path_intl" ; then
6912 for cf_add_incdir in $cf_cv_header_path_intl
6914 while test $cf_add_incdir != /usr/include
6916 if test -d $cf_add_incdir
6919 if test -n "$CFLAGS$CPPFLAGS" ; then
6920 # a loop is needed to ensure we can add subdirs of existing dirs
6921 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6922 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6923 cf_have_incdir=yes; break
6928 if test "$cf_have_incdir" = no ; then
6929 if test "$cf_add_incdir" = /usr/local/include ; then
6930 if test "$GCC" = yes
6932 cf_save_CPPFLAGS=$CPPFLAGS
6933 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6934 cat >conftest.$ac_ext <<_ACEOF
6935 #line 6935 "configure"
6936 #include "confdefs.h"
6946 rm -f conftest.$ac_objext
6947 if { (eval echo "$as_me:6947: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>&5
6950 echo "$as_me:6950: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -s conftest.$ac_objext'
6953 { (eval echo "$as_me:6953: \"$ac_try\"") >&5
6956 echo "$as_me:6956: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6960 echo "$as_me: failed program was:" >&5
6961 cat conftest.$ac_ext >&5
6964 rm -f conftest.$ac_objext conftest.$ac_ext
6965 CPPFLAGS=$cf_save_CPPFLAGS
6970 if test "$cf_have_incdir" = no ; then
6971 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6973 echo "${as_me:-configure}:6973: testing adding $cf_add_incdir to include-path ..." 1>&5
6975 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6977 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6978 test "$cf_top_incdir" = "$cf_add_incdir" && break
6979 cf_add_incdir="$cf_top_incdir"
6988 if test -n "$cf_cv_library_file_intl" ; then
6989 INTLLIBS="$cf_cv_library_file_intl $LIBICONV"
6991 if test -n "$cf_cv_library_path_intl" ; then
6992 for cf_add_libdir in $cf_cv_library_path_intl
6994 if test $cf_add_libdir = /usr/lib ; then
6996 elif test -d $cf_add_libdir
6999 if test -n "$LDFLAGS$LIBS" ; then
7000 # a loop is needed to ensure we can add subdirs of existing dirs
7001 for cf_test_libdir in $LDFLAGS $LIBS ; do
7002 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7003 cf_have_libdir=yes; break
7007 if test "$cf_have_libdir" = no ; then
7008 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7010 echo "${as_me:-configure}:7010: testing adding $cf_add_libdir to library-path ..." 1>&5
7012 INTLLIBS="-L$cf_add_libdir $INTLLIBS"
7020 gt_save_LIBS="$LIBS"
7021 LIBS="$LIBS $INTLLIBS"
7023 for ac_func in dcgettext
7025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7026 echo "$as_me:7026: checking for $ac_func" >&5
7027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7028 if eval "test \"\${$as_ac_var+set}\" = set"; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7032 #line 7032 "configure"
7033 #include "confdefs.h"
7034 /* System header to define __stub macros and hopefully few prototypes,
7035 which can conflict with char $ac_func (); below. */
7037 /* Override any gcc2 internal prototype to avoid an error. */
7041 /* We use char because int might match the return type of a gcc2
7042 builtin and then its argument prototype would still apply. */
7049 /* The GNU C library defines this for functions which it implements
7050 to always fail with ENOSYS. Some functions are actually named
7051 something starting with __ and the normal name is an alias. */
7052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (eval echo "$as_me:7063: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>&5
7066 echo "$as_me:7066: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -s conftest$ac_exeext'
7069 { (eval echo "$as_me:7069: \"$ac_try\"") >&5
7072 echo "$as_me:7072: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 eval "$as_ac_var=yes"
7076 echo "$as_me: failed program was:" >&5
7077 cat conftest.$ac_ext >&5
7078 eval "$as_ac_var=no"
7080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7082 echo "$as_me:7082: result: `eval echo '${'$as_ac_var'}'`" >&5
7083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7084 if test `eval echo '${'$as_ac_var'}'` = yes; then
7085 cat >>confdefs.h <<EOF
7086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7092 LIBS="$gt_save_LIBS"
7094 # Extract the first word of "msgfmt", so it can be a program name with args.
7096 set dummy msgfmt; ac_word=$2
7097 echo "$as_me:7097: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7099 if test "${ac_cv_path_MSGFMT+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
7108 for ac_dir in $PATH; do
7109 test -z "$ac_dir" && ac_dir=.
7110 if test -f $ac_dir/$ac_word$ac_exeext; then
7111 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7112 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext"
7118 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7122 MSGFMT="$ac_cv_path_MSGFMT"
7123 if test "$MSGFMT" != ":"; then
7124 echo "$as_me:7124: result: $MSGFMT" >&5
7125 echo "${ECHO_T}$MSGFMT" >&6
7127 echo "$as_me:7127: result: no" >&5
7128 echo "${ECHO_T}no" >&6
7131 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7132 set dummy gmsgfmt; ac_word=$2
7133 echo "$as_me:7133: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7143 ac_save_IFS=$IFS; IFS=$ac_path_separator
7145 for ac_dir in $ac_dummy; do
7147 test -z "$ac_dir" && ac_dir=.
7148 if $as_executable_p "$ac_dir/$ac_word"; then
7149 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7150 echo "$as_me:7150: found $ac_dir/$ac_word" >&5
7155 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7159 GMSGFMT=$ac_cv_path_GMSGFMT
7161 if test -n "$GMSGFMT"; then
7162 echo "$as_me:7162: result: $GMSGFMT" >&5
7163 echo "${ECHO_T}$GMSGFMT" >&6
7165 echo "$as_me:7165: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7169 # Extract the first word of "xgettext", so it can be a program name with args.
7171 set dummy xgettext; ac_word=$2
7172 echo "$as_me:7172: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
7183 for ac_dir in $PATH; do
7184 test -z "$ac_dir" && ac_dir=.
7185 if test -f $ac_dir/$ac_word$ac_exeext; then
7186 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7187 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext"
7193 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7197 XGETTEXT="$ac_cv_path_XGETTEXT"
7198 if test "$XGETTEXT" != ":"; then
7199 echo "$as_me:7199: result: $XGETTEXT" >&5
7200 echo "${ECHO_T}$XGETTEXT" >&6
7202 echo "$as_me:7202: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7210 if test "$CATOBJEXT" = "NONE"; then
7211 nls_cv_use_gnu_gettext=yes
7215 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7216 if test ! -d $srcdir/intl ; then
7217 { { echo "$as_me:7217: error: no NLS library is packaged with this application" >&5
7218 echo "$as_me: error: no NLS library is packaged with this application" >&2;}
7219 { (exit 1); exit 1; }; }
7221 INTLOBJS="\$(GETTOBJS)"
7222 # Extract the first word of "msgfmt", so it can be a program name with args.
7224 set dummy msgfmt; ac_word=$2
7225 echo "$as_me:7225: checking for $ac_word" >&5
7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7227 if test "${ac_cv_path_MSGFMT+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
7236 for ac_dir in $PATH; do
7237 test -z "$ac_dir" && ac_dir=.
7238 if test -f $ac_dir/$ac_word$ac_exeext; then
7239 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7240 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext"
7246 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7250 MSGFMT="$ac_cv_path_MSGFMT"
7251 if test "$MSGFMT" != ":"; then
7252 echo "$as_me:7252: result: $MSGFMT" >&5
7253 echo "${ECHO_T}$MSGFMT" >&6
7255 echo "$as_me:7255: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7259 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7260 set dummy gmsgfmt; ac_word=$2
7261 echo "$as_me:7261: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7271 ac_save_IFS=$IFS; IFS=$ac_path_separator
7273 for ac_dir in $ac_dummy; do
7275 test -z "$ac_dir" && ac_dir=.
7276 if $as_executable_p "$ac_dir/$ac_word"; then
7277 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7278 echo "$as_me:7278: found $ac_dir/$ac_word" >&5
7283 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7287 GMSGFMT=$ac_cv_path_GMSGFMT
7289 if test -n "$GMSGFMT"; then
7290 echo "$as_me:7290: result: $GMSGFMT" >&5
7291 echo "${ECHO_T}$GMSGFMT" >&6
7293 echo "$as_me:7293: result: no" >&5
7294 echo "${ECHO_T}no" >&6
7297 # Extract the first word of "xgettext", so it can be a program name with args.
7299 set dummy xgettext; ac_word=$2
7300 echo "$as_me:7300: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7302 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
7311 for ac_dir in $PATH; do
7312 test -z "$ac_dir" && ac_dir=.
7313 if test -f $ac_dir/$ac_word$ac_exeext; then
7314 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7315 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext"
7321 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7325 XGETTEXT="$ac_cv_path_XGETTEXT"
7326 if test "$XGETTEXT" != ":"; then
7327 echo "$as_me:7327: result: $XGETTEXT" >&5
7328 echo "${ECHO_T}$XGETTEXT" >&6
7330 echo "$as_me:7330: result: no" >&5
7331 echo "${ECHO_T}no" >&6
7334 BUILD_INCLUDED_LIBINTL=yes
7335 USE_INCLUDED_LIBINTL=yes
7337 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
7338 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7341 if test "$GMSGFMT" != ":"; then
7342 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
7345 echo "$as_me:7345: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
7346 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
7351 if test "$XGETTEXT" != ":"; then
7352 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
7355 echo "$as_me:7355: result: found xgettext program is not GNU xgettext; ignore it" >&5
7356 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7364 ac_config_commands="$ac_config_commands default-1"
7366 if test "$PACKAGE" = gettext; then
7367 BUILD_INCLUDED_LIBINTL=yes
7370 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7371 for ac_prog in bison
7373 # Extract the first word of "$ac_prog", so it can be a program name with args.
7374 set dummy $ac_prog; ac_word=$2
7375 echo "$as_me:7375: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7377 if test "${ac_cv_prog_INTLBISON+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 if test -n "$INTLBISON"; then
7381 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7383 ac_save_IFS=$IFS; IFS=$ac_path_separator
7385 for ac_dir in $ac_dummy; do
7387 test -z "$ac_dir" && ac_dir=.
7388 $as_executable_p "$ac_dir/$ac_word" || continue
7389 ac_cv_prog_INTLBISON="$ac_prog"
7390 echo "$as_me:7390: found $ac_dir/$ac_word" >&5
7396 INTLBISON=$ac_cv_prog_INTLBISON
7397 if test -n "$INTLBISON"; then
7398 echo "$as_me:7398: result: $INTLBISON" >&5
7399 echo "${ECHO_T}$INTLBISON" >&6
7401 echo "$as_me:7401: result: no" >&5
7402 echo "${ECHO_T}no" >&6
7405 test -n "$INTLBISON" && break
7408 if test -z "$INTLBISON"; then
7411 echo "$as_me:7411: checking version of bison" >&5
7412 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
7413 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7414 case $ac_prog_version in
7415 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7416 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7417 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7418 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7420 echo "$as_me:7420: result: $ac_prog_version" >&5
7421 echo "${ECHO_T}$ac_prog_version" >&6
7423 if test $ac_verc_fail = yes; then
7428 for lang in $ALL_LINGUAS; do
7429 GMOFILES="$GMOFILES $lang.gmo"
7430 POFILES="$POFILES $lang.po"
7434 nls_cv_header_libgt=
7442 if test "x$CATOBJEXT" != "x"; then
7443 if test "x$ALL_LINGUAS" = "x"; then
7446 echo "$as_me:7446: checking for catalogs to be installed" >&5
7447 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7449 for presentlang in $ALL_LINGUAS; do
7451 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
7452 # Use the presentlang catalog if desiredlang is
7453 # a. equal to presentlang, or
7454 # b. a variant of presentlang (because in this case,
7455 # presentlang can be used as a fallback for messages
7456 # which are not translated in the desiredlang catalog).
7457 case "$desiredlang" in
7458 "$presentlang"*) useit=yes;;
7461 if test $useit = yes; then
7462 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7465 LINGUAS=$NEW_LINGUAS
7466 echo "$as_me:7466: result: $LINGUAS" >&5
7467 echo "${ECHO_T}$LINGUAS" >&6
7470 if test -n "$LINGUAS"; then
7471 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7475 INTL_LIBTOOL_SUFFIX_PREFIX=
7477 if test "$USE_NLS" = yes ; then
7479 # Check whether --with-textdomain or --without-textdomain was given.
7480 if test "${with_textdomain+set}" = set; then
7481 withval="$with_textdomain"
7482 NLS_TEXTDOMAIN=$withval
7484 NLS_TEXTDOMAIN=$PACKAGE
7486 cat >>confdefs.h <<EOF
7487 #define NLS_TEXTDOMAIN "$NLS_TEXTDOMAIN"
7496 cf_makefile=makefile
7499 if test "$USE_NLS" = yes ; then
7500 if test -d $srcdir/po ; then
7501 echo "$as_me:7501: checking if we should use included message-library" >&5
7502 echo $ECHO_N "checking if we should use included message-library... $ECHO_C" >&6
7504 # Check whether --enable-included-msgs or --disable-included-msgs was given.
7505 if test "${enable_included_msgs+set}" = set; then
7506 enableval="$enable_included_msgs"
7507 use_our_messages=$enableval
7509 use_our_messages=yes
7512 echo "$as_me:7512: result: $use_our_messages" >&5
7513 echo "${ECHO_T}$use_our_messages" >&6
7517 if test "$use_our_messages" = yes
7519 SUB_MAKEFILE="$SUB_MAKEFILE po/$cf_makefile.in:$srcdir/po/$cf_makefile.inn"
7523 if test "$USE_INCLUDED_LIBINTL" = yes ; then
7524 if test "$nls_cv_force_use_gnu_gettext" = yes ; then
7526 elif test "$nls_cv_use_gnu_gettext" = yes ; then
7531 if test -z "$INTLDIR_MAKE"; then
7532 cat >>confdefs.h <<\EOF
7533 #define HAVE_LIBGETTEXT_H 1
7536 for cf_makefile in \
7537 $srcdir/intl/Makefile.in \
7538 $srcdir/intl/makefile.in
7540 if test -f "$cf_makefile" ; then
7541 SUB_MAKEFILE="$SUB_MAKEFILE `echo \"${cf_makefile}\"|sed -e 's,^'$srcdir/',,' -e 's/\.in$//'`:${cf_makefile}"
7548 if test "$USE_NLS" = yes ; then
7550 for ac_header in libintl.h
7552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7553 echo "$as_me:7553: checking for $ac_header" >&5
7554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7559 #line 7559 "configure"
7560 #include "confdefs.h"
7561 #include <$ac_header>
7563 if { (eval echo "$as_me:7563: \"$ac_cpp conftest.$ac_ext\"") >&5
7564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7566 egrep -v '^ *\+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:7569: \$? = $ac_status" >&5
7570 (exit $ac_status); } >/dev/null; then
7571 if test -s conftest.err; then
7572 ac_cpp_err=$ac_c_preproc_warn_flag
7579 if test -z "$ac_cpp_err"; then
7580 eval "$as_ac_Header=yes"
7582 echo "$as_me: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7584 eval "$as_ac_Header=no"
7586 rm -f conftest.err conftest.$ac_ext
7588 echo "$as_me:7588: result: `eval echo '${'$as_ac_Header'}'`" >&5
7589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7591 cat >>confdefs.h <<EOF
7592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7601 if test -z "$INTLDIR_MAKE" ; then
7602 CPPFLAGS="$CPPFLAGS -I../intl"
7605 if test "$BUILD_INCLUDED_LIBINTL" = yes ; then
7613 if test "$USE_INCLUDED_LIBINTL" = yes ; then
7614 if test "$nls_cv_force_use_gnu_gettext" = yes ; then
7615 cat >>confdefs.h <<\EOF
7616 #define HAVE_GETTEXT 1
7619 elif test "$nls_cv_use_gnu_gettext" = yes ; then
7620 cat >>confdefs.h <<\EOF
7621 #define HAVE_GETTEXT 1
7625 if test -n "$nls_cv_header_intl" ; then
7626 cat >>confdefs.h <<\EOF
7627 #define HAVE_LIBINTL_H 1
7633 echo "$as_me:7633: checking if -lm needed for math functions" >&5
7634 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
7635 if test "${cf_cv_need_libm+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 cat >conftest.$ac_ext <<_ACEOF
7640 #line 7640 "configure"
7641 #include "confdefs.h"
7649 double x = rand(); printf("result = %g\n", sqrt(x))
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:7655: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>&5
7658 echo "$as_me:7658: \$? = $ac_status" >&5
7659 (exit $ac_status); } &&
7660 { ac_try='test -s conftest$ac_exeext'
7661 { (eval echo "$as_me:7661: \"$ac_try\"") >&5
7664 echo "$as_me:7664: \$? = $ac_status" >&5
7665 (exit $ac_status); }; }; then
7668 echo "$as_me: failed program was:" >&5
7669 cat conftest.$ac_ext >&5
7672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7674 echo "$as_me:7674: result: $cf_cv_need_libm" >&5
7675 echo "${ECHO_T}$cf_cv_need_libm" >&6
7676 if test "$cf_cv_need_libm" = yes
7683 echo "$as_me:7683: checking if you want to use dmalloc for testing" >&5
7684 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
7686 # Check whether --with-dmalloc or --without-dmalloc was given.
7687 if test "${with_dmalloc+set}" = set; then
7688 withval="$with_dmalloc"
7689 cat >>confdefs.h <<\EOF
7690 #define USE_DMALLOC 1
7693 : ${with_cflags:=-g}
7694 : ${with_no_leaks:=yes}
7699 echo "$as_me:7699: result: ${with_dmalloc:-no}" >&5
7700 echo "${ECHO_T}${with_dmalloc:-no}" >&6
7702 case .$with_cflags in #(vi
7704 case .$CFLAGS in #(vi
7712 cf_new_extra_cppflags=
7714 for cf_add_cflags in -g
7716 case $cf_fix_cppflags in
7718 case $cf_add_cflags in #(vi
7719 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7720 case $cf_add_cflags in
7722 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7724 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7725 && test -z "${cf_tst_cflags}" \
7726 && cf_fix_cppflags=yes
7728 if test $cf_fix_cppflags = yes ; then
7729 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7731 elif test "${cf_tst_cflags}" = "\"'" ; then
7732 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7738 *$cf_add_cflags) #(vi
7741 case $cf_add_cflags in #(vi
7743 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7745 CPPFLAGS=`echo "$CPPFLAGS" | \
7746 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7747 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7751 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7756 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7761 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7763 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7765 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7766 && test -z "${cf_tst_cflags}" \
7767 && cf_fix_cppflags=no
7772 if test -n "$cf_new_cflags" ; then
7774 CFLAGS="$CFLAGS $cf_new_cflags"
7777 if test -n "$cf_new_cppflags" ; then
7779 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7782 if test -n "$cf_new_extra_cppflags" ; then
7784 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7792 if test "$with_dmalloc" = yes ; then
7793 echo "$as_me:7793: checking for dmalloc.h" >&5
7794 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
7795 if test "${ac_cv_header_dmalloc_h+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 cat >conftest.$ac_ext <<_ACEOF
7799 #line 7799 "configure"
7800 #include "confdefs.h"
7801 #include <dmalloc.h>
7803 if { (eval echo "$as_me:7803: \"$ac_cpp conftest.$ac_ext\"") >&5
7804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7806 egrep -v '^ *\+' conftest.er1 >conftest.err
7808 cat conftest.err >&5
7809 echo "$as_me:7809: \$? = $ac_status" >&5
7810 (exit $ac_status); } >/dev/null; then
7811 if test -s conftest.err; then
7812 ac_cpp_err=$ac_c_preproc_warn_flag
7819 if test -z "$ac_cpp_err"; then
7820 ac_cv_header_dmalloc_h=yes
7822 echo "$as_me: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7824 ac_cv_header_dmalloc_h=no
7826 rm -f conftest.err conftest.$ac_ext
7828 echo "$as_me:7828: result: $ac_cv_header_dmalloc_h" >&5
7829 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
7830 if test $ac_cv_header_dmalloc_h = yes; then
7832 echo "$as_me:7832: checking for dmalloc_debug in -ldmalloc" >&5
7833 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
7834 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 ac_check_lib_save_LIBS=$LIBS
7838 LIBS="-ldmalloc $LIBS"
7839 cat >conftest.$ac_ext <<_ACEOF
7840 #line 7840 "configure"
7841 #include "confdefs.h"
7843 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7849 char dmalloc_debug ();
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (eval echo "$as_me:7859: \"$ac_link\"") >&5
7860 (eval $ac_link) 2>&5
7862 echo "$as_me:7862: \$? = $ac_status" >&5
7863 (exit $ac_status); } &&
7864 { ac_try='test -s conftest$ac_exeext'
7865 { (eval echo "$as_me:7865: \"$ac_try\"") >&5
7868 echo "$as_me:7868: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7870 ac_cv_lib_dmalloc_dmalloc_debug=yes
7872 echo "$as_me: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7874 ac_cv_lib_dmalloc_dmalloc_debug=no
7876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7877 LIBS=$ac_check_lib_save_LIBS
7879 echo "$as_me:7879: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
7880 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
7881 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
7882 cat >>confdefs.h <<EOF
7883 #define HAVE_LIBDMALLOC 1
7886 LIBS="-ldmalloc $LIBS"
7894 echo "$as_me:7894: checking if you want to use dbmalloc for testing" >&5
7895 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
7897 # Check whether --with-dbmalloc or --without-dbmalloc was given.
7898 if test "${with_dbmalloc+set}" = set; then
7899 withval="$with_dbmalloc"
7900 cat >>confdefs.h <<\EOF
7901 #define USE_DBMALLOC 1
7904 : ${with_cflags:=-g}
7905 : ${with_no_leaks:=yes}
7910 echo "$as_me:7910: result: ${with_dbmalloc:-no}" >&5
7911 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
7913 case .$with_cflags in #(vi
7915 case .$CFLAGS in #(vi
7923 cf_new_extra_cppflags=
7925 for cf_add_cflags in -g
7927 case $cf_fix_cppflags in
7929 case $cf_add_cflags in #(vi
7930 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7931 case $cf_add_cflags in
7933 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7935 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7936 && test -z "${cf_tst_cflags}" \
7937 && cf_fix_cppflags=yes
7939 if test $cf_fix_cppflags = yes ; then
7940 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7942 elif test "${cf_tst_cflags}" = "\"'" ; then
7943 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7949 *$cf_add_cflags) #(vi
7952 case $cf_add_cflags in #(vi
7954 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7956 CPPFLAGS=`echo "$CPPFLAGS" | \
7957 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7958 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7962 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7967 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7972 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7974 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7976 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7977 && test -z "${cf_tst_cflags}" \
7978 && cf_fix_cppflags=no
7983 if test -n "$cf_new_cflags" ; then
7985 CFLAGS="$CFLAGS $cf_new_cflags"
7988 if test -n "$cf_new_cppflags" ; then
7990 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7993 if test -n "$cf_new_extra_cppflags" ; then
7995 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8003 if test "$with_dbmalloc" = yes ; then
8004 echo "$as_me:8004: checking for dbmalloc.h" >&5
8005 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
8006 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8010 #line 8010 "configure"
8011 #include "confdefs.h"
8012 #include <dbmalloc.h>
8014 if { (eval echo "$as_me:8014: \"$ac_cpp conftest.$ac_ext\"") >&5
8015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8017 egrep -v '^ *\+' conftest.er1 >conftest.err
8019 cat conftest.err >&5
8020 echo "$as_me:8020: \$? = $ac_status" >&5
8021 (exit $ac_status); } >/dev/null; then
8022 if test -s conftest.err; then
8023 ac_cpp_err=$ac_c_preproc_warn_flag
8030 if test -z "$ac_cpp_err"; then
8031 ac_cv_header_dbmalloc_h=yes
8033 echo "$as_me: failed program was:" >&5
8034 cat conftest.$ac_ext >&5
8035 ac_cv_header_dbmalloc_h=no
8037 rm -f conftest.err conftest.$ac_ext
8039 echo "$as_me:8039: result: $ac_cv_header_dbmalloc_h" >&5
8040 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
8041 if test $ac_cv_header_dbmalloc_h = yes; then
8043 echo "$as_me:8043: checking for debug_malloc in -ldbmalloc" >&5
8044 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
8045 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 ac_check_lib_save_LIBS=$LIBS
8049 LIBS="-ldbmalloc $LIBS"
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line 8051 "configure"
8052 #include "confdefs.h"
8054 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8060 char debug_malloc ();
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:8070: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>&5
8073 echo "$as_me:8073: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:8076: \"$ac_try\"") >&5
8079 echo "$as_me:8079: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 ac_cv_lib_dbmalloc_debug_malloc=yes
8083 echo "$as_me: failed program was:" >&5
8084 cat conftest.$ac_ext >&5
8085 ac_cv_lib_dbmalloc_debug_malloc=no
8087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8088 LIBS=$ac_check_lib_save_LIBS
8090 echo "$as_me:8090: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
8091 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
8092 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
8093 cat >>confdefs.h <<EOF
8094 #define HAVE_LIBDBMALLOC 1
8097 LIBS="-ldbmalloc $LIBS"
8105 echo "$as_me:8105: checking if you want to use purify for testing" >&5
8106 echo $ECHO_N "checking if you want to use purify for testing... $ECHO_C" >&6
8108 # Check whether --with-purify or --without-purify was given.
8109 if test "${with_purify+set}" = set; then
8110 withval="$with_purify"
8111 cat >>confdefs.h <<\EOF
8112 #define USE_PURIFY 1
8115 : ${with_cflags:=-g}
8116 : ${with_no_leaks:=yes}
8121 echo "$as_me:8121: result: ${with_purify:-no}" >&5
8122 echo "${ECHO_T}${with_purify:-no}" >&6
8124 case .$with_cflags in #(vi
8126 case .$CFLAGS in #(vi
8134 cf_new_extra_cppflags=
8136 for cf_add_cflags in -g
8138 case $cf_fix_cppflags in
8140 case $cf_add_cflags in #(vi
8141 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8142 case $cf_add_cflags in
8144 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8146 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8147 && test -z "${cf_tst_cflags}" \
8148 && cf_fix_cppflags=yes
8150 if test $cf_fix_cppflags = yes ; then
8151 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8153 elif test "${cf_tst_cflags}" = "\"'" ; then
8154 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8160 *$cf_add_cflags) #(vi
8163 case $cf_add_cflags in #(vi
8165 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8167 CPPFLAGS=`echo "$CPPFLAGS" | \
8168 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8169 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8173 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8178 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8183 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8185 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8187 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8188 && test -z "${cf_tst_cflags}" \
8189 && cf_fix_cppflags=no
8194 if test -n "$cf_new_cflags" ; then
8196 CFLAGS="$CFLAGS $cf_new_cflags"
8199 if test -n "$cf_new_cppflags" ; then
8201 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8204 if test -n "$cf_new_extra_cppflags" ; then
8206 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8214 echo "$as_me:8214: checking if you want to use valgrind for testing" >&5
8215 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
8217 # Check whether --with-valgrind or --without-valgrind was given.
8218 if test "${with_valgrind+set}" = set; then
8219 withval="$with_valgrind"
8220 cat >>confdefs.h <<\EOF
8221 #define USE_VALGRIND 1
8224 : ${with_cflags:=-g}
8225 : ${with_no_leaks:=yes}
8230 echo "$as_me:8230: result: ${with_valgrind:-no}" >&5
8231 echo "${ECHO_T}${with_valgrind:-no}" >&6
8233 case .$with_cflags in #(vi
8235 case .$CFLAGS in #(vi
8243 cf_new_extra_cppflags=
8245 for cf_add_cflags in -g
8247 case $cf_fix_cppflags in
8249 case $cf_add_cflags in #(vi
8250 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8251 case $cf_add_cflags in
8253 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8255 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8256 && test -z "${cf_tst_cflags}" \
8257 && cf_fix_cppflags=yes
8259 if test $cf_fix_cppflags = yes ; then
8260 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8262 elif test "${cf_tst_cflags}" = "\"'" ; then
8263 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8269 *$cf_add_cflags) #(vi
8272 case $cf_add_cflags in #(vi
8274 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8276 CPPFLAGS=`echo "$CPPFLAGS" | \
8277 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8278 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8282 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8287 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8292 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8294 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8296 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8297 && test -z "${cf_tst_cflags}" \
8298 && cf_fix_cppflags=no
8303 if test -n "$cf_new_cflags" ; then
8305 CFLAGS="$CFLAGS $cf_new_cflags"
8308 if test -n "$cf_new_cppflags" ; then
8310 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8313 if test -n "$cf_new_extra_cppflags" ; then
8315 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8323 echo "$as_me:8323: checking if you want to perform memory-leak testing" >&5
8324 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
8326 # Check whether --with-no-leaks or --without-no-leaks was given.
8327 if test "${with_no_leaks+set}" = set; then
8328 withval="$with_no_leaks"
8329 cat >>confdefs.h <<\EOF
8333 cf_doalloc=".${with_dmalloc}${with_dbmalloc}${with_purify}${with_valgrind}"
8334 case ${cf_doalloc} in #(vi
8336 *) cat >>confdefs.h <<\EOF
8337 #define DOALLOC 10000
8345 echo "$as_me:8345: result: $with_no_leaks" >&5
8346 echo "${ECHO_T}$with_no_leaks" >&6
8348 echo "$as_me:8348: checking if you want --trace option" >&5
8349 echo $ECHO_N "checking if you want --trace option... $ECHO_C" >&6
8351 # Check whether --enable-trace or --disable-trace was given.
8352 if test "${enable_trace+set}" = set; then
8353 enableval="$enable_trace"
8358 echo "$as_me:8358: result: $enableval" >&5
8359 echo "${ECHO_T}$enableval" >&6
8360 if test "$enableval" != no ; then
8361 EXTRAOBJS="$EXTRAOBJS trace\$o"
8362 cat >>confdefs.h <<\EOF
8363 #define HAVE_DLG_TRACE 1
8372 echo "$as_me:8372: checking if libtool -version-number should be used" >&5
8373 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
8375 # Check whether --enable-libtool-version or --disable-libtool-version was given.
8376 if test "${enable_libtool_version+set}" = set; then
8377 enableval="$enable_libtool_version"
8378 test "$enableval" != no && enableval=yes
8379 if test "$enableval" != "yes" ; then
8380 cf_libtool_version=no
8382 cf_libtool_version=yes
8386 cf_libtool_version=yes
8389 echo "$as_me:8389: result: $cf_libtool_version" >&5
8390 echo "${ECHO_T}$cf_libtool_version" >&6
8392 if test "$cf_libtool_version" = yes ; then
8393 LIBTOOL_VERSION="-version-number"
8395 LIBTOOL_VERSION="-version-info"
8400 # common library maintenance symbols that are convenient for libtool scripts:
8401 LIB_CREATE='${AR} -cr'
8402 LIB_OBJECT='${OBJECTS}'
8406 # symbols used to prop libtool up to enable it to determine what it should be
8414 echo "$as_me:8414: checking if you want to build libraries with libtool" >&5
8415 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
8417 # Check whether --with-libtool or --without-libtool was given.
8418 if test "${with_libtool+set}" = set; then
8419 withval="$with_libtool"
8420 with_libtool=$withval
8424 echo "$as_me:8424: result: $with_libtool" >&5
8425 echo "${ECHO_T}$with_libtool" >&6
8426 if test "$with_libtool" != "no"; then
8428 if test "$with_libtool" != "yes" ; then
8430 if test "x$prefix" != xNONE; then
8431 cf_path_syntax="$prefix"
8433 cf_path_syntax="$ac_default_prefix"
8436 case ".$with_libtool" in #(vi
8437 .\$\(*\)*|.\'*\'*) #(vi
8441 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
8444 eval with_libtool="$with_libtool"
8445 case ".$with_libtool" in #(vi
8447 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
8452 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
8455 { { echo "$as_me:8455: error: expected a pathname, not \"$with_libtool\"" >&5
8456 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
8457 { (exit 1); exit 1; }; }
8461 LIBTOOL=$with_libtool
8463 # Extract the first word of "libtool", so it can be a program name with args.
8464 set dummy libtool; ac_word=$2
8465 echo "$as_me:8465: checking for $ac_word" >&5
8466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8467 if test "${ac_cv_path_LIBTOOL+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8475 ac_save_IFS=$IFS; IFS=$ac_path_separator
8477 for ac_dir in $ac_dummy; do
8479 test -z "$ac_dir" && ac_dir=.
8480 if $as_executable_p "$ac_dir/$ac_word"; then
8481 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
8482 echo "$as_me:8482: found $ac_dir/$ac_word" >&5
8490 LIBTOOL=$ac_cv_path_LIBTOOL
8492 if test -n "$LIBTOOL"; then
8493 echo "$as_me:8493: result: $LIBTOOL" >&5
8494 echo "${ECHO_T}$LIBTOOL" >&6
8496 echo "$as_me:8496: result: no" >&5
8497 echo "${ECHO_T}no" >&6
8501 if test -z "$LIBTOOL" ; then
8502 { { echo "$as_me:8502: error: Cannot find libtool" >&5
8503 echo "$as_me: error: Cannot find libtool" >&2;}
8504 { (exit 1); exit 1; }; }
8506 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
8507 LIB_OBJECT='${OBJECTS:.o=.lo}'
8509 LIB_CLEAN='${LIBTOOL} --mode=clean'
8510 LIB_COMPILE='${LIBTOOL} --mode=compile'
8511 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
8512 LIB_INSTALL='${LIBTOOL} --mode=install'
8513 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
8516 # Show the version of libtool
8517 echo "$as_me:8517: checking version of libtool" >&5
8518 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
8520 # Save the version in a cache variable - this is not entirely a good
8521 # thing, but the version string from libtool is very ugly, and for
8522 # bug reports it might be useful to have the original string. "("
8523 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
8524 echo "$as_me:8524: result: $cf_cv_libtool_version" >&5
8525 echo "${ECHO_T}$cf_cv_libtool_version" >&6
8526 if test -z "$cf_cv_libtool_version" ; then
8527 { { echo "$as_me:8527: error: This is not GNU libtool" >&5
8528 echo "$as_me: error: This is not GNU libtool" >&2;}
8529 { (exit 1); exit 1; }; }
8532 # special hack to add -no-undefined (which libtool should do for itself)
8534 case "$cf_cv_system_name" in #(vi
8535 cygwin*|mingw32*|uwin*|aix[456]) #(vi
8536 LT_UNDEF=-no-undefined
8540 # special hack to add --tag option for C++ compiler
8541 case $cf_cv_libtool_version in #(vi
8542 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
8543 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
8544 LIBTOOL="$LIBTOOL --tag=CC"
8547 LIBTOOL_CXX="$LIBTOOL"
8555 test -z "$LIBTOOL" && ECHO_LT=
8557 if test "$with_libtool" = "yes" ; then
8561 echo "$as_me:8561: checking for additional libtool options" >&5
8562 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
8564 # Check whether --with-libtool-opts or --without-libtool-opts was given.
8565 if test "${with_libtool_opts+set}" = set; then
8566 withval="$with_libtool_opts"
8567 with_libtool_opts=$withval
8569 with_libtool_opts=no
8571 echo "$as_me:8571: result: $with_libtool_opts" >&5
8572 echo "${ECHO_T}$with_libtool_opts" >&6
8574 case .$with_libtool_opts in
8578 LIBTOOL_OPTS=$with_libtool_opts
8584 echo "$as_me:8584: checking for specific curses-directory" >&5
8585 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
8587 # Check whether --with-curses-dir or --without-curses-dir was given.
8588 if test "${with_curses_dir+set}" = set; then
8589 withval="$with_curses_dir"
8590 cf_cv_curses_dir=$withval
8594 echo "$as_me:8594: result: $cf_cv_curses_dir" >&5
8595 echo "${ECHO_T}$cf_cv_curses_dir" >&6
8597 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8600 if test "x$prefix" != xNONE; then
8601 cf_path_syntax="$prefix"
8603 cf_path_syntax="$ac_default_prefix"
8606 case ".$withval" in #(vi
8607 .\$\(*\)*|.\'*\'*) #(vi
8611 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
8614 eval withval="$withval"
8615 case ".$withval" in #(vi
8617 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8622 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
8625 { { echo "$as_me:8625: error: expected a pathname, not \"$withval\"" >&5
8626 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8627 { (exit 1); exit 1; }; }
8631 if test -d "$cf_cv_curses_dir"
8634 if test -n "$cf_cv_curses_dir/include" ; then
8635 for cf_add_incdir in $cf_cv_curses_dir/include
8637 while test $cf_add_incdir != /usr/include
8639 if test -d $cf_add_incdir
8642 if test -n "$CFLAGS$CPPFLAGS" ; then
8643 # a loop is needed to ensure we can add subdirs of existing dirs
8644 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8645 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8646 cf_have_incdir=yes; break
8651 if test "$cf_have_incdir" = no ; then
8652 if test "$cf_add_incdir" = /usr/local/include ; then
8653 if test "$GCC" = yes
8655 cf_save_CPPFLAGS=$CPPFLAGS
8656 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8657 cat >conftest.$ac_ext <<_ACEOF
8658 #line 8658 "configure"
8659 #include "confdefs.h"
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:8670: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>&5
8673 echo "$as_me:8673: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:8676: \"$ac_try\"") >&5
8679 echo "$as_me:8679: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8683 echo "$as_me: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8687 rm -f conftest.$ac_objext conftest.$ac_ext
8688 CPPFLAGS=$cf_save_CPPFLAGS
8693 if test "$cf_have_incdir" = no ; then
8694 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8696 echo "${as_me:-configure}:8696: testing adding $cf_add_incdir to include-path ..." 1>&5
8698 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8700 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8701 test "$cf_top_incdir" = "$cf_add_incdir" && break
8702 cf_add_incdir="$cf_top_incdir"
8711 if test -n "$cf_cv_curses_dir/lib" ; then
8712 for cf_add_libdir in $cf_cv_curses_dir/lib
8714 if test $cf_add_libdir = /usr/lib ; then
8716 elif test -d $cf_add_libdir
8719 if test -n "$LDFLAGS$LIBS" ; then
8720 # a loop is needed to ensure we can add subdirs of existing dirs
8721 for cf_test_libdir in $LDFLAGS $LIBS ; do
8722 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8723 cf_have_libdir=yes; break
8727 if test "$cf_have_libdir" = no ; then
8728 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8730 echo "${as_me:-configure}:8730: testing adding $cf_add_libdir to library-path ..." 1>&5
8732 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8743 # Check whether --with-ncurses or --without-ncurses was given.
8744 if test "${with_ncurses+set}" = set; then
8745 withval="$with_ncurses"
8749 # Check whether --with-ncursesw or --without-ncursesw was given.
8750 if test "${with_ncursesw+set}" = set; then
8751 withval="$with_ncursesw"
8752 use_ncurses=ncursesw
8754 if test $use_ncurses != no ; then
8756 if test $use_ncurses = ncursesw ; then
8758 echo "$as_me:8758: checking for multibyte character support" >&5
8759 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
8760 if test "${cf_cv_utf8_lib+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 cf_save_LIBS="$LIBS"
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line 8766 "configure"
8767 #include "confdefs.h"
8778 rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (eval echo "$as_me:8779: \"$ac_link\"") >&5
8780 (eval $ac_link) 2>&5
8782 echo "$as_me:8782: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
8784 { ac_try='test -s conftest$ac_exeext'
8785 { (eval echo "$as_me:8785: \"$ac_try\"") >&5
8788 echo "$as_me:8788: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8792 echo "$as_me: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8795 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8796 # will be set on completion of the AC_TRY_LINK below.
8797 cf_cv_header_path_utf8=
8798 cf_cv_library_path_utf8=
8800 echo "${as_me:-configure}:8800: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
8802 cf_save_LIBS="$LIBS"
8804 cat >conftest.$ac_ext <<_ACEOF
8805 #line 8805 "configure"
8806 #include "confdefs.h"
8808 #include <libutf8.h>
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:8818: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>&5
8821 echo "$as_me:8821: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -s conftest$ac_exeext'
8824 { (eval echo "$as_me:8824: \"$ac_try\"") >&5
8827 echo "$as_me:8827: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8830 cf_cv_find_linkage_utf8=yes
8831 cf_cv_header_path_utf8=/usr/include
8832 cf_cv_library_path_utf8=/usr/lib
8835 echo "$as_me: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8838 LIBS="-lutf8 $cf_save_LIBS"
8840 cat >conftest.$ac_ext <<_ACEOF
8841 #line 8841 "configure"
8842 #include "confdefs.h"
8844 #include <libutf8.h>
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (eval echo "$as_me:8854: \"$ac_link\"") >&5
8855 (eval $ac_link) 2>&5
8857 echo "$as_me:8857: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (eval echo "$as_me:8860: \"$ac_try\"") >&5
8863 echo "$as_me:8863: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8866 cf_cv_find_linkage_utf8=yes
8867 cf_cv_header_path_utf8=/usr/include
8868 cf_cv_library_path_utf8=/usr/lib
8869 cf_cv_library_file_utf8="-lutf8"
8872 echo "$as_me: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 cf_cv_find_linkage_utf8=no
8876 LIBS="$cf_save_LIBS"
8878 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
8880 echo "${as_me:-configure}:8880: testing find linkage for utf8 library ..." 1>&5
8882 echo "${as_me:-configure}:8882: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
8884 cf_save_CPPFLAGS="$CPPFLAGS"
8885 cf_test_CPPFLAGS="$CPPFLAGS"
8889 # collect the current set of include-directories from compiler flags
8890 cf_header_path_list=""
8891 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8892 for cf_header_path in $CPPFLAGS $CFLAGS
8894 case $cf_header_path in #(vi
8896 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8898 test "$cf_header_path" != "NONE" && \
8899 test -d "$cf_header_path" && \
8901 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8902 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8903 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
8904 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
8905 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
8906 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
8909 cf_header_path_list="$cf_header_path_list $cf_search"
8915 # add the variations for the package we are looking for
8919 test "/usr" != "$prefix" && \
8921 (test $prefix = NONE || test "/usr" != "$prefix") && {
8922 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8923 test -d /usr/include && cf_search="$cf_search /usr/include"
8924 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
8925 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
8926 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
8927 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
8930 test "$prefix" != "NONE" && \
8931 test -d "$prefix" && \
8933 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8934 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8935 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
8936 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
8937 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
8938 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
8941 test "/usr/local" != "$prefix" && \
8942 test -d "/usr/local" && \
8943 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8944 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8945 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8946 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
8947 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
8948 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
8949 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
8952 test "/opt" != "$prefix" && \
8954 (test $prefix = NONE || test "/opt" != "$prefix") && {
8955 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8956 test -d /opt/include && cf_search="$cf_search /opt/include"
8957 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
8958 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
8959 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
8960 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
8963 test "$HOME" != "$prefix" && \
8964 test -d "$HOME" && \
8965 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8966 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8967 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8968 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
8969 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
8970 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
8971 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
8974 test "$includedir" != NONE && \
8975 test "$includedir" != "/usr/include" && \
8976 test -d "$includedir" && {
8977 test -d $includedir && cf_search="$cf_search $includedir"
8978 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
8981 test "$oldincludedir" != NONE && \
8982 test "$oldincludedir" != "/usr/include" && \
8983 test -d "$oldincludedir" && {
8984 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8985 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
8988 cf_search="$cf_search $cf_header_path_list"
8990 for cf_cv_header_path_utf8 in $cf_search
8992 if test -d $cf_cv_header_path_utf8 ; then
8993 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
8995 echo "${as_me:-configure}:8995: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
8997 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
8998 cat >conftest.$ac_ext <<_ACEOF
8999 #line 8999 "configure"
9000 #include "confdefs.h"
9002 #include <libutf8.h>
9011 rm -f conftest.$ac_objext
9012 if { (eval echo "$as_me:9012: \"$ac_compile\"") >&5
9013 (eval $ac_compile) 2>&5
9015 echo "$as_me:9015: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -s conftest.$ac_objext'
9018 { (eval echo "$as_me:9018: \"$ac_try\"") >&5
9021 echo "$as_me:9021: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9024 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9026 echo "${as_me:-configure}:9026: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9028 cf_cv_find_linkage_utf8=maybe
9029 cf_test_CPPFLAGS="$CPPFLAGS"
9032 echo "$as_me: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 CPPFLAGS="$cf_save_CPPFLAGS"
9038 rm -f conftest.$ac_objext conftest.$ac_ext
9042 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9044 echo "${as_me:-configure}:9044: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9046 cf_save_LIBS="$LIBS"
9047 cf_save_LDFLAGS="$LDFLAGS"
9049 if test "$cf_cv_find_linkage_utf8" != yes ; then
9052 cf_library_path_list=""
9053 if test -n "${LDFLAGS}${LIBS}" ; then
9054 for cf_library_path in $LDFLAGS $LIBS
9056 case $cf_library_path in #(vi
9058 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9060 test "$cf_library_path" != "NONE" && \
9061 test -d "$cf_library_path" && \
9063 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9064 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9065 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
9066 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
9067 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
9068 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
9071 cf_library_path_list="$cf_library_path_list $cf_search"
9079 test "/usr" != "$prefix" && \
9081 (test $prefix = NONE || test "/usr" != "$prefix") && {
9082 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
9083 test -d /usr/lib && cf_search="$cf_search /usr/lib"
9084 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
9085 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
9086 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
9087 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
9090 test "$prefix" != "NONE" && \
9091 test -d "$prefix" && \
9093 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9094 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9095 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
9096 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
9097 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
9098 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
9101 test "/usr/local" != "$prefix" && \
9102 test -d "/usr/local" && \
9103 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
9104 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
9105 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
9106 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
9107 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
9108 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
9109 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
9112 test "/opt" != "$prefix" && \
9114 (test $prefix = NONE || test "/opt" != "$prefix") && {
9115 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
9116 test -d /opt/lib && cf_search="$cf_search /opt/lib"
9117 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
9118 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
9119 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
9120 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
9123 test "$HOME" != "$prefix" && \
9124 test -d "$HOME" && \
9125 (test $prefix = NONE || test "$HOME" != "$prefix") && {
9126 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
9127 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
9128 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
9129 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
9130 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
9131 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
9134 cf_search="$cf_library_path_list $cf_search"
9136 for cf_cv_library_path_utf8 in $cf_search
9138 if test -d $cf_cv_library_path_utf8 ; then
9139 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
9141 echo "${as_me:-configure}:9141: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
9143 CPPFLAGS="$cf_test_CPPFLAGS"
9144 LIBS="-lutf8 $cf_save_LIBS"
9145 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
9146 cat >conftest.$ac_ext <<_ACEOF
9147 #line 9147 "configure"
9148 #include "confdefs.h"
9150 #include <libutf8.h>
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (eval echo "$as_me:9160: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:9166: \"$ac_try\"") >&5
9169 echo "$as_me:9169: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9172 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
9174 echo "${as_me:-configure}:9174: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
9176 cf_cv_find_linkage_utf8=yes
9177 cf_cv_library_file_utf8="-lutf8"
9180 echo "$as_me: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9183 CPPFLAGS="$cf_save_CPPFLAGS"
9184 LIBS="$cf_save_LIBS"
9185 LDFLAGS="$cf_save_LDFLAGS"
9188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9191 CPPFLAGS="$cf_save_CPPFLAGS"
9192 LDFLAGS="$cf_save_LDFLAGS"
9196 cf_cv_find_linkage_utf8=no
9200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9205 LIBS="$cf_save_LIBS"
9207 if test "$cf_cv_find_linkage_utf8" = yes ; then
9208 cf_cv_utf8_lib=add-on
9214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9216 echo "$as_me:9216: result: $cf_cv_utf8_lib" >&5
9217 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
9219 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
9221 if test "$cf_cv_utf8_lib" = "add-on" ; then
9222 cat >>confdefs.h <<\EOF
9223 #define HAVE_LIBUTF8_H 1
9226 if test -n "$cf_cv_header_path_utf8" ; then
9227 for cf_add_incdir in $cf_cv_header_path_utf8
9229 while test $cf_add_incdir != /usr/include
9231 if test -d $cf_add_incdir
9234 if test -n "$CFLAGS$CPPFLAGS" ; then
9235 # a loop is needed to ensure we can add subdirs of existing dirs
9236 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9237 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9238 cf_have_incdir=yes; break
9243 if test "$cf_have_incdir" = no ; then
9244 if test "$cf_add_incdir" = /usr/local/include ; then
9245 if test "$GCC" = yes
9247 cf_save_CPPFLAGS=$CPPFLAGS
9248 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9249 cat >conftest.$ac_ext <<_ACEOF
9250 #line 9250 "configure"
9251 #include "confdefs.h"
9261 rm -f conftest.$ac_objext
9262 if { (eval echo "$as_me:9262: \"$ac_compile\"") >&5
9263 (eval $ac_compile) 2>&5
9265 echo "$as_me:9265: \$? = $ac_status" >&5
9266 (exit $ac_status); } &&
9267 { ac_try='test -s conftest.$ac_objext'
9268 { (eval echo "$as_me:9268: \"$ac_try\"") >&5
9271 echo "$as_me:9271: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9275 echo "$as_me: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9279 rm -f conftest.$ac_objext conftest.$ac_ext
9280 CPPFLAGS=$cf_save_CPPFLAGS
9285 if test "$cf_have_incdir" = no ; then
9286 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9288 echo "${as_me:-configure}:9288: testing adding $cf_add_incdir to include-path ..." 1>&5
9290 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9292 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9293 test "$cf_top_incdir" = "$cf_add_incdir" && break
9294 cf_add_incdir="$cf_top_incdir"
9303 if test -n "$cf_cv_library_path_utf8" ; then
9304 for cf_add_libdir in $cf_cv_library_path_utf8
9306 if test $cf_add_libdir = /usr/lib ; then
9308 elif test -d $cf_add_libdir
9311 if test -n "$LDFLAGS$LIBS" ; then
9312 # a loop is needed to ensure we can add subdirs of existing dirs
9313 for cf_test_libdir in $LDFLAGS $LIBS ; do
9314 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9315 cf_have_libdir=yes; break
9319 if test "$cf_have_libdir" = no ; then
9320 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9322 echo "${as_me:-configure}:9322: testing adding $cf_add_libdir to library-path ..." 1>&5
9324 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
9330 LIBS="$cf_cv_library_file_utf8 $LIBS"
9335 cf_ncuconfig_root=$use_ncurses
9337 echo "Looking for ${cf_ncuconfig_root}-config"
9338 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
9340 # Extract the first word of "$ac_prog", so it can be a program name with args.
9341 set dummy $ac_prog; ac_word=$2
9342 echo "$as_me:9342: checking for $ac_word" >&5
9343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9344 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 case $NCURSES_CONFIG in
9349 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
9352 ac_save_IFS=$IFS; IFS=$ac_path_separator
9354 for ac_dir in $ac_dummy; do
9356 test -z "$ac_dir" && ac_dir=.
9357 if $as_executable_p "$ac_dir/$ac_word"; then
9358 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
9359 echo "$as_me:9359: found $ac_dir/$ac_word" >&5
9367 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
9369 if test -n "$NCURSES_CONFIG"; then
9370 echo "$as_me:9370: result: $NCURSES_CONFIG" >&5
9371 echo "${ECHO_T}$NCURSES_CONFIG" >&6
9373 echo "$as_me:9373: result: no" >&5
9374 echo "${ECHO_T}no" >&6
9377 test -n "$NCURSES_CONFIG" && break
9379 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
9381 if test "$NCURSES_CONFIG" != none ; then
9383 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
9384 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
9386 # even with config script, some packages use no-override for curses.h
9388 echo "$as_me:9388: checking if we have identified curses headers" >&5
9389 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
9390 if test "${cf_cv_ncurses_header+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 cf_cv_ncurses_header=none
9396 $use_ncurses/ncurses.h \
9397 $use_ncurses/curses.h \
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line 9402 "configure"
9403 #include "confdefs.h"
9404 #include <${cf_header}>
9408 initscr(); tgoto("?", 0,0)
9413 rm -f conftest.$ac_objext
9414 if { (eval echo "$as_me:9414: \"$ac_compile\"") >&5
9415 (eval $ac_compile) 2>&5
9417 echo "$as_me:9417: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -s conftest.$ac_objext'
9420 { (eval echo "$as_me:9420: \"$ac_try\"") >&5
9423 echo "$as_me:9423: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 cf_cv_ncurses_header=$cf_header; break
9427 echo "$as_me: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9430 rm -f conftest.$ac_objext conftest.$ac_ext
9434 echo "$as_me:9434: result: $cf_cv_ncurses_header" >&5
9435 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
9437 if test "$cf_cv_ncurses_header" = none ; then
9438 { { echo "$as_me:9438: error: No curses header-files found" >&5
9439 echo "$as_me: error: No curses header-files found" >&2;}
9440 { (exit 1); exit 1; }; }
9443 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
9445 for ac_header in $cf_cv_ncurses_header
9447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9448 echo "$as_me:9448: checking for $ac_header" >&5
9449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 cat >conftest.$ac_ext <<_ACEOF
9454 #line 9454 "configure"
9455 #include "confdefs.h"
9456 #include <$ac_header>
9458 if { (eval echo "$as_me:9458: \"$ac_cpp conftest.$ac_ext\"") >&5
9459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9461 egrep -v '^ *\+' conftest.er1 >conftest.err
9463 cat conftest.err >&5
9464 echo "$as_me:9464: \$? = $ac_status" >&5
9465 (exit $ac_status); } >/dev/null; then
9466 if test -s conftest.err; then
9467 ac_cpp_err=$ac_c_preproc_warn_flag
9474 if test -z "$ac_cpp_err"; then
9475 eval "$as_ac_Header=yes"
9477 echo "$as_me: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 eval "$as_ac_Header=no"
9481 rm -f conftest.err conftest.$ac_ext
9483 echo "$as_me:9483: result: `eval echo '${'$as_ac_Header'}'`" >&5
9484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9486 cat >>confdefs.h <<EOF
9487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9493 cat >>confdefs.h <<\EOF
9497 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9499 cat >>confdefs.h <<EOF
9500 #define $cf_nculib_ROOT 1
9503 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
9507 cf_ncuhdr_root=$use_ncurses
9509 test -n "$cf_cv_curses_dir" && \
9510 test "$cf_cv_curses_dir" != "no" && { \
9512 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
9513 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
9515 while test $cf_add_incdir != /usr/include
9517 if test -d $cf_add_incdir
9520 if test -n "$CFLAGS$CPPFLAGS" ; then
9521 # a loop is needed to ensure we can add subdirs of existing dirs
9522 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9523 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9524 cf_have_incdir=yes; break
9529 if test "$cf_have_incdir" = no ; then
9530 if test "$cf_add_incdir" = /usr/local/include ; then
9531 if test "$GCC" = yes
9533 cf_save_CPPFLAGS=$CPPFLAGS
9534 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9535 cat >conftest.$ac_ext <<_ACEOF
9536 #line 9536 "configure"
9537 #include "confdefs.h"
9547 rm -f conftest.$ac_objext
9548 if { (eval echo "$as_me:9548: \"$ac_compile\"") >&5
9549 (eval $ac_compile) 2>&5
9551 echo "$as_me:9551: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
9553 { ac_try='test -s conftest.$ac_objext'
9554 { (eval echo "$as_me:9554: \"$ac_try\"") >&5
9557 echo "$as_me:9557: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9561 echo "$as_me: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9565 rm -f conftest.$ac_objext conftest.$ac_ext
9566 CPPFLAGS=$cf_save_CPPFLAGS
9571 if test "$cf_have_incdir" = no ; then
9572 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9574 echo "${as_me:-configure}:9574: testing adding $cf_add_incdir to include-path ..." 1>&5
9576 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9578 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9579 test "$cf_top_incdir" = "$cf_add_incdir" && break
9580 cf_add_incdir="$cf_top_incdir"
9591 echo "$as_me:9591: checking for $cf_ncuhdr_root header in include-path" >&5
9592 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
9593 if test "${cf_cv_ncurses_h+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
9598 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
9599 for cf_header in $cf_header_list
9602 cat >conftest.$ac_ext <<_ACEOF
9603 #line 9603 "configure"
9604 #include "confdefs.h"
9606 #include <$cf_header>
9611 #ifdef NCURSES_VERSION
9613 printf("%s\n", NCURSES_VERSION);
9626 rm -f conftest.$ac_objext
9627 if { (eval echo "$as_me:9627: \"$ac_compile\"") >&5
9628 (eval $ac_compile) 2>&5
9630 echo "$as_me:9630: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -s conftest.$ac_objext'
9633 { (eval echo "$as_me:9633: \"$ac_try\"") >&5
9636 echo "$as_me:9636: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 cf_cv_ncurses_h=$cf_header
9641 echo "$as_me: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9645 rm -f conftest.$ac_objext conftest.$ac_ext
9647 test "$cf_cv_ncurses_h" != no && break
9651 echo "$as_me:9651: result: $cf_cv_ncurses_h" >&5
9652 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
9654 if test "$cf_cv_ncurses_h" != no ; then
9655 cf_cv_ncurses_header=$cf_cv_ncurses_h
9658 echo "$as_me:9658: checking for $cf_ncuhdr_root include-path" >&5
9659 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
9660 if test "${cf_cv_ncurses_h2+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 test -n "$verbose" && echo
9668 # collect the current set of include-directories from compiler flags
9669 cf_header_path_list=""
9670 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9671 for cf_header_path in $CPPFLAGS $CFLAGS
9673 case $cf_header_path in #(vi
9675 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9677 test "$cf_header_path" != "NONE" && \
9678 test -d "$cf_header_path" && \
9680 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9681 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9682 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
9683 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
9684 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
9685 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9688 cf_header_path_list="$cf_header_path_list $cf_search"
9694 # add the variations for the package we are looking for
9698 test "/usr" != "$prefix" && \
9700 (test $prefix = NONE || test "/usr" != "$prefix") && {
9701 test -n "$verbose" && echo " ... testing for include-directories under /usr"
9702 test -d /usr/include && cf_search="$cf_search /usr/include"
9703 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
9704 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
9705 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
9706 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9709 test "$prefix" != "NONE" && \
9710 test -d "$prefix" && \
9712 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9713 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9714 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
9715 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
9716 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
9717 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9720 test "/usr/local" != "$prefix" && \
9721 test -d "/usr/local" && \
9722 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
9723 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
9724 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
9725 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
9726 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
9727 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
9728 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9731 test "/opt" != "$prefix" && \
9733 (test $prefix = NONE || test "/opt" != "$prefix") && {
9734 test -n "$verbose" && echo " ... testing for include-directories under /opt"
9735 test -d /opt/include && cf_search="$cf_search /opt/include"
9736 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
9737 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
9738 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
9739 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9742 test "$HOME" != "$prefix" && \
9743 test -d "$HOME" && \
9744 (test $prefix = NONE || test "$HOME" != "$prefix") && {
9745 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
9746 test -d $HOME/include && cf_search="$cf_search $HOME/include"
9747 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
9748 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
9749 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
9750 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9753 test "$includedir" != NONE && \
9754 test "$includedir" != "/usr/include" && \
9755 test -d "$includedir" && {
9756 test -d $includedir && cf_search="$cf_search $includedir"
9757 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
9760 test "$oldincludedir" != NONE && \
9761 test "$oldincludedir" != "/usr/include" && \
9762 test -d "$oldincludedir" && {
9763 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9764 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
9767 cf_search="$cf_search $cf_header_path_list"
9769 test -n "$verbose" && echo search path $cf_search
9770 cf_save2_CPPFLAGS="$CPPFLAGS"
9771 for cf_incdir in $cf_search
9774 if test -n "$cf_incdir" ; then
9775 for cf_add_incdir in $cf_incdir
9777 while test $cf_add_incdir != /usr/include
9779 if test -d $cf_add_incdir
9782 if test -n "$CFLAGS$CPPFLAGS" ; then
9783 # a loop is needed to ensure we can add subdirs of existing dirs
9784 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9785 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9786 cf_have_incdir=yes; break
9791 if test "$cf_have_incdir" = no ; then
9792 if test "$cf_add_incdir" = /usr/local/include ; then
9793 if test "$GCC" = yes
9795 cf_save_CPPFLAGS=$CPPFLAGS
9796 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9797 cat >conftest.$ac_ext <<_ACEOF
9798 #line 9798 "configure"
9799 #include "confdefs.h"
9809 rm -f conftest.$ac_objext
9810 if { (eval echo "$as_me:9810: \"$ac_compile\"") >&5
9811 (eval $ac_compile) 2>&5
9813 echo "$as_me:9813: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -s conftest.$ac_objext'
9816 { (eval echo "$as_me:9816: \"$ac_try\"") >&5
9819 echo "$as_me:9819: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9823 echo "$as_me: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9827 rm -f conftest.$ac_objext conftest.$ac_ext
9828 CPPFLAGS=$cf_save_CPPFLAGS
9833 if test "$cf_have_incdir" = no ; then
9834 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9836 echo "${as_me:-configure}:9836: testing adding $cf_add_incdir to include-path ..." 1>&5
9838 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9840 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9841 test "$cf_top_incdir" = "$cf_add_incdir" && break
9842 cf_add_incdir="$cf_top_incdir"
9856 cat >conftest.$ac_ext <<_ACEOF
9857 #line 9857 "configure"
9858 #include "confdefs.h"
9860 #include <$cf_header>
9865 #ifdef NCURSES_VERSION
9867 printf("%s\n", NCURSES_VERSION);
9880 rm -f conftest.$ac_objext
9881 if { (eval echo "$as_me:9881: \"$ac_compile\"") >&5
9882 (eval $ac_compile) 2>&5
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -s conftest.$ac_objext'
9887 { (eval echo "$as_me:9887: \"$ac_try\"") >&5
9890 echo "$as_me:9890: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 cf_cv_ncurses_h2=$cf_header
9895 echo "$as_me: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9899 rm -f conftest.$ac_objext conftest.$ac_ext
9901 if test "$cf_cv_ncurses_h2" != no ; then
9902 cf_cv_ncurses_h2=$cf_incdir/$cf_header
9903 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
9906 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
9908 CPPFLAGS="$cf_save2_CPPFLAGS"
9909 test "$cf_cv_ncurses_h2" != no && break
9911 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9911: error: not found" >&5
9912 echo "$as_me: error: not found" >&2;}
9913 { (exit 1); exit 1; }; }
9916 echo "$as_me:9916: result: $cf_cv_ncurses_h2" >&5
9917 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
9919 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
9920 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
9921 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
9922 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
9925 if test -n "$cf_1st_incdir" ; then
9926 for cf_add_incdir in $cf_1st_incdir
9928 while test $cf_add_incdir != /usr/include
9930 if test -d $cf_add_incdir
9933 if test -n "$CFLAGS$CPPFLAGS" ; then
9934 # a loop is needed to ensure we can add subdirs of existing dirs
9935 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9936 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9937 cf_have_incdir=yes; break
9942 if test "$cf_have_incdir" = no ; then
9943 if test "$cf_add_incdir" = /usr/local/include ; then
9944 if test "$GCC" = yes
9946 cf_save_CPPFLAGS=$CPPFLAGS
9947 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9948 cat >conftest.$ac_ext <<_ACEOF
9949 #line 9949 "configure"
9950 #include "confdefs.h"
9960 rm -f conftest.$ac_objext
9961 if { (eval echo "$as_me:9961: \"$ac_compile\"") >&5
9962 (eval $ac_compile) 2>&5
9964 echo "$as_me:9964: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -s conftest.$ac_objext'
9967 { (eval echo "$as_me:9967: \"$ac_try\"") >&5
9970 echo "$as_me:9970: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9974 echo "$as_me: failed program was:" >&5
9975 cat conftest.$ac_ext >&5
9978 rm -f conftest.$ac_objext conftest.$ac_ext
9979 CPPFLAGS=$cf_save_CPPFLAGS
9984 if test "$cf_have_incdir" = no ; then
9985 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9987 echo "${as_me:-configure}:9987: testing adding $cf_add_incdir to include-path ..." 1>&5
9989 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9991 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9992 test "$cf_top_incdir" = "$cf_add_incdir" && break
9993 cf_add_incdir="$cf_top_incdir"
10004 # Set definitions to allow ifdef'ing for ncurses.h
10006 case $cf_cv_ncurses_header in # (vi
10008 cat >>confdefs.h <<\EOF
10009 #define HAVE_NCURSES_H 1
10015 case $cf_cv_ncurses_header in # (vi
10016 ncurses/curses.h|ncurses/ncurses.h)
10017 cat >>confdefs.h <<\EOF
10018 #define HAVE_NCURSES_NCURSES_H 1
10022 ncursesw/curses.h|ncursesw/ncurses.h)
10023 cat >>confdefs.h <<\EOF
10024 #define HAVE_NCURSESW_NCURSES_H 1
10030 echo "$as_me:10030: checking for terminfo header" >&5
10031 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
10032 if test "${cf_cv_term_header+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 case ${cf_cv_ncurses_header} in #(vi
10037 */ncurses.h|*/ncursesw.h) #(vi
10038 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
10041 cf_term_header=term.h
10045 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
10047 cat >conftest.$ac_ext <<_ACEOF
10048 #line 10048 "configure"
10049 #include "confdefs.h"
10051 #include <${cf_cv_ncurses_header:-curses.h}>
10052 #include <$cf_test>
10057 int x = auto_left_margin
10062 rm -f conftest.$ac_objext
10063 if { (eval echo "$as_me:10063: \"$ac_compile\"") >&5
10064 (eval $ac_compile) 2>&5
10066 echo "$as_me:10066: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -s conftest.$ac_objext'
10069 { (eval echo "$as_me:10069: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:10072: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10075 cf_cv_term_header="$cf_test"
10077 echo "$as_me: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 cf_cv_term_header=unknown
10083 rm -f conftest.$ac_objext conftest.$ac_ext
10084 test "$cf_cv_term_header" != unknown && break
10088 echo "$as_me:10088: result: $cf_cv_term_header" >&5
10089 echo "${ECHO_T}$cf_cv_term_header" >&6
10091 # Set definitions to allow ifdef'ing to accommodate subdirectories
10093 case $cf_cv_term_header in # (vi
10095 cat >>confdefs.h <<\EOF
10096 #define HAVE_TERM_H 1
10102 case $cf_cv_term_header in # (vi
10103 ncurses/term.h) #(vi
10104 cat >>confdefs.h <<\EOF
10105 #define HAVE_NCURSES_TERM_H 1
10110 cat >>confdefs.h <<\EOF
10111 #define HAVE_NCURSESW_TERM_H 1
10117 # some applications need this, but should check for NCURSES_VERSION
10118 cat >>confdefs.h <<\EOF
10122 echo "$as_me:10122: checking for ncurses version" >&5
10123 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
10124 if test "${cf_cv_ncurses_version+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 cf_cv_ncurses_version=no
10131 if test "$cross_compiling" = yes; then
10133 # This will not work if the preprocessor splits the line after the
10134 # Autoconf token. The 'unproto' program does that.
10135 cat > conftest.$ac_ext <<EOF
10136 #include <${cf_cv_ncurses_header:-curses.h}>
10138 #ifdef NCURSES_VERSION
10139 Autoconf NCURSES_VERSION
10147 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
10148 { (eval echo "$as_me:10148: \"$cf_try\"") >&5
10149 (eval $cf_try) 2>&5
10151 echo "$as_me:10151: \$? = $ac_status" >&5
10152 (exit $ac_status); }
10153 if test -f conftest.out ; then
10154 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
10155 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
10160 cat >conftest.$ac_ext <<_ACEOF
10161 #line 10161 "configure"
10162 #include "confdefs.h"
10164 #include <${cf_cv_ncurses_header:-curses.h}>
10168 FILE *fp = fopen("$cf_tempfile", "w");
10169 #ifdef NCURSES_VERSION
10170 # ifdef NCURSES_VERSION_PATCH
10171 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
10173 fprintf(fp, "%s\n", NCURSES_VERSION);
10176 # ifdef __NCURSES_H
10177 fprintf(fp, "old\n");
10182 ${cf_cv_main_return:-return}(0);
10185 rm -f conftest$ac_exeext
10186 if { (eval echo "$as_me:10186: \"$ac_link\"") >&5
10187 (eval $ac_link) 2>&5
10189 echo "$as_me:10189: \$? = $ac_status" >&5
10190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10191 { (eval echo "$as_me:10191: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:10194: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10197 cf_cv_ncurses_version=`cat $cf_tempfile`
10199 echo "$as_me: program exited with status $ac_status" >&5
10200 echo "$as_me: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10203 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10208 echo "$as_me:10208: result: $cf_cv_ncurses_version" >&5
10209 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
10210 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
10214 cf_nculib_root=$use_ncurses
10215 # This works, except for the special case where we find gpm, but
10216 # ncurses is in a nonstandard location via $LIBS, and we really want
10219 cf_ncurses_SAVE="$LIBS"
10220 echo "$as_me:10220: checking for Gpm_Open in -lgpm" >&5
10221 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
10222 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 ac_check_lib_save_LIBS=$LIBS
10227 cat >conftest.$ac_ext <<_ACEOF
10228 #line 10228 "configure"
10229 #include "confdefs.h"
10231 /* Override any gcc2 internal prototype to avoid an error. */
10235 /* We use char because int might match the return type of a gcc2
10236 builtin and then its argument prototype would still apply. */
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (eval echo "$as_me:10247: \"$ac_link\"") >&5
10248 (eval $ac_link) 2>&5
10250 echo "$as_me:10250: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try='test -s conftest$ac_exeext'
10253 { (eval echo "$as_me:10253: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10256 echo "$as_me:10256: \$? = $ac_status" >&5
10257 (exit $ac_status); }; }; then
10258 ac_cv_lib_gpm_Gpm_Open=yes
10260 echo "$as_me: failed program was:" >&5
10261 cat conftest.$ac_ext >&5
10262 ac_cv_lib_gpm_Gpm_Open=no
10264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10267 echo "$as_me:10267: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10268 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
10269 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
10270 echo "$as_me:10270: checking for initscr in -lgpm" >&5
10271 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
10272 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 ac_check_lib_save_LIBS=$LIBS
10277 cat >conftest.$ac_ext <<_ACEOF
10278 #line 10278 "configure"
10279 #include "confdefs.h"
10281 /* Override any gcc2 internal prototype to avoid an error. */
10285 /* We use char because int might match the return type of a gcc2
10286 builtin and then its argument prototype would still apply. */
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:10297: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>&5
10300 echo "$as_me:10300: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:10303: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:10306: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 ac_cv_lib_gpm_initscr=yes
10310 echo "$as_me: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10312 ac_cv_lib_gpm_initscr=no
10314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 echo "$as_me:10317: result: $ac_cv_lib_gpm_initscr" >&5
10318 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
10319 if test $ac_cv_lib_gpm_initscr = yes; then
10320 LIBS="$cf_ncurses_SAVE"
10322 cf_ncurses_LIBS="-lgpm"
10327 case $host_os in #(vi
10329 # This is only necessary if you are linking against an obsolete
10330 # version of ncurses (but it should do no harm, since it's static).
10331 if test "$cf_nculib_root" = ncurses ; then
10332 echo "$as_me:10332: checking for tgoto in -lmytinfo" >&5
10333 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
10334 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 ac_check_lib_save_LIBS=$LIBS
10338 LIBS="-lmytinfo $LIBS"
10339 cat >conftest.$ac_ext <<_ACEOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10343 /* Override any gcc2 internal prototype to avoid an error. */
10347 /* We use char because int might match the return type of a gcc2
10348 builtin and then its argument prototype would still apply. */
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (eval echo "$as_me:10359: \"$ac_link\"") >&5
10360 (eval $ac_link) 2>&5
10362 echo "$as_me:10362: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -s conftest$ac_exeext'
10365 { (eval echo "$as_me:10365: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10368 echo "$as_me:10368: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_cv_lib_mytinfo_tgoto=yes
10372 echo "$as_me: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10374 ac_cv_lib_mytinfo_tgoto=no
10376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10377 LIBS=$ac_check_lib_save_LIBS
10379 echo "$as_me:10379: result: $ac_cv_lib_mytinfo_tgoto" >&5
10380 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
10381 if test $ac_cv_lib_mytinfo_tgoto = yes; then
10382 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
10389 LIBS="$cf_ncurses_LIBS $LIBS"
10391 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
10393 LIBS="-l$cf_nculib_root $LIBS"
10396 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
10398 echo "$as_me:10398: checking for initscr" >&5
10399 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
10400 if test "${ac_cv_func_initscr+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 cat >conftest.$ac_ext <<_ACEOF
10404 #line 10404 "configure"
10405 #include "confdefs.h"
10406 /* System header to define __stub macros and hopefully few prototypes,
10407 which can conflict with char initscr (); below. */
10408 #include <assert.h>
10409 /* Override any gcc2 internal prototype to avoid an error. */
10413 /* We use char because int might match the return type of a gcc2
10414 builtin and then its argument prototype would still apply. */
10421 /* The GNU C library defines this for functions which it implements
10422 to always fail with ENOSYS. Some functions are actually named
10423 something starting with __ and the normal name is an alias. */
10424 #if defined (__stub_initscr) || defined (__stub___initscr)
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (eval echo "$as_me:10435: \"$ac_link\"") >&5
10436 (eval $ac_link) 2>&5
10438 echo "$as_me:10438: \$? = $ac_status" >&5
10439 (exit $ac_status); } &&
10440 { ac_try='test -s conftest$ac_exeext'
10441 { (eval echo "$as_me:10441: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5
10444 echo "$as_me:10444: \$? = $ac_status" >&5
10445 (exit $ac_status); }; }; then
10446 ac_cv_func_initscr=yes
10448 echo "$as_me: failed program was:" >&5
10449 cat conftest.$ac_ext >&5
10450 ac_cv_func_initscr=no
10452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10454 echo "$as_me:10454: result: $ac_cv_func_initscr" >&5
10455 echo "${ECHO_T}$ac_cv_func_initscr" >&6
10456 if test $ac_cv_func_initscr = yes; then
10457 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
10460 cf_save_LIBS="$LIBS"
10461 echo "$as_me:10461: checking for initscr in -l$cf_nculib_root" >&5
10462 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
10463 LIBS="-l$cf_nculib_root $LIBS"
10464 cat >conftest.$ac_ext <<_ACEOF
10465 #line 10465 "configure"
10466 #include "confdefs.h"
10467 #include <${cf_cv_ncurses_header:-curses.h}>
10476 rm -f conftest.$ac_objext conftest$ac_exeext
10477 if { (eval echo "$as_me:10477: \"$ac_link\"") >&5
10478 (eval $ac_link) 2>&5
10480 echo "$as_me:10480: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -s conftest$ac_exeext'
10483 { (eval echo "$as_me:10483: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:10486: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 echo "$as_me:10488: result: yes" >&5
10489 echo "${ECHO_T}yes" >&6
10490 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
10493 echo "$as_me: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495 echo "$as_me:10495: result: no" >&5
10496 echo "${ECHO_T}no" >&6
10499 cf_library_path_list=""
10500 if test -n "${LDFLAGS}${LIBS}" ; then
10501 for cf_library_path in $LDFLAGS $LIBS
10503 case $cf_library_path in #(vi
10505 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
10507 test "$cf_library_path" != "NONE" && \
10508 test -d "$cf_library_path" && \
10510 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10511 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
10512 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
10513 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
10514 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
10515 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
10518 cf_library_path_list="$cf_library_path_list $cf_search"
10526 test "/usr" != "$prefix" && \
10527 test -d "/usr" && \
10528 (test $prefix = NONE || test "/usr" != "$prefix") && {
10529 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
10530 test -d /usr/lib && cf_search="$cf_search /usr/lib"
10531 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
10532 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
10533 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
10534 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
10537 test "$prefix" != "NONE" && \
10538 test -d "$prefix" && \
10540 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10541 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
10542 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
10543 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
10544 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
10545 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
10548 test "/usr/local" != "$prefix" && \
10549 test -d "/usr/local" && \
10550 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
10551 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
10552 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
10553 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
10554 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
10555 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
10556 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
10559 test "/opt" != "$prefix" && \
10560 test -d "/opt" && \
10561 (test $prefix = NONE || test "/opt" != "$prefix") && {
10562 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
10563 test -d /opt/lib && cf_search="$cf_search /opt/lib"
10564 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
10565 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
10566 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
10567 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
10570 test "$HOME" != "$prefix" && \
10571 test -d "$HOME" && \
10572 (test $prefix = NONE || test "$HOME" != "$prefix") && {
10573 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
10574 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
10575 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
10576 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
10577 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
10578 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
10581 cf_search="$cf_library_path_list $cf_search"
10583 for cf_libdir in $cf_search
10585 echo "$as_me:10585: checking for -l$cf_nculib_root in $cf_libdir" >&5
10586 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
10587 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
10588 cat >conftest.$ac_ext <<_ACEOF
10589 #line 10589 "configure"
10590 #include "confdefs.h"
10591 #include <${cf_cv_ncurses_header:-curses.h}>
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (eval echo "$as_me:10601: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>&5
10604 echo "$as_me:10604: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -s conftest$ac_exeext'
10607 { (eval echo "$as_me:10607: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10610 echo "$as_me:10610: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 echo "$as_me:10612: result: yes" >&5
10613 echo "${ECHO_T}yes" >&6
10614 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
10617 echo "$as_me: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10619 echo "$as_me:10619: result: no" >&5
10620 echo "${ECHO_T}no" >&6
10621 LIBS="$cf_save_LIBS"
10623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10631 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
10633 if test $cf_found_library = no ; then
10634 { { echo "$as_me:10634: error: Cannot link $cf_nculib_root library" >&5
10635 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
10636 { (exit 1); exit 1; }; }
10641 if test -n "$cf_ncurses_LIBS" ; then
10642 echo "$as_me:10642: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
10643 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
10644 cf_ncurses_SAVE="$LIBS"
10645 for p in $cf_ncurses_LIBS ; do
10646 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
10647 if test "$q" != "$LIBS" ; then
10651 cat >conftest.$ac_ext <<_ACEOF
10652 #line 10652 "configure"
10653 #include "confdefs.h"
10654 #include <${cf_cv_ncurses_header:-curses.h}>
10658 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (eval echo "$as_me:10664: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10667 echo "$as_me:10667: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:10670: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:10673: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 echo "$as_me:10675: result: yes" >&5
10676 echo "${ECHO_T}yes" >&6
10678 echo "$as_me: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10680 echo "$as_me:10680: result: no" >&5
10681 echo "${ECHO_T}no" >&6
10682 LIBS="$cf_ncurses_SAVE"
10684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10687 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10689 cat >>confdefs.h <<EOF
10690 #define $cf_nculib_ROOT 1
10698 echo "$as_me:10698: checking for extra include directories" >&5
10699 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
10700 if test "${cf_cv_curses_incdir+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 cf_cv_curses_incdir=no
10705 case $host_os in #(vi
10707 if test "x$cf_cv_screen" = "xcurses_colr"
10709 test -d /usr/include/curses_colr && \
10710 cf_cv_curses_incdir="-I/usr/include/curses_colr"
10714 if test "x$cf_cv_screen" = "xcurses_5lib"
10716 test -d /usr/5lib && \
10717 test -d /usr/5include && \
10718 cf_cv_curses_incdir="-I/usr/5include"
10724 echo "$as_me:10724: result: $cf_cv_curses_incdir" >&5
10725 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
10726 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
10728 echo "$as_me:10728: checking if we have identified curses headers" >&5
10729 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
10730 if test "${cf_cv_ncurses_header+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cf_cv_ncurses_header=none
10737 curses.h ncurses/ncurses.h ncurses/curses.h
10739 cat >conftest.$ac_ext <<_ACEOF
10740 #line 10740 "configure"
10741 #include "confdefs.h"
10742 #include <${cf_header}>
10746 initscr(); tgoto("?", 0,0)
10751 rm -f conftest.$ac_objext
10752 if { (eval echo "$as_me:10752: \"$ac_compile\"") >&5
10753 (eval $ac_compile) 2>&5
10755 echo "$as_me:10755: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -s conftest.$ac_objext'
10758 { (eval echo "$as_me:10758: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10761 echo "$as_me:10761: \$? = $ac_status" >&5
10762 (exit $ac_status); }; }; then
10763 cf_cv_ncurses_header=$cf_header; break
10765 echo "$as_me: failed program was:" >&5
10766 cat conftest.$ac_ext >&5
10768 rm -f conftest.$ac_objext conftest.$ac_ext
10772 echo "$as_me:10772: result: $cf_cv_ncurses_header" >&5
10773 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
10775 if test "$cf_cv_ncurses_header" = none ; then
10776 { { echo "$as_me:10776: error: No curses header-files found" >&5
10777 echo "$as_me: error: No curses header-files found" >&2;}
10778 { (exit 1); exit 1; }; }
10781 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
10783 for ac_header in $cf_cv_ncurses_header
10785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10786 echo "$as_me:10786: checking for $ac_header" >&5
10787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 cat >conftest.$ac_ext <<_ACEOF
10792 #line 10792 "configure"
10793 #include "confdefs.h"
10794 #include <$ac_header>
10796 if { (eval echo "$as_me:10796: \"$ac_cpp conftest.$ac_ext\"") >&5
10797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10799 egrep -v '^ *\+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:10802: \$? = $ac_status" >&5
10803 (exit $ac_status); } >/dev/null; then
10804 if test -s conftest.err; then
10805 ac_cpp_err=$ac_c_preproc_warn_flag
10812 if test -z "$ac_cpp_err"; then
10813 eval "$as_ac_Header=yes"
10815 echo "$as_me: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 eval "$as_ac_Header=no"
10819 rm -f conftest.err conftest.$ac_ext
10821 echo "$as_me:10821: result: `eval echo '${'$as_ac_Header'}'`" >&5
10822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10824 cat >>confdefs.h <<EOF
10825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10831 echo "$as_me:10831: checking for terminfo header" >&5
10832 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
10833 if test "${cf_cv_term_header+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 case ${cf_cv_ncurses_header} in #(vi
10838 */ncurses.h|*/ncursesw.h) #(vi
10839 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
10842 cf_term_header=term.h
10846 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
10848 cat >conftest.$ac_ext <<_ACEOF
10849 #line 10849 "configure"
10850 #include "confdefs.h"
10852 #include <${cf_cv_ncurses_header:-curses.h}>
10853 #include <$cf_test>
10858 int x = auto_left_margin
10863 rm -f conftest.$ac_objext
10864 if { (eval echo "$as_me:10864: \"$ac_compile\"") >&5
10865 (eval $ac_compile) 2>&5
10867 echo "$as_me:10867: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -s conftest.$ac_objext'
10870 { (eval echo "$as_me:10870: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10873 echo "$as_me:10873: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10876 cf_cv_term_header="$cf_test"
10878 echo "$as_me: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10881 cf_cv_term_header=unknown
10884 rm -f conftest.$ac_objext conftest.$ac_ext
10885 test "$cf_cv_term_header" != unknown && break
10889 echo "$as_me:10889: result: $cf_cv_term_header" >&5
10890 echo "${ECHO_T}$cf_cv_term_header" >&6
10892 # Set definitions to allow ifdef'ing to accommodate subdirectories
10894 case $cf_cv_term_header in # (vi
10896 cat >>confdefs.h <<\EOF
10897 #define HAVE_TERM_H 1
10903 case $cf_cv_term_header in # (vi
10904 ncurses/term.h) #(vi
10905 cat >>confdefs.h <<\EOF
10906 #define HAVE_NCURSES_TERM_H 1
10911 cat >>confdefs.h <<\EOF
10912 #define HAVE_NCURSESW_TERM_H 1
10918 echo "$as_me:10918: checking for ncurses version" >&5
10919 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
10920 if test "${cf_cv_ncurses_version+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 cf_cv_ncurses_version=no
10927 if test "$cross_compiling" = yes; then
10929 # This will not work if the preprocessor splits the line after the
10930 # Autoconf token. The 'unproto' program does that.
10931 cat > conftest.$ac_ext <<EOF
10932 #include <${cf_cv_ncurses_header:-curses.h}>
10934 #ifdef NCURSES_VERSION
10935 Autoconf NCURSES_VERSION
10943 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
10944 { (eval echo "$as_me:10944: \"$cf_try\"") >&5
10945 (eval $cf_try) 2>&5
10947 echo "$as_me:10947: \$? = $ac_status" >&5
10948 (exit $ac_status); }
10949 if test -f conftest.out ; then
10950 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
10951 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
10956 cat >conftest.$ac_ext <<_ACEOF
10957 #line 10957 "configure"
10958 #include "confdefs.h"
10960 #include <${cf_cv_ncurses_header:-curses.h}>
10964 FILE *fp = fopen("$cf_tempfile", "w");
10965 #ifdef NCURSES_VERSION
10966 # ifdef NCURSES_VERSION_PATCH
10967 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
10969 fprintf(fp, "%s\n", NCURSES_VERSION);
10972 # ifdef __NCURSES_H
10973 fprintf(fp, "old\n");
10978 ${cf_cv_main_return:-return}(0);
10981 rm -f conftest$ac_exeext
10982 if { (eval echo "$as_me:10982: \"$ac_link\"") >&5
10983 (eval $ac_link) 2>&5
10985 echo "$as_me:10985: \$? = $ac_status" >&5
10986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10987 { (eval echo "$as_me:10987: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10990 echo "$as_me:10990: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10993 cf_cv_ncurses_version=`cat $cf_tempfile`
10995 echo "$as_me: program exited with status $ac_status" >&5
10996 echo "$as_me: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10999 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11004 echo "$as_me:11004: result: $cf_cv_ncurses_version" >&5
11005 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
11006 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
11010 echo "$as_me:11010: checking if we have identified curses libraries" >&5
11011 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
11012 cat >conftest.$ac_ext <<_ACEOF
11013 #line 11013 "configure"
11014 #include "confdefs.h"
11015 #include <${cf_cv_ncurses_header:-curses.h}>
11019 initscr(); tgoto("?", 0,0)
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (eval echo "$as_me:11025: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>&5
11028 echo "$as_me:11028: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -s conftest$ac_exeext'
11031 { (eval echo "$as_me:11031: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:11034: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11038 echo "$as_me: failed program was:" >&5
11039 cat conftest.$ac_ext >&5
11042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11043 echo "$as_me:11043: result: $cf_result" >&5
11044 echo "${ECHO_T}$cf_result" >&6
11046 if test "$cf_result" = no ; then
11047 case $host_os in #(vi
11049 echo "$as_me:11049: checking for tgoto in -lmytinfo" >&5
11050 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
11051 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 ac_check_lib_save_LIBS=$LIBS
11055 LIBS="-lmytinfo $LIBS"
11056 cat >conftest.$ac_ext <<_ACEOF
11057 #line 11057 "configure"
11058 #include "confdefs.h"
11060 /* Override any gcc2 internal prototype to avoid an error. */
11064 /* We use char because int might match the return type of a gcc2
11065 builtin and then its argument prototype would still apply. */
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (eval echo "$as_me:11076: \"$ac_link\"") >&5
11077 (eval $ac_link) 2>&5
11079 echo "$as_me:11079: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
11081 { ac_try='test -s conftest$ac_exeext'
11082 { (eval echo "$as_me:11082: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11085 echo "$as_me:11085: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 ac_cv_lib_mytinfo_tgoto=yes
11089 echo "$as_me: failed program was:" >&5
11090 cat conftest.$ac_ext >&5
11091 ac_cv_lib_mytinfo_tgoto=no
11093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11096 echo "$as_me:11096: result: $ac_cv_lib_mytinfo_tgoto" >&5
11097 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
11098 if test $ac_cv_lib_mytinfo_tgoto = yes; then
11099 LIBS="-lmytinfo $LIBS"
11104 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
11105 # next (1998), and xcurses "newer" (2000). There is no header file for
11106 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
11107 # term.h) for cur_colr
11108 if test "x$cf_cv_screen" = "xcurses_colr"
11110 echo "$as_me:11110: checking for initscr in -lcur_colr" >&5
11111 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
11112 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 ac_check_lib_save_LIBS=$LIBS
11116 LIBS="-lcur_colr $LIBS"
11117 cat >conftest.$ac_ext <<_ACEOF
11118 #line 11118 "configure"
11119 #include "confdefs.h"
11121 /* Override any gcc2 internal prototype to avoid an error. */
11125 /* We use char because int might match the return type of a gcc2
11126 builtin and then its argument prototype would still apply. */
11136 rm -f conftest.$ac_objext conftest$ac_exeext
11137 if { (eval echo "$as_me:11137: \"$ac_link\"") >&5
11138 (eval $ac_link) 2>&5
11140 echo "$as_me:11140: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -s conftest$ac_exeext'
11143 { (eval echo "$as_me:11143: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11146 echo "$as_me:11146: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 ac_cv_lib_cur_colr_initscr=yes
11150 echo "$as_me: failed program was:" >&5
11151 cat conftest.$ac_ext >&5
11152 ac_cv_lib_cur_colr_initscr=no
11154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_lib_save_LIBS
11157 echo "$as_me:11157: result: $ac_cv_lib_cur_colr_initscr" >&5
11158 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
11159 if test $ac_cv_lib_cur_colr_initscr = yes; then
11161 LIBS="-lcur_colr $LIBS"
11162 ac_cv_func_initscr=yes
11166 echo "$as_me:11166: checking for initscr in -lHcurses" >&5
11167 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
11168 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 ac_check_lib_save_LIBS=$LIBS
11172 LIBS="-lHcurses $LIBS"
11173 cat >conftest.$ac_ext <<_ACEOF
11174 #line 11174 "configure"
11175 #include "confdefs.h"
11177 /* Override any gcc2 internal prototype to avoid an error. */
11181 /* We use char because int might match the return type of a gcc2
11182 builtin and then its argument prototype would still apply. */
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (eval echo "$as_me:11193: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>&5
11196 echo "$as_me:11196: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -s conftest$ac_exeext'
11199 { (eval echo "$as_me:11199: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11202 echo "$as_me:11202: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 ac_cv_lib_Hcurses_initscr=yes
11206 echo "$as_me: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11208 ac_cv_lib_Hcurses_initscr=no
11210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11213 echo "$as_me:11213: result: $ac_cv_lib_Hcurses_initscr" >&5
11214 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
11215 if test $ac_cv_lib_Hcurses_initscr = yes; then
11217 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
11218 LIBS="-lHcurses $LIBS"
11219 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
11220 ac_cv_func_initscr=yes
11229 case `arch 2>/dev/null` in
11234 if test -n "/lib64" ; then
11235 for cf_add_libdir in /lib64
11237 if test $cf_add_libdir = /usr/lib ; then
11239 elif test -d $cf_add_libdir
11242 if test -n "$LDFLAGS$LIBS" ; then
11243 # a loop is needed to ensure we can add subdirs of existing dirs
11244 for cf_test_libdir in $LDFLAGS $LIBS ; do
11245 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
11246 cf_have_libdir=yes; break
11250 if test "$cf_have_libdir" = no ; then
11251 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
11253 echo "${as_me:-configure}:11253: testing adding $cf_add_libdir to library-path ..." 1>&5
11255 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
11263 if test -n "/lib" ; then
11264 for cf_add_libdir in /lib
11266 if test $cf_add_libdir = /usr/lib ; then
11268 elif test -d $cf_add_libdir
11271 if test -n "$LDFLAGS$LIBS" ; then
11272 # a loop is needed to ensure we can add subdirs of existing dirs
11273 for cf_test_libdir in $LDFLAGS $LIBS ; do
11274 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
11275 cf_have_libdir=yes; break
11279 if test "$cf_have_libdir" = no ; then
11280 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
11282 echo "${as_me:-configure}:11282: testing adding $cf_add_libdir to library-path ..." 1>&5
11284 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
11294 if test -n "/lib" ; then
11295 for cf_add_libdir in /lib
11297 if test $cf_add_libdir = /usr/lib ; then
11299 elif test -d $cf_add_libdir
11302 if test -n "$LDFLAGS$LIBS" ; then
11303 # a loop is needed to ensure we can add subdirs of existing dirs
11304 for cf_test_libdir in $LDFLAGS $LIBS ; do
11305 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
11306 cf_have_libdir=yes; break
11310 if test "$cf_have_libdir" = no ; then
11311 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
11313 echo "${as_me:-configure}:11313: testing adding $cf_add_libdir to library-path ..." 1>&5
11315 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
11325 if test "x$cf_cv_screen" = "xcurses_5lib"
11327 if test -d /usr/5lib ; then
11329 if test -n "/usr/5lib" ; then
11330 for cf_add_libdir in /usr/5lib
11332 if test $cf_add_libdir = /usr/lib ; then
11334 elif test -d $cf_add_libdir
11337 if test -n "$LDFLAGS$LIBS" ; then
11338 # a loop is needed to ensure we can add subdirs of existing dirs
11339 for cf_test_libdir in $LDFLAGS $LIBS ; do
11340 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
11341 cf_have_libdir=yes; break
11345 if test "$cf_have_libdir" = no ; then
11346 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
11348 echo "${as_me:-configure}:11348: testing adding $cf_add_libdir to library-path ..." 1>&5
11350 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
11356 LIBS="-lcurses -ltermcap $LIBS"
11359 ac_cv_func_initscr=yes
11363 if test ".$ac_cv_func_initscr" != .yes ; then
11364 cf_save_LIBS="$LIBS"
11368 if test ".${cf_cv_ncurses_version:-no}" != .no
11370 cf_check_list="ncurses curses cursesX"
11372 cf_check_list="cursesX curses ncurses"
11375 # Check for library containing tgoto. Do this before curses library
11376 # because it may be needed to link the test-case for initscr.
11377 echo "$as_me:11377: checking for tgoto" >&5
11378 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
11379 if test "${ac_cv_func_tgoto+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 cat >conftest.$ac_ext <<_ACEOF
11383 #line 11383 "configure"
11384 #include "confdefs.h"
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char tgoto (); below. */
11387 #include <assert.h>
11388 /* Override any gcc2 internal prototype to avoid an error. */
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11400 /* The GNU C library defines this for functions which it implements
11401 to always fail with ENOSYS. Some functions are actually named
11402 something starting with __ and the normal name is an alias. */
11403 #if defined (__stub_tgoto) || defined (__stub___tgoto)
11413 rm -f conftest.$ac_objext conftest$ac_exeext
11414 if { (eval echo "$as_me:11414: \"$ac_link\"") >&5
11415 (eval $ac_link) 2>&5
11417 echo "$as_me:11417: \$? = $ac_status" >&5
11418 (exit $ac_status); } &&
11419 { ac_try='test -s conftest$ac_exeext'
11420 { (eval echo "$as_me:11420: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:11423: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_func_tgoto=yes
11427 echo "$as_me: failed program was:" >&5
11428 cat conftest.$ac_ext >&5
11429 ac_cv_func_tgoto=no
11431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11433 echo "$as_me:11433: result: $ac_cv_func_tgoto" >&5
11434 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
11435 if test $ac_cv_func_tgoto = yes; then
11436 cf_term_lib=predefined
11439 for cf_term_lib in $cf_check_list termcap termlib unknown
11441 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
11442 echo "$as_me:11442: checking for tgoto in -l$cf_term_lib" >&5
11443 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
11444 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 ac_check_lib_save_LIBS=$LIBS
11448 LIBS="-l$cf_term_lib $LIBS"
11449 cat >conftest.$ac_ext <<_ACEOF
11450 #line 11450 "configure"
11451 #include "confdefs.h"
11453 /* Override any gcc2 internal prototype to avoid an error. */
11457 /* We use char because int might match the return type of a gcc2
11458 builtin and then its argument prototype would still apply. */
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (eval echo "$as_me:11469: \"$ac_link\"") >&5
11470 (eval $ac_link) 2>&5
11472 echo "$as_me:11472: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -s conftest$ac_exeext'
11475 { (eval echo "$as_me:11475: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:11478: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 eval "$as_ac_Lib=yes"
11482 echo "$as_me: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11484 eval "$as_ac_Lib=no"
11486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11489 echo "$as_me:11489: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11490 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11491 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11499 # Check for library containing initscr
11500 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
11501 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
11503 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
11504 echo "$as_me:11504: checking for initscr in -l$cf_curs_lib" >&5
11505 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
11506 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 ac_check_lib_save_LIBS=$LIBS
11510 LIBS="-l$cf_curs_lib $LIBS"
11511 cat >conftest.$ac_ext <<_ACEOF
11512 #line 11512 "configure"
11513 #include "confdefs.h"
11515 /* Override any gcc2 internal prototype to avoid an error. */
11519 /* We use char because int might match the return type of a gcc2
11520 builtin and then its argument prototype would still apply. */
11530 rm -f conftest.$ac_objext conftest$ac_exeext
11531 if { (eval echo "$as_me:11531: \"$ac_link\"") >&5
11532 (eval $ac_link) 2>&5
11534 echo "$as_me:11534: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -s conftest$ac_exeext'
11537 { (eval echo "$as_me:11537: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:11540: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 eval "$as_ac_Lib=yes"
11544 echo "$as_me: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11546 eval "$as_ac_Lib=no"
11548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11551 echo "$as_me:11551: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11552 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11553 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11558 test $cf_curs_lib = unknown && { { echo "$as_me:11558: error: no curses library found" >&5
11559 echo "$as_me: error: no curses library found" >&2;}
11560 { (exit 1); exit 1; }; }
11562 LIBS="-l$cf_curs_lib $cf_save_LIBS"
11563 if test "$cf_term_lib" = unknown ; then
11564 echo "$as_me:11564: checking if we can link with $cf_curs_lib library" >&5
11565 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11567 #line 11567 "configure"
11568 #include "confdefs.h"
11569 #include <${cf_cv_ncurses_header:-curses.h}>
11578 rm -f conftest.$ac_objext conftest$ac_exeext
11579 if { (eval echo "$as_me:11579: \"$ac_link\"") >&5
11580 (eval $ac_link) 2>&5
11582 echo "$as_me:11582: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (eval echo "$as_me:11585: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:11588: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11592 echo "$as_me: failed program was:" >&5
11593 cat conftest.$ac_ext >&5
11596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11597 echo "$as_me:11597: result: $cf_result" >&5
11598 echo "${ECHO_T}$cf_result" >&6
11599 test $cf_result = no && { { echo "$as_me:11599: error: Cannot link curses library" >&5
11600 echo "$as_me: error: Cannot link curses library" >&2;}
11601 { (exit 1); exit 1; }; }
11602 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
11604 elif test "$cf_term_lib" != predefined ; then
11605 echo "$as_me:11605: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
11606 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
11607 cat >conftest.$ac_ext <<_ACEOF
11608 #line 11608 "configure"
11609 #include "confdefs.h"
11610 #include <${cf_cv_ncurses_header:-curses.h}>
11614 initscr(); tgoto((char *)0, 0, 0);
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (eval echo "$as_me:11620: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11623 echo "$as_me:11623: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -s conftest$ac_exeext'
11626 { (eval echo "$as_me:11626: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:11629: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11633 echo "$as_me: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11636 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
11637 cat >conftest.$ac_ext <<_ACEOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11640 #include <${cf_cv_ncurses_header:-curses.h}>
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (eval echo "$as_me:11650: \"$ac_link\"") >&5
11651 (eval $ac_link) 2>&5
11653 echo "$as_me:11653: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -s conftest$ac_exeext'
11656 { (eval echo "$as_me:11656: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:11659: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11663 echo "$as_me: failed program was:" >&5
11664 cat conftest.$ac_ext >&5
11667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11671 echo "$as_me:11671: result: $cf_result" >&5
11672 echo "${ECHO_T}$cf_result" >&6
11681 echo "$as_me:11681: checking if you want extra dialogs" >&5
11682 echo $ECHO_N "checking if you want extra dialogs... $ECHO_C" >&6
11684 # Check whether --enable-extras or --disable-extras was given.
11685 if test "${enable_extras+set}" = set; then
11686 enableval="$enable_extras"
11691 echo "$as_me:11691: result: $enableval" >&5
11692 echo "${ECHO_T}$enableval" >&6
11693 if test "$enableval" != no ; then
11699 echo "$as_me:11699: checking if you want config-file support" >&5
11700 echo $ECHO_N "checking if you want config-file support... $ECHO_C" >&6
11702 # Check whether --enable-rc-file or --disable-rc-file was given.
11703 if test "${enable_rc_file+set}" = set; then
11704 enableval="$enable_rc_file"
11707 enableval=$cf_all_widgets
11709 echo "$as_me:11709: result: $enableval" >&5
11710 echo "${ECHO_T}$enableval" >&6
11711 if test "$enableval" != no ; then
11712 EXTRAOBJS="$EXTRAOBJS rc\$o"
11713 cat >>confdefs.h <<\EOF
11714 #define HAVE_RC_FILE 1
11721 echo "$as_me:11721: checking if you want Xdialog-style dialogs" >&5
11722 echo $ECHO_N "checking if you want Xdialog-style dialogs... $ECHO_C" >&6
11724 # Check whether --enable-Xdialog or --disable-Xdialog was given.
11725 if test "${enable_Xdialog+set}" = set; then
11726 enableval="$enable_Xdialog"
11729 enableval=$cf_all_widgets
11731 echo "$as_me:11731: result: $enableval" >&5
11732 echo "${ECHO_T}$enableval" >&6
11733 if test "$enableval" != no ; then
11734 EXTRAOBJS="$EXTRAOBJS calendar\$o fselect\$o timebox\$o"
11735 cat >>confdefs.h <<\EOF
11736 #define HAVE_XDIALOG 1
11743 echo "$as_me:11743: checking if you want the form dialog" >&5
11744 echo $ECHO_N "checking if you want the form dialog... $ECHO_C" >&6
11746 # Check whether --enable-form or --disable-form was given.
11747 if test "${enable_form+set}" = set; then
11748 enableval="$enable_form"
11751 enableval=$cf_all_widgets
11753 echo "$as_me:11753: result: $enableval" >&5
11754 echo "${ECHO_T}$enableval" >&6
11755 if test "$enableval" != no ; then
11756 EXTRAOBJS="$EXTRAOBJS formbox\$o"
11757 cat >>confdefs.h <<\EOF
11758 #define HAVE_DLG_FORMBOX 1
11765 echo "$as_me:11765: checking if you want the gauge dialog" >&5
11766 echo $ECHO_N "checking if you want the gauge dialog... $ECHO_C" >&6
11768 # Check whether --enable-gauge or --disable-gauge was given.
11769 if test "${enable_gauge+set}" = set; then
11770 enableval="$enable_gauge"
11773 enableval=$cf_all_widgets
11775 echo "$as_me:11775: result: $enableval" >&5
11776 echo "${ECHO_T}$enableval" >&6
11777 if test "$enableval" != no ; then
11778 EXTRAOBJS="$EXTRAOBJS guage\$o pause\$o prgbox\$o progressbox\$o"
11779 cat >>confdefs.h <<\EOF
11780 #define HAVE_DLG_GAUGE 1
11787 echo "$as_me:11787: checking if you want the tailbox dialog" >&5
11788 echo $ECHO_N "checking if you want the tailbox dialog... $ECHO_C" >&6
11790 # Check whether --enable-tailbox or --disable-tailbox was given.
11791 if test "${enable_tailbox+set}" = set; then
11792 enableval="$enable_tailbox"
11795 enableval=$cf_all_widgets
11797 echo "$as_me:11797: result: $enableval" >&5
11798 echo "${ECHO_T}$enableval" >&6
11799 if test "$enableval" != no ; then
11800 EXTRAOBJS="$EXTRAOBJS tailbox\$o"
11801 cat >>confdefs.h <<\EOF
11802 #define HAVE_DLG_TAILBOX 1
11809 echo "$as_me:11809: checking if you want the mixedform dialog" >&5
11810 echo $ECHO_N "checking if you want the mixedform dialog... $ECHO_C" >&6
11812 # Check whether --enable-mixedform or --disable-mixedform was given.
11813 if test "${enable_mixedform+set}" = set; then
11814 enableval="$enable_mixedform"
11817 enableval=$cf_all_widgets
11819 echo "$as_me:11819: result: $enableval" >&5
11820 echo "${ECHO_T}$enableval" >&6
11821 if test "$enableval" != no ; then
11822 EXTRAOBJS="$EXTRAOBJS mixedform\$o"
11823 cat >>confdefs.h <<\EOF
11824 #define HAVE_DLG_MIXEDFORM 1
11831 echo "$as_me:11831: checking if you want the mixedgauge dialog" >&5
11832 echo $ECHO_N "checking if you want the mixedgauge dialog... $ECHO_C" >&6
11834 # Check whether --enable-mixedgauge or --disable-mixedgauge was given.
11835 if test "${enable_mixedgauge+set}" = set; then
11836 enableval="$enable_mixedgauge"
11839 enableval=$cf_all_widgets
11841 echo "$as_me:11841: result: $enableval" >&5
11842 echo "${ECHO_T}$enableval" >&6
11843 if test "$enableval" != no ; then
11844 EXTRAOBJS="$EXTRAOBJS mixedgauge\$o"
11845 cat >>confdefs.h <<\EOF
11846 #define HAVE_MIXEDGAUGE 1
11853 echo "$as_me:11853: checking if you want the wide-curses features" >&5
11854 echo $ECHO_N "checking if you want the wide-curses features... $ECHO_C" >&6
11856 # Check whether --enable-widec or --disable-widec was given.
11857 if test "${enable_widec+set}" = set; then
11858 enableval="$enable_widec"
11861 enableval=$cf_wide_curses
11863 echo "$as_me:11863: result: $enableval" >&5
11864 echo "${ECHO_T}$enableval" >&6
11865 if test "$enableval" != no ; then
11866 cat >>confdefs.h <<\EOF
11867 #define USE_WIDE_CURSES 1
11874 echo "$as_me:11874: checking for ANSI C header files" >&5
11875 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11876 if test "${ac_cv_header_stdc+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 cat >conftest.$ac_ext <<_ACEOF
11880 #line 11880 "configure"
11881 #include "confdefs.h"
11882 #include <stdlib.h>
11883 #include <stdarg.h>
11884 #include <string.h>
11888 if { (eval echo "$as_me:11888: \"$ac_cpp conftest.$ac_ext\"") >&5
11889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11891 egrep -v '^ *\+' conftest.er1 >conftest.err
11893 cat conftest.err >&5
11894 echo "$as_me:11894: \$? = $ac_status" >&5
11895 (exit $ac_status); } >/dev/null; then
11896 if test -s conftest.err; then
11897 ac_cpp_err=$ac_c_preproc_warn_flag
11904 if test -z "$ac_cpp_err"; then
11905 ac_cv_header_stdc=yes
11907 echo "$as_me: failed program was:" >&5
11908 cat conftest.$ac_ext >&5
11909 ac_cv_header_stdc=no
11911 rm -f conftest.err conftest.$ac_ext
11913 if test $ac_cv_header_stdc = yes; then
11914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11915 cat >conftest.$ac_ext <<_ACEOF
11916 #line 11916 "configure"
11917 #include "confdefs.h"
11918 #include <string.h>
11921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11922 egrep "memchr" >/dev/null 2>&1; then
11925 ac_cv_header_stdc=no
11931 if test $ac_cv_header_stdc = yes; then
11932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11933 cat >conftest.$ac_ext <<_ACEOF
11934 #line 11934 "configure"
11935 #include "confdefs.h"
11936 #include <stdlib.h>
11939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11940 egrep "free" >/dev/null 2>&1; then
11943 ac_cv_header_stdc=no
11949 if test $ac_cv_header_stdc = yes; then
11950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11951 if test "$cross_compiling" = yes; then
11954 cat >conftest.$ac_ext <<_ACEOF
11955 #line 11955 "configure"
11956 #include "confdefs.h"
11958 #if ((' ' & 0x0FF) == 0x020)
11959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11962 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11963 || ('j' <= (c) && (c) <= 'r') \
11964 || ('s' <= (c) && (c) <= 'z'))
11965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11973 for (i = 0; i < 256; i++)
11974 if (XOR (islower (i), ISLOWER (i))
11975 || toupper (i) != TOUPPER (i))
11976 $ac_main_return(2);
11977 $ac_main_return (0);
11980 rm -f conftest$ac_exeext
11981 if { (eval echo "$as_me:11981: \"$ac_link\"") >&5
11982 (eval $ac_link) 2>&5
11984 echo "$as_me:11984: \$? = $ac_status" >&5
11985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11986 { (eval echo "$as_me:11986: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11989 echo "$as_me:11989: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11993 echo "$as_me: program exited with status $ac_status" >&5
11994 echo "$as_me: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11996 ac_cv_header_stdc=no
11998 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12002 echo "$as_me:12002: result: $ac_cv_header_stdc" >&5
12003 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12004 if test $ac_cv_header_stdc = yes; then
12006 cat >>confdefs.h <<\EOF
12007 #define STDC_HEADERS 1
12012 echo "$as_me:12012: checking whether time.h and sys/time.h may both be included" >&5
12013 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12014 if test "${ac_cv_header_time+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #line 12018 "configure"
12019 #include "confdefs.h"
12020 #include <sys/types.h>
12021 #include <sys/time.h>
12027 if ((struct tm *) 0)
12033 rm -f conftest.$ac_objext
12034 if { (eval echo "$as_me:12034: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>&5
12037 echo "$as_me:12037: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (eval echo "$as_me:12040: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:12043: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_header_time=yes
12047 echo "$as_me: failed program was:" >&5
12048 cat conftest.$ac_ext >&5
12049 ac_cv_header_time=no
12051 rm -f conftest.$ac_objext conftest.$ac_ext
12053 echo "$as_me:12053: result: $ac_cv_header_time" >&5
12054 echo "${ECHO_T}$ac_cv_header_time" >&6
12055 if test $ac_cv_header_time = yes; then
12057 cat >>confdefs.h <<\EOF
12058 #define TIME_WITH_SYS_TIME 1
12063 ac_header_dirent=no
12064 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12065 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12066 echo "$as_me:12066: checking for $ac_hdr that defines DIR" >&5
12067 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
12068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 cat >conftest.$ac_ext <<_ACEOF
12072 #line 12072 "configure"
12073 #include "confdefs.h"
12074 #include <sys/types.h>
12086 rm -f conftest.$ac_objext
12087 if { (eval echo "$as_me:12087: \"$ac_compile\"") >&5
12088 (eval $ac_compile) 2>&5
12090 echo "$as_me:12090: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -s conftest.$ac_objext'
12093 { (eval echo "$as_me:12093: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 eval "$as_ac_Header=yes"
12100 echo "$as_me: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12102 eval "$as_ac_Header=no"
12104 rm -f conftest.$ac_objext conftest.$ac_ext
12106 echo "$as_me:12106: result: `eval echo '${'$as_ac_Header'}'`" >&5
12107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12109 cat >>confdefs.h <<EOF
12110 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12113 ac_header_dirent=$ac_hdr; break
12117 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12118 if test $ac_header_dirent = dirent.h; then
12119 echo "$as_me:12119: checking for opendir in -ldir" >&5
12120 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
12121 if test "${ac_cv_lib_dir_opendir+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 ac_check_lib_save_LIBS=$LIBS
12126 cat >conftest.$ac_ext <<_ACEOF
12127 #line 12127 "configure"
12128 #include "confdefs.h"
12130 /* Override any gcc2 internal prototype to avoid an error. */
12134 /* We use char because int might match the return type of a gcc2
12135 builtin and then its argument prototype would still apply. */
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (eval echo "$as_me:12146: \"$ac_link\"") >&5
12147 (eval $ac_link) 2>&5
12149 echo "$as_me:12149: \$? = $ac_status" >&5
12150 (exit $ac_status); } &&
12151 { ac_try='test -s conftest$ac_exeext'
12152 { (eval echo "$as_me:12152: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12155 echo "$as_me:12155: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
12157 ac_cv_lib_dir_opendir=yes
12159 echo "$as_me: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12161 ac_cv_lib_dir_opendir=no
12163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12166 echo "$as_me:12166: result: $ac_cv_lib_dir_opendir" >&5
12167 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
12168 if test $ac_cv_lib_dir_opendir = yes; then
12173 echo "$as_me:12173: checking for opendir in -lx" >&5
12174 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
12175 if test "${ac_cv_lib_x_opendir+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 ac_check_lib_save_LIBS=$LIBS
12180 cat >conftest.$ac_ext <<_ACEOF
12181 #line 12181 "configure"
12182 #include "confdefs.h"
12184 /* Override any gcc2 internal prototype to avoid an error. */
12188 /* We use char because int might match the return type of a gcc2
12189 builtin and then its argument prototype would still apply. */
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (eval echo "$as_me:12200: \"$ac_link\"") >&5
12201 (eval $ac_link) 2>&5
12203 echo "$as_me:12203: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -s conftest$ac_exeext'
12206 { (eval echo "$as_me:12206: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:12209: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_cv_lib_x_opendir=yes
12213 echo "$as_me: failed program was:" >&5
12214 cat conftest.$ac_ext >&5
12215 ac_cv_lib_x_opendir=no
12217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12218 LIBS=$ac_check_lib_save_LIBS
12220 echo "$as_me:12220: result: $ac_cv_lib_x_opendir" >&5
12221 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
12222 if test $ac_cv_lib_x_opendir = yes; then
12228 for ac_header in search.h unctrl.h unistd.h
12230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231 echo "$as_me:12231: checking for $ac_header" >&5
12232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 cat >conftest.$ac_ext <<_ACEOF
12237 #line 12237 "configure"
12238 #include "confdefs.h"
12239 #include <$ac_header>
12241 if { (eval echo "$as_me:12241: \"$ac_cpp conftest.$ac_ext\"") >&5
12242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12244 egrep -v '^ *\+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:12247: \$? = $ac_status" >&5
12248 (exit $ac_status); } >/dev/null; then
12249 if test -s conftest.err; then
12250 ac_cpp_err=$ac_c_preproc_warn_flag
12257 if test -z "$ac_cpp_err"; then
12258 eval "$as_ac_Header=yes"
12260 echo "$as_me: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 eval "$as_ac_Header=no"
12264 rm -f conftest.err conftest.$ac_ext
12266 echo "$as_me:12266: result: `eval echo '${'$as_ac_Header'}'`" >&5
12267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12269 cat >>confdefs.h <<EOF
12270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12276 echo "$as_me:12276: checking for term.h" >&5
12277 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
12278 if test "${cf_cv_term_header+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
12283 # for <term.h> if we do not find the variant.
12285 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
12287 case ${cf_cv_ncurses_header:-curses.h} in #(vi
12289 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
12290 cf_header_list="$cf_header_item $cf_header_list"
12294 for cf_header in $cf_header_list
12296 cat >conftest.$ac_ext <<_ACEOF
12297 #line 12297 "configure"
12298 #include "confdefs.h"
12300 #include <${cf_cv_ncurses_header:-curses.h}>
12301 #include <${cf_header}>
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:12311: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>&5
12314 echo "$as_me:12314: \$? = $ac_status" >&5
12315 (exit $ac_status); } &&
12316 { ac_try='test -s conftest.$ac_objext'
12317 { (eval echo "$as_me:12317: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12320 echo "$as_me:12320: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 cf_cv_term_header=$cf_header
12325 echo "$as_me: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12327 cf_cv_term_header=no
12329 rm -f conftest.$ac_objext conftest.$ac_ext
12332 case $cf_cv_term_header in #(vi
12334 # If curses is ncurses, some packagers still mess it up by trying to make
12335 # us use GNU termcap. This handles the most common case.
12336 for cf_header in ncurses/term.h ncursesw/term.h
12338 cat >conftest.$ac_ext <<_ACEOF
12339 #line 12339 "configure"
12340 #include "confdefs.h"
12342 #include <${cf_cv_ncurses_header:-curses.h}>
12343 #ifdef NCURSES_VERSION
12344 #include <${cf_header}>
12356 rm -f conftest.$ac_objext
12357 if { (eval echo "$as_me:12357: \"$ac_compile\"") >&5
12358 (eval $ac_compile) 2>&5
12360 echo "$as_me:12360: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -s conftest.$ac_objext'
12363 { (eval echo "$as_me:12363: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:12366: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 cf_cv_term_header=$cf_header
12371 echo "$as_me: failed program was:" >&5
12372 cat conftest.$ac_ext >&5
12373 cf_cv_term_header=no
12375 rm -f conftest.$ac_objext conftest.$ac_ext
12381 echo "$as_me:12381: result: $cf_cv_term_header" >&5
12382 echo "${ECHO_T}$cf_cv_term_header" >&6
12384 case $cf_cv_term_header in #(vi
12386 cat >>confdefs.h <<\EOF
12387 #define HAVE_TERM_H 1
12391 ncurses/term.h) #(vi
12392 cat >>confdefs.h <<\EOF
12393 #define HAVE_NCURSES_TERM_H 1
12398 cat >>confdefs.h <<\EOF
12399 #define HAVE_NCURSESW_TERM_H 1
12405 echo "$as_me:12405: checking return type of signal handlers" >&5
12406 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12407 if test "${ac_cv_type_signal+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line 12411 "configure"
12412 #include "confdefs.h"
12413 #include <sys/types.h>
12414 #include <signal.h>
12419 extern "C" void (*signal (int, void (*)(int)))(int);
12421 void (*signal ()) ();
12432 rm -f conftest.$ac_objext
12433 if { (eval echo "$as_me:12433: \"$ac_compile\"") >&5
12434 (eval $ac_compile) 2>&5
12436 echo "$as_me:12436: \$? = $ac_status" >&5
12437 (exit $ac_status); } &&
12438 { ac_try='test -s conftest.$ac_objext'
12439 { (eval echo "$as_me:12439: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:12442: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 ac_cv_type_signal=void
12446 echo "$as_me: failed program was:" >&5
12447 cat conftest.$ac_ext >&5
12448 ac_cv_type_signal=int
12450 rm -f conftest.$ac_objext conftest.$ac_ext
12452 echo "$as_me:12452: result: $ac_cv_type_signal" >&5
12453 echo "${ECHO_T}$ac_cv_type_signal" >&6
12455 cat >>confdefs.h <<EOF
12456 #define RETSIGTYPE $ac_cv_type_signal
12460 _nc_free_and_exit \
12476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12477 echo "$as_me:12477: checking for $ac_func" >&5
12478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12479 if eval "test \"\${$as_ac_var+set}\" = set"; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 cat >conftest.$ac_ext <<_ACEOF
12483 #line 12483 "configure"
12484 #include "confdefs.h"
12485 /* System header to define __stub macros and hopefully few prototypes,
12486 which can conflict with char $ac_func (); below. */
12487 #include <assert.h>
12488 /* Override any gcc2 internal prototype to avoid an error. */
12492 /* We use char because int might match the return type of a gcc2
12493 builtin and then its argument prototype would still apply. */
12500 /* The GNU C library defines this for functions which it implements
12501 to always fail with ENOSYS. Some functions are actually named
12502 something starting with __ and the normal name is an alias. */
12503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12513 rm -f conftest.$ac_objext conftest$ac_exeext
12514 if { (eval echo "$as_me:12514: \"$ac_link\"") >&5
12515 (eval $ac_link) 2>&5
12517 echo "$as_me:12517: \$? = $ac_status" >&5
12518 (exit $ac_status); } &&
12519 { ac_try='test -s conftest$ac_exeext'
12520 { (eval echo "$as_me:12520: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:12523: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 eval "$as_ac_var=yes"
12527 echo "$as_me: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12529 eval "$as_ac_var=no"
12531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12533 echo "$as_me:12533: result: `eval echo '${'$as_ac_var'}'`" >&5
12534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12535 if test `eval echo '${'$as_ac_var'}'` = yes; then
12536 cat >>confdefs.h <<EOF
12537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12543 echo "$as_me:12543: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12544 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12545 if test "${cf_cv_need_xopen_extension+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 cat >conftest.$ac_ext <<_ACEOF
12550 #line 12550 "configure"
12551 #include "confdefs.h"
12553 #include <stdlib.h>
12554 #include <${cf_cv_ncurses_header:-curses.h}>
12559 #if defined(NCURSES_VERSION_PATCH)
12560 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
12564 long x = winnstr(stdscr, "", 0);
12566 getbegyx(stdscr, y1, x1)
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (eval echo "$as_me:12572: \"$ac_link\"") >&5
12573 (eval $ac_link) 2>&5
12575 echo "$as_me:12575: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -s conftest$ac_exeext'
12578 { (eval echo "$as_me:12578: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12581 echo "$as_me:12581: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 cf_cv_need_xopen_extension=no
12585 echo "$as_me: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 cat >conftest.$ac_ext <<_ACEOF
12588 #line 12588 "configure"
12589 #include "confdefs.h"
12591 #define _XOPEN_SOURCE_EXTENDED
12592 #include <stdlib.h>
12593 #include <${cf_cv_ncurses_header:-curses.h}>
12598 #ifdef NCURSES_VERSION
12600 int check2 = curs_set((int)sizeof(check));
12602 long x = winnstr(stdscr, "", 0);
12604 getbegyx(stdscr, y1, x1)
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (eval echo "$as_me:12610: \"$ac_link\"") >&5
12611 (eval $ac_link) 2>&5
12613 echo "$as_me:12613: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
12615 { ac_try='test -s conftest$ac_exeext'
12616 { (eval echo "$as_me:12616: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:12619: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 cf_cv_need_xopen_extension=yes
12623 echo "$as_me: failed program was:" >&5
12624 cat conftest.$ac_ext >&5
12625 cf_cv_need_xopen_extension=unknown
12627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12631 echo "$as_me:12631: result: $cf_cv_need_xopen_extension" >&5
12632 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
12633 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12635 echo "$as_me:12635: checking for unctrl.h" >&5
12636 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
12637 if test "${cf_cv_unctrl_header+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
12642 # for <unctrl.h> if we do not find the variant.
12644 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
12646 case ${cf_cv_ncurses_header:-curses.h} in #(vi
12648 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
12649 cf_header_list="$cf_header_item $cf_header_list"
12653 for cf_header in $cf_header_list
12655 cat >conftest.$ac_ext <<_ACEOF
12656 #line 12656 "configure"
12657 #include "confdefs.h"
12659 #include <${cf_cv_ncurses_header:-curses.h}>
12660 #include <${cf_header}>
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:12670: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>&5
12673 echo "$as_me:12673: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -s conftest.$ac_objext'
12676 { (eval echo "$as_me:12676: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:12679: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681 cf_cv_unctrl_header=$cf_header
12684 echo "$as_me: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 cf_cv_unctrl_header=no
12688 rm -f conftest.$ac_objext conftest.$ac_ext
12691 case $cf_cv_unctrl_header in #(vi
12693 { echo "$as_me:12693: WARNING: unctrl.h header not found" >&5
12694 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
12699 echo "$as_me:12699: result: $cf_cv_unctrl_header" >&5
12700 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
12702 case $cf_cv_unctrl_header in #(vi
12704 cat >>confdefs.h <<\EOF
12705 #define HAVE_UNCTRL_H 1
12709 ncurses/unctrl.h) #(vi
12710 cat >>confdefs.h <<\EOF
12711 #define HAVE_NCURSES_UNCTRL_H 1
12716 cat >>confdefs.h <<\EOF
12717 #define HAVE_NCURSESW_UNCTRL_H 1
12737 use_default_colors \
12743 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12745 echo "$as_me:12745: checking for ${cf_func}" >&5
12746 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
12748 echo "${as_me:-configure}:12748: testing ${cf_func} ..." 1>&5
12750 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 eval cf_result='$ac_cv_func_'$cf_func
12755 if test ".$cf_result" != ".no"; then
12756 cat >conftest.$ac_ext <<_ACEOF
12757 #line 12757 "configure"
12758 #include "confdefs.h"
12760 #ifdef HAVE_XCURSES
12761 #include <xcurses.h>
12762 char * XCursesProgramName = "test";
12764 #include <${cf_cv_ncurses_header:-curses.h}>
12765 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
12766 #include <ncursesw/term.h>
12767 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
12768 #include <ncurses/term.h>
12769 #elif defined(HAVE_TERM_H)
12779 long foo = (long)(&${cf_func});
12780 if (foo + 1234 > 5678)
12781 ${cf_cv_main_return:-return}(foo);
12788 rm -f conftest.$ac_objext conftest$ac_exeext
12789 if { (eval echo "$as_me:12789: \"$ac_link\"") >&5
12790 (eval $ac_link) 2>&5
12792 echo "$as_me:12792: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -s conftest$ac_exeext'
12795 { (eval echo "$as_me:12795: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:12798: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12802 echo "$as_me: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12808 eval 'cf_cv_func_'$cf_func'=$cf_result'
12812 # use the computed/retrieved cache-value:
12813 eval 'cf_result=$cf_cv_func_'$cf_func
12814 echo "$as_me:12814: result: $cf_result" >&5
12815 echo "${ECHO_T}$cf_result" >&6
12816 if test $cf_result != no; then
12817 cat >>confdefs.h <<EOF
12818 #define HAVE_${cf_tr_func} 1
12824 echo "$as_me:12824: checking for start_color" >&5
12825 echo $ECHO_N "checking for start_color... $ECHO_C" >&6
12826 if test "${ac_cv_func_start_color+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 cat >conftest.$ac_ext <<_ACEOF
12830 #line 12830 "configure"
12831 #include "confdefs.h"
12832 /* System header to define __stub macros and hopefully few prototypes,
12833 which can conflict with char start_color (); below. */
12834 #include <assert.h>
12835 /* Override any gcc2 internal prototype to avoid an error. */
12839 /* We use char because int might match the return type of a gcc2
12840 builtin and then its argument prototype would still apply. */
12841 char start_color ();
12847 /* The GNU C library defines this for functions which it implements
12848 to always fail with ENOSYS. Some functions are actually named
12849 something starting with __ and the normal name is an alias. */
12850 #if defined (__stub_start_color) || defined (__stub___start_color)
12860 rm -f conftest.$ac_objext conftest$ac_exeext
12861 if { (eval echo "$as_me:12861: \"$ac_link\"") >&5
12862 (eval $ac_link) 2>&5
12864 echo "$as_me:12864: \$? = $ac_status" >&5
12865 (exit $ac_status); } &&
12866 { ac_try='test -s conftest$ac_exeext'
12867 { (eval echo "$as_me:12867: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12870 echo "$as_me:12870: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 ac_cv_func_start_color=yes
12874 echo "$as_me: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12876 ac_cv_func_start_color=no
12878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12880 echo "$as_me:12880: result: $ac_cv_func_start_color" >&5
12881 echo "${ECHO_T}$ac_cv_func_start_color" >&6
12882 if test $ac_cv_func_start_color = yes; then
12883 cat >>confdefs.h <<\EOF
12884 #define HAVE_COLOR 1
12889 echo "$as_me:12889: checking for chtype typedef" >&5
12890 echo $ECHO_N "checking for chtype typedef... $ECHO_C" >&6
12891 if test "${cf_cv_chtype_decl+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 cat >conftest.$ac_ext <<_ACEOF
12896 #line 12896 "configure"
12897 #include "confdefs.h"
12898 #include <${cf_cv_ncurses_header:-curses.h}>
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:12908: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>&5
12911 echo "$as_me:12911: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -s conftest.$ac_objext'
12914 { (eval echo "$as_me:12914: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:12917: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 cf_cv_chtype_decl=yes
12921 echo "$as_me: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12923 cf_cv_chtype_decl=no
12925 rm -f conftest.$ac_objext conftest.$ac_ext
12927 echo "$as_me:12927: result: $cf_cv_chtype_decl" >&5
12928 echo "${ECHO_T}$cf_cv_chtype_decl" >&6
12929 if test $cf_cv_chtype_decl = yes ; then
12930 cat >>confdefs.h <<\EOF
12931 #define HAVE_TYPE_CHTYPE 1
12934 echo "$as_me:12934: checking if chtype is scalar or struct" >&5
12935 echo $ECHO_N "checking if chtype is scalar or struct... $ECHO_C" >&6
12936 if test "${cf_cv_chtype_type+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12941 #line 12941 "configure"
12942 #include "confdefs.h"
12943 #include <${cf_cv_ncurses_header:-curses.h}>
12947 chtype foo; long x = foo
12952 rm -f conftest.$ac_objext
12953 if { (eval echo "$as_me:12953: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>&5
12956 echo "$as_me:12956: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:12959: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12962 echo "$as_me:12962: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 cf_cv_chtype_type=scalar
12966 echo "$as_me: failed program was:" >&5
12967 cat conftest.$ac_ext >&5
12968 cf_cv_chtype_type=struct
12970 rm -f conftest.$ac_objext conftest.$ac_ext
12972 echo "$as_me:12972: result: $cf_cv_chtype_type" >&5
12973 echo "${ECHO_T}$cf_cv_chtype_type" >&6
12974 if test $cf_cv_chtype_type = scalar ; then
12975 cat >>confdefs.h <<\EOF
12976 #define TYPE_CHTYPE_IS_SCALAR 1
12982 echo "$as_me:12982: checking for wide alternate character set array" >&5
12983 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
12984 if test "${cf_cv_curses_wacs_map+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 cf_cv_curses_wacs_map=unknown
12989 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
12991 cat >conftest.$ac_ext <<_ACEOF
12992 #line 12992 "configure"
12993 #include "confdefs.h"
12995 #ifndef _XOPEN_SOURCE_EXTENDED
12996 #define _XOPEN_SOURCE_EXTENDED
12998 #include <${cf_cv_ncurses_header:-curses.h}>
13002 void *foo = &($name['k'])
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:13008: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>&5
13011 echo "$as_me:13011: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:13014: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13017 echo "$as_me:13017: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 cf_cv_curses_wacs_map=$name
13022 echo "$as_me: failed program was:" >&5
13023 cat conftest.$ac_ext >&5
13025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13028 echo "$as_me:13028: result: $cf_cv_curses_wacs_map" >&5
13029 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
13031 test "$cf_cv_curses_wacs_map" != unknown && cat >>confdefs.h <<EOF
13032 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
13035 echo "$as_me:13035: checking for wide alternate character constants" >&5
13036 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
13037 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 cf_cv_curses_wacs_symbols=no
13042 if test "$cf_cv_curses_wacs_map" != unknown
13044 cat >conftest.$ac_ext <<_ACEOF
13045 #line 13045 "configure"
13046 #include "confdefs.h"
13048 #ifndef _XOPEN_SOURCE_EXTENDED
13049 #define _XOPEN_SOURCE_EXTENDED
13051 #include <${cf_cv_ncurses_header:-curses.h}>
13055 cchar_t *foo = WACS_PLUS;
13056 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (eval echo "$as_me:13062: \"$ac_link\"") >&5
13063 (eval $ac_link) 2>&5
13065 echo "$as_me:13065: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -s conftest$ac_exeext'
13068 { (eval echo "$as_me:13068: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13071 echo "$as_me:13071: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 cf_cv_curses_wacs_symbols=yes
13075 echo "$as_me: failed program was:" >&5
13076 cat conftest.$ac_ext >&5
13078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13080 cat >conftest.$ac_ext <<_ACEOF
13081 #line 13081 "configure"
13082 #include "confdefs.h"
13084 #ifndef _XOPEN_SOURCE_EXTENDED
13085 #define _XOPEN_SOURCE_EXTENDED
13087 #include <${cf_cv_ncurses_header:-curses.h}>
13091 cchar_t *foo = WACS_PLUS
13096 rm -f conftest.$ac_objext conftest$ac_exeext
13097 if { (eval echo "$as_me:13097: \"$ac_link\"") >&5
13098 (eval $ac_link) 2>&5
13100 echo "$as_me:13100: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -s conftest$ac_exeext'
13103 { (eval echo "$as_me:13103: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:13106: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108 cf_cv_curses_wacs_symbols=yes
13110 echo "$as_me: failed program was:" >&5
13111 cat conftest.$ac_ext >&5
13113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13117 echo "$as_me:13117: result: $cf_cv_curses_wacs_symbols" >&5
13118 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
13120 test "$cf_cv_curses_wacs_symbols" != no && cat >>confdefs.h <<\EOF
13121 #define CURSES_WACS_SYMBOLS 1
13124 for ac_header in sys/wait.h
13126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13127 echo "$as_me:13127: checking for $ac_header" >&5
13128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 cat >conftest.$ac_ext <<_ACEOF
13133 #line 13133 "configure"
13134 #include "confdefs.h"
13135 #include <$ac_header>
13137 if { (eval echo "$as_me:13137: \"$ac_cpp conftest.$ac_ext\"") >&5
13138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13140 egrep -v '^ *\+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 echo "$as_me:13143: \$? = $ac_status" >&5
13144 (exit $ac_status); } >/dev/null; then
13145 if test -s conftest.err; then
13146 ac_cpp_err=$ac_c_preproc_warn_flag
13153 if test -z "$ac_cpp_err"; then
13154 eval "$as_ac_Header=yes"
13156 echo "$as_me: failed program was:" >&5
13157 cat conftest.$ac_ext >&5
13158 eval "$as_ac_Header=no"
13160 rm -f conftest.err conftest.$ac_ext
13162 echo "$as_me:13162: result: `eval echo '${'$as_ac_Header'}'`" >&5
13163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13165 cat >>confdefs.h <<EOF
13166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13172 cf_wait_headers="#include <sys/types.h>
13174 if test $ac_cv_header_sys_wait_h = yes; then
13175 cf_wait_headers="$cf_wait_headers
13176 #include <sys/wait.h>
13180 for ac_header in wait.h
13182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13183 echo "$as_me:13183: checking for $ac_header" >&5
13184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 cat >conftest.$ac_ext <<_ACEOF
13189 #line 13189 "configure"
13190 #include "confdefs.h"
13191 #include <$ac_header>
13193 if { (eval echo "$as_me:13193: \"$ac_cpp conftest.$ac_ext\"") >&5
13194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13196 egrep -v '^ *\+' conftest.er1 >conftest.err
13198 cat conftest.err >&5
13199 echo "$as_me:13199: \$? = $ac_status" >&5
13200 (exit $ac_status); } >/dev/null; then
13201 if test -s conftest.err; then
13202 ac_cpp_err=$ac_c_preproc_warn_flag
13209 if test -z "$ac_cpp_err"; then
13210 eval "$as_ac_Header=yes"
13212 echo "$as_me: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 eval "$as_ac_Header=no"
13216 rm -f conftest.err conftest.$ac_ext
13218 echo "$as_me:13218: result: `eval echo '${'$as_ac_Header'}'`" >&5
13219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13221 cat >>confdefs.h <<EOF
13222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13228 for ac_header in waitstatus.h
13230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13231 echo "$as_me:13231: checking for $ac_header" >&5
13232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 cat >conftest.$ac_ext <<_ACEOF
13237 #line 13237 "configure"
13238 #include "confdefs.h"
13239 #include <$ac_header>
13241 if { (eval echo "$as_me:13241: \"$ac_cpp conftest.$ac_ext\"") >&5
13242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13244 egrep -v '^ *\+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 echo "$as_me:13247: \$? = $ac_status" >&5
13248 (exit $ac_status); } >/dev/null; then
13249 if test -s conftest.err; then
13250 ac_cpp_err=$ac_c_preproc_warn_flag
13257 if test -z "$ac_cpp_err"; then
13258 eval "$as_ac_Header=yes"
13260 echo "$as_me: failed program was:" >&5
13261 cat conftest.$ac_ext >&5
13262 eval "$as_ac_Header=no"
13264 rm -f conftest.err conftest.$ac_ext
13266 echo "$as_me:13266: result: `eval echo '${'$as_ac_Header'}'`" >&5
13267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13269 cat >>confdefs.h <<EOF
13270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13276 if test $ac_cv_header_wait_h = yes; then
13277 cf_wait_headers="$cf_wait_headers
13281 if test $ac_cv_header_waitstatus_h = yes; then
13282 cf_wait_headers="$cf_wait_headers
13283 #include <waitstatus.h>
13288 echo "$as_me:13288: checking for union wait" >&5
13289 echo $ECHO_N "checking for union wait... $ECHO_C" >&6
13290 if test "${cf_cv_type_unionwait+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 cat >conftest.$ac_ext <<_ACEOF
13295 #line 13295 "configure"
13296 #include "confdefs.h"
13302 int y = WEXITSTATUS(x);
13303 int z = WTERMSIG(x);
13310 rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (eval echo "$as_me:13311: \"$ac_link\"") >&5
13312 (eval $ac_link) 2>&5
13314 echo "$as_me:13314: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try='test -s conftest$ac_exeext'
13317 { (eval echo "$as_me:13317: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13320 echo "$as_me:13320: \$? = $ac_status" >&5
13321 (exit $ac_status); }; }; then
13322 cf_cv_type_unionwait=no
13323 echo compiles ok w/o union wait 1>&5
13326 echo "$as_me: failed program was:" >&5
13327 cat conftest.$ac_ext >&5
13329 cat >conftest.$ac_ext <<_ACEOF
13330 #line 13330 "configure"
13331 #include "confdefs.h"
13338 int y = WEXITSTATUS(x);
13341 int z = WTERMSIG(x);
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (eval echo "$as_me:13350: \"$ac_link\"") >&5
13351 (eval $ac_link) 2>&5
13353 echo "$as_me:13353: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
13355 { ac_try='test -s conftest$ac_exeext'
13356 { (eval echo "$as_me:13356: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13359 echo "$as_me:13359: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 cf_cv_type_unionwait=yes
13362 echo compiles ok with union wait and possibly macros too 1>&5
13365 echo "$as_me: failed program was:" >&5
13366 cat conftest.$ac_ext >&5
13367 cf_cv_type_unionwait=no
13369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13374 echo "$as_me:13374: result: $cf_cv_type_unionwait" >&5
13375 echo "${ECHO_T}$cf_cv_type_unionwait" >&6
13376 test $cf_cv_type_unionwait = yes && cat >>confdefs.h <<\EOF
13377 #define HAVE_TYPE_UNIONWAIT 1
13380 if test $cf_cv_type_unionwait = yes; then
13382 echo "$as_me:13382: checking if union wait can be used as wait-arg" >&5
13383 echo $ECHO_N "checking if union wait can be used as wait-arg... $ECHO_C" >&6
13384 if test "${cf_cv_arg_union_wait+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 cat >conftest.$ac_ext <<_ACEOF
13389 #line 13389 "configure"
13390 #include "confdefs.h"
13395 union wait x; wait(&x)
13400 rm -f conftest.$ac_objext
13401 if { (eval echo "$as_me:13401: \"$ac_compile\"") >&5
13402 (eval $ac_compile) 2>&5
13404 echo "$as_me:13404: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -s conftest.$ac_objext'
13407 { (eval echo "$as_me:13407: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 echo "$as_me:13410: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 cf_cv_arg_union_wait=yes
13414 echo "$as_me: failed program was:" >&5
13415 cat conftest.$ac_ext >&5
13416 cf_cv_arg_union_wait=no
13418 rm -f conftest.$ac_objext conftest.$ac_ext
13422 echo "$as_me:13422: result: $cf_cv_arg_union_wait" >&5
13423 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
13424 test $cf_cv_arg_union_wait = yes && cat >>confdefs.h <<\EOF
13425 #define WAIT_USES_UNION 1
13428 echo "$as_me:13428: checking if union wait can be used as waitpid-arg" >&5
13429 echo $ECHO_N "checking if union wait can be used as waitpid-arg... $ECHO_C" >&6
13430 if test "${cf_cv_arg_union_waitpid+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 cat >conftest.$ac_ext <<_ACEOF
13435 #line 13435 "configure"
13436 #include "confdefs.h"
13441 union wait x; waitpid(0, &x, 0)
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:13447: \"$ac_compile\"") >&5
13448 (eval $ac_compile) 2>&5
13450 echo "$as_me:13450: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try='test -s conftest.$ac_objext'
13453 { (eval echo "$as_me:13453: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13456 echo "$as_me:13456: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458 cf_cv_arg_union_waitpid=yes
13460 echo "$as_me: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13462 cf_cv_arg_union_waitpid=no
13464 rm -f conftest.$ac_objext conftest.$ac_ext
13468 echo "$as_me:13468: result: $cf_cv_arg_union_waitpid" >&5
13469 echo "${ECHO_T}$cf_cv_arg_union_waitpid" >&6
13470 test $cf_cv_arg_union_waitpid = yes && cat >>confdefs.h <<\EOF
13471 #define WAITPID_USES_UNION 1
13476 echo "$as_me:13476: checking if we must include wchar.h to declare mbstate_t" >&5
13477 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13478 if test "${cf_cv_mbstate_t+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 cat >conftest.$ac_ext <<_ACEOF
13483 #line 13483 "configure"
13484 #include "confdefs.h"
13486 #include <stdlib.h>
13488 #ifdef HAVE_LIBUTF8_H
13489 #include <libutf8.h>
13499 rm -f conftest.$ac_objext
13500 if { (eval echo "$as_me:13500: \"$ac_compile\"") >&5
13501 (eval $ac_compile) 2>&5
13503 echo "$as_me:13503: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -s conftest.$ac_objext'
13506 { (eval echo "$as_me:13506: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:13509: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13513 echo "$as_me: failed program was:" >&5
13514 cat conftest.$ac_ext >&5
13515 cat >conftest.$ac_ext <<_ACEOF
13516 #line 13516 "configure"
13517 #include "confdefs.h"
13519 #include <stdlib.h>
13522 #ifdef HAVE_LIBUTF8_H
13523 #include <libutf8.h>
13533 rm -f conftest.$ac_objext
13534 if { (eval echo "$as_me:13534: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>&5
13537 echo "$as_me:13537: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try='test -s conftest.$ac_objext'
13540 { (eval echo "$as_me:13540: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13543 echo "$as_me:13543: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 cf_cv_mbstate_t=yes
13547 echo "$as_me: failed program was:" >&5
13548 cat conftest.$ac_ext >&5
13549 cf_cv_mbstate_t=unknown
13551 rm -f conftest.$ac_objext conftest.$ac_ext
13553 rm -f conftest.$ac_objext conftest.$ac_ext
13555 echo "$as_me:13555: result: $cf_cv_mbstate_t" >&5
13556 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13558 if test "$cf_cv_mbstate_t" = yes ; then
13559 cat >>confdefs.h <<\EOF
13560 #define NEED_WCHAR_H 1
13565 if test "$cf_cv_mbstate_t" != unknown ; then
13566 cat >>confdefs.h <<\EOF
13567 #define HAVE_MBSTATE_T 1
13573 PACKAGE_CONFIG=dlg_config.h
13575 EXTRA_OUTPUT="$EXTRA_OUTPUT headers-sh:$srcdir/headers-sh.in"
13577 cat >conftest.$ac_ext <<_ACEOF
13578 #line 13578 "configure"
13579 #include "confdefs.h"
13580 #include <locale.h>
13584 setlocale(LC_ALL, "")
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (eval echo "$as_me:13590: \"$ac_link\"") >&5
13591 (eval $ac_link) 2>&5
13593 echo "$as_me:13593: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -s conftest$ac_exeext'
13596 { (eval echo "$as_me:13596: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13599 echo "$as_me:13599: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601 cat >>confdefs.h <<\EOF
13602 #define HAVE_SETLOCALE 1
13606 echo "$as_me: failed program was:" >&5
13607 cat conftest.$ac_ext >&5
13609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13612 echo "$as_me:13612: checking for an rpath option" >&5
13613 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
13614 case $cf_cv_system_name in #(vi
13616 if test "$GCC" = yes; then
13617 LD_RPATH_OPT="-Wl,-rpath,"
13619 LD_RPATH_OPT="-rpath "
13622 linux*|gnu*|k*bsd*-gnu) #(vi
13623 LD_RPATH_OPT="-Wl,-rpath,"
13625 openbsd[2-9].*|mirbsd*) #(vi
13626 LD_RPATH_OPT="-Wl,-rpath,"
13629 LD_RPATH_OPT="-rpath "
13632 LD_RPATH_OPT="-Wl,-rpath,"
13635 LD_RPATH_OPT="-rpath "
13643 echo "$as_me:13643: result: $LD_RPATH_OPT" >&5
13644 echo "${ECHO_T}$LD_RPATH_OPT" >&6
13646 case "x$LD_RPATH_OPT" in #(vi
13648 echo "$as_me:13648: checking if we need a space after rpath option" >&5
13649 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
13650 cf_save_LIBS="$LIBS"
13651 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
13652 cat >conftest.$ac_ext <<_ACEOF
13653 #line 13653 "configure"
13654 #include "confdefs.h"
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:13665: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>&5
13668 echo "$as_me:13668: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (eval echo "$as_me:13671: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:13674: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13678 echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13683 LIBS="$cf_save_LIBS"
13684 echo "$as_me:13684: result: $cf_rpath_space" >&5
13685 echo "${ECHO_T}$cf_rpath_space" >&6
13686 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
13690 echo "$as_me:13690: checking if rpath-hack should be disabled" >&5
13691 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
13693 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
13694 if test "${enable_rpath_hack+set}" = set; then
13695 enableval="$enable_rpath_hack"
13696 test "$enableval" != no && enableval=yes
13697 if test "$enableval" != "yes" ; then
13698 cf_disable_rpath_hack=yes
13700 cf_disable_rpath_hack=no
13704 cf_disable_rpath_hack=no
13707 echo "$as_me:13707: result: $cf_disable_rpath_hack" >&5
13708 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
13709 if test "$cf_disable_rpath_hack" = no ; then
13711 echo "$as_me:13711: checking for updated LDFLAGS" >&5
13712 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
13713 if test -n "$LD_RPATH_OPT" ; then
13714 echo "$as_me:13714: result: maybe" >&5
13715 echo "${ECHO_T}maybe" >&6
13719 # Extract the first word of "$ac_prog", so it can be a program name with args.
13720 set dummy $ac_prog; ac_word=$2
13721 echo "$as_me:13721: checking for $ac_word" >&5
13722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13723 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 if test -n "$cf_ldd_prog"; then
13727 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
13729 ac_save_IFS=$IFS; IFS=$ac_path_separator
13731 for ac_dir in $ac_dummy; do
13733 test -z "$ac_dir" && ac_dir=.
13734 $as_executable_p "$ac_dir/$ac_word" || continue
13735 ac_cv_prog_cf_ldd_prog="$ac_prog"
13736 echo "$as_me:13736: found $ac_dir/$ac_word" >&5
13742 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
13743 if test -n "$cf_ldd_prog"; then
13744 echo "$as_me:13744: result: $cf_ldd_prog" >&5
13745 echo "${ECHO_T}$cf_ldd_prog" >&6
13747 echo "$as_me:13747: result: no" >&5
13748 echo "${ECHO_T}no" >&6
13751 test -n "$cf_ldd_prog" && break
13753 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
13755 cf_rpath_list="/usr/lib /lib"
13756 if test "$cf_ldd_prog" != no
13760 cat >conftest.$ac_ext <<_ACEOF
13761 #line 13761 "configure"
13762 #include "confdefs.h"
13772 rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (eval echo "$as_me:13773: \"$ac_link\"") >&5
13774 (eval $ac_link) 2>&5
13776 echo "$as_me:13776: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try='test -s conftest$ac_exeext'
13779 { (eval echo "$as_me:13779: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:13782: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
13785 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
13787 echo "$as_me: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13792 # If we passed the link-test, but get a "not found" on a given library,
13793 # this could be due to inept reconfiguration of gcc to make it only
13794 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
13795 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
13796 # /usr/local libraries.
13797 if test -n "$cf_rpath_oops"
13799 for cf_rpath_src in $cf_rpath_oops
13801 for cf_rpath_dir in \
13806 if test -f $cf_rpath_dir/lib/$cf_rpath_src
13808 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
13810 echo "${as_me:-configure}:13810: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
13812 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
13820 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
13822 echo "${as_me:-configure}:13822: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
13824 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
13826 echo "${as_me:-configure}:13826: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
13829 for cf_rpath_src in $LDFLAGS
13831 case $cf_rpath_src in #(vi
13834 # check if this refers to a directory which we will ignore
13836 if test -n "$cf_rpath_list"
13838 for cf_rpath_item in $cf_rpath_list
13840 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
13848 if test "$cf_rpath_skip" = no
13850 # transform the option
13851 if test "$LD_RPATH_OPT" = "-R " ; then
13852 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
13854 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
13857 # if we have not already added this, add it now
13858 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
13859 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
13861 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
13863 echo "${as_me:-configure}:13863: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
13865 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
13870 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
13872 LDFLAGS=$cf_rpath_dst
13874 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
13876 echo "${as_me:-configure}:13876: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
13878 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
13880 echo "${as_me:-configure}:13880: testing ...checking LIBS $LIBS ..." 1>&5
13883 for cf_rpath_src in $LIBS
13885 case $cf_rpath_src in #(vi
13888 # check if this refers to a directory which we will ignore
13890 if test -n "$cf_rpath_list"
13892 for cf_rpath_item in $cf_rpath_list
13894 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
13902 if test "$cf_rpath_skip" = no
13904 # transform the option
13905 if test "$LD_RPATH_OPT" = "-R " ; then
13906 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
13908 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
13911 # if we have not already added this, add it now
13912 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
13913 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
13915 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
13917 echo "${as_me:-configure}:13917: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
13919 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
13924 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
13928 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
13930 echo "${as_me:-configure}:13930: testing ...checked LIBS $LIBS ..." 1>&5
13932 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
13934 echo "${as_me:-configure}:13934: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
13940 ac_config_files="$ac_config_files dialog-config makefile $EXTRA_OUTPUT $SUB_MAKEFILE samples/install/makefile"
13941 ac_config_commands="$ac_config_commands default"
13942 cat >confcache <<\_ACEOF
13943 # This file is a shell script that caches the results of configure
13944 # tests run on this system so they can be shared between configure
13945 # scripts and configure runs, see configure's option --config-cache.
13946 # It is not useful on other systems. If it contains results you don't
13947 # want to keep, you may remove or edit it.
13949 # config.status only pays attention to the cache file if you give it
13950 # the --recheck option to rerun configure.
13952 # `ac_cv_env_foo' variables (set or unset) will be overriden when
13953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13954 # following values.
13958 # The following way of writing the cache mishandles newlines in values,
13959 # but we know of no workaround that is simple, portable, and efficient.
13960 # So, don't put newlines in cache variables' values.
13961 # Ultrix sh set writes to stderr and can't be redirected directly,
13962 # and sets the high bit in the cache file unless we assign to the vars.
13965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13967 # `set' does not quote correctly, so add quotes (double-quote
13968 # substitution turns \\\\ into \\, and sed turns \\ into \).
13971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13974 # `set' quotes correctly as required by POSIX, so do not add quotes.
13976 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13985 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13987 if cmp -s $cache_file confcache; then :; else
13988 if test -w $cache_file; then
13989 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13990 cat confcache >$cache_file
13992 echo "not updating unwritable cache $cache_file"
13997 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13998 # Let make expand exec_prefix.
13999 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14001 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14002 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14003 # trailing colons and then remove the whole line if VPATH becomes empty
14004 # (actually we leave an empty line to preserve line numbers).
14005 if test "x$srcdir" = x.; then
14006 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14007 s/:*\$(srcdir):*/:/;
14008 s/:*\${srcdir}:*/:/;
14010 s/^\([^=]*=[ ]*\):*/\1/;
14016 DEFS=-DHAVE_CONFIG_H
14018 : ${CONFIG_STATUS=./config.status}
14019 ac_clean_files_save=$ac_clean_files
14020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14021 { echo "$as_me:14021: creating $CONFIG_STATUS" >&5
14022 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14023 cat >$CONFIG_STATUS <<_ACEOF
14025 # Generated automatically by configure.
14026 # Run this file to recreate the current configuration.
14027 # Compiler output produced by configure, useful for debugging
14028 # configure, is in config.log if it exists.
14031 SHELL=\${CONFIG_SHELL-$SHELL}
14032 ac_cs_invocation="\$0 \$@"
14036 cat >>$CONFIG_STATUS <<\_ACEOF
14037 # Be Bourne compatible
14038 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14041 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14045 # Name of the executable.
14046 as_me=`echo "$0" |sed 's,.*[\\/],,'`
14048 if expr a : '\(a\)' >/dev/null 2>&1; then
14054 rm -f conf$$ conf$$.exe conf$$.file
14056 if ln -s conf$$.file conf$$ 2>/dev/null; then
14057 # We could just check for DJGPP; but this test a) works b) is more generic
14058 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14059 if test -f conf$$.exe; then
14060 # Don't use ln at all; we don't have any links
14065 elif ln conf$$.file conf$$ 2>/dev/null; then
14070 rm -f conf$$ conf$$.exe conf$$.file
14072 as_executable_p="test -f"
14074 # Support unset when possible.
14075 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14082 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
14083 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
14084 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
14085 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
14086 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
14087 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
14088 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
14089 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
14092 # We need space, tab and new line, in precisely that order.
14098 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
14104 # Files that config.status was made for.
14105 if test -n "$ac_config_files"; then
14106 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14109 if test -n "$ac_config_headers"; then
14110 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14113 if test -n "$ac_config_links"; then
14114 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14117 if test -n "$ac_config_commands"; then
14118 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14121 cat >>$CONFIG_STATUS <<\EOF
14124 \`$as_me' instantiates files from templates according to the
14125 current configuration.
14127 Usage: $0 [OPTIONS] [FILE]...
14129 -h, --help print this help, then exit
14130 -V, --version print version number, then exit
14131 -d, --debug don't remove temporary files
14132 --recheck update $as_me by reconfiguring in the same conditions
14133 --file=FILE[:TEMPLATE]
14134 instantiate the configuration file FILE
14135 --header=FILE[:TEMPLATE]
14136 instantiate the configuration header FILE
14138 Configuration files:
14141 Configuration headers:
14144 Configuration commands:
14147 Report bugs to <dickey@invisible-island.net>."
14150 cat >>$CONFIG_STATUS <<EOF
14153 configured by $0, generated by GNU Autoconf 2.52.20101002,
14154 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14156 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14157 Free Software Foundation, Inc.
14158 This config.status script is free software; the Free Software Foundation
14159 gives unlimited permission to copy, distribute and modify it."
14164 cat >>$CONFIG_STATUS <<\EOF
14165 # If no file are specified by the user, then we need to provide default
14166 # value. By we need to know if files were specified by the user.
14172 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14173 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14175 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14179 *) # This is not an option, so the user has probably given explicit
14181 ac_need_defaults=false;;
14185 # Handling of the options.
14187 cat >>$CONFIG_STATUS <<EOF
14188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14189 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14190 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14192 cat >>$CONFIG_STATUS <<\EOF
14193 --version | --vers* | -V )
14194 echo "$ac_cs_version"; exit 0 ;;
14196 # Conflict between --help and --header
14197 { { echo "$as_me:14197: error: ambiguous option: $1
14198 Try \`$0 --help' for more information." >&5
14199 echo "$as_me: error: ambiguous option: $1
14200 Try \`$0 --help' for more information." >&2;}
14201 { (exit 1); exit 1; }; };;
14202 --help | --hel | -h )
14203 echo "$ac_cs_usage"; exit 0 ;;
14204 --debug | --d* | -d )
14206 --file | --fil | --fi | --f )
14208 CONFIG_FILES="$CONFIG_FILES $1"
14209 ac_need_defaults=false;;
14210 --header | --heade | --head | --hea )
14212 CONFIG_HEADERS="$CONFIG_HEADERS $1"
14213 ac_need_defaults=false;;
14215 # This is an error.
14216 -*) { { echo "$as_me:14216: error: unrecognized option: $1
14217 Try \`$0 --help' for more information." >&5
14218 echo "$as_me: error: unrecognized option: $1
14219 Try \`$0 --help' for more information." >&2;}
14220 { (exit 1); exit 1; }; } ;;
14222 *) ac_config_targets="$ac_config_targets $1" ;;
14231 ## ----------------------- ##
14232 ## Running config.status. ##
14233 ## ----------------------- ##
14235 This file was extended by $as_me 2.52.20101002, executed with
14236 CONFIG_FILES = $CONFIG_FILES
14237 CONFIG_HEADERS = $CONFIG_HEADERS
14238 CONFIG_LINKS = $CONFIG_LINKS
14239 CONFIG_COMMANDS = $CONFIG_COMMANDS
14240 > $ac_cs_invocation
14241 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14246 cat >>$CONFIG_STATUS <<EOF
14248 # INIT-COMMANDS section.
14253 cat >>$CONFIG_STATUS <<\EOF
14254 for ac_config_target in $ac_config_targets
14256 case "$ac_config_target" in
14257 # Handling of arguments.
14258 "dialog-config" ) CONFIG_FILES="$CONFIG_FILES dialog-config" ;;
14259 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
14260 "$EXTRA_OUTPUT" ) CONFIG_FILES="$CONFIG_FILES $EXTRA_OUTPUT" ;;
14261 "$SUB_MAKEFILE" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILE" ;;
14262 "samples/install/makefile" ) CONFIG_FILES="$CONFIG_FILES samples/install/makefile" ;;
14263 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14264 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14265 "dlg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS dlg_config.h:config.hin" ;;
14266 *) { { echo "$as_me:14266: error: invalid argument: $ac_config_target" >&5
14267 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14268 { (exit 1); exit 1; }; };;
14272 # If the user did not use the arguments to specify the items to instantiate,
14273 # then the envvar interface is used. Set only those that are not.
14274 # We use the long form for the default assignment because of an extremely
14275 # bizarre bug on SunOS 4.1.3.
14276 if $ac_need_defaults; then
14277 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14278 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14279 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14282 # Create a temporary directory, and hook for its removal unless debugging.
14285 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14286 trap '{ (exit 1); exit 1; }' 1 2 13 15
14289 # Create a (secure) tmp directory for tmp files.
14292 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14293 test -n "$tmp" && test -d "$tmp"
14296 tmp=$TMPDIR/cs$$-$RANDOM
14297 (umask 077 && mkdir $tmp)
14300 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14301 { (exit 1); exit 1; }
14306 cat >>$CONFIG_STATUS <<EOF
14309 # CONFIG_FILES section.
14312 # No need to generate the scripts if there are no CONFIG_FILES.
14313 # This happens for instance when ./config.status config.h
14314 if test -n "\$CONFIG_FILES"; then
14315 # Protect against being on the right side of a sed subst in config.status.
14316 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14317 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14318 s,@SHELL@,$SHELL,;t t
14319 s,@exec_prefix@,$exec_prefix,;t t
14320 s,@prefix@,$prefix,;t t
14321 s,@program_transform_name@,$program_transform_name,;t t
14322 s,@bindir@,$bindir,;t t
14323 s,@sbindir@,$sbindir,;t t
14324 s,@libexecdir@,$libexecdir,;t t
14325 s,@datadir@,$datadir,;t t
14326 s,@sysconfdir@,$sysconfdir,;t t
14327 s,@sharedstatedir@,$sharedstatedir,;t t
14328 s,@localstatedir@,$localstatedir,;t t
14329 s,@libdir@,$libdir,;t t
14330 s,@includedir@,$includedir,;t t
14331 s,@oldincludedir@,$oldincludedir,;t t
14332 s,@infodir@,$infodir,;t t
14333 s,@mandir@,$mandir,;t t
14334 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14335 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14336 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14337 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14338 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14339 s,@build_alias@,$build_alias,;t t
14340 s,@host_alias@,$host_alias,;t t
14341 s,@target_alias@,$target_alias,;t t
14342 s,@ECHO_C@,$ECHO_C,;t t
14343 s,@ECHO_N@,$ECHO_N,;t t
14344 s,@ECHO_T@,$ECHO_T,;t t
14345 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14346 s,@DEFS@,$DEFS,;t t
14347 s,@LIBS@,$LIBS,;t t
14348 s,@DESTDIR@,$DESTDIR,;t t
14350 s,@CFLAGS@,$CFLAGS,;t t
14351 s,@LDFLAGS@,$LDFLAGS,;t t
14352 s,@CPPFLAGS@,$CPPFLAGS,;t t
14353 s,@ac_ct_CC@,$ac_ct_CC,;t t
14354 s,@EXEEXT@,$EXEEXT,;t t
14355 s,@OBJEXT@,$OBJEXT,;t t
14357 s,@SET_MAKE@,$SET_MAKE,;t t
14358 s,@RANLIB@,$RANLIB,;t t
14359 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14360 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14361 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14362 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14364 s,@ac_ct_AR@,$ac_ct_AR,;t t
14365 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
14366 s,@CTAGS@,$CTAGS,;t t
14367 s,@ETAGS@,$ETAGS,;t t
14368 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
14369 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
14370 s,@ECHO_LT@,$ECHO_LT,;t t
14371 s,@ECHO_LD@,$ECHO_LD,;t t
14372 s,@RULE_CC@,$RULE_CC,;t t
14373 s,@SHOW_CC@,$SHOW_CC,;t t
14374 s,@ECHO_CC@,$ECHO_CC,;t t
14375 s,@build@,$build,;t t
14376 s,@build_cpu@,$build_cpu,;t t
14377 s,@build_vendor@,$build_vendor,;t t
14378 s,@build_os@,$build_os,;t t
14379 s,@host@,$host,;t t
14380 s,@host_cpu@,$host_cpu,;t t
14381 s,@host_vendor@,$host_vendor,;t t
14382 s,@host_os@,$host_os,;t t
14383 s,@PROG_EXT@,$PROG_EXT,;t t
14384 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
14385 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
14386 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
14387 s,@VERSION@,$VERSION,;t t
14388 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
14389 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
14390 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
14391 s,@PACKAGE@,$PACKAGE,;t t
14392 s,@SUB_INC@,$SUB_INC,;t t
14393 s,@CONFIG_H@,$CONFIG_H,;t t
14394 s,@ALLOCA@,$ALLOCA,;t t
14395 s,@GLIBC21@,$GLIBC21,;t t
14396 s,@LIBICONV@,$LIBICONV,;t t
14397 s,@USE_NLS@,$USE_NLS,;t t
14398 s,@MSGFMT@,$MSGFMT,;t t
14399 s,@GMSGFMT@,$GMSGFMT,;t t
14400 s,@XGETTEXT@,$XGETTEXT,;t t
14401 s,@INTLBISON@,$INTLBISON,;t t
14402 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14403 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14404 s,@CATALOGS@,$CATALOGS,;t t
14405 s,@CATOBJEXT@,$CATOBJEXT,;t t
14406 s,@GMOFILES@,$GMOFILES,;t t
14407 s,@INTLLIBS@,$INTLLIBS,;t t
14408 s,@INTLOBJS@,$INTLOBJS,;t t
14409 s,@POFILES@,$POFILES,;t t
14410 s,@POSUB@,$POSUB,;t t
14411 s,@DATADIRNAME@,$DATADIRNAME,;t t
14412 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14413 s,@GENCAT@,$GENCAT,;t t
14414 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14415 s,@NLS_TEXTDOMAIN@,$NLS_TEXTDOMAIN,;t t
14416 s,@MSG_DIR_MAKE@,$MSG_DIR_MAKE,;t t
14417 s,@SUB_MAKEFILE@,$SUB_MAKEFILE,;t t
14418 s,@INTLDIR_MAKE@,$INTLDIR_MAKE,;t t
14419 s,@GT_YES@,$GT_YES,;t t
14420 s,@GT_NO@,$GT_NO,;t t
14421 s,@LINK_PREFIX@,$LINK_PREFIX,;t t
14422 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
14423 s,@LIBTOOL@,$LIBTOOL,;t t
14424 s,@LT_UNDEF@,$LT_UNDEF,;t t
14425 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
14426 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
14427 s,@LIB_CREATE@,$LIB_CREATE,;t t
14428 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
14429 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
14430 s,@LIB_PREP@,$LIB_PREP,;t t
14431 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
14432 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
14433 s,@LIB_LINK@,$LIB_LINK,;t t
14434 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
14435 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
14436 s,@LIBTOOL_MAKE@,$LIBTOOL_MAKE,;t t
14437 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
14438 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
14439 s,@PACKAGE_PREFIX@,$PACKAGE_PREFIX,;t t
14440 s,@PACKAGE_CONFIG@,$PACKAGE_CONFIG,;t t
14441 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
14442 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
14447 cat >>$CONFIG_STATUS <<\EOF
14448 # Split the substitutions into bite-sized pieces for seds with
14449 # small command number limits, like on Digital OSF/1 and HP-UX.
14450 ac_max_sed_lines=48
14451 ac_sed_frag=1 # Number of current file.
14452 ac_beg=1 # First line for current file.
14453 ac_end=$ac_max_sed_lines # Line after last line for current file.
14456 while $ac_more_lines; do
14457 if test $ac_beg -gt 1; then
14458 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14460 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14462 if test ! -s $tmp/subs.frag; then
14463 ac_more_lines=false
14465 # The purpose of the label and of the branching condition is to
14466 # speed up the sed processing (if there are no `@' at all, there
14467 # is no need to browse any of the substitutions).
14468 # These are the two extra sed commands mentioned above.
14470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14471 if test -z "$ac_sed_cmds"; then
14472 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14474 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14476 ac_sed_frag=`expr $ac_sed_frag + 1`
14478 ac_end=`expr $ac_end + $ac_max_sed_lines`
14481 if test -z "$ac_sed_cmds"; then
14484 fi # test -n "$CONFIG_FILES"
14487 cat >>$CONFIG_STATUS <<\EOF
14488 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14489 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14491 - | *:- | *:-:* ) # input from stdin
14493 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14495 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14496 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14497 * ) ac_file_in=$ac_file.in ;;
14500 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14501 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14502 X"$ac_file" : 'X\(//\)[^/]' \| \
14503 X"$ac_file" : 'X\(//\)$' \| \
14504 X"$ac_file" : 'X\(/\)' \| \
14505 . : '\(.\)' 2>/dev/null ||
14507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14509 /^X\(\/\/\)$/{ s//\1/; q; }
14510 /^X\(\/\).*/{ s//\1/; q; }
14512 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14513 { case "$ac_dir" in
14514 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14518 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14519 case $as_mkdir_dir in
14520 # Skip DOS drivespec
14521 ?:) as_incr_dir=$as_mkdir_dir ;;
14523 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14524 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
14529 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
14530 # A "../" for each directory in $ac_dir_suffix.
14531 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
14533 ac_dir_suffix= ac_dots=
14538 if test -z "$ac_dots"; then
14541 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
14543 [\\/]* | ?:[\\/]* )
14544 ac_srcdir=$srcdir$ac_dir_suffix;
14545 ac_top_srcdir=$srcdir ;;
14546 *) # Relative path.
14547 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
14548 ac_top_srcdir=$ac_dots$srcdir ;;
14552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14553 *) ac_INSTALL=$ac_dots$INSTALL ;;
14556 if test x"$ac_file" != x-; then
14557 { echo "$as_me:14557: creating $ac_file" >&5
14558 echo "$as_me: creating $ac_file" >&6;}
14561 # Let's still pretend it is `configure' which instantiates (i.e., don't
14562 # use $as_me), people would be surprised to read:
14563 # /* config.h. Generated automatically by config.status. */
14564 configure_input="Generated automatically from `echo $ac_file_in |
14565 sed 's,.*/,,'` by configure."
14567 # First look for the input files in the build tree, otherwise in the
14569 ac_file_inputs=`IFS=:
14570 for f in $ac_file_in; do
14572 -) echo $tmp/stdin ;;
14574 # Absolute (can't be DOS-style, as IFS=:)
14575 test -f "$f" || { { echo "$as_me:14575: error: cannot find input file: $f" >&5
14576 echo "$as_me: error: cannot find input file: $f" >&2;}
14577 { (exit 1); exit 1; }; }
14580 if test -f "$f"; then
14583 elif test -f "$srcdir/$f"; then
14588 { { echo "$as_me:14588: error: cannot find input file: $f" >&5
14589 echo "$as_me: error: cannot find input file: $f" >&2;}
14590 { (exit 1); exit 1; }; }
14593 done` || { (exit 1); exit 1; }
14595 cat >>$CONFIG_STATUS <<EOF
14599 cat >>$CONFIG_STATUS <<\EOF
14601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14602 s,@configure_input@,$configure_input,;t t
14603 s,@srcdir@,$ac_srcdir,;t t
14604 s,@top_srcdir@,$ac_top_srcdir,;t t
14605 s,@INSTALL@,$ac_INSTALL,;t t
14606 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14608 if test x"$ac_file" != x-; then
14609 mv $tmp/out $ac_file
14617 cat >>$CONFIG_STATUS <<\EOF
14620 # CONFIG_HEADER section.
14623 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14624 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14626 # ac_d sets the value in "#define NAME VALUE" lines.
14627 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14628 ac_dB='[ ].*$,\1#\2'
14631 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14632 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14633 ac_iB='\([ ]\),\1#\2define\3'
14636 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14637 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14638 ac_uB='$,\1#\2define\3'
14642 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14643 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14645 - | *:- | *:-:* ) # input from stdin
14647 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14648 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14649 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14650 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14651 * ) ac_file_in=$ac_file.in ;;
14654 test x"$ac_file" != x- && { echo "$as_me:14654: creating $ac_file" >&5
14655 echo "$as_me: creating $ac_file" >&6;}
14657 # First look for the input files in the build tree, otherwise in the
14659 ac_file_inputs=`IFS=:
14660 for f in $ac_file_in; do
14662 -) echo $tmp/stdin ;;
14664 # Absolute (can't be DOS-style, as IFS=:)
14665 test -f "$f" || { { echo "$as_me:14665: error: cannot find input file: $f" >&5
14666 echo "$as_me: error: cannot find input file: $f" >&2;}
14667 { (exit 1); exit 1; }; }
14670 if test -f "$f"; then
14673 elif test -f "$srcdir/$f"; then
14678 { { echo "$as_me:14678: error: cannot find input file: $f" >&5
14679 echo "$as_me: error: cannot find input file: $f" >&2;}
14680 { (exit 1); exit 1; }; }
14683 done` || { (exit 1); exit 1; }
14684 # Remove the trailing spaces.
14685 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14689 # Transform confdefs.h into a list of #define's. We won't use it as a sed
14690 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
14691 # be either 'cat' or 'sort'.
14692 sort -u confdefs.h | uniq >conftest.vals
14694 # Break up conftest.vals because some shells have a limit on
14695 # the size of here documents, and old seds have small limits too.
14697 rm -f conftest.tail
14698 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
14699 while grep . conftest.vals >/dev/null
14701 # Write chunks of a limited-size here document to conftest.frag.
14702 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
14703 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
14704 echo 'CEOF' >> $CONFIG_STATUS
14705 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14706 rm -f conftest.vals
14707 mv conftest.tail conftest.vals
14709 rm -f conftest.vals
14711 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
14713 echo ' cat >> conftest.edit <<CEOF
14714 /@DEFS@/r conftest.frag
14717 sed -f conftest.edit $tmp/in > $tmp/out
14719 mv $tmp/out $tmp/in
14720 rm -f conftest.edit conftest.frag
14721 ' >> $CONFIG_STATUS
14723 cat >>$CONFIG_STATUS <<\EOF
14724 # Let's still pretend it is `configure' which instantiates (i.e., don't
14725 # use $as_me), people would be surprised to read:
14726 # /* config.h. Generated automatically by config.status. */
14727 if test x"$ac_file" = x-; then
14728 echo "/* Generated automatically by configure. */" >$tmp/config.h
14730 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
14732 cat $tmp/in >>$tmp/config.h
14734 if test x"$ac_file" != x-; then
14735 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14736 { echo "$as_me:14736: $ac_file is unchanged" >&5
14737 echo "$as_me: $ac_file is unchanged" >&6;}
14739 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14740 X"$ac_file" : 'X\(//\)[^/]' \| \
14741 X"$ac_file" : 'X\(//\)$' \| \
14742 X"$ac_file" : 'X\(/\)' \| \
14743 . : '\(.\)' 2>/dev/null ||
14745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14747 /^X\(\/\/\)$/{ s//\1/; q; }
14748 /^X\(\/\).*/{ s//\1/; q; }
14750 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14751 { case "$ac_dir" in
14752 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14756 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14757 case $as_mkdir_dir in
14758 # Skip DOS drivespec
14759 ?:) as_incr_dir=$as_mkdir_dir ;;
14761 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14762 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
14769 mv $tmp/config.h $ac_file
14773 rm -f $tmp/config.h
14777 cat >>$CONFIG_STATUS <<\EOF
14779 # CONFIG_COMMANDS section.
14781 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14782 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14783 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14786 default-1 ) for ac_file in $CONFIG_FILES; do
14788 # Support "outfile[:infile[:infile...]]"
14790 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14793 # PO directories have a Makefile.in generated from Makefile.inn.
14794 case "$ac_file" in */[Mm]akefile.in)
14795 # Adjust a relative srcdir.
14796 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14797 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14798 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14799 ac_base=`basename $ac_file .in`
14800 # In autoconf-2.13 it is called $ac_given_srcdir.
14801 # In autoconf-2.50 it is called $srcdir.
14802 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14804 case "$ac_given_srcdir" in
14805 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14806 /*) top_srcdir="$ac_given_srcdir" ;;
14807 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14810 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14811 rm -f "$ac_dir/POTFILES"
14812 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14813 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
14814 test -n "$as_me" && echo "$as_me: creating $ac_dir/$ac_base" || echo "creating $ac_dir/$ac_base"
14815 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/$ac_base.in" > "$ac_dir/$ac_base"
14824 cat >>$CONFIG_STATUS <<\EOF
14826 { (exit 0); exit 0; }
14828 chmod +x $CONFIG_STATUS
14829 ac_clean_files=$ac_clean_files_save
14831 # configure is writing to config.log, and then calls config.status.
14832 # config.status does its own redirection, appending to config.log.
14833 # Unfortunately, on DOS this fails, as config.log is still kept open
14834 # by configure, so config.status won't be able to write to it; its
14835 # output is simply discarded. So we exec the FD to /dev/null,
14836 # effectively closing config.log, so it can be properly (re)opened and
14837 # appended to by config.status. When coming back to configure, we
14838 # need to make the FD available again.
14839 if test "$no_create" != yes; then
14842 $SHELL $CONFIG_STATUS || ac_cs_success=false
14844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14845 # would make configure fail if this is the last instruction.
14846 $ac_cs_success || { (exit 1); exit 1; }