* NEWS: Revised.
[s-roff.git] / configure
blob913d0649deae398946e71a60bbd0410da33f71de
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="src/roff/groff/groff.cc"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
190 ac_prev=
191 for ac_option
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
204 case $ac_option in
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
223 --config-cache | -C)
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
423 -with-* | --with-*)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
486 esac
487 done
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504 done
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516 done
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
551 else
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
558 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CXX_set=${CXX+set}
593 ac_env_CXX_value=$CXX
594 ac_cv_env_CXX_set=${CXX+set}
595 ac_cv_env_CXX_value=$CXX
596 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
597 ac_env_CXXFLAGS_value=$CXXFLAGS
598 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
599 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
600 ac_env_CPP_set=${CPP+set}
601 ac_env_CPP_value=$CPP
602 ac_cv_env_CPP_set=${CPP+set}
603 ac_cv_env_CPP_value=$CPP
606 # Report the --help message.
608 if test "$ac_init_help" = "long"; then
609 # Omit some internal or obsolete options to make the list less imposing.
610 # This message is too long to be a string in the A/UX 3.1 sh.
611 cat <<EOF
612 \`configure' configures this package to adapt to many kinds of systems.
614 Usage: $0 [OPTION]... [VAR=VALUE]...
616 To assign environment variables (e.g., CC, CFLAGS...), specify them as
617 VAR=VALUE. See below for descriptions of some of the useful variables.
619 Defaults for the options are specified in brackets.
621 Configuration:
622 -h, --help display this help and exit
623 --help=short display options specific to this package
624 --help=recursive display the short help of all the included packages
625 -V, --version display version information and exit
626 -q, --quiet, --silent do not print \`checking...' messages
627 --cache-file=FILE cache test results in FILE [disabled]
628 -C, --config-cache alias for \`--cache-file=config.cache'
629 -n, --no-create do not create output files
630 --srcdir=DIR find the sources in DIR [configure dir or \`..']
634 cat <<EOF
635 Installation directories:
636 --prefix=PREFIX install architecture-independent files in PREFIX
637 [$ac_default_prefix]
638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
639 [PREFIX]
641 By default, \`make install' will install all the files in
642 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
643 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
644 for instance \`--prefix=\$HOME'.
646 For better control, use the options below.
648 Fine tuning of the installation directories:
649 --bindir=DIR user executables [EPREFIX/bin]
650 --sbindir=DIR system admin executables [EPREFIX/sbin]
651 --libexecdir=DIR program executables [EPREFIX/libexec]
652 --datadir=DIR read-only architecture-independent data [PREFIX/share]
653 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
654 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
655 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
656 --libdir=DIR object code libraries [EPREFIX/lib]
657 --includedir=DIR C header files [PREFIX/include]
658 --oldincludedir=DIR C header files for non-gcc [/usr/include]
659 --infodir=DIR info documentation [PREFIX/info]
660 --mandir=DIR man documentation [PREFIX/man]
663 cat <<\EOF
667 if test -n "$ac_init_help"; then
669 cat <<\EOF
671 Some influential environment variables:
672 CC C compiler command
673 CFLAGS C compiler flags
674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
675 nonstandard directory <lib dir>
676 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
677 headers in a nonstandard directory <include dir>
678 CXX C++ compiler command
679 CXXFLAGS C++ compiler flags
680 CPP C preprocessor
682 Use these variables to override the choices made by `configure' or to help
683 it to find libraries and programs with nonstandard names/locations.
688 if test "$ac_init_help" = "recursive"; then
689 # If there are subdirs, report their specific --help.
690 ac_popdir=`pwd`
691 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
692 cd $ac_subdir
693 # A "../" for each directory in /$ac_subdir.
694 ac_dots=`echo $ac_subdir |
695 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
697 case $srcdir in
698 .) # No --srcdir option. We are building in place.
699 ac_sub_srcdir=$srcdir ;;
700 [\\/]* | ?:[\\/]* ) # Absolute path.
701 ac_sub_srcdir=$srcdir/$ac_subdir ;;
702 *) # Relative path.
703 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
704 esac
706 # Check for guested configure; otherwise get Cygnus style configure.
707 if test -f $ac_sub_srcdir/configure.gnu; then
708 echo
709 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
710 elif test -f $ac_sub_srcdir/configure; then
711 echo
712 $SHELL $ac_sub_srcdir/configure --help=recursive
713 elif test -f $ac_sub_srcdir/configure.ac ||
714 test -f $ac_sub_srcdir/configure.in; then
715 echo
716 $ac_configure --help
717 else
718 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
720 cd $ac_popdir
721 done
724 test -n "$ac_init_help" && exit 0
725 if $ac_init_version; then
726 cat <<\EOF
728 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
729 Free Software Foundation, Inc.
730 This configure script is free software; the Free Software Foundation
731 gives unlimited permission to copy, distribute and modify it.
733 exit 0
735 exec 5>config.log
736 cat >&5 <<EOF
737 This file contains any messages produced by compilers while
738 running configure, to aid debugging if configure makes a mistake.
740 It was created by $as_me, which was
741 generated by GNU Autoconf 2.52. Invocation command line was
743 $ $0 $@
747 cat <<_ASUNAME
748 ## ---------- ##
749 ## Platform. ##
750 ## ---------- ##
752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
764 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
769 PATH = $PATH
771 _ASUNAME
772 } >&5
774 cat >&5 <<EOF
775 ## ------------ ##
776 ## Core tests. ##
777 ## ------------ ##
781 # Keep a trace of the command line.
782 # Strip out --no-create and --no-recursion so they do not pile up.
783 # Also quote any args containing shell meta-characters.
784 ac_configure_args=
785 ac_sep=
786 for ac_arg
788 case $ac_arg in
789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
790 | --no-cr | --no-c) ;;
791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
794 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
795 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
796 ac_sep=" " ;;
797 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
798 ac_sep=" " ;;
799 esac
800 # Get rid of the leading space.
801 done
803 # When interrupted or exit'd, cleanup temporary files, and complete
804 # config.log. We remove comments because anyway the quotes in there
805 # would cause problems or look ugly.
806 trap 'exit_status=$?
807 # Save into config.log some information that might help in debugging.
808 echo >&5
809 echo "## ----------------- ##" >&5
810 echo "## Cache variables. ##" >&5
811 echo "## ----------------- ##" >&5
812 echo >&5
813 # The following way of writing the cache mishandles newlines in values,
815 (set) 2>&1 |
816 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
817 *ac_space=\ *)
818 sed -n \
819 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
823 sed -n \
824 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
826 esac;
827 } >&5
828 sed "/^$/d" confdefs.h >conftest.log
829 if test -s conftest.log; then
830 echo >&5
831 echo "## ------------ ##" >&5
832 echo "## confdefs.h. ##" >&5
833 echo "## ------------ ##" >&5
834 echo >&5
835 cat conftest.log >&5
837 (echo; echo) >&5
838 test "$ac_signal" != 0 &&
839 echo "$as_me: caught signal $ac_signal" >&5
840 echo "$as_me: exit $exit_status" >&5
841 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
842 exit $exit_status
844 for ac_signal in 1 2 13 15; do
845 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
846 done
847 ac_signal=0
849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
850 rm -rf conftest* confdefs.h
851 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
852 echo >confdefs.h
854 # Let the site file select an alternate cache file if it wants to.
855 # Prefer explicitly selected file to automatically selected ones.
856 if test -z "$CONFIG_SITE"; then
857 if test "x$prefix" != xNONE; then
858 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
859 else
860 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
863 for ac_site_file in $CONFIG_SITE; do
864 if test -r "$ac_site_file"; then
865 { echo "$as_me:865: loading site script $ac_site_file" >&5
866 echo "$as_me: loading site script $ac_site_file" >&6;}
867 cat "$ac_site_file" >&5
868 . "$ac_site_file"
870 done
872 if test -r "$cache_file"; then
873 # Some versions of bash will fail to source /dev/null (special
874 # files actually), so we avoid doing that.
875 if test -f "$cache_file"; then
876 { echo "$as_me:876: loading cache $cache_file" >&5
877 echo "$as_me: loading cache $cache_file" >&6;}
878 case $cache_file in
879 [\\/]* | ?:[\\/]* ) . $cache_file;;
880 *) . ./$cache_file;;
881 esac
883 else
884 { echo "$as_me:884: creating cache $cache_file" >&5
885 echo "$as_me: creating cache $cache_file" >&6;}
886 >$cache_file
889 # Check that the precious variables saved in the cache have kept the same
890 # value.
891 ac_cache_corrupted=false
892 for ac_var in `(set) 2>&1 |
893 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
895 eval ac_new_set=\$ac_env_${ac_var}_set
896 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
897 eval ac_new_val="\$ac_env_${ac_var}_value"
898 case $ac_old_set,$ac_new_set in
899 set,)
900 { echo "$as_me:900: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
901 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
902 ac_cache_corrupted=: ;;
903 ,set)
904 { echo "$as_me:904: error: \`$ac_var' was not set in the previous run" >&5
905 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
906 ac_cache_corrupted=: ;;
907 ,);;
909 if test "x$ac_old_val" != "x$ac_new_val"; then
910 { echo "$as_me:910: error: \`$ac_var' has changed since the previous run:" >&5
911 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
912 { echo "$as_me:912: former value: $ac_old_val" >&5
913 echo "$as_me: former value: $ac_old_val" >&2;}
914 { echo "$as_me:914: current value: $ac_new_val" >&5
915 echo "$as_me: current value: $ac_new_val" >&2;}
916 ac_cache_corrupted=:
917 fi;;
918 esac
919 # Pass precious variables to config.status. It doesn't matter if
920 # we pass some twice (in addition to the command line arguments).
921 if test "$ac_new_set" = set; then
922 case $ac_new_val in
923 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
924 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
925 ac_configure_args="$ac_configure_args '$ac_arg'"
927 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
929 esac
931 done
932 if $ac_cache_corrupted; then
933 { echo "$as_me:933: error: changes in the environment can compromise the build" >&5
934 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
935 { { echo "$as_me:935: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
936 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
937 { (exit 1); exit 1; }; }
940 ac_ext=c
941 ac_cpp='$CPP $CPPFLAGS'
942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
946 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
947 *c*,-n*) ECHO_N= ECHO_C='
948 ' ECHO_T=' ' ;;
949 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
950 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
951 esac
952 echo "#! $SHELL" >conftest.sh
953 echo "exit 0" >>conftest.sh
954 chmod +x conftest.sh
955 if { (echo "$as_me:955: PATH=\".;.\"; conftest.sh") >&5
956 (PATH=".;."; conftest.sh) 2>&5
957 ac_status=$?
958 echo "$as_me:958: \$? = $ac_status" >&5
959 (exit $ac_status); }; then
960 ac_path_separator=';'
961 else
962 ac_path_separator=:
964 PATH_SEPARATOR="$ac_path_separator"
965 rm -f conftest.sh
967 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
969 ac_srcdir_defaulted=no
970 srcdir=`cd $srcdir; pwd`
971 top_builddir=`pwd`
973 ac_ext=c
974 ac_cpp='$CPP $CPPFLAGS'
975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
978 if test -n "$ac_tool_prefix"; then
979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
981 echo "$as_me:981: checking for $ac_word" >&5
982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
983 if test "${ac_cv_prog_CC+set}" = set; then
984 echo $ECHO_N "(cached) $ECHO_C" >&6
985 else
986 if test -n "$CC"; then
987 ac_cv_prog_CC="$CC" # Let the user override the test.
988 else
989 ac_save_IFS=$IFS; IFS=$ac_path_separator
990 ac_dummy="$PATH"
991 for ac_dir in $ac_dummy; do
992 IFS=$ac_save_IFS
993 test -z "$ac_dir" && ac_dir=.
994 $as_executable_p "$ac_dir/$ac_word" || continue
995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
996 echo "$as_me:996: found $ac_dir/$ac_word" >&5
997 break
998 done
1002 CC=$ac_cv_prog_CC
1003 if test -n "$CC"; then
1004 echo "$as_me:1004: result: $CC" >&5
1005 echo "${ECHO_T}$CC" >&6
1006 else
1007 echo "$as_me:1007: result: no" >&5
1008 echo "${ECHO_T}no" >&6
1012 if test -z "$ac_cv_prog_CC"; then
1013 ac_ct_CC=$CC
1014 # Extract the first word of "gcc", so it can be a program name with args.
1015 set dummy gcc; ac_word=$2
1016 echo "$as_me:1016: checking for $ac_word" >&5
1017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1019 echo $ECHO_N "(cached) $ECHO_C" >&6
1020 else
1021 if test -n "$ac_ct_CC"; then
1022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1023 else
1024 ac_save_IFS=$IFS; IFS=$ac_path_separator
1025 ac_dummy="$PATH"
1026 for ac_dir in $ac_dummy; do
1027 IFS=$ac_save_IFS
1028 test -z "$ac_dir" && ac_dir=.
1029 $as_executable_p "$ac_dir/$ac_word" || continue
1030 ac_cv_prog_ac_ct_CC="gcc"
1031 echo "$as_me:1031: found $ac_dir/$ac_word" >&5
1032 break
1033 done
1037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1038 if test -n "$ac_ct_CC"; then
1039 echo "$as_me:1039: result: $ac_ct_CC" >&5
1040 echo "${ECHO_T}$ac_ct_CC" >&6
1041 else
1042 echo "$as_me:1042: result: no" >&5
1043 echo "${ECHO_T}no" >&6
1046 CC=$ac_ct_CC
1047 else
1048 CC="$ac_cv_prog_CC"
1051 if test -z "$CC"; then
1052 if test -n "$ac_tool_prefix"; then
1053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1054 set dummy ${ac_tool_prefix}cc; ac_word=$2
1055 echo "$as_me:1055: checking for $ac_word" >&5
1056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1057 if test "${ac_cv_prog_CC+set}" = set; then
1058 echo $ECHO_N "(cached) $ECHO_C" >&6
1059 else
1060 if test -n "$CC"; then
1061 ac_cv_prog_CC="$CC" # Let the user override the test.
1062 else
1063 ac_save_IFS=$IFS; IFS=$ac_path_separator
1064 ac_dummy="$PATH"
1065 for ac_dir in $ac_dummy; do
1066 IFS=$ac_save_IFS
1067 test -z "$ac_dir" && ac_dir=.
1068 $as_executable_p "$ac_dir/$ac_word" || continue
1069 ac_cv_prog_CC="${ac_tool_prefix}cc"
1070 echo "$as_me:1070: found $ac_dir/$ac_word" >&5
1071 break
1072 done
1076 CC=$ac_cv_prog_CC
1077 if test -n "$CC"; then
1078 echo "$as_me:1078: result: $CC" >&5
1079 echo "${ECHO_T}$CC" >&6
1080 else
1081 echo "$as_me:1081: result: no" >&5
1082 echo "${ECHO_T}no" >&6
1086 if test -z "$ac_cv_prog_CC"; then
1087 ac_ct_CC=$CC
1088 # Extract the first word of "cc", so it can be a program name with args.
1089 set dummy cc; ac_word=$2
1090 echo "$as_me:1090: checking for $ac_word" >&5
1091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1094 else
1095 if test -n "$ac_ct_CC"; then
1096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1097 else
1098 ac_save_IFS=$IFS; IFS=$ac_path_separator
1099 ac_dummy="$PATH"
1100 for ac_dir in $ac_dummy; do
1101 IFS=$ac_save_IFS
1102 test -z "$ac_dir" && ac_dir=.
1103 $as_executable_p "$ac_dir/$ac_word" || continue
1104 ac_cv_prog_ac_ct_CC="cc"
1105 echo "$as_me:1105: found $ac_dir/$ac_word" >&5
1106 break
1107 done
1111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1112 if test -n "$ac_ct_CC"; then
1113 echo "$as_me:1113: result: $ac_ct_CC" >&5
1114 echo "${ECHO_T}$ac_ct_CC" >&6
1115 else
1116 echo "$as_me:1116: result: no" >&5
1117 echo "${ECHO_T}no" >&6
1120 CC=$ac_ct_CC
1121 else
1122 CC="$ac_cv_prog_CC"
1126 if test -z "$CC"; then
1127 # Extract the first word of "cc", so it can be a program name with args.
1128 set dummy cc; ac_word=$2
1129 echo "$as_me:1129: checking for $ac_word" >&5
1130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1131 if test "${ac_cv_prog_CC+set}" = set; then
1132 echo $ECHO_N "(cached) $ECHO_C" >&6
1133 else
1134 if test -n "$CC"; then
1135 ac_cv_prog_CC="$CC" # Let the user override the test.
1136 else
1137 ac_prog_rejected=no
1138 ac_save_IFS=$IFS; IFS=$ac_path_separator
1139 ac_dummy="$PATH"
1140 for ac_dir in $ac_dummy; do
1141 IFS=$ac_save_IFS
1142 test -z "$ac_dir" && ac_dir=.
1143 $as_executable_p "$ac_dir/$ac_word" || continue
1144 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1145 ac_prog_rejected=yes
1146 continue
1148 ac_cv_prog_CC="cc"
1149 echo "$as_me:1149: found $ac_dir/$ac_word" >&5
1150 break
1151 done
1153 if test $ac_prog_rejected = yes; then
1154 # We found a bogon in the path, so make sure we never use it.
1155 set dummy $ac_cv_prog_CC
1156 shift
1157 if test $# != 0; then
1158 # We chose a different compiler from the bogus one.
1159 # However, it has the same basename, so the bogon will be chosen
1160 # first if we set CC to just the basename; use the full file name.
1161 shift
1162 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1163 shift
1164 ac_cv_prog_CC="$@"
1169 CC=$ac_cv_prog_CC
1170 if test -n "$CC"; then
1171 echo "$as_me:1171: result: $CC" >&5
1172 echo "${ECHO_T}$CC" >&6
1173 else
1174 echo "$as_me:1174: result: no" >&5
1175 echo "${ECHO_T}no" >&6
1179 if test -z "$CC"; then
1180 if test -n "$ac_tool_prefix"; then
1181 for ac_prog in cl
1183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1185 echo "$as_me:1185: checking for $ac_word" >&5
1186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1187 if test "${ac_cv_prog_CC+set}" = set; then
1188 echo $ECHO_N "(cached) $ECHO_C" >&6
1189 else
1190 if test -n "$CC"; then
1191 ac_cv_prog_CC="$CC" # Let the user override the test.
1192 else
1193 ac_save_IFS=$IFS; IFS=$ac_path_separator
1194 ac_dummy="$PATH"
1195 for ac_dir in $ac_dummy; do
1196 IFS=$ac_save_IFS
1197 test -z "$ac_dir" && ac_dir=.
1198 $as_executable_p "$ac_dir/$ac_word" || continue
1199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1200 echo "$as_me:1200: found $ac_dir/$ac_word" >&5
1201 break
1202 done
1206 CC=$ac_cv_prog_CC
1207 if test -n "$CC"; then
1208 echo "$as_me:1208: result: $CC" >&5
1209 echo "${ECHO_T}$CC" >&6
1210 else
1211 echo "$as_me:1211: result: no" >&5
1212 echo "${ECHO_T}no" >&6
1215 test -n "$CC" && break
1216 done
1218 if test -z "$CC"; then
1219 ac_ct_CC=$CC
1220 for ac_prog in cl
1222 # Extract the first word of "$ac_prog", so it can be a program name with args.
1223 set dummy $ac_prog; ac_word=$2
1224 echo "$as_me:1224: checking for $ac_word" >&5
1225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1228 else
1229 if test -n "$ac_ct_CC"; then
1230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1231 else
1232 ac_save_IFS=$IFS; IFS=$ac_path_separator
1233 ac_dummy="$PATH"
1234 for ac_dir in $ac_dummy; do
1235 IFS=$ac_save_IFS
1236 test -z "$ac_dir" && ac_dir=.
1237 $as_executable_p "$ac_dir/$ac_word" || continue
1238 ac_cv_prog_ac_ct_CC="$ac_prog"
1239 echo "$as_me:1239: found $ac_dir/$ac_word" >&5
1240 break
1241 done
1245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1246 if test -n "$ac_ct_CC"; then
1247 echo "$as_me:1247: result: $ac_ct_CC" >&5
1248 echo "${ECHO_T}$ac_ct_CC" >&6
1249 else
1250 echo "$as_me:1250: result: no" >&5
1251 echo "${ECHO_T}no" >&6
1254 test -n "$ac_ct_CC" && break
1255 done
1257 CC=$ac_ct_CC
1262 test -z "$CC" && { { echo "$as_me:1262: error: no acceptable cc found in \$PATH" >&5
1263 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1264 { (exit 1); exit 1; }; }
1266 # Provide some information about the compiler.
1267 echo "$as_me:1267:" \
1268 "checking for C compiler version" >&5
1269 ac_compiler=`set X $ac_compile; echo $2`
1270 { (eval echo "$as_me:1270: \"$ac_compiler --version </dev/null >&5\"") >&5
1271 (eval $ac_compiler --version </dev/null >&5) 2>&5
1272 ac_status=$?
1273 echo "$as_me:1273: \$? = $ac_status" >&5
1274 (exit $ac_status); }
1275 { (eval echo "$as_me:1275: \"$ac_compiler -v </dev/null >&5\"") >&5
1276 (eval $ac_compiler -v </dev/null >&5) 2>&5
1277 ac_status=$?
1278 echo "$as_me:1278: \$? = $ac_status" >&5
1279 (exit $ac_status); }
1280 { (eval echo "$as_me:1280: \"$ac_compiler -V </dev/null >&5\"") >&5
1281 (eval $ac_compiler -V </dev/null >&5) 2>&5
1282 ac_status=$?
1283 echo "$as_me:1283: \$? = $ac_status" >&5
1284 (exit $ac_status); }
1286 cat >conftest.$ac_ext <<_ACEOF
1287 #line 1287 "configure"
1288 #include "confdefs.h"
1291 main ()
1295 return 0;
1297 _ACEOF
1298 ac_clean_files_save=$ac_clean_files
1299 ac_clean_files="$ac_clean_files a.out a.exe"
1300 # Try to create an executable without -o first, disregard a.out.
1301 # It will help us diagnose broken compilers, and finding out an intuition
1302 # of exeext.
1303 echo "$as_me:1303: checking for C compiler default output" >&5
1304 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1305 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1306 if { (eval echo "$as_me:1306: \"$ac_link_default\"") >&5
1307 (eval $ac_link_default) 2>&5
1308 ac_status=$?
1309 echo "$as_me:1309: \$? = $ac_status" >&5
1310 (exit $ac_status); }; then
1311 # Find the output, starting from the most likely. This scheme is
1312 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1313 # resort.
1314 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1315 ls a.out conftest 2>/dev/null;
1316 ls a.* conftest.* 2>/dev/null`; do
1317 case $ac_file in
1318 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1319 a.out ) # We found the default executable, but exeext='' is most
1320 # certainly right.
1321 break;;
1322 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1323 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1324 export ac_cv_exeext
1325 break;;
1326 * ) break;;
1327 esac
1328 done
1329 else
1330 echo "$as_me: failed program was:" >&5
1331 cat conftest.$ac_ext >&5
1332 { { echo "$as_me:1332: error: C compiler cannot create executables" >&5
1333 echo "$as_me: error: C compiler cannot create executables" >&2;}
1334 { (exit 77); exit 77; }; }
1337 ac_exeext=$ac_cv_exeext
1338 echo "$as_me:1338: result: $ac_file" >&5
1339 echo "${ECHO_T}$ac_file" >&6
1341 # Check the compiler produces executables we can run. If not, either
1342 # the compiler is broken, or we cross compile.
1343 echo "$as_me:1343: checking whether the C compiler works" >&5
1344 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1345 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1346 # If not cross compiling, check that we can run a simple program.
1347 if test "$cross_compiling" != yes; then
1348 if { ac_try='./$ac_file'
1349 { (eval echo "$as_me:1349: \"$ac_try\"") >&5
1350 (eval $ac_try) 2>&5
1351 ac_status=$?
1352 echo "$as_me:1352: \$? = $ac_status" >&5
1353 (exit $ac_status); }; }; then
1354 cross_compiling=no
1355 else
1356 if test "$cross_compiling" = maybe; then
1357 cross_compiling=yes
1358 else
1359 { { echo "$as_me:1359: error: cannot run C compiled programs.
1360 If you meant to cross compile, use \`--host'." >&5
1361 echo "$as_me: error: cannot run C compiled programs.
1362 If you meant to cross compile, use \`--host'." >&2;}
1363 { (exit 1); exit 1; }; }
1367 echo "$as_me:1367: result: yes" >&5
1368 echo "${ECHO_T}yes" >&6
1370 rm -f a.out a.exe conftest$ac_cv_exeext
1371 ac_clean_files=$ac_clean_files_save
1372 # Check the compiler produces executables we can run. If not, either
1373 # the compiler is broken, or we cross compile.
1374 echo "$as_me:1374: checking whether we are cross compiling" >&5
1375 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1376 echo "$as_me:1376: result: $cross_compiling" >&5
1377 echo "${ECHO_T}$cross_compiling" >&6
1379 echo "$as_me:1379: checking for executable suffix" >&5
1380 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1381 if { (eval echo "$as_me:1381: \"$ac_link\"") >&5
1382 (eval $ac_link) 2>&5
1383 ac_status=$?
1384 echo "$as_me:1384: \$? = $ac_status" >&5
1385 (exit $ac_status); }; then
1386 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1387 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1388 # work properly (i.e., refer to `conftest.exe'), while it won't with
1389 # `rm'.
1390 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1391 case $ac_file in
1392 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1394 export ac_cv_exeext
1395 break;;
1396 * ) break;;
1397 esac
1398 done
1399 else
1400 { { echo "$as_me:1400: error: cannot compute EXEEXT: cannot compile and link" >&5
1401 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1402 { (exit 1); exit 1; }; }
1405 rm -f conftest$ac_cv_exeext
1406 echo "$as_me:1406: result: $ac_cv_exeext" >&5
1407 echo "${ECHO_T}$ac_cv_exeext" >&6
1409 rm -f conftest.$ac_ext
1410 EXEEXT=$ac_cv_exeext
1411 ac_exeext=$EXEEXT
1412 echo "$as_me:1412: checking for object suffix" >&5
1413 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1414 if test "${ac_cv_objext+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417 cat >conftest.$ac_ext <<_ACEOF
1418 #line 1418 "configure"
1419 #include "confdefs.h"
1422 main ()
1426 return 0;
1428 _ACEOF
1429 rm -f conftest.o conftest.obj
1430 if { (eval echo "$as_me:1430: \"$ac_compile\"") >&5
1431 (eval $ac_compile) 2>&5
1432 ac_status=$?
1433 echo "$as_me:1433: \$? = $ac_status" >&5
1434 (exit $ac_status); }; then
1435 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1436 case $ac_file in
1437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1439 break;;
1440 esac
1441 done
1442 else
1443 echo "$as_me: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1445 { { echo "$as_me:1445: error: cannot compute OBJEXT: cannot compile" >&5
1446 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1447 { (exit 1); exit 1; }; }
1450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1452 echo "$as_me:1452: result: $ac_cv_objext" >&5
1453 echo "${ECHO_T}$ac_cv_objext" >&6
1454 OBJEXT=$ac_cv_objext
1455 ac_objext=$OBJEXT
1456 echo "$as_me:1456: checking whether we are using the GNU C compiler" >&5
1457 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1458 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461 cat >conftest.$ac_ext <<_ACEOF
1462 #line 1462 "configure"
1463 #include "confdefs.h"
1466 main ()
1468 #ifndef __GNUC__
1469 choke me
1470 #endif
1473 return 0;
1475 _ACEOF
1476 rm -f conftest.$ac_objext
1477 if { (eval echo "$as_me:1477: \"$ac_compile\"") >&5
1478 (eval $ac_compile) 2>&5
1479 ac_status=$?
1480 echo "$as_me:1480: \$? = $ac_status" >&5
1481 (exit $ac_status); } &&
1482 { ac_try='test -s conftest.$ac_objext'
1483 { (eval echo "$as_me:1483: \"$ac_try\"") >&5
1484 (eval $ac_try) 2>&5
1485 ac_status=$?
1486 echo "$as_me:1486: \$? = $ac_status" >&5
1487 (exit $ac_status); }; }; then
1488 ac_compiler_gnu=yes
1489 else
1490 echo "$as_me: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 ac_compiler_gnu=no
1494 rm -f conftest.$ac_objext conftest.$ac_ext
1495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1498 echo "$as_me:1498: result: $ac_cv_c_compiler_gnu" >&5
1499 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1500 GCC=`test $ac_compiler_gnu = yes && echo yes`
1501 ac_test_CFLAGS=${CFLAGS+set}
1502 ac_save_CFLAGS=$CFLAGS
1503 CFLAGS="-g"
1504 echo "$as_me:1504: checking whether $CC accepts -g" >&5
1505 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1506 if test "${ac_cv_prog_cc_g+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509 cat >conftest.$ac_ext <<_ACEOF
1510 #line 1510 "configure"
1511 #include "confdefs.h"
1514 main ()
1518 return 0;
1520 _ACEOF
1521 rm -f conftest.$ac_objext
1522 if { (eval echo "$as_me:1522: \"$ac_compile\"") >&5
1523 (eval $ac_compile) 2>&5
1524 ac_status=$?
1525 echo "$as_me:1525: \$? = $ac_status" >&5
1526 (exit $ac_status); } &&
1527 { ac_try='test -s conftest.$ac_objext'
1528 { (eval echo "$as_me:1528: \"$ac_try\"") >&5
1529 (eval $ac_try) 2>&5
1530 ac_status=$?
1531 echo "$as_me:1531: \$? = $ac_status" >&5
1532 (exit $ac_status); }; }; then
1533 ac_cv_prog_cc_g=yes
1534 else
1535 echo "$as_me: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1537 ac_cv_prog_cc_g=no
1539 rm -f conftest.$ac_objext conftest.$ac_ext
1541 echo "$as_me:1541: result: $ac_cv_prog_cc_g" >&5
1542 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1543 if test "$ac_test_CFLAGS" = set; then
1544 CFLAGS=$ac_save_CFLAGS
1545 elif test $ac_cv_prog_cc_g = yes; then
1546 if test "$GCC" = yes; then
1547 CFLAGS="-g -O2"
1548 else
1549 CFLAGS="-g"
1551 else
1552 if test "$GCC" = yes; then
1553 CFLAGS="-O2"
1554 else
1555 CFLAGS=
1558 # Some people use a C++ compiler to compile C. Since we use `exit',
1559 # in C++ we need to declare it. In case someone uses the same compiler
1560 # for both compiling C and C++ we need to have the C++ compiler decide
1561 # the declaration of exit, since it's the most demanding environment.
1562 cat >conftest.$ac_ext <<_ACEOF
1563 #ifndef __cplusplus
1564 choke me
1565 #endif
1566 _ACEOF
1567 rm -f conftest.$ac_objext
1568 if { (eval echo "$as_me:1568: \"$ac_compile\"") >&5
1569 (eval $ac_compile) 2>&5
1570 ac_status=$?
1571 echo "$as_me:1571: \$? = $ac_status" >&5
1572 (exit $ac_status); } &&
1573 { ac_try='test -s conftest.$ac_objext'
1574 { (eval echo "$as_me:1574: \"$ac_try\"") >&5
1575 (eval $ac_try) 2>&5
1576 ac_status=$?
1577 echo "$as_me:1577: \$? = $ac_status" >&5
1578 (exit $ac_status); }; }; then
1579 for ac_declaration in \
1581 '#include <stdlib.h>' \
1582 'extern "C" void std::exit (int) throw (); using std::exit;' \
1583 'extern "C" void std::exit (int); using std::exit;' \
1584 'extern "C" void exit (int) throw ();' \
1585 'extern "C" void exit (int);' \
1586 'void exit (int);'
1588 cat >conftest.$ac_ext <<_ACEOF
1589 #line 1589 "configure"
1590 #include "confdefs.h"
1591 #include <stdlib.h>
1592 $ac_declaration
1594 main ()
1596 exit (42);
1598 return 0;
1600 _ACEOF
1601 rm -f conftest.$ac_objext
1602 if { (eval echo "$as_me:1602: \"$ac_compile\"") >&5
1603 (eval $ac_compile) 2>&5
1604 ac_status=$?
1605 echo "$as_me:1605: \$? = $ac_status" >&5
1606 (exit $ac_status); } &&
1607 { ac_try='test -s conftest.$ac_objext'
1608 { (eval echo "$as_me:1608: \"$ac_try\"") >&5
1609 (eval $ac_try) 2>&5
1610 ac_status=$?
1611 echo "$as_me:1611: \$? = $ac_status" >&5
1612 (exit $ac_status); }; }; then
1614 else
1615 echo "$as_me: failed program was:" >&5
1616 cat conftest.$ac_ext >&5
1617 continue
1619 rm -f conftest.$ac_objext conftest.$ac_ext
1620 cat >conftest.$ac_ext <<_ACEOF
1621 #line 1621 "configure"
1622 #include "confdefs.h"
1623 $ac_declaration
1625 main ()
1627 exit (42);
1629 return 0;
1631 _ACEOF
1632 rm -f conftest.$ac_objext
1633 if { (eval echo "$as_me:1633: \"$ac_compile\"") >&5
1634 (eval $ac_compile) 2>&5
1635 ac_status=$?
1636 echo "$as_me:1636: \$? = $ac_status" >&5
1637 (exit $ac_status); } &&
1638 { ac_try='test -s conftest.$ac_objext'
1639 { (eval echo "$as_me:1639: \"$ac_try\"") >&5
1640 (eval $ac_try) 2>&5
1641 ac_status=$?
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); }; }; then
1644 break
1645 else
1646 echo "$as_me: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1649 rm -f conftest.$ac_objext conftest.$ac_ext
1650 done
1651 rm -f conftest*
1652 if test -n "$ac_declaration"; then
1653 echo '#ifdef __cplusplus' >>confdefs.h
1654 echo $ac_declaration >>confdefs.h
1655 echo '#endif' >>confdefs.h
1658 else
1659 echo "$as_me: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1662 rm -f conftest.$ac_objext conftest.$ac_ext
1663 ac_ext=c
1664 ac_cpp='$CPP $CPPFLAGS'
1665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1669 ac_ext=cc
1670 ac_cpp='$CXXCPP $CPPFLAGS'
1671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1674 if test -n "$ac_tool_prefix"; then
1675 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1679 echo "$as_me:1679: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_CXX+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 if test -n "$CXX"; then
1685 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1686 else
1687 ac_save_IFS=$IFS; IFS=$ac_path_separator
1688 ac_dummy="$PATH"
1689 for ac_dir in $ac_dummy; do
1690 IFS=$ac_save_IFS
1691 test -z "$ac_dir" && ac_dir=.
1692 $as_executable_p "$ac_dir/$ac_word" || continue
1693 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1694 echo "$as_me:1694: found $ac_dir/$ac_word" >&5
1695 break
1696 done
1700 CXX=$ac_cv_prog_CXX
1701 if test -n "$CXX"; then
1702 echo "$as_me:1702: result: $CXX" >&5
1703 echo "${ECHO_T}$CXX" >&6
1704 else
1705 echo "$as_me:1705: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1709 test -n "$CXX" && break
1710 done
1712 if test -z "$CXX"; then
1713 ac_ct_CXX=$CXX
1714 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1716 # Extract the first word of "$ac_prog", so it can be a program name with args.
1717 set dummy $ac_prog; ac_word=$2
1718 echo "$as_me:1718: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723 if test -n "$ac_ct_CXX"; then
1724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1725 else
1726 ac_save_IFS=$IFS; IFS=$ac_path_separator
1727 ac_dummy="$PATH"
1728 for ac_dir in $ac_dummy; do
1729 IFS=$ac_save_IFS
1730 test -z "$ac_dir" && ac_dir=.
1731 $as_executable_p "$ac_dir/$ac_word" || continue
1732 ac_cv_prog_ac_ct_CXX="$ac_prog"
1733 echo "$as_me:1733: found $ac_dir/$ac_word" >&5
1734 break
1735 done
1739 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1740 if test -n "$ac_ct_CXX"; then
1741 echo "$as_me:1741: result: $ac_ct_CXX" >&5
1742 echo "${ECHO_T}$ac_ct_CXX" >&6
1743 else
1744 echo "$as_me:1744: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 test -n "$ac_ct_CXX" && break
1749 done
1750 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1752 CXX=$ac_ct_CXX
1755 # Provide some information about the compiler.
1756 echo "$as_me:1756:" \
1757 "checking for C++ compiler version" >&5
1758 ac_compiler=`set X $ac_compile; echo $2`
1759 { (eval echo "$as_me:1759: \"$ac_compiler --version </dev/null >&5\"") >&5
1760 (eval $ac_compiler --version </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:1762: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764 { (eval echo "$as_me:1764: \"$ac_compiler -v </dev/null >&5\"") >&5
1765 (eval $ac_compiler -v </dev/null >&5) 2>&5
1766 ac_status=$?
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }
1769 { (eval echo "$as_me:1769: \"$ac_compiler -V </dev/null >&5\"") >&5
1770 (eval $ac_compiler -V </dev/null >&5) 2>&5
1771 ac_status=$?
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }
1775 echo "$as_me:1775: checking whether we are using the GNU C++ compiler" >&5
1776 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1777 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780 cat >conftest.$ac_ext <<_ACEOF
1781 #line 1781 "configure"
1782 #include "confdefs.h"
1785 main ()
1787 #ifndef __GNUC__
1788 choke me
1789 #endif
1792 return 0;
1794 _ACEOF
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1798 ac_status=$?
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1803 (eval $ac_try) 2>&5
1804 ac_status=$?
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1807 ac_compiler_gnu=yes
1808 else
1809 echo "$as_me: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 ac_compiler_gnu=no
1813 rm -f conftest.$ac_objext conftest.$ac_ext
1814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1817 echo "$as_me:1817: result: $ac_cv_cxx_compiler_gnu" >&5
1818 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1819 GXX=`test $ac_compiler_gnu = yes && echo yes`
1820 ac_test_CXXFLAGS=${CXXFLAGS+set}
1821 ac_save_CXXFLAGS=$CXXFLAGS
1822 CXXFLAGS="-g"
1823 echo "$as_me:1823: checking whether $CXX accepts -g" >&5
1824 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1825 if test "${ac_cv_prog_cxx_g+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828 cat >conftest.$ac_ext <<_ACEOF
1829 #line 1829 "configure"
1830 #include "confdefs.h"
1833 main ()
1837 return 0;
1839 _ACEOF
1840 rm -f conftest.$ac_objext
1841 if { (eval echo "$as_me:1841: \"$ac_compile\"") >&5
1842 (eval $ac_compile) 2>&5
1843 ac_status=$?
1844 echo "$as_me:1844: \$? = $ac_status" >&5
1845 (exit $ac_status); } &&
1846 { ac_try='test -s conftest.$ac_objext'
1847 { (eval echo "$as_me:1847: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:1850: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 ac_cv_prog_cxx_g=yes
1853 else
1854 echo "$as_me: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 ac_cv_prog_cxx_g=no
1858 rm -f conftest.$ac_objext conftest.$ac_ext
1860 echo "$as_me:1860: result: $ac_cv_prog_cxx_g" >&5
1861 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1862 if test "$ac_test_CXXFLAGS" = set; then
1863 CXXFLAGS=$ac_save_CXXFLAGS
1864 elif test $ac_cv_prog_cxx_g = yes; then
1865 if test "$GXX" = yes; then
1866 CXXFLAGS="-g -O2"
1867 else
1868 CXXFLAGS="-g"
1870 else
1871 if test "$GXX" = yes; then
1872 CXXFLAGS="-O2"
1873 else
1874 CXXFLAGS=
1877 for ac_declaration in \
1879 '#include <stdlib.h>' \
1880 'extern "C" void std::exit (int) throw (); using std::exit;' \
1881 'extern "C" void std::exit (int); using std::exit;' \
1882 'extern "C" void exit (int) throw ();' \
1883 'extern "C" void exit (int);' \
1884 'void exit (int);'
1886 cat >conftest.$ac_ext <<_ACEOF
1887 #line 1887 "configure"
1888 #include "confdefs.h"
1889 #include <stdlib.h>
1890 $ac_declaration
1892 main ()
1894 exit (42);
1896 return 0;
1898 _ACEOF
1899 rm -f conftest.$ac_objext
1900 if { (eval echo "$as_me:1900: \"$ac_compile\"") >&5
1901 (eval $ac_compile) 2>&5
1902 ac_status=$?
1903 echo "$as_me:1903: \$? = $ac_status" >&5
1904 (exit $ac_status); } &&
1905 { ac_try='test -s conftest.$ac_objext'
1906 { (eval echo "$as_me:1906: \"$ac_try\"") >&5
1907 (eval $ac_try) 2>&5
1908 ac_status=$?
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit $ac_status); }; }; then
1912 else
1913 echo "$as_me: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1915 continue
1917 rm -f conftest.$ac_objext conftest.$ac_ext
1918 cat >conftest.$ac_ext <<_ACEOF
1919 #line 1919 "configure"
1920 #include "confdefs.h"
1921 $ac_declaration
1923 main ()
1925 exit (42);
1927 return 0;
1929 _ACEOF
1930 rm -f conftest.$ac_objext
1931 if { (eval echo "$as_me:1931: \"$ac_compile\"") >&5
1932 (eval $ac_compile) 2>&5
1933 ac_status=$?
1934 echo "$as_me:1934: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -s conftest.$ac_objext'
1937 { (eval echo "$as_me:1937: \"$ac_try\"") >&5
1938 (eval $ac_try) 2>&5
1939 ac_status=$?
1940 echo "$as_me:1940: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1942 break
1943 else
1944 echo "$as_me: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1947 rm -f conftest.$ac_objext conftest.$ac_ext
1948 done
1949 rm -f conftest*
1950 if test -n "$ac_declaration"; then
1951 echo '#ifdef __cplusplus' >>confdefs.h
1952 echo $ac_declaration >>confdefs.h
1953 echo '#endif' >>confdefs.h
1956 ac_ext=c
1957 ac_cpp='$CPP $CPPFLAGS'
1958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 ac_ext=cc
1963 ac_cpp='$CXXCPP $CPPFLAGS'
1964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1968 if test "$cross_compiling" = no; then
1969 echo "$as_me:1969: checking that C++ compiler can compile simple program" >&5
1970 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
1972 if test "$cross_compiling" = yes; then
1974 else
1975 cat >conftest.$ac_ext <<_ACEOF
1976 #line 1976 "configure"
1977 #include "confdefs.h"
1978 int main() { return 0; }
1979 _ACEOF
1980 rm -f conftest$ac_exeext
1981 if { (eval echo "$as_me:1981: \"$ac_link\"") >&5
1982 (eval $ac_link) 2>&5
1983 ac_status=$?
1984 echo "$as_me:1984: \$? = $ac_status" >&5
1985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1986 { (eval echo "$as_me:1986: \"$ac_try\"") >&5
1987 (eval $ac_try) 2>&5
1988 ac_status=$?
1989 echo "$as_me:1989: \$? = $ac_status" >&5
1990 (exit $ac_status); }; }; then
1991 echo "$as_me:1991: result: yes" >&5
1992 echo "${ECHO_T}yes" >&6
1993 else
1994 echo "$as_me: program exited with status $ac_status" >&5
1995 echo "$as_me: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1997 echo "$as_me:1997: result: no" >&5
1998 echo "${ECHO_T}no" >&6;{ { echo "$as_me:1998: error: a working C++ compiler is required" >&5
1999 echo "$as_me: error: a working C++ compiler is required" >&2;}
2000 { (exit 1); exit 1; }; }
2002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2004 if test "$cross_compiling" = no; then
2005 echo "$as_me:2005: checking that C++ static constructors and destructors are called" >&5
2006 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
2008 if test "$cross_compiling" = yes; then
2010 else
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line 2012 "configure"
2013 #include "confdefs.h"
2015 extern "C" {
2016 void _exit(int);
2018 int i;
2019 struct A {
2020 char dummy;
2021 A() { i = 1; }
2022 ~A() { if (i == 1) _exit(0); }
2024 A a;
2025 int main() { return 1; }
2027 _ACEOF
2028 rm -f conftest$ac_exeext
2029 if { (eval echo "$as_me:2029: \"$ac_link\"") >&5
2030 (eval $ac_link) 2>&5
2031 ac_status=$?
2032 echo "$as_me:2032: \$? = $ac_status" >&5
2033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2034 { (eval echo "$as_me:2034: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:2037: \$? = $ac_status" >&5
2038 (exit $ac_status); }; }; then
2039 echo "$as_me:2039: result: yes" >&5
2040 echo "${ECHO_T}yes" >&6
2041 else
2042 echo "$as_me: program exited with status $ac_status" >&5
2043 echo "$as_me: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 echo "$as_me:2045: result: no" >&5
2046 echo "${ECHO_T}no" >&6;{ { echo "$as_me:2046: error: a working C++ compiler is required" >&5
2047 echo "$as_me: error: a working C++ compiler is required" >&2;}
2048 { (exit 1); exit 1; }; }
2050 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2052 echo "$as_me:2052: checking that header files support C++" >&5
2053 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
2054 cat >conftest.$ac_ext <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2057 #include <stdio.h>
2059 main ()
2061 fopen(0, 0);
2063 return 0;
2065 _ACEOF
2066 rm -f conftest.$ac_objext conftest$ac_exeext
2067 if { (eval echo "$as_me:2067: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2069 ac_status=$?
2070 echo "$as_me:2070: \$? = $ac_status" >&5
2071 (exit $ac_status); } &&
2072 { ac_try='test -s conftest$ac_exeext'
2073 { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2074 (eval $ac_try) 2>&5
2075 ac_status=$?
2076 echo "$as_me:2076: \$? = $ac_status" >&5
2077 (exit $ac_status); }; }; then
2078 echo "$as_me:2078: result: yes" >&5
2079 echo "${ECHO_T}yes" >&6
2080 else
2081 echo "$as_me: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2083 echo "$as_me:2083: result: no" >&5
2084 echo "${ECHO_T}no" >&6;{ { echo "$as_me:2084: 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
2085 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;}
2086 { (exit 1); exit 1; }; }
2088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2089 ac_ext=c
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 echo "$as_me:2095: checking whether character set is EBCDIC" >&5
2096 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
2097 cat >conftest.$ac_ext <<_ACEOF
2098 #line 2098 "configure"
2099 #include "confdefs.h"
2102 main ()
2104 /* Treat any failure as ASCII for compatibility with existing art.
2105 Use compile-time rather than run-time tests for cross-compiler
2106 tolerance. */
2107 #if '0' != 240
2108 make an error "Character set is not EBCDIC"
2109 #endif
2111 return 0;
2113 _ACEOF
2114 rm -f conftest.$ac_objext
2115 if { (eval echo "$as_me:2115: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2117 ac_status=$?
2118 echo "$as_me:2118: \$? = $ac_status" >&5
2119 (exit $ac_status); } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:2121: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:2124: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 groff_cv_ebcdic="yes"
2127 TTYDEVDIRS="font/devcp1047"
2128 echo "$as_me:2128: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6
2131 cat >>confdefs.h <<\EOF
2132 #define IS_EBCDIC_HOST 1
2135 else
2136 echo "$as_me: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2138 groff_cv_ebcdic="no"
2139 TTYDEVDIRS="font/devascii font/devlatin1 font/devutf8"
2140 echo "$as_me:2140: result: no" >&5
2141 echo "${ECHO_T}no" >&6
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2145 if test "$groff_cv_ebcdic" = "yes"; then
2146 echo "$as_me:2146: checking for OS/390 Unix" >&5
2147 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
2148 case `uname` in
2149 OS/390)
2150 CFLAGS="$CFLAGS -D_ALL_SOURCE"
2151 echo "$as_me:2151: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6 ;;
2154 echo "$as_me:2154: result: no" >&5
2155 echo "${ECHO_T}no" >&6 ;;
2156 esac
2158 if test -z "$PSPRINT"; then
2159 for ac_prog in lpr
2161 # Extract the first word of "$ac_prog", so it can be a program name with args.
2162 set dummy $ac_prog; ac_word=$2
2163 echo "$as_me:2163: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_LPR+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 if test -n "$LPR"; then
2169 ac_cv_prog_LPR="$LPR" # Let the user override the test.
2170 else
2171 ac_save_IFS=$IFS; IFS=$ac_path_separator
2172 ac_dummy="$PATH"
2173 for ac_dir in $ac_dummy; do
2174 IFS=$ac_save_IFS
2175 test -z "$ac_dir" && ac_dir=.
2176 $as_executable_p "$ac_dir/$ac_word" || continue
2177 ac_cv_prog_LPR="$ac_prog"
2178 echo "$as_me:2178: found $ac_dir/$ac_word" >&5
2179 break
2180 done
2184 LPR=$ac_cv_prog_LPR
2185 if test -n "$LPR"; then
2186 echo "$as_me:2186: result: $LPR" >&5
2187 echo "${ECHO_T}$LPR" >&6
2188 else
2189 echo "$as_me:2189: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2193 test -n "$LPR" && break
2194 done
2196 for ac_prog in lp
2198 # Extract the first word of "$ac_prog", so it can be a program name with args.
2199 set dummy $ac_prog; ac_word=$2
2200 echo "$as_me:2200: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_LP+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 if test -n "$LP"; then
2206 ac_cv_prog_LP="$LP" # Let the user override the test.
2207 else
2208 ac_save_IFS=$IFS; IFS=$ac_path_separator
2209 ac_dummy="$PATH"
2210 for ac_dir in $ac_dummy; do
2211 IFS=$ac_save_IFS
2212 test -z "$ac_dir" && ac_dir=.
2213 $as_executable_p "$ac_dir/$ac_word" || continue
2214 ac_cv_prog_LP="$ac_prog"
2215 echo "$as_me:2215: found $ac_dir/$ac_word" >&5
2216 break
2217 done
2221 LP=$ac_cv_prog_LP
2222 if test -n "$LP"; then
2223 echo "$as_me:2223: result: $LP" >&5
2224 echo "${ECHO_T}$LP" >&6
2225 else
2226 echo "$as_me:2226: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2230 test -n "$LP" && break
2231 done
2233 if test -n "$LPR" && test -n "$LP"; then
2234 # HP-UX provides an lpr command that emulates lpr using lp,
2235 # but it doesn't have lpq; in this case we want to use lp
2236 # rather than lpr.
2237 for ac_prog in lpq
2239 # Extract the first word of "$ac_prog", so it can be a program name with args.
2240 set dummy $ac_prog; ac_word=$2
2241 echo "$as_me:2241: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243 if test "${ac_cv_prog_LPQ+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 if test -n "$LPQ"; then
2247 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
2248 else
2249 ac_save_IFS=$IFS; IFS=$ac_path_separator
2250 ac_dummy="$PATH"
2251 for ac_dir in $ac_dummy; do
2252 IFS=$ac_save_IFS
2253 test -z "$ac_dir" && ac_dir=.
2254 $as_executable_p "$ac_dir/$ac_word" || continue
2255 ac_cv_prog_LPQ="$ac_prog"
2256 echo "$as_me:2256: found $ac_dir/$ac_word" >&5
2257 break
2258 done
2262 LPQ=$ac_cv_prog_LPQ
2263 if test -n "$LPQ"; then
2264 echo "$as_me:2264: result: $LPQ" >&5
2265 echo "${ECHO_T}$LPQ" >&6
2266 else
2267 echo "$as_me:2267: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2271 test -n "$LPQ" && break
2272 done
2274 test -n "$LPQ" || LPR=
2276 if test -n "$LPR"; then
2277 PSPRINT="$LPR"
2278 elif test -n "$LP"; then
2279 PSPRINT="$LP"
2283 echo "$as_me:2283: checking for command to use for printing PostScript files" >&5
2284 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
2285 echo "$as_me:2285: result: $PSPRINT" >&5
2286 echo "${ECHO_T}$PSPRINT" >&6
2287 # Figure out DVIPRINT from PSPRINT.
2288 echo "$as_me:2288: checking for command to use for printing dvi files" >&5
2289 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
2290 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
2291 if test "X$PSPRINT" = "Xlpr"; then
2292 DVIPRINT="lpr -d"
2293 else
2294 DVIPRINT="$PSPRINT"
2298 echo "$as_me:2298: result: $DVIPRINT" >&5
2299 echo "${ECHO_T}$DVIPRINT" >&6
2300 # Extract the first word of "perl", so it can be a program name with args.
2301 set dummy perl; ac_word=$2
2302 echo "$as_me:2302: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_path_PERLPATH+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 case $PERLPATH in
2308 [\\/]* | ?:[\\/]*)
2309 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
2312 ac_save_IFS=$IFS; IFS=$ac_path_separator
2313 ac_dummy="$PATH"
2314 for ac_dir in $ac_dummy; do
2315 IFS=$ac_save_IFS
2316 test -z "$ac_dir" && ac_dir=.
2317 if $as_executable_p "$ac_dir/$ac_word"; then
2318 ac_cv_path_PERLPATH="$ac_dir/$ac_word"
2319 echo "$as_me:2319: found $ac_dir/$ac_word" >&5
2320 break
2322 done
2324 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
2326 esac
2328 PERLPATH=$ac_cv_path_PERLPATH
2330 if test -n "$PERLPATH"; then
2331 echo "$as_me:2331: result: $PERLPATH" >&5
2332 echo "${ECHO_T}$PERLPATH" >&6
2333 else
2334 echo "$as_me:2334: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2338 for ac_prog in byacc 'bison -y'
2340 # Extract the first word of "$ac_prog", so it can be a program name with args.
2341 set dummy $ac_prog; ac_word=$2
2342 echo "$as_me:2342: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2344 if test "${ac_cv_prog_YACC+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347 if test -n "$YACC"; then
2348 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2349 else
2350 ac_save_IFS=$IFS; IFS=$ac_path_separator
2351 ac_dummy="$PATH"
2352 for ac_dir in $ac_dummy; do
2353 IFS=$ac_save_IFS
2354 test -z "$ac_dir" && ac_dir=.
2355 $as_executable_p "$ac_dir/$ac_word" || continue
2356 ac_cv_prog_YACC="$ac_prog"
2357 echo "$as_me:2357: found $ac_dir/$ac_word" >&5
2358 break
2359 done
2363 YACC=$ac_cv_prog_YACC
2364 if test -n "$YACC"; then
2365 echo "$as_me:2365: result: $YACC" >&5
2366 echo "${ECHO_T}$YACC" >&6
2367 else
2368 echo "$as_me:2368: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2372 test -n "$YACC" && break
2373 done
2374 test -n "$YACC" || YACC="yacc"
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2379 echo "$as_me:2379: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2381 if test "${ac_cv_prog_RANLIB+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384 if test -n "$RANLIB"; then
2385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2386 else
2387 ac_save_IFS=$IFS; IFS=$ac_path_separator
2388 ac_dummy="$PATH"
2389 for ac_dir in $ac_dummy; do
2390 IFS=$ac_save_IFS
2391 test -z "$ac_dir" && ac_dir=.
2392 $as_executable_p "$ac_dir/$ac_word" || continue
2393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2394 echo "$as_me:2394: found $ac_dir/$ac_word" >&5
2395 break
2396 done
2400 RANLIB=$ac_cv_prog_RANLIB
2401 if test -n "$RANLIB"; then
2402 echo "$as_me:2402: result: $RANLIB" >&5
2403 echo "${ECHO_T}$RANLIB" >&6
2404 else
2405 echo "$as_me:2405: result: no" >&5
2406 echo "${ECHO_T}no" >&6
2410 if test -z "$ac_cv_prog_RANLIB"; then
2411 ac_ct_RANLIB=$RANLIB
2412 # Extract the first word of "ranlib", so it can be a program name with args.
2413 set dummy ranlib; ac_word=$2
2414 echo "$as_me:2414: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 if test -n "$ac_ct_RANLIB"; then
2420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2421 else
2422 ac_save_IFS=$IFS; IFS=$ac_path_separator
2423 ac_dummy="$PATH"
2424 for ac_dir in $ac_dummy; do
2425 IFS=$ac_save_IFS
2426 test -z "$ac_dir" && ac_dir=.
2427 $as_executable_p "$ac_dir/$ac_word" || continue
2428 ac_cv_prog_ac_ct_RANLIB="ranlib"
2429 echo "$as_me:2429: found $ac_dir/$ac_word" >&5
2430 break
2431 done
2433 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2437 if test -n "$ac_ct_RANLIB"; then
2438 echo "$as_me:2438: result: $ac_ct_RANLIB" >&5
2439 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2440 else
2441 echo "$as_me:2441: result: no" >&5
2442 echo "${ECHO_T}no" >&6
2445 RANLIB=$ac_ct_RANLIB
2446 else
2447 RANLIB="$ac_cv_prog_RANLIB"
2450 ac_aux_dir=
2451 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2452 if test -f $ac_dir/install-sh; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/install-sh -c"
2455 break
2456 elif test -f $ac_dir/install.sh; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/install.sh -c"
2459 break
2460 elif test -f $ac_dir/shtool; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/shtool install -c"
2463 break
2465 done
2466 if test -z "$ac_aux_dir"; then
2467 { { echo "$as_me:2467: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2468 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2469 { (exit 1); exit 1; }; }
2471 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2472 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2473 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2475 ac_dir=`cd $ac_aux_dir; pwd`
2476 ac_install_sh="$ac_dir/install-sh -c"
2477 # Find a good install program. We prefer a C program (faster),
2478 # so one script is as good as another. But avoid the broken or
2479 # incompatible versions:
2480 # SysV /etc/install, /usr/sbin/install
2481 # SunOS /usr/etc/install
2482 # IRIX /sbin/install
2483 # AIX /bin/install
2484 # AmigaOS /C/install, which installs bootblocks on floppy discs
2485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2488 # ./install, which can be erroneously created by make from ./install.sh.
2489 echo "$as_me:2489: checking for a BSD compatible install" >&5
2490 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2491 if test -z "$INSTALL"; then
2492 if test "${ac_cv_path_install+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495 ac_save_IFS=$IFS; IFS=$ac_path_separator
2496 for ac_dir in $PATH; do
2497 IFS=$ac_save_IFS
2498 # Account for people who put trailing slashes in PATH elements.
2499 case $ac_dir/ in
2500 / | ./ | .// | /cC/* \
2501 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2502 | /usr/ucb/* ) ;;
2504 # OSF1 and SCO ODT 3.0 have their own names for install.
2505 # Don't use installbsd from OSF since it installs stuff as root
2506 # by default.
2507 for ac_prog in ginstall scoinst install; do
2508 if $as_executable_p "$ac_dir/$ac_prog"; then
2509 if test $ac_prog = install &&
2510 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2511 # AIX install. It has an incompatible calling convention.
2513 elif test $ac_prog = install &&
2514 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2515 # program-specific install script used by HP pwplus--don't use.
2517 else
2518 ac_cv_path_install="$ac_dir/$ac_prog -c"
2519 break 2
2522 done
2524 esac
2525 done
2528 if test "${ac_cv_path_install+set}" = set; then
2529 INSTALL=$ac_cv_path_install
2530 else
2531 # As a last resort, use the slow shell script. We don't cache a
2532 # path for INSTALL within a source directory, because that will
2533 # break other packages using the cache if that directory is
2534 # removed, or if the path is relative.
2535 INSTALL=$ac_install_sh
2538 echo "$as_me:2538: result: $INSTALL" >&5
2539 echo "${ECHO_T}$INSTALL" >&6
2541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542 # It thinks the first close brace ends the variable substitution.
2543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2549 echo "$as_me:2549: checking whether ln -s works" >&5
2550 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2551 LN_S=$as_ln_s
2552 if test "$LN_S" = "ln -s"; then
2553 echo "$as_me:2553: result: yes" >&5
2554 echo "${ECHO_T}yes" >&6
2555 else
2556 echo "$as_me:2556: result: no, using $LN_S" >&5
2557 echo "${ECHO_T}no, using $LN_S" >&6
2560 echo "$as_me:2560: checking for csh hash hack" >&5
2561 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
2562 cat <<EOF >conftest.sh
2563 #!/bin/sh
2564 true || exit 0
2565 export PATH || exit 0
2566 exit 1
2568 chmod +x conftest.sh
2569 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
2570 echo "$as_me:2570: result: yes" >&5
2571 echo "${ECHO_T}yes" >&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
2572 else
2573 echo "$as_me:2573: result: no" >&5
2574 echo "${ECHO_T}no" >&6; SH_SCRIPT_SED_CMD='1s/a/a/'
2576 rm -f conftest.sh
2578 ac_ext=c
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583 echo "$as_me:2583: checking how to run the C preprocessor" >&5
2584 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2585 # On Suns, sometimes $CPP names a directory.
2586 if test -n "$CPP" && test -d "$CPP"; then
2587 CPP=
2589 if test -z "$CPP"; then
2590 if test "${ac_cv_prog_CPP+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 # Double quotes because CPP needs to be expanded
2594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2596 ac_preproc_ok=false
2597 for ac_c_preproc_warn_flag in '' yes
2599 # Use a header file that comes with gcc, so configuring glibc
2600 # with a fresh cross-compiler works.
2601 # On the NeXT, cc -E runs the code through the compiler's parser,
2602 # not just through cpp. "Syntax error" is here to catch this case.
2603 cat >conftest.$ac_ext <<_ACEOF
2604 #line 2604 "configure"
2605 #include "confdefs.h"
2606 #include <assert.h>
2607 Syntax error
2608 _ACEOF
2609 if { (eval echo "$as_me:2609: \"$ac_cpp conftest.$ac_ext\"") >&5
2610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2611 ac_status=$?
2612 egrep -v '^ *\+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:2615: \$? = $ac_status" >&5
2616 (exit $ac_status); } >/dev/null; then
2617 if test -s conftest.err; then
2618 ac_cpp_err=$ac_c_preproc_warn_flag
2619 else
2620 ac_cpp_err=
2622 else
2623 ac_cpp_err=yes
2625 if test -z "$ac_cpp_err"; then
2627 else
2628 echo "$as_me: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2630 # Broken: fails on valid input.
2631 continue
2633 rm -f conftest.err conftest.$ac_ext
2635 # OK, works on sane cases. Now check whether non-existent headers
2636 # can be detected and how.
2637 cat >conftest.$ac_ext <<_ACEOF
2638 #line 2638 "configure"
2639 #include "confdefs.h"
2640 #include <ac_nonexistent.h>
2641 _ACEOF
2642 if { (eval echo "$as_me:2642: \"$ac_cpp conftest.$ac_ext\"") >&5
2643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2644 ac_status=$?
2645 egrep -v '^ *\+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:2648: \$? = $ac_status" >&5
2649 (exit $ac_status); } >/dev/null; then
2650 if test -s conftest.err; then
2651 ac_cpp_err=$ac_c_preproc_warn_flag
2652 else
2653 ac_cpp_err=
2655 else
2656 ac_cpp_err=yes
2658 if test -z "$ac_cpp_err"; then
2659 # Broken: success on invalid input.
2660 continue
2661 else
2662 echo "$as_me: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2664 # Passes both tests.
2665 ac_preproc_ok=:
2666 break
2668 rm -f conftest.err conftest.$ac_ext
2670 done
2671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2672 rm -f conftest.err conftest.$ac_ext
2673 if $ac_preproc_ok; then
2674 break
2677 done
2678 ac_cv_prog_CPP=$CPP
2681 CPP=$ac_cv_prog_CPP
2682 else
2683 ac_cv_prog_CPP=$CPP
2685 echo "$as_me:2685: result: $CPP" >&5
2686 echo "${ECHO_T}$CPP" >&6
2687 ac_preproc_ok=false
2688 for ac_c_preproc_warn_flag in '' yes
2690 # Use a header file that comes with gcc, so configuring glibc
2691 # with a fresh cross-compiler works.
2692 # On the NeXT, cc -E runs the code through the compiler's parser,
2693 # not just through cpp. "Syntax error" is here to catch this case.
2694 cat >conftest.$ac_ext <<_ACEOF
2695 #line 2695 "configure"
2696 #include "confdefs.h"
2697 #include <assert.h>
2698 Syntax error
2699 _ACEOF
2700 if { (eval echo "$as_me:2700: \"$ac_cpp conftest.$ac_ext\"") >&5
2701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2702 ac_status=$?
2703 egrep -v '^ *\+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:2706: \$? = $ac_status" >&5
2707 (exit $ac_status); } >/dev/null; then
2708 if test -s conftest.err; then
2709 ac_cpp_err=$ac_c_preproc_warn_flag
2710 else
2711 ac_cpp_err=
2713 else
2714 ac_cpp_err=yes
2716 if test -z "$ac_cpp_err"; then
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2721 # Broken: fails on valid input.
2722 continue
2724 rm -f conftest.err conftest.$ac_ext
2726 # OK, works on sane cases. Now check whether non-existent headers
2727 # can be detected and how.
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #line 2729 "configure"
2730 #include "confdefs.h"
2731 #include <ac_nonexistent.h>
2732 _ACEOF
2733 if { (eval echo "$as_me:2733: \"$ac_cpp conftest.$ac_ext\"") >&5
2734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2735 ac_status=$?
2736 egrep -v '^ *\+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:2739: \$? = $ac_status" >&5
2740 (exit $ac_status); } >/dev/null; then
2741 if test -s conftest.err; then
2742 ac_cpp_err=$ac_c_preproc_warn_flag
2743 else
2744 ac_cpp_err=
2746 else
2747 ac_cpp_err=yes
2749 if test -z "$ac_cpp_err"; then
2750 # Broken: success on invalid input.
2751 continue
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 # Passes both tests.
2756 ac_preproc_ok=:
2757 break
2759 rm -f conftest.err conftest.$ac_ext
2761 done
2762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2763 rm -f conftest.err conftest.$ac_ext
2764 if $ac_preproc_ok; then
2766 else
2767 { { echo "$as_me:2767: error: C preprocessor \"$CPP\" fails sanity check" >&5
2768 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2769 { (exit 1); exit 1; }; }
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
2779 string.h strings.h math.h stdint.h sys/time.h
2781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2782 echo "$as_me:2782: checking for $ac_header" >&5
2783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 cat >conftest.$ac_ext <<_ACEOF
2788 #line 2788 "configure"
2789 #include "confdefs.h"
2790 #include <$ac_header>
2791 _ACEOF
2792 if { (eval echo "$as_me:2792: \"$ac_cpp conftest.$ac_ext\"") >&5
2793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794 ac_status=$?
2795 egrep -v '^ *\+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
2798 echo "$as_me:2798: \$? = $ac_status" >&5
2799 (exit $ac_status); } >/dev/null; then
2800 if test -s conftest.err; then
2801 ac_cpp_err=$ac_c_preproc_warn_flag
2802 else
2803 ac_cpp_err=
2805 else
2806 ac_cpp_err=yes
2808 if test -z "$ac_cpp_err"; then
2809 eval "$as_ac_Header=yes"
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 cat conftest.$ac_ext >&5
2813 eval "$as_ac_Header=no"
2815 rm -f conftest.err conftest.$ac_ext
2817 echo "$as_me:2817: result: `eval echo '${'$as_ac_Header'}'`" >&5
2818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2820 cat >>confdefs.h <<EOF
2821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2825 done
2827 echo "$as_me:2827: checking for ISC 3.x or 4.x" >&5
2828 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
2829 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
2830 then
2831 echo "$as_me:2831: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6
2834 cat >>confdefs.h <<\EOF
2835 #define _SYSV3 1
2838 else
2839 echo "$as_me:2839: result: no" >&5
2840 echo "${ECHO_T}no" >&6
2842 echo "$as_me:2842: checking whether -D_POSIX_SOURCE is necessary" >&5
2843 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
2844 ac_ext=cc
2845 ac_cpp='$CXXCPP $CPPFLAGS'
2846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #line 2851 "configure"
2852 #include "confdefs.h"
2853 #include <stdio.h>
2854 extern "C" { void fileno(int); }
2856 main ()
2860 return 0;
2862 _ACEOF
2863 rm -f conftest.$ac_objext
2864 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2865 (eval $ac_compile) 2>&5
2866 ac_status=$?
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 echo "$as_me:2875: result: yes" >&5
2876 echo "${ECHO_T}yes" >&6;
2877 cat >>confdefs.h <<\EOF
2878 #define _POSIX_SOURCE 1
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2884 echo "$as_me:2884: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2887 rm -f conftest.$ac_objext conftest.$ac_ext
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894 ac_ext=cc
2895 ac_cpp='$CXXCPP $CPPFLAGS'
2896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2900 echo "$as_me:2900: checking for return type of srand" >&5
2901 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
2902 cat >conftest.$ac_ext <<_ACEOF
2903 #line 2903 "configure"
2904 #include "confdefs.h"
2905 #include <stdlib.h>
2906 extern "C" { void srand(unsigned int); }
2908 main ()
2912 return 0;
2914 _ACEOF
2915 rm -f conftest.$ac_objext
2916 if { (eval echo "$as_me:2916: \"$ac_compile\"") >&5
2917 (eval $ac_compile) 2>&5
2918 ac_status=$?
2919 echo "$as_me:2919: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:2922: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:2925: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 echo "$as_me:2927: result: void" >&5
2928 echo "${ECHO_T}void" >&6;
2929 cat >>confdefs.h <<\EOF
2930 #define RET_TYPE_SRAND_IS_VOID 1
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 echo "$as_me:2936: result: int" >&5
2937 echo "${ECHO_T}int" >&6
2939 rm -f conftest.$ac_objext conftest.$ac_ext
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 echo "$as_me:2946: checking whether gettimeofday must be declared" >&5
2947 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
2948 ac_ext=cc
2949 ac_cpp='$CXXCPP $CPPFLAGS'
2950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2954 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 cat >conftest.$ac_ext <<_ACEOF
2958 #line 2958 "configure"
2959 #include "confdefs.h"
2961 #include <stdio.h>
2962 #ifdef HAVE_STRING_H
2963 #include <string.h>
2964 #endif
2965 #ifdef HAVE_STRINGS_H
2966 #include <strings.h>
2967 #endif
2968 #ifdef HAVE_STDLIB_H
2969 #include <stdlib.h>
2970 #endif
2971 #ifdef HAVE_SYS_TIME_H
2972 #include <sys/time.h>
2973 #endif
2974 #ifdef HAVE_UNISTD_H
2975 #include <unistd.h>
2976 #endif
2977 #ifdef HAVE_MATH_H
2978 #include <math.h>
2979 #endif
2981 main ()
2983 char *(*pfn) = (char *(*)) gettimeofday
2985 return 0;
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2991 ac_status=$?
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 groff_cv_decl_needed_gettimeofday=no
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3004 groff_cv_decl_needed_gettimeofday=yes
3006 rm -f conftest.$ac_objext conftest.$ac_ext
3009 echo "$as_me:3009: result: $groff_cv_decl_needed_gettimeofday" >&5
3010 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
3011 if test $groff_cv_decl_needed_gettimeofday = yes; then
3013 cat >>confdefs.h <<\EOF
3014 #define NEED_DECLARATION_GETTIMEOFDAY 1
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 echo "$as_me:3024: checking whether hypot must be declared" >&5
3025 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
3026 ac_ext=cc
3027 ac_cpp='$CXXCPP $CPPFLAGS'
3028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3032 if test "${groff_cv_decl_needed_hypot+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035 cat >conftest.$ac_ext <<_ACEOF
3036 #line 3036 "configure"
3037 #include "confdefs.h"
3039 #include <stdio.h>
3040 #ifdef HAVE_STRING_H
3041 #include <string.h>
3042 #endif
3043 #ifdef HAVE_STRINGS_H
3044 #include <strings.h>
3045 #endif
3046 #ifdef HAVE_STDLIB_H
3047 #include <stdlib.h>
3048 #endif
3049 #ifdef HAVE_SYS_TIME_H
3050 #include <sys/time.h>
3051 #endif
3052 #ifdef HAVE_UNISTD_H
3053 #include <unistd.h>
3054 #endif
3055 #ifdef HAVE_MATH_H
3056 #include <math.h>
3057 #endif
3059 main ()
3061 char *(*pfn) = (char *(*)) hypot
3063 return 0;
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:3067: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>&5
3069 ac_status=$?
3070 echo "$as_me:3070: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (eval echo "$as_me:3073: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:3076: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 groff_cv_decl_needed_hypot=no
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 groff_cv_decl_needed_hypot=yes
3084 rm -f conftest.$ac_objext conftest.$ac_ext
3087 echo "$as_me:3087: result: $groff_cv_decl_needed_hypot" >&5
3088 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
3089 if test $groff_cv_decl_needed_hypot = yes; then
3091 cat >>confdefs.h <<\EOF
3092 #define NEED_DECLARATION_HYPOT 1
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 echo "$as_me:3102: checking whether popen must be declared" >&5
3103 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
3104 ac_ext=cc
3105 ac_cpp='$CXXCPP $CPPFLAGS'
3106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3110 if test "${groff_cv_decl_needed_popen+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #line 3114 "configure"
3115 #include "confdefs.h"
3117 #include <stdio.h>
3118 #ifdef HAVE_STRING_H
3119 #include <string.h>
3120 #endif
3121 #ifdef HAVE_STRINGS_H
3122 #include <strings.h>
3123 #endif
3124 #ifdef HAVE_STDLIB_H
3125 #include <stdlib.h>
3126 #endif
3127 #ifdef HAVE_SYS_TIME_H
3128 #include <sys/time.h>
3129 #endif
3130 #ifdef HAVE_UNISTD_H
3131 #include <unistd.h>
3132 #endif
3133 #ifdef HAVE_MATH_H
3134 #include <math.h>
3135 #endif
3137 main ()
3139 char *(*pfn) = (char *(*)) popen
3141 return 0;
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (eval echo "$as_me:3145: \"$ac_compile\"") >&5
3146 (eval $ac_compile) 2>&5
3147 ac_status=$?
3148 echo "$as_me:3148: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -s conftest.$ac_objext'
3151 { (eval echo "$as_me:3151: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:3154: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 groff_cv_decl_needed_popen=no
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 groff_cv_decl_needed_popen=yes
3162 rm -f conftest.$ac_objext conftest.$ac_ext
3165 echo "$as_me:3165: result: $groff_cv_decl_needed_popen" >&5
3166 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
3167 if test $groff_cv_decl_needed_popen = yes; then
3169 cat >>confdefs.h <<\EOF
3170 #define NEED_DECLARATION_POPEN 1
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 echo "$as_me:3180: checking whether pclose must be declared" >&5
3181 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
3182 ac_ext=cc
3183 ac_cpp='$CXXCPP $CPPFLAGS'
3184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3188 if test "${groff_cv_decl_needed_pclose+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191 cat >conftest.$ac_ext <<_ACEOF
3192 #line 3192 "configure"
3193 #include "confdefs.h"
3195 #include <stdio.h>
3196 #ifdef HAVE_STRING_H
3197 #include <string.h>
3198 #endif
3199 #ifdef HAVE_STRINGS_H
3200 #include <strings.h>
3201 #endif
3202 #ifdef HAVE_STDLIB_H
3203 #include <stdlib.h>
3204 #endif
3205 #ifdef HAVE_SYS_TIME_H
3206 #include <sys/time.h>
3207 #endif
3208 #ifdef HAVE_UNISTD_H
3209 #include <unistd.h>
3210 #endif
3211 #ifdef HAVE_MATH_H
3212 #include <math.h>
3213 #endif
3215 main ()
3217 char *(*pfn) = (char *(*)) pclose
3219 return 0;
3221 _ACEOF
3222 rm -f conftest.$ac_objext
3223 if { (eval echo "$as_me:3223: \"$ac_compile\"") >&5
3224 (eval $ac_compile) 2>&5
3225 ac_status=$?
3226 echo "$as_me:3226: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -s conftest.$ac_objext'
3229 { (eval echo "$as_me:3229: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:3232: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 groff_cv_decl_needed_pclose=no
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3238 groff_cv_decl_needed_pclose=yes
3240 rm -f conftest.$ac_objext conftest.$ac_ext
3243 echo "$as_me:3243: result: $groff_cv_decl_needed_pclose" >&5
3244 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
3245 if test $groff_cv_decl_needed_pclose = yes; then
3247 cat >>confdefs.h <<\EOF
3248 #define NEED_DECLARATION_PCLOSE 1
3252 ac_ext=c
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258 echo "$as_me:3258: checking whether putenv must be declared" >&5
3259 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
3260 ac_ext=cc
3261 ac_cpp='$CXXCPP $CPPFLAGS'
3262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3266 if test "${groff_cv_decl_needed_putenv+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269 cat >conftest.$ac_ext <<_ACEOF
3270 #line 3270 "configure"
3271 #include "confdefs.h"
3273 #include <stdio.h>
3274 #ifdef HAVE_STRING_H
3275 #include <string.h>
3276 #endif
3277 #ifdef HAVE_STRINGS_H
3278 #include <strings.h>
3279 #endif
3280 #ifdef HAVE_STDLIB_H
3281 #include <stdlib.h>
3282 #endif
3283 #ifdef HAVE_SYS_TIME_H
3284 #include <sys/time.h>
3285 #endif
3286 #ifdef HAVE_UNISTD_H
3287 #include <unistd.h>
3288 #endif
3289 #ifdef HAVE_MATH_H
3290 #include <math.h>
3291 #endif
3293 main ()
3295 char *(*pfn) = (char *(*)) putenv
3297 return 0;
3299 _ACEOF
3300 rm -f conftest.$ac_objext
3301 if { (eval echo "$as_me:3301: \"$ac_compile\"") >&5
3302 (eval $ac_compile) 2>&5
3303 ac_status=$?
3304 echo "$as_me:3304: \$? = $ac_status" >&5
3305 (exit $ac_status); } &&
3306 { ac_try='test -s conftest.$ac_objext'
3307 { (eval echo "$as_me:3307: \"$ac_try\"") >&5
3308 (eval $ac_try) 2>&5
3309 ac_status=$?
3310 echo "$as_me:3310: \$? = $ac_status" >&5
3311 (exit $ac_status); }; }; then
3312 groff_cv_decl_needed_putenv=no
3313 else
3314 echo "$as_me: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3316 groff_cv_decl_needed_putenv=yes
3318 rm -f conftest.$ac_objext conftest.$ac_ext
3321 echo "$as_me:3321: result: $groff_cv_decl_needed_putenv" >&5
3322 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
3323 if test $groff_cv_decl_needed_putenv = yes; then
3325 cat >>confdefs.h <<\EOF
3326 #define NEED_DECLARATION_PUTENV 1
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 echo "$as_me:3336: checking whether strcasecmp must be declared" >&5
3337 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
3338 ac_ext=cc
3339 ac_cpp='$CXXCPP $CPPFLAGS'
3340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3344 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 cat >conftest.$ac_ext <<_ACEOF
3348 #line 3348 "configure"
3349 #include "confdefs.h"
3351 #include <stdio.h>
3352 #ifdef HAVE_STRING_H
3353 #include <string.h>
3354 #endif
3355 #ifdef HAVE_STRINGS_H
3356 #include <strings.h>
3357 #endif
3358 #ifdef HAVE_STDLIB_H
3359 #include <stdlib.h>
3360 #endif
3361 #ifdef HAVE_SYS_TIME_H
3362 #include <sys/time.h>
3363 #endif
3364 #ifdef HAVE_UNISTD_H
3365 #include <unistd.h>
3366 #endif
3367 #ifdef HAVE_MATH_H
3368 #include <math.h>
3369 #endif
3371 main ()
3373 char *(*pfn) = (char *(*)) strcasecmp
3375 return 0;
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:3379: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>&5
3381 ac_status=$?
3382 echo "$as_me:3382: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:3385: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:3388: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 groff_cv_decl_needed_strcasecmp=no
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3394 groff_cv_decl_needed_strcasecmp=yes
3396 rm -f conftest.$ac_objext conftest.$ac_ext
3399 echo "$as_me:3399: result: $groff_cv_decl_needed_strcasecmp" >&5
3400 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
3401 if test $groff_cv_decl_needed_strcasecmp = yes; then
3403 cat >>confdefs.h <<\EOF
3404 #define NEED_DECLARATION_STRCASECMP 1
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414 echo "$as_me:3414: checking whether strncasecmp must be declared" >&5
3415 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
3416 ac_ext=cc
3417 ac_cpp='$CXXCPP $CPPFLAGS'
3418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3422 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 cat >conftest.$ac_ext <<_ACEOF
3426 #line 3426 "configure"
3427 #include "confdefs.h"
3429 #include <stdio.h>
3430 #ifdef HAVE_STRING_H
3431 #include <string.h>
3432 #endif
3433 #ifdef HAVE_STRINGS_H
3434 #include <strings.h>
3435 #endif
3436 #ifdef HAVE_STDLIB_H
3437 #include <stdlib.h>
3438 #endif
3439 #ifdef HAVE_SYS_TIME_H
3440 #include <sys/time.h>
3441 #endif
3442 #ifdef HAVE_UNISTD_H
3443 #include <unistd.h>
3444 #endif
3445 #ifdef HAVE_MATH_H
3446 #include <math.h>
3447 #endif
3449 main ()
3451 char *(*pfn) = (char *(*)) strncasecmp
3453 return 0;
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (eval echo "$as_me:3457: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>&5
3459 ac_status=$?
3460 echo "$as_me:3460: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:3463: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:3466: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 groff_cv_decl_needed_strncasecmp=no
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3472 groff_cv_decl_needed_strncasecmp=yes
3474 rm -f conftest.$ac_objext conftest.$ac_ext
3477 echo "$as_me:3477: result: $groff_cv_decl_needed_strncasecmp" >&5
3478 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
3479 if test $groff_cv_decl_needed_strncasecmp = yes; then
3481 cat >>confdefs.h <<\EOF
3482 #define NEED_DECLARATION_STRNCASECMP 1
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 ac_ext=cc
3493 ac_cpp='$CXXCPP $CPPFLAGS'
3494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498 echo "$as_me:3498: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
3499 echo $ECHO_N "checking for sys_nerr in <errno.h> or <stdio.h>... $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3501 #line 3501 "configure"
3502 #include "confdefs.h"
3503 #include <errno.h>
3504 #include <stdio.h>
3506 main ()
3508 int k; k = sys_nerr;
3510 return 0;
3512 _ACEOF
3513 rm -f conftest.$ac_objext
3514 if { (eval echo "$as_me:3514: \"$ac_compile\"") >&5
3515 (eval $ac_compile) 2>&5
3516 ac_status=$?
3517 echo "$as_me:3517: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
3519 { ac_try='test -s conftest.$ac_objext'
3520 { (eval echo "$as_me:3520: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:3523: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 echo "$as_me:3525: result: yes" >&5
3526 echo "${ECHO_T}yes" >&6;
3527 cat >>confdefs.h <<\EOF
3528 #define HAVE_SYS_NERR 1
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3534 echo "$as_me:3534: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3537 rm -f conftest.$ac_objext conftest.$ac_ext
3538 ac_ext=c
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544 echo "$as_me:3544: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
3545 echo $ECHO_N "checking for sys_errlist in <errno.h> or <stdio.h>... $ECHO_C" >&6
3546 cat >conftest.$ac_ext <<_ACEOF
3547 #line 3547 "configure"
3548 #include "confdefs.h"
3549 #include <errno.h>
3550 #include <stdio.h>
3552 main ()
3554 int k; k = (int)sys_errlist[0];
3556 return 0;
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (eval echo "$as_me:3560: \"$ac_compile\"") >&5
3561 (eval $ac_compile) 2>&5
3562 ac_status=$?
3563 echo "$as_me:3563: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:3566: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:3569: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 echo "$as_me:3571: result: yes" >&5
3572 echo "${ECHO_T}yes" >&6;
3573 cat >>confdefs.h <<\EOF
3574 #define HAVE_SYS_ERRLIST 1
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3580 echo "$as_me:3580: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3583 rm -f conftest.$ac_objext conftest.$ac_ext
3584 ac_ext=cc
3585 ac_cpp='$CXXCPP $CPPFLAGS'
3586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3590 echo "$as_me:3590: checking C++ <osfcn.h>" >&5
3591 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line 3593 "configure"
3594 #include "confdefs.h"
3595 #include <osfcn.h>
3597 main ()
3599 read(0, 0, 0); open(0, 0);
3601 return 0;
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (eval echo "$as_me:3605: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>&5
3607 ac_status=$?
3608 echo "$as_me:3608: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:3611: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:3614: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 echo "$as_me:3616: result: yes" >&5
3617 echo "${ECHO_T}yes" >&6;
3618 cat >>confdefs.h <<\EOF
3619 #define HAVE_CC_OSFCN_H 1
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3625 echo "$as_me:3625: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3628 rm -f conftest.$ac_objext conftest.$ac_ext
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635 ac_ext=cc
3636 ac_cpp='$CXXCPP $CPPFLAGS'
3637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3641 echo "$as_me:3641: checking C++ <limits.h>" >&5
3642 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
3643 cat >conftest.$ac_ext <<_ACEOF
3644 #line 3644 "configure"
3645 #include "confdefs.h"
3646 #include <limits.h>
3648 main ()
3650 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
3652 return 0;
3654 _ACEOF
3655 rm -f conftest.$ac_objext
3656 if { (eval echo "$as_me:3656: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>&5
3658 ac_status=$?
3659 echo "$as_me:3659: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -s conftest.$ac_objext'
3662 { (eval echo "$as_me:3662: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:3665: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 echo "$as_me:3667: result: yes" >&5
3668 echo "${ECHO_T}yes" >&6;
3669 cat >>confdefs.h <<\EOF
3670 #define HAVE_CC_LIMITS_H 1
3673 else
3674 echo "$as_me: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3676 echo "$as_me:3676: result: no" >&5
3677 echo "${ECHO_T}no" >&6
3679 rm -f conftest.$ac_objext conftest.$ac_ext
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 ac_ext=cc
3687 ac_cpp='$CXXCPP $CPPFLAGS'
3688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3692 echo "$as_me:3692: checking for inttypes.h" >&5
3693 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
3694 cat >conftest.$ac_ext <<_ACEOF
3695 #line 3695 "configure"
3696 #include "confdefs.h"
3697 #include <sys/types.h>
3698 #include <inttypes.h>
3700 main ()
3702 uintmax_t i = (uintmax_t)-1;
3704 return 0;
3706 _ACEOF
3707 rm -f conftest.$ac_objext
3708 if { (eval echo "$as_me:3708: \"$ac_compile\"") >&5
3709 (eval $ac_compile) 2>&5
3710 ac_status=$?
3711 echo "$as_me:3711: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 { ac_try='test -s conftest.$ac_objext'
3714 { (eval echo "$as_me:3714: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:3717: \$? = $ac_status" >&5
3718 (exit $ac_status); }; }; then
3719 groff_cv_header_inttypes_h=yes
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3723 groff_cv_header_inttypes_h=no
3725 rm -f conftest.$ac_objext conftest.$ac_ext
3726 echo "$as_me:3726: result: $groff_cv_header_inttypes_h" >&5
3727 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734 ac_ext=cc
3735 ac_cpp='$CXXCPP $CPPFLAGS'
3736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3740 echo "$as_me:3740: checking for unsigned long long" >&5
3741 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
3742 cat >conftest.$ac_ext <<_ACEOF
3743 #line 3743 "configure"
3744 #include "confdefs.h"
3745 unsigned long long ull = 1; int i = 63;
3747 main ()
3749 unsigned long long ullmax = (unsigned long long)-1;
3750 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
3752 return 0;
3754 _ACEOF
3755 rm -f conftest.$ac_objext conftest$ac_exeext
3756 if { (eval echo "$as_me:3756: \"$ac_link\"") >&5
3757 (eval $ac_link) 2>&5
3758 ac_status=$?
3759 echo "$as_me:3759: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -s conftest$ac_exeext'
3762 { (eval echo "$as_me:3762: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:3765: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 groff_cv_type_unsigned_long_long=yes
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3771 groff_cv_type_unsigned_long_long=no
3773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3774 echo "$as_me:3774: result: $groff_cv_type_unsigned_long_long" >&5
3775 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782 if test $groff_cv_header_inttypes_h = no; then
3784 test $groff_cv_type_unsigned_long_long = yes \
3785 && ac_type='unsigned long long' \
3786 || ac_type='unsigned long'
3788 cat >>confdefs.h <<EOF
3789 #define uintmax_t $ac_type
3793 ac_ext=cc
3794 ac_cpp='$CXXCPP $CPPFLAGS'
3795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3799 echo "$as_me:3799: checking for declaration of time_t" >&5
3800 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3802 #line 3802 "configure"
3803 #include "confdefs.h"
3804 #include <time.h>
3806 main ()
3808 time_t t = time(0); struct tm *p = localtime(&t);
3810 return 0;
3812 _ACEOF
3813 rm -f conftest.$ac_objext
3814 if { (eval echo "$as_me:3814: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>&5
3816 ac_status=$?
3817 echo "$as_me:3817: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -s conftest.$ac_objext'
3820 { (eval echo "$as_me:3820: \"$ac_try\"") >&5
3821 (eval $ac_try) 2>&5
3822 ac_status=$?
3823 echo "$as_me:3823: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 echo "$as_me:3825: result: yes" >&5
3826 echo "${ECHO_T}yes" >&6
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3830 echo "$as_me:3830: result: no" >&5
3831 echo "${ECHO_T}no" >&6;
3832 cat >>confdefs.h <<\EOF
3833 #define LONG_FOR_TIME_T 1
3837 rm -f conftest.$ac_objext conftest.$ac_ext
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844 echo "$as_me:3844: checking return type of signal handlers" >&5
3845 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3846 if test "${ac_cv_type_signal+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 #line 3850 "configure"
3851 #include "confdefs.h"
3852 #include <sys/types.h>
3853 #include <signal.h>
3854 #ifdef signal
3855 # undef signal
3856 #endif
3857 #ifdef __cplusplus
3858 extern "C" void (*signal (int, void (*)(int)))(int);
3859 #else
3860 void (*signal ()) ();
3861 #endif
3864 main ()
3866 int i;
3868 return 0;
3870 _ACEOF
3871 rm -f conftest.$ac_objext
3872 if { (eval echo "$as_me:3872: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3874 ac_status=$?
3875 echo "$as_me:3875: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (eval echo "$as_me:3878: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:3881: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_type_signal=void
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 ac_cv_type_signal=int
3889 rm -f conftest.$ac_objext conftest.$ac_ext
3891 echo "$as_me:3891: result: $ac_cv_type_signal" >&5
3892 echo "${ECHO_T}$ac_cv_type_signal" >&6
3894 cat >>confdefs.h <<EOF
3895 #define RETSIGTYPE $ac_cv_type_signal
3898 echo "$as_me:3898: checking struct exception" >&5
3899 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
3900 cat >conftest.$ac_ext <<_ACEOF
3901 #line 3901 "configure"
3902 #include "confdefs.h"
3903 #include <math.h>
3905 main ()
3907 struct exception e;
3909 return 0;
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:3913: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>&5
3915 ac_status=$?
3916 echo "$as_me:3916: \$? = $ac_status" >&5
3917 (exit $ac_status); } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:3919: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:3922: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 echo "$as_me:3924: result: yes" >&5
3925 echo "${ECHO_T}yes" >&6;
3926 cat >>confdefs.h <<\EOF
3927 #define HAVE_STRUCT_EXCEPTION 1
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3933 echo "$as_me:3933: result: no" >&5
3934 echo "${ECHO_T}no" >&6
3936 rm -f conftest.$ac_objext conftest.$ac_ext
3937 echo "$as_me:3937: checking for sin in -lm" >&5
3938 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
3939 if test "${ac_cv_lib_m_sin+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 ac_check_lib_save_LIBS=$LIBS
3943 LIBS="-lm $LIBS"
3944 cat >conftest.$ac_ext <<_ACEOF
3945 #line 3945 "configure"
3946 #include "confdefs.h"
3948 /* Override any gcc2 internal prototype to avoid an error. */
3949 #ifdef __cplusplus
3950 extern "C"
3951 #endif
3952 /* We use char because int might match the return type of a gcc2
3953 builtin and then its argument prototype would still apply. */
3954 char sin ();
3956 main ()
3958 sin ();
3960 return 0;
3962 _ACEOF
3963 rm -f conftest.$ac_objext conftest$ac_exeext
3964 if { (eval echo "$as_me:3964: \"$ac_link\"") >&5
3965 (eval $ac_link) 2>&5
3966 ac_status=$?
3967 echo "$as_me:3967: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -s conftest$ac_exeext'
3970 { (eval echo "$as_me:3970: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:3973: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 ac_cv_lib_m_sin=yes
3976 else
3977 echo "$as_me: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3979 ac_cv_lib_m_sin=no
3981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3982 LIBS=$ac_check_lib_save_LIBS
3984 echo "$as_me:3984: result: $ac_cv_lib_m_sin" >&5
3985 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
3986 if test $ac_cv_lib_m_sin = yes; then
3987 LIBM=-lm
3990 echo "$as_me:3990: checking for ANSI C header files" >&5
3991 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3992 if test "${ac_cv_header_stdc+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 cat >conftest.$ac_ext <<_ACEOF
3996 #line 3996 "configure"
3997 #include "confdefs.h"
3998 #include <stdlib.h>
3999 #include <stdarg.h>
4000 #include <string.h>
4001 #include <float.h>
4003 _ACEOF
4004 if { (eval echo "$as_me:4004: \"$ac_cpp conftest.$ac_ext\"") >&5
4005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4006 ac_status=$?
4007 egrep -v '^ *\+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:4010: \$? = $ac_status" >&5
4011 (exit $ac_status); } >/dev/null; then
4012 if test -s conftest.err; then
4013 ac_cpp_err=$ac_c_preproc_warn_flag
4014 else
4015 ac_cpp_err=
4017 else
4018 ac_cpp_err=yes
4020 if test -z "$ac_cpp_err"; then
4021 ac_cv_header_stdc=yes
4022 else
4023 echo "$as_me: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4025 ac_cv_header_stdc=no
4027 rm -f conftest.err conftest.$ac_ext
4029 if test $ac_cv_header_stdc = yes; then
4030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4031 cat >conftest.$ac_ext <<_ACEOF
4032 #line 4032 "configure"
4033 #include "confdefs.h"
4034 #include <string.h>
4036 _ACEOF
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 egrep "memchr" >/dev/null 2>&1; then
4040 else
4041 ac_cv_header_stdc=no
4043 rm -f conftest*
4047 if test $ac_cv_header_stdc = yes; then
4048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4049 cat >conftest.$ac_ext <<_ACEOF
4050 #line 4050 "configure"
4051 #include "confdefs.h"
4052 #include <stdlib.h>
4054 _ACEOF
4055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4056 egrep "free" >/dev/null 2>&1; then
4058 else
4059 ac_cv_header_stdc=no
4061 rm -f conftest*
4065 if test $ac_cv_header_stdc = yes; then
4066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4067 if test "$cross_compiling" = yes; then
4069 else
4070 cat >conftest.$ac_ext <<_ACEOF
4071 #line 4071 "configure"
4072 #include "confdefs.h"
4073 #include <ctype.h>
4074 #if ((' ' & 0x0FF) == 0x020)
4075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4077 #else
4078 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4079 || ('j' <= (c) && (c) <= 'r') \
4080 || ('s' <= (c) && (c) <= 'z'))
4081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4082 #endif
4084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4086 main ()
4088 int i;
4089 for (i = 0; i < 256; i++)
4090 if (XOR (islower (i), ISLOWER (i))
4091 || toupper (i) != TOUPPER (i))
4092 exit(2);
4093 exit (0);
4095 _ACEOF
4096 rm -f conftest$ac_exeext
4097 if { (eval echo "$as_me:4097: \"$ac_link\"") >&5
4098 (eval $ac_link) 2>&5
4099 ac_status=$?
4100 echo "$as_me:4100: \$? = $ac_status" >&5
4101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4102 { (eval echo "$as_me:4102: \"$ac_try\"") >&5
4103 (eval $ac_try) 2>&5
4104 ac_status=$?
4105 echo "$as_me:4105: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
4108 else
4109 echo "$as_me: program exited with status $ac_status" >&5
4110 echo "$as_me: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4112 ac_cv_header_stdc=no
4114 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4118 echo "$as_me:4118: result: $ac_cv_header_stdc" >&5
4119 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4120 if test $ac_cv_header_stdc = yes; then
4122 cat >>confdefs.h <<\EOF
4123 #define STDC_HEADERS 1
4128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4130 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4131 inttypes.h stdint.h unistd.h
4133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4134 echo "$as_me:4134: checking for $ac_header" >&5
4135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 cat >conftest.$ac_ext <<_ACEOF
4140 #line 4140 "configure"
4141 #include "confdefs.h"
4142 $ac_includes_default
4143 #include <$ac_header>
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:4146: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>&5
4148 ac_status=$?
4149 echo "$as_me:4149: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:4152: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:4155: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 eval "$as_ac_Header=yes"
4158 else
4159 echo "$as_me: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4161 eval "$as_ac_Header=no"
4163 rm -f conftest.$ac_objext conftest.$ac_ext
4165 echo "$as_me:4165: result: `eval echo '${'$as_ac_Header'}'`" >&5
4166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4168 cat >>confdefs.h <<EOF
4169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4173 done
4175 for ac_header in stdlib.h unistd.h
4177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4178 echo "$as_me:4178: checking for $ac_header" >&5
4179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 cat >conftest.$ac_ext <<_ACEOF
4184 #line 4184 "configure"
4185 #include "confdefs.h"
4186 #include <$ac_header>
4187 _ACEOF
4188 if { (eval echo "$as_me:4188: \"$ac_cpp conftest.$ac_ext\"") >&5
4189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4190 ac_status=$?
4191 egrep -v '^ *\+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:4194: \$? = $ac_status" >&5
4195 (exit $ac_status); } >/dev/null; then
4196 if test -s conftest.err; then
4197 ac_cpp_err=$ac_c_preproc_warn_flag
4198 else
4199 ac_cpp_err=
4201 else
4202 ac_cpp_err=yes
4204 if test -z "$ac_cpp_err"; then
4205 eval "$as_ac_Header=yes"
4206 else
4207 echo "$as_me: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 eval "$as_ac_Header=no"
4211 rm -f conftest.err conftest.$ac_ext
4213 echo "$as_me:4213: result: `eval echo '${'$as_ac_Header'}'`" >&5
4214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4216 cat >>confdefs.h <<EOF
4217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4221 done
4223 for ac_func in getpagesize
4225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4226 echo "$as_me:4226: checking for $ac_func" >&5
4227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4228 if eval "test \"\${$as_ac_var+set}\" = set"; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 cat >conftest.$ac_ext <<_ACEOF
4232 #line 4232 "configure"
4233 #include "confdefs.h"
4234 /* System header to define __stub macros and hopefully few prototypes,
4235 which can conflict with char $ac_func (); below. */
4236 #include <assert.h>
4237 /* Override any gcc2 internal prototype to avoid an error. */
4238 #ifdef __cplusplus
4239 extern "C"
4240 #endif
4241 /* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4243 char $ac_func ();
4244 char (*f) ();
4247 main ()
4249 /* The GNU C library defines this for functions which it implements
4250 to always fail with ENOSYS. Some functions are actually named
4251 something starting with __ and the normal name is an alias. */
4252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4253 choke me
4254 #else
4255 f = $ac_func;
4256 #endif
4259 return 0;
4261 _ACEOF
4262 rm -f conftest.$ac_objext conftest$ac_exeext
4263 if { (eval echo "$as_me:4263: \"$ac_link\"") >&5
4264 (eval $ac_link) 2>&5
4265 ac_status=$?
4266 echo "$as_me:4266: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -s conftest$ac_exeext'
4269 { (eval echo "$as_me:4269: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:4272: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 eval "$as_ac_var=yes"
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4278 eval "$as_ac_var=no"
4280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4282 echo "$as_me:4282: result: `eval echo '${'$as_ac_var'}'`" >&5
4283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4284 if test `eval echo '${'$as_ac_var'}'` = yes; then
4285 cat >>confdefs.h <<EOF
4286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4290 done
4292 echo "$as_me:4292: checking for working mmap" >&5
4293 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4294 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 if test "$cross_compiling" = yes; then
4298 ac_cv_func_mmap_fixed_mapped=no
4299 else
4300 cat >conftest.$ac_ext <<_ACEOF
4301 #line 4301 "configure"
4302 #include "confdefs.h"
4303 $ac_includes_default
4304 /* Thanks to Mike Haertel and Jim Avera for this test.
4305 Here is a matrix of mmap possibilities:
4306 mmap private not fixed
4307 mmap private fixed at somewhere currently unmapped
4308 mmap private fixed at somewhere already mapped
4309 mmap shared not fixed
4310 mmap shared fixed at somewhere currently unmapped
4311 mmap shared fixed at somewhere already mapped
4312 For private mappings, we should verify that changes cannot be read()
4313 back from the file, nor mmap's back from the file at a different
4314 address. (There have been systems where private was not correctly
4315 implemented like the infamous i386 svr4.0, and systems where the
4316 VM page cache was not coherent with the file system buffer cache
4317 like early versions of FreeBSD and possibly contemporary NetBSD.)
4318 For shared mappings, we should conversely verify that changes get
4319 propogated back to all the places they're supposed to be.
4321 Grep wants private fixed already mapped.
4322 The main things grep needs to know about mmap are:
4323 * does it exist and is it safe to write into the mmap'd area
4324 * how to use it (BSD variants) */
4326 #include <fcntl.h>
4327 #include <sys/mman.h>
4329 #if !STDC_HEADERS && !HAVE_STDLIB_H
4330 char *malloc ();
4331 #endif
4333 /* This mess was copied from the GNU getpagesize.h. */
4334 #if !HAVE_GETPAGESIZE
4335 /* Assume that all systems that can run configure have sys/param.h. */
4336 # if !HAVE_SYS_PARAM_H
4337 # define HAVE_SYS_PARAM_H 1
4338 # endif
4340 # ifdef _SC_PAGESIZE
4341 # define getpagesize() sysconf(_SC_PAGESIZE)
4342 # else /* no _SC_PAGESIZE */
4343 # if HAVE_SYS_PARAM_H
4344 # include <sys/param.h>
4345 # ifdef EXEC_PAGESIZE
4346 # define getpagesize() EXEC_PAGESIZE
4347 # else /* no EXEC_PAGESIZE */
4348 # ifdef NBPG
4349 # define getpagesize() NBPG * CLSIZE
4350 # ifndef CLSIZE
4351 # define CLSIZE 1
4352 # endif /* no CLSIZE */
4353 # else /* no NBPG */
4354 # ifdef NBPC
4355 # define getpagesize() NBPC
4356 # else /* no NBPC */
4357 # ifdef PAGESIZE
4358 # define getpagesize() PAGESIZE
4359 # endif /* PAGESIZE */
4360 # endif /* no NBPC */
4361 # endif /* no NBPG */
4362 # endif /* no EXEC_PAGESIZE */
4363 # else /* no HAVE_SYS_PARAM_H */
4364 # define getpagesize() 8192 /* punt totally */
4365 # endif /* no HAVE_SYS_PARAM_H */
4366 # endif /* no _SC_PAGESIZE */
4368 #endif /* no HAVE_GETPAGESIZE */
4371 main ()
4373 char *data, *data2, *data3;
4374 int i, pagesize;
4375 int fd;
4377 pagesize = getpagesize ();
4379 /* First, make a file with some known garbage in it. */
4380 data = (char *) malloc (pagesize);
4381 if (!data)
4382 exit (1);
4383 for (i = 0; i < pagesize; ++i)
4384 *(data + i) = rand ();
4385 umask (0);
4386 fd = creat ("conftest.mmap", 0600);
4387 if (fd < 0)
4388 exit (1);
4389 if (write (fd, data, pagesize) != pagesize)
4390 exit (1);
4391 close (fd);
4393 /* Next, try to mmap the file at a fixed address which already has
4394 something else allocated at it. If we can, also make sure that
4395 we see the same garbage. */
4396 fd = open ("conftest.mmap", O_RDWR);
4397 if (fd < 0)
4398 exit (1);
4399 data2 = (char *) malloc (2 * pagesize);
4400 if (!data2)
4401 exit (1);
4402 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4403 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4404 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4405 exit (1);
4406 for (i = 0; i < pagesize; ++i)
4407 if (*(data + i) != *(data2 + i))
4408 exit (1);
4410 /* Finally, make sure that changes to the mapped area do not
4411 percolate back to the file as seen by read(). (This is a bug on
4412 some variants of i386 svr4.0.) */
4413 for (i = 0; i < pagesize; ++i)
4414 *(data2 + i) = *(data2 + i) + 1;
4415 data3 = (char *) malloc (pagesize);
4416 if (!data3)
4417 exit (1);
4418 if (read (fd, data3, pagesize) != pagesize)
4419 exit (1);
4420 for (i = 0; i < pagesize; ++i)
4421 if (*(data + i) != *(data3 + i))
4422 exit (1);
4423 close (fd);
4424 exit (0);
4426 _ACEOF
4427 rm -f conftest$ac_exeext
4428 if { (eval echo "$as_me:4428: \"$ac_link\"") >&5
4429 (eval $ac_link) 2>&5
4430 ac_status=$?
4431 echo "$as_me:4431: \$? = $ac_status" >&5
4432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4433 { (eval echo "$as_me:4433: \"$ac_try\"") >&5
4434 (eval $ac_try) 2>&5
4435 ac_status=$?
4436 echo "$as_me:4436: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_cv_func_mmap_fixed_mapped=yes
4439 else
4440 echo "$as_me: program exited with status $ac_status" >&5
4441 echo "$as_me: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4443 ac_cv_func_mmap_fixed_mapped=no
4445 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:4448: result: $ac_cv_func_mmap_fixed_mapped" >&5
4449 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4450 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4452 cat >>confdefs.h <<\EOF
4453 #define HAVE_MMAP 1
4457 rm -f conftest.mmap
4459 saved_libs="$LIBS"
4460 LIBS="$LIBS -lc $LIBM"
4462 for ac_func in fmod getcwd putenv snprintf strerror strtol
4464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4465 echo "$as_me:4465: checking for $ac_func" >&5
4466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4467 if eval "test \"\${$as_ac_var+set}\" = set"; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line 4471 "configure"
4472 #include "confdefs.h"
4473 /* System header to define __stub macros and hopefully few prototypes,
4474 which can conflict with char $ac_func (); below. */
4475 #include <assert.h>
4476 /* Override any gcc2 internal prototype to avoid an error. */
4477 #ifdef __cplusplus
4478 extern "C"
4479 #endif
4480 /* We use char because int might match the return type of a gcc2
4481 builtin and then its argument prototype would still apply. */
4482 char $ac_func ();
4483 char (*f) ();
4486 main ()
4488 /* The GNU C library defines this for functions which it implements
4489 to always fail with ENOSYS. Some functions are actually named
4490 something starting with __ and the normal name is an alias. */
4491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4492 choke me
4493 #else
4494 f = $ac_func;
4495 #endif
4498 return 0;
4500 _ACEOF
4501 rm -f conftest.$ac_objext conftest$ac_exeext
4502 if { (eval echo "$as_me:4502: \"$ac_link\"") >&5
4503 (eval $ac_link) 2>&5
4504 ac_status=$?
4505 echo "$as_me:4505: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try='test -s conftest$ac_exeext'
4508 { (eval echo "$as_me:4508: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:4511: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 eval "$as_ac_var=yes"
4514 else
4515 echo "$as_me: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4517 eval "$as_ac_var=no"
4519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4521 echo "$as_me:4521: result: `eval echo '${'$as_ac_var'}'`" >&5
4522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4523 if test `eval echo '${'$as_ac_var'}'` = yes; then
4524 cat >>confdefs.h <<EOF
4525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4528 else
4529 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4531 done
4533 LIBS="$saved_libs"
4535 for ac_func in gettimeofday rename strcasecmp strncasecmp strsep
4537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4538 echo "$as_me:4538: checking for $ac_func" >&5
4539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4540 if eval "test \"\${$as_ac_var+set}\" = set"; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 else
4543 cat >conftest.$ac_ext <<_ACEOF
4544 #line 4544 "configure"
4545 #include "confdefs.h"
4546 /* System header to define __stub macros and hopefully few prototypes,
4547 which can conflict with char $ac_func (); below. */
4548 #include <assert.h>
4549 /* Override any gcc2 internal prototype to avoid an error. */
4550 #ifdef __cplusplus
4551 extern "C"
4552 #endif
4553 /* We use char because int might match the return type of a gcc2
4554 builtin and then its argument prototype would still apply. */
4555 char $ac_func ();
4556 char (*f) ();
4559 main ()
4561 /* The GNU C library defines this for functions which it implements
4562 to always fail with ENOSYS. Some functions are actually named
4563 something starting with __ and the normal name is an alias. */
4564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4565 choke me
4566 #else
4567 f = $ac_func;
4568 #endif
4571 return 0;
4573 _ACEOF
4574 rm -f conftest.$ac_objext conftest$ac_exeext
4575 if { (eval echo "$as_me:4575: \"$ac_link\"") >&5
4576 (eval $ac_link) 2>&5
4577 ac_status=$?
4578 echo "$as_me:4578: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -s conftest$ac_exeext'
4581 { (eval echo "$as_me:4581: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:4584: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 eval "$as_ac_var=yes"
4587 else
4588 echo "$as_me: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4590 eval "$as_ac_var=no"
4592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4594 echo "$as_me:4594: result: `eval echo '${'$as_ac_var'}'`" >&5
4595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4596 if test `eval echo '${'$as_ac_var'}'` = yes; then
4597 cat >>confdefs.h <<EOF
4598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4602 done
4604 echo "$as_me:4604: checking for mkstemp" >&5
4605 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
4606 ac_ext=cc
4607 ac_cpp='$CXXCPP $CPPFLAGS'
4608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4612 cat >conftest.$ac_ext <<_ACEOF
4613 #line 4613 "configure"
4614 #include "confdefs.h"
4615 #include <stdlib.h>
4616 int (*f) (char *);
4618 main ()
4620 f = mkstemp;
4622 return 0;
4624 _ACEOF
4625 rm -f conftest.$ac_objext conftest$ac_exeext
4626 if { (eval echo "$as_me:4626: \"$ac_link\"") >&5
4627 (eval $ac_link) 2>&5
4628 ac_status=$?
4629 echo "$as_me:4629: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -s conftest$ac_exeext'
4632 { (eval echo "$as_me:4632: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:4635: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 echo "$as_me:4637: result: yes" >&5
4638 echo "${ECHO_T}yes" >&6;
4639 cat >>confdefs.h <<\EOF
4640 #define HAVE_MKSTEMP 1
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4646 echo "$as_me:4646: result: no" >&5
4647 echo "${ECHO_T}no" >&6;LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
4649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 echo "$as_me:4656: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4657 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4658 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 cat >conftest.$ac_ext <<_ACEOF
4662 #line 4662 "configure"
4663 #include "confdefs.h"
4664 #include <sys/types.h>
4665 #include <signal.h>
4666 /* NetBSD declares sys_siglist in unistd.h. */
4667 #if HAVE_UNISTD_H
4668 # include <unistd.h>
4669 #endif
4672 main ()
4674 char *msg = *(sys_siglist + 1);
4676 return 0;
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:4680: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>&5
4682 ac_status=$?
4683 echo "$as_me:4683: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:4686: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:4689: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_decl_sys_siglist=yes
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 ac_cv_decl_sys_siglist=no
4697 rm -f conftest.$ac_objext conftest.$ac_ext
4699 echo "$as_me:4699: result: $ac_cv_decl_sys_siglist" >&5
4700 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4701 if test $ac_cv_decl_sys_siglist = yes; then
4703 cat >>confdefs.h <<\EOF
4704 #define SYS_SIGLIST_DECLARED 1
4709 ac_ext=cc
4710 ac_cpp='$CXXCPP $CPPFLAGS'
4711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4715 echo "$as_me:4715: checking whether ANSI array delete syntax supported" >&5
4716 echo $ECHO_N "checking whether ANSI array delete syntax supported... $ECHO_C" >&6
4717 cat >conftest.$ac_ext <<_ACEOF
4718 #line 4718 "configure"
4719 #include "confdefs.h"
4722 main ()
4724 char *p = new char[5]; delete [] p;
4726 return 0;
4728 _ACEOF
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:4730: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>&5
4732 ac_status=$?
4733 echo "$as_me:4733: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try='test -s conftest.$ac_objext'
4736 { (eval echo "$as_me:4736: \"$ac_try\"") >&5
4737 (eval $ac_try) 2>&5
4738 ac_status=$?
4739 echo "$as_me:4739: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 echo "$as_me:4741: result: yes" >&5
4742 echo "${ECHO_T}yes" >&6
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 echo "$as_me:4746: result: no" >&5
4747 echo "${ECHO_T}no" >&6;
4748 cat >>confdefs.h <<\EOF
4749 #define ARRAY_DELETE_NEEDS_SIZE 1
4753 rm -f conftest.$ac_objext conftest.$ac_ext
4754 ac_ext=c
4755 ac_cpp='$CPP $CPPFLAGS'
4756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4760 ac_ext=cc
4761 ac_cpp='$CXXCPP $CPPFLAGS'
4762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4766 echo "$as_me:4766: checking traditional preprocessor" >&5
4767 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
4768 cat >conftest.$ac_ext <<_ACEOF
4769 #line 4769 "configure"
4770 #include "confdefs.h"
4771 #define name2(a,b) a/**/b
4773 main ()
4775 int name2(foo,bar);
4777 return 0;
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (eval echo "$as_me:4781: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>&5
4783 ac_status=$?
4784 echo "$as_me:4784: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -s conftest.$ac_objext'
4787 { (eval echo "$as_me:4787: \"$ac_try\"") >&5
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:4790: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 echo "$as_me:4792: result: yes" >&5
4793 echo "${ECHO_T}yes" >&6;
4794 cat >>confdefs.h <<\EOF
4795 #define TRADITIONAL_CPP 1
4798 else
4799 echo "$as_me: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4801 echo "$as_me:4801: result: no" >&5
4802 echo "${ECHO_T}no" >&6
4804 rm -f conftest.$ac_objext conftest.$ac_ext
4805 ac_ext=c
4806 ac_cpp='$CPP $CPPFLAGS'
4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 echo "$as_me:4811: checking w_coredump" >&5
4812 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
4813 if test "$cross_compiling" = yes; then
4814 echo "$as_me:4814: result: no" >&5
4815 echo "${ECHO_T}no" >&6
4816 else
4817 cat >conftest.$ac_ext <<_ACEOF
4818 #line 4818 "configure"
4819 #include "confdefs.h"
4820 #include <sys/types.h>
4821 #include <sys/wait.h>
4822 main()
4824 #ifdef WCOREFLAG
4825 exit(1);
4826 #else
4827 int i = 0;
4828 ((union wait *)&i)->w_coredump = 1;
4829 exit(i != 0200);
4830 #endif
4832 _ACEOF
4833 rm -f conftest$ac_exeext
4834 if { (eval echo "$as_me:4834: \"$ac_link\"") >&5
4835 (eval $ac_link) 2>&5
4836 ac_status=$?
4837 echo "$as_me:4837: \$? = $ac_status" >&5
4838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4839 { (eval echo "$as_me:4839: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:4842: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 echo "$as_me:4844: result: yes" >&5
4845 echo "${ECHO_T}yes" >&6;
4846 cat >>confdefs.h <<\EOF
4847 #define WCOREFLAG 0200
4850 else
4851 echo "$as_me: program exited with status $ac_status" >&5
4852 echo "$as_me: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 echo "$as_me:4854: result: no" >&5
4855 echo "${ECHO_T}no" >&6
4857 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4859 echo "$as_me:4859: checking default value for grops -b option" >&5
4860 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
4861 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
4862 echo "$as_me:4862: result: $BROKEN_SPOOLER_FLAGS" >&5
4863 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
4865 echo "$as_me:4865: checking default paper size" >&5
4866 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
4867 if test -z "$PAGE"; then
4868 descfile=
4869 if test -r $prefix/share/groff/font/devps/DESC; then
4870 descfile=$prefix/share/groff/font/devps/DESC
4871 elif test -r $prefix/lib/groff/font/devps/DESC; then
4872 descfile=$prefix/lib/groff/font/devps/DESC
4873 else
4874 for f in $prefix/share/groff/*/font/devps/DESC; do
4875 if test -r $f; then
4876 descfile=$f
4877 break
4879 done
4881 if test -n "$descfile" \
4882 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
4883 PAGE=A4
4886 if test -z "$PAGE"; then
4887 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
4888 /etc/resolv.conf 2>/dev/null`
4889 if test -z "$dom"; then
4890 dom=`(domainname) 2>/dev/null | tr -d '+'`
4891 if test -z "$dom" \
4892 || test "$dom" = '(none)'; then
4893 dom=`(hostname) 2>/dev/null | grep '\.'`
4896 # If the top-level domain is two letters and it's not `us' or `ca'
4897 # then they probably use A4 paper.
4898 case "$dom" in
4899 *.[Uu][Ss]|*.[Cc][Aa]) ;;
4900 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
4901 esac
4903 test -n "$PAGE" || PAGE=letter
4904 if test "x$PAGE" = "xA4"; then
4906 cat >>confdefs.h <<\EOF
4907 #define PAGEA4 1
4911 echo "$as_me:4911: result: $PAGE" >&5
4912 echo "${ECHO_T}$PAGE" >&6
4914 echo "$as_me:4914: checking for existing troff installation" >&5
4915 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
4916 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
4917 echo "$as_me:4917: result: yes" >&5
4918 echo "${ECHO_T}yes" >&6
4920 else
4921 echo "$as_me:4921: result: no" >&5
4922 echo "${ECHO_T}no" >&6
4926 echo "$as_me:4926: checking for prefix of system macro packages" >&5
4927 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
4928 sys_tmac_prefix=
4929 sys_tmac_file_prefix=
4930 for d in /usr/share/lib/tmac /usr/lib/tmac; do
4931 for t in "" tmac.; do
4932 for m in an s m; do
4933 f=$d/$t$m
4934 if test -z "$sys_tmac_prefix" \
4935 && test -f $f \
4936 && grep '^\.if' $f >/dev/null 2>&1; then
4937 sys_tmac_prefix=$d/$t
4938 sys_tmac_file_prefix=$t
4940 done
4941 done
4942 done
4943 echo "$as_me:4943: result: $sys_tmac_prefix" >&5
4944 echo "${ECHO_T}$sys_tmac_prefix" >&6
4946 tmac_wrap=
4947 echo "$as_me:4947: checking which system macro packages should be made available" >&5
4948 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
4949 if test "x$sys_tmac_file_prefix" = "xtmac."; then
4950 for f in $sys_tmac_prefix*; do
4951 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
4952 case "$suff" in
4953 e) ;;
4955 grep "Copyright.*Free Software Foundation" $f >/dev/null \
4956 || tmac_wrap="$tmac_wrap $suff" ;;
4957 esac
4958 done
4959 elif test -n "$sys_tmac_prefix"; then
4960 files=`echo $sys_tmac_prefix*`
4961 grep "\\.so" $files >conftest.sol
4962 for f in $files; do
4963 case "$f" in
4964 ${sys_tmac_prefix}e) ;;
4965 *.me) ;;
4966 */ms.*) ;;
4968 b=`basename $f`
4969 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
4970 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
4972 else
4973 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
4974 case "$suff" in
4975 tmac.*) ;;
4976 *) tmac_wrap="$tmac_wrap $suff" ;;
4977 esac
4979 esac
4980 done
4981 rm -f conftest.sol
4983 echo "$as_me:4983: result: $tmac_wrap" >&5
4984 echo "${ECHO_T}$tmac_wrap" >&6
4986 ac_config_files="$ac_config_files stamp-h"
4988 ac_config_files="$ac_config_files Makefile src/xditview/Imakefile"
4990 cat >confcache <<\_ACEOF
4991 # This file is a shell script that caches the results of configure
4992 # tests run on this system so they can be shared between configure
4993 # scripts and configure runs, see configure's option --config-cache.
4994 # It is not useful on other systems. If it contains results you don't
4995 # want to keep, you may remove or edit it.
4997 # config.status only pays attention to the cache file if you give it
4998 # the --recheck option to rerun configure.
5000 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5001 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5002 # following values.
5004 _ACEOF
5006 # The following way of writing the cache mishandles newlines in values,
5007 # but we know of no workaround that is simple, portable, and efficient.
5008 # So, don't put newlines in cache variables' values.
5009 # Ultrix sh set writes to stderr and can't be redirected directly,
5010 # and sets the high bit in the cache file unless we assign to the vars.
5012 (set) 2>&1 |
5013 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5014 *ac_space=\ *)
5015 # `set' does not quote correctly, so add quotes (double-quote
5016 # substitution turns \\\\ into \\, and sed turns \\ into \).
5017 sed -n \
5018 "s/'/'\\\\''/g;
5019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5022 # `set' quotes correctly as required by POSIX, so do not add quotes.
5023 sed -n \
5024 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5026 esac;
5028 sed '
5029 t clear
5030 : clear
5031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5032 t end
5033 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5034 : end' >>confcache
5035 if cmp -s $cache_file confcache; then :; else
5036 if test -w $cache_file; then
5037 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5038 cat confcache >$cache_file
5039 else
5040 echo "not updating unwritable cache $cache_file"
5043 rm -f confcache
5045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5046 # Let make expand exec_prefix.
5047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5049 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5050 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5051 # trailing colons and then remove the whole line if VPATH becomes empty
5052 # (actually we leave an empty line to preserve line numbers).
5053 if test "x$srcdir" = x.; then
5054 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5055 s/:*\$(srcdir):*/:/;
5056 s/:*\${srcdir}:*/:/;
5057 s/:*@srcdir@:*/:/;
5058 s/^\([^=]*=[ ]*\):*/\1/;
5059 s/:*$//;
5060 s/^[^=]*=[ ]*$//;
5064 DEFS=-DHAVE_CONFIG_H
5066 : ${CONFIG_STATUS=./config.status}
5067 ac_clean_files_save=$ac_clean_files
5068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5069 { echo "$as_me:5069: creating $CONFIG_STATUS" >&5
5070 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5071 cat >$CONFIG_STATUS <<_ACEOF
5072 #! $SHELL
5073 # Generated automatically by configure.
5074 # Run this file to recreate the current configuration.
5075 # Compiler output produced by configure, useful for debugging
5076 # configure, is in config.log if it exists.
5078 debug=false
5079 SHELL=\${CONFIG_SHELL-$SHELL}
5080 ac_cs_invocation="\$0 \$@"
5082 _ACEOF
5084 cat >>$CONFIG_STATUS <<\_ACEOF
5085 # Be Bourne compatible
5086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5087 emulate sh
5088 NULLCMD=:
5089 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5090 set -o posix
5093 # Name of the executable.
5094 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5096 if expr a : '\(a\)' >/dev/null 2>&1; then
5097 as_expr=expr
5098 else
5099 as_expr=false
5102 rm -f conf$$ conf$$.exe conf$$.file
5103 echo >conf$$.file
5104 if ln -s conf$$.file conf$$ 2>/dev/null; then
5105 # We could just check for DJGPP; but this test a) works b) is more generic
5106 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5107 if test -f conf$$.exe; then
5108 # Don't use ln at all; we don't have any links
5109 as_ln_s='cp -p'
5110 else
5111 as_ln_s='ln -s'
5113 elif ln conf$$.file conf$$ 2>/dev/null; then
5114 as_ln_s=ln
5115 else
5116 as_ln_s='cp -p'
5118 rm -f conf$$ conf$$.exe conf$$.file
5120 as_executable_p="test -f"
5122 # Support unset when possible.
5123 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5124 as_unset=unset
5125 else
5126 as_unset=false
5129 # NLS nuisances.
5130 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5131 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5132 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5133 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5134 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5135 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5136 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5137 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5139 # IFS
5140 # We need space, tab and new line, in precisely that order.
5141 as_nl='
5143 IFS=" $as_nl"
5145 # CDPATH.
5146 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5148 exec 6>&1
5150 _ACEOF
5152 # Files that config.status was made for.
5153 if test -n "$ac_config_files"; then
5154 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5157 if test -n "$ac_config_headers"; then
5158 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5161 if test -n "$ac_config_links"; then
5162 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5165 if test -n "$ac_config_commands"; then
5166 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5169 cat >>$CONFIG_STATUS <<\EOF
5171 ac_cs_usage="\
5172 \`$as_me' instantiates files from templates according to the
5173 current configuration.
5175 Usage: $0 [OPTIONS] [FILE]...
5177 -h, --help print this help, then exit
5178 -V, --version print version number, then exit
5179 -d, --debug don't remove temporary files
5180 --recheck update $as_me by reconfiguring in the same conditions
5181 --file=FILE[:TEMPLATE]
5182 instantiate the configuration file FILE
5183 --header=FILE[:TEMPLATE]
5184 instantiate the configuration header FILE
5186 Configuration files:
5187 $config_files
5189 Configuration headers:
5190 $config_headers
5192 Report bugs to <bug-autoconf@gnu.org>."
5195 cat >>$CONFIG_STATUS <<EOF
5196 ac_cs_version="\\
5197 config.status
5198 configured by $0, generated by GNU Autoconf 2.52,
5199 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5201 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5202 Free Software Foundation, Inc.
5203 This config.status script is free software; the Free Software Foundation
5204 gives unlimited permission to copy, distribute and modify it."
5205 srcdir=$srcdir
5206 INSTALL="$INSTALL"
5209 cat >>$CONFIG_STATUS <<\EOF
5210 # If no file are specified by the user, then we need to provide default
5211 # value. By we need to know if files were specified by the user.
5212 ac_need_defaults=:
5213 while test $# != 0
5215 case $1 in
5216 --*=*)
5217 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5218 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5219 shift
5220 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5221 shift
5223 -*);;
5224 *) # This is not an option, so the user has probably given explicit
5225 # arguments.
5226 ac_need_defaults=false;;
5227 esac
5229 case $1 in
5230 # Handling of the options.
5232 cat >>$CONFIG_STATUS <<EOF
5233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5234 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5235 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5237 cat >>$CONFIG_STATUS <<\EOF
5238 --version | --vers* | -V )
5239 echo "$ac_cs_version"; exit 0 ;;
5240 --he | --h)
5241 # Conflict between --help and --header
5242 { { echo "$as_me:5242: error: ambiguous option: $1
5243 Try \`$0 --help' for more information." >&5
5244 echo "$as_me: error: ambiguous option: $1
5245 Try \`$0 --help' for more information." >&2;}
5246 { (exit 1); exit 1; }; };;
5247 --help | --hel | -h )
5248 echo "$ac_cs_usage"; exit 0 ;;
5249 --debug | --d* | -d )
5250 debug=: ;;
5251 --file | --fil | --fi | --f )
5252 shift
5253 CONFIG_FILES="$CONFIG_FILES $1"
5254 ac_need_defaults=false;;
5255 --header | --heade | --head | --hea )
5256 shift
5257 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5258 ac_need_defaults=false;;
5260 # This is an error.
5261 -*) { { echo "$as_me:5261: error: unrecognized option: $1
5262 Try \`$0 --help' for more information." >&5
5263 echo "$as_me: error: unrecognized option: $1
5264 Try \`$0 --help' for more information." >&2;}
5265 { (exit 1); exit 1; }; } ;;
5267 *) ac_config_targets="$ac_config_targets $1" ;;
5269 esac
5270 shift
5271 done
5273 exec 5>>config.log
5274 cat >&5 << _ACEOF
5276 ## ----------------------- ##
5277 ## Running config.status. ##
5278 ## ----------------------- ##
5280 This file was extended by $as_me 2.52, executed with
5281 CONFIG_FILES = $CONFIG_FILES
5282 CONFIG_HEADERS = $CONFIG_HEADERS
5283 CONFIG_LINKS = $CONFIG_LINKS
5284 CONFIG_COMMANDS = $CONFIG_COMMANDS
5285 > $ac_cs_invocation
5286 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5288 _ACEOF
5291 cat >>$CONFIG_STATUS <<\EOF
5292 for ac_config_target in $ac_config_targets
5294 case "$ac_config_target" in
5295 # Handling of arguments.
5296 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
5297 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5298 "src/xditview/Imakefile" ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
5299 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
5300 *) { { echo "$as_me:5300: error: invalid argument: $ac_config_target" >&5
5301 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5302 { (exit 1); exit 1; }; };;
5303 esac
5304 done
5306 # If the user did not use the arguments to specify the items to instantiate,
5307 # then the envvar interface is used. Set only those that are not.
5308 # We use the long form for the default assignment because of an extremely
5309 # bizarre bug on SunOS 4.1.3.
5310 if $ac_need_defaults; then
5311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5315 # Create a temporary directory, and hook for its removal unless debugging.
5316 $debug ||
5318 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5319 trap '{ (exit 1); exit 1; }' 1 2 13 15
5322 # Create a (secure) tmp directory for tmp files.
5323 : ${TMPDIR=/tmp}
5325 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5326 test -n "$tmp" && test -d "$tmp"
5327 } ||
5329 tmp=$TMPDIR/cs$$-$RANDOM
5330 (umask 077 && mkdir $tmp)
5331 } ||
5333 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5334 { (exit 1); exit 1; }
5339 cat >>$CONFIG_STATUS <<EOF
5342 # CONFIG_FILES section.
5345 # No need to generate the scripts if there are no CONFIG_FILES.
5346 # This happens for instance when ./config.status config.h
5347 if test -n "\$CONFIG_FILES"; then
5348 # Protect against being on the right side of a sed subst in config.status.
5349 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5350 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5351 s,@SHELL@,$SHELL,;t t
5352 s,@exec_prefix@,$exec_prefix,;t t
5353 s,@prefix@,$prefix,;t t
5354 s,@program_transform_name@,$program_transform_name,;t t
5355 s,@bindir@,$bindir,;t t
5356 s,@sbindir@,$sbindir,;t t
5357 s,@libexecdir@,$libexecdir,;t t
5358 s,@datadir@,$datadir,;t t
5359 s,@sysconfdir@,$sysconfdir,;t t
5360 s,@sharedstatedir@,$sharedstatedir,;t t
5361 s,@localstatedir@,$localstatedir,;t t
5362 s,@libdir@,$libdir,;t t
5363 s,@includedir@,$includedir,;t t
5364 s,@oldincludedir@,$oldincludedir,;t t
5365 s,@infodir@,$infodir,;t t
5366 s,@mandir@,$mandir,;t t
5367 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5368 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5369 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5370 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5371 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5372 s,@build_alias@,$build_alias,;t t
5373 s,@host_alias@,$host_alias,;t t
5374 s,@target_alias@,$target_alias,;t t
5375 s,@ECHO_C@,$ECHO_C,;t t
5376 s,@ECHO_N@,$ECHO_N,;t t
5377 s,@ECHO_T@,$ECHO_T,;t t
5378 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5379 s,@DEFS@,$DEFS,;t t
5380 s,@LIBS@,$LIBS,;t t
5381 s,@top_builddir@,$top_builddir,;t t
5382 s,@CC@,$CC,;t t
5383 s,@CFLAGS@,$CFLAGS,;t t
5384 s,@LDFLAGS@,$LDFLAGS,;t t
5385 s,@CPPFLAGS@,$CPPFLAGS,;t t
5386 s,@ac_ct_CC@,$ac_ct_CC,;t t
5387 s,@EXEEXT@,$EXEEXT,;t t
5388 s,@OBJEXT@,$OBJEXT,;t t
5389 s,@CXX@,$CXX,;t t
5390 s,@CXXFLAGS@,$CXXFLAGS,;t t
5391 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5392 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
5393 s,@LPR@,$LPR,;t t
5394 s,@LP@,$LP,;t t
5395 s,@LPQ@,$LPQ,;t t
5396 s,@PSPRINT@,$PSPRINT,;t t
5397 s,@DVIPRINT@,$DVIPRINT,;t t
5398 s,@PERLPATH@,$PERLPATH,;t t
5399 s,@YACC@,$YACC,;t t
5400 s,@RANLIB@,$RANLIB,;t t
5401 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5402 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5403 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5404 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5405 s,@LN_S@,$LN_S,;t t
5406 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
5407 s,@CPP@,$CPP,;t t
5408 s,@LIBM@,$LIBM,;t t
5409 s,@LIBOBJS@,$LIBOBJS,;t t
5410 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
5411 s,@PAGE@,$PAGE,;t t
5412 s,@g@,$g,;t t
5413 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
5414 s,@tmac_wrap@,$tmac_wrap,;t t
5415 CEOF
5419 cat >>$CONFIG_STATUS <<\EOF
5420 # Split the substitutions into bite-sized pieces for seds with
5421 # small command number limits, like on Digital OSF/1 and HP-UX.
5422 ac_max_sed_lines=48
5423 ac_sed_frag=1 # Number of current file.
5424 ac_beg=1 # First line for current file.
5425 ac_end=$ac_max_sed_lines # Line after last line for current file.
5426 ac_more_lines=:
5427 ac_sed_cmds=
5428 while $ac_more_lines; do
5429 if test $ac_beg -gt 1; then
5430 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5431 else
5432 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5434 if test ! -s $tmp/subs.frag; then
5435 ac_more_lines=false
5436 else
5437 # The purpose of the label and of the branching condition is to
5438 # speed up the sed processing (if there are no `@' at all, there
5439 # is no need to browse any of the substitutions).
5440 # These are the two extra sed commands mentioned above.
5441 (echo ':t
5442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5443 if test -z "$ac_sed_cmds"; then
5444 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5445 else
5446 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5448 ac_sed_frag=`expr $ac_sed_frag + 1`
5449 ac_beg=$ac_end
5450 ac_end=`expr $ac_end + $ac_max_sed_lines`
5452 done
5453 if test -z "$ac_sed_cmds"; then
5454 ac_sed_cmds=cat
5456 fi # test -n "$CONFIG_FILES"
5459 cat >>$CONFIG_STATUS <<\EOF
5460 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5462 case $ac_file in
5463 - | *:- | *:-:* ) # input from stdin
5464 cat >$tmp/stdin
5465 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5467 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5469 * ) ac_file_in=$ac_file.in ;;
5470 esac
5472 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5473 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5474 X"$ac_file" : 'X\(//\)[^/]' \| \
5475 X"$ac_file" : 'X\(//\)$' \| \
5476 X"$ac_file" : 'X\(/\)' \| \
5477 . : '\(.\)' 2>/dev/null ||
5478 echo X"$ac_file" |
5479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5481 /^X\(\/\/\)$/{ s//\1/; q; }
5482 /^X\(\/\).*/{ s//\1/; q; }
5483 s/.*/./; q'`
5484 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5485 { case "$ac_dir" in
5486 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5487 *) as_incr_dir=.;;
5488 esac
5489 as_dummy="$ac_dir"
5490 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5491 case $as_mkdir_dir in
5492 # Skip DOS drivespec
5493 ?:) as_incr_dir=$as_mkdir_dir ;;
5495 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5496 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5498 esac
5499 done; }
5501 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5502 # A "../" for each directory in $ac_dir_suffix.
5503 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5504 else
5505 ac_dir_suffix= ac_dots=
5508 case $srcdir in
5509 .) ac_srcdir=.
5510 if test -z "$ac_dots"; then
5511 ac_top_srcdir=.
5512 else
5513 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5514 fi ;;
5515 [\\/]* | ?:[\\/]* )
5516 ac_srcdir=$srcdir$ac_dir_suffix;
5517 ac_top_srcdir=$srcdir ;;
5518 *) # Relative path.
5519 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5520 ac_top_srcdir=$ac_dots$srcdir ;;
5521 esac
5523 case $INSTALL in
5524 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5525 *) ac_INSTALL=$ac_dots$INSTALL ;;
5526 esac
5528 if test x"$ac_file" != x-; then
5529 { echo "$as_me:5529: creating $ac_file" >&5
5530 echo "$as_me: creating $ac_file" >&6;}
5531 rm -f "$ac_file"
5533 # Let's still pretend it is `configure' which instantiates (i.e., don't
5534 # use $as_me), people would be surprised to read:
5535 # /* config.h. Generated automatically by config.status. */
5536 configure_input="Generated automatically from `echo $ac_file_in |
5537 sed 's,.*/,,'` by configure."
5539 # First look for the input files in the build tree, otherwise in the
5540 # src tree.
5541 ac_file_inputs=`IFS=:
5542 for f in $ac_file_in; do
5543 case $f in
5544 -) echo $tmp/stdin ;;
5545 [\\/$]*)
5546 # Absolute (can't be DOS-style, as IFS=:)
5547 test -f "$f" || { { echo "$as_me:5547: error: cannot find input file: $f" >&5
5548 echo "$as_me: error: cannot find input file: $f" >&2;}
5549 { (exit 1); exit 1; }; }
5550 echo $f;;
5551 *) # Relative
5552 if test -f "$f"; then
5553 # Build tree
5554 echo $f
5555 elif test -f "$srcdir/$f"; then
5556 # Source tree
5557 echo $srcdir/$f
5558 else
5559 # /dev/null tree
5560 { { echo "$as_me:5560: error: cannot find input file: $f" >&5
5561 echo "$as_me: error: cannot find input file: $f" >&2;}
5562 { (exit 1); exit 1; }; }
5563 fi;;
5564 esac
5565 done` || { (exit 1); exit 1; }
5567 cat >>$CONFIG_STATUS <<EOF
5568 sed "$ac_vpsub
5569 $extrasub
5571 cat >>$CONFIG_STATUS <<\EOF
5573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5574 s,@configure_input@,$configure_input,;t t
5575 s,@srcdir@,$ac_srcdir,;t t
5576 s,@top_srcdir@,$ac_top_srcdir,;t t
5577 s,@INSTALL@,$ac_INSTALL,;t t
5578 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5579 rm -f $tmp/stdin
5580 if test x"$ac_file" != x-; then
5581 mv $tmp/out $ac_file
5582 else
5583 cat $tmp/out
5584 rm -f $tmp/out
5587 # Run the commands associated with the file.
5588 case $ac_file in
5589 stamp-h ) echo timestamp > stamp-h ;;
5590 esac
5591 done
5593 cat >>$CONFIG_STATUS <<\EOF
5596 # CONFIG_HEADER section.
5599 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5600 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5602 # ac_d sets the value in "#define NAME VALUE" lines.
5603 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5604 ac_dB='[ ].*$,\1#\2'
5605 ac_dC=' '
5606 ac_dD=',;t'
5607 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5608 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5609 ac_uB='$,\1#\2define\3'
5610 ac_uC=' '
5611 ac_uD=',;t'
5613 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5614 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5615 case $ac_file in
5616 - | *:- | *:-:* ) # input from stdin
5617 cat >$tmp/stdin
5618 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5619 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5620 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5621 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5622 * ) ac_file_in=$ac_file.in ;;
5623 esac
5625 test x"$ac_file" != x- && { echo "$as_me:5625: creating $ac_file" >&5
5626 echo "$as_me: creating $ac_file" >&6;}
5628 # First look for the input files in the build tree, otherwise in the
5629 # src tree.
5630 ac_file_inputs=`IFS=:
5631 for f in $ac_file_in; do
5632 case $f in
5633 -) echo $tmp/stdin ;;
5634 [\\/$]*)
5635 # Absolute (can't be DOS-style, as IFS=:)
5636 test -f "$f" || { { echo "$as_me:5636: error: cannot find input file: $f" >&5
5637 echo "$as_me: error: cannot find input file: $f" >&2;}
5638 { (exit 1); exit 1; }; }
5639 echo $f;;
5640 *) # Relative
5641 if test -f "$f"; then
5642 # Build tree
5643 echo $f
5644 elif test -f "$srcdir/$f"; then
5645 # Source tree
5646 echo $srcdir/$f
5647 else
5648 # /dev/null tree
5649 { { echo "$as_me:5649: error: cannot find input file: $f" >&5
5650 echo "$as_me: error: cannot find input file: $f" >&2;}
5651 { (exit 1); exit 1; }; }
5652 fi;;
5653 esac
5654 done` || { (exit 1); exit 1; }
5655 # Remove the trailing spaces.
5656 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5660 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5661 # `conftest.undefs', that substitutes the proper values into
5662 # config.h.in to produce config.h. The first handles `#define'
5663 # templates, and the second `#undef' templates.
5664 # And first: Protect against being on the right side of a sed subst in
5665 # config.status. Protect against being in an unquoted here document
5666 # in config.status.
5667 rm -f conftest.defines conftest.undefs
5668 # Using a here document instead of a string reduces the quoting nightmare.
5669 # Putting comments in sed scripts is not portable.
5671 # `end' is used to avoid that the second main sed command (meant for
5672 # 0-ary CPP macros) applies to n-ary macro definitions.
5673 # See the Autoconf documentation for `clear'.
5674 cat >confdef2sed.sed <<\EOF
5675 s/[\\&,]/\\&/g
5676 s,[\\$`],\\&,g
5677 t clear
5678 : clear
5679 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5680 t end
5681 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5682 : end
5684 # If some macros were called several times there might be several times
5685 # the same #defines, which is useless. Nevertheless, we may not want to
5686 # sort them, since we want the *last* AC-DEFINE to be honored.
5687 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5688 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5689 rm -f confdef2sed.sed
5691 # This sed command replaces #undef with comments. This is necessary, for
5692 # example, in the case of _POSIX_SOURCE, which is predefined and required
5693 # on some systems where configure will not decide to define it.
5694 cat >>conftest.undefs <<\EOF
5695 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5698 # Break up conftest.defines because some shells have a limit on the size
5699 # of here documents, and old seds have small limits too (100 cmds).
5700 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5701 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5702 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5703 echo ' :' >>$CONFIG_STATUS
5704 rm -f conftest.tail
5705 while grep . conftest.defines >/dev/null
5707 # Write a limited-size here document to $tmp/defines.sed.
5708 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5709 # Speed up: don't consider the non `#define' lines.
5710 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5711 # Work around the forget-to-reset-the-flag bug.
5712 echo 't clr' >>$CONFIG_STATUS
5713 echo ': clr' >>$CONFIG_STATUS
5714 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5715 echo 'CEOF
5716 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5717 rm -f $tmp/in
5718 mv $tmp/out $tmp/in
5719 ' >>$CONFIG_STATUS
5720 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5721 rm -f conftest.defines
5722 mv conftest.tail conftest.defines
5723 done
5724 rm -f conftest.defines
5725 echo ' fi # egrep' >>$CONFIG_STATUS
5726 echo >>$CONFIG_STATUS
5728 # Break up conftest.undefs because some shells have a limit on the size
5729 # of here documents, and old seds have small limits too (100 cmds).
5730 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5731 rm -f conftest.tail
5732 while grep . conftest.undefs >/dev/null
5734 # Write a limited-size here document to $tmp/undefs.sed.
5735 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5736 # Speed up: don't consider the non `#undef'
5737 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5738 # Work around the forget-to-reset-the-flag bug.
5739 echo 't clr' >>$CONFIG_STATUS
5740 echo ': clr' >>$CONFIG_STATUS
5741 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5742 echo 'CEOF
5743 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5744 rm -f $tmp/in
5745 mv $tmp/out $tmp/in
5746 ' >>$CONFIG_STATUS
5747 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5748 rm -f conftest.undefs
5749 mv conftest.tail conftest.undefs
5750 done
5751 rm -f conftest.undefs
5753 cat >>$CONFIG_STATUS <<\EOF
5754 # Let's still pretend it is `configure' which instantiates (i.e., don't
5755 # use $as_me), people would be surprised to read:
5756 # /* config.h. Generated automatically by config.status. */
5757 if test x"$ac_file" = x-; then
5758 echo "/* Generated automatically by configure. */" >$tmp/config.h
5759 else
5760 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5762 cat $tmp/in >>$tmp/config.h
5763 rm -f $tmp/in
5764 if test x"$ac_file" != x-; then
5765 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5766 { echo "$as_me:5766: $ac_file is unchanged" >&5
5767 echo "$as_me: $ac_file is unchanged" >&6;}
5768 else
5769 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5770 X"$ac_file" : 'X\(//\)[^/]' \| \
5771 X"$ac_file" : 'X\(//\)$' \| \
5772 X"$ac_file" : 'X\(/\)' \| \
5773 . : '\(.\)' 2>/dev/null ||
5774 echo X"$ac_file" |
5775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5777 /^X\(\/\/\)$/{ s//\1/; q; }
5778 /^X\(\/\).*/{ s//\1/; q; }
5779 s/.*/./; q'`
5780 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5781 { case "$ac_dir" in
5782 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5783 *) as_incr_dir=.;;
5784 esac
5785 as_dummy="$ac_dir"
5786 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5787 case $as_mkdir_dir in
5788 # Skip DOS drivespec
5789 ?:) as_incr_dir=$as_mkdir_dir ;;
5791 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5792 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5794 esac
5795 done; }
5798 rm -f $ac_file
5799 mv $tmp/config.h $ac_file
5801 else
5802 cat $tmp/config.h
5803 rm -f $tmp/config.h
5805 done
5808 cat >>$CONFIG_STATUS <<\EOF
5810 { (exit 0); exit 0; }
5812 chmod +x $CONFIG_STATUS
5813 ac_clean_files=$ac_clean_files_save
5815 # configure is writing to config.log, and then calls config.status.
5816 # config.status does its own redirection, appending to config.log.
5817 # Unfortunately, on DOS this fails, as config.log is still kept open
5818 # by configure, so config.status won't be able to write to it; its
5819 # output is simply discarded. So we exec the FD to /dev/null,
5820 # effectively closing config.log, so it can be properly (re)opened and
5821 # appended to by config.status. When coming back to configure, we
5822 # need to make the FD available again.
5823 if test "$no_create" != yes; then
5824 ac_cs_success=:
5825 exec 5>/dev/null
5826 $SHELL $CONFIG_STATUS || ac_cs_success=false
5827 exec 5>>config.log
5828 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5829 # would make configure fail if this is the last instruction.
5830 $ac_cs_success || { (exit 1); exit 1; }
5833 { echo "$as_me:5833:
5835 Configuration completed.
5837 You can now say \`make' to compile the groff package and \`make install'
5838 to install it afterwards.
5840 If you want to compile xditview, change the directory to \`src/xditview'
5841 and follow the instructions given in the file \`INSTALL'.
5842 " >&5
5843 echo "$as_me:
5845 Configuration completed.
5847 You can now say \`make' to compile the groff package and \`make install'
5848 to install it afterwards.
5850 If you want to compile xditview, change the directory to \`src/xditview'
5851 and follow the instructions given in the file \`INSTALL'.
5852 " >&6;}