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