3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-wish=fullpath allows to specify full path for Tk interpreter to
16 avoid checking, which requires X"
18 --with-install-root=path
19 allows to install catdoc into other directory
20 than compilied-in path points to"
22 --with-input=charset set default charset to expect in 8-bit word files"
24 --with-output=charset set default charset to output"
26 --disable-charset-check allow make in charsets directory to succeed
27 even if files for default charsets are not found"
29 --disable-wordview Do not install tcl-tk
32 --disable-langinfo Do not use system
33 locale for output encoding"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file=./config.cache
48 program_transform_name=s,x,x,
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host | --host | --hos | --ho)
211 -host=* | --host=* | --hos=* | --ho=*)
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
332 -site=* | --site=* | --sit=*)
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.13"
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=acconfig.h
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
544 catdoc_version=0.94.3
545 # Extract the first word of "gcc", so it can be a program name with args.
546 set dummy gcc; ac_word=$2
547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
548 echo "configure:549: checking for $ac_word" >&5
549 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
550 echo $ac_n "(cached) $ac_c" 1>&6
552 if test -n "$CC"; then
553 ac_cv_prog_CC="$CC" # Let the user override the test.
555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
557 for ac_dir in $ac_dummy; do
558 test -z "$ac_dir" && ac_dir=.
559 if test -f $ac_dir/$ac_word; then
568 if test -n "$CC"; then
569 echo "$ac_t""$CC" 1>&6
571 echo "$ac_t""no" 1>&6
574 if test -z "$CC"; then
575 # Extract the first word of "cc", so it can be a program name with args.
576 set dummy cc; ac_word=$2
577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
578 echo "configure:579: checking for $ac_word" >&5
579 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
582 if test -n "$CC"; then
583 ac_cv_prog_CC="$CC" # Let the user override the test.
585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
588 for ac_dir in $ac_dummy; do
589 test -z "$ac_dir" && ac_dir=.
590 if test -f $ac_dir/$ac_word; then
591 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
600 if test $ac_prog_rejected = yes; then
601 # We found a bogon in the path, so make sure we never use it.
602 set dummy $ac_cv_prog_CC
604 if test $# -gt 0; then
605 # We chose a different compiler from the bogus one.
606 # However, it has the same basename, so the bogon will be chosen
607 # first if we set CC to just the basename; use the full file name.
609 set dummy "$ac_dir/$ac_word" "$@"
617 if test -n "$CC"; then
618 echo "$ac_t""$CC" 1>&6
620 echo "$ac_t""no" 1>&6
623 if test -z "$CC"; then
626 # Extract the first word of "cl", so it can be a program name with args.
627 set dummy cl; ac_word=$2
628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
629 echo "configure:630: checking for $ac_word" >&5
630 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
631 echo $ac_n "(cached) $ac_c" 1>&6
633 if test -n "$CC"; then
634 ac_cv_prog_CC="$CC" # Let the user override the test.
636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
638 for ac_dir in $ac_dummy; do
639 test -z "$ac_dir" && ac_dir=.
640 if test -f $ac_dir/$ac_word; then
649 if test -n "$CC"; then
650 echo "$ac_t""$CC" 1>&6
652 echo "$ac_t""no" 1>&6
657 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
660 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
661 echo "configure:662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
665 ac_cpp='$CPP $CPPFLAGS'
666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
668 cross_compiling=$ac_cv_prog_cc_cross
670 cat > conftest.$ac_ext << EOF
672 #line 673 "configure"
673 #include "confdefs.h"
677 if { (eval echo configure:678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
678 ac_cv_prog_cc_works=yes
679 # If we can't run a trivial program, we are probably using a cross compiler.
680 if (./conftest; exit) 2>/dev/null; then
681 ac_cv_prog_cc_cross=no
683 ac_cv_prog_cc_cross=yes
686 echo "configure: failed program was:" >&5
687 cat conftest.$ac_ext >&5
688 ac_cv_prog_cc_works=no
692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
693 ac_cpp='$CPP $CPPFLAGS'
694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
696 cross_compiling=$ac_cv_prog_cc_cross
698 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
699 if test $ac_cv_prog_cc_works = no; then
700 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
703 echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
704 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
705 cross_compiling=$ac_cv_prog_cc_cross
707 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
708 echo "configure:709: checking whether we are using GNU C" >&5
709 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 cat > conftest.c <<EOF
717 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
724 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
726 if test $ac_cv_prog_gcc = yes; then
732 ac_test_CFLAGS="${CFLAGS+set}"
733 ac_save_CFLAGS="$CFLAGS"
735 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
736 echo "configure:737: checking whether ${CC-cc} accepts -g" >&5
737 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
738 echo $ac_n "(cached) $ac_c" 1>&6
740 echo 'void f(){}' > conftest.c
741 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
750 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
751 if test "$ac_test_CFLAGS" = set; then
752 CFLAGS="$ac_save_CFLAGS"
753 elif test $ac_cv_prog_cc_g = yes; then
754 if test "$GCC" = yes; then
760 if test "$GCC" = yes; then
768 *djgpp*) ac_cv_c_bigendian=no
769 ac_cv_func_setvbuf_reversed=no
774 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
775 echo "configure:776: checking whether byte ordering is bigendian" >&5
776 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 ac_cv_c_bigendian=unknown
780 # See if sys/param.h defines the BYTE_ORDER macro.
781 cat > conftest.$ac_ext <<EOF
782 #line 783 "configure"
783 #include "confdefs.h"
784 #include <sys/types.h>
785 #include <sys/param.h>
788 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
793 if { (eval echo configure:794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795 # It does; now see whether it defined to BIG_ENDIAN or not.
796 cat > conftest.$ac_ext <<EOF
797 #line 798 "configure"
798 #include "confdefs.h"
799 #include <sys/types.h>
800 #include <sys/param.h>
803 #if BYTE_ORDER != BIG_ENDIAN
808 if { (eval echo configure:809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
810 ac_cv_c_bigendian=yes
812 echo "configure: failed program was:" >&5
813 cat conftest.$ac_ext >&5
819 echo "configure: failed program was:" >&5
820 cat conftest.$ac_ext >&5
823 if test $ac_cv_c_bigendian = unknown; then
824 if test "$cross_compiling" = yes; then
825 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
827 cat > conftest.$ac_ext <<EOF
828 #line 829 "configure"
829 #include "confdefs.h"
831 /* Are we little or big endian? From Harbison&Steele. */
835 char c[sizeof (long)];
838 exit (u.c[sizeof (long) - 1] == 1);
841 if { (eval echo configure:842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
845 echo "configure: failed program was:" >&5
846 cat conftest.$ac_ext >&5
848 ac_cv_c_bigendian=yes
856 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
857 if test $ac_cv_c_bigendian = yes; then
858 cat >> confdefs.h <<\EOF
859 #define WORDS_BIGENDIAN 1
865 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
866 if test -f $ac_dir/install-sh; then
868 ac_install_sh="$ac_aux_dir/install-sh -c"
870 elif test -f $ac_dir/install.sh; then
872 ac_install_sh="$ac_aux_dir/install.sh -c"
876 if test -z "$ac_aux_dir"; then
877 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
879 ac_config_guess=$ac_aux_dir/config.guess
880 ac_config_sub=$ac_aux_dir/config.sub
881 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
883 # Find a good install program. We prefer a C program (faster),
884 # so one script is as good as another. But avoid the broken or
885 # incompatible versions:
886 # SysV /etc/install, /usr/sbin/install
887 # SunOS /usr/etc/install
890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
893 # ./install, which can be erroneously created by make from ./install.sh.
894 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
895 echo "configure:896: checking for a BSD compatible install" >&5
896 if test -z "$INSTALL"; then
897 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
901 for ac_dir in $PATH; do
902 # Account for people who put trailing slashes in PATH elements.
904 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
906 # OSF1 and SCO ODT 3.0 have their own names for install.
907 # Don't use installbsd from OSF since it installs stuff as root
909 for ac_prog in ginstall scoinst install; do
910 if test -f $ac_dir/$ac_prog; then
911 if test $ac_prog = install &&
912 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
913 # AIX install. It has an incompatible calling convention.
916 ac_cv_path_install="$ac_dir/$ac_prog -c"
927 if test "${ac_cv_path_install+set}" = set; then
928 INSTALL="$ac_cv_path_install"
930 # As a last resort, use the slow shell script. We don't cache a
931 # path for INSTALL within a source directory, because that will
932 # break other packages using the cache if that directory is
933 # removed, or if the path is relative.
934 INSTALL="$ac_install_sh"
937 echo "$ac_t""$INSTALL" 1>&6
939 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
940 # It thinks the first close brace ends the variable substitution.
941 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
943 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
945 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
947 if test "$enable_wordview" != "no" ;then
948 # Check whether --with-wish or --without-wish was given.
949 if test "${with_wish+set}" = set; then
954 for ac_prog in wish wish8.1 wish8.2 wish8.3 wish8.4
956 # Extract the first word of "$ac_prog", so it can be a program name with args.
957 set dummy $ac_prog; ac_word=$2
958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
959 echo "configure:960: checking for $ac_word" >&5
960 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
965 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
968 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
973 for ac_dir in $ac_dummy; do
974 test -z "$ac_dir" && ac_dir=.
975 if test -f $ac_dir/$ac_word; then
976 ac_cv_path_WISH="$ac_dir/$ac_word"
984 WISH="$ac_cv_path_WISH"
985 if test -n "$WISH"; then
986 echo "$ac_t""$WISH" 1>&6
988 echo "$ac_t""no" 1>&6
991 test -n "$WISH" && break
994 if test -n "$WISH"; then
995 echo $ac_n "checking checking if wish version is 8.1 or above ""... $ac_c" 1>&6
996 echo "configure:997: checking checking if wish version is 8.1 or above " >&5
997 if eval "test \"`echo '$''{'GOOD_WISH'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 echo 'if {[info tclversion]>=7.6} {
1001 puts -nonewline "yes"
1003 puts -nonewline "no"
1006 GOOD_WISH=`$WISH tmp$$.tcl`
1011 echo "$ac_t""$GOOD_WISH" 1>&6
1012 if test "$GOOD_WISH" != yes; then
1020 # Check whether --with-install-root or --without-install-root was given.
1021 if test "${with_install_root+set}" = set; then
1022 withval="$with_install_root"
1023 installroot=$withval
1026 replsuffix=.replchars
1027 specsuffix=.specchars
1028 targetcharset=koi8-r
1029 sourcecharset=cp1251
1030 # Check whether --with-input or --without-input was given.
1031 if test "${with_input+set}" = set; then
1032 withval="$with_input"
1033 sourcecharset=$withval
1035 sourcecharset=cp1251
1038 # Check whether --with-output or --without-output was given.
1039 if test "${with_output+set}" = set; then
1040 withval="$with_output"
1041 targetcharset=$withval
1043 targetcharset=koi8-r
1046 if test "$targetcharset" = "utf-8"; then
1047 charsetcheck="$sourcecharset.txt"
1049 charsetcheck="$sourcecharset.txt $targetcharset.txt"
1051 # Check whether --enable-charset-check or --disable-charset-check was given.
1052 if test "${enable_charset_check+set}" = set; then
1053 enableval="$enable_charset_check"
1054 if test "$enable_charset_check" = no;
1060 test -z "$manext" && manext=.1
1061 test -z "$man1dir" && man1dir=\${prefix}/man/man1
1062 if test -n "$WISH"; then
1063 # Check whether --enable-wordview or --disable-wordview was given.
1064 if test "${enable_wordview+set}" = set; then
1065 enableval="$enable_wordview"
1070 if test "$enable_wordview" = no; then
1071 installtargets=install-catdoc
1072 buildtargets="catdoc xls2csv catppt"
1074 installtargets="install-catdoc install-wordview"
1075 buildtargets="catdoc xls2csv catppt wordview"
1078 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1079 echo "configure:1080: checking how to run the C preprocessor" >&5
1080 # On Suns, sometimes $CPP names a directory.
1081 if test -n "$CPP" && test -d "$CPP"; then
1084 if test -z "$CPP"; then
1085 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 # This must be in double quotes, not single quotes, because CPP may get
1089 # substituted into the Makefile and "${CC-cc}" will confuse make.
1091 # On the NeXT, cc -E runs the code through the compiler's parser,
1092 # not just through cpp.
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1100 { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1102 if test -z "$ac_err"; then
1106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
1109 CPP="${CC-cc} -E -traditional-cpp"
1110 cat > conftest.$ac_ext <<EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1117 { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1119 if test -z "$ac_err"; then
1123 echo "configure: failed program was:" >&5
1124 cat conftest.$ac_ext >&5
1126 CPP="${CC-cc} -nologo -E"
1127 cat > conftest.$ac_ext <<EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1134 { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1136 if test -z "$ac_err"; then
1140 echo "configure: failed program was:" >&5
1141 cat conftest.$ac_ext >&5
1150 ac_cv_prog_CPP="$CPP"
1152 CPP="$ac_cv_prog_CPP"
1154 ac_cv_prog_CPP="$CPP"
1156 echo "$ac_t""$CPP" 1>&6
1158 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1159 echo "configure:1160: checking for ANSI C header files" >&5
1160 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 cat > conftest.$ac_ext <<EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1172 { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1174 if test -z "$ac_err"; then
1176 ac_cv_header_stdc=yes
1179 echo "configure: failed program was:" >&5
1180 cat conftest.$ac_ext >&5
1182 ac_cv_header_stdc=no
1186 if test $ac_cv_header_stdc = yes; then
1187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1188 cat > conftest.$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1194 egrep "memchr" >/dev/null 2>&1; then
1198 ac_cv_header_stdc=no
1204 if test $ac_cv_header_stdc = yes; then
1205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1212 egrep "free" >/dev/null 2>&1; then
1216 ac_cv_header_stdc=no
1222 if test $ac_cv_header_stdc = yes; then
1223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1224 if test "$cross_compiling" = yes; then
1227 cat > conftest.$ac_ext <<EOF
1228 #line 1229 "configure"
1229 #include "confdefs.h"
1231 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1232 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1234 int main () { int i; for (i = 0; i < 256; i++)
1235 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1246 ac_cv_header_stdc=no
1254 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1255 if test $ac_cv_header_stdc = yes; then
1256 cat >> confdefs.h <<\EOF
1257 #define STDC_HEADERS 1
1262 for ac_hdr in unistd.h
1264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_hdr" >&5
1267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftest.$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276 { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1278 if test -z "$ac_err"; then
1280 eval "ac_cv_header_$ac_safe=yes"
1283 echo "configure: failed program was:" >&5
1284 cat conftest.$ac_ext >&5
1286 eval "ac_cv_header_$ac_safe=no"
1290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1291 echo "$ac_t""yes" 1>&6
1292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1293 cat >> confdefs.h <<EOF
1294 #define $ac_tr_hdr 1
1298 echo "$ac_t""no" 1>&6
1303 if test -z "$enable_langinfo"; then
1306 # Check whether --enable-langinfo or --disable-langinfo was given.
1307 if test "${enable_langinfo+set}" = set; then
1308 enableval="$enable_langinfo"
1310 if test "$enable_langinfo" = yes; then
1311 ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
1312 echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
1313 echo "configure:1314: checking for langinfo.h" >&5
1314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1320 #include <langinfo.h>
1322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1323 { (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1325 if test -z "$ac_err"; then
1327 eval "ac_cv_header_$ac_safe=yes"
1330 echo "configure: failed program was:" >&5
1331 cat conftest.$ac_ext >&5
1333 eval "ac_cv_header_$ac_safe=no"
1337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1338 echo "$ac_t""yes" 1>&6
1340 echo $ac_n "checking For nl_langinfo(CODESET)""... $ac_c" 1>&6
1341 echo "configure:1342: checking For nl_langinfo(CODESET)" >&5
1342 cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1345 #include <langinfo.h>
1347 nl_langinfo(CODESET);
1350 if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1353 cat >> confdefs.h <<\EOF
1354 #define HAVE_LANGINFO 1
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1366 echo "$ac_t""$enable_langinfo" 1>&6
1369 echo "$ac_t""no" 1>&6
1379 echo $ac_n "checking for working const""... $ac_c" 1>&6
1380 echo "configure:1381: checking for working const" >&5
1381 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1390 /* Ultrix mips cc rejects this. */
1391 typedef int charset[2]; const charset x;
1392 /* SunOS 4.1.1 cc rejects this. */
1393 char const *const *ccp;
1395 /* NEC SVR4.0.2 mips cc rejects this. */
1396 struct point {int x, y;};
1397 static struct point const zero = {0,0};
1398 /* AIX XL C 1.02.0.0 rejects this.
1399 It does not let you subtract one const X* pointer from another in an arm
1400 of an if-expression whose if-part is not a constant expression */
1401 const char *g = "string";
1402 ccp = &g + (g ? g-g : 0);
1403 /* HPUX 7.0 cc rejects these. */
1406 ccp = (char const *const *) p;
1407 { /* SCO 3.2v4 cc rejects this. */
1409 char const *s = 0 ? (char *) 0 : (char const *) 0;
1413 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1415 const int *foo = &x[0];
1418 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1419 typedef const int *iptr;
1423 { /* AIX XL C 1.02.0.0 rejects this saying
1424 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1425 struct s { int j; const int *ap[3]; };
1426 struct s *b; b->j = 5;
1428 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1434 if { (eval echo configure:1435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1438 echo "configure: failed program was:" >&5
1439 cat conftest.$ac_ext >&5
1446 echo "$ac_t""$ac_cv_c_const" 1>&6
1447 if test $ac_cv_c_const = no; then
1448 cat >> confdefs.h <<\EOF
1455 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
1456 echo "configure:1457: checking whether setvbuf arguments are reversed" >&5
1457 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 if test "$cross_compiling" = yes; then
1461 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1467 /* If setvbuf has the reversed format, exit 0. */
1469 /* This call has the arguments reversed.
1470 A reversed system may check and see that the address of main
1471 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
1472 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
1475 exit(0); /* Non-reversed systems segv here. */
1478 if { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1480 ac_cv_func_setvbuf_reversed=yes
1482 echo "configure: failed program was:" >&5
1483 cat conftest.$ac_ext >&5
1485 ac_cv_func_setvbuf_reversed=no
1490 rm -f core core.* *.core
1493 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
1494 if test $ac_cv_func_setvbuf_reversed = yes; then
1495 cat >> confdefs.h <<\EOF
1496 #define SETVBUF_REVERSED 1
1502 if test "$GCC" = "yes"; then
1503 CFLAGS="-g -O2 -Wall"
1506 cat >> confdefs.h <<EOF
1507 #define SOURCE_CHARSET "$sourcecharset"
1510 cat >> confdefs.h <<EOF
1511 #define TARGET_CHARSET "$targetcharset"
1514 cat >> confdefs.h <<EOF
1515 #define SPEC_EXT "$specsuffix"
1518 cat >> confdefs.h <<EOF
1519 #define REPL_EXT "$replsuffix"
1522 cat >> confdefs.h <<EOF
1523 #define UNKNOWN_CHAR "?"
1526 for ac_func in strdup strtol
1528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1529 echo "configure:1530: checking for $ac_func" >&5
1530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1536 /* System header to define __stub macros and hopefully few prototypes,
1537 which can conflict with char $ac_func(); below. */
1539 /* Override any gcc2 internal prototype to avoid an error. */
1540 /* We use char because int might match the return type of a gcc2
1541 builtin and then its argument prototype would still apply. */
1546 /* The GNU C library defines this for functions which it implements
1547 to always fail with ENOSYS. Some functions are actually named
1548 something starting with __ and the normal name is an alias. */
1549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1559 eval "ac_cv_func_$ac_func=yes"
1561 echo "configure: failed program was:" >&5
1562 cat conftest.$ac_ext >&5
1564 eval "ac_cv_func_$ac_func=no"
1569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1570 echo "$ac_t""yes" 1>&6
1571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1572 cat >> confdefs.h <<EOF
1573 #define $ac_tr_func 1
1577 echo "$ac_t""no" 1>&6
1581 for ac_func in strftime
1583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1584 echo "configure:1585: checking for $ac_func" >&5
1585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 /* System header to define __stub macros and hopefully few prototypes,
1592 which can conflict with char $ac_func(); below. */
1594 /* Override any gcc2 internal prototype to avoid an error. */
1595 /* We use char because int might match the return type of a gcc2
1596 builtin and then its argument prototype would still apply. */
1601 /* The GNU C library defines this for functions which it implements
1602 to always fail with ENOSYS. Some functions are actually named
1603 something starting with __ and the normal name is an alias. */
1604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1614 eval "ac_cv_func_$ac_func=yes"
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1619 eval "ac_cv_func_$ac_func=no"
1624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1627 cat >> confdefs.h <<EOF
1628 #define $ac_tr_func 1
1632 echo "$ac_t""no" 1>&6
1633 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
1653 cat > confcache <<\EOF
1654 # This file is a shell script that caches the results of configure
1655 # tests run on this system so they can be shared between configure
1656 # scripts and configure runs. It is not useful on other systems.
1657 # If it contains results you don't want to keep, you may remove or edit it.
1659 # By default, configure uses ./config.cache as the cache file,
1660 # creating it if it does not exist already. You can give configure
1661 # the --cache-file=FILE option to use a different cache file; that is
1662 # what configure does when it calls configure scripts in
1663 # subdirectories, so they share the cache.
1664 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1665 # config.status only pays attention to the cache file if you give it the
1666 # --recheck option to rerun configure.
1669 # The following way of writing the cache mishandles newlines in values,
1670 # but we know of no workaround that is simple, portable, and efficient.
1671 # So, don't put newlines in cache variables' values.
1672 # Ultrix sh set writes to stderr and can't be redirected directly,
1673 # and sets the high bit in the cache file unless we assign to the vars.
1675 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1677 # `set' does not quote correctly, so add quotes (double-quote substitution
1678 # turns \\\\ into \\, and sed turns \\ into \).
1680 -e "s/'/'\\\\''/g" \
1681 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1684 # `set' quotes correctly as required by POSIX, so do not add quotes.
1685 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1688 if cmp -s $cache_file confcache; then
1691 if test -w $cache_file; then
1692 echo "updating cache $cache_file"
1693 cat confcache > $cache_file
1695 echo "not updating unwritable cache $cache_file"
1700 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1703 # Let make expand exec_prefix.
1704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1706 # Any assignment to VPATH causes Sun make to only execute
1707 # the first set of double-colon rules, so remove it if not needed.
1708 # If there is a colon in the path, we need to keep it.
1709 if test "x$srcdir" = x.; then
1710 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1713 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1715 DEFS=-DHAVE_CONFIG_H
1717 # Without the "./", some shells look in PATH for config.status.
1718 : ${CONFIG_STATUS=./config.status}
1720 echo creating $CONFIG_STATUS
1721 rm -f $CONFIG_STATUS
1722 cat > $CONFIG_STATUS <<EOF
1724 # Generated automatically by configure.
1725 # Run this file to recreate the current configuration.
1726 # This directory was configured as follows,
1727 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1729 # $0 $ac_configure_args
1731 # Compiler output produced by configure, useful for debugging
1732 # configure, is in ./config.log if it exists.
1734 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1737 case "\$ac_option" in
1738 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1739 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1740 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1741 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1742 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1744 -help | --help | --hel | --he | --h)
1745 echo "\$ac_cs_usage"; exit 0 ;;
1746 *) echo "\$ac_cs_usage"; exit 1 ;;
1750 ac_given_srcdir=$srcdir
1751 ac_given_INSTALL="$INSTALL"
1753 trap 'rm -fr `echo "doc/Makefile charsets/Makefile src/Makefile Makefile doc/catdoc.1 doc/xls2csv.1 doc/wordview.1 doc/catppt.1 src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1755 cat >> $CONFIG_STATUS <<EOF
1757 # Protect against being on the right side of a sed subst in config.status.
1758 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1759 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1763 s%@CFLAGS@%$CFLAGS%g
1764 s%@CPPFLAGS@%$CPPFLAGS%g
1765 s%@CXXFLAGS@%$CXXFLAGS%g
1766 s%@FFLAGS@%$FFLAGS%g
1768 s%@LDFLAGS@%$LDFLAGS%g
1770 s%@exec_prefix@%$exec_prefix%g
1771 s%@prefix@%$prefix%g
1772 s%@program_transform_name@%$program_transform_name%g
1773 s%@bindir@%$bindir%g
1774 s%@sbindir@%$sbindir%g
1775 s%@libexecdir@%$libexecdir%g
1776 s%@datadir@%$datadir%g
1777 s%@sysconfdir@%$sysconfdir%g
1778 s%@sharedstatedir@%$sharedstatedir%g
1779 s%@localstatedir@%$localstatedir%g
1780 s%@libdir@%$libdir%g
1781 s%@includedir@%$includedir%g
1782 s%@oldincludedir@%$oldincludedir%g
1783 s%@infodir@%$infodir%g
1784 s%@mandir@%$mandir%g
1786 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1787 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1788 s%@INSTALL_DATA@%$INSTALL_DATA%g
1791 s%@LIBOBJS@%$LIBOBJS%g
1792 s%@specsuffix@%$specsuffix%g
1793 s%@replsuffix@%$replsuffix%g
1794 s%@buildtargets@%$buildtargets%g
1795 s%@installtargets@%$installtargets%g
1796 s%@targetcharset@%$targetcharset%g
1797 s%@sourcecharset@%$sourcecharset%g
1798 s%@man1dir@%$man1dir%g
1799 s%@manext@%$manext%g
1800 s%@charsetcheck@%$charsetcheck%g
1801 s%@installroot@%$installroot%g
1802 s%@catdoc_version@%$catdoc_version%g
1803 s%@WORDS_BIGENDIAN DEFS@%$WORDS_BIGENDIAN DEFS%g
1808 cat >> $CONFIG_STATUS <<\EOF
1810 # Split the substitutions into bite-sized pieces for seds with
1811 # small command number limits, like on Digital OSF/1 and HP-UX.
1812 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1813 ac_file=1 # Number of current file.
1814 ac_beg=1 # First line for current file.
1815 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1818 while $ac_more_lines; do
1819 if test $ac_beg -gt 1; then
1820 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1822 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1824 if test ! -s conftest.s$ac_file; then
1826 rm -f conftest.s$ac_file
1828 if test -z "$ac_sed_cmds"; then
1829 ac_sed_cmds="sed -f conftest.s$ac_file"
1831 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1833 ac_file=`expr $ac_file + 1`
1835 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1838 if test -z "$ac_sed_cmds"; then
1843 cat >> $CONFIG_STATUS <<EOF
1845 CONFIG_FILES=\${CONFIG_FILES-"doc/Makefile charsets/Makefile src/Makefile Makefile doc/catdoc.1 doc/xls2csv.1 doc/wordview.1 doc/catppt.1"}
1847 cat >> $CONFIG_STATUS <<\EOF
1848 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1851 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1852 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1853 *) ac_file_in="${ac_file}.in" ;;
1856 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1858 # Remove last slash and all that follows it. Not all systems have dirname.
1859 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1860 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1861 # The file is in a subdirectory.
1862 test ! -d "$ac_dir" && mkdir "$ac_dir"
1863 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1864 # A "../" for each directory in $ac_dir_suffix.
1865 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1867 ac_dir_suffix= ac_dots=
1870 case "$ac_given_srcdir" in
1872 if test -z "$ac_dots"; then top_srcdir=.
1873 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1874 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1876 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1877 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1880 case "$ac_given_INSTALL" in
1881 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1882 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1885 echo creating "$ac_file"
1887 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1889 *Makefile*) ac_comsub="1i\\
1890 # $configure_input" ;;
1894 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1896 s%@configure_input@%$configure_input%g
1897 s%@srcdir@%$srcdir%g
1898 s%@top_srcdir@%$top_srcdir%g
1899 s%@INSTALL@%$INSTALL%g
1900 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1904 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1905 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1907 # ac_d sets the value in "#define NAME VALUE" lines.
1908 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1909 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1912 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1913 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1914 ac_uB='\([ ]\)%\1#\2define\3'
1917 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1918 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1919 ac_eB='$%\1#\2define\3'
1923 if test "${CONFIG_HEADERS+set}" != set; then
1925 cat >> $CONFIG_STATUS <<EOF
1926 CONFIG_HEADERS="src/config.h"
1928 cat >> $CONFIG_STATUS <<\EOF
1930 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1931 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1933 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1934 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1935 *) ac_file_in="${ac_file}.in" ;;
1938 echo creating $ac_file
1940 rm -f conftest.frag conftest.in conftest.out
1941 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1942 cat $ac_file_inputs > conftest.in
1946 # Transform confdefs.h into a sed script conftest.vals that substitutes
1947 # the proper values into config.h.in to produce config.h. And first:
1948 # Protect against being on the right side of a sed subst in config.status.
1949 # Protect against being in an unquoted here document in config.status.
1951 cat > conftest.hdr <<\EOF
1954 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1958 sed -n -f conftest.hdr confdefs.h > conftest.vals
1961 # This sed command replaces #undef with comments. This is necessary, for
1962 # example, in the case of _POSIX_SOURCE, which is predefined and required
1963 # on some systems where configure will not decide to define it.
1964 cat >> conftest.vals <<\EOF
1965 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1968 # Break up conftest.vals because some shells have a limit on
1969 # the size of here documents, and old seds have small limits too.
1974 ac_lines=`grep -c . conftest.vals`
1975 # grep -c gives empty output for an empty file on some AIX systems.
1976 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1977 # Write a limited-size here document to conftest.frag.
1978 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1979 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1981 sed -f conftest.frag conftest.in > conftest.out
1983 mv conftest.out conftest.in
1985 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1987 mv conftest.tail conftest.vals
1991 cat >> $CONFIG_STATUS <<\EOF
1992 rm -f conftest.frag conftest.h
1993 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1994 cat conftest.in >> conftest.h
1996 if cmp -s $ac_file conftest.h 2>/dev/null; then
1997 echo "$ac_file is unchanged"
2000 # Remove last slash and all that follows it. Not all systems have dirname.
2001 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2002 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2003 # The file is in a subdirectory.
2004 test ! -d "$ac_dir" && mkdir "$ac_dir"
2007 mv conftest.h $ac_file
2012 cat >> $CONFIG_STATUS <<EOF
2015 cat >> $CONFIG_STATUS <<\EOF
2019 chmod +x $CONFIG_STATUS
2020 rm -fr confdefs* $ac_clean_files
2021 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1