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 --with-x use the X Window System"
17 --with-WinNT WinNT host"
19 --with-BeOS BeOS host"
21 --with-Linux Linux host"
23 --with-NetBSD NetBSD host"
25 --with-FreeBSD FreeBSD host"
27 --with-null No real host"
29 --with-linux-source=dir Linux kernel source dir"
31 --with-netbsd-source=dir NetBSD kernel source dir"
33 --with-freebsd-source=dir FreeBSD kernel source dir"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file
=.
/config.cache
48 program_transform_name
=s
,x
,x
,
56 bindir
='${exec_prefix}/bin'
57 sbindir
='${exec_prefix}/sbin'
58 libexecdir
='${exec_prefix}/libexec'
59 datadir
='${prefix}/share'
60 sysconfdir
='${prefix}/etc'
61 sharedstatedir
='${prefix}/com'
62 localstatedir
='${prefix}/var'
63 libdir
='${exec_prefix}/lib'
64 includedir
='${prefix}/include'
65 oldincludedir
='/usr/include'
66 infodir
='${prefix}/info'
67 mandir
='${prefix}/man'
69 # Initialize some other variables.
72 SHELL
=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
98 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
99 bindir
="$ac_optarg" ;;
101 -build |
--build |
--buil |
--bui |
--bu)
103 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
104 build
="$ac_optarg" ;;
106 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
107 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
108 ac_prev
=cache_file
;;
109 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
110 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
111 cache_file
="$ac_optarg" ;;
113 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
115 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
117 datadir
="$ac_optarg" ;;
119 -disable-* |
--disable-*)
120 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* |
--enable-*)
129 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
142 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
143 |
--exec |
--exe |
--ex)
144 ac_prev
=exec_prefix
;;
145 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
146 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
147 |
--exec=* |
--exe=* |
--ex=*)
148 exec_prefix
="$ac_optarg" ;;
150 -gas |
--gas |
--ga |
--g)
151 # Obsolete; use --with-gas.
154 -help |
--help |
--hel |
--he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host |
--host |
--hos |
--ho)
211 -host=* |
--host=* |
--hos=* |
--ho=*)
214 -includedir |
--includedir |
--includedi |
--included |
--include \
215 |
--includ |
--inclu |
--incl |
--inc)
216 ac_prev
=includedir
;;
217 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
218 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
219 includedir
="$ac_optarg" ;;
221 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
223 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
224 infodir
="$ac_optarg" ;;
226 -libdir |
--libdir |
--libdi |
--libd)
228 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
229 libdir
="$ac_optarg" ;;
231 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
232 |
--libexe |
--libex |
--libe)
233 ac_prev
=libexecdir
;;
234 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
235 |
--libexe=* |
--libex=* |
--libe=*)
236 libexecdir
="$ac_optarg" ;;
238 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
239 |
--localstate |
--localstat |
--localsta |
--localst \
240 |
--locals |
--local |
--loca |
--loc |
--lo)
241 ac_prev
=localstatedir
;;
242 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
243 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
244 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
245 localstatedir
="$ac_optarg" ;;
247 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
249 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
250 mandir
="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
260 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
261 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
264 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
265 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
266 |
--oldin |
--oldi |
--old |
--ol |
--o)
267 ac_prev
=oldincludedir
;;
268 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
269 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
270 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
271 oldincludedir
="$ac_optarg" ;;
273 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
275 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
276 prefix
="$ac_optarg" ;;
278 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
279 |
--program-pre |
--program-pr |
--program-p)
280 ac_prev
=program_prefix
;;
281 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
282 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
283 program_prefix
="$ac_optarg" ;;
285 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
286 |
--program-suf |
--program-su |
--program-s)
287 ac_prev
=program_suffix
;;
288 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
289 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
290 program_suffix
="$ac_optarg" ;;
292 -program-transform-name |
--program-transform-name \
293 |
--program-transform-nam |
--program-transform-na \
294 |
--program-transform-n |
--program-transform- \
295 |
--program-transform |
--program-transfor \
296 |
--program-transfo |
--program-transf \
297 |
--program-trans |
--program-tran \
298 |
--progr-tra |
--program-tr |
--program-t)
299 ac_prev
=program_transform_name
;;
300 -program-transform-name=* |
--program-transform-name=* \
301 |
--program-transform-nam=* |
--program-transform-na=* \
302 |
--program-transform-n=* |
--program-transform-=* \
303 |
--program-transform=* |
--program-transfor=* \
304 |
--program-transfo=* |
--program-transf=* \
305 |
--program-trans=* |
--program-tran=* \
306 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
307 program_transform_name
="$ac_optarg" ;;
309 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
310 |
-silent |
--silent |
--silen |
--sile |
--sil)
313 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
315 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
317 sbindir
="$ac_optarg" ;;
319 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
320 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
321 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
323 ac_prev
=sharedstatedir
;;
324 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
325 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
326 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
328 sharedstatedir
="$ac_optarg" ;;
330 -site |
--site |
--sit)
332 -site=* |
--site=* |
--sit=*)
335 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
337 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
338 srcdir
="$ac_optarg" ;;
340 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
341 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
342 ac_prev
=sysconfdir
;;
343 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
344 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
345 sysconfdir
="$ac_optarg" ;;
347 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
349 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
350 target
="$ac_optarg" ;;
352 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
355 -version |
--version |
--versio |
--versi |
--vers)
356 echo "configure generated by autoconf version 2.13"
360 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* |
--without-*)
373 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package
=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
386 |
--x-incl |
--x-inc |
--x-in |
--x-i)
387 ac_prev
=x_includes
;;
388 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
389 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
390 x_includes
="$ac_optarg" ;;
392 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
393 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
394 ac_prev
=x_libraries
;;
395 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
396 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
397 x_libraries
="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE
; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
448 |
--no-cr |
--no-c) ;;
449 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
450 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
451 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest
* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file
=COPYING
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted
=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted
=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE
; then
502 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file
in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp
='$CPP $CPPFLAGS'
525 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling
=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
540 ac_n
= ac_c
='\c' ac_t
=
549 # Extract the first word of "gcc", so it can be a program name with args.
550 set dummy gcc
; ac_word
=$2
551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
552 echo "configure:553: checking for $ac_word" >&5
553 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
556 if test -n "$CC"; then
557 ac_cv_prog_CC
="$CC" # Let the user override the test.
559 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
561 for ac_dir
in $ac_dummy; do
562 test -z "$ac_dir" && ac_dir
=.
563 if test -f $ac_dir/$ac_word; then
572 if test -n "$CC"; then
573 echo "$ac_t""$CC" 1>&6
575 echo "$ac_t""no" 1>&6
578 if test -z "$CC"; then
579 # Extract the first word of "cc", so it can be a program name with args.
580 set dummy cc
; ac_word
=$2
581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
582 echo "configure:583: checking for $ac_word" >&5
583 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 if test -n "$CC"; then
587 ac_cv_prog_CC
="$CC" # Let the user override the test.
589 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
592 for ac_dir
in $ac_dummy; do
593 test -z "$ac_dir" && ac_dir
=.
594 if test -f $ac_dir/$ac_word; then
595 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
604 if test $ac_prog_rejected = yes; then
605 # We found a bogon in the path, so make sure we never use it.
606 set dummy
$ac_cv_prog_CC
608 if test $# -gt 0; then
609 # We chose a different compiler from the bogus one.
610 # However, it has the same basename, so the bogon will be chosen
611 # first if we set CC to just the basename; use the full file name.
613 set dummy
"$ac_dir/$ac_word" "$@"
621 if test -n "$CC"; then
622 echo "$ac_t""$CC" 1>&6
624 echo "$ac_t""no" 1>&6
627 if test -z "$CC"; then
630 # Extract the first word of "cl", so it can be a program name with args.
631 set dummy cl
; ac_word
=$2
632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
633 echo "configure:634: checking for $ac_word" >&5
634 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
637 if test -n "$CC"; then
638 ac_cv_prog_CC
="$CC" # Let the user override the test.
640 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
642 for ac_dir
in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir
=.
644 if test -f $ac_dir/$ac_word; then
653 if test -n "$CC"; then
654 echo "$ac_t""$CC" 1>&6
656 echo "$ac_t""no" 1>&6
661 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
664 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
665 echo "configure:666: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
669 ac_cpp
='$CPP $CPPFLAGS'
670 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
671 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
672 cross_compiling
=$ac_cv_prog_cc_cross
674 cat > conftest.
$ac_ext << EOF
676 #line 677 "configure"
677 #include "confdefs.h"
681 if { (eval echo configure
:682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
682 ac_cv_prog_cc_works
=yes
683 # If we can't run a trivial program, we are probably using a cross compiler.
684 if (.
/conftest
; exit) 2>/dev
/null
; then
685 ac_cv_prog_cc_cross
=no
687 ac_cv_prog_cc_cross
=yes
690 echo "configure: failed program was:" >&5
691 cat conftest.
$ac_ext >&5
692 ac_cv_prog_cc_works
=no
696 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
697 ac_cpp
='$CPP $CPPFLAGS'
698 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
699 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
700 cross_compiling
=$ac_cv_prog_cc_cross
702 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
703 if test $ac_cv_prog_cc_works = no
; then
704 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
706 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
707 echo "configure:708: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
708 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
709 cross_compiling
=$ac_cv_prog_cc_cross
711 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
712 echo "configure:713: checking whether we are using GNU C" >&5
713 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
714 echo $ac_n "(cached) $ac_c" 1>&6
716 cat > conftest.c
<<EOF
721 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
728 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
730 if test $ac_cv_prog_gcc = yes; then
736 ac_test_CFLAGS
="${CFLAGS+set}"
737 ac_save_CFLAGS
="$CFLAGS"
739 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
740 echo "configure:741: checking whether ${CC-cc} accepts -g" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 echo 'void f(){}' > conftest.c
745 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
754 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
755 if test "$ac_test_CFLAGS" = set; then
756 CFLAGS
="$ac_save_CFLAGS"
757 elif test $ac_cv_prog_cc_g = yes; then
758 if test "$GCC" = yes; then
764 if test "$GCC" = yes; then
771 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
772 echo "configure:773: checking whether ${MAKE-make} sets \${MAKE}" >&5
773 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
774 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
777 cat > conftestmake
<<\EOF
779 @
echo 'ac_maketemp="${MAKE}"'
781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
782 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
783 if test -n "$ac_maketemp"; then
784 eval ac_cv_prog_make_
${ac_make}_set
=yes
786 eval ac_cv_prog_make_
${ac_make}_set
=no
790 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
791 echo "$ac_t""yes" 1>&6
794 echo "$ac_t""no" 1>&6
795 SET_MAKE
="MAKE=${MAKE-make}"
798 # Extract the first word of "ranlib", so it can be a program name with args.
799 set dummy ranlib
; ac_word
=$2
800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
801 echo "configure:802: checking for $ac_word" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 if test -n "$RANLIB"; then
806 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
808 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
810 for ac_dir
in $ac_dummy; do
811 test -z "$ac_dir" && ac_dir
=.
812 if test -f $ac_dir/$ac_word; then
813 ac_cv_prog_RANLIB
="ranlib"
818 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
821 RANLIB
="$ac_cv_prog_RANLIB"
822 if test -n "$RANLIB"; then
823 echo "$ac_t""$RANLIB" 1>&6
825 echo "$ac_t""no" 1>&6
829 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
830 echo "configure:831: checking how to run the C preprocessor" >&5
831 # On Suns, sometimes $CPP names a directory.
832 if test -n "$CPP" && test -d "$CPP"; then
835 if test -z "$CPP"; then
836 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 # This must be in double quotes, not single quotes, because CPP may get
840 # substituted into the Makefile and "${CC-cc}" will confuse make.
842 # On the NeXT, cc -E runs the code through the compiler's parser,
843 # not just through cpp.
844 cat > conftest.
$ac_ext <<EOF
845 #line 846 "configure"
846 #include "confdefs.h"
850 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
851 { (eval echo configure
:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
852 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
853 if test -z "$ac_err"; then
857 echo "configure: failed program was:" >&5
858 cat conftest.
$ac_ext >&5
860 CPP
="${CC-cc} -E -traditional-cpp"
861 cat > conftest.
$ac_ext <<EOF
862 #line 863 "configure"
863 #include "confdefs.h"
867 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
868 { (eval echo configure
:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
869 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
870 if test -z "$ac_err"; then
874 echo "configure: failed program was:" >&5
875 cat conftest.
$ac_ext >&5
877 CPP
="${CC-cc} -nologo -E"
878 cat > conftest.
$ac_ext <<EOF
879 #line 880 "configure"
880 #include "confdefs.h"
884 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
885 { (eval echo configure
:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
886 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
887 if test -z "$ac_err"; then
891 echo "configure: failed program was:" >&5
892 cat conftest.
$ac_ext >&5
901 ac_cv_prog_CPP
="$CPP"
903 CPP
="$ac_cv_prog_CPP"
905 ac_cv_prog_CPP
="$CPP"
907 echo "$ac_t""$CPP" 1>&6
909 # If we find X, set shell vars x_includes and x_libraries to the
910 # paths, otherwise set no_x=yes.
911 # Uses ac_ vars as temps to allow command line to override cache and checks.
912 # --without-x overrides everything else, but does not touch the cache.
913 echo $ac_n "checking for X""... $ac_c" 1>&6
914 echo "configure:915: checking for X" >&5
916 # Check whether --with-x or --without-x was given.
917 if test "${with_x+set}" = set; then
922 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
923 if test "x$with_x" = xno
; then
924 # The user explicitly disabled X.
927 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
928 # Both variables are already set.
931 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 # One or both of the vars are not set, and there is no cached value.
935 ac_x_includes
=NO ac_x_libraries
=NO
937 if mkdir conftestdir
; then
939 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
940 cat > Imakefile
<<'EOF'
942 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
944 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
945 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
946 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
947 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
948 for ac_extension
in a so sl
; do
949 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
950 test -f $ac_im_libdir/libX11.
$ac_extension; then
951 ac_im_usrlibdir
=$ac_im_libdir; break
954 # Screen out bogus values from the imake configuration. They are
955 # bogus both because they are the default anyway, and because
956 # using them would break gcc on systems where it needs fixed includes.
957 case "$ac_im_incroot" in
959 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
961 case "$ac_im_usrlibdir" in
963 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
970 if test "$ac_x_includes" = NO
; then
971 # Guess where to find include files, by looking for this one X11 .h file.
972 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
974 # First, try using that file with no special directory specified.
975 cat > conftest.
$ac_ext <<EOF
976 #line 977 "configure"
977 #include "confdefs.h"
978 #include <$x_direct_test_include>
980 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
981 { (eval echo configure
:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
982 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
983 if test -z "$ac_err"; then
985 # We can compile using X headers with no special include directory.
989 echo "configure: failed program was:" >&5
990 cat conftest.
$ac_ext >&5
992 # Look for the header file in a standard set of common directories.
993 # Check X11 before X11Rn because it is often a symlink to the current release.
1001 /usr
/include
/X11R6 \
1002 /usr
/include
/X11R5 \
1003 /usr
/include
/X11R4 \
1005 /usr
/local
/X11
/include \
1006 /usr
/local
/X11R
6/include \
1007 /usr
/local
/X11R
5/include \
1008 /usr
/local
/X11R
4/include \
1010 /usr
/local
/include
/X11 \
1011 /usr
/local
/include
/X11R6 \
1012 /usr
/local
/include
/X11R5 \
1013 /usr
/local
/include
/X11R4 \
1017 /usr
/XFree86
/include
/X11 \
1020 /usr
/local
/include \
1021 /usr
/unsupported
/include \
1022 /usr
/athena
/include \
1023 /usr
/local
/x11r
5/include \
1024 /usr
/lpp
/Xamples
/include \
1026 /usr
/openwin
/include \
1027 /usr
/openwin
/share
/include \
1030 if test -r "$ac_dir/$x_direct_test_include"; then
1031 ac_x_includes
=$ac_dir
1037 fi # $ac_x_includes = NO
1039 if test "$ac_x_libraries" = NO
; then
1040 # Check for the libraries.
1042 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1043 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1045 # See if we find them without any special options.
1046 # Don't add to $LIBS permanently.
1047 ac_save_LIBS
="$LIBS"
1048 LIBS
="-l$x_direct_test_library $LIBS"
1049 cat > conftest.
$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1054 ${x_direct_test_function}()
1057 if { (eval echo configure
:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1059 LIBS
="$ac_save_LIBS"
1060 # We can link X programs with no special library path.
1063 echo "configure: failed program was:" >&5
1064 cat conftest.
$ac_ext >&5
1066 LIBS
="$ac_save_LIBS"
1067 # First see if replacing the include by lib works.
1068 # Check X11 before X11Rn because it is often a symlink to the current release.
1069 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1080 /usr
/local
/X11
/lib \
1081 /usr
/local
/X11R
6/lib \
1082 /usr
/local
/X11R
5/lib \
1083 /usr
/local
/X11R
4/lib \
1085 /usr
/local
/lib
/X11 \
1086 /usr
/local
/lib
/X11R6 \
1087 /usr
/local
/lib
/X11R5 \
1088 /usr
/local
/lib
/X11R4 \
1092 /usr
/XFree86
/lib
/X11 \
1096 /usr
/unsupported
/lib \
1098 /usr
/local
/x11r
5/lib \
1099 /usr
/lpp
/Xamples
/lib \
1103 /usr
/openwin
/share
/lib \
1106 for ac_extension
in a so sl
; do
1107 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1108 ac_x_libraries
=$ac_dir
1115 fi # $ac_x_libraries = NO
1117 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1118 # Didn't find X anywhere. Cache the known absence of X.
1119 ac_cv_have_x
="have_x=no"
1121 # Record where we found X for the cache.
1122 ac_cv_have_x
="have_x=yes \
1123 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1127 eval "$ac_cv_have_x"
1130 if test "$have_x" != yes; then
1131 echo "$ac_t""$have_x" 1>&6
1134 # If each of the values was on the command line, it overrides each guess.
1135 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1136 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1137 # Update the cache value to reflect the command line values.
1138 ac_cv_have_x
="have_x=yes \
1139 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1140 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1143 if test "$no_x" = yes; then
1144 # Not all programs may use this symbol, but it does not hurt to define it.
1145 cat >> confdefs.h
<<\EOF
1146 #define X_DISPLAY_MISSING 1
1149 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1151 if test -n "$x_includes"; then
1152 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1155 # It would also be nice to do this for all -L options, not just this one.
1156 if test -n "$x_libraries"; then
1157 X_LIBS
="$X_LIBS -L$x_libraries"
1158 # For Solaris; some versions of Sun CC require a space after -R and
1159 # others require no space. Words are not sufficient . . . .
1160 case "`(uname -sr) 2>/dev/null`" in
1162 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1163 echo "configure:1164: checking whether -R must be followed by a space" >&5
1164 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1165 cat > conftest.
$ac_ext <<EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1173 if { (eval echo configure
:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1177 echo "configure: failed program was:" >&5
1178 cat conftest.
$ac_ext >&5
1183 if test $ac_R_nospace = yes; then
1184 echo "$ac_t""no" 1>&6
1185 X_LIBS
="$X_LIBS -R$x_libraries"
1187 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1188 cat > conftest.
$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1196 if { (eval echo configure
:1197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1200 echo "configure: failed program was:" >&5
1201 cat conftest.
$ac_ext >&5
1206 if test $ac_R_space = yes; then
1207 echo "$ac_t""yes" 1>&6
1208 X_LIBS
="$X_LIBS -R $x_libraries"
1210 echo "$ac_t""neither works" 1>&6
1213 LIBS
="$ac_xsave_LIBS"
1217 # Check for system-dependent libraries X programs must link with.
1218 # Do this before checking for the system-independent R6 libraries
1219 # (-lICE), since we may need -lsocket or whatever for X linking.
1221 if test "$ISC" = yes; then
1222 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1224 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1225 # libraries were built with DECnet support. And karl@cs.umb.edu says
1226 # the Alpha needs dnet_stub (dnet does not exist).
1227 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1228 echo "configure:1229: checking for dnet_ntoa in -ldnet" >&5
1229 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 ac_save_LIBS
="$LIBS"
1235 cat > conftest.
$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1238 /* Override any gcc2 internal prototype to avoid an error. */
1239 /* We use char because int might match the return type of a gcc2
1240 builtin and then its argument prototype would still apply. */
1247 if { (eval echo configure
:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1249 eval "ac_cv_lib_$ac_lib_var=yes"
1251 echo "configure: failed program was:" >&5
1252 cat conftest.
$ac_ext >&5
1254 eval "ac_cv_lib_$ac_lib_var=no"
1257 LIBS
="$ac_save_LIBS"
1260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1261 echo "$ac_t""yes" 1>&6
1262 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1264 echo "$ac_t""no" 1>&6
1267 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1268 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1269 echo "configure:1270: checking for dnet_ntoa in -ldnet_stub" >&5
1270 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 ac_save_LIBS
="$LIBS"
1275 LIBS
="-ldnet_stub $LIBS"
1276 cat > conftest.
$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 /* Override any gcc2 internal prototype to avoid an error. */
1280 /* We use char because int might match the return type of a gcc2
1281 builtin and then its argument prototype would still apply. */
1288 if { (eval echo configure
:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1290 eval "ac_cv_lib_$ac_lib_var=yes"
1292 echo "configure: failed program was:" >&5
1293 cat conftest.
$ac_ext >&5
1295 eval "ac_cv_lib_$ac_lib_var=no"
1298 LIBS
="$ac_save_LIBS"
1301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1302 echo "$ac_t""yes" 1>&6
1303 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1305 echo "$ac_t""no" 1>&6
1310 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1311 # to get the SysV transport functions.
1312 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1314 # The nsl library prevents programs from opening the X display
1315 # on Irix 5.2, according to dickey@clark.net.
1316 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1317 echo "configure:1318: checking for gethostbyname" >&5
1318 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 cat > conftest.
$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1324 /* System header to define __stub macros and hopefully few prototypes,
1325 which can conflict with char gethostbyname(); below. */
1327 /* Override any gcc2 internal prototype to avoid an error. */
1328 /* We use char because int might match the return type of a gcc2
1329 builtin and then its argument prototype would still apply. */
1330 char gethostbyname();
1334 /* The GNU C library defines this for functions which it implements
1335 to always fail with ENOSYS. Some functions are actually named
1336 something starting with __ and the normal name is an alias. */
1337 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1345 if { (eval echo configure
:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1347 eval "ac_cv_func_gethostbyname=yes"
1349 echo "configure: failed program was:" >&5
1350 cat conftest.
$ac_ext >&5
1352 eval "ac_cv_func_gethostbyname=no"
1357 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1358 echo "$ac_t""yes" 1>&6
1361 echo "$ac_t""no" 1>&6
1364 if test $ac_cv_func_gethostbyname = no
; then
1365 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1366 echo "configure:1367: checking for gethostbyname in -lnsl" >&5
1367 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 ac_save_LIBS
="$LIBS"
1373 cat > conftest.
$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1376 /* Override any gcc2 internal prototype to avoid an error. */
1377 /* We use char because int might match the return type of a gcc2
1378 builtin and then its argument prototype would still apply. */
1379 char gethostbyname();
1385 if { (eval echo configure
:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1387 eval "ac_cv_lib_$ac_lib_var=yes"
1389 echo "configure: failed program was:" >&5
1390 cat conftest.
$ac_ext >&5
1392 eval "ac_cv_lib_$ac_lib_var=no"
1395 LIBS
="$ac_save_LIBS"
1398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1399 echo "$ac_t""yes" 1>&6
1400 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1402 echo "$ac_t""no" 1>&6
1407 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1408 # socket/setsockopt and other routines are undefined under SCO ODT
1409 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1410 # on later versions), says simon@lia.di.epfl.ch: it contains
1411 # gethostby* variants that don't use the nameserver (or something).
1412 # -lsocket must be given before -lnsl if both are needed.
1413 # We assume that if connect needs -lnsl, so does gethostbyname.
1414 echo $ac_n "checking for connect""... $ac_c" 1>&6
1415 echo "configure:1416: checking for connect" >&5
1416 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 cat > conftest.
$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1422 /* System header to define __stub macros and hopefully few prototypes,
1423 which can conflict with char connect(); below. */
1425 /* Override any gcc2 internal prototype to avoid an error. */
1426 /* We use char because int might match the return type of a gcc2
1427 builtin and then its argument prototype would still apply. */
1432 /* The GNU C library defines this for functions which it implements
1433 to always fail with ENOSYS. Some functions are actually named
1434 something starting with __ and the normal name is an alias. */
1435 #if defined (__stub_connect) || defined (__stub___connect)
1443 if { (eval echo configure
:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1445 eval "ac_cv_func_connect=yes"
1447 echo "configure: failed program was:" >&5
1448 cat conftest.
$ac_ext >&5
1450 eval "ac_cv_func_connect=no"
1455 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1459 echo "$ac_t""no" 1>&6
1462 if test $ac_cv_func_connect = no
; then
1463 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1464 echo "configure:1465: checking for connect in -lsocket" >&5
1465 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 ac_save_LIBS
="$LIBS"
1470 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1471 cat > conftest.
$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* Override any gcc2 internal prototype to avoid an error. */
1475 /* We use char because int might match the return type of a gcc2
1476 builtin and then its argument prototype would still apply. */
1483 if { (eval echo configure
:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1485 eval "ac_cv_lib_$ac_lib_var=yes"
1487 echo "configure: failed program was:" >&5
1488 cat conftest.
$ac_ext >&5
1490 eval "ac_cv_lib_$ac_lib_var=no"
1493 LIBS
="$ac_save_LIBS"
1496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1497 echo "$ac_t""yes" 1>&6
1498 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1500 echo "$ac_t""no" 1>&6
1505 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1506 echo $ac_n "checking for remove""... $ac_c" 1>&6
1507 echo "configure:1508: checking for remove" >&5
1508 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.
$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 /* System header to define __stub macros and hopefully few prototypes,
1515 which can conflict with char remove(); below. */
1517 /* Override any gcc2 internal prototype to avoid an error. */
1518 /* We use char because int might match the return type of a gcc2
1519 builtin and then its argument prototype would still apply. */
1524 /* The GNU C library defines this for functions which it implements
1525 to always fail with ENOSYS. Some functions are actually named
1526 something starting with __ and the normal name is an alias. */
1527 #if defined (__stub_remove) || defined (__stub___remove)
1535 if { (eval echo configure
:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1537 eval "ac_cv_func_remove=yes"
1539 echo "configure: failed program was:" >&5
1540 cat conftest.
$ac_ext >&5
1542 eval "ac_cv_func_remove=no"
1547 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1551 echo "$ac_t""no" 1>&6
1554 if test $ac_cv_func_remove = no
; then
1555 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1556 echo "configure:1557: checking for remove in -lposix" >&5
1557 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 ac_save_LIBS
="$LIBS"
1562 LIBS
="-lposix $LIBS"
1563 cat > conftest.
$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 /* Override any gcc2 internal prototype to avoid an error. */
1567 /* We use char because int might match the return type of a gcc2
1568 builtin and then its argument prototype would still apply. */
1575 if { (eval echo configure
:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1577 eval "ac_cv_lib_$ac_lib_var=yes"
1579 echo "configure: failed program was:" >&5
1580 cat conftest.
$ac_ext >&5
1582 eval "ac_cv_lib_$ac_lib_var=no"
1585 LIBS
="$ac_save_LIBS"
1588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1589 echo "$ac_t""yes" 1>&6
1590 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1592 echo "$ac_t""no" 1>&6
1597 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1598 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1599 echo "configure:1600: checking for shmat" >&5
1600 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 cat > conftest.
$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 /* System header to define __stub macros and hopefully few prototypes,
1607 which can conflict with char shmat(); below. */
1609 /* Override any gcc2 internal prototype to avoid an error. */
1610 /* We use char because int might match the return type of a gcc2
1611 builtin and then its argument prototype would still apply. */
1616 /* The GNU C library defines this for functions which it implements
1617 to always fail with ENOSYS. Some functions are actually named
1618 something starting with __ and the normal name is an alias. */
1619 #if defined (__stub_shmat) || defined (__stub___shmat)
1627 if { (eval echo configure
:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1629 eval "ac_cv_func_shmat=yes"
1631 echo "configure: failed program was:" >&5
1632 cat conftest.
$ac_ext >&5
1634 eval "ac_cv_func_shmat=no"
1639 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1640 echo "$ac_t""yes" 1>&6
1643 echo "$ac_t""no" 1>&6
1646 if test $ac_cv_func_shmat = no
; then
1647 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1648 echo "configure:1649: checking for shmat in -lipc" >&5
1649 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 ac_save_LIBS
="$LIBS"
1655 cat > conftest.
$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* Override any gcc2 internal prototype to avoid an error. */
1659 /* We use char because int might match the return type of a gcc2
1660 builtin and then its argument prototype would still apply. */
1667 if { (eval echo configure
:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1669 eval "ac_cv_lib_$ac_lib_var=yes"
1671 echo "configure: failed program was:" >&5
1672 cat conftest.
$ac_ext >&5
1674 eval "ac_cv_lib_$ac_lib_var=no"
1677 LIBS
="$ac_save_LIBS"
1680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1681 echo "$ac_t""yes" 1>&6
1682 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1684 echo "$ac_t""no" 1>&6
1690 # Check for libraries that X11R6 Xt/Xaw programs need.
1691 ac_save_LDFLAGS
="$LDFLAGS"
1692 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1693 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1694 # check for ICE first), but we must link in the order -lSM -lICE or
1695 # we get undefined symbols. So assume we have SM if we have ICE.
1696 # These have to be linked with before -lX11, unlike the other
1697 # libraries we check for below, so use a different variable.
1698 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1699 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1700 echo "configure:1701: checking for IceConnectionNumber in -lICE" >&5
1701 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 ac_save_LIBS
="$LIBS"
1706 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 /* Override any gcc2 internal prototype to avoid an error. */
1711 /* We use char because int might match the return type of a gcc2
1712 builtin and then its argument prototype would still apply. */
1713 char IceConnectionNumber();
1716 IceConnectionNumber()
1719 if { (eval echo configure
:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1721 eval "ac_cv_lib_$ac_lib_var=yes"
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 eval "ac_cv_lib_$ac_lib_var=no"
1729 LIBS
="$ac_save_LIBS"
1732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1736 echo "$ac_t""no" 1>&6
1739 LDFLAGS
="$ac_save_LDFLAGS"
1744 echo $ac_n "checking for inline""... $ac_c" 1>&6
1745 echo "configure:1746: checking for inline" >&5
1746 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1750 for ac_kw
in inline __inline__ __inline
; do
1751 cat > conftest.
$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1759 if { (eval echo configure
:1760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1761 ac_cv_c_inline
=$ac_kw; break
1763 echo "configure: failed program was:" >&5
1764 cat conftest.
$ac_ext >&5
1771 echo "$ac_t""$ac_cv_c_inline" 1>&6
1772 case "$ac_cv_c_inline" in
1774 no
) cat >> confdefs.h
<<\EOF
1778 *) cat >> confdefs.h
<<EOF
1779 #define inline $ac_cv_c_inline
1784 echo $ac_n "checking size of unsigned char""... $ac_c" 1>&6
1785 echo "configure:1786: checking size of unsigned char" >&5
1786 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 if test "$cross_compiling" = yes; then
1790 ac_cv_sizeof_unsigned_char
=0
1792 cat > conftest.
$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1796 #include <sys/types.h>
1799 FILE *f=fopen("conftestval", "w");
1801 fprintf(f, "%d\n", sizeof(unsigned char));
1805 if { (eval echo configure
:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1807 ac_cv_sizeof_unsigned_char
=`cat conftestval`
1809 echo "configure: failed program was:" >&5
1810 cat conftest.
$ac_ext >&5
1812 ac_cv_sizeof_unsigned_char
=0
1818 echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6
1819 cat >> confdefs.h
<<EOF
1820 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
1824 echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
1825 echo "configure:1826: checking size of unsigned short" >&5
1826 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 if test "$cross_compiling" = yes; then
1830 ac_cv_sizeof_unsigned_short
=0
1832 cat > conftest.
$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1836 #include <sys/types.h>
1839 FILE *f=fopen("conftestval", "w");
1841 fprintf(f, "%d\n", sizeof(unsigned short));
1845 if { (eval echo configure
:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1847 ac_cv_sizeof_unsigned_short
=`cat conftestval`
1849 echo "configure: failed program was:" >&5
1850 cat conftest.
$ac_ext >&5
1852 ac_cv_sizeof_unsigned_short
=0
1858 echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
1859 cat >> confdefs.h
<<EOF
1860 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
1864 echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
1865 echo "configure:1866: checking size of unsigned int" >&5
1866 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 if test "$cross_compiling" = yes; then
1870 ac_cv_sizeof_unsigned_int
=0
1872 cat > conftest.
$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1876 #include <sys/types.h>
1879 FILE *f=fopen("conftestval", "w");
1881 fprintf(f, "%d\n", sizeof(unsigned int));
1885 if { (eval echo configure
:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1887 ac_cv_sizeof_unsigned_int
=`cat conftestval`
1889 echo "configure: failed program was:" >&5
1890 cat conftest.
$ac_ext >&5
1892 ac_cv_sizeof_unsigned_int
=0
1898 echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
1899 cat >> confdefs.h
<<EOF
1900 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
1904 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
1905 echo "configure:1906: checking size of unsigned long" >&5
1906 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 if test "$cross_compiling" = yes; then
1910 ac_cv_sizeof_unsigned_long
=0
1912 cat > conftest.
$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1916 #include <sys/types.h>
1919 FILE *f=fopen("conftestval", "w");
1921 fprintf(f, "%d\n", sizeof(unsigned long));
1925 if { (eval echo configure
:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1927 ac_cv_sizeof_unsigned_long
=`cat conftestval`
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1932 ac_cv_sizeof_unsigned_long
=0
1938 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
1939 cat >> confdefs.h
<<EOF
1940 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
1944 echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6
1945 echo "configure:1946: checking size of unsigned long long" >&5
1946 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 if test "$cross_compiling" = yes; then
1950 ac_cv_sizeof_unsigned_long_long
=0
1952 cat > conftest.
$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1956 #include <sys/types.h>
1959 FILE *f=fopen("conftestval", "w");
1961 fprintf(f, "%d\n", sizeof(unsigned long long));
1965 if { (eval echo configure
:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1967 ac_cv_sizeof_unsigned_long_long
=`cat conftestval`
1969 echo "configure: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1972 ac_cv_sizeof_unsigned_long_long
=0
1978 echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6
1979 cat >> confdefs.h
<<EOF
1980 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
1985 if test "$GCC" = "yes"; then
1986 CFLAGS
="$CFLAGS -Wall -Wstrict-prototypes"
1988 if test "$GXX" = "yes"; then
1989 CXXFLAGS
="$CXXFLAGS -Wall -Wstrict-prototypes"
1992 # Check whether --with-WinNT or --without-WinNT was given.
1993 if test "${with_WinNT+set}" = set; then
1994 withval
="$with_WinNT"
1999 # Check whether --with-BeOS or --without-BeOS was given.
2000 if test "${with_BeOS+set}" = set; then
2001 withval
="$with_BeOS"
2006 # Check whether --with-Linux or --without-Linux was given.
2007 if test "${with_Linux+set}" = set; then
2008 withval
="$with_Linux"
2013 # Check whether --with-NetBSD or --without-NetBSD was given.
2014 if test "${with_NetBSD+set}" = set; then
2015 withval
="$with_NetBSD"
2020 # Check whether --with-FreeBSD or --without-FreeBSD was given.
2021 if test "${with_FreeBSD+set}" = set; then
2022 withval
="$with_FreeBSD"
2027 # Check whether --with-null or --without-null was given.
2028 if test "${with_null+set}" = set; then
2029 withval
="$with_null"
2034 # Check whether --with-linux-source or --without-linux-source was given.
2035 if test "${with_linux_source+set}" = set; then
2036 withval
="$with_linux_source"
2037 LINUX_SRC
="$withval"
2039 LINUX_SRC
="/lib/modules/`uname -r`/build"
2045 # Check whether --with-netbsd-source or --without-netbsd-source was given.
2046 if test "${with_netbsd_source+set}" = set; then
2047 withval
="$with_netbsd_source"
2048 NETBSD_SRC
="$withval"
2056 # Check whether --with-freebsd-source or --without-freebsd-source was given.
2057 if test "${with_freebsd_source+set}" = set; then
2058 withval
="$with_freebsd_source"
2059 FREEBSD_SRC
="$withval"
2067 if test "$with_Linux" != yes && \
2068 test "$with_BeOS" != yes && \
2069 test "$with_NetBSD" != yes && \
2070 test "$with_FreeBSD" != yes && \
2071 test "$with_null" != yes && \
2072 test "$with_WinNT" != yes; then
2076 if test "$with_Linux" = yes; then
2078 KERNEL_TARGET
=plex86.o
2079 HOST_TARGET
=linux-target
2080 HOST_CLEAN
=linux-clean
2083 elif test "$with_BeOS" = yes; then
2085 KERNEL_TARGET
=plex86
2090 elif test "$with_NetBSD" = yes; then
2091 HOST_O
=host-netbsd.o
2092 KERNEL_TARGET
=plex86.o
2093 HOST_TARGET
=netbsd-target
2094 HOST_CLEAN
=netbsd-clean
2097 elif test "$with_FreeBSD" = yes; then
2098 HOST_O
=host-freebsd.o
2099 KERNEL_TARGET
=plex86.o
2100 HOST_TARGET
=freebsd-target
2101 HOST_CLEAN
=freebsd-clean
2104 elif test "$with_null" = yes; then
2106 KERNEL_TARGET
=plex86.o
2107 HOST_TARGET
=null-target
2108 HOST_CLEAN
=null-clean
2110 FULL_LINK
='$(CC) -o a.out plex86.o'
2113 echo "ERROR: Your system is not supported yet"
2125 SUFFIX_LINE
='.SUFFIXES: .cc'
2135 COMMAND_SEPARATOR
="&& \\"
2136 CD_UP_ONE
="echo done"
2137 CD_UP_TWO
="echo done"
2138 INSTRUMENT_DIR
='instrument/'
2139 VIDEO_OBJS
='$(VIDEO_OBJS_VGA)'
2156 cat > confcache
<<\EOF
2157 # This file is a shell script that caches the results of configure
2158 # tests run on this system so they can be shared between configure
2159 # scripts and configure runs. It is not useful on other systems.
2160 # If it contains results you don't want to keep, you may remove or edit it.
2162 # By default, configure uses ./config.cache as the cache file,
2163 # creating it if it does not exist already. You can give configure
2164 # the --cache-file=FILE option to use a different cache file; that is
2165 # what configure does when it calls configure scripts in
2166 # subdirectories, so they share the cache.
2167 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2168 # config.status only pays attention to the cache file if you give it the
2169 # --recheck option to rerun configure.
2172 # The following way of writing the cache mishandles newlines in values,
2173 # but we know of no workaround that is simple, portable, and efficient.
2174 # So, don't put newlines in cache variables' values.
2175 # Ultrix sh set writes to stderr and can't be redirected directly,
2176 # and sets the high bit in the cache file unless we assign to the vars.
2178 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2180 # `set' does not quote correctly, so add quotes (double-quote substitution
2181 # turns \\\\ into \\, and sed turns \\ into \).
2183 -e "s/'/'\\\\''/g" \
2184 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2187 # `set' quotes correctly as required by POSIX, so do not add quotes.
2188 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2191 if cmp -s $cache_file confcache
; then
2194 if test -w $cache_file; then
2195 echo "updating cache $cache_file"
2196 cat confcache
> $cache_file
2198 echo "not updating unwritable cache $cache_file"
2203 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2205 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2206 # Let make expand exec_prefix.
2207 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2209 # Any assignment to VPATH causes Sun make to only execute
2210 # the first set of double-colon rules, so remove it if not needed.
2211 # If there is a colon in the path, we need to keep it.
2212 if test "x$srcdir" = x.
; then
2213 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2216 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2218 DEFS
=-DHAVE_CONFIG_H
2220 # Without the "./", some shells look in PATH for config.status.
2221 : ${CONFIG_STATUS=./config.status}
2223 echo creating
$CONFIG_STATUS
2224 rm -f $CONFIG_STATUS
2225 cat > $CONFIG_STATUS <<EOF
2227 # Generated automatically by configure.
2228 # Run this file to recreate the current configuration.
2229 # This directory was configured as follows,
2230 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2232 # $0 $ac_configure_args
2234 # Compiler output produced by configure, useful for debugging
2235 # configure, is in ./config.log if it exists.
2237 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2240 case "\$ac_option" in
2241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2242 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2243 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2244 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2245 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2247 -help | --help | --hel | --he | --h)
2248 echo "\$ac_cs_usage"; exit 0 ;;
2249 *) echo "\$ac_cs_usage"; exit 1 ;;
2253 ac_given_srcdir=$srcdir
2255 trap 'rm -fr `echo "
2258 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2260 cat >> $CONFIG_STATUS <<EOF
2262 # Protect against being on the right side of a sed subst in config.status.
2263 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2264 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2268 s%@CFLAGS@%$CFLAGS%g
2269 s%@CPPFLAGS@%$CPPFLAGS%g
2270 s%@CXXFLAGS@%$CXXFLAGS%g
2271 s%@FFLAGS@%$FFLAGS%g
2273 s%@LDFLAGS@%$LDFLAGS%g
2275 s%@exec_prefix@%$exec_prefix%g
2276 s%@prefix@%$prefix%g
2277 s%@program_transform_name@%$program_transform_name%g
2278 s%@bindir@%$bindir%g
2279 s%@sbindir@%$sbindir%g
2280 s%@libexecdir@%$libexecdir%g
2281 s%@datadir@%$datadir%g
2282 s%@sysconfdir@%$sysconfdir%g
2283 s%@sharedstatedir@%$sharedstatedir%g
2284 s%@localstatedir@%$localstatedir%g
2285 s%@libdir@%$libdir%g
2286 s%@includedir@%$includedir%g
2287 s%@oldincludedir@%$oldincludedir%g
2288 s%@infodir@%$infodir%g
2289 s%@mandir@%$mandir%g
2291 s%@SET_MAKE@%$SET_MAKE%g
2292 s%@RANLIB@%$RANLIB%g
2294 s%@X_CFLAGS@%$X_CFLAGS%g
2295 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2296 s%@X_LIBS@%$X_LIBS%g
2297 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2298 s%@LINUX_SRC@%$LINUX_SRC%g
2299 s%@NETBSD_SRC@%$NETBSD_SRC%g
2300 s%@FREEBSD_SRC@%$FREEBSD_SRC%g
2301 s%@HOST_O@%$HOST_O%g
2302 s%@KERNEL_TARGET@%$KERNEL_TARGET%g
2303 s%@HOST_TARGET@%$HOST_TARGET%g
2304 s%@HOST_CLEAN@%$HOST_CLEAN%g
2305 s%@HOSTOS@%$HOSTOS%g
2306 s%@FULL_LINK@%$FULL_LINK%g
2307 s%@SUFFIX_LINE@%$SUFFIX_LINE%g
2308 s%@CPP_SUFFIX@%$CPP_SUFFIX%g
2314 s%@MAKELIB@%$MAKELIB%g
2315 s%@RMCOMMAND@%$RMCOMMAND%g
2317 s%@COMMAND_SEPARATOR@%$COMMAND_SEPARATOR%g
2318 s%@CD_UP_ONE@%$CD_UP_ONE%g
2319 s%@CD_UP_TWO@%$CD_UP_TWO%g
2324 cat >> $CONFIG_STATUS <<\EOF
2326 # Split the substitutions into bite-sized pieces for seds with
2327 # small command number limits, like on Digital OSF/1 and HP-UX.
2328 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2329 ac_file
=1 # Number of current file.
2330 ac_beg
=1 # First line for current file.
2331 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2334 while $ac_more_lines; do
2335 if test $ac_beg -gt 1; then
2336 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2338 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2340 if test ! -s conftest.s
$ac_file; then
2342 rm -f conftest.s
$ac_file
2344 if test -z "$ac_sed_cmds"; then
2345 ac_sed_cmds
="sed -f conftest.s$ac_file"
2347 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2349 ac_file
=`expr $ac_file + 1`
2351 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2354 if test -z "$ac_sed_cmds"; then
2359 cat >> $CONFIG_STATUS <<EOF
2361 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2365 cat >> $CONFIG_STATUS <<\EOF
2366 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2369 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2370 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2371 *) ac_file_in
="${ac_file}.in" ;;
2374 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2376 # Remove last slash and all that follows it. Not all systems have dirname.
2377 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2378 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2379 # The file is in a subdirectory.
2380 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2381 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2382 # A "../" for each directory in $ac_dir_suffix.
2383 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2385 ac_dir_suffix
= ac_dots
=
2388 case "$ac_given_srcdir" in
2390 if test -z "$ac_dots"; then top_srcdir
=.
2391 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2392 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2394 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2395 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2399 echo creating
"$ac_file"
2401 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2403 *Makefile
*) ac_comsub
="1i\\
2404 # $configure_input" ;;
2408 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2410 s%@configure_input@%$configure_input%g
2411 s%@srcdir@%$srcdir%g
2412 s%@top_srcdir@%$top_srcdir%g
2413 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2420 # ac_d sets the value in "#define NAME VALUE" lines.
2421 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2422 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2425 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2426 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2427 ac_uB
='\([ ]\)%\1#\2define\3'
2430 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2431 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2432 ac_eB
='$%\1#\2define\3'
2436 if test "${CONFIG_HEADERS+set}" != set; then
2438 cat >> $CONFIG_STATUS <<EOF
2439 CONFIG_HEADERS="config.h"
2441 cat >> $CONFIG_STATUS <<\EOF
2443 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2446 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2447 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2448 *) ac_file_in
="${ac_file}.in" ;;
2451 echo creating
$ac_file
2453 rm -f conftest.frag conftest.
in conftest.out
2454 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2455 cat $ac_file_inputs > conftest.
in
2459 # Transform confdefs.h into a sed script conftest.vals that substitutes
2460 # the proper values into config.h.in to produce config.h. And first:
2461 # Protect against being on the right side of a sed subst in config.status.
2462 # Protect against being in an unquoted here document in config.status.
2464 cat > conftest.hdr
<<\EOF
2467 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2471 sed -n -f conftest.hdr confdefs.h > conftest.vals
2474 # This sed command replaces #undef with comments. This is necessary, for
2475 # example, in the case of _POSIX_SOURCE, which is predefined and required
2476 # on some systems where configure will not decide to define it.
2477 cat >> conftest.vals <<\EOF
2478 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2481 # Break up conftest.vals because some shells have a limit on
2482 # the size of here documents, and old seds have small limits too.
2487 ac_lines=`grep -c . conftest.vals
`
2488 # grep -c gives empty output for an empty file on some AIX systems.
2489 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2490 # Write a limited-size here document to conftest.frag.
2491 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2492 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2494 sed -f conftest.frag conftest.in > conftest.out
2496 mv conftest.out conftest.in
2498 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2500 mv conftest.tail conftest.vals
2504 cat >> $CONFIG_STATUS <<\EOF
2505 rm -f conftest.frag conftest.h
2506 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2507 cat conftest.in >> conftest.h
2509 if cmp -s $ac_file conftest.h 2>/dev/null; then
2510 echo "$ac_file is unchanged"
2513 # Remove last slash and all that follows it. Not all systems have dirname.
2514 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2515 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2516 # The file is in a subdirectory.
2517 test ! -d "$ac_dir" && mkdir "$ac_dir"
2520 mv conftest.h $ac_file
2525 cat >> $CONFIG_STATUS <<EOF
2528 cat >> $CONFIG_STATUS <<\EOF
2532 chmod +x $CONFIG_STATUS
2533 rm -fr confdefs* $ac_clean_files
2534 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1