o Changed \n[#DRAFT] and \n[#REVISION] to strings \*[$DRAFT] and
[s-roff.git] / configure
blobc15d25576526bd448befe08a93aeb99429a59021
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
46 done
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51 else
52 as_expr=false
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57 else
58 as_basename=false
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
93 rm -f conftest.sh
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149 done
151 esac
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193 else
194 as_expr=false
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210 else
211 as_ln_s='cp -p'
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217 else
218 as_mkdir_p=false
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
234 IFS=" $as_nl"
236 # CDPATH.
237 $as_unset CDPATH
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
245 exec 6>&1
248 # Initializations.
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
252 cross_compiling=no
253 subdirs=
254 MFLAGS=
255 MAKEFLAGS=
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
264 PACKAGE_NAME=
265 PACKAGE_TARNAME=
266 PACKAGE_VERSION=
267 PACKAGE_STRING=
268 PACKAGE_BUGREPORT=
270 ac_unique_file="src/roff/groff/groff.cpp"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
273 #include <stdio.h>
274 #if HAVE_SYS_TYPES_H
275 # include <sys/types.h>
276 #endif
277 #if HAVE_SYS_STAT_H
278 # include <sys/stat.h>
279 #endif
280 #if STDC_HEADERS
281 # include <stdlib.h>
282 # include <stddef.h>
283 #else
284 # if HAVE_STDLIB_H
285 # include <stdlib.h>
286 # endif
287 #endif
288 #if HAVE_STRING_H
289 # if !STDC_HEADERS && HAVE_MEMORY_H
290 # include <memory.h>
291 # endif
292 # include <string.h>
293 #endif
294 #if HAVE_STRINGS_H
295 # include <strings.h>
296 #endif
297 #if HAVE_INTTYPES_H
298 # include <inttypes.h>
299 #else
300 # if HAVE_STDINT_H
301 # include <stdint.h>
302 # endif
303 #endif
304 #if HAVE_UNISTD_H
305 # include <unistd.h>
306 #endif"
308 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS groff_top_builddir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD CPP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap pnmcut pnmcrop pnmtopng gs psselect pnmtops make_html make_install_html pnmtops_nosetpage LTLIBOBJS'
309 ac_subst_files=''
311 # Initialize some variables set by options.
312 ac_init_help=
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
316 cache_file=/dev/null
317 exec_prefix=NONE
318 no_create=
319 no_recursion=
320 prefix=NONE
321 program_prefix=NONE
322 program_suffix=NONE
323 program_transform_name=s,x,x,
324 silent=
325 site=
326 srcdir=
327 verbose=
328 x_includes=NONE
329 x_libraries=NONE
331 # Installation directory options.
332 # These are left unexpanded so users can "make install exec_prefix=/foo"
333 # and all the variables that are supposed to be based on exec_prefix
334 # by default will actually change.
335 # Use braces instead of parens because sh, perl, etc. also accept them.
336 bindir='${exec_prefix}/bin'
337 sbindir='${exec_prefix}/sbin'
338 libexecdir='${exec_prefix}/libexec'
339 datadir='${prefix}/share'
340 sysconfdir='${prefix}/etc'
341 sharedstatedir='${prefix}/com'
342 localstatedir='${prefix}/var'
343 libdir='${exec_prefix}/lib'
344 includedir='${prefix}/include'
345 oldincludedir='/usr/include'
346 infodir='${prefix}/info'
347 mandir='${prefix}/man'
349 ac_prev=
350 for ac_option
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
355 ac_prev=
356 continue
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 # Accept the important Cygnus configure options, so we can diagnose typos.
363 case $ac_option in
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
366 ac_prev=bindir ;;
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
368 bindir=$ac_optarg ;;
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
380 cache_file=$ac_optarg ;;
382 --config-cache | -C)
383 cache_file=config.cache ;;
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386 ac_prev=datadir ;;
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388 | --da=*)
389 datadir=$ac_optarg ;;
391 -disable-* | --disable-*)
392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
393 # Reject names that are not valid shell variable names.
394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
400 -enable-* | --enable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 case $ac_option in
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "enable_$ac_feature='$ac_optarg'" ;;
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
420 exec_prefix=$ac_optarg ;;
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
424 with_gas=yes ;;
426 -help | --help | --hel | --he | -h)
427 ac_init_help=long ;;
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
443 includedir=$ac_optarg ;;
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
446 ac_prev=infodir ;;
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
450 -libdir | --libdir | --libdi | --libd)
451 ac_prev=libdir ;;
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
453 libdir=$ac_optarg ;;
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
460 libexecdir=$ac_optarg ;;
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
469 localstatedir=$ac_optarg ;;
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472 ac_prev=mandir ;;
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474 mandir=$ac_optarg ;;
476 -nfp | --nfp | --nf)
477 # Obsolete; use --without-fp.
478 with_fp=no ;;
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
482 no_create=yes ;;
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486 no_recursion=yes ;;
488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
495 oldincludedir=$ac_optarg ;;
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498 ac_prev=prefix ;;
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
500 prefix=$ac_optarg ;;
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
507 program_prefix=$ac_optarg ;;
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
514 program_suffix=$ac_optarg ;;
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
531 program_transform_name=$ac_optarg ;;
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
535 silent=yes ;;
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538 ac_prev=sbindir ;;
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540 | --sbi=* | --sb=*)
541 sbindir=$ac_optarg ;;
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
546 | --sha | --sh)
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551 | --sha=* | --sh=*)
552 sharedstatedir=$ac_optarg ;;
554 -site | --site | --sit)
555 ac_prev=site ;;
556 -site=* | --site=* | --sit=*)
557 site=$ac_optarg ;;
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560 ac_prev=srcdir ;;
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
562 srcdir=$ac_optarg ;;
564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
569 sysconfdir=$ac_optarg ;;
571 -target | --target | --targe | --targ | --tar | --ta | --t)
572 ac_prev=target_alias ;;
573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
574 target_alias=$ac_optarg ;;
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
577 verbose=yes ;;
579 -version | --version | --versio | --versi | --vers | -V)
580 ac_init_version=: ;;
582 -with-* | --with-*)
583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
588 ac_package=`echo $ac_package| sed 's/-/_/g'`
589 case $ac_option in
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591 *) ac_optarg=yes ;;
592 esac
593 eval "with_$ac_package='$ac_optarg'" ;;
595 -without-* | --without-*)
596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
604 --x)
605 # Obsolete; use --with-x.
606 with_x=yes ;;
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
613 x_includes=$ac_optarg ;;
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
620 x_libraries=$ac_optarg ;;
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
627 *=*)
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
635 export $ac_envvar ;;
638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
645 esac
646 done
648 if test -n "$ac_prev"; then
649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
657 eval ac_val=$`echo $ac_var`
658 case $ac_val in
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
662 esac
663 done
665 # Be sure to have absolute paths.
666 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
669 eval ac_val=$`echo $ac_var`
670 case $ac_val in
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
674 esac
675 done
677 # There might be people who depend on the old broken behavior: `$host'
678 # used to hold the argument of --host etc.
679 # FIXME: To remove some day.
680 build=$build_alias
681 host=$host_alias
682 target=$target_alias
684 # FIXME: To remove some day.
685 if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
691 cross_compiling=yes
695 ac_tool_prefix=
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 test "$silent" = yes && exec 6>/dev/null
701 # Find the source files, if location was not specified.
702 if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
711 echo X"$0" |
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
716 s/.*/./; q'`
717 srcdir=$ac_confdir
718 if test ! -r $srcdir/$ac_unique_file; then
719 srcdir=..
721 else
722 ac_srcdir_defaulted=no
724 if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
727 { (exit 1); exit 1; }; }
728 else
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
733 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
736 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737 ac_env_build_alias_set=${build_alias+set}
738 ac_env_build_alias_value=$build_alias
739 ac_cv_env_build_alias_set=${build_alias+set}
740 ac_cv_env_build_alias_value=$build_alias
741 ac_env_host_alias_set=${host_alias+set}
742 ac_env_host_alias_value=$host_alias
743 ac_cv_env_host_alias_set=${host_alias+set}
744 ac_cv_env_host_alias_value=$host_alias
745 ac_env_target_alias_set=${target_alias+set}
746 ac_env_target_alias_value=$target_alias
747 ac_cv_env_target_alias_set=${target_alias+set}
748 ac_cv_env_target_alias_value=$target_alias
749 ac_env_CC_set=${CC+set}
750 ac_env_CC_value=$CC
751 ac_cv_env_CC_set=${CC+set}
752 ac_cv_env_CC_value=$CC
753 ac_env_CFLAGS_set=${CFLAGS+set}
754 ac_env_CFLAGS_value=$CFLAGS
755 ac_cv_env_CFLAGS_set=${CFLAGS+set}
756 ac_cv_env_CFLAGS_value=$CFLAGS
757 ac_env_LDFLAGS_set=${LDFLAGS+set}
758 ac_env_LDFLAGS_value=$LDFLAGS
759 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_cv_env_LDFLAGS_value=$LDFLAGS
761 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762 ac_env_CPPFLAGS_value=$CPPFLAGS
763 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765 ac_env_CXX_set=${CXX+set}
766 ac_env_CXX_value=$CXX
767 ac_cv_env_CXX_set=${CXX+set}
768 ac_cv_env_CXX_value=$CXX
769 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
770 ac_env_CXXFLAGS_value=$CXXFLAGS
771 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
772 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
779 # Report the --help message.
781 if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785 \`configure' configures this package to adapt to many kinds of systems.
787 Usage: $0 [OPTION]... [VAR=VALUE]...
789 To assign environment variables (e.g., CC, CFLAGS...), specify them as
790 VAR=VALUE. See below for descriptions of some of the useful variables.
792 Defaults for the options are specified in brackets.
794 Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 _ACEOF
807 cat <<_ACEOF
808 Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
814 By default, \`make install' will install all the files in
815 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817 for instance \`--prefix=\$HOME'.
819 For better control, use the options below.
821 Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
834 _ACEOF
836 cat <<\_ACEOF
837 _ACEOF
840 if test -n "$ac_init_help"; then
842 cat <<\_ACEOF
844 Some influential environment variables:
845 CC C compiler command
846 CFLAGS C compiler flags
847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848 nonstandard directory <lib dir>
849 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850 headers in a nonstandard directory <include dir>
851 CXX C++ compiler command
852 CXXFLAGS C++ compiler flags
853 CPP C preprocessor
855 Use these variables to override the choices made by `configure' or to help
856 it to find libraries and programs with nonstandard names/locations.
858 _ACEOF
861 if test "$ac_init_help" = "recursive"; then
862 # If there are subdirs, report their specific --help.
863 ac_popdir=`pwd`
864 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
865 test -d $ac_dir || continue
866 ac_builddir=.
868 if test "$ac_dir" != .; then
869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
870 # A "../" for each directory in $ac_dir_suffix.
871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
872 else
873 ac_dir_suffix= ac_top_builddir=
876 case $srcdir in
877 .) # No --srcdir option. We are building in place.
878 ac_srcdir=.
879 if test -z "$ac_top_builddir"; then
880 ac_top_srcdir=.
881 else
882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
883 fi ;;
884 [\\/]* | ?:[\\/]* ) # Absolute path.
885 ac_srcdir=$srcdir$ac_dir_suffix;
886 ac_top_srcdir=$srcdir ;;
887 *) # Relative path.
888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
890 esac
891 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
892 # absolute.
893 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
894 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
895 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
896 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
898 cd $ac_dir
899 # Check for guested configure; otherwise get Cygnus style configure.
900 if test -f $ac_srcdir/configure.gnu; then
901 echo
902 $SHELL $ac_srcdir/configure.gnu --help=recursive
903 elif test -f $ac_srcdir/configure; then
904 echo
905 $SHELL $ac_srcdir/configure --help=recursive
906 elif test -f $ac_srcdir/configure.ac ||
907 test -f $ac_srcdir/configure.in; then
908 echo
909 $ac_configure --help
910 else
911 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
913 cd $ac_popdir
914 done
917 test -n "$ac_init_help" && exit 0
918 if $ac_init_version; then
919 cat <<\_ACEOF
921 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
922 Free Software Foundation, Inc.
923 This configure script is free software; the Free Software Foundation
924 gives unlimited permission to copy, distribute and modify it.
925 _ACEOF
926 exit 0
928 exec 5>config.log
929 cat >&5 <<_ACEOF
930 This file contains any messages produced by compilers while
931 running configure, to aid debugging if configure makes a mistake.
933 It was created by $as_me, which was
934 generated by GNU Autoconf 2.54. Invocation command line was
936 $ $0 $@
938 _ACEOF
940 cat <<_ASUNAME
941 ## --------- ##
942 ## Platform. ##
943 ## --------- ##
945 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
946 uname -m = `(uname -m) 2>/dev/null || echo unknown`
947 uname -r = `(uname -r) 2>/dev/null || echo unknown`
948 uname -s = `(uname -s) 2>/dev/null || echo unknown`
949 uname -v = `(uname -v) 2>/dev/null || echo unknown`
951 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
952 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
954 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
955 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
956 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
957 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
958 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
959 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
960 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
962 _ASUNAME
964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
965 for as_dir in $PATH
967 IFS=$as_save_IFS
968 test -z "$as_dir" && as_dir=.
969 echo "PATH: $as_dir"
970 done
972 } >&5
974 cat >&5 <<_ACEOF
977 ## ----------- ##
978 ## Core tests. ##
979 ## ----------- ##
981 _ACEOF
984 # Keep a trace of the command line.
985 # Strip out --no-create and --no-recursion so they do not pile up.
986 # Also quote any args containing shell meta-characters.
987 ac_configure_args=
988 ac_sep=
989 for ac_arg
991 case $ac_arg in
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n ) continue ;;
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 continue ;;
997 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
998 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
999 esac
1000 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1001 # Get rid of the leading space.
1002 ac_sep=" "
1003 done
1005 # When interrupted or exit'd, cleanup temporary files, and complete
1006 # config.log. We remove comments because anyway the quotes in there
1007 # would cause problems or look ugly.
1008 # WARNING: Be sure not to use single quotes in there, as some shells,
1009 # such as our DU 5.0 friend, will then `close' the trap.
1010 trap 'exit_status=$?
1011 # Save into config.log some information that might help in debugging.
1013 echo
1015 cat <<\_ASBOX
1016 ## ---------------- ##
1017 ## Cache variables. ##
1018 ## ---------------- ##
1019 _ASBOX
1020 echo
1021 # The following way of writing the cache mishandles newlines in values,
1023 (set) 2>&1 |
1024 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1025 *ac_space=\ *)
1026 sed -n \
1027 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1031 sed -n \
1032 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1034 esac;
1036 echo
1038 cat <<\_ASBOX
1039 ## ----------------- ##
1040 ## Output variables. ##
1041 ## ----------------- ##
1042 _ASBOX
1043 echo
1044 for ac_var in $ac_subst_vars
1046 eval ac_val=$`echo $ac_var`
1047 echo "$ac_var='"'"'$ac_val'"'"'"
1048 done | sort
1049 echo
1051 if test -n "$ac_subst_files"; then
1052 cat <<\_ASBOX
1053 ## ------------- ##
1054 ## Output files. ##
1055 ## ------------- ##
1056 _ASBOX
1057 echo
1058 for ac_var in $ac_subst_files
1060 eval ac_val=$`echo $ac_var`
1061 echo "$ac_var='"'"'$ac_val'"'"'"
1062 done | sort
1063 echo
1066 if test -s confdefs.h; then
1067 cat <<\_ASBOX
1068 ## ----------- ##
1069 ## confdefs.h. ##
1070 ## ----------- ##
1071 _ASBOX
1072 echo
1073 sed "/^$/d" confdefs.h | sort
1074 echo
1076 test "$ac_signal" != 0 &&
1077 echo "$as_me: caught signal $ac_signal"
1078 echo "$as_me: exit $exit_status"
1079 } >&5
1080 rm -f core core.* *.core &&
1081 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1082 exit $exit_status
1084 for ac_signal in 1 2 13 15; do
1085 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1086 done
1087 ac_signal=0
1089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1090 rm -rf conftest* confdefs.h
1091 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1092 echo >confdefs.h
1094 # Predefined preprocessor variables.
1096 cat >>confdefs.h <<_ACEOF
1097 #define PACKAGE_NAME "$PACKAGE_NAME"
1098 _ACEOF
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1103 _ACEOF
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1108 _ACEOF
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_STRING "$PACKAGE_STRING"
1113 _ACEOF
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1118 _ACEOF
1121 # Let the site file select an alternate cache file if it wants to.
1122 # Prefer explicitly selected file to automatically selected ones.
1123 if test -z "$CONFIG_SITE"; then
1124 if test "x$prefix" != xNONE; then
1125 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1126 else
1127 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1130 for ac_site_file in $CONFIG_SITE; do
1131 if test -r "$ac_site_file"; then
1132 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1133 echo "$as_me: loading site script $ac_site_file" >&6;}
1134 sed 's/^/| /' "$ac_site_file" >&5
1135 . "$ac_site_file"
1137 done
1139 if test -r "$cache_file"; then
1140 # Some versions of bash will fail to source /dev/null (special
1141 # files actually), so we avoid doing that.
1142 if test -f "$cache_file"; then
1143 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1144 echo "$as_me: loading cache $cache_file" >&6;}
1145 case $cache_file in
1146 [\\/]* | ?:[\\/]* ) . $cache_file;;
1147 *) . ./$cache_file;;
1148 esac
1150 else
1151 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1152 echo "$as_me: creating cache $cache_file" >&6;}
1153 >$cache_file
1156 # Check that the precious variables saved in the cache have kept the same
1157 # value.
1158 ac_cache_corrupted=false
1159 for ac_var in `(set) 2>&1 |
1160 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1161 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1162 eval ac_new_set=\$ac_env_${ac_var}_set
1163 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1164 eval ac_new_val="\$ac_env_${ac_var}_value"
1165 case $ac_old_set,$ac_new_set in
1166 set,)
1167 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1168 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1169 ac_cache_corrupted=: ;;
1170 ,set)
1171 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1172 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1173 ac_cache_corrupted=: ;;
1174 ,);;
1176 if test "x$ac_old_val" != "x$ac_new_val"; then
1177 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1178 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1179 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1180 echo "$as_me: former value: $ac_old_val" >&2;}
1181 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1182 echo "$as_me: current value: $ac_new_val" >&2;}
1183 ac_cache_corrupted=:
1184 fi;;
1185 esac
1186 # Pass precious variables to config.status.
1187 if test "$ac_new_set" = set; then
1188 case $ac_new_val in
1189 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1190 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1191 *) ac_arg=$ac_var=$ac_new_val ;;
1192 esac
1193 case " $ac_configure_args " in
1194 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1195 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1196 esac
1198 done
1199 if $ac_cache_corrupted; then
1200 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1201 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1202 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1203 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1204 { (exit 1); exit 1; }; }
1207 ac_ext=c
1208 ac_cpp='$CPP $CPPFLAGS'
1209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1231 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1234 ac_srcdir_defaulted=no
1235 srcdir=`cd $srcdir; pwd`
1236 groff_top_builddir=`pwd`
1238 ac_ext=c
1239 ac_cpp='$CPP $CPPFLAGS'
1240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1243 if test -n "$ac_tool_prefix"; then
1244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1245 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1246 echo "$as_me:$LINENO: checking for $ac_word" >&5
1247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1248 if test "${ac_cv_prog_CC+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 else
1251 if test -n "$CC"; then
1252 ac_cv_prog_CC="$CC" # Let the user override the test.
1253 else
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 for as_dir in $PATH
1257 IFS=$as_save_IFS
1258 test -z "$as_dir" && as_dir=.
1259 for ac_exec_ext in '' $ac_executable_extensions; do
1260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1261 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1263 break 2
1265 done
1266 done
1270 CC=$ac_cv_prog_CC
1271 if test -n "$CC"; then
1272 echo "$as_me:$LINENO: result: $CC" >&5
1273 echo "${ECHO_T}$CC" >&6
1274 else
1275 echo "$as_me:$LINENO: result: no" >&5
1276 echo "${ECHO_T}no" >&6
1280 if test -z "$ac_cv_prog_CC"; then
1281 ac_ct_CC=$CC
1282 # Extract the first word of "gcc", so it can be a program name with args.
1283 set dummy gcc; ac_word=$2
1284 echo "$as_me:$LINENO: checking for $ac_word" >&5
1285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1288 else
1289 if test -n "$ac_ct_CC"; then
1290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1291 else
1292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1293 for as_dir in $PATH
1295 IFS=$as_save_IFS
1296 test -z "$as_dir" && as_dir=.
1297 for ac_exec_ext in '' $ac_executable_extensions; do
1298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1299 ac_cv_prog_ac_ct_CC="gcc"
1300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1301 break 2
1303 done
1304 done
1308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1309 if test -n "$ac_ct_CC"; then
1310 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1311 echo "${ECHO_T}$ac_ct_CC" >&6
1312 else
1313 echo "$as_me:$LINENO: result: no" >&5
1314 echo "${ECHO_T}no" >&6
1317 CC=$ac_ct_CC
1318 else
1319 CC="$ac_cv_prog_CC"
1322 if test -z "$CC"; then
1323 if test -n "$ac_tool_prefix"; then
1324 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1325 set dummy ${ac_tool_prefix}cc; ac_word=$2
1326 echo "$as_me:$LINENO: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_CC+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 else
1331 if test -n "$CC"; then
1332 ac_cv_prog_CC="$CC" # Let the user override the test.
1333 else
1334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335 for as_dir in $PATH
1337 IFS=$as_save_IFS
1338 test -z "$as_dir" && as_dir=.
1339 for ac_exec_ext in '' $ac_executable_extensions; do
1340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1341 ac_cv_prog_CC="${ac_tool_prefix}cc"
1342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1343 break 2
1345 done
1346 done
1350 CC=$ac_cv_prog_CC
1351 if test -n "$CC"; then
1352 echo "$as_me:$LINENO: result: $CC" >&5
1353 echo "${ECHO_T}$CC" >&6
1354 else
1355 echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1360 if test -z "$ac_cv_prog_CC"; then
1361 ac_ct_CC=$CC
1362 # Extract the first word of "cc", so it can be a program name with args.
1363 set dummy cc; ac_word=$2
1364 echo "$as_me:$LINENO: checking for $ac_word" >&5
1365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 else
1369 if test -n "$ac_ct_CC"; then
1370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1371 else
1372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1373 for as_dir in $PATH
1375 IFS=$as_save_IFS
1376 test -z "$as_dir" && as_dir=.
1377 for ac_exec_ext in '' $ac_executable_extensions; do
1378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1379 ac_cv_prog_ac_ct_CC="cc"
1380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1381 break 2
1383 done
1384 done
1388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1389 if test -n "$ac_ct_CC"; then
1390 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1391 echo "${ECHO_T}$ac_ct_CC" >&6
1392 else
1393 echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1397 CC=$ac_ct_CC
1398 else
1399 CC="$ac_cv_prog_CC"
1403 if test -z "$CC"; then
1404 # Extract the first word of "cc", so it can be a program name with args.
1405 set dummy cc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411 if test -n "$CC"; then
1412 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 else
1414 ac_prog_rejected=no
1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416 for as_dir in $PATH
1418 IFS=$as_save_IFS
1419 test -z "$as_dir" && as_dir=.
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1423 ac_prog_rejected=yes
1424 continue
1426 ac_cv_prog_CC="cc"
1427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1428 break 2
1430 done
1431 done
1433 if test $ac_prog_rejected = yes; then
1434 # We found a bogon in the path, so make sure we never use it.
1435 set dummy $ac_cv_prog_CC
1436 shift
1437 if test $# != 0; then
1438 # We chose a different compiler from the bogus one.
1439 # However, it has the same basename, so the bogon will be chosen
1440 # first if we set CC to just the basename; use the full file name.
1441 shift
1442 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1447 CC=$ac_cv_prog_CC
1448 if test -n "$CC"; then
1449 echo "$as_me:$LINENO: result: $CC" >&5
1450 echo "${ECHO_T}$CC" >&6
1451 else
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1457 if test -z "$CC"; then
1458 if test -n "$ac_tool_prefix"; then
1459 for ac_prog in cl
1461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1470 else
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 for ac_exec_ext in '' $ac_executable_extensions; do
1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 break 2
1482 done
1483 done
1487 CC=$ac_cv_prog_CC
1488 if test -n "$CC"; then
1489 echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1491 else
1492 echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1496 test -n "$CC" && break
1497 done
1499 if test -z "$CC"; then
1500 ac_ct_CC=$CC
1501 for ac_prog in cl
1503 # Extract the first word of "$ac_prog", so it can be a program name with args.
1504 set dummy $ac_prog; ac_word=$2
1505 echo "$as_me:$LINENO: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 if test -n "$ac_ct_CC"; then
1511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1512 else
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 for as_dir in $PATH
1516 IFS=$as_save_IFS
1517 test -z "$as_dir" && as_dir=.
1518 for ac_exec_ext in '' $ac_executable_extensions; do
1519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1520 ac_cv_prog_ac_ct_CC="$ac_prog"
1521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1522 break 2
1524 done
1525 done
1529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1530 if test -n "$ac_ct_CC"; then
1531 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1532 echo "${ECHO_T}$ac_ct_CC" >&6
1533 else
1534 echo "$as_me:$LINENO: result: no" >&5
1535 echo "${ECHO_T}no" >&6
1538 test -n "$ac_ct_CC" && break
1539 done
1541 CC=$ac_ct_CC
1547 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1548 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1549 { (exit 1); exit 1; }; }
1551 # Provide some information about the compiler.
1552 echo "$as_me:$LINENO:" \
1553 "checking for C compiler version" >&5
1554 ac_compiler=`set X $ac_compile; echo $2`
1555 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1556 (eval $ac_compiler --version </dev/null >&5) 2>&5
1557 ac_status=$?
1558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1559 (exit $ac_status); }
1560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1561 (eval $ac_compiler -v </dev/null >&5) 2>&5
1562 ac_status=$?
1563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1564 (exit $ac_status); }
1565 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1566 (eval $ac_compiler -V </dev/null >&5) 2>&5
1567 ac_status=$?
1568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1569 (exit $ac_status); }
1571 cat >conftest.$ac_ext <<_ACEOF
1572 #line $LINENO "configure"
1573 #include "confdefs.h"
1576 main ()
1580 return 0;
1582 _ACEOF
1583 ac_clean_files_save=$ac_clean_files
1584 ac_clean_files="$ac_clean_files a.out a.exe"
1585 # Try to create an executable without -o first, disregard a.out.
1586 # It will help us diagnose broken compilers, and finding out an intuition
1587 # of exeext.
1588 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1589 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1590 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1591 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1592 (eval $ac_link_default) 2>&5
1593 ac_status=$?
1594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1595 (exit $ac_status); }; then
1596 # Find the output, starting from the most likely. This scheme is
1597 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1598 # resort.
1600 # Be careful to initialize this variable, since it used to be cached.
1601 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1602 ac_cv_exeext=
1603 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1604 test -f "$ac_file" || continue
1605 case $ac_file in
1606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1607 a.out ) # We found the default executable, but exeext='' is most
1608 # certainly right.
1609 break;;
1610 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1611 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1612 export ac_cv_exeext
1613 break;;
1614 * ) break;;
1615 esac
1616 done
1617 else
1618 echo "$as_me: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1620 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1621 check \`config.log' for details." >&5
1622 echo "$as_me: error: C compiler cannot create executables
1623 check \`config.log' for details." >&2;}
1624 { (exit 77); exit 77; }; }
1627 ac_exeext=$ac_cv_exeext
1628 echo "$as_me:$LINENO: result: $ac_file" >&5
1629 echo "${ECHO_T}$ac_file" >&6
1631 # Check the compiler produces executables we can run. If not, either
1632 # the compiler is broken, or we cross compile.
1633 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1634 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1635 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1636 # If not cross compiling, check that we can run a simple program.
1637 if test "$cross_compiling" != yes; then
1638 if { ac_try='./$ac_file'
1639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1640 (eval $ac_try) 2>&5
1641 ac_status=$?
1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643 (exit $ac_status); }; }; then
1644 cross_compiling=no
1645 else
1646 if test "$cross_compiling" = maybe; then
1647 cross_compiling=yes
1648 else
1649 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1650 If you meant to cross compile, use \`--host'." >&5
1651 echo "$as_me: error: cannot run C compiled programs.
1652 If you meant to cross compile, use \`--host'." >&2;}
1653 { (exit 1); exit 1; }; }
1657 echo "$as_me:$LINENO: result: yes" >&5
1658 echo "${ECHO_T}yes" >&6
1660 rm -f a.out a.exe conftest$ac_cv_exeext
1661 ac_clean_files=$ac_clean_files_save
1662 # Check the compiler produces executables we can run. If not, either
1663 # the compiler is broken, or we cross compile.
1664 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1665 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1666 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1667 echo "${ECHO_T}$cross_compiling" >&6
1669 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1670 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1672 (eval $ac_link) 2>&5
1673 ac_status=$?
1674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1675 (exit $ac_status); }; then
1676 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1677 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1678 # work properly (i.e., refer to `conftest.exe'), while it won't with
1679 # `rm'.
1680 for ac_file in conftest.exe conftest conftest.*; do
1681 test -f "$ac_file" || continue
1682 case $ac_file in
1683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1684 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1685 export ac_cv_exeext
1686 break;;
1687 * ) break;;
1688 esac
1689 done
1690 else
1691 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1692 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1693 { (exit 1); exit 1; }; }
1696 rm -f conftest$ac_cv_exeext
1697 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1698 echo "${ECHO_T}$ac_cv_exeext" >&6
1700 rm -f conftest.$ac_ext
1701 EXEEXT=$ac_cv_exeext
1702 ac_exeext=$EXEEXT
1703 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1704 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1705 if test "${ac_cv_objext+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708 cat >conftest.$ac_ext <<_ACEOF
1709 #line $LINENO "configure"
1710 #include "confdefs.h"
1713 main ()
1717 return 0;
1719 _ACEOF
1720 rm -f conftest.o conftest.obj
1721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1722 (eval $ac_compile) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }; then
1726 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1727 case $ac_file in
1728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1729 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1730 break;;
1731 esac
1732 done
1733 else
1734 echo "$as_me: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1736 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1737 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1738 { (exit 1); exit 1; }; }
1741 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1743 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1744 echo "${ECHO_T}$ac_cv_objext" >&6
1745 OBJEXT=$ac_cv_objext
1746 ac_objext=$OBJEXT
1747 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1748 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1749 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752 cat >conftest.$ac_ext <<_ACEOF
1753 #line $LINENO "configure"
1754 #include "confdefs.h"
1757 main ()
1759 #ifndef __GNUC__
1760 choke me
1761 #endif
1764 return 0;
1766 _ACEOF
1767 rm -f conftest.$ac_objext
1768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1769 (eval $ac_compile) 2>&5
1770 ac_status=$?
1771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1772 (exit $ac_status); } &&
1773 { ac_try='test -s conftest.$ac_objext'
1774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1775 (eval $ac_try) 2>&5
1776 ac_status=$?
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }; }; then
1779 ac_compiler_gnu=yes
1780 else
1781 echo "$as_me: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1783 ac_compiler_gnu=no
1785 rm -f conftest.$ac_objext conftest.$ac_ext
1786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1789 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1790 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1791 GCC=`test $ac_compiler_gnu = yes && echo yes`
1792 ac_test_CFLAGS=${CFLAGS+set}
1793 ac_save_CFLAGS=$CFLAGS
1794 CFLAGS="-g"
1795 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1797 if test "${ac_cv_prog_cc_g+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line $LINENO "configure"
1802 #include "confdefs.h"
1805 main ()
1809 return 0;
1811 _ACEOF
1812 rm -f conftest.$ac_objext
1813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1814 (eval $ac_compile) 2>&5
1815 ac_status=$?
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); } &&
1818 { ac_try='test -s conftest.$ac_objext'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820 (eval $ac_try) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1824 ac_cv_prog_cc_g=yes
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1828 ac_cv_prog_cc_g=no
1830 rm -f conftest.$ac_objext conftest.$ac_ext
1832 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1833 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1834 if test "$ac_test_CFLAGS" = set; then
1835 CFLAGS=$ac_save_CFLAGS
1836 elif test $ac_cv_prog_cc_g = yes; then
1837 if test "$GCC" = yes; then
1838 CFLAGS="-g -O2"
1839 else
1840 CFLAGS="-g"
1842 else
1843 if test "$GCC" = yes; then
1844 CFLAGS="-O2"
1845 else
1846 CFLAGS=
1849 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1850 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1851 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854 ac_cv_prog_cc_stdc=no
1855 ac_save_CC=$CC
1856 cat >conftest.$ac_ext <<_ACEOF
1857 #line $LINENO "configure"
1858 #include "confdefs.h"
1859 #include <stdarg.h>
1860 #include <stdio.h>
1861 #include <sys/types.h>
1862 #include <sys/stat.h>
1863 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1864 struct buf { int x; };
1865 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1866 static char *e (p, i)
1867 char **p;
1868 int i;
1870 return p[i];
1872 static char *f (char * (*g) (char **, int), char **p, ...)
1874 char *s;
1875 va_list v;
1876 va_start (v,p);
1877 s = g (p, va_arg (v,int));
1878 va_end (v);
1879 return s;
1881 int test (int i, double x);
1882 struct s1 {int (*f) (int a);};
1883 struct s2 {int (*f) (double a);};
1884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1885 int argc;
1886 char **argv;
1888 main ()
1890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1892 return 0;
1894 _ACEOF
1895 # Don't try gcc -ansi; that turns off useful extensions and
1896 # breaks some systems' header files.
1897 # AIX -qlanglvl=ansi
1898 # Ultrix and OSF/1 -std1
1899 # HP-UX 10.20 and later -Ae
1900 # HP-UX older versions -Aa -D_HPUX_SOURCE
1901 # SVR4 -Xc -D__EXTENSIONS__
1902 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1904 CC="$ac_save_CC $ac_arg"
1905 rm -f conftest.$ac_objext
1906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1907 (eval $ac_compile) 2>&5
1908 ac_status=$?
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); } &&
1911 { ac_try='test -s conftest.$ac_objext'
1912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1913 (eval $ac_try) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; }; then
1917 ac_cv_prog_cc_stdc=$ac_arg
1918 break
1919 else
1920 echo "$as_me: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1923 rm -f conftest.$ac_objext
1924 done
1925 rm -f conftest.$ac_ext conftest.$ac_objext
1926 CC=$ac_save_CC
1930 case "x$ac_cv_prog_cc_stdc" in
1931 x|xno)
1932 echo "$as_me:$LINENO: result: none needed" >&5
1933 echo "${ECHO_T}none needed" >&6 ;;
1935 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1936 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1937 CC="$CC $ac_cv_prog_cc_stdc" ;;
1938 esac
1940 # Some people use a C++ compiler to compile C. Since we use `exit',
1941 # in C++ we need to declare it. In case someone uses the same compiler
1942 # for both compiling C and C++ we need to have the C++ compiler decide
1943 # the declaration of exit, since it's the most demanding environment.
1944 cat >conftest.$ac_ext <<_ACEOF
1945 #ifndef __cplusplus
1946 choke me
1947 #endif
1948 _ACEOF
1949 rm -f conftest.$ac_objext
1950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1951 (eval $ac_compile) 2>&5
1952 ac_status=$?
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); } &&
1955 { ac_try='test -s conftest.$ac_objext'
1956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957 (eval $ac_try) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1961 for ac_declaration in \
1963 '#include <stdlib.h>' \
1964 'extern "C" void std::exit (int) throw (); using std::exit;' \
1965 'extern "C" void std::exit (int); using std::exit;' \
1966 'extern "C" void exit (int) throw ();' \
1967 'extern "C" void exit (int);' \
1968 'void exit (int);'
1970 cat >conftest.$ac_ext <<_ACEOF
1971 #line $LINENO "configure"
1972 #include "confdefs.h"
1973 #include <stdlib.h>
1974 $ac_declaration
1976 main ()
1978 exit (42);
1980 return 0;
1982 _ACEOF
1983 rm -f conftest.$ac_objext
1984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1985 (eval $ac_compile) 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); } &&
1989 { ac_try='test -s conftest.$ac_objext'
1990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1991 (eval $ac_try) 2>&5
1992 ac_status=$?
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }; }; then
1996 else
1997 echo "$as_me: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
1999 continue
2001 rm -f conftest.$ac_objext conftest.$ac_ext
2002 cat >conftest.$ac_ext <<_ACEOF
2003 #line $LINENO "configure"
2004 #include "confdefs.h"
2005 $ac_declaration
2007 main ()
2009 exit (42);
2011 return 0;
2013 _ACEOF
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); } &&
2020 { ac_try='test -s conftest.$ac_objext'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 (eval $ac_try) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2026 break
2027 else
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2031 rm -f conftest.$ac_objext conftest.$ac_ext
2032 done
2033 rm -f conftest*
2034 if test -n "$ac_declaration"; then
2035 echo '#ifdef __cplusplus' >>confdefs.h
2036 echo $ac_declaration >>confdefs.h
2037 echo '#endif' >>confdefs.h
2040 else
2041 echo "$as_me: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 rm -f conftest.$ac_objext conftest.$ac_ext
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051 ac_ext=cc
2052 ac_cpp='$CXXCPP $CPPFLAGS'
2053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2056 if test -n "$ac_tool_prefix"; then
2057 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2061 echo "$as_me:$LINENO: checking for $ac_word" >&5
2062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063 if test "${ac_cv_prog_CXX+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 if test -n "$CXX"; then
2067 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2068 else
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 for as_dir in $PATH
2072 IFS=$as_save_IFS
2073 test -z "$as_dir" && as_dir=.
2074 for ac_exec_ext in '' $ac_executable_extensions; do
2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 break 2
2080 done
2081 done
2085 CXX=$ac_cv_prog_CXX
2086 if test -n "$CXX"; then
2087 echo "$as_me:$LINENO: result: $CXX" >&5
2088 echo "${ECHO_T}$CXX" >&6
2089 else
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2094 test -n "$CXX" && break
2095 done
2097 if test -z "$CXX"; then
2098 ac_ct_CXX=$CXX
2099 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy $ac_prog; ac_word=$2
2103 echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 if test -n "$ac_ct_CXX"; then
2109 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_ac_ct_CXX="$ac_prog"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2122 done
2123 done
2127 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2128 if test -n "$ac_ct_CXX"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2130 echo "${ECHO_T}$ac_ct_CXX" >&6
2131 else
2132 echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6
2136 test -n "$ac_ct_CXX" && break
2137 done
2138 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2140 CXX=$ac_ct_CXX
2144 # Provide some information about the compiler.
2145 echo "$as_me:$LINENO:" \
2146 "checking for C++ compiler version" >&5
2147 ac_compiler=`set X $ac_compile; echo $2`
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2149 (eval $ac_compiler --version </dev/null >&5) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2154 (eval $ac_compiler -v </dev/null >&5) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2158 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2159 (eval $ac_compiler -V </dev/null >&5) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2164 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2165 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2166 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 #include "confdefs.h"
2174 main ()
2176 #ifndef __GNUC__
2177 choke me
2178 #endif
2181 return 0;
2183 _ACEOF
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 ac_compiler_gnu=yes
2197 else
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 ac_compiler_gnu=no
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2206 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2208 GXX=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CXXFLAGS=${CXXFLAGS+set}
2210 ac_save_CXXFLAGS=$CXXFLAGS
2211 CXXFLAGS="-g"
2212 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2213 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cxx_g+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2222 main ()
2226 return 0;
2228 _ACEOF
2229 rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 ac_cv_prog_cxx_g=yes
2242 else
2243 echo "$as_me: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2245 ac_cv_prog_cxx_g=no
2247 rm -f conftest.$ac_objext conftest.$ac_ext
2249 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2250 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2251 if test "$ac_test_CXXFLAGS" = set; then
2252 CXXFLAGS=$ac_save_CXXFLAGS
2253 elif test $ac_cv_prog_cxx_g = yes; then
2254 if test "$GXX" = yes; then
2255 CXXFLAGS="-g -O2"
2256 else
2257 CXXFLAGS="-g"
2259 else
2260 if test "$GXX" = yes; then
2261 CXXFLAGS="-O2"
2262 else
2263 CXXFLAGS=
2266 for ac_declaration in \
2268 '#include <stdlib.h>' \
2269 'extern "C" void std::exit (int) throw (); using std::exit;' \
2270 'extern "C" void std::exit (int); using std::exit;' \
2271 'extern "C" void exit (int) throw ();' \
2272 'extern "C" void exit (int);' \
2273 'void exit (int);'
2275 cat >conftest.$ac_ext <<_ACEOF
2276 #line $LINENO "configure"
2277 #include "confdefs.h"
2278 #include <stdlib.h>
2279 $ac_declaration
2281 main ()
2283 exit (42);
2285 return 0;
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 (eval $ac_try) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2301 else
2302 echo "$as_me: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2304 continue
2306 rm -f conftest.$ac_objext conftest.$ac_ext
2307 cat >conftest.$ac_ext <<_ACEOF
2308 #line $LINENO "configure"
2309 #include "confdefs.h"
2310 $ac_declaration
2312 main ()
2314 exit (42);
2316 return 0;
2318 _ACEOF
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 break
2332 else
2333 echo "$as_me: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 rm -f conftest.$ac_objext conftest.$ac_ext
2337 done
2338 rm -f conftest*
2339 if test -n "$ac_declaration"; then
2340 echo '#ifdef __cplusplus' >>confdefs.h
2341 echo $ac_declaration >>confdefs.h
2342 echo '#endif' >>confdefs.h
2345 ac_ext=c
2346 ac_cpp='$CPP $CPPFLAGS'
2347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 ac_ext=cc
2354 ac_cpp='$CXXCPP $CPPFLAGS'
2355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2359 if test "$cross_compiling" = no; then
2360 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
2361 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
2363 if test "$cross_compiling" = yes; then
2365 else
2366 cat >conftest.$ac_ext <<_ACEOF
2367 #line $LINENO "configure"
2368 #include "confdefs.h"
2369 int main() { return 0; }
2370 _ACEOF
2371 rm -f conftest$ac_exeext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2373 (eval $ac_link) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 echo "$as_me:$LINENO: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6
2384 else
2385 echo "$as_me: program exited with status $ac_status" >&5
2386 echo "$as_me: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2388 ( exit $ac_status )
2389 echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2391 echo "$as_me: error: a working C++ compiler is required" >&2;}
2392 { (exit 1); exit 1; }; }
2394 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2396 if test "$cross_compiling" = no; then
2397 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
2398 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
2400 if test "$cross_compiling" = yes; then
2402 else
2403 cat >conftest.$ac_ext <<_ACEOF
2404 #line $LINENO "configure"
2405 #include "confdefs.h"
2407 extern "C" {
2408 void _exit(int);
2410 int i;
2411 struct A {
2412 char dummy;
2413 A() { i = 1; }
2414 ~A() { if (i == 1) _exit(0); }
2416 A a;
2417 int main() { return 1; }
2419 _ACEOF
2420 rm -f conftest$ac_exeext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2422 (eval $ac_link) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 echo "$as_me:$LINENO: result: yes" >&5
2432 echo "${ECHO_T}yes" >&6
2433 else
2434 echo "$as_me: program exited with status $ac_status" >&5
2435 echo "$as_me: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2437 ( exit $ac_status )
2438 echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2440 echo "$as_me: error: a working C++ compiler is required" >&2;}
2441 { (exit 1); exit 1; }; }
2443 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2445 echo "$as_me:$LINENO: checking that header files support C++" >&5
2446 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #line $LINENO "configure"
2449 #include "confdefs.h"
2450 #include <stdio.h>
2452 main ()
2454 fopen(0, 0);
2456 return 0;
2458 _ACEOF
2459 rm -f conftest.$ac_objext conftest$ac_exeext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2461 (eval $ac_link) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -s conftest$ac_exeext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2476 echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" >&5
2478 echo "$as_me: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" >&2;}
2479 { (exit 1); exit 1; }; }
2481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2482 ac_ext=c
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
2490 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
2491 cat >conftest.$ac_ext <<_ACEOF
2492 #line $LINENO "configure"
2493 #include "confdefs.h"
2496 main ()
2498 /* Treat any failure as ASCII for compatibility with existing art.
2499 Use compile-time rather than run-time tests for cross-compiler
2500 tolerance. */
2501 #if '0' != 240
2502 make an error "Character set is not EBCDIC"
2503 #endif
2505 return 0;
2507 _ACEOF
2508 rm -f conftest.$ac_objext
2509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510 (eval $ac_compile) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 groff_cv_ebcdic="yes"
2521 TTYDEVDIRS="font/devcp1047"
2522 echo "$as_me:$LINENO: result: yes" >&5
2523 echo "${ECHO_T}yes" >&6
2525 cat >>confdefs.h <<\_ACEOF
2526 #define IS_EBCDIC_HOST 1
2527 _ACEOF
2529 else
2530 echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 groff_cv_ebcdic="no"
2533 TTYDEVDIRS="font/devascii font/devlatin1"
2534 OTHERDEVDIRS="font/devlj4 font/devlbp"
2535 echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6
2538 rm -f conftest.$ac_objext conftest.$ac_ext
2541 if test "$groff_cv_ebcdic" = "yes"; then
2542 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
2543 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
2544 case `uname` in
2545 OS/390)
2546 CFLAGS="$CFLAGS -D_ALL_SOURCE"
2547 echo "$as_me:$LINENO: result: yes" >&5
2548 echo "${ECHO_T}yes" >&6 ;;
2550 echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6 ;;
2552 esac
2554 if test -z "$PSPRINT"; then
2555 for ac_prog in lpr
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2561 if test "${ac_cv_prog_LPR+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 if test -n "$LPR"; then
2565 ac_cv_prog_LPR="$LPR" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574 ac_cv_prog_LPR="$ac_prog"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2578 done
2579 done
2583 LPR=$ac_cv_prog_LPR
2584 if test -n "$LPR"; then
2585 echo "$as_me:$LINENO: result: $LPR" >&5
2586 echo "${ECHO_T}$LPR" >&6
2587 else
2588 echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2592 test -n "$LPR" && break
2593 done
2595 for ac_prog in lp
2597 # Extract the first word of "$ac_prog", so it can be a program name with args.
2598 set dummy $ac_prog; ac_word=$2
2599 echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2601 if test "${ac_cv_prog_LP+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604 if test -n "$LP"; then
2605 ac_cv_prog_LP="$LP" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 ac_cv_prog_LP="$ac_prog"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2618 done
2619 done
2623 LP=$ac_cv_prog_LP
2624 if test -n "$LP"; then
2625 echo "$as_me:$LINENO: result: $LP" >&5
2626 echo "${ECHO_T}$LP" >&6
2627 else
2628 echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2632 test -n "$LP" && break
2633 done
2635 if test -n "$LPR" && test -n "$LP"; then
2636 # HP-UX provides an lpr command that emulates lpr using lp,
2637 # but it doesn't have lpq; in this case we want to use lp
2638 # rather than lpr.
2639 for ac_prog in lpq
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_LPQ+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$LPQ"; then
2649 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_LPQ="$ac_prog"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2667 LPQ=$ac_cv_prog_LPQ
2668 if test -n "$LPQ"; then
2669 echo "$as_me:$LINENO: result: $LPQ" >&5
2670 echo "${ECHO_T}$LPQ" >&6
2671 else
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2676 test -n "$LPQ" && break
2677 done
2679 test -n "$LPQ" || LPR=
2681 if test -n "$LPR"; then
2682 PSPRINT="$LPR"
2683 elif test -n "$LP"; then
2684 PSPRINT="$LP"
2688 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
2689 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
2690 echo "$as_me:$LINENO: result: $PSPRINT" >&5
2691 echo "${ECHO_T}$PSPRINT" >&6
2692 # Figure out DVIPRINT from PSPRINT.
2693 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
2694 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
2695 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
2696 if test "X$PSPRINT" = "Xlpr"; then
2697 DVIPRINT="lpr -d"
2698 else
2699 DVIPRINT="$PSPRINT"
2703 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
2704 echo "${ECHO_T}$DVIPRINT" >&6
2705 # Extract the first word of "perl", so it can be a program name with args.
2706 set dummy perl; ac_word=$2
2707 echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2709 if test "${ac_cv_path_PERLPATH+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 case $PERLPATH in
2713 [\\/]* | ?:[\\/]*)
2714 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
2725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2728 done
2729 done
2731 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
2733 esac
2735 PERLPATH=$ac_cv_path_PERLPATH
2737 if test -n "$PERLPATH"; then
2738 echo "$as_me:$LINENO: result: $PERLPATH" >&5
2739 echo "${ECHO_T}$PERLPATH" >&6
2740 else
2741 echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2745 for ac_prog in byacc 'bison -y'
2747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2748 set dummy $ac_prog; ac_word=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_YACC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 if test -n "$YACC"; then
2755 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_YACC="$ac_prog"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2768 done
2769 done
2773 YACC=$ac_cv_prog_YACC
2774 if test -n "$YACC"; then
2775 echo "$as_me:$LINENO: result: $YACC" >&5
2776 echo "${ECHO_T}$YACC" >&6
2777 else
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2782 test -n "$YACC" && break
2783 done
2784 test -n "$YACC" || YACC="yacc"
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2789 echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_prog_RANLIB+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794 if test -n "$RANLIB"; then
2795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2808 done
2809 done
2813 RANLIB=$ac_cv_prog_RANLIB
2814 if test -n "$RANLIB"; then
2815 echo "$as_me:$LINENO: result: $RANLIB" >&5
2816 echo "${ECHO_T}$RANLIB" >&6
2817 else
2818 echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6
2823 if test -z "$ac_cv_prog_RANLIB"; then
2824 ac_ct_RANLIB=$RANLIB
2825 # Extract the first word of "ranlib", so it can be a program name with args.
2826 set dummy ranlib; ac_word=$2
2827 echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832 if test -n "$ac_ct_RANLIB"; then
2833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_ac_ct_RANLIB="ranlib"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2846 done
2847 done
2849 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2852 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2853 if test -n "$ac_ct_RANLIB"; then
2854 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2855 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2856 else
2857 echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6
2861 RANLIB=$ac_ct_RANLIB
2862 else
2863 RANLIB="$ac_cv_prog_RANLIB"
2866 ac_aux_dir=
2867 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2868 if test -f $ac_dir/install-sh; then
2869 ac_aux_dir=$ac_dir
2870 ac_install_sh="$ac_aux_dir/install-sh -c"
2871 break
2872 elif test -f $ac_dir/install.sh; then
2873 ac_aux_dir=$ac_dir
2874 ac_install_sh="$ac_aux_dir/install.sh -c"
2875 break
2876 elif test -f $ac_dir/shtool; then
2877 ac_aux_dir=$ac_dir
2878 ac_install_sh="$ac_aux_dir/shtool install -c"
2879 break
2881 done
2882 if test -z "$ac_aux_dir"; then
2883 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2884 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2885 { (exit 1); exit 1; }; }
2887 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2888 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2889 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2891 ac_dir=`cd $ac_aux_dir; pwd`
2892 ac_install_sh="$ac_dir/install-sh -c"
2893 for ac_prog in install-info
2895 # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy $ac_prog; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 if test -n "$INSTALL_INFO"; then
2903 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_INSTALL_INFO="$ac_prog"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2921 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
2922 if test -n "$INSTALL_INFO"; then
2923 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
2924 echo "${ECHO_T}$INSTALL_INFO" >&6
2925 else
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2930 test -n "$INSTALL_INFO" && break
2931 done
2932 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2940 # AIX /bin/install
2941 # AmigaOS /C/install, which installs bootblocks on floppy discs
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # ./install, which can be erroneously created by make from ./install.sh.
2946 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2947 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2948 if test -z "$INSTALL"; then
2949 if test "${ac_cv_path_install+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 # Account for people who put trailing slashes in PATH elements.
2958 case $as_dir/ in
2959 ./ | .// | /cC/* | \
2960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2961 /usr/ucb/* ) ;;
2963 # OSF1 and SCO ODT 3.0 have their own names for install.
2964 # Don't use installbsd from OSF since it installs stuff as root
2965 # by default.
2966 for ac_prog in ginstall scoinst install; do
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2969 if test $ac_prog = install &&
2970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2971 # AIX install. It has an incompatible calling convention.
2973 elif test $ac_prog = install &&
2974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975 # program-specific install script used by HP pwplus--don't use.
2977 else
2978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2979 break 3
2982 done
2983 done
2985 esac
2986 done
2990 if test "${ac_cv_path_install+set}" = set; then
2991 INSTALL=$ac_cv_path_install
2992 else
2993 # As a last resort, use the slow shell script. We don't cache a
2994 # path for INSTALL within a source directory, because that will
2995 # break other packages using the cache if that directory is
2996 # removed, or if the path is relative.
2997 INSTALL=$ac_install_sh
3000 echo "$as_me:$LINENO: result: $INSTALL" >&5
3001 echo "${ECHO_T}$INSTALL" >&6
3003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3004 # It thinks the first close brace ends the variable substitution.
3005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3011 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3012 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3013 LN_S=$as_ln_s
3014 if test "$LN_S" = "ln -s"; then
3015 echo "$as_me:$LINENO: result: yes" >&5
3016 echo "${ECHO_T}yes" >&6
3017 else
3018 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3019 echo "${ECHO_T}no, using $LN_S" >&6
3022 echo "$as_me:$LINENO: checking for csh hash hack" >&5
3023 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
3024 cat <<EOF >conftest.sh
3025 #!/bin/sh
3026 true || exit 0
3027 export PATH || exit 0
3028 exit 1
3030 chmod +x conftest.sh
3031 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
3032 echo "$as_me:$LINENO: result: yes" >&5
3033 echo "${ECHO_T}yes" >&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
3034 else
3035 echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6; SH_SCRIPT_SED_CMD='1s/a/a/'
3038 rm -f conftest.sh
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3046 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3047 # On Suns, sometimes $CPP names a directory.
3048 if test -n "$CPP" && test -d "$CPP"; then
3049 CPP=
3051 if test -z "$CPP"; then
3052 if test "${ac_cv_prog_CPP+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055 # Double quotes because CPP needs to be expanded
3056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3058 ac_preproc_ok=false
3059 for ac_c_preproc_warn_flag in '' yes
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # On the NeXT, cc -E runs the code through the compiler's parser,
3064 # not just through cpp. "Syntax error" is here to catch this case.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 #line $LINENO "configure"
3067 #include "confdefs.h"
3068 #include <assert.h>
3069 Syntax error
3070 _ACEOF
3071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } >/dev/null; then
3079 if test -s conftest.err; then
3080 ac_cpp_err=$ac_c_preproc_warn_flag
3081 else
3082 ac_cpp_err=
3084 else
3085 ac_cpp_err=yes
3087 if test -z "$ac_cpp_err"; then
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3092 # Broken: fails on valid input.
3093 continue
3095 rm -f conftest.err conftest.$ac_ext
3097 # OK, works on sane cases. Now check whether non-existent headers
3098 # can be detected and how.
3099 cat >conftest.$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3101 #include "confdefs.h"
3102 #include <ac_nonexistent.h>
3103 _ACEOF
3104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } >/dev/null; then
3112 if test -s conftest.err; then
3113 ac_cpp_err=$ac_c_preproc_warn_flag
3114 else
3115 ac_cpp_err=
3117 else
3118 ac_cpp_err=yes
3120 if test -z "$ac_cpp_err"; then
3121 # Broken: success on invalid input.
3122 continue
3123 else
3124 echo "$as_me: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3126 # Passes both tests.
3127 ac_preproc_ok=:
3128 break
3130 rm -f conftest.err conftest.$ac_ext
3132 done
3133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3134 rm -f conftest.err conftest.$ac_ext
3135 if $ac_preproc_ok; then
3136 break
3139 done
3140 ac_cv_prog_CPP=$CPP
3143 CPP=$ac_cv_prog_CPP
3144 else
3145 ac_cv_prog_CPP=$CPP
3147 echo "$as_me:$LINENO: result: $CPP" >&5
3148 echo "${ECHO_T}$CPP" >&6
3149 ac_preproc_ok=false
3150 for ac_c_preproc_warn_flag in '' yes
3152 # Use a header file that comes with gcc, so configuring glibc
3153 # with a fresh cross-compiler works.
3154 # On the NeXT, cc -E runs the code through the compiler's parser,
3155 # not just through cpp. "Syntax error" is here to catch this case.
3156 cat >conftest.$ac_ext <<_ACEOF
3157 #line $LINENO "configure"
3158 #include "confdefs.h"
3159 #include <assert.h>
3160 Syntax error
3161 _ACEOF
3162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } >/dev/null; then
3170 if test -s conftest.err; then
3171 ac_cpp_err=$ac_c_preproc_warn_flag
3172 else
3173 ac_cpp_err=
3175 else
3176 ac_cpp_err=yes
3178 if test -z "$ac_cpp_err"; then
3180 else
3181 echo "$as_me: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3183 # Broken: fails on valid input.
3184 continue
3186 rm -f conftest.err conftest.$ac_ext
3188 # OK, works on sane cases. Now check whether non-existent headers
3189 # can be detected and how.
3190 cat >conftest.$ac_ext <<_ACEOF
3191 #line $LINENO "configure"
3192 #include "confdefs.h"
3193 #include <ac_nonexistent.h>
3194 _ACEOF
3195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } >/dev/null; then
3203 if test -s conftest.err; then
3204 ac_cpp_err=$ac_c_preproc_warn_flag
3205 else
3206 ac_cpp_err=
3208 else
3209 ac_cpp_err=yes
3211 if test -z "$ac_cpp_err"; then
3212 # Broken: success on invalid input.
3213 continue
3214 else
3215 echo "$as_me: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3217 # Passes both tests.
3218 ac_preproc_ok=:
3219 break
3221 rm -f conftest.err conftest.$ac_ext
3223 done
3224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225 rm -f conftest.err conftest.$ac_ext
3226 if $ac_preproc_ok; then
3228 else
3229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3230 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3231 { (exit 1); exit 1; }; }
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 echo "$as_me:$LINENO: checking for egrep" >&5
3242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3243 if test "${ac_cv_prog_egrep+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3247 then ac_cv_prog_egrep='grep -E'
3248 else ac_cv_prog_egrep='egrep'
3251 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3252 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3253 EGREP=$ac_cv_prog_egrep
3256 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3257 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3258 if test "${ac_cv_header_stdc+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 cat >conftest.$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3264 #include <stdlib.h>
3265 #include <stdarg.h>
3266 #include <string.h>
3267 #include <float.h>
3269 _ACEOF
3270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3272 ac_status=$?
3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } >/dev/null; then
3278 if test -s conftest.err; then
3279 ac_cpp_err=$ac_c_preproc_warn_flag
3280 else
3281 ac_cpp_err=
3283 else
3284 ac_cpp_err=yes
3286 if test -z "$ac_cpp_err"; then
3287 ac_cv_header_stdc=yes
3288 else
3289 echo "$as_me: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3291 ac_cv_header_stdc=no
3293 rm -f conftest.err conftest.$ac_ext
3295 if test $ac_cv_header_stdc = yes; then
3296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3299 #include "confdefs.h"
3300 #include <string.h>
3302 _ACEOF
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "memchr" >/dev/null 2>&1; then
3306 else
3307 ac_cv_header_stdc=no
3309 rm -f conftest*
3313 if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat >conftest.$ac_ext <<_ACEOF
3316 #line $LINENO "configure"
3317 #include "confdefs.h"
3318 #include <stdlib.h>
3320 _ACEOF
3321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3322 $EGREP "free" >/dev/null 2>&1; then
3324 else
3325 ac_cv_header_stdc=no
3327 rm -f conftest*
3331 if test $ac_cv_header_stdc = yes; then
3332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3333 if test "$cross_compiling" = yes; then
3335 else
3336 cat >conftest.$ac_ext <<_ACEOF
3337 #line $LINENO "configure"
3338 #include "confdefs.h"
3339 #include <ctype.h>
3340 #if ((' ' & 0x0FF) == 0x020)
3341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3343 #else
3344 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3345 || ('j' <= (c) && (c) <= 'r') \
3346 || ('s' <= (c) && (c) <= 'z'))
3347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3348 #endif
3350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3352 main ()
3354 int i;
3355 for (i = 0; i < 256; i++)
3356 if (XOR (islower (i), ISLOWER (i))
3357 || toupper (i) != TOUPPER (i))
3358 exit(2);
3359 exit (0);
3361 _ACEOF
3362 rm -f conftest$ac_exeext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3364 (eval $ac_link) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3374 else
3375 echo "$as_me: program exited with status $ac_status" >&5
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 ( exit $ac_status )
3379 ac_cv_header_stdc=no
3381 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3385 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3386 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3387 if test $ac_cv_header_stdc = yes; then
3389 cat >>confdefs.h <<\_ACEOF
3390 #define STDC_HEADERS 1
3391 _ACEOF
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 cat >conftest.$ac_ext <<_ACEOF
3415 #line $LINENO "configure"
3416 #include "confdefs.h"
3417 $ac_includes_default
3419 #include <$ac_header>
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try='test -s conftest.$ac_objext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 eval "$as_ac_Header=yes"
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 eval "$as_ac_Header=no"
3439 rm -f conftest.$ac_objext conftest.$ac_ext
3441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3444 cat >>confdefs.h <<_ACEOF
3445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3446 _ACEOF
3450 done
3462 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
3463 string.h strings.h math.h sys/time.h
3465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3467 echo "$as_me:$LINENO: checking for $ac_header" >&5
3468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3474 else
3475 # Is the header compilable?
3476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3478 cat >conftest.$ac_ext <<_ACEOF
3479 #line $LINENO "configure"
3480 #include "confdefs.h"
3481 $ac_includes_default
3482 #include <$ac_header>
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } &&
3490 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_header_compiler=yes
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3500 ac_header_compiler=no
3502 rm -f conftest.$ac_objext conftest.$ac_ext
3503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3504 echo "${ECHO_T}$ac_header_compiler" >&6
3506 # Is the header present?
3507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3509 cat >conftest.$ac_ext <<_ACEOF
3510 #line $LINENO "configure"
3511 #include "confdefs.h"
3512 #include <$ac_header>
3513 _ACEOF
3514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } >/dev/null; then
3522 if test -s conftest.err; then
3523 ac_cpp_err=$ac_c_preproc_warn_flag
3524 else
3525 ac_cpp_err=
3527 else
3528 ac_cpp_err=yes
3530 if test -z "$ac_cpp_err"; then
3531 ac_header_preproc=yes
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 ac_header_preproc=no
3537 rm -f conftest.err conftest.$ac_ext
3538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3539 echo "${ECHO_T}$ac_header_preproc" >&6
3541 # So? What about this header?
3542 case $ac_header_compiler:$ac_header_preproc in
3543 yes:no )
3544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3548 no:yes )
3549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3555 esac
3556 echo "$as_me:$LINENO: checking for $ac_header" >&5
3557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 eval "$as_ac_Header=$ac_header_preproc"
3563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3568 cat >>confdefs.h <<_ACEOF
3569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3570 _ACEOF
3574 done
3576 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
3577 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
3578 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
3579 then
3580 echo "$as_me:$LINENO: result: yes" >&5
3581 echo "${ECHO_T}yes" >&6
3583 cat >>confdefs.h <<\_ACEOF
3584 #define _SYSV3 1
3585 _ACEOF
3587 else
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3591 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
3592 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
3593 ac_ext=cc
3594 ac_cpp='$CXXCPP $CPPFLAGS'
3595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3599 cat >conftest.$ac_ext <<_ACEOF
3600 #line $LINENO "configure"
3601 #include "confdefs.h"
3602 #include <stdio.h>
3603 extern "C" { void fileno(int); }
3605 main ()
3609 return 0;
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 echo "$as_me:$LINENO: result: yes" >&5
3625 echo "${ECHO_T}yes" >&6;
3626 cat >>confdefs.h <<\_ACEOF
3627 #define _POSIX_SOURCE 1
3628 _ACEOF
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3636 rm -f conftest.$ac_objext conftest.$ac_ext
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 ac_ext=cc
3644 ac_cpp='$CXXCPP $CPPFLAGS'
3645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3649 echo "$as_me:$LINENO: checking for return type of srand" >&5
3650 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
3651 cat >conftest.$ac_ext <<_ACEOF
3652 #line $LINENO "configure"
3653 #include "confdefs.h"
3654 #include <stdlib.h>
3655 extern "C" { void srand(unsigned int); }
3657 main ()
3661 return 0;
3663 _ACEOF
3664 rm -f conftest.$ac_objext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3666 (eval $ac_compile) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -s conftest.$ac_objext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 echo "$as_me:$LINENO: result: void" >&5
3677 echo "${ECHO_T}void" >&6;
3678 cat >>confdefs.h <<\_ACEOF
3679 #define RET_TYPE_SRAND_IS_VOID 1
3680 _ACEOF
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 echo "$as_me:$LINENO: result: int" >&5
3686 echo "${ECHO_T}int" >&6
3688 rm -f conftest.$ac_objext conftest.$ac_ext
3689 ac_ext=c
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
3696 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
3697 ac_ext=cc
3698 ac_cpp='$CXXCPP $CPPFLAGS'
3699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3703 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706 cat >conftest.$ac_ext <<_ACEOF
3707 #line $LINENO "configure"
3708 #include "confdefs.h"
3710 #include <stdio.h>
3711 #ifdef HAVE_STRING_H
3712 #include <string.h>
3713 #endif
3714 #ifdef HAVE_STRINGS_H
3715 #include <strings.h>
3716 #endif
3717 #ifdef HAVE_STDLIB_H
3718 #include <stdlib.h>
3719 #endif
3720 #ifdef HAVE_SYS_TIME_H
3721 #include <sys/time.h>
3722 #endif
3723 #ifdef HAVE_UNISTD_H
3724 #include <unistd.h>
3725 #endif
3726 #ifdef HAVE_MATH_H
3727 #include <math.h>
3728 #endif
3730 main ()
3732 #ifndef gettimeofday
3733 char *p = (char *) gettimeofday;
3734 #endif
3736 return 0;
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 groff_cv_decl_needed_gettimeofday=no
3752 else
3753 echo "$as_me: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3755 groff_cv_decl_needed_gettimeofday=yes
3757 rm -f conftest.$ac_objext conftest.$ac_ext
3760 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
3761 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
3762 if test $groff_cv_decl_needed_gettimeofday = yes; then
3764 cat >>confdefs.h <<\_ACEOF
3765 #define NEED_DECLARATION_GETTIMEOFDAY 1
3766 _ACEOF
3769 ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
3776 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
3777 ac_ext=cc
3778 ac_cpp='$CXXCPP $CPPFLAGS'
3779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3783 if test "${groff_cv_decl_needed_hypot+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 cat >conftest.$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3788 #include "confdefs.h"
3790 #include <stdio.h>
3791 #ifdef HAVE_STRING_H
3792 #include <string.h>
3793 #endif
3794 #ifdef HAVE_STRINGS_H
3795 #include <strings.h>
3796 #endif
3797 #ifdef HAVE_STDLIB_H
3798 #include <stdlib.h>
3799 #endif
3800 #ifdef HAVE_SYS_TIME_H
3801 #include <sys/time.h>
3802 #endif
3803 #ifdef HAVE_UNISTD_H
3804 #include <unistd.h>
3805 #endif
3806 #ifdef HAVE_MATH_H
3807 #include <math.h>
3808 #endif
3810 main ()
3812 #ifndef hypot
3813 char *p = (char *) hypot;
3814 #endif
3816 return 0;
3818 _ACEOF
3819 rm -f conftest.$ac_objext
3820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3821 (eval $ac_compile) 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } &&
3825 { ac_try='test -s conftest.$ac_objext'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 (eval $ac_try) 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; }; then
3831 groff_cv_decl_needed_hypot=no
3832 else
3833 echo "$as_me: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3835 groff_cv_decl_needed_hypot=yes
3837 rm -f conftest.$ac_objext conftest.$ac_ext
3840 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
3841 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
3842 if test $groff_cv_decl_needed_hypot = yes; then
3844 cat >>confdefs.h <<\_ACEOF
3845 #define NEED_DECLARATION_HYPOT 1
3846 _ACEOF
3849 ac_ext=c
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
3856 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
3857 ac_ext=cc
3858 ac_cpp='$CXXCPP $CPPFLAGS'
3859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3863 if test "${groff_cv_decl_needed_popen+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 cat >conftest.$ac_ext <<_ACEOF
3867 #line $LINENO "configure"
3868 #include "confdefs.h"
3870 #include <stdio.h>
3871 #ifdef HAVE_STRING_H
3872 #include <string.h>
3873 #endif
3874 #ifdef HAVE_STRINGS_H
3875 #include <strings.h>
3876 #endif
3877 #ifdef HAVE_STDLIB_H
3878 #include <stdlib.h>
3879 #endif
3880 #ifdef HAVE_SYS_TIME_H
3881 #include <sys/time.h>
3882 #endif
3883 #ifdef HAVE_UNISTD_H
3884 #include <unistd.h>
3885 #endif
3886 #ifdef HAVE_MATH_H
3887 #include <math.h>
3888 #endif
3890 main ()
3892 #ifndef popen
3893 char *p = (char *) popen;
3894 #endif
3896 return 0;
3898 _ACEOF
3899 rm -f conftest.$ac_objext
3900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3901 (eval $ac_compile) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } &&
3905 { ac_try='test -s conftest.$ac_objext'
3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 (eval $ac_try) 2>&5
3908 ac_status=$?
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; }; then
3911 groff_cv_decl_needed_popen=no
3912 else
3913 echo "$as_me: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3915 groff_cv_decl_needed_popen=yes
3917 rm -f conftest.$ac_objext conftest.$ac_ext
3920 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
3921 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
3922 if test $groff_cv_decl_needed_popen = yes; then
3924 cat >>confdefs.h <<\_ACEOF
3925 #define NEED_DECLARATION_POPEN 1
3926 _ACEOF
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
3936 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
3937 ac_ext=cc
3938 ac_cpp='$CXXCPP $CPPFLAGS'
3939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3943 if test "${groff_cv_decl_needed_pclose+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 cat >conftest.$ac_ext <<_ACEOF
3947 #line $LINENO "configure"
3948 #include "confdefs.h"
3950 #include <stdio.h>
3951 #ifdef HAVE_STRING_H
3952 #include <string.h>
3953 #endif
3954 #ifdef HAVE_STRINGS_H
3955 #include <strings.h>
3956 #endif
3957 #ifdef HAVE_STDLIB_H
3958 #include <stdlib.h>
3959 #endif
3960 #ifdef HAVE_SYS_TIME_H
3961 #include <sys/time.h>
3962 #endif
3963 #ifdef HAVE_UNISTD_H
3964 #include <unistd.h>
3965 #endif
3966 #ifdef HAVE_MATH_H
3967 #include <math.h>
3968 #endif
3970 main ()
3972 #ifndef pclose
3973 char *p = (char *) pclose;
3974 #endif
3976 return 0;
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981 (eval $ac_compile) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -s conftest.$ac_objext'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 groff_cv_decl_needed_pclose=no
3992 else
3993 echo "$as_me: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3995 groff_cv_decl_needed_pclose=yes
3997 rm -f conftest.$ac_objext conftest.$ac_ext
4000 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
4001 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
4002 if test $groff_cv_decl_needed_pclose = yes; then
4004 cat >>confdefs.h <<\_ACEOF
4005 #define NEED_DECLARATION_PCLOSE 1
4006 _ACEOF
4009 ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
4016 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
4017 ac_ext=cc
4018 ac_cpp='$CXXCPP $CPPFLAGS'
4019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4023 if test "${groff_cv_decl_needed_putenv+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 cat >conftest.$ac_ext <<_ACEOF
4027 #line $LINENO "configure"
4028 #include "confdefs.h"
4030 #include <stdio.h>
4031 #ifdef HAVE_STRING_H
4032 #include <string.h>
4033 #endif
4034 #ifdef HAVE_STRINGS_H
4035 #include <strings.h>
4036 #endif
4037 #ifdef HAVE_STDLIB_H
4038 #include <stdlib.h>
4039 #endif
4040 #ifdef HAVE_SYS_TIME_H
4041 #include <sys/time.h>
4042 #endif
4043 #ifdef HAVE_UNISTD_H
4044 #include <unistd.h>
4045 #endif
4046 #ifdef HAVE_MATH_H
4047 #include <math.h>
4048 #endif
4050 main ()
4052 #ifndef putenv
4053 char *p = (char *) putenv;
4054 #endif
4056 return 0;
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 groff_cv_decl_needed_putenv=no
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4075 groff_cv_decl_needed_putenv=yes
4077 rm -f conftest.$ac_objext conftest.$ac_ext
4080 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
4081 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
4082 if test $groff_cv_decl_needed_putenv = yes; then
4084 cat >>confdefs.h <<\_ACEOF
4085 #define NEED_DECLARATION_PUTENV 1
4086 _ACEOF
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
4096 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
4097 ac_ext=cc
4098 ac_cpp='$CXXCPP $CPPFLAGS'
4099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4103 if test "${groff_cv_decl_needed_rand+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 cat >conftest.$ac_ext <<_ACEOF
4107 #line $LINENO "configure"
4108 #include "confdefs.h"
4110 #include <stdio.h>
4111 #ifdef HAVE_STRING_H
4112 #include <string.h>
4113 #endif
4114 #ifdef HAVE_STRINGS_H
4115 #include <strings.h>
4116 #endif
4117 #ifdef HAVE_STDLIB_H
4118 #include <stdlib.h>
4119 #endif
4120 #ifdef HAVE_SYS_TIME_H
4121 #include <sys/time.h>
4122 #endif
4123 #ifdef HAVE_UNISTD_H
4124 #include <unistd.h>
4125 #endif
4126 #ifdef HAVE_MATH_H
4127 #include <math.h>
4128 #endif
4130 main ()
4132 #ifndef rand
4133 char *p = (char *) rand;
4134 #endif
4136 return 0;
4138 _ACEOF
4139 rm -f conftest.$ac_objext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 (eval $ac_try) 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4151 groff_cv_decl_needed_rand=no
4152 else
4153 echo "$as_me: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4155 groff_cv_decl_needed_rand=yes
4157 rm -f conftest.$ac_objext conftest.$ac_ext
4160 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
4161 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
4162 if test $groff_cv_decl_needed_rand = yes; then
4164 cat >>confdefs.h <<\_ACEOF
4165 #define NEED_DECLARATION_RAND 1
4166 _ACEOF
4169 ac_ext=c
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
4176 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
4177 ac_ext=cc
4178 ac_cpp='$CXXCPP $CPPFLAGS'
4179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4183 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 #include "confdefs.h"
4190 #include <stdio.h>
4191 #ifdef HAVE_STRING_H
4192 #include <string.h>
4193 #endif
4194 #ifdef HAVE_STRINGS_H
4195 #include <strings.h>
4196 #endif
4197 #ifdef HAVE_STDLIB_H
4198 #include <stdlib.h>
4199 #endif
4200 #ifdef HAVE_SYS_TIME_H
4201 #include <sys/time.h>
4202 #endif
4203 #ifdef HAVE_UNISTD_H
4204 #include <unistd.h>
4205 #endif
4206 #ifdef HAVE_MATH_H
4207 #include <math.h>
4208 #endif
4210 main ()
4212 #ifndef snprintf
4213 char *p = (char *) snprintf;
4214 #endif
4216 return 0;
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -s conftest.$ac_objext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 groff_cv_decl_needed_snprintf=no
4232 else
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 groff_cv_decl_needed_snprintf=yes
4237 rm -f conftest.$ac_objext conftest.$ac_ext
4240 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
4241 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
4242 if test $groff_cv_decl_needed_snprintf = yes; then
4244 cat >>confdefs.h <<\_ACEOF
4245 #define NEED_DECLARATION_SNPRINTF 1
4246 _ACEOF
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
4256 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
4257 ac_ext=cc
4258 ac_cpp='$CXXCPP $CPPFLAGS'
4259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4263 if test "${groff_cv_decl_needed_srand+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 cat >conftest.$ac_ext <<_ACEOF
4267 #line $LINENO "configure"
4268 #include "confdefs.h"
4270 #include <stdio.h>
4271 #ifdef HAVE_STRING_H
4272 #include <string.h>
4273 #endif
4274 #ifdef HAVE_STRINGS_H
4275 #include <strings.h>
4276 #endif
4277 #ifdef HAVE_STDLIB_H
4278 #include <stdlib.h>
4279 #endif
4280 #ifdef HAVE_SYS_TIME_H
4281 #include <sys/time.h>
4282 #endif
4283 #ifdef HAVE_UNISTD_H
4284 #include <unistd.h>
4285 #endif
4286 #ifdef HAVE_MATH_H
4287 #include <math.h>
4288 #endif
4290 main ()
4292 #ifndef srand
4293 char *p = (char *) srand;
4294 #endif
4296 return 0;
4298 _ACEOF
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 (eval $ac_try) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 groff_cv_decl_needed_srand=no
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4315 groff_cv_decl_needed_srand=yes
4317 rm -f conftest.$ac_objext conftest.$ac_ext
4320 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
4321 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
4322 if test $groff_cv_decl_needed_srand = yes; then
4324 cat >>confdefs.h <<\_ACEOF
4325 #define NEED_DECLARATION_SRAND 1
4326 _ACEOF
4329 ac_ext=c
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
4336 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
4337 ac_ext=cc
4338 ac_cpp='$CXXCPP $CPPFLAGS'
4339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4343 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4350 #include <stdio.h>
4351 #ifdef HAVE_STRING_H
4352 #include <string.h>
4353 #endif
4354 #ifdef HAVE_STRINGS_H
4355 #include <strings.h>
4356 #endif
4357 #ifdef HAVE_STDLIB_H
4358 #include <stdlib.h>
4359 #endif
4360 #ifdef HAVE_SYS_TIME_H
4361 #include <sys/time.h>
4362 #endif
4363 #ifdef HAVE_UNISTD_H
4364 #include <unistd.h>
4365 #endif
4366 #ifdef HAVE_MATH_H
4367 #include <math.h>
4368 #endif
4370 main ()
4372 #ifndef strcasecmp
4373 char *p = (char *) strcasecmp;
4374 #endif
4376 return 0;
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 (eval $ac_try) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4391 groff_cv_decl_needed_strcasecmp=no
4392 else
4393 echo "$as_me: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4395 groff_cv_decl_needed_strcasecmp=yes
4397 rm -f conftest.$ac_objext conftest.$ac_ext
4400 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
4401 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
4402 if test $groff_cv_decl_needed_strcasecmp = yes; then
4404 cat >>confdefs.h <<\_ACEOF
4405 #define NEED_DECLARATION_STRCASECMP 1
4406 _ACEOF
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
4416 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
4417 ac_ext=cc
4418 ac_cpp='$CXXCPP $CPPFLAGS'
4419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4423 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426 cat >conftest.$ac_ext <<_ACEOF
4427 #line $LINENO "configure"
4428 #include "confdefs.h"
4430 #include <stdio.h>
4431 #ifdef HAVE_STRING_H
4432 #include <string.h>
4433 #endif
4434 #ifdef HAVE_STRINGS_H
4435 #include <strings.h>
4436 #endif
4437 #ifdef HAVE_STDLIB_H
4438 #include <stdlib.h>
4439 #endif
4440 #ifdef HAVE_SYS_TIME_H
4441 #include <sys/time.h>
4442 #endif
4443 #ifdef HAVE_UNISTD_H
4444 #include <unistd.h>
4445 #endif
4446 #ifdef HAVE_MATH_H
4447 #include <math.h>
4448 #endif
4450 main ()
4452 #ifndef strncasecmp
4453 char *p = (char *) strncasecmp;
4454 #endif
4456 return 0;
4458 _ACEOF
4459 rm -f conftest.$ac_objext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try='test -s conftest.$ac_objext'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 groff_cv_decl_needed_strncasecmp=no
4472 else
4473 echo "$as_me: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 groff_cv_decl_needed_strncasecmp=yes
4477 rm -f conftest.$ac_objext conftest.$ac_ext
4480 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
4481 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
4482 if test $groff_cv_decl_needed_strncasecmp = yes; then
4484 cat >>confdefs.h <<\_ACEOF
4485 #define NEED_DECLARATION_STRNCASECMP 1
4486 _ACEOF
4489 ac_ext=c
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 ac_ext=cc
4496 ac_cpp='$CXXCPP $CPPFLAGS'
4497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4501 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
4502 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
4503 cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 #include "confdefs.h"
4506 #include <errno.h>
4507 #include <stdio.h>
4508 #include <stdlib.h>
4510 main ()
4512 int k; k = sys_nerr;
4514 return 0;
4516 _ACEOF
4517 rm -f conftest.$ac_objext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 echo "$as_me:$LINENO: result: yes" >&5
4530 echo "${ECHO_T}yes" >&6;
4531 cat >>confdefs.h <<\_ACEOF
4532 #define HAVE_SYS_NERR 1
4533 _ACEOF
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4541 rm -f conftest.$ac_objext conftest.$ac_ext
4542 ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
4549 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
4550 cat >conftest.$ac_ext <<_ACEOF
4551 #line $LINENO "configure"
4552 #include "confdefs.h"
4553 #include <errno.h>
4554 #include <stdio.h>
4555 #include <stdlib.h>
4557 main ()
4559 int k; k = (int)sys_errlist[0];
4561 return 0;
4563 _ACEOF
4564 rm -f conftest.$ac_objext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 echo "$as_me:$LINENO: result: yes" >&5
4577 echo "${ECHO_T}yes" >&6;
4578 cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_SYS_ERRLIST 1
4580 _ACEOF
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4585 echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4588 rm -f conftest.$ac_objext conftest.$ac_ext
4589 ac_ext=cc
4590 ac_cpp='$CXXCPP $CPPFLAGS'
4591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4595 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
4596 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
4597 cat >conftest.$ac_ext <<_ACEOF
4598 #line $LINENO "configure"
4599 #include "confdefs.h"
4600 #include <osfcn.h>
4602 main ()
4604 read(0, 0, 0); open(0, 0);
4606 return 0;
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 echo "$as_me:$LINENO: result: yes" >&5
4622 echo "${ECHO_T}yes" >&6;
4623 cat >>confdefs.h <<\_ACEOF
4624 #define HAVE_CC_OSFCN_H 1
4625 _ACEOF
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4630 echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4633 rm -f conftest.$ac_objext conftest.$ac_ext
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640 ac_ext=cc
4641 ac_cpp='$CXXCPP $CPPFLAGS'
4642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4646 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
4647 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
4648 cat >conftest.$ac_ext <<_ACEOF
4649 #line $LINENO "configure"
4650 #include "confdefs.h"
4651 #include <limits.h>
4653 main ()
4655 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
4657 return 0;
4659 _ACEOF
4660 rm -f conftest.$ac_objext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662 (eval $ac_compile) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -s conftest.$ac_objext'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 (eval $ac_try) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; }; then
4672 echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6;
4674 cat >>confdefs.h <<\_ACEOF
4675 #define HAVE_CC_LIMITS_H 1
4676 _ACEOF
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4681 echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4684 rm -f conftest.$ac_objext conftest.$ac_ext
4685 ac_ext=c
4686 ac_cpp='$CPP $CPPFLAGS'
4687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691 ac_ext=cc
4692 ac_cpp='$CXXCPP $CPPFLAGS'
4693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4697 echo "$as_me:$LINENO: checking C++ <stdint.h>" >&5
4698 echo $ECHO_N "checking C++ <stdint.h>... $ECHO_C" >&6
4699 cat >conftest.$ac_ext <<_ACEOF
4700 #line $LINENO "configure"
4701 #include "confdefs.h"
4702 #include <stdint.h>
4704 main ()
4706 uint32_t x; int32_t y;
4708 return 0;
4710 _ACEOF
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 echo "$as_me:$LINENO: result: yes" >&5
4724 echo "${ECHO_T}yes" >&6;
4725 cat >>confdefs.h <<\_ACEOF
4726 #define HAVE_CC_STDINT_H 1
4727 _ACEOF
4729 else
4730 echo "$as_me: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4732 echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4735 rm -f conftest.$ac_objext conftest.$ac_ext
4736 ac_ext=c
4737 ac_cpp='$CPP $CPPFLAGS'
4738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 ac_ext=cc
4743 ac_cpp='$CXXCPP $CPPFLAGS'
4744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4748 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4749 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4750 cat >conftest.$ac_ext <<_ACEOF
4751 #line $LINENO "configure"
4752 #include "confdefs.h"
4753 #include <sys/types.h>
4754 #include <inttypes.h>
4756 main ()
4758 uintmax_t i = (uintmax_t)-1;
4760 return 0;
4762 _ACEOF
4763 rm -f conftest.$ac_objext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765 (eval $ac_compile) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
4769 { ac_try='test -s conftest.$ac_objext'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 groff_cv_header_inttypes_h=yes
4776 else
4777 echo "$as_me: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4779 groff_cv_header_inttypes_h=no
4781 rm -f conftest.$ac_objext conftest.$ac_ext
4782 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
4783 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790 ac_ext=cc
4791 ac_cpp='$CXXCPP $CPPFLAGS'
4792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796 echo "$as_me:$LINENO: checking for unsigned long long" >&5
4797 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4798 cat >conftest.$ac_ext <<_ACEOF
4799 #line $LINENO "configure"
4800 #include "confdefs.h"
4801 unsigned long long ull = 1; int i = 63;
4803 main ()
4805 unsigned long long ullmax = (unsigned long long)-1;
4806 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4808 return 0;
4810 _ACEOF
4811 rm -f conftest.$ac_objext conftest$ac_exeext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -s conftest$ac_exeext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 groff_cv_type_unsigned_long_long=yes
4824 else
4825 echo "$as_me: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4827 groff_cv_type_unsigned_long_long=no
4829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4830 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
4831 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
4832 ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4839 if test $groff_cv_header_inttypes_h = no; then
4841 test $groff_cv_type_unsigned_long_long = yes \
4842 && ac_type='unsigned long long' \
4843 || ac_type='unsigned long'
4845 cat >>confdefs.h <<_ACEOF
4846 #define uintmax_t $ac_type
4847 _ACEOF
4850 ac_ext=cc
4851 ac_cpp='$CXXCPP $CPPFLAGS'
4852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4856 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
4857 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
4858 cat >conftest.$ac_ext <<_ACEOF
4859 #line $LINENO "configure"
4860 #include "confdefs.h"
4861 #include <time.h>
4863 main ()
4865 time_t t = time(0); struct tm *p = localtime(&t);
4867 return 0;
4869 _ACEOF
4870 rm -f conftest.$ac_objext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6
4884 else
4885 echo "$as_me: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4887 echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6;
4889 cat >>confdefs.h <<\_ACEOF
4890 #define LONG_FOR_TIME_T 1
4891 _ACEOF
4894 rm -f conftest.$ac_objext conftest.$ac_ext
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4902 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4903 if test "${ac_cv_type_signal+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 cat >conftest.$ac_ext <<_ACEOF
4907 #line $LINENO "configure"
4908 #include "confdefs.h"
4909 #include <sys/types.h>
4910 #include <signal.h>
4911 #ifdef signal
4912 # undef signal
4913 #endif
4914 #ifdef __cplusplus
4915 extern "C" void (*signal (int, void (*)(int)))(int);
4916 #else
4917 void (*signal ()) ();
4918 #endif
4921 main ()
4923 int i;
4925 return 0;
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_type_signal=void
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 ac_cv_type_signal=int
4946 rm -f conftest.$ac_objext conftest.$ac_ext
4948 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4949 echo "${ECHO_T}$ac_cv_type_signal" >&6
4951 cat >>confdefs.h <<_ACEOF
4952 #define RETSIGTYPE $ac_cv_type_signal
4953 _ACEOF
4956 echo "$as_me:$LINENO: checking struct exception" >&5
4957 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
4958 cat >conftest.$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4960 #include "confdefs.h"
4961 #include <math.h>
4963 main ()
4965 struct exception e;
4967 return 0;
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972 (eval $ac_compile) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 echo "$as_me:$LINENO: result: yes" >&5
4983 echo "${ECHO_T}yes" >&6;
4984 cat >>confdefs.h <<\_ACEOF
4985 #define HAVE_STRUCT_EXCEPTION 1
4986 _ACEOF
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4991 echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6
4994 rm -f conftest.$ac_objext conftest.$ac_ext
4995 echo "$as_me:$LINENO: checking for main in -lc" >&5
4996 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
4997 if test "${ac_cv_lib_c_main+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 ac_check_lib_save_LIBS=$LIBS
5001 LIBS="-lc $LIBS"
5002 cat >conftest.$ac_ext <<_ACEOF
5003 #line $LINENO "configure"
5004 #include "confdefs.h"
5008 main ()
5010 main ();
5012 return 0;
5014 _ACEOF
5015 rm -f conftest.$ac_objext conftest$ac_exeext
5016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5017 (eval $ac_link) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5021 { ac_try='test -s conftest$ac_exeext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 ac_cv_lib_c_main=yes
5028 else
5029 echo "$as_me: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5031 ac_cv_lib_c_main=no
5033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5034 LIBS=$ac_check_lib_save_LIBS
5036 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
5037 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
5038 if test $ac_cv_lib_c_main = yes; then
5039 LIBC=-lc
5043 echo "$as_me:$LINENO: checking for sin in -lm" >&5
5044 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5045 if test "${ac_cv_lib_m_sin+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 ac_check_lib_save_LIBS=$LIBS
5049 LIBS="-lm $LIBS"
5050 cat >conftest.$ac_ext <<_ACEOF
5051 #line $LINENO "configure"
5052 #include "confdefs.h"
5054 /* Override any gcc2 internal prototype to avoid an error. */
5055 #ifdef __cplusplus
5056 extern "C"
5057 #endif
5058 /* We use char because int might match the return type of a gcc2
5059 builtin and then its argument prototype would still apply. */
5060 char sin ();
5062 main ()
5064 sin ();
5066 return 0;
5068 _ACEOF
5069 rm -f conftest.$ac_objext conftest$ac_exeext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5071 (eval $ac_link) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -s conftest$ac_exeext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_cv_lib_m_sin=yes
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 ac_cv_lib_m_sin=no
5087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5088 LIBS=$ac_check_lib_save_LIBS
5090 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
5091 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
5092 if test $ac_cv_lib_m_sin = yes; then
5093 LIBM=-lm
5099 for ac_header in stdlib.h unistd.h
5101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5103 echo "$as_me:$LINENO: checking for $ac_header" >&5
5104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5110 else
5111 # Is the header compilable?
5112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5114 cat >conftest.$ac_ext <<_ACEOF
5115 #line $LINENO "configure"
5116 #include "confdefs.h"
5117 $ac_includes_default
5118 #include <$ac_header>
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122 (eval $ac_compile) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } &&
5126 { ac_try='test -s conftest.$ac_objext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 ac_header_compiler=yes
5133 else
5134 echo "$as_me: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5136 ac_header_compiler=no
5138 rm -f conftest.$ac_objext conftest.$ac_ext
5139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5140 echo "${ECHO_T}$ac_header_compiler" >&6
5142 # Is the header present?
5143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5145 cat >conftest.$ac_ext <<_ACEOF
5146 #line $LINENO "configure"
5147 #include "confdefs.h"
5148 #include <$ac_header>
5149 _ACEOF
5150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5152 ac_status=$?
5153 grep -v '^ *+' conftest.er1 >conftest.err
5154 rm -f conftest.er1
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } >/dev/null; then
5158 if test -s conftest.err; then
5159 ac_cpp_err=$ac_c_preproc_warn_flag
5160 else
5161 ac_cpp_err=
5163 else
5164 ac_cpp_err=yes
5166 if test -z "$ac_cpp_err"; then
5167 ac_header_preproc=yes
5168 else
5169 echo "$as_me: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5171 ac_header_preproc=no
5173 rm -f conftest.err conftest.$ac_ext
5174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5175 echo "${ECHO_T}$ac_header_preproc" >&6
5177 # So? What about this header?
5178 case $ac_header_compiler:$ac_header_preproc in
5179 yes:no )
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5184 no:yes )
5185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5191 esac
5192 echo "$as_me:$LINENO: checking for $ac_header" >&5
5193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197 eval "$as_ac_Header=$ac_header_preproc"
5199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5204 cat >>confdefs.h <<_ACEOF
5205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5206 _ACEOF
5210 done
5213 for ac_func in getpagesize
5215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5216 echo "$as_me:$LINENO: checking for $ac_func" >&5
5217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5218 if eval "test \"\${$as_ac_var+set}\" = set"; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 cat >conftest.$ac_ext <<_ACEOF
5222 #line $LINENO "configure"
5223 #include "confdefs.h"
5224 /* System header to define __stub macros and hopefully few prototypes,
5225 which can conflict with char $ac_func (); below. */
5226 #include <assert.h>
5227 /* Override any gcc2 internal prototype to avoid an error. */
5228 #ifdef __cplusplus
5229 extern "C"
5230 #endif
5231 /* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5233 char $ac_func ();
5234 char (*f) ();
5237 main ()
5239 /* The GNU C library defines this for functions which it implements
5240 to always fail with ENOSYS. Some functions are actually named
5241 something starting with __ and the normal name is an alias. */
5242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5243 choke me
5244 #else
5245 f = $ac_func;
5246 #endif
5249 return 0;
5251 _ACEOF
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest$ac_exeext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 eval "$as_ac_var=yes"
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5268 eval "$as_ac_var=no"
5270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5274 if test `eval echo '${'$as_ac_var'}'` = yes; then
5275 cat >>confdefs.h <<_ACEOF
5276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5277 _ACEOF
5280 done
5282 echo "$as_me:$LINENO: checking for working mmap" >&5
5283 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5284 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 if test "$cross_compiling" = yes; then
5288 ac_cv_func_mmap_fixed_mapped=no
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5293 $ac_includes_default
5294 /* malloc might have been renamed as rpl_malloc. */
5295 #undef malloc
5297 /* Thanks to Mike Haertel and Jim Avera for this test.
5298 Here is a matrix of mmap possibilities:
5299 mmap private not fixed
5300 mmap private fixed at somewhere currently unmapped
5301 mmap private fixed at somewhere already mapped
5302 mmap shared not fixed
5303 mmap shared fixed at somewhere currently unmapped
5304 mmap shared fixed at somewhere already mapped
5305 For private mappings, we should verify that changes cannot be read()
5306 back from the file, nor mmap's back from the file at a different
5307 address. (There have been systems where private was not correctly
5308 implemented like the infamous i386 svr4.0, and systems where the
5309 VM page cache was not coherent with the file system buffer cache
5310 like early versions of FreeBSD and possibly contemporary NetBSD.)
5311 For shared mappings, we should conversely verify that changes get
5312 propagated back to all the places they're supposed to be.
5314 Grep wants private fixed already mapped.
5315 The main things grep needs to know about mmap are:
5316 * does it exist and is it safe to write into the mmap'd area
5317 * how to use it (BSD variants) */
5319 #include <fcntl.h>
5320 #include <sys/mman.h>
5322 #if !STDC_HEADERS && !HAVE_STDLIB_H
5323 char *malloc ();
5324 #endif
5326 /* This mess was copied from the GNU getpagesize.h. */
5327 #if !HAVE_GETPAGESIZE
5328 /* Assume that all systems that can run configure have sys/param.h. */
5329 # if !HAVE_SYS_PARAM_H
5330 # define HAVE_SYS_PARAM_H 1
5331 # endif
5333 # ifdef _SC_PAGESIZE
5334 # define getpagesize() sysconf(_SC_PAGESIZE)
5335 # else /* no _SC_PAGESIZE */
5336 # if HAVE_SYS_PARAM_H
5337 # include <sys/param.h>
5338 # ifdef EXEC_PAGESIZE
5339 # define getpagesize() EXEC_PAGESIZE
5340 # else /* no EXEC_PAGESIZE */
5341 # ifdef NBPG
5342 # define getpagesize() NBPG * CLSIZE
5343 # ifndef CLSIZE
5344 # define CLSIZE 1
5345 # endif /* no CLSIZE */
5346 # else /* no NBPG */
5347 # ifdef NBPC
5348 # define getpagesize() NBPC
5349 # else /* no NBPC */
5350 # ifdef PAGESIZE
5351 # define getpagesize() PAGESIZE
5352 # endif /* PAGESIZE */
5353 # endif /* no NBPC */
5354 # endif /* no NBPG */
5355 # endif /* no EXEC_PAGESIZE */
5356 # else /* no HAVE_SYS_PARAM_H */
5357 # define getpagesize() 8192 /* punt totally */
5358 # endif /* no HAVE_SYS_PARAM_H */
5359 # endif /* no _SC_PAGESIZE */
5361 #endif /* no HAVE_GETPAGESIZE */
5364 main ()
5366 char *data, *data2, *data3;
5367 int i, pagesize;
5368 int fd;
5370 pagesize = getpagesize ();
5372 /* First, make a file with some known garbage in it. */
5373 data = (char *) malloc (pagesize);
5374 if (!data)
5375 exit (1);
5376 for (i = 0; i < pagesize; ++i)
5377 *(data + i) = rand ();
5378 umask (0);
5379 fd = creat ("conftest.mmap", 0600);
5380 if (fd < 0)
5381 exit (1);
5382 if (write (fd, data, pagesize) != pagesize)
5383 exit (1);
5384 close (fd);
5386 /* Next, try to mmap the file at a fixed address which already has
5387 something else allocated at it. If we can, also make sure that
5388 we see the same garbage. */
5389 fd = open ("conftest.mmap", O_RDWR);
5390 if (fd < 0)
5391 exit (1);
5392 data2 = (char *) malloc (2 * pagesize);
5393 if (!data2)
5394 exit (1);
5395 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5396 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5397 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5398 exit (1);
5399 for (i = 0; i < pagesize; ++i)
5400 if (*(data + i) != *(data2 + i))
5401 exit (1);
5403 /* Finally, make sure that changes to the mapped area do not
5404 percolate back to the file as seen by read(). (This is a bug on
5405 some variants of i386 svr4.0.) */
5406 for (i = 0; i < pagesize; ++i)
5407 *(data2 + i) = *(data2 + i) + 1;
5408 data3 = (char *) malloc (pagesize);
5409 if (!data3)
5410 exit (1);
5411 if (read (fd, data3, pagesize) != pagesize)
5412 exit (1);
5413 for (i = 0; i < pagesize; ++i)
5414 if (*(data + i) != *(data3 + i))
5415 exit (1);
5416 close (fd);
5417 exit (0);
5419 _ACEOF
5420 rm -f conftest$ac_exeext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 (eval $ac_try) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_cv_func_mmap_fixed_mapped=yes
5432 else
5433 echo "$as_me: program exited with status $ac_status" >&5
5434 echo "$as_me: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5436 ( exit $ac_status )
5437 ac_cv_func_mmap_fixed_mapped=no
5439 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5442 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5443 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5444 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5446 cat >>confdefs.h <<\_ACEOF
5447 #define HAVE_MMAP 1
5448 _ACEOF
5451 rm -f conftest.mmap
5453 saved_libs="$LIBS"
5454 LIBS="$LIBS $LIBC $LIBM"
5463 for ac_func in fmod getcwd putenv snprintf strcasecmp \
5464 strerror strncasecmp strtol
5466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5467 echo "$as_me:$LINENO: checking for $ac_func" >&5
5468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5469 if eval "test \"\${$as_ac_var+set}\" = set"; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472 cat >conftest.$ac_ext <<_ACEOF
5473 #line $LINENO "configure"
5474 #include "confdefs.h"
5475 /* System header to define __stub macros and hopefully few prototypes,
5476 which can conflict with char $ac_func (); below. */
5477 #include <assert.h>
5478 /* Override any gcc2 internal prototype to avoid an error. */
5479 #ifdef __cplusplus
5480 extern "C"
5481 #endif
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5484 char $ac_func ();
5485 char (*f) ();
5488 main ()
5490 /* The GNU C library defines this for functions which it implements
5491 to always fail with ENOSYS. Some functions are actually named
5492 something starting with __ and the normal name is an alias. */
5493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5494 choke me
5495 #else
5496 f = $ac_func;
5497 #endif
5500 return 0;
5502 _ACEOF
5503 rm -f conftest.$ac_objext conftest$ac_exeext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5505 (eval $ac_link) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -s conftest$ac_exeext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 eval "$as_ac_var=yes"
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5519 eval "$as_ac_var=no"
5521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5525 if test `eval echo '${'$as_ac_var'}'` = yes; then
5526 cat >>confdefs.h <<_ACEOF
5527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5528 _ACEOF
5530 else
5531 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5533 done
5536 LIBS="$saved_libs"
5543 for ac_func in gettimeofday isatty kill rename setlocale strsep
5545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5546 echo "$as_me:$LINENO: checking for $ac_func" >&5
5547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_var+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 cat >conftest.$ac_ext <<_ACEOF
5552 #line $LINENO "configure"
5553 #include "confdefs.h"
5554 /* System header to define __stub macros and hopefully few prototypes,
5555 which can conflict with char $ac_func (); below. */
5556 #include <assert.h>
5557 /* Override any gcc2 internal prototype to avoid an error. */
5558 #ifdef __cplusplus
5559 extern "C"
5560 #endif
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5563 char $ac_func ();
5564 char (*f) ();
5567 main ()
5569 /* The GNU C library defines this for functions which it implements
5570 to always fail with ENOSYS. Some functions are actually named
5571 something starting with __ and the normal name is an alias. */
5572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5573 choke me
5574 #else
5575 f = $ac_func;
5576 #endif
5579 return 0;
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 (eval $ac_link) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } &&
5588 { ac_try='test -s conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 eval "$as_ac_var=yes"
5595 else
5596 echo "$as_me: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 eval "$as_ac_var=no"
5600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5604 if test `eval echo '${'$as_ac_var'}'` = yes; then
5605 cat >>confdefs.h <<_ACEOF
5606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5607 _ACEOF
5610 done
5612 echo "$as_me:$LINENO: checking for mkstemp" >&5
5613 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
5614 ac_ext=cc
5615 ac_cpp='$CXXCPP $CPPFLAGS'
5616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 #include "confdefs.h"
5624 #include <stdlib.h>
5625 #include <unistd.h>
5626 int (*f) (char *);
5628 main ()
5630 f = mkstemp;
5632 return 0;
5634 _ACEOF
5635 rm -f conftest.$ac_objext conftest$ac_exeext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637 (eval $ac_link) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -s conftest$ac_exeext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 echo "$as_me:$LINENO: result: yes" >&5
5648 echo "${ECHO_T}yes" >&6;
5649 cat >>confdefs.h <<\_ACEOF
5650 #define HAVE_MKSTEMP 1
5651 _ACEOF
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6;LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
5659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5660 ac_ext=c
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
5667 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
5668 if test "${ac_cv_decl_sys_siglist+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 cat >conftest.$ac_ext <<_ACEOF
5672 #line $LINENO "configure"
5673 #include "confdefs.h"
5674 #include <sys/types.h>
5675 #include <signal.h>
5676 /* NetBSD declares sys_siglist in unistd.h. */
5677 #if HAVE_UNISTD_H
5678 # include <unistd.h>
5679 #endif
5682 main ()
5684 char *msg = *(sys_siglist + 1);
5686 return 0;
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -s conftest.$ac_objext'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 ac_cv_decl_sys_siglist=yes
5702 else
5703 echo "$as_me: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5705 ac_cv_decl_sys_siglist=no
5707 rm -f conftest.$ac_objext conftest.$ac_ext
5709 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5710 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5711 if test $ac_cv_decl_sys_siglist = yes; then
5713 cat >>confdefs.h <<\_ACEOF
5714 #define SYS_SIGLIST_DECLARED 1
5715 _ACEOF
5719 ac_ext=cc
5720 ac_cpp='$CXXCPP $CPPFLAGS'
5721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5725 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
5726 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5729 #include "confdefs.h"
5732 main ()
5734 char *p = new char[5]; delete [] p;
5736 return 0;
5738 _ACEOF
5739 rm -f conftest.$ac_objext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741 (eval $ac_compile) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -s conftest.$ac_objext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 (eval $ac_try) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5756 echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6;
5758 cat >>confdefs.h <<\_ACEOF
5759 #define ARRAY_DELETE_NEEDS_SIZE 1
5760 _ACEOF
5763 rm -f conftest.$ac_objext conftest.$ac_ext
5764 ac_ext=c
5765 ac_cpp='$CPP $CPPFLAGS'
5766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5770 ac_ext=cc
5771 ac_cpp='$CXXCPP $CPPFLAGS'
5772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5776 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
5777 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
5778 cat >conftest.$ac_ext <<_ACEOF
5779 #line $LINENO "configure"
5780 #include "confdefs.h"
5781 #define name2(a,b) a/**/b
5783 main ()
5785 int name2(foo,bar);
5787 return 0;
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792 (eval $ac_compile) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } &&
5796 { ac_try='test -s conftest.$ac_objext'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 echo "$as_me:$LINENO: result: yes" >&5
5803 echo "${ECHO_T}yes" >&6;
5804 cat >>confdefs.h <<\_ACEOF
5805 #define TRADITIONAL_CPP 1
5806 _ACEOF
5808 else
5809 echo "$as_me: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5811 echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6
5814 rm -f conftest.$ac_objext conftest.$ac_ext
5815 ac_ext=c
5816 ac_cpp='$CPP $CPPFLAGS'
5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5821 echo "$as_me:$LINENO: checking w_coredump" >&5
5822 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
5823 if test "$cross_compiling" = yes; then
5824 echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826 else
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5829 #include "confdefs.h"
5830 #include <sys/types.h>
5831 #include <sys/wait.h>
5832 main()
5834 #ifdef WCOREFLAG
5835 exit(1);
5836 #else
5837 int i = 0;
5838 ((union wait *)&i)->w_coredump = 1;
5839 exit(i != 0200);
5840 #endif
5842 _ACEOF
5843 rm -f conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845 (eval $ac_link) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 echo "$as_me:$LINENO: result: yes" >&5
5855 echo "${ECHO_T}yes" >&6;
5856 cat >>confdefs.h <<\_ACEOF
5857 #define WCOREFLAG 0200
5858 _ACEOF
5860 else
5861 echo "$as_me: program exited with status $ac_status" >&5
5862 echo "$as_me: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5864 ( exit $ac_status )
5865 echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5868 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5870 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
5871 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
5872 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
5873 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
5874 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
5876 echo "$as_me:$LINENO: checking default paper size" >&5
5877 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
5878 groff_prefix=$prefix
5879 test "x$prefix" = xNONE && groff_prefix=$ac_default_prefix
5880 if test -z "$PAGE"; then
5881 descfile=
5882 if test -r $groff_prefix/share/groff/font/devps/DESC; then
5883 descfile=$groff_prefix/share/groff/font/devps/DESC
5884 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
5885 descfile=$groff_prefix/lib/groff/font/devps/DESC
5886 else
5887 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
5888 if test -r $f; then
5889 descfile=$f
5890 break
5892 done
5894 if test -n "$descfile"; then
5895 if grep '^paperlength[ ]\+841890' $descfile
5896 >/dev/null 2>&1; then
5897 PAGE=A4
5898 elif grep '^papersize[ ]\+[aA]4' $descfile \
5899 >/dev/null 2>&1; then
5900 PAGE=A4
5904 if test -z "$PAGE"; then
5905 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
5906 /etc/resolv.conf 2>/dev/null`
5907 if test -z "$dom"; then
5908 dom=`(domainname) 2>/dev/null | tr -d '+'`
5909 if test -z "$dom" \
5910 || test "$dom" = '(none)'; then
5911 dom=`(hostname) 2>/dev/null | grep '\.'`
5914 # If the top-level domain is two letters and it's not `us' or `ca'
5915 # then they probably use A4 paper.
5916 case "$dom" in
5917 *.[Uu][Ss]|*.[Cc][Aa]) ;;
5918 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
5919 esac
5921 test -n "$PAGE" || PAGE=letter
5922 if test "x$PAGE" = "xA4"; then
5924 cat >>confdefs.h <<\_ACEOF
5925 #define PAGEA4 1
5926 _ACEOF
5929 echo "$as_me:$LINENO: result: $PAGE" >&5
5930 echo "${ECHO_T}$PAGE" >&6
5932 echo "$as_me:$LINENO: checking for existing troff installation" >&5
5933 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
5934 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
5935 echo "$as_me:$LINENO: result: yes" >&5
5936 echo "${ECHO_T}yes" >&6
5938 else
5939 echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6
5944 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
5945 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
5946 sys_tmac_prefix=
5947 sys_tmac_file_prefix=
5948 for d in /usr/share/lib/tmac /usr/lib/tmac; do
5949 for t in "" tmac.; do
5950 for m in an s m; do
5951 f=$d/$t$m
5952 if test -z "$sys_tmac_prefix" \
5953 && test -f $f \
5954 && grep '^\.if' $f >/dev/null 2>&1; then
5955 sys_tmac_prefix=$d/$t
5956 sys_tmac_file_prefix=$t
5958 done
5959 done
5960 done
5961 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
5962 echo "${ECHO_T}$sys_tmac_prefix" >&6
5964 tmac_wrap=
5965 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
5966 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
5967 if test "x$sys_tmac_file_prefix" = "xtmac."; then
5968 for f in $sys_tmac_prefix*; do
5969 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
5970 case "$suff" in
5971 e) ;;
5973 grep "Copyright.*Free Software Foundation" $f >/dev/null \
5974 || tmac_wrap="$tmac_wrap $suff" ;;
5975 esac
5976 done
5977 elif test -n "$sys_tmac_prefix"; then
5978 files=`echo $sys_tmac_prefix*`
5979 grep "\\.so" $files >conftest.sol
5980 for f in $files; do
5981 case "$f" in
5982 ${sys_tmac_prefix}e) ;;
5983 *.me) ;;
5984 */ms.*) ;;
5986 b=`basename $f`
5987 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
5988 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
5990 else
5991 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
5992 case "$suff" in
5993 tmac.*) ;;
5994 *) tmac_wrap="$tmac_wrap $suff" ;;
5995 esac
5997 esac
5998 done
5999 rm -f conftest.sol
6001 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
6002 echo "${ECHO_T}$tmac_wrap" >&6
6004 make_html=html
6005 make_install_html=install_html
6006 missing=
6007 # Extract the first word of "pnmcut", so it can be a program name with args.
6008 set dummy pnmcut; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_pnmcut+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 if test -n "$pnmcut"; then
6015 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_pnmcut="found"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6028 done
6029 done
6031 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
6034 pnmcut=$ac_cv_prog_pnmcut
6035 if test -n "$pnmcut"; then
6036 echo "$as_me:$LINENO: result: $pnmcut" >&5
6037 echo "${ECHO_T}$pnmcut" >&6
6038 else
6039 echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6043 if test $pnmcut = missing; then
6044 missing="$missing pnmcut"
6046 # Extract the first word of "pnmcrop", so it can be a program name with args.
6047 set dummy pnmcrop; ac_word=$2
6048 echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6050 if test "${ac_cv_prog_pnmcrop+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 if test -n "$pnmcrop"; then
6054 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063 ac_cv_prog_pnmcrop="found"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6067 done
6068 done
6070 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
6073 pnmcrop=$ac_cv_prog_pnmcrop
6074 if test -n "$pnmcrop"; then
6075 echo "$as_me:$LINENO: result: $pnmcrop" >&5
6076 echo "${ECHO_T}$pnmcrop" >&6
6077 else
6078 echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6
6082 if test $pnmcrop = missing; then
6083 missing="$missing pnmcrop"
6085 # Extract the first word of "pnmtopng", so it can be a program name with args.
6086 set dummy pnmtopng; ac_word=$2
6087 echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6089 if test "${ac_cv_prog_pnmtopng+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 if test -n "$pnmtopng"; then
6093 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_pnmtopng="found"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6106 done
6107 done
6109 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
6112 pnmtopng=$ac_cv_prog_pnmtopng
6113 if test -n "$pnmtopng"; then
6114 echo "$as_me:$LINENO: result: $pnmtopng" >&5
6115 echo "${ECHO_T}$pnmtopng" >&6
6116 else
6117 echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6
6121 if test $pnmtopng = missing; then
6122 missing="$missing pnmtopng"
6124 # Extract the first word of "gs gsos2", so it can be a program name with args.
6125 set dummy gs gsos2; ac_word=$2
6126 echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6128 if test "${ac_cv_prog_gs+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 if test -n "$gs"; then
6132 ac_cv_prog_gs="$gs" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_gs="found"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6145 done
6146 done
6148 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs="missing"
6151 gs=$ac_cv_prog_gs
6152 if test -n "$gs"; then
6153 echo "$as_me:$LINENO: result: $gs" >&5
6154 echo "${ECHO_T}$gs" >&6
6155 else
6156 echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6
6160 if test $gs = missing; then
6161 missing="$missing gs"
6163 # Extract the first word of "psselect", so it can be a program name with args.
6164 set dummy psselect; ac_word=$2
6165 echo "$as_me:$LINENO: checking for $ac_word" >&5
6166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6167 if test "${ac_cv_prog_psselect+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170 if test -n "$psselect"; then
6171 ac_cv_prog_psselect="$psselect" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_psselect="found"
6181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6184 done
6185 done
6187 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
6190 psselect=$ac_cv_prog_psselect
6191 if test -n "$psselect"; then
6192 echo "$as_me:$LINENO: result: $psselect" >&5
6193 echo "${ECHO_T}$psselect" >&6
6194 else
6195 echo "$as_me:$LINENO: result: no" >&5
6196 echo "${ECHO_T}no" >&6
6199 if test $psselect = missing; then
6200 missing="$missing psselect"
6202 # Extract the first word of "pnmtops", so it can be a program name with args.
6203 set dummy pnmtops; ac_word=$2
6204 echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6206 if test "${ac_cv_prog_pnmtops+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 if test -n "$pnmtops"; then
6210 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_pnmtops="found"
6220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6223 done
6224 done
6226 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
6229 pnmtops=$ac_cv_prog_pnmtops
6230 if test -n "$pnmtops"; then
6231 echo "$as_me:$LINENO: result: $pnmtops" >&5
6232 echo "${ECHO_T}$pnmtops" >&6
6233 else
6234 echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6
6238 if test $pnmtops = missing; then
6239 missing="$missing pnmtops"
6241 if test -n "$missing"; then
6242 cnt=0
6243 for i in $missing
6245 cnt=`expr $cnt + 1`
6246 eval "prog$cnt=$i"
6247 done
6248 plural="s"
6249 case $cnt in
6251 plural=""
6252 progs="\`$prog1'" ;;
6254 progs="\`$prog1' and \`$prog2'" ;;
6256 progs="\`$prog1', \`$prog2', and \`$prog3'" ;;
6258 progs="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
6260 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
6262 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
6263 esac
6264 make_html=
6265 make_install_html=
6266 { echo "$as_me:$LINENO: WARNING:
6268 The program$plural
6269 $progs
6270 can't be found in the path, thus the HTML backend of groff (grohtml)
6271 won't work properly. Consequently, no documentation in HTML format
6272 is built and installed.
6273 " >&5
6274 echo "$as_me: WARNING:
6276 The program$plural
6277 $progs
6278 can't be found in the path, thus the HTML backend of groff (grohtml)
6279 won't work properly. Consequently, no documentation in HTML format
6280 is built and installed.
6281 " >&2;}
6285 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
6286 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
6287 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
6288 echo "$as_me:$LINENO: result: yes" >&5
6289 echo "${ECHO_T}yes" >&6
6290 pnmtops_nosetpage="pnmtops -nosetpage"
6291 else
6292 echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6
6294 pnmtops_nosetpage="pnmtops"
6298 ac_config_files="$ac_config_files stamp-h"
6300 ac_config_files="$ac_config_files Makefile doc/Makefile src/xditview/Imakefile"
6302 cat >confcache <<\_ACEOF
6303 # This file is a shell script that caches the results of configure
6304 # tests run on this system so they can be shared between configure
6305 # scripts and configure runs, see configure's option --config-cache.
6306 # It is not useful on other systems. If it contains results you don't
6307 # want to keep, you may remove or edit it.
6309 # config.status only pays attention to the cache file if you give it
6310 # the --recheck option to rerun configure.
6312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6314 # following values.
6316 _ACEOF
6318 # The following way of writing the cache mishandles newlines in values,
6319 # but we know of no workaround that is simple, portable, and efficient.
6320 # So, don't put newlines in cache variables' values.
6321 # Ultrix sh set writes to stderr and can't be redirected directly,
6322 # and sets the high bit in the cache file unless we assign to the vars.
6324 (set) 2>&1 |
6325 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6326 *ac_space=\ *)
6327 # `set' does not quote correctly, so add quotes (double-quote
6328 # substitution turns \\\\ into \\, and sed turns \\ into \).
6329 sed -n \
6330 "s/'/'\\\\''/g;
6331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6334 # `set' quotes correctly as required by POSIX, so do not add quotes.
6335 sed -n \
6336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6338 esac;
6340 sed '
6341 t clear
6342 : clear
6343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6344 t end
6345 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6346 : end' >>confcache
6347 if cmp -s $cache_file confcache; then :; else
6348 if test -w $cache_file; then
6349 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6350 cat confcache >$cache_file
6351 else
6352 echo "not updating unwritable cache $cache_file"
6355 rm -f confcache
6357 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6358 # Let make expand exec_prefix.
6359 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6361 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6362 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6363 # trailing colons and then remove the whole line if VPATH becomes empty
6364 # (actually we leave an empty line to preserve line numbers).
6365 if test "x$srcdir" = x.; then
6366 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6367 s/:*\$(srcdir):*/:/;
6368 s/:*\${srcdir}:*/:/;
6369 s/:*@srcdir@:*/:/;
6370 s/^\([^=]*=[ ]*\):*/\1/;
6371 s/:*$//;
6372 s/^[^=]*=[ ]*$//;
6376 DEFS=-DHAVE_CONFIG_H
6378 ac_libobjs=
6379 ac_ltlibobjs=
6380 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6381 # 1. Remove the extension, and $U if already installed.
6382 ac_i=`echo "$ac_i" |
6383 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6384 # 2. Add them.
6385 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6386 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6387 done
6388 LIBOBJS=$ac_libobjs
6390 LTLIBOBJS=$ac_ltlibobjs
6394 : ${CONFIG_STATUS=./config.status}
6395 ac_clean_files_save=$ac_clean_files
6396 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6397 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6398 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6399 cat >$CONFIG_STATUS <<_ACEOF
6400 #! $SHELL
6401 # Generated by $as_me.
6402 # Run this file to recreate the current configuration.
6403 # Compiler output produced by configure, useful for debugging
6404 # configure, is in config.log if it exists.
6406 debug=false
6407 SHELL=\${CONFIG_SHELL-$SHELL}
6408 _ACEOF
6410 cat >>$CONFIG_STATUS <<\_ACEOF
6411 ## --------------------- ##
6412 ## M4sh Initialization. ##
6413 ## --------------------- ##
6415 # Be Bourne compatible
6416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6417 emulate sh
6418 NULLCMD=:
6419 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6420 # is contrary to our usage. Disable this feature.
6421 alias -g '${1+"$@"}'='"$@"'
6422 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6423 set -o posix
6426 # Support unset when possible.
6427 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6428 as_unset=unset
6429 else
6430 as_unset=false
6434 # Work around bugs in pre-3.0 UWIN ksh.
6435 $as_unset ENV MAIL MAILPATH
6436 PS1='$ '
6437 PS2='> '
6438 PS4='+ '
6440 # NLS nuisances.
6441 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
6443 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6444 eval $as_var=C; export $as_var
6445 else
6446 $as_unset $as_var
6448 done
6450 # Required to use basename.
6451 if expr a : '\(a\)' >/dev/null 2>&1; then
6452 as_expr=expr
6453 else
6454 as_expr=false
6457 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6458 as_basename=basename
6459 else
6460 as_basename=false
6464 # Name of the executable.
6465 as_me=`$as_basename "$0" ||
6466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6467 X"$0" : 'X\(//\)$' \| \
6468 X"$0" : 'X\(/\)$' \| \
6469 . : '\(.\)' 2>/dev/null ||
6470 echo X/"$0" |
6471 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6472 /^X\/\(\/\/\)$/{ s//\1/; q; }
6473 /^X\/\(\/\).*/{ s//\1/; q; }
6474 s/.*/./; q'`
6477 # PATH needs CR, and LINENO needs CR and PATH.
6478 # Avoid depending upon Character Ranges.
6479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6482 as_cr_digits='0123456789'
6483 as_cr_alnum=$as_cr_Letters$as_cr_digits
6485 # The user is always right.
6486 if test "${PATH_SEPARATOR+set}" != set; then
6487 echo "#! /bin/sh" >conftest.sh
6488 echo "exit 0" >>conftest.sh
6489 chmod +x conftest.sh
6490 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
6491 PATH_SEPARATOR=';'
6492 else
6493 PATH_SEPARATOR=:
6495 rm -f conftest.sh
6499 as_lineno_1=$LINENO
6500 as_lineno_2=$LINENO
6501 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6502 test "x$as_lineno_1" != "x$as_lineno_2" &&
6503 test "x$as_lineno_3" = "x$as_lineno_2" || {
6504 # Find who we are. Look in the path if we contain no path at all
6505 # relative or not.
6506 case $0 in
6507 *[\\/]* ) as_myself=$0 ;;
6508 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6514 done
6517 esac
6518 # We did not find ourselves, most probably we were run as `sh COMMAND'
6519 # in which case we are not to be found in the path.
6520 if test "x$as_myself" = x; then
6521 as_myself=$0
6523 if test ! -f "$as_myself"; then
6524 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6525 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6526 { (exit 1); exit 1; }; }
6528 case $CONFIG_SHELL in
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
6535 for as_base in sh bash ksh sh5; do
6536 case $as_dir in
6538 if ("$as_dir/$as_base" -c '
6539 as_lineno_1=$LINENO
6540 as_lineno_2=$LINENO
6541 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6542 test "x$as_lineno_1" != "x$as_lineno_2" &&
6543 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6544 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6545 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6546 CONFIG_SHELL=$as_dir/$as_base
6547 export CONFIG_SHELL
6548 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6549 fi;;
6550 esac
6551 done
6552 done
6554 esac
6556 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6557 # uniformly replaced by the line number. The first 'sed' inserts a
6558 # line-number line before each line; the second 'sed' does the real
6559 # work. The second script uses 'N' to pair each line-number line
6560 # with the numbered line, and appends trailing '-' during
6561 # substitution so that $LINENO is not a special case at line end.
6562 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6563 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6564 sed '=' <$as_myself |
6565 sed '
6567 s,$,-,
6568 : loop
6569 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6570 t loop
6571 s,-$,,
6572 s,^['$as_cr_digits']*\n,,
6573 ' >$as_me.lineno &&
6574 chmod +x $as_me.lineno ||
6575 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6576 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6577 { (exit 1); exit 1; }; }
6579 # Don't try to exec as it changes $[0], causing all sort of problems
6580 # (the dirname of $[0] is not the place where we might find the
6581 # original and so on. Autoconf is especially sensible to this).
6582 . ./$as_me.lineno
6583 # Exit status is that of the last command.
6584 exit
6588 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6589 *c*,-n*) ECHO_N= ECHO_C='
6590 ' ECHO_T=' ' ;;
6591 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6592 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6593 esac
6595 if expr a : '\(a\)' >/dev/null 2>&1; then
6596 as_expr=expr
6597 else
6598 as_expr=false
6601 rm -f conf$$ conf$$.exe conf$$.file
6602 echo >conf$$.file
6603 if ln -s conf$$.file conf$$ 2>/dev/null; then
6604 # We could just check for DJGPP; but this test a) works b) is more generic
6605 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6606 if test -f conf$$.exe; then
6607 # Don't use ln at all; we don't have any links
6608 as_ln_s='cp -p'
6609 else
6610 as_ln_s='ln -s'
6612 elif ln conf$$.file conf$$ 2>/dev/null; then
6613 as_ln_s=ln
6614 else
6615 as_ln_s='cp -p'
6617 rm -f conf$$ conf$$.exe conf$$.file
6619 if mkdir -p . 2>/dev/null; then
6620 as_mkdir_p=:
6621 else
6622 as_mkdir_p=false
6625 as_executable_p="test -f"
6627 # Sed expression to map a string onto a valid CPP name.
6628 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6630 # Sed expression to map a string onto a valid variable name.
6631 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6634 # IFS
6635 # We need space, tab and new line, in precisely that order.
6636 as_nl='
6638 IFS=" $as_nl"
6640 # CDPATH.
6641 $as_unset CDPATH
6643 exec 6>&1
6645 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6646 # report actual input values of CONFIG_FILES etc. instead of their
6647 # values after options handling. Logging --version etc. is OK.
6648 exec 5>>config.log
6650 echo
6651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6652 ## Running $as_me. ##
6653 _ASBOX
6654 } >&5
6655 cat >&5 <<_CSEOF
6657 This file was extended by $as_me, which was
6658 generated by GNU Autoconf 2.54. Invocation command line was
6660 CONFIG_FILES = $CONFIG_FILES
6661 CONFIG_HEADERS = $CONFIG_HEADERS
6662 CONFIG_LINKS = $CONFIG_LINKS
6663 CONFIG_COMMANDS = $CONFIG_COMMANDS
6664 $ $0 $@
6666 _CSEOF
6667 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6668 echo >&5
6669 _ACEOF
6671 # Files that config.status was made for.
6672 if test -n "$ac_config_files"; then
6673 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6676 if test -n "$ac_config_headers"; then
6677 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6680 if test -n "$ac_config_links"; then
6681 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6684 if test -n "$ac_config_commands"; then
6685 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6688 cat >>$CONFIG_STATUS <<\_ACEOF
6690 ac_cs_usage="\
6691 \`$as_me' instantiates files from templates according to the
6692 current configuration.
6694 Usage: $0 [OPTIONS] [FILE]...
6696 -h, --help print this help, then exit
6697 -V, --version print version number, then exit
6698 -d, --debug don't remove temporary files
6699 --recheck update $as_me by reconfiguring in the same conditions
6700 --file=FILE[:TEMPLATE]
6701 instantiate the configuration file FILE
6702 --header=FILE[:TEMPLATE]
6703 instantiate the configuration header FILE
6705 Configuration files:
6706 $config_files
6708 Configuration headers:
6709 $config_headers
6711 Report bugs to <bug-autoconf@gnu.org>."
6712 _ACEOF
6714 cat >>$CONFIG_STATUS <<_ACEOF
6715 ac_cs_version="\\
6716 config.status
6717 configured by $0, generated by GNU Autoconf 2.54,
6718 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6720 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6721 Free Software Foundation, Inc.
6722 This config.status script is free software; the Free Software Foundation
6723 gives unlimited permission to copy, distribute and modify it."
6724 srcdir=$srcdir
6725 INSTALL="$INSTALL"
6726 _ACEOF
6728 cat >>$CONFIG_STATUS <<\_ACEOF
6729 # If no file are specified by the user, then we need to provide default
6730 # value. By we need to know if files were specified by the user.
6731 ac_need_defaults=:
6732 while test $# != 0
6734 case $1 in
6735 --*=*)
6736 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6737 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6738 ac_shift=:
6741 ac_option=$1
6742 ac_optarg=$2
6743 ac_shift=shift
6745 *) # This is not an option, so the user has probably given explicit
6746 # arguments.
6747 ac_option=$1
6748 ac_need_defaults=false;;
6749 esac
6751 case $ac_option in
6752 # Handling of the options.
6753 _ACEOF
6754 cat >>$CONFIG_STATUS <<_ACEOF
6755 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6756 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6757 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6758 _ACEOF
6759 cat >>$CONFIG_STATUS <<\_ACEOF
6760 --version | --vers* | -V )
6761 echo "$ac_cs_version"; exit 0 ;;
6762 --he | --h)
6763 # Conflict between --help and --header
6764 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6765 Try \`$0 --help' for more information." >&5
6766 echo "$as_me: error: ambiguous option: $1
6767 Try \`$0 --help' for more information." >&2;}
6768 { (exit 1); exit 1; }; };;
6769 --help | --hel | -h )
6770 echo "$ac_cs_usage"; exit 0 ;;
6771 --debug | --d* | -d )
6772 debug=: ;;
6773 --file | --fil | --fi | --f )
6774 $ac_shift
6775 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6776 ac_need_defaults=false;;
6777 --header | --heade | --head | --hea )
6778 $ac_shift
6779 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6780 ac_need_defaults=false;;
6782 # This is an error.
6783 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6784 Try \`$0 --help' for more information." >&5
6785 echo "$as_me: error: unrecognized option: $1
6786 Try \`$0 --help' for more information." >&2;}
6787 { (exit 1); exit 1; }; } ;;
6789 *) ac_config_targets="$ac_config_targets $1" ;;
6791 esac
6792 shift
6793 done
6795 _ACEOF
6801 cat >>$CONFIG_STATUS <<\_ACEOF
6802 for ac_config_target in $ac_config_targets
6804 case "$ac_config_target" in
6805 # Handling of arguments.
6806 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
6807 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6808 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6809 "src/xditview/Imakefile" ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
6810 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
6811 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6812 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6813 { (exit 1); exit 1; }; };;
6814 esac
6815 done
6817 # If the user did not use the arguments to specify the items to instantiate,
6818 # then the envvar interface is used. Set only those that are not.
6819 # We use the long form for the default assignment because of an extremely
6820 # bizarre bug on SunOS 4.1.3.
6821 if $ac_need_defaults; then
6822 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6823 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6826 # Create a temporary directory, and hook for its removal unless debugging.
6827 $debug ||
6829 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6830 trap '{ (exit 1); exit 1; }' 1 2 13 15
6833 # Create a (secure) tmp directory for tmp files.
6834 : ${TMPDIR=/tmp}
6836 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6837 test -n "$tmp" && test -d "$tmp"
6838 } ||
6840 tmp=$TMPDIR/cs$$-$RANDOM
6841 (umask 077 && mkdir $tmp)
6842 } ||
6844 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6845 { (exit 1); exit 1; }
6848 _ACEOF
6850 cat >>$CONFIG_STATUS <<_ACEOF
6853 # CONFIG_FILES section.
6856 # No need to generate the scripts if there are no CONFIG_FILES.
6857 # This happens for instance when ./config.status config.h
6858 if test -n "\$CONFIG_FILES"; then
6859 # Protect against being on the right side of a sed subst in config.status.
6860 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6861 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6862 s,@SHELL@,$SHELL,;t t
6863 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6864 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6865 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6866 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6867 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6868 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6869 s,@exec_prefix@,$exec_prefix,;t t
6870 s,@prefix@,$prefix,;t t
6871 s,@program_transform_name@,$program_transform_name,;t t
6872 s,@bindir@,$bindir,;t t
6873 s,@sbindir@,$sbindir,;t t
6874 s,@libexecdir@,$libexecdir,;t t
6875 s,@datadir@,$datadir,;t t
6876 s,@sysconfdir@,$sysconfdir,;t t
6877 s,@sharedstatedir@,$sharedstatedir,;t t
6878 s,@localstatedir@,$localstatedir,;t t
6879 s,@libdir@,$libdir,;t t
6880 s,@includedir@,$includedir,;t t
6881 s,@oldincludedir@,$oldincludedir,;t t
6882 s,@infodir@,$infodir,;t t
6883 s,@mandir@,$mandir,;t t
6884 s,@build_alias@,$build_alias,;t t
6885 s,@host_alias@,$host_alias,;t t
6886 s,@target_alias@,$target_alias,;t t
6887 s,@DEFS@,$DEFS,;t t
6888 s,@ECHO_C@,$ECHO_C,;t t
6889 s,@ECHO_N@,$ECHO_N,;t t
6890 s,@ECHO_T@,$ECHO_T,;t t
6891 s,@LIBS@,$LIBS,;t t
6892 s,@groff_top_builddir@,$groff_top_builddir,;t t
6893 s,@CC@,$CC,;t t
6894 s,@CFLAGS@,$CFLAGS,;t t
6895 s,@LDFLAGS@,$LDFLAGS,;t t
6896 s,@CPPFLAGS@,$CPPFLAGS,;t t
6897 s,@ac_ct_CC@,$ac_ct_CC,;t t
6898 s,@EXEEXT@,$EXEEXT,;t t
6899 s,@OBJEXT@,$OBJEXT,;t t
6900 s,@CXX@,$CXX,;t t
6901 s,@CXXFLAGS@,$CXXFLAGS,;t t
6902 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6903 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
6904 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
6905 s,@LPR@,$LPR,;t t
6906 s,@LP@,$LP,;t t
6907 s,@LPQ@,$LPQ,;t t
6908 s,@PSPRINT@,$PSPRINT,;t t
6909 s,@DVIPRINT@,$DVIPRINT,;t t
6910 s,@PERLPATH@,$PERLPATH,;t t
6911 s,@YACC@,$YACC,;t t
6912 s,@RANLIB@,$RANLIB,;t t
6913 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6914 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
6915 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6916 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6917 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6918 s,@LN_S@,$LN_S,;t t
6919 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
6920 s,@CPP@,$CPP,;t t
6921 s,@EGREP@,$EGREP,;t t
6922 s,@LIBC@,$LIBC,;t t
6923 s,@LIBM@,$LIBM,;t t
6924 s,@LIBOBJS@,$LIBOBJS,;t t
6925 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
6926 s,@PAGE@,$PAGE,;t t
6927 s,@g@,$g,;t t
6928 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
6929 s,@tmac_wrap@,$tmac_wrap,;t t
6930 s,@pnmcut@,$pnmcut,;t t
6931 s,@pnmcrop@,$pnmcrop,;t t
6932 s,@pnmtopng@,$pnmtopng,;t t
6933 s,@gs@,$gs,;t t
6934 s,@psselect@,$psselect,;t t
6935 s,@pnmtops@,$pnmtops,;t t
6936 s,@make_html@,$make_html,;t t
6937 s,@make_install_html@,$make_install_html,;t t
6938 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
6939 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6940 CEOF
6942 _ACEOF
6944 cat >>$CONFIG_STATUS <<\_ACEOF
6945 # Split the substitutions into bite-sized pieces for seds with
6946 # small command number limits, like on Digital OSF/1 and HP-UX.
6947 ac_max_sed_lines=48
6948 ac_sed_frag=1 # Number of current file.
6949 ac_beg=1 # First line for current file.
6950 ac_end=$ac_max_sed_lines # Line after last line for current file.
6951 ac_more_lines=:
6952 ac_sed_cmds=
6953 while $ac_more_lines; do
6954 if test $ac_beg -gt 1; then
6955 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6956 else
6957 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6959 if test ! -s $tmp/subs.frag; then
6960 ac_more_lines=false
6961 else
6962 # The purpose of the label and of the branching condition is to
6963 # speed up the sed processing (if there are no `@' at all, there
6964 # is no need to browse any of the substitutions).
6965 # These are the two extra sed commands mentioned above.
6966 (echo ':t
6967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6968 if test -z "$ac_sed_cmds"; then
6969 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6970 else
6971 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6973 ac_sed_frag=`expr $ac_sed_frag + 1`
6974 ac_beg=$ac_end
6975 ac_end=`expr $ac_end + $ac_max_sed_lines`
6977 done
6978 if test -z "$ac_sed_cmds"; then
6979 ac_sed_cmds=cat
6981 fi # test -n "$CONFIG_FILES"
6983 _ACEOF
6984 cat >>$CONFIG_STATUS <<\_ACEOF
6985 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6987 case $ac_file in
6988 - | *:- | *:-:* ) # input from stdin
6989 cat >$tmp/stdin
6990 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6992 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6994 * ) ac_file_in=$ac_file.in ;;
6995 esac
6997 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6998 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7000 X"$ac_file" : 'X\(//\)[^/]' \| \
7001 X"$ac_file" : 'X\(//\)$' \| \
7002 X"$ac_file" : 'X\(/\)' \| \
7003 . : '\(.\)' 2>/dev/null ||
7004 echo X"$ac_file" |
7005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7007 /^X\(\/\/\)$/{ s//\1/; q; }
7008 /^X\(\/\).*/{ s//\1/; q; }
7009 s/.*/./; q'`
7010 { if $as_mkdir_p; then
7011 mkdir -p "$ac_dir"
7012 else
7013 as_dir="$ac_dir"
7014 as_dirs=
7015 while test ! -d "$as_dir"; do
7016 as_dirs="$as_dir $as_dirs"
7017 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7019 X"$as_dir" : 'X\(//\)[^/]' \| \
7020 X"$as_dir" : 'X\(//\)$' \| \
7021 X"$as_dir" : 'X\(/\)' \| \
7022 . : '\(.\)' 2>/dev/null ||
7023 echo X"$as_dir" |
7024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7026 /^X\(\/\/\)$/{ s//\1/; q; }
7027 /^X\(\/\).*/{ s//\1/; q; }
7028 s/.*/./; q'`
7029 done
7030 test ! -n "$as_dirs" || mkdir $as_dirs
7031 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7032 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7033 { (exit 1); exit 1; }; }; }
7035 ac_builddir=.
7037 if test "$ac_dir" != .; then
7038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7039 # A "../" for each directory in $ac_dir_suffix.
7040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7041 else
7042 ac_dir_suffix= ac_top_builddir=
7045 case $srcdir in
7046 .) # No --srcdir option. We are building in place.
7047 ac_srcdir=.
7048 if test -z "$ac_top_builddir"; then
7049 ac_top_srcdir=.
7050 else
7051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7052 fi ;;
7053 [\\/]* | ?:[\\/]* ) # Absolute path.
7054 ac_srcdir=$srcdir$ac_dir_suffix;
7055 ac_top_srcdir=$srcdir ;;
7056 *) # Relative path.
7057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7059 esac
7060 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7061 # absolute.
7062 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7063 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7064 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7065 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7068 case $INSTALL in
7069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7070 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7071 esac
7073 if test x"$ac_file" != x-; then
7074 { echo "$as_me:$LINENO: creating $ac_file" >&5
7075 echo "$as_me: creating $ac_file" >&6;}
7076 rm -f "$ac_file"
7078 # Let's still pretend it is `configure' which instantiates (i.e., don't
7079 # use $as_me), people would be surprised to read:
7080 # /* config.h. Generated by config.status. */
7081 if test x"$ac_file" = x-; then
7082 configure_input=
7083 else
7084 configure_input="$ac_file. "
7086 configure_input=$configure_input"Generated from `echo $ac_file_in |
7087 sed 's,.*/,,'` by configure."
7089 # First look for the input files in the build tree, otherwise in the
7090 # src tree.
7091 ac_file_inputs=`IFS=:
7092 for f in $ac_file_in; do
7093 case $f in
7094 -) echo $tmp/stdin ;;
7095 [\\/$]*)
7096 # Absolute (can't be DOS-style, as IFS=:)
7097 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7098 echo "$as_me: error: cannot find input file: $f" >&2;}
7099 { (exit 1); exit 1; }; }
7100 echo $f;;
7101 *) # Relative
7102 if test -f "$f"; then
7103 # Build tree
7104 echo $f
7105 elif test -f "$srcdir/$f"; then
7106 # Source tree
7107 echo $srcdir/$f
7108 else
7109 # /dev/null tree
7110 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7111 echo "$as_me: error: cannot find input file: $f" >&2;}
7112 { (exit 1); exit 1; }; }
7113 fi;;
7114 esac
7115 done` || { (exit 1); exit 1; }
7116 _ACEOF
7117 cat >>$CONFIG_STATUS <<_ACEOF
7118 sed "$ac_vpsub
7119 $extrasub
7120 _ACEOF
7121 cat >>$CONFIG_STATUS <<\_ACEOF
7123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7124 s,@configure_input@,$configure_input,;t t
7125 s,@srcdir@,$ac_srcdir,;t t
7126 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7127 s,@top_srcdir@,$ac_top_srcdir,;t t
7128 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7129 s,@builddir@,$ac_builddir,;t t
7130 s,@abs_builddir@,$ac_abs_builddir,;t t
7131 s,@top_builddir@,$ac_top_builddir,;t t
7132 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7133 s,@INSTALL@,$ac_INSTALL,;t t
7134 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7135 rm -f $tmp/stdin
7136 if test x"$ac_file" != x-; then
7137 mv $tmp/out $ac_file
7138 else
7139 cat $tmp/out
7140 rm -f $tmp/out
7143 # Run the commands associated with the file.
7144 case $ac_file in
7145 stamp-h ) echo timestamp > stamp-h ;;
7146 esac
7147 done
7148 _ACEOF
7149 cat >>$CONFIG_STATUS <<\_ACEOF
7152 # CONFIG_HEADER section.
7155 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7156 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7158 # ac_d sets the value in "#define NAME VALUE" lines.
7159 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7160 ac_dB='[ ].*$,\1#\2'
7161 ac_dC=' '
7162 ac_dD=',;t'
7163 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7164 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7165 ac_uB='$,\1#\2define\3'
7166 ac_uC=' '
7167 ac_uD=',;t'
7169 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7170 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7171 case $ac_file in
7172 - | *:- | *:-:* ) # input from stdin
7173 cat >$tmp/stdin
7174 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7176 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7178 * ) ac_file_in=$ac_file.in ;;
7179 esac
7181 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7182 echo "$as_me: creating $ac_file" >&6;}
7184 # First look for the input files in the build tree, otherwise in the
7185 # src tree.
7186 ac_file_inputs=`IFS=:
7187 for f in $ac_file_in; do
7188 case $f in
7189 -) echo $tmp/stdin ;;
7190 [\\/$]*)
7191 # Absolute (can't be DOS-style, as IFS=:)
7192 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7193 echo "$as_me: error: cannot find input file: $f" >&2;}
7194 { (exit 1); exit 1; }; }
7195 echo $f;;
7196 *) # Relative
7197 if test -f "$f"; then
7198 # Build tree
7199 echo $f
7200 elif test -f "$srcdir/$f"; then
7201 # Source tree
7202 echo $srcdir/$f
7203 else
7204 # /dev/null tree
7205 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7206 echo "$as_me: error: cannot find input file: $f" >&2;}
7207 { (exit 1); exit 1; }; }
7208 fi;;
7209 esac
7210 done` || { (exit 1); exit 1; }
7211 # Remove the trailing spaces.
7212 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7214 _ACEOF
7216 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7217 # `conftest.undefs', that substitutes the proper values into
7218 # config.h.in to produce config.h. The first handles `#define'
7219 # templates, and the second `#undef' templates.
7220 # And first: Protect against being on the right side of a sed subst in
7221 # config.status. Protect against being in an unquoted here document
7222 # in config.status.
7223 rm -f conftest.defines conftest.undefs
7224 # Using a here document instead of a string reduces the quoting nightmare.
7225 # Putting comments in sed scripts is not portable.
7227 # `end' is used to avoid that the second main sed command (meant for
7228 # 0-ary CPP macros) applies to n-ary macro definitions.
7229 # See the Autoconf documentation for `clear'.
7230 cat >confdef2sed.sed <<\_ACEOF
7231 s/[\\&,]/\\&/g
7232 s,[\\$`],\\&,g
7233 t clear
7234 : clear
7235 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7236 t end
7237 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7238 : end
7239 _ACEOF
7240 # If some macros were called several times there might be several times
7241 # the same #defines, which is useless. Nevertheless, we may not want to
7242 # sort them, since we want the *last* AC-DEFINE to be honored.
7243 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7244 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7245 rm -f confdef2sed.sed
7247 # This sed command replaces #undef with comments. This is necessary, for
7248 # example, in the case of _POSIX_SOURCE, which is predefined and required
7249 # on some systems where configure will not decide to define it.
7250 cat >>conftest.undefs <<\_ACEOF
7251 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7252 _ACEOF
7254 # Break up conftest.defines because some shells have a limit on the size
7255 # of here documents, and old seds have small limits too (100 cmds).
7256 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7257 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7258 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7259 echo ' :' >>$CONFIG_STATUS
7260 rm -f conftest.tail
7261 while grep . conftest.defines >/dev/null
7263 # Write a limited-size here document to $tmp/defines.sed.
7264 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7265 # Speed up: don't consider the non `#define' lines.
7266 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7267 # Work around the forget-to-reset-the-flag bug.
7268 echo 't clr' >>$CONFIG_STATUS
7269 echo ': clr' >>$CONFIG_STATUS
7270 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7271 echo 'CEOF
7272 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7273 rm -f $tmp/in
7274 mv $tmp/out $tmp/in
7275 ' >>$CONFIG_STATUS
7276 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7277 rm -f conftest.defines
7278 mv conftest.tail conftest.defines
7279 done
7280 rm -f conftest.defines
7281 echo ' fi # grep' >>$CONFIG_STATUS
7282 echo >>$CONFIG_STATUS
7284 # Break up conftest.undefs because some shells have a limit on the size
7285 # of here documents, and old seds have small limits too (100 cmds).
7286 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7287 rm -f conftest.tail
7288 while grep . conftest.undefs >/dev/null
7290 # Write a limited-size here document to $tmp/undefs.sed.
7291 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7292 # Speed up: don't consider the non `#undef'
7293 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7294 # Work around the forget-to-reset-the-flag bug.
7295 echo 't clr' >>$CONFIG_STATUS
7296 echo ': clr' >>$CONFIG_STATUS
7297 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7298 echo 'CEOF
7299 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7300 rm -f $tmp/in
7301 mv $tmp/out $tmp/in
7302 ' >>$CONFIG_STATUS
7303 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7304 rm -f conftest.undefs
7305 mv conftest.tail conftest.undefs
7306 done
7307 rm -f conftest.undefs
7309 cat >>$CONFIG_STATUS <<\_ACEOF
7310 # Let's still pretend it is `configure' which instantiates (i.e., don't
7311 # use $as_me), people would be surprised to read:
7312 # /* config.h. Generated by config.status. */
7313 if test x"$ac_file" = x-; then
7314 echo "/* Generated by configure. */" >$tmp/config.h
7315 else
7316 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7318 cat $tmp/in >>$tmp/config.h
7319 rm -f $tmp/in
7320 if test x"$ac_file" != x-; then
7321 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7322 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7323 echo "$as_me: $ac_file is unchanged" >&6;}
7324 else
7325 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7327 X"$ac_file" : 'X\(//\)[^/]' \| \
7328 X"$ac_file" : 'X\(//\)$' \| \
7329 X"$ac_file" : 'X\(/\)' \| \
7330 . : '\(.\)' 2>/dev/null ||
7331 echo X"$ac_file" |
7332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7334 /^X\(\/\/\)$/{ s//\1/; q; }
7335 /^X\(\/\).*/{ s//\1/; q; }
7336 s/.*/./; q'`
7337 { if $as_mkdir_p; then
7338 mkdir -p "$ac_dir"
7339 else
7340 as_dir="$ac_dir"
7341 as_dirs=
7342 while test ! -d "$as_dir"; do
7343 as_dirs="$as_dir $as_dirs"
7344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7346 X"$as_dir" : 'X\(//\)[^/]' \| \
7347 X"$as_dir" : 'X\(//\)$' \| \
7348 X"$as_dir" : 'X\(/\)' \| \
7349 . : '\(.\)' 2>/dev/null ||
7350 echo X"$as_dir" |
7351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7353 /^X\(\/\/\)$/{ s//\1/; q; }
7354 /^X\(\/\).*/{ s//\1/; q; }
7355 s/.*/./; q'`
7356 done
7357 test ! -n "$as_dirs" || mkdir $as_dirs
7358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7359 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7360 { (exit 1); exit 1; }; }; }
7362 rm -f $ac_file
7363 mv $tmp/config.h $ac_file
7365 else
7366 cat $tmp/config.h
7367 rm -f $tmp/config.h
7369 done
7370 _ACEOF
7372 cat >>$CONFIG_STATUS <<\_ACEOF
7374 { (exit 0); exit 0; }
7375 _ACEOF
7376 chmod +x $CONFIG_STATUS
7377 ac_clean_files=$ac_clean_files_save
7380 # configure is writing to config.log, and then calls config.status.
7381 # config.status does its own redirection, appending to config.log.
7382 # Unfortunately, on DOS this fails, as config.log is still kept open
7383 # by configure, so config.status won't be able to write to it; its
7384 # output is simply discarded. So we exec the FD to /dev/null,
7385 # effectively closing config.log, so it can be properly (re)opened and
7386 # appended to by config.status. When coming back to configure, we
7387 # need to make the FD available again.
7388 if test "$no_create" != yes; then
7389 ac_cs_success=:
7390 exec 5>/dev/null
7391 $SHELL $CONFIG_STATUS || ac_cs_success=false
7392 exec 5>>config.log
7393 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7394 # would make configure fail if this is the last instruction.
7395 $ac_cs_success || { (exit 1); exit 1; }
7398 { echo "$as_me:$LINENO:
7400 Configuration completed.
7402 You can now say \`make' to compile the groff package and \`make install'
7403 to install it afterwards.
7405 If you want to compile xditview, change the directory to \`src/xditview'
7406 and follow the instructions given in the file \`INSTALL'.
7407 " >&5
7408 echo "$as_me:
7410 Configuration completed.
7412 You can now say \`make' to compile the groff package and \`make install'
7413 to install it afterwards.
7415 If you want to compile xditview, change the directory to \`src/xditview'
7416 and follow the instructions given in the file \`INSTALL'.
7417 " >&6;}