In hpftodit, use the symbol sets offered in the TFM.
[s-roff.git] / configure
blob1f1633f9102a66398b7d7dd9f4539055e86ad7b6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/roff/groff/groff.cpp"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 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 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 GROFF_PATH_SEPARATOR pnmcut pnmcrop pnmtopng psselect pnmtops gs make_html make_install_html pnmtops_nosetpage LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
841 _ACEOF
844 if test -n "$ac_init_help"; then
846 cat <<\_ACEOF
848 Some influential environment variables:
849 CC C compiler command
850 CFLAGS C compiler flags
851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
852 nonstandard directory <lib dir>
853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
854 headers in a nonstandard directory <include dir>
855 CXX C++ compiler command
856 CXXFLAGS C++ compiler flags
857 CPP C preprocessor
859 Use these variables to override the choices made by `configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
862 _ACEOF
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
867 ac_popdir=`pwd`
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
870 ac_builddir=.
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
876 else
877 ac_dir_suffix= ac_top_builddir=
880 case $srcdir in
881 .) # No --srcdir option. We are building in place.
882 ac_srcdir=.
883 if test -z "$ac_top_builddir"; then
884 ac_top_srcdir=.
885 else
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
887 fi ;;
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
891 *) # Relative path.
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
894 esac
896 # Do not use `cd foo && pwd` to compute absolute paths, because
897 # the directories may not exist.
898 case `pwd` in
899 .) ac_abs_builddir="$ac_dir";;
901 case "$ac_dir" in
902 .) ac_abs_builddir=`pwd`;;
903 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
904 *) ac_abs_builddir=`pwd`/"$ac_dir";;
905 esac;;
906 esac
907 case $ac_abs_builddir in
908 .) ac_abs_top_builddir=${ac_top_builddir}.;;
910 case ${ac_top_builddir}. in
911 .) ac_abs_top_builddir=$ac_abs_builddir;;
912 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
913 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
914 esac;;
915 esac
916 case $ac_abs_builddir in
917 .) ac_abs_srcdir=$ac_srcdir;;
919 case $ac_srcdir in
920 .) ac_abs_srcdir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
922 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_srcdir=$ac_top_srcdir;;
928 case $ac_top_srcdir in
929 .) ac_abs_top_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
931 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
932 esac;;
933 esac
935 cd $ac_dir
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
938 echo
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
941 echo
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
945 echo
946 $ac_configure --help
947 else
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 cd $ac_popdir
951 done
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
956 cat <<\_ACEOF
958 Copyright (C) 2003 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
961 _ACEOF
962 exit 0
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.59. Invocation command line was
972 $ $0 $@
974 _ACEOF
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
998 _ASUNAME
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1003 IFS=$as_save_IFS
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1006 done
1008 } >&5
1010 cat >&5 <<_ACEOF
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1017 _ACEOF
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Strip out --silent because we don't want to record it for future runs.
1023 # Also quote any args containing shell meta-characters.
1024 # Make two passes to allow for proper duplicate-argument suppression.
1025 ac_configure_args=
1026 ac_configure_args0=
1027 ac_configure_args1=
1028 ac_sep=
1029 ac_must_keep_next=false
1030 for ac_pass in 1 2
1032 for ac_arg
1034 case $ac_arg in
1035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 continue ;;
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1041 esac
1042 case $ac_pass in
1043 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1046 if test $ac_must_keep_next = true; then
1047 ac_must_keep_next=false # Got value, back to normal.
1048 else
1049 case $ac_arg in
1050 *=* | --config-cache | -C | -disable-* | --disable-* \
1051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1053 | -with-* | --with-* | -without-* | --without-* | --x)
1054 case "$ac_configure_args0 " in
1055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1056 esac
1058 -* ) ac_must_keep_next=true ;;
1059 esac
1061 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062 # Get rid of the leading space.
1063 ac_sep=" "
1065 esac
1066 done
1067 done
1068 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1069 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071 # When interrupted or exit'd, cleanup temporary files, and complete
1072 # config.log. We remove comments because anyway the quotes in there
1073 # would cause problems or look ugly.
1074 # WARNING: Be sure not to use single quotes in there, as some shells,
1075 # such as our DU 5.0 friend, will then `close' the trap.
1076 trap 'exit_status=$?
1077 # Save into config.log some information that might help in debugging.
1079 echo
1081 cat <<\_ASBOX
1082 ## ---------------- ##
1083 ## Cache variables. ##
1084 ## ---------------- ##
1085 _ASBOX
1086 echo
1087 # The following way of writing the cache mishandles newlines in values,
1089 (set) 2>&1 |
1090 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1091 *ac_space=\ *)
1092 sed -n \
1093 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 sed -n \
1098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100 esac;
1102 echo
1104 cat <<\_ASBOX
1105 ## ----------------- ##
1106 ## Output variables. ##
1107 ## ----------------- ##
1108 _ASBOX
1109 echo
1110 for ac_var in $ac_subst_vars
1112 eval ac_val=$`echo $ac_var`
1113 echo "$ac_var='"'"'$ac_val'"'"'"
1114 done | sort
1115 echo
1117 if test -n "$ac_subst_files"; then
1118 cat <<\_ASBOX
1119 ## ------------- ##
1120 ## Output files. ##
1121 ## ------------- ##
1122 _ASBOX
1123 echo
1124 for ac_var in $ac_subst_files
1126 eval ac_val=$`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1128 done | sort
1129 echo
1132 if test -s confdefs.h; then
1133 cat <<\_ASBOX
1134 ## ----------- ##
1135 ## confdefs.h. ##
1136 ## ----------- ##
1137 _ASBOX
1138 echo
1139 sed "/^$/d" confdefs.h | sort
1140 echo
1142 test "$ac_signal" != 0 &&
1143 echo "$as_me: caught signal $ac_signal"
1144 echo "$as_me: exit $exit_status"
1145 } >&5
1146 rm -f core *.core &&
1147 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1148 exit $exit_status
1150 for ac_signal in 1 2 13 15; do
1151 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152 done
1153 ac_signal=0
1155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1156 rm -rf conftest* confdefs.h
1157 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1158 echo >confdefs.h
1160 # Predefined preprocessor variables.
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_NAME "$PACKAGE_NAME"
1164 _ACEOF
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169 _ACEOF
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1174 _ACEOF
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_STRING "$PACKAGE_STRING"
1179 _ACEOF
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184 _ACEOF
1187 # Let the site file select an alternate cache file if it wants to.
1188 # Prefer explicitly selected file to automatically selected ones.
1189 if test -z "$CONFIG_SITE"; then
1190 if test "x$prefix" != xNONE; then
1191 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1192 else
1193 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 for ac_site_file in $CONFIG_SITE; do
1197 if test -r "$ac_site_file"; then
1198 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1199 echo "$as_me: loading site script $ac_site_file" >&6;}
1200 sed 's/^/| /' "$ac_site_file" >&5
1201 . "$ac_site_file"
1203 done
1205 if test -r "$cache_file"; then
1206 # Some versions of bash will fail to source /dev/null (special
1207 # files actually), so we avoid doing that.
1208 if test -f "$cache_file"; then
1209 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1210 echo "$as_me: loading cache $cache_file" >&6;}
1211 case $cache_file in
1212 [\\/]* | ?:[\\/]* ) . $cache_file;;
1213 *) . ./$cache_file;;
1214 esac
1216 else
1217 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1218 echo "$as_me: creating cache $cache_file" >&6;}
1219 >$cache_file
1222 # Check that the precious variables saved in the cache have kept the same
1223 # value.
1224 ac_cache_corrupted=false
1225 for ac_var in `(set) 2>&1 |
1226 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1228 eval ac_new_set=\$ac_env_${ac_var}_set
1229 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1230 eval ac_new_val="\$ac_env_${ac_var}_value"
1231 case $ac_old_set,$ac_new_set in
1232 set,)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,set)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,);;
1242 if test "x$ac_old_val" != "x$ac_new_val"; then
1243 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1244 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1245 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1246 echo "$as_me: former value: $ac_old_val" >&2;}
1247 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1248 echo "$as_me: current value: $ac_new_val" >&2;}
1249 ac_cache_corrupted=:
1250 fi;;
1251 esac
1252 # Pass precious variables to config.status.
1253 if test "$ac_new_set" = set; then
1254 case $ac_new_val in
1255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 *) ac_arg=$ac_var=$ac_new_val ;;
1258 esac
1259 case " $ac_configure_args " in
1260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1261 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262 esac
1264 done
1265 if $ac_cache_corrupted; then
1266 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1267 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1268 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1269 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1270 { (exit 1); exit 1; }; }
1273 ac_ext=c
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1302 # checks for programs
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308 if test -n "$ac_tool_prefix"; then
1309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1311 echo "$as_me:$LINENO: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_CC+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 else
1316 if test -n "$CC"; then
1317 ac_cv_prog_CC="$CC" # Let the user override the test.
1318 else
1319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1320 for as_dir in $PATH
1322 IFS=$as_save_IFS
1323 test -z "$as_dir" && as_dir=.
1324 for ac_exec_ext in '' $ac_executable_extensions; do
1325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1328 break 2
1330 done
1331 done
1335 CC=$ac_cv_prog_CC
1336 if test -n "$CC"; then
1337 echo "$as_me:$LINENO: result: $CC" >&5
1338 echo "${ECHO_T}$CC" >&6
1339 else
1340 echo "$as_me:$LINENO: result: no" >&5
1341 echo "${ECHO_T}no" >&6
1345 if test -z "$ac_cv_prog_CC"; then
1346 ac_ct_CC=$CC
1347 # Extract the first word of "gcc", so it can be a program name with args.
1348 set dummy gcc; ac_word=$2
1349 echo "$as_me:$LINENO: checking for $ac_word" >&5
1350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 else
1354 if test -n "$ac_ct_CC"; then
1355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1356 else
1357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358 for as_dir in $PATH
1360 IFS=$as_save_IFS
1361 test -z "$as_dir" && as_dir=.
1362 for ac_exec_ext in '' $ac_executable_extensions; do
1363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1364 ac_cv_prog_ac_ct_CC="gcc"
1365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1366 break 2
1368 done
1369 done
1373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1374 if test -n "$ac_ct_CC"; then
1375 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1376 echo "${ECHO_T}$ac_ct_CC" >&6
1377 else
1378 echo "$as_me:$LINENO: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1382 CC=$ac_ct_CC
1383 else
1384 CC="$ac_cv_prog_CC"
1387 if test -z "$CC"; then
1388 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1390 set dummy ${ac_tool_prefix}cc; ac_word=$2
1391 echo "$as_me:$LINENO: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1398 else
1399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 for as_dir in $PATH
1402 IFS=$as_save_IFS
1403 test -z "$as_dir" && as_dir=.
1404 for ac_exec_ext in '' $ac_executable_extensions; do
1405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406 ac_cv_prog_CC="${ac_tool_prefix}cc"
1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408 break 2
1410 done
1411 done
1415 CC=$ac_cv_prog_CC
1416 if test -n "$CC"; then
1417 echo "$as_me:$LINENO: result: $CC" >&5
1418 echo "${ECHO_T}$CC" >&6
1419 else
1420 echo "$as_me:$LINENO: result: no" >&5
1421 echo "${ECHO_T}no" >&6
1425 if test -z "$ac_cv_prog_CC"; then
1426 ac_ct_CC=$CC
1427 # Extract the first word of "cc", so it can be a program name with args.
1428 set dummy cc; ac_word=$2
1429 echo "$as_me:$LINENO: checking for $ac_word" >&5
1430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 else
1434 if test -n "$ac_ct_CC"; then
1435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436 else
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 for as_dir in $PATH
1440 IFS=$as_save_IFS
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_prog_ac_ct_CC="cc"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446 break 2
1448 done
1449 done
1453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454 if test -n "$ac_ct_CC"; then
1455 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1456 echo "${ECHO_T}$ac_ct_CC" >&6
1457 else
1458 echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1462 CC=$ac_ct_CC
1463 else
1464 CC="$ac_cv_prog_CC"
1468 if test -z "$CC"; then
1469 # Extract the first word of "cc", so it can be a program name with args.
1470 set dummy cc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$CC"; then
1477 ac_cv_prog_CC="$CC" # Let the user override the test.
1478 else
1479 ac_prog_rejected=no
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1483 IFS=$as_save_IFS
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1488 ac_prog_rejected=yes
1489 continue
1491 ac_cv_prog_CC="cc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1495 done
1496 done
1498 if test $ac_prog_rejected = yes; then
1499 # We found a bogon in the path, so make sure we never use it.
1500 set dummy $ac_cv_prog_CC
1501 shift
1502 if test $# != 0; then
1503 # We chose a different compiler from the bogus one.
1504 # However, it has the same basename, so the bogon will be chosen
1505 # first if we set CC to just the basename; use the full file name.
1506 shift
1507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1512 CC=$ac_cv_prog_CC
1513 if test -n "$CC"; then
1514 echo "$as_me:$LINENO: result: $CC" >&5
1515 echo "${ECHO_T}$CC" >&6
1516 else
1517 echo "$as_me:$LINENO: result: no" >&5
1518 echo "${ECHO_T}no" >&6
1522 if test -z "$CC"; then
1523 if test -n "$ac_tool_prefix"; then
1524 for ac_prog in cl
1526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 break 2
1547 done
1548 done
1552 CC=$ac_cv_prog_CC
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1561 test -n "$CC" && break
1562 done
1564 if test -z "$CC"; then
1565 ac_ct_CC=$CC
1566 for ac_prog in cl
1568 # Extract the first word of "$ac_prog", so it can be a program name with args.
1569 set dummy $ac_prog; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 if test -n "$ac_ct_CC"; then
1576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_ac_ct_CC="$ac_prog"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1589 done
1590 done
1594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595 if test -n "$ac_ct_CC"; then
1596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1597 echo "${ECHO_T}$ac_ct_CC" >&6
1598 else
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1603 test -n "$ac_ct_CC" && break
1604 done
1606 CC=$ac_ct_CC
1612 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1613 See \`config.log' for more details." >&5
1614 echo "$as_me: error: no acceptable C compiler found in \$PATH
1615 See \`config.log' for more details." >&2;}
1616 { (exit 1); exit 1; }; }
1618 # Provide some information about the compiler.
1619 echo "$as_me:$LINENO:" \
1620 "checking for C compiler version" >&5
1621 ac_compiler=`set X $ac_compile; echo $2`
1622 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1623 (eval $ac_compiler --version </dev/null >&5) 2>&5
1624 ac_status=$?
1625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626 (exit $ac_status); }
1627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1628 (eval $ac_compiler -v </dev/null >&5) 2>&5
1629 ac_status=$?
1630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1631 (exit $ac_status); }
1632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1633 (eval $ac_compiler -V </dev/null >&5) 2>&5
1634 ac_status=$?
1635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636 (exit $ac_status); }
1638 cat >conftest.$ac_ext <<_ACEOF
1639 /* confdefs.h. */
1640 _ACEOF
1641 cat confdefs.h >>conftest.$ac_ext
1642 cat >>conftest.$ac_ext <<_ACEOF
1643 /* end confdefs.h. */
1646 main ()
1650 return 0;
1652 _ACEOF
1653 ac_clean_files_save=$ac_clean_files
1654 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1655 # Try to create an executable without -o first, disregard a.out.
1656 # It will help us diagnose broken compilers, and finding out an intuition
1657 # of exeext.
1658 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1659 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1660 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1661 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1662 (eval $ac_link_default) 2>&5
1663 ac_status=$?
1664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1665 (exit $ac_status); }; then
1666 # Find the output, starting from the most likely. This scheme is
1667 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1668 # resort.
1670 # Be careful to initialize this variable, since it used to be cached.
1671 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1672 ac_cv_exeext=
1673 # b.out is created by i960 compilers.
1674 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1676 test -f "$ac_file" || continue
1677 case $ac_file in
1678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1680 conftest.$ac_ext )
1681 # This is the source file.
1683 [ab].out )
1684 # We found the default executable, but exeext='' is most
1685 # certainly right.
1686 break;;
1687 *.* )
1688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1689 # FIXME: I believe we export ac_cv_exeext for Libtool,
1690 # but it would be cool to find out if it's true. Does anybody
1691 # maintain Libtool? --akim.
1692 export ac_cv_exeext
1693 break;;
1695 break;;
1696 esac
1697 done
1698 else
1699 echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1703 See \`config.log' for more details." >&5
1704 echo "$as_me: error: C compiler cannot create executables
1705 See \`config.log' for more details." >&2;}
1706 { (exit 77); exit 77; }; }
1709 ac_exeext=$ac_cv_exeext
1710 echo "$as_me:$LINENO: result: $ac_file" >&5
1711 echo "${ECHO_T}$ac_file" >&6
1713 # Check the compiler produces executables we can run. If not, either
1714 # the compiler is broken, or we cross compile.
1715 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1716 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1717 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1718 # If not cross compiling, check that we can run a simple program.
1719 if test "$cross_compiling" != yes; then
1720 if { ac_try='./$ac_file'
1721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1722 (eval $ac_try) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }; }; then
1726 cross_compiling=no
1727 else
1728 if test "$cross_compiling" = maybe; then
1729 cross_compiling=yes
1730 else
1731 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1732 If you meant to cross compile, use \`--host'.
1733 See \`config.log' for more details." >&5
1734 echo "$as_me: error: cannot run C compiled programs.
1735 If you meant to cross compile, use \`--host'.
1736 See \`config.log' for more details." >&2;}
1737 { (exit 1); exit 1; }; }
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1744 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1745 ac_clean_files=$ac_clean_files_save
1746 # Check the compiler produces executables we can run. If not, either
1747 # the compiler is broken, or we cross compile.
1748 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1749 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1750 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1751 echo "${ECHO_T}$cross_compiling" >&6
1753 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1754 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1756 (eval $ac_link) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }; then
1760 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1761 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1762 # work properly (i.e., refer to `conftest.exe'), while it won't with
1763 # `rm'.
1764 for ac_file in conftest.exe conftest conftest.*; do
1765 test -f "$ac_file" || continue
1766 case $ac_file in
1767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1768 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1769 export ac_cv_exeext
1770 break;;
1771 * ) break;;
1772 esac
1773 done
1774 else
1775 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1776 See \`config.log' for more details." >&5
1777 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1778 See \`config.log' for more details." >&2;}
1779 { (exit 1); exit 1; }; }
1782 rm -f conftest$ac_cv_exeext
1783 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1784 echo "${ECHO_T}$ac_cv_exeext" >&6
1786 rm -f conftest.$ac_ext
1787 EXEEXT=$ac_cv_exeext
1788 ac_exeext=$EXEEXT
1789 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1790 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1791 if test "${ac_cv_objext+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 cat >conftest.$ac_ext <<_ACEOF
1795 /* confdefs.h. */
1796 _ACEOF
1797 cat confdefs.h >>conftest.$ac_ext
1798 cat >>conftest.$ac_ext <<_ACEOF
1799 /* end confdefs.h. */
1802 main ()
1806 return 0;
1808 _ACEOF
1809 rm -f conftest.o conftest.obj
1810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1811 (eval $ac_compile) 2>&5
1812 ac_status=$?
1813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1814 (exit $ac_status); }; then
1815 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1816 case $ac_file in
1817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1818 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1819 break;;
1820 esac
1821 done
1822 else
1823 echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1829 See \`config.log' for more details." >&2;}
1830 { (exit 1); exit 1; }; }
1833 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1835 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1836 echo "${ECHO_T}$ac_cv_objext" >&6
1837 OBJEXT=$ac_cv_objext
1838 ac_objext=$OBJEXT
1839 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1840 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1841 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844 cat >conftest.$ac_ext <<_ACEOF
1845 /* confdefs.h. */
1846 _ACEOF
1847 cat confdefs.h >>conftest.$ac_ext
1848 cat >>conftest.$ac_ext <<_ACEOF
1849 /* end confdefs.h. */
1852 main ()
1854 #ifndef __GNUC__
1855 choke me
1856 #endif
1859 return 0;
1861 _ACEOF
1862 rm -f conftest.$ac_objext
1863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>conftest.er1
1865 ac_status=$?
1866 grep -v '^ *+' conftest.er1 >conftest.err
1867 rm -f conftest.er1
1868 cat conftest.err >&5
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); } &&
1871 { ac_try='test -z "$ac_c_werror_flag"
1872 || test ! -s conftest.err'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1874 (eval $ac_try) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; } &&
1878 { ac_try='test -s conftest.$ac_objext'
1879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1880 (eval $ac_try) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; }; then
1884 ac_compiler_gnu=yes
1885 else
1886 echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_compiler_gnu=no
1891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1895 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1896 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1897 GCC=`test $ac_compiler_gnu = yes && echo yes`
1898 ac_test_CFLAGS=${CFLAGS+set}
1899 ac_save_CFLAGS=$CFLAGS
1900 CFLAGS="-g"
1901 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1902 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1903 if test "${ac_cv_prog_cc_g+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 cat >conftest.$ac_ext <<_ACEOF
1907 /* confdefs.h. */
1908 _ACEOF
1909 cat confdefs.h >>conftest.$ac_ext
1910 cat >>conftest.$ac_ext <<_ACEOF
1911 /* end confdefs.h. */
1914 main ()
1918 return 0;
1920 _ACEOF
1921 rm -f conftest.$ac_objext
1922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923 (eval $ac_compile) 2>conftest.er1
1924 ac_status=$?
1925 grep -v '^ *+' conftest.er1 >conftest.err
1926 rm -f conftest.er1
1927 cat conftest.err >&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); } &&
1930 { ac_try='test -z "$ac_c_werror_flag"
1931 || test ! -s conftest.err'
1932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 (eval $ac_try) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; } &&
1937 { ac_try='test -s conftest.$ac_objext'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1943 ac_cv_prog_cc_g=yes
1944 else
1945 echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1948 ac_cv_prog_cc_g=no
1950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1952 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1954 if test "$ac_test_CFLAGS" = set; then
1955 CFLAGS=$ac_save_CFLAGS
1956 elif test $ac_cv_prog_cc_g = yes; then
1957 if test "$GCC" = yes; then
1958 CFLAGS="-g -O2"
1959 else
1960 CFLAGS="-g"
1962 else
1963 if test "$GCC" = yes; then
1964 CFLAGS="-O2"
1965 else
1966 CFLAGS=
1969 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1970 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1971 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 ac_cv_prog_cc_stdc=no
1975 ac_save_CC=$CC
1976 cat >conftest.$ac_ext <<_ACEOF
1977 /* confdefs.h. */
1978 _ACEOF
1979 cat confdefs.h >>conftest.$ac_ext
1980 cat >>conftest.$ac_ext <<_ACEOF
1981 /* end confdefs.h. */
1982 #include <stdarg.h>
1983 #include <stdio.h>
1984 #include <sys/types.h>
1985 #include <sys/stat.h>
1986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1987 struct buf { int x; };
1988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1989 static char *e (p, i)
1990 char **p;
1991 int i;
1993 return p[i];
1995 static char *f (char * (*g) (char **, int), char **p, ...)
1997 char *s;
1998 va_list v;
1999 va_start (v,p);
2000 s = g (p, va_arg (v,int));
2001 va_end (v);
2002 return s;
2005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2006 function prototypes and stuff, but not '\xHH' hex character constants.
2007 These don't provoke an error unfortunately, instead are silently treated
2008 as 'x'. The following induces an error, until -std1 is added to get
2009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2010 array size at least. It's necessary to write '\x00'==0 to get something
2011 that's true only with -std1. */
2012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2014 int test (int i, double x);
2015 struct s1 {int (*f) (int a);};
2016 struct s2 {int (*f) (double a);};
2017 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2018 int argc;
2019 char **argv;
2021 main ()
2023 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2025 return 0;
2027 _ACEOF
2028 # Don't try gcc -ansi; that turns off useful extensions and
2029 # breaks some systems' header files.
2030 # AIX -qlanglvl=ansi
2031 # Ultrix and OSF/1 -std1
2032 # HP-UX 10.20 and later -Ae
2033 # HP-UX older versions -Aa -D_HPUX_SOURCE
2034 # SVR4 -Xc -D__EXTENSIONS__
2035 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2037 CC="$ac_save_CC $ac_arg"
2038 rm -f conftest.$ac_objext
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>conftest.er1
2041 ac_status=$?
2042 grep -v '^ *+' conftest.er1 >conftest.err
2043 rm -f conftest.er1
2044 cat conftest.err >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); } &&
2047 { ac_try='test -z "$ac_c_werror_flag"
2048 || test ! -s conftest.err'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 (eval $ac_try) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; } &&
2054 { ac_try='test -s conftest.$ac_objext'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 (eval $ac_try) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; }; then
2060 ac_cv_prog_cc_stdc=$ac_arg
2061 break
2062 else
2063 echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2067 rm -f conftest.err conftest.$ac_objext
2068 done
2069 rm -f conftest.$ac_ext conftest.$ac_objext
2070 CC=$ac_save_CC
2074 case "x$ac_cv_prog_cc_stdc" in
2075 x|xno)
2076 echo "$as_me:$LINENO: result: none needed" >&5
2077 echo "${ECHO_T}none needed" >&6 ;;
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2081 CC="$CC $ac_cv_prog_cc_stdc" ;;
2082 esac
2084 # Some people use a C++ compiler to compile C. Since we use `exit',
2085 # in C++ we need to declare it. In case someone uses the same compiler
2086 # for both compiling C and C++ we need to have the C++ compiler decide
2087 # the declaration of exit, since it's the most demanding environment.
2088 cat >conftest.$ac_ext <<_ACEOF
2089 #ifndef __cplusplus
2090 choke me
2091 #endif
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>conftest.er1
2096 ac_status=$?
2097 grep -v '^ *+' conftest.er1 >conftest.err
2098 rm -f conftest.er1
2099 cat conftest.err >&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try='test -z "$ac_c_werror_flag"
2103 || test ! -s conftest.err'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 (eval $ac_try) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; } &&
2109 { ac_try='test -s conftest.$ac_objext'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 for ac_declaration in \
2116 '' \
2117 'extern "C" void std::exit (int) throw (); using std::exit;' \
2118 'extern "C" void std::exit (int); using std::exit;' \
2119 'extern "C" void exit (int) throw ();' \
2120 'extern "C" void exit (int);' \
2121 'void exit (int);'
2123 cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h. */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2129 $ac_declaration
2130 #include <stdlib.h>
2132 main ()
2134 exit (42);
2136 return 0;
2138 _ACEOF
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2162 else
2163 echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 continue
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 cat >conftest.$ac_ext <<_ACEOF
2170 /* confdefs.h. */
2171 _ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2175 $ac_declaration
2177 main ()
2179 exit (42);
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>conftest.er1
2187 ac_status=$?
2188 grep -v '^ *+' conftest.er1 >conftest.err
2189 rm -f conftest.er1
2190 cat conftest.err >&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); } &&
2193 { ac_try='test -z "$ac_c_werror_flag"
2194 || test ! -s conftest.err'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; } &&
2200 { ac_try='test -s conftest.$ac_objext'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2206 break
2207 else
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2213 done
2214 rm -f conftest*
2215 if test -n "$ac_declaration"; then
2216 echo '#ifdef __cplusplus' >>confdefs.h
2217 echo $ac_declaration >>confdefs.h
2218 echo '#endif' >>confdefs.h
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2227 ac_ext=c
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233 ac_ext=cc
2234 ac_cpp='$CXXCPP $CPPFLAGS'
2235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2238 if test -n "$ac_tool_prefix"; then
2239 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2243 echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245 if test "${ac_cv_prog_CXX+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 if test -n "$CXX"; then
2249 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2262 done
2263 done
2267 CXX=$ac_cv_prog_CXX
2268 if test -n "$CXX"; then
2269 echo "$as_me:$LINENO: result: $CXX" >&5
2270 echo "${ECHO_T}$CXX" >&6
2271 else
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2276 test -n "$CXX" && break
2277 done
2279 if test -z "$CXX"; then
2280 ac_ct_CXX=$CXX
2281 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2283 # Extract the first word of "$ac_prog", so it can be a program name with args.
2284 set dummy $ac_prog; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$ac_ct_CXX"; then
2291 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_ac_ct_CXX="$ac_prog"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2304 done
2305 done
2309 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2310 if test -n "$ac_ct_CXX"; then
2311 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2312 echo "${ECHO_T}$ac_ct_CXX" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2318 test -n "$ac_ct_CXX" && break
2319 done
2320 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2322 CXX=$ac_ct_CXX
2326 # Provide some information about the compiler.
2327 echo "$as_me:$LINENO:" \
2328 "checking for C++ compiler version" >&5
2329 ac_compiler=`set X $ac_compile; echo $2`
2330 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2331 (eval $ac_compiler --version </dev/null >&5) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }
2335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2336 (eval $ac_compiler -v </dev/null >&5) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }
2340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2341 (eval $ac_compiler -V </dev/null >&5) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }
2346 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2348 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h. */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2359 main ()
2361 #ifndef __GNUC__
2362 choke me
2363 #endif
2366 return 0;
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2372 ac_status=$?
2373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_cxx_werror_flag"
2379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_compiler_gnu=yes
2392 else
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2396 ac_compiler_gnu=no
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2402 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2403 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2404 GXX=`test $ac_compiler_gnu = yes && echo yes`
2405 ac_test_CXXFLAGS=${CXXFLAGS+set}
2406 ac_save_CXXFLAGS=$CXXFLAGS
2407 CXXFLAGS="-g"
2408 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2409 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cxx_g+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h. */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2421 main ()
2425 return 0;
2427 _ACEOF
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2431 ac_status=$?
2432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -z "$ac_cxx_werror_flag"
2438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 ac_cv_prog_cxx_g=yes
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2455 ac_cv_prog_cxx_g=no
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2461 if test "$ac_test_CXXFLAGS" = set; then
2462 CXXFLAGS=$ac_save_CXXFLAGS
2463 elif test $ac_cv_prog_cxx_g = yes; then
2464 if test "$GXX" = yes; then
2465 CXXFLAGS="-g -O2"
2466 else
2467 CXXFLAGS="-g"
2469 else
2470 if test "$GXX" = yes; then
2471 CXXFLAGS="-O2"
2472 else
2473 CXXFLAGS=
2476 for ac_declaration in \
2477 '' \
2478 'extern "C" void std::exit (int) throw (); using std::exit;' \
2479 'extern "C" void std::exit (int); using std::exit;' \
2480 'extern "C" void exit (int) throw ();' \
2481 'extern "C" void exit (int);' \
2482 'void exit (int);'
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2490 $ac_declaration
2491 #include <stdlib.h>
2493 main ()
2495 exit (42);
2497 return 0;
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_cxx_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 continue
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h. */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2536 $ac_declaration
2538 main ()
2540 exit (42);
2542 return 0;
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_cxx_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 break
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 done
2575 rm -f conftest*
2576 if test -n "$ac_declaration"; then
2577 echo '#ifdef __cplusplus' >>confdefs.h
2578 echo $ac_declaration >>confdefs.h
2579 echo '#endif' >>confdefs.h
2582 ac_ext=c
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 ac_ext=cc
2591 ac_cpp='$CXXCPP $CPPFLAGS'
2592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596 if test "$cross_compiling" = no; then
2597 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
2598 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
2600 if test "$cross_compiling" = yes; then
2602 else
2603 cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h. */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2612 int main() {
2613 return 0;
2618 _ACEOF
2619 rm -f conftest$ac_exeext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2621 (eval $ac_link) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 echo "$as_me:$LINENO: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2632 else
2633 echo "$as_me: program exited with status $ac_status" >&5
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 ( exit $ac_status )
2638 echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6
2640 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2641 echo "$as_me: error: a working C++ compiler is required" >&2;}
2642 { (exit 1); exit 1; }; }
2644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2647 if test "$cross_compiling" = no; then
2648 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
2649 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
2651 if test "$cross_compiling" = yes; then
2653 else
2654 cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h. */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2663 extern "C" {
2664 void _exit(int);
2667 int i;
2668 struct A {
2669 char dummy;
2670 A() { i = 1; }
2671 ~A() { if (i == 1) _exit(0); }
2674 A a;
2676 int main()
2678 return 1;
2683 _ACEOF
2684 rm -f conftest$ac_exeext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2686 (eval $ac_link) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 echo "$as_me:$LINENO: result: yes" >&5
2696 echo "${ECHO_T}yes" >&6
2697 else
2698 echo "$as_me: program exited with status $ac_status" >&5
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2702 ( exit $ac_status )
2703 echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6
2705 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
2706 echo "$as_me: error: a working C++ compiler is required" >&2;}
2707 { (exit 1); exit 1; }; }
2709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2712 echo "$as_me:$LINENO: checking that header files support C++" >&5
2713 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
2714 cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h. */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2723 #include <stdio.h>
2727 main ()
2731 fopen(0, 0);
2735 return 0;
2738 _ACEOF
2739 rm -f conftest.$ac_objext conftest$ac_exeext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2741 (eval $ac_link) 2>conftest.er1
2742 ac_status=$?
2743 grep -v '^ *+' conftest.er1 >conftest.err
2744 rm -f conftest.er1
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_cxx_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 (eval $ac_try) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest$ac_exeext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 echo "$as_me:$LINENO: result: yes" >&5
2762 echo "${ECHO_T}yes" >&6
2763 else
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6
2769 { { echo "$as_me:$LINENO: error: header files do not support C++
2770 (if you are using a version of gcc/g++ earlier than 2.5,
2771 you should install libg++)" >&5
2772 echo "$as_me: error: header files do not support C++
2773 (if you are using a version of gcc/g++ earlier than 2.5,
2774 you should install libg++)" >&2;}
2775 { (exit 1); exit 1; }; }
2777 rm -f conftest.err conftest.$ac_objext \
2778 conftest$ac_exeext conftest.$ac_ext
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
2787 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
2788 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2797 /* Treat any failure as ASCII for compatibility with existing art.
2798 Use compile-time rather than run-time tests for cross-compiler
2799 tolerance. */
2800 #if '0' != 240
2801 make an error "Character set is not EBCDIC"
2802 #endif
2806 main ()
2810 return 0;
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } &&
2823 { ac_try='test -z "$ac_c_werror_flag"
2824 || test ! -s conftest.err'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; } &&
2830 { ac_try='test -s conftest.$ac_objext'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 groff_cv_ebcdic="yes"
2837 TTYDEVDIRS="font/devcp1047"
2838 echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6
2841 cat >>confdefs.h <<\_ACEOF
2842 #define IS_EBCDIC_HOST 1
2843 _ACEOF
2845 else
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2849 groff_cv_ebcdic="no"
2850 TTYDEVDIRS="font/devascii font/devlatin1"
2851 OTHERDEVDIRS="font/devlj4 font/devlbp"
2852 echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858 if test "$groff_cv_ebcdic" = "yes"; then
2859 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
2860 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
2861 case `uname` in
2862 OS/390)
2863 CFLAGS="$CFLAGS -D_ALL_SOURCE"
2864 echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6 ;;
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6 ;;
2869 esac
2871 if test -z "$PSPRINT"; then
2872 for ac_prog in lpr
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_LPR+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 if test -n "$LPR"; then
2882 ac_cv_prog_LPR="$LPR" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_LPR="$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2900 LPR=$ac_cv_prog_LPR
2901 if test -n "$LPR"; then
2902 echo "$as_me:$LINENO: result: $LPR" >&5
2903 echo "${ECHO_T}$LPR" >&6
2904 else
2905 echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2909 test -n "$LPR" && break
2910 done
2912 for ac_prog in lp
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2918 if test "${ac_cv_prog_LP+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 if test -n "$LP"; then
2922 ac_cv_prog_LP="$LP" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_LP="$ac_prog"
2932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2935 done
2936 done
2940 LP=$ac_cv_prog_LP
2941 if test -n "$LP"; then
2942 echo "$as_me:$LINENO: result: $LP" >&5
2943 echo "${ECHO_T}$LP" >&6
2944 else
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2949 test -n "$LP" && break
2950 done
2952 if test -n "$LPR" && test -n "$LP"; then
2953 # HP-UX provides an lpr command that emulates lpr using lp,
2954 # but it doesn't have lpq; in this case we want to use lp
2955 # rather than lpr.
2956 for ac_prog in lpq
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 echo "$as_me:$LINENO: checking for $ac_word" >&5
2961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2962 if test "${ac_cv_prog_LPQ+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 if test -n "$LPQ"; then
2966 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_LPQ="$ac_prog"
2976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2979 done
2980 done
2984 LPQ=$ac_cv_prog_LPQ
2985 if test -n "$LPQ"; then
2986 echo "$as_me:$LINENO: result: $LPQ" >&5
2987 echo "${ECHO_T}$LPQ" >&6
2988 else
2989 echo "$as_me:$LINENO: result: no" >&5
2990 echo "${ECHO_T}no" >&6
2993 test -n "$LPQ" && break
2994 done
2996 test -n "$LPQ" || LPR=
2998 if test -n "$LPR"; then
2999 PSPRINT="$LPR"
3000 elif test -n "$LP"; then
3001 PSPRINT="$LP"
3005 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
3006 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
3007 echo "$as_me:$LINENO: result: $PSPRINT" >&5
3008 echo "${ECHO_T}$PSPRINT" >&6
3010 # Figure out DVIPRINT from PSPRINT.
3011 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
3012 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
3013 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
3014 if test "X$PSPRINT" = "Xlpr"; then
3015 DVIPRINT="lpr -d"
3016 else
3017 DVIPRINT="$PSPRINT"
3021 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
3022 echo "${ECHO_T}$DVIPRINT" >&6
3023 # Extract the first word of "perl", so it can be a program name with args.
3024 set dummy perl; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_path_PERLPATH+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 case $PERLPATH in
3031 [\\/]* | ?:[\\/]*)
3032 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3049 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
3051 esac
3053 PERLPATH=$ac_cv_path_PERLPATH
3055 if test -n "$PERLPATH"; then
3056 echo "$as_me:$LINENO: result: $PERLPATH" >&5
3057 echo "${ECHO_T}$PERLPATH" >&6
3058 else
3059 echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3063 for ac_prog in byacc 'bison -y'
3065 # Extract the first word of "$ac_prog", so it can be a program name with args.
3066 set dummy $ac_prog; ac_word=$2
3067 echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069 if test "${ac_cv_prog_YACC+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072 if test -n "$YACC"; then
3073 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 ac_cv_prog_YACC="$ac_prog"
3083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3086 done
3087 done
3091 YACC=$ac_cv_prog_YACC
3092 if test -n "$YACC"; then
3093 echo "$as_me:$LINENO: result: $YACC" >&5
3094 echo "${ECHO_T}$YACC" >&6
3095 else
3096 echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6
3100 test -n "$YACC" && break
3101 done
3102 test -n "$YACC" || YACC="yacc"
3104 if test -n "$ac_tool_prefix"; then
3105 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3107 echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109 if test "${ac_cv_prog_RANLIB+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112 if test -n "$RANLIB"; then
3113 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3131 RANLIB=$ac_cv_prog_RANLIB
3132 if test -n "$RANLIB"; then
3133 echo "$as_me:$LINENO: result: $RANLIB" >&5
3134 echo "${ECHO_T}$RANLIB" >&6
3135 else
3136 echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3141 if test -z "$ac_cv_prog_RANLIB"; then
3142 ac_ct_RANLIB=$RANLIB
3143 # Extract the first word of "ranlib", so it can be a program name with args.
3144 set dummy ranlib; ac_word=$2
3145 echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 if test -n "$ac_ct_RANLIB"; then
3151 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 ac_cv_prog_ac_ct_RANLIB="ranlib"
3161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3164 done
3165 done
3167 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3170 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3171 if test -n "$ac_ct_RANLIB"; then
3172 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3173 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3174 else
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3179 RANLIB=$ac_ct_RANLIB
3180 else
3181 RANLIB="$ac_cv_prog_RANLIB"
3184 ac_aux_dir=
3185 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3186 if test -f $ac_dir/install-sh; then
3187 ac_aux_dir=$ac_dir
3188 ac_install_sh="$ac_aux_dir/install-sh -c"
3189 break
3190 elif test -f $ac_dir/install.sh; then
3191 ac_aux_dir=$ac_dir
3192 ac_install_sh="$ac_aux_dir/install.sh -c"
3193 break
3194 elif test -f $ac_dir/shtool; then
3195 ac_aux_dir=$ac_dir
3196 ac_install_sh="$ac_aux_dir/shtool install -c"
3197 break
3199 done
3200 if test -z "$ac_aux_dir"; then
3201 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3202 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3203 { (exit 1); exit 1; }; }
3205 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3206 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3207 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3210 ac_dir=`cd $ac_aux_dir; pwd`
3211 ac_install_sh="$ac_dir/install-sh -c"
3212 for ac_prog in install-info
3214 # Extract the first word of "$ac_prog", so it can be a program name with args.
3215 set dummy $ac_prog; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 if test -n "$INSTALL_INFO"; then
3222 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_INSTALL_INFO="$ac_prog"
3232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3235 done
3236 done
3240 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
3241 if test -n "$INSTALL_INFO"; then
3242 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3243 echo "${ECHO_T}$INSTALL_INFO" >&6
3244 else
3245 echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3249 test -n "$INSTALL_INFO" && break
3250 done
3251 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
3253 # Find a good install program. We prefer a C program (faster),
3254 # so one script is as good as another. But avoid the broken or
3255 # incompatible versions:
3256 # SysV /etc/install, /usr/sbin/install
3257 # SunOS /usr/etc/install
3258 # IRIX /sbin/install
3259 # AIX /bin/install
3260 # AmigaOS /C/install, which installs bootblocks on floppy discs
3261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3264 # OS/2's system install, which has a completely different semantic
3265 # ./install, which can be erroneously created by make from ./install.sh.
3266 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3267 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3268 if test -z "$INSTALL"; then
3269 if test "${ac_cv_path_install+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 # Account for people who put trailing slashes in PATH elements.
3278 case $as_dir/ in
3279 ./ | .// | /cC/* | \
3280 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3281 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3282 /usr/ucb/* ) ;;
3284 # OSF1 and SCO ODT 3.0 have their own names for install.
3285 # Don't use installbsd from OSF since it installs stuff as root
3286 # by default.
3287 for ac_prog in ginstall scoinst install; do
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3290 if test $ac_prog = install &&
3291 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3292 # AIX install. It has an incompatible calling convention.
3294 elif test $ac_prog = install &&
3295 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296 # program-specific install script used by HP pwplus--don't use.
3298 else
3299 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3300 break 3
3303 done
3304 done
3306 esac
3307 done
3311 if test "${ac_cv_path_install+set}" = set; then
3312 INSTALL=$ac_cv_path_install
3313 else
3314 # As a last resort, use the slow shell script. We don't cache a
3315 # path for INSTALL within a source directory, because that will
3316 # break other packages using the cache if that directory is
3317 # removed, or if the path is relative.
3318 INSTALL=$ac_install_sh
3321 echo "$as_me:$LINENO: result: $INSTALL" >&5
3322 echo "${ECHO_T}$INSTALL" >&6
3324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325 # It thinks the first close brace ends the variable substitution.
3326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3332 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3333 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3334 LN_S=$as_ln_s
3335 if test "$LN_S" = "ln -s"; then
3336 echo "$as_me:$LINENO: result: yes" >&5
3337 echo "${ECHO_T}yes" >&6
3338 else
3339 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3340 echo "${ECHO_T}no, using $LN_S" >&6
3344 # use a dummy substitution if no csh hack is necessary to avoid errors
3345 # with non-GNU sed programs
3346 echo "$as_me:$LINENO: checking for csh hash hack" >&5
3347 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
3349 cat <<EOF >conftest.sh
3350 #!/bin/sh
3351 true || exit 0
3352 export PATH || exit 0
3353 exit 1
3356 chmod +x conftest.sh
3357 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
3358 echo "$as_me:$LINENO: result: yes" >&5
3359 echo "${ECHO_T}yes" >&6
3360 SH_SCRIPT_SED_CMD='1s/.*/:/'
3361 else
3362 echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3364 SH_SCRIPT_SED_CMD='1s/a/a/'
3366 rm -f conftest.sh
3369 # checks for headers
3370 ac_ext=c
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3377 # On Suns, sometimes $CPP names a directory.
3378 if test -n "$CPP" && test -d "$CPP"; then
3379 CPP=
3381 if test -z "$CPP"; then
3382 if test "${ac_cv_prog_CPP+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 # Double quotes because CPP needs to be expanded
3386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3388 ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3391 # Use a header file that comes with gcc, so configuring glibc
3392 # with a fresh cross-compiler works.
3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394 # <limits.h> exists even on freestanding compilers.
3395 # On the NeXT, cc -E runs the code through the compiler's parser,
3396 # not just through cpp. "Syntax error" is here to catch this case.
3397 cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h. */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408 Syntax error
3409 _ACEOF
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421 else
3422 ac_cpp_err=
3424 else
3425 ac_cpp_err=yes
3427 if test -z "$ac_cpp_err"; then
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 # Broken: fails on valid input.
3434 continue
3436 rm -f conftest.err conftest.$ac_ext
3438 # OK, works on sane cases. Now check whether non-existent headers
3439 # can be detected and how.
3440 cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h. */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <ac_nonexistent.h>
3447 _ACEOF
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev/null; then
3456 if test -s conftest.err; then
3457 ac_cpp_err=$ac_c_preproc_warn_flag
3458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459 else
3460 ac_cpp_err=
3462 else
3463 ac_cpp_err=yes
3465 if test -z "$ac_cpp_err"; then
3466 # Broken: success on invalid input.
3467 continue
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3476 rm -f conftest.err conftest.$ac_ext
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482 break
3485 done
3486 ac_cv_prog_CPP=$CPP
3489 CPP=$ac_cv_prog_CPP
3490 else
3491 ac_cv_prog_CPP=$CPP
3493 echo "$as_me:$LINENO: result: $CPP" >&5
3494 echo "${ECHO_T}$CPP" >&6
3495 ac_preproc_ok=false
3496 for ac_c_preproc_warn_flag in '' yes
3498 # Use a header file that comes with gcc, so configuring glibc
3499 # with a fresh cross-compiler works.
3500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501 # <limits.h> exists even on freestanding compilers.
3502 # On the NeXT, cc -E runs the code through the compiler's parser,
3503 # not just through cpp. "Syntax error" is here to catch this case.
3504 cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #ifdef __STDC__
3511 # include <limits.h>
3512 #else
3513 # include <assert.h>
3514 #endif
3515 Syntax error
3516 _ACEOF
3517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null; then
3525 if test -s conftest.err; then
3526 ac_cpp_err=$ac_c_preproc_warn_flag
3527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3528 else
3529 ac_cpp_err=
3531 else
3532 ac_cpp_err=yes
3534 if test -z "$ac_cpp_err"; then
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 # Broken: fails on valid input.
3541 continue
3543 rm -f conftest.err conftest.$ac_ext
3545 # OK, works on sane cases. Now check whether non-existent headers
3546 # can be detected and how.
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 #include <ac_nonexistent.h>
3554 _ACEOF
3555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3557 ac_status=$?
3558 grep -v '^ *+' conftest.er1 >conftest.err
3559 rm -f conftest.er1
3560 cat conftest.err >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev/null; then
3563 if test -s conftest.err; then
3564 ac_cpp_err=$ac_c_preproc_warn_flag
3565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3566 else
3567 ac_cpp_err=
3569 else
3570 ac_cpp_err=yes
3572 if test -z "$ac_cpp_err"; then
3573 # Broken: success on invalid input.
3574 continue
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Passes both tests.
3580 ac_preproc_ok=:
3581 break
3583 rm -f conftest.err conftest.$ac_ext
3585 done
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then
3590 else
3591 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3592 See \`config.log' for more details." >&5
3593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details." >&2;}
3595 { (exit 1); exit 1; }; }
3598 ac_ext=c
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 echo "$as_me:$LINENO: checking for egrep" >&5
3606 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3607 if test "${ac_cv_prog_egrep+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3611 then ac_cv_prog_egrep='grep -E'
3612 else ac_cv_prog_egrep='egrep'
3615 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3616 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3617 EGREP=$ac_cv_prog_egrep
3620 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3621 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3622 if test "${ac_cv_header_stdc+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #include <stdlib.h>
3632 #include <stdarg.h>
3633 #include <string.h>
3634 #include <float.h>
3637 main ()
3641 return 0;
3643 _ACEOF
3644 rm -f conftest.$ac_objext
3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646 (eval $ac_compile) 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -z "$ac_c_werror_flag"
3654 || test ! -s conftest.err'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; } &&
3660 { ac_try='test -s conftest.$ac_objext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 ac_cv_header_stdc=yes
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 ac_cv_header_stdc=no
3673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3675 if test $ac_cv_header_stdc = yes; then
3676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683 #include <string.h>
3685 _ACEOF
3686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3687 $EGREP "memchr" >/dev/null 2>&1; then
3689 else
3690 ac_cv_header_stdc=no
3692 rm -f conftest*
3696 if test $ac_cv_header_stdc = yes; then
3697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 #include <stdlib.h>
3706 _ACEOF
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "free" >/dev/null 2>&1; then
3710 else
3711 ac_cv_header_stdc=no
3713 rm -f conftest*
3717 if test $ac_cv_header_stdc = yes; then
3718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3719 if test "$cross_compiling" = yes; then
3721 else
3722 cat >conftest.$ac_ext <<_ACEOF
3723 /* confdefs.h. */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3728 #include <ctype.h>
3729 #if ((' ' & 0x0FF) == 0x020)
3730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3732 #else
3733 # define ISLOWER(c) \
3734 (('a' <= (c) && (c) <= 'i') \
3735 || ('j' <= (c) && (c) <= 'r') \
3736 || ('s' <= (c) && (c) <= 'z'))
3737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3738 #endif
3740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3742 main ()
3744 int i;
3745 for (i = 0; i < 256; i++)
3746 if (XOR (islower (i), ISLOWER (i))
3747 || toupper (i) != TOUPPER (i))
3748 exit(2);
3749 exit (0);
3751 _ACEOF
3752 rm -f conftest$ac_exeext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754 (eval $ac_link) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3764 else
3765 echo "$as_me: program exited with status $ac_status" >&5
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3769 ( exit $ac_status )
3770 ac_cv_header_stdc=no
3772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3776 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3777 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3778 if test $ac_cv_header_stdc = yes; then
3780 cat >>confdefs.h <<\_ACEOF
3781 #define STDC_HEADERS 1
3782 _ACEOF
3786 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3796 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3797 inttypes.h stdint.h unistd.h
3799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3800 echo "$as_me:$LINENO: checking for $ac_header" >&5
3801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 $ac_includes_default
3813 #include <$ac_header>
3814 _ACEOF
3815 rm -f conftest.$ac_objext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>conftest.er1
3818 ac_status=$?
3819 grep -v '^ *+' conftest.er1 >conftest.err
3820 rm -f conftest.er1
3821 cat conftest.err >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try='test -z "$ac_c_werror_flag"
3825 || test ! -s conftest.err'
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); }; } &&
3831 { ac_try='test -s conftest.$ac_objext'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3837 eval "$as_ac_Header=yes"
3838 else
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 eval "$as_ac_Header=no"
3844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3849 cat >>confdefs.h <<_ACEOF
3850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3851 _ACEOF
3855 done
3869 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
3870 string.h strings.h math.h sys/time.h direct.h process.h
3872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3874 echo "$as_me:$LINENO: checking for $ac_header" >&5
3875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3881 else
3882 # Is the header compilable?
3883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3885 cat >conftest.$ac_ext <<_ACEOF
3886 /* confdefs.h. */
3887 _ACEOF
3888 cat confdefs.h >>conftest.$ac_ext
3889 cat >>conftest.$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3891 $ac_includes_default
3892 #include <$ac_header>
3893 _ACEOF
3894 rm -f conftest.$ac_objext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3896 (eval $ac_compile) 2>conftest.er1
3897 ac_status=$?
3898 grep -v '^ *+' conftest.er1 >conftest.err
3899 rm -f conftest.er1
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try='test -z "$ac_c_werror_flag"
3904 || test ! -s conftest.err'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; } &&
3910 { ac_try='test -s conftest.$ac_objext'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 ac_header_compiler=yes
3917 else
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 ac_header_compiler=no
3923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3925 echo "${ECHO_T}$ac_header_compiler" >&6
3927 # Is the header present?
3928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 #include <$ac_header>
3937 _ACEOF
3938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } >/dev/null; then
3946 if test -s conftest.err; then
3947 ac_cpp_err=$ac_c_preproc_warn_flag
3948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3949 else
3950 ac_cpp_err=
3952 else
3953 ac_cpp_err=yes
3955 if test -z "$ac_cpp_err"; then
3956 ac_header_preproc=yes
3957 else
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 ac_header_preproc=no
3963 rm -f conftest.err conftest.$ac_ext
3964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3965 echo "${ECHO_T}$ac_header_preproc" >&6
3967 # So? What about this header?
3968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3969 yes:no: )
3970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3974 ac_header_preproc=yes
3976 no:yes:* )
3977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3990 cat <<\_ASBOX
3991 ## ------------------------------------------ ##
3992 ## Report this to the AC_PACKAGE_NAME lists. ##
3993 ## ------------------------------------------ ##
3994 _ASBOX
3996 sed "s/^/$as_me: WARNING: /" >&2
3998 esac
3999 echo "$as_me:$LINENO: checking for $ac_header" >&5
4000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 eval "$as_ac_Header=\$ac_header_preproc"
4006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4011 cat >>confdefs.h <<_ACEOF
4012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4013 _ACEOF
4017 done
4019 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
4020 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
4021 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
4022 then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024 echo "${ECHO_T}yes" >&6
4026 cat >>confdefs.h <<\_ACEOF
4027 #define _SYSV3 1
4028 _ACEOF
4030 else
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4034 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
4035 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
4036 ac_ext=cc
4037 ac_cpp='$CXXCPP $CPPFLAGS'
4038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4042 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4051 #include <stdio.h>
4052 extern "C" { void fileno(int); }
4056 main ()
4060 return 0;
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_cxx_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 echo "$as_me:$LINENO: result: yes" >&5
4087 echo "${ECHO_T}yes" >&6
4089 cat >>confdefs.h <<\_ACEOF
4090 #define _POSIX_SOURCE 1
4091 _ACEOF
4093 else
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 echo "$as_me:$LINENO: result: no" >&5
4098 echo "${ECHO_T}no" >&6
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 # checks for header stuff
4109 ac_ext=cc
4110 ac_cpp='$CXXCPP $CPPFLAGS'
4111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4115 echo "$as_me:$LINENO: checking for return type of srand" >&5
4116 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
4117 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4126 #include <stdlib.h>
4127 extern "C" { void srand(unsigned int); }
4131 main ()
4135 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>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_cxx_werror_flag"
4149 || test ! -s conftest.err'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 echo "$as_me:$LINENO: result: void" >&5
4162 echo "${ECHO_T}void" >&6
4164 cat >>confdefs.h <<\_ACEOF
4165 #define RET_TYPE_SRAND_IS_VOID 1
4166 _ACEOF
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 echo "$as_me:$LINENO: result: int" >&5
4173 echo "${ECHO_T}int" >&6
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
4183 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
4184 ac_ext=cc
4185 ac_cpp='$CXXCPP $CPPFLAGS'
4186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4190 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4202 #include <stdio.h>
4203 #ifdef HAVE_STRING_H
4204 #include <string.h>
4205 #endif
4206 #ifdef HAVE_STRINGS_H
4207 #include <strings.h>
4208 #endif
4209 #ifdef HAVE_STDLIB_H
4210 #include <stdlib.h>
4211 #endif
4212 #ifdef HAVE_SYS_TIME_H
4213 #include <sys/time.h>
4214 #endif
4215 #ifdef HAVE_UNISTD_H
4216 #include <unistd.h>
4217 #endif
4218 #ifdef HAVE_MATH_H
4219 #include <math.h>
4220 #endif
4224 main ()
4228 #ifndef gettimeofday
4229 char *p = (char *) gettimeofday;
4230 #endif
4234 return 0;
4237 _ACEOF
4238 rm -f conftest.$ac_objext
4239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4240 (eval $ac_compile) 2>conftest.er1
4241 ac_status=$?
4242 grep -v '^ *+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } &&
4247 { ac_try='test -z "$ac_cxx_werror_flag"
4248 || test ! -s conftest.err'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try='test -s conftest.$ac_objext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 (eval $ac_try) 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 groff_cv_decl_needed_gettimeofday=no
4261 else
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 groff_cv_decl_needed_gettimeofday=yes
4267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
4271 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
4272 if test $groff_cv_decl_needed_gettimeofday = yes; then
4274 cat >>confdefs.h <<\_ACEOF
4275 #define NEED_DECLARATION_GETTIMEOFDAY 1
4276 _ACEOF
4279 ac_ext=c
4280 ac_cpp='$CPP $CPPFLAGS'
4281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
4286 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
4287 ac_ext=cc
4288 ac_cpp='$CXXCPP $CPPFLAGS'
4289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4293 if test "${groff_cv_decl_needed_hypot+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h. */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4305 #include <stdio.h>
4306 #ifdef HAVE_STRING_H
4307 #include <string.h>
4308 #endif
4309 #ifdef HAVE_STRINGS_H
4310 #include <strings.h>
4311 #endif
4312 #ifdef HAVE_STDLIB_H
4313 #include <stdlib.h>
4314 #endif
4315 #ifdef HAVE_SYS_TIME_H
4316 #include <sys/time.h>
4317 #endif
4318 #ifdef HAVE_UNISTD_H
4319 #include <unistd.h>
4320 #endif
4321 #ifdef HAVE_MATH_H
4322 #include <math.h>
4323 #endif
4327 main ()
4331 #ifndef hypot
4332 char *p = (char *) hypot;
4333 #endif
4337 return 0;
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_cxx_werror_flag"
4351 || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest.$ac_objext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 groff_cv_decl_needed_hypot=no
4364 else
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 groff_cv_decl_needed_hypot=yes
4370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
4374 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
4375 if test $groff_cv_decl_needed_hypot = yes; then
4377 cat >>confdefs.h <<\_ACEOF
4378 #define NEED_DECLARATION_HYPOT 1
4379 _ACEOF
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
4389 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
4390 ac_ext=cc
4391 ac_cpp='$CXXCPP $CPPFLAGS'
4392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4396 if test "${groff_cv_decl_needed_popen+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4408 #include <stdio.h>
4409 #ifdef HAVE_STRING_H
4410 #include <string.h>
4411 #endif
4412 #ifdef HAVE_STRINGS_H
4413 #include <strings.h>
4414 #endif
4415 #ifdef HAVE_STDLIB_H
4416 #include <stdlib.h>
4417 #endif
4418 #ifdef HAVE_SYS_TIME_H
4419 #include <sys/time.h>
4420 #endif
4421 #ifdef HAVE_UNISTD_H
4422 #include <unistd.h>
4423 #endif
4424 #ifdef HAVE_MATH_H
4425 #include <math.h>
4426 #endif
4430 main ()
4434 #ifndef popen
4435 char *p = (char *) popen;
4436 #endif
4440 return 0;
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -z "$ac_cxx_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 groff_cv_decl_needed_popen=no
4467 else
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 groff_cv_decl_needed_popen=yes
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
4477 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
4478 if test $groff_cv_decl_needed_popen = yes; then
4480 cat >>confdefs.h <<\_ACEOF
4481 #define NEED_DECLARATION_POPEN 1
4482 _ACEOF
4485 ac_ext=c
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
4492 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
4493 ac_ext=cc
4494 ac_cpp='$CXXCPP $CPPFLAGS'
4495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4499 if test "${groff_cv_decl_needed_pclose+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h. */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4511 #include <stdio.h>
4512 #ifdef HAVE_STRING_H
4513 #include <string.h>
4514 #endif
4515 #ifdef HAVE_STRINGS_H
4516 #include <strings.h>
4517 #endif
4518 #ifdef HAVE_STDLIB_H
4519 #include <stdlib.h>
4520 #endif
4521 #ifdef HAVE_SYS_TIME_H
4522 #include <sys/time.h>
4523 #endif
4524 #ifdef HAVE_UNISTD_H
4525 #include <unistd.h>
4526 #endif
4527 #ifdef HAVE_MATH_H
4528 #include <math.h>
4529 #endif
4533 main ()
4537 #ifndef pclose
4538 char *p = (char *) pclose;
4539 #endif
4543 return 0;
4546 _ACEOF
4547 rm -f conftest.$ac_objext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549 (eval $ac_compile) 2>conftest.er1
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_cxx_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 groff_cv_decl_needed_pclose=no
4570 else
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 groff_cv_decl_needed_pclose=yes
4576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
4580 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
4581 if test $groff_cv_decl_needed_pclose = yes; then
4583 cat >>confdefs.h <<\_ACEOF
4584 #define NEED_DECLARATION_PCLOSE 1
4585 _ACEOF
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
4595 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
4596 ac_ext=cc
4597 ac_cpp='$CXXCPP $CPPFLAGS'
4598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4602 if test "${groff_cv_decl_needed_putenv+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4614 #include <stdio.h>
4615 #ifdef HAVE_STRING_H
4616 #include <string.h>
4617 #endif
4618 #ifdef HAVE_STRINGS_H
4619 #include <strings.h>
4620 #endif
4621 #ifdef HAVE_STDLIB_H
4622 #include <stdlib.h>
4623 #endif
4624 #ifdef HAVE_SYS_TIME_H
4625 #include <sys/time.h>
4626 #endif
4627 #ifdef HAVE_UNISTD_H
4628 #include <unistd.h>
4629 #endif
4630 #ifdef HAVE_MATH_H
4631 #include <math.h>
4632 #endif
4636 main ()
4640 #ifndef putenv
4641 char *p = (char *) putenv;
4642 #endif
4646 return 0;
4649 _ACEOF
4650 rm -f conftest.$ac_objext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652 (eval $ac_compile) 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -z "$ac_cxx_werror_flag"
4660 || test ! -s conftest.err'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 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 groff_cv_decl_needed_putenv=no
4673 else
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4677 groff_cv_decl_needed_putenv=yes
4679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
4683 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
4684 if test $groff_cv_decl_needed_putenv = yes; then
4686 cat >>confdefs.h <<\_ACEOF
4687 #define NEED_DECLARATION_PUTENV 1
4688 _ACEOF
4691 ac_ext=c
4692 ac_cpp='$CPP $CPPFLAGS'
4693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
4698 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
4699 ac_ext=cc
4700 ac_cpp='$CXXCPP $CPPFLAGS'
4701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4705 if test "${groff_cv_decl_needed_rand+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4717 #include <stdio.h>
4718 #ifdef HAVE_STRING_H
4719 #include <string.h>
4720 #endif
4721 #ifdef HAVE_STRINGS_H
4722 #include <strings.h>
4723 #endif
4724 #ifdef HAVE_STDLIB_H
4725 #include <stdlib.h>
4726 #endif
4727 #ifdef HAVE_SYS_TIME_H
4728 #include <sys/time.h>
4729 #endif
4730 #ifdef HAVE_UNISTD_H
4731 #include <unistd.h>
4732 #endif
4733 #ifdef HAVE_MATH_H
4734 #include <math.h>
4735 #endif
4739 main ()
4743 #ifndef rand
4744 char *p = (char *) rand;
4745 #endif
4749 return 0;
4752 _ACEOF
4753 rm -f conftest.$ac_objext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755 (eval $ac_compile) 2>conftest.er1
4756 ac_status=$?
4757 grep -v '^ *+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -z "$ac_cxx_werror_flag"
4763 || test ! -s conftest.err'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 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_decl_needed_rand=no
4776 else
4777 echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.$ac_ext >&5
4780 groff_cv_decl_needed_rand=yes
4782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
4786 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
4787 if test $groff_cv_decl_needed_rand = yes; then
4789 cat >>confdefs.h <<\_ACEOF
4790 #define NEED_DECLARATION_RAND 1
4791 _ACEOF
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
4801 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
4802 ac_ext=cc
4803 ac_cpp='$CXXCPP $CPPFLAGS'
4804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4808 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4820 #include <stdio.h>
4821 #ifdef HAVE_STRING_H
4822 #include <string.h>
4823 #endif
4824 #ifdef HAVE_STRINGS_H
4825 #include <strings.h>
4826 #endif
4827 #ifdef HAVE_STDLIB_H
4828 #include <stdlib.h>
4829 #endif
4830 #ifdef HAVE_SYS_TIME_H
4831 #include <sys/time.h>
4832 #endif
4833 #ifdef HAVE_UNISTD_H
4834 #include <unistd.h>
4835 #endif
4836 #ifdef HAVE_MATH_H
4837 #include <math.h>
4838 #endif
4842 main ()
4846 #ifndef snprintf
4847 char *p = (char *) snprintf;
4848 #endif
4852 return 0;
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_cxx_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 groff_cv_decl_needed_snprintf=no
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 groff_cv_decl_needed_snprintf=yes
4885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4888 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
4889 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
4890 if test $groff_cv_decl_needed_snprintf = yes; then
4892 cat >>confdefs.h <<\_ACEOF
4893 #define NEED_DECLARATION_SNPRINTF 1
4894 _ACEOF
4897 ac_ext=c
4898 ac_cpp='$CPP $CPPFLAGS'
4899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
4904 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
4905 ac_ext=cc
4906 ac_cpp='$CXXCPP $CPPFLAGS'
4907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4911 if test "${groff_cv_decl_needed_srand+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4923 #include <stdio.h>
4924 #ifdef HAVE_STRING_H
4925 #include <string.h>
4926 #endif
4927 #ifdef HAVE_STRINGS_H
4928 #include <strings.h>
4929 #endif
4930 #ifdef HAVE_STDLIB_H
4931 #include <stdlib.h>
4932 #endif
4933 #ifdef HAVE_SYS_TIME_H
4934 #include <sys/time.h>
4935 #endif
4936 #ifdef HAVE_UNISTD_H
4937 #include <unistd.h>
4938 #endif
4939 #ifdef HAVE_MATH_H
4940 #include <math.h>
4941 #endif
4945 main ()
4949 #ifndef srand
4950 char *p = (char *) srand;
4951 #endif
4955 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_cxx_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 groff_cv_decl_needed_srand=no
4982 else
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 groff_cv_decl_needed_srand=yes
4988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4991 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
4992 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
4993 if test $groff_cv_decl_needed_srand = yes; then
4995 cat >>confdefs.h <<\_ACEOF
4996 #define NEED_DECLARATION_SRAND 1
4997 _ACEOF
5000 ac_ext=c
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
5007 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
5008 ac_ext=cc
5009 ac_cpp='$CXXCPP $CPPFLAGS'
5010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5014 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5026 #include <stdio.h>
5027 #ifdef HAVE_STRING_H
5028 #include <string.h>
5029 #endif
5030 #ifdef HAVE_STRINGS_H
5031 #include <strings.h>
5032 #endif
5033 #ifdef HAVE_STDLIB_H
5034 #include <stdlib.h>
5035 #endif
5036 #ifdef HAVE_SYS_TIME_H
5037 #include <sys/time.h>
5038 #endif
5039 #ifdef HAVE_UNISTD_H
5040 #include <unistd.h>
5041 #endif
5042 #ifdef HAVE_MATH_H
5043 #include <math.h>
5044 #endif
5048 main ()
5052 #ifndef strcasecmp
5053 char *p = (char *) strcasecmp;
5054 #endif
5058 return 0;
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -z "$ac_cxx_werror_flag"
5072 || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 groff_cv_decl_needed_strcasecmp=no
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 groff_cv_decl_needed_strcasecmp=yes
5091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
5095 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
5096 if test $groff_cv_decl_needed_strcasecmp = yes; then
5098 cat >>confdefs.h <<\_ACEOF
5099 #define NEED_DECLARATION_STRCASECMP 1
5100 _ACEOF
5103 ac_ext=c
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
5110 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
5111 ac_ext=cc
5112 ac_cpp='$CXXCPP $CPPFLAGS'
5113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5117 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h. */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5129 #include <stdio.h>
5130 #ifdef HAVE_STRING_H
5131 #include <string.h>
5132 #endif
5133 #ifdef HAVE_STRINGS_H
5134 #include <strings.h>
5135 #endif
5136 #ifdef HAVE_STDLIB_H
5137 #include <stdlib.h>
5138 #endif
5139 #ifdef HAVE_SYS_TIME_H
5140 #include <sys/time.h>
5141 #endif
5142 #ifdef HAVE_UNISTD_H
5143 #include <unistd.h>
5144 #endif
5145 #ifdef HAVE_MATH_H
5146 #include <math.h>
5147 #endif
5151 main ()
5155 #ifndef strncasecmp
5156 char *p = (char *) strncasecmp;
5157 #endif
5161 return 0;
5164 _ACEOF
5165 rm -f conftest.$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -z "$ac_cxx_werror_flag"
5175 || test ! -s conftest.err'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 (eval $ac_try) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; } &&
5181 { ac_try='test -s conftest.$ac_objext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 (eval $ac_try) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 groff_cv_decl_needed_strncasecmp=no
5188 else
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 groff_cv_decl_needed_strncasecmp=yes
5194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5197 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
5198 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
5199 if test $groff_cv_decl_needed_strncasecmp = yes; then
5201 cat >>confdefs.h <<\_ACEOF
5202 #define NEED_DECLARATION_STRNCASECMP 1
5203 _ACEOF
5206 ac_ext=c
5207 ac_cpp='$CPP $CPPFLAGS'
5208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
5213 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
5214 ac_ext=cc
5215 ac_cpp='$CXXCPP $CPPFLAGS'
5216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5220 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5232 #include <stdio.h>
5233 #ifdef HAVE_STRING_H
5234 #include <string.h>
5235 #endif
5236 #ifdef HAVE_STRINGS_H
5237 #include <strings.h>
5238 #endif
5239 #ifdef HAVE_STDLIB_H
5240 #include <stdlib.h>
5241 #endif
5242 #ifdef HAVE_SYS_TIME_H
5243 #include <sys/time.h>
5244 #endif
5245 #ifdef HAVE_UNISTD_H
5246 #include <unistd.h>
5247 #endif
5248 #ifdef HAVE_MATH_H
5249 #include <math.h>
5250 #endif
5254 main ()
5258 #ifndef vfprintf
5259 char *p = (char *) vfprintf;
5260 #endif
5264 return 0;
5267 _ACEOF
5268 rm -f conftest.$ac_objext
5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5270 (eval $ac_compile) 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -z "$ac_cxx_werror_flag"
5278 || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 groff_cv_decl_needed_vfprintf=no
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5295 groff_cv_decl_needed_vfprintf=yes
5297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5300 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
5301 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
5302 if test $groff_cv_decl_needed_vfprintf = yes; then
5304 cat >>confdefs.h <<\_ACEOF
5305 #define NEED_DECLARATION_VFPRINTF 1
5306 _ACEOF
5309 ac_ext=c
5310 ac_cpp='$CPP $CPPFLAGS'
5311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
5316 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
5317 ac_ext=cc
5318 ac_cpp='$CXXCPP $CPPFLAGS'
5319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5323 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326 cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h. */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5335 #include <stdio.h>
5336 #ifdef HAVE_STRING_H
5337 #include <string.h>
5338 #endif
5339 #ifdef HAVE_STRINGS_H
5340 #include <strings.h>
5341 #endif
5342 #ifdef HAVE_STDLIB_H
5343 #include <stdlib.h>
5344 #endif
5345 #ifdef HAVE_SYS_TIME_H
5346 #include <sys/time.h>
5347 #endif
5348 #ifdef HAVE_UNISTD_H
5349 #include <unistd.h>
5350 #endif
5351 #ifdef HAVE_MATH_H
5352 #include <math.h>
5353 #endif
5357 main ()
5361 #ifndef vsnprintf
5362 char *p = (char *) vsnprintf;
5363 #endif
5367 return 0;
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -z "$ac_cxx_werror_flag"
5381 || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 groff_cv_decl_needed_vsnprintf=no
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 groff_cv_decl_needed_vsnprintf=yes
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5403 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
5404 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
5405 if test $groff_cv_decl_needed_vsnprintf = yes; then
5407 cat >>confdefs.h <<\_ACEOF
5408 #define NEED_DECLARATION_VSNPRINTF 1
5409 _ACEOF
5412 ac_ext=c
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 ac_ext=cc
5419 ac_cpp='$CXXCPP $CPPFLAGS'
5420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5424 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
5425 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5435 #include <errno.h>
5436 #include <stdio.h>
5437 #include <stdlib.h>
5441 main ()
5445 int k;
5446 k = sys_nerr;
5450 return 0;
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -z "$ac_cxx_werror_flag"
5464 || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 (eval $ac_try) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest.$ac_objext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 echo "$as_me:$LINENO: result: yes" >&5
5477 echo "${ECHO_T}yes" >&6
5479 cat >>confdefs.h <<\_ACEOF
5480 #define HAVE_SYS_NERR 1
5481 _ACEOF
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5487 echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 ac_ext=c
5492 ac_cpp='$CPP $CPPFLAGS'
5493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
5498 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5508 #include <errno.h>
5509 #include <stdio.h>
5510 #include <stdlib.h>
5514 main ()
5518 int k;
5519 k = (int)sys_errlist[0];
5523 return 0;
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529 (eval $ac_compile) 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try='test -s conftest.$ac_objext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 (eval $ac_try) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550 echo "${ECHO_T}yes" >&6
5552 cat >>confdefs.h <<\_ACEOF
5553 #define HAVE_SYS_ERRLIST 1
5554 _ACEOF
5556 else
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6
5563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5564 ac_ext=cc
5565 ac_cpp='$CXXCPP $CPPFLAGS'
5566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5570 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
5571 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
5572 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5581 #include <osfcn.h>
5585 main ()
5589 read(0, 0, 0);
5590 open(0, 0);
5594 return 0;
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600 (eval $ac_compile) 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try='test -z "$ac_cxx_werror_flag"
5608 || test ! -s conftest.err'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try='test -s conftest.$ac_objext'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 (eval $ac_try) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 echo "$as_me:$LINENO: result: yes" >&5
5621 echo "${ECHO_T}yes" >&6
5623 cat >>confdefs.h <<\_ACEOF
5624 #define HAVE_CC_OSFCN_H 1
5625 _ACEOF
5627 else
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5631 echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ac_ext=c
5636 ac_cpp='$CPP $CPPFLAGS'
5637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641 ac_ext=cc
5642 ac_cpp='$CXXCPP $CPPFLAGS'
5643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5647 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
5648 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
5649 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5658 #include <limits.h>
5662 main ()
5666 int x = INT_MIN;
5667 int y = INT_MAX;
5668 int z = UCHAR_MAX;
5672 return 0;
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_cxx_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 echo "$as_me:$LINENO: result: yes" >&5
5699 echo "${ECHO_T}yes" >&6
5701 cat >>confdefs.h <<\_ACEOF
5702 #define HAVE_CC_LIMITS_H 1
5703 _ACEOF
5705 else
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5709 echo "$as_me:$LINENO: result: no" >&5
5710 echo "${ECHO_T}no" >&6
5712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5713 ac_ext=c
5714 ac_cpp='$CPP $CPPFLAGS'
5715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 C++ <stdint.h>" >&5
5726 echo $ECHO_N "checking C++ <stdint.h>... $ECHO_C" >&6
5727 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5736 #include <stdint.h>
5740 main ()
5744 uint32_t x;
5745 int32_t y;
5749 return 0;
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_cxx_werror_flag"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 echo "$as_me:$LINENO: result: yes" >&5
5776 echo "${ECHO_T}yes" >&6
5778 cat >>confdefs.h <<\_ACEOF
5779 #define HAVE_CC_STDINT_H 1
5780 _ACEOF
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6
5789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ac_ext=c
5791 ac_cpp='$CPP $CPPFLAGS'
5792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796 ac_ext=cc
5797 ac_cpp='$CXXCPP $CPPFLAGS'
5798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5802 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5803 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5804 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5813 #include <sys/types.h>
5814 #include <inttypes.h>
5818 main ()
5822 uintmax_t i = (uintmax_t)-1;
5826 return 0;
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -z "$ac_cxx_werror_flag"
5840 || test ! -s conftest.err'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 (eval $ac_try) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try='test -s conftest.$ac_objext'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 (eval $ac_try) 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 groff_cv_header_inttypes_h=yes
5853 else
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5857 groff_cv_header_inttypes_h=no
5859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5860 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
5861 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
5862 ac_ext=c
5863 ac_cpp='$CPP $CPPFLAGS'
5864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869 # checks for typedefs
5870 ac_ext=cc
5871 ac_cpp='$CXXCPP $CPPFLAGS'
5872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5876 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5877 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5878 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5887 unsigned long long ull = 1;
5888 int i = 63;
5889 unsigned long long ullmax = (unsigned long long)-1;
5893 main ()
5897 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5901 return 0;
5904 _ACEOF
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907 (eval $ac_link) 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_cxx_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 groff_cv_type_unsigned_long_long=yes
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 groff_cv_type_unsigned_long_long=no
5934 rm -f conftest.err conftest.$ac_objext \
5935 conftest$ac_exeext conftest.$ac_ext
5936 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
5937 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
5938 ac_ext=c
5939 ac_cpp='$CPP $CPPFLAGS'
5940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5945 if test $groff_cv_header_inttypes_h = no; then
5947 test $groff_cv_type_unsigned_long_long = yes \
5948 && ac_type='unsigned long long' \
5949 || ac_type='unsigned long'
5951 cat >>confdefs.h <<_ACEOF
5952 #define uintmax_t $ac_type
5953 _ACEOF
5956 ac_ext=cc
5957 ac_cpp='$CXXCPP $CPPFLAGS'
5958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
5963 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
5964 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h. */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5973 #include <time.h>
5977 main ()
5981 time_t t = time(0);
5982 struct tm *p = localtime(&t);
5986 return 0;
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_cxx_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 echo "$as_me:$LINENO: result: yes" >&5
6013 echo "${ECHO_T}yes" >&6
6014 else
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6
6021 cat >>confdefs.h <<\_ACEOF
6022 #define LONG_FOR_TIME_T 1
6023 _ACEOF
6026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6027 ac_ext=c
6028 ac_cpp='$CPP $CPPFLAGS'
6029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6034 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6035 if test "${ac_cv_type_signal+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <sys/types.h>
6045 #include <signal.h>
6046 #ifdef signal
6047 # undef signal
6048 #endif
6049 #ifdef __cplusplus
6050 extern "C" void (*signal (int, void (*)(int)))(int);
6051 #else
6052 void (*signal ()) ();
6053 #endif
6056 main ()
6058 int i;
6060 return 0;
6062 _ACEOF
6063 rm -f conftest.$ac_objext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -z "$ac_c_werror_flag"
6073 || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 (eval $ac_try) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 ac_cv_type_signal=void
6086 else
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cv_type_signal=int
6092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6094 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6095 echo "${ECHO_T}$ac_cv_type_signal" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define RETSIGTYPE $ac_cv_type_signal
6099 _ACEOF
6102 echo "$as_me:$LINENO: checking struct exception" >&5
6103 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
6104 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6113 #include <math.h>
6117 main ()
6121 struct exception e;
6125 return 0;
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131 (eval $ac_compile) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 echo "$as_me:$LINENO: result: yes" >&5
6152 echo "${ECHO_T}yes" >&6
6154 cat >>confdefs.h <<\_ACEOF
6155 #define HAVE_STRUCT_EXCEPTION 1
6156 _ACEOF
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6
6165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 # checks for libraries
6168 echo "$as_me:$LINENO: checking for main in -lc" >&5
6169 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
6170 if test "${ac_cv_lib_c_main+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 ac_check_lib_save_LIBS=$LIBS
6174 LIBS="-lc $LIBS"
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6184 main ()
6186 main ();
6188 return 0;
6190 _ACEOF
6191 rm -f conftest.$ac_objext conftest$ac_exeext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>conftest.er1
6194 ac_status=$?
6195 grep -v '^ *+' conftest.er1 >conftest.err
6196 rm -f conftest.er1
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -z "$ac_c_werror_flag"
6201 || test ! -s conftest.err'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 (eval $ac_try) 2>&5
6204 ac_status=$?
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; } &&
6207 { ac_try='test -s conftest$ac_exeext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 (eval $ac_try) 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_cv_lib_c_main=yes
6214 else
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_cv_lib_c_main=no
6220 rm -f conftest.err conftest.$ac_objext \
6221 conftest$ac_exeext conftest.$ac_ext
6222 LIBS=$ac_check_lib_save_LIBS
6224 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
6225 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
6226 if test $ac_cv_lib_c_main = yes; then
6227 LIBC=-lc
6231 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6232 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6233 if test "${ac_cv_lib_m_sin+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236 ac_check_lib_save_LIBS=$LIBS
6237 LIBS="-lm $LIBS"
6238 cat >conftest.$ac_ext <<_ACEOF
6239 /* confdefs.h. */
6240 _ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h. */
6245 /* Override any gcc2 internal prototype to avoid an error. */
6246 #ifdef __cplusplus
6247 extern "C"
6248 #endif
6249 /* We use char because int might match the return type of a gcc2
6250 builtin and then its argument prototype would still apply. */
6251 char sin ();
6253 main ()
6255 sin ();
6257 return 0;
6259 _ACEOF
6260 rm -f conftest.$ac_objext conftest$ac_exeext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262 (eval $ac_link) 2>conftest.er1
6263 ac_status=$?
6264 grep -v '^ *+' conftest.er1 >conftest.err
6265 rm -f conftest.er1
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -z "$ac_c_werror_flag"
6270 || test ! -s conftest.err'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; } &&
6276 { ac_try='test -s conftest$ac_exeext'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 (eval $ac_try) 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6282 ac_cv_lib_m_sin=yes
6283 else
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6287 ac_cv_lib_m_sin=no
6289 rm -f conftest.err conftest.$ac_objext \
6290 conftest$ac_exeext conftest.$ac_ext
6291 LIBS=$ac_check_lib_save_LIBS
6293 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6294 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6295 if test $ac_cv_lib_m_sin = yes; then
6296 LIBM=-lm
6301 # checks for functions
6304 for ac_header in stdlib.h unistd.h
6306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308 echo "$as_me:$LINENO: checking for $ac_header" >&5
6309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6315 else
6316 # Is the header compilable?
6317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 $ac_includes_default
6326 #include <$ac_header>
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6330 (eval $ac_compile) 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -z "$ac_c_werror_flag"
6338 || test ! -s conftest.err'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; } &&
6344 { ac_try='test -s conftest.$ac_objext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_header_compiler=yes
6351 else
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 ac_header_compiler=no
6357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6359 echo "${ECHO_T}$ac_header_compiler" >&6
6361 # Is the header present?
6362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 #include <$ac_header>
6371 _ACEOF
6372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } >/dev/null; then
6380 if test -s conftest.err; then
6381 ac_cpp_err=$ac_c_preproc_warn_flag
6382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6383 else
6384 ac_cpp_err=
6386 else
6387 ac_cpp_err=yes
6389 if test -z "$ac_cpp_err"; then
6390 ac_header_preproc=yes
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_header_preproc=no
6397 rm -f conftest.err conftest.$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6399 echo "${ECHO_T}$ac_header_preproc" >&6
6401 # So? What about this header?
6402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6403 yes:no: )
6404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6408 ac_header_preproc=yes
6410 no:yes:* )
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6424 cat <<\_ASBOX
6425 ## ------------------------------------------ ##
6426 ## Report this to the AC_PACKAGE_NAME lists. ##
6427 ## ------------------------------------------ ##
6428 _ASBOX
6430 sed "s/^/$as_me: WARNING: /" >&2
6432 esac
6433 echo "$as_me:$LINENO: checking for $ac_header" >&5
6434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438 eval "$as_ac_Header=\$ac_header_preproc"
6440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6447 _ACEOF
6451 done
6454 for ac_func in getpagesize
6456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6457 echo "$as_me:$LINENO: checking for $ac_func" >&5
6458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6459 if eval "test \"\${$as_ac_var+set}\" = set"; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6470 #define $ac_func innocuous_$ac_func
6472 /* System header to define __stub macros and hopefully few prototypes,
6473 which can conflict with char $ac_func (); below.
6474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6475 <limits.h> exists even on freestanding compilers. */
6477 #ifdef __STDC__
6478 # include <limits.h>
6479 #else
6480 # include <assert.h>
6481 #endif
6483 #undef $ac_func
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 #ifdef __cplusplus
6487 extern "C"
6489 #endif
6490 /* We use char because int might match the return type of a gcc2
6491 builtin and then its argument prototype would still apply. */
6492 char $ac_func ();
6493 /* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6497 choke me
6498 #else
6499 char (*f) () = $ac_func;
6500 #endif
6501 #ifdef __cplusplus
6503 #endif
6506 main ()
6508 return f != $ac_func;
6510 return 0;
6512 _ACEOF
6513 rm -f conftest.$ac_objext conftest$ac_exeext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6515 (eval $ac_link) 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_c_werror_flag"
6523 || test ! -s conftest.err'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; } &&
6529 { ac_try='test -s conftest$ac_exeext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 eval "$as_ac_var=yes"
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 eval "$as_ac_var=no"
6542 rm -f conftest.err conftest.$ac_objext \
6543 conftest$ac_exeext conftest.$ac_ext
6545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6547 if test `eval echo '${'$as_ac_var'}'` = yes; then
6548 cat >>confdefs.h <<_ACEOF
6549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6550 _ACEOF
6553 done
6555 echo "$as_me:$LINENO: checking for working mmap" >&5
6556 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6557 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 if test "$cross_compiling" = yes; then
6561 ac_cv_func_mmap_fixed_mapped=no
6562 else
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h. */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6570 /* malloc might have been renamed as rpl_malloc. */
6571 #undef malloc
6573 /* Thanks to Mike Haertel and Jim Avera for this test.
6574 Here is a matrix of mmap possibilities:
6575 mmap private not fixed
6576 mmap private fixed at somewhere currently unmapped
6577 mmap private fixed at somewhere already mapped
6578 mmap shared not fixed
6579 mmap shared fixed at somewhere currently unmapped
6580 mmap shared fixed at somewhere already mapped
6581 For private mappings, we should verify that changes cannot be read()
6582 back from the file, nor mmap's back from the file at a different
6583 address. (There have been systems where private was not correctly
6584 implemented like the infamous i386 svr4.0, and systems where the
6585 VM page cache was not coherent with the file system buffer cache
6586 like early versions of FreeBSD and possibly contemporary NetBSD.)
6587 For shared mappings, we should conversely verify that changes get
6588 propagated back to all the places they're supposed to be.
6590 Grep wants private fixed already mapped.
6591 The main things grep needs to know about mmap are:
6592 * does it exist and is it safe to write into the mmap'd area
6593 * how to use it (BSD variants) */
6595 #include <fcntl.h>
6596 #include <sys/mman.h>
6598 #if !STDC_HEADERS && !HAVE_STDLIB_H
6599 char *malloc ();
6600 #endif
6602 /* This mess was copied from the GNU getpagesize.h. */
6603 #if !HAVE_GETPAGESIZE
6604 /* Assume that all systems that can run configure have sys/param.h. */
6605 # if !HAVE_SYS_PARAM_H
6606 # define HAVE_SYS_PARAM_H 1
6607 # endif
6609 # ifdef _SC_PAGESIZE
6610 # define getpagesize() sysconf(_SC_PAGESIZE)
6611 # else /* no _SC_PAGESIZE */
6612 # if HAVE_SYS_PARAM_H
6613 # include <sys/param.h>
6614 # ifdef EXEC_PAGESIZE
6615 # define getpagesize() EXEC_PAGESIZE
6616 # else /* no EXEC_PAGESIZE */
6617 # ifdef NBPG
6618 # define getpagesize() NBPG * CLSIZE
6619 # ifndef CLSIZE
6620 # define CLSIZE 1
6621 # endif /* no CLSIZE */
6622 # else /* no NBPG */
6623 # ifdef NBPC
6624 # define getpagesize() NBPC
6625 # else /* no NBPC */
6626 # ifdef PAGESIZE
6627 # define getpagesize() PAGESIZE
6628 # endif /* PAGESIZE */
6629 # endif /* no NBPC */
6630 # endif /* no NBPG */
6631 # endif /* no EXEC_PAGESIZE */
6632 # else /* no HAVE_SYS_PARAM_H */
6633 # define getpagesize() 8192 /* punt totally */
6634 # endif /* no HAVE_SYS_PARAM_H */
6635 # endif /* no _SC_PAGESIZE */
6637 #endif /* no HAVE_GETPAGESIZE */
6640 main ()
6642 char *data, *data2, *data3;
6643 int i, pagesize;
6644 int fd;
6646 pagesize = getpagesize ();
6648 /* First, make a file with some known garbage in it. */
6649 data = (char *) malloc (pagesize);
6650 if (!data)
6651 exit (1);
6652 for (i = 0; i < pagesize; ++i)
6653 *(data + i) = rand ();
6654 umask (0);
6655 fd = creat ("conftest.mmap", 0600);
6656 if (fd < 0)
6657 exit (1);
6658 if (write (fd, data, pagesize) != pagesize)
6659 exit (1);
6660 close (fd);
6662 /* Next, try to mmap the file at a fixed address which already has
6663 something else allocated at it. If we can, also make sure that
6664 we see the same garbage. */
6665 fd = open ("conftest.mmap", O_RDWR);
6666 if (fd < 0)
6667 exit (1);
6668 data2 = (char *) malloc (2 * pagesize);
6669 if (!data2)
6670 exit (1);
6671 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6672 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6673 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6674 exit (1);
6675 for (i = 0; i < pagesize; ++i)
6676 if (*(data + i) != *(data2 + i))
6677 exit (1);
6679 /* Finally, make sure that changes to the mapped area do not
6680 percolate back to the file as seen by read(). (This is a bug on
6681 some variants of i386 svr4.0.) */
6682 for (i = 0; i < pagesize; ++i)
6683 *(data2 + i) = *(data2 + i) + 1;
6684 data3 = (char *) malloc (pagesize);
6685 if (!data3)
6686 exit (1);
6687 if (read (fd, data3, pagesize) != pagesize)
6688 exit (1);
6689 for (i = 0; i < pagesize; ++i)
6690 if (*(data + i) != *(data3 + i))
6691 exit (1);
6692 close (fd);
6693 exit (0);
6695 _ACEOF
6696 rm -f conftest$ac_exeext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6698 (eval $ac_link) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_func_mmap_fixed_mapped=yes
6708 else
6709 echo "$as_me: program exited with status $ac_status" >&5
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 ( exit $ac_status )
6714 ac_cv_func_mmap_fixed_mapped=no
6716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6720 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6721 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6723 cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_MMAP 1
6725 _ACEOF
6728 rm -f conftest.mmap
6730 saved_libs="$LIBS"
6731 LIBS="$LIBS $LIBC $LIBM"
6740 for ac_func in fmod getcwd putenv snprintf strcasecmp \
6741 strerror strncasecmp strtol
6743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6744 echo "$as_me:$LINENO: checking for $ac_func" >&5
6745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6746 if eval "test \"\${$as_ac_var+set}\" = set"; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6757 #define $ac_func innocuous_$ac_func
6759 /* System header to define __stub macros and hopefully few prototypes,
6760 which can conflict with char $ac_func (); below.
6761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762 <limits.h> exists even on freestanding compilers. */
6764 #ifdef __STDC__
6765 # include <limits.h>
6766 #else
6767 # include <assert.h>
6768 #endif
6770 #undef $ac_func
6772 /* Override any gcc2 internal prototype to avoid an error. */
6773 #ifdef __cplusplus
6774 extern "C"
6776 #endif
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6779 char $ac_func ();
6780 /* The GNU C library defines this for functions which it implements
6781 to always fail with ENOSYS. Some functions are actually named
6782 something starting with __ and the normal name is an alias. */
6783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6784 choke me
6785 #else
6786 char (*f) () = $ac_func;
6787 #endif
6788 #ifdef __cplusplus
6790 #endif
6793 main ()
6795 return f != $ac_func;
6797 return 0;
6799 _ACEOF
6800 rm -f conftest.$ac_objext conftest$ac_exeext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6802 (eval $ac_link) 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
6816 { ac_try='test -s conftest$ac_exeext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 eval "$as_ac_var=yes"
6823 else
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 eval "$as_ac_var=no"
6829 rm -f conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6834 if test `eval echo '${'$as_ac_var'}'` = yes; then
6835 cat >>confdefs.h <<_ACEOF
6836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6837 _ACEOF
6839 else
6840 case $LIBOBJS in
6841 "$ac_func.$ac_objext" | \
6842 *" $ac_func.$ac_objext" | \
6843 "$ac_func.$ac_objext "* | \
6844 *" $ac_func.$ac_objext "* ) ;;
6845 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6846 esac
6849 done
6852 # vsnprintf is in the same source file as snprintf
6854 for ac_func in vsnprintf
6856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6857 echo "$as_me:$LINENO: checking for $ac_func" >&5
6858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6859 if eval "test \"\${$as_ac_var+set}\" = set"; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6870 #define $ac_func innocuous_$ac_func
6872 /* System header to define __stub macros and hopefully few prototypes,
6873 which can conflict with char $ac_func (); below.
6874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6875 <limits.h> exists even on freestanding compilers. */
6877 #ifdef __STDC__
6878 # include <limits.h>
6879 #else
6880 # include <assert.h>
6881 #endif
6883 #undef $ac_func
6885 /* Override any gcc2 internal prototype to avoid an error. */
6886 #ifdef __cplusplus
6887 extern "C"
6889 #endif
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6892 char $ac_func ();
6893 /* The GNU C library defines this for functions which it implements
6894 to always fail with ENOSYS. Some functions are actually named
6895 something starting with __ and the normal name is an alias. */
6896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6897 choke me
6898 #else
6899 char (*f) () = $ac_func;
6900 #endif
6901 #ifdef __cplusplus
6903 #endif
6906 main ()
6908 return f != $ac_func;
6910 return 0;
6912 _ACEOF
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6915 (eval $ac_link) 2>conftest.er1
6916 ac_status=$?
6917 grep -v '^ *+' conftest.er1 >conftest.err
6918 rm -f conftest.er1
6919 cat conftest.err >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try='test -z "$ac_c_werror_flag"
6923 || test ! -s conftest.err'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; } &&
6929 { ac_try='test -s conftest$ac_exeext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 eval "$as_ac_var=yes"
6936 else
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6940 eval "$as_ac_var=no"
6942 rm -f conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6947 if test `eval echo '${'$as_ac_var'}'` = yes; then
6948 cat >>confdefs.h <<_ACEOF
6949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6950 _ACEOF
6952 else
6953 case $LIBOBJS in
6954 "snprintf.$ac_objext" | \
6955 *" snprintf.$ac_objext" | \
6956 "snprintf.$ac_objext "* | \
6957 *" snprintf.$ac_objext "* ) ;;
6958 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
6959 esac
6962 done
6964 LIBS="$saved_libs"
6971 for ac_func in gettimeofday isatty kill rename setlocale strsep
6973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6974 echo "$as_me:$LINENO: checking for $ac_func" >&5
6975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6976 if eval "test \"\${$as_ac_var+set}\" = set"; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979 cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h. */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6987 #define $ac_func innocuous_$ac_func
6989 /* System header to define __stub macros and hopefully few prototypes,
6990 which can conflict with char $ac_func (); below.
6991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6992 <limits.h> exists even on freestanding compilers. */
6994 #ifdef __STDC__
6995 # include <limits.h>
6996 #else
6997 # include <assert.h>
6998 #endif
7000 #undef $ac_func
7002 /* Override any gcc2 internal prototype to avoid an error. */
7003 #ifdef __cplusplus
7004 extern "C"
7006 #endif
7007 /* We use char because int might match the return type of a gcc2
7008 builtin and then its argument prototype would still apply. */
7009 char $ac_func ();
7010 /* The GNU C library defines this for functions which it implements
7011 to always fail with ENOSYS. Some functions are actually named
7012 something starting with __ and the normal name is an alias. */
7013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7014 choke me
7015 #else
7016 char (*f) () = $ac_func;
7017 #endif
7018 #ifdef __cplusplus
7020 #endif
7023 main ()
7025 return f != $ac_func;
7027 return 0;
7029 _ACEOF
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032 (eval $ac_link) 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try='test -z "$ac_c_werror_flag"
7040 || test ! -s conftest.err'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; } &&
7046 { ac_try='test -s conftest$ac_exeext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 eval "$as_ac_var=yes"
7053 else
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7057 eval "$as_ac_var=no"
7059 rm -f conftest.err conftest.$ac_objext \
7060 conftest$ac_exeext conftest.$ac_ext
7062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7064 if test `eval echo '${'$as_ac_var'}'` = yes; then
7065 cat >>confdefs.h <<_ACEOF
7066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7067 _ACEOF
7070 done
7072 echo "$as_me:$LINENO: checking for mkstemp" >&5
7073 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
7074 ac_ext=cc
7075 ac_cpp='$CXXCPP $CPPFLAGS'
7076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7081 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7090 #include <stdlib.h>
7091 #include <unistd.h>
7092 int (*f) (char *);
7096 main ()
7100 f = mkstemp;
7104 return 0;
7107 _ACEOF
7108 rm -f conftest.$ac_objext conftest$ac_exeext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7110 (eval $ac_link) 2>conftest.er1
7111 ac_status=$?
7112 grep -v '^ *+' conftest.er1 >conftest.err
7113 rm -f conftest.er1
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try='test -z "$ac_cxx_werror_flag"
7118 || test ! -s conftest.err'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5
7121 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; } &&
7124 { ac_try='test -s conftest$ac_exeext'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 echo "$as_me:$LINENO: result: yes" >&5
7131 echo "${ECHO_T}yes" >&6
7133 cat >>confdefs.h <<\_ACEOF
7134 #define HAVE_MKSTEMP 1
7135 _ACEOF
7137 else
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7143 case $LIBOBJS in
7144 "mkstemp.$ac_objext" | \
7145 *" mkstemp.$ac_objext" | \
7146 "mkstemp.$ac_objext "* | \
7147 *" mkstemp.$ac_objext "* ) ;;
7148 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
7149 esac
7152 rm -f conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
7154 ac_ext=c
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7161 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
7162 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 $ac_includes_default
7173 main ()
7175 #ifndef sys_siglist
7176 char *p = (char *) sys_siglist;
7177 #endif
7180 return 0;
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag"
7193 || test ! -s conftest.err'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest.$ac_objext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 ac_cv_have_decl_sys_siglist=yes
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_cv_have_decl_sys_siglist=no
7212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7214 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7215 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7216 if test $ac_cv_have_decl_sys_siglist = yes; then
7218 cat >>confdefs.h <<_ACEOF
7219 #define HAVE_DECL_SYS_SIGLIST 1
7220 _ACEOF
7223 else
7224 cat >>confdefs.h <<_ACEOF
7225 #define HAVE_DECL_SYS_SIGLIST 0
7226 _ACEOF
7233 # checks for compiler characteristics
7234 ac_ext=cc
7235 ac_cpp='$CXXCPP $CPPFLAGS'
7236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7240 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
7241 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
7242 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7251 main ()
7255 char *p = new char[5];
7256 delete [] p;
7260 return 0;
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7266 (eval $ac_compile) 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -z "$ac_cxx_werror_flag"
7274 || test ! -s conftest.err'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; } &&
7280 { ac_try='test -s conftest.$ac_objext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 echo "$as_me:$LINENO: result: yes" >&5
7287 echo "${ECHO_T}yes" >&6
7288 else
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6
7295 cat >>confdefs.h <<\_ACEOF
7296 #define ARRAY_DELETE_NEEDS_SIZE 1
7297 _ACEOF
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301 ac_ext=c
7302 ac_cpp='$CPP $CPPFLAGS'
7303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307 ac_ext=cc
7308 ac_cpp='$CXXCPP $CPPFLAGS'
7309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7313 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
7314 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
7315 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7324 #define name2(a, b) a/**/b
7328 main ()
7332 int name2(foo, bar);
7336 return 0;
7339 _ACEOF
7340 rm -f conftest.$ac_objext
7341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7342 (eval $ac_compile) 2>conftest.er1
7343 ac_status=$?
7344 grep -v '^ *+' conftest.er1 >conftest.err
7345 rm -f conftest.er1
7346 cat conftest.err >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -z "$ac_cxx_werror_flag"
7350 || test ! -s conftest.err'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 (eval $ac_try) 2>&5
7353 ac_status=$?
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; } &&
7356 { ac_try='test -s conftest.$ac_objext'
7357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 (eval $ac_try) 2>&5
7359 ac_status=$?
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); }; }; then
7362 echo "$as_me:$LINENO: result: yes" >&5
7363 echo "${ECHO_T}yes" >&6
7365 cat >>confdefs.h <<\_ACEOF
7366 #define TRADITIONAL_CPP 1
7367 _ACEOF
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7377 ac_ext=c
7378 ac_cpp='$CPP $CPPFLAGS'
7379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7384 # checks for operating system services
7385 echo "$as_me:$LINENO: checking w_coredump" >&5
7386 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
7387 if test "$cross_compiling" = yes; then
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390 else
7391 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7400 #include <sys/types.h>
7401 #include <sys/wait.h>
7405 main ()
7409 main()
7411 #ifdef WCOREFLAG
7412 exit(1);
7413 #else
7414 int i = 0;
7415 ((union wait *)&i)->w_coredump = 1;
7416 exit(i != 0200);
7417 #endif
7422 return 0;
7425 _ACEOF
7426 rm -f conftest$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 (eval $ac_try) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 echo "$as_me:$LINENO: result: yes" >&5
7438 echo "${ECHO_T}yes" >&6
7440 cat >>confdefs.h <<\_ACEOF
7441 #define WCOREFLAG 0200
7442 _ACEOF
7444 else
7445 echo "$as_me: program exited with status $ac_status" >&5
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ( exit $ac_status )
7450 echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6
7453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7456 # other random stuff
7457 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
7458 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
7459 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
7460 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
7461 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
7463 echo "$as_me:$LINENO: checking default paper size" >&5
7464 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
7465 groff_prefix=$prefix
7466 test "x$prefix" = xNONE && groff_prefix=$ac_default_prefix
7467 if test -z "$PAGE"; then
7468 descfile=
7469 if test -r $groff_prefix/share/groff/font/devps/DESC; then
7470 descfile=$groff_prefix/share/groff/font/devps/DESC
7471 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
7472 descfile=$groff_prefix/lib/groff/font/devps/DESC
7473 else
7474 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
7475 if test -r $f; then
7476 descfile=$f
7477 break
7479 done
7482 if test -n "$descfile"; then
7483 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
7484 PAGE=A4
7485 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
7486 PAGE=A4
7491 if test -z "$PAGE"; then
7492 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
7493 /etc/resolv.conf 2>/dev/null`
7494 if test -z "$dom"; then
7495 dom=`(domainname) 2>/dev/null | tr -d '+'`
7496 if test -z "$dom" \
7497 || test "$dom" = '(none)'; then
7498 dom=`(hostname) 2>/dev/null | grep '\.'`
7501 # If the top-level domain is two letters and it's not `us' or `ca'
7502 # then they probably use A4 paper.
7503 case "$dom" in
7504 *.[Uu][Ss]|*.[Cc][Aa])
7506 *.[A-Za-z][A-Za-z])
7507 PAGE=A4 ;;
7508 esac
7511 test -n "$PAGE" || PAGE=letter
7512 if test "x$PAGE" = "xA4"; then
7514 cat >>confdefs.h <<\_ACEOF
7515 #define PAGEA4 1
7516 _ACEOF
7519 echo "$as_me:$LINENO: result: $PAGE" >&5
7520 echo "${ECHO_T}$PAGE" >&6
7522 echo "$as_me:$LINENO: checking for existing troff installation" >&5
7523 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
7524 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
7525 echo "$as_me:$LINENO: result: yes" >&5
7526 echo "${ECHO_T}yes" >&6
7528 else
7529 echo "$as_me:$LINENO: result: no" >&5
7530 echo "${ECHO_T}no" >&6
7534 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
7535 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
7536 sys_tmac_prefix=
7537 sys_tmac_file_prefix=
7538 for d in /usr/share/lib/tmac /usr/lib/tmac; do
7539 for t in "" tmac.; do
7540 for m in an s m; do
7541 f=$d/$t$m
7542 if test -z "$sys_tmac_prefix" \
7543 && test -f $f \
7544 && grep '^\.if' $f >/dev/null 2>&1; then
7545 sys_tmac_prefix=$d/$t
7546 sys_tmac_file_prefix=$t
7548 done
7549 done
7550 done
7551 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
7552 echo "${ECHO_T}$sys_tmac_prefix" >&6
7555 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
7556 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
7557 tmac_wrap=
7558 if test "x$sys_tmac_file_prefix" = "xtmac."; then
7559 for f in $sys_tmac_prefix*; do
7560 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
7561 case "$suff" in
7565 grep "Copyright.*Free Software Foundation" $f >/dev/null \
7566 || tmac_wrap="$tmac_wrap $suff" ;;
7567 esac
7568 done
7569 elif test -n "$sys_tmac_prefix"; then
7570 files=`echo $sys_tmac_prefix*`
7571 grep "\\.so" $files >conftest.sol
7572 for f in $files; do
7573 case "$f" in
7574 ${sys_tmac_prefix}e)
7576 *.me)
7578 */ms.*)
7581 b=`basename $f`
7582 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
7583 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
7585 else
7586 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
7587 case "$suff" in
7588 tmac.*)
7591 tmac_wrap="$tmac_wrap $suff" ;;
7592 esac
7594 esac
7595 done
7596 rm -f conftest.sol
7598 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
7599 echo "${ECHO_T}$tmac_wrap" >&6
7601 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
7602 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
7603 cp ${srcdir}/src/include/nonposix.h conftest.h
7604 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7613 #include <ctype.h>
7614 #include "conftest.h"
7618 main ()
7622 #if PATH_SEP_CHAR == ';'
7623 make an error "Path separator is ';'"
7624 #endif
7628 return 0;
7631 _ACEOF
7632 rm -f conftest.$ac_objext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7634 (eval $ac_compile) 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } &&
7641 { ac_try='test -z "$ac_c_werror_flag"
7642 || test ! -s conftest.err'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; } &&
7648 { ac_try='test -s conftest.$ac_objext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 GROFF_PATH_SEPARATOR=":"
7655 else
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7659 GROFF_PATH_SEPARATOR=";"
7661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7662 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
7663 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
7665 make_html=html
7666 make_install_html=install_html
7668 missing=
7669 # Extract the first word of "pnmcut", so it can be a program name with args.
7670 set dummy pnmcut; ac_word=$2
7671 echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7673 if test "${ac_cv_prog_pnmcut+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676 if test -n "$pnmcut"; then
7677 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_pnmcut="found"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7690 done
7691 done
7693 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
7696 pnmcut=$ac_cv_prog_pnmcut
7697 if test -n "$pnmcut"; then
7698 echo "$as_me:$LINENO: result: $pnmcut" >&5
7699 echo "${ECHO_T}$pnmcut" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6
7705 if test $pnmcut = missing; then
7706 missing="$missing pnmcut"
7707 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
7708 set dummy pnmcrop; ac_word=$2
7709 echo "$as_me:$LINENO: checking for $ac_word" >&5
7710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7711 if test "${ac_cv_prog_pnmcrop+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714 if test -n "$pnmcrop"; then
7715 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_pnmcrop="found"
7725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7728 done
7729 done
7731 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
7734 pnmcrop=$ac_cv_prog_pnmcrop
7735 if test -n "$pnmcrop"; then
7736 echo "$as_me:$LINENO: result: $pnmcrop" >&5
7737 echo "${ECHO_T}$pnmcrop" >&6
7738 else
7739 echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6
7743 if test $pnmcrop = missing; then
7744 missing="$missing pnmcrop"
7745 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
7746 set dummy pnmtopng; ac_word=$2
7747 echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7749 if test "${ac_cv_prog_pnmtopng+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752 if test -n "$pnmtopng"; then
7753 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_pnmtopng="found"
7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7766 done
7767 done
7769 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
7772 pnmtopng=$ac_cv_prog_pnmtopng
7773 if test -n "$pnmtopng"; then
7774 echo "$as_me:$LINENO: result: $pnmtopng" >&5
7775 echo "${ECHO_T}$pnmtopng" >&6
7776 else
7777 echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6
7781 if test $pnmtopng = missing; then
7782 missing="$missing pnmtopng"
7783 fi;# Extract the first word of "psselect", so it can be a program name with args.
7784 set dummy psselect; ac_word=$2
7785 echo "$as_me:$LINENO: checking for $ac_word" >&5
7786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7787 if test "${ac_cv_prog_psselect+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790 if test -n "$psselect"; then
7791 ac_cv_prog_psselect="$psselect" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_prog_psselect="found"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7807 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
7810 psselect=$ac_cv_prog_psselect
7811 if test -n "$psselect"; then
7812 echo "$as_me:$LINENO: result: $psselect" >&5
7813 echo "${ECHO_T}$psselect" >&6
7814 else
7815 echo "$as_me:$LINENO: result: no" >&5
7816 echo "${ECHO_T}no" >&6
7819 if test $psselect = missing; then
7820 missing="$missing psselect"
7821 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
7822 set dummy pnmtops; ac_word=$2
7823 echo "$as_me:$LINENO: checking for $ac_word" >&5
7824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7825 if test "${ac_cv_prog_pnmtops+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828 if test -n "$pnmtops"; then
7829 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
7830 else
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_pnmtops="found"
7839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 break 2
7842 done
7843 done
7845 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
7848 pnmtops=$ac_cv_prog_pnmtops
7849 if test -n "$pnmtops"; then
7850 echo "$as_me:$LINENO: result: $pnmtops" >&5
7851 echo "${ECHO_T}$pnmtops" >&6
7852 else
7853 echo "$as_me:$LINENO: result: no" >&5
7854 echo "${ECHO_T}no" >&6
7857 if test $pnmtops = missing; then
7858 missing="$missing pnmtops"
7859 fi;# Extract the first word of "gs", so it can be a program name with args.
7860 set dummy gs; ac_word=$2
7861 echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863 if test "${ac_cv_prog_gs+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866 if test -n "$gs"; then
7867 ac_cv_prog_gs="$gs" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_gs="found"
7877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7883 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs="missing"
7886 gs=$ac_cv_prog_gs
7887 if test -n "$gs"; then
7888 echo "$as_me:$LINENO: result: $gs" >&5
7889 echo "${ECHO_T}$gs" >&6
7890 else
7891 echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6
7895 if test $gs = missing; then
7896 missing="$missing gs"
7899 if test -n "$missing"; then
7900 cnt=0
7901 for i in $missing
7903 cnt=`expr $cnt + 1`
7904 eval "prog$cnt=$i"
7905 done
7906 plural="s"
7907 case $cnt in
7909 plural=""
7910 progs="\`$prog1'" ;;
7912 progs="\`$prog1' and \`$prog2'" ;;
7914 progs="\`$prog1', \`$prog2', and \`$prog3'" ;;
7916 progs="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
7918 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
7920 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
7921 esac
7923 make_html=
7924 make_install_html=
7926 { echo "$as_me:$LINENO: WARNING:
7928 The program$plural
7929 $progs
7930 can't be found in the path, thus the HTML backend of groff (grohtml)
7931 won't work properly. Consequently, no documentation in HTML format
7932 is built and installed.
7933 " >&5
7934 echo "$as_me: WARNING:
7936 The program$plural
7937 $progs
7938 can't be found in the path, thus the HTML backend of groff (grohtml)
7939 won't work properly. Consequently, no documentation in HTML format
7940 is built and installed.
7941 " >&2;}
7946 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
7947 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
7948 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950 echo "${ECHO_T}yes" >&6
7951 pnmtops_nosetpage="pnmtops -nosetpage"
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7955 pnmtops_nosetpage="pnmtops"
7959 ac_config_files="$ac_config_files stamp-h"
7961 ac_config_files="$ac_config_files Makefile doc/Makefile src/xditview/Imakefile"
7963 ac_config_files="$ac_config_files test-groff"
7965 cat >confcache <<\_ACEOF
7966 # This file is a shell script that caches the results of configure
7967 # tests run on this system so they can be shared between configure
7968 # scripts and configure runs, see configure's option --config-cache.
7969 # It is not useful on other systems. If it contains results you don't
7970 # want to keep, you may remove or edit it.
7972 # config.status only pays attention to the cache file if you give it
7973 # the --recheck option to rerun configure.
7975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7977 # following values.
7979 _ACEOF
7981 # The following way of writing the cache mishandles newlines in values,
7982 # but we know of no workaround that is simple, portable, and efficient.
7983 # So, don't put newlines in cache variables' values.
7984 # Ultrix sh set writes to stderr and can't be redirected directly,
7985 # and sets the high bit in the cache file unless we assign to the vars.
7987 (set) 2>&1 |
7988 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7989 *ac_space=\ *)
7990 # `set' does not quote correctly, so add quotes (double-quote
7991 # substitution turns \\\\ into \\, and sed turns \\ into \).
7992 sed -n \
7993 "s/'/'\\\\''/g;
7994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7997 # `set' quotes correctly as required by POSIX, so do not add quotes.
7998 sed -n \
7999 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8001 esac;
8003 sed '
8004 t clear
8005 : clear
8006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8007 t end
8008 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8009 : end' >>confcache
8010 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8011 if test -w $cache_file; then
8012 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8013 cat confcache >$cache_file
8014 else
8015 echo "not updating unwritable cache $cache_file"
8018 rm -f confcache
8020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8021 # Let make expand exec_prefix.
8022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8024 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8025 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8026 # trailing colons and then remove the whole line if VPATH becomes empty
8027 # (actually we leave an empty line to preserve line numbers).
8028 if test "x$srcdir" = x.; then
8029 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8030 s/:*\$(srcdir):*/:/;
8031 s/:*\${srcdir}:*/:/;
8032 s/:*@srcdir@:*/:/;
8033 s/^\([^=]*=[ ]*\):*/\1/;
8034 s/:*$//;
8035 s/^[^=]*=[ ]*$//;
8039 DEFS=-DHAVE_CONFIG_H
8041 ac_libobjs=
8042 ac_ltlibobjs=
8043 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8044 # 1. Remove the extension, and $U if already installed.
8045 ac_i=`echo "$ac_i" |
8046 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8047 # 2. Add them.
8048 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8049 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8050 done
8051 LIBOBJS=$ac_libobjs
8053 LTLIBOBJS=$ac_ltlibobjs
8057 : ${CONFIG_STATUS=./config.status}
8058 ac_clean_files_save=$ac_clean_files
8059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8062 cat >$CONFIG_STATUS <<_ACEOF
8063 #! $SHELL
8064 # Generated by $as_me.
8065 # Run this file to recreate the current configuration.
8066 # Compiler output produced by configure, useful for debugging
8067 # configure, is in config.log if it exists.
8069 debug=false
8070 ac_cs_recheck=false
8071 ac_cs_silent=false
8072 SHELL=\${CONFIG_SHELL-$SHELL}
8073 _ACEOF
8075 cat >>$CONFIG_STATUS <<\_ACEOF
8076 ## --------------------- ##
8077 ## M4sh Initialization. ##
8078 ## --------------------- ##
8080 # Be Bourne compatible
8081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8082 emulate sh
8083 NULLCMD=:
8084 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8085 # is contrary to our usage. Disable this feature.
8086 alias -g '${1+"$@"}'='"$@"'
8087 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8088 set -o posix
8090 DUALCASE=1; export DUALCASE # for MKS sh
8092 # Support unset when possible.
8093 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8094 as_unset=unset
8095 else
8096 as_unset=false
8100 # Work around bugs in pre-3.0 UWIN ksh.
8101 $as_unset ENV MAIL MAILPATH
8102 PS1='$ '
8103 PS2='> '
8104 PS4='+ '
8106 # NLS nuisances.
8107 for as_var in \
8108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8110 LC_TELEPHONE LC_TIME
8112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8113 eval $as_var=C; export $as_var
8114 else
8115 $as_unset $as_var
8117 done
8119 # Required to use basename.
8120 if expr a : '\(a\)' >/dev/null 2>&1; then
8121 as_expr=expr
8122 else
8123 as_expr=false
8126 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8127 as_basename=basename
8128 else
8129 as_basename=false
8133 # Name of the executable.
8134 as_me=`$as_basename "$0" ||
8135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8136 X"$0" : 'X\(//\)$' \| \
8137 X"$0" : 'X\(/\)$' \| \
8138 . : '\(.\)' 2>/dev/null ||
8139 echo X/"$0" |
8140 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8141 /^X\/\(\/\/\)$/{ s//\1/; q; }
8142 /^X\/\(\/\).*/{ s//\1/; q; }
8143 s/.*/./; q'`
8146 # PATH needs CR, and LINENO needs CR and PATH.
8147 # Avoid depending upon Character Ranges.
8148 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8149 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8150 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8151 as_cr_digits='0123456789'
8152 as_cr_alnum=$as_cr_Letters$as_cr_digits
8154 # The user is always right.
8155 if test "${PATH_SEPARATOR+set}" != set; then
8156 echo "#! /bin/sh" >conf$$.sh
8157 echo "exit 0" >>conf$$.sh
8158 chmod +x conf$$.sh
8159 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8160 PATH_SEPARATOR=';'
8161 else
8162 PATH_SEPARATOR=:
8164 rm -f conf$$.sh
8168 as_lineno_1=$LINENO
8169 as_lineno_2=$LINENO
8170 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8171 test "x$as_lineno_1" != "x$as_lineno_2" &&
8172 test "x$as_lineno_3" = "x$as_lineno_2" || {
8173 # Find who we are. Look in the path if we contain no path at all
8174 # relative or not.
8175 case $0 in
8176 *[\\/]* ) as_myself=$0 ;;
8177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8183 done
8186 esac
8187 # We did not find ourselves, most probably we were run as `sh COMMAND'
8188 # in which case we are not to be found in the path.
8189 if test "x$as_myself" = x; then
8190 as_myself=$0
8192 if test ! -f "$as_myself"; then
8193 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8194 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8195 { (exit 1); exit 1; }; }
8197 case $CONFIG_SHELL in
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
8204 for as_base in sh bash ksh sh5; do
8205 case $as_dir in
8207 if ("$as_dir/$as_base" -c '
8208 as_lineno_1=$LINENO
8209 as_lineno_2=$LINENO
8210 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8211 test "x$as_lineno_1" != "x$as_lineno_2" &&
8212 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8213 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8214 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8215 CONFIG_SHELL=$as_dir/$as_base
8216 export CONFIG_SHELL
8217 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8218 fi;;
8219 esac
8220 done
8221 done
8223 esac
8225 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8226 # uniformly replaced by the line number. The first 'sed' inserts a
8227 # line-number line before each line; the second 'sed' does the real
8228 # work. The second script uses 'N' to pair each line-number line
8229 # with the numbered line, and appends trailing '-' during
8230 # substitution so that $LINENO is not a special case at line end.
8231 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8232 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8233 sed '=' <$as_myself |
8234 sed '
8236 s,$,-,
8237 : loop
8238 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8239 t loop
8240 s,-$,,
8241 s,^['$as_cr_digits']*\n,,
8242 ' >$as_me.lineno &&
8243 chmod +x $as_me.lineno ||
8244 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8245 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8246 { (exit 1); exit 1; }; }
8248 # Don't try to exec as it changes $[0], causing all sort of problems
8249 # (the dirname of $[0] is not the place where we might find the
8250 # original and so on. Autoconf is especially sensible to this).
8251 . ./$as_me.lineno
8252 # Exit status is that of the last command.
8253 exit
8257 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8258 *c*,-n*) ECHO_N= ECHO_C='
8259 ' ECHO_T=' ' ;;
8260 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8261 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8262 esac
8264 if expr a : '\(a\)' >/dev/null 2>&1; then
8265 as_expr=expr
8266 else
8267 as_expr=false
8270 rm -f conf$$ conf$$.exe conf$$.file
8271 echo >conf$$.file
8272 if ln -s conf$$.file conf$$ 2>/dev/null; then
8273 # We could just check for DJGPP; but this test a) works b) is more generic
8274 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8275 if test -f conf$$.exe; then
8276 # Don't use ln at all; we don't have any links
8277 as_ln_s='cp -p'
8278 else
8279 as_ln_s='ln -s'
8281 elif ln conf$$.file conf$$ 2>/dev/null; then
8282 as_ln_s=ln
8283 else
8284 as_ln_s='cp -p'
8286 rm -f conf$$ conf$$.exe conf$$.file
8288 if mkdir -p . 2>/dev/null; then
8289 as_mkdir_p=:
8290 else
8291 test -d ./-p && rmdir ./-p
8292 as_mkdir_p=false
8295 as_executable_p="test -f"
8297 # Sed expression to map a string onto a valid CPP name.
8298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8300 # Sed expression to map a string onto a valid variable name.
8301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8304 # IFS
8305 # We need space, tab and new line, in precisely that order.
8306 as_nl='
8308 IFS=" $as_nl"
8310 # CDPATH.
8311 $as_unset CDPATH
8313 exec 6>&1
8315 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8316 # report actual input values of CONFIG_FILES etc. instead of their
8317 # values after options handling. Logging --version etc. is OK.
8318 exec 5>>config.log
8320 echo
8321 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8322 ## Running $as_me. ##
8323 _ASBOX
8324 } >&5
8325 cat >&5 <<_CSEOF
8327 This file was extended by $as_me, which was
8328 generated by GNU Autoconf 2.59. Invocation command line was
8330 CONFIG_FILES = $CONFIG_FILES
8331 CONFIG_HEADERS = $CONFIG_HEADERS
8332 CONFIG_LINKS = $CONFIG_LINKS
8333 CONFIG_COMMANDS = $CONFIG_COMMANDS
8334 $ $0 $@
8336 _CSEOF
8337 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8338 echo >&5
8339 _ACEOF
8341 # Files that config.status was made for.
8342 if test -n "$ac_config_files"; then
8343 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8346 if test -n "$ac_config_headers"; then
8347 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8350 if test -n "$ac_config_links"; then
8351 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8354 if test -n "$ac_config_commands"; then
8355 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8358 cat >>$CONFIG_STATUS <<\_ACEOF
8360 ac_cs_usage="\
8361 \`$as_me' instantiates files from templates according to the
8362 current configuration.
8364 Usage: $0 [OPTIONS] [FILE]...
8366 -h, --help print this help, then exit
8367 -V, --version print version number, then exit
8368 -q, --quiet do not print progress messages
8369 -d, --debug don't remove temporary files
8370 --recheck update $as_me by reconfiguring in the same conditions
8371 --file=FILE[:TEMPLATE]
8372 instantiate the configuration file FILE
8373 --header=FILE[:TEMPLATE]
8374 instantiate the configuration header FILE
8376 Configuration files:
8377 $config_files
8379 Configuration headers:
8380 $config_headers
8382 Report bugs to <bug-autoconf@gnu.org>."
8383 _ACEOF
8385 cat >>$CONFIG_STATUS <<_ACEOF
8386 ac_cs_version="\\
8387 config.status
8388 configured by $0, generated by GNU Autoconf 2.59,
8389 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8391 Copyright (C) 2003 Free Software Foundation, Inc.
8392 This config.status script is free software; the Free Software Foundation
8393 gives unlimited permission to copy, distribute and modify it."
8394 srcdir=$srcdir
8395 INSTALL="$INSTALL"
8396 _ACEOF
8398 cat >>$CONFIG_STATUS <<\_ACEOF
8399 # If no file are specified by the user, then we need to provide default
8400 # value. By we need to know if files were specified by the user.
8401 ac_need_defaults=:
8402 while test $# != 0
8404 case $1 in
8405 --*=*)
8406 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8407 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8408 ac_shift=:
8411 ac_option=$1
8412 ac_optarg=$2
8413 ac_shift=shift
8415 *) # This is not an option, so the user has probably given explicit
8416 # arguments.
8417 ac_option=$1
8418 ac_need_defaults=false;;
8419 esac
8421 case $ac_option in
8422 # Handling of the options.
8423 _ACEOF
8424 cat >>$CONFIG_STATUS <<\_ACEOF
8425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8426 ac_cs_recheck=: ;;
8427 --version | --vers* | -V )
8428 echo "$ac_cs_version"; exit 0 ;;
8429 --he | --h)
8430 # Conflict between --help and --header
8431 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8432 Try \`$0 --help' for more information." >&5
8433 echo "$as_me: error: ambiguous option: $1
8434 Try \`$0 --help' for more information." >&2;}
8435 { (exit 1); exit 1; }; };;
8436 --help | --hel | -h )
8437 echo "$ac_cs_usage"; exit 0 ;;
8438 --debug | --d* | -d )
8439 debug=: ;;
8440 --file | --fil | --fi | --f )
8441 $ac_shift
8442 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8443 ac_need_defaults=false;;
8444 --header | --heade | --head | --hea )
8445 $ac_shift
8446 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8447 ac_need_defaults=false;;
8448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8450 ac_cs_silent=: ;;
8452 # This is an error.
8453 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8454 Try \`$0 --help' for more information." >&5
8455 echo "$as_me: error: unrecognized option: $1
8456 Try \`$0 --help' for more information." >&2;}
8457 { (exit 1); exit 1; }; } ;;
8459 *) ac_config_targets="$ac_config_targets $1" ;;
8461 esac
8462 shift
8463 done
8465 ac_configure_extra_args=
8467 if $ac_cs_silent; then
8468 exec 6>/dev/null
8469 ac_configure_extra_args="$ac_configure_extra_args --silent"
8472 _ACEOF
8473 cat >>$CONFIG_STATUS <<_ACEOF
8474 if \$ac_cs_recheck; then
8475 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8476 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8479 _ACEOF
8485 cat >>$CONFIG_STATUS <<\_ACEOF
8486 for ac_config_target in $ac_config_targets
8488 case "$ac_config_target" in
8489 # Handling of arguments.
8490 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
8491 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8492 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8493 "src/xditview/Imakefile" ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
8494 "test-groff" ) CONFIG_FILES="$CONFIG_FILES test-groff" ;;
8495 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
8496 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8497 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8498 { (exit 1); exit 1; }; };;
8499 esac
8500 done
8502 # If the user did not use the arguments to specify the items to instantiate,
8503 # then the envvar interface is used. Set only those that are not.
8504 # We use the long form for the default assignment because of an extremely
8505 # bizarre bug on SunOS 4.1.3.
8506 if $ac_need_defaults; then
8507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8511 # Have a temporary directory for convenience. Make it in the build tree
8512 # simply because there is no reason to put it here, and in addition,
8513 # creating and moving files from /tmp can sometimes cause problems.
8514 # Create a temporary directory, and hook for its removal unless debugging.
8515 $debug ||
8517 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8518 trap '{ (exit 1); exit 1; }' 1 2 13 15
8521 # Create a (secure) tmp directory for tmp files.
8524 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8525 test -n "$tmp" && test -d "$tmp"
8526 } ||
8528 tmp=./confstat$$-$RANDOM
8529 (umask 077 && mkdir $tmp)
8530 } ||
8532 echo "$me: cannot create a temporary directory in ." >&2
8533 { (exit 1); exit 1; }
8536 _ACEOF
8538 cat >>$CONFIG_STATUS <<_ACEOF
8541 # CONFIG_FILES section.
8544 # No need to generate the scripts if there are no CONFIG_FILES.
8545 # This happens for instance when ./config.status config.h
8546 if test -n "\$CONFIG_FILES"; then
8547 # Protect against being on the right side of a sed subst in config.status.
8548 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8549 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8550 s,@SHELL@,$SHELL,;t t
8551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8557 s,@exec_prefix@,$exec_prefix,;t t
8558 s,@prefix@,$prefix,;t t
8559 s,@program_transform_name@,$program_transform_name,;t t
8560 s,@bindir@,$bindir,;t t
8561 s,@sbindir@,$sbindir,;t t
8562 s,@libexecdir@,$libexecdir,;t t
8563 s,@datadir@,$datadir,;t t
8564 s,@sysconfdir@,$sysconfdir,;t t
8565 s,@sharedstatedir@,$sharedstatedir,;t t
8566 s,@localstatedir@,$localstatedir,;t t
8567 s,@libdir@,$libdir,;t t
8568 s,@includedir@,$includedir,;t t
8569 s,@oldincludedir@,$oldincludedir,;t t
8570 s,@infodir@,$infodir,;t t
8571 s,@mandir@,$mandir,;t t
8572 s,@build_alias@,$build_alias,;t t
8573 s,@host_alias@,$host_alias,;t t
8574 s,@target_alias@,$target_alias,;t t
8575 s,@DEFS@,$DEFS,;t t
8576 s,@ECHO_C@,$ECHO_C,;t t
8577 s,@ECHO_N@,$ECHO_N,;t t
8578 s,@ECHO_T@,$ECHO_T,;t t
8579 s,@LIBS@,$LIBS,;t t
8580 s,@CC@,$CC,;t t
8581 s,@CFLAGS@,$CFLAGS,;t t
8582 s,@LDFLAGS@,$LDFLAGS,;t t
8583 s,@CPPFLAGS@,$CPPFLAGS,;t t
8584 s,@ac_ct_CC@,$ac_ct_CC,;t t
8585 s,@EXEEXT@,$EXEEXT,;t t
8586 s,@OBJEXT@,$OBJEXT,;t t
8587 s,@CXX@,$CXX,;t t
8588 s,@CXXFLAGS@,$CXXFLAGS,;t t
8589 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8590 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
8591 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
8592 s,@LPR@,$LPR,;t t
8593 s,@LP@,$LP,;t t
8594 s,@LPQ@,$LPQ,;t t
8595 s,@PSPRINT@,$PSPRINT,;t t
8596 s,@DVIPRINT@,$DVIPRINT,;t t
8597 s,@PERLPATH@,$PERLPATH,;t t
8598 s,@YACC@,$YACC,;t t
8599 s,@RANLIB@,$RANLIB,;t t
8600 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8601 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
8602 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8603 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8604 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8605 s,@LN_S@,$LN_S,;t t
8606 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
8607 s,@CPP@,$CPP,;t t
8608 s,@EGREP@,$EGREP,;t t
8609 s,@LIBC@,$LIBC,;t t
8610 s,@LIBM@,$LIBM,;t t
8611 s,@LIBOBJS@,$LIBOBJS,;t t
8612 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
8613 s,@PAGE@,$PAGE,;t t
8614 s,@g@,$g,;t t
8615 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
8616 s,@tmac_wrap@,$tmac_wrap,;t t
8617 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
8618 s,@pnmcut@,$pnmcut,;t t
8619 s,@pnmcrop@,$pnmcrop,;t t
8620 s,@pnmtopng@,$pnmtopng,;t t
8621 s,@psselect@,$psselect,;t t
8622 s,@pnmtops@,$pnmtops,;t t
8623 s,@gs@,$gs,;t t
8624 s,@make_html@,$make_html,;t t
8625 s,@make_install_html@,$make_install_html,;t t
8626 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
8627 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8628 CEOF
8630 _ACEOF
8632 cat >>$CONFIG_STATUS <<\_ACEOF
8633 # Split the substitutions into bite-sized pieces for seds with
8634 # small command number limits, like on Digital OSF/1 and HP-UX.
8635 ac_max_sed_lines=48
8636 ac_sed_frag=1 # Number of current file.
8637 ac_beg=1 # First line for current file.
8638 ac_end=$ac_max_sed_lines # Line after last line for current file.
8639 ac_more_lines=:
8640 ac_sed_cmds=
8641 while $ac_more_lines; do
8642 if test $ac_beg -gt 1; then
8643 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8644 else
8645 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8647 if test ! -s $tmp/subs.frag; then
8648 ac_more_lines=false
8649 else
8650 # The purpose of the label and of the branching condition is to
8651 # speed up the sed processing (if there are no `@' at all, there
8652 # is no need to browse any of the substitutions).
8653 # These are the two extra sed commands mentioned above.
8654 (echo ':t
8655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8656 if test -z "$ac_sed_cmds"; then
8657 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8658 else
8659 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8661 ac_sed_frag=`expr $ac_sed_frag + 1`
8662 ac_beg=$ac_end
8663 ac_end=`expr $ac_end + $ac_max_sed_lines`
8665 done
8666 if test -z "$ac_sed_cmds"; then
8667 ac_sed_cmds=cat
8669 fi # test -n "$CONFIG_FILES"
8671 _ACEOF
8672 cat >>$CONFIG_STATUS <<\_ACEOF
8673 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8675 case $ac_file in
8676 - | *:- | *:-:* ) # input from stdin
8677 cat >$tmp/stdin
8678 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8679 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8680 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8681 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8682 * ) ac_file_in=$ac_file.in ;;
8683 esac
8685 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8686 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8688 X"$ac_file" : 'X\(//\)[^/]' \| \
8689 X"$ac_file" : 'X\(//\)$' \| \
8690 X"$ac_file" : 'X\(/\)' \| \
8691 . : '\(.\)' 2>/dev/null ||
8692 echo X"$ac_file" |
8693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8695 /^X\(\/\/\)$/{ s//\1/; q; }
8696 /^X\(\/\).*/{ s//\1/; q; }
8697 s/.*/./; q'`
8698 { if $as_mkdir_p; then
8699 mkdir -p "$ac_dir"
8700 else
8701 as_dir="$ac_dir"
8702 as_dirs=
8703 while test ! -d "$as_dir"; do
8704 as_dirs="$as_dir $as_dirs"
8705 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8707 X"$as_dir" : 'X\(//\)[^/]' \| \
8708 X"$as_dir" : 'X\(//\)$' \| \
8709 X"$as_dir" : 'X\(/\)' \| \
8710 . : '\(.\)' 2>/dev/null ||
8711 echo X"$as_dir" |
8712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8714 /^X\(\/\/\)$/{ s//\1/; q; }
8715 /^X\(\/\).*/{ s//\1/; q; }
8716 s/.*/./; q'`
8717 done
8718 test ! -n "$as_dirs" || mkdir $as_dirs
8719 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8720 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8721 { (exit 1); exit 1; }; }; }
8723 ac_builddir=.
8725 if test "$ac_dir" != .; then
8726 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8727 # A "../" for each directory in $ac_dir_suffix.
8728 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8729 else
8730 ac_dir_suffix= ac_top_builddir=
8733 case $srcdir in
8734 .) # No --srcdir option. We are building in place.
8735 ac_srcdir=.
8736 if test -z "$ac_top_builddir"; then
8737 ac_top_srcdir=.
8738 else
8739 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8740 fi ;;
8741 [\\/]* | ?:[\\/]* ) # Absolute path.
8742 ac_srcdir=$srcdir$ac_dir_suffix;
8743 ac_top_srcdir=$srcdir ;;
8744 *) # Relative path.
8745 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8746 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8747 esac
8749 # Do not use `cd foo && pwd` to compute absolute paths, because
8750 # the directories may not exist.
8751 case `pwd` in
8752 .) ac_abs_builddir="$ac_dir";;
8754 case "$ac_dir" in
8755 .) ac_abs_builddir=`pwd`;;
8756 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8757 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8758 esac;;
8759 esac
8760 case $ac_abs_builddir in
8761 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8763 case ${ac_top_builddir}. in
8764 .) ac_abs_top_builddir=$ac_abs_builddir;;
8765 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8766 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8767 esac;;
8768 esac
8769 case $ac_abs_builddir in
8770 .) ac_abs_srcdir=$ac_srcdir;;
8772 case $ac_srcdir in
8773 .) ac_abs_srcdir=$ac_abs_builddir;;
8774 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8775 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8776 esac;;
8777 esac
8778 case $ac_abs_builddir in
8779 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8781 case $ac_top_srcdir in
8782 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8783 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8784 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8785 esac;;
8786 esac
8789 case $INSTALL in
8790 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8791 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8792 esac
8794 if test x"$ac_file" != x-; then
8795 { echo "$as_me:$LINENO: creating $ac_file" >&5
8796 echo "$as_me: creating $ac_file" >&6;}
8797 rm -f "$ac_file"
8799 # Let's still pretend it is `configure' which instantiates (i.e., don't
8800 # use $as_me), people would be surprised to read:
8801 # /* config.h. Generated by config.status. */
8802 if test x"$ac_file" = x-; then
8803 configure_input=
8804 else
8805 configure_input="$ac_file. "
8807 configure_input=$configure_input"Generated from `echo $ac_file_in |
8808 sed 's,.*/,,'` by configure."
8810 # First look for the input files in the build tree, otherwise in the
8811 # src tree.
8812 ac_file_inputs=`IFS=:
8813 for f in $ac_file_in; do
8814 case $f in
8815 -) echo $tmp/stdin ;;
8816 [\\/$]*)
8817 # Absolute (can't be DOS-style, as IFS=:)
8818 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8819 echo "$as_me: error: cannot find input file: $f" >&2;}
8820 { (exit 1); exit 1; }; }
8821 echo "$f";;
8822 *) # Relative
8823 if test -f "$f"; then
8824 # Build tree
8825 echo "$f"
8826 elif test -f "$srcdir/$f"; then
8827 # Source tree
8828 echo "$srcdir/$f"
8829 else
8830 # /dev/null tree
8831 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8832 echo "$as_me: error: cannot find input file: $f" >&2;}
8833 { (exit 1); exit 1; }; }
8834 fi;;
8835 esac
8836 done` || { (exit 1); exit 1; }
8837 _ACEOF
8838 cat >>$CONFIG_STATUS <<_ACEOF
8839 sed "$ac_vpsub
8840 $extrasub
8841 _ACEOF
8842 cat >>$CONFIG_STATUS <<\_ACEOF
8844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8845 s,@configure_input@,$configure_input,;t t
8846 s,@srcdir@,$ac_srcdir,;t t
8847 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8848 s,@top_srcdir@,$ac_top_srcdir,;t t
8849 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8850 s,@builddir@,$ac_builddir,;t t
8851 s,@abs_builddir@,$ac_abs_builddir,;t t
8852 s,@top_builddir@,$ac_top_builddir,;t t
8853 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8854 s,@INSTALL@,$ac_INSTALL,;t t
8855 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8856 rm -f $tmp/stdin
8857 if test x"$ac_file" != x-; then
8858 mv $tmp/out $ac_file
8859 else
8860 cat $tmp/out
8861 rm -f $tmp/out
8864 # Run the commands associated with the file.
8865 case $ac_file in
8866 stamp-h ) echo timestamp > stamp-h ;;
8867 test-groff ) chmod +x test-groff ;;
8868 esac
8869 done
8870 _ACEOF
8871 cat >>$CONFIG_STATUS <<\_ACEOF
8874 # CONFIG_HEADER section.
8877 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8878 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8880 # ac_d sets the value in "#define NAME VALUE" lines.
8881 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8882 ac_dB='[ ].*$,\1#\2'
8883 ac_dC=' '
8884 ac_dD=',;t'
8885 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8886 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8887 ac_uB='$,\1#\2define\3'
8888 ac_uC=' '
8889 ac_uD=',;t'
8891 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8893 case $ac_file in
8894 - | *:- | *:-:* ) # input from stdin
8895 cat >$tmp/stdin
8896 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8898 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8900 * ) ac_file_in=$ac_file.in ;;
8901 esac
8903 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8904 echo "$as_me: creating $ac_file" >&6;}
8906 # First look for the input files in the build tree, otherwise in the
8907 # src tree.
8908 ac_file_inputs=`IFS=:
8909 for f in $ac_file_in; do
8910 case $f in
8911 -) echo $tmp/stdin ;;
8912 [\\/$]*)
8913 # Absolute (can't be DOS-style, as IFS=:)
8914 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8915 echo "$as_me: error: cannot find input file: $f" >&2;}
8916 { (exit 1); exit 1; }; }
8917 # Do quote $f, to prevent DOS paths from being IFS'd.
8918 echo "$f";;
8919 *) # Relative
8920 if test -f "$f"; then
8921 # Build tree
8922 echo "$f"
8923 elif test -f "$srcdir/$f"; then
8924 # Source tree
8925 echo "$srcdir/$f"
8926 else
8927 # /dev/null tree
8928 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8929 echo "$as_me: error: cannot find input file: $f" >&2;}
8930 { (exit 1); exit 1; }; }
8931 fi;;
8932 esac
8933 done` || { (exit 1); exit 1; }
8934 # Remove the trailing spaces.
8935 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8937 _ACEOF
8939 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8940 # `conftest.undefs', that substitutes the proper values into
8941 # config.h.in to produce config.h. The first handles `#define'
8942 # templates, and the second `#undef' templates.
8943 # And first: Protect against being on the right side of a sed subst in
8944 # config.status. Protect against being in an unquoted here document
8945 # in config.status.
8946 rm -f conftest.defines conftest.undefs
8947 # Using a here document instead of a string reduces the quoting nightmare.
8948 # Putting comments in sed scripts is not portable.
8950 # `end' is used to avoid that the second main sed command (meant for
8951 # 0-ary CPP macros) applies to n-ary macro definitions.
8952 # See the Autoconf documentation for `clear'.
8953 cat >confdef2sed.sed <<\_ACEOF
8954 s/[\\&,]/\\&/g
8955 s,[\\$`],\\&,g
8956 t clear
8957 : clear
8958 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8959 t end
8960 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8961 : end
8962 _ACEOF
8963 # If some macros were called several times there might be several times
8964 # the same #defines, which is useless. Nevertheless, we may not want to
8965 # sort them, since we want the *last* AC-DEFINE to be honored.
8966 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8967 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8968 rm -f confdef2sed.sed
8970 # This sed command replaces #undef with comments. This is necessary, for
8971 # example, in the case of _POSIX_SOURCE, which is predefined and required
8972 # on some systems where configure will not decide to define it.
8973 cat >>conftest.undefs <<\_ACEOF
8974 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8975 _ACEOF
8977 # Break up conftest.defines because some shells have a limit on the size
8978 # of here documents, and old seds have small limits too (100 cmds).
8979 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8980 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8981 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8982 echo ' :' >>$CONFIG_STATUS
8983 rm -f conftest.tail
8984 while grep . conftest.defines >/dev/null
8986 # Write a limited-size here document to $tmp/defines.sed.
8987 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8988 # Speed up: don't consider the non `#define' lines.
8989 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8990 # Work around the forget-to-reset-the-flag bug.
8991 echo 't clr' >>$CONFIG_STATUS
8992 echo ': clr' >>$CONFIG_STATUS
8993 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8994 echo 'CEOF
8995 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8996 rm -f $tmp/in
8997 mv $tmp/out $tmp/in
8998 ' >>$CONFIG_STATUS
8999 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9000 rm -f conftest.defines
9001 mv conftest.tail conftest.defines
9002 done
9003 rm -f conftest.defines
9004 echo ' fi # grep' >>$CONFIG_STATUS
9005 echo >>$CONFIG_STATUS
9007 # Break up conftest.undefs because some shells have a limit on the size
9008 # of here documents, and old seds have small limits too (100 cmds).
9009 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9010 rm -f conftest.tail
9011 while grep . conftest.undefs >/dev/null
9013 # Write a limited-size here document to $tmp/undefs.sed.
9014 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9015 # Speed up: don't consider the non `#undef'
9016 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9017 # Work around the forget-to-reset-the-flag bug.
9018 echo 't clr' >>$CONFIG_STATUS
9019 echo ': clr' >>$CONFIG_STATUS
9020 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9021 echo 'CEOF
9022 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9023 rm -f $tmp/in
9024 mv $tmp/out $tmp/in
9025 ' >>$CONFIG_STATUS
9026 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9027 rm -f conftest.undefs
9028 mv conftest.tail conftest.undefs
9029 done
9030 rm -f conftest.undefs
9032 cat >>$CONFIG_STATUS <<\_ACEOF
9033 # Let's still pretend it is `configure' which instantiates (i.e., don't
9034 # use $as_me), people would be surprised to read:
9035 # /* config.h. Generated by config.status. */
9036 if test x"$ac_file" = x-; then
9037 echo "/* Generated by configure. */" >$tmp/config.h
9038 else
9039 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9041 cat $tmp/in >>$tmp/config.h
9042 rm -f $tmp/in
9043 if test x"$ac_file" != x-; then
9044 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9046 echo "$as_me: $ac_file is unchanged" >&6;}
9047 else
9048 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9050 X"$ac_file" : 'X\(//\)[^/]' \| \
9051 X"$ac_file" : 'X\(//\)$' \| \
9052 X"$ac_file" : 'X\(/\)' \| \
9053 . : '\(.\)' 2>/dev/null ||
9054 echo X"$ac_file" |
9055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9057 /^X\(\/\/\)$/{ s//\1/; q; }
9058 /^X\(\/\).*/{ s//\1/; q; }
9059 s/.*/./; q'`
9060 { if $as_mkdir_p; then
9061 mkdir -p "$ac_dir"
9062 else
9063 as_dir="$ac_dir"
9064 as_dirs=
9065 while test ! -d "$as_dir"; do
9066 as_dirs="$as_dir $as_dirs"
9067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9069 X"$as_dir" : 'X\(//\)[^/]' \| \
9070 X"$as_dir" : 'X\(//\)$' \| \
9071 X"$as_dir" : 'X\(/\)' \| \
9072 . : '\(.\)' 2>/dev/null ||
9073 echo X"$as_dir" |
9074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9076 /^X\(\/\/\)$/{ s//\1/; q; }
9077 /^X\(\/\).*/{ s//\1/; q; }
9078 s/.*/./; q'`
9079 done
9080 test ! -n "$as_dirs" || mkdir $as_dirs
9081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9083 { (exit 1); exit 1; }; }; }
9085 rm -f $ac_file
9086 mv $tmp/config.h $ac_file
9088 else
9089 cat $tmp/config.h
9090 rm -f $tmp/config.h
9092 done
9093 _ACEOF
9095 cat >>$CONFIG_STATUS <<\_ACEOF
9097 { (exit 0); exit 0; }
9098 _ACEOF
9099 chmod +x $CONFIG_STATUS
9100 ac_clean_files=$ac_clean_files_save
9103 # configure is writing to config.log, and then calls config.status.
9104 # config.status does its own redirection, appending to config.log.
9105 # Unfortunately, on DOS this fails, as config.log is still kept open
9106 # by configure, so config.status won't be able to write to it; its
9107 # output is simply discarded. So we exec the FD to /dev/null,
9108 # effectively closing config.log, so it can be properly (re)opened and
9109 # appended to by config.status. When coming back to configure, we
9110 # need to make the FD available again.
9111 if test "$no_create" != yes; then
9112 ac_cs_success=:
9113 ac_config_status_args=
9114 test "$silent" = yes &&
9115 ac_config_status_args="$ac_config_status_args --quiet"
9116 exec 5>/dev/null
9117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9118 exec 5>>config.log
9119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9120 # would make configure fail if this is the last instruction.
9121 $ac_cs_success || { (exit 1); exit 1; }
9125 { echo "$as_me:$LINENO:
9127 Configuration completed.
9129 You can now say \`make' to compile the groff package and \`make install'
9130 to install it afterwards.
9132 If you want to compile xditview, change the directory to \`src/xditview'
9133 and follow the instructions given in the file \`INSTALL'.
9134 " >&5
9135 echo "$as_me:
9137 Configuration completed.
9139 You can now say \`make' to compile the groff package and \`make install'
9140 to install it afterwards.
9142 If you want to compile xditview, change the directory to \`src/xditview'
9143 and follow the instructions given in the file \`INSTALL'.
9144 " >&6;}