djgpp-specific stuff
[s-roff.git] / configure
blob31d9341e89524fcb6c7f7c7d510d60aec8e69ce5
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
18 build=NONE
19 cache_file=./config.cache
20 exec_prefix=NONE
21 host=NONE
22 no_create=
23 nonopt=NONE
24 no_recursion=
25 prefix=NONE
26 program_prefix=NONE
27 program_suffix=NONE
28 program_transform_name=s,x,x,
29 silent=
30 site=
31 srcdir=
32 target=NONE
33 verbose=
34 x_includes=NONE
35 x_libraries=NONE
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
50 subdirs=
51 MFLAGS= MAKEFLAGS=
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
54 ac_max_here_lines=12
56 ac_prev=
57 for ac_option
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
63 ac_prev=
64 continue
67 case "$ac_option" in
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69 *) ac_optarg= ;;
70 esac
72 # Accept the important Cygnus configure options, so we can diagnose typos.
74 case "$ac_option" in
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
77 ac_prev=bindir ;;
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
82 ac_prev=build ;;
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84 build="$ac_optarg" ;;
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88 ac_prev=cache_file ;;
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94 ac_prev=datadir ;;
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96 | --da=*)
97 datadir="$ac_optarg" ;;
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 case "$ac_option" in
116 *=*) ;;
117 *) ac_optarg=yes ;;
118 esac
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
132 with_gas=yes ;;
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
137 cat << EOF
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
140 Configuration:
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146 Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
148 [$ac_default_prefix]
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
150 [same as prefix]
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
155 [PREFIX/share]
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
158 [PREFIX/com]
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
171 cat << EOF
172 Host type:
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176 Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
187 exit 0 ;;
189 -host | --host | --hos | --ho)
190 ac_prev=host ;;
191 -host=* | --host=* | --hos=* | --ho=*)
192 host="$ac_optarg" ;;
194 -includedir | --includedir | --includedi | --included | --include \
195 | --includ | --inclu | --incl | --inc)
196 ac_prev=includedir ;;
197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 | --includ=* | --inclu=* | --incl=* | --inc=*)
199 includedir="$ac_optarg" ;;
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
202 ac_prev=infodir ;;
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
206 -libdir | --libdir | --libdi | --libd)
207 ac_prev=libdir ;;
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 | --libexe | --libex | --libe)
213 ac_prev=libexecdir ;;
214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 | --libexe=* | --libex=* | --libe=*)
216 libexecdir="$ac_optarg" ;;
218 -localstatedir | --localstatedir | --localstatedi | --localstated \
219 | --localstate | --localstat | --localsta | --localst \
220 | --locals | --local | --loca | --loc | --lo)
221 ac_prev=localstatedir ;;
222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 localstatedir="$ac_optarg" ;;
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228 ac_prev=mandir ;;
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
232 -nfp | --nfp | --nf)
233 # Obsolete; use --without-fp.
234 with_fp=no ;;
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237 | --no-cr | --no-c)
238 no_create=yes ;;
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
242 no_recursion=yes ;;
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 | --oldin | --oldi | --old | --ol | --o)
247 ac_prev=oldincludedir ;;
248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 oldincludedir="$ac_optarg" ;;
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254 ac_prev=prefix ;;
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 | --program-pre | --program-pr | --program-p)
260 ac_prev=program_prefix ;;
261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 program_prefix="$ac_optarg" ;;
265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 | --program-suf | --program-su | --program-s)
267 ac_prev=program_suffix ;;
268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 program_suffix="$ac_optarg" ;;
272 -program-transform-name | --program-transform-name \
273 | --program-transform-nam | --program-transform-na \
274 | --program-transform-n | --program-transform- \
275 | --program-transform | --program-transfor \
276 | --program-transfo | --program-transf \
277 | --program-trans | --program-tran \
278 | --progr-tra | --program-tr | --program-t)
279 ac_prev=program_transform_name ;;
280 -program-transform-name=* | --program-transform-name=* \
281 | --program-transform-nam=* | --program-transform-na=* \
282 | --program-transform-n=* | --program-transform-=* \
283 | --program-transform=* | --program-transfor=* \
284 | --program-transfo=* | --program-transf=* \
285 | --program-trans=* | --program-tran=* \
286 | --progr-tra=* | --program-tr=* | --program-t=*)
287 program_transform_name="$ac_optarg" ;;
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
291 silent=yes ;;
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294 ac_prev=sbindir ;;
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296 | --sbi=* | --sb=*)
297 sbindir="$ac_optarg" ;;
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
302 | --sha | --sh)
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307 | --sha=* | --sh=*)
308 sharedstatedir="$ac_optarg" ;;
310 -site | --site | --sit)
311 ac_prev=site ;;
312 -site=* | --site=* | --sit=*)
313 site="$ac_optarg" ;;
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316 ac_prev=srcdir ;;
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 | --syscon | --sysco | --sysc | --sys | --sy)
322 ac_prev=sysconfdir ;;
323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 sysconfdir="$ac_optarg" ;;
327 -target | --target | --targe | --targ | --tar | --ta | --t)
328 ac_prev=target ;;
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
333 verbose=yes ;;
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.13"
337 exit 0 ;;
339 -with-* | --with-*)
340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
346 case "$ac_option" in
347 *=*) ;;
348 *) ac_optarg=yes ;;
349 esac
350 eval "with_${ac_package}='$ac_optarg'" ;;
352 -without-* | --without-*)
353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
361 --x)
362 # Obsolete; use --with-x.
363 with_x=yes ;;
365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 | --x-incl | --x-inc | --x-in | --x-i)
367 ac_prev=x_includes ;;
368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 x_includes="$ac_optarg" ;;
372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 ac_prev=x_libraries ;;
375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 x_libraries="$ac_optarg" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 if test "x$nonopt" != xNONE; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
389 nonopt="$ac_option"
392 esac
393 done
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401 # File descriptor usage:
402 # 0 standard input
403 # 1 file creation
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
410 exec 6>/dev/null
411 else
412 exec 6>&1
414 exec 5>./config.log
416 echo "\
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
419 " 1>&5
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
423 ac_configure_args=
424 for ac_arg
426 case "$ac_arg" in
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c) ;;
429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434 esac
435 done
437 # NLS nuisances.
438 # Only set these to C if already set. These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450 echo > confdefs.h
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file=src/roff/groff/groff.cc
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
460 ac_prog=$0
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463 srcdir=$ac_confdir
464 if test ! -r $srcdir/$ac_unique_file; then
465 srcdir=..
467 else
468 ac_srcdir_defaulted=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473 else
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483 else
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
490 . "$ac_site_file"
492 done
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
496 . $cache_file
497 else
498 echo "creating cache $cache_file"
499 > $cache_file
502 ac_ext=c
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
509 ac_exeext=
510 ac_objext=o
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514 ac_n= ac_c='
515 ' ac_t=' '
516 else
517 ac_n=-n ac_c= ac_t=
519 else
520 ac_n= ac_c='\c' ac_t=
524 ac_srcdir_defaulted=no
525 srcdir=`cd $srcdir; pwd`
526 top_builddir=`pwd`
528 # Extract the first word of "gcc", so it can be a program name with args.
529 set dummy gcc; ac_word=$2
530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
531 echo "configure:532: checking for $ac_word" >&5
532 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
534 else
535 if test -n "$CC"; then
536 ac_cv_prog_CC="$CC" # Let the user override the test.
537 else
538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
539 ac_dummy="$PATH"
540 for ac_dir in $ac_dummy; do
541 test -z "$ac_dir" && ac_dir=.
542 if test -f $ac_dir/$ac_word; then
543 ac_cv_prog_CC="gcc"
544 break
546 done
547 IFS="$ac_save_ifs"
550 CC="$ac_cv_prog_CC"
551 if test -n "$CC"; then
552 echo "$ac_t""$CC" 1>&6
553 else
554 echo "$ac_t""no" 1>&6
557 if test -z "$CC"; then
558 # Extract the first word of "cc", so it can be a program name with args.
559 set dummy cc; ac_word=$2
560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
561 echo "configure:562: checking for $ac_word" >&5
562 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
563 echo $ac_n "(cached) $ac_c" 1>&6
564 else
565 if test -n "$CC"; then
566 ac_cv_prog_CC="$CC" # Let the user override the test.
567 else
568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
569 ac_prog_rejected=no
570 ac_dummy="$PATH"
571 for ac_dir in $ac_dummy; do
572 test -z "$ac_dir" && ac_dir=.
573 if test -f $ac_dir/$ac_word; then
574 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
575 ac_prog_rejected=yes
576 continue
578 ac_cv_prog_CC="cc"
579 break
581 done
582 IFS="$ac_save_ifs"
583 if test $ac_prog_rejected = yes; then
584 # We found a bogon in the path, so make sure we never use it.
585 set dummy $ac_cv_prog_CC
586 shift
587 if test $# -gt 0; then
588 # We chose a different compiler from the bogus one.
589 # However, it has the same basename, so the bogon will be chosen
590 # first if we set CC to just the basename; use the full file name.
591 shift
592 set dummy "$ac_dir/$ac_word" "$@"
593 shift
594 ac_cv_prog_CC="$@"
599 CC="$ac_cv_prog_CC"
600 if test -n "$CC"; then
601 echo "$ac_t""$CC" 1>&6
602 else
603 echo "$ac_t""no" 1>&6
606 if test -z "$CC"; then
607 case "`uname -s`" in
608 *win32* | *WIN32*)
609 # Extract the first word of "cl", so it can be a program name with args.
610 set dummy cl; ac_word=$2
611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612 echo "configure:613: checking for $ac_word" >&5
613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
615 else
616 if test -n "$CC"; then
617 ac_cv_prog_CC="$CC" # Let the user override the test.
618 else
619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
620 ac_dummy="$PATH"
621 for ac_dir in $ac_dummy; do
622 test -z "$ac_dir" && ac_dir=.
623 if test -f $ac_dir/$ac_word; then
624 ac_cv_prog_CC="cl"
625 break
627 done
628 IFS="$ac_save_ifs"
631 CC="$ac_cv_prog_CC"
632 if test -n "$CC"; then
633 echo "$ac_t""$CC" 1>&6
634 else
635 echo "$ac_t""no" 1>&6
638 esac
640 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
643 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
644 echo "configure:645: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
646 ac_ext=c
647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
648 ac_cpp='$CPP $CPPFLAGS'
649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
650 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
651 cross_compiling=$ac_cv_prog_cc_cross
653 cat > conftest.$ac_ext << EOF
655 #line 656 "configure"
656 #include "confdefs.h"
658 main(){return(0);}
660 if { (eval echo configure:661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
661 ac_cv_prog_cc_works=yes
662 # If we can't run a trivial program, we are probably using a cross compiler.
663 if (./conftest; exit) 2>/dev/null; then
664 ac_cv_prog_cc_cross=no
665 else
666 ac_cv_prog_cc_cross=yes
668 else
669 echo "configure: failed program was:" >&5
670 cat conftest.$ac_ext >&5
671 ac_cv_prog_cc_works=no
673 rm -fr conftest*
674 ac_ext=c
675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
676 ac_cpp='$CPP $CPPFLAGS'
677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
679 cross_compiling=$ac_cv_prog_cc_cross
681 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
682 if test $ac_cv_prog_cc_works = no; then
683 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
685 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
686 echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
687 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
688 cross_compiling=$ac_cv_prog_cc_cross
690 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
691 echo "configure:692: checking whether we are using GNU C" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
694 else
695 cat > conftest.c <<EOF
696 #ifdef __GNUC__
697 yes;
698 #endif
700 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
701 ac_cv_prog_gcc=yes
702 else
703 ac_cv_prog_gcc=no
707 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
709 if test $ac_cv_prog_gcc = yes; then
710 GCC=yes
711 else
712 GCC=
715 ac_test_CFLAGS="${CFLAGS+set}"
716 ac_save_CFLAGS="$CFLAGS"
717 CFLAGS=
718 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
719 echo "configure:720: checking whether ${CC-cc} accepts -g" >&5
720 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
722 else
723 echo 'void f(){}' > conftest.c
724 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
725 ac_cv_prog_cc_g=yes
726 else
727 ac_cv_prog_cc_g=no
729 rm -f conftest*
733 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
734 if test "$ac_test_CFLAGS" = set; then
735 CFLAGS="$ac_save_CFLAGS"
736 elif test $ac_cv_prog_cc_g = yes; then
737 if test "$GCC" = yes; then
738 CFLAGS="-g -O2"
739 else
740 CFLAGS="-g"
742 else
743 if test "$GCC" = yes; then
744 CFLAGS="-O2"
745 else
746 CFLAGS=
750 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
752 # Extract the first word of "$ac_prog", so it can be a program name with args.
753 set dummy $ac_prog; ac_word=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
758 else
759 if test -n "$CXX"; then
760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
761 else
762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
763 ac_dummy="$PATH"
764 for ac_dir in $ac_dummy; do
765 test -z "$ac_dir" && ac_dir=.
766 if test -f $ac_dir/$ac_word; then
767 ac_cv_prog_CXX="$ac_prog"
768 break
770 done
771 IFS="$ac_save_ifs"
774 CXX="$ac_cv_prog_CXX"
775 if test -n "$CXX"; then
776 echo "$ac_t""$CXX" 1>&6
777 else
778 echo "$ac_t""no" 1>&6
781 test -n "$CXX" && break
782 done
783 test -n "$CXX" || CXX="gcc"
786 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
787 echo "configure:788: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
789 ac_ext=C
790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp='$CXXCPP $CPPFLAGS'
792 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling=$ac_cv_prog_cxx_cross
796 cat > conftest.$ac_ext << EOF
798 #line 799 "configure"
799 #include "confdefs.h"
801 int main(){return(0);}
803 if { (eval echo configure:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
804 ac_cv_prog_cxx_works=yes
805 # If we can't run a trivial program, we are probably using a cross compiler.
806 if (./conftest; exit) 2>/dev/null; then
807 ac_cv_prog_cxx_cross=no
808 else
809 ac_cv_prog_cxx_cross=yes
811 else
812 echo "configure: failed program was:" >&5
813 cat conftest.$ac_ext >&5
814 ac_cv_prog_cxx_works=no
816 rm -fr conftest*
817 ac_ext=c
818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
819 ac_cpp='$CPP $CPPFLAGS'
820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
822 cross_compiling=$ac_cv_prog_cc_cross
824 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
825 if test $ac_cv_prog_cxx_works = no; then
826 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
828 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
829 echo "configure:830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
830 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
831 cross_compiling=$ac_cv_prog_cxx_cross
833 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
834 echo "configure:835: checking whether we are using GNU C++" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
837 else
838 cat > conftest.C <<EOF
839 #ifdef __GNUC__
840 yes;
841 #endif
843 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
844 ac_cv_prog_gxx=yes
845 else
846 ac_cv_prog_gxx=no
850 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
852 if test $ac_cv_prog_gxx = yes; then
853 GXX=yes
854 else
855 GXX=
858 ac_test_CXXFLAGS="${CXXFLAGS+set}"
859 ac_save_CXXFLAGS="$CXXFLAGS"
860 CXXFLAGS=
861 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CXX-g++} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
865 else
866 echo 'void f(){}' > conftest.cc
867 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
868 ac_cv_prog_cxx_g=yes
869 else
870 ac_cv_prog_cxx_g=no
872 rm -f conftest*
876 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
877 if test "$ac_test_CXXFLAGS" = set; then
878 CXXFLAGS="$ac_save_CXXFLAGS"
879 elif test $ac_cv_prog_cxx_g = yes; then
880 if test "$GXX" = yes; then
881 CXXFLAGS="-g -O2"
882 else
883 CXXFLAGS="-g"
885 else
886 if test "$GXX" = yes; then
887 CXXFLAGS="-O2"
888 else
889 CXXFLAGS=
895 ac_ext=C
896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
897 ac_cpp='$CXXCPP $CPPFLAGS'
898 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
899 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
900 cross_compiling=$ac_cv_prog_cxx_cross
902 if test "$cross_compiling" = no; then
903 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6
904 echo "configure:905: checking that C++ compiler can compile simple program" >&5
906 if test "$cross_compiling" = yes; then
908 else
909 cat > conftest.$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
912 #ifdef __cplusplus
913 extern "C" void exit(int);
914 #endif
915 int main() { return 0; }
917 if { (eval echo configure:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
918 then
919 echo "$ac_t""yes" 1>&6
920 else
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 rm -fr conftest*
924 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
926 rm -fr conftest*
929 if test "$cross_compiling" = no; then
930 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6
931 echo "configure:932: checking that C++ static constructors and destructors are called" >&5
933 if test "$cross_compiling" = yes; then
935 else
936 cat > conftest.$ac_ext <<EOF
937 #line 938 "configure"
938 #include "confdefs.h"
939 #ifdef __cplusplus
940 extern "C" void exit(int);
941 #endif
943 extern "C" {
944 void _exit(int);
946 int i;
947 struct A {
948 char dummy;
949 A() { i = 1; }
950 ~A() { if (i == 1) _exit(0); }
952 A a;
953 int main() { return 1; }
956 if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
957 then
958 echo "$ac_t""yes" 1>&6
959 else
960 echo "configure: failed program was:" >&5
961 cat conftest.$ac_ext >&5
962 rm -fr conftest*
963 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
965 rm -fr conftest*
968 echo $ac_n "checking that header files support C++""... $ac_c" 1>&6
969 echo "configure:970: checking that header files support C++" >&5
970 cat > conftest.$ac_ext <<EOF
971 #line 972 "configure"
972 #include "confdefs.h"
973 #include <stdio.h>
974 int main() {
975 fopen(0, 0);
976 ; return 0; }
978 if { (eval echo configure:979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
979 rm -rf conftest*
980 echo "$ac_t""yes" 1>&6
981 else
982 echo "configure: failed program was:" >&5
983 cat conftest.$ac_ext >&5
984 rm -rf conftest*
985 echo "$ac_t""no" 1>&6;{ echo "configure: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" 1>&2; exit 1; }
987 rm -f conftest*
988 ac_ext=c
989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
990 ac_cpp='$CPP $CPPFLAGS'
991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
993 cross_compiling=$ac_cv_prog_cc_cross
995 echo $ac_n "checking whether character set is EBCDIC""... $ac_c" 1>&6
996 echo "configure:997: checking whether character set is EBCDIC" >&5
997 cat > conftest.$ac_ext <<EOF
998 #line 999 "configure"
999 #include "confdefs.h"
1001 int main() {
1002 /* Treat any failure as ASCII for compatibility with existing art.
1003 Use compile-time rather than run-time tests for cross-compiler
1004 tolerance. */
1005 #if '0' != 240
1006 make an error "Character set is not EBCDIC"
1007 #endif
1008 ; return 0; }
1010 if { (eval echo configure:1011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1011 rm -rf conftest*
1012 groff_cv_ebcdic="yes"
1013 TTYDEVDIRS="font/devcp1047"
1014 echo "$ac_t""yes" 1>&6
1015 cat >> confdefs.h <<\EOF
1016 #define IS_EBCDIC_HOST 1
1019 else
1020 echo "configure: failed program was:" >&5
1021 cat conftest.$ac_ext >&5
1022 rm -rf conftest*
1023 groff_cv_ebcdic="no"
1024 TTYDEVDIRS="font/devascii font/devlatin1 font/devutf8"
1025 echo "$ac_t""no" 1>&6
1027 rm -f conftest*
1029 groff_cv_os390="no"
1030 if test "$groff_cv_ebcdic" = "yes"; then
1031 echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6
1032 echo "configure:1033: checking for OS/390 Unix" >&5
1033 case `uname` in
1034 OS/390)
1035 CFLAGS="$CFLAGS -D_ALL_SOURCE"
1036 groff_cv_os390="yes"
1037 echo "$ac_t""yes" 1>&6 ;;
1039 echo "$ac_t""no" 1>&6 ;;
1040 esac
1042 if test -z "$PSPRINT"; then
1043 for ac_prog in lpr
1045 # Extract the first word of "$ac_prog", so it can be a program name with args.
1046 set dummy $ac_prog; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1051 else
1052 if test -n "$LPR"; then
1053 ac_cv_prog_LPR="$LPR" # Let the user override the test.
1054 else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1056 ac_dummy="$PATH"
1057 for ac_dir in $ac_dummy; do
1058 test -z "$ac_dir" && ac_dir=.
1059 if test -f $ac_dir/$ac_word; then
1060 ac_cv_prog_LPR="$ac_prog"
1061 break
1063 done
1064 IFS="$ac_save_ifs"
1067 LPR="$ac_cv_prog_LPR"
1068 if test -n "$LPR"; then
1069 echo "$ac_t""$LPR" 1>&6
1070 else
1071 echo "$ac_t""no" 1>&6
1074 test -n "$LPR" && break
1075 done
1077 for ac_prog in lp
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy $ac_prog; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086 if test -n "$LP"; then
1087 ac_cv_prog_LP="$LP" # Let the user override the test.
1088 else
1089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1090 ac_dummy="$PATH"
1091 for ac_dir in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_prog_LP="$ac_prog"
1095 break
1097 done
1098 IFS="$ac_save_ifs"
1101 LP="$ac_cv_prog_LP"
1102 if test -n "$LP"; then
1103 echo "$ac_t""$LP" 1>&6
1104 else
1105 echo "$ac_t""no" 1>&6
1108 test -n "$LP" && break
1109 done
1111 if test -n "$LPR" && test -n "$LP"; then
1112 # HP-UX provides an lpr command that emulates lpr using lp,
1113 # but it doesn't have lpq; in this case we want to use lp
1114 # rather than lpr.
1115 for ac_prog in lpq
1117 # Extract the first word of "$ac_prog", so it can be a program name with args.
1118 set dummy $ac_prog; ac_word=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1123 else
1124 if test -n "$LPQ"; then
1125 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
1126 else
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1128 ac_dummy="$PATH"
1129 for ac_dir in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_LPQ="$ac_prog"
1133 break
1135 done
1136 IFS="$ac_save_ifs"
1139 LPQ="$ac_cv_prog_LPQ"
1140 if test -n "$LPQ"; then
1141 echo "$ac_t""$LPQ" 1>&6
1142 else
1143 echo "$ac_t""no" 1>&6
1146 test -n "$LPQ" && break
1147 done
1149 test -n "$LPQ" || LPR=
1151 if test -n "$LPR"; then
1152 PSPRINT="$LPR"
1153 elif test -n "$LP"; then
1154 PSPRINT="$LP"
1158 echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6
1159 echo "configure:1160: checking for command to use for printing PostScript files" >&5
1160 echo "$ac_t""$PSPRINT" 1>&6
1161 # Figure out DVIPRINT from PSPRINT.
1162 echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6
1163 echo "configure:1164: checking for command to use for printing dvi files" >&5
1164 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
1165 if test "X$PSPRINT" = "Xlpr"; then
1166 DVIPRINT="lpr -d"
1167 else
1168 DVIPRINT="$PSPRINT"
1172 echo "$ac_t""$DVIPRINT" 1>&6
1173 # Extract the first word of "perl", so it can be a program name with args.
1174 set dummy perl; ac_word=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180 case "$PERLPATH" in
1182 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
1184 ?:/*)
1185 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a dos path.
1188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1189 ac_dummy="$PATH"
1190 for ac_dir in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir=.
1192 if test -f $ac_dir/$ac_word; then
1193 ac_cv_path_PERLPATH="$ac_dir/$ac_word"
1194 break
1196 done
1197 IFS="$ac_save_ifs"
1198 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
1200 esac
1202 PERLPATH="$ac_cv_path_PERLPATH"
1203 if test -n "$PERLPATH"; then
1204 echo "$ac_t""$PERLPATH" 1>&6
1205 else
1206 echo "$ac_t""no" 1>&6
1209 for ac_prog in byacc 'bison -y'
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy $ac_prog; ac_word=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 if test -n "$YACC"; then
1219 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1220 else
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1222 ac_dummy="$PATH"
1223 for ac_dir in $ac_dummy; do
1224 test -z "$ac_dir" && ac_dir=.
1225 if test -f $ac_dir/$ac_word; then
1226 ac_cv_prog_YACC="$ac_prog"
1227 break
1229 done
1230 IFS="$ac_save_ifs"
1233 YACC="$ac_cv_prog_YACC"
1234 if test -n "$YACC"; then
1235 echo "$ac_t""$YACC" 1>&6
1236 else
1237 echo "$ac_t""no" 1>&6
1240 test -n "$YACC" && break
1241 done
1242 test -n "$YACC" || YACC="yacc"
1244 # Extract the first word of "ranlib", so it can be a program name with args.
1245 set dummy ranlib; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251 if test -n "$RANLIB"; then
1252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1253 else
1254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 ac_dummy="$PATH"
1256 for ac_dir in $ac_dummy; do
1257 test -z "$ac_dir" && ac_dir=.
1258 if test -f $ac_dir/$ac_word; then
1259 ac_cv_prog_RANLIB="ranlib"
1260 break
1262 done
1263 IFS="$ac_save_ifs"
1264 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1267 RANLIB="$ac_cv_prog_RANLIB"
1268 if test -n "$RANLIB"; then
1269 echo "$ac_t""$RANLIB" 1>&6
1270 else
1271 echo "$ac_t""no" 1>&6
1274 ac_aux_dir=
1275 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1276 if test -f $ac_dir/install-sh; then
1277 ac_aux_dir=$ac_dir
1278 ac_install_sh="$ac_aux_dir/install-sh -c"
1279 break
1280 elif test -f $ac_dir/install.sh; then
1281 ac_aux_dir=$ac_dir
1282 ac_install_sh="$ac_aux_dir/install.sh -c"
1283 break
1285 done
1286 if test -z "$ac_aux_dir"; then
1287 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1289 ac_config_guess=$ac_aux_dir/config.guess
1290 ac_config_sub=$ac_aux_dir/config.sub
1291 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1293 ac_dir=`cd $ac_aux_dir; pwd`
1294 ac_install_sh="$ac_dir/install-sh -c"
1295 # Find a good install program. We prefer a C program (faster),
1296 # so one script is as good as another. But avoid the broken or
1297 # incompatible versions:
1298 # SysV /etc/install, /usr/sbin/install
1299 # SunOS /usr/etc/install
1300 # IRIX /sbin/install
1301 # AIX /bin/install
1302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1305 # ./install, which can be erroneously created by make from ./install.sh.
1306 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1307 echo "configure:1308: checking for a BSD compatible install" >&5
1308 if test -z "$INSTALL"; then
1309 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1311 else
1312 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1313 for ac_dir in $PATH; do
1314 # Account for people who put trailing slashes in PATH elements.
1315 case "$ac_dir/" in
1316 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1318 # OSF1 and SCO ODT 3.0 have their own names for install.
1319 # Don't use installbsd from OSF since it installs stuff as root
1320 # by default.
1321 for ac_prog in ginstall scoinst install; do
1322 if test -f $ac_dir/$ac_prog; then
1323 if test $ac_prog = install &&
1324 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1325 # AIX install. It has an incompatible calling convention.
1327 else
1328 ac_cv_path_install="$ac_dir/$ac_prog -c"
1329 break 2
1332 done
1334 esac
1335 done
1336 IFS="$ac_save_IFS"
1339 if test "${ac_cv_path_install+set}" = set; then
1340 INSTALL="$ac_cv_path_install"
1341 else
1342 # As a last resort, use the slow shell script. We don't cache a
1343 # path for INSTALL within a source directory, because that will
1344 # break other packages using the cache if that directory is
1345 # removed, or if the path is relative.
1346 INSTALL="$ac_install_sh"
1349 echo "$ac_t""$INSTALL" 1>&6
1351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1352 # It thinks the first close brace ends the variable substitution.
1353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1359 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1360 echo "configure:1361: checking whether ln -s works" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 rm -f conftestdata
1365 if ln -s X conftestdata 2>/dev/null
1366 then
1367 rm -f conftestdata
1368 ac_cv_prog_LN_S="ln -s"
1369 else
1370 ac_cv_prog_LN_S=ln
1373 LN_S="$ac_cv_prog_LN_S"
1374 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1375 echo "$ac_t""yes" 1>&6
1376 else
1377 echo "$ac_t""no" 1>&6
1380 echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6
1381 echo "configure:1382: checking for csh hash hack" >&5
1382 cat <<EOF >conftest.sh
1383 #!/bin/sh
1384 true || exit 0
1385 export PATH || exit 0
1386 exit 1
1388 chmod +x conftest.sh
1389 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
1390 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
1391 else
1392 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD=''
1394 rm -f conftest.sh
1396 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1397 echo "configure:1398: checking how to run the C preprocessor" >&5
1398 # On Suns, sometimes $CPP names a directory.
1399 if test -n "$CPP" && test -d "$CPP"; then
1400 CPP=
1402 if test -z "$CPP"; then
1403 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1405 else
1406 # This must be in double quotes, not single quotes, because CPP may get
1407 # substituted into the Makefile and "${CC-cc}" will confuse make.
1408 CPP="${CC-cc} -E"
1409 # On the NeXT, cc -E runs the code through the compiler's parser,
1410 # not just through cpp.
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1414 #include <assert.h>
1415 Syntax Error
1417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1418 { (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1420 if test -z "$ac_err"; then
1422 else
1423 echo "$ac_err" >&5
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 rm -rf conftest*
1427 CPP="${CC-cc} -E -traditional-cpp"
1428 cat > conftest.$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 #include <assert.h>
1432 Syntax Error
1434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1435 { (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1437 if test -z "$ac_err"; then
1439 else
1440 echo "$ac_err" >&5
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1443 rm -rf conftest*
1444 CPP="${CC-cc} -nologo -E"
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 #include <assert.h>
1449 Syntax Error
1451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1452 { (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1454 if test -z "$ac_err"; then
1456 else
1457 echo "$ac_err" >&5
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1460 rm -rf conftest*
1461 CPP=/lib/cpp
1463 rm -f conftest*
1465 rm -f conftest*
1467 rm -f conftest*
1468 ac_cv_prog_CPP="$CPP"
1470 CPP="$ac_cv_prog_CPP"
1471 else
1472 ac_cv_prog_CPP="$CPP"
1474 echo "$ac_t""$CPP" 1>&6
1476 for ac_hdr in stdlib.h unistd.h dirent.h limits.h sys/dir.h \
1477 string.h strings.h math.h
1479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1481 echo "configure:1482: checking for $ac_hdr" >&5
1482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1484 else
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 #include <$ac_hdr>
1490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1491 { (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1493 if test -z "$ac_err"; then
1494 rm -rf conftest*
1495 eval "ac_cv_header_$ac_safe=yes"
1496 else
1497 echo "$ac_err" >&5
1498 echo "configure: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1500 rm -rf conftest*
1501 eval "ac_cv_header_$ac_safe=no"
1503 rm -f conftest*
1505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1506 echo "$ac_t""yes" 1>&6
1507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1508 cat >> confdefs.h <<EOF
1509 #define $ac_tr_hdr 1
1512 else
1513 echo "$ac_t""no" 1>&6
1515 done
1517 echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6
1518 echo "configure:1519: checking for ISC 3.x or 4.x" >&5
1519 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
1520 then
1521 echo "$ac_t""yes" 1>&6
1522 cat >> confdefs.h <<\EOF
1523 #define _SYSV3 1
1526 else
1527 echo "$ac_t""no" 1>&6
1529 echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether -D_POSIX_SOURCE is necessary" >&5
1532 ac_ext=C
1533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1534 ac_cpp='$CXXCPP $CPPFLAGS'
1535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1537 cross_compiling=$ac_cv_prog_cxx_cross
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1542 #include <stdio.h>
1543 extern "C" { void fileno(int); }
1544 int main() {
1546 ; return 0; }
1548 if { (eval echo configure:1549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1549 rm -rf conftest*
1550 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1551 #define _POSIX_SOURCE 1
1554 else
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1557 rm -rf conftest*
1558 echo "$ac_t""no" 1>&6
1560 rm -f conftest*
1561 ac_ext=c
1562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1563 ac_cpp='$CPP $CPPFLAGS'
1564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1566 cross_compiling=$ac_cv_prog_cc_cross
1569 ac_ext=C
1570 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1571 ac_cpp='$CXXCPP $CPPFLAGS'
1572 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1573 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1574 cross_compiling=$ac_cv_prog_cxx_cross
1576 echo $ac_n "checking for return type of srand""... $ac_c" 1>&6
1577 echo "configure:1578: checking for return type of srand" >&5
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 #include <stdlib.h>
1582 extern "C" { void srand(unsigned int); }
1583 int main() {
1585 ; return 0; }
1587 if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1588 rm -rf conftest*
1589 echo "$ac_t""void" 1>&6;cat >> confdefs.h <<\EOF
1590 #define RET_TYPE_SRAND_IS_VOID 1
1593 else
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1596 rm -rf conftest*
1597 echo "$ac_t""int" 1>&6
1599 rm -f conftest*
1600 ac_ext=c
1601 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1602 ac_cpp='$CPP $CPPFLAGS'
1603 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1604 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1605 cross_compiling=$ac_cv_prog_cc_cross
1607 echo $ac_n "checking whether hypot must be declared""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether hypot must be declared" >&5
1610 ac_ext=C
1611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1612 ac_cpp='$CXXCPP $CPPFLAGS'
1613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1615 cross_compiling=$ac_cv_prog_cxx_cross
1617 if eval "test \"`echo '$''{'groff_cv_decl_needed_hypot'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1619 else
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1624 #include <stdio.h>
1625 #ifdef HAVE_STRING_H
1626 #include <string.h>
1627 #else
1628 #ifdef HAVE_STRINGS_H
1629 #include <strings.h>
1630 #endif
1631 #endif
1632 #ifdef HAVE_STDLIB_H
1633 #include <stdlib.h>
1634 #endif
1635 #ifdef HAVE_UNISTD_H
1636 #include <unistd.h>
1637 #endif
1638 #ifdef HAVE_MATH_H
1639 #include <math.h>
1640 #endif
1641 int main() {
1642 char *(*pfn) = (char *(*)) hypot
1643 ; return 0; }
1645 if { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1646 rm -rf conftest*
1647 groff_cv_decl_needed_hypot=no
1648 else
1649 echo "configure: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1651 rm -rf conftest*
1652 groff_cv_decl_needed_hypot=yes
1654 rm -f conftest*
1657 echo "$ac_t""$groff_cv_decl_needed_hypot" 1>&6
1658 if test $groff_cv_decl_needed_hypot = yes; then
1659 cat >> confdefs.h <<\EOF
1660 #define NEED_DECLARATION_HYPOT 1
1664 ac_ext=c
1665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1666 ac_cpp='$CPP $CPPFLAGS'
1667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1669 cross_compiling=$ac_cv_prog_cc_cross
1671 echo $ac_n "checking whether popen must be declared""... $ac_c" 1>&6
1672 echo "configure:1673: checking whether popen must be declared" >&5
1674 ac_ext=C
1675 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1676 ac_cpp='$CXXCPP $CPPFLAGS'
1677 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1678 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1679 cross_compiling=$ac_cv_prog_cxx_cross
1681 if eval "test \"`echo '$''{'groff_cv_decl_needed_popen'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1688 #include <stdio.h>
1689 #ifdef HAVE_STRING_H
1690 #include <string.h>
1691 #else
1692 #ifdef HAVE_STRINGS_H
1693 #include <strings.h>
1694 #endif
1695 #endif
1696 #ifdef HAVE_STDLIB_H
1697 #include <stdlib.h>
1698 #endif
1699 #ifdef HAVE_UNISTD_H
1700 #include <unistd.h>
1701 #endif
1702 #ifdef HAVE_MATH_H
1703 #include <math.h>
1704 #endif
1705 int main() {
1706 char *(*pfn) = (char *(*)) popen
1707 ; return 0; }
1709 if { (eval echo configure:1710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1710 rm -rf conftest*
1711 groff_cv_decl_needed_popen=no
1712 else
1713 echo "configure: failed program was:" >&5
1714 cat conftest.$ac_ext >&5
1715 rm -rf conftest*
1716 groff_cv_decl_needed_popen=yes
1718 rm -f conftest*
1721 echo "$ac_t""$groff_cv_decl_needed_popen" 1>&6
1722 if test $groff_cv_decl_needed_popen = yes; then
1723 cat >> confdefs.h <<\EOF
1724 #define NEED_DECLARATION_POPEN 1
1728 ac_ext=c
1729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1730 ac_cpp='$CPP $CPPFLAGS'
1731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1733 cross_compiling=$ac_cv_prog_cc_cross
1735 echo $ac_n "checking whether pclose must be declared""... $ac_c" 1>&6
1736 echo "configure:1737: checking whether pclose must be declared" >&5
1738 ac_ext=C
1739 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1740 ac_cpp='$CXXCPP $CPPFLAGS'
1741 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1742 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1743 cross_compiling=$ac_cv_prog_cxx_cross
1745 if eval "test \"`echo '$''{'groff_cv_decl_needed_pclose'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1752 #include <stdio.h>
1753 #ifdef HAVE_STRING_H
1754 #include <string.h>
1755 #else
1756 #ifdef HAVE_STRINGS_H
1757 #include <strings.h>
1758 #endif
1759 #endif
1760 #ifdef HAVE_STDLIB_H
1761 #include <stdlib.h>
1762 #endif
1763 #ifdef HAVE_UNISTD_H
1764 #include <unistd.h>
1765 #endif
1766 #ifdef HAVE_MATH_H
1767 #include <math.h>
1768 #endif
1769 int main() {
1770 char *(*pfn) = (char *(*)) pclose
1771 ; return 0; }
1773 if { (eval echo configure:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1774 rm -rf conftest*
1775 groff_cv_decl_needed_pclose=no
1776 else
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1779 rm -rf conftest*
1780 groff_cv_decl_needed_pclose=yes
1782 rm -f conftest*
1785 echo "$ac_t""$groff_cv_decl_needed_pclose" 1>&6
1786 if test $groff_cv_decl_needed_pclose = yes; then
1787 cat >> confdefs.h <<\EOF
1788 #define NEED_DECLARATION_PCLOSE 1
1792 ac_ext=c
1793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1794 ac_cpp='$CPP $CPPFLAGS'
1795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1797 cross_compiling=$ac_cv_prog_cc_cross
1799 echo $ac_n "checking whether putenv must be declared""... $ac_c" 1>&6
1800 echo "configure:1801: checking whether putenv must be declared" >&5
1802 ac_ext=C
1803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1804 ac_cpp='$CXXCPP $CPPFLAGS'
1805 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1806 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1807 cross_compiling=$ac_cv_prog_cxx_cross
1809 if eval "test \"`echo '$''{'groff_cv_decl_needed_putenv'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1811 else
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1816 #include <stdio.h>
1817 #ifdef HAVE_STRING_H
1818 #include <string.h>
1819 #else
1820 #ifdef HAVE_STRINGS_H
1821 #include <strings.h>
1822 #endif
1823 #endif
1824 #ifdef HAVE_STDLIB_H
1825 #include <stdlib.h>
1826 #endif
1827 #ifdef HAVE_UNISTD_H
1828 #include <unistd.h>
1829 #endif
1830 #ifdef HAVE_MATH_H
1831 #include <math.h>
1832 #endif
1833 int main() {
1834 char *(*pfn) = (char *(*)) putenv
1835 ; return 0; }
1837 if { (eval echo configure:1838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1838 rm -rf conftest*
1839 groff_cv_decl_needed_putenv=no
1840 else
1841 echo "configure: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1843 rm -rf conftest*
1844 groff_cv_decl_needed_putenv=yes
1846 rm -f conftest*
1849 echo "$ac_t""$groff_cv_decl_needed_putenv" 1>&6
1850 if test $groff_cv_decl_needed_putenv = yes; then
1851 cat >> confdefs.h <<\EOF
1852 #define NEED_DECLARATION_PUTENV 1
1856 ac_ext=c
1857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1861 cross_compiling=$ac_cv_prog_cc_cross
1863 echo $ac_n "checking whether strncasecmp must be declared""... $ac_c" 1>&6
1864 echo "configure:1865: checking whether strncasecmp must be declared" >&5
1866 ac_ext=C
1867 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1868 ac_cpp='$CXXCPP $CPPFLAGS'
1869 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1870 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1871 cross_compiling=$ac_cv_prog_cxx_cross
1873 if eval "test \"`echo '$''{'groff_cv_decl_needed_strncasecmp'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1875 else
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1880 #include <stdio.h>
1881 #ifdef HAVE_STRING_H
1882 #include <string.h>
1883 #else
1884 #ifdef HAVE_STRINGS_H
1885 #include <strings.h>
1886 #endif
1887 #endif
1888 #ifdef HAVE_STDLIB_H
1889 #include <stdlib.h>
1890 #endif
1891 #ifdef HAVE_UNISTD_H
1892 #include <unistd.h>
1893 #endif
1894 #ifdef HAVE_MATH_H
1895 #include <math.h>
1896 #endif
1897 int main() {
1898 char *(*pfn) = (char *(*)) strncasecmp
1899 ; return 0; }
1901 if { (eval echo configure:1902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1902 rm -rf conftest*
1903 groff_cv_decl_needed_strncasecmp=no
1904 else
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 rm -rf conftest*
1908 groff_cv_decl_needed_strncasecmp=yes
1910 rm -f conftest*
1913 echo "$ac_t""$groff_cv_decl_needed_strncasecmp" 1>&6
1914 if test $groff_cv_decl_needed_strncasecmp = yes; then
1915 cat >> confdefs.h <<\EOF
1916 #define NEED_DECLARATION_STRNCASECMP 1
1920 ac_ext=c
1921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1922 ac_cpp='$CPP $CPPFLAGS'
1923 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1924 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1925 cross_compiling=$ac_cv_prog_cc_cross
1928 ac_ext=C
1929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1930 ac_cpp='$CXXCPP $CPPFLAGS'
1931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1933 cross_compiling=$ac_cv_prog_cxx_cross
1935 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1936 echo "configure:1937: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 #include <errno.h>
1941 #include <stdio.h>
1942 int main() {
1943 int k; k = sys_nerr;
1944 ; return 0; }
1946 if { (eval echo configure:1947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1947 rm -rf conftest*
1948 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1949 #define HAVE_SYS_NERR 1
1952 else
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1955 rm -rf conftest*
1956 echo "$ac_t""no" 1>&6
1958 rm -f conftest*
1959 ac_ext=c
1960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1964 cross_compiling=$ac_cv_prog_cc_cross
1967 ac_ext=C
1968 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1969 ac_cpp='$CXXCPP $CPPFLAGS'
1970 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1971 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1972 cross_compiling=$ac_cv_prog_cxx_cross
1974 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1975 echo "configure:1976: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1976 cat > conftest.$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1979 #include <errno.h>
1980 #include <stdio.h>
1981 int main() {
1982 int k; k = (int)sys_errlist[0];
1983 ; return 0; }
1985 if { (eval echo configure:1986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1986 rm -rf conftest*
1987 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1988 #define HAVE_SYS_ERRLIST 1
1991 else
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 rm -rf conftest*
1995 echo "$ac_t""no" 1>&6
1997 rm -f conftest*
1998 ac_ext=c
1999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2003 cross_compiling=$ac_cv_prog_cc_cross
2006 ac_ext=C
2007 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2008 ac_cpp='$CXXCPP $CPPFLAGS'
2009 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2010 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2011 cross_compiling=$ac_cv_prog_cxx_cross
2013 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
2014 echo "configure:2015: checking C++ <osfcn.h>" >&5
2015 cat > conftest.$ac_ext <<EOF
2016 #line 2017 "configure"
2017 #include "confdefs.h"
2018 #include <osfcn.h>
2019 int main() {
2020 read(0, 0, 0); open(0, 0);
2021 ; return 0; }
2023 if { (eval echo configure:2024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2024 rm -rf conftest*
2025 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2026 #define HAVE_CC_OSFCN_H 1
2029 else
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 rm -rf conftest*
2033 echo "$ac_t""no" 1>&6
2035 rm -f conftest*
2036 ac_ext=c
2037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2040 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2041 cross_compiling=$ac_cv_prog_cc_cross
2044 ac_ext=C
2045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2046 ac_cpp='$CXXCPP $CPPFLAGS'
2047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2049 cross_compiling=$ac_cv_prog_cxx_cross
2051 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
2052 echo "configure:2053: checking C++ <limits.h>" >&5
2053 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2056 #include <limits.h>
2057 int main() {
2058 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
2059 ; return 0; }
2061 if { (eval echo configure:2062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2062 rm -rf conftest*
2063 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2064 #define HAVE_CC_LIMITS_H 1
2067 else
2068 echo "configure: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2070 rm -rf conftest*
2071 echo "$ac_t""no" 1>&6
2073 rm -f conftest*
2074 ac_ext=c
2075 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2076 ac_cpp='$CPP $CPPFLAGS'
2077 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2078 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2079 cross_compiling=$ac_cv_prog_cc_cross
2082 ac_ext=C
2083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2084 ac_cpp='$CXXCPP $CPPFLAGS'
2085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2087 cross_compiling=$ac_cv_prog_cxx_cross
2089 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
2090 echo "configure:2091: checking for declaration of time_t" >&5
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2094 #include <time.h>
2095 int main() {
2096 time_t t = time(0); struct tm *p = localtime(&t);
2097 ; return 0; }
2099 if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100 rm -rf conftest*
2101 echo "$ac_t""yes" 1>&6
2102 else
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2105 rm -rf conftest*
2106 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
2107 #define LONG_FOR_TIME_T 1
2111 rm -f conftest*
2112 ac_ext=c
2113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2116 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2117 cross_compiling=$ac_cv_prog_cc_cross
2119 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2120 echo "configure:2121: checking return type of signal handlers" >&5
2121 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 #include <sys/types.h>
2128 #include <signal.h>
2129 #ifdef signal
2130 #undef signal
2131 #endif
2132 #ifdef __cplusplus
2133 extern "C" void (*signal (int, void (*)(int)))(int);
2134 #else
2135 void (*signal ()) ();
2136 #endif
2138 int main() {
2139 int i;
2140 ; return 0; }
2142 if { (eval echo configure:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2143 rm -rf conftest*
2144 ac_cv_type_signal=void
2145 else
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2148 rm -rf conftest*
2149 ac_cv_type_signal=int
2151 rm -f conftest*
2154 echo "$ac_t""$ac_cv_type_signal" 1>&6
2155 cat >> confdefs.h <<EOF
2156 #define RETSIGTYPE $ac_cv_type_signal
2160 echo $ac_n "checking struct exception""... $ac_c" 1>&6
2161 echo "configure:2162: checking struct exception" >&5
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 #include <math.h>
2166 int main() {
2167 struct exception e;
2168 ; return 0; }
2170 if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2171 rm -rf conftest*
2172 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2173 #define HAVE_STRUCT_EXCEPTION 1
2176 else
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2179 rm -rf conftest*
2180 echo "$ac_t""no" 1>&6
2182 rm -f conftest*
2183 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
2184 echo "configure:2185: checking for sin in -lm" >&5
2185 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2188 else
2189 ac_save_LIBS="$LIBS"
2190 LIBS="-lm $LIBS"
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* Override any gcc2 internal prototype to avoid an error. */
2195 /* We use char because int might match the return type of a gcc2
2196 builtin and then its argument prototype would still apply. */
2197 char sin();
2199 int main() {
2200 sin()
2201 ; return 0; }
2203 if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2204 rm -rf conftest*
2205 eval "ac_cv_lib_$ac_lib_var=yes"
2206 else
2207 echo "configure: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2209 rm -rf conftest*
2210 eval "ac_cv_lib_$ac_lib_var=no"
2212 rm -f conftest*
2213 LIBS="$ac_save_LIBS"
2216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 LIBM=-lm
2219 else
2220 echo "$ac_t""no" 1>&6
2224 for ac_hdr in unistd.h
2226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <$ac_hdr>
2237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2241 rm -rf conftest*
2242 eval "ac_cv_header_$ac_safe=yes"
2243 else
2244 echo "$ac_err" >&5
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 rm -rf conftest*
2248 eval "ac_cv_header_$ac_safe=no"
2250 rm -f conftest*
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255 cat >> confdefs.h <<EOF
2256 #define $ac_tr_hdr 1
2259 else
2260 echo "$ac_t""no" 1>&6
2262 done
2264 for ac_func in getpagesize
2266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_func" >&5
2268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 /* System header to define __stub macros and hopefully few prototypes,
2275 which can conflict with char $ac_func(); below. */
2276 #include <assert.h>
2277 /* Override any gcc2 internal prototype to avoid an error. */
2278 /* We use char because int might match the return type of a gcc2
2279 builtin and then its argument prototype would still apply. */
2280 char $ac_func();
2282 int main() {
2284 /* The GNU C library defines this for functions which it implements
2285 to always fail with ENOSYS. Some functions are actually named
2286 something starting with __ and the normal name is an alias. */
2287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2288 choke me
2289 #else
2290 $ac_func();
2291 #endif
2293 ; return 0; }
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2296 rm -rf conftest*
2297 eval "ac_cv_func_$ac_func=yes"
2298 else
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2301 rm -rf conftest*
2302 eval "ac_cv_func_$ac_func=no"
2304 rm -f conftest*
2307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2308 echo "$ac_t""yes" 1>&6
2309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2310 cat >> confdefs.h <<EOF
2311 #define $ac_tr_func 1
2314 else
2315 echo "$ac_t""no" 1>&6
2317 done
2319 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2320 echo "configure:2321: checking for working mmap" >&5
2321 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2323 else
2324 if test "$cross_compiling" = yes; then
2325 ac_cv_func_mmap_fixed_mapped=no
2326 else
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2331 /* Thanks to Mike Haertel and Jim Avera for this test.
2332 Here is a matrix of mmap possibilities:
2333 mmap private not fixed
2334 mmap private fixed at somewhere currently unmapped
2335 mmap private fixed at somewhere already mapped
2336 mmap shared not fixed
2337 mmap shared fixed at somewhere currently unmapped
2338 mmap shared fixed at somewhere already mapped
2339 For private mappings, we should verify that changes cannot be read()
2340 back from the file, nor mmap's back from the file at a different
2341 address. (There have been systems where private was not correctly
2342 implemented like the infamous i386 svr4.0, and systems where the
2343 VM page cache was not coherent with the filesystem buffer cache
2344 like early versions of FreeBSD and possibly contemporary NetBSD.)
2345 For shared mappings, we should conversely verify that changes get
2346 propogated back to all the places they're supposed to be.
2348 Grep wants private fixed already mapped.
2349 The main things grep needs to know about mmap are:
2350 * does it exist and is it safe to write into the mmap'd area
2351 * how to use it (BSD variants) */
2352 #include <sys/types.h>
2353 #include <fcntl.h>
2354 #include <sys/mman.h>
2356 /* This mess was copied from the GNU getpagesize.h. */
2357 #ifndef HAVE_GETPAGESIZE
2358 # ifdef HAVE_UNISTD_H
2359 # include <unistd.h>
2360 # endif
2362 /* Assume that all systems that can run configure have sys/param.h. */
2363 # ifndef HAVE_SYS_PARAM_H
2364 # define HAVE_SYS_PARAM_H 1
2365 # endif
2367 # ifdef _SC_PAGESIZE
2368 # define getpagesize() sysconf(_SC_PAGESIZE)
2369 # else /* no _SC_PAGESIZE */
2370 # ifdef HAVE_SYS_PARAM_H
2371 # include <sys/param.h>
2372 # ifdef EXEC_PAGESIZE
2373 # define getpagesize() EXEC_PAGESIZE
2374 # else /* no EXEC_PAGESIZE */
2375 # ifdef NBPG
2376 # define getpagesize() NBPG * CLSIZE
2377 # ifndef CLSIZE
2378 # define CLSIZE 1
2379 # endif /* no CLSIZE */
2380 # else /* no NBPG */
2381 # ifdef NBPC
2382 # define getpagesize() NBPC
2383 # else /* no NBPC */
2384 # ifdef PAGESIZE
2385 # define getpagesize() PAGESIZE
2386 # endif /* PAGESIZE */
2387 # endif /* no NBPC */
2388 # endif /* no NBPG */
2389 # endif /* no EXEC_PAGESIZE */
2390 # else /* no HAVE_SYS_PARAM_H */
2391 # define getpagesize() 8192 /* punt totally */
2392 # endif /* no HAVE_SYS_PARAM_H */
2393 # endif /* no _SC_PAGESIZE */
2395 #endif /* no HAVE_GETPAGESIZE */
2397 #ifdef __cplusplus
2398 extern "C" { void *malloc(unsigned); }
2399 #else
2400 char *malloc();
2401 #endif
2404 main()
2406 char *data, *data2, *data3;
2407 int i, pagesize;
2408 int fd;
2410 pagesize = getpagesize();
2413 * First, make a file with some known garbage in it.
2415 data = malloc(pagesize);
2416 if (!data)
2417 exit(1);
2418 for (i = 0; i < pagesize; ++i)
2419 *(data + i) = rand();
2420 umask(0);
2421 fd = creat("conftestmmap", 0600);
2422 if (fd < 0)
2423 exit(1);
2424 if (write(fd, data, pagesize) != pagesize)
2425 exit(1);
2426 close(fd);
2429 * Next, try to mmap the file at a fixed address which
2430 * already has something else allocated at it. If we can,
2431 * also make sure that we see the same garbage.
2433 fd = open("conftestmmap", O_RDWR);
2434 if (fd < 0)
2435 exit(1);
2436 data2 = malloc(2 * pagesize);
2437 if (!data2)
2438 exit(1);
2439 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2440 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2441 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2442 exit(1);
2443 for (i = 0; i < pagesize; ++i)
2444 if (*(data + i) != *(data2 + i))
2445 exit(1);
2448 * Finally, make sure that changes to the mapped area
2449 * do not percolate back to the file as seen by read().
2450 * (This is a bug on some variants of i386 svr4.0.)
2452 for (i = 0; i < pagesize; ++i)
2453 *(data2 + i) = *(data2 + i) + 1;
2454 data3 = malloc(pagesize);
2455 if (!data3)
2456 exit(1);
2457 if (read(fd, data3, pagesize) != pagesize)
2458 exit(1);
2459 for (i = 0; i < pagesize; ++i)
2460 if (*(data + i) != *(data3 + i))
2461 exit(1);
2462 close(fd);
2463 unlink("conftestmmap");
2464 exit(0);
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2469 then
2470 ac_cv_func_mmap_fixed_mapped=yes
2471 else
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 rm -fr conftest*
2475 ac_cv_func_mmap_fixed_mapped=no
2477 rm -fr conftest*
2482 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2483 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2484 cat >> confdefs.h <<\EOF
2485 #define HAVE_MMAP 1
2490 saved_libs="$LIBS"
2491 LIBS="$LIBS -lc $LIBM"
2492 for ac_func in fmod strtol getcwd strerror putenv
2494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2495 echo "configure:2496: checking for $ac_func" >&5
2496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2498 else
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 /* System header to define __stub macros and hopefully few prototypes,
2503 which can conflict with char $ac_func(); below. */
2504 #include <assert.h>
2505 /* Override any gcc2 internal prototype to avoid an error. */
2506 /* We use char because int might match the return type of a gcc2
2507 builtin and then its argument prototype would still apply. */
2508 char $ac_func();
2510 int main() {
2512 /* The GNU C library defines this for functions which it implements
2513 to always fail with ENOSYS. Some functions are actually named
2514 something starting with __ and the normal name is an alias. */
2515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2516 choke me
2517 #else
2518 $ac_func();
2519 #endif
2521 ; return 0; }
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2524 rm -rf conftest*
2525 eval "ac_cv_func_$ac_func=yes"
2526 else
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 rm -rf conftest*
2530 eval "ac_cv_func_$ac_func=no"
2532 rm -f conftest*
2535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2538 cat >> confdefs.h <<EOF
2539 #define $ac_tr_func 1
2542 else
2543 echo "$ac_t""no" 1>&6
2544 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2546 done
2549 LIBS="$saved_libs"
2550 for ac_func in rename mkstemp strcasecmp strncasecmp strsep strdup
2552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2553 echo "configure:2554: checking for $ac_func" >&5
2554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2556 else
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $ac_func(); below. */
2562 #include <assert.h>
2563 /* Override any gcc2 internal prototype to avoid an error. */
2564 /* We use char because int might match the return type of a gcc2
2565 builtin and then its argument prototype would still apply. */
2566 char $ac_func();
2568 int main() {
2570 /* The GNU C library defines this for functions which it implements
2571 to always fail with ENOSYS. Some functions are actually named
2572 something starting with __ and the normal name is an alias. */
2573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2574 choke me
2575 #else
2576 $ac_func();
2577 #endif
2579 ; return 0; }
2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2582 rm -rf conftest*
2583 eval "ac_cv_func_$ac_func=yes"
2584 else
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2587 rm -rf conftest*
2588 eval "ac_cv_func_$ac_func=no"
2590 rm -f conftest*
2593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2594 echo "$ac_t""yes" 1>&6
2595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2596 cat >> confdefs.h <<EOF
2597 #define $ac_tr_func 1
2600 else
2601 echo "$ac_t""no" 1>&6
2603 done
2605 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2606 echo "configure:2607: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2607 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2609 else
2610 cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 #include <sys/types.h>
2614 #include <signal.h>
2615 /* NetBSD declares sys_siglist in unistd.h. */
2616 #ifdef HAVE_UNISTD_H
2617 #include <unistd.h>
2618 #endif
2619 int main() {
2620 char *msg = *(sys_siglist + 1);
2621 ; return 0; }
2623 if { (eval echo configure:2624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2624 rm -rf conftest*
2625 ac_cv_decl_sys_siglist=yes
2626 else
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2629 rm -rf conftest*
2630 ac_cv_decl_sys_siglist=no
2632 rm -f conftest*
2635 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2636 if test $ac_cv_decl_sys_siglist = yes; then
2637 cat >> confdefs.h <<\EOF
2638 #define SYS_SIGLIST_DECLARED 1
2644 ac_ext=C
2645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2646 ac_cpp='$CXXCPP $CPPFLAGS'
2647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2649 cross_compiling=$ac_cv_prog_cxx_cross
2651 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2652 echo "configure:2653: checking whether ANSI array delete syntax supported" >&5
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2657 int main() {
2658 char *p = new char[5]; delete [] p;
2659 ; return 0; }
2661 if { (eval echo configure:2662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2662 rm -rf conftest*
2663 echo "$ac_t""yes" 1>&6
2664 else
2665 echo "configure: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2667 rm -rf conftest*
2668 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
2669 #define ARRAY_DELETE_NEEDS_SIZE 1
2673 rm -f conftest*
2674 ac_ext=c
2675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2678 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2679 cross_compiling=$ac_cv_prog_cc_cross
2682 ac_ext=C
2683 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2684 ac_cpp='$CXXCPP $CPPFLAGS'
2685 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2686 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2687 cross_compiling=$ac_cv_prog_cxx_cross
2689 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2690 echo "configure:2691: checking traditional preprocessor" >&5
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 #define name2(a,b) a/**/b
2695 int main() {
2696 int name2(foo,bar);
2697 ; return 0; }
2699 if { (eval echo configure:2700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2700 rm -rf conftest*
2701 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2702 #define TRADITIONAL_CPP 1
2705 else
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2708 rm -rf conftest*
2709 echo "$ac_t""no" 1>&6
2711 rm -f conftest*
2712 ac_ext=c
2713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2717 cross_compiling=$ac_cv_prog_cc_cross
2719 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2720 echo "configure:2721: checking w_coredump" >&5
2721 if test "$cross_compiling" = yes; then
2722 echo "$ac_t""no" 1>&6
2723 else
2724 cat > conftest.$ac_ext <<EOF
2725 #line 2726 "configure"
2726 #include "confdefs.h"
2727 #include <sys/types.h>
2728 #include <sys/wait.h>
2729 main()
2731 #ifdef WCOREFLAG
2732 exit(1);
2733 #else
2734 int i = 0;
2735 ((union wait *)&i)->w_coredump = 1;
2736 exit(i != 0200);
2737 #endif
2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2741 then
2742 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2743 #define WCOREFLAG 0200
2746 else
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2749 rm -fr conftest*
2750 echo "$ac_t""no" 1>&6
2752 rm -fr conftest*
2755 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2756 echo "configure:2757: checking default value for grops -b option" >&5
2757 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
2758 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2760 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2761 echo "configure:2762: checking default paper size" >&5
2762 if test -z "$PAGE"; then
2763 descfile=
2764 if test -r $prefix/share/groff/font/devps/DESC; then
2765 descfile=$prefix/share/groff/font/devps/DESC
2766 elif test -r $prefix/lib/groff/font/devps/DESC; then
2767 descfile=$prefix/lib/groff/font/devps/DESC
2769 if test -n "$descfile" \
2770 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
2771 PAGE=A4
2772 else
2773 PAGE=letter
2776 if test -z "$PAGE"; then
2777 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2778 /etc/resolv.conf 2>/dev/null`
2779 if test -z "$dom"; then
2780 dom=`(domainname) 2>/dev/null | tr -d '+'`
2781 if test -z "$dom"; then
2782 dom=`(hostname) 2>/dev/null | grep '\.'`
2785 # If the top-level domain is two letters and it's not `us' or `ca'
2786 # then they probably use A4 paper.
2787 case "$dom" in
2788 *.[Uu][Ss]|*.[Cc][Aa]) ;;
2789 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
2790 esac
2792 test -n "$PAGE" || PAGE=letter
2793 echo "$ac_t""$PAGE" 1>&6
2795 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2796 echo "configure:2797: checking for existing troff installation" >&5
2797 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
2798 echo "$ac_t""yes" 1>&6
2800 else
2801 echo "$ac_t""no" 1>&6
2805 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2806 echo "configure:2807: checking for prefix of system macro packages" >&5
2807 sys_tmac_prefix=
2808 sys_tmac_file_prefix=
2809 for d in /usr/share/lib/tmac /usr/lib/tmac; do
2810 for t in "" tmac.; do
2811 for m in an s m; do
2812 f=$d/$t$m
2813 if test -z "$sys_tmac_prefix" \
2814 && test -f $f \
2815 && grep '^\.if' $f >/dev/null 2>&1; then
2816 sys_tmac_prefix=$d/$t
2817 sys_tmac_file_prefix=$t
2819 done
2820 done
2821 done
2822 echo "$ac_t""$sys_tmac_prefix" 1>&6
2824 tmac_wrap=
2825 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2826 echo "configure:2827: checking which system macro packages should be made available" >&5
2827 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2828 for f in $sys_tmac_prefix*; do
2829 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2830 case "$suff" in
2831 e) ;;
2833 grep "Copyright.*Free Software Foundation" $f >/dev/null \
2834 || tmac_wrap="$tmac_wrap $suff" ;;
2835 esac
2836 done
2837 elif test -n "$sys_tmac_prefix"; then
2838 files=`echo $sys_tmac_prefix*`
2839 grep "\\.so" $files >conftest.sol
2840 for f in $files; do
2841 case "$f" in
2842 ${sys_tmac_prefix}e) ;;
2843 *.me) ;;
2844 */ms.*) ;;
2846 b=`basename $f`
2847 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
2848 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
2850 else
2851 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2852 case "$suff" in
2853 tmac.*) ;;
2854 *) tmac_wrap="$tmac_wrap $suff" ;;
2855 esac
2857 esac
2858 done
2859 rm -f conftest.sol
2861 echo "$ac_t""$tmac_wrap" 1>&6
2863 $srcdir/mkinstalldirs src/xditview
2864 trap '' 1 2 15
2865 cat > confcache <<\EOF
2866 # This file is a shell script that caches the results of configure
2867 # tests run on this system so they can be shared between configure
2868 # scripts and configure runs. It is not useful on other systems.
2869 # If it contains results you don't want to keep, you may remove or edit it.
2871 # By default, configure uses ./config.cache as the cache file,
2872 # creating it if it does not exist already. You can give configure
2873 # the --cache-file=FILE option to use a different cache file; that is
2874 # what configure does when it calls configure scripts in
2875 # subdirectories, so they share the cache.
2876 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2877 # config.status only pays attention to the cache file if you give it the
2878 # --recheck option to rerun configure.
2881 # The following way of writing the cache mishandles newlines in values,
2882 # but we know of no workaround that is simple, portable, and efficient.
2883 # So, don't put newlines in cache variables' values.
2884 # Ultrix sh set writes to stderr and can't be redirected directly,
2885 # and sets the high bit in the cache file unless we assign to the vars.
2886 (set) 2>&1 |
2887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2888 *ac_space=\ *)
2889 # `set' does not quote correctly, so add quotes (double-quote substitution
2890 # turns \\\\ into \\, and sed turns \\ into \).
2891 sed -n \
2892 -e "s/'/'\\\\''/g" \
2893 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2896 # `set' quotes correctly as required by POSIX, so do not add quotes.
2897 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2899 esac >> confcache
2900 if cmp -s $cache_file confcache; then
2902 else
2903 if test -w $cache_file; then
2904 echo "updating cache $cache_file"
2905 cat confcache > $cache_file
2906 else
2907 echo "not updating unwritable cache $cache_file"
2910 rm -f confcache
2912 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2914 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2915 # Let make expand exec_prefix.
2916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2918 # Any assignment to VPATH causes Sun make to only execute
2919 # the first set of double-colon rules, so remove it if not needed.
2920 # If there is a colon in the path, we need to keep it.
2921 if test "x$srcdir" = x.; then
2922 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2925 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2927 # Transform confdefs.h into DEFS.
2928 # Protect against shell expansion while executing Makefile rules.
2929 # Protect against Makefile macro expansion.
2930 cat > conftest.defs <<\EOF
2931 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2932 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2933 s%\[%\\&%g
2934 s%\]%\\&%g
2935 s%\$%$$%g
2937 if test "$groff_cv_os390" = "yes"; then
2938 DEFS=`sed -f conftest.defs confdefs.h | tr '\n' ' '`
2939 else
2940 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2942 rm -f conftest.defs
2945 # Without the "./", some shells look in PATH for config.status.
2946 : ${CONFIG_STATUS=./config.status}
2948 echo creating $CONFIG_STATUS
2949 rm -f $CONFIG_STATUS
2950 cat > $CONFIG_STATUS <<EOF
2951 #! /bin/sh
2952 # Generated automatically by configure.
2953 # Run this file to recreate the current configuration.
2954 # This directory was configured as follows,
2955 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2957 # $0 $ac_configure_args
2959 # Compiler output produced by configure, useful for debugging
2960 # configure, is in ./config.log if it exists.
2962 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2963 for ac_option
2965 case "\$ac_option" in
2966 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2967 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2968 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2969 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2970 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2971 exit 0 ;;
2972 -help | --help | --hel | --he | --h)
2973 echo "\$ac_cs_usage"; exit 0 ;;
2974 *) echo "\$ac_cs_usage"; exit 1 ;;
2975 esac
2976 done
2978 ac_given_srcdir=$srcdir
2979 ac_given_INSTALL="$INSTALL"
2981 trap 'rm -fr `echo "Makefile src/xditview/Imakefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2983 cat >> $CONFIG_STATUS <<EOF
2985 # Protect against being on the right side of a sed subst in config.status.
2986 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2987 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2988 $ac_vpsub
2989 $extrasub
2990 s%@SHELL@%$SHELL%g
2991 s%@CFLAGS@%$CFLAGS%g
2992 s%@CPPFLAGS@%$CPPFLAGS%g
2993 s%@CXXFLAGS@%$CXXFLAGS%g
2994 s%@FFLAGS@%$FFLAGS%g
2995 s%@DEFS@%$DEFS%g
2996 s%@LDFLAGS@%$LDFLAGS%g
2997 s%@LIBS@%$LIBS%g
2998 s%@exec_prefix@%$exec_prefix%g
2999 s%@prefix@%$prefix%g
3000 s%@program_transform_name@%$program_transform_name%g
3001 s%@bindir@%$bindir%g
3002 s%@sbindir@%$sbindir%g
3003 s%@libexecdir@%$libexecdir%g
3004 s%@datadir@%$datadir%g
3005 s%@sysconfdir@%$sysconfdir%g
3006 s%@sharedstatedir@%$sharedstatedir%g
3007 s%@localstatedir@%$localstatedir%g
3008 s%@libdir@%$libdir%g
3009 s%@includedir@%$includedir%g
3010 s%@oldincludedir@%$oldincludedir%g
3011 s%@infodir@%$infodir%g
3012 s%@mandir@%$mandir%g
3013 s%@top_builddir@%$top_builddir%g
3014 s%@CC@%$CC%g
3015 s%@CXX@%$CXX%g
3016 s%@TTYDEVDIRS@%$TTYDEVDIRS%g
3017 s%@LPR@%$LPR%g
3018 s%@LP@%$LP%g
3019 s%@LPQ@%$LPQ%g
3020 s%@PSPRINT@%$PSPRINT%g
3021 s%@DVIPRINT@%$DVIPRINT%g
3022 s%@PERLPATH@%$PERLPATH%g
3023 s%@YACC@%$YACC%g
3024 s%@RANLIB@%$RANLIB%g
3025 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3026 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3027 s%@INSTALL_DATA@%$INSTALL_DATA%g
3028 s%@LN_S@%$LN_S%g
3029 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
3030 s%@CPP@%$CPP%g
3031 s%@LIBM@%$LIBM%g
3032 s%@LIBOBJS@%$LIBOBJS%g
3033 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
3034 s%@PAGE@%$PAGE%g
3035 s%@g@%$g%g
3036 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
3037 s%@tmac_wrap@%$tmac_wrap%g
3039 CEOF
3042 cat >> $CONFIG_STATUS <<\EOF
3044 # Split the substitutions into bite-sized pieces for seds with
3045 # small command number limits, like on Digital OSF/1 and HP-UX.
3046 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3047 ac_file=1 # Number of current file.
3048 ac_beg=1 # First line for current file.
3049 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3050 ac_more_lines=:
3051 ac_sed_cmds=""
3052 while $ac_more_lines; do
3053 if test $ac_beg -gt 1; then
3054 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3055 else
3056 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3058 if test ! -s conftest.s$ac_file; then
3059 ac_more_lines=false
3060 rm -f conftest.s$ac_file
3061 else
3062 if test -z "$ac_sed_cmds"; then
3063 ac_sed_cmds="sed -f conftest.s$ac_file"
3064 else
3065 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3067 ac_file=`expr $ac_file + 1`
3068 ac_beg=$ac_end
3069 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3071 done
3072 if test -z "$ac_sed_cmds"; then
3073 ac_sed_cmds=cat
3077 cat >> $CONFIG_STATUS <<EOF
3079 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/xditview/Imakefile"}
3081 cat >> $CONFIG_STATUS <<\EOF
3082 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3083 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3084 case "$ac_file" in
3085 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3086 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3087 *) ac_file_in="${ac_file}.in" ;;
3088 esac
3090 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3092 # Remove last slash and all that follows it. Not all systems have dirname.
3093 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3094 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3095 # The file is in a subdirectory.
3096 test ! -d "$ac_dir" && mkdir "$ac_dir"
3097 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3098 # A "../" for each directory in $ac_dir_suffix.
3099 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3100 else
3101 ac_dir_suffix= ac_dots=
3104 case "$ac_given_srcdir" in
3105 .) srcdir=.
3106 if test -z "$ac_dots"; then top_srcdir=.
3107 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3108 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3109 *) # Relative path.
3110 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3111 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3112 esac
3114 case "$ac_given_INSTALL" in
3115 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3116 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3117 esac
3119 echo creating "$ac_file"
3120 rm -f "$ac_file"
3121 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3122 case "$ac_file" in
3123 *Makefile*) ac_comsub="1i\\
3124 # $configure_input" ;;
3125 *) ac_comsub= ;;
3126 esac
3128 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3129 sed -e "$ac_comsub
3130 s%@configure_input@%$configure_input%g
3131 s%@srcdir@%$srcdir%g
3132 s%@top_srcdir@%$top_srcdir%g
3133 s%@INSTALL@%$INSTALL%g
3134 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3135 fi; done
3136 rm -f conftest.s*
3139 cat >> $CONFIG_STATUS <<EOF
3142 cat >> $CONFIG_STATUS <<\EOF
3144 exit 0
3146 chmod +x $CONFIG_STATUS
3147 rm -fr confdefs* $ac_clean_files
3148 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1