Replacing Imakefile with Imakefile.in.
[s-roff.git] / configure
blob4c85d4eb7fc501b86a55a2be6c4170a4baccda5d
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 putenv""... $ac_c" 1>&6
1535 echo "configure:1536: checking declaration of putenv" >&5
1536 cat > conftest.$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1539 #include <stdlib.h>
1540 extern "C" { void putenv(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_PUTENV 1
1557 rm -f conftest*
1558 ac_ext=c
1559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1560 ac_cpp='$CPP $CPPFLAGS'
1561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1563 cross_compiling=$ac_cv_prog_cc_cross
1566 ac_ext=C
1567 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1568 ac_cpp='$CXXCPP $CPPFLAGS'
1569 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1570 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1571 cross_compiling=$ac_cv_prog_cxx_cross
1573 echo $ac_n "checking declaration of popen""... $ac_c" 1>&6
1574 echo "configure:1575: checking declaration of popen" >&5
1575 cat > conftest.$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1578 #include <stdio.h>
1579 extern "C" { void popen(int); }
1580 int main() {
1582 ; return 0; }
1584 if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1585 rm -rf conftest*
1586 echo "$ac_t""no" 1>&6
1587 else
1588 echo "configure: failed program was:" >&5
1589 cat conftest.$ac_ext >&5
1590 rm -rf conftest*
1591 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1592 #define STDIO_H_DECLARES_POPEN 1
1596 rm -f conftest*
1597 ac_ext=c
1598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1599 ac_cpp='$CPP $CPPFLAGS'
1600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1602 cross_compiling=$ac_cv_prog_cc_cross
1605 ac_ext=C
1606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1607 ac_cpp='$CXXCPP $CPPFLAGS'
1608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1610 cross_compiling=$ac_cv_prog_cxx_cross
1612 echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6
1613 echo "configure:1614: checking declaration of pclose" >&5
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 #include <stdio.h>
1618 extern "C" { void pclose(int); }
1619 int main() {
1621 ; return 0; }
1623 if { (eval echo configure:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1624 rm -rf conftest*
1625 echo "$ac_t""no" 1>&6
1626 else
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1629 rm -rf conftest*
1630 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1631 #define STDIO_H_DECLARES_PCLOSE 1
1635 rm -f conftest*
1636 ac_ext=c
1637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1638 ac_cpp='$CPP $CPPFLAGS'
1639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1641 cross_compiling=$ac_cv_prog_cc_cross
1644 ac_ext=C
1645 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1646 ac_cpp='$CXXCPP $CPPFLAGS'
1647 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1648 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1649 cross_compiling=$ac_cv_prog_cxx_cross
1651 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1652 echo "configure:1653: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1656 #include <errno.h>
1657 #include <stdio.h>
1658 int main() {
1659 int k; k = sys_nerr;
1660 ; return 0; }
1662 if { (eval echo configure:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1663 rm -rf conftest*
1664 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1665 #define HAVE_SYS_NERR 1
1668 else
1669 echo "configure: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1671 rm -rf conftest*
1672 echo "$ac_t""no" 1>&6
1674 rm -f conftest*
1675 ac_ext=c
1676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1677 ac_cpp='$CPP $CPPFLAGS'
1678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1680 cross_compiling=$ac_cv_prog_cc_cross
1683 ac_ext=C
1684 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1685 ac_cpp='$CXXCPP $CPPFLAGS'
1686 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1687 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1688 cross_compiling=$ac_cv_prog_cxx_cross
1690 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1691 echo "configure:1692: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 #include <errno.h>
1696 #include <stdio.h>
1697 int main() {
1698 int k; k = (int)sys_errlist[0];
1699 ; return 0; }
1701 if { (eval echo configure:1702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1702 rm -rf conftest*
1703 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1704 #define HAVE_SYS_ERRLIST 1
1707 else
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1710 rm -rf conftest*
1711 echo "$ac_t""no" 1>&6
1713 rm -f conftest*
1714 ac_ext=c
1715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1716 ac_cpp='$CPP $CPPFLAGS'
1717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1719 cross_compiling=$ac_cv_prog_cc_cross
1722 ac_ext=C
1723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1724 ac_cpp='$CXXCPP $CPPFLAGS'
1725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1727 cross_compiling=$ac_cv_prog_cxx_cross
1729 echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6
1730 echo "configure:1731: checking declaration of hypot" >&5
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 #include <math.h>
1735 extern "C" { double hypot(double,double); }
1736 int main() {
1738 ; return 0; }
1740 if { (eval echo configure:1741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1741 rm -rf conftest*
1742 echo "$ac_t""no" 1>&6
1743 else
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1746 rm -rf conftest*
1747 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1748 #define MATH_H_DECLARES_HYPOT 1
1752 rm -f conftest*
1753 ac_ext=c
1754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1755 ac_cpp='$CPP $CPPFLAGS'
1756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1758 cross_compiling=$ac_cv_prog_cc_cross
1761 ac_ext=C
1762 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1763 ac_cpp='$CXXCPP $CPPFLAGS'
1764 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1765 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1766 cross_compiling=$ac_cv_prog_cxx_cross
1768 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
1769 echo "configure:1770: checking C++ <osfcn.h>" >&5
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 #include <osfcn.h>
1774 int main() {
1775 read(0, 0, 0); open(0, 0);
1776 ; return 0; }
1778 if { (eval echo configure:1779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1779 rm -rf conftest*
1780 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1781 #define HAVE_CC_OSFCN_H 1
1784 else
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1787 rm -rf conftest*
1788 echo "$ac_t""no" 1>&6
1790 rm -f conftest*
1791 ac_ext=c
1792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1793 ac_cpp='$CPP $CPPFLAGS'
1794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1796 cross_compiling=$ac_cv_prog_cc_cross
1799 ac_ext=C
1800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1801 ac_cpp='$CXXCPP $CPPFLAGS'
1802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1804 cross_compiling=$ac_cv_prog_cxx_cross
1806 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
1807 echo "configure:1808: checking C++ <limits.h>" >&5
1808 cat > conftest.$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1811 #include <limits.h>
1812 int main() {
1813 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1814 ; return 0; }
1816 if { (eval echo configure:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1817 rm -rf conftest*
1818 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1819 #define HAVE_CC_LIMITS_H 1
1822 else
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1825 rm -rf conftest*
1826 echo "$ac_t""no" 1>&6
1828 rm -f conftest*
1829 ac_ext=c
1830 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1833 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1834 cross_compiling=$ac_cv_prog_cc_cross
1837 ac_ext=C
1838 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1839 ac_cpp='$CXXCPP $CPPFLAGS'
1840 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1841 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1842 cross_compiling=$ac_cv_prog_cxx_cross
1844 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
1845 echo "configure:1846: checking for declaration of time_t" >&5
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 #include <time.h>
1850 int main() {
1851 time_t t = time(0); struct tm *p = localtime(&t);
1852 ; return 0; }
1854 if { (eval echo configure:1855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1855 rm -rf conftest*
1856 echo "$ac_t""yes" 1>&6
1857 else
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 rm -rf conftest*
1861 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
1862 #define LONG_FOR_TIME_T 1
1866 rm -f conftest*
1867 ac_ext=c
1868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1871 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1872 cross_compiling=$ac_cv_prog_cc_cross
1874 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1875 echo "configure:1876: checking return type of signal handlers" >&5
1876 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 #include <sys/types.h>
1883 #include <signal.h>
1884 #ifdef signal
1885 #undef signal
1886 #endif
1887 #ifdef __cplusplus
1888 extern "C" void (*signal (int, void (*)(int)))(int);
1889 #else
1890 void (*signal ()) ();
1891 #endif
1893 int main() {
1894 int i;
1895 ; return 0; }
1897 if { (eval echo configure:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1898 rm -rf conftest*
1899 ac_cv_type_signal=void
1900 else
1901 echo "configure: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 rm -rf conftest*
1904 ac_cv_type_signal=int
1906 rm -f conftest*
1909 echo "$ac_t""$ac_cv_type_signal" 1>&6
1910 cat >> confdefs.h <<EOF
1911 #define RETSIGTYPE $ac_cv_type_signal
1915 echo $ac_n "checking struct exception""... $ac_c" 1>&6
1916 echo "configure:1917: checking struct exception" >&5
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 #include <math.h>
1921 int main() {
1922 struct exception e;
1923 ; return 0; }
1925 if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1926 rm -rf conftest*
1927 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
1928 #define HAVE_STRUCT_EXCEPTION 1
1931 else
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1934 rm -rf conftest*
1935 echo "$ac_t""no" 1>&6
1937 rm -f conftest*
1938 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1939 echo "configure:1940: checking for sin in -lm" >&5
1940 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1943 else
1944 ac_save_LIBS="$LIBS"
1945 LIBS="-lm $LIBS"
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1949 /* Override any gcc2 internal prototype to avoid an error. */
1950 /* We use char because int might match the return type of a gcc2
1951 builtin and then its argument prototype would still apply. */
1952 char sin();
1954 int main() {
1955 sin()
1956 ; return 0; }
1958 if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1959 rm -rf conftest*
1960 eval "ac_cv_lib_$ac_lib_var=yes"
1961 else
1962 echo "configure: failed program was:" >&5
1963 cat conftest.$ac_ext >&5
1964 rm -rf conftest*
1965 eval "ac_cv_lib_$ac_lib_var=no"
1967 rm -f conftest*
1968 LIBS="$ac_save_LIBS"
1971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 LIBM=-lm
1974 else
1975 echo "$ac_t""no" 1>&6
1980 for ac_hdr in unistd.h
1982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1984 echo "configure:1985: checking for $ac_hdr" >&5
1985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1987 else
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 #include <$ac_hdr>
1993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1994 { (eval echo configure:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1996 if test -z "$ac_err"; then
1997 rm -rf conftest*
1998 eval "ac_cv_header_$ac_safe=yes"
1999 else
2000 echo "$ac_err" >&5
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2003 rm -rf conftest*
2004 eval "ac_cv_header_$ac_safe=no"
2006 rm -f conftest*
2008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2011 cat >> confdefs.h <<EOF
2012 #define $ac_tr_hdr 1
2015 else
2016 echo "$ac_t""no" 1>&6
2018 done
2020 for ac_func in getpagesize
2022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2023 echo "configure:2024: checking for $ac_func" >&5
2024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2026 else
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 /* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char $ac_func(); below. */
2032 #include <assert.h>
2033 /* Override any gcc2 internal prototype to avoid an error. */
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2036 char $ac_func();
2038 int main() {
2040 /* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2044 choke me
2045 #else
2046 $ac_func();
2047 #endif
2049 ; return 0; }
2051 if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2052 rm -rf conftest*
2053 eval "ac_cv_func_$ac_func=yes"
2054 else
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2057 rm -rf conftest*
2058 eval "ac_cv_func_$ac_func=no"
2060 rm -f conftest*
2063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2064 echo "$ac_t""yes" 1>&6
2065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2066 cat >> confdefs.h <<EOF
2067 #define $ac_tr_func 1
2070 else
2071 echo "$ac_t""no" 1>&6
2073 done
2075 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2076 echo "configure:2077: checking for working mmap" >&5
2077 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2079 else
2080 if test "$cross_compiling" = yes; then
2081 ac_cv_func_mmap_fixed_mapped=no
2082 else
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2087 /* Thanks to Mike Haertel and Jim Avera for this test.
2088 Here is a matrix of mmap possibilities:
2089 mmap private not fixed
2090 mmap private fixed at somewhere currently unmapped
2091 mmap private fixed at somewhere already mapped
2092 mmap shared not fixed
2093 mmap shared fixed at somewhere currently unmapped
2094 mmap shared fixed at somewhere already mapped
2095 For private mappings, we should verify that changes cannot be read()
2096 back from the file, nor mmap's back from the file at a different
2097 address. (There have been systems where private was not correctly
2098 implemented like the infamous i386 svr4.0, and systems where the
2099 VM page cache was not coherent with the filesystem buffer cache
2100 like early versions of FreeBSD and possibly contemporary NetBSD.)
2101 For shared mappings, we should conversely verify that changes get
2102 propogated back to all the places they're supposed to be.
2104 Grep wants private fixed already mapped.
2105 The main things grep needs to know about mmap are:
2106 * does it exist and is it safe to write into the mmap'd area
2107 * how to use it (BSD variants) */
2108 #include <sys/types.h>
2109 #include <fcntl.h>
2110 #include <sys/mman.h>
2112 /* This mess was copied from the GNU getpagesize.h. */
2113 #ifndef HAVE_GETPAGESIZE
2114 # ifdef HAVE_UNISTD_H
2115 # include <unistd.h>
2116 # endif
2118 /* Assume that all systems that can run configure have sys/param.h. */
2119 # ifndef HAVE_SYS_PARAM_H
2120 # define HAVE_SYS_PARAM_H 1
2121 # endif
2123 # ifdef _SC_PAGESIZE
2124 # define getpagesize() sysconf(_SC_PAGESIZE)
2125 # else /* no _SC_PAGESIZE */
2126 # ifdef HAVE_SYS_PARAM_H
2127 # include <sys/param.h>
2128 # ifdef EXEC_PAGESIZE
2129 # define getpagesize() EXEC_PAGESIZE
2130 # else /* no EXEC_PAGESIZE */
2131 # ifdef NBPG
2132 # define getpagesize() NBPG * CLSIZE
2133 # ifndef CLSIZE
2134 # define CLSIZE 1
2135 # endif /* no CLSIZE */
2136 # else /* no NBPG */
2137 # ifdef NBPC
2138 # define getpagesize() NBPC
2139 # else /* no NBPC */
2140 # ifdef PAGESIZE
2141 # define getpagesize() PAGESIZE
2142 # endif /* PAGESIZE */
2143 # endif /* no NBPC */
2144 # endif /* no NBPG */
2145 # endif /* no EXEC_PAGESIZE */
2146 # else /* no HAVE_SYS_PARAM_H */
2147 # define getpagesize() 8192 /* punt totally */
2148 # endif /* no HAVE_SYS_PARAM_H */
2149 # endif /* no _SC_PAGESIZE */
2151 #endif /* no HAVE_GETPAGESIZE */
2153 #ifdef __cplusplus
2154 extern "C" { void *malloc(unsigned); }
2155 #else
2156 char *malloc();
2157 #endif
2160 main()
2162 char *data, *data2, *data3;
2163 int i, pagesize;
2164 int fd;
2166 pagesize = getpagesize();
2169 * First, make a file with some known garbage in it.
2171 data = malloc(pagesize);
2172 if (!data)
2173 exit(1);
2174 for (i = 0; i < pagesize; ++i)
2175 *(data + i) = rand();
2176 umask(0);
2177 fd = creat("conftestmmap", 0600);
2178 if (fd < 0)
2179 exit(1);
2180 if (write(fd, data, pagesize) != pagesize)
2181 exit(1);
2182 close(fd);
2185 * Next, try to mmap the file at a fixed address which
2186 * already has something else allocated at it. If we can,
2187 * also make sure that we see the same garbage.
2189 fd = open("conftestmmap", O_RDWR);
2190 if (fd < 0)
2191 exit(1);
2192 data2 = malloc(2 * pagesize);
2193 if (!data2)
2194 exit(1);
2195 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2196 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2197 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2198 exit(1);
2199 for (i = 0; i < pagesize; ++i)
2200 if (*(data + i) != *(data2 + i))
2201 exit(1);
2204 * Finally, make sure that changes to the mapped area
2205 * do not percolate back to the file as seen by read().
2206 * (This is a bug on some variants of i386 svr4.0.)
2208 for (i = 0; i < pagesize; ++i)
2209 *(data2 + i) = *(data2 + i) + 1;
2210 data3 = malloc(pagesize);
2211 if (!data3)
2212 exit(1);
2213 if (read(fd, data3, pagesize) != pagesize)
2214 exit(1);
2215 for (i = 0; i < pagesize; ++i)
2216 if (*(data + i) != *(data3 + i))
2217 exit(1);
2218 close(fd);
2219 unlink("conftestmmap");
2220 exit(0);
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2225 then
2226 ac_cv_func_mmap_fixed_mapped=yes
2227 else
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2230 rm -fr conftest*
2231 ac_cv_func_mmap_fixed_mapped=no
2233 rm -fr conftest*
2238 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2239 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2240 cat >> confdefs.h <<\EOF
2241 #define HAVE_MMAP 1
2246 saved_libs="$LIBS"
2247 LIBS="$LIBS -lc $LIBM"
2248 for ac_func in fmod strtol getcwd strerror putenv
2250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_func" >&5
2252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2254 else
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 /* System header to define __stub macros and hopefully few prototypes,
2259 which can conflict with char $ac_func(); below. */
2260 #include <assert.h>
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 /* We use char because int might match the return type of a gcc2
2263 builtin and then its argument prototype would still apply. */
2264 char $ac_func();
2266 int main() {
2268 /* The GNU C library defines this for functions which it implements
2269 to always fail with ENOSYS. Some functions are actually named
2270 something starting with __ and the normal name is an alias. */
2271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2272 choke me
2273 #else
2274 $ac_func();
2275 #endif
2277 ; return 0; }
2279 if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2280 rm -rf conftest*
2281 eval "ac_cv_func_$ac_func=yes"
2282 else
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2285 rm -rf conftest*
2286 eval "ac_cv_func_$ac_func=no"
2288 rm -f conftest*
2291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2292 echo "$ac_t""yes" 1>&6
2293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2294 cat >> confdefs.h <<EOF
2295 #define $ac_tr_func 1
2298 else
2299 echo "$ac_t""no" 1>&6
2300 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2302 done
2305 LIBS="$saved_libs"
2306 for ac_func in rename mkstemp strcasecmp
2308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2309 echo "configure:2310: checking for $ac_func" >&5
2310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2312 else
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 /* System header to define __stub macros and hopefully few prototypes,
2317 which can conflict with char $ac_func(); below. */
2318 #include <assert.h>
2319 /* Override any gcc2 internal prototype to avoid an error. */
2320 /* We use char because int might match the return type of a gcc2
2321 builtin and then its argument prototype would still apply. */
2322 char $ac_func();
2324 int main() {
2326 /* The GNU C library defines this for functions which it implements
2327 to always fail with ENOSYS. Some functions are actually named
2328 something starting with __ and the normal name is an alias. */
2329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2330 choke me
2331 #else
2332 $ac_func();
2333 #endif
2335 ; return 0; }
2337 if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2338 rm -rf conftest*
2339 eval "ac_cv_func_$ac_func=yes"
2340 else
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 rm -rf conftest*
2344 eval "ac_cv_func_$ac_func=no"
2346 rm -f conftest*
2349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2350 echo "$ac_t""yes" 1>&6
2351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2352 cat >> confdefs.h <<EOF
2353 #define $ac_tr_func 1
2356 else
2357 echo "$ac_t""no" 1>&6
2359 done
2361 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2362 echo "configure:2363: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2363 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2365 else
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #include <sys/types.h>
2370 #include <signal.h>
2371 /* NetBSD declares sys_siglist in unistd.h. */
2372 #ifdef HAVE_UNISTD_H
2373 #include <unistd.h>
2374 #endif
2375 int main() {
2376 char *msg = *(sys_siglist + 1);
2377 ; return 0; }
2379 if { (eval echo configure:2380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2380 rm -rf conftest*
2381 ac_cv_decl_sys_siglist=yes
2382 else
2383 echo "configure: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2385 rm -rf conftest*
2386 ac_cv_decl_sys_siglist=no
2388 rm -f conftest*
2391 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2392 if test $ac_cv_decl_sys_siglist = yes; then
2393 cat >> confdefs.h <<\EOF
2394 #define SYS_SIGLIST_DECLARED 1
2400 ac_ext=C
2401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2402 ac_cpp='$CXXCPP $CPPFLAGS'
2403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2405 cross_compiling=$ac_cv_prog_cxx_cross
2407 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2408 echo "configure:2409: checking whether ANSI array delete syntax supported" >&5
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2413 int main() {
2414 char *p = new char[5]; delete [] p;
2415 ; return 0; }
2417 if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2418 rm -rf conftest*
2419 echo "$ac_t""yes" 1>&6
2420 else
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 rm -rf conftest*
2424 echo "$ac_t""no" 1>&6;cat >> confdefs.h <<\EOF
2425 #define ARRAY_DELETE_NEEDS_SIZE 1
2429 rm -f conftest*
2430 ac_ext=c
2431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2435 cross_compiling=$ac_cv_prog_cc_cross
2438 ac_ext=C
2439 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2440 ac_cpp='$CXXCPP $CPPFLAGS'
2441 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2442 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2443 cross_compiling=$ac_cv_prog_cxx_cross
2445 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2446 echo "configure:2447: checking traditional preprocessor" >&5
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 #define name2(a,b) a/**/b
2451 int main() {
2452 int name2(foo,bar);
2453 ; return 0; }
2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2456 rm -rf conftest*
2457 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2458 #define TRADITIONAL_CPP 1
2461 else
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 rm -rf conftest*
2465 echo "$ac_t""no" 1>&6
2467 rm -f conftest*
2468 ac_ext=c
2469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2470 ac_cpp='$CPP $CPPFLAGS'
2471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2473 cross_compiling=$ac_cv_prog_cc_cross
2475 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2476 echo "configure:2477: checking w_coredump" >&5
2477 if test "$cross_compiling" = yes; then
2478 echo "$ac_t""no" 1>&6
2479 else
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 #include <sys/types.h>
2484 #include <sys/wait.h>
2485 main()
2487 #ifdef WCOREFLAG
2488 exit(1);
2489 #else
2490 int i = 0;
2491 ((union wait *)&i)->w_coredump = 1;
2492 exit(i != 0200);
2493 #endif
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2497 then
2498 echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
2499 #define WCOREFLAG 0200
2502 else
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 rm -fr conftest*
2506 echo "$ac_t""no" 1>&6
2508 rm -fr conftest*
2511 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2512 echo "configure:2513: checking default value for grops -b option" >&5
2513 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=7
2514 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2516 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2517 echo "configure:2518: checking default paper size" >&5
2518 if test -z "$PAGE"; then
2519 descfile=
2520 if test -r $prefix/share/groff/font/devps/DESC; then
2521 descfile=$prefix/share/groff/font/devps/DESC
2522 elif test -r $prefix/lib/groff/font/devps/DESC; then
2523 descfile=$prefix/lib/groff/font/devps/DESC
2525 if test -n "$descfile" \
2526 && grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
2527 PAGE=A4
2528 else
2529 PAGE=letter
2532 if test -z "$PAGE"; then
2533 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2534 /etc/resolv.conf 2>/dev/null`
2535 if test -z "$dom"; then
2536 dom=`(domainname) 2>/dev/null | tr -d '+'`
2537 if test -z "$dom"; then
2538 dom=`(hostname) 2>/dev/null | grep '\.'`
2541 # If the top-level domain is two letters and it's not `us' or `ca'
2542 # then they probably use A4 paper.
2543 case "$dom" in
2544 *.[Uu][Ss]|*.[Cc][Aa]) ;;
2545 *.[A-Za-z][A-Za-z]) PAGE=A4 ;;
2546 esac
2548 test -n "$PAGE" || PAGE=letter
2549 echo "$ac_t""$PAGE" 1>&6
2551 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2552 echo "configure:2553: checking for existing troff installation" >&5
2553 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
2554 echo "$ac_t""yes" 1>&6
2556 else
2557 echo "$ac_t""no" 1>&6
2562 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2563 echo "configure:2564: checking for prefix of system macro packages" >&5
2564 sys_tmac_prefix=
2565 sys_tmac_file_prefix=
2566 for d in /usr/share/lib/tmac /usr/lib/tmac; do
2567 for t in "" tmac.; do
2568 for m in an s m; do
2569 f=$d/$t$m
2570 if test -z "$sys_tmac_prefix" \
2571 && test -f $f \
2572 && grep '^\.if' $f >/dev/null 2>&1; then
2573 sys_tmac_prefix=$d/$t
2574 sys_tmac_file_prefix=$t
2576 done
2577 done
2578 done
2579 echo "$ac_t""$sys_tmac_prefix" 1>&6
2581 tmac_wrap=
2582 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2583 echo "configure:2584: checking which system macro packages should be made available" >&5
2584 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2585 for f in $sys_tmac_prefix*; do
2586 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2587 case "$suff" in
2588 e) ;;
2590 grep "Copyright.*Free Software Foundation" $f >/dev/null \
2591 || tmac_wrap="$tmac_wrap $suff" ;;
2592 esac
2593 done
2594 elif test -n "$sys_tmac_prefix"; then
2595 files=`echo $sys_tmac_prefix*`
2596 grep "\\.so" $files >conftest.sol
2597 for f in $files; do
2598 case "$f" in
2599 ${sys_tmac_prefix}e) ;;
2600 *.me) ;;
2601 */ms.*) ;;
2603 b=`basename $f`
2604 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
2605 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
2607 else
2608 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2609 case "$suff" in
2610 tmac.*) ;;
2611 *) tmac_wrap="$tmac_wrap $suff" ;;
2612 esac
2614 esac
2615 done
2616 rm -f conftest.sol
2618 echo "$ac_t""$tmac_wrap" 1>&6
2621 trap '' 1 2 15
2622 cat > confcache <<\EOF
2623 # This file is a shell script that caches the results of configure
2624 # tests run on this system so they can be shared between configure
2625 # scripts and configure runs. It is not useful on other systems.
2626 # If it contains results you don't want to keep, you may remove or edit it.
2628 # By default, configure uses ./config.cache as the cache file,
2629 # creating it if it does not exist already. You can give configure
2630 # the --cache-file=FILE option to use a different cache file; that is
2631 # what configure does when it calls configure scripts in
2632 # subdirectories, so they share the cache.
2633 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2634 # config.status only pays attention to the cache file if you give it the
2635 # --recheck option to rerun configure.
2638 # The following way of writing the cache mishandles newlines in values,
2639 # but we know of no workaround that is simple, portable, and efficient.
2640 # So, don't put newlines in cache variables' values.
2641 # Ultrix sh set writes to stderr and can't be redirected directly,
2642 # and sets the high bit in the cache file unless we assign to the vars.
2643 (set) 2>&1 |
2644 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2645 *ac_space=\ *)
2646 # `set' does not quote correctly, so add quotes (double-quote substitution
2647 # turns \\\\ into \\, and sed turns \\ into \).
2648 sed -n \
2649 -e "s/'/'\\\\''/g" \
2650 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2653 # `set' quotes correctly as required by POSIX, so do not add quotes.
2654 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2656 esac >> confcache
2657 if cmp -s $cache_file confcache; then
2659 else
2660 if test -w $cache_file; then
2661 echo "updating cache $cache_file"
2662 cat confcache > $cache_file
2663 else
2664 echo "not updating unwritable cache $cache_file"
2667 rm -f confcache
2669 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2672 # Let make expand exec_prefix.
2673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2675 # Any assignment to VPATH causes Sun make to only execute
2676 # the first set of double-colon rules, so remove it if not needed.
2677 # If there is a colon in the path, we need to keep it.
2678 if test "x$srcdir" = x.; then
2679 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2682 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2684 # Transform confdefs.h into DEFS.
2685 # Protect against shell expansion while executing Makefile rules.
2686 # Protect against Makefile macro expansion.
2687 cat > conftest.defs <<\EOF
2688 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2689 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2690 s%\[%\\&%g
2691 s%\]%\\&%g
2692 s%\$%$$%g
2694 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2695 rm -f conftest.defs
2698 # Without the "./", some shells look in PATH for config.status.
2699 : ${CONFIG_STATUS=./config.status}
2701 echo creating $CONFIG_STATUS
2702 rm -f $CONFIG_STATUS
2703 cat > $CONFIG_STATUS <<EOF
2704 #! /bin/sh
2705 # Generated automatically by configure.
2706 # Run this file to recreate the current configuration.
2707 # This directory was configured as follows,
2708 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2710 # $0 $ac_configure_args
2712 # Compiler output produced by configure, useful for debugging
2713 # configure, is in ./config.log if it exists.
2715 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2716 for ac_option
2718 case "\$ac_option" in
2719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2720 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2721 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2722 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2723 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2724 exit 0 ;;
2725 -help | --help | --hel | --he | --h)
2726 echo "\$ac_cs_usage"; exit 0 ;;
2727 *) echo "\$ac_cs_usage"; exit 1 ;;
2728 esac
2729 done
2731 ac_given_srcdir=$srcdir
2732 ac_given_INSTALL="$INSTALL"
2734 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2736 cat >> $CONFIG_STATUS <<EOF
2738 # Protect against being on the right side of a sed subst in config.status.
2739 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2740 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2741 $ac_vpsub
2742 $extrasub
2743 s%@SHELL@%$SHELL%g
2744 s%@CFLAGS@%$CFLAGS%g
2745 s%@CPPFLAGS@%$CPPFLAGS%g
2746 s%@CXXFLAGS@%$CXXFLAGS%g
2747 s%@FFLAGS@%$FFLAGS%g
2748 s%@DEFS@%$DEFS%g
2749 s%@LDFLAGS@%$LDFLAGS%g
2750 s%@LIBS@%$LIBS%g
2751 s%@exec_prefix@%$exec_prefix%g
2752 s%@prefix@%$prefix%g
2753 s%@program_transform_name@%$program_transform_name%g
2754 s%@bindir@%$bindir%g
2755 s%@sbindir@%$sbindir%g
2756 s%@libexecdir@%$libexecdir%g
2757 s%@datadir@%$datadir%g
2758 s%@sysconfdir@%$sysconfdir%g
2759 s%@sharedstatedir@%$sharedstatedir%g
2760 s%@localstatedir@%$localstatedir%g
2761 s%@libdir@%$libdir%g
2762 s%@includedir@%$includedir%g
2763 s%@oldincludedir@%$oldincludedir%g
2764 s%@infodir@%$infodir%g
2765 s%@mandir@%$mandir%g
2766 s%@top_builddir@%$top_builddir%g
2767 s%@CC@%$CC%g
2768 s%@CXX@%$CXX%g
2769 s%@LPR@%$LPR%g
2770 s%@LP@%$LP%g
2771 s%@LPQ@%$LPQ%g
2772 s%@PSPRINT@%$PSPRINT%g
2773 s%@DVIPRINT@%$DVIPRINT%g
2774 s%@PERLPATH@%$PERLPATH%g
2775 s%@YACC@%$YACC%g
2776 s%@RANLIB@%$RANLIB%g
2777 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2778 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2779 s%@INSTALL_DATA@%$INSTALL_DATA%g
2780 s%@LN_S@%$LN_S%g
2781 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2782 s%@CPP@%$CPP%g
2783 s%@LIBM@%$LIBM%g
2784 s%@LIBOBJS@%$LIBOBJS%g
2785 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2786 s%@PAGE@%$PAGE%g
2787 s%@g@%$g%g
2788 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2789 s%@tmac_wrap@%$tmac_wrap%g
2791 CEOF
2794 cat >> $CONFIG_STATUS <<\EOF
2796 # Split the substitutions into bite-sized pieces for seds with
2797 # small command number limits, like on Digital OSF/1 and HP-UX.
2798 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2799 ac_file=1 # Number of current file.
2800 ac_beg=1 # First line for current file.
2801 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2802 ac_more_lines=:
2803 ac_sed_cmds=""
2804 while $ac_more_lines; do
2805 if test $ac_beg -gt 1; then
2806 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2807 else
2808 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2810 if test ! -s conftest.s$ac_file; then
2811 ac_more_lines=false
2812 rm -f conftest.s$ac_file
2813 else
2814 if test -z "$ac_sed_cmds"; then
2815 ac_sed_cmds="sed -f conftest.s$ac_file"
2816 else
2817 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2819 ac_file=`expr $ac_file + 1`
2820 ac_beg=$ac_end
2821 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2823 done
2824 if test -z "$ac_sed_cmds"; then
2825 ac_sed_cmds=cat
2829 cat >> $CONFIG_STATUS <<EOF
2831 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2833 cat >> $CONFIG_STATUS <<\EOF
2834 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2835 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2836 case "$ac_file" in
2837 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2838 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2839 *) ac_file_in="${ac_file}.in" ;;
2840 esac
2842 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2844 # Remove last slash and all that follows it. Not all systems have dirname.
2845 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2846 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2847 # The file is in a subdirectory.
2848 test ! -d "$ac_dir" && mkdir "$ac_dir"
2849 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2850 # A "../" for each directory in $ac_dir_suffix.
2851 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2852 else
2853 ac_dir_suffix= ac_dots=
2856 case "$ac_given_srcdir" in
2857 .) srcdir=.
2858 if test -z "$ac_dots"; then top_srcdir=.
2859 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2860 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2861 *) # Relative path.
2862 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2863 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2864 esac
2866 case "$ac_given_INSTALL" in
2867 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2868 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2869 esac
2871 echo creating "$ac_file"
2872 rm -f "$ac_file"
2873 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2874 case "$ac_file" in
2875 *Makefile*) ac_comsub="1i\\
2876 # $configure_input" ;;
2877 *) ac_comsub= ;;
2878 esac
2880 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2881 sed -e "$ac_comsub
2882 s%@configure_input@%$configure_input%g
2883 s%@srcdir@%$srcdir%g
2884 s%@top_srcdir@%$top_srcdir%g
2885 s%@INSTALL@%$INSTALL%g
2886 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2887 fi; done
2888 rm -f conftest.s*
2891 cat >> $CONFIG_STATUS <<EOF
2894 cat >> $CONFIG_STATUS <<\EOF
2896 exit 0
2898 chmod +x $CONFIG_STATUS
2899 rm -fr confdefs* $ac_clean_files
2900 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1