* aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
[s-roff.git] / configure
blob846e2dfdccf8dfbf74ffc4c951442c30d4743fc3
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"
2140 OTHERDEVDIRS="font/devlj4 font/devlbp"
2141 echo "$as_me:2141: result: no" >&5
2142 echo "${ECHO_T}no" >&6
2144 rm -f conftest.$ac_objext conftest.$ac_ext
2146 if test "$groff_cv_ebcdic" = "yes"; then
2147 echo "$as_me:2147: checking for OS/390 Unix" >&5
2148 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
2149 case `uname` in
2150 OS/390)
2151 CFLAGS="$CFLAGS -D_ALL_SOURCE"
2152 echo "$as_me:2152: result: yes" >&5
2153 echo "${ECHO_T}yes" >&6 ;;
2155 echo "$as_me:2155: result: no" >&5
2156 echo "${ECHO_T}no" >&6 ;;
2157 esac
2159 if test -z "$PSPRINT"; then
2160 for ac_prog in lpr
2162 # Extract the first word of "$ac_prog", so it can be a program name with args.
2163 set dummy $ac_prog; ac_word=$2
2164 echo "$as_me:2164: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166 if test "${ac_cv_prog_LPR+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 if test -n "$LPR"; then
2170 ac_cv_prog_LPR="$LPR" # Let the user override the test.
2171 else
2172 ac_save_IFS=$IFS; IFS=$ac_path_separator
2173 ac_dummy="$PATH"
2174 for ac_dir in $ac_dummy; do
2175 IFS=$ac_save_IFS
2176 test -z "$ac_dir" && ac_dir=.
2177 $as_executable_p "$ac_dir/$ac_word" || continue
2178 ac_cv_prog_LPR="$ac_prog"
2179 echo "$as_me:2179: found $ac_dir/$ac_word" >&5
2180 break
2181 done
2185 LPR=$ac_cv_prog_LPR
2186 if test -n "$LPR"; then
2187 echo "$as_me:2187: result: $LPR" >&5
2188 echo "${ECHO_T}$LPR" >&6
2189 else
2190 echo "$as_me:2190: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2194 test -n "$LPR" && break
2195 done
2197 for ac_prog in lp
2199 # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy $ac_prog; ac_word=$2
2201 echo "$as_me:2201: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_LP+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 if test -n "$LP"; then
2207 ac_cv_prog_LP="$LP" # Let the user override the test.
2208 else
2209 ac_save_IFS=$IFS; IFS=$ac_path_separator
2210 ac_dummy="$PATH"
2211 for ac_dir in $ac_dummy; do
2212 IFS=$ac_save_IFS
2213 test -z "$ac_dir" && ac_dir=.
2214 $as_executable_p "$ac_dir/$ac_word" || continue
2215 ac_cv_prog_LP="$ac_prog"
2216 echo "$as_me:2216: found $ac_dir/$ac_word" >&5
2217 break
2218 done
2222 LP=$ac_cv_prog_LP
2223 if test -n "$LP"; then
2224 echo "$as_me:2224: result: $LP" >&5
2225 echo "${ECHO_T}$LP" >&6
2226 else
2227 echo "$as_me:2227: result: no" >&5
2228 echo "${ECHO_T}no" >&6
2231 test -n "$LP" && break
2232 done
2234 if test -n "$LPR" && test -n "$LP"; then
2235 # HP-UX provides an lpr command that emulates lpr using lp,
2236 # but it doesn't have lpq; in this case we want to use lp
2237 # rather than lpr.
2238 for ac_prog in lpq
2240 # Extract the first word of "$ac_prog", so it can be a program name with args.
2241 set dummy $ac_prog; ac_word=$2
2242 echo "$as_me:2242: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_LPQ+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$LPQ"; then
2248 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
2249 else
2250 ac_save_IFS=$IFS; IFS=$ac_path_separator
2251 ac_dummy="$PATH"
2252 for ac_dir in $ac_dummy; do
2253 IFS=$ac_save_IFS
2254 test -z "$ac_dir" && ac_dir=.
2255 $as_executable_p "$ac_dir/$ac_word" || continue
2256 ac_cv_prog_LPQ="$ac_prog"
2257 echo "$as_me:2257: found $ac_dir/$ac_word" >&5
2258 break
2259 done
2263 LPQ=$ac_cv_prog_LPQ
2264 if test -n "$LPQ"; then
2265 echo "$as_me:2265: result: $LPQ" >&5
2266 echo "${ECHO_T}$LPQ" >&6
2267 else
2268 echo "$as_me:2268: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2272 test -n "$LPQ" && break
2273 done
2275 test -n "$LPQ" || LPR=
2277 if test -n "$LPR"; then
2278 PSPRINT="$LPR"
2279 elif test -n "$LP"; then
2280 PSPRINT="$LP"
2284 echo "$as_me:2284: checking for command to use for printing PostScript files" >&5
2285 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
2286 echo "$as_me:2286: result: $PSPRINT" >&5
2287 echo "${ECHO_T}$PSPRINT" >&6
2288 # Figure out DVIPRINT from PSPRINT.
2289 echo "$as_me:2289: checking for command to use for printing dvi files" >&5
2290 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
2291 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
2292 if test "X$PSPRINT" = "Xlpr"; then
2293 DVIPRINT="lpr -d"
2294 else
2295 DVIPRINT="$PSPRINT"
2299 echo "$as_me:2299: result: $DVIPRINT" >&5
2300 echo "${ECHO_T}$DVIPRINT" >&6
2301 # Extract the first word of "perl", so it can be a program name with args.
2302 set dummy perl; ac_word=$2
2303 echo "$as_me:2303: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305 if test "${ac_cv_path_PERLPATH+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308 case $PERLPATH in
2309 [\\/]* | ?:[\\/]*)
2310 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
2313 ac_save_IFS=$IFS; IFS=$ac_path_separator
2314 ac_dummy="$PATH"
2315 for ac_dir in $ac_dummy; do
2316 IFS=$ac_save_IFS
2317 test -z "$ac_dir" && ac_dir=.
2318 if $as_executable_p "$ac_dir/$ac_word"; then
2319 ac_cv_path_PERLPATH="$ac_dir/$ac_word"
2320 echo "$as_me:2320: found $ac_dir/$ac_word" >&5
2321 break
2323 done
2325 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
2327 esac
2329 PERLPATH=$ac_cv_path_PERLPATH
2331 if test -n "$PERLPATH"; then
2332 echo "$as_me:2332: result: $PERLPATH" >&5
2333 echo "${ECHO_T}$PERLPATH" >&6
2334 else
2335 echo "$as_me:2335: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2339 for ac_prog in byacc 'bison -y'
2341 # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 echo "$as_me:2343: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_YACC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 if test -n "$YACC"; then
2349 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2350 else
2351 ac_save_IFS=$IFS; IFS=$ac_path_separator
2352 ac_dummy="$PATH"
2353 for ac_dir in $ac_dummy; do
2354 IFS=$ac_save_IFS
2355 test -z "$ac_dir" && ac_dir=.
2356 $as_executable_p "$ac_dir/$ac_word" || continue
2357 ac_cv_prog_YACC="$ac_prog"
2358 echo "$as_me:2358: found $ac_dir/$ac_word" >&5
2359 break
2360 done
2364 YACC=$ac_cv_prog_YACC
2365 if test -n "$YACC"; then
2366 echo "$as_me:2366: result: $YACC" >&5
2367 echo "${ECHO_T}$YACC" >&6
2368 else
2369 echo "$as_me:2369: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2373 test -n "$YACC" && break
2374 done
2375 test -n "$YACC" || YACC="yacc"
2377 if test -n "$ac_tool_prefix"; then
2378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2380 echo "$as_me:2380: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382 if test "${ac_cv_prog_RANLIB+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$RANLIB"; then
2386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2387 else
2388 ac_save_IFS=$IFS; IFS=$ac_path_separator
2389 ac_dummy="$PATH"
2390 for ac_dir in $ac_dummy; do
2391 IFS=$ac_save_IFS
2392 test -z "$ac_dir" && ac_dir=.
2393 $as_executable_p "$ac_dir/$ac_word" || continue
2394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2395 echo "$as_me:2395: found $ac_dir/$ac_word" >&5
2396 break
2397 done
2401 RANLIB=$ac_cv_prog_RANLIB
2402 if test -n "$RANLIB"; then
2403 echo "$as_me:2403: result: $RANLIB" >&5
2404 echo "${ECHO_T}$RANLIB" >&6
2405 else
2406 echo "$as_me:2406: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 if test -z "$ac_cv_prog_RANLIB"; then
2412 ac_ct_RANLIB=$RANLIB
2413 # Extract the first word of "ranlib", so it can be a program name with args.
2414 set dummy ranlib; ac_word=$2
2415 echo "$as_me:2415: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 if test -n "$ac_ct_RANLIB"; then
2421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2422 else
2423 ac_save_IFS=$IFS; IFS=$ac_path_separator
2424 ac_dummy="$PATH"
2425 for ac_dir in $ac_dummy; do
2426 IFS=$ac_save_IFS
2427 test -z "$ac_dir" && ac_dir=.
2428 $as_executable_p "$ac_dir/$ac_word" || continue
2429 ac_cv_prog_ac_ct_RANLIB="ranlib"
2430 echo "$as_me:2430: found $ac_dir/$ac_word" >&5
2431 break
2432 done
2434 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2437 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2438 if test -n "$ac_ct_RANLIB"; then
2439 echo "$as_me:2439: result: $ac_ct_RANLIB" >&5
2440 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2441 else
2442 echo "$as_me:2442: result: no" >&5
2443 echo "${ECHO_T}no" >&6
2446 RANLIB=$ac_ct_RANLIB
2447 else
2448 RANLIB="$ac_cv_prog_RANLIB"
2451 ac_aux_dir=
2452 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2453 if test -f $ac_dir/install-sh; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/install-sh -c"
2456 break
2457 elif test -f $ac_dir/install.sh; then
2458 ac_aux_dir=$ac_dir
2459 ac_install_sh="$ac_aux_dir/install.sh -c"
2460 break
2461 elif test -f $ac_dir/shtool; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/shtool install -c"
2464 break
2466 done
2467 if test -z "$ac_aux_dir"; then
2468 { { echo "$as_me:2468: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2469 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2470 { (exit 1); exit 1; }; }
2472 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2473 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2474 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2476 ac_dir=`cd $ac_aux_dir; pwd`
2477 ac_install_sh="$ac_dir/install-sh -c"
2478 # Find a good install program. We prefer a C program (faster),
2479 # so one script is as good as another. But avoid the broken or
2480 # incompatible versions:
2481 # SysV /etc/install, /usr/sbin/install
2482 # SunOS /usr/etc/install
2483 # IRIX /sbin/install
2484 # AIX /bin/install
2485 # AmigaOS /C/install, which installs bootblocks on floppy discs
2486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2489 # ./install, which can be erroneously created by make from ./install.sh.
2490 echo "$as_me:2490: checking for a BSD compatible install" >&5
2491 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2492 if test -z "$INSTALL"; then
2493 if test "${ac_cv_path_install+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496 ac_save_IFS=$IFS; IFS=$ac_path_separator
2497 for ac_dir in $PATH; do
2498 IFS=$ac_save_IFS
2499 # Account for people who put trailing slashes in PATH elements.
2500 case $ac_dir/ in
2501 / | ./ | .// | /cC/* \
2502 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2503 | /usr/ucb/* ) ;;
2505 # OSF1 and SCO ODT 3.0 have their own names for install.
2506 # Don't use installbsd from OSF since it installs stuff as root
2507 # by default.
2508 for ac_prog in ginstall scoinst install; do
2509 if $as_executable_p "$ac_dir/$ac_prog"; then
2510 if test $ac_prog = install &&
2511 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2512 # AIX install. It has an incompatible calling convention.
2514 elif test $ac_prog = install &&
2515 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2516 # program-specific install script used by HP pwplus--don't use.
2518 else
2519 ac_cv_path_install="$ac_dir/$ac_prog -c"
2520 break 2
2523 done
2525 esac
2526 done
2529 if test "${ac_cv_path_install+set}" = set; then
2530 INSTALL=$ac_cv_path_install
2531 else
2532 # As a last resort, use the slow shell script. We don't cache a
2533 # path for INSTALL within a source directory, because that will
2534 # break other packages using the cache if that directory is
2535 # removed, or if the path is relative.
2536 INSTALL=$ac_install_sh
2539 echo "$as_me:2539: result: $INSTALL" >&5
2540 echo "${ECHO_T}$INSTALL" >&6
2542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2543 # It thinks the first close brace ends the variable substitution.
2544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2546 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2548 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2550 echo "$as_me:2550: checking whether ln -s works" >&5
2551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2552 LN_S=$as_ln_s
2553 if test "$LN_S" = "ln -s"; then
2554 echo "$as_me:2554: result: yes" >&5
2555 echo "${ECHO_T}yes" >&6
2556 else
2557 echo "$as_me:2557: result: no, using $LN_S" >&5
2558 echo "${ECHO_T}no, using $LN_S" >&6
2561 echo "$as_me:2561: checking for csh hash hack" >&5
2562 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
2563 cat <<EOF >conftest.sh
2564 #!/bin/sh
2565 true || exit 0
2566 export PATH || exit 0
2567 exit 1
2569 chmod +x conftest.sh
2570 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
2571 echo "$as_me:2571: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
2573 else
2574 echo "$as_me:2574: result: no" >&5
2575 echo "${ECHO_T}no" >&6; SH_SCRIPT_SED_CMD='1s/a/a/'
2577 rm -f conftest.sh
2579 ac_ext=c
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584 echo "$as_me:2584: checking how to run the C preprocessor" >&5
2585 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2586 # On Suns, sometimes $CPP names a directory.
2587 if test -n "$CPP" && test -d "$CPP"; then
2588 CPP=
2590 if test -z "$CPP"; then
2591 if test "${ac_cv_prog_CPP+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 else
2594 # Double quotes because CPP needs to be expanded
2595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2597 ac_preproc_ok=false
2598 for ac_c_preproc_warn_flag in '' yes
2600 # Use a header file that comes with gcc, so configuring glibc
2601 # with a fresh cross-compiler works.
2602 # On the NeXT, cc -E runs the code through the compiler's parser,
2603 # not just through cpp. "Syntax error" is here to catch this case.
2604 cat >conftest.$ac_ext <<_ACEOF
2605 #line 2605 "configure"
2606 #include "confdefs.h"
2607 #include <assert.h>
2608 Syntax error
2609 _ACEOF
2610 if { (eval echo "$as_me:2610: \"$ac_cpp conftest.$ac_ext\"") >&5
2611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2612 ac_status=$?
2613 egrep -v '^ *\+' conftest.er1 >conftest.err
2614 rm -f conftest.er1
2615 cat conftest.err >&5
2616 echo "$as_me:2616: \$? = $ac_status" >&5
2617 (exit $ac_status); } >/dev/null; then
2618 if test -s conftest.err; then
2619 ac_cpp_err=$ac_c_preproc_warn_flag
2620 else
2621 ac_cpp_err=
2623 else
2624 ac_cpp_err=yes
2626 if test -z "$ac_cpp_err"; then
2628 else
2629 echo "$as_me: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2631 # Broken: fails on valid input.
2632 continue
2634 rm -f conftest.err conftest.$ac_ext
2636 # OK, works on sane cases. Now check whether non-existent headers
2637 # can be detected and how.
2638 cat >conftest.$ac_ext <<_ACEOF
2639 #line 2639 "configure"
2640 #include "confdefs.h"
2641 #include <ac_nonexistent.h>
2642 _ACEOF
2643 if { (eval echo "$as_me:2643: \"$ac_cpp conftest.$ac_ext\"") >&5
2644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2645 ac_status=$?
2646 egrep -v '^ *\+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 echo "$as_me:2649: \$? = $ac_status" >&5
2650 (exit $ac_status); } >/dev/null; then
2651 if test -s conftest.err; then
2652 ac_cpp_err=$ac_c_preproc_warn_flag
2653 else
2654 ac_cpp_err=
2656 else
2657 ac_cpp_err=yes
2659 if test -z "$ac_cpp_err"; then
2660 # Broken: success on invalid input.
2661 continue
2662 else
2663 echo "$as_me: failed program was:" >&5
2664 cat conftest.$ac_ext >&5
2665 # Passes both tests.
2666 ac_preproc_ok=:
2667 break
2669 rm -f conftest.err conftest.$ac_ext
2671 done
2672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2673 rm -f conftest.err conftest.$ac_ext
2674 if $ac_preproc_ok; then
2675 break
2678 done
2679 ac_cv_prog_CPP=$CPP
2682 CPP=$ac_cv_prog_CPP
2683 else
2684 ac_cv_prog_CPP=$CPP
2686 echo "$as_me:2686: result: $CPP" >&5
2687 echo "${ECHO_T}$CPP" >&6
2688 ac_preproc_ok=false
2689 for ac_c_preproc_warn_flag in '' yes
2691 # Use a header file that comes with gcc, so configuring glibc
2692 # with a fresh cross-compiler works.
2693 # On the NeXT, cc -E runs the code through the compiler's parser,
2694 # not just through cpp. "Syntax error" is here to catch this case.
2695 cat >conftest.$ac_ext <<_ACEOF
2696 #line 2696 "configure"
2697 #include "confdefs.h"
2698 #include <assert.h>
2699 Syntax error
2700 _ACEOF
2701 if { (eval echo "$as_me:2701: \"$ac_cpp conftest.$ac_ext\"") >&5
2702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2703 ac_status=$?
2704 egrep -v '^ *\+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:2707: \$? = $ac_status" >&5
2708 (exit $ac_status); } >/dev/null; then
2709 if test -s conftest.err; then
2710 ac_cpp_err=$ac_c_preproc_warn_flag
2711 else
2712 ac_cpp_err=
2714 else
2715 ac_cpp_err=yes
2717 if test -z "$ac_cpp_err"; then
2719 else
2720 echo "$as_me: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 # Broken: fails on valid input.
2723 continue
2725 rm -f conftest.err conftest.$ac_ext
2727 # OK, works on sane cases. Now check whether non-existent headers
2728 # can be detected and how.
2729 cat >conftest.$ac_ext <<_ACEOF
2730 #line 2730 "configure"
2731 #include "confdefs.h"
2732 #include <ac_nonexistent.h>
2733 _ACEOF
2734 if { (eval echo "$as_me:2734: \"$ac_cpp conftest.$ac_ext\"") >&5
2735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2736 ac_status=$?
2737 egrep -v '^ *\+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:2740: \$? = $ac_status" >&5
2741 (exit $ac_status); } >/dev/null; then
2742 if test -s conftest.err; then
2743 ac_cpp_err=$ac_c_preproc_warn_flag
2744 else
2745 ac_cpp_err=
2747 else
2748 ac_cpp_err=yes
2750 if test -z "$ac_cpp_err"; then
2751 # Broken: success on invalid input.
2752 continue
2753 else
2754 echo "$as_me: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2756 # Passes both tests.
2757 ac_preproc_ok=:
2758 break
2760 rm -f conftest.err conftest.$ac_ext
2762 done
2763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2764 rm -f conftest.err conftest.$ac_ext
2765 if $ac_preproc_ok; then
2767 else
2768 { { echo "$as_me:2768: error: C preprocessor \"$CPP\" fails sanity check" >&5
2769 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2770 { (exit 1); exit 1; }; }
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 for ac_header in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
2780 string.h strings.h math.h stdint.h sys/time.h
2782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2783 echo "$as_me:2783: checking for $ac_header" >&5
2784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line 2789 "configure"
2790 #include "confdefs.h"
2791 #include <$ac_header>
2792 _ACEOF
2793 if { (eval echo "$as_me:2793: \"$ac_cpp conftest.$ac_ext\"") >&5
2794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795 ac_status=$?
2796 egrep -v '^ *\+' conftest.er1 >conftest.err
2797 rm -f conftest.er1
2798 cat conftest.err >&5
2799 echo "$as_me:2799: \$? = $ac_status" >&5
2800 (exit $ac_status); } >/dev/null; then
2801 if test -s conftest.err; then
2802 ac_cpp_err=$ac_c_preproc_warn_flag
2803 else
2804 ac_cpp_err=
2806 else
2807 ac_cpp_err=yes
2809 if test -z "$ac_cpp_err"; then
2810 eval "$as_ac_Header=yes"
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2814 eval "$as_ac_Header=no"
2816 rm -f conftest.err conftest.$ac_ext
2818 echo "$as_me:2818: result: `eval echo '${'$as_ac_Header'}'`" >&5
2819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2821 cat >>confdefs.h <<EOF
2822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2826 done
2828 echo "$as_me:2828: checking for ISC 3.x or 4.x" >&5
2829 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
2830 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
2831 then
2832 echo "$as_me:2832: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6
2835 cat >>confdefs.h <<\EOF
2836 #define _SYSV3 1
2839 else
2840 echo "$as_me:2840: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2843 echo "$as_me:2843: checking whether -D_POSIX_SOURCE is necessary" >&5
2844 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
2845 ac_ext=cc
2846 ac_cpp='$CXXCPP $CPPFLAGS'
2847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2851 cat >conftest.$ac_ext <<_ACEOF
2852 #line 2852 "configure"
2853 #include "confdefs.h"
2854 #include <stdio.h>
2855 extern "C" { void fileno(int); }
2857 main ()
2861 return 0;
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:2865: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2867 ac_status=$?
2868 echo "$as_me:2868: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:2871: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:2874: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 echo "$as_me:2876: result: yes" >&5
2877 echo "${ECHO_T}yes" >&6;
2878 cat >>confdefs.h <<\EOF
2879 #define _POSIX_SOURCE 1
2882 else
2883 echo "$as_me: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2885 echo "$as_me:2885: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2888 rm -f conftest.$ac_objext conftest.$ac_ext
2889 ac_ext=c
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 ac_ext=cc
2896 ac_cpp='$CXXCPP $CPPFLAGS'
2897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2901 echo "$as_me:2901: checking for return type of srand" >&5
2902 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line 2904 "configure"
2905 #include "confdefs.h"
2906 #include <stdlib.h>
2907 extern "C" { void srand(unsigned int); }
2909 main ()
2913 return 0;
2915 _ACEOF
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:2917: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>&5
2919 ac_status=$?
2920 echo "$as_me:2920: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:2923: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:2926: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 echo "$as_me:2928: result: void" >&5
2929 echo "${ECHO_T}void" >&6;
2930 cat >>confdefs.h <<\EOF
2931 #define RET_TYPE_SRAND_IS_VOID 1
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2937 echo "$as_me:2937: result: int" >&5
2938 echo "${ECHO_T}int" >&6
2940 rm -f conftest.$ac_objext conftest.$ac_ext
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 echo "$as_me:2947: checking whether gettimeofday must be declared" >&5
2948 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
2949 ac_ext=cc
2950 ac_cpp='$CXXCPP $CPPFLAGS'
2951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2955 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line 2959 "configure"
2960 #include "confdefs.h"
2962 #include <stdio.h>
2963 #ifdef HAVE_STRING_H
2964 #include <string.h>
2965 #endif
2966 #ifdef HAVE_STRINGS_H
2967 #include <strings.h>
2968 #endif
2969 #ifdef HAVE_STDLIB_H
2970 #include <stdlib.h>
2971 #endif
2972 #ifdef HAVE_SYS_TIME_H
2973 #include <sys/time.h>
2974 #endif
2975 #ifdef HAVE_UNISTD_H
2976 #include <unistd.h>
2977 #endif
2978 #ifdef HAVE_MATH_H
2979 #include <math.h>
2980 #endif
2982 main ()
2984 char *(*pfn) = (char *(*)) gettimeofday
2986 return 0;
2988 _ACEOF
2989 rm -f conftest.$ac_objext
2990 if { (eval echo "$as_me:2990: \"$ac_compile\"") >&5
2991 (eval $ac_compile) 2>&5
2992 ac_status=$?
2993 echo "$as_me:2993: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:2996: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:2999: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 groff_cv_decl_needed_gettimeofday=no
3002 else
3003 echo "$as_me: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 groff_cv_decl_needed_gettimeofday=yes
3007 rm -f conftest.$ac_objext conftest.$ac_ext
3010 echo "$as_me:3010: result: $groff_cv_decl_needed_gettimeofday" >&5
3011 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
3012 if test $groff_cv_decl_needed_gettimeofday = yes; then
3014 cat >>confdefs.h <<\EOF
3015 #define NEED_DECLARATION_GETTIMEOFDAY 1
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 echo "$as_me:3025: checking whether hypot must be declared" >&5
3026 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
3027 ac_ext=cc
3028 ac_cpp='$CXXCPP $CPPFLAGS'
3029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3033 if test "${groff_cv_decl_needed_hypot+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line 3037 "configure"
3038 #include "confdefs.h"
3040 #include <stdio.h>
3041 #ifdef HAVE_STRING_H
3042 #include <string.h>
3043 #endif
3044 #ifdef HAVE_STRINGS_H
3045 #include <strings.h>
3046 #endif
3047 #ifdef HAVE_STDLIB_H
3048 #include <stdlib.h>
3049 #endif
3050 #ifdef HAVE_SYS_TIME_H
3051 #include <sys/time.h>
3052 #endif
3053 #ifdef HAVE_UNISTD_H
3054 #include <unistd.h>
3055 #endif
3056 #ifdef HAVE_MATH_H
3057 #include <math.h>
3058 #endif
3060 main ()
3062 char *(*pfn) = (char *(*)) hypot
3064 return 0;
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:3068: \"$ac_compile\"") >&5
3069 (eval $ac_compile) 2>&5
3070 ac_status=$?
3071 echo "$as_me:3071: \$? = $ac_status" >&5
3072 (exit $ac_status); } &&
3073 { ac_try='test -s conftest.$ac_objext'
3074 { (eval echo "$as_me:3074: \"$ac_try\"") >&5
3075 (eval $ac_try) 2>&5
3076 ac_status=$?
3077 echo "$as_me:3077: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 groff_cv_decl_needed_hypot=no
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3083 groff_cv_decl_needed_hypot=yes
3085 rm -f conftest.$ac_objext conftest.$ac_ext
3088 echo "$as_me:3088: result: $groff_cv_decl_needed_hypot" >&5
3089 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
3090 if test $groff_cv_decl_needed_hypot = yes; then
3092 cat >>confdefs.h <<\EOF
3093 #define NEED_DECLARATION_HYPOT 1
3097 ac_ext=c
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 echo "$as_me:3103: checking whether popen must be declared" >&5
3104 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
3105 ac_ext=cc
3106 ac_cpp='$CXXCPP $CPPFLAGS'
3107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3111 if test "${groff_cv_decl_needed_popen+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 cat >conftest.$ac_ext <<_ACEOF
3115 #line 3115 "configure"
3116 #include "confdefs.h"
3118 #include <stdio.h>
3119 #ifdef HAVE_STRING_H
3120 #include <string.h>
3121 #endif
3122 #ifdef HAVE_STRINGS_H
3123 #include <strings.h>
3124 #endif
3125 #ifdef HAVE_STDLIB_H
3126 #include <stdlib.h>
3127 #endif
3128 #ifdef HAVE_SYS_TIME_H
3129 #include <sys/time.h>
3130 #endif
3131 #ifdef HAVE_UNISTD_H
3132 #include <unistd.h>
3133 #endif
3134 #ifdef HAVE_MATH_H
3135 #include <math.h>
3136 #endif
3138 main ()
3140 char *(*pfn) = (char *(*)) popen
3142 return 0;
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:3146: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>&5
3148 ac_status=$?
3149 echo "$as_me:3149: \$? = $ac_status" >&5
3150 (exit $ac_status); } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (eval echo "$as_me:3152: \"$ac_try\"") >&5
3153 (eval $ac_try) 2>&5
3154 ac_status=$?
3155 echo "$as_me:3155: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 groff_cv_decl_needed_popen=no
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 cat conftest.$ac_ext >&5
3161 groff_cv_decl_needed_popen=yes
3163 rm -f conftest.$ac_objext conftest.$ac_ext
3166 echo "$as_me:3166: result: $groff_cv_decl_needed_popen" >&5
3167 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
3168 if test $groff_cv_decl_needed_popen = yes; then
3170 cat >>confdefs.h <<\EOF
3171 #define NEED_DECLARATION_POPEN 1
3175 ac_ext=c
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181 echo "$as_me:3181: checking whether pclose must be declared" >&5
3182 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
3183 ac_ext=cc
3184 ac_cpp='$CXXCPP $CPPFLAGS'
3185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3189 if test "${groff_cv_decl_needed_pclose+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 cat >conftest.$ac_ext <<_ACEOF
3193 #line 3193 "configure"
3194 #include "confdefs.h"
3196 #include <stdio.h>
3197 #ifdef HAVE_STRING_H
3198 #include <string.h>
3199 #endif
3200 #ifdef HAVE_STRINGS_H
3201 #include <strings.h>
3202 #endif
3203 #ifdef HAVE_STDLIB_H
3204 #include <stdlib.h>
3205 #endif
3206 #ifdef HAVE_SYS_TIME_H
3207 #include <sys/time.h>
3208 #endif
3209 #ifdef HAVE_UNISTD_H
3210 #include <unistd.h>
3211 #endif
3212 #ifdef HAVE_MATH_H
3213 #include <math.h>
3214 #endif
3216 main ()
3218 char *(*pfn) = (char *(*)) pclose
3220 return 0;
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:3224: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>&5
3226 ac_status=$?
3227 echo "$as_me:3227: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -s conftest.$ac_objext'
3230 { (eval echo "$as_me:3230: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:3233: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 groff_cv_decl_needed_pclose=no
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 groff_cv_decl_needed_pclose=yes
3241 rm -f conftest.$ac_objext conftest.$ac_ext
3244 echo "$as_me:3244: result: $groff_cv_decl_needed_pclose" >&5
3245 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
3246 if test $groff_cv_decl_needed_pclose = yes; then
3248 cat >>confdefs.h <<\EOF
3249 #define NEED_DECLARATION_PCLOSE 1
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 echo "$as_me:3259: checking whether putenv must be declared" >&5
3260 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
3261 ac_ext=cc
3262 ac_cpp='$CXXCPP $CPPFLAGS'
3263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3267 if test "${groff_cv_decl_needed_putenv+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270 cat >conftest.$ac_ext <<_ACEOF
3271 #line 3271 "configure"
3272 #include "confdefs.h"
3274 #include <stdio.h>
3275 #ifdef HAVE_STRING_H
3276 #include <string.h>
3277 #endif
3278 #ifdef HAVE_STRINGS_H
3279 #include <strings.h>
3280 #endif
3281 #ifdef HAVE_STDLIB_H
3282 #include <stdlib.h>
3283 #endif
3284 #ifdef HAVE_SYS_TIME_H
3285 #include <sys/time.h>
3286 #endif
3287 #ifdef HAVE_UNISTD_H
3288 #include <unistd.h>
3289 #endif
3290 #ifdef HAVE_MATH_H
3291 #include <math.h>
3292 #endif
3294 main ()
3296 char *(*pfn) = (char *(*)) putenv
3298 return 0;
3300 _ACEOF
3301 rm -f conftest.$ac_objext
3302 if { (eval echo "$as_me:3302: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>&5
3304 ac_status=$?
3305 echo "$as_me:3305: \$? = $ac_status" >&5
3306 (exit $ac_status); } &&
3307 { ac_try='test -s conftest.$ac_objext'
3308 { (eval echo "$as_me:3308: \"$ac_try\"") >&5
3309 (eval $ac_try) 2>&5
3310 ac_status=$?
3311 echo "$as_me:3311: \$? = $ac_status" >&5
3312 (exit $ac_status); }; }; then
3313 groff_cv_decl_needed_putenv=no
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3317 groff_cv_decl_needed_putenv=yes
3319 rm -f conftest.$ac_objext conftest.$ac_ext
3322 echo "$as_me:3322: result: $groff_cv_decl_needed_putenv" >&5
3323 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
3324 if test $groff_cv_decl_needed_putenv = yes; then
3326 cat >>confdefs.h <<\EOF
3327 #define NEED_DECLARATION_PUTENV 1
3331 ac_ext=c
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337 echo "$as_me:3337: checking whether strcasecmp must be declared" >&5
3338 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
3339 ac_ext=cc
3340 ac_cpp='$CXXCPP $CPPFLAGS'
3341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3345 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 cat >conftest.$ac_ext <<_ACEOF
3349 #line 3349 "configure"
3350 #include "confdefs.h"
3352 #include <stdio.h>
3353 #ifdef HAVE_STRING_H
3354 #include <string.h>
3355 #endif
3356 #ifdef HAVE_STRINGS_H
3357 #include <strings.h>
3358 #endif
3359 #ifdef HAVE_STDLIB_H
3360 #include <stdlib.h>
3361 #endif
3362 #ifdef HAVE_SYS_TIME_H
3363 #include <sys/time.h>
3364 #endif
3365 #ifdef HAVE_UNISTD_H
3366 #include <unistd.h>
3367 #endif
3368 #ifdef HAVE_MATH_H
3369 #include <math.h>
3370 #endif
3372 main ()
3374 char *(*pfn) = (char *(*)) strcasecmp
3376 return 0;
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:3380: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>&5
3382 ac_status=$?
3383 echo "$as_me:3383: \$? = $ac_status" >&5
3384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:3386: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:3389: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 groff_cv_decl_needed_strcasecmp=no
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3395 groff_cv_decl_needed_strcasecmp=yes
3397 rm -f conftest.$ac_objext conftest.$ac_ext
3400 echo "$as_me:3400: result: $groff_cv_decl_needed_strcasecmp" >&5
3401 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
3402 if test $groff_cv_decl_needed_strcasecmp = yes; then
3404 cat >>confdefs.h <<\EOF
3405 #define NEED_DECLARATION_STRCASECMP 1
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 echo "$as_me:3415: checking whether strncasecmp must be declared" >&5
3416 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
3417 ac_ext=cc
3418 ac_cpp='$CXXCPP $CPPFLAGS'
3419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3423 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426 cat >conftest.$ac_ext <<_ACEOF
3427 #line 3427 "configure"
3428 #include "confdefs.h"
3430 #include <stdio.h>
3431 #ifdef HAVE_STRING_H
3432 #include <string.h>
3433 #endif
3434 #ifdef HAVE_STRINGS_H
3435 #include <strings.h>
3436 #endif
3437 #ifdef HAVE_STDLIB_H
3438 #include <stdlib.h>
3439 #endif
3440 #ifdef HAVE_SYS_TIME_H
3441 #include <sys/time.h>
3442 #endif
3443 #ifdef HAVE_UNISTD_H
3444 #include <unistd.h>
3445 #endif
3446 #ifdef HAVE_MATH_H
3447 #include <math.h>
3448 #endif
3450 main ()
3452 char *(*pfn) = (char *(*)) strncasecmp
3454 return 0;
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:3458: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>&5
3460 ac_status=$?
3461 echo "$as_me:3461: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:3464: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:3467: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 groff_cv_decl_needed_strncasecmp=no
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3473 groff_cv_decl_needed_strncasecmp=yes
3475 rm -f conftest.$ac_objext conftest.$ac_ext
3478 echo "$as_me:3478: result: $groff_cv_decl_needed_strncasecmp" >&5
3479 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
3480 if test $groff_cv_decl_needed_strncasecmp = yes; then
3482 cat >>confdefs.h <<\EOF
3483 #define NEED_DECLARATION_STRNCASECMP 1
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 ac_ext=cc
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3499 echo "$as_me:3499: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
3500 echo $ECHO_N "checking for sys_nerr in <errno.h> or <stdio.h>... $ECHO_C" >&6
3501 cat >conftest.$ac_ext <<_ACEOF
3502 #line 3502 "configure"
3503 #include "confdefs.h"
3504 #include <errno.h>
3505 #include <stdio.h>
3507 main ()
3509 int k; k = sys_nerr;
3511 return 0;
3513 _ACEOF
3514 rm -f conftest.$ac_objext
3515 if { (eval echo "$as_me:3515: \"$ac_compile\"") >&5
3516 (eval $ac_compile) 2>&5
3517 ac_status=$?
3518 echo "$as_me:3518: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:3521: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:3524: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 echo "$as_me:3526: result: yes" >&5
3527 echo "${ECHO_T}yes" >&6;
3528 cat >>confdefs.h <<\EOF
3529 #define HAVE_SYS_NERR 1
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 echo "$as_me:3535: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3538 rm -f conftest.$ac_objext conftest.$ac_ext
3539 ac_ext=c
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 echo "$as_me:3545: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
3546 echo $ECHO_N "checking for sys_errlist in <errno.h> or <stdio.h>... $ECHO_C" >&6
3547 cat >conftest.$ac_ext <<_ACEOF
3548 #line 3548 "configure"
3549 #include "confdefs.h"
3550 #include <errno.h>
3551 #include <stdio.h>
3553 main ()
3555 int k; k = (int)sys_errlist[0];
3557 return 0;
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:3561: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>&5
3563 ac_status=$?
3564 echo "$as_me:3564: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:3567: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:3570: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 echo "$as_me:3572: result: yes" >&5
3573 echo "${ECHO_T}yes" >&6;
3574 cat >>confdefs.h <<\EOF
3575 #define HAVE_SYS_ERRLIST 1
3578 else
3579 echo "$as_me: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3581 echo "$as_me:3581: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3584 rm -f conftest.$ac_objext conftest.$ac_ext
3585 ac_ext=cc
3586 ac_cpp='$CXXCPP $CPPFLAGS'
3587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3591 echo "$as_me:3591: checking C++ <osfcn.h>" >&5
3592 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
3593 cat >conftest.$ac_ext <<_ACEOF
3594 #line 3594 "configure"
3595 #include "confdefs.h"
3596 #include <osfcn.h>
3598 main ()
3600 read(0, 0, 0); open(0, 0);
3602 return 0;
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (eval echo "$as_me:3606: \"$ac_compile\"") >&5
3607 (eval $ac_compile) 2>&5
3608 ac_status=$?
3609 echo "$as_me:3609: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:3612: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:3615: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 echo "$as_me:3617: result: yes" >&5
3618 echo "${ECHO_T}yes" >&6;
3619 cat >>confdefs.h <<\EOF
3620 #define HAVE_CC_OSFCN_H 1
3623 else
3624 echo "$as_me: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3626 echo "$as_me:3626: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3629 rm -f conftest.$ac_objext conftest.$ac_ext
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 ac_ext=cc
3637 ac_cpp='$CXXCPP $CPPFLAGS'
3638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3642 echo "$as_me:3642: checking C++ <limits.h>" >&5
3643 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
3644 cat >conftest.$ac_ext <<_ACEOF
3645 #line 3645 "configure"
3646 #include "confdefs.h"
3647 #include <limits.h>
3649 main ()
3651 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
3653 return 0;
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (eval echo "$as_me:3657: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>&5
3659 ac_status=$?
3660 echo "$as_me:3660: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:3663: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:3666: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 echo "$as_me:3668: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6;
3670 cat >>confdefs.h <<\EOF
3671 #define HAVE_CC_LIMITS_H 1
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 echo "$as_me:3677: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3680 rm -f conftest.$ac_objext conftest.$ac_ext
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 ac_ext=cc
3688 ac_cpp='$CXXCPP $CPPFLAGS'
3689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3693 echo "$as_me:3693: checking for inttypes.h" >&5
3694 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line 3696 "configure"
3697 #include "confdefs.h"
3698 #include <sys/types.h>
3699 #include <inttypes.h>
3701 main ()
3703 uintmax_t i = (uintmax_t)-1;
3705 return 0;
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:3709: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3711 ac_status=$?
3712 echo "$as_me:3712: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:3715: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 groff_cv_header_inttypes_h=yes
3721 else
3722 echo "$as_me: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3724 groff_cv_header_inttypes_h=no
3726 rm -f conftest.$ac_objext conftest.$ac_ext
3727 echo "$as_me:3727: result: $groff_cv_header_inttypes_h" >&5
3728 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
3729 ac_ext=c
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 ac_ext=cc
3736 ac_cpp='$CXXCPP $CPPFLAGS'
3737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3741 echo "$as_me:3741: checking for unsigned long long" >&5
3742 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
3743 cat >conftest.$ac_ext <<_ACEOF
3744 #line 3744 "configure"
3745 #include "confdefs.h"
3746 unsigned long long ull = 1; int i = 63;
3748 main ()
3750 unsigned long long ullmax = (unsigned long long)-1;
3751 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
3753 return 0;
3755 _ACEOF
3756 rm -f conftest.$ac_objext conftest$ac_exeext
3757 if { (eval echo "$as_me:3757: \"$ac_link\"") >&5
3758 (eval $ac_link) 2>&5
3759 ac_status=$?
3760 echo "$as_me:3760: \$? = $ac_status" >&5
3761 (exit $ac_status); } &&
3762 { ac_try='test -s conftest$ac_exeext'
3763 { (eval echo "$as_me:3763: \"$ac_try\"") >&5
3764 (eval $ac_try) 2>&5
3765 ac_status=$?
3766 echo "$as_me:3766: \$? = $ac_status" >&5
3767 (exit $ac_status); }; }; then
3768 groff_cv_type_unsigned_long_long=yes
3769 else
3770 echo "$as_me: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3772 groff_cv_type_unsigned_long_long=no
3774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3775 echo "$as_me:3775: result: $groff_cv_type_unsigned_long_long" >&5
3776 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 if test $groff_cv_header_inttypes_h = no; then
3785 test $groff_cv_type_unsigned_long_long = yes \
3786 && ac_type='unsigned long long' \
3787 || ac_type='unsigned long'
3789 cat >>confdefs.h <<EOF
3790 #define uintmax_t $ac_type
3794 ac_ext=cc
3795 ac_cpp='$CXXCPP $CPPFLAGS'
3796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3800 echo "$as_me:3800: checking for declaration of time_t" >&5
3801 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
3802 cat >conftest.$ac_ext <<_ACEOF
3803 #line 3803 "configure"
3804 #include "confdefs.h"
3805 #include <time.h>
3807 main ()
3809 time_t t = time(0); struct tm *p = localtime(&t);
3811 return 0;
3813 _ACEOF
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:3815: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>&5
3817 ac_status=$?
3818 echo "$as_me:3818: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:3821: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:3824: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 echo "$as_me:3826: result: yes" >&5
3827 echo "${ECHO_T}yes" >&6
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 echo "$as_me:3831: result: no" >&5
3832 echo "${ECHO_T}no" >&6;
3833 cat >>confdefs.h <<\EOF
3834 #define LONG_FOR_TIME_T 1
3838 rm -f conftest.$ac_objext conftest.$ac_ext
3839 ac_ext=c
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845 echo "$as_me:3845: checking return type of signal handlers" >&5
3846 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3847 if test "${ac_cv_type_signal+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 #line 3851 "configure"
3852 #include "confdefs.h"
3853 #include <sys/types.h>
3854 #include <signal.h>
3855 #ifdef signal
3856 # undef signal
3857 #endif
3858 #ifdef __cplusplus
3859 extern "C" void (*signal (int, void (*)(int)))(int);
3860 #else
3861 void (*signal ()) ();
3862 #endif
3865 main ()
3867 int i;
3869 return 0;
3871 _ACEOF
3872 rm -f conftest.$ac_objext
3873 if { (eval echo "$as_me:3873: \"$ac_compile\"") >&5
3874 (eval $ac_compile) 2>&5
3875 ac_status=$?
3876 echo "$as_me:3876: \$? = $ac_status" >&5
3877 (exit $ac_status); } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:3879: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:3882: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_cv_type_signal=void
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3888 ac_cv_type_signal=int
3890 rm -f conftest.$ac_objext conftest.$ac_ext
3892 echo "$as_me:3892: result: $ac_cv_type_signal" >&5
3893 echo "${ECHO_T}$ac_cv_type_signal" >&6
3895 cat >>confdefs.h <<EOF
3896 #define RETSIGTYPE $ac_cv_type_signal
3899 echo "$as_me:3899: checking struct exception" >&5
3900 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line 3902 "configure"
3903 #include "confdefs.h"
3904 #include <math.h>
3906 main ()
3908 struct exception e;
3910 return 0;
3912 _ACEOF
3913 rm -f conftest.$ac_objext
3914 if { (eval echo "$as_me:3914: \"$ac_compile\"") >&5
3915 (eval $ac_compile) 2>&5
3916 ac_status=$?
3917 echo "$as_me:3917: \$? = $ac_status" >&5
3918 (exit $ac_status); } &&
3919 { ac_try='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:3920: \"$ac_try\"") >&5
3921 (eval $ac_try) 2>&5
3922 ac_status=$?
3923 echo "$as_me:3923: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 echo "$as_me:3925: result: yes" >&5
3926 echo "${ECHO_T}yes" >&6;
3927 cat >>confdefs.h <<\EOF
3928 #define HAVE_STRUCT_EXCEPTION 1
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3934 echo "$as_me:3934: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3937 rm -f conftest.$ac_objext conftest.$ac_ext
3938 echo "$as_me:3938: checking for sin in -lm" >&5
3939 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
3940 if test "${ac_cv_lib_m_sin+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 ac_check_lib_save_LIBS=$LIBS
3944 LIBS="-lm $LIBS"
3945 cat >conftest.$ac_ext <<_ACEOF
3946 #line 3946 "configure"
3947 #include "confdefs.h"
3949 /* Override any gcc2 internal prototype to avoid an error. */
3950 #ifdef __cplusplus
3951 extern "C"
3952 #endif
3953 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3955 char sin ();
3957 main ()
3959 sin ();
3961 return 0;
3963 _ACEOF
3964 rm -f conftest.$ac_objext conftest$ac_exeext
3965 if { (eval echo "$as_me:3965: \"$ac_link\"") >&5
3966 (eval $ac_link) 2>&5
3967 ac_status=$?
3968 echo "$as_me:3968: \$? = $ac_status" >&5
3969 (exit $ac_status); } &&
3970 { ac_try='test -s conftest$ac_exeext'
3971 { (eval echo "$as_me:3971: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:3974: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 ac_cv_lib_m_sin=yes
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3980 ac_cv_lib_m_sin=no
3982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3983 LIBS=$ac_check_lib_save_LIBS
3985 echo "$as_me:3985: result: $ac_cv_lib_m_sin" >&5
3986 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
3987 if test $ac_cv_lib_m_sin = yes; then
3988 LIBM=-lm
3991 echo "$as_me:3991: checking for ANSI C header files" >&5
3992 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3993 if test "${ac_cv_header_stdc+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 cat >conftest.$ac_ext <<_ACEOF
3997 #line 3997 "configure"
3998 #include "confdefs.h"
3999 #include <stdlib.h>
4000 #include <stdarg.h>
4001 #include <string.h>
4002 #include <float.h>
4004 _ACEOF
4005 if { (eval echo "$as_me:4005: \"$ac_cpp conftest.$ac_ext\"") >&5
4006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4007 ac_status=$?
4008 egrep -v '^ *\+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:4011: \$? = $ac_status" >&5
4012 (exit $ac_status); } >/dev/null; then
4013 if test -s conftest.err; then
4014 ac_cpp_err=$ac_c_preproc_warn_flag
4015 else
4016 ac_cpp_err=
4018 else
4019 ac_cpp_err=yes
4021 if test -z "$ac_cpp_err"; then
4022 ac_cv_header_stdc=yes
4023 else
4024 echo "$as_me: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4026 ac_cv_header_stdc=no
4028 rm -f conftest.err conftest.$ac_ext
4030 if test $ac_cv_header_stdc = yes; then
4031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4032 cat >conftest.$ac_ext <<_ACEOF
4033 #line 4033 "configure"
4034 #include "confdefs.h"
4035 #include <string.h>
4037 _ACEOF
4038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4039 egrep "memchr" >/dev/null 2>&1; then
4041 else
4042 ac_cv_header_stdc=no
4044 rm -f conftest*
4048 if test $ac_cv_header_stdc = yes; then
4049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4050 cat >conftest.$ac_ext <<_ACEOF
4051 #line 4051 "configure"
4052 #include "confdefs.h"
4053 #include <stdlib.h>
4055 _ACEOF
4056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4057 egrep "free" >/dev/null 2>&1; then
4059 else
4060 ac_cv_header_stdc=no
4062 rm -f conftest*
4066 if test $ac_cv_header_stdc = yes; then
4067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4068 if test "$cross_compiling" = yes; then
4070 else
4071 cat >conftest.$ac_ext <<_ACEOF
4072 #line 4072 "configure"
4073 #include "confdefs.h"
4074 #include <ctype.h>
4075 #if ((' ' & 0x0FF) == 0x020)
4076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4078 #else
4079 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4080 || ('j' <= (c) && (c) <= 'r') \
4081 || ('s' <= (c) && (c) <= 'z'))
4082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4083 #endif
4085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4087 main ()
4089 int i;
4090 for (i = 0; i < 256; i++)
4091 if (XOR (islower (i), ISLOWER (i))
4092 || toupper (i) != TOUPPER (i))
4093 exit(2);
4094 exit (0);
4096 _ACEOF
4097 rm -f conftest$ac_exeext
4098 if { (eval echo "$as_me:4098: \"$ac_link\"") >&5
4099 (eval $ac_link) 2>&5
4100 ac_status=$?
4101 echo "$as_me:4101: \$? = $ac_status" >&5
4102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4103 { (eval echo "$as_me:4103: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:4106: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4109 else
4110 echo "$as_me: program exited with status $ac_status" >&5
4111 echo "$as_me: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
4113 ac_cv_header_stdc=no
4115 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4119 echo "$as_me:4119: result: $ac_cv_header_stdc" >&5
4120 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4121 if test $ac_cv_header_stdc = yes; then
4123 cat >>confdefs.h <<\EOF
4124 #define STDC_HEADERS 1
4129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4132 inttypes.h stdint.h unistd.h
4134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4135 echo "$as_me:4135: checking for $ac_header" >&5
4136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 cat >conftest.$ac_ext <<_ACEOF
4141 #line 4141 "configure"
4142 #include "confdefs.h"
4143 $ac_includes_default
4144 #include <$ac_header>
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:4147: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>&5
4149 ac_status=$?
4150 echo "$as_me:4150: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:4153: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:4156: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 eval "$as_ac_Header=yes"
4159 else
4160 echo "$as_me: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4162 eval "$as_ac_Header=no"
4164 rm -f conftest.$ac_objext conftest.$ac_ext
4166 echo "$as_me:4166: result: `eval echo '${'$as_ac_Header'}'`" >&5
4167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4169 cat >>confdefs.h <<EOF
4170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4174 done
4176 for ac_header in stdlib.h unistd.h
4178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4179 echo "$as_me:4179: checking for $ac_header" >&5
4180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 cat >conftest.$ac_ext <<_ACEOF
4185 #line 4185 "configure"
4186 #include "confdefs.h"
4187 #include <$ac_header>
4188 _ACEOF
4189 if { (eval echo "$as_me:4189: \"$ac_cpp conftest.$ac_ext\"") >&5
4190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4191 ac_status=$?
4192 egrep -v '^ *\+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:4195: \$? = $ac_status" >&5
4196 (exit $ac_status); } >/dev/null; then
4197 if test -s conftest.err; then
4198 ac_cpp_err=$ac_c_preproc_warn_flag
4199 else
4200 ac_cpp_err=
4202 else
4203 ac_cpp_err=yes
4205 if test -z "$ac_cpp_err"; then
4206 eval "$as_ac_Header=yes"
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4210 eval "$as_ac_Header=no"
4212 rm -f conftest.err conftest.$ac_ext
4214 echo "$as_me:4214: result: `eval echo '${'$as_ac_Header'}'`" >&5
4215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4217 cat >>confdefs.h <<EOF
4218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4222 done
4224 for ac_func in getpagesize
4226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4227 echo "$as_me:4227: checking for $ac_func" >&5
4228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4229 if eval "test \"\${$as_ac_var+set}\" = set"; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233 #line 4233 "configure"
4234 #include "confdefs.h"
4235 /* System header to define __stub macros and hopefully few prototypes,
4236 which can conflict with char $ac_func (); below. */
4237 #include <assert.h>
4238 /* Override any gcc2 internal prototype to avoid an error. */
4239 #ifdef __cplusplus
4240 extern "C"
4241 #endif
4242 /* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244 char $ac_func ();
4245 char (*f) ();
4248 main ()
4250 /* The GNU C library defines this for functions which it implements
4251 to always fail with ENOSYS. Some functions are actually named
4252 something starting with __ and the normal name is an alias. */
4253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4254 choke me
4255 #else
4256 f = $ac_func;
4257 #endif
4260 return 0;
4262 _ACEOF
4263 rm -f conftest.$ac_objext conftest$ac_exeext
4264 if { (eval echo "$as_me:4264: \"$ac_link\"") >&5
4265 (eval $ac_link) 2>&5
4266 ac_status=$?
4267 echo "$as_me:4267: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:4270: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:4273: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 eval "$as_ac_var=yes"
4276 else
4277 echo "$as_me: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 eval "$as_ac_var=no"
4281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4283 echo "$as_me:4283: result: `eval echo '${'$as_ac_var'}'`" >&5
4284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4285 if test `eval echo '${'$as_ac_var'}'` = yes; then
4286 cat >>confdefs.h <<EOF
4287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4291 done
4293 echo "$as_me:4293: checking for working mmap" >&5
4294 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4295 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 if test "$cross_compiling" = yes; then
4299 ac_cv_func_mmap_fixed_mapped=no
4300 else
4301 cat >conftest.$ac_ext <<_ACEOF
4302 #line 4302 "configure"
4303 #include "confdefs.h"
4304 $ac_includes_default
4305 /* Thanks to Mike Haertel and Jim Avera for this test.
4306 Here is a matrix of mmap possibilities:
4307 mmap private not fixed
4308 mmap private fixed at somewhere currently unmapped
4309 mmap private fixed at somewhere already mapped
4310 mmap shared not fixed
4311 mmap shared fixed at somewhere currently unmapped
4312 mmap shared fixed at somewhere already mapped
4313 For private mappings, we should verify that changes cannot be read()
4314 back from the file, nor mmap's back from the file at a different
4315 address. (There have been systems where private was not correctly
4316 implemented like the infamous i386 svr4.0, and systems where the
4317 VM page cache was not coherent with the file system buffer cache
4318 like early versions of FreeBSD and possibly contemporary NetBSD.)
4319 For shared mappings, we should conversely verify that changes get
4320 propogated back to all the places they're supposed to be.
4322 Grep wants private fixed already mapped.
4323 The main things grep needs to know about mmap are:
4324 * does it exist and is it safe to write into the mmap'd area
4325 * how to use it (BSD variants) */
4327 #include <fcntl.h>
4328 #include <sys/mman.h>
4330 #if !STDC_HEADERS && !HAVE_STDLIB_H
4331 char *malloc ();
4332 #endif
4334 /* This mess was copied from the GNU getpagesize.h. */
4335 #if !HAVE_GETPAGESIZE
4336 /* Assume that all systems that can run configure have sys/param.h. */
4337 # if !HAVE_SYS_PARAM_H
4338 # define HAVE_SYS_PARAM_H 1
4339 # endif
4341 # ifdef _SC_PAGESIZE
4342 # define getpagesize() sysconf(_SC_PAGESIZE)
4343 # else /* no _SC_PAGESIZE */
4344 # if HAVE_SYS_PARAM_H
4345 # include <sys/param.h>
4346 # ifdef EXEC_PAGESIZE
4347 # define getpagesize() EXEC_PAGESIZE
4348 # else /* no EXEC_PAGESIZE */
4349 # ifdef NBPG
4350 # define getpagesize() NBPG * CLSIZE
4351 # ifndef CLSIZE
4352 # define CLSIZE 1
4353 # endif /* no CLSIZE */
4354 # else /* no NBPG */
4355 # ifdef NBPC
4356 # define getpagesize() NBPC
4357 # else /* no NBPC */
4358 # ifdef PAGESIZE
4359 # define getpagesize() PAGESIZE
4360 # endif /* PAGESIZE */
4361 # endif /* no NBPC */
4362 # endif /* no NBPG */
4363 # endif /* no EXEC_PAGESIZE */
4364 # else /* no HAVE_SYS_PARAM_H */
4365 # define getpagesize() 8192 /* punt totally */
4366 # endif /* no HAVE_SYS_PARAM_H */
4367 # endif /* no _SC_PAGESIZE */
4369 #endif /* no HAVE_GETPAGESIZE */
4372 main ()
4374 char *data, *data2, *data3;
4375 int i, pagesize;
4376 int fd;
4378 pagesize = getpagesize ();
4380 /* First, make a file with some known garbage in it. */
4381 data = (char *) malloc (pagesize);
4382 if (!data)
4383 exit (1);
4384 for (i = 0; i < pagesize; ++i)
4385 *(data + i) = rand ();
4386 umask (0);
4387 fd = creat ("conftest.mmap", 0600);
4388 if (fd < 0)
4389 exit (1);
4390 if (write (fd, data, pagesize) != pagesize)
4391 exit (1);
4392 close (fd);
4394 /* Next, try to mmap the file at a fixed address which already has
4395 something else allocated at it. If we can, also make sure that
4396 we see the same garbage. */
4397 fd = open ("conftest.mmap", O_RDWR);
4398 if (fd < 0)
4399 exit (1);
4400 data2 = (char *) malloc (2 * pagesize);
4401 if (!data2)
4402 exit (1);
4403 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4404 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4405 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4406 exit (1);
4407 for (i = 0; i < pagesize; ++i)
4408 if (*(data + i) != *(data2 + i))
4409 exit (1);
4411 /* Finally, make sure that changes to the mapped area do not
4412 percolate back to the file as seen by read(). (This is a bug on
4413 some variants of i386 svr4.0.) */
4414 for (i = 0; i < pagesize; ++i)
4415 *(data2 + i) = *(data2 + i) + 1;
4416 data3 = (char *) malloc (pagesize);
4417 if (!data3)
4418 exit (1);
4419 if (read (fd, data3, pagesize) != pagesize)
4420 exit (1);
4421 for (i = 0; i < pagesize; ++i)
4422 if (*(data + i) != *(data3 + i))
4423 exit (1);
4424 close (fd);
4425 exit (0);
4427 _ACEOF
4428 rm -f conftest$ac_exeext
4429 if { (eval echo "$as_me:4429: \"$ac_link\"") >&5
4430 (eval $ac_link) 2>&5
4431 ac_status=$?
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4434 { (eval echo "$as_me:4434: \"$ac_try\"") >&5
4435 (eval $ac_try) 2>&5
4436 ac_status=$?
4437 echo "$as_me:4437: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4439 ac_cv_func_mmap_fixed_mapped=yes
4440 else
4441 echo "$as_me: program exited with status $ac_status" >&5
4442 echo "$as_me: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4444 ac_cv_func_mmap_fixed_mapped=no
4446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4449 echo "$as_me:4449: result: $ac_cv_func_mmap_fixed_mapped" >&5
4450 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4451 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4453 cat >>confdefs.h <<\EOF
4454 #define HAVE_MMAP 1
4458 rm -f conftest.mmap
4460 saved_libs="$LIBS"
4461 LIBS="$LIBS -lc $LIBM"
4463 for ac_func in fmod getcwd putenv snprintf strerror strtol
4465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4466 echo "$as_me:4466: checking for $ac_func" >&5
4467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4468 if eval "test \"\${$as_ac_var+set}\" = set"; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 cat >conftest.$ac_ext <<_ACEOF
4472 #line 4472 "configure"
4473 #include "confdefs.h"
4474 /* System header to define __stub macros and hopefully few prototypes,
4475 which can conflict with char $ac_func (); below. */
4476 #include <assert.h>
4477 /* Override any gcc2 internal prototype to avoid an error. */
4478 #ifdef __cplusplus
4479 extern "C"
4480 #endif
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4483 char $ac_func ();
4484 char (*f) ();
4487 main ()
4489 /* The GNU C library defines this for functions which it implements
4490 to always fail with ENOSYS. Some functions are actually named
4491 something starting with __ and the normal name is an alias. */
4492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4493 choke me
4494 #else
4495 f = $ac_func;
4496 #endif
4499 return 0;
4501 _ACEOF
4502 rm -f conftest.$ac_objext conftest$ac_exeext
4503 if { (eval echo "$as_me:4503: \"$ac_link\"") >&5
4504 (eval $ac_link) 2>&5
4505 ac_status=$?
4506 echo "$as_me:4506: \$? = $ac_status" >&5
4507 (exit $ac_status); } &&
4508 { ac_try='test -s conftest$ac_exeext'
4509 { (eval echo "$as_me:4509: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:4512: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 eval "$as_ac_var=yes"
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4518 eval "$as_ac_var=no"
4520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4522 echo "$as_me:4522: result: `eval echo '${'$as_ac_var'}'`" >&5
4523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4524 if test `eval echo '${'$as_ac_var'}'` = yes; then
4525 cat >>confdefs.h <<EOF
4526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4529 else
4530 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4532 done
4534 LIBS="$saved_libs"
4536 for ac_func in gettimeofday rename strcasecmp strncasecmp strsep
4538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4539 echo "$as_me:4539: checking for $ac_func" >&5
4540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4541 if eval "test \"\${$as_ac_var+set}\" = set"; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 cat >conftest.$ac_ext <<_ACEOF
4545 #line 4545 "configure"
4546 #include "confdefs.h"
4547 /* System header to define __stub macros and hopefully few prototypes,
4548 which can conflict with char $ac_func (); below. */
4549 #include <assert.h>
4550 /* Override any gcc2 internal prototype to avoid an error. */
4551 #ifdef __cplusplus
4552 extern "C"
4553 #endif
4554 /* We use char because int might match the return type of a gcc2
4555 builtin and then its argument prototype would still apply. */
4556 char $ac_func ();
4557 char (*f) ();
4560 main ()
4562 /* The GNU C library defines this for functions which it implements
4563 to always fail with ENOSYS. Some functions are actually named
4564 something starting with __ and the normal name is an alias. */
4565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4566 choke me
4567 #else
4568 f = $ac_func;
4569 #endif
4572 return 0;
4574 _ACEOF
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:4576: \"$ac_link\"") >&5
4577 (eval $ac_link) 2>&5
4578 ac_status=$?
4579 echo "$as_me:4579: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -s conftest$ac_exeext'
4582 { (eval echo "$as_me:4582: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:4585: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 eval "$as_ac_var=yes"
4588 else
4589 echo "$as_me: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 eval "$as_ac_var=no"
4593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4595 echo "$as_me:4595: result: `eval echo '${'$as_ac_var'}'`" >&5
4596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4597 if test `eval echo '${'$as_ac_var'}'` = yes; then
4598 cat >>confdefs.h <<EOF
4599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4603 done
4605 echo "$as_me:4605: checking for mkstemp" >&5
4606 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
4607 ac_ext=cc
4608 ac_cpp='$CXXCPP $CPPFLAGS'
4609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4613 cat >conftest.$ac_ext <<_ACEOF
4614 #line 4614 "configure"
4615 #include "confdefs.h"
4616 #include <stdlib.h>
4617 int (*f) (char *);
4619 main ()
4621 f = mkstemp;
4623 return 0;
4625 _ACEOF
4626 rm -f conftest.$ac_objext conftest$ac_exeext
4627 if { (eval echo "$as_me:4627: \"$ac_link\"") >&5
4628 (eval $ac_link) 2>&5
4629 ac_status=$?
4630 echo "$as_me:4630: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:4633: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:4636: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 echo "$as_me:4638: result: yes" >&5
4639 echo "${ECHO_T}yes" >&6;
4640 cat >>confdefs.h <<\EOF
4641 #define HAVE_MKSTEMP 1
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4647 echo "$as_me:4647: result: no" >&5
4648 echo "${ECHO_T}no" >&6;LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
4650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4657 echo "$as_me:4657: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4658 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4659 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 cat >conftest.$ac_ext <<_ACEOF
4663 #line 4663 "configure"
4664 #include "confdefs.h"
4665 #include <sys/types.h>
4666 #include <signal.h>
4667 /* NetBSD declares sys_siglist in unistd.h. */
4668 #if HAVE_UNISTD_H
4669 # include <unistd.h>
4670 #endif
4673 main ()
4675 char *msg = *(sys_siglist + 1);
4677 return 0;
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (eval echo "$as_me:4681: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>&5
4683 ac_status=$?
4684 echo "$as_me:4684: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:4687: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:4690: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_cv_decl_sys_siglist=yes
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 ac_cv_decl_sys_siglist=no
4698 rm -f conftest.$ac_objext conftest.$ac_ext
4700 echo "$as_me:4700: result: $ac_cv_decl_sys_siglist" >&5
4701 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4702 if test $ac_cv_decl_sys_siglist = yes; then
4704 cat >>confdefs.h <<\EOF
4705 #define SYS_SIGLIST_DECLARED 1
4710 ac_ext=cc
4711 ac_cpp='$CXXCPP $CPPFLAGS'
4712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4716 echo "$as_me:4716: checking whether ANSI array delete syntax supported" >&5
4717 echo $ECHO_N "checking whether ANSI array delete syntax supported... $ECHO_C" >&6
4718 cat >conftest.$ac_ext <<_ACEOF
4719 #line 4719 "configure"
4720 #include "confdefs.h"
4723 main ()
4725 char *p = new char[5]; delete [] p;
4727 return 0;
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (eval echo "$as_me:4731: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>&5
4733 ac_status=$?
4734 echo "$as_me:4734: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try='test -s conftest.$ac_objext'
4737 { (eval echo "$as_me:4737: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:4740: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 echo "$as_me:4742: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4747 echo "$as_me:4747: result: no" >&5
4748 echo "${ECHO_T}no" >&6;
4749 cat >>confdefs.h <<\EOF
4750 #define ARRAY_DELETE_NEEDS_SIZE 1
4754 rm -f conftest.$ac_objext conftest.$ac_ext
4755 ac_ext=c
4756 ac_cpp='$CPP $CPPFLAGS'
4757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761 ac_ext=cc
4762 ac_cpp='$CXXCPP $CPPFLAGS'
4763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4767 echo "$as_me:4767: checking traditional preprocessor" >&5
4768 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line 4770 "configure"
4771 #include "confdefs.h"
4772 #define name2(a,b) a/**/b
4774 main ()
4776 int name2(foo,bar);
4778 return 0;
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:4782: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>&5
4784 ac_status=$?
4785 echo "$as_me:4785: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:4788: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:4791: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 echo "$as_me:4793: result: yes" >&5
4794 echo "${ECHO_T}yes" >&6;
4795 cat >>confdefs.h <<\EOF
4796 #define TRADITIONAL_CPP 1
4799 else
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4802 echo "$as_me:4802: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4805 rm -f conftest.$ac_objext conftest.$ac_ext
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812 echo "$as_me:4812: checking w_coredump" >&5
4813 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
4814 if test "$cross_compiling" = yes; then
4815 echo "$as_me:4815: result: no" >&5
4816 echo "${ECHO_T}no" >&6
4817 else
4818 cat >conftest.$ac_ext <<_ACEOF
4819 #line 4819 "configure"
4820 #include "confdefs.h"
4821 #include <sys/types.h>
4822 #include <sys/wait.h>
4823 main()
4825 #ifdef WCOREFLAG
4826 exit(1);
4827 #else
4828 int i = 0;
4829 ((union wait *)&i)->w_coredump = 1;
4830 exit(i != 0200);
4831 #endif
4833 _ACEOF
4834 rm -f conftest$ac_exeext
4835 if { (eval echo "$as_me:4835: \"$ac_link\"") >&5
4836 (eval $ac_link) 2>&5
4837 ac_status=$?
4838 echo "$as_me:4838: \$? = $ac_status" >&5
4839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4840 { (eval echo "$as_me:4840: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:4843: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 echo "$as_me:4845: result: yes" >&5
4846 echo "${ECHO_T}yes" >&6;
4847 cat >>confdefs.h <<\EOF
4848 #define WCOREFLAG 0200
4851 else
4852 echo "$as_me: program exited with status $ac_status" >&5
4853 echo "$as_me: failed program was:" >&5
4854 cat conftest.$ac_ext >&5
4855 echo "$as_me:4855: result: no" >&5
4856 echo "${ECHO_T}no" >&6
4858 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4860 echo "$as_me:4860: checking default value for grops -b option" >&5
4861 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
4862 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
4863 echo "$as_me:4863: result: $BROKEN_SPOOLER_FLAGS" >&5
4864 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
4866 echo "$as_me:4866: checking default paper size" >&5
4867 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
4868 if test -z "$PAGE"; then
4869 descfile=
4870 if test -r $prefix/share/groff/font/devps/DESC; then
4871 descfile=$prefix/share/groff/font/devps/DESC
4872 elif test -r $prefix/lib/groff/font/devps/DESC; then
4873 descfile=$prefix/lib/groff/font/devps/DESC
4874 else
4875 for f in $prefix/share/groff/*/font/devps/DESC; do
4876 if test -r $f; then
4877 descfile=$f
4878 break
4880 done
4882 if test -n "$descfile" \
4883 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
4884 PAGE=A4
4887 if test -z "$PAGE"; then
4888 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
4889 /etc/resolv.conf 2>/dev/null`
4890 if test -z "$dom"; then
4891 dom=`(domainname) 2>/dev/null | tr -d '+'`
4892 if test -z "$dom" \
4893 || test "$dom" = '(none)'; then
4894 dom=`(hostname) 2>/dev/null | grep '\.'`
4897 # If the top-level domain is two letters and it's not `us' or `ca'
4898 # then they probably use A4 paper.
4899 case "$dom" in
4900 *.[Uu][Ss]|*.[Cc][Aa]) ;;
4901 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
4902 esac
4904 test -n "$PAGE" || PAGE=letter
4905 if test "x$PAGE" = "xA4"; then
4907 cat >>confdefs.h <<\EOF
4908 #define PAGEA4 1
4912 echo "$as_me:4912: result: $PAGE" >&5
4913 echo "${ECHO_T}$PAGE" >&6
4915 echo "$as_me:4915: checking for existing troff installation" >&5
4916 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
4917 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
4918 echo "$as_me:4918: result: yes" >&5
4919 echo "${ECHO_T}yes" >&6
4921 else
4922 echo "$as_me:4922: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4927 echo "$as_me:4927: checking for prefix of system macro packages" >&5
4928 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
4929 sys_tmac_prefix=
4930 sys_tmac_file_prefix=
4931 for d in /usr/share/lib/tmac /usr/lib/tmac; do
4932 for t in "" tmac.; do
4933 for m in an s m; do
4934 f=$d/$t$m
4935 if test -z "$sys_tmac_prefix" \
4936 && test -f $f \
4937 && grep '^\.if' $f >/dev/null 2>&1; then
4938 sys_tmac_prefix=$d/$t
4939 sys_tmac_file_prefix=$t
4941 done
4942 done
4943 done
4944 echo "$as_me:4944: result: $sys_tmac_prefix" >&5
4945 echo "${ECHO_T}$sys_tmac_prefix" >&6
4947 tmac_wrap=
4948 echo "$as_me:4948: checking which system macro packages should be made available" >&5
4949 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
4950 if test "x$sys_tmac_file_prefix" = "xtmac."; then
4951 for f in $sys_tmac_prefix*; do
4952 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
4953 case "$suff" in
4954 e) ;;
4956 grep "Copyright.*Free Software Foundation" $f >/dev/null \
4957 || tmac_wrap="$tmac_wrap $suff" ;;
4958 esac
4959 done
4960 elif test -n "$sys_tmac_prefix"; then
4961 files=`echo $sys_tmac_prefix*`
4962 grep "\\.so" $files >conftest.sol
4963 for f in $files; do
4964 case "$f" in
4965 ${sys_tmac_prefix}e) ;;
4966 *.me) ;;
4967 */ms.*) ;;
4969 b=`basename $f`
4970 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
4971 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
4973 else
4974 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
4975 case "$suff" in
4976 tmac.*) ;;
4977 *) tmac_wrap="$tmac_wrap $suff" ;;
4978 esac
4980 esac
4981 done
4982 rm -f conftest.sol
4984 echo "$as_me:4984: result: $tmac_wrap" >&5
4985 echo "${ECHO_T}$tmac_wrap" >&6
4987 ac_config_files="$ac_config_files stamp-h"
4989 ac_config_files="$ac_config_files Makefile src/xditview/Imakefile"
4991 cat >confcache <<\_ACEOF
4992 # This file is a shell script that caches the results of configure
4993 # tests run on this system so they can be shared between configure
4994 # scripts and configure runs, see configure's option --config-cache.
4995 # It is not useful on other systems. If it contains results you don't
4996 # want to keep, you may remove or edit it.
4998 # config.status only pays attention to the cache file if you give it
4999 # the --recheck option to rerun configure.
5001 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5002 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5003 # following values.
5005 _ACEOF
5007 # The following way of writing the cache mishandles newlines in values,
5008 # but we know of no workaround that is simple, portable, and efficient.
5009 # So, don't put newlines in cache variables' values.
5010 # Ultrix sh set writes to stderr and can't be redirected directly,
5011 # and sets the high bit in the cache file unless we assign to the vars.
5013 (set) 2>&1 |
5014 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5015 *ac_space=\ *)
5016 # `set' does not quote correctly, so add quotes (double-quote
5017 # substitution turns \\\\ into \\, and sed turns \\ into \).
5018 sed -n \
5019 "s/'/'\\\\''/g;
5020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5023 # `set' quotes correctly as required by POSIX, so do not add quotes.
5024 sed -n \
5025 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5027 esac;
5029 sed '
5030 t clear
5031 : clear
5032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5033 t end
5034 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5035 : end' >>confcache
5036 if cmp -s $cache_file confcache; then :; else
5037 if test -w $cache_file; then
5038 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5039 cat confcache >$cache_file
5040 else
5041 echo "not updating unwritable cache $cache_file"
5044 rm -f confcache
5046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5047 # Let make expand exec_prefix.
5048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5050 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5051 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5052 # trailing colons and then remove the whole line if VPATH becomes empty
5053 # (actually we leave an empty line to preserve line numbers).
5054 if test "x$srcdir" = x.; then
5055 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5056 s/:*\$(srcdir):*/:/;
5057 s/:*\${srcdir}:*/:/;
5058 s/:*@srcdir@:*/:/;
5059 s/^\([^=]*=[ ]*\):*/\1/;
5060 s/:*$//;
5061 s/^[^=]*=[ ]*$//;
5065 DEFS=-DHAVE_CONFIG_H
5067 : ${CONFIG_STATUS=./config.status}
5068 ac_clean_files_save=$ac_clean_files
5069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5070 { echo "$as_me:5070: creating $CONFIG_STATUS" >&5
5071 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5072 cat >$CONFIG_STATUS <<_ACEOF
5073 #! $SHELL
5074 # Generated automatically by configure.
5075 # Run this file to recreate the current configuration.
5076 # Compiler output produced by configure, useful for debugging
5077 # configure, is in config.log if it exists.
5079 debug=false
5080 SHELL=\${CONFIG_SHELL-$SHELL}
5081 ac_cs_invocation="\$0 \$@"
5083 _ACEOF
5085 cat >>$CONFIG_STATUS <<\_ACEOF
5086 # Be Bourne compatible
5087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5088 emulate sh
5089 NULLCMD=:
5090 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5091 set -o posix
5094 # Name of the executable.
5095 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5097 if expr a : '\(a\)' >/dev/null 2>&1; then
5098 as_expr=expr
5099 else
5100 as_expr=false
5103 rm -f conf$$ conf$$.exe conf$$.file
5104 echo >conf$$.file
5105 if ln -s conf$$.file conf$$ 2>/dev/null; then
5106 # We could just check for DJGPP; but this test a) works b) is more generic
5107 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5108 if test -f conf$$.exe; then
5109 # Don't use ln at all; we don't have any links
5110 as_ln_s='cp -p'
5111 else
5112 as_ln_s='ln -s'
5114 elif ln conf$$.file conf$$ 2>/dev/null; then
5115 as_ln_s=ln
5116 else
5117 as_ln_s='cp -p'
5119 rm -f conf$$ conf$$.exe conf$$.file
5121 as_executable_p="test -f"
5123 # Support unset when possible.
5124 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5125 as_unset=unset
5126 else
5127 as_unset=false
5130 # NLS nuisances.
5131 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5132 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5133 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5134 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5135 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5136 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5137 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5138 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5140 # IFS
5141 # We need space, tab and new line, in precisely that order.
5142 as_nl='
5144 IFS=" $as_nl"
5146 # CDPATH.
5147 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5149 exec 6>&1
5151 _ACEOF
5153 # Files that config.status was made for.
5154 if test -n "$ac_config_files"; then
5155 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5158 if test -n "$ac_config_headers"; then
5159 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5162 if test -n "$ac_config_links"; then
5163 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5166 if test -n "$ac_config_commands"; then
5167 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5170 cat >>$CONFIG_STATUS <<\EOF
5172 ac_cs_usage="\
5173 \`$as_me' instantiates files from templates according to the
5174 current configuration.
5176 Usage: $0 [OPTIONS] [FILE]...
5178 -h, --help print this help, then exit
5179 -V, --version print version number, then exit
5180 -d, --debug don't remove temporary files
5181 --recheck update $as_me by reconfiguring in the same conditions
5182 --file=FILE[:TEMPLATE]
5183 instantiate the configuration file FILE
5184 --header=FILE[:TEMPLATE]
5185 instantiate the configuration header FILE
5187 Configuration files:
5188 $config_files
5190 Configuration headers:
5191 $config_headers
5193 Report bugs to <bug-autoconf@gnu.org>."
5196 cat >>$CONFIG_STATUS <<EOF
5197 ac_cs_version="\\
5198 config.status
5199 configured by $0, generated by GNU Autoconf 2.52,
5200 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5202 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5203 Free Software Foundation, Inc.
5204 This config.status script is free software; the Free Software Foundation
5205 gives unlimited permission to copy, distribute and modify it."
5206 srcdir=$srcdir
5207 INSTALL="$INSTALL"
5210 cat >>$CONFIG_STATUS <<\EOF
5211 # If no file are specified by the user, then we need to provide default
5212 # value. By we need to know if files were specified by the user.
5213 ac_need_defaults=:
5214 while test $# != 0
5216 case $1 in
5217 --*=*)
5218 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5219 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5220 shift
5221 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5222 shift
5224 -*);;
5225 *) # This is not an option, so the user has probably given explicit
5226 # arguments.
5227 ac_need_defaults=false;;
5228 esac
5230 case $1 in
5231 # Handling of the options.
5233 cat >>$CONFIG_STATUS <<EOF
5234 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5235 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5236 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5238 cat >>$CONFIG_STATUS <<\EOF
5239 --version | --vers* | -V )
5240 echo "$ac_cs_version"; exit 0 ;;
5241 --he | --h)
5242 # Conflict between --help and --header
5243 { { echo "$as_me:5243: error: ambiguous option: $1
5244 Try \`$0 --help' for more information." >&5
5245 echo "$as_me: error: ambiguous option: $1
5246 Try \`$0 --help' for more information." >&2;}
5247 { (exit 1); exit 1; }; };;
5248 --help | --hel | -h )
5249 echo "$ac_cs_usage"; exit 0 ;;
5250 --debug | --d* | -d )
5251 debug=: ;;
5252 --file | --fil | --fi | --f )
5253 shift
5254 CONFIG_FILES="$CONFIG_FILES $1"
5255 ac_need_defaults=false;;
5256 --header | --heade | --head | --hea )
5257 shift
5258 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5259 ac_need_defaults=false;;
5261 # This is an error.
5262 -*) { { echo "$as_me:5262: error: unrecognized option: $1
5263 Try \`$0 --help' for more information." >&5
5264 echo "$as_me: error: unrecognized option: $1
5265 Try \`$0 --help' for more information." >&2;}
5266 { (exit 1); exit 1; }; } ;;
5268 *) ac_config_targets="$ac_config_targets $1" ;;
5270 esac
5271 shift
5272 done
5274 exec 5>>config.log
5275 cat >&5 << _ACEOF
5277 ## ----------------------- ##
5278 ## Running config.status. ##
5279 ## ----------------------- ##
5281 This file was extended by $as_me 2.52, executed with
5282 CONFIG_FILES = $CONFIG_FILES
5283 CONFIG_HEADERS = $CONFIG_HEADERS
5284 CONFIG_LINKS = $CONFIG_LINKS
5285 CONFIG_COMMANDS = $CONFIG_COMMANDS
5286 > $ac_cs_invocation
5287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5289 _ACEOF
5292 cat >>$CONFIG_STATUS <<\EOF
5293 for ac_config_target in $ac_config_targets
5295 case "$ac_config_target" in
5296 # Handling of arguments.
5297 "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
5298 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5299 "src/xditview/Imakefile" ) CONFIG_FILES="$CONFIG_FILES src/xditview/Imakefile" ;;
5300 "src/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
5301 *) { { echo "$as_me:5301: error: invalid argument: $ac_config_target" >&5
5302 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5303 { (exit 1); exit 1; }; };;
5304 esac
5305 done
5307 # If the user did not use the arguments to specify the items to instantiate,
5308 # then the envvar interface is used. Set only those that are not.
5309 # We use the long form for the default assignment because of an extremely
5310 # bizarre bug on SunOS 4.1.3.
5311 if $ac_need_defaults; then
5312 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5313 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5316 # Create a temporary directory, and hook for its removal unless debugging.
5317 $debug ||
5319 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5320 trap '{ (exit 1); exit 1; }' 1 2 13 15
5323 # Create a (secure) tmp directory for tmp files.
5324 : ${TMPDIR=/tmp}
5326 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5327 test -n "$tmp" && test -d "$tmp"
5328 } ||
5330 tmp=$TMPDIR/cs$$-$RANDOM
5331 (umask 077 && mkdir $tmp)
5332 } ||
5334 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5335 { (exit 1); exit 1; }
5340 cat >>$CONFIG_STATUS <<EOF
5343 # CONFIG_FILES section.
5346 # No need to generate the scripts if there are no CONFIG_FILES.
5347 # This happens for instance when ./config.status config.h
5348 if test -n "\$CONFIG_FILES"; then
5349 # Protect against being on the right side of a sed subst in config.status.
5350 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5351 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5352 s,@SHELL@,$SHELL,;t t
5353 s,@exec_prefix@,$exec_prefix,;t t
5354 s,@prefix@,$prefix,;t t
5355 s,@program_transform_name@,$program_transform_name,;t t
5356 s,@bindir@,$bindir,;t t
5357 s,@sbindir@,$sbindir,;t t
5358 s,@libexecdir@,$libexecdir,;t t
5359 s,@datadir@,$datadir,;t t
5360 s,@sysconfdir@,$sysconfdir,;t t
5361 s,@sharedstatedir@,$sharedstatedir,;t t
5362 s,@localstatedir@,$localstatedir,;t t
5363 s,@libdir@,$libdir,;t t
5364 s,@includedir@,$includedir,;t t
5365 s,@oldincludedir@,$oldincludedir,;t t
5366 s,@infodir@,$infodir,;t t
5367 s,@mandir@,$mandir,;t t
5368 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5369 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5370 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5371 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5372 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5373 s,@build_alias@,$build_alias,;t t
5374 s,@host_alias@,$host_alias,;t t
5375 s,@target_alias@,$target_alias,;t t
5376 s,@ECHO_C@,$ECHO_C,;t t
5377 s,@ECHO_N@,$ECHO_N,;t t
5378 s,@ECHO_T@,$ECHO_T,;t t
5379 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5380 s,@DEFS@,$DEFS,;t t
5381 s,@LIBS@,$LIBS,;t t
5382 s,@top_builddir@,$top_builddir,;t t
5383 s,@CC@,$CC,;t t
5384 s,@CFLAGS@,$CFLAGS,;t t
5385 s,@LDFLAGS@,$LDFLAGS,;t t
5386 s,@CPPFLAGS@,$CPPFLAGS,;t t
5387 s,@ac_ct_CC@,$ac_ct_CC,;t t
5388 s,@EXEEXT@,$EXEEXT,;t t
5389 s,@OBJEXT@,$OBJEXT,;t t
5390 s,@CXX@,$CXX,;t t
5391 s,@CXXFLAGS@,$CXXFLAGS,;t t
5392 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5393 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
5394 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
5395 s,@LPR@,$LPR,;t t
5396 s,@LP@,$LP,;t t
5397 s,@LPQ@,$LPQ,;t t
5398 s,@PSPRINT@,$PSPRINT,;t t
5399 s,@DVIPRINT@,$DVIPRINT,;t t
5400 s,@PERLPATH@,$PERLPATH,;t t
5401 s,@YACC@,$YACC,;t t
5402 s,@RANLIB@,$RANLIB,;t t
5403 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5404 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5405 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5406 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5407 s,@LN_S@,$LN_S,;t t
5408 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
5409 s,@CPP@,$CPP,;t t
5410 s,@LIBM@,$LIBM,;t t
5411 s,@LIBOBJS@,$LIBOBJS,;t t
5412 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
5413 s,@PAGE@,$PAGE,;t t
5414 s,@g@,$g,;t t
5415 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
5416 s,@tmac_wrap@,$tmac_wrap,;t t
5417 CEOF
5421 cat >>$CONFIG_STATUS <<\EOF
5422 # Split the substitutions into bite-sized pieces for seds with
5423 # small command number limits, like on Digital OSF/1 and HP-UX.
5424 ac_max_sed_lines=48
5425 ac_sed_frag=1 # Number of current file.
5426 ac_beg=1 # First line for current file.
5427 ac_end=$ac_max_sed_lines # Line after last line for current file.
5428 ac_more_lines=:
5429 ac_sed_cmds=
5430 while $ac_more_lines; do
5431 if test $ac_beg -gt 1; then
5432 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5433 else
5434 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5436 if test ! -s $tmp/subs.frag; then
5437 ac_more_lines=false
5438 else
5439 # The purpose of the label and of the branching condition is to
5440 # speed up the sed processing (if there are no `@' at all, there
5441 # is no need to browse any of the substitutions).
5442 # These are the two extra sed commands mentioned above.
5443 (echo ':t
5444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5445 if test -z "$ac_sed_cmds"; then
5446 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5447 else
5448 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5450 ac_sed_frag=`expr $ac_sed_frag + 1`
5451 ac_beg=$ac_end
5452 ac_end=`expr $ac_end + $ac_max_sed_lines`
5454 done
5455 if test -z "$ac_sed_cmds"; then
5456 ac_sed_cmds=cat
5458 fi # test -n "$CONFIG_FILES"
5461 cat >>$CONFIG_STATUS <<\EOF
5462 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464 case $ac_file in
5465 - | *:- | *:-:* ) # input from stdin
5466 cat >$tmp/stdin
5467 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5469 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5471 * ) ac_file_in=$ac_file.in ;;
5472 esac
5474 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5475 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5476 X"$ac_file" : 'X\(//\)[^/]' \| \
5477 X"$ac_file" : 'X\(//\)$' \| \
5478 X"$ac_file" : 'X\(/\)' \| \
5479 . : '\(.\)' 2>/dev/null ||
5480 echo X"$ac_file" |
5481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5483 /^X\(\/\/\)$/{ s//\1/; q; }
5484 /^X\(\/\).*/{ s//\1/; q; }
5485 s/.*/./; q'`
5486 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5487 { case "$ac_dir" in
5488 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5489 *) as_incr_dir=.;;
5490 esac
5491 as_dummy="$ac_dir"
5492 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5493 case $as_mkdir_dir in
5494 # Skip DOS drivespec
5495 ?:) as_incr_dir=$as_mkdir_dir ;;
5497 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5498 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5500 esac
5501 done; }
5503 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5504 # A "../" for each directory in $ac_dir_suffix.
5505 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5506 else
5507 ac_dir_suffix= ac_dots=
5510 case $srcdir in
5511 .) ac_srcdir=.
5512 if test -z "$ac_dots"; then
5513 ac_top_srcdir=.
5514 else
5515 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5516 fi ;;
5517 [\\/]* | ?:[\\/]* )
5518 ac_srcdir=$srcdir$ac_dir_suffix;
5519 ac_top_srcdir=$srcdir ;;
5520 *) # Relative path.
5521 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5522 ac_top_srcdir=$ac_dots$srcdir ;;
5523 esac
5525 case $INSTALL in
5526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5527 *) ac_INSTALL=$ac_dots$INSTALL ;;
5528 esac
5530 if test x"$ac_file" != x-; then
5531 { echo "$as_me:5531: creating $ac_file" >&5
5532 echo "$as_me: creating $ac_file" >&6;}
5533 rm -f "$ac_file"
5535 # Let's still pretend it is `configure' which instantiates (i.e., don't
5536 # use $as_me), people would be surprised to read:
5537 # /* config.h. Generated automatically by config.status. */
5538 configure_input="Generated automatically from `echo $ac_file_in |
5539 sed 's,.*/,,'` by configure."
5541 # First look for the input files in the build tree, otherwise in the
5542 # src tree.
5543 ac_file_inputs=`IFS=:
5544 for f in $ac_file_in; do
5545 case $f in
5546 -) echo $tmp/stdin ;;
5547 [\\/$]*)
5548 # Absolute (can't be DOS-style, as IFS=:)
5549 test -f "$f" || { { echo "$as_me:5549: error: cannot find input file: $f" >&5
5550 echo "$as_me: error: cannot find input file: $f" >&2;}
5551 { (exit 1); exit 1; }; }
5552 echo $f;;
5553 *) # Relative
5554 if test -f "$f"; then
5555 # Build tree
5556 echo $f
5557 elif test -f "$srcdir/$f"; then
5558 # Source tree
5559 echo $srcdir/$f
5560 else
5561 # /dev/null tree
5562 { { echo "$as_me:5562: error: cannot find input file: $f" >&5
5563 echo "$as_me: error: cannot find input file: $f" >&2;}
5564 { (exit 1); exit 1; }; }
5565 fi;;
5566 esac
5567 done` || { (exit 1); exit 1; }
5569 cat >>$CONFIG_STATUS <<EOF
5570 sed "$ac_vpsub
5571 $extrasub
5573 cat >>$CONFIG_STATUS <<\EOF
5575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5576 s,@configure_input@,$configure_input,;t t
5577 s,@srcdir@,$ac_srcdir,;t t
5578 s,@top_srcdir@,$ac_top_srcdir,;t t
5579 s,@INSTALL@,$ac_INSTALL,;t t
5580 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5581 rm -f $tmp/stdin
5582 if test x"$ac_file" != x-; then
5583 mv $tmp/out $ac_file
5584 else
5585 cat $tmp/out
5586 rm -f $tmp/out
5589 # Run the commands associated with the file.
5590 case $ac_file in
5591 stamp-h ) echo timestamp > stamp-h ;;
5592 esac
5593 done
5595 cat >>$CONFIG_STATUS <<\EOF
5598 # CONFIG_HEADER section.
5601 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5602 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5604 # ac_d sets the value in "#define NAME VALUE" lines.
5605 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5606 ac_dB='[ ].*$,\1#\2'
5607 ac_dC=' '
5608 ac_dD=',;t'
5609 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5610 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5611 ac_uB='$,\1#\2define\3'
5612 ac_uC=' '
5613 ac_uD=',;t'
5615 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5616 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5617 case $ac_file in
5618 - | *:- | *:-:* ) # input from stdin
5619 cat >$tmp/stdin
5620 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5621 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5622 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5623 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5624 * ) ac_file_in=$ac_file.in ;;
5625 esac
5627 test x"$ac_file" != x- && { echo "$as_me:5627: creating $ac_file" >&5
5628 echo "$as_me: creating $ac_file" >&6;}
5630 # First look for the input files in the build tree, otherwise in the
5631 # src tree.
5632 ac_file_inputs=`IFS=:
5633 for f in $ac_file_in; do
5634 case $f in
5635 -) echo $tmp/stdin ;;
5636 [\\/$]*)
5637 # Absolute (can't be DOS-style, as IFS=:)
5638 test -f "$f" || { { echo "$as_me:5638: error: cannot find input file: $f" >&5
5639 echo "$as_me: error: cannot find input file: $f" >&2;}
5640 { (exit 1); exit 1; }; }
5641 echo $f;;
5642 *) # Relative
5643 if test -f "$f"; then
5644 # Build tree
5645 echo $f
5646 elif test -f "$srcdir/$f"; then
5647 # Source tree
5648 echo $srcdir/$f
5649 else
5650 # /dev/null tree
5651 { { echo "$as_me:5651: error: cannot find input file: $f" >&5
5652 echo "$as_me: error: cannot find input file: $f" >&2;}
5653 { (exit 1); exit 1; }; }
5654 fi;;
5655 esac
5656 done` || { (exit 1); exit 1; }
5657 # Remove the trailing spaces.
5658 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5662 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5663 # `conftest.undefs', that substitutes the proper values into
5664 # config.h.in to produce config.h. The first handles `#define'
5665 # templates, and the second `#undef' templates.
5666 # And first: Protect against being on the right side of a sed subst in
5667 # config.status. Protect against being in an unquoted here document
5668 # in config.status.
5669 rm -f conftest.defines conftest.undefs
5670 # Using a here document instead of a string reduces the quoting nightmare.
5671 # Putting comments in sed scripts is not portable.
5673 # `end' is used to avoid that the second main sed command (meant for
5674 # 0-ary CPP macros) applies to n-ary macro definitions.
5675 # See the Autoconf documentation for `clear'.
5676 cat >confdef2sed.sed <<\EOF
5677 s/[\\&,]/\\&/g
5678 s,[\\$`],\\&,g
5679 t clear
5680 : clear
5681 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5682 t end
5683 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5684 : end
5686 # If some macros were called several times there might be several times
5687 # the same #defines, which is useless. Nevertheless, we may not want to
5688 # sort them, since we want the *last* AC-DEFINE to be honored.
5689 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5690 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5691 rm -f confdef2sed.sed
5693 # This sed command replaces #undef with comments. This is necessary, for
5694 # example, in the case of _POSIX_SOURCE, which is predefined and required
5695 # on some systems where configure will not decide to define it.
5696 cat >>conftest.undefs <<\EOF
5697 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5700 # Break up conftest.defines because some shells have a limit on the size
5701 # of here documents, and old seds have small limits too (100 cmds).
5702 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5703 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5704 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5705 echo ' :' >>$CONFIG_STATUS
5706 rm -f conftest.tail
5707 while grep . conftest.defines >/dev/null
5709 # Write a limited-size here document to $tmp/defines.sed.
5710 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5711 # Speed up: don't consider the non `#define' lines.
5712 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5713 # Work around the forget-to-reset-the-flag bug.
5714 echo 't clr' >>$CONFIG_STATUS
5715 echo ': clr' >>$CONFIG_STATUS
5716 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5717 echo 'CEOF
5718 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5719 rm -f $tmp/in
5720 mv $tmp/out $tmp/in
5721 ' >>$CONFIG_STATUS
5722 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5723 rm -f conftest.defines
5724 mv conftest.tail conftest.defines
5725 done
5726 rm -f conftest.defines
5727 echo ' fi # egrep' >>$CONFIG_STATUS
5728 echo >>$CONFIG_STATUS
5730 # Break up conftest.undefs because some shells have a limit on the size
5731 # of here documents, and old seds have small limits too (100 cmds).
5732 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5733 rm -f conftest.tail
5734 while grep . conftest.undefs >/dev/null
5736 # Write a limited-size here document to $tmp/undefs.sed.
5737 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5738 # Speed up: don't consider the non `#undef'
5739 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5740 # Work around the forget-to-reset-the-flag bug.
5741 echo 't clr' >>$CONFIG_STATUS
5742 echo ': clr' >>$CONFIG_STATUS
5743 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5744 echo 'CEOF
5745 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5746 rm -f $tmp/in
5747 mv $tmp/out $tmp/in
5748 ' >>$CONFIG_STATUS
5749 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5750 rm -f conftest.undefs
5751 mv conftest.tail conftest.undefs
5752 done
5753 rm -f conftest.undefs
5755 cat >>$CONFIG_STATUS <<\EOF
5756 # Let's still pretend it is `configure' which instantiates (i.e., don't
5757 # use $as_me), people would be surprised to read:
5758 # /* config.h. Generated automatically by config.status. */
5759 if test x"$ac_file" = x-; then
5760 echo "/* Generated automatically by configure. */" >$tmp/config.h
5761 else
5762 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5764 cat $tmp/in >>$tmp/config.h
5765 rm -f $tmp/in
5766 if test x"$ac_file" != x-; then
5767 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5768 { echo "$as_me:5768: $ac_file is unchanged" >&5
5769 echo "$as_me: $ac_file is unchanged" >&6;}
5770 else
5771 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5772 X"$ac_file" : 'X\(//\)[^/]' \| \
5773 X"$ac_file" : 'X\(//\)$' \| \
5774 X"$ac_file" : 'X\(/\)' \| \
5775 . : '\(.\)' 2>/dev/null ||
5776 echo X"$ac_file" |
5777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5779 /^X\(\/\/\)$/{ s//\1/; q; }
5780 /^X\(\/\).*/{ s//\1/; q; }
5781 s/.*/./; q'`
5782 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5783 { case "$ac_dir" in
5784 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5785 *) as_incr_dir=.;;
5786 esac
5787 as_dummy="$ac_dir"
5788 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5789 case $as_mkdir_dir in
5790 # Skip DOS drivespec
5791 ?:) as_incr_dir=$as_mkdir_dir ;;
5793 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5794 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5796 esac
5797 done; }
5800 rm -f $ac_file
5801 mv $tmp/config.h $ac_file
5803 else
5804 cat $tmp/config.h
5805 rm -f $tmp/config.h
5807 done
5810 cat >>$CONFIG_STATUS <<\EOF
5812 { (exit 0); exit 0; }
5814 chmod +x $CONFIG_STATUS
5815 ac_clean_files=$ac_clean_files_save
5817 # configure is writing to config.log, and then calls config.status.
5818 # config.status does its own redirection, appending to config.log.
5819 # Unfortunately, on DOS this fails, as config.log is still kept open
5820 # by configure, so config.status won't be able to write to it; its
5821 # output is simply discarded. So we exec the FD to /dev/null,
5822 # effectively closing config.log, so it can be properly (re)opened and
5823 # appended to by config.status. When coming back to configure, we
5824 # need to make the FD available again.
5825 if test "$no_create" != yes; then
5826 ac_cs_success=:
5827 exec 5>/dev/null
5828 $SHELL $CONFIG_STATUS || ac_cs_success=false
5829 exec 5>>config.log
5830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5831 # would make configure fail if this is the last instruction.
5832 $ac_cs_success || { (exit 1); exit 1; }
5835 { echo "$as_me:5835:
5837 Configuration completed.
5839 You can now say \`make' to compile the groff package and \`make install'
5840 to install it afterwards.
5842 If you want to compile xditview, change the directory to \`src/xditview'
5843 and follow the instructions given in the file \`INSTALL'.
5844 " >&5
5845 echo "$as_me:
5847 Configuration completed.
5849 You can now say \`make' to compile the groff package and \`make install'
5850 to install it afterwards.
5852 If you want to compile xditview, change the directory to \`src/xditview'
5853 and follow the instructions given in the file \`INSTALL'.
5854 " >&6;}