* NEWS: Updated.
[s-roff.git] / configure
blobee511476a79302d06f02dfbf24a5a0bb2f63f43e
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`
527 top_builddir=`pwd`
530 # Extract the first word of "gcc", so it can be a program name with args.
531 set dummy gcc; ac_word=$2
532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
533 echo "configure:534: checking for $ac_word" >&5
534 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
535 echo $ac_n "(cached) $ac_c" 1>&6
536 else
537 if test -n "$CC"; then
538 ac_cv_prog_CC="$CC" # Let the user override the test.
539 else
540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
541 ac_dummy="$PATH"
542 for ac_dir in $ac_dummy; do
543 test -z "$ac_dir" && ac_dir=.
544 if test -f $ac_dir/$ac_word; then
545 ac_cv_prog_CC="gcc"
546 break
548 done
549 IFS="$ac_save_ifs"
552 CC="$ac_cv_prog_CC"
553 if test -n "$CC"; then
554 echo "$ac_t""$CC" 1>&6
555 else
556 echo "$ac_t""no" 1>&6
559 if test -z "$CC"; then
560 # Extract the first word of "cc", so it can be a program name with args.
561 set dummy cc; ac_word=$2
562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
563 echo "configure:564: checking for $ac_word" >&5
564 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
566 else
567 if test -n "$CC"; then
568 ac_cv_prog_CC="$CC" # Let the user override the test.
569 else
570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
571 ac_prog_rejected=no
572 ac_dummy="$PATH"
573 for ac_dir in $ac_dummy; do
574 test -z "$ac_dir" && ac_dir=.
575 if test -f $ac_dir/$ac_word; then
576 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
577 ac_prog_rejected=yes
578 continue
580 ac_cv_prog_CC="cc"
581 break
583 done
584 IFS="$ac_save_ifs"
585 if test $ac_prog_rejected = yes; then
586 # We found a bogon in the path, so make sure we never use it.
587 set dummy $ac_cv_prog_CC
588 shift
589 if test $# -gt 0; then
590 # We chose a different compiler from the bogus one.
591 # However, it has the same basename, so the bogon will be chosen
592 # first if we set CC to just the basename; use the full file name.
593 shift
594 set dummy "$ac_dir/$ac_word" "$@"
595 shift
596 ac_cv_prog_CC="$@"
601 CC="$ac_cv_prog_CC"
602 if test -n "$CC"; then
603 echo "$ac_t""$CC" 1>&6
604 else
605 echo "$ac_t""no" 1>&6
608 if test -z "$CC"; then
609 case "`uname -s`" in
610 *win32* | *WIN32*)
611 # Extract the first word of "cl", so it can be a program name with args.
612 set dummy cl; ac_word=$2
613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614 echo "configure:615: checking for $ac_word" >&5
615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
617 else
618 if test -n "$CC"; then
619 ac_cv_prog_CC="$CC" # Let the user override the test.
620 else
621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
622 ac_dummy="$PATH"
623 for ac_dir in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir=.
625 if test -f $ac_dir/$ac_word; then
626 ac_cv_prog_CC="cl"
627 break
629 done
630 IFS="$ac_save_ifs"
633 CC="$ac_cv_prog_CC"
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
636 else
637 echo "$ac_t""no" 1>&6
640 esac
642 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
645 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
646 echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
648 ac_ext=c
649 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
650 ac_cpp='$CPP $CPPFLAGS'
651 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
652 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
653 cross_compiling=$ac_cv_prog_cc_cross
655 cat > conftest.$ac_ext << EOF
657 #line 658 "configure"
658 #include "confdefs.h"
660 main(){return(0);}
662 if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
663 ac_cv_prog_cc_works=yes
664 # If we can't run a trivial program, we are probably using a cross compiler.
665 if (./conftest; exit) 2>/dev/null; then
666 ac_cv_prog_cc_cross=no
667 else
668 ac_cv_prog_cc_cross=yes
670 else
671 echo "configure: failed program was:" >&5
672 cat conftest.$ac_ext >&5
673 ac_cv_prog_cc_works=no
675 rm -fr conftest*
676 ac_ext=c
677 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678 ac_cpp='$CPP $CPPFLAGS'
679 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681 cross_compiling=$ac_cv_prog_cc_cross
683 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
684 if test $ac_cv_prog_cc_works = no; then
685 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
688 echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
690 cross_compiling=$ac_cv_prog_cc_cross
692 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
693 echo "configure:694: checking whether we are using GNU C" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
696 else
697 cat > conftest.c <<EOF
698 #ifdef __GNUC__
699 yes;
700 #endif
702 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
703 ac_cv_prog_gcc=yes
704 else
705 ac_cv_prog_gcc=no
709 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
711 if test $ac_cv_prog_gcc = yes; then
712 GCC=yes
713 else
714 GCC=
717 ac_test_CFLAGS="${CFLAGS+set}"
718 ac_save_CFLAGS="$CFLAGS"
719 CFLAGS=
720 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
721 echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
722 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
724 else
725 echo 'void f(){}' > conftest.c
726 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
727 ac_cv_prog_cc_g=yes
728 else
729 ac_cv_prog_cc_g=no
731 rm -f conftest*
735 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
736 if test "$ac_test_CFLAGS" = set; then
737 CFLAGS="$ac_save_CFLAGS"
738 elif test $ac_cv_prog_cc_g = yes; then
739 if test "$GCC" = yes; then
740 CFLAGS="-g -O2"
741 else
742 CFLAGS="-g"
744 else
745 if test "$GCC" = yes; then
746 CFLAGS="-O2"
747 else
748 CFLAGS=
752 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
754 # Extract the first word of "$ac_prog", so it can be a program name with args.
755 set dummy $ac_prog; ac_word=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
760 else
761 if test -n "$CXX"; then
762 ac_cv_prog_CXX="$CXX" # Let the user override the test.
763 else
764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
765 ac_dummy="$PATH"
766 for ac_dir in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir=.
768 if test -f $ac_dir/$ac_word; then
769 ac_cv_prog_CXX="$ac_prog"
770 break
772 done
773 IFS="$ac_save_ifs"
776 CXX="$ac_cv_prog_CXX"
777 if test -n "$CXX"; then
778 echo "$ac_t""$CXX" 1>&6
779 else
780 echo "$ac_t""no" 1>&6
783 test -n "$CXX" && break
784 done
785 test -n "$CXX" || CXX="gcc"
788 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
789 echo "configure:790: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
791 ac_ext=C
792 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp='$CXXCPP $CPPFLAGS'
794 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling=$ac_cv_prog_cxx_cross
798 cat > conftest.$ac_ext << EOF
800 #line 801 "configure"
801 #include "confdefs.h"
803 int main(){return(0);}
805 if { (eval echo configure:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
806 ac_cv_prog_cxx_works=yes
807 # If we can't run a trivial program, we are probably using a cross compiler.
808 if (./conftest; exit) 2>/dev/null; then
809 ac_cv_prog_cxx_cross=no
810 else
811 ac_cv_prog_cxx_cross=yes
813 else
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
816 ac_cv_prog_cxx_works=no
818 rm -fr conftest*
819 ac_ext=c
820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
821 ac_cpp='$CPP $CPPFLAGS'
822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
824 cross_compiling=$ac_cv_prog_cc_cross
826 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
827 if test $ac_cv_prog_cxx_works = no; then
828 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
830 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
831 echo "configure:832: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
832 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
833 cross_compiling=$ac_cv_prog_cxx_cross
835 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
836 echo "configure:837: checking whether we are using GNU C++" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
839 else
840 cat > conftest.C <<EOF
841 #ifdef __GNUC__
842 yes;
843 #endif
845 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
846 ac_cv_prog_gxx=yes
847 else
848 ac_cv_prog_gxx=no
852 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
854 if test $ac_cv_prog_gxx = yes; then
855 GXX=yes
856 else
857 GXX=
860 ac_test_CXXFLAGS="${CXXFLAGS+set}"
861 ac_save_CXXFLAGS="$CXXFLAGS"
862 CXXFLAGS=
863 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
864 echo "configure:865: checking whether ${CXX-g++} accepts -g" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
867 else
868 echo 'void f(){}' > conftest.cc
869 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
870 ac_cv_prog_cxx_g=yes
871 else
872 ac_cv_prog_cxx_g=no
874 rm -f conftest*
878 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
879 if test "$ac_test_CXXFLAGS" = set; then
880 CXXFLAGS="$ac_save_CXXFLAGS"
881 elif test $ac_cv_prog_cxx_g = yes; then
882 if test "$GXX" = yes; then
883 CXXFLAGS="-g -O2"
884 else
885 CXXFLAGS="-g"
887 else
888 if test "$GXX" = yes; then
889 CXXFLAGS="-O2"
890 else
891 CXXFLAGS=
899 ac_ext=C
900 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp='$CXXCPP $CPPFLAGS'
902 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling=$ac_cv_prog_cxx_cross
906 if test "$cross_compiling" = no; then
907 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6
908 echo "configure:909: checking that C++ compiler can compile simple program" >&5
910 if test "$cross_compiling" = yes; then
912 else
913 cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
916 #ifdef __cplusplus
917 extern "C" void exit(int);
918 #endif
919 int main() { return 0; }
921 if { (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
922 then
923 echo "$ac_t""yes" 1>&6
924 else
925 echo "configure: failed program was:" >&5
926 cat conftest.$ac_ext >&5
927 rm -fr conftest*
928 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
930 rm -fr conftest*
933 if test "$cross_compiling" = no; then
934 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6
935 echo "configure:936: checking that C++ static constructors and destructors are called" >&5
937 if test "$cross_compiling" = yes; then
939 else
940 cat > conftest.$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
943 #ifdef __cplusplus
944 extern "C" void exit(int);
945 #endif
947 extern "C" {
948 void _exit(int);
950 int i;
951 struct A {
952 char dummy;
953 A() { i = 1; }
954 ~A() { if (i == 1) _exit(0); }
956 A a;
957 int main() { return 1; }
960 if { (eval echo configure:961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
961 then
962 echo "$ac_t""yes" 1>&6
963 else
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
966 rm -fr conftest*
967 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
969 rm -fr conftest*
972 echo $ac_n "checking that header files support C++""... $ac_c" 1>&6
973 echo "configure:974: checking that header files support C++" >&5
974 cat > conftest.$ac_ext <<EOF
975 #line 976 "configure"
976 #include "confdefs.h"
977 #include <stdio.h>
978 int main() {
979 fopen(0, 0);
980 ; return 0; }
982 if { (eval echo configure:983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
983 rm -rf conftest*
984 echo "$ac_t""yes" 1>&6
985 else
986 echo "configure: failed program was:" >&5
987 cat conftest.$ac_ext >&5
988 rm -rf conftest*
989 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; }
991 rm -f conftest*
992 ac_ext=c
993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
994 ac_cpp='$CPP $CPPFLAGS'
995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
997 cross_compiling=$ac_cv_prog_cc_cross
1000 if test -z "$PSPRINT"; then
1001 for ac_prog in lpr
1003 # Extract the first word of "$ac_prog", so it can be a program name with args.
1004 set dummy $ac_prog; ac_word=$2
1005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006 echo "configure:1007: checking for $ac_word" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1009 else
1010 if test -n "$LPR"; then
1011 ac_cv_prog_LPR="$LPR" # Let the user override the test.
1012 else
1013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1014 ac_dummy="$PATH"
1015 for ac_dir in $ac_dummy; do
1016 test -z "$ac_dir" && ac_dir=.
1017 if test -f $ac_dir/$ac_word; then
1018 ac_cv_prog_LPR="$ac_prog"
1019 break
1021 done
1022 IFS="$ac_save_ifs"
1025 LPR="$ac_cv_prog_LPR"
1026 if test -n "$LPR"; then
1027 echo "$ac_t""$LPR" 1>&6
1028 else
1029 echo "$ac_t""no" 1>&6
1032 test -n "$LPR" && break
1033 done
1035 for ac_prog in lp
1037 # Extract the first word of "$ac_prog", so it can be a program name with args.
1038 set dummy $ac_prog; ac_word=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 echo "configure:1041: checking for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1043 else
1044 if test -n "$LP"; then
1045 ac_cv_prog_LP="$LP" # Let the user override the test.
1046 else
1047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1048 ac_dummy="$PATH"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 ac_cv_prog_LP="$ac_prog"
1053 break
1055 done
1056 IFS="$ac_save_ifs"
1059 LP="$ac_cv_prog_LP"
1060 if test -n "$LP"; then
1061 echo "$ac_t""$LP" 1>&6
1062 else
1063 echo "$ac_t""no" 1>&6
1066 test -n "$LP" && break
1067 done
1069 if test -n "$LPR" && test -n "$LP"; then
1070 # HP-UX provides an lpr command that emulates lpr using lp,
1071 # but it doesn't have lpq; in this case we want to use lp
1072 # rather than lpr.
1073 for ac_prog in lpq
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_LPQ'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1081 else
1082 if test -n "$LPQ"; then
1083 ac_cv_prog_LPQ="$LPQ" # 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_LPQ="$ac_prog"
1091 break
1093 done
1094 IFS="$ac_save_ifs"
1097 LPQ="$ac_cv_prog_LPQ"
1098 if test -n "$LPQ"; then
1099 echo "$ac_t""$LPQ" 1>&6
1100 else
1101 echo "$ac_t""no" 1>&6
1104 test -n "$LPQ" && break
1105 done
1107 test -n "$LPQ" || LPR=
1109 if test -n "$LPR"; then
1110 PSPRINT="$LPR"
1111 elif test -n "$LP"; then
1112 PSPRINT="$LP"
1116 echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6
1117 echo "configure:1118: checking for command to use for printing PostScript files" >&5
1118 echo "$ac_t""$PSPRINT" 1>&6
1119 # Figure out DVIPRINT from PSPRINT.
1120 echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6
1121 echo "configure:1122: checking for command to use for printing dvi files" >&5
1122 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
1123 if test "X$PSPRINT" = "Xlpr"; then
1124 DVIPRINT="lpr -d"
1125 else
1126 DVIPRINT="$PSPRINT"
1130 echo "$ac_t""$DVIPRINT" 1>&6
1131 # Extract the first word of "perl", so it can be a program name with args.
1132 set dummy perl; ac_word=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1137 else
1138 case "$PERLPATH" in
1140 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
1142 ?:/*)
1143 ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a dos path.
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1147 ac_dummy="$PATH"
1148 for ac_dir in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word; then
1151 ac_cv_path_PERLPATH="$ac_dir/$ac_word"
1152 break
1154 done
1155 IFS="$ac_save_ifs"
1156 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH="/usr/bin/perl"
1158 esac
1160 PERLPATH="$ac_cv_path_PERLPATH"
1161 if test -n "$PERLPATH"; then
1162 echo "$ac_t""$PERLPATH" 1>&6
1163 else
1164 echo "$ac_t""no" 1>&6
1167 for ac_prog in byacc 'bison -y'
1169 # Extract the first word of "$ac_prog", so it can be a program name with args.
1170 set dummy $ac_prog; 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_prog_YACC'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175 else
1176 if test -n "$YACC"; then
1177 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1178 else
1179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1180 ac_dummy="$PATH"
1181 for ac_dir in $ac_dummy; do
1182 test -z "$ac_dir" && ac_dir=.
1183 if test -f $ac_dir/$ac_word; then
1184 ac_cv_prog_YACC="$ac_prog"
1185 break
1187 done
1188 IFS="$ac_save_ifs"
1191 YACC="$ac_cv_prog_YACC"
1192 if test -n "$YACC"; then
1193 echo "$ac_t""$YACC" 1>&6
1194 else
1195 echo "$ac_t""no" 1>&6
1198 test -n "$YACC" && break
1199 done
1200 test -n "$YACC" || YACC="yacc"
1202 # Extract the first word of "ranlib", so it can be a program name with args.
1203 set dummy ranlib; ac_word=$2
1204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_word" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1208 else
1209 if test -n "$RANLIB"; then
1210 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1211 else
1212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1213 ac_dummy="$PATH"
1214 for ac_dir in $ac_dummy; do
1215 test -z "$ac_dir" && ac_dir=.
1216 if test -f $ac_dir/$ac_word; then
1217 ac_cv_prog_RANLIB="ranlib"
1218 break
1220 done
1221 IFS="$ac_save_ifs"
1222 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1225 RANLIB="$ac_cv_prog_RANLIB"
1226 if test -n "$RANLIB"; then
1227 echo "$ac_t""$RANLIB" 1>&6
1228 else
1229 echo "$ac_t""no" 1>&6
1232 ac_aux_dir=
1233 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1234 if test -f $ac_dir/install-sh; then
1235 ac_aux_dir=$ac_dir
1236 ac_install_sh="$ac_aux_dir/install-sh -c"
1237 break
1238 elif test -f $ac_dir/install.sh; then
1239 ac_aux_dir=$ac_dir
1240 ac_install_sh="$ac_aux_dir/install.sh -c"
1241 break
1243 done
1244 if test -z "$ac_aux_dir"; then
1245 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1247 ac_config_guess=$ac_aux_dir/config.guess
1248 ac_config_sub=$ac_aux_dir/config.sub
1249 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1251 ac_dir=`cd $ac_aux_dir; pwd`
1252 ac_install_sh="$ac_dir/install-sh -c"
1254 # Find a good install program. We prefer a C program (faster),
1255 # so one script is as good as another. But avoid the broken or
1256 # incompatible versions:
1257 # SysV /etc/install, /usr/sbin/install
1258 # SunOS /usr/etc/install
1259 # IRIX /sbin/install
1260 # AIX /bin/install
1261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1264 # ./install, which can be erroneously created by make from ./install.sh.
1265 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1266 echo "configure:1267: checking for a BSD compatible install" >&5
1267 if test -z "$INSTALL"; then
1268 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1270 else
1271 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1272 for ac_dir in $PATH; do
1273 # Account for people who put trailing slashes in PATH elements.
1274 case "$ac_dir/" in
1275 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1277 # OSF1 and SCO ODT 3.0 have their own names for install.
1278 # Don't use installbsd from OSF since it installs stuff as root
1279 # by default.
1280 for ac_prog in ginstall scoinst install; do
1281 if test -f $ac_dir/$ac_prog; then
1282 if test $ac_prog = install &&
1283 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1284 # AIX install. It has an incompatible calling convention.
1286 else
1287 ac_cv_path_install="$ac_dir/$ac_prog -c"
1288 break 2
1291 done
1293 esac
1294 done
1295 IFS="$ac_save_IFS"
1298 if test "${ac_cv_path_install+set}" = set; then
1299 INSTALL="$ac_cv_path_install"
1300 else
1301 # As a last resort, use the slow shell script. We don't cache a
1302 # path for INSTALL within a source directory, because that will
1303 # break other packages using the cache if that directory is
1304 # removed, or if the path is relative.
1305 INSTALL="$ac_install_sh"
1308 echo "$ac_t""$INSTALL" 1>&6
1310 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1311 # It thinks the first close brace ends the variable substitution.
1312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1316 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1318 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1319 echo "configure:1320: checking whether ln -s works" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1322 else
1323 rm -f conftestdata
1324 if ln -s X conftestdata 2>/dev/null
1325 then
1326 rm -f conftestdata
1327 ac_cv_prog_LN_S="ln -s"
1328 else
1329 ac_cv_prog_LN_S=ln
1332 LN_S="$ac_cv_prog_LN_S"
1333 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1334 echo "$ac_t""yes" 1>&6
1335 else
1336 echo "$ac_t""no" 1>&6
1339 echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6
1340 echo "configure:1341: checking for csh hash hack" >&5
1341 cat <<EOF >conftest.sh
1342 #!/bin/sh
1343 true || exit 0
1344 export PATH || exit 0
1345 exit 1
1347 chmod +x conftest.sh
1348 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
1349 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD='1s/.*/:/'
1350 else
1351 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD=''
1353 rm -f conftest.sh
1355 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1356 echo "configure:1357: checking how to run the C preprocessor" >&5
1357 # On Suns, sometimes $CPP names a directory.
1358 if test -n "$CPP" && test -d "$CPP"; then
1359 CPP=
1361 if test -z "$CPP"; then
1362 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1364 else
1365 # This must be in double quotes, not single quotes, because CPP may get
1366 # substituted into the Makefile and "${CC-cc}" will confuse make.
1367 CPP="${CC-cc} -E"
1368 # On the NeXT, cc -E runs the code through the compiler's parser,
1369 # not just through cpp.
1370 cat > conftest.$ac_ext <<EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1373 #include <assert.h>
1374 Syntax Error
1376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1377 { (eval echo configure:1378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1379 if test -z "$ac_err"; then
1381 else
1382 echo "$ac_err" >&5
1383 echo "configure: failed program was:" >&5
1384 cat conftest.$ac_ext >&5
1385 rm -rf conftest*
1386 CPP="${CC-cc} -E -traditional-cpp"
1387 cat > conftest.$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1390 #include <assert.h>
1391 Syntax Error
1393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1394 { (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1396 if test -z "$ac_err"; then
1398 else
1399 echo "$ac_err" >&5
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1402 rm -rf conftest*
1403 CPP="${CC-cc} -nologo -E"
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 #include <assert.h>
1408 Syntax Error
1410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1411 { (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1413 if test -z "$ac_err"; then
1415 else
1416 echo "$ac_err" >&5
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1419 rm -rf conftest*
1420 CPP=/lib/cpp
1422 rm -f conftest*
1424 rm -f conftest*
1426 rm -f conftest*
1427 ac_cv_prog_CPP="$CPP"
1429 CPP="$ac_cv_prog_CPP"
1430 else
1431 ac_cv_prog_CPP="$CPP"
1433 echo "$ac_t""$CPP" 1>&6
1435 for ac_hdr in unistd.h dirent.h limits.h sys/dir.h stdlib.h
1437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1439 echo "configure:1440: checking for $ac_hdr" >&5
1440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1442 else
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1446 #include <$ac_hdr>
1448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1449 { (eval echo configure:1450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1451 if test -z "$ac_err"; then
1452 rm -rf conftest*
1453 eval "ac_cv_header_$ac_safe=yes"
1454 else
1455 echo "$ac_err" >&5
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1458 rm -rf conftest*
1459 eval "ac_cv_header_$ac_safe=no"
1461 rm -f conftest*
1463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1466 cat >> confdefs.h <<EOF
1467 #define $ac_tr_hdr 1
1470 else
1471 echo "$ac_t""no" 1>&6
1473 done
1475 echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6
1476 echo "configure:1477: checking for ISC 3.x or 4.x" >&5
1477 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
1478 then
1479 echo "$ac_t""yes" 1>&6
1480 cat >> confdefs.h <<\EOF
1481 #define _SYSV3 1
1484 else
1485 echo "$ac_t""no" 1>&6
1487 echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6
1488 echo "configure:1489: checking whether -D_POSIX_SOURCE is necessary" >&5
1490 ac_ext=C
1491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1492 ac_cpp='$CXXCPP $CPPFLAGS'
1493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1495 cross_compiling=$ac_cv_prog_cxx_cross
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 #include <stdio.h>
1501 extern "C" { void fileno(int); }
1502 int main() {
1504 ; return 0; }
1506 if { (eval echo configure:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1507 rm -rf conftest*
1508 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1509 #define _POSIX_SOURCE 1
1512 else
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1515 rm -rf conftest*
1516 echo "$ac_t""no" 1>&6
1518 rm -f conftest*
1519 ac_ext=c
1520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1524 cross_compiling=$ac_cv_prog_cc_cross
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 echo $ac_n "checking declaration of getopt in stdlib.h""... $ac_c" 1>&6
1535 echo "configure:1536: checking declaration of getopt in stdlib.h" >&5
1536 cat > conftest.$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1539 #include <stdlib.h>
1540 extern "C" { void getopt(int); }
1541 int main() {
1543 ; return 0; }
1545 if { (eval echo configure:1546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1546 rm -rf conftest*
1547 echo "$ac_t""no" 1>&6
1548 else
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1551 rm -rf conftest*
1552 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1553 #define STDLIB_H_DECLARES_GETOPT 1
1557 rm -f conftest*
1558 echo $ac_n "checking declaration of getopt in unistd.h""... $ac_c" 1>&6
1559 echo "configure:1560: checking declaration of getopt in unistd.h" >&5
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 #include <sys/types.h>
1564 #include <unistd.h>
1565 extern "C" { void getopt(int); }
1566 int main() {
1568 ; return 0; }
1570 if { (eval echo configure:1571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1571 rm -rf conftest*
1572 echo "$ac_t""no" 1>&6
1573 else
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1576 rm -rf conftest*
1577 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1578 #define UNISTD_H_DECLARES_GETOPT 1
1582 rm -f conftest*
1583 ac_ext=c
1584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1588 cross_compiling=$ac_cv_prog_cc_cross
1591 ac_ext=C
1592 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1593 ac_cpp='$CXXCPP $CPPFLAGS'
1594 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1595 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1596 cross_compiling=$ac_cv_prog_cxx_cross
1598 echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6
1599 echo "configure:1600: checking declaration of putenv" >&5
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1603 #include <stdlib.h>
1604 extern "C" { void putenv(int); }
1605 int main() {
1607 ; return 0; }
1609 if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 rm -rf conftest*
1611 echo "$ac_t""no" 1>&6
1612 else
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1615 rm -rf conftest*
1616 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1617 #define STDLIB_H_DECLARES_PUTENV 1
1621 rm -f conftest*
1622 ac_ext=c
1623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1624 ac_cpp='$CPP $CPPFLAGS'
1625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1627 cross_compiling=$ac_cv_prog_cc_cross
1630 ac_ext=C
1631 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1632 ac_cpp='$CXXCPP $CPPFLAGS'
1633 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1634 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1635 cross_compiling=$ac_cv_prog_cxx_cross
1637 echo $ac_n "checking declaration of popen""... $ac_c" 1>&6
1638 echo "configure:1639: checking declaration of popen" >&5
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1642 #include <stdio.h>
1643 extern "C" { void popen(int); }
1644 int main() {
1646 ; return 0; }
1648 if { (eval echo configure:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1649 rm -rf conftest*
1650 echo "$ac_t""no" 1>&6
1651 else
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1654 rm -rf conftest*
1655 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1656 #define STDIO_H_DECLARES_POPEN 1
1660 rm -f conftest*
1661 ac_ext=c
1662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1663 ac_cpp='$CPP $CPPFLAGS'
1664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1666 cross_compiling=$ac_cv_prog_cc_cross
1669 ac_ext=C
1670 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1671 ac_cpp='$CXXCPP $CPPFLAGS'
1672 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1673 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1674 cross_compiling=$ac_cv_prog_cxx_cross
1676 echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6
1677 echo "configure:1678: checking declaration of pclose" >&5
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1681 #include <stdio.h>
1682 extern "C" { void pclose(int); }
1683 int main() {
1685 ; return 0; }
1687 if { (eval echo configure:1688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1688 rm -rf conftest*
1689 echo "$ac_t""no" 1>&6
1690 else
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1693 rm -rf conftest*
1694 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1695 #define STDIO_H_DECLARES_PCLOSE 1
1699 rm -f conftest*
1700 ac_ext=c
1701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1702 ac_cpp='$CPP $CPPFLAGS'
1703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1705 cross_compiling=$ac_cv_prog_cc_cross
1708 ac_ext=C
1709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1710 ac_cpp='$CXXCPP $CPPFLAGS'
1711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1713 cross_compiling=$ac_cv_prog_cxx_cross
1715 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1716 echo "configure:1717: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1717 cat > conftest.$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1720 #include <errno.h>
1721 #include <stdio.h>
1722 int main() {
1723 int k; k = sys_nerr;
1724 ; return 0; }
1726 if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1727 rm -rf conftest*
1728 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1729 #define HAVE_SYS_NERR 1
1732 else
1733 echo "configure: failed program was:" >&5
1734 cat conftest.$ac_ext >&5
1735 rm -rf conftest*
1736 echo "$ac_t""no" 1>&6
1738 rm -f conftest*
1739 ac_ext=c
1740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1741 ac_cpp='$CPP $CPPFLAGS'
1742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1744 cross_compiling=$ac_cv_prog_cc_cross
1747 ac_ext=C
1748 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1749 ac_cpp='$CXXCPP $CPPFLAGS'
1750 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1751 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1752 cross_compiling=$ac_cv_prog_cxx_cross
1754 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1755 echo "configure:1756: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1756 cat > conftest.$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1759 #include <errno.h>
1760 #include <stdio.h>
1761 int main() {
1762 int k; k = (int)sys_errlist[0];
1763 ; return 0; }
1765 if { (eval echo configure:1766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1766 rm -rf conftest*
1767 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1768 #define HAVE_SYS_ERRLIST 1
1771 else
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1774 rm -rf conftest*
1775 echo "$ac_t""no" 1>&6
1777 rm -f conftest*
1778 ac_ext=c
1779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1783 cross_compiling=$ac_cv_prog_cc_cross
1786 ac_ext=C
1787 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1788 ac_cpp='$CXXCPP $CPPFLAGS'
1789 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1790 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1791 cross_compiling=$ac_cv_prog_cxx_cross
1793 echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6
1794 echo "configure:1795: checking declaration of hypot" >&5
1795 cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798 #include <math.h>
1799 extern "C" { double hypot(double,double); }
1800 int main() {
1802 ; return 0; }
1804 if { (eval echo configure:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1805 rm -rf conftest*
1806 echo "$ac_t""no" 1>&6
1807 else
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 rm -rf conftest*
1811 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1812 #define MATH_H_DECLARES_HYPOT 1
1816 rm -f conftest*
1817 ac_ext=c
1818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1822 cross_compiling=$ac_cv_prog_cc_cross
1825 ac_ext=C
1826 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1827 ac_cpp='$CXXCPP $CPPFLAGS'
1828 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1829 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1830 cross_compiling=$ac_cv_prog_cxx_cross
1832 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
1833 echo "configure:1834: checking C++ <osfcn.h>" >&5
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 #include <osfcn.h>
1838 int main() {
1839 read(0, 0, 0); open(0, 0);
1840 ; return 0; }
1842 if { (eval echo configure:1843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1843 rm -rf conftest*
1844 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1845 #define HAVE_CC_OSFCN_H 1
1848 else
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1851 rm -rf conftest*
1852 echo "$ac_t""no" 1>&6
1854 rm -f conftest*
1855 ac_ext=c
1856 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1859 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1860 cross_compiling=$ac_cv_prog_cc_cross
1863 ac_ext=C
1864 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1865 ac_cpp='$CXXCPP $CPPFLAGS'
1866 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1867 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1868 cross_compiling=$ac_cv_prog_cxx_cross
1870 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
1871 echo "configure:1872: checking C++ <limits.h>" >&5
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 #include <limits.h>
1876 int main() {
1877 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1878 ; return 0; }
1880 if { (eval echo configure:1881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1881 rm -rf conftest*
1882 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1883 #define HAVE_CC_LIMITS_H 1
1886 else
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1889 rm -rf conftest*
1890 echo "$ac_t""no" 1>&6
1892 rm -f conftest*
1893 ac_ext=c
1894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1897 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1898 cross_compiling=$ac_cv_prog_cc_cross
1901 ac_ext=C
1902 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1903 ac_cpp='$CXXCPP $CPPFLAGS'
1904 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1905 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1906 cross_compiling=$ac_cv_prog_cxx_cross
1908 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
1909 echo "configure:1910: checking for declaration of time_t" >&5
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 #include <time.h>
1914 int main() {
1915 time_t t = time(0); struct tm *p = localtime(&t);
1916 ; return 0; }
1918 if { (eval echo configure:1919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1919 rm -rf conftest*
1920 echo "$ac_t""yes" 1>&6
1921 else
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1924 rm -rf conftest*
1925 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
1926 #define LONG_FOR_TIME_T 1
1930 rm -f conftest*
1931 ac_ext=c
1932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1936 cross_compiling=$ac_cv_prog_cc_cross
1938 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1939 echo "configure:1940: checking return type of signal handlers" >&5
1940 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <sys/types.h>
1947 #include <signal.h>
1948 #ifdef signal
1949 #undef signal
1950 #endif
1951 #ifdef __cplusplus
1952 extern "C" void (*signal (int, void (*)(int)))(int);
1953 #else
1954 void (*signal ()) ();
1955 #endif
1957 int main() {
1958 int i;
1959 ; return 0; }
1961 if { (eval echo configure:1962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1962 rm -rf conftest*
1963 ac_cv_type_signal=void
1964 else
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1967 rm -rf conftest*
1968 ac_cv_type_signal=int
1970 rm -f conftest*
1973 echo "$ac_t""$ac_cv_type_signal" 1>&6
1974 cat >> confdefs.h <<EOF
1975 #define RETSIGTYPE $ac_cv_type_signal
1979 echo $ac_n "checking struct exception""... $ac_c" 1>&6
1980 echo "configure:1981: checking struct exception" >&5
1981 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1984 #include <math.h>
1985 int main() {
1986 struct exception e;
1987 ; return 0; }
1989 if { (eval echo configure:1990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1990 rm -rf conftest*
1991 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1992 #define HAVE_STRUCT_EXCEPTION 1
1995 else
1996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
1998 rm -rf conftest*
1999 echo "$ac_t""no" 1>&6
2001 rm -f conftest*
2002 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
2003 echo "configure:2004: checking for sin in -lm" >&5
2004 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2005 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2007 else
2008 ac_save_LIBS="$LIBS"
2009 LIBS="-lm $LIBS"
2010 cat > conftest.$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2013 /* Override any gcc2 internal prototype to avoid an error. */
2014 /* We use char because int might match the return type of a gcc2
2015 builtin and then its argument prototype would still apply. */
2016 char sin();
2018 int main() {
2019 sin()
2020 ; return 0; }
2022 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2023 rm -rf conftest*
2024 eval "ac_cv_lib_$ac_lib_var=yes"
2025 else
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 rm -rf conftest*
2029 eval "ac_cv_lib_$ac_lib_var=no"
2031 rm -f conftest*
2032 LIBS="$ac_save_LIBS"
2035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2036 echo "$ac_t""yes" 1>&6
2037 LIBM=-lm
2038 else
2039 echo "$ac_t""no" 1>&6
2044 for ac_hdr in unistd.h
2046 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2047 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_hdr" >&5
2049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2051 else
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 #include <$ac_hdr>
2057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2058 { (eval echo configure:2059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2060 if test -z "$ac_err"; then
2061 rm -rf conftest*
2062 eval "ac_cv_header_$ac_safe=yes"
2063 else
2064 echo "$ac_err" >&5
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2067 rm -rf conftest*
2068 eval "ac_cv_header_$ac_safe=no"
2070 rm -f conftest*
2072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2073 echo "$ac_t""yes" 1>&6
2074 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2075 cat >> confdefs.h <<EOF
2076 #define $ac_tr_hdr 1
2079 else
2080 echo "$ac_t""no" 1>&6
2082 done
2084 for ac_func in getpagesize
2086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2087 echo "configure:2088: checking for $ac_func" >&5
2088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2090 else
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2094 /* System header to define __stub macros and hopefully few prototypes,
2095 which can conflict with char $ac_func(); below. */
2096 #include <assert.h>
2097 /* Override any gcc2 internal prototype to avoid an error. */
2098 /* We use char because int might match the return type of a gcc2
2099 builtin and then its argument prototype would still apply. */
2100 char $ac_func();
2102 int main() {
2104 /* The GNU C library defines this for functions which it implements
2105 to always fail with ENOSYS. Some functions are actually named
2106 something starting with __ and the normal name is an alias. */
2107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2108 choke me
2109 #else
2110 $ac_func();
2111 #endif
2113 ; return 0; }
2115 if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2116 rm -rf conftest*
2117 eval "ac_cv_func_$ac_func=yes"
2118 else
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2121 rm -rf conftest*
2122 eval "ac_cv_func_$ac_func=no"
2124 rm -f conftest*
2127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2130 cat >> confdefs.h <<EOF
2131 #define $ac_tr_func 1
2134 else
2135 echo "$ac_t""no" 1>&6
2137 done
2139 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2140 echo "configure:2141: checking for working mmap" >&5
2141 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 if test "$cross_compiling" = yes; then
2145 ac_cv_func_mmap_fixed_mapped=no
2146 else
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2151 /* Thanks to Mike Haertel and Jim Avera for this test.
2152 Here is a matrix of mmap possibilities:
2153 mmap private not fixed
2154 mmap private fixed at somewhere currently unmapped
2155 mmap private fixed at somewhere already mapped
2156 mmap shared not fixed
2157 mmap shared fixed at somewhere currently unmapped
2158 mmap shared fixed at somewhere already mapped
2159 For private mappings, we should verify that changes cannot be read()
2160 back from the file, nor mmap's back from the file at a different
2161 address. (There have been systems where private was not correctly
2162 implemented like the infamous i386 svr4.0, and systems where the
2163 VM page cache was not coherent with the filesystem buffer cache
2164 like early versions of FreeBSD and possibly contemporary NetBSD.)
2165 For shared mappings, we should conversely verify that changes get
2166 propogated back to all the places they're supposed to be.
2168 Grep wants private fixed already mapped.
2169 The main things grep needs to know about mmap are:
2170 * does it exist and is it safe to write into the mmap'd area
2171 * how to use it (BSD variants) */
2172 #include <sys/types.h>
2173 #include <fcntl.h>
2174 #include <sys/mman.h>
2176 /* This mess was copied from the GNU getpagesize.h. */
2177 #ifndef HAVE_GETPAGESIZE
2178 # ifdef HAVE_UNISTD_H
2179 # include <unistd.h>
2180 # endif
2182 /* Assume that all systems that can run configure have sys/param.h. */
2183 # ifndef HAVE_SYS_PARAM_H
2184 # define HAVE_SYS_PARAM_H 1
2185 # endif
2187 # ifdef _SC_PAGESIZE
2188 # define getpagesize() sysconf(_SC_PAGESIZE)
2189 # else /* no _SC_PAGESIZE */
2190 # ifdef HAVE_SYS_PARAM_H
2191 # include <sys/param.h>
2192 # ifdef EXEC_PAGESIZE
2193 # define getpagesize() EXEC_PAGESIZE
2194 # else /* no EXEC_PAGESIZE */
2195 # ifdef NBPG
2196 # define getpagesize() NBPG * CLSIZE
2197 # ifndef CLSIZE
2198 # define CLSIZE 1
2199 # endif /* no CLSIZE */
2200 # else /* no NBPG */
2201 # ifdef NBPC
2202 # define getpagesize() NBPC
2203 # else /* no NBPC */
2204 # ifdef PAGESIZE
2205 # define getpagesize() PAGESIZE
2206 # endif /* PAGESIZE */
2207 # endif /* no NBPC */
2208 # endif /* no NBPG */
2209 # endif /* no EXEC_PAGESIZE */
2210 # else /* no HAVE_SYS_PARAM_H */
2211 # define getpagesize() 8192 /* punt totally */
2212 # endif /* no HAVE_SYS_PARAM_H */
2213 # endif /* no _SC_PAGESIZE */
2215 #endif /* no HAVE_GETPAGESIZE */
2217 #ifdef __cplusplus
2218 extern "C" { void *malloc(unsigned); }
2219 #else
2220 char *malloc();
2221 #endif
2224 main()
2226 char *data, *data2, *data3;
2227 int i, pagesize;
2228 int fd;
2230 pagesize = getpagesize();
2233 * First, make a file with some known garbage in it.
2235 data = malloc(pagesize);
2236 if (!data)
2237 exit(1);
2238 for (i = 0; i < pagesize; ++i)
2239 *(data + i) = rand();
2240 umask(0);
2241 fd = creat("conftestmmap", 0600);
2242 if (fd < 0)
2243 exit(1);
2244 if (write(fd, data, pagesize) != pagesize)
2245 exit(1);
2246 close(fd);
2249 * Next, try to mmap the file at a fixed address which
2250 * already has something else allocated at it. If we can,
2251 * also make sure that we see the same garbage.
2253 fd = open("conftestmmap", O_RDWR);
2254 if (fd < 0)
2255 exit(1);
2256 data2 = malloc(2 * pagesize);
2257 if (!data2)
2258 exit(1);
2259 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2260 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2261 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2262 exit(1);
2263 for (i = 0; i < pagesize; ++i)
2264 if (*(data + i) != *(data2 + i))
2265 exit(1);
2268 * Finally, make sure that changes to the mapped area
2269 * do not percolate back to the file as seen by read().
2270 * (This is a bug on some variants of i386 svr4.0.)
2272 for (i = 0; i < pagesize; ++i)
2273 *(data2 + i) = *(data2 + i) + 1;
2274 data3 = malloc(pagesize);
2275 if (!data3)
2276 exit(1);
2277 if (read(fd, data3, pagesize) != pagesize)
2278 exit(1);
2279 for (i = 0; i < pagesize; ++i)
2280 if (*(data + i) != *(data3 + i))
2281 exit(1);
2282 close(fd);
2283 unlink("conftestmmap");
2284 exit(0);
2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2289 then
2290 ac_cv_func_mmap_fixed_mapped=yes
2291 else
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2294 rm -fr conftest*
2295 ac_cv_func_mmap_fixed_mapped=no
2297 rm -fr conftest*
2302 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2303 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2304 cat >> confdefs.h <<\EOF
2305 #define HAVE_MMAP 1
2310 saved_libs="$LIBS"
2311 LIBS="$LIBS -lc $LIBM"
2312 for ac_func in fmod strtol getcwd strerror putenv
2314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_func" >&5
2316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* System header to define __stub macros and hopefully few prototypes,
2323 which can conflict with char $ac_func(); below. */
2324 #include <assert.h>
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2328 char $ac_func();
2330 int main() {
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2336 choke me
2337 #else
2338 $ac_func();
2339 #endif
2341 ; return 0; }
2343 if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2344 rm -rf conftest*
2345 eval "ac_cv_func_$ac_func=yes"
2346 else
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2349 rm -rf conftest*
2350 eval "ac_cv_func_$ac_func=no"
2352 rm -f conftest*
2355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2358 cat >> confdefs.h <<EOF
2359 #define $ac_tr_func 1
2362 else
2363 echo "$ac_t""no" 1>&6
2364 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2366 done
2369 LIBS="$saved_libs"
2370 for ac_func in rename mkstemp strcasecmp
2372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_func" >&5
2374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2376 else
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 /* System header to define __stub macros and hopefully few prototypes,
2381 which can conflict with char $ac_func(); below. */
2382 #include <assert.h>
2383 /* Override any gcc2 internal prototype to avoid an error. */
2384 /* We use char because int might match the return type of a gcc2
2385 builtin and then its argument prototype would still apply. */
2386 char $ac_func();
2388 int main() {
2390 /* The GNU C library defines this for functions which it implements
2391 to always fail with ENOSYS. Some functions are actually named
2392 something starting with __ and the normal name is an alias. */
2393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2394 choke me
2395 #else
2396 $ac_func();
2397 #endif
2399 ; return 0; }
2401 if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2402 rm -rf conftest*
2403 eval "ac_cv_func_$ac_func=yes"
2404 else
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 rm -rf conftest*
2408 eval "ac_cv_func_$ac_func=no"
2410 rm -f conftest*
2413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2414 echo "$ac_t""yes" 1>&6
2415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2416 cat >> confdefs.h <<EOF
2417 #define $ac_tr_func 1
2420 else
2421 echo "$ac_t""no" 1>&6
2423 done
2425 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2426 echo "configure:2427: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2427 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 #include <sys/types.h>
2434 #include <signal.h>
2435 /* NetBSD declares sys_siglist in unistd.h. */
2436 #ifdef HAVE_UNISTD_H
2437 #include <unistd.h>
2438 #endif
2439 int main() {
2440 char *msg = *(sys_siglist + 1);
2441 ; return 0; }
2443 if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2444 rm -rf conftest*
2445 ac_cv_decl_sys_siglist=yes
2446 else
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2449 rm -rf conftest*
2450 ac_cv_decl_sys_siglist=no
2452 rm -f conftest*
2455 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2456 if test $ac_cv_decl_sys_siglist = yes; then
2457 cat >> confdefs.h <<\EOF
2458 #define SYS_SIGLIST_DECLARED 1
2464 ac_ext=C
2465 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CXXCPP $CPPFLAGS'
2467 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cxx_cross
2471 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2472 echo "configure:2473: checking whether ANSI array delete syntax supported" >&5
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2477 int main() {
2478 char *p = new char[5]; delete [] p;
2479 ; return 0; }
2481 if { (eval echo configure:2482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2482 rm -rf conftest*
2483 echo "$ac_t""yes" 1>&6
2484 else
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2487 rm -rf conftest*
2488 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
2489 #define ARRAY_DELETE_NEEDS_SIZE 1
2493 rm -f conftest*
2494 ac_ext=c
2495 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2498 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2499 cross_compiling=$ac_cv_prog_cc_cross
2502 ac_ext=C
2503 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2504 ac_cpp='$CXXCPP $CPPFLAGS'
2505 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2506 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2507 cross_compiling=$ac_cv_prog_cxx_cross
2509 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2510 echo "configure:2511: checking traditional preprocessor" >&5
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 #define name2(a,b) a/**/b
2515 int main() {
2516 int name2(foo,bar);
2517 ; return 0; }
2519 if { (eval echo configure:2520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2520 rm -rf conftest*
2521 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2522 #define TRADITIONAL_CPP 1
2525 else
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2528 rm -rf conftest*
2529 echo "$ac_t""no" 1>&6
2531 rm -f conftest*
2532 ac_ext=c
2533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2537 cross_compiling=$ac_cv_prog_cc_cross
2539 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2540 echo "configure:2541: checking w_coredump" >&5
2541 if test "$cross_compiling" = yes; then
2542 echo "$ac_t""no" 1>&6
2543 else
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 #include <sys/types.h>
2548 #include <sys/wait.h>
2549 main()
2551 #ifdef WCOREFLAG
2552 exit(1);
2553 #else
2554 int i = 0;
2555 ((union wait *)&i)->w_coredump = 1;
2556 exit(i != 0200);
2557 #endif
2560 if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2561 then
2562 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2563 #define WCOREFLAG 0200
2566 else
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 rm -fr conftest*
2570 echo "$ac_t""no" 1>&6
2572 rm -fr conftest*
2575 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2576 echo "configure:2577: checking default value for grops -b option" >&5
2577 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
2578 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2580 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2581 echo "configure:2582: checking default paper size" >&5
2582 if test -z "$PAGE"; then
2583 descfile=
2584 if test -r $prefix/share/groff/font/devps/DESC; then
2585 descfile=$prefix/share/groff/font/devps/DESC
2586 elif test -r $prefix/lib/groff/font/devps/DESC; then
2587 descfile=$prefix/lib/groff/font/devps/DESC
2589 if test -n "$descfile" \
2590 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
2591 PAGE=A4
2592 else
2593 PAGE=letter
2596 if test -z "$PAGE"; then
2597 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2598 /etc/resolv.conf 2>/dev/null`
2599 if test -z "$dom"; then
2600 dom=`(domainname) 2>/dev/null | tr -d '+'`
2601 if test -z "$dom"; then
2602 dom=`(hostname) 2>/dev/null | grep '\.'`
2605 # If the top-level domain is two letters and it's not `us' or `ca'
2606 # then they probably use A4 paper.
2607 case "$dom" in
2608 *.[Uu][Ss]|*.[Cc][Aa]) ;;
2609 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
2610 esac
2612 test -n "$PAGE" || PAGE=letter
2613 echo "$ac_t""$PAGE" 1>&6
2615 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2616 echo "configure:2617: checking for existing troff installation" >&5
2617 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
2618 echo "$ac_t""yes" 1>&6
2620 else
2621 echo "$ac_t""no" 1>&6
2626 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2627 echo "configure:2628: checking for prefix of system macro packages" >&5
2628 sys_tmac_prefix=
2629 sys_tmac_file_prefix=
2630 for d in /usr/share/lib/tmac /usr/lib/tmac; do
2631 for t in "" tmac.; do
2632 for m in an s m; do
2633 f=$d/$t$m
2634 if test -z "$sys_tmac_prefix" \
2635 && test -f $f \
2636 && grep '^\.if' $f >/dev/null 2>&1; then
2637 sys_tmac_prefix=$d/$t
2638 sys_tmac_file_prefix=$t
2640 done
2641 done
2642 done
2643 echo "$ac_t""$sys_tmac_prefix" 1>&6
2645 tmac_wrap=
2646 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2647 echo "configure:2648: checking which system macro packages should be made available" >&5
2648 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2649 for f in $sys_tmac_prefix*; do
2650 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2651 case "$suff" in
2652 e) ;;
2654 grep "Copyright.*Free Software Foundation" $f >/dev/null \
2655 || tmac_wrap="$tmac_wrap $suff" ;;
2656 esac
2657 done
2658 elif test -n "$sys_tmac_prefix"; then
2659 files=`echo $sys_tmac_prefix*`
2660 grep "\\.so" $files >conftest.sol
2661 for f in $files; do
2662 case "$f" in
2663 ${sys_tmac_prefix}e) ;;
2664 *.me) ;;
2665 */ms.*) ;;
2667 b=`basename $f`
2668 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
2669 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
2671 else
2672 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2673 case "$suff" in
2674 tmac.*) ;;
2675 *) tmac_wrap="$tmac_wrap $suff" ;;
2676 esac
2678 esac
2679 done
2680 rm -f conftest.sol
2682 echo "$ac_t""$tmac_wrap" 1>&6
2685 trap '' 1 2 15
2686 cat > confcache <<\EOF
2687 # This file is a shell script that caches the results of configure
2688 # tests run on this system so they can be shared between configure
2689 # scripts and configure runs. It is not useful on other systems.
2690 # If it contains results you don't want to keep, you may remove or edit it.
2692 # By default, configure uses ./config.cache as the cache file,
2693 # creating it if it does not exist already. You can give configure
2694 # the --cache-file=FILE option to use a different cache file; that is
2695 # what configure does when it calls configure scripts in
2696 # subdirectories, so they share the cache.
2697 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2698 # config.status only pays attention to the cache file if you give it the
2699 # --recheck option to rerun configure.
2702 # The following way of writing the cache mishandles newlines in values,
2703 # but we know of no workaround that is simple, portable, and efficient.
2704 # So, don't put newlines in cache variables' values.
2705 # Ultrix sh set writes to stderr and can't be redirected directly,
2706 # and sets the high bit in the cache file unless we assign to the vars.
2707 (set) 2>&1 |
2708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2709 *ac_space=\ *)
2710 # `set' does not quote correctly, so add quotes (double-quote substitution
2711 # turns \\\\ into \\, and sed turns \\ into \).
2712 sed -n \
2713 -e "s/'/'\\\\''/g" \
2714 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2717 # `set' quotes correctly as required by POSIX, so do not add quotes.
2718 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2720 esac >> confcache
2721 if cmp -s $cache_file confcache; then
2723 else
2724 if test -w $cache_file; then
2725 echo "updating cache $cache_file"
2726 cat confcache > $cache_file
2727 else
2728 echo "not updating unwritable cache $cache_file"
2731 rm -f confcache
2733 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2736 # Let make expand exec_prefix.
2737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2739 # Any assignment to VPATH causes Sun make to only execute
2740 # the first set of double-colon rules, so remove it if not needed.
2741 # If there is a colon in the path, we need to keep it.
2742 if test "x$srcdir" = x.; then
2743 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2746 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2748 # Transform confdefs.h into DEFS.
2749 # Protect against shell expansion while executing Makefile rules.
2750 # Protect against Makefile macro expansion.
2751 cat > conftest.defs <<\EOF
2752 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2753 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2754 s%\[%\\&%g
2755 s%\]%\\&%g
2756 s%\$%$$%g
2758 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2759 rm -f conftest.defs
2762 # Without the "./", some shells look in PATH for config.status.
2763 : ${CONFIG_STATUS=./config.status}
2765 echo creating $CONFIG_STATUS
2766 rm -f $CONFIG_STATUS
2767 cat > $CONFIG_STATUS <<EOF
2768 #! /bin/sh
2769 # Generated automatically by configure.
2770 # Run this file to recreate the current configuration.
2771 # This directory was configured as follows,
2772 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2774 # $0 $ac_configure_args
2776 # Compiler output produced by configure, useful for debugging
2777 # configure, is in ./config.log if it exists.
2779 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2780 for ac_option
2782 case "\$ac_option" in
2783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2784 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2785 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2786 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2787 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2788 exit 0 ;;
2789 -help | --help | --hel | --he | --h)
2790 echo "\$ac_cs_usage"; exit 0 ;;
2791 *) echo "\$ac_cs_usage"; exit 1 ;;
2792 esac
2793 done
2795 ac_given_srcdir=$srcdir
2796 ac_given_INSTALL="$INSTALL"
2798 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2800 cat >> $CONFIG_STATUS <<EOF
2802 # Protect against being on the right side of a sed subst in config.status.
2803 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2804 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2805 $ac_vpsub
2806 $extrasub
2807 s%@SHELL@%$SHELL%g
2808 s%@CFLAGS@%$CFLAGS%g
2809 s%@CPPFLAGS@%$CPPFLAGS%g
2810 s%@CXXFLAGS@%$CXXFLAGS%g
2811 s%@FFLAGS@%$FFLAGS%g
2812 s%@DEFS@%$DEFS%g
2813 s%@LDFLAGS@%$LDFLAGS%g
2814 s%@LIBS@%$LIBS%g
2815 s%@exec_prefix@%$exec_prefix%g
2816 s%@prefix@%$prefix%g
2817 s%@program_transform_name@%$program_transform_name%g
2818 s%@bindir@%$bindir%g
2819 s%@sbindir@%$sbindir%g
2820 s%@libexecdir@%$libexecdir%g
2821 s%@datadir@%$datadir%g
2822 s%@sysconfdir@%$sysconfdir%g
2823 s%@sharedstatedir@%$sharedstatedir%g
2824 s%@localstatedir@%$localstatedir%g
2825 s%@libdir@%$libdir%g
2826 s%@includedir@%$includedir%g
2827 s%@oldincludedir@%$oldincludedir%g
2828 s%@infodir@%$infodir%g
2829 s%@mandir@%$mandir%g
2830 s%@top_builddir@%$top_builddir%g
2831 s%@CC@%$CC%g
2832 s%@CXX@%$CXX%g
2833 s%@LPR@%$LPR%g
2834 s%@LP@%$LP%g
2835 s%@LPQ@%$LPQ%g
2836 s%@PSPRINT@%$PSPRINT%g
2837 s%@DVIPRINT@%$DVIPRINT%g
2838 s%@PERLPATH@%$PERLPATH%g
2839 s%@YACC@%$YACC%g
2840 s%@RANLIB@%$RANLIB%g
2841 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2842 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2843 s%@INSTALL_DATA@%$INSTALL_DATA%g
2844 s%@LN_S@%$LN_S%g
2845 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2846 s%@CPP@%$CPP%g
2847 s%@LIBM@%$LIBM%g
2848 s%@LIBOBJS@%$LIBOBJS%g
2849 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2850 s%@PAGE@%$PAGE%g
2851 s%@g@%$g%g
2852 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2853 s%@tmac_wrap@%$tmac_wrap%g
2855 CEOF
2858 cat >> $CONFIG_STATUS <<\EOF
2860 # Split the substitutions into bite-sized pieces for seds with
2861 # small command number limits, like on Digital OSF/1 and HP-UX.
2862 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2863 ac_file=1 # Number of current file.
2864 ac_beg=1 # First line for current file.
2865 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2866 ac_more_lines=:
2867 ac_sed_cmds=""
2868 while $ac_more_lines; do
2869 if test $ac_beg -gt 1; then
2870 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2871 else
2872 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2874 if test ! -s conftest.s$ac_file; then
2875 ac_more_lines=false
2876 rm -f conftest.s$ac_file
2877 else
2878 if test -z "$ac_sed_cmds"; then
2879 ac_sed_cmds="sed -f conftest.s$ac_file"
2880 else
2881 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2883 ac_file=`expr $ac_file + 1`
2884 ac_beg=$ac_end
2885 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2887 done
2888 if test -z "$ac_sed_cmds"; then
2889 ac_sed_cmds=cat
2893 cat >> $CONFIG_STATUS <<EOF
2895 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2897 cat >> $CONFIG_STATUS <<\EOF
2898 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2900 case "$ac_file" in
2901 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2902 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2903 *) ac_file_in="${ac_file}.in" ;;
2904 esac
2906 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2908 # Remove last slash and all that follows it. Not all systems have dirname.
2909 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2910 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2911 # The file is in a subdirectory.
2912 test ! -d "$ac_dir" && mkdir "$ac_dir"
2913 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2914 # A "../" for each directory in $ac_dir_suffix.
2915 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2916 else
2917 ac_dir_suffix= ac_dots=
2920 case "$ac_given_srcdir" in
2921 .) srcdir=.
2922 if test -z "$ac_dots"; then top_srcdir=.
2923 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2924 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2925 *) # Relative path.
2926 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2927 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2928 esac
2930 case "$ac_given_INSTALL" in
2931 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2932 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2933 esac
2935 echo creating "$ac_file"
2936 rm -f "$ac_file"
2937 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2938 case "$ac_file" in
2939 *Makefile*) ac_comsub="1i\\
2940 # $configure_input" ;;
2941 *) ac_comsub= ;;
2942 esac
2944 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2945 sed -e "$ac_comsub
2946 s%@configure_input@%$configure_input%g
2947 s%@srcdir@%$srcdir%g
2948 s%@top_srcdir@%$top_srcdir%g
2949 s%@INSTALL@%$INSTALL%g
2950 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2951 fi; done
2952 rm -f conftest.s*
2955 cat >> $CONFIG_STATUS <<EOF
2958 cat >> $CONFIG_STATUS <<\EOF
2960 exit 0
2962 chmod +x $CONFIG_STATUS
2963 rm -fr confdefs* $ac_clean_files
2964 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1