* src/libs/libgroff/illegal.c: Added EBCDIC table.
[s-roff.git] / configure
blobef625c45e95395f64c9889f11b7bc73d77731d0d
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=
897 ac_ext=C
898 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
899 ac_cpp='$CXXCPP $CPPFLAGS'
900 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
901 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
902 cross_compiling=$ac_cv_prog_cxx_cross
904 if test "$cross_compiling" = no; then
905 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6
906 echo "configure:907: checking that C++ compiler can compile simple program" >&5
908 if test "$cross_compiling" = yes; then
910 else
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
914 #ifdef __cplusplus
915 extern "C" void exit(int);
916 #endif
917 int main() { return 0; }
919 if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
920 then
921 echo "$ac_t""yes" 1>&6
922 else
923 echo "configure: failed program was:" >&5
924 cat conftest.$ac_ext >&5
925 rm -fr conftest*
926 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
928 rm -fr conftest*
931 if test "$cross_compiling" = no; then
932 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6
933 echo "configure:934: checking that C++ static constructors and destructors are called" >&5
935 if test "$cross_compiling" = yes; then
937 else
938 cat > conftest.$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
941 #ifdef __cplusplus
942 extern "C" void exit(int);
943 #endif
945 extern "C" {
946 void _exit(int);
948 int i;
949 struct A {
950 char dummy;
951 A() { i = 1; }
952 ~A() { if (i == 1) _exit(0); }
954 A a;
955 int main() { return 1; }
958 if { (eval echo configure:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
959 then
960 echo "$ac_t""yes" 1>&6
961 else
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 rm -fr conftest*
965 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
967 rm -fr conftest*
970 echo $ac_n "checking that header files support C++""... $ac_c" 1>&6
971 echo "configure:972: checking that header files support C++" >&5
972 cat > conftest.$ac_ext <<EOF
973 #line 974 "configure"
974 #include "confdefs.h"
975 #include <stdio.h>
976 int main() {
977 fopen(0, 0);
978 ; return 0; }
980 if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
981 rm -rf conftest*
982 echo "$ac_t""yes" 1>&6
983 else
984 echo "configure: failed program was:" >&5
985 cat conftest.$ac_ext >&5
986 rm -rf conftest*
987 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; }
989 rm -f conftest*
990 ac_ext=c
991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992 ac_cpp='$CPP $CPPFLAGS'
993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995 cross_compiling=$ac_cv_prog_cc_cross
997 echo $ac_n "checking whether character set is EBCDIC""... $ac_c" 1>&6
998 echo "configure:999: checking whether character set is EBCDIC" >&5
999 cat > conftest.$ac_ext <<EOF
1000 #line 1001 "configure"
1001 #include "confdefs.h"
1003 int main() {
1004 /* Treat any failure as ASCII for compatibility with existing art.
1005 Use compile-time rather than run-time tests for cross-compiler
1006 tolerance. */
1007 #if '0' != 240
1008 make an error "Character set is not EBCDIC"
1009 #endif
1010 ; return 0; }
1012 if { (eval echo configure:1013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1013 rm -rf conftest*
1014 groff_cv_ebcdic="yes";echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1015 #define IS_EBCDIC_HOST 1
1018 else
1019 echo "configure: failed program was:" >&5
1020 cat conftest.$ac_ext >&5
1021 rm -rf conftest*
1022 groff_cv_ebcdic="no";echo "$ac_t""no" 1>&6
1024 rm -f conftest*
1025 groff_cv_os390="no"
1026 if test "$groff_cv_ebcdic" = "yes"; then
1027 echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6
1028 echo "configure:1029: checking for OS/390 Unix" >&5
1029 case `uname` in
1030 OS/390)
1031 CFLAGS="$CFLAGS -D_ALL_SOURCE -D_X_OPEN_SOURCE_EXTENDED=1"
1032 groff_cv_os390="yes"
1033 echo "$ac_t""yes" 1>&6 ;;
1035 echo "$ac_t""no" 1>&6 ;;
1036 esac
1038 if test -z "$PSPRINT"; then
1039 for ac_prog in lpr
1041 # Extract the first word of "$ac_prog", so it can be a program name with args.
1042 set dummy $ac_prog; ac_word=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1047 else
1048 if test -n "$LPR"; then
1049 ac_cv_prog_LPR="$LPR" # Let the user override the test.
1050 else
1051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1052 ac_dummy="$PATH"
1053 for ac_dir in $ac_dummy; do
1054 test -z "$ac_dir" && ac_dir=.
1055 if test -f $ac_dir/$ac_word; then
1056 ac_cv_prog_LPR="$ac_prog"
1057 break
1059 done
1060 IFS="$ac_save_ifs"
1063 LPR="$ac_cv_prog_LPR"
1064 if test -n "$LPR"; then
1065 echo "$ac_t""$LPR" 1>&6
1066 else
1067 echo "$ac_t""no" 1>&6
1070 test -n "$LPR" && break
1071 done
1073 for ac_prog in lp
1075 # Extract the first word of "$ac_prog", so it can be a program name with args.
1076 set dummy $ac_prog; ac_word=$2
1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1078 echo "configure:1079: checking for $ac_word" >&5
1079 if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1081 else
1082 if test -n "$LP"; then
1083 ac_cv_prog_LP="$LP" # Let the user override the test.
1084 else
1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1086 ac_dummy="$PATH"
1087 for ac_dir in $ac_dummy; do
1088 test -z "$ac_dir" && ac_dir=.
1089 if test -f $ac_dir/$ac_word; then
1090 ac_cv_prog_LP="$ac_prog"
1091 break
1093 done
1094 IFS="$ac_save_ifs"
1097 LP="$ac_cv_prog_LP"
1098 if test -n "$LP"; then
1099 echo "$ac_t""$LP" 1>&6
1100 else
1101 echo "$ac_t""no" 1>&6
1104 test -n "$LP" && break
1105 done
1107 if test -n "$LPR" && test -n "$LP"; then
1108 # HP-UX provides an lpr command that emulates lpr using lp,
1109 # but it doesn't have lpq; in this case we want to use lp
1110 # rather than lpr.
1111 for ac_prog in lpq
1113 # Extract the first word of "$ac_prog", so it can be a program name with args.
1114 set dummy $ac_prog; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120 if test -n "$LPQ"; then
1121 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
1122 else
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1124 ac_dummy="$PATH"
1125 for ac_dir in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_LPQ="$ac_prog"
1129 break
1131 done
1132 IFS="$ac_save_ifs"
1135 LPQ="$ac_cv_prog_LPQ"
1136 if test -n "$LPQ"; then
1137 echo "$ac_t""$LPQ" 1>&6
1138 else
1139 echo "$ac_t""no" 1>&6
1142 test -n "$LPQ" && break
1143 done
1145 test -n "$LPQ" || LPR=
1147 if test -n "$LPR"; then
1148 PSPRINT="$LPR"
1149 elif test -n "$LP"; then
1150 PSPRINT="$LP"
1154 echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6
1155 echo "configure:1156: checking for command to use for printing PostScript files" >&5
1156 echo "$ac_t""$PSPRINT" 1>&6
1157 # Figure out DVIPRINT from PSPRINT.
1158 echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6
1159 echo "configure:1160: checking for command to use for printing dvi files" >&5
1160 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
1161 if test "X$PSPRINT" = "Xlpr"; then
1162 DVIPRINT="lpr -d"
1163 else
1164 DVIPRINT="$PSPRINT"
1168 echo "$ac_t""$DVIPRINT" 1>&6
1169 # Extract the first word of "perl", so it can be a program name with args.
1170 set dummy perl; ac_word=$2
1171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 echo "configure:1173: checking for $ac_word" >&5
1173 if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175 else
1176 case "$PERLPATH" in
1178 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
1180 ?:/*)
1181 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a dos path.
1184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1185 ac_dummy="$PATH"
1186 for ac_dir in $ac_dummy; do
1187 test -z "$ac_dir" && ac_dir=.
1188 if test -f $ac_dir/$ac_word; then
1189 ac_cv_path_PERLPATH="$ac_dir/$ac_word"
1190 break
1192 done
1193 IFS="$ac_save_ifs"
1194 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
1196 esac
1198 PERLPATH="$ac_cv_path_PERLPATH"
1199 if test -n "$PERLPATH"; then
1200 echo "$ac_t""$PERLPATH" 1>&6
1201 else
1202 echo "$ac_t""no" 1>&6
1205 for ac_prog in byacc 'bison -y'
1207 # Extract the first word of "$ac_prog", so it can be a program name with args.
1208 set dummy $ac_prog; ac_word=$2
1209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_word" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214 if test -n "$YACC"; then
1215 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1216 else
1217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1218 ac_dummy="$PATH"
1219 for ac_dir in $ac_dummy; do
1220 test -z "$ac_dir" && ac_dir=.
1221 if test -f $ac_dir/$ac_word; then
1222 ac_cv_prog_YACC="$ac_prog"
1223 break
1225 done
1226 IFS="$ac_save_ifs"
1229 YACC="$ac_cv_prog_YACC"
1230 if test -n "$YACC"; then
1231 echo "$ac_t""$YACC" 1>&6
1232 else
1233 echo "$ac_t""no" 1>&6
1236 test -n "$YACC" && break
1237 done
1238 test -n "$YACC" || YACC="yacc"
1240 # Extract the first word of "ranlib", so it can be a program name with args.
1241 set dummy ranlib; ac_word=$2
1242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_word" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247 if test -n "$RANLIB"; then
1248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1249 else
1250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1251 ac_dummy="$PATH"
1252 for ac_dir in $ac_dummy; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if test -f $ac_dir/$ac_word; then
1255 ac_cv_prog_RANLIB="ranlib"
1256 break
1258 done
1259 IFS="$ac_save_ifs"
1260 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1263 RANLIB="$ac_cv_prog_RANLIB"
1264 if test -n "$RANLIB"; then
1265 echo "$ac_t""$RANLIB" 1>&6
1266 else
1267 echo "$ac_t""no" 1>&6
1270 ac_aux_dir=
1271 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1272 if test -f $ac_dir/install-sh; then
1273 ac_aux_dir=$ac_dir
1274 ac_install_sh="$ac_aux_dir/install-sh -c"
1275 break
1276 elif 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
1281 done
1282 if test -z "$ac_aux_dir"; then
1283 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1285 ac_config_guess=$ac_aux_dir/config.guess
1286 ac_config_sub=$ac_aux_dir/config.sub
1287 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1289 ac_dir=`cd $ac_aux_dir; pwd`
1290 ac_install_sh="$ac_dir/install-sh -c"
1291 # Find a good install program. We prefer a C program (faster),
1292 # so one script is as good as another. But avoid the broken or
1293 # incompatible versions:
1294 # SysV /etc/install, /usr/sbin/install
1295 # SunOS /usr/etc/install
1296 # IRIX /sbin/install
1297 # AIX /bin/install
1298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1301 # ./install, which can be erroneously created by make from ./install.sh.
1302 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1303 echo "configure:1304: checking for a BSD compatible install" >&5
1304 if test -z "$INSTALL"; then
1305 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1309 for ac_dir in $PATH; do
1310 # Account for people who put trailing slashes in PATH elements.
1311 case "$ac_dir/" in
1312 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1314 # OSF1 and SCO ODT 3.0 have their own names for install.
1315 # Don't use installbsd from OSF since it installs stuff as root
1316 # by default.
1317 for ac_prog in ginstall scoinst install; do
1318 if test -f $ac_dir/$ac_prog; then
1319 if test $ac_prog = install &&
1320 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1321 # AIX install. It has an incompatible calling convention.
1323 else
1324 ac_cv_path_install="$ac_dir/$ac_prog -c"
1325 break 2
1328 done
1330 esac
1331 done
1332 IFS="$ac_save_IFS"
1335 if test "${ac_cv_path_install+set}" = set; then
1336 INSTALL="$ac_cv_path_install"
1337 else
1338 # As a last resort, use the slow shell script. We don't cache a
1339 # path for INSTALL within a source directory, because that will
1340 # break other packages using the cache if that directory is
1341 # removed, or if the path is relative.
1342 INSTALL="$ac_install_sh"
1345 echo "$ac_t""$INSTALL" 1>&6
1347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1348 # It thinks the first close brace ends the variable substitution.
1349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1353 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1355 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether ln -s works" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1359 else
1360 rm -f conftestdata
1361 if ln -s X conftestdata 2>/dev/null
1362 then
1363 rm -f conftestdata
1364 ac_cv_prog_LN_S="ln -s"
1365 else
1366 ac_cv_prog_LN_S=ln
1369 LN_S="$ac_cv_prog_LN_S"
1370 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1371 echo "$ac_t""yes" 1>&6
1372 else
1373 echo "$ac_t""no" 1>&6
1376 echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6
1377 echo "configure:1378: checking for csh hash hack" >&5
1378 cat <<EOF >conftest.sh
1379 #!/bin/sh
1380 true || exit 0
1381 export PATH || exit 0
1382 exit 1
1384 chmod +x conftest.sh
1385 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
1386 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
1387 else
1388 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD=''
1390 rm -f conftest.sh
1392 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1393 echo "configure:1394: checking how to run the C preprocessor" >&5
1394 # On Suns, sometimes $CPP names a directory.
1395 if test -n "$CPP" && test -d "$CPP"; then
1396 CPP=
1398 if test -z "$CPP"; then
1399 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401 else
1402 # This must be in double quotes, not single quotes, because CPP may get
1403 # substituted into the Makefile and "${CC-cc}" will confuse make.
1404 CPP="${CC-cc} -E"
1405 # On the NeXT, cc -E runs the code through the compiler's parser,
1406 # not just through cpp.
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1410 #include <assert.h>
1411 Syntax Error
1413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1414 { (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1416 if test -z "$ac_err"; then
1418 else
1419 echo "$ac_err" >&5
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1422 rm -rf conftest*
1423 CPP="${CC-cc} -E -traditional-cpp"
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1427 #include <assert.h>
1428 Syntax Error
1430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1431 { (eval echo configure:1432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1433 if test -z "$ac_err"; then
1435 else
1436 echo "$ac_err" >&5
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1439 rm -rf conftest*
1440 CPP="${CC-cc} -nologo -E"
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 #include <assert.h>
1445 Syntax Error
1447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1448 { (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1450 if test -z "$ac_err"; then
1452 else
1453 echo "$ac_err" >&5
1454 echo "configure: failed program was:" >&5
1455 cat conftest.$ac_ext >&5
1456 rm -rf conftest*
1457 CPP=/lib/cpp
1459 rm -f conftest*
1461 rm -f conftest*
1463 rm -f conftest*
1464 ac_cv_prog_CPP="$CPP"
1466 CPP="$ac_cv_prog_CPP"
1467 else
1468 ac_cv_prog_CPP="$CPP"
1470 echo "$ac_t""$CPP" 1>&6
1472 for ac_hdr in unistd.h dirent.h limits.h sys/dir.h stdlib.h
1474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1476 echo "configure:1477: checking for $ac_hdr" >&5
1477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 #include <$ac_hdr>
1485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1486 { (eval echo configure:1487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1488 if test -z "$ac_err"; then
1489 rm -rf conftest*
1490 eval "ac_cv_header_$ac_safe=yes"
1491 else
1492 echo "$ac_err" >&5
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 rm -rf conftest*
1496 eval "ac_cv_header_$ac_safe=no"
1498 rm -f conftest*
1500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1501 echo "$ac_t""yes" 1>&6
1502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1503 cat >> confdefs.h <<EOF
1504 #define $ac_tr_hdr 1
1507 else
1508 echo "$ac_t""no" 1>&6
1510 done
1512 echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6
1513 echo "configure:1514: checking for ISC 3.x or 4.x" >&5
1514 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
1515 then
1516 echo "$ac_t""yes" 1>&6
1517 cat >> confdefs.h <<\EOF
1518 #define _SYSV3 1
1521 else
1522 echo "$ac_t""no" 1>&6
1524 echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6
1525 echo "configure:1526: checking whether -D_POSIX_SOURCE is necessary" >&5
1527 ac_ext=C
1528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1529 ac_cpp='$CXXCPP $CPPFLAGS'
1530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1531 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1532 cross_compiling=$ac_cv_prog_cxx_cross
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 #include <stdio.h>
1538 extern "C" { void fileno(int); }
1539 int main() {
1541 ; return 0; }
1543 if { (eval echo configure:1544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1544 rm -rf conftest*
1545 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1546 #define _POSIX_SOURCE 1
1549 else
1550 echo "configure: failed program was:" >&5
1551 cat conftest.$ac_ext >&5
1552 rm -rf conftest*
1553 echo "$ac_t""no" 1>&6
1555 rm -f conftest*
1556 ac_ext=c
1557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1558 ac_cpp='$CPP $CPPFLAGS'
1559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1561 cross_compiling=$ac_cv_prog_cc_cross
1564 ac_ext=C
1565 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1566 ac_cpp='$CXXCPP $CPPFLAGS'
1567 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1568 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1569 cross_compiling=$ac_cv_prog_cxx_cross
1571 echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6
1572 echo "configure:1573: checking declaration of putenv" >&5
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1576 #include <stdlib.h>
1577 extern "C" { void putenv(int); }
1578 int main() {
1580 ; return 0; }
1582 if { (eval echo configure:1583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1583 rm -rf conftest*
1584 echo "$ac_t""no" 1>&6
1585 else
1586 echo "configure: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1588 rm -rf conftest*
1589 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1590 #define STDLIB_H_DECLARES_PUTENV 1
1594 rm -f conftest*
1595 ac_ext=c
1596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1597 ac_cpp='$CPP $CPPFLAGS'
1598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1600 cross_compiling=$ac_cv_prog_cc_cross
1603 ac_ext=C
1604 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1605 ac_cpp='$CXXCPP $CPPFLAGS'
1606 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1607 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1608 cross_compiling=$ac_cv_prog_cxx_cross
1610 echo $ac_n "checking declaration of popen""... $ac_c" 1>&6
1611 echo "configure:1612: checking declaration of popen" >&5
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 #include <stdio.h>
1616 extern "C" { void popen(int); }
1617 int main() {
1619 ; return 0; }
1621 if { (eval echo configure:1622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1622 rm -rf conftest*
1623 echo "$ac_t""no" 1>&6
1624 else
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 rm -rf conftest*
1628 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1629 #define STDIO_H_DECLARES_POPEN 1
1633 rm -f conftest*
1634 ac_ext=c
1635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1636 ac_cpp='$CPP $CPPFLAGS'
1637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1639 cross_compiling=$ac_cv_prog_cc_cross
1642 ac_ext=C
1643 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1644 ac_cpp='$CXXCPP $CPPFLAGS'
1645 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1646 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1647 cross_compiling=$ac_cv_prog_cxx_cross
1649 echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6
1650 echo "configure:1651: checking declaration of pclose" >&5
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1654 #include <stdio.h>
1655 extern "C" { void pclose(int); }
1656 int main() {
1658 ; return 0; }
1660 if { (eval echo configure:1661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1661 rm -rf conftest*
1662 echo "$ac_t""no" 1>&6
1663 else
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 rm -rf conftest*
1667 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1668 #define STDIO_H_DECLARES_PCLOSE 1
1672 rm -f conftest*
1673 ac_ext=c
1674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1675 ac_cpp='$CPP $CPPFLAGS'
1676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1678 cross_compiling=$ac_cv_prog_cc_cross
1681 ac_ext=C
1682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1683 ac_cpp='$CXXCPP $CPPFLAGS'
1684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1686 cross_compiling=$ac_cv_prog_cxx_cross
1688 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1689 echo "configure:1690: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1690 cat > conftest.$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1693 #include <errno.h>
1694 #include <stdio.h>
1695 int main() {
1696 int k; k = sys_nerr;
1697 ; return 0; }
1699 if { (eval echo configure:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1700 rm -rf conftest*
1701 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1702 #define HAVE_SYS_NERR 1
1705 else
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1708 rm -rf conftest*
1709 echo "$ac_t""no" 1>&6
1711 rm -f conftest*
1712 ac_ext=c
1713 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1714 ac_cpp='$CPP $CPPFLAGS'
1715 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1716 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1717 cross_compiling=$ac_cv_prog_cc_cross
1720 ac_ext=C
1721 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1722 ac_cpp='$CXXCPP $CPPFLAGS'
1723 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1724 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1725 cross_compiling=$ac_cv_prog_cxx_cross
1727 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1728 echo "configure:1729: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1732 #include <errno.h>
1733 #include <stdio.h>
1734 int main() {
1735 int k; k = (int)sys_errlist[0];
1736 ; return 0; }
1738 if { (eval echo configure:1739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1739 rm -rf conftest*
1740 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1741 #define HAVE_SYS_ERRLIST 1
1744 else
1745 echo "configure: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1747 rm -rf conftest*
1748 echo "$ac_t""no" 1>&6
1750 rm -f conftest*
1751 ac_ext=c
1752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1756 cross_compiling=$ac_cv_prog_cc_cross
1759 ac_ext=C
1760 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1761 ac_cpp='$CXXCPP $CPPFLAGS'
1762 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1763 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1764 cross_compiling=$ac_cv_prog_cxx_cross
1766 echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6
1767 echo "configure:1768: checking declaration of hypot" >&5
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 #include <math.h>
1772 extern "C" { double hypot(double,double); }
1773 int main() {
1775 ; return 0; }
1777 if { (eval echo configure:1778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1778 rm -rf conftest*
1779 echo "$ac_t""no" 1>&6
1780 else
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1783 rm -rf conftest*
1784 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1785 #define MATH_H_DECLARES_HYPOT 1
1789 rm -f conftest*
1790 ac_ext=c
1791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1792 ac_cpp='$CPP $CPPFLAGS'
1793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1794 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1795 cross_compiling=$ac_cv_prog_cc_cross
1798 ac_ext=C
1799 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1800 ac_cpp='$CXXCPP $CPPFLAGS'
1801 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1802 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1803 cross_compiling=$ac_cv_prog_cxx_cross
1805 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
1806 echo "configure:1807: checking C++ <osfcn.h>" >&5
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 #include <osfcn.h>
1811 int main() {
1812 read(0, 0, 0); open(0, 0);
1813 ; return 0; }
1815 if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1816 rm -rf conftest*
1817 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1818 #define HAVE_CC_OSFCN_H 1
1821 else
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1824 rm -rf conftest*
1825 echo "$ac_t""no" 1>&6
1827 rm -f conftest*
1828 ac_ext=c
1829 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1830 ac_cpp='$CPP $CPPFLAGS'
1831 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1832 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1833 cross_compiling=$ac_cv_prog_cc_cross
1836 ac_ext=C
1837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1838 ac_cpp='$CXXCPP $CPPFLAGS'
1839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1841 cross_compiling=$ac_cv_prog_cxx_cross
1843 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
1844 echo "configure:1845: checking C++ <limits.h>" >&5
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 #include <limits.h>
1849 int main() {
1850 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1851 ; return 0; }
1853 if { (eval echo configure:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1854 rm -rf conftest*
1855 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1856 #define HAVE_CC_LIMITS_H 1
1859 else
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1862 rm -rf conftest*
1863 echo "$ac_t""no" 1>&6
1865 rm -f conftest*
1866 ac_ext=c
1867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1868 ac_cpp='$CPP $CPPFLAGS'
1869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1871 cross_compiling=$ac_cv_prog_cc_cross
1874 ac_ext=C
1875 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1876 ac_cpp='$CXXCPP $CPPFLAGS'
1877 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1878 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1879 cross_compiling=$ac_cv_prog_cxx_cross
1881 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
1882 echo "configure:1883: checking for declaration of time_t" >&5
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 #include <time.h>
1887 int main() {
1888 time_t t = time(0); struct tm *p = localtime(&t);
1889 ; return 0; }
1891 if { (eval echo configure:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1892 rm -rf conftest*
1893 echo "$ac_t""yes" 1>&6
1894 else
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 rm -rf conftest*
1898 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
1899 #define LONG_FOR_TIME_T 1
1903 rm -f conftest*
1904 ac_ext=c
1905 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1908 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1909 cross_compiling=$ac_cv_prog_cc_cross
1911 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1912 echo "configure:1913: checking return type of signal handlers" >&5
1913 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919 #include <sys/types.h>
1920 #include <signal.h>
1921 #ifdef signal
1922 #undef signal
1923 #endif
1924 #ifdef __cplusplus
1925 extern "C" void (*signal (int, void (*)(int)))(int);
1926 #else
1927 void (*signal ()) ();
1928 #endif
1930 int main() {
1931 int i;
1932 ; return 0; }
1934 if { (eval echo configure:1935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1935 rm -rf conftest*
1936 ac_cv_type_signal=void
1937 else
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1940 rm -rf conftest*
1941 ac_cv_type_signal=int
1943 rm -f conftest*
1946 echo "$ac_t""$ac_cv_type_signal" 1>&6
1947 cat >> confdefs.h <<EOF
1948 #define RETSIGTYPE $ac_cv_type_signal
1952 echo $ac_n "checking struct exception""... $ac_c" 1>&6
1953 echo "configure:1954: checking struct exception" >&5
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1957 #include <math.h>
1958 int main() {
1959 struct exception e;
1960 ; return 0; }
1962 if { (eval echo configure:1963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1963 rm -rf conftest*
1964 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1965 #define HAVE_STRUCT_EXCEPTION 1
1968 else
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1971 rm -rf conftest*
1972 echo "$ac_t""no" 1>&6
1974 rm -f conftest*
1975 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1976 echo "configure:1977: checking for sin in -lm" >&5
1977 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1980 else
1981 ac_save_LIBS="$LIBS"
1982 LIBS="-lm $LIBS"
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1989 char sin();
1991 int main() {
1992 sin()
1993 ; return 0; }
1995 if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1996 rm -rf conftest*
1997 eval "ac_cv_lib_$ac_lib_var=yes"
1998 else
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2001 rm -rf conftest*
2002 eval "ac_cv_lib_$ac_lib_var=no"
2004 rm -f conftest*
2005 LIBS="$ac_save_LIBS"
2008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 LIBM=-lm
2011 else
2012 echo "$ac_t""no" 1>&6
2016 for ac_hdr in unistd.h
2018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_hdr" >&5
2021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2023 else
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2027 #include <$ac_hdr>
2029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2030 { (eval echo configure:2031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2032 if test -z "$ac_err"; then
2033 rm -rf conftest*
2034 eval "ac_cv_header_$ac_safe=yes"
2035 else
2036 echo "$ac_err" >&5
2037 echo "configure: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2039 rm -rf conftest*
2040 eval "ac_cv_header_$ac_safe=no"
2042 rm -f conftest*
2044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2045 echo "$ac_t""yes" 1>&6
2046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2047 cat >> confdefs.h <<EOF
2048 #define $ac_tr_hdr 1
2051 else
2052 echo "$ac_t""no" 1>&6
2054 done
2056 for ac_func in getpagesize
2058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_func" >&5
2060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $ac_func(); below. */
2068 #include <assert.h>
2069 /* Override any gcc2 internal prototype to avoid an error. */
2070 /* We use char because int might match the return type of a gcc2
2071 builtin and then its argument prototype would still apply. */
2072 char $ac_func();
2074 int main() {
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2080 choke me
2081 #else
2082 $ac_func();
2083 #endif
2085 ; return 0; }
2087 if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2088 rm -rf conftest*
2089 eval "ac_cv_func_$ac_func=yes"
2090 else
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 rm -rf conftest*
2094 eval "ac_cv_func_$ac_func=no"
2096 rm -f conftest*
2099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2100 echo "$ac_t""yes" 1>&6
2101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2102 cat >> confdefs.h <<EOF
2103 #define $ac_tr_func 1
2106 else
2107 echo "$ac_t""no" 1>&6
2109 done
2111 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2112 echo "configure:2113: checking for working mmap" >&5
2113 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2115 else
2116 if test "$cross_compiling" = yes; then
2117 ac_cv_func_mmap_fixed_mapped=no
2118 else
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2123 /* Thanks to Mike Haertel and Jim Avera for this test.
2124 Here is a matrix of mmap possibilities:
2125 mmap private not fixed
2126 mmap private fixed at somewhere currently unmapped
2127 mmap private fixed at somewhere already mapped
2128 mmap shared not fixed
2129 mmap shared fixed at somewhere currently unmapped
2130 mmap shared fixed at somewhere already mapped
2131 For private mappings, we should verify that changes cannot be read()
2132 back from the file, nor mmap's back from the file at a different
2133 address. (There have been systems where private was not correctly
2134 implemented like the infamous i386 svr4.0, and systems where the
2135 VM page cache was not coherent with the filesystem buffer cache
2136 like early versions of FreeBSD and possibly contemporary NetBSD.)
2137 For shared mappings, we should conversely verify that changes get
2138 propogated back to all the places they're supposed to be.
2140 Grep wants private fixed already mapped.
2141 The main things grep needs to know about mmap are:
2142 * does it exist and is it safe to write into the mmap'd area
2143 * how to use it (BSD variants) */
2144 #include <sys/types.h>
2145 #include <fcntl.h>
2146 #include <sys/mman.h>
2148 /* This mess was copied from the GNU getpagesize.h. */
2149 #ifndef HAVE_GETPAGESIZE
2150 # ifdef HAVE_UNISTD_H
2151 # include <unistd.h>
2152 # endif
2154 /* Assume that all systems that can run configure have sys/param.h. */
2155 # ifndef HAVE_SYS_PARAM_H
2156 # define HAVE_SYS_PARAM_H 1
2157 # endif
2159 # ifdef _SC_PAGESIZE
2160 # define getpagesize() sysconf(_SC_PAGESIZE)
2161 # else /* no _SC_PAGESIZE */
2162 # ifdef HAVE_SYS_PARAM_H
2163 # include <sys/param.h>
2164 # ifdef EXEC_PAGESIZE
2165 # define getpagesize() EXEC_PAGESIZE
2166 # else /* no EXEC_PAGESIZE */
2167 # ifdef NBPG
2168 # define getpagesize() NBPG * CLSIZE
2169 # ifndef CLSIZE
2170 # define CLSIZE 1
2171 # endif /* no CLSIZE */
2172 # else /* no NBPG */
2173 # ifdef NBPC
2174 # define getpagesize() NBPC
2175 # else /* no NBPC */
2176 # ifdef PAGESIZE
2177 # define getpagesize() PAGESIZE
2178 # endif /* PAGESIZE */
2179 # endif /* no NBPC */
2180 # endif /* no NBPG */
2181 # endif /* no EXEC_PAGESIZE */
2182 # else /* no HAVE_SYS_PARAM_H */
2183 # define getpagesize() 8192 /* punt totally */
2184 # endif /* no HAVE_SYS_PARAM_H */
2185 # endif /* no _SC_PAGESIZE */
2187 #endif /* no HAVE_GETPAGESIZE */
2189 #ifdef __cplusplus
2190 extern "C" { void *malloc(unsigned); }
2191 #else
2192 char *malloc();
2193 #endif
2196 main()
2198 char *data, *data2, *data3;
2199 int i, pagesize;
2200 int fd;
2202 pagesize = getpagesize();
2205 * First, make a file with some known garbage in it.
2207 data = malloc(pagesize);
2208 if (!data)
2209 exit(1);
2210 for (i = 0; i < pagesize; ++i)
2211 *(data + i) = rand();
2212 umask(0);
2213 fd = creat("conftestmmap", 0600);
2214 if (fd < 0)
2215 exit(1);
2216 if (write(fd, data, pagesize) != pagesize)
2217 exit(1);
2218 close(fd);
2221 * Next, try to mmap the file at a fixed address which
2222 * already has something else allocated at it. If we can,
2223 * also make sure that we see the same garbage.
2225 fd = open("conftestmmap", O_RDWR);
2226 if (fd < 0)
2227 exit(1);
2228 data2 = malloc(2 * pagesize);
2229 if (!data2)
2230 exit(1);
2231 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2232 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2233 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2234 exit(1);
2235 for (i = 0; i < pagesize; ++i)
2236 if (*(data + i) != *(data2 + i))
2237 exit(1);
2240 * Finally, make sure that changes to the mapped area
2241 * do not percolate back to the file as seen by read().
2242 * (This is a bug on some variants of i386 svr4.0.)
2244 for (i = 0; i < pagesize; ++i)
2245 *(data2 + i) = *(data2 + i) + 1;
2246 data3 = malloc(pagesize);
2247 if (!data3)
2248 exit(1);
2249 if (read(fd, data3, pagesize) != pagesize)
2250 exit(1);
2251 for (i = 0; i < pagesize; ++i)
2252 if (*(data + i) != *(data3 + i))
2253 exit(1);
2254 close(fd);
2255 unlink("conftestmmap");
2256 exit(0);
2260 if { (eval echo configure:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2261 then
2262 ac_cv_func_mmap_fixed_mapped=yes
2263 else
2264 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2266 rm -fr conftest*
2267 ac_cv_func_mmap_fixed_mapped=no
2269 rm -fr conftest*
2274 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2275 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2276 cat >> confdefs.h <<\EOF
2277 #define HAVE_MMAP 1
2282 saved_libs="$LIBS"
2283 LIBS="$LIBS -lc $LIBM"
2284 for ac_func in fmod strtol getcwd strerror putenv
2286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2287 echo "configure:2288: checking for $ac_func" >&5
2288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2290 else
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2294 /* System header to define __stub macros and hopefully few prototypes,
2295 which can conflict with char $ac_func(); below. */
2296 #include <assert.h>
2297 /* Override any gcc2 internal prototype to avoid an error. */
2298 /* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2300 char $ac_func();
2302 int main() {
2304 /* The GNU C library defines this for functions which it implements
2305 to always fail with ENOSYS. Some functions are actually named
2306 something starting with __ and the normal name is an alias. */
2307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2308 choke me
2309 #else
2310 $ac_func();
2311 #endif
2313 ; return 0; }
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2316 rm -rf conftest*
2317 eval "ac_cv_func_$ac_func=yes"
2318 else
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 eval "ac_cv_func_$ac_func=no"
2324 rm -f conftest*
2327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2330 cat >> confdefs.h <<EOF
2331 #define $ac_tr_func 1
2334 else
2335 echo "$ac_t""no" 1>&6
2336 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2338 done
2341 LIBS="$saved_libs"
2342 for ac_func in rename mkstemp strcasecmp strsep strdup
2344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_func" >&5
2346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2348 else
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* System header to define __stub macros and hopefully few prototypes,
2353 which can conflict with char $ac_func(); below. */
2354 #include <assert.h>
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2358 char $ac_func();
2360 int main() {
2362 /* The GNU C library defines this for functions which it implements
2363 to always fail with ENOSYS. Some functions are actually named
2364 something starting with __ and the normal name is an alias. */
2365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2366 choke me
2367 #else
2368 $ac_func();
2369 #endif
2371 ; return 0; }
2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2374 rm -rf conftest*
2375 eval "ac_cv_func_$ac_func=yes"
2376 else
2377 echo "configure: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2379 rm -rf conftest*
2380 eval "ac_cv_func_$ac_func=no"
2382 rm -f conftest*
2385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2388 cat >> confdefs.h <<EOF
2389 #define $ac_tr_func 1
2392 else
2393 echo "$ac_t""no" 1>&6
2395 done
2397 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2398 echo "configure:2399: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2399 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2401 else
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 #include <sys/types.h>
2406 #include <signal.h>
2407 /* NetBSD declares sys_siglist in unistd.h. */
2408 #ifdef HAVE_UNISTD_H
2409 #include <unistd.h>
2410 #endif
2411 int main() {
2412 char *msg = *(sys_siglist + 1);
2413 ; return 0; }
2415 if { (eval echo configure:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2416 rm -rf conftest*
2417 ac_cv_decl_sys_siglist=yes
2418 else
2419 echo "configure: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2421 rm -rf conftest*
2422 ac_cv_decl_sys_siglist=no
2424 rm -f conftest*
2427 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2428 if test $ac_cv_decl_sys_siglist = yes; then
2429 cat >> confdefs.h <<\EOF
2430 #define SYS_SIGLIST_DECLARED 1
2436 ac_ext=C
2437 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2438 ac_cpp='$CXXCPP $CPPFLAGS'
2439 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2440 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2441 cross_compiling=$ac_cv_prog_cxx_cross
2443 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2444 echo "configure:2445: checking whether ANSI array delete syntax supported" >&5
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2449 int main() {
2450 char *p = new char[5]; delete [] p;
2451 ; return 0; }
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 rm -rf conftest*
2455 echo "$ac_t""yes" 1>&6
2456 else
2457 echo "configure: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2459 rm -rf conftest*
2460 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
2461 #define ARRAY_DELETE_NEEDS_SIZE 1
2465 rm -f conftest*
2466 ac_ext=c
2467 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2470 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2471 cross_compiling=$ac_cv_prog_cc_cross
2474 ac_ext=C
2475 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2476 ac_cpp='$CXXCPP $CPPFLAGS'
2477 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2478 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2479 cross_compiling=$ac_cv_prog_cxx_cross
2481 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2482 echo "configure:2483: checking traditional preprocessor" >&5
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 #define name2(a,b) a/**/b
2487 int main() {
2488 int name2(foo,bar);
2489 ; return 0; }
2491 if { (eval echo configure:2492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2492 rm -rf conftest*
2493 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2494 #define TRADITIONAL_CPP 1
2497 else
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2500 rm -rf conftest*
2501 echo "$ac_t""no" 1>&6
2503 rm -f conftest*
2504 ac_ext=c
2505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2509 cross_compiling=$ac_cv_prog_cc_cross
2511 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2512 echo "configure:2513: checking w_coredump" >&5
2513 if test "$cross_compiling" = yes; then
2514 echo "$ac_t""no" 1>&6
2515 else
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 #include <sys/types.h>
2520 #include <sys/wait.h>
2521 main()
2523 #ifdef WCOREFLAG
2524 exit(1);
2525 #else
2526 int i = 0;
2527 ((union wait *)&i)->w_coredump = 1;
2528 exit(i != 0200);
2529 #endif
2532 if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2533 then
2534 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2535 #define WCOREFLAG 0200
2538 else
2539 echo "configure: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2541 rm -fr conftest*
2542 echo "$ac_t""no" 1>&6
2544 rm -fr conftest*
2547 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2548 echo "configure:2549: checking default value for grops -b option" >&5
2549 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
2550 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2552 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2553 echo "configure:2554: checking default paper size" >&5
2554 if test -z "$PAGE"; then
2555 descfile=
2556 if test -r $prefix/share/groff/font/devps/DESC; then
2557 descfile=$prefix/share/groff/font/devps/DESC
2558 elif test -r $prefix/lib/groff/font/devps/DESC; then
2559 descfile=$prefix/lib/groff/font/devps/DESC
2561 if test -n "$descfile" \
2562 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
2563 PAGE=A4
2564 else
2565 PAGE=letter
2568 if test -z "$PAGE"; then
2569 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2570 /etc/resolv.conf 2>/dev/null`
2571 if test -z "$dom"; then
2572 dom=`(domainname) 2>/dev/null | tr -d '+'`
2573 if test -z "$dom"; then
2574 dom=`(hostname) 2>/dev/null | grep '\.'`
2577 # If the top-level domain is two letters and it's not `us' or `ca'
2578 # then they probably use A4 paper.
2579 case "$dom" in
2580 *.[Uu][Ss]|*.[Cc][Aa]) ;;
2581 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
2582 esac
2584 test -n "$PAGE" || PAGE=letter
2585 echo "$ac_t""$PAGE" 1>&6
2587 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2588 echo "configure:2589: checking for existing troff installation" >&5
2589 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
2590 echo "$ac_t""yes" 1>&6
2592 else
2593 echo "$ac_t""no" 1>&6
2597 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2598 echo "configure:2599: checking for prefix of system macro packages" >&5
2599 sys_tmac_prefix=
2600 sys_tmac_file_prefix=
2601 for d in /usr/share/lib/tmac /usr/lib/tmac; do
2602 for t in "" tmac.; do
2603 for m in an s m; do
2604 f=$d/$t$m
2605 if test -z "$sys_tmac_prefix" \
2606 && test -f $f \
2607 && grep '^\.if' $f >/dev/null 2>&1; then
2608 sys_tmac_prefix=$d/$t
2609 sys_tmac_file_prefix=$t
2611 done
2612 done
2613 done
2614 echo "$ac_t""$sys_tmac_prefix" 1>&6
2616 tmac_wrap=
2617 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2618 echo "configure:2619: checking which system macro packages should be made available" >&5
2619 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2620 for f in $sys_tmac_prefix*; do
2621 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2622 case "$suff" in
2623 e) ;;
2625 grep "Copyright.*Free Software Foundation" $f >/dev/null \
2626 || tmac_wrap="$tmac_wrap $suff" ;;
2627 esac
2628 done
2629 elif test -n "$sys_tmac_prefix"; then
2630 files=`echo $sys_tmac_prefix*`
2631 grep "\\.so" $files >conftest.sol
2632 for f in $files; do
2633 case "$f" in
2634 ${sys_tmac_prefix}e) ;;
2635 *.me) ;;
2636 */ms.*) ;;
2638 b=`basename $f`
2639 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
2640 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
2642 else
2643 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2644 case "$suff" in
2645 tmac.*) ;;
2646 *) tmac_wrap="$tmac_wrap $suff" ;;
2647 esac
2649 esac
2650 done
2651 rm -f conftest.sol
2653 echo "$ac_t""$tmac_wrap" 1>&6
2655 $srcdir/mkinstalldirs src/xditview
2656 trap '' 1 2 15
2657 cat > confcache <<\EOF
2658 # This file is a shell script that caches the results of configure
2659 # tests run on this system so they can be shared between configure
2660 # scripts and configure runs. It is not useful on other systems.
2661 # If it contains results you don't want to keep, you may remove or edit it.
2663 # By default, configure uses ./config.cache as the cache file,
2664 # creating it if it does not exist already. You can give configure
2665 # the --cache-file=FILE option to use a different cache file; that is
2666 # what configure does when it calls configure scripts in
2667 # subdirectories, so they share the cache.
2668 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2669 # config.status only pays attention to the cache file if you give it the
2670 # --recheck option to rerun configure.
2673 # The following way of writing the cache mishandles newlines in values,
2674 # but we know of no workaround that is simple, portable, and efficient.
2675 # So, don't put newlines in cache variables' values.
2676 # Ultrix sh set writes to stderr and can't be redirected directly,
2677 # and sets the high bit in the cache file unless we assign to the vars.
2678 (set) 2>&1 |
2679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2680 *ac_space=\ *)
2681 # `set' does not quote correctly, so add quotes (double-quote substitution
2682 # turns \\\\ into \\, and sed turns \\ into \).
2683 sed -n \
2684 -e "s/'/'\\\\''/g" \
2685 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2688 # `set' quotes correctly as required by POSIX, so do not add quotes.
2689 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2691 esac >> confcache
2692 if cmp -s $cache_file confcache; then
2694 else
2695 if test -w $cache_file; then
2696 echo "updating cache $cache_file"
2697 cat confcache > $cache_file
2698 else
2699 echo "not updating unwritable cache $cache_file"
2702 rm -f confcache
2704 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2707 # Let make expand exec_prefix.
2708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2710 # Any assignment to VPATH causes Sun make to only execute
2711 # the first set of double-colon rules, so remove it if not needed.
2712 # If there is a colon in the path, we need to keep it.
2713 if test "x$srcdir" = x.; then
2714 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2717 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2719 # Transform confdefs.h into DEFS.
2720 # Protect against shell expansion while executing Makefile rules.
2721 # Protect against Makefile macro expansion.
2722 cat > conftest.defs <<\EOF
2723 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2724 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2725 s%\[%\\&%g
2726 s%\]%\\&%g
2727 s%\$%$$%g
2729 if test "$groff_cv_os390" = "yes"; then
2730 DEFS=`sed -f conftest.defs confdefs.h | tr '\n' ' '`
2731 else
2732 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2734 rm -f conftest.defs
2737 # Without the "./", some shells look in PATH for config.status.
2738 : ${CONFIG_STATUS=./config.status}
2740 echo creating $CONFIG_STATUS
2741 rm -f $CONFIG_STATUS
2742 cat > $CONFIG_STATUS <<EOF
2743 #! /bin/sh
2744 # Generated automatically by configure.
2745 # Run this file to recreate the current configuration.
2746 # This directory was configured as follows,
2747 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2749 # $0 $ac_configure_args
2751 # Compiler output produced by configure, useful for debugging
2752 # configure, is in ./config.log if it exists.
2754 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2755 for ac_option
2757 case "\$ac_option" in
2758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2759 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2760 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2761 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2762 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2763 exit 0 ;;
2764 -help | --help | --hel | --he | --h)
2765 echo "\$ac_cs_usage"; exit 0 ;;
2766 *) echo "\$ac_cs_usage"; exit 1 ;;
2767 esac
2768 done
2770 ac_given_srcdir=$srcdir
2771 ac_given_INSTALL="$INSTALL"
2773 trap 'rm -fr `echo "Makefile src/xditview/Imakefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2775 cat >> $CONFIG_STATUS <<EOF
2777 # Protect against being on the right side of a sed subst in config.status.
2778 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2779 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2780 $ac_vpsub
2781 $extrasub
2782 s%@SHELL@%$SHELL%g
2783 s%@CFLAGS@%$CFLAGS%g
2784 s%@CPPFLAGS@%$CPPFLAGS%g
2785 s%@CXXFLAGS@%$CXXFLAGS%g
2786 s%@FFLAGS@%$FFLAGS%g
2787 s%@DEFS@%$DEFS%g
2788 s%@LDFLAGS@%$LDFLAGS%g
2789 s%@LIBS@%$LIBS%g
2790 s%@exec_prefix@%$exec_prefix%g
2791 s%@prefix@%$prefix%g
2792 s%@program_transform_name@%$program_transform_name%g
2793 s%@bindir@%$bindir%g
2794 s%@sbindir@%$sbindir%g
2795 s%@libexecdir@%$libexecdir%g
2796 s%@datadir@%$datadir%g
2797 s%@sysconfdir@%$sysconfdir%g
2798 s%@sharedstatedir@%$sharedstatedir%g
2799 s%@localstatedir@%$localstatedir%g
2800 s%@libdir@%$libdir%g
2801 s%@includedir@%$includedir%g
2802 s%@oldincludedir@%$oldincludedir%g
2803 s%@infodir@%$infodir%g
2804 s%@mandir@%$mandir%g
2805 s%@top_builddir@%$top_builddir%g
2806 s%@CC@%$CC%g
2807 s%@CXX@%$CXX%g
2808 s%@LPR@%$LPR%g
2809 s%@LP@%$LP%g
2810 s%@LPQ@%$LPQ%g
2811 s%@PSPRINT@%$PSPRINT%g
2812 s%@DVIPRINT@%$DVIPRINT%g
2813 s%@PERLPATH@%$PERLPATH%g
2814 s%@YACC@%$YACC%g
2815 s%@RANLIB@%$RANLIB%g
2816 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2817 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2818 s%@INSTALL_DATA@%$INSTALL_DATA%g
2819 s%@LN_S@%$LN_S%g
2820 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2821 s%@CPP@%$CPP%g
2822 s%@LIBM@%$LIBM%g
2823 s%@LIBOBJS@%$LIBOBJS%g
2824 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2825 s%@PAGE@%$PAGE%g
2826 s%@g@%$g%g
2827 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2828 s%@tmac_wrap@%$tmac_wrap%g
2830 CEOF
2833 cat >> $CONFIG_STATUS <<\EOF
2835 # Split the substitutions into bite-sized pieces for seds with
2836 # small command number limits, like on Digital OSF/1 and HP-UX.
2837 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2838 ac_file=1 # Number of current file.
2839 ac_beg=1 # First line for current file.
2840 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2841 ac_more_lines=:
2842 ac_sed_cmds=""
2843 while $ac_more_lines; do
2844 if test $ac_beg -gt 1; then
2845 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2846 else
2847 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2849 if test ! -s conftest.s$ac_file; then
2850 ac_more_lines=false
2851 rm -f conftest.s$ac_file
2852 else
2853 if test -z "$ac_sed_cmds"; then
2854 ac_sed_cmds="sed -f conftest.s$ac_file"
2855 else
2856 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2858 ac_file=`expr $ac_file + 1`
2859 ac_beg=$ac_end
2860 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2862 done
2863 if test -z "$ac_sed_cmds"; then
2864 ac_sed_cmds=cat
2868 cat >> $CONFIG_STATUS <<EOF
2870 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/xditview/Imakefile"}
2872 cat >> $CONFIG_STATUS <<\EOF
2873 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2874 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2875 case "$ac_file" in
2876 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2877 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2878 *) ac_file_in="${ac_file}.in" ;;
2879 esac
2881 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2883 # Remove last slash and all that follows it. Not all systems have dirname.
2884 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2885 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2886 # The file is in a subdirectory.
2887 test ! -d "$ac_dir" && mkdir "$ac_dir"
2888 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2889 # A "../" for each directory in $ac_dir_suffix.
2890 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2891 else
2892 ac_dir_suffix= ac_dots=
2895 case "$ac_given_srcdir" in
2896 .) srcdir=.
2897 if test -z "$ac_dots"; then top_srcdir=.
2898 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2899 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2900 *) # Relative path.
2901 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2902 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2903 esac
2905 case "$ac_given_INSTALL" in
2906 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2907 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2908 esac
2910 echo creating "$ac_file"
2911 rm -f "$ac_file"
2912 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2913 case "$ac_file" in
2914 *Makefile*) ac_comsub="1i\\
2915 # $configure_input" ;;
2916 *) ac_comsub= ;;
2917 esac
2919 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2920 sed -e "$ac_comsub
2921 s%@configure_input@%$configure_input%g
2922 s%@srcdir@%$srcdir%g
2923 s%@top_srcdir@%$top_srcdir%g
2924 s%@INSTALL@%$INSTALL%g
2925 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2926 fi; done
2927 rm -f conftest.s*
2930 cat >> $CONFIG_STATUS <<EOF
2933 cat >> $CONFIG_STATUS <<\EOF
2935 exit 0
2937 chmod +x $CONFIG_STATUS
2938 rm -fr confdefs* $ac_clean_files
2939 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1