LynxOS 4.0.0 doesn't declare vfprintf.
[s-roff.git] / configure
blob76f51d78862ccc53ab182d3d4bcdce516be22b4f
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 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
3867 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
3868 string.h strings.h math.h sys/time.h
3870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3872 echo "$as_me:$LINENO: checking for $ac_header" >&5
3873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3879 else
3880 # Is the header compilable?
3881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 $ac_includes_default
3890 #include <$ac_header>
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_header_compiler=yes
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_header_compiler=no
3921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3923 echo "${ECHO_T}$ac_header_compiler" >&6
3925 # Is the header present?
3926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #include <$ac_header>
3935 _ACEOF
3936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3938 ac_status=$?
3939 grep -v '^ *+' conftest.er1 >conftest.err
3940 rm -f conftest.er1
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } >/dev/null; then
3944 if test -s conftest.err; then
3945 ac_cpp_err=$ac_c_preproc_warn_flag
3946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3947 else
3948 ac_cpp_err=
3950 else
3951 ac_cpp_err=yes
3953 if test -z "$ac_cpp_err"; then
3954 ac_header_preproc=yes
3955 else
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 ac_header_preproc=no
3961 rm -f conftest.err conftest.$ac_ext
3962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3963 echo "${ECHO_T}$ac_header_preproc" >&6
3965 # So? What about this header?
3966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3967 yes:no: )
3968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3972 ac_header_preproc=yes
3974 no:yes:* )
3975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3988 cat <<\_ASBOX
3989 ## ------------------------------------------ ##
3990 ## Report this to the AC_PACKAGE_NAME lists. ##
3991 ## ------------------------------------------ ##
3992 _ASBOX
3994 sed "s/^/$as_me: WARNING: /" >&2
3996 esac
3997 echo "$as_me:$LINENO: checking for $ac_header" >&5
3998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 eval "$as_ac_Header=\$ac_header_preproc"
4004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4009 cat >>confdefs.h <<_ACEOF
4010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4011 _ACEOF
4015 done
4017 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
4018 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
4019 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
4020 then
4021 echo "$as_me:$LINENO: result: yes" >&5
4022 echo "${ECHO_T}yes" >&6
4024 cat >>confdefs.h <<\_ACEOF
4025 #define _SYSV3 1
4026 _ACEOF
4028 else
4029 echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6
4032 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
4033 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
4034 ac_ext=cc
4035 ac_cpp='$CXXCPP $CPPFLAGS'
4036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4040 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4049 #include <stdio.h>
4050 extern "C" { void fileno(int); }
4054 main ()
4058 return 0;
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_cxx_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 (eval $ac_try) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 echo "$as_me:$LINENO: result: yes" >&5
4085 echo "${ECHO_T}yes" >&6
4087 cat >>confdefs.h <<\_ACEOF
4088 #define _POSIX_SOURCE 1
4089 _ACEOF
4091 else
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_ext=c
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 # checks for header stuff
4107 ac_ext=cc
4108 ac_cpp='$CXXCPP $CPPFLAGS'
4109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4113 echo "$as_me:$LINENO: checking for return type of srand" >&5
4114 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
4115 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4124 #include <stdlib.h>
4125 extern "C" { void srand(unsigned int); }
4129 main ()
4133 return 0;
4136 _ACEOF
4137 rm -f conftest.$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139 (eval $ac_compile) 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_cxx_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 (eval $ac_try) 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 echo "$as_me:$LINENO: result: void" >&5
4160 echo "${ECHO_T}void" >&6
4162 cat >>confdefs.h <<\_ACEOF
4163 #define RET_TYPE_SRAND_IS_VOID 1
4164 _ACEOF
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4170 echo "$as_me:$LINENO: result: int" >&5
4171 echo "${ECHO_T}int" >&6
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
4181 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
4182 ac_ext=cc
4183 ac_cpp='$CXXCPP $CPPFLAGS'
4184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4188 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4200 #include <stdio.h>
4201 #ifdef HAVE_STRING_H
4202 #include <string.h>
4203 #endif
4204 #ifdef HAVE_STRINGS_H
4205 #include <strings.h>
4206 #endif
4207 #ifdef HAVE_STDLIB_H
4208 #include <stdlib.h>
4209 #endif
4210 #ifdef HAVE_SYS_TIME_H
4211 #include <sys/time.h>
4212 #endif
4213 #ifdef HAVE_UNISTD_H
4214 #include <unistd.h>
4215 #endif
4216 #ifdef HAVE_MATH_H
4217 #include <math.h>
4218 #endif
4222 main ()
4226 #ifndef gettimeofday
4227 char *p = (char *) gettimeofday;
4228 #endif
4232 return 0;
4235 _ACEOF
4236 rm -f conftest.$ac_objext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_cxx_werror_flag"
4246 || test ! -s conftest.err'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 groff_cv_decl_needed_gettimeofday=no
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 groff_cv_decl_needed_gettimeofday=yes
4265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4268 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
4269 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
4270 if test $groff_cv_decl_needed_gettimeofday = yes; then
4272 cat >>confdefs.h <<\_ACEOF
4273 #define NEED_DECLARATION_GETTIMEOFDAY 1
4274 _ACEOF
4277 ac_ext=c
4278 ac_cpp='$CPP $CPPFLAGS'
4279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
4284 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
4285 ac_ext=cc
4286 ac_cpp='$CXXCPP $CPPFLAGS'
4287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4291 if test "${groff_cv_decl_needed_hypot+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4303 #include <stdio.h>
4304 #ifdef HAVE_STRING_H
4305 #include <string.h>
4306 #endif
4307 #ifdef HAVE_STRINGS_H
4308 #include <strings.h>
4309 #endif
4310 #ifdef HAVE_STDLIB_H
4311 #include <stdlib.h>
4312 #endif
4313 #ifdef HAVE_SYS_TIME_H
4314 #include <sys/time.h>
4315 #endif
4316 #ifdef HAVE_UNISTD_H
4317 #include <unistd.h>
4318 #endif
4319 #ifdef HAVE_MATH_H
4320 #include <math.h>
4321 #endif
4325 main ()
4329 #ifndef hypot
4330 char *p = (char *) hypot;
4331 #endif
4335 return 0;
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341 (eval $ac_compile) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_cxx_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 groff_cv_decl_needed_hypot=no
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 groff_cv_decl_needed_hypot=yes
4368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4371 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
4372 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
4373 if test $groff_cv_decl_needed_hypot = yes; then
4375 cat >>confdefs.h <<\_ACEOF
4376 #define NEED_DECLARATION_HYPOT 1
4377 _ACEOF
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
4387 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
4388 ac_ext=cc
4389 ac_cpp='$CXXCPP $CPPFLAGS'
4390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4394 if test "${groff_cv_decl_needed_popen+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h. */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4406 #include <stdio.h>
4407 #ifdef HAVE_STRING_H
4408 #include <string.h>
4409 #endif
4410 #ifdef HAVE_STRINGS_H
4411 #include <strings.h>
4412 #endif
4413 #ifdef HAVE_STDLIB_H
4414 #include <stdlib.h>
4415 #endif
4416 #ifdef HAVE_SYS_TIME_H
4417 #include <sys/time.h>
4418 #endif
4419 #ifdef HAVE_UNISTD_H
4420 #include <unistd.h>
4421 #endif
4422 #ifdef HAVE_MATH_H
4423 #include <math.h>
4424 #endif
4428 main ()
4432 #ifndef popen
4433 char *p = (char *) popen;
4434 #endif
4438 return 0;
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_cxx_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 groff_cv_decl_needed_popen=no
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 groff_cv_decl_needed_popen=yes
4471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
4475 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
4476 if test $groff_cv_decl_needed_popen = yes; then
4478 cat >>confdefs.h <<\_ACEOF
4479 #define NEED_DECLARATION_POPEN 1
4480 _ACEOF
4483 ac_ext=c
4484 ac_cpp='$CPP $CPPFLAGS'
4485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
4490 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
4491 ac_ext=cc
4492 ac_cpp='$CXXCPP $CPPFLAGS'
4493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4497 if test "${groff_cv_decl_needed_pclose+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4509 #include <stdio.h>
4510 #ifdef HAVE_STRING_H
4511 #include <string.h>
4512 #endif
4513 #ifdef HAVE_STRINGS_H
4514 #include <strings.h>
4515 #endif
4516 #ifdef HAVE_STDLIB_H
4517 #include <stdlib.h>
4518 #endif
4519 #ifdef HAVE_SYS_TIME_H
4520 #include <sys/time.h>
4521 #endif
4522 #ifdef HAVE_UNISTD_H
4523 #include <unistd.h>
4524 #endif
4525 #ifdef HAVE_MATH_H
4526 #include <math.h>
4527 #endif
4531 main ()
4535 #ifndef pclose
4536 char *p = (char *) pclose;
4537 #endif
4541 return 0;
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>conftest.er1
4548 ac_status=$?
4549 grep -v '^ *+' conftest.er1 >conftest.err
4550 rm -f conftest.er1
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_cxx_werror_flag"
4555 || test ! -s conftest.err'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; } &&
4561 { ac_try='test -s conftest.$ac_objext'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 (eval $ac_try) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 groff_cv_decl_needed_pclose=no
4568 else
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4572 groff_cv_decl_needed_pclose=yes
4574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4577 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
4578 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
4579 if test $groff_cv_decl_needed_pclose = yes; then
4581 cat >>confdefs.h <<\_ACEOF
4582 #define NEED_DECLARATION_PCLOSE 1
4583 _ACEOF
4586 ac_ext=c
4587 ac_cpp='$CPP $CPPFLAGS'
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
4593 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
4594 ac_ext=cc
4595 ac_cpp='$CXXCPP $CPPFLAGS'
4596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4600 if test "${groff_cv_decl_needed_putenv+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4612 #include <stdio.h>
4613 #ifdef HAVE_STRING_H
4614 #include <string.h>
4615 #endif
4616 #ifdef HAVE_STRINGS_H
4617 #include <strings.h>
4618 #endif
4619 #ifdef HAVE_STDLIB_H
4620 #include <stdlib.h>
4621 #endif
4622 #ifdef HAVE_SYS_TIME_H
4623 #include <sys/time.h>
4624 #endif
4625 #ifdef HAVE_UNISTD_H
4626 #include <unistd.h>
4627 #endif
4628 #ifdef HAVE_MATH_H
4629 #include <math.h>
4630 #endif
4634 main ()
4638 #ifndef putenv
4639 char *p = (char *) putenv;
4640 #endif
4644 return 0;
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4650 (eval $ac_compile) 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try='test -z "$ac_cxx_werror_flag"
4658 || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest.$ac_objext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 groff_cv_decl_needed_putenv=no
4671 else
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 groff_cv_decl_needed_putenv=yes
4677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
4681 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
4682 if test $groff_cv_decl_needed_putenv = yes; then
4684 cat >>confdefs.h <<\_ACEOF
4685 #define NEED_DECLARATION_PUTENV 1
4686 _ACEOF
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
4696 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
4697 ac_ext=cc
4698 ac_cpp='$CXXCPP $CPPFLAGS'
4699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4703 if test "${groff_cv_decl_needed_rand+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4715 #include <stdio.h>
4716 #ifdef HAVE_STRING_H
4717 #include <string.h>
4718 #endif
4719 #ifdef HAVE_STRINGS_H
4720 #include <strings.h>
4721 #endif
4722 #ifdef HAVE_STDLIB_H
4723 #include <stdlib.h>
4724 #endif
4725 #ifdef HAVE_SYS_TIME_H
4726 #include <sys/time.h>
4727 #endif
4728 #ifdef HAVE_UNISTD_H
4729 #include <unistd.h>
4730 #endif
4731 #ifdef HAVE_MATH_H
4732 #include <math.h>
4733 #endif
4737 main ()
4741 #ifndef rand
4742 char *p = (char *) rand;
4743 #endif
4747 return 0;
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_cxx_werror_flag"
4761 || test ! -s conftest.err'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 (eval $ac_try) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; } &&
4767 { ac_try='test -s conftest.$ac_objext'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 groff_cv_decl_needed_rand=no
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 groff_cv_decl_needed_rand=yes
4780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
4784 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
4785 if test $groff_cv_decl_needed_rand = yes; then
4787 cat >>confdefs.h <<\_ACEOF
4788 #define NEED_DECLARATION_RAND 1
4789 _ACEOF
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
4799 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
4800 ac_ext=cc
4801 ac_cpp='$CXXCPP $CPPFLAGS'
4802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4806 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4818 #include <stdio.h>
4819 #ifdef HAVE_STRING_H
4820 #include <string.h>
4821 #endif
4822 #ifdef HAVE_STRINGS_H
4823 #include <strings.h>
4824 #endif
4825 #ifdef HAVE_STDLIB_H
4826 #include <stdlib.h>
4827 #endif
4828 #ifdef HAVE_SYS_TIME_H
4829 #include <sys/time.h>
4830 #endif
4831 #ifdef HAVE_UNISTD_H
4832 #include <unistd.h>
4833 #endif
4834 #ifdef HAVE_MATH_H
4835 #include <math.h>
4836 #endif
4840 main ()
4844 #ifndef snprintf
4845 char *p = (char *) snprintf;
4846 #endif
4850 return 0;
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_cxx_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 groff_cv_decl_needed_snprintf=no
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 groff_cv_decl_needed_snprintf=yes
4883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
4887 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
4888 if test $groff_cv_decl_needed_snprintf = yes; then
4890 cat >>confdefs.h <<\_ACEOF
4891 #define NEED_DECLARATION_SNPRINTF 1
4892 _ACEOF
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
4902 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
4903 ac_ext=cc
4904 ac_cpp='$CXXCPP $CPPFLAGS'
4905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4909 if test "${groff_cv_decl_needed_srand+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4921 #include <stdio.h>
4922 #ifdef HAVE_STRING_H
4923 #include <string.h>
4924 #endif
4925 #ifdef HAVE_STRINGS_H
4926 #include <strings.h>
4927 #endif
4928 #ifdef HAVE_STDLIB_H
4929 #include <stdlib.h>
4930 #endif
4931 #ifdef HAVE_SYS_TIME_H
4932 #include <sys/time.h>
4933 #endif
4934 #ifdef HAVE_UNISTD_H
4935 #include <unistd.h>
4936 #endif
4937 #ifdef HAVE_MATH_H
4938 #include <math.h>
4939 #endif
4943 main ()
4947 #ifndef srand
4948 char *p = (char *) srand;
4949 #endif
4953 return 0;
4956 _ACEOF
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -z "$ac_cxx_werror_flag"
4967 || test ! -s conftest.err'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 groff_cv_decl_needed_srand=no
4980 else
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 groff_cv_decl_needed_srand=yes
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4989 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
4990 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
4991 if test $groff_cv_decl_needed_srand = yes; then
4993 cat >>confdefs.h <<\_ACEOF
4994 #define NEED_DECLARATION_SRAND 1
4995 _ACEOF
4998 ac_ext=c
4999 ac_cpp='$CPP $CPPFLAGS'
5000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
5005 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
5006 ac_ext=cc
5007 ac_cpp='$CXXCPP $CPPFLAGS'
5008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5012 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h. */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5024 #include <stdio.h>
5025 #ifdef HAVE_STRING_H
5026 #include <string.h>
5027 #endif
5028 #ifdef HAVE_STRINGS_H
5029 #include <strings.h>
5030 #endif
5031 #ifdef HAVE_STDLIB_H
5032 #include <stdlib.h>
5033 #endif
5034 #ifdef HAVE_SYS_TIME_H
5035 #include <sys/time.h>
5036 #endif
5037 #ifdef HAVE_UNISTD_H
5038 #include <unistd.h>
5039 #endif
5040 #ifdef HAVE_MATH_H
5041 #include <math.h>
5042 #endif
5046 main ()
5050 #ifndef strcasecmp
5051 char *p = (char *) strcasecmp;
5052 #endif
5056 return 0;
5059 _ACEOF
5060 rm -f conftest.$ac_objext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062 (eval $ac_compile) 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -z "$ac_cxx_werror_flag"
5070 || test ! -s conftest.err'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest.$ac_objext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 groff_cv_decl_needed_strcasecmp=no
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 groff_cv_decl_needed_strcasecmp=yes
5089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
5093 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
5094 if test $groff_cv_decl_needed_strcasecmp = yes; then
5096 cat >>confdefs.h <<\_ACEOF
5097 #define NEED_DECLARATION_STRCASECMP 1
5098 _ACEOF
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
5108 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
5109 ac_ext=cc
5110 ac_cpp='$CXXCPP $CPPFLAGS'
5111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5115 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5127 #include <stdio.h>
5128 #ifdef HAVE_STRING_H
5129 #include <string.h>
5130 #endif
5131 #ifdef HAVE_STRINGS_H
5132 #include <strings.h>
5133 #endif
5134 #ifdef HAVE_STDLIB_H
5135 #include <stdlib.h>
5136 #endif
5137 #ifdef HAVE_SYS_TIME_H
5138 #include <sys/time.h>
5139 #endif
5140 #ifdef HAVE_UNISTD_H
5141 #include <unistd.h>
5142 #endif
5143 #ifdef HAVE_MATH_H
5144 #include <math.h>
5145 #endif
5149 main ()
5153 #ifndef strncasecmp
5154 char *p = (char *) strncasecmp;
5155 #endif
5159 return 0;
5162 _ACEOF
5163 rm -f conftest.$ac_objext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5165 (eval $ac_compile) 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try='test -z "$ac_cxx_werror_flag"
5173 || test ! -s conftest.err'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest.$ac_objext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 groff_cv_decl_needed_strncasecmp=no
5186 else
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 groff_cv_decl_needed_strncasecmp=yes
5192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5195 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
5196 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
5197 if test $groff_cv_decl_needed_strncasecmp = yes; then
5199 cat >>confdefs.h <<\_ACEOF
5200 #define NEED_DECLARATION_STRNCASECMP 1
5201 _ACEOF
5204 ac_ext=c
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
5211 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
5212 ac_ext=cc
5213 ac_cpp='$CXXCPP $CPPFLAGS'
5214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5218 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h. */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5230 #include <stdio.h>
5231 #ifdef HAVE_STRING_H
5232 #include <string.h>
5233 #endif
5234 #ifdef HAVE_STRINGS_H
5235 #include <strings.h>
5236 #endif
5237 #ifdef HAVE_STDLIB_H
5238 #include <stdlib.h>
5239 #endif
5240 #ifdef HAVE_SYS_TIME_H
5241 #include <sys/time.h>
5242 #endif
5243 #ifdef HAVE_UNISTD_H
5244 #include <unistd.h>
5245 #endif
5246 #ifdef HAVE_MATH_H
5247 #include <math.h>
5248 #endif
5252 main ()
5256 #ifndef vfprintf
5257 char *p = (char *) vfprintf;
5258 #endif
5262 return 0;
5265 _ACEOF
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -z "$ac_cxx_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 groff_cv_decl_needed_vfprintf=no
5289 else
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 groff_cv_decl_needed_vfprintf=yes
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
5299 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
5300 if test $groff_cv_decl_needed_vfprintf = yes; then
5302 cat >>confdefs.h <<\_ACEOF
5303 #define NEED_DECLARATION_VFPRINTF 1
5304 _ACEOF
5307 ac_ext=c
5308 ac_cpp='$CPP $CPPFLAGS'
5309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5313 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
5314 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
5315 ac_ext=cc
5316 ac_cpp='$CXXCPP $CPPFLAGS'
5317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5321 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h. */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5333 #include <stdio.h>
5334 #ifdef HAVE_STRING_H
5335 #include <string.h>
5336 #endif
5337 #ifdef HAVE_STRINGS_H
5338 #include <strings.h>
5339 #endif
5340 #ifdef HAVE_STDLIB_H
5341 #include <stdlib.h>
5342 #endif
5343 #ifdef HAVE_SYS_TIME_H
5344 #include <sys/time.h>
5345 #endif
5346 #ifdef HAVE_UNISTD_H
5347 #include <unistd.h>
5348 #endif
5349 #ifdef HAVE_MATH_H
5350 #include <math.h>
5351 #endif
5355 main ()
5359 #ifndef vsnprintf
5360 char *p = (char *) vsnprintf;
5361 #endif
5365 return 0;
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371 (eval $ac_compile) 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -z "$ac_cxx_werror_flag"
5379 || test ! -s conftest.err'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try='test -s conftest.$ac_objext'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; }; then
5391 groff_cv_decl_needed_vsnprintf=no
5392 else
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 groff_cv_decl_needed_vsnprintf=yes
5398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
5402 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
5403 if test $groff_cv_decl_needed_vsnprintf = yes; then
5405 cat >>confdefs.h <<\_ACEOF
5406 #define NEED_DECLARATION_VSNPRINTF 1
5407 _ACEOF
5410 ac_ext=c
5411 ac_cpp='$CPP $CPPFLAGS'
5412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5416 ac_ext=cc
5417 ac_cpp='$CXXCPP $CPPFLAGS'
5418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5422 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
5423 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
5424 cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h. */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5433 #include <errno.h>
5434 #include <stdio.h>
5435 #include <stdlib.h>
5439 main ()
5443 int k;
5444 k = sys_nerr;
5448 return 0;
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try='test -z "$ac_cxx_werror_flag"
5462 || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 echo "$as_me:$LINENO: result: yes" >&5
5475 echo "${ECHO_T}yes" >&6
5477 cat >>confdefs.h <<\_ACEOF
5478 #define HAVE_SYS_NERR 1
5479 _ACEOF
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6
5488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5489 ac_ext=c
5490 ac_cpp='$CPP $CPPFLAGS'
5491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5495 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
5496 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
5497 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5506 #include <errno.h>
5507 #include <stdio.h>
5508 #include <stdlib.h>
5512 main ()
5516 int k;
5517 k = (int)sys_errlist[0];
5521 return 0;
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527 (eval $ac_compile) 2>conftest.er1
5528 ac_status=$?
5529 grep -v '^ *+' conftest.er1 >conftest.err
5530 rm -f conftest.er1
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try='test -z "$ac_c_werror_flag"
5535 || test ! -s conftest.err'
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 (eval $ac_try) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; } &&
5541 { ac_try='test -s conftest.$ac_objext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 echo "$as_me:$LINENO: result: yes" >&5
5548 echo "${ECHO_T}yes" >&6
5550 cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_SYS_ERRLIST 1
5552 _ACEOF
5554 else
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5562 ac_ext=cc
5563 ac_cpp='$CXXCPP $CPPFLAGS'
5564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5568 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
5569 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
5570 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h. */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5579 #include <osfcn.h>
5583 main ()
5587 read(0, 0, 0);
5588 open(0, 0);
5592 return 0;
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -z "$ac_cxx_werror_flag"
5606 || test ! -s conftest.err'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 echo "$as_me:$LINENO: result: yes" >&5
5619 echo "${ECHO_T}yes" >&6
5621 cat >>confdefs.h <<\_ACEOF
5622 #define HAVE_CC_OSFCN_H 1
5623 _ACEOF
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5633 ac_ext=c
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 ac_ext=cc
5640 ac_cpp='$CXXCPP $CPPFLAGS'
5641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5645 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
5646 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
5647 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5656 #include <limits.h>
5660 main ()
5664 int x = INT_MIN;
5665 int y = INT_MAX;
5666 int z = UCHAR_MAX;
5670 return 0;
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 (eval $ac_compile) 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
5683 { ac_try='test -z "$ac_cxx_werror_flag"
5684 || test ! -s conftest.err'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; } &&
5690 { ac_try='test -s conftest.$ac_objext'
5691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 (eval $ac_try) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 echo "$as_me:$LINENO: result: yes" >&5
5697 echo "${ECHO_T}yes" >&6
5699 cat >>confdefs.h <<\_ACEOF
5700 #define HAVE_CC_LIMITS_H 1
5701 _ACEOF
5703 else
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5711 ac_ext=c
5712 ac_cpp='$CPP $CPPFLAGS'
5713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5717 ac_ext=cc
5718 ac_cpp='$CXXCPP $CPPFLAGS'
5719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5723 echo "$as_me:$LINENO: checking C++ <stdint.h>" >&5
5724 echo $ECHO_N "checking C++ <stdint.h>... $ECHO_C" >&6
5725 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h. */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5734 #include <stdint.h>
5738 main ()
5742 uint32_t x;
5743 int32_t y;
5747 return 0;
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_cxx_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 echo "$as_me:$LINENO: result: yes" >&5
5774 echo "${ECHO_T}yes" >&6
5776 cat >>confdefs.h <<\_ACEOF
5777 #define HAVE_CC_STDINT_H 1
5778 _ACEOF
5780 else
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788 ac_ext=c
5789 ac_cpp='$CPP $CPPFLAGS'
5790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 ac_ext=cc
5795 ac_cpp='$CXXCPP $CPPFLAGS'
5796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5800 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5801 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5802 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5811 #include <sys/types.h>
5812 #include <inttypes.h>
5816 main ()
5820 uintmax_t i = (uintmax_t)-1;
5824 return 0;
5827 _ACEOF
5828 rm -f conftest.$ac_objext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_cxx_werror_flag"
5838 || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 groff_cv_header_inttypes_h=yes
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 groff_cv_header_inttypes_h=no
5857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5858 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
5859 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
5860 ac_ext=c
5861 ac_cpp='$CPP $CPPFLAGS'
5862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5867 # checks for typedefs
5868 ac_ext=cc
5869 ac_cpp='$CXXCPP $CPPFLAGS'
5870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5874 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5875 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5876 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5885 unsigned long long ull = 1;
5886 int i = 63;
5887 unsigned long long ullmax = (unsigned long long)-1;
5891 main ()
5895 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5899 return 0;
5902 _ACEOF
5903 rm -f conftest.$ac_objext conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_cxx_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest$ac_exeext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 groff_cv_type_unsigned_long_long=yes
5926 else
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 groff_cv_type_unsigned_long_long=no
5932 rm -f conftest.err conftest.$ac_objext \
5933 conftest$ac_exeext conftest.$ac_ext
5934 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
5935 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
5936 ac_ext=c
5937 ac_cpp='$CPP $CPPFLAGS'
5938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5943 if test $groff_cv_header_inttypes_h = no; then
5945 test $groff_cv_type_unsigned_long_long = yes \
5946 && ac_type='unsigned long long' \
5947 || ac_type='unsigned long'
5949 cat >>confdefs.h <<_ACEOF
5950 #define uintmax_t $ac_type
5951 _ACEOF
5954 ac_ext=cc
5955 ac_cpp='$CXXCPP $CPPFLAGS'
5956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5960 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
5961 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5971 #include <time.h>
5975 main ()
5979 time_t t = time(0);
5980 struct tm *p = localtime(&t);
5984 return 0;
5987 _ACEOF
5988 rm -f conftest.$ac_objext
5989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990 (eval $ac_compile) 2>conftest.er1
5991 ac_status=$?
5992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } &&
5997 { ac_try='test -z "$ac_cxx_werror_flag"
5998 || test ! -s conftest.err'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try='test -s conftest.$ac_objext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 echo "$as_me:$LINENO: result: yes" >&5
6011 echo "${ECHO_T}yes" >&6
6012 else
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6019 cat >>confdefs.h <<\_ACEOF
6020 #define LONG_FOR_TIME_T 1
6021 _ACEOF
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 ac_ext=c
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6032 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6033 if test "${ac_cv_type_signal+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <sys/types.h>
6043 #include <signal.h>
6044 #ifdef signal
6045 # undef signal
6046 #endif
6047 #ifdef __cplusplus
6048 extern "C" void (*signal (int, void (*)(int)))(int);
6049 #else
6050 void (*signal ()) ();
6051 #endif
6054 main ()
6056 int i;
6058 return 0;
6060 _ACEOF
6061 rm -f conftest.$ac_objext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063 (eval $ac_compile) 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -z "$ac_c_werror_flag"
6071 || test ! -s conftest.err'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try='test -s conftest.$ac_objext'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
6083 ac_cv_type_signal=void
6084 else
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088 ac_cv_type_signal=int
6090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6092 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6093 echo "${ECHO_T}$ac_cv_type_signal" >&6
6095 cat >>confdefs.h <<_ACEOF
6096 #define RETSIGTYPE $ac_cv_type_signal
6097 _ACEOF
6100 echo "$as_me:$LINENO: checking struct exception" >&5
6101 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
6102 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6111 #include <math.h>
6115 main ()
6119 struct exception e;
6123 return 0;
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 echo "$as_me:$LINENO: result: yes" >&5
6150 echo "${ECHO_T}yes" >&6
6152 cat >>confdefs.h <<\_ACEOF
6153 #define HAVE_STRUCT_EXCEPTION 1
6154 _ACEOF
6156 else
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6160 echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6165 # checks for libraries
6166 echo "$as_me:$LINENO: checking for main in -lc" >&5
6167 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
6168 if test "${ac_cv_lib_c_main+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 ac_check_lib_save_LIBS=$LIBS
6172 LIBS="-lc $LIBS"
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6182 main ()
6184 main ();
6186 return 0;
6188 _ACEOF
6189 rm -f conftest.$ac_objext conftest$ac_exeext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6191 (eval $ac_link) 2>conftest.er1
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest$ac_exeext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
6211 ac_cv_lib_c_main=yes
6212 else
6213 echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6216 ac_cv_lib_c_main=no
6218 rm -f conftest.err conftest.$ac_objext \
6219 conftest$ac_exeext conftest.$ac_ext
6220 LIBS=$ac_check_lib_save_LIBS
6222 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
6223 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
6224 if test $ac_cv_lib_c_main = yes; then
6225 LIBC=-lc
6229 echo "$as_me:$LINENO: checking for sin in -lm" >&5
6230 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
6231 if test "${ac_cv_lib_m_sin+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 ac_check_lib_save_LIBS=$LIBS
6235 LIBS="-lm $LIBS"
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6243 /* Override any gcc2 internal prototype to avoid an error. */
6244 #ifdef __cplusplus
6245 extern "C"
6246 #endif
6247 /* We use char because int might match the return type of a gcc2
6248 builtin and then its argument prototype would still apply. */
6249 char sin ();
6251 main ()
6253 sin ();
6255 return 0;
6257 _ACEOF
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260 (eval $ac_link) 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -z "$ac_c_werror_flag"
6268 || test ! -s conftest.err'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_lib_m_sin=yes
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 ac_cv_lib_m_sin=no
6287 rm -f conftest.err conftest.$ac_objext \
6288 conftest$ac_exeext conftest.$ac_ext
6289 LIBS=$ac_check_lib_save_LIBS
6291 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6292 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6293 if test $ac_cv_lib_m_sin = yes; then
6294 LIBM=-lm
6299 # checks for functions
6302 for ac_header in stdlib.h unistd.h
6304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306 echo "$as_me:$LINENO: checking for $ac_header" >&5
6307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6313 else
6314 # Is the header compilable?
6315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 $ac_includes_default
6324 #include <$ac_header>
6325 _ACEOF
6326 rm -f conftest.$ac_objext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6328 (eval $ac_compile) 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -z "$ac_c_werror_flag"
6336 || test ! -s conftest.err'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 (eval $ac_try) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; } &&
6342 { ac_try='test -s conftest.$ac_objext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 (eval $ac_try) 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_header_compiler=yes
6349 else
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 ac_header_compiler=no
6355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6357 echo "${ECHO_T}$ac_header_compiler" >&6
6359 # Is the header present?
6360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <$ac_header>
6369 _ACEOF
6370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } >/dev/null; then
6378 if test -s conftest.err; then
6379 ac_cpp_err=$ac_c_preproc_warn_flag
6380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6381 else
6382 ac_cpp_err=
6384 else
6385 ac_cpp_err=yes
6387 if test -z "$ac_cpp_err"; then
6388 ac_header_preproc=yes
6389 else
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6393 ac_header_preproc=no
6395 rm -f conftest.err conftest.$ac_ext
6396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6397 echo "${ECHO_T}$ac_header_preproc" >&6
6399 # So? What about this header?
6400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6401 yes:no: )
6402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6406 ac_header_preproc=yes
6408 no:yes:* )
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6422 cat <<\_ASBOX
6423 ## ------------------------------------------ ##
6424 ## Report this to the AC_PACKAGE_NAME lists. ##
6425 ## ------------------------------------------ ##
6426 _ASBOX
6428 sed "s/^/$as_me: WARNING: /" >&2
6430 esac
6431 echo "$as_me:$LINENO: checking for $ac_header" >&5
6432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436 eval "$as_ac_Header=\$ac_header_preproc"
6438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 _ACEOF
6449 done
6452 for ac_func in getpagesize
6454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6457 if eval "test \"\${$as_ac_var+set}\" = set"; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6468 #define $ac_func innocuous_$ac_func
6470 /* System header to define __stub macros and hopefully few prototypes,
6471 which can conflict with char $ac_func (); below.
6472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473 <limits.h> exists even on freestanding compilers. */
6475 #ifdef __STDC__
6476 # include <limits.h>
6477 #else
6478 # include <assert.h>
6479 #endif
6481 #undef $ac_func
6483 /* Override any gcc2 internal prototype to avoid an error. */
6484 #ifdef __cplusplus
6485 extern "C"
6487 #endif
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6490 char $ac_func ();
6491 /* The GNU C library defines this for functions which it implements
6492 to always fail with ENOSYS. Some functions are actually named
6493 something starting with __ and the normal name is an alias. */
6494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6495 choke me
6496 #else
6497 char (*f) () = $ac_func;
6498 #endif
6499 #ifdef __cplusplus
6501 #endif
6504 main ()
6506 return f != $ac_func;
6508 return 0;
6510 _ACEOF
6511 rm -f conftest.$ac_objext conftest$ac_exeext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_c_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest$ac_exeext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 eval "$as_ac_var=yes"
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 eval "$as_ac_var=no"
6540 rm -f conftest.err conftest.$ac_objext \
6541 conftest$ac_exeext conftest.$ac_ext
6543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6545 if test `eval echo '${'$as_ac_var'}'` = yes; then
6546 cat >>confdefs.h <<_ACEOF
6547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6548 _ACEOF
6551 done
6553 echo "$as_me:$LINENO: checking for working mmap" >&5
6554 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558 if test "$cross_compiling" = yes; then
6559 ac_cv_func_mmap_fixed_mapped=no
6560 else
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 $ac_includes_default
6568 /* malloc might have been renamed as rpl_malloc. */
6569 #undef malloc
6571 /* Thanks to Mike Haertel and Jim Avera for this test.
6572 Here is a matrix of mmap possibilities:
6573 mmap private not fixed
6574 mmap private fixed at somewhere currently unmapped
6575 mmap private fixed at somewhere already mapped
6576 mmap shared not fixed
6577 mmap shared fixed at somewhere currently unmapped
6578 mmap shared fixed at somewhere already mapped
6579 For private mappings, we should verify that changes cannot be read()
6580 back from the file, nor mmap's back from the file at a different
6581 address. (There have been systems where private was not correctly
6582 implemented like the infamous i386 svr4.0, and systems where the
6583 VM page cache was not coherent with the file system buffer cache
6584 like early versions of FreeBSD and possibly contemporary NetBSD.)
6585 For shared mappings, we should conversely verify that changes get
6586 propagated back to all the places they're supposed to be.
6588 Grep wants private fixed already mapped.
6589 The main things grep needs to know about mmap are:
6590 * does it exist and is it safe to write into the mmap'd area
6591 * how to use it (BSD variants) */
6593 #include <fcntl.h>
6594 #include <sys/mman.h>
6596 #if !STDC_HEADERS && !HAVE_STDLIB_H
6597 char *malloc ();
6598 #endif
6600 /* This mess was copied from the GNU getpagesize.h. */
6601 #if !HAVE_GETPAGESIZE
6602 /* Assume that all systems that can run configure have sys/param.h. */
6603 # if !HAVE_SYS_PARAM_H
6604 # define HAVE_SYS_PARAM_H 1
6605 # endif
6607 # ifdef _SC_PAGESIZE
6608 # define getpagesize() sysconf(_SC_PAGESIZE)
6609 # else /* no _SC_PAGESIZE */
6610 # if HAVE_SYS_PARAM_H
6611 # include <sys/param.h>
6612 # ifdef EXEC_PAGESIZE
6613 # define getpagesize() EXEC_PAGESIZE
6614 # else /* no EXEC_PAGESIZE */
6615 # ifdef NBPG
6616 # define getpagesize() NBPG * CLSIZE
6617 # ifndef CLSIZE
6618 # define CLSIZE 1
6619 # endif /* no CLSIZE */
6620 # else /* no NBPG */
6621 # ifdef NBPC
6622 # define getpagesize() NBPC
6623 # else /* no NBPC */
6624 # ifdef PAGESIZE
6625 # define getpagesize() PAGESIZE
6626 # endif /* PAGESIZE */
6627 # endif /* no NBPC */
6628 # endif /* no NBPG */
6629 # endif /* no EXEC_PAGESIZE */
6630 # else /* no HAVE_SYS_PARAM_H */
6631 # define getpagesize() 8192 /* punt totally */
6632 # endif /* no HAVE_SYS_PARAM_H */
6633 # endif /* no _SC_PAGESIZE */
6635 #endif /* no HAVE_GETPAGESIZE */
6638 main ()
6640 char *data, *data2, *data3;
6641 int i, pagesize;
6642 int fd;
6644 pagesize = getpagesize ();
6646 /* First, make a file with some known garbage in it. */
6647 data = (char *) malloc (pagesize);
6648 if (!data)
6649 exit (1);
6650 for (i = 0; i < pagesize; ++i)
6651 *(data + i) = rand ();
6652 umask (0);
6653 fd = creat ("conftest.mmap", 0600);
6654 if (fd < 0)
6655 exit (1);
6656 if (write (fd, data, pagesize) != pagesize)
6657 exit (1);
6658 close (fd);
6660 /* Next, try to mmap the file at a fixed address which already has
6661 something else allocated at it. If we can, also make sure that
6662 we see the same garbage. */
6663 fd = open ("conftest.mmap", O_RDWR);
6664 if (fd < 0)
6665 exit (1);
6666 data2 = (char *) malloc (2 * pagesize);
6667 if (!data2)
6668 exit (1);
6669 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6670 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6671 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6672 exit (1);
6673 for (i = 0; i < pagesize; ++i)
6674 if (*(data + i) != *(data2 + i))
6675 exit (1);
6677 /* Finally, make sure that changes to the mapped area do not
6678 percolate back to the file as seen by read(). (This is a bug on
6679 some variants of i386 svr4.0.) */
6680 for (i = 0; i < pagesize; ++i)
6681 *(data2 + i) = *(data2 + i) + 1;
6682 data3 = (char *) malloc (pagesize);
6683 if (!data3)
6684 exit (1);
6685 if (read (fd, data3, pagesize) != pagesize)
6686 exit (1);
6687 for (i = 0; i < pagesize; ++i)
6688 if (*(data + i) != *(data3 + i))
6689 exit (1);
6690 close (fd);
6691 exit (0);
6693 _ACEOF
6694 rm -f conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_cv_func_mmap_fixed_mapped=yes
6706 else
6707 echo "$as_me: program exited with status $ac_status" >&5
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 ( exit $ac_status )
6712 ac_cv_func_mmap_fixed_mapped=no
6714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6717 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6718 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6719 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6721 cat >>confdefs.h <<\_ACEOF
6722 #define HAVE_MMAP 1
6723 _ACEOF
6726 rm -f conftest.mmap
6728 saved_libs="$LIBS"
6729 LIBS="$LIBS $LIBC $LIBM"
6738 for ac_func in fmod getcwd putenv snprintf strcasecmp \
6739 strerror strncasecmp strtol
6741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6742 echo "$as_me:$LINENO: checking for $ac_func" >&5
6743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6744 if eval "test \"\${$as_ac_var+set}\" = set"; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6755 #define $ac_func innocuous_$ac_func
6757 /* System header to define __stub macros and hopefully few prototypes,
6758 which can conflict with char $ac_func (); below.
6759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6760 <limits.h> exists even on freestanding compilers. */
6762 #ifdef __STDC__
6763 # include <limits.h>
6764 #else
6765 # include <assert.h>
6766 #endif
6768 #undef $ac_func
6770 /* Override any gcc2 internal prototype to avoid an error. */
6771 #ifdef __cplusplus
6772 extern "C"
6774 #endif
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6777 char $ac_func ();
6778 /* The GNU C library defines this for functions which it implements
6779 to always fail with ENOSYS. Some functions are actually named
6780 something starting with __ and the normal name is an alias. */
6781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6782 choke me
6783 #else
6784 char (*f) () = $ac_func;
6785 #endif
6786 #ifdef __cplusplus
6788 #endif
6791 main ()
6793 return f != $ac_func;
6795 return 0;
6797 _ACEOF
6798 rm -f conftest.$ac_objext conftest$ac_exeext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800 (eval $ac_link) 2>conftest.er1
6801 ac_status=$?
6802 grep -v '^ *+' conftest.er1 >conftest.err
6803 rm -f conftest.er1
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -z "$ac_c_werror_flag"
6808 || test ! -s conftest.err'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; } &&
6814 { ac_try='test -s conftest$ac_exeext'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; }; then
6820 eval "$as_ac_var=yes"
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6825 eval "$as_ac_var=no"
6827 rm -f conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
6830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6832 if test `eval echo '${'$as_ac_var'}'` = yes; then
6833 cat >>confdefs.h <<_ACEOF
6834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6835 _ACEOF
6837 else
6838 case $LIBOBJS in
6839 "$ac_func.$ac_objext" | \
6840 *" $ac_func.$ac_objext" | \
6841 "$ac_func.$ac_objext "* | \
6842 *" $ac_func.$ac_objext "* ) ;;
6843 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6844 esac
6847 done
6850 # vsnprintf is in the same source file as snprintf
6852 for ac_func in vsnprintf
6854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6855 echo "$as_me:$LINENO: checking for $ac_func" >&5
6856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6857 if eval "test \"\${$as_ac_var+set}\" = set"; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h. */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6868 #define $ac_func innocuous_$ac_func
6870 /* System header to define __stub macros and hopefully few prototypes,
6871 which can conflict with char $ac_func (); below.
6872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873 <limits.h> exists even on freestanding compilers. */
6875 #ifdef __STDC__
6876 # include <limits.h>
6877 #else
6878 # include <assert.h>
6879 #endif
6881 #undef $ac_func
6883 /* Override any gcc2 internal prototype to avoid an error. */
6884 #ifdef __cplusplus
6885 extern "C"
6887 #endif
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6890 char $ac_func ();
6891 /* The GNU C library defines this for functions which it implements
6892 to always fail with ENOSYS. Some functions are actually named
6893 something starting with __ and the normal name is an alias. */
6894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6895 choke me
6896 #else
6897 char (*f) () = $ac_func;
6898 #endif
6899 #ifdef __cplusplus
6901 #endif
6904 main ()
6906 return f != $ac_func;
6908 return 0;
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>conftest.er1
6914 ac_status=$?
6915 grep -v '^ *+' conftest.er1 >conftest.err
6916 rm -f conftest.er1
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -z "$ac_c_werror_flag"
6921 || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest$ac_exeext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 eval "$as_ac_var=yes"
6934 else
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 eval "$as_ac_var=no"
6940 rm -f conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6945 if test `eval echo '${'$as_ac_var'}'` = yes; then
6946 cat >>confdefs.h <<_ACEOF
6947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6948 _ACEOF
6950 else
6951 case $LIBOBJS in
6952 "snprintf.$ac_objext" | \
6953 *" snprintf.$ac_objext" | \
6954 "snprintf.$ac_objext "* | \
6955 *" snprintf.$ac_objext "* ) ;;
6956 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
6957 esac
6960 done
6962 LIBS="$saved_libs"
6969 for ac_func in gettimeofday isatty kill rename setlocale strsep
6971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6972 echo "$as_me:$LINENO: checking for $ac_func" >&5
6973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6974 if eval "test \"\${$as_ac_var+set}\" = set"; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6985 #define $ac_func innocuous_$ac_func
6987 /* System header to define __stub macros and hopefully few prototypes,
6988 which can conflict with char $ac_func (); below.
6989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6990 <limits.h> exists even on freestanding compilers. */
6992 #ifdef __STDC__
6993 # include <limits.h>
6994 #else
6995 # include <assert.h>
6996 #endif
6998 #undef $ac_func
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 #ifdef __cplusplus
7002 extern "C"
7004 #endif
7005 /* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */
7007 char $ac_func ();
7008 /* The GNU C library defines this for functions which it implements
7009 to always fail with ENOSYS. Some functions are actually named
7010 something starting with __ and the normal name is an alias. */
7011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7012 choke me
7013 #else
7014 char (*f) () = $ac_func;
7015 #endif
7016 #ifdef __cplusplus
7018 #endif
7021 main ()
7023 return f != $ac_func;
7025 return 0;
7027 _ACEOF
7028 rm -f conftest.$ac_objext conftest$ac_exeext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7030 (eval $ac_link) 2>conftest.er1
7031 ac_status=$?
7032 grep -v '^ *+' conftest.er1 >conftest.err
7033 rm -f conftest.er1
7034 cat conftest.err >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try='test -z "$ac_c_werror_flag"
7038 || test ! -s conftest.err'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; } &&
7044 { ac_try='test -s conftest$ac_exeext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 eval "$as_ac_var=yes"
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 eval "$as_ac_var=no"
7057 rm -f conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7062 if test `eval echo '${'$as_ac_var'}'` = yes; then
7063 cat >>confdefs.h <<_ACEOF
7064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7065 _ACEOF
7068 done
7070 echo "$as_me:$LINENO: checking for mkstemp" >&5
7071 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
7072 ac_ext=cc
7073 ac_cpp='$CXXCPP $CPPFLAGS'
7074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7079 cat >conftest.$ac_ext <<_ACEOF
7081 /* confdefs.h. */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7088 #include <stdlib.h>
7089 #include <unistd.h>
7090 int (*f) (char *);
7094 main ()
7098 f = mkstemp;
7102 return 0;
7105 _ACEOF
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -z "$ac_cxx_werror_flag"
7116 || test ! -s conftest.err'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 (eval $ac_try) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; } &&
7122 { ac_try='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 echo "$as_me:$LINENO: result: yes" >&5
7129 echo "${ECHO_T}yes" >&6
7131 cat >>confdefs.h <<\_ACEOF
7132 #define HAVE_MKSTEMP 1
7133 _ACEOF
7135 else
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6
7141 case $LIBOBJS in
7142 "mkstemp.$ac_objext" | \
7143 *" mkstemp.$ac_objext" | \
7144 "mkstemp.$ac_objext "* | \
7145 *" mkstemp.$ac_objext "* ) ;;
7146 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
7147 esac
7150 rm -f conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
7152 ac_ext=c
7153 ac_cpp='$CPP $CPPFLAGS'
7154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7158 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7159 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
7160 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163 cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h. */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 $ac_includes_default
7171 main ()
7173 #ifndef sys_siglist
7174 char *p = (char *) sys_siglist;
7175 #endif
7178 return 0;
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183 (eval $ac_compile) 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } &&
7190 { ac_try='test -z "$ac_c_werror_flag"
7191 || test ! -s conftest.err'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; } &&
7197 { ac_try='test -s conftest.$ac_objext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 (eval $ac_try) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_have_decl_sys_siglist=yes
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 ac_cv_have_decl_sys_siglist=no
7210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7212 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7213 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7214 if test $ac_cv_have_decl_sys_siglist = yes; then
7216 cat >>confdefs.h <<_ACEOF
7217 #define HAVE_DECL_SYS_SIGLIST 1
7218 _ACEOF
7221 else
7222 cat >>confdefs.h <<_ACEOF
7223 #define HAVE_DECL_SYS_SIGLIST 0
7224 _ACEOF
7231 # checks for compiler characteristics
7232 ac_ext=cc
7233 ac_cpp='$CXXCPP $CPPFLAGS'
7234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7238 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
7239 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7249 main ()
7253 char *p = new char[5];
7254 delete [] p;
7258 return 0;
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_cxx_werror_flag"
7272 || test ! -s conftest.err'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; } &&
7278 { ac_try='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 echo "$as_me:$LINENO: result: yes" >&5
7285 echo "${ECHO_T}yes" >&6
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7293 cat >>confdefs.h <<\_ACEOF
7294 #define ARRAY_DELETE_NEEDS_SIZE 1
7295 _ACEOF
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 ac_ext=c
7300 ac_cpp='$CPP $CPPFLAGS'
7301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7305 ac_ext=cc
7306 ac_cpp='$CXXCPP $CPPFLAGS'
7307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7311 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
7312 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
7313 cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h. */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7322 #define name2(a, b) a/**/b
7326 main ()
7330 int name2(foo, bar);
7334 return 0;
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_cxx_werror_flag"
7348 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 echo "$as_me:$LINENO: result: yes" >&5
7361 echo "${ECHO_T}yes" >&6
7363 cat >>confdefs.h <<\_ACEOF
7364 #define TRADITIONAL_CPP 1
7365 _ACEOF
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7375 ac_ext=c
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7382 # checks for operating system services
7383 echo "$as_me:$LINENO: checking w_coredump" >&5
7384 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
7385 if test "$cross_compiling" = yes; then
7386 echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6
7388 else
7389 cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h. */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7398 #include <sys/types.h>
7399 #include <sys/wait.h>
7403 main ()
7407 main()
7409 #ifdef WCOREFLAG
7410 exit(1);
7411 #else
7412 int i = 0;
7413 ((union wait *)&i)->w_coredump = 1;
7414 exit(i != 0200);
7415 #endif
7420 return 0;
7423 _ACEOF
7424 rm -f conftest$ac_exeext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 echo "$as_me:$LINENO: result: yes" >&5
7436 echo "${ECHO_T}yes" >&6
7438 cat >>confdefs.h <<\_ACEOF
7439 #define WCOREFLAG 0200
7440 _ACEOF
7442 else
7443 echo "$as_me: program exited with status $ac_status" >&5
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7447 ( exit $ac_status )
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7454 # other random stuff
7455 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
7456 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
7457 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
7458 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
7459 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
7461 echo "$as_me:$LINENO: checking default paper size" >&5
7462 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
7463 groff_prefix=$prefix
7464 test "x$prefix" = xNONE && groff_prefix=$ac_default_prefix
7465 if test -z "$PAGE"; then
7466 descfile=
7467 if test -r $groff_prefix/share/groff/font/devps/DESC; then
7468 descfile=$groff_prefix/share/groff/font/devps/DESC
7469 elif test -r $groff_prefix/lib/groff/font/devps/DESC; then
7470 descfile=$groff_prefix/lib/groff/font/devps/DESC
7471 else
7472 for f in $groff_prefix/share/groff/*/font/devps/DESC; do
7473 if test -r $f; then
7474 descfile=$f
7475 break
7477 done
7480 if test -n "$descfile"; then
7481 if grep '^paperlength[ ]\+841890' $descfile >/dev/null 2>&1; then
7482 PAGE=A4
7483 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev/null 2>&1; then
7484 PAGE=A4
7489 if test -z "$PAGE"; then
7490 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
7491 /etc/resolv.conf 2>/dev/null`
7492 if test -z "$dom"; then
7493 dom=`(domainname) 2>/dev/null | tr -d '+'`
7494 if test -z "$dom" \
7495 || test "$dom" = '(none)'; then
7496 dom=`(hostname) 2>/dev/null | grep '\.'`
7499 # If the top-level domain is two letters and it's not `us' or `ca'
7500 # then they probably use A4 paper.
7501 case "$dom" in
7502 *.[Uu][Ss]|*.[Cc][Aa])
7504 *.[A-Za-z][A-Za-z])
7505 PAGE=A4 ;;
7506 esac
7509 test -n "$PAGE" || PAGE=letter
7510 if test "x$PAGE" = "xA4"; then
7512 cat >>confdefs.h <<\_ACEOF
7513 #define PAGEA4 1
7514 _ACEOF
7517 echo "$as_me:$LINENO: result: $PAGE" >&5
7518 echo "${ECHO_T}$PAGE" >&6
7520 echo "$as_me:$LINENO: checking for existing troff installation" >&5
7521 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
7522 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
7523 echo "$as_me:$LINENO: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7526 else
7527 echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7532 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
7533 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
7534 sys_tmac_prefix=
7535 sys_tmac_file_prefix=
7536 for d in /usr/share/lib/tmac /usr/lib/tmac; do
7537 for t in "" tmac.; do
7538 for m in an s m; do
7539 f=$d/$t$m
7540 if test -z "$sys_tmac_prefix" \
7541 && test -f $f \
7542 && grep '^\.if' $f >/dev/null 2>&1; then
7543 sys_tmac_prefix=$d/$t
7544 sys_tmac_file_prefix=$t
7546 done
7547 done
7548 done
7549 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
7550 echo "${ECHO_T}$sys_tmac_prefix" >&6
7553 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
7554 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
7555 tmac_wrap=
7556 if test "x$sys_tmac_file_prefix" = "xtmac."; then
7557 for f in $sys_tmac_prefix*; do
7558 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
7559 case "$suff" in
7563 grep "Copyright.*Free Software Foundation" $f >/dev/null \
7564 || tmac_wrap="$tmac_wrap $suff" ;;
7565 esac
7566 done
7567 elif test -n "$sys_tmac_prefix"; then
7568 files=`echo $sys_tmac_prefix*`
7569 grep "\\.so" $files >conftest.sol
7570 for f in $files; do
7571 case "$f" in
7572 ${sys_tmac_prefix}e)
7574 *.me)
7576 */ms.*)
7579 b=`basename $f`
7580 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
7581 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
7583 else
7584 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
7585 case "$suff" in
7586 tmac.*)
7589 tmac_wrap="$tmac_wrap $suff" ;;
7590 esac
7592 esac
7593 done
7594 rm -f conftest.sol
7596 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
7597 echo "${ECHO_T}$tmac_wrap" >&6
7599 make_html=html
7600 make_install_html=install_html
7602 missing=
7603 # Extract the first word of "pnmcut", so it can be a program name with args.
7604 set dummy pnmcut; ac_word=$2
7605 echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7607 if test "${ac_cv_prog_pnmcut+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 if test -n "$pnmcut"; then
7611 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_pnmcut="found"
7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7624 done
7625 done
7627 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
7630 pnmcut=$ac_cv_prog_pnmcut
7631 if test -n "$pnmcut"; then
7632 echo "$as_me:$LINENO: result: $pnmcut" >&5
7633 echo "${ECHO_T}$pnmcut" >&6
7634 else
7635 echo "$as_me:$LINENO: result: no" >&5
7636 echo "${ECHO_T}no" >&6
7639 if test $pnmcut = missing; then
7640 missing="$missing pnmcut"
7641 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
7642 set dummy pnmcrop; ac_word=$2
7643 echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7645 if test "${ac_cv_prog_pnmcrop+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648 if test -n "$pnmcrop"; then
7649 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658 ac_cv_prog_pnmcrop="found"
7659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7662 done
7663 done
7665 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
7668 pnmcrop=$ac_cv_prog_pnmcrop
7669 if test -n "$pnmcrop"; then
7670 echo "$as_me:$LINENO: result: $pnmcrop" >&5
7671 echo "${ECHO_T}$pnmcrop" >&6
7672 else
7673 echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6
7677 if test $pnmcrop = missing; then
7678 missing="$missing pnmcrop"
7679 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
7680 set dummy pnmtopng; ac_word=$2
7681 echo "$as_me:$LINENO: checking for $ac_word" >&5
7682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683 if test "${ac_cv_prog_pnmtopng+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 if test -n "$pnmtopng"; then
7687 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_pnmtopng="found"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7700 done
7701 done
7703 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
7706 pnmtopng=$ac_cv_prog_pnmtopng
7707 if test -n "$pnmtopng"; then
7708 echo "$as_me:$LINENO: result: $pnmtopng" >&5
7709 echo "${ECHO_T}$pnmtopng" >&6
7710 else
7711 echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6
7715 if test $pnmtopng = missing; then
7716 missing="$missing pnmtopng"
7717 fi;# Extract the first word of "psselect", so it can be a program name with args.
7718 set dummy psselect; ac_word=$2
7719 echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7721 if test "${ac_cv_prog_psselect+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 if test -n "$psselect"; then
7725 ac_cv_prog_psselect="$psselect" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_psselect="found"
7735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7738 done
7739 done
7741 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
7744 psselect=$ac_cv_prog_psselect
7745 if test -n "$psselect"; then
7746 echo "$as_me:$LINENO: result: $psselect" >&5
7747 echo "${ECHO_T}$psselect" >&6
7748 else
7749 echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6
7753 if test $psselect = missing; then
7754 missing="$missing psselect"
7755 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
7756 set dummy pnmtops; ac_word=$2
7757 echo "$as_me:$LINENO: checking for $ac_word" >&5
7758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7759 if test "${ac_cv_prog_pnmtops+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762 if test -n "$pnmtops"; then
7763 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_pnmtops="found"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7776 done
7777 done
7779 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
7782 pnmtops=$ac_cv_prog_pnmtops
7783 if test -n "$pnmtops"; then
7784 echo "$as_me:$LINENO: result: $pnmtops" >&5
7785 echo "${ECHO_T}$pnmtops" >&6
7786 else
7787 echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6
7791 if test $pnmtops = missing; then
7792 missing="$missing pnmtops"
7793 fi;# Extract the first word of "gs", so it can be a program name with args.
7794 set dummy gs; ac_word=$2
7795 echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7797 if test "${ac_cv_prog_gs+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800 if test -n "$gs"; then
7801 ac_cv_prog_gs="$gs" # Let the user override the test.
7802 else
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 for as_dir in $PATH
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_prog_gs="found"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7814 done
7815 done
7817 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs="missing"
7820 gs=$ac_cv_prog_gs
7821 if test -n "$gs"; then
7822 echo "$as_me:$LINENO: result: $gs" >&5
7823 echo "${ECHO_T}$gs" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7829 if test $gs = missing; then
7830 missing="$missing gs"
7833 if test -n "$missing"; then
7834 cnt=0
7835 for i in $missing
7837 cnt=`expr $cnt + 1`
7838 eval "prog$cnt=$i"
7839 done
7840 plural="s"
7841 case $cnt in
7843 plural=""
7844 progs="\`$prog1'" ;;
7846 progs="\`$prog1' and \`$prog2'" ;;
7848 progs="\`$prog1', \`$prog2', and \`$prog3'" ;;
7850 progs="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
7852 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
7854 progs="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
7855 esac
7857 make_html=
7858 make_install_html=
7860 { echo "$as_me:$LINENO: WARNING:
7862 The program$plural
7863 $progs
7864 can't be found in the path, thus the HTML backend of groff (grohtml)
7865 won't work properly. Consequently, no documentation in HTML format
7866 is built and installed.
7867 " >&5
7868 echo "$as_me: WARNING:
7870 The program$plural
7871 $progs
7872 can't be found in the path, thus the HTML backend of groff (grohtml)
7873 won't work properly. Consequently, no documentation in HTML format
7874 is built and installed.
7875 " >&2;}
7880 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
7881 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
7882 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
7883 echo "$as_me:$LINENO: result: yes" >&5
7884 echo "${ECHO_T}yes" >&6
7885 pnmtops_nosetpage="pnmtops -nosetpage"
7886 else
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7889 pnmtops_nosetpage="pnmtops"
7893 ac_config_files="$ac_config_files stamp-h"
7895 ac_config_files="$ac_config_files Makefile doc/Makefile src/xditview/Imakefile"
7897 cat >confcache <<\_ACEOF
7898 # This file is a shell script that caches the results of configure
7899 # tests run on this system so they can be shared between configure
7900 # scripts and configure runs, see configure's option --config-cache.
7901 # It is not useful on other systems. If it contains results you don't
7902 # want to keep, you may remove or edit it.
7904 # config.status only pays attention to the cache file if you give it
7905 # the --recheck option to rerun configure.
7907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7909 # following values.
7911 _ACEOF
7913 # The following way of writing the cache mishandles newlines in values,
7914 # but we know of no workaround that is simple, portable, and efficient.
7915 # So, don't put newlines in cache variables' values.
7916 # Ultrix sh set writes to stderr and can't be redirected directly,
7917 # and sets the high bit in the cache file unless we assign to the vars.
7919 (set) 2>&1 |
7920 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7921 *ac_space=\ *)
7922 # `set' does not quote correctly, so add quotes (double-quote
7923 # substitution turns \\\\ into \\, and sed turns \\ into \).
7924 sed -n \
7925 "s/'/'\\\\''/g;
7926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7929 # `set' quotes correctly as required by POSIX, so do not add quotes.
7930 sed -n \
7931 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7933 esac;
7935 sed '
7936 t clear
7937 : clear
7938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7939 t end
7940 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7941 : end' >>confcache
7942 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7943 if test -w $cache_file; then
7944 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7945 cat confcache >$cache_file
7946 else
7947 echo "not updating unwritable cache $cache_file"
7950 rm -f confcache
7952 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7953 # Let make expand exec_prefix.
7954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7956 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7957 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7958 # trailing colons and then remove the whole line if VPATH becomes empty
7959 # (actually we leave an empty line to preserve line numbers).
7960 if test "x$srcdir" = x.; then
7961 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7962 s/:*\$(srcdir):*/:/;
7963 s/:*\${srcdir}:*/:/;
7964 s/:*@srcdir@:*/:/;
7965 s/^\([^=]*=[ ]*\):*/\1/;
7966 s/:*$//;
7967 s/^[^=]*=[ ]*$//;
7971 DEFS=-DHAVE_CONFIG_H
7973 ac_libobjs=
7974 ac_ltlibobjs=
7975 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7976 # 1. Remove the extension, and $U if already installed.
7977 ac_i=`echo "$ac_i" |
7978 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7979 # 2. Add them.
7980 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7981 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7982 done
7983 LIBOBJS=$ac_libobjs
7985 LTLIBOBJS=$ac_ltlibobjs
7989 : ${CONFIG_STATUS=./config.status}
7990 ac_clean_files_save=$ac_clean_files
7991 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7992 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7993 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7994 cat >$CONFIG_STATUS <<_ACEOF
7995 #! $SHELL
7996 # Generated by $as_me.
7997 # Run this file to recreate the current configuration.
7998 # Compiler output produced by configure, useful for debugging
7999 # configure, is in config.log if it exists.
8001 debug=false
8002 ac_cs_recheck=false
8003 ac_cs_silent=false
8004 SHELL=\${CONFIG_SHELL-$SHELL}
8005 _ACEOF
8007 cat >>$CONFIG_STATUS <<\_ACEOF
8008 ## --------------------- ##
8009 ## M4sh Initialization. ##
8010 ## --------------------- ##
8012 # Be Bourne compatible
8013 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8014 emulate sh
8015 NULLCMD=:
8016 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8017 # is contrary to our usage. Disable this feature.
8018 alias -g '${1+"$@"}'='"$@"'
8019 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8020 set -o posix
8022 DUALCASE=1; export DUALCASE # for MKS sh
8024 # Support unset when possible.
8025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8026 as_unset=unset
8027 else
8028 as_unset=false
8032 # Work around bugs in pre-3.0 UWIN ksh.
8033 $as_unset ENV MAIL MAILPATH
8034 PS1='$ '
8035 PS2='> '
8036 PS4='+ '
8038 # NLS nuisances.
8039 for as_var in \
8040 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8041 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8042 LC_TELEPHONE LC_TIME
8044 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8045 eval $as_var=C; export $as_var
8046 else
8047 $as_unset $as_var
8049 done
8051 # Required to use basename.
8052 if expr a : '\(a\)' >/dev/null 2>&1; then
8053 as_expr=expr
8054 else
8055 as_expr=false
8058 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8059 as_basename=basename
8060 else
8061 as_basename=false
8065 # Name of the executable.
8066 as_me=`$as_basename "$0" ||
8067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8068 X"$0" : 'X\(//\)$' \| \
8069 X"$0" : 'X\(/\)$' \| \
8070 . : '\(.\)' 2>/dev/null ||
8071 echo X/"$0" |
8072 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8073 /^X\/\(\/\/\)$/{ s//\1/; q; }
8074 /^X\/\(\/\).*/{ s//\1/; q; }
8075 s/.*/./; q'`
8078 # PATH needs CR, and LINENO needs CR and PATH.
8079 # Avoid depending upon Character Ranges.
8080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8083 as_cr_digits='0123456789'
8084 as_cr_alnum=$as_cr_Letters$as_cr_digits
8086 # The user is always right.
8087 if test "${PATH_SEPARATOR+set}" != set; then
8088 echo "#! /bin/sh" >conf$$.sh
8089 echo "exit 0" >>conf$$.sh
8090 chmod +x conf$$.sh
8091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8092 PATH_SEPARATOR=';'
8093 else
8094 PATH_SEPARATOR=:
8096 rm -f conf$$.sh
8100 as_lineno_1=$LINENO
8101 as_lineno_2=$LINENO
8102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8103 test "x$as_lineno_1" != "x$as_lineno_2" &&
8104 test "x$as_lineno_3" = "x$as_lineno_2" || {
8105 # Find who we are. Look in the path if we contain no path at all
8106 # relative or not.
8107 case $0 in
8108 *[\\/]* ) as_myself=$0 ;;
8109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8115 done
8118 esac
8119 # We did not find ourselves, most probably we were run as `sh COMMAND'
8120 # in which case we are not to be found in the path.
8121 if test "x$as_myself" = x; then
8122 as_myself=$0
8124 if test ! -f "$as_myself"; then
8125 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8126 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8127 { (exit 1); exit 1; }; }
8129 case $CONFIG_SHELL in
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for as_base in sh bash ksh sh5; do
8137 case $as_dir in
8139 if ("$as_dir/$as_base" -c '
8140 as_lineno_1=$LINENO
8141 as_lineno_2=$LINENO
8142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8143 test "x$as_lineno_1" != "x$as_lineno_2" &&
8144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8147 CONFIG_SHELL=$as_dir/$as_base
8148 export CONFIG_SHELL
8149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8150 fi;;
8151 esac
8152 done
8153 done
8155 esac
8157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8158 # uniformly replaced by the line number. The first 'sed' inserts a
8159 # line-number line before each line; the second 'sed' does the real
8160 # work. The second script uses 'N' to pair each line-number line
8161 # with the numbered line, and appends trailing '-' during
8162 # substitution so that $LINENO is not a special case at line end.
8163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8165 sed '=' <$as_myself |
8166 sed '
8168 s,$,-,
8169 : loop
8170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8171 t loop
8172 s,-$,,
8173 s,^['$as_cr_digits']*\n,,
8174 ' >$as_me.lineno &&
8175 chmod +x $as_me.lineno ||
8176 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8177 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8178 { (exit 1); exit 1; }; }
8180 # Don't try to exec as it changes $[0], causing all sort of problems
8181 # (the dirname of $[0] is not the place where we might find the
8182 # original and so on. Autoconf is especially sensible to this).
8183 . ./$as_me.lineno
8184 # Exit status is that of the last command.
8185 exit
8189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8190 *c*,-n*) ECHO_N= ECHO_C='
8191 ' ECHO_T=' ' ;;
8192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8194 esac
8196 if expr a : '\(a\)' >/dev/null 2>&1; then
8197 as_expr=expr
8198 else
8199 as_expr=false
8202 rm -f conf$$ conf$$.exe conf$$.file
8203 echo >conf$$.file
8204 if ln -s conf$$.file conf$$ 2>/dev/null; then
8205 # We could just check for DJGPP; but this test a) works b) is more generic
8206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8207 if test -f conf$$.exe; then
8208 # Don't use ln at all; we don't have any links
8209 as_ln_s='cp -p'
8210 else
8211 as_ln_s='ln -s'
8213 elif ln conf$$.file conf$$ 2>/dev/null; then
8214 as_ln_s=ln
8215 else
8216 as_ln_s='cp -p'
8218 rm -f conf$$ conf$$.exe conf$$.file
8220 if mkdir -p . 2>/dev/null; then
8221 as_mkdir_p=:
8222 else
8223 test -d ./-p && rmdir ./-p
8224 as_mkdir_p=false
8227 as_executable_p="test -f"
8229 # Sed expression to map a string onto a valid CPP name.
8230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8232 # Sed expression to map a string onto a valid variable name.
8233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8236 # IFS
8237 # We need space, tab and new line, in precisely that order.
8238 as_nl='
8240 IFS=" $as_nl"
8242 # CDPATH.
8243 $as_unset CDPATH
8245 exec 6>&1
8247 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8248 # report actual input values of CONFIG_FILES etc. instead of their
8249 # values after options handling. Logging --version etc. is OK.
8250 exec 5>>config.log
8252 echo
8253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8254 ## Running $as_me. ##
8255 _ASBOX
8256 } >&5
8257 cat >&5 <<_CSEOF
8259 This file was extended by $as_me, which was
8260 generated by GNU Autoconf 2.59. Invocation command line was
8262 CONFIG_FILES = $CONFIG_FILES
8263 CONFIG_HEADERS = $CONFIG_HEADERS
8264 CONFIG_LINKS = $CONFIG_LINKS
8265 CONFIG_COMMANDS = $CONFIG_COMMANDS
8266 $ $0 $@
8268 _CSEOF
8269 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8270 echo >&5
8271 _ACEOF
8273 # Files that config.status was made for.
8274 if test -n "$ac_config_files"; then
8275 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8278 if test -n "$ac_config_headers"; then
8279 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8282 if test -n "$ac_config_links"; then
8283 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8286 if test -n "$ac_config_commands"; then
8287 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8290 cat >>$CONFIG_STATUS <<\_ACEOF
8292 ac_cs_usage="\
8293 \`$as_me' instantiates files from templates according to the
8294 current configuration.
8296 Usage: $0 [OPTIONS] [FILE]...
8298 -h, --help print this help, then exit
8299 -V, --version print version number, then exit
8300 -q, --quiet do not print progress messages
8301 -d, --debug don't remove temporary files
8302 --recheck update $as_me by reconfiguring in the same conditions
8303 --file=FILE[:TEMPLATE]
8304 instantiate the configuration file FILE
8305 --header=FILE[:TEMPLATE]
8306 instantiate the configuration header FILE
8308 Configuration files:
8309 $config_files
8311 Configuration headers:
8312 $config_headers
8314 Report bugs to <bug-autoconf@gnu.org>."
8315 _ACEOF
8317 cat >>$CONFIG_STATUS <<_ACEOF
8318 ac_cs_version="\\
8319 config.status
8320 configured by $0, generated by GNU Autoconf 2.59,
8321 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8323 Copyright (C) 2003 Free Software Foundation, Inc.
8324 This config.status script is free software; the Free Software Foundation
8325 gives unlimited permission to copy, distribute and modify it."
8326 srcdir=$srcdir
8327 INSTALL="$INSTALL"
8328 _ACEOF
8330 cat >>$CONFIG_STATUS <<\_ACEOF
8331 # If no file are specified by the user, then we need to provide default
8332 # value. By we need to know if files were specified by the user.
8333 ac_need_defaults=:
8334 while test $# != 0
8336 case $1 in
8337 --*=*)
8338 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8339 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8340 ac_shift=:
8343 ac_option=$1
8344 ac_optarg=$2
8345 ac_shift=shift
8347 *) # This is not an option, so the user has probably given explicit
8348 # arguments.
8349 ac_option=$1
8350 ac_need_defaults=false;;
8351 esac
8353 case $ac_option in
8354 # Handling of the options.
8355 _ACEOF
8356 cat >>$CONFIG_STATUS <<\_ACEOF
8357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8358 ac_cs_recheck=: ;;
8359 --version | --vers* | -V )
8360 echo "$ac_cs_version"; exit 0 ;;
8361 --he | --h)
8362 # Conflict between --help and --header
8363 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8364 Try \`$0 --help' for more information." >&5
8365 echo "$as_me: error: ambiguous option: $1
8366 Try \`$0 --help' for more information." >&2;}
8367 { (exit 1); exit 1; }; };;
8368 --help | --hel | -h )
8369 echo "$ac_cs_usage"; exit 0 ;;
8370 --debug | --d* | -d )
8371 debug=: ;;
8372 --file | --fil | --fi | --f )
8373 $ac_shift
8374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8375 ac_need_defaults=false;;
8376 --header | --heade | --head | --hea )
8377 $ac_shift
8378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8379 ac_need_defaults=false;;
8380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8381 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8382 ac_cs_silent=: ;;
8384 # This is an error.
8385 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8386 Try \`$0 --help' for more information." >&5
8387 echo "$as_me: error: unrecognized option: $1
8388 Try \`$0 --help' for more information." >&2;}
8389 { (exit 1); exit 1; }; } ;;
8391 *) ac_config_targets="$ac_config_targets $1" ;;
8393 esac
8394 shift
8395 done
8397 ac_configure_extra_args=
8399 if $ac_cs_silent; then
8400 exec 6>/dev/null
8401 ac_configure_extra_args="$ac_configure_extra_args --silent"
8404 _ACEOF
8405 cat >>$CONFIG_STATUS <<_ACEOF
8406 if \$ac_cs_recheck; then
8407 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8408 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8411 _ACEOF
8417 cat >>$CONFIG_STATUS <<\_ACEOF
8418 for ac_config_target in $ac_config_targets
8420 case "$ac_config_target" in
8421 # Handling of arguments.
8422 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
8423 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8424 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8425 "src/xditview/Imakefile" ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
8426 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
8427 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8428 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8429 { (exit 1); exit 1; }; };;
8430 esac
8431 done
8433 # If the user did not use the arguments to specify the items to instantiate,
8434 # then the envvar interface is used. Set only those that are not.
8435 # We use the long form for the default assignment because of an extremely
8436 # bizarre bug on SunOS 4.1.3.
8437 if $ac_need_defaults; then
8438 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8439 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8442 # Have a temporary directory for convenience. Make it in the build tree
8443 # simply because there is no reason to put it here, and in addition,
8444 # creating and moving files from /tmp can sometimes cause problems.
8445 # Create a temporary directory, and hook for its removal unless debugging.
8446 $debug ||
8448 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8449 trap '{ (exit 1); exit 1; }' 1 2 13 15
8452 # Create a (secure) tmp directory for tmp files.
8455 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8456 test -n "$tmp" && test -d "$tmp"
8457 } ||
8459 tmp=./confstat$$-$RANDOM
8460 (umask 077 && mkdir $tmp)
8461 } ||
8463 echo "$me: cannot create a temporary directory in ." >&2
8464 { (exit 1); exit 1; }
8467 _ACEOF
8469 cat >>$CONFIG_STATUS <<_ACEOF
8472 # CONFIG_FILES section.
8475 # No need to generate the scripts if there are no CONFIG_FILES.
8476 # This happens for instance when ./config.status config.h
8477 if test -n "\$CONFIG_FILES"; then
8478 # Protect against being on the right side of a sed subst in config.status.
8479 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8480 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8481 s,@SHELL@,$SHELL,;t t
8482 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8483 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8484 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8485 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8486 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8487 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8488 s,@exec_prefix@,$exec_prefix,;t t
8489 s,@prefix@,$prefix,;t t
8490 s,@program_transform_name@,$program_transform_name,;t t
8491 s,@bindir@,$bindir,;t t
8492 s,@sbindir@,$sbindir,;t t
8493 s,@libexecdir@,$libexecdir,;t t
8494 s,@datadir@,$datadir,;t t
8495 s,@sysconfdir@,$sysconfdir,;t t
8496 s,@sharedstatedir@,$sharedstatedir,;t t
8497 s,@localstatedir@,$localstatedir,;t t
8498 s,@libdir@,$libdir,;t t
8499 s,@includedir@,$includedir,;t t
8500 s,@oldincludedir@,$oldincludedir,;t t
8501 s,@infodir@,$infodir,;t t
8502 s,@mandir@,$mandir,;t t
8503 s,@build_alias@,$build_alias,;t t
8504 s,@host_alias@,$host_alias,;t t
8505 s,@target_alias@,$target_alias,;t t
8506 s,@DEFS@,$DEFS,;t t
8507 s,@ECHO_C@,$ECHO_C,;t t
8508 s,@ECHO_N@,$ECHO_N,;t t
8509 s,@ECHO_T@,$ECHO_T,;t t
8510 s,@LIBS@,$LIBS,;t t
8511 s,@CC@,$CC,;t t
8512 s,@CFLAGS@,$CFLAGS,;t t
8513 s,@LDFLAGS@,$LDFLAGS,;t t
8514 s,@CPPFLAGS@,$CPPFLAGS,;t t
8515 s,@ac_ct_CC@,$ac_ct_CC,;t t
8516 s,@EXEEXT@,$EXEEXT,;t t
8517 s,@OBJEXT@,$OBJEXT,;t t
8518 s,@CXX@,$CXX,;t t
8519 s,@CXXFLAGS@,$CXXFLAGS,;t t
8520 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8521 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
8522 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
8523 s,@LPR@,$LPR,;t t
8524 s,@LP@,$LP,;t t
8525 s,@LPQ@,$LPQ,;t t
8526 s,@PSPRINT@,$PSPRINT,;t t
8527 s,@DVIPRINT@,$DVIPRINT,;t t
8528 s,@PERLPATH@,$PERLPATH,;t t
8529 s,@YACC@,$YACC,;t t
8530 s,@RANLIB@,$RANLIB,;t t
8531 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8532 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
8533 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8534 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8535 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8536 s,@LN_S@,$LN_S,;t t
8537 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
8538 s,@CPP@,$CPP,;t t
8539 s,@EGREP@,$EGREP,;t t
8540 s,@LIBC@,$LIBC,;t t
8541 s,@LIBM@,$LIBM,;t t
8542 s,@LIBOBJS@,$LIBOBJS,;t t
8543 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
8544 s,@PAGE@,$PAGE,;t t
8545 s,@g@,$g,;t t
8546 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
8547 s,@tmac_wrap@,$tmac_wrap,;t t
8548 s,@pnmcut@,$pnmcut,;t t
8549 s,@pnmcrop@,$pnmcrop,;t t
8550 s,@pnmtopng@,$pnmtopng,;t t
8551 s,@psselect@,$psselect,;t t
8552 s,@pnmtops@,$pnmtops,;t t
8553 s,@gs@,$gs,;t t
8554 s,@make_html@,$make_html,;t t
8555 s,@make_install_html@,$make_install_html,;t t
8556 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
8557 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8558 CEOF
8560 _ACEOF
8562 cat >>$CONFIG_STATUS <<\_ACEOF
8563 # Split the substitutions into bite-sized pieces for seds with
8564 # small command number limits, like on Digital OSF/1 and HP-UX.
8565 ac_max_sed_lines=48
8566 ac_sed_frag=1 # Number of current file.
8567 ac_beg=1 # First line for current file.
8568 ac_end=$ac_max_sed_lines # Line after last line for current file.
8569 ac_more_lines=:
8570 ac_sed_cmds=
8571 while $ac_more_lines; do
8572 if test $ac_beg -gt 1; then
8573 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8574 else
8575 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8577 if test ! -s $tmp/subs.frag; then
8578 ac_more_lines=false
8579 else
8580 # The purpose of the label and of the branching condition is to
8581 # speed up the sed processing (if there are no `@' at all, there
8582 # is no need to browse any of the substitutions).
8583 # These are the two extra sed commands mentioned above.
8584 (echo ':t
8585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8586 if test -z "$ac_sed_cmds"; then
8587 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8588 else
8589 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8591 ac_sed_frag=`expr $ac_sed_frag + 1`
8592 ac_beg=$ac_end
8593 ac_end=`expr $ac_end + $ac_max_sed_lines`
8595 done
8596 if test -z "$ac_sed_cmds"; then
8597 ac_sed_cmds=cat
8599 fi # test -n "$CONFIG_FILES"
8601 _ACEOF
8602 cat >>$CONFIG_STATUS <<\_ACEOF
8603 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8604 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8605 case $ac_file in
8606 - | *:- | *:-:* ) # input from stdin
8607 cat >$tmp/stdin
8608 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8610 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8611 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8612 * ) ac_file_in=$ac_file.in ;;
8613 esac
8615 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8616 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8617 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8618 X"$ac_file" : 'X\(//\)[^/]' \| \
8619 X"$ac_file" : 'X\(//\)$' \| \
8620 X"$ac_file" : 'X\(/\)' \| \
8621 . : '\(.\)' 2>/dev/null ||
8622 echo X"$ac_file" |
8623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8625 /^X\(\/\/\)$/{ s//\1/; q; }
8626 /^X\(\/\).*/{ s//\1/; q; }
8627 s/.*/./; q'`
8628 { if $as_mkdir_p; then
8629 mkdir -p "$ac_dir"
8630 else
8631 as_dir="$ac_dir"
8632 as_dirs=
8633 while test ! -d "$as_dir"; do
8634 as_dirs="$as_dir $as_dirs"
8635 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8637 X"$as_dir" : 'X\(//\)[^/]' \| \
8638 X"$as_dir" : 'X\(//\)$' \| \
8639 X"$as_dir" : 'X\(/\)' \| \
8640 . : '\(.\)' 2>/dev/null ||
8641 echo X"$as_dir" |
8642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8644 /^X\(\/\/\)$/{ s//\1/; q; }
8645 /^X\(\/\).*/{ s//\1/; q; }
8646 s/.*/./; q'`
8647 done
8648 test ! -n "$as_dirs" || mkdir $as_dirs
8649 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8650 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8651 { (exit 1); exit 1; }; }; }
8653 ac_builddir=.
8655 if test "$ac_dir" != .; then
8656 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8657 # A "../" for each directory in $ac_dir_suffix.
8658 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8659 else
8660 ac_dir_suffix= ac_top_builddir=
8663 case $srcdir in
8664 .) # No --srcdir option. We are building in place.
8665 ac_srcdir=.
8666 if test -z "$ac_top_builddir"; then
8667 ac_top_srcdir=.
8668 else
8669 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8670 fi ;;
8671 [\\/]* | ?:[\\/]* ) # Absolute path.
8672 ac_srcdir=$srcdir$ac_dir_suffix;
8673 ac_top_srcdir=$srcdir ;;
8674 *) # Relative path.
8675 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8676 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8677 esac
8679 # Do not use `cd foo && pwd` to compute absolute paths, because
8680 # the directories may not exist.
8681 case `pwd` in
8682 .) ac_abs_builddir="$ac_dir";;
8684 case "$ac_dir" in
8685 .) ac_abs_builddir=`pwd`;;
8686 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8687 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8688 esac;;
8689 esac
8690 case $ac_abs_builddir in
8691 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8693 case ${ac_top_builddir}. in
8694 .) ac_abs_top_builddir=$ac_abs_builddir;;
8695 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8696 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8697 esac;;
8698 esac
8699 case $ac_abs_builddir in
8700 .) ac_abs_srcdir=$ac_srcdir;;
8702 case $ac_srcdir in
8703 .) ac_abs_srcdir=$ac_abs_builddir;;
8704 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8705 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8706 esac;;
8707 esac
8708 case $ac_abs_builddir in
8709 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8711 case $ac_top_srcdir in
8712 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8713 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8714 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8715 esac;;
8716 esac
8719 case $INSTALL in
8720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8721 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8722 esac
8724 if test x"$ac_file" != x-; then
8725 { echo "$as_me:$LINENO: creating $ac_file" >&5
8726 echo "$as_me: creating $ac_file" >&6;}
8727 rm -f "$ac_file"
8729 # Let's still pretend it is `configure' which instantiates (i.e., don't
8730 # use $as_me), people would be surprised to read:
8731 # /* config.h. Generated by config.status. */
8732 if test x"$ac_file" = x-; then
8733 configure_input=
8734 else
8735 configure_input="$ac_file. "
8737 configure_input=$configure_input"Generated from `echo $ac_file_in |
8738 sed 's,.*/,,'` by configure."
8740 # First look for the input files in the build tree, otherwise in the
8741 # src tree.
8742 ac_file_inputs=`IFS=:
8743 for f in $ac_file_in; do
8744 case $f in
8745 -) echo $tmp/stdin ;;
8746 [\\/$]*)
8747 # Absolute (can't be DOS-style, as IFS=:)
8748 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8749 echo "$as_me: error: cannot find input file: $f" >&2;}
8750 { (exit 1); exit 1; }; }
8751 echo "$f";;
8752 *) # Relative
8753 if test -f "$f"; then
8754 # Build tree
8755 echo "$f"
8756 elif test -f "$srcdir/$f"; then
8757 # Source tree
8758 echo "$srcdir/$f"
8759 else
8760 # /dev/null tree
8761 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8762 echo "$as_me: error: cannot find input file: $f" >&2;}
8763 { (exit 1); exit 1; }; }
8764 fi;;
8765 esac
8766 done` || { (exit 1); exit 1; }
8767 _ACEOF
8768 cat >>$CONFIG_STATUS <<_ACEOF
8769 sed "$ac_vpsub
8770 $extrasub
8771 _ACEOF
8772 cat >>$CONFIG_STATUS <<\_ACEOF
8774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8775 s,@configure_input@,$configure_input,;t t
8776 s,@srcdir@,$ac_srcdir,;t t
8777 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8778 s,@top_srcdir@,$ac_top_srcdir,;t t
8779 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8780 s,@builddir@,$ac_builddir,;t t
8781 s,@abs_builddir@,$ac_abs_builddir,;t t
8782 s,@top_builddir@,$ac_top_builddir,;t t
8783 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8784 s,@INSTALL@,$ac_INSTALL,;t t
8785 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8786 rm -f $tmp/stdin
8787 if test x"$ac_file" != x-; then
8788 mv $tmp/out $ac_file
8789 else
8790 cat $tmp/out
8791 rm -f $tmp/out
8794 # Run the commands associated with the file.
8795 case $ac_file in
8796 stamp-h ) echo timestamp > stamp-h ;;
8797 esac
8798 done
8799 _ACEOF
8800 cat >>$CONFIG_STATUS <<\_ACEOF
8803 # CONFIG_HEADER section.
8806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8809 # ac_d sets the value in "#define NAME VALUE" lines.
8810 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8811 ac_dB='[ ].*$,\1#\2'
8812 ac_dC=' '
8813 ac_dD=',;t'
8814 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8815 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8816 ac_uB='$,\1#\2define\3'
8817 ac_uC=' '
8818 ac_uD=',;t'
8820 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8821 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8822 case $ac_file in
8823 - | *:- | *:-:* ) # input from stdin
8824 cat >$tmp/stdin
8825 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8827 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8828 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8829 * ) ac_file_in=$ac_file.in ;;
8830 esac
8832 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8833 echo "$as_me: creating $ac_file" >&6;}
8835 # First look for the input files in the build tree, otherwise in the
8836 # src tree.
8837 ac_file_inputs=`IFS=:
8838 for f in $ac_file_in; do
8839 case $f in
8840 -) echo $tmp/stdin ;;
8841 [\\/$]*)
8842 # Absolute (can't be DOS-style, as IFS=:)
8843 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8844 echo "$as_me: error: cannot find input file: $f" >&2;}
8845 { (exit 1); exit 1; }; }
8846 # Do quote $f, to prevent DOS paths from being IFS'd.
8847 echo "$f";;
8848 *) # Relative
8849 if test -f "$f"; then
8850 # Build tree
8851 echo "$f"
8852 elif test -f "$srcdir/$f"; then
8853 # Source tree
8854 echo "$srcdir/$f"
8855 else
8856 # /dev/null tree
8857 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8858 echo "$as_me: error: cannot find input file: $f" >&2;}
8859 { (exit 1); exit 1; }; }
8860 fi;;
8861 esac
8862 done` || { (exit 1); exit 1; }
8863 # Remove the trailing spaces.
8864 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8866 _ACEOF
8868 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8869 # `conftest.undefs', that substitutes the proper values into
8870 # config.h.in to produce config.h. The first handles `#define'
8871 # templates, and the second `#undef' templates.
8872 # And first: Protect against being on the right side of a sed subst in
8873 # config.status. Protect against being in an unquoted here document
8874 # in config.status.
8875 rm -f conftest.defines conftest.undefs
8876 # Using a here document instead of a string reduces the quoting nightmare.
8877 # Putting comments in sed scripts is not portable.
8879 # `end' is used to avoid that the second main sed command (meant for
8880 # 0-ary CPP macros) applies to n-ary macro definitions.
8881 # See the Autoconf documentation for `clear'.
8882 cat >confdef2sed.sed <<\_ACEOF
8883 s/[\\&,]/\\&/g
8884 s,[\\$`],\\&,g
8885 t clear
8886 : clear
8887 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8888 t end
8889 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8890 : end
8891 _ACEOF
8892 # If some macros were called several times there might be several times
8893 # the same #defines, which is useless. Nevertheless, we may not want to
8894 # sort them, since we want the *last* AC-DEFINE to be honored.
8895 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8896 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8897 rm -f confdef2sed.sed
8899 # This sed command replaces #undef with comments. This is necessary, for
8900 # example, in the case of _POSIX_SOURCE, which is predefined and required
8901 # on some systems where configure will not decide to define it.
8902 cat >>conftest.undefs <<\_ACEOF
8903 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8904 _ACEOF
8906 # Break up conftest.defines because some shells have a limit on the size
8907 # of here documents, and old seds have small limits too (100 cmds).
8908 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8909 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8910 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8911 echo ' :' >>$CONFIG_STATUS
8912 rm -f conftest.tail
8913 while grep . conftest.defines >/dev/null
8915 # Write a limited-size here document to $tmp/defines.sed.
8916 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8917 # Speed up: don't consider the non `#define' lines.
8918 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8919 # Work around the forget-to-reset-the-flag bug.
8920 echo 't clr' >>$CONFIG_STATUS
8921 echo ': clr' >>$CONFIG_STATUS
8922 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8923 echo 'CEOF
8924 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8925 rm -f $tmp/in
8926 mv $tmp/out $tmp/in
8927 ' >>$CONFIG_STATUS
8928 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8929 rm -f conftest.defines
8930 mv conftest.tail conftest.defines
8931 done
8932 rm -f conftest.defines
8933 echo ' fi # grep' >>$CONFIG_STATUS
8934 echo >>$CONFIG_STATUS
8936 # Break up conftest.undefs because some shells have a limit on the size
8937 # of here documents, and old seds have small limits too (100 cmds).
8938 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8939 rm -f conftest.tail
8940 while grep . conftest.undefs >/dev/null
8942 # Write a limited-size here document to $tmp/undefs.sed.
8943 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8944 # Speed up: don't consider the non `#undef'
8945 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8946 # Work around the forget-to-reset-the-flag bug.
8947 echo 't clr' >>$CONFIG_STATUS
8948 echo ': clr' >>$CONFIG_STATUS
8949 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8950 echo 'CEOF
8951 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8952 rm -f $tmp/in
8953 mv $tmp/out $tmp/in
8954 ' >>$CONFIG_STATUS
8955 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8956 rm -f conftest.undefs
8957 mv conftest.tail conftest.undefs
8958 done
8959 rm -f conftest.undefs
8961 cat >>$CONFIG_STATUS <<\_ACEOF
8962 # Let's still pretend it is `configure' which instantiates (i.e., don't
8963 # use $as_me), people would be surprised to read:
8964 # /* config.h. Generated by config.status. */
8965 if test x"$ac_file" = x-; then
8966 echo "/* Generated by configure. */" >$tmp/config.h
8967 else
8968 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8970 cat $tmp/in >>$tmp/config.h
8971 rm -f $tmp/in
8972 if test x"$ac_file" != x-; then
8973 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8974 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8975 echo "$as_me: $ac_file is unchanged" >&6;}
8976 else
8977 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8979 X"$ac_file" : 'X\(//\)[^/]' \| \
8980 X"$ac_file" : 'X\(//\)$' \| \
8981 X"$ac_file" : 'X\(/\)' \| \
8982 . : '\(.\)' 2>/dev/null ||
8983 echo X"$ac_file" |
8984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8986 /^X\(\/\/\)$/{ s//\1/; q; }
8987 /^X\(\/\).*/{ s//\1/; q; }
8988 s/.*/./; q'`
8989 { if $as_mkdir_p; then
8990 mkdir -p "$ac_dir"
8991 else
8992 as_dir="$ac_dir"
8993 as_dirs=
8994 while test ! -d "$as_dir"; do
8995 as_dirs="$as_dir $as_dirs"
8996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8998 X"$as_dir" : 'X\(//\)[^/]' \| \
8999 X"$as_dir" : 'X\(//\)$' \| \
9000 X"$as_dir" : 'X\(/\)' \| \
9001 . : '\(.\)' 2>/dev/null ||
9002 echo X"$as_dir" |
9003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9005 /^X\(\/\/\)$/{ s//\1/; q; }
9006 /^X\(\/\).*/{ s//\1/; q; }
9007 s/.*/./; q'`
9008 done
9009 test ! -n "$as_dirs" || mkdir $as_dirs
9010 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9011 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9012 { (exit 1); exit 1; }; }; }
9014 rm -f $ac_file
9015 mv $tmp/config.h $ac_file
9017 else
9018 cat $tmp/config.h
9019 rm -f $tmp/config.h
9021 done
9022 _ACEOF
9024 cat >>$CONFIG_STATUS <<\_ACEOF
9026 { (exit 0); exit 0; }
9027 _ACEOF
9028 chmod +x $CONFIG_STATUS
9029 ac_clean_files=$ac_clean_files_save
9032 # configure is writing to config.log, and then calls config.status.
9033 # config.status does its own redirection, appending to config.log.
9034 # Unfortunately, on DOS this fails, as config.log is still kept open
9035 # by configure, so config.status won't be able to write to it; its
9036 # output is simply discarded. So we exec the FD to /dev/null,
9037 # effectively closing config.log, so it can be properly (re)opened and
9038 # appended to by config.status. When coming back to configure, we
9039 # need to make the FD available again.
9040 if test "$no_create" != yes; then
9041 ac_cs_success=:
9042 ac_config_status_args=
9043 test "$silent" = yes &&
9044 ac_config_status_args="$ac_config_status_args --quiet"
9045 exec 5>/dev/null
9046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9047 exec 5>>config.log
9048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9049 # would make configure fail if this is the last instruction.
9050 $ac_cs_success || { (exit 1); exit 1; }
9054 { echo "$as_me:$LINENO:
9056 Configuration completed.
9058 You can now say \`make' to compile the groff package and \`make install'
9059 to install it afterwards.
9061 If you want to compile xditview, change the directory to \`src/xditview'
9062 and follow the instructions given in the file \`INSTALL'.
9063 " >&5
9064 echo "$as_me:
9066 Configuration completed.
9068 You can now say \`make' to compile the groff package and \`make install'
9069 to install it afterwards.
9071 If you want to compile xditview, change the directory to \`src/xditview'
9072 and follow the instructions given in the file \`INSTALL'.
9073 " >&6;}