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`
528 # Extract the first word of "gcc", so it can be a program name with args.
529 set dummy gcc
; ac_word
=$2
530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
531 echo "configure:532: checking for $ac_word" >&5
532 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
533 echo $ac_n "(cached) $ac_c" 1>&6
535 if test -n "$CC"; then
536 ac_cv_prog_CC
="$CC" # Let the user override the test.
538 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
540 for ac_dir
in $ac_dummy; do
541 test -z "$ac_dir" && ac_dir
=.
542 if test -f $ac_dir/$ac_word; then
551 if test -n "$CC"; then
552 echo "$ac_t""$CC" 1>&6
554 echo "$ac_t""no" 1>&6
557 if test -z "$CC"; then
558 # Extract the first word of "cc", so it can be a program name with args.
559 set dummy cc
; ac_word
=$2
560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
561 echo "configure:562: checking for $ac_word" >&5
562 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
563 echo $ac_n "(cached) $ac_c" 1>&6
565 if test -n "$CC"; then
566 ac_cv_prog_CC
="$CC" # Let the user override the test.
568 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
571 for ac_dir
in $ac_dummy; do
572 test -z "$ac_dir" && ac_dir
=.
573 if test -f $ac_dir/$ac_word; then
574 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
583 if test $ac_prog_rejected = yes; then
584 # We found a bogon in the path, so make sure we never use it.
585 set dummy
$ac_cv_prog_CC
587 if test $# -gt 0; then
588 # We chose a different compiler from the bogus one.
589 # However, it has the same basename, so the bogon will be chosen
590 # first if we set CC to just the basename; use the full file name.
592 set dummy
"$ac_dir/$ac_word" "$@"
600 if test -n "$CC"; then
601 echo "$ac_t""$CC" 1>&6
603 echo "$ac_t""no" 1>&6
606 if test -z "$CC"; then
609 # Extract the first word of "cl", so it can be a program name with args.
610 set dummy cl
; ac_word
=$2
611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612 echo "configure:613: checking for $ac_word" >&5
613 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 if test -n "$CC"; then
617 ac_cv_prog_CC
="$CC" # Let the user override the test.
619 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
621 for ac_dir
in $ac_dummy; do
622 test -z "$ac_dir" && ac_dir
=.
623 if test -f $ac_dir/$ac_word; then
632 if test -n "$CC"; then
633 echo "$ac_t""$CC" 1>&6
635 echo "$ac_t""no" 1>&6
640 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
643 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
644 echo "configure:645: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
648 ac_cpp
='$CPP $CPPFLAGS'
649 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
650 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
651 cross_compiling
=$ac_cv_prog_cc_cross
653 cat > conftest.
$ac_ext << EOF
655 #line 656 "configure"
656 #include "confdefs.h"
660 if { (eval echo configure
:661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
661 ac_cv_prog_cc_works
=yes
662 # If we can't run a trivial program, we are probably using a cross compiler.
663 if (.
/conftest
; exit) 2>/dev
/null
; then
664 ac_cv_prog_cc_cross
=no
666 ac_cv_prog_cc_cross
=yes
669 echo "configure: failed program was:" >&5
670 cat conftest.
$ac_ext >&5
671 ac_cv_prog_cc_works
=no
675 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
676 ac_cpp
='$CPP $CPPFLAGS'
677 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
678 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
679 cross_compiling
=$ac_cv_prog_cc_cross
681 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
682 if test $ac_cv_prog_cc_works = no
; then
683 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
685 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
686 echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
687 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
688 cross_compiling
=$ac_cv_prog_cc_cross
690 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
691 echo "configure:692: checking whether we are using GNU C" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 cat > conftest.c
<<EOF
700 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
707 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
709 if test $ac_cv_prog_gcc = yes; then
715 ac_test_CFLAGS
="${CFLAGS+set}"
716 ac_save_CFLAGS
="$CFLAGS"
718 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
719 echo "configure:720: checking whether ${CC-cc} accepts -g" >&5
720 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
721 echo $ac_n "(cached) $ac_c" 1>&6
723 echo 'void f(){}' > conftest.c
724 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
733 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
734 if test "$ac_test_CFLAGS" = set; then
735 CFLAGS
="$ac_save_CFLAGS"
736 elif test $ac_cv_prog_cc_g = yes; then
737 if test "$GCC" = yes; then
743 if test "$GCC" = yes; then
750 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
752 # Extract the first word of "$ac_prog", so it can be a program name with args.
753 set dummy
$ac_prog; ac_word
=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 if test -n "$CXX"; then
760 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
762 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
764 for ac_dir
in $ac_dummy; do
765 test -z "$ac_dir" && ac_dir
=.
766 if test -f $ac_dir/$ac_word; then
767 ac_cv_prog_CXX
="$ac_prog"
774 CXX
="$ac_cv_prog_CXX"
775 if test -n "$CXX"; then
776 echo "$ac_t""$CXX" 1>&6
778 echo "$ac_t""no" 1>&6
781 test -n "$CXX" && break
783 test -n "$CXX" || CXX
="gcc"
786 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
787 echo "configure:788: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
790 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp
='$CXXCPP $CPPFLAGS'
792 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling
=$ac_cv_prog_cxx_cross
796 cat > conftest.
$ac_ext << EOF
798 #line 799 "configure"
799 #include "confdefs.h"
801 int main(){return(0);}
803 if { (eval echo configure
:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
804 ac_cv_prog_cxx_works
=yes
805 # If we can't run a trivial program, we are probably using a cross compiler.
806 if (.
/conftest
; exit) 2>/dev
/null
; then
807 ac_cv_prog_cxx_cross
=no
809 ac_cv_prog_cxx_cross
=yes
812 echo "configure: failed program was:" >&5
813 cat conftest.
$ac_ext >&5
814 ac_cv_prog_cxx_works
=no
818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
819 ac_cpp
='$CPP $CPPFLAGS'
820 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
821 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
822 cross_compiling
=$ac_cv_prog_cc_cross
824 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
825 if test $ac_cv_prog_cxx_works = no
; then
826 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
828 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
829 echo "configure:830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
830 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
831 cross_compiling
=$ac_cv_prog_cxx_cross
833 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
834 echo "configure:835: checking whether we are using GNU C++" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 cat > conftest.C
<<EOF
843 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
850 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
852 if test $ac_cv_prog_gxx = yes; then
858 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
859 ac_save_CXXFLAGS
="$CXXFLAGS"
861 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
862 echo "configure:863: checking whether ${CXX-g++} accepts -g" >&5
863 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 echo 'void f(){}' > conftest.cc
867 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
876 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
877 if test "$ac_test_CXXFLAGS" = set; then
878 CXXFLAGS
="$ac_save_CXXFLAGS"
879 elif test $ac_cv_prog_cxx_g = yes; then
880 if test "$GXX" = yes; then
886 if test "$GXX" = yes; then
896 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
897 ac_cpp
='$CXXCPP $CPPFLAGS'
898 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
899 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
900 cross_compiling
=$ac_cv_prog_cxx_cross
902 if test "$cross_compiling" = no
; then
903 echo $ac_n "checking that C++ compiler can compile simple program""... $ac_c" 1>&6
904 echo "configure:905: checking that C++ compiler can compile simple program" >&5
906 if test "$cross_compiling" = yes; then
909 cat > conftest.
$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
913 extern "C" void exit(int);
915 int main() { return 0; }
917 if { (eval echo configure
:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
919 echo "$ac_t""yes" 1>&6
921 echo "configure: failed program was:" >&5
922 cat conftest.
$ac_ext >&5
924 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
929 if test "$cross_compiling" = no
; then
930 echo $ac_n "checking that C++ static constructors and destructors are called""... $ac_c" 1>&6
931 echo "configure:932: checking that C++ static constructors and destructors are called" >&5
933 if test "$cross_compiling" = yes; then
936 cat > conftest.
$ac_ext <<EOF
937 #line 938 "configure"
938 #include "confdefs.h"
940 extern "C" void exit(int);
950 ~A() { if (i == 1) _exit(0); }
953 int main() { return 1; }
956 if { (eval echo configure
:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
958 echo "$ac_t""yes" 1>&6
960 echo "configure: failed program was:" >&5
961 cat conftest.
$ac_ext >&5
963 echo "$ac_t""no" 1>&6;{ echo "configure: error: a working C++ compiler is required" 1>&2; exit 1; }
968 echo $ac_n "checking that header files support C++""... $ac_c" 1>&6
969 echo "configure:970: checking that header files support C++" >&5
970 cat > conftest.
$ac_ext <<EOF
971 #line 972 "configure"
972 #include "confdefs.h"
978 if { (eval echo configure
:979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
980 echo "$ac_t""yes" 1>&6
982 echo "configure: failed program was:" >&5
983 cat conftest.
$ac_ext >&5
985 echo "$ac_t""no" 1>&6;{ echo "configure: error: header files do not support C++ (if you are using a version of gcc/g++ earlier than 2.5, you should install libg++)" 1>&2; exit 1; }
989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
990 ac_cpp
='$CPP $CPPFLAGS'
991 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
992 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
993 cross_compiling
=$ac_cv_prog_cc_cross
995 echo $ac_n "checking whether character set is EBCDIC""... $ac_c" 1>&6
996 echo "configure:997: checking whether character set is EBCDIC" >&5
997 cat > conftest.
$ac_ext <<EOF
998 #line 999 "configure"
999 #include "confdefs.h"
1002 /* Treat any failure as ASCII for compatibility with existing art.
1003 Use compile-time rather than run-time tests for cross-compiler
1006 make an error "Character set is not EBCDIC"
1010 if { (eval echo configure
:1011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1012 groff_cv_ebcdic
="yes"
1013 TTYDEVDIRS
="font/devcp1047"
1014 echo "$ac_t""yes" 1>&6
1015 cat >> confdefs.h
<<\EOF
1016 #define IS_EBCDIC_HOST 1
1020 echo "configure: failed program was:" >&5
1021 cat conftest.
$ac_ext >&5
1023 groff_cv_ebcdic
="no"
1024 TTYDEVDIRS
="font/devascii font/devlatin1 font/devutf8"
1025 echo "$ac_t""no" 1>&6
1030 if test "$groff_cv_ebcdic" = "yes"; then
1031 echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6
1032 echo "configure:1033: checking for OS/390 Unix" >&5
1035 CFLAGS
="$CFLAGS -D_ALL_SOURCE"
1036 groff_cv_os390
="yes"
1037 echo "$ac_t""yes" 1>&6 ;;
1039 echo "$ac_t""no" 1>&6 ;;
1042 if test -z "$PSPRINT"; then
1045 # Extract the first word of "$ac_prog", so it can be a program name with args.
1046 set dummy
$ac_prog; ac_word
=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_LPR'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 if test -n "$LPR"; then
1053 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
1055 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1057 for ac_dir
in $ac_dummy; do
1058 test -z "$ac_dir" && ac_dir
=.
1059 if test -f $ac_dir/$ac_word; then
1060 ac_cv_prog_LPR
="$ac_prog"
1067 LPR
="$ac_cv_prog_LPR"
1068 if test -n "$LPR"; then
1069 echo "$ac_t""$LPR" 1>&6
1071 echo "$ac_t""no" 1>&6
1074 test -n "$LPR" && break
1079 # Extract the first word of "$ac_prog", so it can be a program name with args.
1080 set dummy
$ac_prog; ac_word
=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_LP'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 if test -n "$LP"; then
1087 ac_cv_prog_LP
="$LP" # Let the user override the test.
1089 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1091 for ac_dir
in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir
=.
1093 if test -f $ac_dir/$ac_word; then
1094 ac_cv_prog_LP
="$ac_prog"
1102 if test -n "$LP"; then
1103 echo "$ac_t""$LP" 1>&6
1105 echo "$ac_t""no" 1>&6
1108 test -n "$LP" && break
1111 if test -n "$LPR" && test -n "$LP"; then
1112 # HP-UX provides an lpr command that emulates lpr using lp,
1113 # but it doesn't have lpq; in this case we want to use lp
1117 # Extract the first word of "$ac_prog", so it can be a program name with args.
1118 set dummy
$ac_prog; ac_word
=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_LPQ'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$LPQ"; then
1125 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
1127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1129 for ac_dir
in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir
=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_LPQ
="$ac_prog"
1139 LPQ
="$ac_cv_prog_LPQ"
1140 if test -n "$LPQ"; then
1141 echo "$ac_t""$LPQ" 1>&6
1143 echo "$ac_t""no" 1>&6
1146 test -n "$LPQ" && break
1149 test -n "$LPQ" || LPR
=
1151 if test -n "$LPR"; then
1153 elif test -n "$LP"; then
1158 echo $ac_n "checking for command to use for printing PostScript files""... $ac_c" 1>&6
1159 echo "configure:1160: checking for command to use for printing PostScript files" >&5
1160 echo "$ac_t""$PSPRINT" 1>&6
1161 # Figure out DVIPRINT from PSPRINT.
1162 echo $ac_n "checking for command to use for printing dvi files""... $ac_c" 1>&6
1163 echo "configure:1164: checking for command to use for printing dvi files" >&5
1164 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
1165 if test "X$PSPRINT" = "Xlpr"; then
1172 echo "$ac_t""$DVIPRINT" 1>&6
1173 # Extract the first word of "perl", so it can be a program name with args.
1174 set dummy perl
; ac_word
=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1182 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
1185 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a dos path.
1188 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1190 for ac_dir
in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir
=.
1192 if test -f $ac_dir/$ac_word; then
1193 ac_cv_path_PERLPATH
="$ac_dir/$ac_word"
1198 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
1202 PERLPATH
="$ac_cv_path_PERLPATH"
1203 if test -n "$PERLPATH"; then
1204 echo "$ac_t""$PERLPATH" 1>&6
1206 echo "$ac_t""no" 1>&6
1209 for ac_prog
in byacc
'bison -y'
1211 # Extract the first word of "$ac_prog", so it can be a program name with args.
1212 set dummy
$ac_prog; ac_word
=$2
1213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1214 echo "configure:1215: checking for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 if test -n "$YACC"; then
1219 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1221 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1223 for ac_dir
in $ac_dummy; do
1224 test -z "$ac_dir" && ac_dir
=.
1225 if test -f $ac_dir/$ac_word; then
1226 ac_cv_prog_YACC
="$ac_prog"
1233 YACC
="$ac_cv_prog_YACC"
1234 if test -n "$YACC"; then
1235 echo "$ac_t""$YACC" 1>&6
1237 echo "$ac_t""no" 1>&6
1240 test -n "$YACC" && break
1242 test -n "$YACC" || YACC
="yacc"
1244 # Extract the first word of "ranlib", so it can be a program name with args.
1245 set dummy ranlib
; ac_word
=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 if test -n "$RANLIB"; then
1252 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1254 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1256 for ac_dir
in $ac_dummy; do
1257 test -z "$ac_dir" && ac_dir
=.
1258 if test -f $ac_dir/$ac_word; then
1259 ac_cv_prog_RANLIB
="ranlib"
1264 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1267 RANLIB
="$ac_cv_prog_RANLIB"
1268 if test -n "$RANLIB"; then
1269 echo "$ac_t""$RANLIB" 1>&6
1271 echo "$ac_t""no" 1>&6
1275 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1276 if test -f $ac_dir/install-sh
; then
1278 ac_install_sh
="$ac_aux_dir/install-sh -c"
1280 elif test -f $ac_dir/install.sh
; then
1282 ac_install_sh
="$ac_aux_dir/install.sh -c"
1286 if test -z "$ac_aux_dir"; then
1287 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1289 ac_config_guess
=$ac_aux_dir/config.guess
1290 ac_config_sub
=$ac_aux_dir/config.sub
1291 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1293 ac_dir
=`cd $ac_aux_dir; pwd`
1294 ac_install_sh
="$ac_dir/install-sh -c"
1295 # Find a good install program. We prefer a C program (faster),
1296 # so one script is as good as another. But avoid the broken or
1297 # incompatible versions:
1298 # SysV /etc/install, /usr/sbin/install
1299 # SunOS /usr/etc/install
1300 # IRIX /sbin/install
1302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1305 # ./install, which can be erroneously created by make from ./install.sh.
1306 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1307 echo "configure:1308: checking for a BSD compatible install" >&5
1308 if test -z "$INSTALL"; then
1309 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1313 for ac_dir
in $PATH; do
1314 # Account for people who put trailing slashes in PATH elements.
1316 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1318 # OSF1 and SCO ODT 3.0 have their own names for install.
1319 # Don't use installbsd from OSF since it installs stuff as root
1321 for ac_prog
in ginstall scoinst
install; do
1322 if test -f $ac_dir/$ac_prog; then
1323 if test $ac_prog = install &&
1324 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1325 # AIX install. It has an incompatible calling convention.
1328 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1339 if test "${ac_cv_path_install+set}" = set; then
1340 INSTALL
="$ac_cv_path_install"
1342 # As a last resort, use the slow shell script. We don't cache a
1343 # path for INSTALL within a source directory, because that will
1344 # break other packages using the cache if that directory is
1345 # removed, or if the path is relative.
1346 INSTALL
="$ac_install_sh"
1349 echo "$ac_t""$INSTALL" 1>&6
1351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1352 # It thinks the first close brace ends the variable substitution.
1353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1357 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1359 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1360 echo "configure:1361: checking whether ln -s works" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1365 if ln -s X conftestdata
2>/dev
/null
1368 ac_cv_prog_LN_S
="ln -s"
1373 LN_S
="$ac_cv_prog_LN_S"
1374 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1375 echo "$ac_t""yes" 1>&6
1377 echo "$ac_t""no" 1>&6
1380 echo $ac_n "checking for csh hash hack""... $ac_c" 1>&6
1381 echo "configure:1382: checking for csh hash hack" >&5
1382 cat <<EOF >conftest.sh
1385 export PATH || exit 0
1388 chmod +x conftest.sh
1389 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
1390 echo "$ac_t""yes" 1>&6; SH_SCRIPT_SED_CMD
='1s/.*/:/'
1392 echo "$ac_t""no" 1>&6; SH_SCRIPT_SED_CMD
=''
1396 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1397 echo "configure:1398: checking how to run the C preprocessor" >&5
1398 # On Suns, sometimes $CPP names a directory.
1399 if test -n "$CPP" && test -d "$CPP"; then
1402 if test -z "$CPP"; then
1403 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 # This must be in double quotes, not single quotes, because CPP may get
1407 # substituted into the Makefile and "${CC-cc}" will confuse make.
1409 # On the NeXT, cc -E runs the code through the compiler's parser,
1410 # not just through cpp.
1411 cat > conftest.
$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1417 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1418 { (eval echo configure
:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1419 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1420 if test -z "$ac_err"; then
1424 echo "configure: failed program was:" >&5
1425 cat conftest.
$ac_ext >&5
1427 CPP
="${CC-cc} -E -traditional-cpp"
1428 cat > conftest.
$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1434 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1435 { (eval echo configure
:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1436 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1437 if test -z "$ac_err"; then
1441 echo "configure: failed program was:" >&5
1442 cat conftest.
$ac_ext >&5
1444 CPP
="${CC-cc} -nologo -E"
1445 cat > conftest.
$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1451 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1452 { (eval echo configure
:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1453 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1454 if test -z "$ac_err"; then
1458 echo "configure: failed program was:" >&5
1459 cat conftest.
$ac_ext >&5
1468 ac_cv_prog_CPP
="$CPP"
1470 CPP
="$ac_cv_prog_CPP"
1472 ac_cv_prog_CPP
="$CPP"
1474 echo "$ac_t""$CPP" 1>&6
1476 for ac_hdr
in unistd.h dirent.h limits.h sys
/dir.h stdlib.h
strings.h
1478 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1480 echo "configure:1481: checking for $ac_hdr" >&5
1481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 cat > conftest.
$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1489 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1490 { (eval echo configure
:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1491 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1492 if test -z "$ac_err"; then
1494 eval "ac_cv_header_$ac_safe=yes"
1497 echo "configure: failed program was:" >&5
1498 cat conftest.
$ac_ext >&5
1500 eval "ac_cv_header_$ac_safe=no"
1504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1505 echo "$ac_t""yes" 1>&6
1506 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1507 cat >> confdefs.h
<<EOF
1508 #define $ac_tr_hdr 1
1512 echo "$ac_t""no" 1>&6
1516 echo $ac_n "checking for ISC 3.x or 4.x""... $ac_c" 1>&6
1517 echo "configure:1518: checking for ISC 3.x or 4.x" >&5
1518 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
1520 echo "$ac_t""yes" 1>&6
1521 cat >> confdefs.h
<<\EOF
1526 echo "$ac_t""no" 1>&6
1528 echo $ac_n "checking whether -D_POSIX_SOURCE is necessary""... $ac_c" 1>&6
1529 echo "configure:1530: checking whether -D_POSIX_SOURCE is necessary" >&5
1532 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1533 ac_cpp
='$CXXCPP $CPPFLAGS'
1534 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1535 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1536 cross_compiling
=$ac_cv_prog_cxx_cross
1538 cat > conftest.
$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1542 extern "C" { void fileno(int); }
1547 if { (eval echo configure
:1548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1549 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1550 #define _POSIX_SOURCE 1
1554 echo "configure: failed program was:" >&5
1555 cat conftest.
$ac_ext >&5
1557 echo "$ac_t""no" 1>&6
1561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1562 ac_cpp
='$CPP $CPPFLAGS'
1563 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1564 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1565 cross_compiling
=$ac_cv_prog_cc_cross
1569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1570 ac_cpp
='$CXXCPP $CPPFLAGS'
1571 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1572 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1573 cross_compiling
=$ac_cv_prog_cxx_cross
1575 echo $ac_n "checking declaration of putenv""... $ac_c" 1>&6
1576 echo "configure:1577: checking declaration of putenv" >&5
1577 cat > conftest.
$ac_ext <<EOF
1578 #line 1579 "configure"
1579 #include "confdefs.h"
1581 extern "C" { void putenv(int); }
1586 if { (eval echo configure
:1587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1588 echo "$ac_t""no" 1>&6
1590 echo "configure: failed program was:" >&5
1591 cat conftest.
$ac_ext >&5
1593 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1594 #define STDLIB_H_DECLARES_PUTENV 1
1600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1601 ac_cpp
='$CPP $CPPFLAGS'
1602 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1603 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1604 cross_compiling
=$ac_cv_prog_cc_cross
1608 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1609 ac_cpp
='$CXXCPP $CPPFLAGS'
1610 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1611 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1612 cross_compiling
=$ac_cv_prog_cxx_cross
1614 echo $ac_n "checking declaration of popen""... $ac_c" 1>&6
1615 echo "configure:1616: checking declaration of popen" >&5
1616 cat > conftest.
$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1620 extern "C" { void popen(int); }
1625 if { (eval echo configure
:1626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1627 echo "$ac_t""no" 1>&6
1629 echo "configure: failed program was:" >&5
1630 cat conftest.
$ac_ext >&5
1632 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1633 #define STDIO_H_DECLARES_POPEN 1
1639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1640 ac_cpp
='$CPP $CPPFLAGS'
1641 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1642 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1643 cross_compiling
=$ac_cv_prog_cc_cross
1647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1648 ac_cpp
='$CXXCPP $CPPFLAGS'
1649 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1650 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1651 cross_compiling
=$ac_cv_prog_cxx_cross
1653 echo $ac_n "checking declaration of pclose""... $ac_c" 1>&6
1654 echo "configure:1655: checking declaration of pclose" >&5
1655 cat > conftest.
$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1659 extern "C" { void pclose(int); }
1664 if { (eval echo configure
:1665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1666 echo "$ac_t""no" 1>&6
1668 echo "configure: failed program was:" >&5
1669 cat conftest.
$ac_ext >&5
1671 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1672 #define STDIO_H_DECLARES_PCLOSE 1
1678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1679 ac_cpp
='$CPP $CPPFLAGS'
1680 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1681 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1682 cross_compiling
=$ac_cv_prog_cc_cross
1686 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1687 ac_cpp
='$CXXCPP $CPPFLAGS'
1688 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1689 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1690 cross_compiling
=$ac_cv_prog_cxx_cross
1692 echo $ac_n "checking for return type of srand""... $ac_c" 1>&6
1693 echo "configure:1694: checking for return type of srand" >&5
1694 cat > conftest.
$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1698 extern "C" { void srand(unsigned int); }
1703 if { (eval echo configure
:1704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1705 echo "$ac_t""void" 1>&6;cat >> confdefs.h
<<\EOF
1706 #define RET_TYPE_SRAND_IS_VOID 1
1710 echo "configure: failed program was:" >&5
1711 cat conftest.
$ac_ext >&5
1713 echo "$ac_t""int" 1>&6
1717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1718 ac_cpp
='$CPP $CPPFLAGS'
1719 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1720 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1721 cross_compiling
=$ac_cv_prog_cc_cross
1725 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1726 ac_cpp
='$CXXCPP $CPPFLAGS'
1727 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1728 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1729 cross_compiling
=$ac_cv_prog_cxx_cross
1731 echo $ac_n "checking for sys_nerr in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1732 echo "configure:1733: checking for sys_nerr in <errno.h> or <stdio.h>" >&5
1733 cat > conftest.
$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1739 int k; k = sys_nerr;
1742 if { (eval echo configure
:1743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1744 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1745 #define HAVE_SYS_NERR 1
1749 echo "configure: failed program was:" >&5
1750 cat conftest.
$ac_ext >&5
1752 echo "$ac_t""no" 1>&6
1756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1757 ac_cpp
='$CPP $CPPFLAGS'
1758 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1759 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1760 cross_compiling
=$ac_cv_prog_cc_cross
1764 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1765 ac_cpp
='$CXXCPP $CPPFLAGS'
1766 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1767 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1768 cross_compiling
=$ac_cv_prog_cxx_cross
1770 echo $ac_n "checking for sys_errlist in <errno.h> or <stdio.h>""... $ac_c" 1>&6
1771 echo "configure:1772: checking for sys_errlist in <errno.h> or <stdio.h>" >&5
1772 cat > conftest.
$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1778 int k; k = (int)sys_errlist[0];
1781 if { (eval echo configure
:1782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1783 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1784 #define HAVE_SYS_ERRLIST 1
1788 echo "configure: failed program was:" >&5
1789 cat conftest.
$ac_ext >&5
1791 echo "$ac_t""no" 1>&6
1795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1796 ac_cpp
='$CPP $CPPFLAGS'
1797 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1798 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1799 cross_compiling
=$ac_cv_prog_cc_cross
1803 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1804 ac_cpp
='$CXXCPP $CPPFLAGS'
1805 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1806 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1807 cross_compiling
=$ac_cv_prog_cxx_cross
1809 echo $ac_n "checking declaration of hypot""... $ac_c" 1>&6
1810 echo "configure:1811: checking declaration of hypot" >&5
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1815 extern "C" { double hypot(double,double); }
1820 if { (eval echo configure
:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1822 echo "$ac_t""no" 1>&6
1824 echo "configure: failed program was:" >&5
1825 cat conftest.
$ac_ext >&5
1827 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1828 #define MATH_H_DECLARES_HYPOT 1
1834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1835 ac_cpp
='$CPP $CPPFLAGS'
1836 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1837 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1838 cross_compiling
=$ac_cv_prog_cc_cross
1842 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1843 ac_cpp
='$CXXCPP $CPPFLAGS'
1844 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1845 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1846 cross_compiling
=$ac_cv_prog_cxx_cross
1848 echo $ac_n "checking C++ <osfcn.h>""... $ac_c" 1>&6
1849 echo "configure:1850: checking C++ <osfcn.h>" >&5
1850 cat > conftest.
$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1855 read(0, 0, 0); open(0, 0);
1858 if { (eval echo configure
:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1860 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1861 #define HAVE_CC_OSFCN_H 1
1865 echo "configure: failed program was:" >&5
1866 cat conftest.
$ac_ext >&5
1868 echo "$ac_t""no" 1>&6
1872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1873 ac_cpp
='$CPP $CPPFLAGS'
1874 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1875 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1876 cross_compiling
=$ac_cv_prog_cc_cross
1880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1881 ac_cpp
='$CXXCPP $CPPFLAGS'
1882 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1883 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1884 cross_compiling
=$ac_cv_prog_cxx_cross
1886 echo $ac_n "checking C++ <limits.h>""... $ac_c" 1>&6
1887 echo "configure:1888: checking C++ <limits.h>" >&5
1888 cat > conftest.
$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1893 int x = INT_MIN; int y = INT_MAX; int z = UCHAR_MAX;
1896 if { (eval echo configure
:1897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1898 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
1899 #define HAVE_CC_LIMITS_H 1
1903 echo "configure: failed program was:" >&5
1904 cat conftest.
$ac_ext >&5
1906 echo "$ac_t""no" 1>&6
1910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1911 ac_cpp
='$CPP $CPPFLAGS'
1912 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1913 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1914 cross_compiling
=$ac_cv_prog_cc_cross
1918 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1919 ac_cpp
='$CXXCPP $CPPFLAGS'
1920 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1921 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1922 cross_compiling
=$ac_cv_prog_cxx_cross
1924 echo $ac_n "checking for declaration of time_t""... $ac_c" 1>&6
1925 echo "configure:1926: checking for declaration of time_t" >&5
1926 cat > conftest.
$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1931 time_t t = time(0); struct tm *p = localtime(&t);
1934 if { (eval echo configure
:1935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1936 echo "$ac_t""yes" 1>&6
1938 echo "configure: failed program was:" >&5
1939 cat conftest.
$ac_ext >&5
1941 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
1942 #define LONG_FOR_TIME_T 1
1948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1949 ac_cpp
='$CPP $CPPFLAGS'
1950 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1951 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1952 cross_compiling
=$ac_cv_prog_cc_cross
1954 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1955 echo "configure:1956: checking return type of signal handlers" >&5
1956 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 cat > conftest.
$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1962 #include <sys/types.h>
1968 extern "C" void (*signal (int, void (*)(int)))(int);
1970 void (*signal ()) ();
1977 if { (eval echo configure
:1978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1979 ac_cv_type_signal
=void
1981 echo "configure: failed program was:" >&5
1982 cat conftest.
$ac_ext >&5
1984 ac_cv_type_signal
=int
1989 echo "$ac_t""$ac_cv_type_signal" 1>&6
1990 cat >> confdefs.h
<<EOF
1991 #define RETSIGTYPE $ac_cv_type_signal
1995 echo $ac_n "checking struct exception""... $ac_c" 1>&6
1996 echo "configure:1997: checking struct exception" >&5
1997 cat > conftest.
$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2005 if { (eval echo configure
:2006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2007 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2008 #define HAVE_STRUCT_EXCEPTION 1
2012 echo "configure: failed program was:" >&5
2013 cat conftest.
$ac_ext >&5
2015 echo "$ac_t""no" 1>&6
2018 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
2019 echo "configure:2020: checking for sin in -lm" >&5
2020 ac_lib_var
=`echo m'_'sin | sed 'y%./+-%__p_%'`
2021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 ac_save_LIBS
="$LIBS"
2026 cat > conftest.
$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 /* Override any gcc2 internal prototype to avoid an error. */
2030 /* We use char because int might match the return type of a gcc2
2031 builtin and then its argument prototype would still apply. */
2038 if { (eval echo configure
:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2040 eval "ac_cv_lib_$ac_lib_var=yes"
2042 echo "configure: failed program was:" >&5
2043 cat conftest.
$ac_ext >&5
2045 eval "ac_cv_lib_$ac_lib_var=no"
2048 LIBS
="$ac_save_LIBS"
2051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2052 echo "$ac_t""yes" 1>&6
2055 echo "$ac_t""no" 1>&6
2059 for ac_hdr
in unistd.h
2061 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2063 echo "configure:2064: checking for $ac_hdr" >&5
2064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2072 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2073 { (eval echo configure
:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2074 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2075 if test -z "$ac_err"; then
2077 eval "ac_cv_header_$ac_safe=yes"
2080 echo "configure: failed program was:" >&5
2081 cat conftest.
$ac_ext >&5
2083 eval "ac_cv_header_$ac_safe=no"
2087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2090 cat >> confdefs.h
<<EOF
2091 #define $ac_tr_hdr 1
2095 echo "$ac_t""no" 1>&6
2099 for ac_func
in getpagesize
2101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_func" >&5
2103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.
$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 /* System header to define __stub macros and hopefully few prototypes,
2110 which can conflict with char $ac_func(); below. */
2112 /* Override any gcc2 internal prototype to avoid an error. */
2113 /* We use char because int might match the return type of a gcc2
2114 builtin and then its argument prototype would still apply. */
2119 /* The GNU C library defines this for functions which it implements
2120 to always fail with ENOSYS. Some functions are actually named
2121 something starting with __ and the normal name is an alias. */
2122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2130 if { (eval echo configure
:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2132 eval "ac_cv_func_$ac_func=yes"
2134 echo "configure: failed program was:" >&5
2135 cat conftest.
$ac_ext >&5
2137 eval "ac_cv_func_$ac_func=no"
2142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2143 echo "$ac_t""yes" 1>&6
2144 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2145 cat >> confdefs.h
<<EOF
2146 #define $ac_tr_func 1
2150 echo "$ac_t""no" 1>&6
2154 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2155 echo "configure:2156: checking for working mmap" >&5
2156 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 if test "$cross_compiling" = yes; then
2160 ac_cv_func_mmap_fixed_mapped
=no
2162 cat > conftest.
$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2166 /* Thanks to Mike Haertel and Jim Avera for this test.
2167 Here is a matrix of mmap possibilities:
2168 mmap private not fixed
2169 mmap private fixed at somewhere currently unmapped
2170 mmap private fixed at somewhere already mapped
2171 mmap shared not fixed
2172 mmap shared fixed at somewhere currently unmapped
2173 mmap shared fixed at somewhere already mapped
2174 For private mappings, we should verify that changes cannot be read()
2175 back from the file, nor mmap's back from the file at a different
2176 address. (There have been systems where private was not correctly
2177 implemented like the infamous i386 svr4.0, and systems where the
2178 VM page cache was not coherent with the filesystem buffer cache
2179 like early versions of FreeBSD and possibly contemporary NetBSD.)
2180 For shared mappings, we should conversely verify that changes get
2181 propogated back to all the places they're supposed to be.
2183 Grep wants private fixed already mapped.
2184 The main things grep needs to know about mmap are:
2185 * does it exist and is it safe to write into the mmap'd area
2186 * how to use it (BSD variants) */
2187 #include <sys/types.h>
2189 #include <sys/mman.h>
2191 /* This mess was copied from the GNU getpagesize.h. */
2192 #ifndef HAVE_GETPAGESIZE
2193 # ifdef HAVE_UNISTD_H
2194 # include <unistd.h>
2197 /* Assume that all systems that can run configure have sys/param.h. */
2198 # ifndef HAVE_SYS_PARAM_H
2199 # define HAVE_SYS_PARAM_H 1
2202 # ifdef _SC_PAGESIZE
2203 # define getpagesize() sysconf(_SC_PAGESIZE)
2204 # else /* no _SC_PAGESIZE */
2205 # ifdef HAVE_SYS_PARAM_H
2206 # include <sys/param.h>
2207 # ifdef EXEC_PAGESIZE
2208 # define getpagesize() EXEC_PAGESIZE
2209 # else /* no EXEC_PAGESIZE */
2211 # define getpagesize() NBPG * CLSIZE
2214 # endif /* no CLSIZE */
2215 # else /* no NBPG */
2217 # define getpagesize() NBPC
2218 # else /* no NBPC */
2220 # define getpagesize() PAGESIZE
2221 # endif /* PAGESIZE */
2222 # endif /* no NBPC */
2223 # endif /* no NBPG */
2224 # endif /* no EXEC_PAGESIZE */
2225 # else /* no HAVE_SYS_PARAM_H */
2226 # define getpagesize() 8192 /* punt totally */
2227 # endif /* no HAVE_SYS_PARAM_H */
2228 # endif /* no _SC_PAGESIZE */
2230 #endif /* no HAVE_GETPAGESIZE */
2233 extern "C" { void *malloc(unsigned); }
2241 char *data, *data2, *data3;
2245 pagesize = getpagesize();
2248 * First, make a file with some known garbage in it.
2250 data = malloc(pagesize);
2253 for (i = 0; i < pagesize; ++i)
2254 *(data + i) = rand();
2256 fd = creat("conftestmmap", 0600);
2259 if (write(fd, data, pagesize) != pagesize)
2264 * Next, try to mmap the file at a fixed address which
2265 * already has something else allocated at it. If we can,
2266 * also make sure that we see the same garbage.
2268 fd = open("conftestmmap", O_RDWR);
2271 data2 = malloc(2 * pagesize);
2274 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2275 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2276 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2278 for (i = 0; i < pagesize; ++i)
2279 if (*(data + i) != *(data2 + i))
2283 * Finally, make sure that changes to the mapped area
2284 * do not percolate back to the file as seen by read().
2285 * (This is a bug on some variants of i386 svr4.0.)
2287 for (i = 0; i < pagesize; ++i)
2288 *(data2 + i) = *(data2 + i) + 1;
2289 data3 = malloc(pagesize);
2292 if (read(fd, data3, pagesize) != pagesize)
2294 for (i = 0; i < pagesize; ++i)
2295 if (*(data + i) != *(data3 + i))
2298 unlink("conftestmmap");
2303 if { (eval echo configure
:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2305 ac_cv_func_mmap_fixed_mapped
=yes
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 ac_cv_func_mmap_fixed_mapped
=no
2317 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2318 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2319 cat >> confdefs.h
<<\EOF
2326 LIBS
="$LIBS -lc $LIBM"
2327 for ac_func
in fmod strtol getcwd strerror putenv
2329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_func" >&5
2331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 /* System header to define __stub macros and hopefully few prototypes,
2338 which can conflict with char $ac_func(); below. */
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2347 /* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2358 if { (eval echo configure
:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2360 eval "ac_cv_func_$ac_func=yes"
2362 echo "configure: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2365 eval "ac_cv_func_$ac_func=no"
2370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2373 cat >> confdefs.h
<<EOF
2374 #define $ac_tr_func 1
2378 echo "$ac_t""no" 1>&6
2379 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2385 for ac_func
in rename mkstemp strcasecmp strncasecmp strsep strdup
2387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_func" >&5
2389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 cat > conftest.
$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 /* System header to define __stub macros and hopefully few prototypes,
2396 which can conflict with char $ac_func(); below. */
2398 /* Override any gcc2 internal prototype to avoid an error. */
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2405 /* The GNU C library defines this for functions which it implements
2406 to always fail with ENOSYS. Some functions are actually named
2407 something starting with __ and the normal name is an alias. */
2408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2416 if { (eval echo configure
:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2418 eval "ac_cv_func_$ac_func=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2423 eval "ac_cv_func_$ac_func=no"
2428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2431 cat >> confdefs.h
<<EOF
2432 #define $ac_tr_func 1
2436 echo "$ac_t""no" 1>&6
2440 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2441 echo "configure:2442: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2442 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 cat > conftest.
$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 #include <sys/types.h>
2450 /* NetBSD declares sys_siglist in unistd.h. */
2451 #ifdef HAVE_UNISTD_H
2455 char *msg = *(sys_siglist + 1);
2458 if { (eval echo configure
:2459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2460 ac_cv_decl_sys_siglist
=yes
2462 echo "configure: failed program was:" >&5
2463 cat conftest.
$ac_ext >&5
2465 ac_cv_decl_sys_siglist
=no
2470 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2471 if test $ac_cv_decl_sys_siglist = yes; then
2472 cat >> confdefs.h
<<\EOF
2473 #define SYS_SIGLIST_DECLARED 1
2480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2481 ac_cpp
='$CXXCPP $CPPFLAGS'
2482 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2483 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2484 cross_compiling
=$ac_cv_prog_cxx_cross
2486 echo $ac_n "checking whether ANSI array delete syntax supported""... $ac_c" 1>&6
2487 echo "configure:2488: checking whether ANSI array delete syntax supported" >&5
2488 cat > conftest.
$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2493 char *p = new char[5]; delete [] p;
2496 if { (eval echo configure
:2497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2498 echo "$ac_t""yes" 1>&6
2500 echo "configure: failed program was:" >&5
2501 cat conftest.
$ac_ext >&5
2503 echo "$ac_t""no" 1>&6;cat >> confdefs.h
<<\EOF
2504 #define ARRAY_DELETE_NEEDS_SIZE 1
2510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2511 ac_cpp
='$CPP $CPPFLAGS'
2512 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2513 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2514 cross_compiling
=$ac_cv_prog_cc_cross
2518 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2519 ac_cpp
='$CXXCPP $CPPFLAGS'
2520 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2521 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2522 cross_compiling
=$ac_cv_prog_cxx_cross
2524 echo $ac_n "checking traditional preprocessor""... $ac_c" 1>&6
2525 echo "configure:2526: checking traditional preprocessor" >&5
2526 cat > conftest.
$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2529 #define name2(a,b) a/**/b
2534 if { (eval echo configure
:2535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2536 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2537 #define TRADITIONAL_CPP 1
2541 echo "configure: failed program was:" >&5
2542 cat conftest.
$ac_ext >&5
2544 echo "$ac_t""no" 1>&6
2548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2549 ac_cpp
='$CPP $CPPFLAGS'
2550 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2551 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2552 cross_compiling
=$ac_cv_prog_cc_cross
2554 echo $ac_n "checking w_coredump""... $ac_c" 1>&6
2555 echo "configure:2556: checking w_coredump" >&5
2556 if test "$cross_compiling" = yes; then
2557 echo "$ac_t""no" 1>&6
2559 cat > conftest.
$ac_ext <<EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2562 #include <sys/types.h>
2563 #include <sys/wait.h>
2570 ((union wait *)&i)->w_coredump = 1;
2575 if { (eval echo configure
:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2577 echo "$ac_t""yes" 1>&6;cat >> confdefs.h
<<\EOF
2578 #define WCOREFLAG 0200
2582 echo "configure: failed program was:" >&5
2583 cat conftest.
$ac_ext >&5
2585 echo "$ac_t""no" 1>&6
2590 echo $ac_n "checking default value for grops -b option""... $ac_c" 1>&6
2591 echo "configure:2592: checking default value for grops -b option" >&5
2592 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=7
2593 echo "$ac_t""$BROKEN_SPOOLER_FLAGS" 1>&6
2595 echo $ac_n "checking default paper size""... $ac_c" 1>&6
2596 echo "configure:2597: checking default paper size" >&5
2597 if test -z "$PAGE"; then
2599 if test -r $prefix/share
/groff
/font
/devps
/DESC
; then
2600 descfile
=$prefix/share
/groff
/font
/devps
/DESC
2601 elif test -r $prefix/lib
/groff
/font
/devps
/DESC
; then
2602 descfile
=$prefix/lib
/groff
/font
/devps
/DESC
2604 if test -n "$descfile" \
2605 && grep "^paperlength 841890" $descfile >/dev
/null
2>&1; then
2611 if test -z "$PAGE"; then
2612 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
2613 /etc/resolv.conf 2>/dev/null`
2614 if test -z "$dom"; then
2615 dom
=`(domainname) 2>/dev/null | tr -d '+'`
2616 if test -z "$dom"; then
2617 dom
=`(hostname) 2>/dev/null | grep '\.'`
2620 # If the top-level domain is two letters and it's not `us' or `ca'
2621 # then they probably use A4 paper.
2623 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
]) ;;
2624 *.
[A-Za-z
][A-Za-z
]) PAGE
=A4
;;
2627 test -n "$PAGE" || PAGE
=letter
2628 echo "$ac_t""$PAGE" 1>&6
2630 echo $ac_n "checking for existing troff installation""... $ac_c" 1>&6
2631 echo "configure:2632: checking for existing troff installation" >&5
2632 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
2633 echo "$ac_t""yes" 1>&6
2636 echo "$ac_t""no" 1>&6
2640 echo $ac_n "checking for prefix of system macro packages""... $ac_c" 1>&6
2641 echo "configure:2642: checking for prefix of system macro packages" >&5
2643 sys_tmac_file_prefix
=
2644 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
2645 for t
in "" tmac.
; do
2648 if test -z "$sys_tmac_prefix" \
2650 && grep '^\.if' $f >/dev
/null
2>&1; then
2651 sys_tmac_prefix
=$d/$t
2652 sys_tmac_file_prefix
=$t
2657 echo "$ac_t""$sys_tmac_prefix" 1>&6
2660 echo $ac_n "checking which system macro packages should be made available""... $ac_c" 1>&6
2661 echo "configure:2662: checking which system macro packages should be made available" >&5
2662 if test "x$sys_tmac_file_prefix" = "xtmac."; then
2663 for f
in $sys_tmac_prefix*; do
2664 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2668 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
2669 || tmac_wrap
="$tmac_wrap $suff" ;;
2672 elif test -n "$sys_tmac_prefix"; then
2673 files
=`echo $sys_tmac_prefix*`
2674 grep "\\.so" $files >conftest.sol
2677 ${sys_tmac_prefix}e
) ;;
2682 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
2683 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
2686 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
2689 *) tmac_wrap
="$tmac_wrap $suff" ;;
2696 echo "$ac_t""$tmac_wrap" 1>&6
2698 $srcdir/mkinstalldirs src
/xditview
2700 cat > confcache
<<\EOF
2701 # This file is a shell script that caches the results of configure
2702 # tests run on this system so they can be shared between configure
2703 # scripts and configure runs. It is not useful on other systems.
2704 # If it contains results you don't want to keep, you may remove or edit it.
2706 # By default, configure uses ./config.cache as the cache file,
2707 # creating it if it does not exist already. You can give configure
2708 # the --cache-file=FILE option to use a different cache file; that is
2709 # what configure does when it calls configure scripts in
2710 # subdirectories, so they share the cache.
2711 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2712 # config.status only pays attention to the cache file if you give it the
2713 # --recheck option to rerun configure.
2716 # The following way of writing the cache mishandles newlines in values,
2717 # but we know of no workaround that is simple, portable, and efficient.
2718 # So, don't put newlines in cache variables' values.
2719 # Ultrix sh set writes to stderr and can't be redirected directly,
2720 # and sets the high bit in the cache file unless we assign to the vars.
2722 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2724 # `set' does not quote correctly, so add quotes (double-quote substitution
2725 # turns \\\\ into \\, and sed turns \\ into \).
2727 -e "s/'/'\\\\''/g" \
2728 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2731 # `set' quotes correctly as required by POSIX, so do not add quotes.
2732 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2735 if cmp -s $cache_file confcache
; then
2738 if test -w $cache_file; then
2739 echo "updating cache $cache_file"
2740 cat confcache
> $cache_file
2742 echo "not updating unwritable cache $cache_file"
2747 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2749 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2750 # Let make expand exec_prefix.
2751 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2753 # Any assignment to VPATH causes Sun make to only execute
2754 # the first set of double-colon rules, so remove it if not needed.
2755 # If there is a colon in the path, we need to keep it.
2756 if test "x$srcdir" = x.
; then
2757 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2760 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2762 # Transform confdefs.h into DEFS.
2763 # Protect against shell expansion while executing Makefile rules.
2764 # Protect against Makefile macro expansion.
2765 cat > conftest.defs
<<\EOF
2766 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2767 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2772 if test "$groff_cv_os390" = "yes"; then
2773 DEFS=`sed -f conftest.defs confdefs.h |
tr '\n' ' '`
2775 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2780 # Without the "./", some shells look in PATH for config.status.
2781 : ${CONFIG_STATUS=./config.status}
2783 echo creating $CONFIG_STATUS
2784 rm -f $CONFIG_STATUS
2785 cat > $CONFIG_STATUS <<EOF
2787 # Generated automatically by configure.
2788 # Run this file to recreate the current configuration.
2789 # This directory was configured as follows,
2790 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2792 # $0 $ac_configure_args
2794 # Compiler output produced by configure, useful for debugging
2795 # configure, is in ./config.log if it exists.
2797 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2800 case "\$ac_option" in
2801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2802 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2803 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2804 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2805 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2807 -help | --help | --hel | --he | --h)
2808 echo "\$ac_cs_usage"; exit 0 ;;
2809 *) echo "\$ac_cs_usage"; exit 1 ;;
2813 ac_given_srcdir=$srcdir
2814 ac_given_INSTALL="$INSTALL"
2816 trap 'rm -fr `echo "Makefile src/xditview/Imakefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2818 cat >> $CONFIG_STATUS <<EOF
2820 # Protect against being on the right side of a sed subst in config.status.
2821 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2822 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2826 s%@CFLAGS@%$CFLAGS%g
2827 s%@CPPFLAGS@%$CPPFLAGS%g
2828 s%@CXXFLAGS@%$CXXFLAGS%g
2829 s%@FFLAGS@%$FFLAGS%g
2831 s%@LDFLAGS@%$LDFLAGS%g
2833 s%@exec_prefix@%$exec_prefix%g
2834 s%@prefix@%$prefix%g
2835 s%@program_transform_name@%$program_transform_name%g
2836 s%@bindir@%$bindir%g
2837 s%@sbindir@%$sbindir%g
2838 s%@libexecdir@%$libexecdir%g
2839 s%@datadir@%$datadir%g
2840 s%@sysconfdir@%$sysconfdir%g
2841 s%@sharedstatedir@%$sharedstatedir%g
2842 s%@localstatedir@%$localstatedir%g
2843 s%@libdir@%$libdir%g
2844 s%@includedir@%$includedir%g
2845 s%@oldincludedir@%$oldincludedir%g
2846 s%@infodir@%$infodir%g
2847 s%@mandir@%$mandir%g
2848 s%@top_builddir@%$top_builddir%g
2851 s%@TTYDEVDIRS@%$TTYDEVDIRS%g
2855 s%@PSPRINT@%$PSPRINT%g
2856 s%@DVIPRINT@%$DVIPRINT%g
2857 s%@PERLPATH@%$PERLPATH%g
2859 s%@RANLIB@%$RANLIB%g
2860 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2861 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2862 s%@INSTALL_DATA@%$INSTALL_DATA%g
2864 s%@SH_SCRIPT_SED_CMD@%$SH_SCRIPT_SED_CMD%g
2867 s%@LIBOBJS@%$LIBOBJS%g
2868 s%@BROKEN_SPOOLER_FLAGS@%$BROKEN_SPOOLER_FLAGS%g
2871 s%@sys_tmac_prefix@%$sys_tmac_prefix%g
2872 s%@tmac_wrap@%$tmac_wrap%g
2877 cat >> $CONFIG_STATUS <<\EOF
2879 # Split the substitutions into bite-sized pieces for seds with
2880 # small command number limits, like on Digital OSF/1 and HP-UX.
2881 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2882 ac_file=1 # Number of current file.
2883 ac_beg=1 # First line for current file.
2884 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2887 while $ac_more_lines; do
2888 if test $ac_beg -gt 1; then
2889 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2891 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2893 if test ! -s conftest.s$ac_file; then
2895 rm -f conftest.s$ac_file
2897 if test -z "$ac_sed_cmds"; then
2898 ac_sed_cmds="sed -f conftest.s$ac_file"
2900 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2902 ac_file=`expr $ac_file + 1`
2904 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2907 if test -z "$ac_sed_cmds"; then
2912 cat >> $CONFIG_STATUS <<EOF
2914 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/xditview/Imakefile"}
2916 cat >> $CONFIG_STATUS <<\EOF
2917 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2920 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2921 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2922 *) ac_file_in="${ac_file}.in" ;;
2925 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2927 # Remove last slash and all that follows it. Not all systems have dirname.
2928 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2929 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2930 # The file is in a subdirectory.
2931 test ! -d "$ac_dir" && mkdir "$ac_dir"
2932 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2933 # A "../" for each directory in $ac_dir_suffix.
2934 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2936 ac_dir_suffix= ac_dots=
2939 case "$ac_given_srcdir" in
2941 if test -z "$ac_dots"; then top_srcdir=.
2942 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2943 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2945 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2946 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2949 case "$ac_given_INSTALL" in
2950 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2951 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2954 echo creating "$ac_file"
2956 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2958 *Makefile*) ac_comsub="1i\\
2959 # $configure_input" ;;
2963 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2965 s%@configure_input@%$configure_input%g
2966 s%@srcdir@%$srcdir%g
2967 s%@top_srcdir@%$top_srcdir%g
2968 s%@INSTALL@%$INSTALL%g
2969 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2974 cat >> $CONFIG_STATUS <<EOF
2977 cat >> $CONFIG_STATUS <<\EOF
2981 chmod +x $CONFIG_STATUS
2982 rm -fr confdefs* $ac_clean_files
2983 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1