2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20121002.
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 datarootdir='${prefix}/share'
174 datadir='${datarootdir}'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${datarootdir}/info'
182 mandir='${datarootdir}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
234 | --dataroo | --dataro | --datar)
235 ac_prev=datarootdir ;;
236 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
237 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
238 datarootdir=$ac_optarg ;;
240 -disable-* | --disable-*)
241 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
242 # Reject names that are not valid shell variable names.
243 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
244 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
245 { (exit 1); exit 1; }; }
246 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
247 eval "enable_$ac_feature=no" ;;
249 -enable-* | --enable-*)
250 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
251 # Reject names that are not valid shell variable names.
252 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
253 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
254 { (exit 1); exit 1; }; }
255 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
257 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
260 eval "enable_$ac_feature='$ac_optarg'" ;;
262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264 | --exec | --exe | --ex)
265 ac_prev=exec_prefix ;;
266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268 | --exec=* | --exe=* | --ex=*)
269 exec_prefix=$ac_optarg ;;
271 -gas | --gas | --ga | --g)
272 # Obsolete; use --with-gas.
275 -help | --help | --hel | --he | -h)
277 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
278 ac_init_help=recursive ;;
279 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
280 ac_init_help=short ;;
282 -host | --host | --hos | --ho)
283 ac_prev=host_alias ;;
284 -host=* | --host=* | --hos=* | --ho=*)
285 host_alias=$ac_optarg ;;
287 -includedir | --includedir | --includedi | --included | --include \
288 | --includ | --inclu | --incl | --inc)
289 ac_prev=includedir ;;
290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291 | --includ=* | --inclu=* | --incl=* | --inc=*)
292 includedir=$ac_optarg ;;
294 -infodir | --infodir | --infodi | --infod | --info | --inf)
296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297 infodir=$ac_optarg ;;
299 -libdir | --libdir | --libdi | --libd)
301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305 | --libexe | --libex | --libe)
306 ac_prev=libexecdir ;;
307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308 | --libexe=* | --libex=* | --libe=*)
309 libexecdir=$ac_optarg ;;
311 -localstatedir | --localstatedir | --localstatedi | --localstated \
312 | --localstate | --localstat | --localsta | --localst \
313 | --locals | --local | --loca | --loc | --lo)
314 ac_prev=localstatedir ;;
315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318 localstatedir=$ac_optarg ;;
320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
326 # Obsolete; use --without-fp.
329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339 | --oldin | --oldi | --old | --ol | --o)
340 ac_prev=oldincludedir ;;
341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344 oldincludedir=$ac_optarg ;;
346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
351 -program-prefix | --program-prefix | --program-prefi | --program-pref \
352 | --program-pre | --program-pr | --program-p)
353 ac_prev=program_prefix ;;
354 -program-prefix=* | --program-prefix=* | --program-prefi=* \
355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356 program_prefix=$ac_optarg ;;
358 -program-suffix | --program-suffix | --program-suffi | --program-suff \
359 | --program-suf | --program-su | --program-s)
360 ac_prev=program_suffix ;;
361 -program-suffix=* | --program-suffix=* | --program-suffi=* \
362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
373 -program-transform-name=* | --program-transform-name=* \
374 | --program-transform-nam=* | --program-transform-na=* \
375 | --program-transform-n=* | --program-transform-=* \
376 | --program-transform=* | --program-transfor=* \
377 | --program-transfo=* | --program-transf=* \
378 | --program-trans=* | --program-tran=* \
379 | --progr-tra=* | --program-tr=* | --program-t=*)
380 program_transform_name=$ac_optarg ;;
382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383 | -silent | --silent | --silen | --sile | --sil)
386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
390 sbindir=$ac_optarg ;;
392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394 | --sharedst | --shareds | --shared | --share | --shar \
396 ac_prev=sharedstatedir ;;
397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
401 sharedstatedir=$ac_optarg ;;
403 -site | --site | --sit)
405 -site=* | --site=* | --sit=*)
408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414 | --syscon | --sysco | --sysc | --sys | --sy)
415 ac_prev=sysconfdir ;;
416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418 sysconfdir=$ac_optarg ;;
420 -target | --target | --targe | --targ | --tar | --ta | --t)
421 ac_prev=target_alias ;;
422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423 target_alias=$ac_optarg ;;
425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
428 -version | --version | --versio | --versi | --vers | -V)
432 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
433 # Reject names that are not valid shell variable names.
434 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
435 { echo "$as_me: error: invalid package name: $ac_package" >&2
436 { (exit 1); exit 1; }; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
439 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
442 eval "with_$ac_package='$ac_optarg'" ;;
444 -without-* | --without-*)
445 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo $ac_package | sed 's/-/_/g'`
451 eval "with_$ac_package=no" ;;
454 # Obsolete; use --with-x.
457 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
458 | --x-incl | --x-inc | --x-in | --x-i)
459 ac_prev=x_includes ;;
460 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
461 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
462 x_includes=$ac_optarg ;;
464 -x-libraries | --x-libraries | --x-librarie | --x-librari \
465 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
466 ac_prev=x_libraries ;;
467 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
468 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
469 x_libraries=$ac_optarg ;;
471 -*) { echo "$as_me: error: unrecognized option: $ac_option
472 Try \`$0 --help' for more information." >&2
473 { (exit 1); exit 1; }; }
477 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
478 # Reject names that are not valid shell variable names.
479 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
480 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
481 { (exit 1); exit 1; }; }
482 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
483 eval "$ac_envvar='$ac_optarg'"
487 # FIXME: should be removed in autoconf 3.0.
488 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
489 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
490 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
491 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
497 if test -n "$ac_prev"; then
498 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
499 { echo "$as_me: error: missing argument to $ac_option" >&2
500 { (exit 1); exit 1; }; }
503 # Be sure to have absolute paths.
504 for ac_var in exec_prefix prefix
506 eval ac_val=$`echo $ac_var`
508 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
509 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
510 { (exit 1); exit 1; }; };;
514 # Be sure to have absolute paths.
515 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
516 localstatedir libdir includedir oldincludedir infodir mandir
518 eval ac_val=$`echo $ac_var`
520 [\\/$]* | ?:[\\/]* ) ;;
521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
522 { (exit 1); exit 1; }; };;
526 # There might be people who depend on the old broken behavior: `$host'
527 # used to hold the argument of --host etc.
532 # FIXME: should be removed in autoconf 3.0.
533 if test "x$host_alias" != x; then
534 if test "x$build_alias" = x; then
535 cross_compiling=maybe
536 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
537 If a cross compiler is detected then cross compile mode will be used." >&2
538 elif test "x$build_alias" != "x$host_alias"; then
544 test -n "$host_alias" && ac_tool_prefix=$host_alias-
546 test "$silent" = yes && exec 6>/dev/null
548 # Find the source files, if location was not specified.
549 if test -z "$srcdir"; then
550 ac_srcdir_defaulted=yes
551 # Try the directory containing this script, then its parent.
553 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
554 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
556 if test ! -r $srcdir/$ac_unique_file; then
560 ac_srcdir_defaulted=no
562 if test ! -r $srcdir/$ac_unique_file; then
563 if test "$ac_srcdir_defaulted" = yes; then
564 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
565 { (exit 1); exit 1; }; }
567 { echo "$as_me: error: cannot find sources in $srcdir" >&2
568 { (exit 1); exit 1; }; }
571 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
572 ac_env_build_alias_set=${build_alias+set}
573 ac_env_build_alias_value=$build_alias
574 ac_cv_env_build_alias_set=${build_alias+set}
575 ac_cv_env_build_alias_value=$build_alias
576 ac_env_host_alias_set=${host_alias+set}
577 ac_env_host_alias_value=$host_alias
578 ac_cv_env_host_alias_set=${host_alias+set}
579 ac_cv_env_host_alias_value=$host_alias
580 ac_env_target_alias_set=${target_alias+set}
581 ac_env_target_alias_value=$target_alias
582 ac_cv_env_target_alias_set=${target_alias+set}
583 ac_cv_env_target_alias_value=$target_alias
584 ac_env_CC_set=${CC+set}
586 ac_cv_env_CC_set=${CC+set}
587 ac_cv_env_CC_value=$CC
588 ac_env_CFLAGS_set=${CFLAGS+set}
589 ac_env_CFLAGS_value=$CFLAGS
590 ac_cv_env_CFLAGS_set=${CFLAGS+set}
591 ac_cv_env_CFLAGS_value=$CFLAGS
592 ac_env_LDFLAGS_set=${LDFLAGS+set}
593 ac_env_LDFLAGS_value=$LDFLAGS
594 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
595 ac_cv_env_LDFLAGS_value=$LDFLAGS
596 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
597 ac_env_CPPFLAGS_value=$CPPFLAGS
598 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
599 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
600 ac_env_CPP_set=${CPP+set}
601 ac_env_CPP_value=$CPP
602 ac_cv_env_CPP_set=${CPP+set}
603 ac_cv_env_CPP_value=$CPP
606 # Report the --help message.
608 if test "$ac_init_help" = "long"; then
609 # Omit some internal or obsolete options to make the list less imposing.
610 # This message is too long to be a string in the A/UX 3.1 sh.
612 \`configure' configures this package to adapt to many kinds of systems.
614 Usage: $0 [OPTION]... [VAR=VALUE]...
616 To assign environment variables (e.g., CC, CFLAGS...), specify them as
617 VAR=VALUE. See below for descriptions of some of the useful variables.
619 Defaults for the options are specified in brackets.
622 -h, --help display this help and exit
623 --help=short display options specific to this package
624 --help=recursive display the short help of all the included packages
625 -V, --version display version information and exit
626 -q, --quiet, --silent do not print \`checking...' messages
627 --cache-file=FILE cache test results in FILE [disabled]
628 -C, --config-cache alias for \`--cache-file=config.cache'
629 -n, --no-create do not create output files
630 --srcdir=DIR find the sources in DIR [configure dir or \`..']
635 Installation directories:
636 --prefix=PREFIX install architecture-independent files in PREFIX
638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
641 By default, \`make install' will install all the files in
642 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
643 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
644 for instance \`--prefix=\$HOME'.
646 For better control, use the options below.
648 Fine tuning of the installation directories:
649 --bindir=DIR user executables [EPREFIX/bin]
650 --sbindir=DIR system admin executables [EPREFIX/sbin]
651 --libexecdir=DIR program executables [EPREFIX/libexec]
652 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
654 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
655 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
656 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
657 --libdir=DIR object code libraries [EPREFIX/lib]
658 --includedir=DIR C header files [PREFIX/include]
659 --oldincludedir=DIR C header files for non-gcc [/usr/include]
660 --infodir=DIR info documentation [DATAROOTDIR/info]
661 --mandir=DIR man documentation [DATAROOTDIR/man]
667 --program-prefix=PREFIX prepend PREFIX to installed program names
668 --program-suffix=SUFFIX append SUFFIX to installed program names
669 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
672 --build=BUILD configure for building on BUILD [guessed]
673 --host=HOST build programs to run on HOST [BUILD]
677 if test -n "$ac_init_help"; then
682 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
683 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
686 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
687 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
689 --disable-echo do not display "compiling" commands
690 --disable-largefile omit support for large files
691 --with-warnings test: turn on gcc warnings
692 --with-pkg-config{=path} enable/disable use of pkg-config
693 --with-package=XXX rename dialog to XXX, library to libXXX.a, etc
694 --enable-header-subdir install dlg_XXX headers to subdirectory
695 --with-libiconv-prefix=DIR
696 search for libiconv in DIR/include and DIR/lib
697 --enable-nls use Native Language Support
698 --with-included-gettext use the GNU gettext library included here
699 --with-textdomain=PKG NLS text-domain (default is package name)
700 --disable-included-msgs use included messages, for i18n support
701 --with-dmalloc test: use Gray Watson's dmalloc library
702 --with-dbmalloc test: use Conor Cahill's dbmalloc library
703 --with-purify test: use Purify
704 --with-valgrind test: use valgrind
705 --with-no-leaks test: free permanent memory, analyze leaks
706 --disable-trace do not support --trace option
707 --with-rel-version=XXX override derived release version
708 --with-abi-version=XXX override derived ABI version
709 --disable-libtool-version enable to use libtool's incompatible naming scheme
710 --with-libtool generate libraries with libtool
711 --with-libtool-opts=XXX specify additional libtool options
712 --with-shared generate shared-libraries
713 --with-shlib-version=X Specify rel or abi version for shared libs
714 --with-curses-dir=DIR directory in which (n)curses is installed
715 --enable-rpath use rpath option when generating shared libraries
716 --with-ncurses compile/link with ncurses library
717 --with-ncursesw compile/link with wide-char ncurses library
718 --disable-extras do not include extra dialogs
719 --disable-rc-file do not include config-file support
720 --disable-Xdialog do not include Xdialog-style dialogs (1.1)
721 --disable-Xdialog2 do not include extra Xdialog-style dialogs (1.2)
722 --disable-whiptail do not map extra whiptail options
723 --disable-form do not include the form dialog
724 --disable-gauge do not include the gauge dialogs
725 --disable-tailbox do not include the tailbox dialog
726 --disable-mixedform do not include the mixedform dialog
727 --disable-mixedgauge do not include the mixedgauge dialog
728 --enable-widec enable wide-curses features
729 --disable-rpath-hack don't add rpath options for additional libraries
731 Some influential environment variables:
732 CC C compiler command
733 CFLAGS C compiler flags
734 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
735 nonstandard directory <lib dir>
736 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
737 headers in a nonstandard directory <include dir>
740 Use these variables to override the choices made by `configure' or to help
741 it to find libraries and programs with nonstandard names/locations.
746 if test "$ac_init_help" = "recursive"; then
747 # If there are subdirs, report their specific --help.
749 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
751 # A "../" for each directory in /$ac_subdir.
752 ac_dots=`echo $ac_subdir |
753 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
756 .) # No --srcdir option. We are building in place.
757 ac_sub_srcdir=$srcdir ;;
758 [\\/]* | ?:[\\/]* ) # Absolute path.
759 ac_sub_srcdir=$srcdir/$ac_subdir ;;
761 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
764 # Check for guested configure; otherwise get Cygnus style configure.
765 if test -f $ac_sub_srcdir/configure.gnu; then
767 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
768 elif test -f $ac_sub_srcdir/configure; then
770 $SHELL $ac_sub_srcdir/configure --help=recursive
771 elif test -f $ac_sub_srcdir/configure.ac ||
772 test -f $ac_sub_srcdir/configure.in; then
776 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
782 test -n "$ac_init_help" && exit 0
783 if $ac_init_version; then
786 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
787 Free Software Foundation, Inc.
788 This configure script is free software; the Free Software Foundation
789 gives unlimited permission to copy, distribute and modify it.
795 This file contains any messages produced by compilers while
796 running configure, to aid debugging if configure makes a mistake.
798 It was created by $as_me, which was
799 generated by GNU Autoconf 2.52.20121002. Invocation command line was
810 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
811 uname -m = `(uname -m) 2>/dev/null || echo unknown`
812 uname -r = `(uname -r) 2>/dev/null || echo unknown`
813 uname -s = `(uname -s) 2>/dev/null || echo unknown`
814 uname -v = `(uname -v) 2>/dev/null || echo unknown`
816 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
817 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
819 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
820 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
821 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
822 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
823 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
824 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
825 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
839 # Keep a trace of the command line.
840 # Strip out --no-create and --no-recursion so they do not pile up.
841 # Also quote any args containing shell meta-characters.
847 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
848 | --no-cr | --no-c) ;;
849 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
850 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
851 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
852 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
853 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
855 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
858 # Get rid of the leading space.
861 # When interrupted or exit'd, cleanup temporary files, and complete
862 # config.log. We remove comments because anyway the quotes in there
863 # would cause problems or look ugly.
865 # Save into config.log some information that might help in debugging.
867 echo "## ----------------- ##" >&5
868 echo "## Cache variables. ##" >&5
869 echo "## ----------------- ##" >&5
871 # The following way of writing the cache mishandles newlines in values,
874 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
877 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
882 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
886 sed "/^$/d" confdefs.h >conftest.log
887 if test -s conftest.log; then
889 echo "## ------------ ##" >&5
890 echo "## confdefs.h. ##" >&5
891 echo "## ------------ ##" >&5
896 test "$ac_signal" != 0 &&
897 echo "$as_me: caught signal $ac_signal" >&5
898 echo "$as_me: exit $exit_status" >&5
899 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
902 for ac_signal in 1 2 13 15; do
903 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
907 # confdefs.h avoids OS command line length limits that DEFS can exceed.
908 rm -rf conftest* confdefs.h
909 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
912 # Let the site file select an alternate cache file if it wants to.
913 # Prefer explicitly selected file to automatically selected ones.
914 if test -z "$CONFIG_SITE"; then
915 if test "x$prefix" != xNONE; then
916 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
918 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
921 for ac_site_file in $CONFIG_SITE; do
922 if test -r "$ac_site_file"; then
923 { echo "$as_me:923: loading site script $ac_site_file" >&5
924 echo "$as_me: loading site script $ac_site_file" >&6;}
925 cat "$ac_site_file" >&5
930 if test -r "$cache_file"; then
931 # Some versions of bash will fail to source /dev/null (special
932 # files actually), so we avoid doing that.
933 if test -f "$cache_file"; then
934 { echo "$as_me:934: loading cache $cache_file" >&5
935 echo "$as_me: loading cache $cache_file" >&6;}
937 [\\/]* | ?:[\\/]* ) . $cache_file;;
942 { echo "$as_me:942: creating cache $cache_file" >&5
943 echo "$as_me: creating cache $cache_file" >&6;}
947 # Check that the precious variables saved in the cache have kept the same
949 ac_cache_corrupted=false
950 for ac_var in `(set) 2>&1 |
951 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
953 eval ac_new_set=\$ac_env_${ac_var}_set
954 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
955 eval ac_new_val="\$ac_env_${ac_var}_value"
956 case $ac_old_set,$ac_new_set in
958 { echo "$as_me:958: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
959 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
960 ac_cache_corrupted=: ;;
962 { echo "$as_me:962: error: \`$ac_var' was not set in the previous run" >&5
963 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
964 ac_cache_corrupted=: ;;
967 if test "x$ac_old_val" != "x$ac_new_val"; then
968 { echo "$as_me:968: error: \`$ac_var' has changed since the previous run:" >&5
969 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
970 { echo "$as_me:970: former value: $ac_old_val" >&5
971 echo "$as_me: former value: $ac_old_val" >&2;}
972 { echo "$as_me:972: current value: $ac_new_val" >&5
973 echo "$as_me: current value: $ac_new_val" >&2;}
977 # Pass precious variables to config.status. It doesn't matter if
978 # we pass some twice (in addition to the command line arguments).
979 if test "$ac_new_set" = set; then
981 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
982 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
983 ac_configure_args="$ac_configure_args '$ac_arg'"
985 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
990 if $ac_cache_corrupted; then
991 { echo "$as_me:991: error: changes in the environment can compromise the build" >&5
992 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
993 { { echo "$as_me:993: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
994 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
995 { (exit 1); exit 1; }; }
999 ac_cpp='$CPP $CPPFLAGS'
1000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1003 ac_main_return=return
1005 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1006 *c*,-n*) ECHO_N= ECHO_C='
1008 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1009 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1011 echo "#! $SHELL" >conftest.sh
1012 echo "exit 0" >>conftest.sh
1013 chmod +x conftest.sh
1014 if { (echo "$as_me:1014: PATH=\".;.\"; conftest.sh") >&5
1015 (PATH=".;."; conftest.sh) 2>&5
1017 echo "$as_me:1017: \$? = $ac_status" >&5
1018 (exit $ac_status); }; then
1019 ac_path_separator=';'
1023 PATH_SEPARATOR="$ac_path_separator"
1026 ac_config_headers="$ac_config_headers dlg_config.h:config.hin"
1028 test "$program_prefix" != NONE &&
1029 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1030 # Use a double $ so make ignores it.
1031 test "$program_suffix" != NONE &&
1032 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1033 # Double any \ or $. echo might interpret backslashes.
1034 # By default was `s,x,x', remove it if useless.
1035 cat <<\_ACEOF >conftest.sed
1036 s/[\\$]/&&/g;s/;s,x,x,$//
1038 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1044 ac_cpp='$CPP $CPPFLAGS'
1045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1048 ac_main_return=return
1049 if test -n "$ac_tool_prefix"; then
1050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1052 echo "$as_me:1052: checking for $ac_word" >&5
1053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1054 if test "${ac_cv_prog_CC+set}" = set; then
1055 echo $ECHO_N "(cached) $ECHO_C" >&6
1057 if test -n "$CC"; then
1058 ac_cv_prog_CC="$CC" # Let the user override the test.
1060 ac_save_IFS=$IFS; IFS=$ac_path_separator
1062 for ac_dir in $ac_dummy; do
1064 test -z "$ac_dir" && ac_dir=.
1065 $as_executable_p "$ac_dir/$ac_word" || continue
1066 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1067 echo "$as_me:1067: found $ac_dir/$ac_word" >&5
1074 if test -n "$CC"; then
1075 echo "$as_me:1075: result: $CC" >&5
1076 echo "${ECHO_T}$CC" >&6
1078 echo "$as_me:1078: result: no" >&5
1079 echo "${ECHO_T}no" >&6
1083 if test -z "$ac_cv_prog_CC"; then
1085 # Extract the first word of "gcc", so it can be a program name with args.
1086 set dummy gcc; ac_word=$2
1087 echo "$as_me:1087: checking for $ac_word" >&5
1088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1090 echo $ECHO_N "(cached) $ECHO_C" >&6
1092 if test -n "$ac_ct_CC"; then
1093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1095 ac_save_IFS=$IFS; IFS=$ac_path_separator
1097 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 $as_executable_p "$ac_dir/$ac_word" || continue
1101 ac_cv_prog_ac_ct_CC="gcc"
1102 echo "$as_me:1102: found $ac_dir/$ac_word" >&5
1108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1109 if test -n "$ac_ct_CC"; then
1110 echo "$as_me:1110: result: $ac_ct_CC" >&5
1111 echo "${ECHO_T}$ac_ct_CC" >&6
1113 echo "$as_me:1113: result: no" >&5
1114 echo "${ECHO_T}no" >&6
1122 if test -z "$CC"; then
1123 if test -n "$ac_tool_prefix"; then
1124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1125 set dummy ${ac_tool_prefix}cc; ac_word=$2
1126 echo "$as_me:1126: checking for $ac_word" >&5
1127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1128 if test "${ac_cv_prog_CC+set}" = set; then
1129 echo $ECHO_N "(cached) $ECHO_C" >&6
1131 if test -n "$CC"; then
1132 ac_cv_prog_CC="$CC" # Let the user override the test.
1134 ac_save_IFS=$IFS; IFS=$ac_path_separator
1136 for ac_dir in $ac_dummy; do
1138 test -z "$ac_dir" && ac_dir=.
1139 $as_executable_p "$ac_dir/$ac_word" || continue
1140 ac_cv_prog_CC="${ac_tool_prefix}cc"
1141 echo "$as_me:1141: found $ac_dir/$ac_word" >&5
1148 if test -n "$CC"; then
1149 echo "$as_me:1149: result: $CC" >&5
1150 echo "${ECHO_T}$CC" >&6
1152 echo "$as_me:1152: result: no" >&5
1153 echo "${ECHO_T}no" >&6
1157 if test -z "$ac_cv_prog_CC"; then
1159 # Extract the first word of "cc", so it can be a program name with args.
1160 set dummy cc; ac_word=$2
1161 echo "$as_me:1161: checking for $ac_word" >&5
1162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1164 echo $ECHO_N "(cached) $ECHO_C" >&6
1166 if test -n "$ac_ct_CC"; then
1167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1169 ac_save_IFS=$IFS; IFS=$ac_path_separator
1171 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 $as_executable_p "$ac_dir/$ac_word" || continue
1175 ac_cv_prog_ac_ct_CC="cc"
1176 echo "$as_me:1176: found $ac_dir/$ac_word" >&5
1182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1183 if test -n "$ac_ct_CC"; then
1184 echo "$as_me:1184: result: $ac_ct_CC" >&5
1185 echo "${ECHO_T}$ac_ct_CC" >&6
1187 echo "$as_me:1187: result: no" >&5
1188 echo "${ECHO_T}no" >&6
1197 if test -z "$CC"; then
1198 # Extract the first word of "cc", so it can be a program name with args.
1199 set dummy cc; ac_word=$2
1200 echo "$as_me:1200: checking for $ac_word" >&5
1201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1202 if test "${ac_cv_prog_CC+set}" = set; then
1203 echo $ECHO_N "(cached) $ECHO_C" >&6
1205 if test -n "$CC"; then
1206 ac_cv_prog_CC="$CC" # Let the user override the test.
1209 ac_save_IFS=$IFS; IFS=$ac_path_separator
1211 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 $as_executable_p "$ac_dir/$ac_word" || continue
1215 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1216 ac_prog_rejected=yes
1220 echo "$as_me:1220: found $ac_dir/$ac_word" >&5
1224 if test $ac_prog_rejected = yes; then
1225 # We found a bogon in the path, so make sure we never use it.
1226 set dummy $ac_cv_prog_CC
1228 if test $# != 0; then
1229 # We chose a different compiler from the bogus one.
1230 # However, it has the same basename, so the bogon will be chosen
1231 # first if we set CC to just the basename; use the full file name.
1233 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1241 if test -n "$CC"; then
1242 echo "$as_me:1242: result: $CC" >&5
1243 echo "${ECHO_T}$CC" >&6
1245 echo "$as_me:1245: result: no" >&5
1246 echo "${ECHO_T}no" >&6
1250 if test -z "$CC"; then
1251 if test -n "$ac_tool_prefix"; then
1254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1256 echo "$as_me:1256: checking for $ac_word" >&5
1257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1258 if test "${ac_cv_prog_CC+set}" = set; then
1259 echo $ECHO_N "(cached) $ECHO_C" >&6
1261 if test -n "$CC"; then
1262 ac_cv_prog_CC="$CC" # Let the user override the test.
1264 ac_save_IFS=$IFS; IFS=$ac_path_separator
1266 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 $as_executable_p "$ac_dir/$ac_word" || continue
1270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1271 echo "$as_me:1271: found $ac_dir/$ac_word" >&5
1278 if test -n "$CC"; then
1279 echo "$as_me:1279: result: $CC" >&5
1280 echo "${ECHO_T}$CC" >&6
1282 echo "$as_me:1282: result: no" >&5
1283 echo "${ECHO_T}no" >&6
1286 test -n "$CC" && break
1289 if test -z "$CC"; then
1293 # Extract the first word of "$ac_prog", so it can be a program name with args.
1294 set dummy $ac_prog; ac_word=$2
1295 echo "$as_me:1295: checking for $ac_word" >&5
1296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 if test -n "$ac_ct_CC"; then
1301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1303 ac_save_IFS=$IFS; IFS=$ac_path_separator
1305 for ac_dir in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir=.
1308 $as_executable_p "$ac_dir/$ac_word" || continue
1309 ac_cv_prog_ac_ct_CC="$ac_prog"
1310 echo "$as_me:1310: found $ac_dir/$ac_word" >&5
1316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1317 if test -n "$ac_ct_CC"; then
1318 echo "$as_me:1318: result: $ac_ct_CC" >&5
1319 echo "${ECHO_T}$ac_ct_CC" >&6
1321 echo "$as_me:1321: result: no" >&5
1322 echo "${ECHO_T}no" >&6
1325 test -n "$ac_ct_CC" && break
1333 test -z "$CC" && { { echo "$as_me:1333: error: no acceptable cc found in \$PATH" >&5
1334 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1335 { (exit 1); exit 1; }; }
1337 # Provide some information about the compiler.
1338 echo "$as_me:1338:" \
1339 "checking for C compiler version" >&5
1340 ac_compiler=`set X $ac_compile; echo $2`
1341 { (eval echo "$as_me:1341: \"$ac_compiler --version </dev/null >&5\"") >&5
1342 (eval $ac_compiler --version </dev/null >&5) 2>&5
1344 echo "$as_me:1344: \$? = $ac_status" >&5
1345 (exit $ac_status); }
1346 { (eval echo "$as_me:1346: \"$ac_compiler -v </dev/null >&5\"") >&5
1347 (eval $ac_compiler -v </dev/null >&5) 2>&5
1349 echo "$as_me:1349: \$? = $ac_status" >&5
1350 (exit $ac_status); }
1351 { (eval echo "$as_me:1351: \"$ac_compiler -V </dev/null >&5\"") >&5
1352 (eval $ac_compiler -V </dev/null >&5) 2>&5
1354 echo "$as_me:1354: \$? = $ac_status" >&5
1355 (exit $ac_status); }
1357 cat >conftest.$ac_ext <<_ACEOF
1358 #line 1358 "configure"
1359 #include "confdefs.h"
1369 ac_clean_files_save=$ac_clean_files
1370 ac_clean_files="$ac_clean_files a.out a.exe"
1371 # Try to create an executable without -o first, disregard a.out.
1372 # It will help us diagnose broken compilers, and finding out an intuition
1374 echo "$as_me:1374: checking for C compiler default output" >&5
1375 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1376 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1377 if { (eval echo "$as_me:1377: \"$ac_link_default\"") >&5
1378 (eval $ac_link_default) 2>&5
1380 echo "$as_me:1380: \$? = $ac_status" >&5
1381 (exit $ac_status); }; then
1382 # Find the output, starting from the most likely. This scheme is
1383 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1385 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1386 ls a.out conftest 2>/dev/null;
1387 ls a.* conftest.* 2>/dev/null`; do
1389 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1390 a.out ) # We found the default executable, but exeext='' is most
1393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1394 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1401 echo "$as_me: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403 { { echo "$as_me:1403: error: C compiler cannot create executables" >&5
1404 echo "$as_me: error: C compiler cannot create executables" >&2;}
1405 { (exit 77); exit 77; }; }
1408 ac_exeext=$ac_cv_exeext
1409 echo "$as_me:1409: result: $ac_file" >&5
1410 echo "${ECHO_T}$ac_file" >&6
1412 # Check the compiler produces executables we can run. If not, either
1413 # the compiler is broken, or we cross compile.
1414 echo "$as_me:1414: checking whether the C compiler works" >&5
1415 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1416 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1417 # If not cross compiling, check that we can run a simple program.
1418 if test "$cross_compiling" != yes; then
1419 if { ac_try='./$ac_file'
1420 { (eval echo "$as_me:1420: \"$ac_try\"") >&5
1423 echo "$as_me:1423: \$? = $ac_status" >&5
1424 (exit $ac_status); }; }; then
1427 if test "$cross_compiling" = maybe; then
1430 { { echo "$as_me:1430: error: cannot run C compiled programs.
1431 If you meant to cross compile, use \`--host'." >&5
1432 echo "$as_me: error: cannot run C compiled programs.
1433 If you meant to cross compile, use \`--host'." >&2;}
1434 { (exit 1); exit 1; }; }
1438 echo "$as_me:1438: result: yes" >&5
1439 echo "${ECHO_T}yes" >&6
1441 rm -f a.out a.exe conftest$ac_cv_exeext
1442 ac_clean_files=$ac_clean_files_save
1443 # Check the compiler produces executables we can run. If not, either
1444 # the compiler is broken, or we cross compile.
1445 echo "$as_me:1445: checking whether we are cross compiling" >&5
1446 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1447 echo "$as_me:1447: result: $cross_compiling" >&5
1448 echo "${ECHO_T}$cross_compiling" >&6
1450 echo "$as_me:1450: checking for executable suffix" >&5
1451 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1452 if { (eval echo "$as_me:1452: \"$ac_link\"") >&5
1453 (eval $ac_link) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }; then
1457 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1458 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1459 # work properly (i.e., refer to `conftest.exe'), while it won't with
1461 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1463 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1464 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1471 { { echo "$as_me:1471: error: cannot compute EXEEXT: cannot compile and link" >&5
1472 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1473 { (exit 1); exit 1; }; }
1476 rm -f conftest$ac_cv_exeext
1477 echo "$as_me:1477: result: $ac_cv_exeext" >&5
1478 echo "${ECHO_T}$ac_cv_exeext" >&6
1480 rm -f conftest.$ac_ext
1481 EXEEXT=$ac_cv_exeext
1483 echo "$as_me:1483: checking for object suffix" >&5
1484 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1485 if test "${ac_cv_objext+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 cat >conftest.$ac_ext <<_ACEOF
1489 #line 1489 "configure"
1490 #include "confdefs.h"
1500 rm -f conftest.o conftest.obj
1501 if { (eval echo "$as_me:1501: \"$ac_compile\"") >&5
1502 (eval $ac_compile) 2>&5
1504 echo "$as_me:1504: \$? = $ac_status" >&5
1505 (exit $ac_status); }; then
1506 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1508 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1514 echo "$as_me: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 { { echo "$as_me:1516: error: cannot compute OBJEXT: cannot compile" >&5
1517 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1518 { (exit 1); exit 1; }; }
1521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1523 echo "$as_me:1523: result: $ac_cv_objext" >&5
1524 echo "${ECHO_T}$ac_cv_objext" >&6
1525 OBJEXT=$ac_cv_objext
1527 echo "$as_me:1527: checking whether we are using the GNU C compiler" >&5
1528 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 cat >conftest.$ac_ext <<_ACEOF
1533 #line 1533 "configure"
1534 #include "confdefs.h"
1547 rm -f conftest.$ac_objext
1548 if { (eval echo "$as_me:1548: \"$ac_compile\"") >&5
1549 (eval $ac_compile) 2>&5
1551 echo "$as_me:1551: \$? = $ac_status" >&5
1552 (exit $ac_status); } &&
1553 { ac_try='test -s conftest.$ac_objext'
1554 { (eval echo "$as_me:1554: \"$ac_try\"") >&5
1557 echo "$as_me:1557: \$? = $ac_status" >&5
1558 (exit $ac_status); }; }; then
1561 echo "$as_me: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1565 rm -f conftest.$ac_objext conftest.$ac_ext
1566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1569 echo "$as_me:1569: result: $ac_cv_c_compiler_gnu" >&5
1570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1571 GCC=`test $ac_compiler_gnu = yes && echo yes`
1572 ac_test_CFLAGS=${CFLAGS+set}
1573 ac_save_CFLAGS=$CFLAGS
1575 echo "$as_me:1575: checking whether $CC accepts -g" >&5
1576 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1577 if test "${ac_cv_prog_cc_g+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 cat >conftest.$ac_ext <<_ACEOF
1581 #line 1581 "configure"
1582 #include "confdefs.h"
1592 rm -f conftest.$ac_objext
1593 if { (eval echo "$as_me:1593: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
1596 echo "$as_me:1596: \$? = $ac_status" >&5
1597 (exit $ac_status); } &&
1598 { ac_try='test -s conftest.$ac_objext'
1599 { (eval echo "$as_me:1599: \"$ac_try\"") >&5
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; }; then
1606 echo "$as_me: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1610 rm -f conftest.$ac_objext conftest.$ac_ext
1612 echo "$as_me:1612: result: $ac_cv_prog_cc_g" >&5
1613 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1614 if test "$ac_test_CFLAGS" = set; then
1615 CFLAGS=$ac_save_CFLAGS
1616 elif test $ac_cv_prog_cc_g = yes; then
1617 if test "$GCC" = yes; then
1623 if test "$GCC" = yes; then
1629 # Some people use a C++ compiler to compile C. Since we use `exit',
1630 # in C++ we need to declare it. In case someone uses the same compiler
1631 # for both compiling C and C++ we need to have the C++ compiler decide
1632 # the declaration of exit, since it's the most demanding environment.
1633 cat >conftest.$ac_ext <<_ACEOF
1638 rm -f conftest.$ac_objext
1639 if { (eval echo "$as_me:1639: \"$ac_compile\"") >&5
1640 (eval $ac_compile) 2>&5
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); } &&
1644 { ac_try='test -s conftest.$ac_objext'
1645 { (eval echo "$as_me:1645: \"$ac_try\"") >&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); }; }; then
1650 for ac_declaration in \
1652 '#include <stdlib.h>' \
1653 'extern "C" void std::exit (int) throw (); using std::exit;' \
1654 'extern "C" void std::exit (int); using std::exit;' \
1655 'extern "C" void exit (int) throw ();' \
1656 'extern "C" void exit (int);' \
1659 cat >conftest.$ac_ext <<_ACEOF
1660 #line 1660 "configure"
1661 #include "confdefs.h"
1672 rm -f conftest.$ac_objext
1673 if { (eval echo "$as_me:1673: \"$ac_compile\"") >&5
1674 (eval $ac_compile) 2>&5
1676 echo "$as_me:1676: \$? = $ac_status" >&5
1677 (exit $ac_status); } &&
1678 { ac_try='test -s conftest.$ac_objext'
1679 { (eval echo "$as_me:1679: \"$ac_try\"") >&5
1682 echo "$as_me:1682: \$? = $ac_status" >&5
1683 (exit $ac_status); }; }; then
1686 echo "$as_me: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1690 rm -f conftest.$ac_objext conftest.$ac_ext
1691 cat >conftest.$ac_ext <<_ACEOF
1692 #line 1692 "configure"
1693 #include "confdefs.h"
1703 rm -f conftest.$ac_objext
1704 if { (eval echo "$as_me:1704: \"$ac_compile\"") >&5
1705 (eval $ac_compile) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); } &&
1709 { ac_try='test -s conftest.$ac_objext'
1710 { (eval echo "$as_me:1710: \"$ac_try\"") >&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }; }; then
1717 echo "$as_me: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1720 rm -f conftest.$ac_objext conftest.$ac_ext
1723 if test -n "$ac_declaration"; then
1724 echo '#ifdef __cplusplus' >>confdefs.h
1725 echo $ac_declaration >>confdefs.h
1726 echo '#endif' >>confdefs.h
1730 echo "$as_me: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1733 rm -f conftest.$ac_objext conftest.$ac_ext
1735 ac_cpp='$CPP $CPPFLAGS'
1736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1739 ac_main_return=return
1742 if test "$GCC" = yes ; then
1743 echo "$as_me:1743: checking version of $CC" >&5
1744 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1745 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1746 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1747 echo "$as_me:1747: result: $GCC_VERSION" >&5
1748 echo "${ECHO_T}$GCC_VERSION" >&6
1751 echo "$as_me:1751: checking for $CC option to accept ANSI C" >&5
1752 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1753 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 ac_cv_prog_cc_stdc=no
1758 cat >conftest.$ac_ext <<_ACEOF
1759 #line 1759 "configure"
1760 #include "confdefs.h"
1763 #include <sys/types.h>
1764 #include <sys/stat.h>
1765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1766 struct buf { int x; };
1767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1768 static char *e (p, i)
1774 static char *f (char * (*g) (char **, int), char **p, ...)
1779 s = g (p, va_arg (v,int));
1783 int test (int i, double x);
1784 struct s1 {int (*f) (int a);};
1785 struct s2 {int (*f) (double a);};
1786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1797 # Don't try gcc -ansi; that turns off useful extensions and
1798 # breaks some systems' header files.
1799 # AIX -qlanglvl=ansi
1800 # Ultrix and OSF/1 -std1
1801 # HP-UX 10.20 and later -Ae
1802 # HP-UX older versions -Aa -D_HPUX_SOURCE
1803 # SVR4 -Xc -D__EXTENSIONS__
1804 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1806 CC="$ac_save_CC $ac_arg"
1807 rm -f conftest.$ac_objext
1808 if { (eval echo "$as_me:1808: \"$ac_compile\"") >&5
1809 (eval $ac_compile) 2>&5
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); } &&
1813 { ac_try='test -s conftest.$ac_objext'
1814 { (eval echo "$as_me:1814: \"$ac_try\"") >&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); }; }; then
1819 ac_cv_prog_cc_stdc=$ac_arg
1822 echo "$as_me: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext
1827 rm -f conftest.$ac_ext conftest.$ac_objext
1832 case "x$ac_cv_prog_cc_stdc" in
1834 echo "$as_me:1834: result: none needed" >&5
1835 echo "${ECHO_T}none needed" >&6 ;;
1837 echo "$as_me:1837: result: $ac_cv_prog_cc_stdc" >&5
1838 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1839 CC="$CC $ac_cv_prog_cc_stdc" ;;
1842 # This should have been defined by AC_PROG_CC
1845 echo "$as_me:1845: checking \$CC variable" >&5
1846 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1849 echo "$as_me:1849: result: broken" >&5
1850 echo "${ECHO_T}broken" >&6
1851 { echo "$as_me:1851: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1852 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1854 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1855 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1860 cf_new_extra_cppflags=
1862 for cf_add_cflags in $cf_flags
1864 case $cf_fix_cppflags in
1866 case $cf_add_cflags in #(vi
1867 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1868 case $cf_add_cflags in
1870 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1872 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1873 && test -z "${cf_tst_cflags}" \
1874 && cf_fix_cppflags=yes
1876 if test $cf_fix_cppflags = yes ; then
1877 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1879 elif test "${cf_tst_cflags}" = "\"'" ; then
1880 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1886 *$cf_add_cflags) #(vi
1889 case $cf_add_cflags in #(vi
1891 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1893 CPPFLAGS=`echo "$CPPFLAGS" | \
1894 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1895 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1899 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1904 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1909 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1911 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1913 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1914 && test -z "${cf_tst_cflags}" \
1915 && cf_fix_cppflags=no
1920 if test -n "$cf_new_cflags" ; then
1922 CFLAGS="$CFLAGS $cf_new_cflags"
1925 if test -n "$cf_new_cppflags" ; then
1927 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1930 if test -n "$cf_new_extra_cppflags" ; then
1932 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
1937 echo "$as_me:1937: result: ok" >&5
1938 echo "${ECHO_T}ok" >&6
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 ac_main_return=return
1948 echo "$as_me:1948: checking how to run the C preprocessor" >&5
1949 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1950 # On Suns, sometimes $CPP names a directory.
1951 if test -n "$CPP" && test -d "$CPP"; then
1954 if test -z "$CPP"; then
1955 if test "${ac_cv_prog_CPP+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 # Double quotes because CPP needs to be expanded
1959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1962 for ac_c_preproc_warn_flag in '' yes
1964 # Use a header file that comes with gcc, so configuring glibc
1965 # with a fresh cross-compiler works.
1966 # On the NeXT, cc -E runs the code through the compiler's parser,
1967 # not just through cpp. "Syntax error" is here to catch this case.
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #line 1969 "configure"
1970 #include "confdefs.h"
1974 if { (eval echo "$as_me:1974: \"$ac_cpp conftest.$ac_ext\"") >&5
1975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1977 egrep -v '^ *\+' conftest.er1 >conftest.err
1979 cat conftest.err >&5
1980 echo "$as_me:1980: \$? = $ac_status" >&5
1981 (exit $ac_status); } >/dev/null; then
1982 if test -s conftest.err; then
1983 ac_cpp_err=$ac_c_preproc_warn_flag
1990 if test -z "$ac_cpp_err"; then
1993 echo "$as_me: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 # Broken: fails on valid input.
1998 rm -f conftest.err conftest.$ac_ext
2000 # OK, works on sane cases. Now check whether non-existent headers
2001 # can be detected and how.
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line 2003 "configure"
2004 #include "confdefs.h"
2005 #include <ac_nonexistent.h>
2007 if { (eval echo "$as_me:2007: \"$ac_cpp conftest.$ac_ext\"") >&5
2008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2010 egrep -v '^ *\+' conftest.er1 >conftest.err
2012 cat conftest.err >&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); } >/dev/null; then
2015 if test -s conftest.err; then
2016 ac_cpp_err=$ac_c_preproc_warn_flag
2023 if test -z "$ac_cpp_err"; then
2024 # Broken: success on invalid input.
2027 echo "$as_me: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 # Passes both tests.
2033 rm -f conftest.err conftest.$ac_ext
2036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2037 rm -f conftest.err conftest.$ac_ext
2038 if $ac_preproc_ok; then
2050 echo "$as_me:2050: result: $CPP" >&5
2051 echo "${ECHO_T}$CPP" >&6
2053 for ac_c_preproc_warn_flag in '' yes
2055 # Use a header file that comes with gcc, so configuring glibc
2056 # with a fresh cross-compiler works.
2057 # On the NeXT, cc -E runs the code through the compiler's parser,
2058 # not just through cpp. "Syntax error" is here to catch this case.
2059 cat >conftest.$ac_ext <<_ACEOF
2060 #line 2060 "configure"
2061 #include "confdefs.h"
2065 if { (eval echo "$as_me:2065: \"$ac_cpp conftest.$ac_ext\"") >&5
2066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2068 egrep -v '^ *\+' conftest.er1 >conftest.err
2070 cat conftest.err >&5
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); } >/dev/null; then
2073 if test -s conftest.err; then
2074 ac_cpp_err=$ac_c_preproc_warn_flag
2081 if test -z "$ac_cpp_err"; then
2084 echo "$as_me: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2086 # Broken: fails on valid input.
2089 rm -f conftest.err conftest.$ac_ext
2091 # OK, works on sane cases. Now check whether non-existent headers
2092 # can be detected and how.
2093 cat >conftest.$ac_ext <<_ACEOF
2094 #line 2094 "configure"
2095 #include "confdefs.h"
2096 #include <ac_nonexistent.h>
2098 if { (eval echo "$as_me:2098: \"$ac_cpp conftest.$ac_ext\"") >&5
2099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2101 egrep -v '^ *\+' conftest.er1 >conftest.err
2103 cat conftest.err >&5
2104 echo "$as_me:2104: \$? = $ac_status" >&5
2105 (exit $ac_status); } >/dev/null; then
2106 if test -s conftest.err; then
2107 ac_cpp_err=$ac_c_preproc_warn_flag
2114 if test -z "$ac_cpp_err"; then
2115 # Broken: success on invalid input.
2118 echo "$as_me: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2120 # Passes both tests.
2124 rm -f conftest.err conftest.$ac_ext
2127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2128 rm -f conftest.err conftest.$ac_ext
2129 if $ac_preproc_ok; then
2132 { { echo "$as_me:2132: error: C preprocessor \"$CPP\" fails sanity check" >&5
2133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2134 { (exit 1); exit 1; }; }
2138 ac_cpp='$CPP $CPPFLAGS'
2139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142 ac_main_return=return
2144 echo "$as_me:2144: checking whether ${MAKE-make} sets \${MAKE}" >&5
2145 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 cat >conftest.make <<\EOF
2152 @echo 'ac_maketemp="${MAKE}"'
2154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2156 if test -n "$ac_maketemp"; then
2157 eval ac_cv_prog_make_${ac_make}_set=yes
2159 eval ac_cv_prog_make_${ac_make}_set=no
2163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2164 echo "$as_me:2164: result: yes" >&5
2165 echo "${ECHO_T}yes" >&6
2168 echo "$as_me:2168: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2170 SET_MAKE="MAKE=${MAKE-make}"
2173 if test -n "$ac_tool_prefix"; then
2174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2176 echo "$as_me:2176: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_RANLIB+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -n "$RANLIB"; then
2182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2184 ac_save_IFS=$IFS; IFS=$ac_path_separator
2186 for ac_dir in $ac_dummy; do
2188 test -z "$ac_dir" && ac_dir=.
2189 $as_executable_p "$ac_dir/$ac_word" || continue
2190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2191 echo "$as_me:2191: found $ac_dir/$ac_word" >&5
2197 RANLIB=$ac_cv_prog_RANLIB
2198 if test -n "$RANLIB"; then
2199 echo "$as_me:2199: result: $RANLIB" >&5
2200 echo "${ECHO_T}$RANLIB" >&6
2202 echo "$as_me:2202: result: no" >&5
2203 echo "${ECHO_T}no" >&6
2207 if test -z "$ac_cv_prog_RANLIB"; then
2208 ac_ct_RANLIB=$RANLIB
2209 # Extract the first word of "ranlib", so it can be a program name with args.
2210 set dummy ranlib; ac_word=$2
2211 echo "$as_me:2211: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$ac_ct_RANLIB"; then
2217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2219 ac_save_IFS=$IFS; IFS=$ac_path_separator
2221 for ac_dir in $ac_dummy; do
2223 test -z "$ac_dir" && ac_dir=.
2224 $as_executable_p "$ac_dir/$ac_word" || continue
2225 ac_cv_prog_ac_ct_RANLIB="ranlib"
2226 echo "$as_me:2226: found $ac_dir/$ac_word" >&5
2230 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2234 if test -n "$ac_ct_RANLIB"; then
2235 echo "$as_me:2235: result: $ac_ct_RANLIB" >&5
2236 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2238 echo "$as_me:2238: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2242 RANLIB=$ac_ct_RANLIB
2244 RANLIB="$ac_cv_prog_RANLIB"
2248 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2249 if test -f $ac_dir/install-sh; then
2251 ac_install_sh="$ac_aux_dir/install-sh -c"
2253 elif test -f $ac_dir/install.sh; then
2255 ac_install_sh="$ac_aux_dir/install.sh -c"
2257 elif test -f $ac_dir/shtool; then
2259 ac_install_sh="$ac_aux_dir/shtool install -c"
2263 if test -z "$ac_aux_dir"; then
2264 { { echo "$as_me:2264: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2265 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2266 { (exit 1); exit 1; }; }
2268 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2269 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2270 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2272 # Find a good install program. We prefer a C program (faster),
2273 # so one script is as good as another. But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 echo "$as_me:2284: checking for a BSD compatible install" >&5
2285 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 ac_save_IFS=$IFS; IFS=$ac_path_separator
2291 for ac_dir in $PATH; do
2293 # Account for people who put trailing slashes in PATH elements.
2295 / | ./ | .// | /cC/* \
2296 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2302 for ac_prog in ginstall scoinst install; do
2303 if $as_executable_p "$ac_dir/$ac_prog"; then
2304 if test $ac_prog = install &&
2305 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2306 # AIX install. It has an incompatible calling convention.
2308 elif test $ac_prog = install &&
2309 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2310 # program-specific install script used by HP pwplus--don't use.
2313 ac_cv_path_install="$ac_dir/$ac_prog -c"
2323 if test "${ac_cv_path_install+set}" = set; then
2324 INSTALL=$ac_cv_path_install
2326 # As a last resort, use the slow shell script. We don't cache a
2327 # path for INSTALL within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the path is relative.
2330 INSTALL=$ac_install_sh
2333 echo "$as_me:2333: result: $INSTALL" >&5
2334 echo "${ECHO_T}$INSTALL" >&6
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2344 echo "$as_me:2344: checking whether ln -s works" >&5
2345 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2347 if test "$LN_S" = "ln -s"; then
2348 echo "$as_me:2348: result: yes" >&5
2349 echo "${ECHO_T}yes" >&6
2351 echo "$as_me:2351: result: no, using $LN_S" >&5
2352 echo "${ECHO_T}no, using $LN_S" >&6
2355 echo "$as_me:2355: checking if $LN_S -f options work" >&5
2356 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2358 rm -f conf$$.src conf$$dst
2360 echo first >conf$$.src
2361 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2366 rm -f conf$$.dst conf$$src
2367 echo "$as_me:2367: result: $cf_prog_ln_sf" >&5
2368 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2370 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2372 for ac_prog in tdlint lint alint splint lclint
2374 # Extract the first word of "$ac_prog", so it can be a program name with args.
2375 set dummy $ac_prog; ac_word=$2
2376 echo "$as_me:2376: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_LINT+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 if test -n "$LINT"; then
2382 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2384 ac_save_IFS=$IFS; IFS=$ac_path_separator
2386 for ac_dir in $ac_dummy; do
2388 test -z "$ac_dir" && ac_dir=.
2389 $as_executable_p "$ac_dir/$ac_word" || continue
2390 ac_cv_prog_LINT="$ac_prog"
2391 echo "$as_me:2391: found $ac_dir/$ac_word" >&5
2397 LINT=$ac_cv_prog_LINT
2398 if test -n "$LINT"; then
2399 echo "$as_me:2399: result: $LINT" >&5
2400 echo "${ECHO_T}$LINT" >&6
2402 echo "$as_me:2402: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2406 test -n "$LINT" && break
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}ar; ac_word=$2
2412 echo "$as_me:2412: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2414 if test "${ac_cv_prog_AR+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 if test -n "$AR"; then
2418 ac_cv_prog_AR="$AR" # Let the user override the test.
2420 ac_save_IFS=$IFS; IFS=$ac_path_separator
2422 for ac_dir in $ac_dummy; do
2424 test -z "$ac_dir" && ac_dir=.
2425 $as_executable_p "$ac_dir/$ac_word" || continue
2426 ac_cv_prog_AR="${ac_tool_prefix}ar"
2427 echo "$as_me:2427: found $ac_dir/$ac_word" >&5
2434 if test -n "$AR"; then
2435 echo "$as_me:2435: result: $AR" >&5
2436 echo "${ECHO_T}$AR" >&6
2438 echo "$as_me:2438: result: no" >&5
2439 echo "${ECHO_T}no" >&6
2443 if test -z "$ac_cv_prog_AR"; then
2445 # Extract the first word of "ar", so it can be a program name with args.
2446 set dummy ar; ac_word=$2
2447 echo "$as_me:2447: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2449 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 if test -n "$ac_ct_AR"; then
2453 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2455 ac_save_IFS=$IFS; IFS=$ac_path_separator
2457 for ac_dir in $ac_dummy; do
2459 test -z "$ac_dir" && ac_dir=.
2460 $as_executable_p "$ac_dir/$ac_word" || continue
2461 ac_cv_prog_ac_ct_AR="ar"
2462 echo "$as_me:2462: found $ac_dir/$ac_word" >&5
2466 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
2469 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2470 if test -n "$ac_ct_AR"; then
2471 echo "$as_me:2471: result: $ac_ct_AR" >&5
2472 echo "${ECHO_T}$ac_ct_AR" >&6
2474 echo "$as_me:2474: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2483 echo "$as_me:2483: checking for makeflags variable" >&5
2484 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2485 if test "${cf_cv_makeflags+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2492 cat >cf_makeflags.tmp <<CF_EOF
2495 @ echo '.$cf_option'
2497 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
2498 case "$cf_result" in
2500 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2501 case "$cf_result" in
2502 .*CC=*) cf_cv_makeflags=
2504 *) cf_cv_makeflags=$cf_option
2510 *) echo "given option \"$cf_option\", no match \"$cf_result\""
2514 rm -f cf_makeflags.tmp
2517 echo "$as_me:2517: result: $cf_cv_makeflags" >&5
2518 echo "${ECHO_T}$cf_cv_makeflags" >&6
2520 echo "$as_me:2520: checking if filesystem supports mixed-case filenames" >&5
2521 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2522 if test "${cf_cv_mixedcase+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test "$cross_compiling" = yes ; then
2527 case $target_alias in #(vi
2528 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw32*|*-uwin*) #(vi
2536 rm -f conftest CONFTEST
2538 if test -f CONFTEST ; then
2543 rm -f conftest CONFTEST
2547 echo "$as_me:2547: result: $cf_cv_mixedcase" >&5
2548 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2549 test "$cf_cv_mixedcase" = yes &&
2550 cat >>confdefs.h <<\EOF
2551 #define MIXEDCASE_FILENAMES 1
2554 for ac_prog in exctags ctags
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 echo "$as_me:2558: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2560 if test "${ac_cv_prog_CTAGS+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$CTAGS"; then
2564 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2566 ac_save_IFS=$IFS; IFS=$ac_path_separator
2568 for ac_dir in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir=.
2571 $as_executable_p "$ac_dir/$ac_word" || continue
2572 ac_cv_prog_CTAGS="$ac_prog"
2573 echo "$as_me:2573: found $ac_dir/$ac_word" >&5
2579 CTAGS=$ac_cv_prog_CTAGS
2580 if test -n "$CTAGS"; then
2581 echo "$as_me:2581: result: $CTAGS" >&5
2582 echo "${ECHO_T}$CTAGS" >&6
2584 echo "$as_me:2584: result: no" >&5
2585 echo "${ECHO_T}no" >&6
2588 test -n "$CTAGS" && break
2591 for ac_prog in exetags etags
2593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2594 set dummy $ac_prog; ac_word=$2
2595 echo "$as_me:2595: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2597 if test "${ac_cv_prog_ETAGS+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$ETAGS"; then
2601 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2603 ac_save_IFS=$IFS; IFS=$ac_path_separator
2605 for ac_dir in $ac_dummy; do
2607 test -z "$ac_dir" && ac_dir=.
2608 $as_executable_p "$ac_dir/$ac_word" || continue
2609 ac_cv_prog_ETAGS="$ac_prog"
2610 echo "$as_me:2610: found $ac_dir/$ac_word" >&5
2616 ETAGS=$ac_cv_prog_ETAGS
2617 if test -n "$ETAGS"; then
2618 echo "$as_me:2618: result: $ETAGS" >&5
2619 echo "${ECHO_T}$ETAGS" >&6
2621 echo "$as_me:2621: result: no" >&5
2622 echo "${ECHO_T}no" >&6
2625 test -n "$ETAGS" && break
2628 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2629 set dummy ${CTAGS:-ctags}; ac_word=$2
2630 echo "$as_me:2630: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2632 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 if test -n "$MAKE_LOWER_TAGS"; then
2636 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2638 ac_save_IFS=$IFS; IFS=$ac_path_separator
2640 for ac_dir in $ac_dummy; do
2642 test -z "$ac_dir" && ac_dir=.
2643 $as_executable_p "$ac_dir/$ac_word" || continue
2644 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2645 echo "$as_me:2645: found $ac_dir/$ac_word" >&5
2649 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2652 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2653 if test -n "$MAKE_LOWER_TAGS"; then
2654 echo "$as_me:2654: result: $MAKE_LOWER_TAGS" >&5
2655 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2657 echo "$as_me:2657: result: no" >&5
2658 echo "${ECHO_T}no" >&6
2661 if test "$cf_cv_mixedcase" = yes ; then
2662 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2663 set dummy ${ETAGS:-etags}; ac_word=$2
2664 echo "$as_me:2664: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2666 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 if test -n "$MAKE_UPPER_TAGS"; then
2670 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2672 ac_save_IFS=$IFS; IFS=$ac_path_separator
2674 for ac_dir in $ac_dummy; do
2676 test -z "$ac_dir" && ac_dir=.
2677 $as_executable_p "$ac_dir/$ac_word" || continue
2678 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2679 echo "$as_me:2679: found $ac_dir/$ac_word" >&5
2683 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2686 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2687 if test -n "$MAKE_UPPER_TAGS"; then
2688 echo "$as_me:2688: result: $MAKE_UPPER_TAGS" >&5
2689 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2691 echo "$as_me:2691: result: no" >&5
2692 echo "${ECHO_T}no" >&6
2699 if test "$MAKE_UPPER_TAGS" = yes ; then
2705 if test "$MAKE_LOWER_TAGS" = yes ; then
2711 echo "$as_me:2711: checking if you want to see long compiling messages" >&5
2712 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
2714 # Check whether --enable-echo or --disable-echo was given.
2715 if test "${enable_echo+set}" = set; then
2716 enableval="$enable_echo"
2717 test "$enableval" != no && enableval=yes
2718 if test "$enableval" != "yes" ; then
2721 ECHO_LD='@echo linking $@;'
2722 RULE_CC='@echo compiling $<'
2723 SHOW_CC='@echo compiling $@'
2745 echo "$as_me:2745: result: $enableval" >&5
2746 echo "${ECHO_T}$enableval" >&6
2748 # Make sure we can run config.sub.
2749 $ac_config_sub sun4 >/dev/null 2>&1 ||
2750 { { echo "$as_me:2750: error: cannot run $ac_config_sub" >&5
2751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2752 { (exit 1); exit 1; }; }
2754 echo "$as_me:2754: checking build system type" >&5
2755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2756 if test "${ac_cv_build+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 ac_cv_build_alias=$build_alias
2760 test -z "$ac_cv_build_alias" &&
2761 ac_cv_build_alias=`$ac_config_guess`
2762 test -z "$ac_cv_build_alias" &&
2763 { { echo "$as_me:2763: error: cannot guess build type; you must specify one" >&5
2764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2765 { (exit 1); exit 1; }; }
2766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2767 { { echo "$as_me:2767: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2769 { (exit 1); exit 1; }; }
2772 echo "$as_me:2772: result: $ac_cv_build" >&5
2773 echo "${ECHO_T}$ac_cv_build" >&6
2775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2779 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
2780 echo "$as_me:2780: checking host system type" >&5
2781 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2782 if test "${ac_cv_host+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 ac_cv_host_alias=$host_alias
2786 test -z "$ac_cv_host_alias" &&
2787 ac_cv_host_alias=$ac_cv_build_alias
2788 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2789 { { echo "$as_me:2789: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2790 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2791 { (exit 1); exit 1; }; }
2794 echo "$as_me:2794: result: $ac_cv_host" >&5
2795 echo "${ECHO_T}$ac_cv_host" >&6
2797 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2798 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2799 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2801 system_name="$host_os"
2803 system_name="`(uname -s -r) 2>/dev/null`"
2804 if test -z "$system_name" ; then
2805 system_name="`(hostname) 2>/dev/null`"
2808 test -n "$system_name" &&
2809 cat >>confdefs.h <<EOF
2810 #define SYSTEM_NAME "$system_name"
2813 if test "${cf_cv_system_name+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 cf_cv_system_name="$system_name"
2819 test -z "$system_name" && system_name="$cf_cv_system_name"
2820 test -n "$cf_cv_system_name" && echo "$as_me:2820: result: Configuring for $cf_cv_system_name" >&5
2821 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
2823 if test ".$system_name" != ".$cf_cv_system_name" ; then
2824 echo "$as_me:2824: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
2825 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
2826 { { echo "$as_me:2826: error: \"Please remove config.cache and try again.\"" >&5
2827 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
2828 { (exit 1); exit 1; }; }
2831 case $cf_cv_system_name in
2833 CFLAGS="$CFLAGS -Zmt"
2834 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2835 CXXFLAGS="$CXXFLAGS -Zmt"
2836 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2837 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2844 test -n "$PROG_EXT" &&
2845 cat >>confdefs.h <<EOF
2846 #define PROG_EXT "$PROG_EXT"
2849 echo "$as_me:2849: checking for PATH separator" >&5
2850 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
2851 case $cf_cv_system_name in
2852 os2*) PATH_SEPARATOR=';' ;;
2853 *) ${PATH_SEPARATOR:=':'} ;;
2856 echo "$as_me:2856: result: $PATH_SEPARATOR" >&5
2857 echo "${ECHO_T}$PATH_SEPARATOR" >&6
2859 case $cf_cv_system_name in #(vi
2868 cf_POSIX_C_SOURCE=199506L
2871 case $host_os in #(vi
2873 cf_xopen_source="-D_ALL_SOURCE"
2879 cf_xopen_source="-D_APPLE_C_SOURCE"
2882 cf_xopen_source="-D_DARWIN_C_SOURCE"
2885 freebsd*|dragonfly*) #(vi
2886 # 5.x headers associate
2887 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2888 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2889 cf_POSIX_C_SOURCE=200112L
2891 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2894 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2897 cf_xopen_source="-D_HPUX_SOURCE"
2900 cf_xopen_source="-D_SGI_SOURCE"
2903 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2905 echo "$as_me:2905: checking if we must define _GNU_SOURCE" >&5
2906 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2907 if test "${cf_cv_gnu_source+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 cat >conftest.$ac_ext <<_ACEOF
2912 #line 2912 "configure"
2913 #include "confdefs.h"
2914 #include <sys/types.h>
2919 #ifndef _XOPEN_SOURCE
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:2927: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>&5
2930 echo "$as_me:2930: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:2933: \"$ac_try\"") >&5
2936 echo "$as_me:2936: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2940 echo "$as_me: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2943 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2944 cat >conftest.$ac_ext <<_ACEOF
2945 #line 2945 "configure"
2946 #include "confdefs.h"
2947 #include <sys/types.h>
2952 #ifdef _XOPEN_SOURCE
2959 rm -f conftest.$ac_objext
2960 if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>&5
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:2966: \"$ac_try\"") >&5
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2973 echo "$as_me: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2975 cf_cv_gnu_source=yes
2977 rm -f conftest.$ac_objext conftest.$ac_ext
2981 rm -f conftest.$ac_objext conftest.$ac_ext
2984 echo "$as_me:2984: result: $cf_cv_gnu_source" >&5
2985 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2986 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2990 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2993 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2995 cf_save_CFLAGS="$CFLAGS"
2996 cf_save_CPPFLAGS="$CPPFLAGS"
2998 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2999 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3000 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3002 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3003 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3004 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3006 echo "$as_me:3006: checking if we should define _POSIX_C_SOURCE" >&5
3007 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3008 if test "${cf_cv_posix_c_source+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 echo "${as_me:-configure}:3012: testing if the symbol is already defined go no further ..." 1>&5
3014 cat >conftest.$ac_ext <<_ACEOF
3015 #line 3015 "configure"
3016 #include "confdefs.h"
3017 #include <sys/types.h>
3022 #ifndef _POSIX_C_SOURCE
3029 rm -f conftest.$ac_objext
3030 if { (eval echo "$as_me:3030: \"$ac_compile\"") >&5
3031 (eval $ac_compile) 2>&5
3033 echo "$as_me:3033: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (eval echo "$as_me:3036: \"$ac_try\"") >&5
3039 echo "$as_me:3039: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 cf_cv_posix_c_source=no
3043 echo "$as_me: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 cf_want_posix_source=no
3046 case .$cf_POSIX_C_SOURCE in #(vi
3048 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3051 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3052 cf_want_posix_source=yes
3055 cf_want_posix_source=yes
3058 if test "$cf_want_posix_source" = yes ; then
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #line 3060 "configure"
3061 #include "confdefs.h"
3062 #include <sys/types.h>
3067 #ifdef _POSIX_SOURCE
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:3075: \"$ac_compile\"") >&5
3076 (eval $ac_compile) 2>&5
3078 echo "$as_me:3078: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -s conftest.$ac_objext'
3081 { (eval echo "$as_me:3081: \"$ac_try\"") >&5
3084 echo "$as_me:3084: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3088 echo "$as_me: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3092 rm -f conftest.$ac_objext conftest.$ac_ext
3095 echo "${as_me:-configure}:3095: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3097 CFLAGS="$cf_trim_CFLAGS"
3098 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3100 echo "${as_me:-configure}:3100: testing if the second compile does not leave our definition intact error ..." 1>&5
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #line 3103 "configure"
3104 #include "confdefs.h"
3105 #include <sys/types.h>
3110 #ifndef _POSIX_C_SOURCE
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:3118: \"$ac_compile\"") >&5
3119 (eval $ac_compile) 2>&5
3121 echo "$as_me:3121: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (eval echo "$as_me:3124: \"$ac_try\"") >&5
3127 echo "$as_me:3127: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3131 echo "$as_me: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3133 cf_cv_posix_c_source=no
3135 rm -f conftest.$ac_objext conftest.$ac_ext
3136 CFLAGS="$cf_save_CFLAGS"
3137 CPPFLAGS="$cf_save_CPPFLAGS"
3140 rm -f conftest.$ac_objext conftest.$ac_ext
3143 echo "$as_me:3143: result: $cf_cv_posix_c_source" >&5
3144 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3146 if test "$cf_cv_posix_c_source" != no ; then
3147 CFLAGS="$cf_trim_CFLAGS"
3148 CPPFLAGS="$cf_trim_CPPFLAGS"
3153 cf_new_extra_cppflags=
3155 for cf_add_cflags in $cf_cv_posix_c_source
3157 case $cf_fix_cppflags in
3159 case $cf_add_cflags in #(vi
3160 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3161 case $cf_add_cflags in
3163 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3165 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3166 && test -z "${cf_tst_cflags}" \
3167 && cf_fix_cppflags=yes
3169 if test $cf_fix_cppflags = yes ; then
3170 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3172 elif test "${cf_tst_cflags}" = "\"'" ; then
3173 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3179 *$cf_add_cflags) #(vi
3182 case $cf_add_cflags in #(vi
3184 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3186 CPPFLAGS=`echo "$CPPFLAGS" | \
3187 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3188 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3192 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3197 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3202 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3204 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3206 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3207 && test -z "${cf_tst_cflags}" \
3208 && cf_fix_cppflags=no
3213 if test -n "$cf_new_cflags" ; then
3215 CFLAGS="$CFLAGS $cf_new_cflags"
3218 if test -n "$cf_new_cppflags" ; then
3220 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3223 if test -n "$cf_new_extra_cppflags" ; then
3225 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3232 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3235 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3236 cf_xopen_source="-D_BSD_SOURCE"
3240 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3243 cf_xopen_source="-D_OSF_SOURCE"
3246 cf_xopen_source="-D_QNX_SOURCE"
3249 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3252 cf_xopen_source="-D__EXTENSIONS__"
3256 echo "$as_me:3256: checking if we should define _XOPEN_SOURCE" >&5
3257 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3258 if test "${cf_cv_xopen_source+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 cat >conftest.$ac_ext <<_ACEOF
3263 #line 3263 "configure"
3264 #include "confdefs.h"
3268 #include <sys/types.h>
3274 #ifndef _XOPEN_SOURCE
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:3282: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>&5
3285 echo "$as_me:3285: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:3288: \"$ac_try\"") >&5
3291 echo "$as_me:3291: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 cf_cv_xopen_source=no
3295 echo "$as_me: failed program was:" >&5
3296 cat conftest.$ac_ext >&5
3298 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3299 cat >conftest.$ac_ext <<_ACEOF
3300 #line 3300 "configure"
3301 #include "confdefs.h"
3305 #include <sys/types.h>
3311 #ifdef _XOPEN_SOURCE
3318 rm -f conftest.$ac_objext
3319 if { (eval echo "$as_me:3319: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>&5
3322 echo "$as_me:3322: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -s conftest.$ac_objext'
3325 { (eval echo "$as_me:3325: \"$ac_try\"") >&5
3328 echo "$as_me:3328: \$? = $ac_status" >&5
3329 (exit $ac_status); }; }; then
3330 cf_cv_xopen_source=no
3332 echo "$as_me: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3334 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3336 rm -f conftest.$ac_objext conftest.$ac_ext
3340 rm -f conftest.$ac_objext conftest.$ac_ext
3343 echo "$as_me:3343: result: $cf_cv_xopen_source" >&5
3344 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3346 if test "$cf_cv_xopen_source" != no ; then
3348 CFLAGS=`echo "$CFLAGS" | \
3349 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3350 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3352 CPPFLAGS=`echo "$CPPFLAGS" | \
3353 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3354 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3356 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3361 cf_new_extra_cppflags=
3363 for cf_add_cflags in $cf_temp_xopen_source
3365 case $cf_fix_cppflags in
3367 case $cf_add_cflags in #(vi
3368 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3369 case $cf_add_cflags in
3371 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3373 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3374 && test -z "${cf_tst_cflags}" \
3375 && cf_fix_cppflags=yes
3377 if test $cf_fix_cppflags = yes ; then
3378 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3380 elif test "${cf_tst_cflags}" = "\"'" ; then
3381 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3387 *$cf_add_cflags) #(vi
3390 case $cf_add_cflags in #(vi
3392 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3394 CPPFLAGS=`echo "$CPPFLAGS" | \
3395 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3396 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3400 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3405 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3410 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3412 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3414 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3415 && test -z "${cf_tst_cflags}" \
3416 && cf_fix_cppflags=no
3421 if test -n "$cf_new_cflags" ; then
3423 CFLAGS="$CFLAGS $cf_new_cflags"
3426 if test -n "$cf_new_cppflags" ; then
3428 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3431 if test -n "$cf_new_extra_cppflags" ; then
3433 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3438 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3440 cf_save_CFLAGS="$CFLAGS"
3441 cf_save_CPPFLAGS="$CPPFLAGS"
3443 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3444 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3445 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3447 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3448 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3449 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3451 echo "$as_me:3451: checking if we should define _POSIX_C_SOURCE" >&5
3452 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3453 if test "${cf_cv_posix_c_source+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 echo "${as_me:-configure}:3457: testing if the symbol is already defined go no further ..." 1>&5
3459 cat >conftest.$ac_ext <<_ACEOF
3460 #line 3460 "configure"
3461 #include "confdefs.h"
3462 #include <sys/types.h>
3467 #ifndef _POSIX_C_SOURCE
3474 rm -f conftest.$ac_objext
3475 if { (eval echo "$as_me:3475: \"$ac_compile\"") >&5
3476 (eval $ac_compile) 2>&5
3478 echo "$as_me:3478: \$? = $ac_status" >&5
3479 (exit $ac_status); } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:3481: \"$ac_try\"") >&5
3484 echo "$as_me:3484: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 cf_cv_posix_c_source=no
3488 echo "$as_me: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3490 cf_want_posix_source=no
3491 case .$cf_POSIX_C_SOURCE in #(vi
3493 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3496 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3497 cf_want_posix_source=yes
3500 cf_want_posix_source=yes
3503 if test "$cf_want_posix_source" = yes ; then
3504 cat >conftest.$ac_ext <<_ACEOF
3505 #line 3505 "configure"
3506 #include "confdefs.h"
3507 #include <sys/types.h>
3512 #ifdef _POSIX_SOURCE
3519 rm -f conftest.$ac_objext
3520 if { (eval echo "$as_me:3520: \"$ac_compile\"") >&5
3521 (eval $ac_compile) 2>&5
3523 echo "$as_me:3523: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -s conftest.$ac_objext'
3526 { (eval echo "$as_me:3526: \"$ac_try\"") >&5
3529 echo "$as_me:3529: \$? = $ac_status" >&5
3530 (exit $ac_status); }; }; then
3533 echo "$as_me: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3537 rm -f conftest.$ac_objext conftest.$ac_ext
3540 echo "${as_me:-configure}:3540: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3542 CFLAGS="$cf_trim_CFLAGS"
3543 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3545 echo "${as_me:-configure}:3545: testing if the second compile does not leave our definition intact error ..." 1>&5
3547 cat >conftest.$ac_ext <<_ACEOF
3548 #line 3548 "configure"
3549 #include "confdefs.h"
3550 #include <sys/types.h>
3555 #ifndef _POSIX_C_SOURCE
3562 rm -f conftest.$ac_objext
3563 if { (eval echo "$as_me:3563: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>&5
3566 echo "$as_me:3566: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
3568 { ac_try='test -s conftest.$ac_objext'
3569 { (eval echo "$as_me:3569: \"$ac_try\"") >&5
3572 echo "$as_me:3572: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3576 echo "$as_me: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3578 cf_cv_posix_c_source=no
3580 rm -f conftest.$ac_objext conftest.$ac_ext
3581 CFLAGS="$cf_save_CFLAGS"
3582 CPPFLAGS="$cf_save_CPPFLAGS"
3585 rm -f conftest.$ac_objext conftest.$ac_ext
3588 echo "$as_me:3588: result: $cf_cv_posix_c_source" >&5
3589 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3591 if test "$cf_cv_posix_c_source" != no ; then
3592 CFLAGS="$cf_trim_CFLAGS"
3593 CPPFLAGS="$cf_trim_CPPFLAGS"
3598 cf_new_extra_cppflags=
3600 for cf_add_cflags in $cf_cv_posix_c_source
3602 case $cf_fix_cppflags in
3604 case $cf_add_cflags in #(vi
3605 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3606 case $cf_add_cflags in
3608 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3610 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3611 && test -z "${cf_tst_cflags}" \
3612 && cf_fix_cppflags=yes
3614 if test $cf_fix_cppflags = yes ; then
3615 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3617 elif test "${cf_tst_cflags}" = "\"'" ; then
3618 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3624 *$cf_add_cflags) #(vi
3627 case $cf_add_cflags in #(vi
3629 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3631 CPPFLAGS=`echo "$CPPFLAGS" | \
3632 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3633 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3637 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3642 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3647 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3649 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3651 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3652 && test -z "${cf_tst_cflags}" \
3653 && cf_fix_cppflags=no
3658 if test -n "$cf_new_cflags" ; then
3660 CFLAGS="$CFLAGS $cf_new_cflags"
3663 if test -n "$cf_new_cppflags" ; then
3665 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3668 if test -n "$cf_new_extra_cppflags" ; then
3670 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3678 if test -n "$cf_xopen_source" ; then
3683 cf_new_extra_cppflags=
3685 for cf_add_cflags in $cf_xopen_source
3687 case $cf_fix_cppflags in
3689 case $cf_add_cflags in #(vi
3690 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3691 case $cf_add_cflags in
3693 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3695 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3696 && test -z "${cf_tst_cflags}" \
3697 && cf_fix_cppflags=yes
3699 if test $cf_fix_cppflags = yes ; then
3700 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3702 elif test "${cf_tst_cflags}" = "\"'" ; then
3703 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3709 *$cf_add_cflags) #(vi
3712 case $cf_add_cflags in #(vi
3714 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3716 CPPFLAGS=`echo "$CPPFLAGS" | \
3717 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3718 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3722 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3727 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3732 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3734 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3736 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3737 && test -z "${cf_tst_cflags}" \
3738 && cf_fix_cppflags=no
3743 if test -n "$cf_new_cflags" ; then
3745 CFLAGS="$CFLAGS $cf_new_cflags"
3748 if test -n "$cf_new_cppflags" ; then
3750 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3753 if test -n "$cf_new_extra_cppflags" ; then
3755 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3760 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3761 echo "$as_me:3761: checking if _XOPEN_SOURCE really is set" >&5
3762 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3763 cat >conftest.$ac_ext <<_ACEOF
3764 #line 3764 "configure"
3765 #include "confdefs.h"
3771 #ifndef _XOPEN_SOURCE
3778 rm -f conftest.$ac_objext
3779 if { (eval echo "$as_me:3779: \"$ac_compile\"") >&5
3780 (eval $ac_compile) 2>&5
3782 echo "$as_me:3782: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:3785: \"$ac_try\"") >&5
3788 echo "$as_me:3788: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 cf_XOPEN_SOURCE_set=yes
3792 echo "$as_me: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3794 cf_XOPEN_SOURCE_set=no
3796 rm -f conftest.$ac_objext conftest.$ac_ext
3797 echo "$as_me:3797: result: $cf_XOPEN_SOURCE_set" >&5
3798 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3799 if test $cf_XOPEN_SOURCE_set = yes
3801 cat >conftest.$ac_ext <<_ACEOF
3802 #line 3802 "configure"
3803 #include "confdefs.h"
3809 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3816 rm -f conftest.$ac_objext
3817 if { (eval echo "$as_me:3817: \"$ac_compile\"") >&5
3818 (eval $ac_compile) 2>&5
3820 echo "$as_me:3820: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:3823: \"$ac_try\"") >&5
3826 echo "$as_me:3826: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 cf_XOPEN_SOURCE_set_ok=yes
3830 echo "$as_me: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3832 cf_XOPEN_SOURCE_set_ok=no
3834 rm -f conftest.$ac_objext conftest.$ac_ext
3835 if test $cf_XOPEN_SOURCE_set_ok = no
3837 { echo "$as_me:3837: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3838 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3842 echo "$as_me:3842: checking if we should define _XOPEN_SOURCE" >&5
3843 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3844 if test "${cf_cv_xopen_source+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line 3849 "configure"
3850 #include "confdefs.h"
3854 #include <sys/types.h>
3860 #ifndef _XOPEN_SOURCE
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:3868: \"$ac_compile\"") >&5
3869 (eval $ac_compile) 2>&5
3871 echo "$as_me:3871: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:3874: \"$ac_try\"") >&5
3877 echo "$as_me:3877: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 cf_cv_xopen_source=no
3881 echo "$as_me: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3885 cat >conftest.$ac_ext <<_ACEOF
3886 #line 3886 "configure"
3887 #include "confdefs.h"
3891 #include <sys/types.h>
3897 #ifdef _XOPEN_SOURCE
3904 rm -f conftest.$ac_objext
3905 if { (eval echo "$as_me:3905: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>&5
3908 echo "$as_me:3908: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
3910 { ac_try='test -s conftest.$ac_objext'
3911 { (eval echo "$as_me:3911: \"$ac_try\"") >&5
3914 echo "$as_me:3914: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 cf_cv_xopen_source=no
3918 echo "$as_me: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3920 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3922 rm -f conftest.$ac_objext conftest.$ac_ext
3926 rm -f conftest.$ac_objext conftest.$ac_ext
3929 echo "$as_me:3929: result: $cf_cv_xopen_source" >&5
3930 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3932 if test "$cf_cv_xopen_source" != no ; then
3934 CFLAGS=`echo "$CFLAGS" | \
3935 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3936 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3938 CPPFLAGS=`echo "$CPPFLAGS" | \
3939 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3940 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3942 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3947 cf_new_extra_cppflags=
3949 for cf_add_cflags in $cf_temp_xopen_source
3951 case $cf_fix_cppflags in
3953 case $cf_add_cflags in #(vi
3954 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3955 case $cf_add_cflags in
3957 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3959 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3960 && test -z "${cf_tst_cflags}" \
3961 && cf_fix_cppflags=yes
3963 if test $cf_fix_cppflags = yes ; then
3964 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3966 elif test "${cf_tst_cflags}" = "\"'" ; then
3967 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3973 *$cf_add_cflags) #(vi
3976 case $cf_add_cflags in #(vi
3978 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3980 CPPFLAGS=`echo "$CPPFLAGS" | \
3981 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3982 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3986 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3991 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3996 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3998 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4000 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4001 && test -z "${cf_tst_cflags}" \
4002 && cf_fix_cppflags=no
4007 if test -n "$cf_new_cflags" ; then
4009 CFLAGS="$CFLAGS $cf_new_cflags"
4012 if test -n "$cf_new_cppflags" ; then
4014 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4017 if test -n "$cf_new_extra_cppflags" ; then
4019 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4027 # Check whether --enable-largefile or --disable-largefile was given.
4028 if test "${enable_largefile+set}" = set; then
4029 enableval="$enable_largefile"
4032 if test "$enable_largefile" != no; then
4034 echo "$as_me:4034: checking for special C compiler options needed for large files" >&5
4035 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4036 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 ac_cv_sys_largefile_CC=no
4040 if test "$GCC" != yes; then
4043 # IRIX 6.2 and later do not support large files by default,
4044 # so use the C compiler's -n32 option if that helps.
4045 cat >conftest.$ac_ext <<_ACEOF
4046 #line 4046 "configure"
4047 #include "confdefs.h"
4048 #include <sys/types.h>
4049 /* Check that off_t can represent 2**63 - 1 correctly.
4050 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4051 since some C++ compilers masquerading as C compilers
4052 incorrectly reject 9223372036854775807. */
4053 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4054 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4055 && LARGE_OFF_T % 2147483647 == 1)
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:4066: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>&5
4069 echo "$as_me:4069: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -s conftest.$ac_objext'
4072 { (eval echo "$as_me:4072: \"$ac_try\"") >&5
4075 echo "$as_me:4075: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4079 echo "$as_me: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 rm -f conftest.$ac_objext
4084 rm -f conftest.$ac_objext
4085 if { (eval echo "$as_me:4085: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>&5
4088 echo "$as_me:4088: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:4091: \"$ac_try\"") >&5
4094 echo "$as_me:4094: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 ac_cv_sys_largefile_CC=' -n32'; break
4098 echo "$as_me: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4101 rm -f conftest.$ac_objext
4105 rm -f conftest.$ac_ext
4108 echo "$as_me:4108: result: $ac_cv_sys_largefile_CC" >&5
4109 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4110 if test "$ac_cv_sys_largefile_CC" != no; then
4111 CC=$CC$ac_cv_sys_largefile_CC
4114 echo "$as_me:4114: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4115 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4116 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 ac_cv_sys_file_offset_bits=no
4121 cat >conftest.$ac_ext <<_ACEOF
4122 #line 4122 "configure"
4123 #include "confdefs.h"
4124 #include <sys/types.h>
4125 /* Check that off_t can represent 2**63 - 1 correctly.
4126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4127 since some C++ compilers masquerading as C compilers
4128 incorrectly reject 9223372036854775807. */
4129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4131 && LARGE_OFF_T % 2147483647 == 1)
4141 rm -f conftest.$ac_objext
4142 if { (eval echo "$as_me:4142: \"$ac_compile\"") >&5
4143 (eval $ac_compile) 2>&5
4145 echo "$as_me:4145: \$? = $ac_status" >&5
4146 (exit $ac_status); } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (eval echo "$as_me:4148: \"$ac_try\"") >&5
4151 echo "$as_me:4151: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4155 echo "$as_me: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4158 rm -f conftest.$ac_objext conftest.$ac_ext
4159 cat >conftest.$ac_ext <<_ACEOF
4160 #line 4160 "configure"
4161 #include "confdefs.h"
4162 #define _FILE_OFFSET_BITS 64
4163 #include <sys/types.h>
4164 /* Check that off_t can represent 2**63 - 1 correctly.
4165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4166 since some C++ compilers masquerading as C compilers
4167 incorrectly reject 9223372036854775807. */
4168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4170 && LARGE_OFF_T % 2147483647 == 1)
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:4181: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>&5
4184 echo "$as_me:4184: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:4187: \"$ac_try\"") >&5
4190 echo "$as_me:4190: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_cv_sys_file_offset_bits=64; break
4194 echo "$as_me: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 rm -f conftest.$ac_objext conftest.$ac_ext
4201 echo "$as_me:4201: result: $ac_cv_sys_file_offset_bits" >&5
4202 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4203 if test "$ac_cv_sys_file_offset_bits" != no; then
4205 cat >>confdefs.h <<EOF
4206 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4211 echo "$as_me:4211: checking for _LARGE_FILES value needed for large files" >&5
4212 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4213 if test "${ac_cv_sys_large_files+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 ac_cv_sys_large_files=no
4218 cat >conftest.$ac_ext <<_ACEOF
4219 #line 4219 "configure"
4220 #include "confdefs.h"
4221 #include <sys/types.h>
4222 /* Check that off_t can represent 2**63 - 1 correctly.
4223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4224 since some C++ compilers masquerading as C compilers
4225 incorrectly reject 9223372036854775807. */
4226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4228 && LARGE_OFF_T % 2147483647 == 1)
4238 rm -f conftest.$ac_objext
4239 if { (eval echo "$as_me:4239: \"$ac_compile\"") >&5
4240 (eval $ac_compile) 2>&5
4242 echo "$as_me:4242: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (eval echo "$as_me:4245: \"$ac_try\"") >&5
4248 echo "$as_me:4248: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4252 echo "$as_me: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4255 rm -f conftest.$ac_objext conftest.$ac_ext
4256 cat >conftest.$ac_ext <<_ACEOF
4257 #line 4257 "configure"
4258 #include "confdefs.h"
4259 #define _LARGE_FILES 1
4260 #include <sys/types.h>
4261 /* Check that off_t can represent 2**63 - 1 correctly.
4262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4263 since some C++ compilers masquerading as C compilers
4264 incorrectly reject 9223372036854775807. */
4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4267 && LARGE_OFF_T % 2147483647 == 1)
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:4278: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>&5
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -s conftest.$ac_objext'
4284 { (eval echo "$as_me:4284: \"$ac_try\"") >&5
4287 echo "$as_me:4287: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_sys_large_files=1; break
4291 echo "$as_me: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4294 rm -f conftest.$ac_objext conftest.$ac_ext
4298 echo "$as_me:4298: result: $ac_cv_sys_large_files" >&5
4299 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4300 if test "$ac_cv_sys_large_files" != no; then
4302 cat >>confdefs.h <<EOF
4303 #define _LARGE_FILES $ac_cv_sys_large_files
4310 if test "$enable_largefile" != no ; then
4311 echo "$as_me:4311: checking for _LARGEFILE_SOURCE value needed for large files" >&5
4312 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
4313 if test "${ac_cv_sys_largefile_source+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 ac_cv_sys_largefile_source=no
4318 cat >conftest.$ac_ext <<_ACEOF
4319 #line 4319 "configure"
4320 #include "confdefs.h"
4330 rm -f conftest.$ac_objext
4331 if { (eval echo "$as_me:4331: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>&5
4334 echo "$as_me:4334: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:4337: \"$ac_try\"") >&5
4340 echo "$as_me:4340: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4344 echo "$as_me: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4347 rm -f conftest.$ac_objext conftest.$ac_ext
4348 cat >conftest.$ac_ext <<_ACEOF
4349 #line 4349 "configure"
4350 #include "confdefs.h"
4351 #define _LARGEFILE_SOURCE 1
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:4362: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>&5
4365 echo "$as_me:4365: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (eval echo "$as_me:4368: \"$ac_try\"") >&5
4371 echo "$as_me:4371: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 ac_cv_sys_largefile_source=1; break
4375 echo "$as_me: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4378 rm -f conftest.$ac_objext conftest.$ac_ext
4382 echo "$as_me:4382: result: $ac_cv_sys_largefile_source" >&5
4383 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
4384 if test "$ac_cv_sys_largefile_source" != no; then
4386 cat >>confdefs.h <<EOF
4387 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
4393 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
4394 # in glibc 2.1.3, but that breaks too many other things.
4395 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
4396 echo "$as_me:4396: checking for fseeko" >&5
4397 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
4398 if test "${ac_cv_func_fseeko+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 cat >conftest.$ac_ext <<_ACEOF
4402 #line 4402 "configure"
4403 #include "confdefs.h"
4408 return fseeko && fseeko (stdin, 0, 0);
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (eval echo "$as_me:4414: \"$ac_link\"") >&5
4415 (eval $ac_link) 2>&5
4417 echo "$as_me:4417: \$? = $ac_status" >&5
4418 (exit $ac_status); } &&
4419 { ac_try='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:4420: \"$ac_try\"") >&5
4423 echo "$as_me:4423: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 ac_cv_func_fseeko=yes
4427 echo "$as_me: failed program was:" >&5
4428 cat conftest.$ac_ext >&5
4429 ac_cv_func_fseeko=no
4431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4433 echo "$as_me:4433: result: $ac_cv_func_fseeko" >&5
4434 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
4435 if test $ac_cv_func_fseeko = yes; then
4437 cat >>confdefs.h <<\EOF
4438 #define HAVE_FSEEKO 1
4443 # Normally we would collect these definitions in the config.h,
4444 # but (like _XOPEN_SOURCE), some environments rely on having these
4445 # defined before any of the system headers are included. Another
4446 # case comes up with C++, e.g., on AIX the compiler compiles the
4447 # header files by themselves before looking at the body files it is
4448 # told to compile. For ncurses, those header files do not include
4450 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
4451 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
4452 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
4454 echo "$as_me:4454: checking whether to use struct dirent64" >&5
4455 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
4456 if test "${cf_cv_struct_dirent64+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 cat >conftest.$ac_ext <<_ACEOF
4461 #line 4461 "configure"
4462 #include "confdefs.h"
4464 #include <sys/types.h>
4471 /* if transitional largefile support is setup, this is true */
4472 extern struct dirent64 * readdir(DIR *);
4473 struct dirent64 *x = readdir((DIR *)0);
4474 struct dirent *y = readdir((DIR *)0);
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:4482: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>&5
4485 echo "$as_me:4485: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -s conftest.$ac_objext'
4488 { (eval echo "$as_me:4488: \"$ac_try\"") >&5
4491 echo "$as_me:4491: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 cf_cv_struct_dirent64=yes
4495 echo "$as_me: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4497 cf_cv_struct_dirent64=no
4499 rm -f conftest.$ac_objext conftest.$ac_ext
4502 echo "$as_me:4502: result: $cf_cv_struct_dirent64" >&5
4503 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
4504 test "$cf_cv_struct_dirent64" = yes &&
4505 cat >>confdefs.h <<\EOF
4506 #define HAVE_STRUCT_DIRENT64 1
4511 if ( test "$GCC" = yes || test "$GXX" = yes )
4513 echo "$as_me:4513: checking if you want to check for gcc warnings" >&5
4514 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
4516 # Check whether --with-warnings or --without-warnings was given.
4517 if test "${with_warnings+set}" = set; then
4518 withval="$with_warnings"
4519 cf_opt_with_warnings=$withval
4521 cf_opt_with_warnings=no
4523 echo "$as_me:4523: result: $cf_opt_with_warnings" >&5
4524 echo "${ECHO_T}$cf_opt_with_warnings" >&6
4525 if test "$cf_opt_with_warnings" != no ; then
4527 if test "$GCC" = yes
4529 cat > conftest.i <<EOF
4531 #define GCC_PRINTF 0
4536 #ifndef GCC_NORETURN
4537 #define GCC_NORETURN /* nothing */
4540 #define GCC_UNUSED /* nothing */
4543 if test "$GCC" = yes
4545 { echo "$as_me:4545: checking for $CC __attribute__ directives..." >&5
4546 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4548 "${as_me:-configure}"
4549 #include "confdefs.h"
4550 #include "conftest.h"
4551 #include "conftest.i"
4553 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4555 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4558 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4560 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
4562 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4563 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4564 extern void foo(void) GCC_NORETURN;
4565 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4567 cf_printf_attribute=no
4568 cf_scanf_attribute=no
4569 for cf_attribute in scanf printf unused noreturn
4572 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4574 cf_directive="__attribute__(($cf_attribute))"
4575 echo "checking for $CC $cf_directive" 1>&5
4577 case $cf_attribute in #(vi
4579 cf_printf_attribute=yes
4580 cat >conftest.h <<EOF
4581 #define GCC_$cf_ATTRIBUTE 1
4585 cf_scanf_attribute=yes
4586 cat >conftest.h <<EOF
4587 #define GCC_$cf_ATTRIBUTE 1
4591 cat >conftest.h <<EOF
4592 #define GCC_$cf_ATTRIBUTE $cf_directive
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); }; then
4602 test -n "$verbose" && echo "$as_me:4602: result: ... $cf_attribute" >&5
4603 echo "${ECHO_T}... $cf_attribute" >&6
4604 cat conftest.h >>confdefs.h
4605 case $cf_attribute in #(vi
4608 cat >>confdefs.h <<EOF
4609 #define GCC_NORETURN $cf_directive
4614 cf_value='/* nothing */'
4615 if test "$cf_printf_attribute" != no ; then
4616 cf_value='__attribute__((format(printf,fmt,var)))'
4618 cat >>confdefs.h <<\EOF
4619 #define GCC_PRINTF 1
4624 cat >>confdefs.h <<EOF
4625 #define GCC_PRINTFLIKE(fmt,var) $cf_value
4630 cf_value='/* nothing */'
4631 if test "$cf_scanf_attribute" != no ; then
4632 cf_value='__attribute__((format(scanf,fmt,var)))'
4634 cat >>confdefs.h <<\EOF
4640 cat >>confdefs.h <<EOF
4641 #define GCC_SCANFLIKE(fmt,var) $cf_value
4647 cat >>confdefs.h <<EOF
4648 #define GCC_UNUSED $cf_directive
4656 fgrep define conftest.i >>confdefs.h
4663 if test "$GCC" = yes ; then
4666 echo "$as_me:4666: checking if this is really Intel C compiler" >&5
4667 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4668 cf_save_CFLAGS="$CFLAGS"
4669 CFLAGS="$CFLAGS -no-gcc"
4670 cat >conftest.$ac_ext <<_ACEOF
4671 #line 4671 "configure"
4672 #include "confdefs.h"
4678 #ifdef __INTEL_COMPILER
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:4688: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>&5
4691 echo "$as_me:4691: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (eval echo "$as_me:4694: \"$ac_try\"") >&5
4697 echo "$as_me:4697: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4700 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
4703 echo "$as_me: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4706 rm -f conftest.$ac_objext conftest.$ac_ext
4707 CFLAGS="$cf_save_CFLAGS"
4708 echo "$as_me:4708: result: $INTEL_COMPILER" >&5
4709 echo "${ECHO_T}$INTEL_COMPILER" >&6
4716 if test "$GCC" = yes ; then
4717 echo "$as_me:4717: checking if this is really Clang C compiler" >&5
4718 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
4719 cf_save_CFLAGS="$CFLAGS"
4720 CFLAGS="$CFLAGS -Qunused-arguments"
4721 cat >conftest.$ac_ext <<_ACEOF
4722 #line 4722 "configure"
4723 #include "confdefs.h"
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:4739: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>&5
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4751 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
4754 echo "$as_me: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4757 rm -f conftest.$ac_objext conftest.$ac_ext
4758 CFLAGS="$cf_save_CFLAGS"
4759 echo "$as_me:4759: result: $CLANG_COMPILER" >&5
4760 echo "${ECHO_T}$CLANG_COMPILER" >&6
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4764 "${as_me:-configure}"
4765 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4768 if test "$INTEL_COMPILER" = yes
4770 # The "-wdXXX" options suppress warnings:
4771 # remark #1419: external declaration in primary source file
4772 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4773 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4774 # remark #193: zero used for undefined preprocessing identifier
4775 # remark #593: variable "curs_sb_left_arrow" was set but never used
4776 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4777 # remark #869: parameter "tw" was never referenced
4778 # remark #981: operands are evaluated in unspecified order
4779 # warning #279: controlling expression is constant
4781 { echo "$as_me:4781: checking for $CC warning options..." >&5
4782 echo "$as_me: checking for $CC warning options..." >&6;}
4783 cf_save_CFLAGS="$CFLAGS"
4784 EXTRA_CFLAGS="-Wall"
4796 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4797 if { (eval echo "$as_me:4797: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4800 echo "$as_me:4800: \$? = $ac_status" >&5
4801 (exit $ac_status); }; then
4802 test -n "$verbose" && echo "$as_me:4802: result: ... -$cf_opt" >&5
4803 echo "${ECHO_T}... -$cf_opt" >&6
4804 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4807 CFLAGS="$cf_save_CFLAGS"
4809 elif test "$GCC" = yes
4811 { echo "$as_me:4811: checking for $CC warning options..." >&5
4812 echo "$as_me: checking for $CC warning options..." >&6;}
4813 cf_save_CFLAGS="$CFLAGS"
4816 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4817 for cf_opt in W Wall \
4818 Wbad-function-cast \
4822 Wmissing-declarations \
4823 Wmissing-prototypes \
4827 Wstrict-prototypes \
4828 Wundef $cf_warn_CONST
4830 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4831 if { (eval echo "$as_me:4831: \"$ac_compile\"") >&5
4832 (eval $ac_compile) 2>&5
4834 echo "$as_me:4834: \$? = $ac_status" >&5
4835 (exit $ac_status); }; then
4836 test -n "$verbose" && echo "$as_me:4836: result: ... -$cf_opt" >&5
4837 echo "${ECHO_T}... -$cf_opt" >&6
4838 case $cf_opt in #(vi
4840 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4843 case $GCC_VERSION in
4845 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4847 echo "${as_me:-configure}:4847: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4852 Wpointer-arith) #(vi
4853 case $GCC_VERSION in
4855 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4857 echo "${as_me:-configure}:4857: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4863 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4866 CFLAGS="$cf_save_CFLAGS"
4873 echo "$as_me:4873: checking if you want to use pkg-config" >&5
4874 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4876 # Check whether --with-pkg-config or --without-pkg-config was given.
4877 if test "${with_pkg_config+set}" = set; then
4878 withval="$with_pkg_config"
4879 cf_pkg_config=$withval
4883 echo "$as_me:4883: result: $cf_pkg_config" >&5
4884 echo "${ECHO_T}$cf_pkg_config" >&6
4886 case $cf_pkg_config in #(vi
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4895 echo "$as_me:4895: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4905 ac_save_IFS=$IFS; IFS=$ac_path_separator
4907 for ac_dir in $ac_dummy; do
4909 test -z "$ac_dir" && ac_dir=.
4910 if $as_executable_p "$ac_dir/$ac_word"; then
4911 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4912 echo "$as_me:4912: found $ac_dir/$ac_word" >&5
4920 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4922 if test -n "$PKG_CONFIG"; then
4923 echo "$as_me:4923: result: $PKG_CONFIG" >&5
4924 echo "${ECHO_T}$PKG_CONFIG" >&6
4926 echo "$as_me:4926: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4931 if test -z "$ac_cv_path_PKG_CONFIG"; then
4932 ac_pt_PKG_CONFIG=$PKG_CONFIG
4933 # Extract the first word of "pkg-config", so it can be a program name with args.
4934 set dummy pkg-config; ac_word=$2
4935 echo "$as_me:4935: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 case $ac_pt_PKG_CONFIG in
4942 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4945 ac_save_IFS=$IFS; IFS=$ac_path_separator
4947 for ac_dir in $ac_dummy; do
4949 test -z "$ac_dir" && ac_dir=.
4950 if $as_executable_p "$ac_dir/$ac_word"; then
4951 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4952 echo "$as_me:4952: found $ac_dir/$ac_word" >&5
4957 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4961 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4963 if test -n "$ac_pt_PKG_CONFIG"; then
4964 echo "$as_me:4964: result: $ac_pt_PKG_CONFIG" >&5
4965 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4967 echo "$as_me:4967: result: no" >&5
4968 echo "${ECHO_T}no" >&6
4971 PKG_CONFIG=$ac_pt_PKG_CONFIG
4973 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4982 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4983 if test "$PKG_CONFIG" != none ; then
4985 if test "x$prefix" != xNONE; then
4986 cf_path_syntax="$prefix"
4988 cf_path_syntax="$ac_default_prefix"
4991 case ".$PKG_CONFIG" in #(vi
4992 .\$\(*\)*|.\'*\'*) #(vi
4996 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4998 .\${*prefix}*|.\${*dir}*) #(vi
4999 eval PKG_CONFIG="$PKG_CONFIG"
5000 case ".$PKG_CONFIG" in #(vi
5002 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
5007 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
5010 { { echo "$as_me:5010: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
5011 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
5012 { (exit 1); exit 1; }; }
5018 echo "$as_me:5018: checking for this package's name" >&5
5019 echo $ECHO_N "checking for this package's name... $ECHO_C" >&6
5021 # Check whether --with-package or --without-package was given.
5022 if test "${with_package+set}" = set; then
5023 withval="$with_package"
5028 echo "$as_me:5028: result: $PACKAGE" >&5
5029 echo "${ECHO_T}$PACKAGE" >&6
5031 if test -f $srcdir/VERSION ; then
5032 echo "$as_me:5032: checking for package version" >&5
5033 echo $ECHO_N "checking for package version... $ECHO_C" >&6
5035 # if there are not enough fields, cut returns the last one...
5036 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
5037 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
5038 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
5040 # this is how CF_BUNDLED_INTL uses $VERSION:
5041 VERSION="$cf_field1"
5043 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
5044 test -z "$VERSION_MAJOR" && { { echo "$as_me:5044: error: missing major-version" >&5
5045 echo "$as_me: error: missing major-version" >&2;}
5046 { (exit 1); exit 1; }; }
5048 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
5049 test -z "$VERSION_MINOR" && { { echo "$as_me:5049: error: missing minor-version" >&5
5050 echo "$as_me: error: missing minor-version" >&2;}
5051 { (exit 1); exit 1; }; }
5053 echo "$as_me:5053: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
5054 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
5056 echo "$as_me:5056: checking for package patch date" >&5
5057 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
5058 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
5059 case .$VERSION_PATCH in
5061 { { echo "$as_me:5061: error: missing patch-date $VERSION_PATCH" >&5
5062 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
5063 { (exit 1); exit 1; }; }
5065 .[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
5068 { { echo "$as_me:5068: error: illegal patch-date $VERSION_PATCH" >&5
5069 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
5070 { (exit 1); exit 1; }; }
5073 echo "$as_me:5073: result: $VERSION_PATCH" >&5
5074 echo "${ECHO_T}$VERSION_PATCH" >&6
5076 { { echo "$as_me:5076: error: did not find $srcdir/VERSION" >&5
5077 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
5078 { (exit 1); exit 1; }; }
5081 # show the actual data that we have for versions:
5082 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
5084 echo "${as_me:-configure}:5084: testing ABI VERSION $VERSION ..." 1>&5
5086 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
5088 echo "${as_me:-configure}:5088: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
5090 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
5092 echo "${as_me:-configure}:5092: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
5094 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
5096 echo "${as_me:-configure}:5096: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
5101 cat >>confdefs.h <<EOF
5102 #define PACKAGE "$PACKAGE"
5105 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5107 cat >>confdefs.h <<EOF
5108 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
5111 cat >>confdefs.h <<EOF
5112 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
5115 CFG_ROOTNAME=$PACKAGE
5116 HDR_ROOTNAME=$PACKAGE
5117 LIB_ROOTNAME=$PACKAGE
5119 echo "$as_me:5119: checking if we should install dlg_XXX headers to subdirectory" >&5
5120 echo $ECHO_N "checking if we should install dlg_XXX headers to subdirectory... $ECHO_C" >&6
5122 # Check whether --enable-header-subdir or --disable-header-subdir was given.
5123 if test "${enable_header_subdir+set}" = set; then
5124 enableval="$enable_header_subdir"
5129 echo "$as_me:5129: result: $SUB_INC" >&5
5130 echo "${ECHO_T}$SUB_INC" >&6
5134 echo "$as_me:5134: checking for ANSI C header files" >&5
5135 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5136 if test "${ac_cv_header_stdc+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 cat >conftest.$ac_ext <<_ACEOF
5140 #line 5140 "configure"
5141 #include "confdefs.h"
5148 if { (eval echo "$as_me:5148: \"$ac_cpp conftest.$ac_ext\"") >&5
5149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5151 egrep -v '^ *\+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:5154: \$? = $ac_status" >&5
5155 (exit $ac_status); } >/dev/null; then
5156 if test -s conftest.err; then
5157 ac_cpp_err=$ac_c_preproc_warn_flag
5164 if test -z "$ac_cpp_err"; then
5165 ac_cv_header_stdc=yes
5167 echo "$as_me: failed program was:" >&5
5168 cat conftest.$ac_ext >&5
5169 ac_cv_header_stdc=no
5171 rm -f conftest.err conftest.$ac_ext
5173 if test $ac_cv_header_stdc = yes; then
5174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5175 cat >conftest.$ac_ext <<_ACEOF
5176 #line 5176 "configure"
5177 #include "confdefs.h"
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 egrep "memchr" >/dev/null 2>&1; then
5185 ac_cv_header_stdc=no
5191 if test $ac_cv_header_stdc = yes; then
5192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5193 cat >conftest.$ac_ext <<_ACEOF
5194 #line 5194 "configure"
5195 #include "confdefs.h"
5199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200 egrep "free" >/dev/null 2>&1; then
5203 ac_cv_header_stdc=no
5209 if test $ac_cv_header_stdc = yes; then
5210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5211 if test "$cross_compiling" = yes; then
5214 cat >conftest.$ac_ext <<_ACEOF
5215 #line 5215 "configure"
5216 #include "confdefs.h"
5218 #if ((' ' & 0x0FF) == 0x020)
5219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5222 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5223 || ('j' <= (c) && (c) <= 'r') \
5224 || ('s' <= (c) && (c) <= 'z'))
5225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5233 for (i = 0; i < 256; i++)
5234 if (XOR (islower (i), ISLOWER (i))
5235 || toupper (i) != TOUPPER (i))
5237 $ac_main_return (0);
5240 rm -f conftest$ac_exeext
5241 if { (eval echo "$as_me:5241: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>&5
5244 echo "$as_me:5244: \$? = $ac_status" >&5
5245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5246 { (eval echo "$as_me:5246: \"$ac_try\"") >&5
5249 echo "$as_me:5249: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5253 echo "$as_me: program exited with status $ac_status" >&5
5254 echo "$as_me: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5256 ac_cv_header_stdc=no
5258 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5262 echo "$as_me:5262: result: $ac_cv_header_stdc" >&5
5263 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5264 if test $ac_cv_header_stdc = yes; then
5266 cat >>confdefs.h <<\EOF
5267 #define STDC_HEADERS 1
5272 echo "$as_me:5272: checking for inline" >&5
5273 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5274 if test "${ac_cv_c_inline+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 for ac_kw in inline __inline__ __inline; do
5279 cat >conftest.$ac_ext <<_ACEOF
5280 #line 5280 "configure"
5281 #include "confdefs.h"
5283 static $ac_kw int static_foo () {return 0; }
5284 $ac_kw int foo () {return 0; }
5288 rm -f conftest.$ac_objext
5289 if { (eval echo "$as_me:5289: \"$ac_compile\"") >&5
5290 (eval $ac_compile) 2>&5
5292 echo "$as_me:5292: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -s conftest.$ac_objext'
5295 { (eval echo "$as_me:5295: \"$ac_try\"") >&5
5298 echo "$as_me:5298: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_cv_c_inline=$ac_kw; break
5302 echo "$as_me: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5305 rm -f conftest.$ac_objext conftest.$ac_ext
5309 echo "$as_me:5309: result: $ac_cv_c_inline" >&5
5310 echo "${ECHO_T}$ac_cv_c_inline" >&6
5311 case $ac_cv_c_inline in
5314 cat >>confdefs.h <<\EOF
5318 *) cat >>confdefs.h <<EOF
5319 #define inline $ac_cv_c_inline
5324 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5326 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5327 inttypes.h stdint.h unistd.h
5329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5330 echo "$as_me:5330: checking for $ac_header" >&5
5331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 cat >conftest.$ac_ext <<_ACEOF
5336 #line 5336 "configure"
5337 #include "confdefs.h"
5338 $ac_includes_default
5339 #include <$ac_header>
5341 rm -f conftest.$ac_objext
5342 if { (eval echo "$as_me:5342: \"$ac_compile\"") >&5
5343 (eval $ac_compile) 2>&5
5345 echo "$as_me:5345: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:5348: \"$ac_try\"") >&5
5351 echo "$as_me:5351: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 eval "$as_ac_Header=yes"
5355 echo "$as_me: failed program was:" >&5
5356 cat conftest.$ac_ext >&5
5357 eval "$as_ac_Header=no"
5359 rm -f conftest.$ac_objext conftest.$ac_ext
5361 echo "$as_me:5361: result: `eval echo '${'$as_ac_Header'}'`" >&5
5362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5364 cat >>confdefs.h <<EOF
5365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5371 echo "$as_me:5371: checking for off_t" >&5
5372 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5373 if test "${ac_cv_type_off_t+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 cat >conftest.$ac_ext <<_ACEOF
5377 #line 5377 "configure"
5378 #include "confdefs.h"
5379 $ac_includes_default
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:5392: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5395 echo "$as_me:5395: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:5398: \"$ac_try\"") >&5
5401 echo "$as_me:5401: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_cv_type_off_t=yes
5405 echo "$as_me: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5409 rm -f conftest.$ac_objext conftest.$ac_ext
5411 echo "$as_me:5411: result: $ac_cv_type_off_t" >&5
5412 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5413 if test $ac_cv_type_off_t = yes; then
5417 cat >>confdefs.h <<EOF
5423 echo "$as_me:5423: checking for size_t" >&5
5424 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5425 if test "${ac_cv_type_size_t+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 cat >conftest.$ac_ext <<_ACEOF
5429 #line 5429 "configure"
5430 #include "confdefs.h"
5431 $ac_includes_default
5437 if (sizeof (size_t))
5443 rm -f conftest.$ac_objext
5444 if { (eval echo "$as_me:5444: \"$ac_compile\"") >&5
5445 (eval $ac_compile) 2>&5
5447 echo "$as_me:5447: \$? = $ac_status" >&5
5448 (exit $ac_status); } &&
5449 { ac_try='test -s conftest.$ac_objext'
5450 { (eval echo "$as_me:5450: \"$ac_try\"") >&5
5453 echo "$as_me:5453: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5455 ac_cv_type_size_t=yes
5457 echo "$as_me: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5459 ac_cv_type_size_t=no
5461 rm -f conftest.$ac_objext conftest.$ac_ext
5463 echo "$as_me:5463: result: $ac_cv_type_size_t" >&5
5464 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5465 if test $ac_cv_type_size_t = yes; then
5469 cat >>confdefs.h <<EOF
5470 #define size_t unsigned
5475 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5476 # for constant arguments. Useless!
5477 echo "$as_me:5477: checking for working alloca.h" >&5
5478 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5479 if test "${ac_cv_working_alloca_h+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line 5483 "configure"
5484 #include "confdefs.h"
5489 char *p = (char *) alloca (2 * sizeof (int));
5494 rm -f conftest.$ac_objext conftest$ac_exeext
5495 if { (eval echo "$as_me:5495: \"$ac_link\"") >&5
5496 (eval $ac_link) 2>&5
5498 echo "$as_me:5498: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -s conftest$ac_exeext'
5501 { (eval echo "$as_me:5501: \"$ac_try\"") >&5
5504 echo "$as_me:5504: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 ac_cv_working_alloca_h=yes
5508 echo "$as_me: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5510 ac_cv_working_alloca_h=no
5512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5514 echo "$as_me:5514: result: $ac_cv_working_alloca_h" >&5
5515 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5516 if test $ac_cv_working_alloca_h = yes; then
5518 cat >>confdefs.h <<\EOF
5519 #define HAVE_ALLOCA_H 1
5524 echo "$as_me:5524: checking for alloca" >&5
5525 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5526 if test "${ac_cv_func_alloca_works+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 cat >conftest.$ac_ext <<_ACEOF
5530 #line 5530 "configure"
5531 #include "confdefs.h"
5533 # define alloca __builtin_alloca
5536 # include <malloc.h>
5537 # define alloca _alloca
5540 # include <alloca.h>
5545 # ifndef alloca /* predefined by HP cc +Olibcalls */
5556 char *p = (char *) alloca (1);
5561 rm -f conftest.$ac_objext conftest$ac_exeext
5562 if { (eval echo "$as_me:5562: \"$ac_link\"") >&5
5563 (eval $ac_link) 2>&5
5565 echo "$as_me:5565: \$? = $ac_status" >&5
5566 (exit $ac_status); } &&
5567 { ac_try='test -s conftest$ac_exeext'
5568 { (eval echo "$as_me:5568: \"$ac_try\"") >&5
5571 echo "$as_me:5571: \$? = $ac_status" >&5
5572 (exit $ac_status); }; }; then
5573 ac_cv_func_alloca_works=yes
5575 echo "$as_me: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5577 ac_cv_func_alloca_works=no
5579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5581 echo "$as_me:5581: result: $ac_cv_func_alloca_works" >&5
5582 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5584 if test $ac_cv_func_alloca_works = yes; then
5586 cat >>confdefs.h <<\EOF
5587 #define HAVE_ALLOCA 1
5591 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5592 # that cause trouble. Some versions do not even contain alloca or
5593 # contain a buggy version. If you still want to use their alloca,
5594 # use ar to extract alloca.o from them instead of compiling alloca.c.
5596 ALLOCA=alloca.$ac_objext
5598 cat >>confdefs.h <<\EOF
5602 echo "$as_me:5602: checking whether \`alloca.c' needs Cray hooks" >&5
5603 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5604 if test "${ac_cv_os_cray+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5608 #line 5608 "configure"
5609 #include "confdefs.h"
5610 #if defined(CRAY) && ! defined(CRAY2)
5617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5618 egrep "webecray" >/dev/null 2>&1; then
5626 echo "$as_me:5626: result: $ac_cv_os_cray" >&5
5627 echo "${ECHO_T}$ac_cv_os_cray" >&6
5628 if test $ac_cv_os_cray = yes; then
5629 for ac_func in _getb67 GETB67 getb67; do
5630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5631 echo "$as_me:5631: checking for $ac_func" >&5
5632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5633 if eval "test \"\${$as_ac_var+set}\" = set"; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5637 #line 5637 "configure"
5638 #include "confdefs.h"
5639 /* System header to define __stub macros and hopefully few prototypes,
5640 which can conflict with char $ac_func (); below. */
5642 /* Override any gcc2 internal prototype to avoid an error. */
5646 /* We use char because int might match the return type of a gcc2
5647 builtin and then its argument prototype would still apply. */
5654 /* The GNU C library defines this for functions which it implements
5655 to always fail with ENOSYS. Some functions are actually named
5656 something starting with __ and the normal name is an alias. */
5657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5660 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:5668: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>&5
5671 echo "$as_me:5671: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -s conftest$ac_exeext'
5674 { (eval echo "$as_me:5674: \"$ac_try\"") >&5
5677 echo "$as_me:5677: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 eval "$as_ac_var=yes"
5681 echo "$as_me: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5683 eval "$as_ac_var=no"
5685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5687 echo "$as_me:5687: result: `eval echo '${'$as_ac_var'}'`" >&5
5688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5689 if test `eval echo '${'$as_ac_var'}'` = yes; then
5691 cat >>confdefs.h <<EOF
5692 #define CRAY_STACKSEG_END $ac_func
5701 echo "$as_me:5701: checking stack direction for C alloca" >&5
5702 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5703 if test "${ac_cv_c_stack_direction+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 if test "$cross_compiling" = yes; then
5707 ac_cv_c_stack_direction=0
5709 cat >conftest.$ac_ext <<_ACEOF
5710 #line 5710 "configure"
5711 #include "confdefs.h"
5713 find_stack_direction ()
5715 static char *addr = 0;
5720 return find_stack_direction ();
5723 return (&dummy > addr) ? 1 : -1;
5729 $ac_main_return (find_stack_direction () < 0);
5732 rm -f conftest$ac_exeext
5733 if { (eval echo "$as_me:5733: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
5736 echo "$as_me:5736: \$? = $ac_status" >&5
5737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5738 { (eval echo "$as_me:5738: \"$ac_try\"") >&5
5741 echo "$as_me:5741: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_c_stack_direction=1
5745 echo "$as_me: program exited with status $ac_status" >&5
5746 echo "$as_me: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5748 ac_cv_c_stack_direction=-1
5750 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5753 echo "$as_me:5753: result: $ac_cv_c_stack_direction" >&5
5754 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5756 cat >>confdefs.h <<EOF
5757 #define STACK_DIRECTION $ac_cv_c_stack_direction
5762 for ac_header in stdlib.h unistd.h
5764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5765 echo "$as_me:5765: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 cat >conftest.$ac_ext <<_ACEOF
5771 #line 5771 "configure"
5772 #include "confdefs.h"
5773 #include <$ac_header>
5775 if { (eval echo "$as_me:5775: \"$ac_cpp conftest.$ac_ext\"") >&5
5776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5778 egrep -v '^ *\+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 echo "$as_me:5781: \$? = $ac_status" >&5
5782 (exit $ac_status); } >/dev/null; then
5783 if test -s conftest.err; then
5784 ac_cpp_err=$ac_c_preproc_warn_flag
5791 if test -z "$ac_cpp_err"; then
5792 eval "$as_ac_Header=yes"
5794 echo "$as_me: failed program was:" >&5
5795 cat conftest.$ac_ext >&5
5796 eval "$as_ac_Header=no"
5798 rm -f conftest.err conftest.$ac_ext
5800 echo "$as_me:5800: result: `eval echo '${'$as_ac_Header'}'`" >&5
5801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803 cat >>confdefs.h <<EOF
5804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5810 for ac_func in getpagesize
5812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5813 echo "$as_me:5813: checking for $ac_func" >&5
5814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5815 if eval "test \"\${$as_ac_var+set}\" = set"; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 cat >conftest.$ac_ext <<_ACEOF
5819 #line 5819 "configure"
5820 #include "confdefs.h"
5821 /* System header to define __stub macros and hopefully few prototypes,
5822 which can conflict with char $ac_func (); below. */
5824 /* Override any gcc2 internal prototype to avoid an error. */
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5842 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (eval echo "$as_me:5850: \"$ac_link\"") >&5
5851 (eval $ac_link) 2>&5
5853 echo "$as_me:5853: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -s conftest$ac_exeext'
5856 { (eval echo "$as_me:5856: \"$ac_try\"") >&5
5859 echo "$as_me:5859: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 eval "$as_ac_var=yes"
5863 echo "$as_me: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5865 eval "$as_ac_var=no"
5867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5869 echo "$as_me:5869: result: `eval echo '${'$as_ac_var'}'`" >&5
5870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5871 if test `eval echo '${'$as_ac_var'}'` = yes; then
5872 cat >>confdefs.h <<EOF
5873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5879 echo "$as_me:5879: checking for working mmap" >&5
5880 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5881 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 if test "$cross_compiling" = yes; then
5885 ac_cv_func_mmap_fixed_mapped=no
5887 cat >conftest.$ac_ext <<_ACEOF
5888 #line 5888 "configure"
5889 #include "confdefs.h"
5890 $ac_includes_default
5891 /* Thanks to Mike Haertel and Jim Avera for this test.
5892 Here is a matrix of mmap possibilities:
5893 mmap private not fixed
5894 mmap private fixed at somewhere currently unmapped
5895 mmap private fixed at somewhere already mapped
5896 mmap shared not fixed
5897 mmap shared fixed at somewhere currently unmapped
5898 mmap shared fixed at somewhere already mapped
5899 For private mappings, we should verify that changes cannot be read()
5900 back from the file, nor mmap's back from the file at a different
5901 address. (There have been systems where private was not correctly
5902 implemented like the infamous i386 svr4.0, and systems where the
5903 VM page cache was not coherent with the file system buffer cache
5904 like early versions of FreeBSD and possibly contemporary NetBSD.)
5905 For shared mappings, we should conversely verify that changes get
5906 propogated back to all the places they're supposed to be.
5908 Grep wants private fixed already mapped.
5909 The main things grep needs to know about mmap are:
5910 * does it exist and is it safe to write into the mmap'd area
5911 * how to use it (BSD variants) */
5914 #include <sys/mman.h>
5916 #if !STDC_HEADERS && !HAVE_STDLIB_H
5920 /* This mess was copied from the GNU getpagesize.h. */
5921 #if !HAVE_GETPAGESIZE
5922 /* Assume that all systems that can run configure have sys/param.h. */
5923 # if !HAVE_SYS_PARAM_H
5924 # define HAVE_SYS_PARAM_H 1
5927 # ifdef _SC_PAGESIZE
5928 # define getpagesize() sysconf(_SC_PAGESIZE)
5929 # else /* no _SC_PAGESIZE */
5930 # if HAVE_SYS_PARAM_H
5931 # include <sys/param.h>
5932 # ifdef EXEC_PAGESIZE
5933 # define getpagesize() EXEC_PAGESIZE
5934 # else /* no EXEC_PAGESIZE */
5936 # define getpagesize() NBPG * CLSIZE
5939 # endif /* no CLSIZE */
5940 # else /* no NBPG */
5942 # define getpagesize() NBPC
5943 # else /* no NBPC */
5945 # define getpagesize() PAGESIZE
5946 # endif /* PAGESIZE */
5947 # endif /* no NBPC */
5948 # endif /* no NBPG */
5949 # endif /* no EXEC_PAGESIZE */
5950 # else /* no HAVE_SYS_PARAM_H */
5951 # define getpagesize() 8192 /* punt totally */
5952 # endif /* no HAVE_SYS_PARAM_H */
5953 # endif /* no _SC_PAGESIZE */
5955 #endif /* no HAVE_GETPAGESIZE */
5960 char *data, *data2, *data3;
5964 pagesize = getpagesize ();
5966 /* First, make a file with some known garbage in it. */
5967 data = (char *) malloc (pagesize);
5969 $ac_main_return (1);
5970 for (i = 0; i < pagesize; ++i)
5971 *(data + i) = rand ();
5973 fd = creat ("conftest.mmap", 0600);
5975 $ac_main_return (1);
5976 if (write (fd, data, pagesize) != pagesize)
5977 $ac_main_return (1);
5980 /* Next, try to mmap the file at a fixed address which already has
5981 something else allocated at it. If we can, also make sure that
5982 we see the same garbage. */
5983 fd = open ("conftest.mmap", O_RDWR);
5985 $ac_main_return (1);
5986 data2 = (char *) malloc (2 * pagesize);
5988 $ac_main_return (1);
5989 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5990 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5991 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5992 $ac_main_return (1);
5993 for (i = 0; i < pagesize; ++i)
5994 if (*(data + i) != *(data2 + i))
5995 $ac_main_return (1);
5997 /* Finally, make sure that changes to the mapped area do not
5998 percolate back to the file as seen by read(). (This is a bug on
5999 some variants of i386 svr4.0.) */
6000 for (i = 0; i < pagesize; ++i)
6001 *(data2 + i) = *(data2 + i) + 1;
6002 data3 = (char *) malloc (pagesize);
6004 $ac_main_return (1);
6005 if (read (fd, data3, pagesize) != pagesize)
6006 $ac_main_return (1);
6007 for (i = 0; i < pagesize; ++i)
6008 if (*(data + i) != *(data3 + i))
6009 $ac_main_return (1);
6011 $ac_main_return (0);
6014 rm -f conftest$ac_exeext
6015 if { (eval echo "$as_me:6015: \"$ac_link\"") >&5
6016 (eval $ac_link) 2>&5
6018 echo "$as_me:6018: \$? = $ac_status" >&5
6019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6020 { (eval echo "$as_me:6020: \"$ac_try\"") >&5
6023 echo "$as_me:6023: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_func_mmap_fixed_mapped=yes
6027 echo "$as_me: program exited with status $ac_status" >&5
6028 echo "$as_me: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6030 ac_cv_func_mmap_fixed_mapped=no
6032 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6035 echo "$as_me:6035: result: $ac_cv_func_mmap_fixed_mapped" >&5
6036 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6037 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6039 cat >>confdefs.h <<\EOF
6046 echo "$as_me:6046: checking whether we are using the GNU C Library 2.1 or newer" >&5
6047 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6048 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 cat >conftest.$ac_ext <<_ACEOF
6052 #line 6052 "configure"
6053 #include "confdefs.h"
6055 #include <features.h>
6056 #ifdef __GNU_LIBRARY__
6057 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6064 egrep "Lucky GNU user" >/dev/null 2>&1; then
6065 ac_cv_gnu_library_2_1=yes
6067 ac_cv_gnu_library_2_1=no
6072 echo "$as_me:6072: result: $ac_cv_gnu_library_2_1" >&5
6073 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6075 GLIBC21="$ac_cv_gnu_library_2_1"
6077 cf_makefile=makefile
6079 test -z "$ALL_LINGUAS" && ALL_LINGUAS=`test -d $srcdir/po && cd $srcdir/po && echo *.po|sed -e 's/\.po//g' -e 's/*//'`
6081 # Allow override of "config.h" definition:
6082 : ${CONFIG_H:=config.h}
6084 if test -z "$PACKAGE" ; then
6085 { { echo "$as_me:6085: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&5
6086 echo "$as_me: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&2;}
6087 { (exit 1); exit 1; }; }
6090 if test -z "$VERSION" ; then
6091 if test -f $srcdir/VERSION ; then
6092 VERSION=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
6098 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6099 stdlib.h string.h unistd.h sys/param.h
6101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6102 echo "$as_me:6102: checking for $ac_header" >&5
6103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 cat >conftest.$ac_ext <<_ACEOF
6108 #line 6108 "configure"
6109 #include "confdefs.h"
6110 #include <$ac_header>
6112 if { (eval echo "$as_me:6112: \"$ac_cpp conftest.$ac_ext\"") >&5
6113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6115 egrep -v '^ *\+' conftest.er1 >conftest.err
6117 cat conftest.err >&5
6118 echo "$as_me:6118: \$? = $ac_status" >&5
6119 (exit $ac_status); } >/dev/null; then
6120 if test -s conftest.err; then
6121 ac_cpp_err=$ac_c_preproc_warn_flag
6128 if test -z "$ac_cpp_err"; then
6129 eval "$as_ac_Header=yes"
6131 echo "$as_me: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6133 eval "$as_ac_Header=no"
6135 rm -f conftest.err conftest.$ac_ext
6137 echo "$as_me:6137: result: `eval echo '${'$as_ac_Header'}'`" >&5
6138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6140 cat >>confdefs.h <<EOF
6141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
6148 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
6149 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6152 echo "$as_me:6152: checking for $ac_func" >&5
6153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6154 if eval "test \"\${$as_ac_var+set}\" = set"; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 cat >conftest.$ac_ext <<_ACEOF
6158 #line 6158 "configure"
6159 #include "confdefs.h"
6160 /* System header to define __stub macros and hopefully few prototypes,
6161 which can conflict with char $ac_func (); below. */
6163 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6175 /* The GNU C library defines this for functions which it implements
6176 to always fail with ENOSYS. Some functions are actually named
6177 something starting with __ and the normal name is an alias. */
6178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6181 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (eval echo "$as_me:6189: \"$ac_link\"") >&5
6190 (eval $ac_link) 2>&5
6192 echo "$as_me:6192: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try='test -s conftest$ac_exeext'
6195 { (eval echo "$as_me:6195: \"$ac_try\"") >&5
6198 echo "$as_me:6198: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 eval "$as_ac_var=yes"
6202 echo "$as_me: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6204 eval "$as_ac_var=no"
6206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6208 echo "$as_me:6208: result: `eval echo '${'$as_ac_var'}'`" >&5
6209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6210 if test `eval echo '${'$as_ac_var'}'` = yes; then
6211 cat >>confdefs.h <<EOF
6212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6218 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6219 if test "${with_libiconv_prefix+set}" = set; then
6220 withval="$with_libiconv_prefix"
6222 case "$withval" in #(vi
6229 for cf_searchpath in `echo "$withval" | tr $PATH_SEPARATOR ' '`; do
6230 if test -d $cf_searchpath/include; then
6232 if test -n "$cf_searchpath/include" ; then
6233 for cf_add_incdir in $cf_searchpath/include
6235 while test $cf_add_incdir != /usr/include
6237 if test -d $cf_add_incdir
6240 if test -n "$CFLAGS$CPPFLAGS" ; then
6241 # a loop is needed to ensure we can add subdirs of existing dirs
6242 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6243 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6244 cf_have_incdir=yes; break
6249 if test "$cf_have_incdir" = no ; then
6250 if test "$cf_add_incdir" = /usr/local/include ; then
6251 if test "$GCC" = yes
6253 cf_save_CPPFLAGS=$CPPFLAGS
6254 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6255 cat >conftest.$ac_ext <<_ACEOF
6256 #line 6256 "configure"
6257 #include "confdefs.h"
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:6268: \"$ac_compile\"") >&5
6269 (eval $ac_compile) 2>&5
6271 echo "$as_me:6271: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:6274: \"$ac_try\"") >&5
6277 echo "$as_me:6277: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6281 echo "$as_me: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6285 rm -f conftest.$ac_objext conftest.$ac_ext
6286 CPPFLAGS=$cf_save_CPPFLAGS
6291 if test "$cf_have_incdir" = no ; then
6292 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6294 echo "${as_me:-configure}:6294: testing adding $cf_add_incdir to include-path ..." 1>&5
6296 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6298 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6299 test "$cf_top_incdir" = "$cf_add_incdir" && break
6300 cf_add_incdir="$cf_top_incdir"
6309 elif test -d $cf_searchpath/../include ; then
6311 if test -n "$cf_searchpath/../include" ; then
6312 for cf_add_incdir in $cf_searchpath/../include
6314 while test $cf_add_incdir != /usr/include
6316 if test -d $cf_add_incdir
6319 if test -n "$CFLAGS$CPPFLAGS" ; then
6320 # a loop is needed to ensure we can add subdirs of existing dirs
6321 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6322 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6323 cf_have_incdir=yes; break
6328 if test "$cf_have_incdir" = no ; then
6329 if test "$cf_add_incdir" = /usr/local/include ; then
6330 if test "$GCC" = yes
6332 cf_save_CPPFLAGS=$CPPFLAGS
6333 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6334 cat >conftest.$ac_ext <<_ACEOF
6335 #line 6335 "configure"
6336 #include "confdefs.h"
6346 rm -f conftest.$ac_objext
6347 if { (eval echo "$as_me:6347: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>&5
6350 echo "$as_me:6350: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -s conftest.$ac_objext'
6353 { (eval echo "$as_me:6353: \"$ac_try\"") >&5
6356 echo "$as_me:6356: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6360 echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6364 rm -f conftest.$ac_objext conftest.$ac_ext
6365 CPPFLAGS=$cf_save_CPPFLAGS
6370 if test "$cf_have_incdir" = no ; then
6371 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6373 echo "${as_me:-configure}:6373: testing adding $cf_add_incdir to include-path ..." 1>&5
6375 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6377 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6378 test "$cf_top_incdir" = "$cf_add_incdir" && break
6379 cf_add_incdir="$cf_top_incdir"
6389 { { echo "$as_me:6389: error: cannot find libiconv under $withval" >&5
6390 echo "$as_me: error: cannot find libiconv under $withval" >&2;}
6391 { (exit 1); exit 1; }; }
6393 if test -d $cf_searchpath/lib; then
6395 if test -n "$cf_searchpath/lib" ; then
6396 for cf_add_libdir in $cf_searchpath/lib
6398 if test $cf_add_libdir = /usr/lib ; then
6400 elif test -d $cf_add_libdir
6403 if test -n "$LDFLAGS$LIBS" ; then
6404 # a loop is needed to ensure we can add subdirs of existing dirs
6405 for cf_test_libdir in $LDFLAGS $LIBS ; do
6406 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6407 cf_have_libdir=yes; break
6411 if test "$cf_have_libdir" = no ; then
6412 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6414 echo "${as_me:-configure}:6414: testing adding $cf_add_libdir to library-path ..." 1>&5
6416 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6422 elif test -d $cf_searchpath ; then
6424 if test -n "$cf_searchpath" ; then
6425 for cf_add_libdir in $cf_searchpath
6427 if test $cf_add_libdir = /usr/lib ; then
6429 elif test -d $cf_add_libdir
6432 if test -n "$LDFLAGS$LIBS" ; then
6433 # a loop is needed to ensure we can add subdirs of existing dirs
6434 for cf_test_libdir in $LDFLAGS $LIBS ; do
6435 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6436 cf_have_libdir=yes; break
6440 if test "$cf_have_libdir" = no ; then
6441 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6443 echo "${as_me:-configure}:6443: testing adding $cf_add_libdir to library-path ..." 1>&5
6445 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6452 { { echo "$as_me:6452: error: cannot find libiconv under $withval" >&5
6453 echo "$as_me: error: cannot find libiconv under $withval" >&2;}
6454 { (exit 1); exit 1; }; }
6463 echo "$as_me:6463: checking for iconv" >&5
6464 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6465 if test "${am_cv_func_iconv+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6470 # will be set on completion of the AC_TRY_LINK below.
6471 cf_cv_header_path_iconv=
6472 cf_cv_library_path_iconv=
6474 echo "${as_me:-configure}:6474: testing Starting FIND_LINKAGE(iconv,) ..." 1>&5
6476 cf_save_LIBS="$LIBS"
6478 cat >conftest.$ac_ext <<_ACEOF
6479 #line 6479 "configure"
6480 #include "confdefs.h"
6489 iconv_t cd = iconv_open("","");
6490 iconv(cd,NULL,NULL,NULL,NULL);
6497 rm -f conftest.$ac_objext conftest$ac_exeext
6498 if { (eval echo "$as_me:6498: \"$ac_link\"") >&5
6499 (eval $ac_link) 2>&5
6501 echo "$as_me:6501: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -s conftest$ac_exeext'
6504 { (eval echo "$as_me:6504: \"$ac_try\"") >&5
6507 echo "$as_me:6507: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6510 cf_cv_find_linkage_iconv=yes
6511 cf_cv_header_path_iconv=/usr/include
6512 cf_cv_library_path_iconv=/usr/lib
6515 echo "$as_me: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 LIBS="-liconv $cf_save_LIBS"
6520 cat >conftest.$ac_ext <<_ACEOF
6521 #line 6521 "configure"
6522 #include "confdefs.h"
6531 iconv_t cd = iconv_open("","");
6532 iconv(cd,NULL,NULL,NULL,NULL);
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (eval echo "$as_me:6540: \"$ac_link\"") >&5
6541 (eval $ac_link) 2>&5
6543 echo "$as_me:6543: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest$ac_exeext'
6546 { (eval echo "$as_me:6546: \"$ac_try\"") >&5
6549 echo "$as_me:6549: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6552 cf_cv_find_linkage_iconv=yes
6553 cf_cv_header_path_iconv=/usr/include
6554 cf_cv_library_path_iconv=/usr/lib
6555 cf_cv_library_file_iconv="-liconv"
6558 echo "$as_me: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6561 cf_cv_find_linkage_iconv=no
6562 LIBS="$cf_save_LIBS"
6564 test -n "$verbose" && echo " find linkage for iconv library" 1>&6
6566 echo "${as_me:-configure}:6566: testing find linkage for iconv library ..." 1>&5
6568 echo "${as_me:-configure}:6568: testing Searching for headers in FIND_LINKAGE(iconv,) ..." 1>&5
6570 cf_save_CPPFLAGS="$CPPFLAGS"
6571 cf_test_CPPFLAGS="$CPPFLAGS"
6575 # collect the current set of include-directories from compiler flags
6576 cf_header_path_list=""
6577 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6578 for cf_header_path in $CPPFLAGS $CFLAGS
6580 case $cf_header_path in #(vi
6582 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6584 test "$cf_header_path" != "NONE" && \
6585 test -d "$cf_header_path" && \
6587 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6588 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6589 test -d $cf_header_path/include/iconv && cf_search="$cf_search $cf_header_path/include/iconv"
6590 test -d $cf_header_path/include/iconv/include && cf_search="$cf_search $cf_header_path/include/iconv/include"
6591 test -d $cf_header_path/iconv/include && cf_search="$cf_search $cf_header_path/iconv/include"
6592 test -d $cf_header_path/iconv/include/iconv && cf_search="$cf_search $cf_header_path/iconv/include/iconv"
6595 cf_header_path_list="$cf_header_path_list $cf_search"
6601 # add the variations for the package we are looking for
6605 test "/usr" != "$prefix" && \
6607 (test $prefix = NONE || test "/usr" != "$prefix") && {
6608 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6609 test -d /usr/include && cf_search="$cf_search /usr/include"
6610 test -d /usr/include/iconv && cf_search="$cf_search /usr/include/iconv"
6611 test -d /usr/include/iconv/include && cf_search="$cf_search /usr/include/iconv/include"
6612 test -d /usr/iconv/include && cf_search="$cf_search /usr/iconv/include"
6613 test -d /usr/iconv/include/iconv && cf_search="$cf_search /usr/iconv/include/iconv"
6616 test "$prefix" != "NONE" && \
6617 test -d "$prefix" && \
6619 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6620 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6621 test -d $prefix/include/iconv && cf_search="$cf_search $prefix/include/iconv"
6622 test -d $prefix/include/iconv/include && cf_search="$cf_search $prefix/include/iconv/include"
6623 test -d $prefix/iconv/include && cf_search="$cf_search $prefix/iconv/include"
6624 test -d $prefix/iconv/include/iconv && cf_search="$cf_search $prefix/iconv/include/iconv"
6627 test "/usr/local" != "$prefix" && \
6628 test -d "/usr/local" && \
6629 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6630 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6631 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6632 test -d /usr/local/include/iconv && cf_search="$cf_search /usr/local/include/iconv"
6633 test -d /usr/local/include/iconv/include && cf_search="$cf_search /usr/local/include/iconv/include"
6634 test -d /usr/local/iconv/include && cf_search="$cf_search /usr/local/iconv/include"
6635 test -d /usr/local/iconv/include/iconv && cf_search="$cf_search /usr/local/iconv/include/iconv"
6638 test "/opt" != "$prefix" && \
6640 (test $prefix = NONE || test "/opt" != "$prefix") && {
6641 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6642 test -d /opt/include && cf_search="$cf_search /opt/include"
6643 test -d /opt/include/iconv && cf_search="$cf_search /opt/include/iconv"
6644 test -d /opt/include/iconv/include && cf_search="$cf_search /opt/include/iconv/include"
6645 test -d /opt/iconv/include && cf_search="$cf_search /opt/iconv/include"
6646 test -d /opt/iconv/include/iconv && cf_search="$cf_search /opt/iconv/include/iconv"
6649 test "$HOME" != "$prefix" && \
6650 test -d "$HOME" && \
6651 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6652 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6653 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6654 test -d $HOME/include/iconv && cf_search="$cf_search $HOME/include/iconv"
6655 test -d $HOME/include/iconv/include && cf_search="$cf_search $HOME/include/iconv/include"
6656 test -d $HOME/iconv/include && cf_search="$cf_search $HOME/iconv/include"
6657 test -d $HOME/iconv/include/iconv && cf_search="$cf_search $HOME/iconv/include/iconv"
6660 test "$includedir" != NONE && \
6661 test "$includedir" != "/usr/include" && \
6662 test -d "$includedir" && {
6663 test -d $includedir && cf_search="$cf_search $includedir"
6664 test -d $includedir/iconv && cf_search="$cf_search $includedir/iconv"
6667 test "$oldincludedir" != NONE && \
6668 test "$oldincludedir" != "/usr/include" && \
6669 test -d "$oldincludedir" && {
6670 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6671 test -d $oldincludedir/iconv && cf_search="$cf_search $oldincludedir/iconv"
6674 cf_search="$cf_search $cf_header_path_list"
6676 for cf_cv_header_path_iconv in $cf_search
6678 if test -d $cf_cv_header_path_iconv ; then
6679 test -n "$verbose" && echo " ... testing $cf_cv_header_path_iconv" 1>&6
6681 echo "${as_me:-configure}:6681: testing ... testing $cf_cv_header_path_iconv ..." 1>&5
6683 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_iconv"
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line 6685 "configure"
6686 #include "confdefs.h"
6695 iconv_t cd = iconv_open("","");
6696 iconv(cd,NULL,NULL,NULL,NULL);
6703 rm -f conftest.$ac_objext
6704 if { (eval echo "$as_me:6704: \"$ac_compile\"") >&5
6705 (eval $ac_compile) 2>&5
6707 echo "$as_me:6707: \$? = $ac_status" >&5
6708 (exit $ac_status); } &&
6709 { ac_try='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:6710: \"$ac_try\"") >&5
6713 echo "$as_me:6713: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6716 test -n "$verbose" && echo " ... found iconv headers in $cf_cv_header_path_iconv" 1>&6
6718 echo "${as_me:-configure}:6718: testing ... found iconv headers in $cf_cv_header_path_iconv ..." 1>&5
6720 cf_cv_find_linkage_iconv=maybe
6721 cf_test_CPPFLAGS="$CPPFLAGS"
6724 echo "$as_me: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6727 CPPFLAGS="$cf_save_CPPFLAGS"
6730 rm -f conftest.$ac_objext conftest.$ac_ext
6734 if test "$cf_cv_find_linkage_iconv" = maybe ; then
6736 echo "${as_me:-configure}:6736: testing Searching for iconv library in FIND_LINKAGE(iconv,) ..." 1>&5
6738 cf_save_LIBS="$LIBS"
6739 cf_save_LDFLAGS="$LDFLAGS"
6741 if test "$cf_cv_find_linkage_iconv" != yes ; then
6744 cf_library_path_list=""
6745 if test -n "${LDFLAGS}${LIBS}" ; then
6746 for cf_library_path in $LDFLAGS $LIBS
6748 case $cf_library_path in #(vi
6750 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6752 test "$cf_library_path" != "NONE" && \
6753 test -d "$cf_library_path" && \
6755 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6756 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6757 test -d $cf_library_path/lib/iconv && cf_search="$cf_search $cf_library_path/lib/iconv"
6758 test -d $cf_library_path/lib/iconv/lib && cf_search="$cf_search $cf_library_path/lib/iconv/lib"
6759 test -d $cf_library_path/iconv/lib && cf_search="$cf_search $cf_library_path/iconv/lib"
6760 test -d $cf_library_path/iconv/lib/iconv && cf_search="$cf_search $cf_library_path/iconv/lib/iconv"
6763 cf_library_path_list="$cf_library_path_list $cf_search"
6771 test "/usr" != "$prefix" && \
6773 (test $prefix = NONE || test "/usr" != "$prefix") && {
6774 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6775 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6776 test -d /usr/lib/iconv && cf_search="$cf_search /usr/lib/iconv"
6777 test -d /usr/lib/iconv/lib && cf_search="$cf_search /usr/lib/iconv/lib"
6778 test -d /usr/iconv/lib && cf_search="$cf_search /usr/iconv/lib"
6779 test -d /usr/iconv/lib/iconv && cf_search="$cf_search /usr/iconv/lib/iconv"
6782 test "$prefix" != "NONE" && \
6783 test -d "$prefix" && \
6785 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6786 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6787 test -d $prefix/lib/iconv && cf_search="$cf_search $prefix/lib/iconv"
6788 test -d $prefix/lib/iconv/lib && cf_search="$cf_search $prefix/lib/iconv/lib"
6789 test -d $prefix/iconv/lib && cf_search="$cf_search $prefix/iconv/lib"
6790 test -d $prefix/iconv/lib/iconv && cf_search="$cf_search $prefix/iconv/lib/iconv"
6793 test "/usr/local" != "$prefix" && \
6794 test -d "/usr/local" && \
6795 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6796 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6797 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6798 test -d /usr/local/lib/iconv && cf_search="$cf_search /usr/local/lib/iconv"
6799 test -d /usr/local/lib/iconv/lib && cf_search="$cf_search /usr/local/lib/iconv/lib"
6800 test -d /usr/local/iconv/lib && cf_search="$cf_search /usr/local/iconv/lib"
6801 test -d /usr/local/iconv/lib/iconv && cf_search="$cf_search /usr/local/iconv/lib/iconv"
6804 test "/opt" != "$prefix" && \
6806 (test $prefix = NONE || test "/opt" != "$prefix") && {
6807 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6808 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6809 test -d /opt/lib/iconv && cf_search="$cf_search /opt/lib/iconv"
6810 test -d /opt/lib/iconv/lib && cf_search="$cf_search /opt/lib/iconv/lib"
6811 test -d /opt/iconv/lib && cf_search="$cf_search /opt/iconv/lib"
6812 test -d /opt/iconv/lib/iconv && cf_search="$cf_search /opt/iconv/lib/iconv"
6815 test "$HOME" != "$prefix" && \
6816 test -d "$HOME" && \
6817 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6818 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6819 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6820 test -d $HOME/lib/iconv && cf_search="$cf_search $HOME/lib/iconv"
6821 test -d $HOME/lib/iconv/lib && cf_search="$cf_search $HOME/lib/iconv/lib"
6822 test -d $HOME/iconv/lib && cf_search="$cf_search $HOME/iconv/lib"
6823 test -d $HOME/iconv/lib/iconv && cf_search="$cf_search $HOME/iconv/lib/iconv"
6826 cf_search="$cf_library_path_list $cf_search"
6828 for cf_cv_library_path_iconv in $cf_search
6830 if test -d $cf_cv_library_path_iconv ; then
6831 test -n "$verbose" && echo " ... testing $cf_cv_library_path_iconv" 1>&6
6833 echo "${as_me:-configure}:6833: testing ... testing $cf_cv_library_path_iconv ..." 1>&5
6835 CPPFLAGS="$cf_test_CPPFLAGS"
6836 LIBS="-liconv $cf_save_LIBS"
6837 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_iconv"
6838 cat >conftest.$ac_ext <<_ACEOF
6839 #line 6839 "configure"
6840 #include "confdefs.h"
6849 iconv_t cd = iconv_open("","");
6850 iconv(cd,NULL,NULL,NULL,NULL);
6857 rm -f conftest.$ac_objext conftest$ac_exeext
6858 if { (eval echo "$as_me:6858: \"$ac_link\"") >&5
6859 (eval $ac_link) 2>&5
6861 echo "$as_me:6861: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -s conftest$ac_exeext'
6864 { (eval echo "$as_me:6864: \"$ac_try\"") >&5
6867 echo "$as_me:6867: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6870 test -n "$verbose" && echo " ... found iconv library in $cf_cv_library_path_iconv" 1>&6
6872 echo "${as_me:-configure}:6872: testing ... found iconv library in $cf_cv_library_path_iconv ..." 1>&5
6874 cf_cv_find_linkage_iconv=yes
6875 cf_cv_library_file_iconv="-liconv"
6878 echo "$as_me: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 CPPFLAGS="$cf_save_CPPFLAGS"
6882 LIBS="$cf_save_LIBS"
6883 LDFLAGS="$cf_save_LDFLAGS"
6886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6889 CPPFLAGS="$cf_save_CPPFLAGS"
6890 LDFLAGS="$cf_save_LDFLAGS"
6894 cf_cv_find_linkage_iconv=no
6898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6903 LIBS="$cf_save_LIBS"
6905 if test "$cf_cv_find_linkage_iconv" = yes ; then
6906 am_cv_func_iconv=yes
6908 am_cv_func_iconv="no, consider installing GNU libiconv"
6912 echo "$as_me:6912: result: $am_cv_func_iconv" >&5
6913 echo "${ECHO_T}$am_cv_func_iconv" >&6
6915 if test "$am_cv_func_iconv" = yes; then
6917 cat >>confdefs.h <<\EOF
6918 #define HAVE_ICONV 1
6921 echo "$as_me:6921: checking if the declaration of iconv() needs const." >&5
6922 echo $ECHO_N "checking if the declaration of iconv() needs const.... $ECHO_C" >&6
6923 if test "${am_cv_proto_iconv_const+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.$ac_ext <<_ACEOF
6928 #line 6928 "configure"
6929 #include "confdefs.h"
6938 #if defined(__STDC__) || defined(__cplusplus)
6939 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6952 rm -f conftest.$ac_objext
6953 if { (eval echo "$as_me:6953: \"$ac_compile\"") >&5
6954 (eval $ac_compile) 2>&5
6956 echo "$as_me:6956: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -s conftest.$ac_objext'
6959 { (eval echo "$as_me:6959: \"$ac_try\"") >&5
6962 echo "$as_me:6962: \$? = $ac_status" >&5
6963 (exit $ac_status); }; }; then
6964 am_cv_proto_iconv_const=no
6966 echo "$as_me: failed program was:" >&5
6967 cat conftest.$ac_ext >&5
6968 am_cv_proto_iconv_const=yes
6970 rm -f conftest.$ac_objext conftest.$ac_ext
6972 echo "$as_me:6972: result: $am_cv_proto_iconv_const" >&5
6973 echo "${ECHO_T}$am_cv_proto_iconv_const" >&6
6975 if test "$am_cv_proto_iconv_const" = yes ; then
6976 am_cv_proto_iconv_arg1="const"
6978 am_cv_proto_iconv_arg1=""
6981 cat >>confdefs.h <<EOF
6982 #define ICONV_CONST $am_cv_proto_iconv_arg1
6988 if test "$cf_cv_find_linkage_iconv" = yes; then
6990 if test -n "$cf_cv_header_path_iconv" ; then
6991 for cf_add_incdir in $cf_cv_header_path_iconv
6993 while test $cf_add_incdir != /usr/include
6995 if test -d $cf_add_incdir
6998 if test -n "$CFLAGS$CPPFLAGS" ; then
6999 # a loop is needed to ensure we can add subdirs of existing dirs
7000 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7001 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7002 cf_have_incdir=yes; break
7007 if test "$cf_have_incdir" = no ; then
7008 if test "$cf_add_incdir" = /usr/local/include ; then
7009 if test "$GCC" = yes
7011 cf_save_CPPFLAGS=$CPPFLAGS
7012 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7013 cat >conftest.$ac_ext <<_ACEOF
7014 #line 7014 "configure"
7015 #include "confdefs.h"
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:7026: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>&5
7029 echo "$as_me:7029: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -s conftest.$ac_objext'
7032 { (eval echo "$as_me:7032: \"$ac_try\"") >&5
7035 echo "$as_me:7035: \$? = $ac_status" >&5
7036 (exit $ac_status); }; }; then
7039 echo "$as_me: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7043 rm -f conftest.$ac_objext conftest.$ac_ext
7044 CPPFLAGS=$cf_save_CPPFLAGS
7049 if test "$cf_have_incdir" = no ; then
7050 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7052 echo "${as_me:-configure}:7052: testing adding $cf_add_incdir to include-path ..." 1>&5
7054 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7056 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7057 test "$cf_top_incdir" = "$cf_add_incdir" && break
7058 cf_add_incdir="$cf_top_incdir"
7067 if test -n "$cf_cv_library_file_iconv" ; then
7070 if test -n "$cf_cv_library_path_iconv" ; then
7071 for cf_add_libdir in $cf_cv_library_path_iconv
7073 if test $cf_add_libdir = /usr/lib ; then
7075 elif test -d $cf_add_libdir
7078 if test -n "$LDFLAGS$LIBS" ; then
7079 # a loop is needed to ensure we can add subdirs of existing dirs
7080 for cf_test_libdir in $LDFLAGS $LIBS ; do
7081 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7082 cf_have_libdir=yes; break
7086 if test "$cf_have_libdir" = no ; then
7087 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7089 echo "${as_me:-configure}:7089: testing adding $cf_add_libdir to library-path ..." 1>&5
7091 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7100 echo "$as_me:7100: checking for nl_langinfo and CODESET" >&5
7101 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7102 if test "${am_cv_langinfo_codeset+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 cat >conftest.$ac_ext <<_ACEOF
7106 #line 7106 "configure"
7107 #include "confdefs.h"
7108 #include <langinfo.h>
7112 char* cs = nl_langinfo(CODESET);
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (eval echo "$as_me:7118: \"$ac_link\"") >&5
7119 (eval $ac_link) 2>&5
7121 echo "$as_me:7121: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -s conftest$ac_exeext'
7124 { (eval echo "$as_me:7124: \"$ac_try\"") >&5
7127 echo "$as_me:7127: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 am_cv_langinfo_codeset=yes
7131 echo "$as_me: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7133 am_cv_langinfo_codeset=no
7135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7138 echo "$as_me:7138: result: $am_cv_langinfo_codeset" >&5
7139 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7140 if test $am_cv_langinfo_codeset = yes; then
7142 cat >>confdefs.h <<\EOF
7143 #define HAVE_LANGINFO_CODESET 1
7148 if test $ac_cv_header_locale_h = yes; then
7149 echo "$as_me:7149: checking for LC_MESSAGES" >&5
7150 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7151 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 cat >conftest.$ac_ext <<_ACEOF
7155 #line 7155 "configure"
7156 #include "confdefs.h"
7166 rm -f conftest.$ac_objext conftest$ac_exeext
7167 if { (eval echo "$as_me:7167: \"$ac_link\"") >&5
7168 (eval $ac_link) 2>&5
7170 echo "$as_me:7170: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -s conftest$ac_exeext'
7173 { (eval echo "$as_me:7173: \"$ac_try\"") >&5
7176 echo "$as_me:7176: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 am_cv_val_LC_MESSAGES=yes
7180 echo "$as_me: failed program was:" >&5
7181 cat conftest.$ac_ext >&5
7182 am_cv_val_LC_MESSAGES=no
7184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7186 echo "$as_me:7186: result: $am_cv_val_LC_MESSAGES" >&5
7187 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7188 if test $am_cv_val_LC_MESSAGES = yes; then
7190 cat >>confdefs.h <<\EOF
7191 #define HAVE_LC_MESSAGES 1
7196 echo "$as_me:7196: checking whether NLS is requested" >&5
7197 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7199 # Check whether --enable-nls or --disable-nls was given.
7200 if test "${enable_nls+set}" = set; then
7201 enableval="$enable_nls"
7206 echo "$as_me:7206: result: $USE_NLS" >&5
7207 echo "${ECHO_T}$USE_NLS" >&6
7209 BUILD_INCLUDED_LIBINTL=no
7210 USE_INCLUDED_LIBINTL=no
7213 if test "$USE_NLS" = "yes"; then
7215 cat >>confdefs.h <<\EOF
7216 #define ENABLE_NLS 1
7219 echo "$as_me:7219: checking whether included gettext is requested" >&5
7220 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7222 # Check whether --with-included-gettext or --without-included-gettext was given.
7223 if test "${with_included_gettext+set}" = set; then
7224 withval="$with_included_gettext"
7225 nls_cv_force_use_gnu_gettext=$withval
7227 nls_cv_force_use_gnu_gettext=no
7229 echo "$as_me:7229: result: $nls_cv_force_use_gnu_gettext" >&5
7230 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7232 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7233 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7236 cf_save_LIBS_1="$LIBS"
7237 LIBS="$LIBICONV $LIBS"
7238 echo "$as_me:7238: checking for libintl.h and gettext()" >&5
7239 echo $ECHO_N "checking for libintl.h and gettext()... $ECHO_C" >&6
7240 if test "${cf_cv_func_gettext+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7245 # will be set on completion of the AC_TRY_LINK below.
7246 cf_cv_header_path_intl=
7247 cf_cv_library_path_intl=
7249 echo "${as_me:-configure}:7249: testing Starting FIND_LINKAGE(intl,) ..." 1>&5
7251 cf_save_LIBS="$LIBS"
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line 7254 "configure"
7255 #include "confdefs.h"
7257 #include <libintl.h>
7258 extern int _nl_msg_cat_cntr;
7264 bindtextdomain ("", "");
7265 return (int) gettext ("")
7273 rm -f conftest.$ac_objext conftest$ac_exeext
7274 if { (eval echo "$as_me:7274: \"$ac_link\"") >&5
7275 (eval $ac_link) 2>&5
7277 echo "$as_me:7277: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try='test -s conftest$ac_exeext'
7280 { (eval echo "$as_me:7280: \"$ac_try\"") >&5
7283 echo "$as_me:7283: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7286 cf_cv_find_linkage_intl=yes
7287 cf_cv_header_path_intl=/usr/include
7288 cf_cv_library_path_intl=/usr/lib
7291 echo "$as_me: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7294 LIBS="-lintl $cf_save_LIBS"
7296 cat >conftest.$ac_ext <<_ACEOF
7297 #line 7297 "configure"
7298 #include "confdefs.h"
7300 #include <libintl.h>
7301 extern int _nl_msg_cat_cntr;
7307 bindtextdomain ("", "");
7308 return (int) gettext ("")
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (eval echo "$as_me:7317: \"$ac_link\"") >&5
7318 (eval $ac_link) 2>&5
7320 echo "$as_me:7320: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -s conftest$ac_exeext'
7323 { (eval echo "$as_me:7323: \"$ac_try\"") >&5
7326 echo "$as_me:7326: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7329 cf_cv_find_linkage_intl=yes
7330 cf_cv_header_path_intl=/usr/include
7331 cf_cv_library_path_intl=/usr/lib
7332 cf_cv_library_file_intl="-lintl"
7335 echo "$as_me: failed program was:" >&5
7336 cat conftest.$ac_ext >&5
7338 cf_cv_find_linkage_intl=no
7339 LIBS="$cf_save_LIBS"
7341 test -n "$verbose" && echo " find linkage for intl library" 1>&6
7343 echo "${as_me:-configure}:7343: testing find linkage for intl library ..." 1>&5
7345 echo "${as_me:-configure}:7345: testing Searching for headers in FIND_LINKAGE(intl,) ..." 1>&5
7347 cf_save_CPPFLAGS="$CPPFLAGS"
7348 cf_test_CPPFLAGS="$CPPFLAGS"
7352 # collect the current set of include-directories from compiler flags
7353 cf_header_path_list=""
7354 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7355 for cf_header_path in $CPPFLAGS $CFLAGS
7357 case $cf_header_path in #(vi
7359 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7361 test "$cf_header_path" != "NONE" && \
7362 test -d "$cf_header_path" && \
7364 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7365 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7366 test -d $cf_header_path/include/intl && cf_search="$cf_search $cf_header_path/include/intl"
7367 test -d $cf_header_path/include/intl/include && cf_search="$cf_search $cf_header_path/include/intl/include"
7368 test -d $cf_header_path/intl/include && cf_search="$cf_search $cf_header_path/intl/include"
7369 test -d $cf_header_path/intl/include/intl && cf_search="$cf_search $cf_header_path/intl/include/intl"
7372 cf_header_path_list="$cf_header_path_list $cf_search"
7378 # add the variations for the package we are looking for
7382 test "/usr" != "$prefix" && \
7384 (test $prefix = NONE || test "/usr" != "$prefix") && {
7385 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7386 test -d /usr/include && cf_search="$cf_search /usr/include"
7387 test -d /usr/include/intl && cf_search="$cf_search /usr/include/intl"
7388 test -d /usr/include/intl/include && cf_search="$cf_search /usr/include/intl/include"
7389 test -d /usr/intl/include && cf_search="$cf_search /usr/intl/include"
7390 test -d /usr/intl/include/intl && cf_search="$cf_search /usr/intl/include/intl"
7393 test "$prefix" != "NONE" && \
7394 test -d "$prefix" && \
7396 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7397 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7398 test -d $prefix/include/intl && cf_search="$cf_search $prefix/include/intl"
7399 test -d $prefix/include/intl/include && cf_search="$cf_search $prefix/include/intl/include"
7400 test -d $prefix/intl/include && cf_search="$cf_search $prefix/intl/include"
7401 test -d $prefix/intl/include/intl && cf_search="$cf_search $prefix/intl/include/intl"
7404 test "/usr/local" != "$prefix" && \
7405 test -d "/usr/local" && \
7406 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7407 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7408 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7409 test -d /usr/local/include/intl && cf_search="$cf_search /usr/local/include/intl"
7410 test -d /usr/local/include/intl/include && cf_search="$cf_search /usr/local/include/intl/include"
7411 test -d /usr/local/intl/include && cf_search="$cf_search /usr/local/intl/include"
7412 test -d /usr/local/intl/include/intl && cf_search="$cf_search /usr/local/intl/include/intl"
7415 test "/opt" != "$prefix" && \
7417 (test $prefix = NONE || test "/opt" != "$prefix") && {
7418 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7419 test -d /opt/include && cf_search="$cf_search /opt/include"
7420 test -d /opt/include/intl && cf_search="$cf_search /opt/include/intl"
7421 test -d /opt/include/intl/include && cf_search="$cf_search /opt/include/intl/include"
7422 test -d /opt/intl/include && cf_search="$cf_search /opt/intl/include"
7423 test -d /opt/intl/include/intl && cf_search="$cf_search /opt/intl/include/intl"
7426 test "$HOME" != "$prefix" && \
7427 test -d "$HOME" && \
7428 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7429 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7430 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7431 test -d $HOME/include/intl && cf_search="$cf_search $HOME/include/intl"
7432 test -d $HOME/include/intl/include && cf_search="$cf_search $HOME/include/intl/include"
7433 test -d $HOME/intl/include && cf_search="$cf_search $HOME/intl/include"
7434 test -d $HOME/intl/include/intl && cf_search="$cf_search $HOME/intl/include/intl"
7437 test "$includedir" != NONE && \
7438 test "$includedir" != "/usr/include" && \
7439 test -d "$includedir" && {
7440 test -d $includedir && cf_search="$cf_search $includedir"
7441 test -d $includedir/intl && cf_search="$cf_search $includedir/intl"
7444 test "$oldincludedir" != NONE && \
7445 test "$oldincludedir" != "/usr/include" && \
7446 test -d "$oldincludedir" && {
7447 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7448 test -d $oldincludedir/intl && cf_search="$cf_search $oldincludedir/intl"
7451 cf_search="$cf_search $cf_header_path_list"
7453 for cf_cv_header_path_intl in $cf_search
7455 if test -d $cf_cv_header_path_intl ; then
7456 test -n "$verbose" && echo " ... testing $cf_cv_header_path_intl" 1>&6
7458 echo "${as_me:-configure}:7458: testing ... testing $cf_cv_header_path_intl ..." 1>&5
7460 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_intl"
7461 cat >conftest.$ac_ext <<_ACEOF
7462 #line 7462 "configure"
7463 #include "confdefs.h"
7465 #include <libintl.h>
7466 extern int _nl_msg_cat_cntr;
7472 bindtextdomain ("", "");
7473 return (int) gettext ("")
7481 rm -f conftest.$ac_objext
7482 if { (eval echo "$as_me:7482: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>&5
7485 echo "$as_me:7485: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try='test -s conftest.$ac_objext'
7488 { (eval echo "$as_me:7488: \"$ac_try\"") >&5
7491 echo "$as_me:7491: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7494 test -n "$verbose" && echo " ... found intl headers in $cf_cv_header_path_intl" 1>&6
7496 echo "${as_me:-configure}:7496: testing ... found intl headers in $cf_cv_header_path_intl ..." 1>&5
7498 cf_cv_find_linkage_intl=maybe
7499 cf_test_CPPFLAGS="$CPPFLAGS"
7502 echo "$as_me: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7505 CPPFLAGS="$cf_save_CPPFLAGS"
7508 rm -f conftest.$ac_objext conftest.$ac_ext
7512 if test "$cf_cv_find_linkage_intl" = maybe ; then
7514 echo "${as_me:-configure}:7514: testing Searching for intl library in FIND_LINKAGE(intl,) ..." 1>&5
7516 cf_save_LIBS="$LIBS"
7517 cf_save_LDFLAGS="$LDFLAGS"
7519 if test "$cf_cv_find_linkage_intl" != yes ; then
7522 cf_library_path_list=""
7523 if test -n "${LDFLAGS}${LIBS}" ; then
7524 for cf_library_path in $LDFLAGS $LIBS
7526 case $cf_library_path in #(vi
7528 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7530 test "$cf_library_path" != "NONE" && \
7531 test -d "$cf_library_path" && \
7533 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7534 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7535 test -d $cf_library_path/lib/intl && cf_search="$cf_search $cf_library_path/lib/intl"
7536 test -d $cf_library_path/lib/intl/lib && cf_search="$cf_search $cf_library_path/lib/intl/lib"
7537 test -d $cf_library_path/intl/lib && cf_search="$cf_search $cf_library_path/intl/lib"
7538 test -d $cf_library_path/intl/lib/intl && cf_search="$cf_search $cf_library_path/intl/lib/intl"
7541 cf_library_path_list="$cf_library_path_list $cf_search"
7549 test "/usr" != "$prefix" && \
7551 (test $prefix = NONE || test "/usr" != "$prefix") && {
7552 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7553 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7554 test -d /usr/lib/intl && cf_search="$cf_search /usr/lib/intl"
7555 test -d /usr/lib/intl/lib && cf_search="$cf_search /usr/lib/intl/lib"
7556 test -d /usr/intl/lib && cf_search="$cf_search /usr/intl/lib"
7557 test -d /usr/intl/lib/intl && cf_search="$cf_search /usr/intl/lib/intl"
7560 test "$prefix" != "NONE" && \
7561 test -d "$prefix" && \
7563 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7564 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7565 test -d $prefix/lib/intl && cf_search="$cf_search $prefix/lib/intl"
7566 test -d $prefix/lib/intl/lib && cf_search="$cf_search $prefix/lib/intl/lib"
7567 test -d $prefix/intl/lib && cf_search="$cf_search $prefix/intl/lib"
7568 test -d $prefix/intl/lib/intl && cf_search="$cf_search $prefix/intl/lib/intl"
7571 test "/usr/local" != "$prefix" && \
7572 test -d "/usr/local" && \
7573 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7574 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7575 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7576 test -d /usr/local/lib/intl && cf_search="$cf_search /usr/local/lib/intl"
7577 test -d /usr/local/lib/intl/lib && cf_search="$cf_search /usr/local/lib/intl/lib"
7578 test -d /usr/local/intl/lib && cf_search="$cf_search /usr/local/intl/lib"
7579 test -d /usr/local/intl/lib/intl && cf_search="$cf_search /usr/local/intl/lib/intl"
7582 test "/opt" != "$prefix" && \
7584 (test $prefix = NONE || test "/opt" != "$prefix") && {
7585 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7586 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7587 test -d /opt/lib/intl && cf_search="$cf_search /opt/lib/intl"
7588 test -d /opt/lib/intl/lib && cf_search="$cf_search /opt/lib/intl/lib"
7589 test -d /opt/intl/lib && cf_search="$cf_search /opt/intl/lib"
7590 test -d /opt/intl/lib/intl && cf_search="$cf_search /opt/intl/lib/intl"
7593 test "$HOME" != "$prefix" && \
7594 test -d "$HOME" && \
7595 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7596 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7597 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7598 test -d $HOME/lib/intl && cf_search="$cf_search $HOME/lib/intl"
7599 test -d $HOME/lib/intl/lib && cf_search="$cf_search $HOME/lib/intl/lib"
7600 test -d $HOME/intl/lib && cf_search="$cf_search $HOME/intl/lib"
7601 test -d $HOME/intl/lib/intl && cf_search="$cf_search $HOME/intl/lib/intl"
7604 cf_search="$cf_library_path_list $cf_search"
7606 for cf_cv_library_path_intl in $cf_search
7608 if test -d $cf_cv_library_path_intl ; then
7609 test -n "$verbose" && echo " ... testing $cf_cv_library_path_intl" 1>&6
7611 echo "${as_me:-configure}:7611: testing ... testing $cf_cv_library_path_intl ..." 1>&5
7613 CPPFLAGS="$cf_test_CPPFLAGS"
7614 LIBS="-lintl $cf_save_LIBS"
7615 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_intl"
7616 cat >conftest.$ac_ext <<_ACEOF
7617 #line 7617 "configure"
7618 #include "confdefs.h"
7620 #include <libintl.h>
7621 extern int _nl_msg_cat_cntr;
7627 bindtextdomain ("", "");
7628 return (int) gettext ("")
7636 rm -f conftest.$ac_objext conftest$ac_exeext
7637 if { (eval echo "$as_me:7637: \"$ac_link\"") >&5
7638 (eval $ac_link) 2>&5
7640 echo "$as_me:7640: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -s conftest$ac_exeext'
7643 { (eval echo "$as_me:7643: \"$ac_try\"") >&5
7646 echo "$as_me:7646: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7649 test -n "$verbose" && echo " ... found intl library in $cf_cv_library_path_intl" 1>&6
7651 echo "${as_me:-configure}:7651: testing ... found intl library in $cf_cv_library_path_intl ..." 1>&5
7653 cf_cv_find_linkage_intl=yes
7654 cf_cv_library_file_intl="-lintl"
7657 echo "$as_me: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7660 CPPFLAGS="$cf_save_CPPFLAGS"
7661 LIBS="$cf_save_LIBS"
7662 LDFLAGS="$cf_save_LDFLAGS"
7665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7668 CPPFLAGS="$cf_save_CPPFLAGS"
7669 LDFLAGS="$cf_save_LDFLAGS"
7673 cf_cv_find_linkage_intl=no
7677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7682 LIBS="$cf_save_LIBS"
7684 if test "$cf_cv_find_linkage_intl" = yes ; then
7685 cf_cv_func_gettext=yes
7687 cf_cv_func_gettext=no
7691 echo "$as_me:7691: result: $cf_cv_func_gettext" >&5
7692 echo "${ECHO_T}$cf_cv_func_gettext" >&6
7693 LIBS="$cf_save_LIBS_1"
7695 if test "$cf_cv_func_gettext" = yes ; then
7697 cat >>confdefs.h <<\EOF
7698 #define HAVE_LIBINTL_H 1
7701 if test "$PACKAGE" != gettext; then
7703 cat >>confdefs.h <<\EOF
7704 #define HAVE_GETTEXT 1
7707 if test -n "$cf_cv_header_path_intl" ; then
7708 for cf_add_incdir in $cf_cv_header_path_intl
7710 while test $cf_add_incdir != /usr/include
7712 if test -d $cf_add_incdir
7715 if test -n "$CFLAGS$CPPFLAGS" ; then
7716 # a loop is needed to ensure we can add subdirs of existing dirs
7717 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7718 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7719 cf_have_incdir=yes; break
7724 if test "$cf_have_incdir" = no ; then
7725 if test "$cf_add_incdir" = /usr/local/include ; then
7726 if test "$GCC" = yes
7728 cf_save_CPPFLAGS=$CPPFLAGS
7729 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7730 cat >conftest.$ac_ext <<_ACEOF
7731 #line 7731 "configure"
7732 #include "confdefs.h"
7742 rm -f conftest.$ac_objext
7743 if { (eval echo "$as_me:7743: \"$ac_compile\"") >&5
7744 (eval $ac_compile) 2>&5
7746 echo "$as_me:7746: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try='test -s conftest.$ac_objext'
7749 { (eval echo "$as_me:7749: \"$ac_try\"") >&5
7752 echo "$as_me:7752: \$? = $ac_status" >&5
7753 (exit $ac_status); }; }; then
7756 echo "$as_me: failed program was:" >&5
7757 cat conftest.$ac_ext >&5
7760 rm -f conftest.$ac_objext conftest.$ac_ext
7761 CPPFLAGS=$cf_save_CPPFLAGS
7766 if test "$cf_have_incdir" = no ; then
7767 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7769 echo "${as_me:-configure}:7769: testing adding $cf_add_incdir to include-path ..." 1>&5
7771 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7773 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7774 test "$cf_top_incdir" = "$cf_add_incdir" && break
7775 cf_add_incdir="$cf_top_incdir"
7784 if test -n "$cf_cv_library_file_intl" ; then
7785 INTLLIBS="$cf_cv_library_file_intl $LIBICONV"
7787 if test -n "$cf_cv_library_path_intl" ; then
7788 for cf_add_libdir in $cf_cv_library_path_intl
7790 if test $cf_add_libdir = /usr/lib ; then
7792 elif test -d $cf_add_libdir
7795 if test -n "$LDFLAGS$LIBS" ; then
7796 # a loop is needed to ensure we can add subdirs of existing dirs
7797 for cf_test_libdir in $LDFLAGS $LIBS ; do
7798 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7799 cf_have_libdir=yes; break
7803 if test "$cf_have_libdir" = no ; then
7804 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7806 echo "${as_me:-configure}:7806: testing adding $cf_add_libdir to library-path ..." 1>&5
7808 INTLLIBS="-L$cf_add_libdir $INTLLIBS"
7816 gt_save_LIBS="$LIBS"
7817 LIBS="$LIBS $INTLLIBS"
7819 for ac_func in dcgettext
7821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7822 echo "$as_me:7822: checking for $ac_func" >&5
7823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7824 if eval "test \"\${$as_ac_var+set}\" = set"; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 cat >conftest.$ac_ext <<_ACEOF
7828 #line 7828 "configure"
7829 #include "confdefs.h"
7830 /* System header to define __stub macros and hopefully few prototypes,
7831 which can conflict with char $ac_func (); below. */
7833 /* Override any gcc2 internal prototype to avoid an error. */
7837 /* We use char because int might match the return type of a gcc2
7838 builtin and then its argument prototype would still apply. */
7845 /* The GNU C library defines this for functions which it implements
7846 to always fail with ENOSYS. Some functions are actually named
7847 something starting with __ and the normal name is an alias. */
7848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7851 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
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 eval "$as_ac_var=yes"
7872 echo "$as_me: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7874 eval "$as_ac_var=no"
7876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7878 echo "$as_me:7878: result: `eval echo '${'$as_ac_var'}'`" >&5
7879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7880 if test `eval echo '${'$as_ac_var'}'` = yes; then
7881 cat >>confdefs.h <<EOF
7882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7888 LIBS="$gt_save_LIBS"
7890 # Extract the first word of "msgfmt", so it can be a program name with args.
7892 set dummy msgfmt; ac_word=$2
7893 echo "$as_me:7893: checking for $ac_word" >&5
7894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7895 if test "${ac_cv_path_MSGFMT+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
7904 for ac_dir in $PATH; do
7905 test -z "$ac_dir" && ac_dir=.
7906 if test -f $ac_dir/$ac_word$ac_exeext; then
7907 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7908 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext"
7914 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7918 MSGFMT="$ac_cv_path_MSGFMT"
7919 if test "$MSGFMT" != ":"; then
7920 echo "$as_me:7920: result: $MSGFMT" >&5
7921 echo "${ECHO_T}$MSGFMT" >&6
7923 echo "$as_me:7923: result: no" >&5
7924 echo "${ECHO_T}no" >&6
7927 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7928 set dummy gmsgfmt; ac_word=$2
7929 echo "$as_me:7929: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7931 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7939 ac_save_IFS=$IFS; IFS=$ac_path_separator
7941 for ac_dir in $ac_dummy; do
7943 test -z "$ac_dir" && ac_dir=.
7944 if $as_executable_p "$ac_dir/$ac_word"; then
7945 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7946 echo "$as_me:7946: found $ac_dir/$ac_word" >&5
7951 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7955 GMSGFMT=$ac_cv_path_GMSGFMT
7957 if test -n "$GMSGFMT"; then
7958 echo "$as_me:7958: result: $GMSGFMT" >&5
7959 echo "${ECHO_T}$GMSGFMT" >&6
7961 echo "$as_me:7961: result: no" >&5
7962 echo "${ECHO_T}no" >&6
7965 # Extract the first word of "xgettext", so it can be a program name with args.
7967 set dummy xgettext; ac_word=$2
7968 echo "$as_me:7968: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7970 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
7979 for ac_dir in $PATH; do
7980 test -z "$ac_dir" && ac_dir=.
7981 if test -f $ac_dir/$ac_word$ac_exeext; then
7982 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7983 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext"
7989 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7993 XGETTEXT="$ac_cv_path_XGETTEXT"
7994 if test "$XGETTEXT" != ":"; then
7995 echo "$as_me:7995: result: $XGETTEXT" >&5
7996 echo "${ECHO_T}$XGETTEXT" >&6
7998 echo "$as_me:7998: result: no" >&5
7999 echo "${ECHO_T}no" >&6
8006 if test "$CATOBJEXT" = "NONE"; then
8007 nls_cv_use_gnu_gettext=yes
8011 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8012 if test ! -d $srcdir/intl ; then
8013 { { echo "$as_me:8013: error: no NLS library is packaged with this application" >&5
8014 echo "$as_me: error: no NLS library is packaged with this application" >&2;}
8015 { (exit 1); exit 1; }; }
8017 INTLOBJS="\$(GETTOBJS)"
8018 # Extract the first word of "msgfmt", so it can be a program name with args.
8020 set dummy msgfmt; ac_word=$2
8021 echo "$as_me:8021: checking for $ac_word" >&5
8022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8023 if test "${ac_cv_path_MSGFMT+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
8032 for ac_dir in $PATH; do
8033 test -z "$ac_dir" && ac_dir=.
8034 if test -f $ac_dir/$ac_word$ac_exeext; then
8035 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8036 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext"
8042 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8046 MSGFMT="$ac_cv_path_MSGFMT"
8047 if test "$MSGFMT" != ":"; then
8048 echo "$as_me:8048: result: $MSGFMT" >&5
8049 echo "${ECHO_T}$MSGFMT" >&6
8051 echo "$as_me:8051: result: no" >&5
8052 echo "${ECHO_T}no" >&6
8055 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8056 set dummy gmsgfmt; ac_word=$2
8057 echo "$as_me:8057: checking for $ac_word" >&5
8058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8059 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8067 ac_save_IFS=$IFS; IFS=$ac_path_separator
8069 for ac_dir in $ac_dummy; do
8071 test -z "$ac_dir" && ac_dir=.
8072 if $as_executable_p "$ac_dir/$ac_word"; then
8073 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8074 echo "$as_me:8074: found $ac_dir/$ac_word" >&5
8079 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8083 GMSGFMT=$ac_cv_path_GMSGFMT
8085 if test -n "$GMSGFMT"; then
8086 echo "$as_me:8086: result: $GMSGFMT" >&5
8087 echo "${ECHO_T}$GMSGFMT" >&6
8089 echo "$as_me:8089: result: no" >&5
8090 echo "${ECHO_T}no" >&6
8093 # Extract the first word of "xgettext", so it can be a program name with args.
8095 set dummy xgettext; ac_word=$2
8096 echo "$as_me:8096: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8098 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
8107 for ac_dir in $PATH; do
8108 test -z "$ac_dir" && ac_dir=.
8109 if test -f $ac_dir/$ac_word$ac_exeext; then
8110 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8111 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext"
8117 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8121 XGETTEXT="$ac_cv_path_XGETTEXT"
8122 if test "$XGETTEXT" != ":"; then
8123 echo "$as_me:8123: result: $XGETTEXT" >&5
8124 echo "${ECHO_T}$XGETTEXT" >&6
8126 echo "$as_me:8126: result: no" >&5
8127 echo "${ECHO_T}no" >&6
8130 BUILD_INCLUDED_LIBINTL=yes
8131 USE_INCLUDED_LIBINTL=yes
8133 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
8134 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8137 if test "$GMSGFMT" != ":"; then
8138 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
8141 echo "$as_me:8141: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8142 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8147 if test "$XGETTEXT" != ":"; then
8148 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
8151 echo "$as_me:8151: result: found xgettext program is not GNU xgettext; ignore it" >&5
8152 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8160 ac_config_commands="$ac_config_commands default-1"
8162 if test "$PACKAGE" = gettext; then
8163 BUILD_INCLUDED_LIBINTL=yes
8166 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8167 for ac_prog in bison
8169 # Extract the first word of "$ac_prog", so it can be a program name with args.
8170 set dummy $ac_prog; ac_word=$2
8171 echo "$as_me:8171: checking for $ac_word" >&5
8172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8173 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 if test -n "$INTLBISON"; then
8177 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8179 ac_save_IFS=$IFS; IFS=$ac_path_separator
8181 for ac_dir in $ac_dummy; do
8183 test -z "$ac_dir" && ac_dir=.
8184 $as_executable_p "$ac_dir/$ac_word" || continue
8185 ac_cv_prog_INTLBISON="$ac_prog"
8186 echo "$as_me:8186: found $ac_dir/$ac_word" >&5
8192 INTLBISON=$ac_cv_prog_INTLBISON
8193 if test -n "$INTLBISON"; then
8194 echo "$as_me:8194: result: $INTLBISON" >&5
8195 echo "${ECHO_T}$INTLBISON" >&6
8197 echo "$as_me:8197: result: no" >&5
8198 echo "${ECHO_T}no" >&6
8201 test -n "$INTLBISON" && break
8204 if test -z "$INTLBISON"; then
8207 echo "$as_me:8207: checking version of bison" >&5
8208 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8209 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8210 case $ac_prog_version in
8211 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8212 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8213 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8214 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8216 echo "$as_me:8216: result: $ac_prog_version" >&5
8217 echo "${ECHO_T}$ac_prog_version" >&6
8219 if test $ac_verc_fail = yes; then
8224 for lang in $ALL_LINGUAS; do
8225 GMOFILES="$GMOFILES $lang.gmo"
8226 POFILES="$POFILES $lang.po"
8230 nls_cv_header_libgt=
8238 if test "x$CATOBJEXT" != "x"; then
8239 if test "x$ALL_LINGUAS" = "x"; then
8242 echo "$as_me:8242: checking for catalogs to be installed" >&5
8243 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8245 for presentlang in $ALL_LINGUAS; do
8247 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
8248 # Use the presentlang catalog if desiredlang is
8249 # a. equal to presentlang, or
8250 # b. a variant of presentlang (because in this case,
8251 # presentlang can be used as a fallback for messages
8252 # which are not translated in the desiredlang catalog).
8253 case "$desiredlang" in
8254 "$presentlang"*) useit=yes;;
8257 if test $useit = yes; then
8258 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8261 LINGUAS=$NEW_LINGUAS
8262 echo "$as_me:8262: result: $LINGUAS" >&5
8263 echo "${ECHO_T}$LINGUAS" >&6
8266 if test -n "$LINGUAS"; then
8267 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8271 INTL_LIBTOOL_SUFFIX_PREFIX=
8273 if test "$USE_NLS" = yes ; then
8275 # Check whether --with-textdomain or --without-textdomain was given.
8276 if test "${with_textdomain+set}" = set; then
8277 withval="$with_textdomain"
8278 NLS_TEXTDOMAIN=$withval
8280 NLS_TEXTDOMAIN=$PACKAGE
8283 cat >>confdefs.h <<EOF
8284 #define NLS_TEXTDOMAIN "$NLS_TEXTDOMAIN"
8293 cf_makefile=makefile
8296 if test "$USE_NLS" = yes ; then
8297 if test -d $srcdir/po ; then
8298 echo "$as_me:8298: checking if we should use included message-library" >&5
8299 echo $ECHO_N "checking if we should use included message-library... $ECHO_C" >&6
8301 # Check whether --enable-included-msgs or --disable-included-msgs was given.
8302 if test "${enable_included_msgs+set}" = set; then
8303 enableval="$enable_included_msgs"
8304 use_our_messages=$enableval
8306 use_our_messages=yes
8309 echo "$as_me:8309: result: $use_our_messages" >&5
8310 echo "${ECHO_T}$use_our_messages" >&6
8314 if test "$use_our_messages" = yes
8316 SUB_MAKEFILE="$SUB_MAKEFILE po/$cf_makefile.in:$srcdir/po/$cf_makefile.inn"
8320 if test "$USE_INCLUDED_LIBINTL" = yes ; then
8321 if test "$nls_cv_force_use_gnu_gettext" = yes ; then
8323 elif test "$nls_cv_use_gnu_gettext" = yes ; then
8328 if test -z "$INTLDIR_MAKE"; then
8330 cat >>confdefs.h <<\EOF
8331 #define HAVE_LIBGETTEXT_H 1
8334 for cf_makefile in \
8335 $srcdir/intl/Makefile.in \
8336 $srcdir/intl/makefile.in
8338 if test -f "$cf_makefile" ; then
8339 SUB_MAKEFILE="$SUB_MAKEFILE `echo \"${cf_makefile}\"|sed -e 's,^'$srcdir/',,' -e 's/\.in$//'`:${cf_makefile}"
8346 if test "$USE_NLS" = yes ; then
8348 for ac_header in libintl.h
8350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8351 echo "$as_me:8351: checking for $ac_header" >&5
8352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line 8357 "configure"
8358 #include "confdefs.h"
8359 #include <$ac_header>
8361 if { (eval echo "$as_me:8361: \"$ac_cpp conftest.$ac_ext\"") >&5
8362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8364 egrep -v '^ *\+' conftest.er1 >conftest.err
8366 cat conftest.err >&5
8367 echo "$as_me:8367: \$? = $ac_status" >&5
8368 (exit $ac_status); } >/dev/null; then
8369 if test -s conftest.err; then
8370 ac_cpp_err=$ac_c_preproc_warn_flag
8377 if test -z "$ac_cpp_err"; then
8378 eval "$as_ac_Header=yes"
8380 echo "$as_me: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8382 eval "$as_ac_Header=no"
8384 rm -f conftest.err conftest.$ac_ext
8386 echo "$as_me:8386: result: `eval echo '${'$as_ac_Header'}'`" >&5
8387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8389 cat >>confdefs.h <<EOF
8390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8399 if test -z "$INTLDIR_MAKE" ; then
8400 CPPFLAGS="$CPPFLAGS -I../intl"
8403 if test "$BUILD_INCLUDED_LIBINTL" = yes ; then
8411 if test "$USE_INCLUDED_LIBINTL" = yes ; then
8412 if test "$nls_cv_force_use_gnu_gettext" = yes ; then
8414 cat >>confdefs.h <<\EOF
8415 #define HAVE_GETTEXT 1
8418 elif test "$nls_cv_use_gnu_gettext" = yes ; then
8420 cat >>confdefs.h <<\EOF
8421 #define HAVE_GETTEXT 1
8425 if test -n "$nls_cv_header_intl" ; then
8427 cat >>confdefs.h <<\EOF
8428 #define HAVE_LIBINTL_H 1
8434 echo "$as_me:8434: checking if -lm needed for math functions" >&5
8435 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
8436 if test "${cf_cv_need_libm+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 cat >conftest.$ac_ext <<_ACEOF
8441 #line 8441 "configure"
8442 #include "confdefs.h"
8450 double x = rand(); printf("result = %g\n", sqrt(x))
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:8456: \"$ac_link\"") >&5
8457 (eval $ac_link) 2>&5
8459 echo "$as_me:8459: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -s conftest$ac_exeext'
8462 { (eval echo "$as_me:8462: \"$ac_try\"") >&5
8465 echo "$as_me:8465: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8469 echo "$as_me: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8475 echo "$as_me:8475: result: $cf_cv_need_libm" >&5
8476 echo "${ECHO_T}$cf_cv_need_libm" >&6
8477 if test "$cf_cv_need_libm" = yes
8484 echo "$as_me:8484: checking if you want to use dmalloc for testing" >&5
8485 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
8487 # Check whether --with-dmalloc or --without-dmalloc was given.
8488 if test "${with_dmalloc+set}" = set; then
8489 withval="$with_dmalloc"
8491 cat >>confdefs.h <<EOF
8492 #define USE_DMALLOC 1
8495 : ${with_cflags:=-g}
8496 : ${with_no_leaks:=yes}
8501 echo "$as_me:8501: result: ${with_dmalloc:-no}" >&5
8502 echo "${ECHO_T}${with_dmalloc:-no}" >&6
8504 case .$with_cflags in #(vi
8506 case .$CFLAGS in #(vi
8514 cf_new_extra_cppflags=
8516 for cf_add_cflags in -g
8518 case $cf_fix_cppflags in
8520 case $cf_add_cflags in #(vi
8521 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8522 case $cf_add_cflags in
8524 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8526 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8527 && test -z "${cf_tst_cflags}" \
8528 && cf_fix_cppflags=yes
8530 if test $cf_fix_cppflags = yes ; then
8531 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8533 elif test "${cf_tst_cflags}" = "\"'" ; then
8534 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8540 *$cf_add_cflags) #(vi
8543 case $cf_add_cflags in #(vi
8545 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8547 CPPFLAGS=`echo "$CPPFLAGS" | \
8548 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8549 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8553 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8558 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8563 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8565 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8567 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8568 && test -z "${cf_tst_cflags}" \
8569 && cf_fix_cppflags=no
8574 if test -n "$cf_new_cflags" ; then
8576 CFLAGS="$CFLAGS $cf_new_cflags"
8579 if test -n "$cf_new_cppflags" ; then
8581 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8584 if test -n "$cf_new_extra_cppflags" ; then
8586 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8594 if test "$with_dmalloc" = yes ; then
8595 echo "$as_me:8595: checking for dmalloc.h" >&5
8596 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
8597 if test "${ac_cv_header_dmalloc_h+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line 8601 "configure"
8602 #include "confdefs.h"
8603 #include <dmalloc.h>
8605 if { (eval echo "$as_me:8605: \"$ac_cpp conftest.$ac_ext\"") >&5
8606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8608 egrep -v '^ *\+' conftest.er1 >conftest.err
8610 cat conftest.err >&5
8611 echo "$as_me:8611: \$? = $ac_status" >&5
8612 (exit $ac_status); } >/dev/null; then
8613 if test -s conftest.err; then
8614 ac_cpp_err=$ac_c_preproc_warn_flag
8621 if test -z "$ac_cpp_err"; then
8622 ac_cv_header_dmalloc_h=yes
8624 echo "$as_me: failed program was:" >&5
8625 cat conftest.$ac_ext >&5
8626 ac_cv_header_dmalloc_h=no
8628 rm -f conftest.err conftest.$ac_ext
8630 echo "$as_me:8630: result: $ac_cv_header_dmalloc_h" >&5
8631 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
8632 if test $ac_cv_header_dmalloc_h = yes; then
8634 echo "$as_me:8634: checking for dmalloc_debug in -ldmalloc" >&5
8635 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
8636 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 ac_check_lib_save_LIBS=$LIBS
8640 LIBS="-ldmalloc $LIBS"
8641 cat >conftest.$ac_ext <<_ACEOF
8642 #line 8642 "configure"
8643 #include "confdefs.h"
8645 /* Override any gcc2 internal prototype to avoid an error. */
8649 /* We use char because int might match the return type of a gcc2
8650 builtin and then its argument prototype would still apply. */
8651 char dmalloc_debug ();
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (eval echo "$as_me:8661: \"$ac_link\"") >&5
8662 (eval $ac_link) 2>&5
8664 echo "$as_me:8664: \$? = $ac_status" >&5
8665 (exit $ac_status); } &&
8666 { ac_try='test -s conftest$ac_exeext'
8667 { (eval echo "$as_me:8667: \"$ac_try\"") >&5
8670 echo "$as_me:8670: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_cv_lib_dmalloc_dmalloc_debug=yes
8674 echo "$as_me: failed program was:" >&5
8675 cat conftest.$ac_ext >&5
8676 ac_cv_lib_dmalloc_dmalloc_debug=no
8678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8679 LIBS=$ac_check_lib_save_LIBS
8681 echo "$as_me:8681: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
8682 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
8683 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
8684 cat >>confdefs.h <<EOF
8685 #define HAVE_LIBDMALLOC 1
8688 LIBS="-ldmalloc $LIBS"
8696 echo "$as_me:8696: checking if you want to use dbmalloc for testing" >&5
8697 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
8699 # Check whether --with-dbmalloc or --without-dbmalloc was given.
8700 if test "${with_dbmalloc+set}" = set; then
8701 withval="$with_dbmalloc"
8703 cat >>confdefs.h <<EOF
8704 #define USE_DBMALLOC 1
8707 : ${with_cflags:=-g}
8708 : ${with_no_leaks:=yes}
8713 echo "$as_me:8713: result: ${with_dbmalloc:-no}" >&5
8714 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
8716 case .$with_cflags in #(vi
8718 case .$CFLAGS in #(vi
8726 cf_new_extra_cppflags=
8728 for cf_add_cflags in -g
8730 case $cf_fix_cppflags in
8732 case $cf_add_cflags in #(vi
8733 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8734 case $cf_add_cflags in
8736 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8738 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8739 && test -z "${cf_tst_cflags}" \
8740 && cf_fix_cppflags=yes
8742 if test $cf_fix_cppflags = yes ; then
8743 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8745 elif test "${cf_tst_cflags}" = "\"'" ; then
8746 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8752 *$cf_add_cflags) #(vi
8755 case $cf_add_cflags in #(vi
8757 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8759 CPPFLAGS=`echo "$CPPFLAGS" | \
8760 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8761 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8765 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8770 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8775 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8777 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8779 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8780 && test -z "${cf_tst_cflags}" \
8781 && cf_fix_cppflags=no
8786 if test -n "$cf_new_cflags" ; then
8788 CFLAGS="$CFLAGS $cf_new_cflags"
8791 if test -n "$cf_new_cppflags" ; then
8793 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8796 if test -n "$cf_new_extra_cppflags" ; then
8798 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8806 if test "$with_dbmalloc" = yes ; then
8807 echo "$as_me:8807: checking for dbmalloc.h" >&5
8808 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
8809 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 cat >conftest.$ac_ext <<_ACEOF
8813 #line 8813 "configure"
8814 #include "confdefs.h"
8815 #include <dbmalloc.h>
8817 if { (eval echo "$as_me:8817: \"$ac_cpp conftest.$ac_ext\"") >&5
8818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8820 egrep -v '^ *\+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 echo "$as_me:8823: \$? = $ac_status" >&5
8824 (exit $ac_status); } >/dev/null; then
8825 if test -s conftest.err; then
8826 ac_cpp_err=$ac_c_preproc_warn_flag
8833 if test -z "$ac_cpp_err"; then
8834 ac_cv_header_dbmalloc_h=yes
8836 echo "$as_me: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8838 ac_cv_header_dbmalloc_h=no
8840 rm -f conftest.err conftest.$ac_ext
8842 echo "$as_me:8842: result: $ac_cv_header_dbmalloc_h" >&5
8843 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
8844 if test $ac_cv_header_dbmalloc_h = yes; then
8846 echo "$as_me:8846: checking for debug_malloc in -ldbmalloc" >&5
8847 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
8848 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 ac_check_lib_save_LIBS=$LIBS
8852 LIBS="-ldbmalloc $LIBS"
8853 cat >conftest.$ac_ext <<_ACEOF
8854 #line 8854 "configure"
8855 #include "confdefs.h"
8857 /* Override any gcc2 internal prototype to avoid an error. */
8861 /* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8863 char debug_malloc ();
8872 rm -f conftest.$ac_objext conftest$ac_exeext
8873 if { (eval echo "$as_me:8873: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>&5
8876 echo "$as_me:8876: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:8879: \"$ac_try\"") >&5
8882 echo "$as_me:8882: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_lib_dbmalloc_debug_malloc=yes
8886 echo "$as_me: failed program was:" >&5
8887 cat conftest.$ac_ext >&5
8888 ac_cv_lib_dbmalloc_debug_malloc=no
8890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_lib_save_LIBS
8893 echo "$as_me:8893: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
8894 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
8895 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
8896 cat >>confdefs.h <<EOF
8897 #define HAVE_LIBDBMALLOC 1
8900 LIBS="-ldbmalloc $LIBS"
8908 echo "$as_me:8908: checking if you want to use purify for testing" >&5
8909 echo $ECHO_N "checking if you want to use purify for testing... $ECHO_C" >&6
8911 # Check whether --with-purify or --without-purify was given.
8912 if test "${with_purify+set}" = set; then
8913 withval="$with_purify"
8915 cat >>confdefs.h <<EOF
8916 #define USE_PURIFY 1
8919 : ${with_cflags:=-g}
8920 : ${with_no_leaks:=yes}
8925 echo "$as_me:8925: result: ${with_purify:-no}" >&5
8926 echo "${ECHO_T}${with_purify:-no}" >&6
8928 case .$with_cflags in #(vi
8930 case .$CFLAGS in #(vi
8938 cf_new_extra_cppflags=
8940 for cf_add_cflags in -g
8942 case $cf_fix_cppflags in
8944 case $cf_add_cflags in #(vi
8945 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8946 case $cf_add_cflags in
8948 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8950 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8951 && test -z "${cf_tst_cflags}" \
8952 && cf_fix_cppflags=yes
8954 if test $cf_fix_cppflags = yes ; then
8955 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8957 elif test "${cf_tst_cflags}" = "\"'" ; then
8958 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8964 *$cf_add_cflags) #(vi
8967 case $cf_add_cflags in #(vi
8969 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8971 CPPFLAGS=`echo "$CPPFLAGS" | \
8972 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8973 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8977 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8982 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8987 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8989 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8991 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8992 && test -z "${cf_tst_cflags}" \
8993 && cf_fix_cppflags=no
8998 if test -n "$cf_new_cflags" ; then
9000 CFLAGS="$CFLAGS $cf_new_cflags"
9003 if test -n "$cf_new_cppflags" ; then
9005 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9008 if test -n "$cf_new_extra_cppflags" ; then
9010 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9018 echo "$as_me:9018: checking if you want to use valgrind for testing" >&5
9019 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
9021 # Check whether --with-valgrind or --without-valgrind was given.
9022 if test "${with_valgrind+set}" = set; then
9023 withval="$with_valgrind"
9025 cat >>confdefs.h <<EOF
9026 #define USE_VALGRIND 1
9029 : ${with_cflags:=-g}
9030 : ${with_no_leaks:=yes}
9035 echo "$as_me:9035: result: ${with_valgrind:-no}" >&5
9036 echo "${ECHO_T}${with_valgrind:-no}" >&6
9038 case .$with_cflags in #(vi
9040 case .$CFLAGS in #(vi
9048 cf_new_extra_cppflags=
9050 for cf_add_cflags in -g
9052 case $cf_fix_cppflags in
9054 case $cf_add_cflags in #(vi
9055 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9056 case $cf_add_cflags in
9058 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9060 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9061 && test -z "${cf_tst_cflags}" \
9062 && cf_fix_cppflags=yes
9064 if test $cf_fix_cppflags = yes ; then
9065 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9067 elif test "${cf_tst_cflags}" = "\"'" ; then
9068 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9074 *$cf_add_cflags) #(vi
9077 case $cf_add_cflags in #(vi
9079 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9081 CPPFLAGS=`echo "$CPPFLAGS" | \
9082 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9083 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9087 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9092 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9097 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9099 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9101 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9102 && test -z "${cf_tst_cflags}" \
9103 && cf_fix_cppflags=no
9108 if test -n "$cf_new_cflags" ; then
9110 CFLAGS="$CFLAGS $cf_new_cflags"
9113 if test -n "$cf_new_cppflags" ; then
9115 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9118 if test -n "$cf_new_extra_cppflags" ; then
9120 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9128 echo "$as_me:9128: checking if you want to perform memory-leak testing" >&5
9129 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
9131 # Check whether --with-no-leaks or --without-no-leaks was given.
9132 if test "${with_no_leaks+set}" = set; then
9133 withval="$with_no_leaks"
9135 cat >>confdefs.h <<\EOF
9139 cf_doalloc=".${with_dmalloc}${with_dbmalloc}${with_purify}${with_valgrind}"
9140 case ${cf_doalloc} in #(vi
9143 cat >>confdefs.h <<\EOF
9144 #define DOALLOC 10000
9152 echo "$as_me:9152: result: $with_no_leaks" >&5
9153 echo "${ECHO_T}$with_no_leaks" >&6
9155 echo "$as_me:9155: checking if you want --trace option" >&5
9156 echo $ECHO_N "checking if you want --trace option... $ECHO_C" >&6
9158 # Check whether --enable-trace or --disable-trace was given.
9159 if test "${enable_trace+set}" = set; then
9160 enableval="$enable_trace"
9165 echo "$as_me:9165: result: $enableval" >&5
9166 echo "${ECHO_T}$enableval" >&6
9167 if test "$enableval" != no ; then
9168 EXTRAOBJS="$EXTRAOBJS trace\$o"
9170 cat >>confdefs.h <<\EOF
9171 #define HAVE_DLG_TRACE 1
9179 echo "$as_me:9179: checking for an rpath option" >&5
9180 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
9181 case $cf_cv_system_name in #(vi
9183 if test "$GCC" = yes; then
9184 LD_RPATH_OPT="-Wl,-rpath,"
9186 LD_RPATH_OPT="-rpath "
9189 linux*|gnu*|k*bsd*-gnu) #(vi
9190 LD_RPATH_OPT="-Wl,-rpath,"
9192 openbsd[2-9].*|mirbsd*) #(vi
9193 LD_RPATH_OPT="-Wl,-rpath,"
9195 dragonfly*|freebsd*) #(vi
9196 LD_RPATH_OPT="-rpath "
9199 LD_RPATH_OPT="-Wl,-rpath,"
9202 LD_RPATH_OPT="-rpath "
9210 echo "$as_me:9210: result: $LD_RPATH_OPT" >&5
9211 echo "${ECHO_T}$LD_RPATH_OPT" >&6
9213 case "x$LD_RPATH_OPT" in #(vi
9215 echo "$as_me:9215: checking if we need a space after rpath option" >&5
9216 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
9217 cf_save_LIBS="$LIBS"
9218 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
9219 cat >conftest.$ac_ext <<_ACEOF
9220 #line 9220 "configure"
9221 #include "confdefs.h"
9231 rm -f conftest.$ac_objext conftest$ac_exeext
9232 if { (eval echo "$as_me:9232: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>&5
9235 echo "$as_me:9235: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -s conftest$ac_exeext'
9238 { (eval echo "$as_me:9238: \"$ac_try\"") >&5
9241 echo "$as_me:9241: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9245 echo "$as_me: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9250 LIBS="$cf_save_LIBS"
9251 echo "$as_me:9251: result: $cf_rpath_space" >&5
9252 echo "${ECHO_T}$cf_rpath_space" >&6
9253 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
9257 REL_VERSION=${VERSION_MAJOR}.${VERSION_MINOR}
9258 ABI_VERSION=`echo "$VERSION" |sed -e 's/:/./g'`
9259 cf_cv_rel_version=$REL_VERSION
9261 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
9263 # Check whether --with-rel-version or --without-rel-version was given.
9264 if test "${with_rel_version+set}" = set; then
9265 withval="$with_rel_version"
9266 { echo "$as_me:9266: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
9267 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
9268 cf_cv_rel_version=$withval
9271 DIALOG_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
9272 DIALOG_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
9274 if test -n "$DIALOG_MAJOR" ; then
9275 case $DIALOG_MAJOR in #(vi
9279 { { echo "$as_me:9279: error: Release major-version is not a number: $DIALOG_MAJOR" >&5
9280 echo "$as_me: error: Release major-version is not a number: $DIALOG_MAJOR" >&2;}
9281 { (exit 1); exit 1; }; }
9285 { { echo "$as_me:9285: error: Release major-version value is empty" >&5
9286 echo "$as_me: error: Release major-version value is empty" >&2;}
9287 { (exit 1); exit 1; }; }
9290 if test -n "$DIALOG_MINOR" ; then
9291 case $DIALOG_MINOR in #(vi
9295 { { echo "$as_me:9295: error: Release minor-version is not a number: $DIALOG_MINOR" >&5
9296 echo "$as_me: error: Release minor-version is not a number: $DIALOG_MINOR" >&2;}
9297 { (exit 1); exit 1; }; }
9301 { { echo "$as_me:9301: error: Release minor-version value is empty" >&5
9302 echo "$as_me: error: Release minor-version value is empty" >&2;}
9303 { (exit 1); exit 1; }; }
9306 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
9308 # Check whether --with-abi-version or --without-abi-version was given.
9309 if test "${with_abi_version+set}" = set; then
9310 withval="$with_abi_version"
9311 { echo "$as_me:9311: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
9312 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
9313 cf_cv_abi_version=$withval
9316 if test -n "$cf_cv_abi_version" ; then
9317 case $cf_cv_abi_version in #(vi
9321 { { echo "$as_me:9321: error: ABI version is not a number: $cf_cv_abi_version" >&5
9322 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
9323 { (exit 1); exit 1; }; }
9327 { { echo "$as_me:9327: error: ABI version value is empty" >&5
9328 echo "$as_me: error: ABI version value is empty" >&2;}
9329 { (exit 1); exit 1; }; }
9333 DFT_LWR_MODEL=$LIB_MODEL
9336 # use to comment-out makefile lines
9341 echo "$as_me:9341: checking if libtool -version-number should be used" >&5
9342 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
9344 # Check whether --enable-libtool-version or --disable-libtool-version was given.
9345 if test "${enable_libtool_version+set}" = set; then
9346 enableval="$enable_libtool_version"
9347 test "$enableval" != no && enableval=yes
9348 if test "$enableval" != "yes" ; then
9349 cf_libtool_version=no
9351 cf_libtool_version=yes
9355 cf_libtool_version=yes
9358 echo "$as_me:9358: result: $cf_libtool_version" >&5
9359 echo "${ECHO_T}$cf_libtool_version" >&6
9361 if test "$cf_libtool_version" = yes ; then
9362 LIBTOOL_VERSION="-version-number"
9364 LIBTOOL_VERSION="-version-info"
9369 # common library maintenance symbols that are convenient for libtool scripts:
9370 LIB_CREATE='${AR} -cr'
9371 LIB_OBJECT='${OBJECTS}'
9375 # symbols used to prop libtool up to enable it to determine what it should be
9383 echo "$as_me:9383: checking if you want to build libraries with libtool" >&5
9384 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
9386 # Check whether --with-libtool or --without-libtool was given.
9387 if test "${with_libtool+set}" = set; then
9388 withval="$with_libtool"
9389 with_libtool=$withval
9393 echo "$as_me:9393: result: $with_libtool" >&5
9394 echo "${ECHO_T}$with_libtool" >&6
9395 if test "$with_libtool" != "no"; then
9397 if test "$with_libtool" != "yes" ; then
9399 if test "x$prefix" != xNONE; then
9400 cf_path_syntax="$prefix"
9402 cf_path_syntax="$ac_default_prefix"
9405 case ".$with_libtool" in #(vi
9406 .\$\(*\)*|.\'*\'*) #(vi
9410 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
9412 .\${*prefix}*|.\${*dir}*) #(vi
9413 eval with_libtool="$with_libtool"
9414 case ".$with_libtool" in #(vi
9416 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
9421 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
9424 { { echo "$as_me:9424: error: expected a pathname, not \"$with_libtool\"" >&5
9425 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
9426 { (exit 1); exit 1; }; }
9430 LIBTOOL=$with_libtool
9432 if test -n "$ac_tool_prefix"; then
9433 for ac_prog in libtool glibtool
9435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9437 echo "$as_me:9437: checking for $ac_word" >&5
9438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9439 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 if test -n "$LIBTOOL"; then
9443 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
9445 ac_save_IFS=$IFS; IFS=$ac_path_separator
9447 for ac_dir in $ac_dummy; do
9449 test -z "$ac_dir" && ac_dir=.
9450 $as_executable_p "$ac_dir/$ac_word" || continue
9451 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
9452 echo "$as_me:9452: found $ac_dir/$ac_word" >&5
9458 LIBTOOL=$ac_cv_prog_LIBTOOL
9459 if test -n "$LIBTOOL"; then
9460 echo "$as_me:9460: result: $LIBTOOL" >&5
9461 echo "${ECHO_T}$LIBTOOL" >&6
9463 echo "$as_me:9463: result: no" >&5
9464 echo "${ECHO_T}no" >&6
9467 test -n "$LIBTOOL" && break
9470 if test -z "$LIBTOOL"; then
9471 ac_ct_LIBTOOL=$LIBTOOL
9472 for ac_prog in libtool glibtool
9474 # Extract the first word of "$ac_prog", so it can be a program name with args.
9475 set dummy $ac_prog; ac_word=$2
9476 echo "$as_me:9476: checking for $ac_word" >&5
9477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9478 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 if test -n "$ac_ct_LIBTOOL"; then
9482 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
9484 ac_save_IFS=$IFS; IFS=$ac_path_separator
9486 for ac_dir in $ac_dummy; do
9488 test -z "$ac_dir" && ac_dir=.
9489 $as_executable_p "$ac_dir/$ac_word" || continue
9490 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
9491 echo "$as_me:9491: found $ac_dir/$ac_word" >&5
9497 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
9498 if test -n "$ac_ct_LIBTOOL"; then
9499 echo "$as_me:9499: result: $ac_ct_LIBTOOL" >&5
9500 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
9502 echo "$as_me:9502: result: no" >&5
9503 echo "${ECHO_T}no" >&6
9506 test -n "$ac_ct_LIBTOOL" && break
9508 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
9510 LIBTOOL=$ac_ct_LIBTOOL
9513 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
9515 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.].*//'`
9517 cf_cv_libtool_version=
9519 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
9521 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
9524 unset ac_cv_prog_ac_ct_LIBTOOL
9528 if test -n "$ac_tool_prefix"; then
9529 for ac_prog in glibtool
9531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9533 echo "$as_me:9533: checking for $ac_word" >&5
9534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9535 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 if test -n "$LIBTOOL"; then
9539 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
9541 ac_save_IFS=$IFS; IFS=$ac_path_separator
9543 for ac_dir in $ac_dummy; do
9545 test -z "$ac_dir" && ac_dir=.
9546 $as_executable_p "$ac_dir/$ac_word" || continue
9547 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
9548 echo "$as_me:9548: found $ac_dir/$ac_word" >&5
9554 LIBTOOL=$ac_cv_prog_LIBTOOL
9555 if test -n "$LIBTOOL"; then
9556 echo "$as_me:9556: result: $LIBTOOL" >&5
9557 echo "${ECHO_T}$LIBTOOL" >&6
9559 echo "$as_me:9559: result: no" >&5
9560 echo "${ECHO_T}no" >&6
9563 test -n "$LIBTOOL" && break
9566 if test -z "$LIBTOOL"; then
9567 ac_ct_LIBTOOL=$LIBTOOL
9568 for ac_prog in glibtool
9570 # Extract the first word of "$ac_prog", so it can be a program name with args.
9571 set dummy $ac_prog; ac_word=$2
9572 echo "$as_me:9572: checking for $ac_word" >&5
9573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9574 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 if test -n "$ac_ct_LIBTOOL"; then
9578 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
9580 ac_save_IFS=$IFS; IFS=$ac_path_separator
9582 for ac_dir in $ac_dummy; do
9584 test -z "$ac_dir" && ac_dir=.
9585 $as_executable_p "$ac_dir/$ac_word" || continue
9586 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
9587 echo "$as_me:9587: found $ac_dir/$ac_word" >&5
9593 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
9594 if test -n "$ac_ct_LIBTOOL"; then
9595 echo "$as_me:9595: result: $ac_ct_LIBTOOL" >&5
9596 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
9598 echo "$as_me:9598: result: no" >&5
9599 echo "${ECHO_T}no" >&6
9602 test -n "$ac_ct_LIBTOOL" && break
9604 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
9606 LIBTOOL=$ac_ct_LIBTOOL
9609 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
9611 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.].*//'`
9613 cf_cv_libtool_version=
9615 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
9619 if test -z "$LIBTOOL" ; then
9620 { { echo "$as_me:9620: error: Cannot find libtool" >&5
9621 echo "$as_me: error: Cannot find libtool" >&2;}
9622 { (exit 1); exit 1; }; }
9624 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
9625 LIB_OBJECT='${OBJECTS:.o=.lo}'
9627 LIB_CLEAN='${LIBTOOL} --mode=clean'
9628 LIB_COMPILE='${LIBTOOL} --mode=compile'
9629 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
9630 LIB_INSTALL='${LIBTOOL} --mode=install'
9631 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
9634 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
9636 echo "$as_me:9636: checking version of $LIBTOOL" >&5
9637 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
9639 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
9641 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.].*//'`
9643 cf_cv_libtool_version=
9645 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
9647 echo "$as_me:9647: result: $cf_cv_libtool_version" >&5
9648 echo "${ECHO_T}$cf_cv_libtool_version" >&6
9649 if test -z "$cf_cv_libtool_version" ; then
9650 { { echo "$as_me:9650: error: This is not GNU libtool" >&5
9651 echo "$as_me: error: This is not GNU libtool" >&2;}
9652 { (exit 1); exit 1; }; }
9655 { { echo "$as_me:9655: error: GNU libtool has not been found" >&5
9656 echo "$as_me: error: GNU libtool has not been found" >&2;}
9657 { (exit 1); exit 1; }; }
9660 # special hack to add -no-undefined (which libtool should do for itself)
9662 case "$cf_cv_system_name" in #(vi
9663 cygwin*|msys*|mingw32*|uwin*|aix[4-7]) #(vi
9664 LT_UNDEF=-no-undefined
9668 # special hack to add --tag option for C++ compiler
9669 case $cf_cv_libtool_version in #(vi
9670 1.[5-9]*|[2-9].[0-9.a-z]*) #(vi
9671 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
9672 LIBTOOL="$LIBTOOL --tag=CC"
9675 LIBTOOL_CXX="$LIBTOOL"
9683 test -z "$LIBTOOL" && ECHO_LT=
9685 LIB_CREATE="$LIB_CREATE \$@"
9687 if test "$with_libtool" = "yes" ; then
9690 DFT_LWR_MODEL=$LIB_MODEL
9693 echo "$as_me:9693: checking for additional libtool options" >&5
9694 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
9696 # Check whether --with-libtool-opts or --without-libtool-opts was given.
9697 if test "${with_libtool_opts+set}" = set; then
9698 withval="$with_libtool_opts"
9699 with_libtool_opts=$withval
9701 with_libtool_opts=no
9703 echo "$as_me:9703: result: $with_libtool_opts" >&5
9704 echo "${ECHO_T}$with_libtool_opts" >&6
9706 case .$with_libtool_opts in
9710 LIBTOOL_OPTS=$with_libtool_opts
9718 echo "$as_me:9718: checking if you want to build shared libraries" >&5
9719 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
9721 # Check whether --with-shared or --without-shared was given.
9722 if test "${with_shared+set}" = set; then
9723 withval="$with_shared"
9724 with_shared=$withval
9728 echo "$as_me:9728: result: $with_shared" >&5
9729 echo "${ECHO_T}$with_shared" >&6
9730 if test "$with_shared" = "yes" ; then
9732 DFT_LWR_MODEL=$LIB_MODEL
9738 INSTALL_LIB="-m 644"
9739 : ${rel_builddir:=.}
9741 cf_cv_do_symlinks=no
9743 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
9745 echo "$as_me:9745: checking if release/abi version should be used for shared libs" >&5
9746 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
9748 # Check whether --with-shlib-version or --without-shlib-version was given.
9749 if test "${with_shlib_version+set}" = set; then
9750 withval="$with_shlib_version"
9751 test -z "$withval" && withval=auto
9752 case $withval in #(vi
9754 cf_cv_shlib_version=auto
9756 rel|abi|auto|no) #(vi
9757 cf_cv_shlib_version=$withval
9760 { { echo "$as_me:9760: error: option value must be one of: rel, abi, auto or no" >&5
9761 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
9762 { (exit 1); exit 1; }; }
9767 cf_cv_shlib_version=auto
9769 echo "$as_me:9769: result: $cf_cv_shlib_version" >&5
9770 echo "${ECHO_T}$cf_cv_shlib_version" >&6
9775 # Some less-capable ports of gcc support only -fpic
9777 if test "$GCC" = yes
9779 echo "$as_me:9779: checking which $CC option to use" >&5
9780 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
9781 cf_save_CFLAGS="$CFLAGS"
9782 for CC_SHARED_OPTS in -fPIC -fpic ''
9784 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line 9786 "configure"
9787 #include "confdefs.h"
9797 rm -f conftest.$ac_objext
9798 if { (eval echo "$as_me:9798: \"$ac_compile\"") >&5
9799 (eval $ac_compile) 2>&5
9801 echo "$as_me:9801: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:9804: \"$ac_try\"") >&5
9807 echo "$as_me:9807: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9811 echo "$as_me: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9814 rm -f conftest.$ac_objext conftest.$ac_ext
9816 echo "$as_me:9816: result: $CC_SHARED_OPTS" >&5
9817 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
9818 CFLAGS="$cf_save_CFLAGS"
9821 cf_cv_shlib_version_infix=no
9823 case $cf_cv_system_name in #(vi
9824 aix4.3-9*|aix[5-7]*) #(vi
9825 if test "$GCC" = yes; then
9827 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
9829 # CC_SHARED_OPTS='-qpic=large -G'
9830 # perhaps "-bM:SRE -bnoentry -bexpall"
9831 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
9835 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
9839 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
9840 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
9841 cf_cv_shlib_version=cygdll
9842 cf_cv_shlib_version_infix=cygdll
9843 cat >mk_shared_lib.sh <<-CF_EOF
9846 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
9849 Linking shared library
9850 ** SHARED_LIB \$SHARED_LIB
9851 ** IMPORT_LIB \$IMPORT_LIB
9853 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
9855 chmod +x mk_shared_lib.sh
9859 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
9860 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
9861 cf_cv_shlib_version=msysdll
9862 cf_cv_shlib_version_infix=msysdll
9863 cat >mk_shared_lib.sh <<-CF_EOF
9866 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
9869 Linking shared library
9870 ** SHARED_LIB \$SHARED_LIB
9871 ** IMPORT_LIB \$IMPORT_LIB
9873 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
9875 chmod +x mk_shared_lib.sh
9878 cf_try_cflags="no-cpp-precomp"
9879 CC_SHARED_OPTS="-dynamic"
9880 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
9881 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
9882 cf_cv_shlib_version_infix=yes
9883 echo "$as_me:9883: checking if ld -search_paths_first works" >&5
9884 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
9885 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 cf_save_LDFLAGS=$LDFLAGS
9890 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
9891 cat >conftest.$ac_ext <<_ACEOF
9892 #line 9892 "configure"
9893 #include "confdefs.h"
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:9904: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>&5
9907 echo "$as_me:9907: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:9910: \"$ac_try\"") >&5
9913 echo "$as_me:9913: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 cf_cv_ldflags_search_paths_first=yes
9917 echo "$as_me: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 cf_cv_ldflags_search_paths_first=no
9921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922 LDFLAGS=$cf_save_LDFLAGS
9924 echo "$as_me:9924: result: $cf_cv_ldflags_search_paths_first" >&5
9925 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
9926 if test $cf_cv_ldflags_search_paths_first = yes; then
9927 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
9931 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
9932 if test "$GCC" != yes; then
9935 MK_SHARED_LIB='${LD} -b -o $@'
9936 INSTALL_LIB="-m 555"
9939 # (tested with gcc 2.7.2 -- I don't have c89)
9940 if test "$GCC" = yes; then
9941 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
9944 LD_SHARED_OPTS='-Wl,+b,${libdir}'
9946 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
9947 # HP-UX shared libraries must be executable, and should be
9948 # readonly to exploit a quirk in the memory manager.
9949 INSTALL_LIB="-m 555"
9952 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
9953 if test "$cf_cv_shlib_version" = rel; then
9954 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
9956 cf_shared_soname='`basename `'
9959 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
9962 if test "$cf_cv_enable_rpath" = yes ; then
9963 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
9965 # tested with IRIX 5.2 and 'cc'.
9966 if test "$GCC" != yes; then
9967 CC_SHARED_OPTS='-KPIC'
9968 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
9970 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
9972 cf_cv_rm_so_locs=yes
9974 linux*|gnu*|k*bsd*-gnu) #(vi
9975 if test "$DFT_LWR_MODEL" = "shared" ; then
9976 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
9977 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
9979 if test "$cf_cv_enable_rpath" = yes ; then
9980 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
9983 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
9984 if test "$cf_cv_shlib_version" = rel; then
9985 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
9987 cf_cv_shared_soname='`basename $@`'
9990 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
9993 cf_cv_shlib_version=mingw
9994 cf_cv_shlib_version_infix=mingw
9995 if test "$DFT_LWR_MODEL" = "shared" ; then
9996 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
9997 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
9998 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
10001 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
10002 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
10003 cat >mk_shared_lib.sh <<-CF_EOF
10006 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
10009 Linking shared library
10010 ** SHARED_LIB \$SHARED_LIB
10011 ** IMPORT_LIB \$IMPORT_LIB
10013 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
10015 chmod +x mk_shared_lib.sh
10017 openbsd[2-9].*|mirbsd*) #(vi
10018 if test "$DFT_LWR_MODEL" = "shared" ; then
10019 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
10020 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10022 if test "$cf_cv_enable_rpath" = yes ; then
10023 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
10025 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
10027 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10028 if test "$cf_cv_shlib_version" = rel; then
10029 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10031 cf_cv_shared_soname='`basename $@`'
10034 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
10036 nto-qnx*|openbsd*|freebsd[12].*) #(vi
10037 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
10038 MK_SHARED_LIB='${LD} -Bshareable -o $@'
10039 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10041 dragonfly*|freebsd*) #(vi
10042 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
10043 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
10044 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
10045 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
10046 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
10049 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10050 if test "$cf_cv_shlib_version" = rel; then
10051 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10053 cf_cv_shared_soname='`basename $@`'
10056 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
10059 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
10060 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
10061 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
10062 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10063 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
10064 if test "$cf_cv_shlib_version" = auto; then
10065 if test -f /usr/libexec/ld.elf_so; then
10066 cf_cv_shlib_version=abi
10068 cf_cv_shlib_version=rel
10072 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10073 if test "$cf_cv_shlib_version" = rel; then
10074 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10076 cf_cv_shared_soname='`basename $@`'
10079 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
10081 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
10085 # tested with OSF/1 V3.2 and 'cc'
10086 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
10087 # link with shared libs).
10088 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
10089 case $host_os in #(vi
10091 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
10094 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
10095 if test "$DFT_LWR_MODEL" = "shared" ; then
10096 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
10097 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10099 cf_cv_rm_so_locs=yes
10101 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
10102 # tested with osr5.0.5
10103 if test "$GCC" != yes; then
10104 CC_SHARED_OPTS='-belf -KPIC'
10106 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
10107 if test "$cf_cv_enable_rpath" = yes ; then
10108 # only way is to set LD_RUN_PATH but no switch for it
10111 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10112 LINK_PROGS='LD_RUN_PATH=${libdir}'
10113 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
10116 # tested with SunOS 4.1.1 and gcc 2.7.0
10117 if test "$GCC" != yes; then
10118 CC_SHARED_OPTS='-KPIC'
10120 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
10121 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10124 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
10125 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
10126 if test "$DFT_LWR_MODEL" = "shared" ; then
10127 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
10128 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
10130 if test "$cf_cv_enable_rpath" = yes ; then
10131 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
10134 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
10135 if test "$cf_cv_shlib_version" = rel; then
10136 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
10138 cf_cv_shared_soname='`basename $@`'
10141 if test "$GCC" != yes; then
10142 cf_save_CFLAGS="$CFLAGS"
10143 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
10145 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
10146 cat >conftest.$ac_ext <<_ACEOF
10147 #line 10147 "configure"
10148 #include "confdefs.h"
10158 rm -f conftest.$ac_objext
10159 if { (eval echo "$as_me:10159: \"$ac_compile\"") >&5
10160 (eval $ac_compile) 2>&5
10162 echo "$as_me:10162: \$? = $ac_status" >&5
10163 (exit $ac_status); } &&
10164 { ac_try='test -s conftest.$ac_objext'
10165 { (eval echo "$as_me:10165: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:10168: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10172 echo "$as_me: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10175 rm -f conftest.$ac_objext conftest.$ac_ext
10177 CFLAGS="$cf_save_CFLAGS"
10178 CC_SHARED_OPTS=$cf_shared_opts
10179 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
10181 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
10184 sysv5uw7*|unix_sv*) #(vi
10185 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
10186 if test "$GCC" != yes; then
10187 CC_SHARED_OPTS='-KPIC'
10189 MK_SHARED_LIB='${LD} -d y -G -o $@'
10192 CC_SHARED_OPTS='unknown'
10193 MK_SHARED_LIB='echo unknown'
10197 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
10198 case "$cf_cv_shlib_version" in #(vi
10200 case "$MK_SHARED_LIB" in #(vi
10202 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
10205 { echo "$as_me:10205: WARNING: ignored --with-shlib-version" >&5
10206 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
10212 if test -n "$cf_try_cflags"
10214 cat > conftest.$ac_ext <<EOF
10215 #line 10215 "${as_me:-configure}"
10217 int main(int argc, char *argv[])
10220 return (argv[argc-1] == 0) ;
10223 cf_save_CFLAGS="$CFLAGS"
10224 for cf_opt in $cf_try_cflags
10226 CFLAGS="$cf_save_CFLAGS -$cf_opt"
10227 echo "$as_me:10227: checking if CFLAGS option -$cf_opt works" >&5
10228 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
10229 if { (eval echo "$as_me:10229: \"$ac_compile\"") >&5
10230 (eval $ac_compile) 2>&5
10232 echo "$as_me:10232: \$? = $ac_status" >&5
10233 (exit $ac_status); }; then
10234 echo "$as_me:10234: result: yes" >&5
10235 echo "${ECHO_T}yes" >&6
10236 cf_save_CFLAGS="$CFLAGS"
10238 echo "$as_me:10238: result: no" >&5
10239 echo "${ECHO_T}no" >&6
10242 CFLAGS="$cf_save_CFLAGS"
10245 # RPATH_LIST is a colon-separated list of directories
10246 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
10247 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
10249 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
10251 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
10253 echo "${as_me:-configure}:10253: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
10255 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
10257 echo "${as_me:-configure}:10257: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
10260 LIB_CREATE="$MK_SHARED_LIB"
10261 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
10270 case X$LIB_MODEL in #(vi
10272 DFT_LIB_SUFFIX='.la'
10273 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10276 DFT_LIB_SUFFIX='_g.a'
10277 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10280 DFT_LIB_SUFFIX='_p.a'
10281 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10284 case $cf_cv_system_name in
10286 DFT_LIB_SUFFIX='.a'
10287 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10289 cygwin*|msys*|mingw*) #(vi
10290 DFT_LIB_SUFFIX='.dll'
10291 DFT_DEP_SUFFIX='.dll.a'
10294 DFT_LIB_SUFFIX='.dylib'
10295 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10300 DFT_LIB_SUFFIX='.so'
10301 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10304 DFT_LIB_SUFFIX='.sl'
10305 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10310 DFT_LIB_SUFFIX='.so'
10311 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10316 DFT_LIB_SUFFIX='.a'
10317 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10320 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
10321 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
10323 LIB_SUFFIX=$DFT_LIB_SUFFIX
10325 echo "$as_me:10325: checking for specific curses-directory" >&5
10326 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
10328 # Check whether --with-curses-dir or --without-curses-dir was given.
10329 if test "${with_curses_dir+set}" = set; then
10330 withval="$with_curses_dir"
10331 cf_cv_curses_dir=$withval
10333 cf_cv_curses_dir=no
10335 echo "$as_me:10335: result: $cf_cv_curses_dir" >&5
10336 echo "${ECHO_T}$cf_cv_curses_dir" >&6
10338 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
10341 if test "x$prefix" != xNONE; then
10342 cf_path_syntax="$prefix"
10344 cf_path_syntax="$ac_default_prefix"
10347 case ".$withval" in #(vi
10348 .\$\(*\)*|.\'*\'*) #(vi
10352 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
10354 .\${*prefix}*|.\${*dir}*) #(vi
10355 eval withval="$withval"
10356 case ".$withval" in #(vi
10358 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10363 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10366 { { echo "$as_me:10366: error: expected a pathname, not \"$withval\"" >&5
10367 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
10368 { (exit 1); exit 1; }; }
10372 if test -d "$cf_cv_curses_dir"
10375 if test -n "$cf_cv_curses_dir/include" ; then
10376 for cf_add_incdir in $cf_cv_curses_dir/include
10378 while test $cf_add_incdir != /usr/include
10380 if test -d $cf_add_incdir
10383 if test -n "$CFLAGS$CPPFLAGS" ; then
10384 # a loop is needed to ensure we can add subdirs of existing dirs
10385 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10386 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10387 cf_have_incdir=yes; break
10392 if test "$cf_have_incdir" = no ; then
10393 if test "$cf_add_incdir" = /usr/local/include ; then
10394 if test "$GCC" = yes
10396 cf_save_CPPFLAGS=$CPPFLAGS
10397 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10398 cat >conftest.$ac_ext <<_ACEOF
10399 #line 10399 "configure"
10400 #include "confdefs.h"
10410 rm -f conftest.$ac_objext
10411 if { (eval echo "$as_me:10411: \"$ac_compile\"") >&5
10412 (eval $ac_compile) 2>&5
10414 echo "$as_me:10414: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -s conftest.$ac_objext'
10417 { (eval echo "$as_me:10417: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:10420: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10424 echo "$as_me: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10428 rm -f conftest.$ac_objext conftest.$ac_ext
10429 CPPFLAGS=$cf_save_CPPFLAGS
10434 if test "$cf_have_incdir" = no ; then
10435 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10437 echo "${as_me:-configure}:10437: testing adding $cf_add_incdir to include-path ..." 1>&5
10439 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10441 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10442 test "$cf_top_incdir" = "$cf_add_incdir" && break
10443 cf_add_incdir="$cf_top_incdir"
10452 if test -n "$cf_cv_curses_dir/lib" ; then
10453 for cf_add_libdir in $cf_cv_curses_dir/lib
10455 if test $cf_add_libdir = /usr/lib ; then
10457 elif test -d $cf_add_libdir
10460 if test -n "$LDFLAGS$LIBS" ; then
10461 # a loop is needed to ensure we can add subdirs of existing dirs
10462 for cf_test_libdir in $LDFLAGS $LIBS ; do
10463 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
10464 cf_have_libdir=yes; break
10468 if test "$cf_have_libdir" = no ; then
10469 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
10471 echo "${as_me:-configure}:10471: testing adding $cf_add_libdir to library-path ..." 1>&5
10473 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
10482 echo "$as_me:10482: checking if rpath option should be used" >&5
10483 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
10485 # Check whether --enable-rpath or --disable-rpath was given.
10486 if test "${enable_rpath+set}" = set; then
10487 enableval="$enable_rpath"
10488 cf_cv_enable_rpath=$enableval
10490 cf_cv_enable_rpath=no
10492 echo "$as_me:10492: result: $cf_cv_enable_rpath" >&5
10493 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
10497 # Check whether --with-ncurses or --without-ncurses was given.
10498 if test "${with_ncurses+set}" = set; then
10499 withval="$with_ncurses"
10500 use_ncurses=ncurses
10503 # Check whether --with-ncursesw or --without-ncursesw was given.
10504 if test "${with_ncursesw+set}" = set; then
10505 withval="$with_ncursesw"
10506 use_ncurses=ncursesw
10508 if test $use_ncurses != no ; then
10510 if test $use_ncurses = ncursesw ; then
10512 echo "$as_me:10512: checking for multibyte character support" >&5
10513 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
10514 if test "${cf_cv_utf8_lib+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 cf_save_LIBS="$LIBS"
10519 cat >conftest.$ac_ext <<_ACEOF
10520 #line 10520 "configure"
10521 #include "confdefs.h"
10523 #include <stdlib.h>
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:10533: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>&5
10536 echo "$as_me:10536: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try='test -s conftest$ac_exeext'
10539 { (eval echo "$as_me:10539: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10542 echo "$as_me:10542: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10546 echo "$as_me: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10549 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
10550 # will be set on completion of the AC_TRY_LINK below.
10551 cf_cv_header_path_utf8=
10552 cf_cv_library_path_utf8=
10554 echo "${as_me:-configure}:10554: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
10556 cf_save_LIBS="$LIBS"
10558 cat >conftest.$ac_ext <<_ACEOF
10559 #line 10559 "configure"
10560 #include "confdefs.h"
10562 #include <libutf8.h>
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (eval echo "$as_me:10572: \"$ac_link\"") >&5
10573 (eval $ac_link) 2>&5
10575 echo "$as_me:10575: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -s conftest$ac_exeext'
10578 { (eval echo "$as_me:10578: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10581 echo "$as_me:10581: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10584 cf_cv_find_linkage_utf8=yes
10585 cf_cv_header_path_utf8=/usr/include
10586 cf_cv_library_path_utf8=/usr/lib
10589 echo "$as_me: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10592 LIBS="-lutf8 $cf_save_LIBS"
10594 cat >conftest.$ac_ext <<_ACEOF
10595 #line 10595 "configure"
10596 #include "confdefs.h"
10598 #include <libutf8.h>
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (eval echo "$as_me:10608: \"$ac_link\"") >&5
10609 (eval $ac_link) 2>&5
10611 echo "$as_me:10611: \$? = $ac_status" >&5
10612 (exit $ac_status); } &&
10613 { ac_try='test -s conftest$ac_exeext'
10614 { (eval echo "$as_me:10614: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10617 echo "$as_me:10617: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10620 cf_cv_find_linkage_utf8=yes
10621 cf_cv_header_path_utf8=/usr/include
10622 cf_cv_library_path_utf8=/usr/lib
10623 cf_cv_library_file_utf8="-lutf8"
10626 echo "$as_me: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10629 cf_cv_find_linkage_utf8=no
10630 LIBS="$cf_save_LIBS"
10632 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
10634 echo "${as_me:-configure}:10634: testing find linkage for utf8 library ..." 1>&5
10636 echo "${as_me:-configure}:10636: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
10638 cf_save_CPPFLAGS="$CPPFLAGS"
10639 cf_test_CPPFLAGS="$CPPFLAGS"
10643 # collect the current set of include-directories from compiler flags
10644 cf_header_path_list=""
10645 if test -n "${CFLAGS}${CPPFLAGS}" ; then
10646 for cf_header_path in $CPPFLAGS $CFLAGS
10648 case $cf_header_path in #(vi
10650 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
10652 test "$cf_header_path" != "NONE" && \
10653 test -d "$cf_header_path" && \
10655 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
10656 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
10657 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
10658 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
10659 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
10660 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
10663 cf_header_path_list="$cf_header_path_list $cf_search"
10669 # add the variations for the package we are looking for
10673 test "/usr" != "$prefix" && \
10674 test -d "/usr" && \
10675 (test $prefix = NONE || test "/usr" != "$prefix") && {
10676 test -n "$verbose" && echo " ... testing for include-directories under /usr"
10677 test -d /usr/include && cf_search="$cf_search /usr/include"
10678 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
10679 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
10680 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
10681 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
10684 test "$prefix" != "NONE" && \
10685 test -d "$prefix" && \
10687 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
10688 test -d $prefix/include && cf_search="$cf_search $prefix/include"
10689 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
10690 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
10691 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
10692 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
10695 test "/usr/local" != "$prefix" && \
10696 test -d "/usr/local" && \
10697 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
10698 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
10699 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
10700 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
10701 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
10702 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
10703 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
10706 test "/opt" != "$prefix" && \
10707 test -d "/opt" && \
10708 (test $prefix = NONE || test "/opt" != "$prefix") && {
10709 test -n "$verbose" && echo " ... testing for include-directories under /opt"
10710 test -d /opt/include && cf_search="$cf_search /opt/include"
10711 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
10712 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
10713 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
10714 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
10717 test "$HOME" != "$prefix" && \
10718 test -d "$HOME" && \
10719 (test $prefix = NONE || test "$HOME" != "$prefix") && {
10720 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
10721 test -d $HOME/include && cf_search="$cf_search $HOME/include"
10722 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
10723 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
10724 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
10725 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
10728 test "$includedir" != NONE && \
10729 test "$includedir" != "/usr/include" && \
10730 test -d "$includedir" && {
10731 test -d $includedir && cf_search="$cf_search $includedir"
10732 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
10735 test "$oldincludedir" != NONE && \
10736 test "$oldincludedir" != "/usr/include" && \
10737 test -d "$oldincludedir" && {
10738 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
10739 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
10742 cf_search="$cf_search $cf_header_path_list"
10744 for cf_cv_header_path_utf8 in $cf_search
10746 if test -d $cf_cv_header_path_utf8 ; then
10747 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
10749 echo "${as_me:-configure}:10749: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
10751 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
10752 cat >conftest.$ac_ext <<_ACEOF
10753 #line 10753 "configure"
10754 #include "confdefs.h"
10756 #include <libutf8.h>
10765 rm -f conftest.$ac_objext
10766 if { (eval echo "$as_me:10766: \"$ac_compile\"") >&5
10767 (eval $ac_compile) 2>&5
10769 echo "$as_me:10769: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -s conftest.$ac_objext'
10772 { (eval echo "$as_me:10772: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:10775: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10778 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
10780 echo "${as_me:-configure}:10780: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
10782 cf_cv_find_linkage_utf8=maybe
10783 cf_test_CPPFLAGS="$CPPFLAGS"
10786 echo "$as_me: failed program was:" >&5
10787 cat conftest.$ac_ext >&5
10789 CPPFLAGS="$cf_save_CPPFLAGS"
10792 rm -f conftest.$ac_objext conftest.$ac_ext
10796 if test "$cf_cv_find_linkage_utf8" = maybe ; then
10798 echo "${as_me:-configure}:10798: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
10800 cf_save_LIBS="$LIBS"
10801 cf_save_LDFLAGS="$LDFLAGS"
10803 if test "$cf_cv_find_linkage_utf8" != yes ; then
10806 cf_library_path_list=""
10807 if test -n "${LDFLAGS}${LIBS}" ; then
10808 for cf_library_path in $LDFLAGS $LIBS
10810 case $cf_library_path in #(vi
10812 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
10814 test "$cf_library_path" != "NONE" && \
10815 test -d "$cf_library_path" && \
10817 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10818 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
10819 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
10820 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
10821 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
10822 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
10825 cf_library_path_list="$cf_library_path_list $cf_search"
10833 test "/usr" != "$prefix" && \
10834 test -d "/usr" && \
10835 (test $prefix = NONE || test "/usr" != "$prefix") && {
10836 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
10837 test -d /usr/lib && cf_search="$cf_search /usr/lib"
10838 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
10839 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
10840 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
10841 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
10844 test "$prefix" != "NONE" && \
10845 test -d "$prefix" && \
10847 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10848 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
10849 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
10850 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
10851 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
10852 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
10855 test "/usr/local" != "$prefix" && \
10856 test -d "/usr/local" && \
10857 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
10858 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
10859 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
10860 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
10861 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
10862 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
10863 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
10866 test "/opt" != "$prefix" && \
10867 test -d "/opt" && \
10868 (test $prefix = NONE || test "/opt" != "$prefix") && {
10869 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
10870 test -d /opt/lib && cf_search="$cf_search /opt/lib"
10871 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
10872 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
10873 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
10874 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
10877 test "$HOME" != "$prefix" && \
10878 test -d "$HOME" && \
10879 (test $prefix = NONE || test "$HOME" != "$prefix") && {
10880 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
10881 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
10882 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
10883 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
10884 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
10885 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
10888 cf_search="$cf_library_path_list $cf_search"
10890 for cf_cv_library_path_utf8 in $cf_search
10892 if test -d $cf_cv_library_path_utf8 ; then
10893 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
10895 echo "${as_me:-configure}:10895: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
10897 CPPFLAGS="$cf_test_CPPFLAGS"
10898 LIBS="-lutf8 $cf_save_LIBS"
10899 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
10900 cat >conftest.$ac_ext <<_ACEOF
10901 #line 10901 "configure"
10902 #include "confdefs.h"
10904 #include <libutf8.h>
10913 rm -f conftest.$ac_objext conftest$ac_exeext
10914 if { (eval echo "$as_me:10914: \"$ac_link\"") >&5
10915 (eval $ac_link) 2>&5
10917 echo "$as_me:10917: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try='test -s conftest$ac_exeext'
10920 { (eval echo "$as_me:10920: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:10923: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10926 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
10928 echo "${as_me:-configure}:10928: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
10930 cf_cv_find_linkage_utf8=yes
10931 cf_cv_library_file_utf8="-lutf8"
10934 echo "$as_me: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10937 CPPFLAGS="$cf_save_CPPFLAGS"
10938 LIBS="$cf_save_LIBS"
10939 LDFLAGS="$cf_save_LDFLAGS"
10942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10945 CPPFLAGS="$cf_save_CPPFLAGS"
10946 LDFLAGS="$cf_save_LDFLAGS"
10950 cf_cv_find_linkage_utf8=no
10954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10959 LIBS="$cf_save_LIBS"
10961 if test "$cf_cv_find_linkage_utf8" = yes ; then
10962 cf_cv_utf8_lib=add-on
10968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10970 echo "$as_me:10970: result: $cf_cv_utf8_lib" >&5
10971 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
10973 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
10974 # ncurses/ncursesw:
10975 if test "$cf_cv_utf8_lib" = "add-on" ; then
10977 cat >>confdefs.h <<\EOF
10978 #define HAVE_LIBUTF8_H 1
10981 if test -n "$cf_cv_header_path_utf8" ; then
10982 for cf_add_incdir in $cf_cv_header_path_utf8
10984 while test $cf_add_incdir != /usr/include
10986 if test -d $cf_add_incdir
10989 if test -n "$CFLAGS$CPPFLAGS" ; then
10990 # a loop is needed to ensure we can add subdirs of existing dirs
10991 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10992 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10993 cf_have_incdir=yes; break
10998 if test "$cf_have_incdir" = no ; then
10999 if test "$cf_add_incdir" = /usr/local/include ; then
11000 if test "$GCC" = yes
11002 cf_save_CPPFLAGS=$CPPFLAGS
11003 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11004 cat >conftest.$ac_ext <<_ACEOF
11005 #line 11005 "configure"
11006 #include "confdefs.h"
11016 rm -f conftest.$ac_objext
11017 if { (eval echo "$as_me:11017: \"$ac_compile\"") >&5
11018 (eval $ac_compile) 2>&5
11020 echo "$as_me:11020: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -s conftest.$ac_objext'
11023 { (eval echo "$as_me:11023: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11030 echo "$as_me: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11034 rm -f conftest.$ac_objext conftest.$ac_ext
11035 CPPFLAGS=$cf_save_CPPFLAGS
11040 if test "$cf_have_incdir" = no ; then
11041 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11043 echo "${as_me:-configure}:11043: testing adding $cf_add_incdir to include-path ..." 1>&5
11045 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11047 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
11048 test "$cf_top_incdir" = "$cf_add_incdir" && break
11049 cf_add_incdir="$cf_top_incdir"
11058 if test -n "$cf_cv_library_path_utf8" ; then
11059 for cf_add_libdir in $cf_cv_library_path_utf8
11061 if test $cf_add_libdir = /usr/lib ; then
11063 elif test -d $cf_add_libdir
11066 if test -n "$LDFLAGS$LIBS" ; then
11067 # a loop is needed to ensure we can add subdirs of existing dirs
11068 for cf_test_libdir in $LDFLAGS $LIBS ; do
11069 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
11070 cf_have_libdir=yes; break
11074 if test "$cf_have_libdir" = no ; then
11075 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
11077 echo "${as_me:-configure}:11077: testing adding $cf_add_libdir to library-path ..." 1>&5
11079 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
11085 LIBS="$cf_cv_library_file_utf8 $LIBS"
11090 cf_ncuconfig_root=$use_ncurses
11092 echo "Looking for ${cf_ncuconfig_root}-config"
11094 if test -n "$ac_tool_prefix"; then
11095 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
11097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11099 echo "$as_me:11099: checking for $ac_word" >&5
11100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11101 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 if test -n "$NCURSES_CONFIG"; then
11105 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
11107 ac_save_IFS=$IFS; IFS=$ac_path_separator
11109 for ac_dir in $ac_dummy; do
11111 test -z "$ac_dir" && ac_dir=.
11112 $as_executable_p "$ac_dir/$ac_word" || continue
11113 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
11114 echo "$as_me:11114: found $ac_dir/$ac_word" >&5
11120 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
11121 if test -n "$NCURSES_CONFIG"; then
11122 echo "$as_me:11122: result: $NCURSES_CONFIG" >&5
11123 echo "${ECHO_T}$NCURSES_CONFIG" >&6
11125 echo "$as_me:11125: result: no" >&5
11126 echo "${ECHO_T}no" >&6
11129 test -n "$NCURSES_CONFIG" && break
11132 if test -z "$NCURSES_CONFIG"; then
11133 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
11134 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
11136 # Extract the first word of "$ac_prog", so it can be a program name with args.
11137 set dummy $ac_prog; ac_word=$2
11138 echo "$as_me:11138: checking for $ac_word" >&5
11139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11140 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 if test -n "$ac_ct_NCURSES_CONFIG"; then
11144 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
11146 ac_save_IFS=$IFS; IFS=$ac_path_separator
11148 for ac_dir in $ac_dummy; do
11150 test -z "$ac_dir" && ac_dir=.
11151 $as_executable_p "$ac_dir/$ac_word" || continue
11152 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
11153 echo "$as_me:11153: found $ac_dir/$ac_word" >&5
11159 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
11160 if test -n "$ac_ct_NCURSES_CONFIG"; then
11161 echo "$as_me:11161: result: $ac_ct_NCURSES_CONFIG" >&5
11162 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
11164 echo "$as_me:11164: result: no" >&5
11165 echo "${ECHO_T}no" >&6
11168 test -n "$ac_ct_NCURSES_CONFIG" && break
11170 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
11172 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
11175 if test "$NCURSES_CONFIG" != none ; then
11177 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
11178 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
11180 # even with config script, some packages use no-override for curses.h
11182 echo "$as_me:11182: checking if we have identified curses headers" >&5
11183 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
11184 if test "${cf_cv_ncurses_header+set}" = set; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 cf_cv_ncurses_header=none
11190 $use_ncurses/ncurses.h \
11191 $use_ncurses/curses.h \
11195 cat >conftest.$ac_ext <<_ACEOF
11196 #line 11196 "configure"
11197 #include "confdefs.h"
11198 #include <${cf_header}>
11202 initscr(); tgoto("?", 0,0)
11207 rm -f conftest.$ac_objext
11208 if { (eval echo "$as_me:11208: \"$ac_compile\"") >&5
11209 (eval $ac_compile) 2>&5
11211 echo "$as_me:11211: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -s conftest.$ac_objext'
11214 { (eval echo "$as_me:11214: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11217 echo "$as_me:11217: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 cf_cv_ncurses_header=$cf_header; break
11221 echo "$as_me: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11224 rm -f conftest.$ac_objext conftest.$ac_ext
11228 echo "$as_me:11228: result: $cf_cv_ncurses_header" >&5
11229 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
11231 if test "$cf_cv_ncurses_header" = none ; then
11232 { { echo "$as_me:11232: error: No curses header-files found" >&5
11233 echo "$as_me: error: No curses header-files found" >&2;}
11234 { (exit 1); exit 1; }; }
11237 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
11239 for ac_header in $cf_cv_ncurses_header
11241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11242 echo "$as_me:11242: checking for $ac_header" >&5
11243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 cat >conftest.$ac_ext <<_ACEOF
11248 #line 11248 "configure"
11249 #include "confdefs.h"
11250 #include <$ac_header>
11252 if { (eval echo "$as_me:11252: \"$ac_cpp conftest.$ac_ext\"") >&5
11253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11255 egrep -v '^ *\+' conftest.er1 >conftest.err
11257 cat conftest.err >&5
11258 echo "$as_me:11258: \$? = $ac_status" >&5
11259 (exit $ac_status); } >/dev/null; then
11260 if test -s conftest.err; then
11261 ac_cpp_err=$ac_c_preproc_warn_flag
11268 if test -z "$ac_cpp_err"; then
11269 eval "$as_ac_Header=yes"
11271 echo "$as_me: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 eval "$as_ac_Header=no"
11275 rm -f conftest.err conftest.$ac_ext
11277 echo "$as_me:11277: result: `eval echo '${'$as_ac_Header'}'`" >&5
11278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<EOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11287 cat >>confdefs.h <<\EOF
11291 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11293 cat >>confdefs.h <<EOF
11294 #define $cf_nculib_ROOT 1
11297 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
11301 cf_ncuhdr_root=$use_ncurses
11303 test -n "$cf_cv_curses_dir" && \
11304 test "$cf_cv_curses_dir" != "no" && { \
11306 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
11307 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
11309 while test $cf_add_incdir != /usr/include
11311 if test -d $cf_add_incdir
11314 if test -n "$CFLAGS$CPPFLAGS" ; then
11315 # a loop is needed to ensure we can add subdirs of existing dirs
11316 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11317 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11318 cf_have_incdir=yes; break
11323 if test "$cf_have_incdir" = no ; then
11324 if test "$cf_add_incdir" = /usr/local/include ; then
11325 if test "$GCC" = yes
11327 cf_save_CPPFLAGS=$CPPFLAGS
11328 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11329 cat >conftest.$ac_ext <<_ACEOF
11330 #line 11330 "configure"
11331 #include "confdefs.h"
11341 rm -f conftest.$ac_objext
11342 if { (eval echo "$as_me:11342: \"$ac_compile\"") >&5
11343 (eval $ac_compile) 2>&5
11345 echo "$as_me:11345: \$? = $ac_status" >&5
11346 (exit $ac_status); } &&
11347 { ac_try='test -s conftest.$ac_objext'
11348 { (eval echo "$as_me:11348: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:11351: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11355 echo "$as_me: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11359 rm -f conftest.$ac_objext conftest.$ac_ext
11360 CPPFLAGS=$cf_save_CPPFLAGS
11365 if test "$cf_have_incdir" = no ; then
11366 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11368 echo "${as_me:-configure}:11368: testing adding $cf_add_incdir to include-path ..." 1>&5
11370 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11372 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
11373 test "$cf_top_incdir" = "$cf_add_incdir" && break
11374 cf_add_incdir="$cf_top_incdir"
11385 echo "$as_me:11385: checking for $cf_ncuhdr_root header in include-path" >&5
11386 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
11387 if test "${cf_cv_ncurses_h+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
11392 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
11393 for cf_header in $cf_header_list
11396 cat >conftest.$ac_ext <<_ACEOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11400 #include <$cf_header>
11405 #ifdef NCURSES_VERSION
11407 printf("%s\n", NCURSES_VERSION);
11420 rm -f conftest.$ac_objext
11421 if { (eval echo "$as_me:11421: \"$ac_compile\"") >&5
11422 (eval $ac_compile) 2>&5
11424 echo "$as_me:11424: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try='test -s conftest.$ac_objext'
11427 { (eval echo "$as_me:11427: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:11430: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 cf_cv_ncurses_h=$cf_header
11435 echo "$as_me: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11439 rm -f conftest.$ac_objext conftest.$ac_ext
11441 test "$cf_cv_ncurses_h" != no && break
11445 echo "$as_me:11445: result: $cf_cv_ncurses_h" >&5
11446 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
11448 if test "$cf_cv_ncurses_h" != no ; then
11449 cf_cv_ncurses_header=$cf_cv_ncurses_h
11452 echo "$as_me:11452: checking for $cf_ncuhdr_root include-path" >&5
11453 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
11454 if test "${cf_cv_ncurses_h2+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 test -n "$verbose" && echo
11462 # collect the current set of include-directories from compiler flags
11463 cf_header_path_list=""
11464 if test -n "${CFLAGS}${CPPFLAGS}" ; then
11465 for cf_header_path in $CPPFLAGS $CFLAGS
11467 case $cf_header_path in #(vi
11469 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
11471 test "$cf_header_path" != "NONE" && \
11472 test -d "$cf_header_path" && \
11474 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
11475 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
11476 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
11477 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
11478 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
11479 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"
11482 cf_header_path_list="$cf_header_path_list $cf_search"
11488 # add the variations for the package we are looking for
11492 test "/usr" != "$prefix" && \
11493 test -d "/usr" && \
11494 (test $prefix = NONE || test "/usr" != "$prefix") && {
11495 test -n "$verbose" && echo " ... testing for include-directories under /usr"
11496 test -d /usr/include && cf_search="$cf_search /usr/include"
11497 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
11498 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
11499 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
11500 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11503 test "$prefix" != "NONE" && \
11504 test -d "$prefix" && \
11506 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
11507 test -d $prefix/include && cf_search="$cf_search $prefix/include"
11508 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
11509 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
11510 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
11511 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11514 test "/usr/local" != "$prefix" && \
11515 test -d "/usr/local" && \
11516 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
11517 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
11518 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
11519 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
11520 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
11521 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
11522 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11525 test "/opt" != "$prefix" && \
11526 test -d "/opt" && \
11527 (test $prefix = NONE || test "/opt" != "$prefix") && {
11528 test -n "$verbose" && echo " ... testing for include-directories under /opt"
11529 test -d /opt/include && cf_search="$cf_search /opt/include"
11530 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
11531 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
11532 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
11533 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11536 test "$HOME" != "$prefix" && \
11537 test -d "$HOME" && \
11538 (test $prefix = NONE || test "$HOME" != "$prefix") && {
11539 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
11540 test -d $HOME/include && cf_search="$cf_search $HOME/include"
11541 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
11542 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
11543 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
11544 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
11547 test "$includedir" != NONE && \
11548 test "$includedir" != "/usr/include" && \
11549 test -d "$includedir" && {
11550 test -d $includedir && cf_search="$cf_search $includedir"
11551 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
11554 test "$oldincludedir" != NONE && \
11555 test "$oldincludedir" != "/usr/include" && \
11556 test -d "$oldincludedir" && {
11557 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
11558 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
11561 cf_search="$cf_search $cf_header_path_list"
11563 test -n "$verbose" && echo search path $cf_search
11564 cf_save2_CPPFLAGS="$CPPFLAGS"
11565 for cf_incdir in $cf_search
11568 if test -n "$cf_incdir" ; then
11569 for cf_add_incdir in $cf_incdir
11571 while test $cf_add_incdir != /usr/include
11573 if test -d $cf_add_incdir
11576 if test -n "$CFLAGS$CPPFLAGS" ; then
11577 # a loop is needed to ensure we can add subdirs of existing dirs
11578 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11579 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11580 cf_have_incdir=yes; break
11585 if test "$cf_have_incdir" = no ; then
11586 if test "$cf_add_incdir" = /usr/local/include ; then
11587 if test "$GCC" = yes
11589 cf_save_CPPFLAGS=$CPPFLAGS
11590 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11591 cat >conftest.$ac_ext <<_ACEOF
11592 #line 11592 "configure"
11593 #include "confdefs.h"
11603 rm -f conftest.$ac_objext
11604 if { (eval echo "$as_me:11604: \"$ac_compile\"") >&5
11605 (eval $ac_compile) 2>&5
11607 echo "$as_me:11607: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -s conftest.$ac_objext'
11610 { (eval echo "$as_me:11610: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:11613: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11617 echo "$as_me: failed program was:" >&5
11618 cat conftest.$ac_ext >&5
11621 rm -f conftest.$ac_objext conftest.$ac_ext
11622 CPPFLAGS=$cf_save_CPPFLAGS
11627 if test "$cf_have_incdir" = no ; then
11628 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11630 echo "${as_me:-configure}:11630: testing adding $cf_add_incdir to include-path ..." 1>&5
11632 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11634 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
11635 test "$cf_top_incdir" = "$cf_add_incdir" && break
11636 cf_add_incdir="$cf_top_incdir"
11650 cat >conftest.$ac_ext <<_ACEOF
11651 #line 11651 "configure"
11652 #include "confdefs.h"
11654 #include <$cf_header>
11659 #ifdef NCURSES_VERSION
11661 printf("%s\n", NCURSES_VERSION);
11674 rm -f conftest.$ac_objext
11675 if { (eval echo "$as_me:11675: \"$ac_compile\"") >&5
11676 (eval $ac_compile) 2>&5
11678 echo "$as_me:11678: \$? = $ac_status" >&5
11679 (exit $ac_status); } &&
11680 { ac_try='test -s conftest.$ac_objext'
11681 { (eval echo "$as_me:11681: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:11684: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 cf_cv_ncurses_h2=$cf_header
11689 echo "$as_me: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11691 cf_cv_ncurses_h2=no
11693 rm -f conftest.$ac_objext conftest.$ac_ext
11695 if test "$cf_cv_ncurses_h2" != no ; then
11696 cf_cv_ncurses_h2=$cf_incdir/$cf_header
11697 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
11700 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
11702 CPPFLAGS="$cf_save2_CPPFLAGS"
11703 test "$cf_cv_ncurses_h2" != no && break
11705 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:11705: error: not found" >&5
11706 echo "$as_me: error: not found" >&2;}
11707 { (exit 1); exit 1; }; }
11710 echo "$as_me:11710: result: $cf_cv_ncurses_h2" >&5
11711 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
11713 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
11714 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
11715 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
11716 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
11719 if test -n "$cf_1st_incdir" ; then
11720 for cf_add_incdir in $cf_1st_incdir
11722 while test $cf_add_incdir != /usr/include
11724 if test -d $cf_add_incdir
11727 if test -n "$CFLAGS$CPPFLAGS" ; then
11728 # a loop is needed to ensure we can add subdirs of existing dirs
11729 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11730 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11731 cf_have_incdir=yes; break
11736 if test "$cf_have_incdir" = no ; then
11737 if test "$cf_add_incdir" = /usr/local/include ; then
11738 if test "$GCC" = yes
11740 cf_save_CPPFLAGS=$CPPFLAGS
11741 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11742 cat >conftest.$ac_ext <<_ACEOF
11743 #line 11743 "configure"
11744 #include "confdefs.h"
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:11755: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>&5
11758 echo "$as_me:11758: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:11761: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:11764: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11768 echo "$as_me: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11772 rm -f conftest.$ac_objext conftest.$ac_ext
11773 CPPFLAGS=$cf_save_CPPFLAGS
11778 if test "$cf_have_incdir" = no ; then
11779 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11781 echo "${as_me:-configure}:11781: testing adding $cf_add_incdir to include-path ..." 1>&5
11783 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11785 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
11786 test "$cf_top_incdir" = "$cf_add_incdir" && break
11787 cf_add_incdir="$cf_top_incdir"
11798 # Set definitions to allow ifdef'ing for ncurses.h
11800 case $cf_cv_ncurses_header in # (vi
11803 cat >>confdefs.h <<\EOF
11804 #define HAVE_NCURSES_H 1
11810 case $cf_cv_ncurses_header in # (vi
11811 ncurses/curses.h|ncurses/ncurses.h)
11813 cat >>confdefs.h <<\EOF
11814 #define HAVE_NCURSES_NCURSES_H 1
11818 ncursesw/curses.h|ncursesw/ncurses.h)
11820 cat >>confdefs.h <<\EOF
11821 #define HAVE_NCURSESW_NCURSES_H 1
11827 echo "$as_me:11827: checking for terminfo header" >&5
11828 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
11829 if test "${cf_cv_term_header+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 case ${cf_cv_ncurses_header} in #(vi
11834 */ncurses.h|*/ncursesw.h) #(vi
11835 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
11838 cf_term_header=term.h
11842 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
11844 cat >conftest.$ac_ext <<_ACEOF
11845 #line 11845 "configure"
11846 #include "confdefs.h"
11848 #include <${cf_cv_ncurses_header:-curses.h}>
11849 #include <$cf_test>
11854 int x = auto_left_margin
11859 rm -f conftest.$ac_objext
11860 if { (eval echo "$as_me:11860: \"$ac_compile\"") >&5
11861 (eval $ac_compile) 2>&5
11863 echo "$as_me:11863: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -s conftest.$ac_objext'
11866 { (eval echo "$as_me:11866: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11869 echo "$as_me:11869: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11872 cf_cv_term_header="$cf_test"
11874 echo "$as_me: failed program was:" >&5
11875 cat conftest.$ac_ext >&5
11877 cf_cv_term_header=unknown
11880 rm -f conftest.$ac_objext conftest.$ac_ext
11881 test "$cf_cv_term_header" != unknown && break
11885 echo "$as_me:11885: result: $cf_cv_term_header" >&5
11886 echo "${ECHO_T}$cf_cv_term_header" >&6
11888 # Set definitions to allow ifdef'ing to accommodate subdirectories
11890 case $cf_cv_term_header in # (vi
11893 cat >>confdefs.h <<\EOF
11894 #define HAVE_TERM_H 1
11900 case $cf_cv_term_header in # (vi
11901 ncurses/term.h) #(vi
11903 cat >>confdefs.h <<\EOF
11904 #define HAVE_NCURSES_TERM_H 1
11910 cat >>confdefs.h <<\EOF
11911 #define HAVE_NCURSESW_TERM_H 1
11917 # some applications need this, but should check for NCURSES_VERSION
11919 cat >>confdefs.h <<\EOF
11923 echo "$as_me:11923: checking for ncurses version" >&5
11924 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
11925 if test "${cf_cv_ncurses_version+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 cf_cv_ncurses_version=no
11932 if test "$cross_compiling" = yes; then
11934 # This will not work if the preprocessor splits the line after the
11935 # Autoconf token. The 'unproto' program does that.
11936 cat > conftest.$ac_ext <<EOF
11937 #include <${cf_cv_ncurses_header:-curses.h}>
11939 #ifdef NCURSES_VERSION
11940 Autoconf NCURSES_VERSION
11948 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
11949 { (eval echo "$as_me:11949: \"$cf_try\"") >&5
11950 (eval $cf_try) 2>&5
11952 echo "$as_me:11952: \$? = $ac_status" >&5
11953 (exit $ac_status); }
11954 if test -f conftest.out ; then
11955 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
11956 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
11961 cat >conftest.$ac_ext <<_ACEOF
11962 #line 11962 "configure"
11963 #include "confdefs.h"
11965 #include <${cf_cv_ncurses_header:-curses.h}>
11969 FILE *fp = fopen("$cf_tempfile", "w");
11970 #ifdef NCURSES_VERSION
11971 # ifdef NCURSES_VERSION_PATCH
11972 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
11974 fprintf(fp, "%s\n", NCURSES_VERSION);
11977 # ifdef __NCURSES_H
11978 fprintf(fp, "old\n");
11983 ${cf_cv_main_return:-return}(0);
11986 rm -f conftest$ac_exeext
11987 if { (eval echo "$as_me:11987: \"$ac_link\"") >&5
11988 (eval $ac_link) 2>&5
11990 echo "$as_me:11990: \$? = $ac_status" >&5
11991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11992 { (eval echo "$as_me:11992: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11995 echo "$as_me:11995: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11998 cf_cv_ncurses_version=`cat $cf_tempfile`
12000 echo "$as_me: program exited with status $ac_status" >&5
12001 echo "$as_me: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12004 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12009 echo "$as_me:12009: result: $cf_cv_ncurses_version" >&5
12010 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
12011 test "$cf_cv_ncurses_version" = no ||
12012 cat >>confdefs.h <<\EOF
12016 cf_nculib_root=$use_ncurses
12017 # This works, except for the special case where we find gpm, but
12018 # ncurses is in a nonstandard location via $LIBS, and we really want
12021 cf_ncurses_SAVE="$LIBS"
12022 echo "$as_me:12022: checking for Gpm_Open in -lgpm" >&5
12023 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
12024 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 ac_check_lib_save_LIBS=$LIBS
12029 cat >conftest.$ac_ext <<_ACEOF
12030 #line 12030 "configure"
12031 #include "confdefs.h"
12033 /* Override any gcc2 internal prototype to avoid an error. */
12037 /* We use char because int might match the return type of a gcc2
12038 builtin and then its argument prototype would still apply. */
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (eval echo "$as_me:12049: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>&5
12052 echo "$as_me:12052: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (eval echo "$as_me:12055: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12058 echo "$as_me:12058: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_lib_gpm_Gpm_Open=yes
12062 echo "$as_me: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12064 ac_cv_lib_gpm_Gpm_Open=no
12066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12067 LIBS=$ac_check_lib_save_LIBS
12069 echo "$as_me:12069: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12070 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
12071 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
12072 echo "$as_me:12072: checking for initscr in -lgpm" >&5
12073 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
12074 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 ac_check_lib_save_LIBS=$LIBS
12079 cat >conftest.$ac_ext <<_ACEOF
12080 #line 12080 "configure"
12081 #include "confdefs.h"
12083 /* Override any gcc2 internal prototype to avoid an error. */
12087 /* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (eval echo "$as_me:12099: \"$ac_link\"") >&5
12100 (eval $ac_link) 2>&5
12102 echo "$as_me:12102: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -s conftest$ac_exeext'
12105 { (eval echo "$as_me:12105: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:12108: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 ac_cv_lib_gpm_initscr=yes
12112 echo "$as_me: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12114 ac_cv_lib_gpm_initscr=no
12116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12119 echo "$as_me:12119: result: $ac_cv_lib_gpm_initscr" >&5
12120 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
12121 if test $ac_cv_lib_gpm_initscr = yes; then
12122 LIBS="$cf_ncurses_SAVE"
12124 cf_ncurses_LIBS="-lgpm"
12129 case $host_os in #(vi
12131 # This is only necessary if you are linking against an obsolete
12132 # version of ncurses (but it should do no harm, since it's static).
12133 if test "$cf_nculib_root" = ncurses ; then
12134 echo "$as_me:12134: checking for tgoto in -lmytinfo" >&5
12135 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
12136 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 ac_check_lib_save_LIBS=$LIBS
12140 LIBS="-lmytinfo $LIBS"
12141 cat >conftest.$ac_ext <<_ACEOF
12142 #line 12142 "configure"
12143 #include "confdefs.h"
12145 /* Override any gcc2 internal prototype to avoid an error. */
12149 /* We use char because int might match the return type of a gcc2
12150 builtin and then its argument prototype would still apply. */
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (eval echo "$as_me:12161: \"$ac_link\"") >&5
12162 (eval $ac_link) 2>&5
12164 echo "$as_me:12164: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -s conftest$ac_exeext'
12167 { (eval echo "$as_me:12167: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:12170: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 ac_cv_lib_mytinfo_tgoto=yes
12174 echo "$as_me: failed program was:" >&5
12175 cat conftest.$ac_ext >&5
12176 ac_cv_lib_mytinfo_tgoto=no
12178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 echo "$as_me:12181: result: $ac_cv_lib_mytinfo_tgoto" >&5
12182 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
12183 if test $ac_cv_lib_mytinfo_tgoto = yes; then
12184 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
12191 LIBS="$cf_ncurses_LIBS $LIBS"
12193 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
12195 LIBS="-l$cf_nculib_root $LIBS"
12198 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
12200 echo "$as_me:12200: checking for initscr" >&5
12201 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
12202 if test "${ac_cv_func_initscr+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 cat >conftest.$ac_ext <<_ACEOF
12206 #line 12206 "configure"
12207 #include "confdefs.h"
12208 /* System header to define __stub macros and hopefully few prototypes,
12209 which can conflict with char initscr (); below. */
12210 #include <assert.h>
12211 /* Override any gcc2 internal prototype to avoid an error. */
12215 /* We use char because int might match the return type of a gcc2
12216 builtin and then its argument prototype would still apply. */
12223 /* The GNU C library defines this for functions which it implements
12224 to always fail with ENOSYS. Some functions are actually named
12225 something starting with __ and the normal name is an alias. */
12226 #if defined (__stub_initscr) || defined (__stub___initscr)
12229 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (eval echo "$as_me:12237: \"$ac_link\"") >&5
12238 (eval $ac_link) 2>&5
12240 echo "$as_me:12240: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:12243: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:12246: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_cv_func_initscr=yes
12250 echo "$as_me: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12252 ac_cv_func_initscr=no
12254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12256 echo "$as_me:12256: result: $ac_cv_func_initscr" >&5
12257 echo "${ECHO_T}$ac_cv_func_initscr" >&6
12258 if test $ac_cv_func_initscr = yes; then
12259 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
12262 cf_save_LIBS="$LIBS"
12263 echo "$as_me:12263: checking for initscr in -l$cf_nculib_root" >&5
12264 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
12265 LIBS="-l$cf_nculib_root $LIBS"
12266 cat >conftest.$ac_ext <<_ACEOF
12267 #line 12267 "configure"
12268 #include "confdefs.h"
12269 #include <${cf_cv_ncurses_header:-curses.h}>
12278 rm -f conftest.$ac_objext conftest$ac_exeext
12279 if { (eval echo "$as_me:12279: \"$ac_link\"") >&5
12280 (eval $ac_link) 2>&5
12282 echo "$as_me:12282: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -s conftest$ac_exeext'
12285 { (eval echo "$as_me:12285: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:12288: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 echo "$as_me:12290: result: yes" >&5
12291 echo "${ECHO_T}yes" >&6
12292 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
12295 echo "$as_me: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 echo "$as_me:12297: result: no" >&5
12298 echo "${ECHO_T}no" >&6
12301 cf_library_path_list=""
12302 if test -n "${LDFLAGS}${LIBS}" ; then
12303 for cf_library_path in $LDFLAGS $LIBS
12305 case $cf_library_path in #(vi
12307 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12309 test "$cf_library_path" != "NONE" && \
12310 test -d "$cf_library_path" && \
12312 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12313 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
12314 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
12315 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
12316 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
12317 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"
12320 cf_library_path_list="$cf_library_path_list $cf_search"
12328 test "/usr" != "$prefix" && \
12329 test -d "/usr" && \
12330 (test $prefix = NONE || test "/usr" != "$prefix") && {
12331 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
12332 test -d /usr/lib && cf_search="$cf_search /usr/lib"
12333 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
12334 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
12335 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
12336 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
12339 test "$prefix" != "NONE" && \
12340 test -d "$prefix" && \
12342 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12343 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
12344 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
12345 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
12346 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
12347 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
12350 test "/usr/local" != "$prefix" && \
12351 test -d "/usr/local" && \
12352 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
12353 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
12354 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
12355 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
12356 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
12357 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
12358 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
12361 test "/opt" != "$prefix" && \
12362 test -d "/opt" && \
12363 (test $prefix = NONE || test "/opt" != "$prefix") && {
12364 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
12365 test -d /opt/lib && cf_search="$cf_search /opt/lib"
12366 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
12367 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
12368 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
12369 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
12372 test "$HOME" != "$prefix" && \
12373 test -d "$HOME" && \
12374 (test $prefix = NONE || test "$HOME" != "$prefix") && {
12375 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
12376 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
12377 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
12378 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
12379 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
12380 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
12383 cf_search="$cf_library_path_list $cf_search"
12385 for cf_libdir in $cf_search
12387 echo "$as_me:12387: checking for -l$cf_nculib_root in $cf_libdir" >&5
12388 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
12389 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
12390 cat >conftest.$ac_ext <<_ACEOF
12391 #line 12391 "configure"
12392 #include "confdefs.h"
12393 #include <${cf_cv_ncurses_header:-curses.h}>
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:12403: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>&5
12406 echo "$as_me:12406: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -s conftest$ac_exeext'
12409 { (eval echo "$as_me:12409: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:12412: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 echo "$as_me:12414: result: yes" >&5
12415 echo "${ECHO_T}yes" >&6
12416 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
12419 echo "$as_me: failed program was:" >&5
12420 cat conftest.$ac_ext >&5
12421 echo "$as_me:12421: result: no" >&5
12422 echo "${ECHO_T}no" >&6
12423 LIBS="$cf_save_LIBS"
12425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12433 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
12435 if test $cf_found_library = no ; then
12436 { { echo "$as_me:12436: error: Cannot link $cf_nculib_root library" >&5
12437 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
12438 { (exit 1); exit 1; }; }
12443 if test -n "$cf_ncurses_LIBS" ; then
12444 echo "$as_me:12444: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
12445 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
12446 cf_ncurses_SAVE="$LIBS"
12447 for p in $cf_ncurses_LIBS ; do
12448 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
12449 if test "$q" != "$LIBS" ; then
12453 cat >conftest.$ac_ext <<_ACEOF
12454 #line 12454 "configure"
12455 #include "confdefs.h"
12456 #include <${cf_cv_ncurses_header:-curses.h}>
12460 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (eval echo "$as_me:12466: \"$ac_link\"") >&5
12467 (eval $ac_link) 2>&5
12469 echo "$as_me:12469: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -s conftest$ac_exeext'
12472 { (eval echo "$as_me:12472: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:12475: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 echo "$as_me:12477: result: yes" >&5
12478 echo "${ECHO_T}yes" >&6
12480 echo "$as_me: failed program was:" >&5
12481 cat conftest.$ac_ext >&5
12482 echo "$as_me:12482: result: no" >&5
12483 echo "${ECHO_T}no" >&6
12484 LIBS="$cf_ncurses_SAVE"
12486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12489 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12491 cat >>confdefs.h <<EOF
12492 #define $cf_nculib_ROOT 1
12500 echo "$as_me:12500: checking for extra include directories" >&5
12501 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
12502 if test "${cf_cv_curses_incdir+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 cf_cv_curses_incdir=no
12507 case $host_os in #(vi
12509 if test "x$cf_cv_screen" = "xcurses_colr"
12511 test -d /usr/include/curses_colr && \
12512 cf_cv_curses_incdir="-I/usr/include/curses_colr"
12516 if test "x$cf_cv_screen" = "xcurses_5lib"
12518 test -d /usr/5lib && \
12519 test -d /usr/5include && \
12520 cf_cv_curses_incdir="-I/usr/5include"
12526 echo "$as_me:12526: result: $cf_cv_curses_incdir" >&5
12527 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
12528 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
12530 echo "$as_me:12530: checking if we have identified curses headers" >&5
12531 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
12532 if test "${cf_cv_ncurses_header+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 cf_cv_ncurses_header=none
12539 curses.h ncurses/ncurses.h ncurses/curses.h
12541 cat >conftest.$ac_ext <<_ACEOF
12542 #line 12542 "configure"
12543 #include "confdefs.h"
12544 #include <${cf_header}>
12548 initscr(); tgoto("?", 0,0)
12553 rm -f conftest.$ac_objext
12554 if { (eval echo "$as_me:12554: \"$ac_compile\"") >&5
12555 (eval $ac_compile) 2>&5
12557 echo "$as_me:12557: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -s conftest.$ac_objext'
12560 { (eval echo "$as_me:12560: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:12563: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 cf_cv_ncurses_header=$cf_header; break
12567 echo "$as_me: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12570 rm -f conftest.$ac_objext conftest.$ac_ext
12574 echo "$as_me:12574: result: $cf_cv_ncurses_header" >&5
12575 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
12577 if test "$cf_cv_ncurses_header" = none ; then
12578 { { echo "$as_me:12578: error: No curses header-files found" >&5
12579 echo "$as_me: error: No curses header-files found" >&2;}
12580 { (exit 1); exit 1; }; }
12583 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
12585 for ac_header in $cf_cv_ncurses_header
12587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12588 echo "$as_me:12588: checking for $ac_header" >&5
12589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 cat >conftest.$ac_ext <<_ACEOF
12594 #line 12594 "configure"
12595 #include "confdefs.h"
12596 #include <$ac_header>
12598 if { (eval echo "$as_me:12598: \"$ac_cpp conftest.$ac_ext\"") >&5
12599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12601 egrep -v '^ *\+' conftest.er1 >conftest.err
12603 cat conftest.err >&5
12604 echo "$as_me:12604: \$? = $ac_status" >&5
12605 (exit $ac_status); } >/dev/null; then
12606 if test -s conftest.err; then
12607 ac_cpp_err=$ac_c_preproc_warn_flag
12614 if test -z "$ac_cpp_err"; then
12615 eval "$as_ac_Header=yes"
12617 echo "$as_me: failed program was:" >&5
12618 cat conftest.$ac_ext >&5
12619 eval "$as_ac_Header=no"
12621 rm -f conftest.err conftest.$ac_ext
12623 echo "$as_me:12623: result: `eval echo '${'$as_ac_Header'}'`" >&5
12624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12626 cat >>confdefs.h <<EOF
12627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12633 echo "$as_me:12633: checking for terminfo header" >&5
12634 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
12635 if test "${cf_cv_term_header+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 case ${cf_cv_ncurses_header} in #(vi
12640 */ncurses.h|*/ncursesw.h) #(vi
12641 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
12644 cf_term_header=term.h
12648 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
12650 cat >conftest.$ac_ext <<_ACEOF
12651 #line 12651 "configure"
12652 #include "confdefs.h"
12654 #include <${cf_cv_ncurses_header:-curses.h}>
12655 #include <$cf_test>
12660 int x = auto_left_margin
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:12666: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>&5
12669 echo "$as_me:12669: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:12672: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12675 echo "$as_me:12675: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12678 cf_cv_term_header="$cf_test"
12680 echo "$as_me: failed program was:" >&5
12681 cat conftest.$ac_ext >&5
12683 cf_cv_term_header=unknown
12686 rm -f conftest.$ac_objext conftest.$ac_ext
12687 test "$cf_cv_term_header" != unknown && break
12691 echo "$as_me:12691: result: $cf_cv_term_header" >&5
12692 echo "${ECHO_T}$cf_cv_term_header" >&6
12694 # Set definitions to allow ifdef'ing to accommodate subdirectories
12696 case $cf_cv_term_header in # (vi
12699 cat >>confdefs.h <<\EOF
12700 #define HAVE_TERM_H 1
12706 case $cf_cv_term_header in # (vi
12707 ncurses/term.h) #(vi
12709 cat >>confdefs.h <<\EOF
12710 #define HAVE_NCURSES_TERM_H 1
12716 cat >>confdefs.h <<\EOF
12717 #define HAVE_NCURSESW_TERM_H 1
12723 echo "$as_me:12723: checking for ncurses version" >&5
12724 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
12725 if test "${cf_cv_ncurses_version+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 cf_cv_ncurses_version=no
12732 if test "$cross_compiling" = yes; then
12734 # This will not work if the preprocessor splits the line after the
12735 # Autoconf token. The 'unproto' program does that.
12736 cat > conftest.$ac_ext <<EOF
12737 #include <${cf_cv_ncurses_header:-curses.h}>
12739 #ifdef NCURSES_VERSION
12740 Autoconf NCURSES_VERSION
12748 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
12749 { (eval echo "$as_me:12749: \"$cf_try\"") >&5
12750 (eval $cf_try) 2>&5
12752 echo "$as_me:12752: \$? = $ac_status" >&5
12753 (exit $ac_status); }
12754 if test -f conftest.out ; then
12755 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
12756 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
12761 cat >conftest.$ac_ext <<_ACEOF
12762 #line 12762 "configure"
12763 #include "confdefs.h"
12765 #include <${cf_cv_ncurses_header:-curses.h}>
12769 FILE *fp = fopen("$cf_tempfile", "w");
12770 #ifdef NCURSES_VERSION
12771 # ifdef NCURSES_VERSION_PATCH
12772 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
12774 fprintf(fp, "%s\n", NCURSES_VERSION);
12777 # ifdef __NCURSES_H
12778 fprintf(fp, "old\n");
12783 ${cf_cv_main_return:-return}(0);
12786 rm -f conftest$ac_exeext
12787 if { (eval echo "$as_me:12787: \"$ac_link\"") >&5
12788 (eval $ac_link) 2>&5
12790 echo "$as_me:12790: \$? = $ac_status" >&5
12791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12792 { (eval echo "$as_me:12792: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12795 echo "$as_me:12795: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12798 cf_cv_ncurses_version=`cat $cf_tempfile`
12800 echo "$as_me: program exited with status $ac_status" >&5
12801 echo "$as_me: failed program was:" >&5
12802 cat conftest.$ac_ext >&5
12804 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12809 echo "$as_me:12809: result: $cf_cv_ncurses_version" >&5
12810 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
12811 test "$cf_cv_ncurses_version" = no ||
12812 cat >>confdefs.h <<\EOF
12816 echo "$as_me:12816: checking if we have identified curses libraries" >&5
12817 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
12818 cat >conftest.$ac_ext <<_ACEOF
12819 #line 12819 "configure"
12820 #include "confdefs.h"
12821 #include <${cf_cv_ncurses_header:-curses.h}>
12825 initscr(); tgoto("?", 0,0)
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (eval echo "$as_me:12831: \"$ac_link\"") >&5
12832 (eval $ac_link) 2>&5
12834 echo "$as_me:12834: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -s conftest$ac_exeext'
12837 { (eval echo "$as_me:12837: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12840 echo "$as_me:12840: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12844 echo "$as_me: failed program was:" >&5
12845 cat conftest.$ac_ext >&5
12848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12849 echo "$as_me:12849: result: $cf_result" >&5
12850 echo "${ECHO_T}$cf_result" >&6
12852 if test "$cf_result" = no ; then
12853 case $host_os in #(vi
12855 echo "$as_me:12855: checking for tgoto in -lmytinfo" >&5
12856 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
12857 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-lmytinfo $LIBS"
12862 cat >conftest.$ac_ext <<_ACEOF
12863 #line 12863 "configure"
12864 #include "confdefs.h"
12866 /* Override any gcc2 internal prototype to avoid an error. */
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (eval echo "$as_me:12882: \"$ac_link\"") >&5
12883 (eval $ac_link) 2>&5
12885 echo "$as_me:12885: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -s conftest$ac_exeext'
12888 { (eval echo "$as_me:12888: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:12891: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 ac_cv_lib_mytinfo_tgoto=yes
12895 echo "$as_me: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 ac_cv_lib_mytinfo_tgoto=no
12899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12900 LIBS=$ac_check_lib_save_LIBS
12902 echo "$as_me:12902: result: $ac_cv_lib_mytinfo_tgoto" >&5
12903 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
12904 if test $ac_cv_lib_mytinfo_tgoto = yes; then
12905 LIBS="-lmytinfo $LIBS"
12910 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
12911 # next (1998), and xcurses "newer" (2000). There is no header file for
12912 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
12913 # term.h) for cur_colr
12914 if test "x$cf_cv_screen" = "xcurses_colr"
12916 echo "$as_me:12916: checking for initscr in -lcur_colr" >&5
12917 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
12918 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-lcur_colr $LIBS"
12923 cat >conftest.$ac_ext <<_ACEOF
12924 #line 12924 "configure"
12925 #include "confdefs.h"
12927 /* Override any gcc2 internal prototype to avoid an error. */
12931 /* We use char because int might match the return type of a gcc2
12932 builtin and then its argument prototype would still apply. */
12942 rm -f conftest.$ac_objext conftest$ac_exeext
12943 if { (eval echo "$as_me:12943: \"$ac_link\"") >&5
12944 (eval $ac_link) 2>&5
12946 echo "$as_me:12946: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try='test -s conftest$ac_exeext'
12949 { (eval echo "$as_me:12949: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12952 echo "$as_me:12952: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_cv_lib_cur_colr_initscr=yes
12956 echo "$as_me: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12958 ac_cv_lib_cur_colr_initscr=no
12960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12961 LIBS=$ac_check_lib_save_LIBS
12963 echo "$as_me:12963: result: $ac_cv_lib_cur_colr_initscr" >&5
12964 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
12965 if test $ac_cv_lib_cur_colr_initscr = yes; then
12967 LIBS="-lcur_colr $LIBS"
12968 ac_cv_func_initscr=yes
12972 echo "$as_me:12972: checking for initscr in -lHcurses" >&5
12973 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
12974 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 ac_check_lib_save_LIBS=$LIBS
12978 LIBS="-lHcurses $LIBS"
12979 cat >conftest.$ac_ext <<_ACEOF
12980 #line 12980 "configure"
12981 #include "confdefs.h"
12983 /* Override any gcc2 internal prototype to avoid an error. */
12987 /* We use char because int might match the return type of a gcc2
12988 builtin and then its argument prototype would still apply. */
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:12999: \"$ac_link\"") >&5
13000 (eval $ac_link) 2>&5
13002 echo "$as_me:13002: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -s conftest$ac_exeext'
13005 { (eval echo "$as_me:13005: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13008 echo "$as_me:13008: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_cv_lib_Hcurses_initscr=yes
13012 echo "$as_me: failed program was:" >&5
13013 cat conftest.$ac_ext >&5
13014 ac_cv_lib_Hcurses_initscr=no
13016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13017 LIBS=$ac_check_lib_save_LIBS
13019 echo "$as_me:13019: result: $ac_cv_lib_Hcurses_initscr" >&5
13020 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
13021 if test $ac_cv_lib_Hcurses_initscr = yes; then
13023 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
13024 LIBS="-lHcurses $LIBS"
13025 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
13026 ac_cv_func_initscr=yes
13035 case `arch 2>/dev/null` in
13040 if test -n "/lib64" ; then
13041 for cf_add_libdir in /lib64
13043 if test $cf_add_libdir = /usr/lib ; then
13045 elif test -d $cf_add_libdir
13048 if test -n "$LDFLAGS$LIBS" ; then
13049 # a loop is needed to ensure we can add subdirs of existing dirs
13050 for cf_test_libdir in $LDFLAGS $LIBS ; do
13051 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13052 cf_have_libdir=yes; break
13056 if test "$cf_have_libdir" = no ; then
13057 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13059 echo "${as_me:-configure}:13059: testing adding $cf_add_libdir to library-path ..." 1>&5
13061 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13069 if test -n "/lib" ; then
13070 for cf_add_libdir in /lib
13072 if test $cf_add_libdir = /usr/lib ; then
13074 elif test -d $cf_add_libdir
13077 if test -n "$LDFLAGS$LIBS" ; then
13078 # a loop is needed to ensure we can add subdirs of existing dirs
13079 for cf_test_libdir in $LDFLAGS $LIBS ; do
13080 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13081 cf_have_libdir=yes; break
13085 if test "$cf_have_libdir" = no ; then
13086 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13088 echo "${as_me:-configure}:13088: testing adding $cf_add_libdir to library-path ..." 1>&5
13090 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13100 if test -n "/lib" ; then
13101 for cf_add_libdir in /lib
13103 if test $cf_add_libdir = /usr/lib ; then
13105 elif test -d $cf_add_libdir
13108 if test -n "$LDFLAGS$LIBS" ; then
13109 # a loop is needed to ensure we can add subdirs of existing dirs
13110 for cf_test_libdir in $LDFLAGS $LIBS ; do
13111 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13112 cf_have_libdir=yes; break
13116 if test "$cf_have_libdir" = no ; then
13117 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13119 echo "${as_me:-configure}:13119: testing adding $cf_add_libdir to library-path ..." 1>&5
13121 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13131 if test "x$cf_cv_screen" = "xcurses_5lib"
13133 if test -d /usr/5lib ; then
13135 if test -n "/usr/5lib" ; then
13136 for cf_add_libdir in /usr/5lib
13138 if test $cf_add_libdir = /usr/lib ; then
13140 elif test -d $cf_add_libdir
13143 if test -n "$LDFLAGS$LIBS" ; then
13144 # a loop is needed to ensure we can add subdirs of existing dirs
13145 for cf_test_libdir in $LDFLAGS $LIBS ; do
13146 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13147 cf_have_libdir=yes; break
13151 if test "$cf_have_libdir" = no ; then
13152 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13154 echo "${as_me:-configure}:13154: testing adding $cf_add_libdir to library-path ..." 1>&5
13156 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13162 LIBS="-lcurses -ltermcap $LIBS"
13165 ac_cv_func_initscr=yes
13169 if test ".$ac_cv_func_initscr" != .yes ; then
13170 cf_save_LIBS="$LIBS"
13172 if test ".${cf_cv_ncurses_version:-no}" != .no
13174 cf_check_list="ncurses curses cursesX"
13176 cf_check_list="cursesX curses ncurses"
13179 # Check for library containing tgoto. Do this before curses library
13180 # because it may be needed to link the test-case for initscr.
13181 if test "x$cf_term_lib" = x
13183 echo "$as_me:13183: checking for tgoto" >&5
13184 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
13185 if test "${ac_cv_func_tgoto+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 /* System header to define __stub macros and hopefully few prototypes,
13192 which can conflict with char tgoto (); below. */
13193 #include <assert.h>
13194 /* Override any gcc2 internal prototype to avoid an error. */
13198 /* We use char because int might match the return type of a gcc2
13199 builtin and then its argument prototype would still apply. */
13206 /* The GNU C library defines this for functions which it implements
13207 to always fail with ENOSYS. Some functions are actually named
13208 something starting with __ and the normal name is an alias. */
13209 #if defined (__stub_tgoto) || defined (__stub___tgoto)
13212 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (eval echo "$as_me:13220: \"$ac_link\"") >&5
13221 (eval $ac_link) 2>&5
13223 echo "$as_me:13223: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -s conftest$ac_exeext'
13226 { (eval echo "$as_me:13226: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13229 echo "$as_me:13229: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_cv_func_tgoto=yes
13233 echo "$as_me: failed program was:" >&5
13234 cat conftest.$ac_ext >&5
13235 ac_cv_func_tgoto=no
13237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13239 echo "$as_me:13239: result: $ac_cv_func_tgoto" >&5
13240 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
13241 if test $ac_cv_func_tgoto = yes; then
13242 cf_term_lib=predefined
13245 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
13247 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
13248 echo "$as_me:13248: checking for tgoto in -l$cf_term_lib" >&5
13249 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
13250 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 ac_check_lib_save_LIBS=$LIBS
13254 LIBS="-l$cf_term_lib $LIBS"
13255 cat >conftest.$ac_ext <<_ACEOF
13256 #line 13256 "configure"
13257 #include "confdefs.h"
13259 /* Override any gcc2 internal prototype to avoid an error. */
13263 /* We use char because int might match the return type of a gcc2
13264 builtin and then its argument prototype would still apply. */
13274 rm -f conftest.$ac_objext conftest$ac_exeext
13275 if { (eval echo "$as_me:13275: \"$ac_link\"") >&5
13276 (eval $ac_link) 2>&5
13278 echo "$as_me:13278: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -s conftest$ac_exeext'
13281 { (eval echo "$as_me:13281: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13284 echo "$as_me:13284: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 eval "$as_ac_Lib=yes"
13288 echo "$as_me: failed program was:" >&5
13289 cat conftest.$ac_ext >&5
13290 eval "$as_ac_Lib=no"
13292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13293 LIBS=$ac_check_lib_save_LIBS
13295 echo "$as_me:13295: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13296 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13297 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13307 # Check for library containing initscr
13308 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
13309 if test "x$cf_curs_lib" = x
13311 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
13313 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
13314 echo "$as_me:13314: checking for initscr in -l$cf_curs_lib" >&5
13315 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
13316 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 ac_check_lib_save_LIBS=$LIBS
13320 LIBS="-l$cf_curs_lib $LIBS"
13321 cat >conftest.$ac_ext <<_ACEOF
13322 #line 13322 "configure"
13323 #include "confdefs.h"
13325 /* Override any gcc2 internal prototype to avoid an error. */
13329 /* We use char because int might match the return type of a gcc2
13330 builtin and then its argument prototype would still apply. */
13340 rm -f conftest.$ac_objext conftest$ac_exeext
13341 if { (eval echo "$as_me:13341: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>&5
13344 echo "$as_me:13344: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -s conftest$ac_exeext'
13347 { (eval echo "$as_me:13347: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13350 echo "$as_me:13350: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 eval "$as_ac_Lib=yes"
13354 echo "$as_me: failed program was:" >&5
13355 cat conftest.$ac_ext >&5
13356 eval "$as_ac_Lib=no"
13358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13359 LIBS=$ac_check_lib_save_LIBS
13361 echo "$as_me:13361: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13362 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13363 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13369 test $cf_curs_lib = unknown && { { echo "$as_me:13369: error: no curses library found" >&5
13370 echo "$as_me: error: no curses library found" >&2;}
13371 { (exit 1); exit 1; }; }
13373 LIBS="-l$cf_curs_lib $cf_save_LIBS"
13374 if test "$cf_term_lib" = unknown ; then
13375 echo "$as_me:13375: checking if we can link with $cf_curs_lib library" >&5
13376 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
13377 cat >conftest.$ac_ext <<_ACEOF
13378 #line 13378 "configure"
13379 #include "confdefs.h"
13380 #include <${cf_cv_ncurses_header:-curses.h}>
13389 rm -f conftest.$ac_objext conftest$ac_exeext
13390 if { (eval echo "$as_me:13390: \"$ac_link\"") >&5
13391 (eval $ac_link) 2>&5
13393 echo "$as_me:13393: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -s conftest$ac_exeext'
13396 { (eval echo "$as_me:13396: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:13399: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13403 echo "$as_me: failed program was:" >&5
13404 cat conftest.$ac_ext >&5
13407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13408 echo "$as_me:13408: result: $cf_result" >&5
13409 echo "${ECHO_T}$cf_result" >&6
13410 test $cf_result = no && { { echo "$as_me:13410: error: Cannot link curses library" >&5
13411 echo "$as_me: error: Cannot link curses library" >&2;}
13412 { (exit 1); exit 1; }; }
13413 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
13415 elif test "$cf_term_lib" != predefined ; then
13416 echo "$as_me:13416: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
13417 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
13418 cat >conftest.$ac_ext <<_ACEOF
13419 #line 13419 "configure"
13420 #include "confdefs.h"
13421 #include <${cf_cv_ncurses_header:-curses.h}>
13425 initscr(); tgoto((char *)0, 0, 0);
13430 rm -f conftest.$ac_objext conftest$ac_exeext
13431 if { (eval echo "$as_me:13431: \"$ac_link\"") >&5
13432 (eval $ac_link) 2>&5
13434 echo "$as_me:13434: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (eval echo "$as_me:13437: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:13440: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13444 echo "$as_me: failed program was:" >&5
13445 cat conftest.$ac_ext >&5
13447 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
13448 cat >conftest.$ac_ext <<_ACEOF
13449 #line 13449 "configure"
13450 #include "confdefs.h"
13451 #include <${cf_cv_ncurses_header:-curses.h}>
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (eval echo "$as_me:13461: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>&5
13464 echo "$as_me:13464: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -s conftest$ac_exeext'
13467 { (eval echo "$as_me:13467: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:13470: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13474 echo "$as_me: failed program was:" >&5
13475 cat conftest.$ac_ext >&5
13478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13482 echo "$as_me:13482: result: $cf_result" >&5
13483 echo "${ECHO_T}$cf_result" >&6
13492 echo "$as_me:13492: checking if you want extra dialogs" >&5
13493 echo $ECHO_N "checking if you want extra dialogs... $ECHO_C" >&6
13495 # Check whether --enable-extras or --disable-extras was given.
13496 if test "${enable_extras+set}" = set; then
13497 enableval="$enable_extras"
13502 echo "$as_me:13502: result: $enableval" >&5
13503 echo "${ECHO_T}$enableval" >&6
13504 if test "$enableval" != no ; then
13510 echo "$as_me:13510: checking if you want config-file support" >&5
13511 echo $ECHO_N "checking if you want config-file support... $ECHO_C" >&6
13513 # Check whether --enable-rc-file or --disable-rc-file was given.
13514 if test "${enable_rc_file+set}" = set; then
13515 enableval="$enable_rc_file"
13518 enableval=$cf_all_widgets
13520 echo "$as_me:13520: result: $enableval" >&5
13521 echo "${ECHO_T}$enableval" >&6
13522 if test "$enableval" != no ; then
13523 EXTRAOBJS="$EXTRAOBJS rc\$o"
13525 cat >>confdefs.h <<\EOF
13526 #define HAVE_RC_FILE 1
13533 echo "$as_me:13533: checking if you want Xdialog-style dialogs" >&5
13534 echo $ECHO_N "checking if you want Xdialog-style dialogs... $ECHO_C" >&6
13536 # Check whether --enable-Xdialog or --disable-Xdialog was given.
13537 if test "${enable_Xdialog+set}" = set; then
13538 enableval="$enable_Xdialog"
13541 enableval=$cf_all_widgets
13543 echo "$as_me:13543: result: $enableval" >&5
13544 echo "${ECHO_T}$enableval" >&6
13545 if test "$enableval" != no ; then
13546 EXTRAOBJS="$EXTRAOBJS calendar\$o fselect\$o timebox\$o"
13548 cat >>confdefs.h <<\EOF
13549 #define HAVE_XDIALOG 1
13556 echo "$as_me:13556: checking if you want extra Xdialog-style dialogs (1.2)" >&5
13557 echo $ECHO_N "checking if you want extra Xdialog-style dialogs (1.2)... $ECHO_C" >&6
13559 # Check whether --enable-Xdialog2 or --disable-Xdialog2 was given.
13560 if test "${enable_Xdialog2+set}" = set; then
13561 enableval="$enable_Xdialog2"
13564 enableval=$cf_all_widgets
13566 echo "$as_me:13566: result: $enableval" >&5
13567 echo "${ECHO_T}$enableval" >&6
13568 if test "$enableval" != no ; then
13569 EXTRAOBJS="$EXTRAOBJS buildlist\$o rangebox\$o treeview\$o"
13571 cat >>confdefs.h <<\EOF
13572 #define HAVE_XDIALOG2 1
13579 echo "$as_me:13579: checking if you want compatibility with whiptail options" >&5
13580 echo $ECHO_N "checking if you want compatibility with whiptail options... $ECHO_C" >&6
13582 # Check whether --enable-whiptail or --disable-whiptail was given.
13583 if test "${enable_whiptail+set}" = set; then
13584 enableval="$enable_whiptail"
13587 enableval=$cf_all_widgets
13589 echo "$as_me:13589: result: $enableval" >&5
13590 echo "${ECHO_T}$enableval" >&6
13591 if test "$enableval" != no ; then
13593 cat >>confdefs.h <<\EOF
13594 #define HAVE_WHIPTAIL 1
13601 echo "$as_me:13601: checking if you want the form dialog" >&5
13602 echo $ECHO_N "checking if you want the form dialog... $ECHO_C" >&6
13604 # Check whether --enable-form or --disable-form was given.
13605 if test "${enable_form+set}" = set; then
13606 enableval="$enable_form"
13609 enableval=$cf_all_widgets
13611 echo "$as_me:13611: result: $enableval" >&5
13612 echo "${ECHO_T}$enableval" >&6
13613 if test "$enableval" != no ; then
13614 EXTRAOBJS="$EXTRAOBJS formbox\$o"
13616 cat >>confdefs.h <<\EOF
13617 #define HAVE_DLG_FORMBOX 1
13624 echo "$as_me:13624: checking if you want the gauge dialog" >&5
13625 echo $ECHO_N "checking if you want the gauge dialog... $ECHO_C" >&6
13627 # Check whether --enable-gauge or --disable-gauge was given.
13628 if test "${enable_gauge+set}" = set; then
13629 enableval="$enable_gauge"
13632 enableval=$cf_all_widgets
13634 echo "$as_me:13634: result: $enableval" >&5
13635 echo "${ECHO_T}$enableval" >&6
13636 if test "$enableval" != no ; then
13637 EXTRAOBJS="$EXTRAOBJS guage\$o pause\$o prgbox\$o progressbox\$o"
13639 cat >>confdefs.h <<\EOF
13640 #define HAVE_DLG_GAUGE 1
13647 echo "$as_me:13647: checking if you want the tailbox dialog" >&5
13648 echo $ECHO_N "checking if you want the tailbox dialog... $ECHO_C" >&6
13650 # Check whether --enable-tailbox or --disable-tailbox was given.
13651 if test "${enable_tailbox+set}" = set; then
13652 enableval="$enable_tailbox"
13655 enableval=$cf_all_widgets
13657 echo "$as_me:13657: result: $enableval" >&5
13658 echo "${ECHO_T}$enableval" >&6
13659 if test "$enableval" != no ; then
13660 EXTRAOBJS="$EXTRAOBJS tailbox\$o"
13662 cat >>confdefs.h <<\EOF
13663 #define HAVE_DLG_TAILBOX 1
13670 echo "$as_me:13670: checking if you want the mixedform dialog" >&5
13671 echo $ECHO_N "checking if you want the mixedform dialog... $ECHO_C" >&6
13673 # Check whether --enable-mixedform or --disable-mixedform was given.
13674 if test "${enable_mixedform+set}" = set; then
13675 enableval="$enable_mixedform"
13678 enableval=$cf_all_widgets
13680 echo "$as_me:13680: result: $enableval" >&5
13681 echo "${ECHO_T}$enableval" >&6
13682 if test "$enableval" != no ; then
13683 EXTRAOBJS="$EXTRAOBJS mixedform\$o"
13685 cat >>confdefs.h <<\EOF
13686 #define HAVE_DLG_MIXEDFORM 1
13693 echo "$as_me:13693: checking if you want the mixedgauge dialog" >&5
13694 echo $ECHO_N "checking if you want the mixedgauge dialog... $ECHO_C" >&6
13696 # Check whether --enable-mixedgauge or --disable-mixedgauge was given.
13697 if test "${enable_mixedgauge+set}" = set; then
13698 enableval="$enable_mixedgauge"
13701 enableval=$cf_all_widgets
13703 echo "$as_me:13703: result: $enableval" >&5
13704 echo "${ECHO_T}$enableval" >&6
13705 if test "$enableval" != no ; then
13706 EXTRAOBJS="$EXTRAOBJS mixedgauge\$o"
13708 cat >>confdefs.h <<\EOF
13709 #define HAVE_MIXEDGAUGE 1
13716 echo "$as_me:13716: checking if you want the wide-curses features" >&5
13717 echo $ECHO_N "checking if you want the wide-curses features... $ECHO_C" >&6
13719 # Check whether --enable-widec or --disable-widec was given.
13720 if test "${enable_widec+set}" = set; then
13721 enableval="$enable_widec"
13724 enableval=$cf_wide_curses
13726 echo "$as_me:13726: result: $enableval" >&5
13727 echo "${ECHO_T}$enableval" >&6
13728 if test "$enableval" != no ; then
13730 cat >>confdefs.h <<\EOF
13731 #define USE_WIDE_CURSES 1
13738 echo "$as_me:13738: checking for ANSI C header files" >&5
13739 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13740 if test "${ac_cv_header_stdc+set}" = set; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 cat >conftest.$ac_ext <<_ACEOF
13744 #line 13744 "configure"
13745 #include "confdefs.h"
13746 #include <stdlib.h>
13747 #include <stdarg.h>
13748 #include <string.h>
13752 if { (eval echo "$as_me:13752: \"$ac_cpp conftest.$ac_ext\"") >&5
13753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13755 egrep -v '^ *\+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:13758: \$? = $ac_status" >&5
13759 (exit $ac_status); } >/dev/null; then
13760 if test -s conftest.err; then
13761 ac_cpp_err=$ac_c_preproc_warn_flag
13768 if test -z "$ac_cpp_err"; then
13769 ac_cv_header_stdc=yes
13771 echo "$as_me: failed program was:" >&5
13772 cat conftest.$ac_ext >&5
13773 ac_cv_header_stdc=no
13775 rm -f conftest.err conftest.$ac_ext
13777 if test $ac_cv_header_stdc = yes; then
13778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13779 cat >conftest.$ac_ext <<_ACEOF
13780 #line 13780 "configure"
13781 #include "confdefs.h"
13782 #include <string.h>
13785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13786 egrep "memchr" >/dev/null 2>&1; then
13789 ac_cv_header_stdc=no
13795 if test $ac_cv_header_stdc = yes; then
13796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13797 cat >conftest.$ac_ext <<_ACEOF
13798 #line 13798 "configure"
13799 #include "confdefs.h"
13800 #include <stdlib.h>
13803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13804 egrep "free" >/dev/null 2>&1; then
13807 ac_cv_header_stdc=no
13813 if test $ac_cv_header_stdc = yes; then
13814 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13815 if test "$cross_compiling" = yes; then
13818 cat >conftest.$ac_ext <<_ACEOF
13819 #line 13819 "configure"
13820 #include "confdefs.h"
13822 #if ((' ' & 0x0FF) == 0x020)
13823 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13824 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13826 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13827 || ('j' <= (c) && (c) <= 'r') \
13828 || ('s' <= (c) && (c) <= 'z'))
13829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13837 for (i = 0; i < 256; i++)
13838 if (XOR (islower (i), ISLOWER (i))
13839 || toupper (i) != TOUPPER (i))
13840 $ac_main_return(2);
13841 $ac_main_return (0);
13844 rm -f conftest$ac_exeext
13845 if { (eval echo "$as_me:13845: \"$ac_link\"") >&5
13846 (eval $ac_link) 2>&5
13848 echo "$as_me:13848: \$? = $ac_status" >&5
13849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13850 { (eval echo "$as_me:13850: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:13853: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13857 echo "$as_me: program exited with status $ac_status" >&5
13858 echo "$as_me: failed program was:" >&5
13859 cat conftest.$ac_ext >&5
13860 ac_cv_header_stdc=no
13862 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13866 echo "$as_me:13866: result: $ac_cv_header_stdc" >&5
13867 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13868 if test $ac_cv_header_stdc = yes; then
13870 cat >>confdefs.h <<\EOF
13871 #define STDC_HEADERS 1
13876 echo "$as_me:13876: checking whether time.h and sys/time.h may both be included" >&5
13877 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13878 if test "${ac_cv_header_time+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 cat >conftest.$ac_ext <<_ACEOF
13882 #line 13882 "configure"
13883 #include "confdefs.h"
13884 #include <sys/types.h>
13885 #include <sys/time.h>
13891 if ((struct tm *) 0)
13897 rm -f conftest.$ac_objext
13898 if { (eval echo "$as_me:13898: \"$ac_compile\"") >&5
13899 (eval $ac_compile) 2>&5
13901 echo "$as_me:13901: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -s conftest.$ac_objext'
13904 { (eval echo "$as_me:13904: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:13907: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_cv_header_time=yes
13911 echo "$as_me: failed program was:" >&5
13912 cat conftest.$ac_ext >&5
13913 ac_cv_header_time=no
13915 rm -f conftest.$ac_objext conftest.$ac_ext
13917 echo "$as_me:13917: result: $ac_cv_header_time" >&5
13918 echo "${ECHO_T}$ac_cv_header_time" >&6
13919 if test $ac_cv_header_time = yes; then
13921 cat >>confdefs.h <<\EOF
13922 #define TIME_WITH_SYS_TIME 1
13927 ac_header_dirent=no
13928 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13929 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13930 echo "$as_me:13930: checking for $ac_hdr that defines DIR" >&5
13931 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 cat >conftest.$ac_ext <<_ACEOF
13936 #line 13936 "configure"
13937 #include "confdefs.h"
13938 #include <sys/types.h>
13950 rm -f conftest.$ac_objext
13951 if { (eval echo "$as_me:13951: \"$ac_compile\"") >&5
13952 (eval $ac_compile) 2>&5
13954 echo "$as_me:13954: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
13956 { ac_try='test -s conftest.$ac_objext'
13957 { (eval echo "$as_me:13957: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:13960: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 eval "$as_ac_Header=yes"
13964 echo "$as_me: failed program was:" >&5
13965 cat conftest.$ac_ext >&5
13966 eval "$as_ac_Header=no"
13968 rm -f conftest.$ac_objext conftest.$ac_ext
13970 echo "$as_me:13970: result: `eval echo '${'$as_ac_Header'}'`" >&5
13971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13973 cat >>confdefs.h <<EOF
13974 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13977 ac_header_dirent=$ac_hdr; break
13981 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13982 if test $ac_header_dirent = dirent.h; then
13983 echo "$as_me:13983: checking for opendir in -ldir" >&5
13984 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
13985 if test "${ac_cv_lib_dir_opendir+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 ac_check_lib_save_LIBS=$LIBS
13990 cat >conftest.$ac_ext <<_ACEOF
13991 #line 13991 "configure"
13992 #include "confdefs.h"
13994 /* Override any gcc2 internal prototype to avoid an error. */
13998 /* We use char because int might match the return type of a gcc2
13999 builtin and then its argument prototype would still apply. */
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:14010: \"$ac_link\"") >&5
14011 (eval $ac_link) 2>&5
14013 echo "$as_me:14013: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -s conftest$ac_exeext'
14016 { (eval echo "$as_me:14016: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:14019: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 ac_cv_lib_dir_opendir=yes
14023 echo "$as_me: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
14025 ac_cv_lib_dir_opendir=no
14027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14028 LIBS=$ac_check_lib_save_LIBS
14030 echo "$as_me:14030: result: $ac_cv_lib_dir_opendir" >&5
14031 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14032 if test $ac_cv_lib_dir_opendir = yes; then
14037 echo "$as_me:14037: checking for opendir in -lx" >&5
14038 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14039 if test "${ac_cv_lib_x_opendir+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 ac_check_lib_save_LIBS=$LIBS
14044 cat >conftest.$ac_ext <<_ACEOF
14045 #line 14045 "configure"
14046 #include "confdefs.h"
14048 /* Override any gcc2 internal prototype to avoid an error. */
14052 /* We use char because int might match the return type of a gcc2
14053 builtin and then its argument prototype would still apply. */
14063 rm -f conftest.$ac_objext conftest$ac_exeext
14064 if { (eval echo "$as_me:14064: \"$ac_link\"") >&5
14065 (eval $ac_link) 2>&5
14067 echo "$as_me:14067: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try='test -s conftest$ac_exeext'
14070 { (eval echo "$as_me:14070: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:14073: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_cv_lib_x_opendir=yes
14077 echo "$as_me: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 ac_cv_lib_x_opendir=no
14081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14082 LIBS=$ac_check_lib_save_LIBS
14084 echo "$as_me:14084: result: $ac_cv_lib_x_opendir" >&5
14085 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14086 if test $ac_cv_lib_x_opendir = yes; then
14092 for ac_header in search.h unctrl.h unistd.h
14094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14095 echo "$as_me:14095: checking for $ac_header" >&5
14096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14101 #line 14101 "configure"
14102 #include "confdefs.h"
14103 #include <$ac_header>
14105 if { (eval echo "$as_me:14105: \"$ac_cpp conftest.$ac_ext\"") >&5
14106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14108 egrep -v '^ *\+' conftest.er1 >conftest.err
14110 cat conftest.err >&5
14111 echo "$as_me:14111: \$? = $ac_status" >&5
14112 (exit $ac_status); } >/dev/null; then
14113 if test -s conftest.err; then
14114 ac_cpp_err=$ac_c_preproc_warn_flag
14121 if test -z "$ac_cpp_err"; then
14122 eval "$as_ac_Header=yes"
14124 echo "$as_me: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 eval "$as_ac_Header=no"
14128 rm -f conftest.err conftest.$ac_ext
14130 echo "$as_me:14130: result: `eval echo '${'$as_ac_Header'}'`" >&5
14131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14133 cat >>confdefs.h <<EOF
14134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14140 echo "$as_me:14140: checking for term.h" >&5
14141 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
14142 if test "${cf_cv_term_header+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
14147 # for <term.h> if we do not find the variant.
14149 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
14151 case ${cf_cv_ncurses_header:-curses.h} in #(vi
14153 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
14154 cf_header_list="$cf_header_item $cf_header_list"
14158 for cf_header in $cf_header_list
14160 cat >conftest.$ac_ext <<_ACEOF
14161 #line 14161 "configure"
14162 #include "confdefs.h"
14164 #include <${cf_cv_ncurses_header:-curses.h}>
14165 #include <${cf_header}>
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:14175: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>&5
14178 echo "$as_me:14178: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -s conftest.$ac_objext'
14181 { (eval echo "$as_me:14181: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:14184: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 cf_cv_term_header=$cf_header
14189 echo "$as_me: failed program was:" >&5
14190 cat conftest.$ac_ext >&5
14191 cf_cv_term_header=no
14193 rm -f conftest.$ac_objext conftest.$ac_ext
14196 case $cf_cv_term_header in #(vi
14198 # If curses is ncurses, some packagers still mess it up by trying to make
14199 # us use GNU termcap. This handles the most common case.
14200 for cf_header in ncurses/term.h ncursesw/term.h
14202 cat >conftest.$ac_ext <<_ACEOF
14203 #line 14203 "configure"
14204 #include "confdefs.h"
14206 #include <${cf_cv_ncurses_header:-curses.h}>
14207 #ifdef NCURSES_VERSION
14208 #include <${cf_header}>
14220 rm -f conftest.$ac_objext
14221 if { (eval echo "$as_me:14221: \"$ac_compile\"") >&5
14222 (eval $ac_compile) 2>&5
14224 echo "$as_me:14224: \$? = $ac_status" >&5
14225 (exit $ac_status); } &&
14226 { ac_try='test -s conftest.$ac_objext'
14227 { (eval echo "$as_me:14227: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14230 echo "$as_me:14230: \$? = $ac_status" >&5
14231 (exit $ac_status); }; }; then
14232 cf_cv_term_header=$cf_header
14235 echo "$as_me: failed program was:" >&5
14236 cat conftest.$ac_ext >&5
14237 cf_cv_term_header=no
14239 rm -f conftest.$ac_objext conftest.$ac_ext
14245 echo "$as_me:14245: result: $cf_cv_term_header" >&5
14246 echo "${ECHO_T}$cf_cv_term_header" >&6
14248 case $cf_cv_term_header in #(vi
14251 cat >>confdefs.h <<\EOF
14252 #define HAVE_TERM_H 1
14256 ncurses/term.h) #(vi
14258 cat >>confdefs.h <<\EOF
14259 #define HAVE_NCURSES_TERM_H 1
14265 cat >>confdefs.h <<\EOF
14266 #define HAVE_NCURSESW_TERM_H 1
14272 echo "$as_me:14272: checking return type of signal handlers" >&5
14273 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14274 if test "${ac_cv_type_signal+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14278 #line 14278 "configure"
14279 #include "confdefs.h"
14280 #include <sys/types.h>
14281 #include <signal.h>
14286 extern "C" void (*signal (int, void (*)(int)))(int);
14288 void (*signal ()) ();
14299 rm -f conftest.$ac_objext
14300 if { (eval echo "$as_me:14300: \"$ac_compile\"") >&5
14301 (eval $ac_compile) 2>&5
14303 echo "$as_me:14303: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -s conftest.$ac_objext'
14306 { (eval echo "$as_me:14306: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14309 echo "$as_me:14309: \$? = $ac_status" >&5
14310 (exit $ac_status); }; }; then
14311 ac_cv_type_signal=void
14313 echo "$as_me: failed program was:" >&5
14314 cat conftest.$ac_ext >&5
14315 ac_cv_type_signal=int
14317 rm -f conftest.$ac_objext conftest.$ac_ext
14319 echo "$as_me:14319: result: $ac_cv_type_signal" >&5
14320 echo "${ECHO_T}$ac_cv_type_signal" >&6
14322 cat >>confdefs.h <<EOF
14323 #define RETSIGTYPE $ac_cv_type_signal
14327 _nc_free_and_exit \
14343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14344 echo "$as_me:14344: checking for $ac_func" >&5
14345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_var+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14350 #line 14350 "configure"
14351 #include "confdefs.h"
14352 /* System header to define __stub macros and hopefully few prototypes,
14353 which can conflict with char $ac_func (); below. */
14354 #include <assert.h>
14355 /* Override any gcc2 internal prototype to avoid an error. */
14359 /* We use char because int might match the return type of a gcc2
14360 builtin and then its argument prototype would still apply. */
14367 /* The GNU C library defines this for functions which it implements
14368 to always fail with ENOSYS. Some functions are actually named
14369 something starting with __ and the normal name is an alias. */
14370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14373 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14380 rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (eval echo "$as_me:14381: \"$ac_link\"") >&5
14382 (eval $ac_link) 2>&5
14384 echo "$as_me:14384: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
14386 { ac_try='test -s conftest$ac_exeext'
14387 { (eval echo "$as_me:14387: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:14390: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 eval "$as_ac_var=yes"
14394 echo "$as_me: failed program was:" >&5
14395 cat conftest.$ac_ext >&5
14396 eval "$as_ac_var=no"
14398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14400 echo "$as_me:14400: result: `eval echo '${'$as_ac_var'}'`" >&5
14401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14402 if test `eval echo '${'$as_ac_var'}'` = yes; then
14403 cat >>confdefs.h <<EOF
14404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14410 echo "$as_me:14410: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
14411 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
14412 if test "${cf_cv_need_xopen_extension+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 cat >conftest.$ac_ext <<_ACEOF
14417 #line 14417 "configure"
14418 #include "confdefs.h"
14420 #include <stdlib.h>
14421 #include <${cf_cv_ncurses_header:-curses.h}>
14426 #if defined(NCURSES_VERSION_PATCH)
14427 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
14431 long x = winnstr(stdscr, "", 0);
14433 getbegyx(stdscr, y1, x1)
14438 rm -f conftest.$ac_objext conftest$ac_exeext
14439 if { (eval echo "$as_me:14439: \"$ac_link\"") >&5
14440 (eval $ac_link) 2>&5
14442 echo "$as_me:14442: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -s conftest$ac_exeext'
14445 { (eval echo "$as_me:14445: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14448 echo "$as_me:14448: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 cf_cv_need_xopen_extension=no
14452 echo "$as_me: failed program was:" >&5
14453 cat conftest.$ac_ext >&5
14454 cat >conftest.$ac_ext <<_ACEOF
14455 #line 14455 "configure"
14456 #include "confdefs.h"
14458 #define _XOPEN_SOURCE_EXTENDED
14459 #include <stdlib.h>
14460 #include <${cf_cv_ncurses_header:-curses.h}>
14465 #ifdef NCURSES_VERSION
14467 int check2 = curs_set((int)sizeof(check));
14469 long x = winnstr(stdscr, "", 0);
14471 getbegyx(stdscr, y1, x1)
14476 rm -f conftest.$ac_objext conftest$ac_exeext
14477 if { (eval echo "$as_me:14477: \"$ac_link\"") >&5
14478 (eval $ac_link) 2>&5
14480 echo "$as_me:14480: \$? = $ac_status" >&5
14481 (exit $ac_status); } &&
14482 { ac_try='test -s conftest$ac_exeext'
14483 { (eval echo "$as_me:14483: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:14486: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 cf_cv_need_xopen_extension=yes
14490 echo "$as_me: failed program was:" >&5
14491 cat conftest.$ac_ext >&5
14492 cf_cv_need_xopen_extension=unknown
14494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14498 echo "$as_me:14498: result: $cf_cv_need_xopen_extension" >&5
14499 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
14500 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
14502 echo "$as_me:14502: checking for unctrl.h" >&5
14503 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
14504 if test "${cf_cv_unctrl_header+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
14509 # for <unctrl.h> if we do not find the variant.
14511 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
14513 case ${cf_cv_ncurses_header:-curses.h} in #(vi
14515 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
14516 cf_header_list="$cf_header_item $cf_header_list"
14520 for cf_header in $cf_header_list
14522 cat >conftest.$ac_ext <<_ACEOF
14523 #line 14523 "configure"
14524 #include "confdefs.h"
14526 #include <${cf_cv_ncurses_header:-curses.h}>
14527 #include <${cf_header}>
14536 rm -f conftest.$ac_objext
14537 if { (eval echo "$as_me:14537: \"$ac_compile\"") >&5
14538 (eval $ac_compile) 2>&5
14540 echo "$as_me:14540: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -s conftest.$ac_objext'
14543 { (eval echo "$as_me:14543: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:14546: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 cf_cv_unctrl_header=$cf_header
14551 echo "$as_me: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14553 cf_cv_unctrl_header=no
14555 rm -f conftest.$ac_objext conftest.$ac_ext
14558 case $cf_cv_unctrl_header in #(vi
14560 { echo "$as_me:14560: WARNING: unctrl.h header not found" >&5
14561 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
14566 echo "$as_me:14566: result: $cf_cv_unctrl_header" >&5
14567 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
14569 case $cf_cv_unctrl_header in #(vi
14572 cat >>confdefs.h <<\EOF
14573 #define HAVE_UNCTRL_H 1
14577 ncurses/unctrl.h) #(vi
14579 cat >>confdefs.h <<\EOF
14580 #define HAVE_NCURSES_UNCTRL_H 1
14586 cat >>confdefs.h <<\EOF
14587 #define HAVE_NCURSESW_UNCTRL_H 1
14607 use_default_colors \
14615 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14617 echo "$as_me:14617: checking for ${cf_func}" >&5
14618 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14620 echo "${as_me:-configure}:14620: testing ${cf_func} ..." 1>&5
14622 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 eval cf_result='$ac_cv_func_'$cf_func
14627 if test ".$cf_result" != ".no"; then
14628 cat >conftest.$ac_ext <<_ACEOF
14629 #line 14629 "configure"
14630 #include "confdefs.h"
14632 #ifdef HAVE_XCURSES
14633 #include <xcurses.h>
14634 char * XCursesProgramName = "test";
14636 #include <${cf_cv_ncurses_header:-curses.h}>
14637 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14638 #include <ncursesw/term.h>
14639 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14640 #include <ncurses/term.h>
14641 #elif defined(HAVE_TERM_H)
14651 long foo = (long)(&${cf_func});
14652 if (foo + 1234 > 5678)
14653 ${cf_cv_main_return:-return}(foo);
14660 rm -f conftest.$ac_objext conftest$ac_exeext
14661 if { (eval echo "$as_me:14661: \"$ac_link\"") >&5
14662 (eval $ac_link) 2>&5
14664 echo "$as_me:14664: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -s conftest$ac_exeext'
14667 { (eval echo "$as_me:14667: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:14670: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14674 echo "$as_me: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14680 eval 'cf_cv_func_'$cf_func'=$cf_result'
14684 # use the computed/retrieved cache-value:
14685 eval 'cf_result=$cf_cv_func_'$cf_func
14686 echo "$as_me:14686: result: $cf_result" >&5
14687 echo "${ECHO_T}$cf_result" >&6
14688 if test $cf_result != no; then
14689 cat >>confdefs.h <<EOF
14690 #define HAVE_${cf_tr_func} 1
14696 echo "$as_me:14696: checking for start_color" >&5
14697 echo $ECHO_N "checking for start_color... $ECHO_C" >&6
14698 if test "${ac_cv_func_start_color+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 cat >conftest.$ac_ext <<_ACEOF
14702 #line 14702 "configure"
14703 #include "confdefs.h"
14704 /* System header to define __stub macros and hopefully few prototypes,
14705 which can conflict with char start_color (); below. */
14706 #include <assert.h>
14707 /* Override any gcc2 internal prototype to avoid an error. */
14711 /* We use char because int might match the return type of a gcc2
14712 builtin and then its argument prototype would still apply. */
14713 char start_color ();
14719 /* The GNU C library defines this for functions which it implements
14720 to always fail with ENOSYS. Some functions are actually named
14721 something starting with __ and the normal name is an alias. */
14722 #if defined (__stub_start_color) || defined (__stub___start_color)
14725 f = start_color; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (eval echo "$as_me:14733: \"$ac_link\"") >&5
14734 (eval $ac_link) 2>&5
14736 echo "$as_me:14736: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try='test -s conftest$ac_exeext'
14739 { (eval echo "$as_me:14739: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14742 echo "$as_me:14742: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_func_start_color=yes
14746 echo "$as_me: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14748 ac_cv_func_start_color=no
14750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14752 echo "$as_me:14752: result: $ac_cv_func_start_color" >&5
14753 echo "${ECHO_T}$ac_cv_func_start_color" >&6
14754 if test $ac_cv_func_start_color = yes; then
14756 cat >>confdefs.h <<\EOF
14757 #define HAVE_COLOR 1
14762 echo "$as_me:14762: checking for chtype typedef" >&5
14763 echo $ECHO_N "checking for chtype typedef... $ECHO_C" >&6
14764 if test "${cf_cv_chtype_decl+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line 14769 "configure"
14770 #include "confdefs.h"
14771 #include <${cf_cv_ncurses_header:-curses.h}>
14780 rm -f conftest.$ac_objext
14781 if { (eval echo "$as_me:14781: \"$ac_compile\"") >&5
14782 (eval $ac_compile) 2>&5
14784 echo "$as_me:14784: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
14786 { ac_try='test -s conftest.$ac_objext'
14787 { (eval echo "$as_me:14787: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14790 echo "$as_me:14790: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 cf_cv_chtype_decl=yes
14794 echo "$as_me: failed program was:" >&5
14795 cat conftest.$ac_ext >&5
14796 cf_cv_chtype_decl=no
14798 rm -f conftest.$ac_objext conftest.$ac_ext
14800 echo "$as_me:14800: result: $cf_cv_chtype_decl" >&5
14801 echo "${ECHO_T}$cf_cv_chtype_decl" >&6
14802 if test $cf_cv_chtype_decl = yes ; then
14804 cat >>confdefs.h <<\EOF
14805 #define HAVE_TYPE_CHTYPE 1
14808 echo "$as_me:14808: checking if chtype is scalar or struct" >&5
14809 echo $ECHO_N "checking if chtype is scalar or struct... $ECHO_C" >&6
14810 if test "${cf_cv_chtype_type+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 cat >conftest.$ac_ext <<_ACEOF
14815 #line 14815 "configure"
14816 #include "confdefs.h"
14817 #include <${cf_cv_ncurses_header:-curses.h}>
14821 chtype foo; long x = foo
14826 rm -f conftest.$ac_objext
14827 if { (eval echo "$as_me:14827: \"$ac_compile\"") >&5
14828 (eval $ac_compile) 2>&5
14830 echo "$as_me:14830: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -s conftest.$ac_objext'
14833 { (eval echo "$as_me:14833: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14836 echo "$as_me:14836: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }; then
14838 cf_cv_chtype_type=scalar
14840 echo "$as_me: failed program was:" >&5
14841 cat conftest.$ac_ext >&5
14842 cf_cv_chtype_type=struct
14844 rm -f conftest.$ac_objext conftest.$ac_ext
14846 echo "$as_me:14846: result: $cf_cv_chtype_type" >&5
14847 echo "${ECHO_T}$cf_cv_chtype_type" >&6
14848 if test $cf_cv_chtype_type = scalar ; then
14850 cat >>confdefs.h <<\EOF
14851 #define TYPE_CHTYPE_IS_SCALAR 1
14857 echo "$as_me:14857: checking for wide alternate character set array" >&5
14858 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
14859 if test "${cf_cv_curses_wacs_map+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 cf_cv_curses_wacs_map=unknown
14864 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
14866 cat >conftest.$ac_ext <<_ACEOF
14867 #line 14867 "configure"
14868 #include "confdefs.h"
14870 #ifndef _XOPEN_SOURCE_EXTENDED
14871 #define _XOPEN_SOURCE_EXTENDED
14873 #include <${cf_cv_ncurses_header:-curses.h}>
14877 void *foo = &($name['k'])
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (eval echo "$as_me:14883: \"$ac_link\"") >&5
14884 (eval $ac_link) 2>&5
14886 echo "$as_me:14886: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -s conftest$ac_exeext'
14889 { (eval echo "$as_me:14889: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:14892: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 cf_cv_curses_wacs_map=$name
14897 echo "$as_me: failed program was:" >&5
14898 cat conftest.$ac_ext >&5
14900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14903 echo "$as_me:14903: result: $cf_cv_curses_wacs_map" >&5
14904 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
14906 test "$cf_cv_curses_wacs_map" != unknown &&
14907 cat >>confdefs.h <<EOF
14908 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
14911 echo "$as_me:14911: checking for wide alternate character constants" >&5
14912 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
14913 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 cf_cv_curses_wacs_symbols=no
14918 if test "$cf_cv_curses_wacs_map" != unknown
14920 cat >conftest.$ac_ext <<_ACEOF
14921 #line 14921 "configure"
14922 #include "confdefs.h"
14924 #ifndef _XOPEN_SOURCE_EXTENDED
14925 #define _XOPEN_SOURCE_EXTENDED
14927 #include <${cf_cv_ncurses_header:-curses.h}>
14931 cchar_t *foo = WACS_PLUS;
14932 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
14937 rm -f conftest.$ac_objext conftest$ac_exeext
14938 if { (eval echo "$as_me:14938: \"$ac_link\"") >&5
14939 (eval $ac_link) 2>&5
14941 echo "$as_me:14941: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -s conftest$ac_exeext'
14944 { (eval echo "$as_me:14944: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:14947: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 cf_cv_curses_wacs_symbols=yes
14951 echo "$as_me: failed program was:" >&5
14952 cat conftest.$ac_ext >&5
14954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14956 cat >conftest.$ac_ext <<_ACEOF
14957 #line 14957 "configure"
14958 #include "confdefs.h"
14960 #ifndef _XOPEN_SOURCE_EXTENDED
14961 #define _XOPEN_SOURCE_EXTENDED
14963 #include <${cf_cv_ncurses_header:-curses.h}>
14967 cchar_t *foo = WACS_PLUS
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (eval echo "$as_me:14973: \"$ac_link\"") >&5
14974 (eval $ac_link) 2>&5
14976 echo "$as_me:14976: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -s conftest$ac_exeext'
14979 { (eval echo "$as_me:14979: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14982 echo "$as_me:14982: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 cf_cv_curses_wacs_symbols=yes
14986 echo "$as_me: failed program was:" >&5
14987 cat conftest.$ac_ext >&5
14989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14993 echo "$as_me:14993: result: $cf_cv_curses_wacs_symbols" >&5
14994 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
14996 test "$cf_cv_curses_wacs_symbols" != no &&
14997 cat >>confdefs.h <<\EOF
14998 #define CURSES_WACS_SYMBOLS 1
15001 for cf_func in wgetparent
15004 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15006 echo "$as_me:15006: checking for ${cf_func}" >&5
15007 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15009 echo "${as_me:-configure}:15009: testing ${cf_func} ..." 1>&5
15011 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 eval cf_result='$ac_cv_func_'$cf_func
15016 if test ".$cf_result" != ".no"; then
15017 cat >conftest.$ac_ext <<_ACEOF
15018 #line 15018 "configure"
15019 #include "confdefs.h"
15021 #ifdef HAVE_XCURSES
15022 #include <xcurses.h>
15023 char * XCursesProgramName = "test";
15025 #include <${cf_cv_ncurses_header:-curses.h}>
15026 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15027 #include <ncursesw/term.h>
15028 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15029 #include <ncurses/term.h>
15030 #elif defined(HAVE_TERM_H)
15040 long foo = (long)(&${cf_func});
15041 if (foo + 1234 > 5678)
15042 ${cf_cv_main_return:-return}(foo);
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (eval echo "$as_me:15050: \"$ac_link\"") >&5
15051 (eval $ac_link) 2>&5
15053 echo "$as_me:15053: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
15055 { ac_try='test -s conftest$ac_exeext'
15056 { (eval echo "$as_me:15056: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:15059: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15063 echo "$as_me: failed program was:" >&5
15064 cat conftest.$ac_ext >&5
15067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15069 eval 'cf_cv_func_'$cf_func'=$cf_result'
15073 # use the computed/retrieved cache-value:
15074 eval 'cf_result=$cf_cv_func_'$cf_func
15075 echo "$as_me:15075: result: $cf_result" >&5
15076 echo "${ECHO_T}$cf_result" >&6
15077 if test $cf_result != no; then
15078 cat >>confdefs.h <<EOF
15079 #define HAVE_${cf_tr_func} 1
15085 if test "x$cf_cv_func_wgetparent" != xyes
15087 echo "$as_me:15087: checking if WINDOW has _parent member" >&5
15088 echo $ECHO_N "checking if WINDOW has _parent member... $ECHO_C" >&6
15089 cat >conftest.$ac_ext <<_ACEOF
15090 #line 15090 "configure"
15091 #include "confdefs.h"
15092 #include <${cf_cv_ncurses_header:-curses.h}>
15096 WINDOW *p = stdscr->_parent
15101 rm -f conftest.$ac_objext
15102 if { (eval echo "$as_me:15102: \"$ac_compile\"") >&5
15103 (eval $ac_compile) 2>&5
15105 echo "$as_me:15105: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -s conftest.$ac_objext'
15108 { (eval echo "$as_me:15108: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15111 echo "$as_me:15111: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 cf_window__parent=yes
15115 echo "$as_me: failed program was:" >&5
15116 cat conftest.$ac_ext >&5
15117 cf_window__parent=no
15119 rm -f conftest.$ac_objext conftest.$ac_ext
15120 echo "$as_me:15120: result: $cf_window__parent" >&5
15121 echo "${ECHO_T}$cf_window__parent" >&6
15122 if test "$cf_window__parent" = yes
15125 cat >>confdefs.h <<\EOF
15126 #define HAVE_WINDOW__PARENT 1
15132 for ac_header in sys/wait.h
15134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15135 echo "$as_me:15135: checking for $ac_header" >&5
15136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 cat >conftest.$ac_ext <<_ACEOF
15141 #line 15141 "configure"
15142 #include "confdefs.h"
15143 #include <$ac_header>
15145 if { (eval echo "$as_me:15145: \"$ac_cpp conftest.$ac_ext\"") >&5
15146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15148 egrep -v '^ *\+' conftest.er1 >conftest.err
15150 cat conftest.err >&5
15151 echo "$as_me:15151: \$? = $ac_status" >&5
15152 (exit $ac_status); } >/dev/null; then
15153 if test -s conftest.err; then
15154 ac_cpp_err=$ac_c_preproc_warn_flag
15161 if test -z "$ac_cpp_err"; then
15162 eval "$as_ac_Header=yes"
15164 echo "$as_me: failed program was:" >&5
15165 cat conftest.$ac_ext >&5
15166 eval "$as_ac_Header=no"
15168 rm -f conftest.err conftest.$ac_ext
15170 echo "$as_me:15170: result: `eval echo '${'$as_ac_Header'}'`" >&5
15171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15173 cat >>confdefs.h <<EOF
15174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15180 cf_wait_headers="#include <sys/types.h>
15182 if test $ac_cv_header_sys_wait_h = yes; then
15183 cf_wait_headers="$cf_wait_headers
15184 #include <sys/wait.h>
15188 for ac_header in wait.h
15190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15191 echo "$as_me:15191: checking for $ac_header" >&5
15192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 cat >conftest.$ac_ext <<_ACEOF
15197 #line 15197 "configure"
15198 #include "confdefs.h"
15199 #include <$ac_header>
15201 if { (eval echo "$as_me:15201: \"$ac_cpp conftest.$ac_ext\"") >&5
15202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15204 egrep -v '^ *\+' conftest.er1 >conftest.err
15206 cat conftest.err >&5
15207 echo "$as_me:15207: \$? = $ac_status" >&5
15208 (exit $ac_status); } >/dev/null; then
15209 if test -s conftest.err; then
15210 ac_cpp_err=$ac_c_preproc_warn_flag
15217 if test -z "$ac_cpp_err"; then
15218 eval "$as_ac_Header=yes"
15220 echo "$as_me: failed program was:" >&5
15221 cat conftest.$ac_ext >&5
15222 eval "$as_ac_Header=no"
15224 rm -f conftest.err conftest.$ac_ext
15226 echo "$as_me:15226: result: `eval echo '${'$as_ac_Header'}'`" >&5
15227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15229 cat >>confdefs.h <<EOF
15230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15236 for ac_header in waitstatus.h
15238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15239 echo "$as_me:15239: checking for $ac_header" >&5
15240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 cat >conftest.$ac_ext <<_ACEOF
15245 #line 15245 "configure"
15246 #include "confdefs.h"
15247 #include <$ac_header>
15249 if { (eval echo "$as_me:15249: \"$ac_cpp conftest.$ac_ext\"") >&5
15250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15252 egrep -v '^ *\+' conftest.er1 >conftest.err
15254 cat conftest.err >&5
15255 echo "$as_me:15255: \$? = $ac_status" >&5
15256 (exit $ac_status); } >/dev/null; then
15257 if test -s conftest.err; then
15258 ac_cpp_err=$ac_c_preproc_warn_flag
15265 if test -z "$ac_cpp_err"; then
15266 eval "$as_ac_Header=yes"
15268 echo "$as_me: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 eval "$as_ac_Header=no"
15272 rm -f conftest.err conftest.$ac_ext
15274 echo "$as_me:15274: result: `eval echo '${'$as_ac_Header'}'`" >&5
15275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15277 cat >>confdefs.h <<EOF
15278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15284 if test $ac_cv_header_wait_h = yes; then
15285 cf_wait_headers="$cf_wait_headers
15289 if test $ac_cv_header_waitstatus_h = yes; then
15290 cf_wait_headers="$cf_wait_headers
15291 #include <waitstatus.h>
15296 echo "$as_me:15296: checking for union wait" >&5
15297 echo $ECHO_N "checking for union wait... $ECHO_C" >&6
15298 if test "${cf_cv_type_unionwait+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 cat >conftest.$ac_ext <<_ACEOF
15303 #line 15303 "configure"
15304 #include "confdefs.h"
15310 int y = WEXITSTATUS(x);
15311 int z = WTERMSIG(x);
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (eval echo "$as_me:15319: \"$ac_link\"") >&5
15320 (eval $ac_link) 2>&5
15322 echo "$as_me:15322: \$? = $ac_status" >&5
15323 (exit $ac_status); } &&
15324 { ac_try='test -s conftest$ac_exeext'
15325 { (eval echo "$as_me:15325: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 echo "$as_me:15328: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 cf_cv_type_unionwait=no
15331 echo compiles ok w/o union wait 1>&5
15334 echo "$as_me: failed program was:" >&5
15335 cat conftest.$ac_ext >&5
15337 cat >conftest.$ac_ext <<_ACEOF
15338 #line 15338 "configure"
15339 #include "confdefs.h"
15346 int y = WEXITSTATUS(x);
15349 int z = WTERMSIG(x);
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (eval echo "$as_me:15358: \"$ac_link\"") >&5
15359 (eval $ac_link) 2>&5
15361 echo "$as_me:15361: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -s conftest$ac_exeext'
15364 { (eval echo "$as_me:15364: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:15367: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 cf_cv_type_unionwait=yes
15370 echo compiles ok with union wait and possibly macros too 1>&5
15373 echo "$as_me: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15375 cf_cv_type_unionwait=no
15377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15382 echo "$as_me:15382: result: $cf_cv_type_unionwait" >&5
15383 echo "${ECHO_T}$cf_cv_type_unionwait" >&6
15384 test $cf_cv_type_unionwait = yes &&
15385 cat >>confdefs.h <<\EOF
15386 #define HAVE_TYPE_UNIONWAIT 1
15389 if test $cf_cv_type_unionwait = yes; then
15391 echo "$as_me:15391: checking if union wait can be used as wait-arg" >&5
15392 echo $ECHO_N "checking if union wait can be used as wait-arg... $ECHO_C" >&6
15393 if test "${cf_cv_arg_union_wait+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 cat >conftest.$ac_ext <<_ACEOF
15398 #line 15398 "configure"
15399 #include "confdefs.h"
15404 union wait x; wait(&x)
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:15410: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>&5
15413 echo "$as_me:15413: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (eval echo "$as_me:15416: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:15419: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15421 cf_cv_arg_union_wait=yes
15423 echo "$as_me: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15425 cf_cv_arg_union_wait=no
15427 rm -f conftest.$ac_objext conftest.$ac_ext
15431 echo "$as_me:15431: result: $cf_cv_arg_union_wait" >&5
15432 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
15433 test $cf_cv_arg_union_wait = yes &&
15434 cat >>confdefs.h <<\EOF
15435 #define WAIT_USES_UNION 1
15438 echo "$as_me:15438: checking if union wait can be used as waitpid-arg" >&5
15439 echo $ECHO_N "checking if union wait can be used as waitpid-arg... $ECHO_C" >&6
15440 if test "${cf_cv_arg_union_waitpid+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 cat >conftest.$ac_ext <<_ACEOF
15445 #line 15445 "configure"
15446 #include "confdefs.h"
15451 union wait x; waitpid(0, &x, 0)
15456 rm -f conftest.$ac_objext
15457 if { (eval echo "$as_me:15457: \"$ac_compile\"") >&5
15458 (eval $ac_compile) 2>&5
15460 echo "$as_me:15460: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -s conftest.$ac_objext'
15463 { (eval echo "$as_me:15463: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15466 echo "$as_me:15466: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15468 cf_cv_arg_union_waitpid=yes
15470 echo "$as_me: failed program was:" >&5
15471 cat conftest.$ac_ext >&5
15472 cf_cv_arg_union_waitpid=no
15474 rm -f conftest.$ac_objext conftest.$ac_ext
15478 echo "$as_me:15478: result: $cf_cv_arg_union_waitpid" >&5
15479 echo "${ECHO_T}$cf_cv_arg_union_waitpid" >&6
15480 test $cf_cv_arg_union_waitpid = yes &&
15481 cat >>confdefs.h <<\EOF
15482 #define WAITPID_USES_UNION 1
15487 echo "$as_me:15487: checking if we must include wchar.h to declare mbstate_t" >&5
15488 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
15489 if test "${cf_cv_mbstate_t+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 cat >conftest.$ac_ext <<_ACEOF
15494 #line 15494 "configure"
15495 #include "confdefs.h"
15497 #include <stdlib.h>
15499 #ifdef HAVE_LIBUTF8_H
15500 #include <libutf8.h>
15510 rm -f conftest.$ac_objext
15511 if { (eval echo "$as_me:15511: \"$ac_compile\"") >&5
15512 (eval $ac_compile) 2>&5
15514 echo "$as_me:15514: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try='test -s conftest.$ac_objext'
15517 { (eval echo "$as_me:15517: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15520 echo "$as_me:15520: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15524 echo "$as_me: failed program was:" >&5
15525 cat conftest.$ac_ext >&5
15526 cat >conftest.$ac_ext <<_ACEOF
15527 #line 15527 "configure"
15528 #include "confdefs.h"
15530 #include <stdlib.h>
15533 #ifdef HAVE_LIBUTF8_H
15534 #include <libutf8.h>
15544 rm -f conftest.$ac_objext
15545 if { (eval echo "$as_me:15545: \"$ac_compile\"") >&5
15546 (eval $ac_compile) 2>&5
15548 echo "$as_me:15548: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -s conftest.$ac_objext'
15551 { (eval echo "$as_me:15551: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:15554: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 cf_cv_mbstate_t=yes
15558 echo "$as_me: failed program was:" >&5
15559 cat conftest.$ac_ext >&5
15560 cf_cv_mbstate_t=unknown
15562 rm -f conftest.$ac_objext conftest.$ac_ext
15564 rm -f conftest.$ac_objext conftest.$ac_ext
15566 echo "$as_me:15566: result: $cf_cv_mbstate_t" >&5
15567 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
15569 if test "$cf_cv_mbstate_t" = yes ; then
15571 cat >>confdefs.h <<\EOF
15572 #define NEED_WCHAR_H 1
15577 if test "$cf_cv_mbstate_t" != unknown ; then
15579 cat >>confdefs.h <<\EOF
15580 #define HAVE_MBSTATE_T 1
15586 PACKAGE_CONFIG=dlg_config.h
15588 EXTRA_OUTPUT="$EXTRA_OUTPUT headers-sh:$srcdir/headers-sh.in"
15590 cat >conftest.$ac_ext <<_ACEOF
15591 #line 15591 "configure"
15592 #include "confdefs.h"
15593 #include <locale.h>
15597 setlocale(LC_ALL, "")
15602 rm -f conftest.$ac_objext conftest$ac_exeext
15603 if { (eval echo "$as_me:15603: \"$ac_link\"") >&5
15604 (eval $ac_link) 2>&5
15606 echo "$as_me:15606: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -s conftest$ac_exeext'
15609 { (eval echo "$as_me:15609: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15612 echo "$as_me:15612: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15615 cat >>confdefs.h <<\EOF
15616 #define HAVE_SETLOCALE 1
15620 echo "$as_me: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15625 echo "$as_me:15625: checking if rpath-hack should be disabled" >&5
15626 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
15628 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
15629 if test "${enable_rpath_hack+set}" = set; then
15630 enableval="$enable_rpath_hack"
15631 test "$enableval" != no && enableval=yes
15632 if test "$enableval" != "yes" ; then
15633 cf_disable_rpath_hack=yes
15635 cf_disable_rpath_hack=no
15639 cf_disable_rpath_hack=no
15642 echo "$as_me:15642: result: $cf_disable_rpath_hack" >&5
15643 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
15644 if test "$cf_disable_rpath_hack" = no ; then
15646 echo "$as_me:15646: checking for updated LDFLAGS" >&5
15647 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
15648 if test -n "$LD_RPATH_OPT" ; then
15649 echo "$as_me:15649: result: maybe" >&5
15650 echo "${ECHO_T}maybe" >&6
15654 # Extract the first word of "$ac_prog", so it can be a program name with args.
15655 set dummy $ac_prog; ac_word=$2
15656 echo "$as_me:15656: checking for $ac_word" >&5
15657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15658 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15661 if test -n "$cf_ldd_prog"; then
15662 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
15664 ac_save_IFS=$IFS; IFS=$ac_path_separator
15666 for ac_dir in $ac_dummy; do
15668 test -z "$ac_dir" && ac_dir=.
15669 $as_executable_p "$ac_dir/$ac_word" || continue
15670 ac_cv_prog_cf_ldd_prog="$ac_prog"
15671 echo "$as_me:15671: found $ac_dir/$ac_word" >&5
15677 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
15678 if test -n "$cf_ldd_prog"; then
15679 echo "$as_me:15679: result: $cf_ldd_prog" >&5
15680 echo "${ECHO_T}$cf_ldd_prog" >&6
15682 echo "$as_me:15682: result: no" >&5
15683 echo "${ECHO_T}no" >&6
15686 test -n "$cf_ldd_prog" && break
15688 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
15690 cf_rpath_list="/usr/lib /lib"
15691 if test "$cf_ldd_prog" != no
15695 cat >conftest.$ac_ext <<_ACEOF
15696 #line 15696 "configure"
15697 #include "confdefs.h"
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (eval echo "$as_me:15708: \"$ac_link\"") >&5
15709 (eval $ac_link) 2>&5
15711 echo "$as_me:15711: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
15713 { ac_try='test -s conftest$ac_exeext'
15714 { (eval echo "$as_me:15714: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15717 echo "$as_me:15717: \$? = $ac_status" >&5
15718 (exit $ac_status); }; }; then
15719 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
15720 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
15722 echo "$as_me: failed program was:" >&5
15723 cat conftest.$ac_ext >&5
15725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15727 # If we passed the link-test, but get a "not found" on a given library,
15728 # this could be due to inept reconfiguration of gcc to make it only
15729 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
15730 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
15731 # /usr/local libraries.
15732 if test -n "$cf_rpath_oops"
15734 for cf_rpath_src in $cf_rpath_oops
15736 for cf_rpath_dir in \
15741 if test -f $cf_rpath_dir/lib/$cf_rpath_src
15743 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
15745 echo "${as_me:-configure}:15745: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
15747 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
15755 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
15757 echo "${as_me:-configure}:15757: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
15759 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
15761 echo "${as_me:-configure}:15761: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
15764 for cf_rpath_src in $LDFLAGS
15766 case $cf_rpath_src in #(vi
15769 # check if this refers to a directory which we will ignore
15771 if test -n "$cf_rpath_list"
15773 for cf_rpath_item in $cf_rpath_list
15775 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
15783 if test "$cf_rpath_skip" = no
15785 # transform the option
15786 if test "$LD_RPATH_OPT" = "-R " ; then
15787 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
15789 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
15792 # if we have not already added this, add it now
15793 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
15794 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
15796 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
15798 echo "${as_me:-configure}:15798: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
15800 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
15805 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
15807 LDFLAGS=$cf_rpath_dst
15809 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
15811 echo "${as_me:-configure}:15811: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
15813 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
15815 echo "${as_me:-configure}:15815: testing ...checking LIBS $LIBS ..." 1>&5
15818 for cf_rpath_src in $LIBS
15820 case $cf_rpath_src in #(vi
15823 # check if this refers to a directory which we will ignore
15825 if test -n "$cf_rpath_list"
15827 for cf_rpath_item in $cf_rpath_list
15829 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
15837 if test "$cf_rpath_skip" = no
15839 # transform the option
15840 if test "$LD_RPATH_OPT" = "-R " ; then
15841 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
15843 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
15846 # if we have not already added this, add it now
15847 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
15848 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
15850 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
15852 echo "${as_me:-configure}:15852: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
15854 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
15859 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
15863 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
15865 echo "${as_me:-configure}:15865: testing ...checked LIBS $LIBS ..." 1>&5
15867 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
15869 echo "${as_me:-configure}:15869: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
15872 echo "$as_me:15872: result: no" >&5
15873 echo "${ECHO_T}no" >&6
15878 cf_libname=\${LIB_BASENAME}
15879 cf_liblink=$cf_libname
15880 cf_libroot=$cf_libname
15882 if test "x$cf_cv_do_symlinks" = xyes
15884 case "x$cf_cv_shlib_version" in #(vi
15886 cf_liblink="\${LIB_ABI_NAME}"
15887 cf_libname="\${LIB_REL_NAME}"
15890 cf_liblink="\${LIB_REL_NAME}"
15891 cf_libname="\${LIB_ABI_NAME}"
15895 LIB_TARGET=$cf_libname
15897 SET_SHLIB_VARS="# begin CF__DEFINE_SHLIB_VARS\\
15898 LIB_BASENAME = ${LIB_PREFIX}\${LIB_ROOTNAME}\${LIB_SUFFIX}\\
15899 LIB_REL_NAME = \${LIB_BASENAME}.\${REL_VERSION}\\
15900 LIB_ABI_NAME = \${LIB_BASENAME}.\${ABI_VERSION}\\
15901 LIB_TARGET = $LIB_TARGET\\
15902 RM_SHARED_OPTS = $RM_SHARED_OPTS\\
15903 # end CF__DEFINE_SHLIB_VARS"
15905 ac_config_files="$ac_config_files dialog-config makefile $EXTRA_OUTPUT $SUB_MAKEFILE"
15906 ac_config_commands="$ac_config_commands default"
15907 cat >confcache <<\_ACEOF
15908 # This file is a shell script that caches the results of configure
15909 # tests run on this system so they can be shared between configure
15910 # scripts and configure runs, see configure's option --config-cache.
15911 # It is not useful on other systems. If it contains results you don't
15912 # want to keep, you may remove or edit it.
15914 # config.status only pays attention to the cache file if you give it
15915 # the --recheck option to rerun configure.
15917 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15919 # following values.
15923 # The following way of writing the cache mishandles newlines in values,
15924 # but we know of no workaround that is simple, portable, and efficient.
15925 # So, don't put newlines in cache variables' values.
15926 # Ultrix sh set writes to stderr and can't be redirected directly,
15927 # and sets the high bit in the cache file unless we assign to the vars.
15930 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15932 # `set' does not quote correctly, so add quotes (double-quote
15933 # substitution turns \\\\ into \\, and sed turns \\ into \).
15936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15939 # `set' quotes correctly as required by POSIX, so do not add quotes.
15941 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15950 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15952 if cmp -s $cache_file confcache; then :; else
15953 if test -w $cache_file; then
15954 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15955 cat confcache >$cache_file
15957 echo "not updating unwritable cache $cache_file"
15962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15963 # Let make expand exec_prefix.
15964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15966 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15967 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15968 # trailing colons and then remove the whole line if VPATH becomes empty
15969 # (actually we leave an empty line to preserve line numbers).
15970 if test "x$srcdir" = x.; then
15971 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15972 s/:*\$(srcdir):*/:/;
15973 s/:*\${srcdir}:*/:/;
15975 s/^\([^=]*=[ ]*\):*/\1/;
15981 DEFS=-DHAVE_CONFIG_H
15983 : ${CONFIG_STATUS=./config.status}
15984 ac_clean_files_save=$ac_clean_files
15985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15986 { echo "$as_me:15986: creating $CONFIG_STATUS" >&5
15987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15988 cat >$CONFIG_STATUS <<_ACEOF
15990 # Generated automatically by configure.
15991 # Run this file to recreate the current configuration.
15992 # Compiler output produced by configure, useful for debugging
15993 # configure, is in config.log if it exists.
15996 SHELL=\${CONFIG_SHELL-$SHELL}
15997 ac_cs_invocation="\$0 \$@"
16001 cat >>$CONFIG_STATUS <<\_ACEOF
16002 # Be Bourne compatible
16003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16006 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16010 # Name of the executable.
16011 as_me=`echo "$0" |sed 's,.*[\\/],,'`
16013 if expr a : '\(a\)' >/dev/null 2>&1; then
16019 rm -f conf$$ conf$$.exe conf$$.file
16021 if ln -s conf$$.file conf$$ 2>/dev/null; then
16022 # We could just check for DJGPP; but this test a) works b) is more generic
16023 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16024 if test -f conf$$.exe; then
16025 # Don't use ln at all; we don't have any links
16030 elif ln conf$$.file conf$$ 2>/dev/null; then
16035 rm -f conf$$ conf$$.exe conf$$.file
16037 as_executable_p="test -f"
16039 # Support unset when possible.
16040 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16047 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
16048 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
16049 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
16050 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
16051 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
16052 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
16053 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
16054 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
16057 # We need space, tab and new line, in precisely that order.
16063 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
16069 # Files that config.status was made for.
16070 if test -n "$ac_config_files"; then
16071 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16074 if test -n "$ac_config_headers"; then
16075 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16078 if test -n "$ac_config_links"; then
16079 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16082 if test -n "$ac_config_commands"; then
16083 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16086 cat >>$CONFIG_STATUS <<\EOF
16089 \`$as_me' instantiates files from templates according to the
16090 current configuration.
16092 Usage: $0 [OPTIONS] [FILE]...
16094 -h, --help print this help, then exit
16095 -V, --version print version number, then exit
16096 -d, --debug don't remove temporary files
16097 --recheck update $as_me by reconfiguring in the same conditions
16098 --file=FILE[:TEMPLATE]
16099 instantiate the configuration file FILE
16100 --header=FILE[:TEMPLATE]
16101 instantiate the configuration header FILE
16103 Configuration files:
16106 Configuration headers:
16109 Configuration commands:
16112 Report bugs to <dickey@invisible-island.net>."
16115 cat >>$CONFIG_STATUS <<EOF
16118 configured by $0, generated by GNU Autoconf 2.52.20121002,
16119 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16121 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16122 Free Software Foundation, Inc.
16123 This config.status script is free software; the Free Software Foundation
16124 gives unlimited permission to copy, distribute and modify it."
16129 cat >>$CONFIG_STATUS <<\EOF
16130 # If no file are specified by the user, then we need to provide default
16131 # value. By we need to know if files were specified by the user.
16137 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16138 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16140 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16144 *) # This is not an option, so the user has probably given explicit
16146 ac_need_defaults=false;;
16150 # Handling of the options.
16152 cat >>$CONFIG_STATUS <<EOF
16153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16154 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16155 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16157 cat >>$CONFIG_STATUS <<\EOF
16158 --version | --vers* | -V )
16159 echo "$ac_cs_version"; exit 0 ;;
16161 # Conflict between --help and --header
16162 { { echo "$as_me:16162: error: ambiguous option: $1
16163 Try \`$0 --help' for more information." >&5
16164 echo "$as_me: error: ambiguous option: $1
16165 Try \`$0 --help' for more information." >&2;}
16166 { (exit 1); exit 1; }; };;
16167 --help | --hel | -h )
16168 echo "$ac_cs_usage"; exit 0 ;;
16169 --debug | --d* | -d )
16171 --file | --fil | --fi | --f )
16173 CONFIG_FILES="$CONFIG_FILES $1"
16174 ac_need_defaults=false;;
16175 --header | --heade | --head | --hea )
16177 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16178 ac_need_defaults=false;;
16180 # This is an error.
16181 -*) { { echo "$as_me:16181: error: unrecognized option: $1
16182 Try \`$0 --help' for more information." >&5
16183 echo "$as_me: error: unrecognized option: $1
16184 Try \`$0 --help' for more information." >&2;}
16185 { (exit 1); exit 1; }; } ;;
16187 *) ac_config_targets="$ac_config_targets $1" ;;
16196 ## ----------------------- ##
16197 ## Running config.status. ##
16198 ## ----------------------- ##
16200 This file was extended by $as_me 2.52.20121002, executed with
16201 CONFIG_FILES = $CONFIG_FILES
16202 CONFIG_HEADERS = $CONFIG_HEADERS
16203 CONFIG_LINKS = $CONFIG_LINKS
16204 CONFIG_COMMANDS = $CONFIG_COMMANDS
16205 > $ac_cs_invocation
16206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16211 cat >>$CONFIG_STATUS <<EOF
16213 # INIT-COMMANDS section.
16216 ABI_VERSION="$ABI_VERSION"
16217 REL_VERSION="$REL_VERSION"
16218 LIB_MODEL="$LIB_MODEL"
16219 LIB_PREFIX="$LIB_PREFIX"
16220 LIB_ROOTNAME="$LIB_ROOTNAME"
16221 DFT_DEP_SUFFIX="$DFT_DEP_SUFFIX"
16222 RM_SHARED_OPTS="$RM_SHARED_OPTS"
16223 cf_cv_do_symlinks="$cf_cv_do_symlinks"
16224 cf_cv_shlib_version="$cf_cv_shlib_version"
16228 cat >>$CONFIG_STATUS <<\EOF
16229 for ac_config_target in $ac_config_targets
16231 case "$ac_config_target" in
16232 # Handling of arguments.
16233 "dialog-config" ) CONFIG_FILES="$CONFIG_FILES dialog-config" ;;
16234 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
16235 "$EXTRA_OUTPUT" ) CONFIG_FILES="$CONFIG_FILES $EXTRA_OUTPUT" ;;
16236 "$SUB_MAKEFILE" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILE" ;;
16237 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16238 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16239 "dlg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS dlg_config.h:config.hin" ;;
16240 *) { { echo "$as_me:16240: error: invalid argument: $ac_config_target" >&5
16241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16242 { (exit 1); exit 1; }; };;
16246 # If the user did not use the arguments to specify the items to instantiate,
16247 # then the envvar interface is used. Set only those that are not.
16248 # We use the long form for the default assignment because of an extremely
16249 # bizarre bug on SunOS 4.1.3.
16250 if $ac_need_defaults; then
16251 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16252 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16253 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16256 # Create a temporary directory, and hook for its removal unless debugging.
16259 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16260 trap '{ (exit 1); exit 1; }' 1 2 13 15
16263 # Create a (secure) tmp directory for tmp files.
16266 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16267 test -n "$tmp" && test -d "$tmp"
16270 tmp=$TMPDIR/cs$$-$RANDOM
16271 (umask 077 && mkdir $tmp)
16274 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16275 { (exit 1); exit 1; }
16280 cat >>$CONFIG_STATUS <<EOF
16283 # CONFIG_FILES section.
16286 # No need to generate the scripts if there are no CONFIG_FILES.
16287 # This happens for instance when ./config.status config.h
16288 if test -n "\$CONFIG_FILES"; then
16289 # Protect against being on the right side of a sed subst in config.status.
16290 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16291 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16292 s,@SHELL@,$SHELL,;t t
16293 s,@exec_prefix@,$exec_prefix,;t t
16294 s,@prefix@,$prefix,;t t
16295 s,@program_transform_name@,$program_transform_name,;t t
16296 s,@bindir@,$bindir,;t t
16297 s,@sbindir@,$sbindir,;t t
16298 s,@libexecdir@,$libexecdir,;t t
16299 s,@datarootdir@,$datarootdir,;t t
16300 s,@datadir@,$datadir,;t t
16301 s,@sysconfdir@,$sysconfdir,;t t
16302 s,@sharedstatedir@,$sharedstatedir,;t t
16303 s,@localstatedir@,$localstatedir,;t t
16304 s,@libdir@,$libdir,;t t
16305 s,@includedir@,$includedir,;t t
16306 s,@oldincludedir@,$oldincludedir,;t t
16307 s,@infodir@,$infodir,;t t
16308 s,@mandir@,$mandir,;t t
16309 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16310 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16311 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16312 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16313 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16314 s,@build_alias@,$build_alias,;t t
16315 s,@host_alias@,$host_alias,;t t
16316 s,@target_alias@,$target_alias,;t t
16317 s,@ECHO_C@,$ECHO_C,;t t
16318 s,@ECHO_N@,$ECHO_N,;t t
16319 s,@ECHO_T@,$ECHO_T,;t t
16320 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16321 s,@DEFS@,$DEFS,;t t
16322 s,@LIBS@,$LIBS,;t t
16323 s,@DESTDIR@,$DESTDIR,;t t
16325 s,@CFLAGS@,$CFLAGS,;t t
16326 s,@LDFLAGS@,$LDFLAGS,;t t
16327 s,@CPPFLAGS@,$CPPFLAGS,;t t
16328 s,@ac_ct_CC@,$ac_ct_CC,;t t
16329 s,@EXEEXT@,$EXEEXT,;t t
16330 s,@OBJEXT@,$OBJEXT,;t t
16331 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
16333 s,@SET_MAKE@,$SET_MAKE,;t t
16334 s,@RANLIB@,$RANLIB,;t t
16335 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16336 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16337 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16338 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16339 s,@LN_S@,$LN_S,;t t
16340 s,@LINT@,$LINT,;t t
16341 s,@LINT_OPTS@,$LINT_OPTS,;t t
16343 s,@ac_ct_AR@,$ac_ct_AR,;t t
16344 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
16345 s,@CTAGS@,$CTAGS,;t t
16346 s,@ETAGS@,$ETAGS,;t t
16347 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
16348 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
16349 s,@ECHO_LT@,$ECHO_LT,;t t
16350 s,@ECHO_LD@,$ECHO_LD,;t t
16351 s,@RULE_CC@,$RULE_CC,;t t
16352 s,@SHOW_CC@,$SHOW_CC,;t t
16353 s,@ECHO_CC@,$ECHO_CC,;t t
16354 s,@build@,$build,;t t
16355 s,@build_cpu@,$build_cpu,;t t
16356 s,@build_vendor@,$build_vendor,;t t
16357 s,@build_os@,$build_os,;t t
16358 s,@host@,$host,;t t
16359 s,@host_cpu@,$host_cpu,;t t
16360 s,@host_vendor@,$host_vendor,;t t
16361 s,@host_os@,$host_os,;t t
16362 s,@PROG_EXT@,$PROG_EXT,;t t
16363 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
16364 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
16365 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16366 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
16367 s,@VERSION@,$VERSION,;t t
16368 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
16369 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
16370 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
16371 s,@PACKAGE@,$PACKAGE,;t t
16372 s,@CFG_ROOTNAME@,$CFG_ROOTNAME,;t t
16373 s,@HDR_ROOTNAME@,$HDR_ROOTNAME,;t t
16374 s,@LIB_ROOTNAME@,$LIB_ROOTNAME,;t t
16375 s,@SUB_INC@,$SUB_INC,;t t
16376 s,@CONFIG_H@,$CONFIG_H,;t t
16377 s,@ALLOCA@,$ALLOCA,;t t
16378 s,@GLIBC21@,$GLIBC21,;t t
16379 s,@LIBICONV@,$LIBICONV,;t t
16380 s,@USE_NLS@,$USE_NLS,;t t
16381 s,@MSGFMT@,$MSGFMT,;t t
16382 s,@GMSGFMT@,$GMSGFMT,;t t
16383 s,@XGETTEXT@,$XGETTEXT,;t t
16384 s,@INTLBISON@,$INTLBISON,;t t
16385 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16386 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16387 s,@CATALOGS@,$CATALOGS,;t t
16388 s,@CATOBJEXT@,$CATOBJEXT,;t t
16389 s,@GMOFILES@,$GMOFILES,;t t
16390 s,@INTLLIBS@,$INTLLIBS,;t t
16391 s,@INTLOBJS@,$INTLOBJS,;t t
16392 s,@POFILES@,$POFILES,;t t
16393 s,@POSUB@,$POSUB,;t t
16394 s,@DATADIRNAME@,$DATADIRNAME,;t t
16395 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16396 s,@GENCAT@,$GENCAT,;t t
16397 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16398 s,@NLS_TEXTDOMAIN@,$NLS_TEXTDOMAIN,;t t
16399 s,@MSG_DIR_MAKE@,$MSG_DIR_MAKE,;t t
16400 s,@SUB_MAKEFILE@,$SUB_MAKEFILE,;t t
16401 s,@INTLDIR_MAKE@,$INTLDIR_MAKE,;t t
16402 s,@GT_YES@,$GT_YES,;t t
16403 s,@GT_NO@,$GT_NO,;t t
16404 s,@LINK_PREFIX@,$LINK_PREFIX,;t t
16405 s,@ABI_VERSION@,$ABI_VERSION,;t t
16406 s,@REL_VERSION@,$REL_VERSION,;t t
16407 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
16408 s,@LIBTOOL@,$LIBTOOL,;t t
16409 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
16410 s,@LT_UNDEF@,$LT_UNDEF,;t t
16411 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
16412 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
16413 s,@LIB_CREATE@,$LIB_CREATE,;t t
16414 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
16415 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
16416 s,@LIB_PREP@,$LIB_PREP,;t t
16417 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
16418 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
16419 s,@LIB_LINK@,$LIB_LINK,;t t
16420 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
16421 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
16422 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
16423 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
16424 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
16425 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
16426 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
16427 s,@LINK_PROGS@,$LINK_PROGS,;t t
16428 s,@LINK_TESTS@,$LINK_TESTS,;t t
16429 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
16430 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
16431 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
16432 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
16433 s,@RPATH_LIST@,$RPATH_LIST,;t t
16434 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
16435 s,@DFT_LIB_SUFFIX@,$DFT_LIB_SUFFIX,;t t
16436 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
16437 s,@LIB_MODEL@,$LIB_MODEL,;t t
16438 s,@LIBTOOL_MAKE@,$LIBTOOL_MAKE,;t t
16439 s,@MAKE_NORMAL@,$MAKE_NORMAL,;t t
16440 s,@MAKE_SHARED@,$MAKE_SHARED,;t t
16441 s,@MAKE_STATIC@,$MAKE_STATIC,;t t
16442 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
16443 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
16444 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
16445 s,@PACKAGE_PREFIX@,$PACKAGE_PREFIX,;t t
16446 s,@PACKAGE_CONFIG@,$PACKAGE_CONFIG,;t t
16447 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
16448 s,@SET_SHLIB_VARS@,$SET_SHLIB_VARS,;t t
16449 s,@LIB_TARGET@,$LIB_TARGET,;t t
16454 cat >>$CONFIG_STATUS <<\EOF
16455 # Split the substitutions into bite-sized pieces for seds with
16456 # small command number limits, like on Digital OSF/1 and HP-UX.
16457 ac_max_sed_lines=48
16458 ac_sed_frag=1 # Number of current file.
16459 ac_beg=1 # First line for current file.
16460 ac_end=$ac_max_sed_lines # Line after last line for current file.
16463 while $ac_more_lines; do
16464 if test $ac_beg -gt 1; then
16465 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16467 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16469 if test ! -s $tmp/subs.frag; then
16470 ac_more_lines=false
16472 # The purpose of the label and of the branching condition is to
16473 # speed up the sed processing (if there are no `@' at all, there
16474 # is no need to browse any of the substitutions).
16475 # These are the two extra sed commands mentioned above.
16477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16478 if test -z "$ac_sed_cmds"; then
16479 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16481 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16483 ac_sed_frag=`expr $ac_sed_frag + 1`
16485 ac_end=`expr $ac_end + $ac_max_sed_lines`
16488 if test -z "$ac_sed_cmds"; then
16491 fi # test -n "$CONFIG_FILES"
16494 cat >>$CONFIG_STATUS <<\EOF
16495 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16498 - | *:- | *:-:* ) # input from stdin
16500 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16501 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16502 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16503 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16504 * ) ac_file_in=$ac_file.in ;;
16507 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16508 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16509 X"$ac_file" : 'X\(//\)[^/]' \| \
16510 X"$ac_file" : 'X\(//\)$' \| \
16511 X"$ac_file" : 'X\(/\)' \| \
16512 . : '\(.\)' 2>/dev/null ||
16514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16516 /^X\(\/\/\)$/{ s//\1/; q; }
16517 /^X\(\/\).*/{ s//\1/; q; }
16519 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16520 { case "$ac_dir" in
16521 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16525 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16526 case $as_mkdir_dir in
16527 # Skip DOS drivespec
16528 ?:) as_incr_dir=$as_mkdir_dir ;;
16530 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16531 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16536 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
16537 # A "../" for each directory in $ac_dir_suffix.
16538 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
16540 ac_dir_suffix= ac_dots=
16545 if test -z "$ac_dots"; then
16548 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
16550 [\\/]* | ?:[\\/]* )
16551 ac_srcdir=$srcdir$ac_dir_suffix;
16552 ac_top_srcdir=$srcdir ;;
16553 *) # Relative path.
16554 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
16555 ac_top_srcdir=$ac_dots$srcdir ;;
16559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16560 *) ac_INSTALL=$ac_dots$INSTALL ;;
16563 if test x"$ac_file" != x-; then
16564 { echo "$as_me:16564: creating $ac_file" >&5
16565 echo "$as_me: creating $ac_file" >&6;}
16568 # Let's still pretend it is `configure' which instantiates (i.e., don't
16569 # use $as_me), people would be surprised to read:
16570 # /* config.h. Generated automatically by config.status. */
16571 configure_input="Generated automatically from `echo $ac_file_in |
16572 sed 's,.*/,,'` by configure."
16574 # First look for the input files in the build tree, otherwise in the
16576 ac_file_inputs=`IFS=:
16577 for f in $ac_file_in; do
16579 -) echo $tmp/stdin ;;
16581 # Absolute (can't be DOS-style, as IFS=:)
16582 test -f "$f" || { { echo "$as_me:16582: error: cannot find input file: $f" >&5
16583 echo "$as_me: error: cannot find input file: $f" >&2;}
16584 { (exit 1); exit 1; }; }
16587 if test -f "$f"; then
16590 elif test -f "$srcdir/$f"; then
16595 { { echo "$as_me:16595: error: cannot find input file: $f" >&5
16596 echo "$as_me: error: cannot find input file: $f" >&2;}
16597 { (exit 1); exit 1; }; }
16600 done` || { (exit 1); exit 1; }
16602 cat >>$CONFIG_STATUS <<\EOF
16603 ac_warn_datarootdir=no
16604 if test x"$ac_file" != x-; then
16605 for ac_item in $ac_file_inputs
16607 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
16608 if test -n "$ac_seen"; then
16609 ac_used=`grep '@datarootdir@' $ac_item`
16610 if test -z "$ac_used"; then
16611 { echo "$as_me:16611: WARNING: datarootdir was used implicitly but not set:
16613 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
16615 ac_warn_datarootdir=yes
16618 ac_seen=`grep '${datarootdir}' $ac_item`
16619 if test -n "$ac_seen"; then
16620 { echo "$as_me:16620: WARNING: datarootdir was used explicitly but not set:
16622 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
16624 ac_warn_datarootdir=yes
16629 if test "x$ac_warn_datarootdir" = xyes; then
16630 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
16634 cat >>$CONFIG_STATUS <<EOF
16638 cat >>$CONFIG_STATUS <<\EOF
16640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16641 s,@configure_input@,$configure_input,;t t
16642 s,@srcdir@,$ac_srcdir,;t t
16643 s,@top_srcdir@,$ac_top_srcdir,;t t
16644 s,@INSTALL@,$ac_INSTALL,;t t
16645 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16647 if test x"$ac_file" != x-; then
16648 cp $tmp/out $ac_file
16650 for ac_name in prefix exec_prefix datarootdir
16652 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
16653 if test -n "$ac_seen"; then
16654 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
16655 if test -z "$ac_init"; then
16656 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
16657 { echo "$as_me:16657: WARNING: Variable $ac_name is used but was not set:
16659 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
16664 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
16665 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
16666 if test -s $tmp/out; then
16667 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
16668 { echo "$as_me:16668: WARNING: Some variables may not be substituted:
16670 echo "$as_me: WARNING: Some variables may not be substituted:
16680 cat >>$CONFIG_STATUS <<\EOF
16683 # CONFIG_HEADER section.
16686 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16687 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16689 # ac_d sets the value in "#define NAME VALUE" lines.
16690 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16691 ac_dB='[ ].*$,\1#\2'
16694 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16695 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16696 ac_iB='\([ ]\),\1#\2define\3'
16699 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16700 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16701 ac_uB='$,\1#\2define\3'
16705 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16708 - | *:- | *:-:* ) # input from stdin
16710 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16711 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16712 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16714 * ) ac_file_in=$ac_file.in ;;
16717 test x"$ac_file" != x- && { echo "$as_me:16717: creating $ac_file" >&5
16718 echo "$as_me: creating $ac_file" >&6;}
16720 # First look for the input files in the build tree, otherwise in the
16722 ac_file_inputs=`IFS=:
16723 for f in $ac_file_in; do
16725 -) echo $tmp/stdin ;;
16727 # Absolute (can't be DOS-style, as IFS=:)
16728 test -f "$f" || { { echo "$as_me:16728: error: cannot find input file: $f" >&5
16729 echo "$as_me: error: cannot find input file: $f" >&2;}
16730 { (exit 1); exit 1; }; }
16733 if test -f "$f"; then
16736 elif test -f "$srcdir/$f"; then
16741 { { echo "$as_me:16741: error: cannot find input file: $f" >&5
16742 echo "$as_me: error: cannot find input file: $f" >&2;}
16743 { (exit 1); exit 1; }; }
16746 done` || { (exit 1); exit 1; }
16747 # Remove the trailing spaces.
16748 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16752 # Transform confdefs.h into a list of #define's. We won't use it as a sed
16753 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
16754 # be either 'cat' or 'sort'.
16755 sort -u confdefs.h | uniq >conftest.vals
16757 # Break up conftest.vals because some shells have a limit on
16758 # the size of here documents, and old seds have small limits too.
16760 rm -f conftest.tail
16761 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
16762 while grep . conftest.vals >/dev/null
16764 # Write chunks of a limited-size here document to conftest.frag.
16765 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
16766 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
16767 echo 'CEOF' >> $CONFIG_STATUS
16768 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16769 rm -f conftest.vals
16770 mv conftest.tail conftest.vals
16772 rm -f conftest.vals
16774 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
16776 echo ' cat >> conftest.edit <<CEOF
16777 /@DEFS@/r conftest.frag
16780 sed -f conftest.edit $tmp/in > $tmp/out
16782 mv $tmp/out $tmp/in
16783 rm -f conftest.edit conftest.frag
16784 ' >> $CONFIG_STATUS
16786 cat >>$CONFIG_STATUS <<\EOF
16787 # Let's still pretend it is `configure' which instantiates (i.e., don't
16788 # use $as_me), people would be surprised to read:
16789 # /* config.h. Generated automatically by config.status. */
16790 if test x"$ac_file" = x-; then
16791 echo "/* Generated automatically by configure. */" >$tmp/config.h
16793 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
16795 cat $tmp/in >>$tmp/config.h
16797 if test x"$ac_file" != x-; then
16798 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16799 { echo "$as_me:16799: $ac_file is unchanged" >&5
16800 echo "$as_me: $ac_file is unchanged" >&6;}
16802 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16803 X"$ac_file" : 'X\(//\)[^/]' \| \
16804 X"$ac_file" : 'X\(//\)$' \| \
16805 X"$ac_file" : 'X\(/\)' \| \
16806 . : '\(.\)' 2>/dev/null ||
16808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16810 /^X\(\/\/\)$/{ s//\1/; q; }
16811 /^X\(\/\).*/{ s//\1/; q; }
16813 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16814 { case "$ac_dir" in
16815 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16819 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16820 case $as_mkdir_dir in
16821 # Skip DOS drivespec
16822 ?:) as_incr_dir=$as_mkdir_dir ;;
16824 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16825 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16832 mv $tmp/config.h $ac_file
16836 rm -f $tmp/config.h
16840 cat >>$CONFIG_STATUS <<\EOF
16842 # CONFIG_COMMANDS section.
16844 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16845 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16846 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16849 default-1 ) for ac_file in $CONFIG_FILES; do
16851 # Support "outfile[:infile[:infile...]]"
16853 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16856 # PO directories have a Makefile.in generated from Makefile.inn.
16857 case "$ac_file" in */[Mm]akefile.in)
16858 # Adjust a relative srcdir.
16859 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16860 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16861 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16862 ac_base=`basename $ac_file .in`
16863 # In autoconf-2.13 it is called $ac_given_srcdir.
16864 # In autoconf-2.50 it is called $srcdir.
16865 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16867 case "$ac_given_srcdir" in
16868 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16869 /*) top_srcdir="$ac_given_srcdir" ;;
16870 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16873 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16874 rm -f "$ac_dir/POTFILES"
16875 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16876 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16877 test -n "$as_me" && echo "$as_me: creating $ac_dir/$ac_base" || echo "creating $ac_dir/$ac_base"
16878 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/$ac_base.in" > "$ac_dir/$ac_base"
16885 cf_libname=\${LIB_BASENAME}
16886 cf_liblink=$cf_libname
16887 cf_libroot=$cf_libname
16889 if test "x$cf_cv_do_symlinks" = xyes
16891 case "x$cf_cv_shlib_version" in #(vi
16893 cf_liblink="\${LIB_ABI_NAME}"
16894 cf_libname="\${LIB_REL_NAME}"
16897 cf_liblink="\${LIB_REL_NAME}"
16898 cf_libname="\${LIB_ABI_NAME}"
16902 LIB_TARGET=$cf_libname
16904 case x$LIB_MODEL in
16905 xlibtool|xshared) #(vi
16906 cf_libdeps="\${LIBS} \${LDFLAGS}"
16913 cat >>makefile <<CF_EOF
16915 # generated by CF__ADD_SHLIB_RULES
16916 # libmodel: $LIB_MODEL
16917 # symlinks: $cf_cv_do_symlinks
16918 # shlibver: $cf_cv_shlib_version
16922 cat >>makefile <<CF_EOF
16926 cat >>makefile <<CF_EOF
16929 \$(LIBTOOL_CREATE) \${LIB_OBJECT} $cf_libdeps
16932 if test "x$cf_cv_do_symlinks" = xyes
16934 cat >>makefile <<CF_EOF
16935 \$(LN_S) $cf_libname $cf_liblink
16936 \$(LN_S) $cf_liblink $cf_libroot
16940 cat >>makefile <<CF_EOF
16943 install.libs :: \$(DESTDIR)\$(libdir)/$cf_libname
16945 \$(DESTDIR)\$(libdir)/$cf_libname :: \\
16946 \$(DESTDIR)\$(libdir) \\
16949 \$(LIBTOOL_CREATE) \${LIB_OBJECT} $cf_libdeps
16952 if test "x$cf_cv_do_symlinks" = xyes
16954 cat >>makefile <<CF_EOF
16955 cd \$(DESTDIR)\$(libdir) && (\$(LN_S) $cf_libname $cf_liblink; \$(LN_S) $cf_liblink $cf_libroot; )
16959 if test x$LIB_MODEL = xshared
16961 cat >>makefile <<CF_EOF
16962 - test -z "\$(DESTDIR)" && /sbin/ldconfig
16966 cat >>makefile <<CF_EOF
16970 @echo uninstalling \$(DESTDIR)\$(libdir)/$cf_libname
16973 if test "x$cf_cv_do_symlinks" = xyes
16975 cat >>makefile <<CF_EOF
16976 -rm -f \$(DESTDIR)\$(libdir)/$cf_libroot
16977 -rm -f \$(DESTDIR)\$(libdir)/$cf_liblink
16981 cat >>makefile <<CF_EOF
16982 -rm -f \$(DESTDIR)\$(libdir)/$cf_libname
16988 if test "x$cf_cv_do_symlinks" = xyes
16990 cat >>makefile <<CF_EOF
16996 cat >>makefile <<CF_EOF
17000 -rm -f \${LIB_OBJECT}
17001 # end generated by CF__ADD_SHLIB_RULES
17009 cat >>$CONFIG_STATUS <<\EOF
17011 { (exit 0); exit 0; }
17013 chmod +x $CONFIG_STATUS
17014 ac_clean_files=$ac_clean_files_save
17016 # configure is writing to config.log, and then calls config.status.
17017 # config.status does its own redirection, appending to config.log.
17018 # Unfortunately, on DOS this fails, as config.log is still kept open
17019 # by configure, so config.status won't be able to write to it; its
17020 # output is simply discarded. So we exec the FD to /dev/null,
17021 # effectively closing config.log, so it can be properly (re)opened and
17022 # appended to by config.status. When coming back to configure, we
17023 # need to make the FD available again.
17024 if test "$no_create" != yes; then
17027 $SHELL $CONFIG_STATUS || ac_cs_success=false
17029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17030 # would make configure fail if this is the last instruction.
17031 $ac_cs_success || { (exit 1); exit 1; }