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.
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.
19 cache_file
=.
/config.cache
28 program_transform_name
=s
,x
,x
,
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.
52 SHELL
=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
78 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
79 bindir
="$ac_optarg" ;;
81 -build |
--build |
--buil |
--bui |
--bu)
83 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
86 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
87 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
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)
95 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
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'`
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.
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.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
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
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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"
189 -host |
--host |
--hos |
--ho)
191 -host=* |
--host=* |
--hos=* |
--ho=*)
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)
203 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
204 infodir
="$ac_optarg" ;;
206 -libdir |
--libdir |
--libdi |
--libd)
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)
229 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
230 mandir
="$ac_optarg" ;;
233 # Obsolete; use --without-fp.
236 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
240 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
241 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
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)
293 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
295 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
297 sbindir
="$ac_optarg" ;;
299 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
300 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
301 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
303 ac_prev
=sharedstatedir
;;
304 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
305 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
306 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
308 sharedstatedir
="$ac_optarg" ;;
310 -site |
--site |
--sit)
312 -site=* |
--site=* |
--sit=*)
315 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
329 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
330 target
="$ac_optarg" ;;
332 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
335 -version |
--version |
--versio |
--versi |
--vers)
336 echo "configure generated by autoconf version 2.13"
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'`
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" ;;
362 # Obsolete; use --with-x.
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; }
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:
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
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
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" ;;
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.
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.
461 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
464 if test ! -r $srcdir/$ac_unique_file; then
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; }
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"
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"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
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
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
520 ac_n
= ac_c
='\c' ac_t
=
524 ac_srcdir_defaulted
=no
525 srcdir
=`cd $srcdir; 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
537 if test -n "$CC"; then
538 ac_cv_prog_CC
="$CC" # Let the user override the test.
540 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
542 for ac_dir
in $ac_dummy; do
543 test -z "$ac_dir" && ac_dir
=.
544 if test -f $ac_dir/$ac_word; then
553 if test -n "$CC"; then
554 echo "$ac_t""$CC" 1>&6
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
567 if test -n "$CC"; then
568 ac_cv_prog_CC
="$CC" # Let the user override the test.
570 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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
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
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.
594 set dummy
"$ac_dir/$ac_word" "$@"
602 if test -n "$CC"; then
603 echo "$ac_t""$CC" 1>&6
605 echo "$ac_t""no" 1>&6
608 if test -z "$CC"; then
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
618 if test -n "$CC"; then
619 ac_cv_prog_CC
="$CC" # Let the user override the test.
621 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
623 for ac_dir
in $ac_dummy; do
624 test -z "$ac_dir" && ac_dir
=.
625 if test -f $ac_dir/$ac_word; then
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
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
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"
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
668 ac_cv_prog_cc_cross
=yes
671 echo "configure: failed program was:" >&5
672 cat conftest.
$ac_ext >&5
673 ac_cv_prog_cc_works
=no
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
697 cat > conftest.c
<<EOF
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
709 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
711 if test $ac_cv_prog_gcc = yes; then
717 ac_test_CFLAGS
="${CFLAGS+set}"
718 ac_save_CFLAGS
="$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
725 echo 'void f(){}' > conftest.c
726 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
745 if test "$GCC" = yes; then
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
761 if test -n "$CXX"; then
762 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
776 CXX
="$ac_cv_prog_CXX"
777 if test -n "$CXX"; then
778 echo "$ac_t""$CXX" 1>&6
780 echo "$ac_t""no" 1>&6
783 test -n "$CXX" && break
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
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
811 ac_cv_prog_cxx_cross
=yes
814 echo "configure: failed program was:" >&5
815 cat conftest.
$ac_ext >&5
816 ac_cv_prog_cxx_works
=no
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
840 cat > conftest.C
<<EOF
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
852 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
854 if test $ac_cv_prog_gxx = yes; then
860 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
861 ac_save_CXXFLAGS
="$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
868 echo 'void f(){}' > conftest.cc
869 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
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
888 if test "$GXX" = yes; then
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
913 cat > conftest.
$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
917 extern "C" void exit(int);
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
923 echo "$ac_t""yes" 1>&6
925 echo "configure: failed program was:" >&5
926 cat conftest.
$ac_ext >&5
928 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
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
940 cat > conftest.
$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
944 extern "C" void exit(int);
954 ~A() { if (i == 1) _exit(0); }
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
962 echo "$ac_t""yes" 1>&6
964 echo "configure: failed program was:" >&5
965 cat conftest.
$ac_ext >&5
967 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
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"
982 if { (eval echo configure
:983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
984 echo "$ac_t""yes" 1>&6
986 echo "configure: failed program was:" >&5
987 cat conftest.
$ac_ext >&5
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; }
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
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
1010 if test -n "$LPR"; then
1011 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
1013 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
1025 LPR
="$ac_cv_prog_LPR"
1026 if test -n "$LPR"; then
1027 echo "$ac_t""$LPR" 1>&6
1029 echo "$ac_t""no" 1>&6
1032 test -n "$LPR" && break
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
1044 if test -n "$LP"; then
1045 ac_cv_prog_LP
="$LP" # Let the user override the test.
1047 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
1060 if test -n "$LP"; then
1061 echo "$ac_t""$LP" 1>&6
1063 echo "$ac_t""no" 1>&6
1066 test -n "$LP" && break
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
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
1082 if test -n "$LPQ"; then
1083 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
1085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
1097 LPQ
="$ac_cv_prog_LPQ"
1098 if test -n "$LPQ"; then
1099 echo "$ac_t""$LPQ" 1>&6
1101 echo "$ac_t""no" 1>&6
1104 test -n "$LPQ" && break
1107 test -n "$LPQ" || LPR
=
1109 if test -n "$LPR"; then
1111 elif test -n "$LP"; then
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
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
1140 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
1143 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a dos path.
1146 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
1156 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
1160 PERLPATH
="$ac_cv_path_PERLPATH"
1161 if test -n "$PERLPATH"; then
1162 echo "$ac_t""$PERLPATH" 1>&6
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
1176 if test -n "$YACC"; then
1177 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1179 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
1191 YACC
="$ac_cv_prog_YACC"
1192 if test -n "$YACC"; then
1193 echo "$ac_t""$YACC" 1>&6
1195 echo "$ac_t""no" 1>&6
1198 test -n "$YACC" && break
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
1209 if test -n "$RANLIB"; then
1210 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1212 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
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"
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
1229 echo "$ac_t""no" 1>&6
1233 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1234 if test -f $ac_dir/install-sh
; then
1236 ac_install_sh
="$ac_aux_dir/install-sh -c"
1238 elif test -f $ac_dir/install.sh
; then
1240 ac_install_sh
="$ac_aux_dir/install.sh -c"
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
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
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.
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
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.
1287 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1298 if test "${ac_cv_path_install+set}" = set; then
1299 INSTALL
="$ac_cv_path_install"
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
1324 if ln -s X conftestdata
2>/dev
/null
1327 ac_cv_prog_LN_S
="ln -s"
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
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
1344 export PATH || exit 0
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/.*/:/'
1351 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD
=''
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
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
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.
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"
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
1383 echo "configure: failed program was:" >&5
1384 cat conftest.
$ac_ext >&5
1386 CPP
="${CC-cc} -E -traditional-cpp"
1387 cat > conftest.
$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
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
1400 echo "configure: failed program was:" >&5
1401 cat conftest.
$ac_ext >&5
1403 CPP
="${CC-cc} -nologo -E"
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
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
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1427 ac_cv_prog_CPP
="$CPP"
1429 CPP
="$ac_cv_prog_CPP"
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
1443 cat > conftest.
$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
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
1453 eval "ac_cv_header_$ac_safe=yes"
1456 echo "configure: failed program was:" >&5
1457 cat conftest.
$ac_ext >&5
1459 eval "ac_cv_header_$ac_safe=no"
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
1471 echo "$ac_t""no" 1>&6
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
1479 echo "$ac_t""yes" 1>&6
1480 cat >> confdefs.h
<<\EOF
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
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"
1501 extern "C" { void fileno(int); }
1506 if { (eval echo configure
:1507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1508 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1509 #define _POSIX_SOURCE 1
1513 echo "configure: failed program was:" >&5
1514 cat conftest.
$ac_ext >&5
1516 echo "$ac_t""no" 1>&6
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
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"
1540 extern "C" { void putenv(int); }
1545 if { (eval echo configure
:1546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1547 echo "$ac_t""no" 1>&6
1549 echo "configure: failed program was:" >&5
1550 cat conftest.
$ac_ext >&5
1552 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1553 #define STDLIB_H_DECLARES_PUTENV 1
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
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"
1579 extern "C" { void popen(int); }
1584 if { (eval echo configure
:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1586 echo "$ac_t""no" 1>&6
1588 echo "configure: failed program was:" >&5
1589 cat conftest.
$ac_ext >&5
1591 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1592 #define STDIO_H_DECLARES_POPEN 1
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
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"
1618 extern "C" { void pclose(int); }
1623 if { (eval echo configure
:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1625 echo "$ac_t""no" 1>&6
1627 echo "configure: failed program was:" >&5
1628 cat conftest.
$ac_ext >&5
1630 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1631 #define STDIO_H_DECLARES_PCLOSE 1
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
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"
1659 int k; k = sys_nerr;
1662 if { (eval echo configure
:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1664 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1665 #define HAVE_SYS_NERR 1
1669 echo "configure: failed program was:" >&5
1670 cat conftest.
$ac_ext >&5
1672 echo "$ac_t""no" 1>&6
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
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"
1698 int k; k = (int)sys_errlist[0];
1701 if { (eval echo configure
:1702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1703 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1704 #define HAVE_SYS_ERRLIST 1
1708 echo "configure: failed program was:" >&5
1709 cat conftest.
$ac_ext >&5
1711 echo "$ac_t""no" 1>&6
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
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"
1735 extern "C" { double hypot(double,double); }
1740 if { (eval echo configure
:1741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1742 echo "$ac_t""no" 1>&6
1744 echo "configure: failed program was:" >&5
1745 cat conftest.
$ac_ext >&5
1747 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1748 #define MATH_H_DECLARES_HYPOT 1
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
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"
1775 read(0, 0, 0); open(0, 0);
1778 if { (eval echo configure
:1779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1780 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1781 #define HAVE_CC_OSFCN_H 1
1785 echo "configure: failed program was:" >&5
1786 cat conftest.
$ac_ext >&5
1788 echo "$ac_t""no" 1>&6
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
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"
1813 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1816 if { (eval echo configure
:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1818 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1819 #define HAVE_CC_LIMITS_H 1
1823 echo "configure: failed program was:" >&5
1824 cat conftest.
$ac_ext >&5
1826 echo "$ac_t""no" 1>&6
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
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"
1851 time_t t = time(0); struct tm *p = localtime(&t);
1854 if { (eval echo configure
:1855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1856 echo "$ac_t""yes" 1>&6
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1861 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
1862 #define LONG_FOR_TIME_T 1
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
1879 cat > conftest.
$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 #include <sys/types.h>
1888 extern "C" void (*signal (int, void (*)(int)))(int);
1890 void (*signal ()) ();
1897 if { (eval echo configure
:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1899 ac_cv_type_signal
=void
1901 echo "configure: failed program was:" >&5
1902 cat conftest.
$ac_ext >&5
1904 ac_cv_type_signal
=int
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"
1925 if { (eval echo configure
:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1927 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1928 #define HAVE_STRUCT_EXCEPTION 1
1932 echo "configure: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1935 echo "$ac_t""no" 1>&6
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
1944 ac_save_LIBS
="$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. */
1958 if { (eval echo configure
:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1960 eval "ac_cv_lib_$ac_lib_var=yes"
1962 echo "configure: failed program was:" >&5
1963 cat conftest.
$ac_ext >&5
1965 eval "ac_cv_lib_$ac_lib_var=no"
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
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
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
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
1998 eval "ac_cv_header_$ac_safe=yes"
2001 echo "configure: failed program was:" >&5
2002 cat conftest.
$ac_ext >&5
2004 eval "ac_cv_header_$ac_safe=no"
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
2016 echo "$ac_t""no" 1>&6
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
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. */
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. */
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)
2051 if { (eval echo configure
:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2053 eval "ac_cv_func_$ac_func=yes"
2055 echo "configure: failed program was:" >&5
2056 cat conftest.
$ac_ext >&5
2058 eval "ac_cv_func_$ac_func=no"
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
2071 echo "$ac_t""no" 1>&6
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
2080 if test "$cross_compiling" = yes; then
2081 ac_cv_func_mmap_fixed_mapped
=no
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>
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>
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
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 */
2132 # define getpagesize() NBPG * CLSIZE
2135 # endif /* no CLSIZE */
2136 # else /* no NBPG */
2138 # define getpagesize() NBPC
2139 # else /* no NBPC */
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 */
2154 extern "C" { void *malloc(unsigned); }
2162 char *data, *data2, *data3;
2166 pagesize = getpagesize();
2169 * First, make a file with some known garbage in it.
2171 data = malloc(pagesize);
2174 for (i = 0; i < pagesize; ++i)
2175 *(data + i) = rand();
2177 fd = creat("conftestmmap", 0600);
2180 if (write(fd, data, pagesize) != pagesize)
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);
2192 data2 = malloc(2 * pagesize);
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))
2199 for (i = 0; i < pagesize; ++i)
2200 if (*(data + i) != *(data2 + i))
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);
2213 if (read(fd, data3, pagesize) != pagesize)
2215 for (i = 0; i < pagesize; ++i)
2216 if (*(data + i) != *(data3 + i))
2219 unlink("conftestmmap");
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
2226 ac_cv_func_mmap_fixed_mapped
=yes
2228 echo "configure: failed program was:" >&5
2229 cat conftest.
$ac_ext >&5
2231 ac_cv_func_mmap_fixed_mapped
=no
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
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
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. */
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. */
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)
2279 if { (eval echo configure
:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2281 eval "ac_cv_func_$ac_func=yes"
2283 echo "configure: failed program was:" >&5
2284 cat conftest.
$ac_ext >&5
2286 eval "ac_cv_func_$ac_func=no"
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
2299 echo "$ac_t""no" 1>&6
2300 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
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
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. */
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. */
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)
2337 if { (eval echo configure
:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2339 eval "ac_cv_func_$ac_func=yes"
2341 echo "configure: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2344 eval "ac_cv_func_$ac_func=no"
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
2357 echo "$ac_t""no" 1>&6
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
2366 cat > conftest.
$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 #include <sys/types.h>
2371 /* NetBSD declares sys_siglist in unistd.h. */
2372 #ifdef HAVE_UNISTD_H
2376 char *msg = *(sys_siglist + 1);
2379 if { (eval echo configure
:2380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2381 ac_cv_decl_sys_siglist
=yes
2383 echo "configure: failed program was:" >&5
2384 cat conftest.
$ac_ext >&5
2386 ac_cv_decl_sys_siglist
=no
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
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"
2414 char *p = new char[5]; delete [] p;
2417 if { (eval echo configure
:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2419 echo "$ac_t""yes" 1>&6
2421 echo "configure: failed program was:" >&5
2422 cat conftest.
$ac_ext >&5
2424 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
2425 #define ARRAY_DELETE_NEEDS_SIZE 1
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
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
2455 if { (eval echo configure
:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2457 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2458 #define TRADITIONAL_CPP 1
2462 echo "configure: failed program was:" >&5
2463 cat conftest.
$ac_ext >&5
2465 echo "$ac_t""no" 1>&6
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
2480 cat > conftest.
$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 #include <sys/types.h>
2484 #include <sys/wait.h>
2491 ((union wait *)&i)->w_coredump = 1;
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
2498 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2499 #define WCOREFLAG 0200
2503 echo "configure: failed program was:" >&5
2504 cat conftest.
$ac_ext >&5
2506 echo "$ac_t""no" 1>&6
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
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
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.
2544 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
]) ;;
2545 *.
[A-Za-z
][A-Za-z
]) PAGE
=A4
;;
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
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
2565 sys_tmac_file_prefix
=
2566 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
2567 for t
in "" tmac.
; do
2570 if test -z "$sys_tmac_prefix" \
2572 && grep '^\.if' $f >/dev
/null
2>&1; then
2573 sys_tmac_prefix
=$d/$t
2574 sys_tmac_file_prefix
=$t
2579 echo "$ac_t""$sys_tmac_prefix" 1>&6
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;;"`
2590 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
2591 || tmac_wrap
="$tmac_wrap $suff" ;;
2594 elif test -n "$sys_tmac_prefix"; then
2595 files
=`echo $sys_tmac_prefix*`
2596 grep "\\.so" $files >conftest.sol
2599 ${sys_tmac_prefix}e
) ;;
2604 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
2605 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
2608 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2611 *) tmac_wrap
="$tmac_wrap $suff" ;;
2618 echo "$ac_t""$tmac_wrap" 1>&6
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.
2644 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2646 # `set' does not quote correctly, so add quotes (double-quote substitution
2647 # turns \\\\ into \\, and sed turns \\ into \).
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'
2657 if cmp -s $cache_file confcache
; then
2660 if test -w $cache_file; then
2661 echo "updating cache $cache_file"
2662 cat confcache
> $cache_file
2664 echo "not updating unwritable cache $cache_file"
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
2694 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
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
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]"
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"
2725 -help | --help | --hel | --he | --h)
2726 echo "\$ac_cs_usage"; exit 0 ;;
2727 *) echo "\$ac_cs_usage"; exit 1 ;;
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
2744 s%@CFLAGS@%$CFLAGS%g
2745 s%@CPPFLAGS@%$CPPFLAGS%g
2746 s%@CXXFLAGS@%$CXXFLAGS%g
2747 s%@FFLAGS@%$FFLAGS%g
2749 s%@LDFLAGS@%$LDFLAGS%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
2772 s%@PSPRINT@%$PSPRINT%g
2773 s%@DVIPRINT@%$DVIPRINT%g
2774 s%@PERLPATH@%$PERLPATH%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
2781 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2784 s%@LIBOBJS@%$LIBOBJS%g
2785 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2788 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2789 s%@tmac_wrap@%$tmac_wrap%g
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.
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
2808 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2810 if test ! -s conftest.s$ac_file; then
2812 rm -f conftest.s$ac_file
2814 if test -z "$ac_sed_cmds"; then
2815 ac_sed_cmds="sed -f conftest.s$ac_file"
2817 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2819 ac_file=`expr $ac_file + 1`
2821 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2824 if test -z "$ac_sed_cmds"; then
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".
2837 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2838 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2839 *) ac_file_in="${ac_file}.in" ;;
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'`
2853 ac_dir_suffix= ac_dots=
2856 case "$ac_given_srcdir" in
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" ;;
2862 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2863 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2866 case "$ac_given_INSTALL" in
2867 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2868 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2871 echo creating "$ac_file"
2873 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2875 *Makefile*) ac_comsub="1i\\
2876 # $configure_input" ;;
2880 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
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
2891 cat >> $CONFIG_STATUS <<EOF
2894 cat >> $CONFIG_STATUS <<\EOF
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