3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --disable-emulator build only the Wine library, not the emulator"
18 --enable-dll build the Wine library as a DLL"
20 --disable-lib build the Wine without building libwine.a"
22 --disable-debug compile out all debugging messages"
24 --disable-trace compile out TRACE messages"
26 --without-reentrant-x compile for use with non-reentrant X libraries"
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file
=.
/config.cache
43 program_transform_name
=s
,x
,x
,
51 bindir
='${exec_prefix}/bin'
52 sbindir
='${exec_prefix}/sbin'
53 libexecdir
='${exec_prefix}/libexec'
54 datadir
='${prefix}/share'
55 sysconfdir
='${prefix}/etc'
56 sharedstatedir
='${prefix}/com'
57 localstatedir
='${prefix}/var'
58 libdir
='${exec_prefix}/lib'
59 includedir
='${prefix}/include'
60 oldincludedir
='/usr/include'
61 infodir
='${prefix}/info'
62 mandir
='${prefix}/man'
64 # Initialize some other variables.
67 # Maximum number of lines to put in a shell here document.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
92 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
93 bindir
="$ac_optarg" ;;
95 -build |
--build |
--buil |
--bui |
--bu)
97 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
100 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
101 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
102 ac_prev
=cache_file
;;
103 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
104 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
105 cache_file
="$ac_optarg" ;;
107 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
109 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
111 datadir
="$ac_optarg" ;;
113 -disable-* |
--disable-*)
114 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* |
--enable-*)
123 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
136 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
137 |
--exec |
--exe |
--ex)
138 ac_prev
=exec_prefix
;;
139 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
140 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
141 |
--exec=* |
--exe=* |
--ex=*)
142 exec_prefix
="$ac_optarg" ;;
144 -gas |
--gas |
--ga |
--g)
145 # Obsolete; use --with-gas.
148 -help |
--help |
--hel |
--he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
203 -host |
--host |
--hos |
--ho)
205 -host=* |
--host=* |
--hos=* |
--ho=*)
208 -includedir |
--includedir |
--includedi |
--included |
--include \
209 |
--includ |
--inclu |
--incl |
--inc)
210 ac_prev
=includedir
;;
211 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
212 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
213 includedir
="$ac_optarg" ;;
215 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
217 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
218 infodir
="$ac_optarg" ;;
220 -libdir |
--libdir |
--libdi |
--libd)
222 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
223 libdir
="$ac_optarg" ;;
225 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
226 |
--libexe |
--libex |
--libe)
227 ac_prev
=libexecdir
;;
228 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
229 |
--libexe=* |
--libex=* |
--libe=*)
230 libexecdir
="$ac_optarg" ;;
232 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
233 |
--localstate |
--localstat |
--localsta |
--localst \
234 |
--locals |
--local |
--loca |
--loc |
--lo)
235 ac_prev
=localstatedir
;;
236 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
237 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
238 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
239 localstatedir
="$ac_optarg" ;;
241 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
243 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
244 mandir
="$ac_optarg" ;;
247 # Obsolete; use --without-fp.
250 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
254 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
255 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
258 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
259 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
260 |
--oldin |
--oldi |
--old |
--ol |
--o)
261 ac_prev
=oldincludedir
;;
262 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
263 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
264 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
265 oldincludedir
="$ac_optarg" ;;
267 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
269 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
270 prefix
="$ac_optarg" ;;
272 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
273 |
--program-pre |
--program-pr |
--program-p)
274 ac_prev
=program_prefix
;;
275 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
276 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
277 program_prefix
="$ac_optarg" ;;
279 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
280 |
--program-suf |
--program-su |
--program-s)
281 ac_prev
=program_suffix
;;
282 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
283 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
284 program_suffix
="$ac_optarg" ;;
286 -program-transform-name |
--program-transform-name \
287 |
--program-transform-nam |
--program-transform-na \
288 |
--program-transform-n |
--program-transform- \
289 |
--program-transform |
--program-transfor \
290 |
--program-transfo |
--program-transf \
291 |
--program-trans |
--program-tran \
292 |
--progr-tra |
--program-tr |
--program-t)
293 ac_prev
=program_transform_name
;;
294 -program-transform-name=* |
--program-transform-name=* \
295 |
--program-transform-nam=* |
--program-transform-na=* \
296 |
--program-transform-n=* |
--program-transform-=* \
297 |
--program-transform=* |
--program-transfor=* \
298 |
--program-transfo=* |
--program-transf=* \
299 |
--program-trans=* |
--program-tran=* \
300 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
301 program_transform_name
="$ac_optarg" ;;
303 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
304 |
-silent |
--silent |
--silen |
--sile |
--sil)
307 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
309 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
311 sbindir
="$ac_optarg" ;;
313 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
314 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
315 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
317 ac_prev
=sharedstatedir
;;
318 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
319 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
320 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
322 sharedstatedir
="$ac_optarg" ;;
324 -site |
--site |
--sit)
326 -site=* |
--site=* |
--sit=*)
329 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
331 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
332 srcdir
="$ac_optarg" ;;
334 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
335 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
336 ac_prev
=sysconfdir
;;
337 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
338 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
339 sysconfdir
="$ac_optarg" ;;
341 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
343 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
344 target
="$ac_optarg" ;;
346 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
349 -version |
--version |
--versio |
--versi |
--vers)
350 echo "configure generated by autoconf version 2.12"
354 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package
=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* |
--without-*)
367 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
376 # Obsolete; use --with-x.
379 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
380 |
--x-incl |
--x-inc |
--x-in |
--x-i)
381 ac_prev
=x_includes
;;
382 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
383 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
384 x_includes
="$ac_optarg" ;;
386 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
387 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
388 ac_prev
=x_libraries
;;
389 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
390 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
391 x_libraries
="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE
; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
441 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
442 |
--no-cr |
--no-c) ;;
443 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
444 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
445 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest
* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file
=controls
/edit.c
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted
=yes
473 # Try the directory containing this script, then its parent.
475 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
478 if test ! -r $srcdir/$ac_unique_file; then
482 ac_srcdir_defaulted
=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE
; then
496 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
498 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file
in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
512 echo "creating cache $cache_file"
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp
='$CPP $CPPFLAGS'
519 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling
=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
532 ac_n
= ac_c
='\c' ac_t
=
538 for ac_dir
in tools
$srcdir/tools
; do
539 if test -f $ac_dir/install-sh
; then
541 ac_install_sh
="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh
; then
545 ac_install_sh
="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
552 ac_config_guess
=$ac_aux_dir/config.guess
553 ac_config_sub
=$ac_aux_dir/config.sub
554 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
557 # We want these before the checks, so the checks can modify their values.
559 test -z "$PROGEXT" && PROGEXT
=""
564 ALT_LINK
="-L\$(TOPOBJDIR) -lwine"
565 TRACE_MSGS
=yes # the TRACE() macro
566 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
568 # Check whether --enable-emulator or --disable-emulator was given.
569 if test "${enable_emulator+set}" = set; then
570 enableval
="$enable_emulator"
571 if test "$enableval" = "no"; then MAIN_TARGET
="lib"; fi
575 # Check whether --enable-dll or --disable-dll was given.
576 if test "${enable_dll+set}" = set; then
577 enableval
="$enable_dll"
578 if test "$enableval" = "no"; then : ; else LIB_TARGET
="libwine.so.1.0"; fi
582 # Check whether --enable-lib or --disable-lib was given.
583 if test "${enable_lib+set}" = set; then
584 enableval
="$enable_lib"
585 if test "$enableval" = "no"; then ALT_LINK
="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET
=""; fi
589 # Check whether --enable-debug or --disable-debug was given.
590 if test "${enable_debug+set}" = set; then
591 enableval
="$enable_debug"
592 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
596 # Check whether --enable-trace or --disable-trace was given.
597 if test "${enable_trace+set}" = set; then
598 enableval
="$enable_trace"
599 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
603 # Check whether --with-reentrant-x or --without-reentrant-x was given.
604 if test "${with_reentrant_x+set}" = set; then
605 withval
="$with_reentrant_x"
615 if test "$DEBUG_MSGS" = "no"
617 cat >> confdefs.h
<<\EOF
618 #define NO_DEBUG_MSGS 1
621 cat >> confdefs.h
<<\EOF
622 #define NO_TRACE_MSGS 1
626 if test "$TRACE_MSGS" = "no"
628 cat >> confdefs.h
<<\EOF
629 #define NO_TRACE_MSGS 1
636 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
637 echo "configure:638: checking whether ${MAKE-make} sets \${MAKE}" >&5
638 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
639 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 cat > conftestmake
<<\EOF
644 @
echo 'ac_maketemp="${MAKE}"'
646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
647 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
648 if test -n "$ac_maketemp"; then
649 eval ac_cv_prog_make_
${ac_make}_set
=yes
651 eval ac_cv_prog_make_
${ac_make}_set
=no
655 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
656 echo "$ac_t""yes" 1>&6
659 echo "$ac_t""no" 1>&6
660 SET_MAKE
="MAKE=${MAKE-make}"
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc
; ac_word
=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 if test -n "$CC"; then
671 ac_cv_prog_CC
="$CC" # Let the user override the test.
673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
674 for ac_dir
in $PATH; do
675 test -z "$ac_dir" && ac_dir
=.
676 if test -f $ac_dir/$ac_word; then
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
692 # Extract the first word of "cc", so it can be a program name with args.
693 set dummy cc
; ac_word
=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC
="$CC" # Let the user override the test.
702 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
704 for ac_dir
in $PATH; do
705 test -z "$ac_dir" && ac_dir
=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
716 if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy
$ac_cv_prog_CC
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
725 set dummy
"$ac_dir/$ac_word" "$@"
733 if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
736 echo "$ac_t""no" 1>&6
739 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp
='$CPP $CPPFLAGS'
748 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling
=$ac_cv_prog_cc_cross
752 cat > conftest.
$ac_ext <<EOF
753 #line 754 "configure"
754 #include "confdefs.h"
757 if { (eval echo configure
:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
758 ac_cv_prog_cc_works
=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (.
/conftest
; exit) 2>/dev
/null
; then
761 ac_cv_prog_cc_cross
=no
763 ac_cv_prog_cc_cross
=yes
766 echo "configure: failed program was:" >&5
767 cat conftest.
$ac_ext >&5
768 ac_cv_prog_cc_works
=no
772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
773 if test $ac_cv_prog_cc_works = no
; then
774 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
779 cross_compiling
=$ac_cv_prog_cc_cross
781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
782 echo "configure:783: checking whether we are using GNU C" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 cat > conftest.c
<<EOF
791 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
798 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
800 if test $ac_cv_prog_gcc = yes; then
802 ac_test_CFLAGS
="${CFLAGS+set}"
803 ac_save_CFLAGS
="$CFLAGS"
805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821 if test "$ac_test_CFLAGS" = set; then
822 CFLAGS
="$ac_save_CFLAGS"
823 elif test $ac_cv_prog_cc_g = yes; then
830 test "${CFLAGS+set}" = set || CFLAGS
="-g"
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 # This must be in double quotes, not single quotes, because CPP may get
844 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 # On the NeXT, cc -E runs the code through the compiler's parser,
847 # not just through cpp.
848 cat > conftest.
$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure
:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err
=`grep -v '^ *+' conftest.out`
857 if test -z "$ac_err"; then
861 echo "configure: failed program was:" >&5
862 cat conftest.
$ac_ext >&5
864 CPP
="${CC-cc} -E -traditional-cpp"
865 cat > conftest.
$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
871 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err
=`grep -v '^ *+' conftest.out`
874 if test -z "$ac_err"; then
878 echo "configure: failed program was:" >&5
879 cat conftest.
$ac_ext >&5
886 ac_cv_prog_CPP
="$CPP"
888 CPP
="$ac_cv_prog_CPP"
890 ac_cv_prog_CPP
="$CPP"
892 echo "$ac_t""$CPP" 1>&6
894 # If we find X, set shell vars x_includes and x_libraries to the
895 # paths, otherwise set no_x=yes.
896 # Uses ac_ vars as temps to allow command line to override cache and checks.
897 # --without-x overrides everything else, but does not touch the cache.
898 echo $ac_n "checking for X""... $ac_c" 1>&6
899 echo "configure:900: checking for X" >&5
901 # Check whether --with-x or --without-x was given.
902 if test "${with_x+set}" = set; then
907 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
908 if test "x$with_x" = xno
; then
909 # The user explicitly disabled X.
912 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
913 # Both variables are already set.
916 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 # One or both of the vars are not set, and there is no cached value.
920 ac_x_includes
=NO ac_x_libraries
=NO
922 if mkdir conftestdir
; then
924 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
925 cat > Imakefile
<<'EOF'
927 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
929 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
931 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
932 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
933 for ac_extension
in a so sl
; do
934 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
935 test -f $ac_im_libdir/libX11.
$ac_extension; then
936 ac_im_usrlibdir
=$ac_im_libdir; break
939 # Screen out bogus values from the imake configuration. They are
940 # bogus both because they are the default anyway, and because
941 # using them would break gcc on systems where it needs fixed includes.
942 case "$ac_im_incroot" in
944 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
946 case "$ac_im_usrlibdir" in
948 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
955 if test "$ac_x_includes" = NO
; then
956 # Guess where to find include files, by looking for this one X11 .h file.
957 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
959 # First, try using that file with no special directory specified.
960 cat > conftest.
$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
963 #include <$x_direct_test_include>
965 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966 { (eval echo configure
:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967 ac_err
=`grep -v '^ *+' conftest.out`
968 if test -z "$ac_err"; then
970 # We can compile using X headers with no special include directory.
974 echo "configure: failed program was:" >&5
975 cat conftest.
$ac_ext >&5
977 # Look for the header file in a standard set of common directories.
978 # Check X11 before X11Rn because it is often a symlink to the current release.
990 /usr
/local
/X11
/include \
991 /usr
/local
/X11R
6/include \
992 /usr
/local
/X11R
5/include \
993 /usr
/local
/X11R
4/include \
995 /usr
/local
/include
/X11 \
996 /usr
/local
/include
/X11R6 \
997 /usr
/local
/include
/X11R5 \
998 /usr
/local
/include
/X11R4 \
1002 /usr
/XFree86
/include
/X11 \
1005 /usr
/local
/include \
1006 /usr
/unsupported
/include \
1007 /usr
/athena
/include \
1008 /usr
/local
/x11r
5/include \
1009 /usr
/lpp
/Xamples
/include \
1011 /usr
/openwin
/include \
1012 /usr
/openwin
/share
/include \
1015 if test -r "$ac_dir/$x_direct_test_include"; then
1016 ac_x_includes
=$ac_dir
1022 fi # $ac_x_includes = NO
1024 if test "$ac_x_libraries" = NO
; then
1025 # Check for the libraries.
1027 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1028 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1030 # See if we find them without any special options.
1031 # Don't add to $LIBS permanently.
1032 ac_save_LIBS
="$LIBS"
1033 LIBS
="-l$x_direct_test_library $LIBS"
1034 cat > conftest.
$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1039 ${x_direct_test_function}()
1042 if { (eval echo configure
:1043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1044 LIBS
="$ac_save_LIBS"
1045 # We can link X programs with no special library path.
1048 echo "configure: failed program was:" >&5
1049 cat conftest.
$ac_ext >&5
1051 LIBS
="$ac_save_LIBS"
1052 # First see if replacing the include by lib works.
1053 # Check X11 before X11Rn because it is often a symlink to the current release.
1054 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1065 /usr
/local
/X11
/lib \
1066 /usr
/local
/X11R
6/lib \
1067 /usr
/local
/X11R
5/lib \
1068 /usr
/local
/X11R
4/lib \
1070 /usr
/local
/lib
/X11 \
1071 /usr
/local
/lib
/X11R6 \
1072 /usr
/local
/lib
/X11R5 \
1073 /usr
/local
/lib
/X11R4 \
1077 /usr
/XFree86
/lib
/X11 \
1081 /usr
/unsupported
/lib \
1083 /usr
/local
/x11r
5/lib \
1084 /usr
/lpp
/Xamples
/lib \
1088 /usr
/openwin
/share
/lib \
1091 for ac_extension
in a so sl
; do
1092 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1093 ac_x_libraries
=$ac_dir
1100 fi # $ac_x_libraries = NO
1102 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1103 # Didn't find X anywhere. Cache the known absence of X.
1104 ac_cv_have_x
="have_x=no"
1106 # Record where we found X for the cache.
1107 ac_cv_have_x
="have_x=yes \
1108 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1112 eval "$ac_cv_have_x"
1115 if test "$have_x" != yes; then
1116 echo "$ac_t""$have_x" 1>&6
1119 # If each of the values was on the command line, it overrides each guess.
1120 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1121 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1122 # Update the cache value to reflect the command line values.
1123 ac_cv_have_x
="have_x=yes \
1124 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1125 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1128 if test "$no_x" = yes; then
1129 # Not all programs may use this symbol, but it does not hurt to define it.
1130 cat >> confdefs.h
<<\EOF
1131 #define X_DISPLAY_MISSING 1
1134 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1136 if test -n "$x_includes"; then
1137 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1140 # It would also be nice to do this for all -L options, not just this one.
1141 if test -n "$x_libraries"; then
1142 X_LIBS
="$X_LIBS -L$x_libraries"
1143 # For Solaris; some versions of Sun CC require a space after -R and
1144 # others require no space. Words are not sufficient . . . .
1145 case "`(uname -sr) 2>/dev/null`" in
1147 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether -R must be followed by a space" >&5
1149 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1150 cat > conftest.
$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1158 if { (eval echo configure
:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1162 echo "configure: failed program was:" >&5
1163 cat conftest.
$ac_ext >&5
1168 if test $ac_R_nospace = yes; then
1169 echo "$ac_t""no" 1>&6
1170 X_LIBS
="$X_LIBS -R$x_libraries"
1172 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1173 cat > conftest.
$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1181 if { (eval echo configure
:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1185 echo "configure: failed program was:" >&5
1186 cat conftest.
$ac_ext >&5
1191 if test $ac_R_space = yes; then
1192 echo "$ac_t""yes" 1>&6
1193 X_LIBS
="$X_LIBS -R $x_libraries"
1195 echo "$ac_t""neither works" 1>&6
1198 LIBS
="$ac_xsave_LIBS"
1202 # Check for system-dependent libraries X programs must link with.
1203 # Do this before checking for the system-independent R6 libraries
1204 # (-lICE), since we may need -lsocket or whatever for X linking.
1206 if test "$ISC" = yes; then
1207 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1209 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1210 # libraries were built with DECnet support. And karl@cs.umb.edu says
1211 # the Alpha needs dnet_stub (dnet does not exist).
1212 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1213 echo "configure:1214: checking for dnet_ntoa in -ldnet" >&5
1214 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 ac_save_LIBS
="$LIBS"
1220 cat > conftest.
$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 /* Override any gcc2 internal prototype to avoid an error. */
1224 /* We use char because int might match the return type of a gcc2
1225 builtin and then its argument prototype would still apply. */
1232 if { (eval echo configure
:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1234 eval "ac_cv_lib_$ac_lib_var=yes"
1236 echo "configure: failed program was:" >&5
1237 cat conftest.
$ac_ext >&5
1239 eval "ac_cv_lib_$ac_lib_var=no"
1242 LIBS
="$ac_save_LIBS"
1245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1249 echo "$ac_t""no" 1>&6
1252 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1253 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1254 echo "configure:1255: checking for dnet_ntoa in -ldnet_stub" >&5
1255 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 ac_save_LIBS
="$LIBS"
1260 LIBS
="-ldnet_stub $LIBS"
1261 cat > conftest.
$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1264 /* Override any gcc2 internal prototype to avoid an error. */
1265 /* We use char because int might match the return type of a gcc2
1266 builtin and then its argument prototype would still apply. */
1273 if { (eval echo configure
:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1275 eval "ac_cv_lib_$ac_lib_var=yes"
1277 echo "configure: failed program was:" >&5
1278 cat conftest.
$ac_ext >&5
1280 eval "ac_cv_lib_$ac_lib_var=no"
1283 LIBS
="$ac_save_LIBS"
1286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1287 echo "$ac_t""yes" 1>&6
1288 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1290 echo "$ac_t""no" 1>&6
1295 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1296 # to get the SysV transport functions.
1297 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1299 # The nsl library prevents programs from opening the X display
1300 # on Irix 5.2, according to dickey@clark.net.
1301 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1302 echo "configure:1303: checking for gethostbyname" >&5
1303 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 cat > conftest.
$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1309 /* System header to define __stub macros and hopefully few prototypes,
1310 which can conflict with char gethostbyname(); below. */
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1315 char gethostbyname();
1319 /* The GNU C library defines this for functions which it implements
1320 to always fail with ENOSYS. Some functions are actually named
1321 something starting with __ and the normal name is an alias. */
1322 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1330 if { (eval echo configure
:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1332 eval "ac_cv_func_gethostbyname=yes"
1334 echo "configure: failed program was:" >&5
1335 cat conftest.
$ac_ext >&5
1337 eval "ac_cv_func_gethostbyname=no"
1342 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1343 echo "$ac_t""yes" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 if test $ac_cv_func_gethostbyname = no
; then
1350 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1351 echo "configure:1352: checking for gethostbyname in -lnsl" >&5
1352 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 ac_save_LIBS
="$LIBS"
1358 cat > conftest.
$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1364 char gethostbyname();
1370 if { (eval echo configure
:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1372 eval "ac_cv_lib_$ac_lib_var=yes"
1374 echo "configure: failed program was:" >&5
1375 cat conftest.
$ac_ext >&5
1377 eval "ac_cv_lib_$ac_lib_var=no"
1380 LIBS
="$ac_save_LIBS"
1383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1387 echo "$ac_t""no" 1>&6
1392 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1393 # socket/setsockopt and other routines are undefined under SCO ODT
1394 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1395 # on later versions), says simon@lia.di.epfl.ch: it contains
1396 # gethostby* variants that don't use the nameserver (or something).
1397 # -lsocket must be given before -lnsl if both are needed.
1398 # We assume that if connect needs -lnsl, so does gethostbyname.
1399 echo $ac_n "checking for connect""... $ac_c" 1>&6
1400 echo "configure:1401: checking for connect" >&5
1401 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 /* System header to define __stub macros and hopefully few prototypes,
1408 which can conflict with char connect(); below. */
1410 /* Override any gcc2 internal prototype to avoid an error. */
1411 /* We use char because int might match the return type of a gcc2
1412 builtin and then its argument prototype would still apply. */
1417 /* The GNU C library defines this for functions which it implements
1418 to always fail with ENOSYS. Some functions are actually named
1419 something starting with __ and the normal name is an alias. */
1420 #if defined (__stub_connect) || defined (__stub___connect)
1428 if { (eval echo configure
:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1430 eval "ac_cv_func_connect=yes"
1432 echo "configure: failed program was:" >&5
1433 cat conftest.
$ac_ext >&5
1435 eval "ac_cv_func_connect=no"
1440 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1444 echo "$ac_t""no" 1>&6
1447 if test $ac_cv_func_connect = no
; then
1448 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1449 echo "configure:1450: checking for connect in -lsocket" >&5
1450 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 ac_save_LIBS
="$LIBS"
1455 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1456 cat > conftest.
$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 /* Override any gcc2 internal prototype to avoid an error. */
1460 /* We use char because int might match the return type of a gcc2
1461 builtin and then its argument prototype would still apply. */
1468 if { (eval echo configure
:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1470 eval "ac_cv_lib_$ac_lib_var=yes"
1472 echo "configure: failed program was:" >&5
1473 cat conftest.
$ac_ext >&5
1475 eval "ac_cv_lib_$ac_lib_var=no"
1478 LIBS
="$ac_save_LIBS"
1481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1485 echo "$ac_t""no" 1>&6
1490 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1491 echo $ac_n "checking for remove""... $ac_c" 1>&6
1492 echo "configure:1493: checking for remove" >&5
1493 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 cat > conftest.
$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 /* System header to define __stub macros and hopefully few prototypes,
1500 which can conflict with char remove(); below. */
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1509 /* The GNU C library defines this for functions which it implements
1510 to always fail with ENOSYS. Some functions are actually named
1511 something starting with __ and the normal name is an alias. */
1512 #if defined (__stub_remove) || defined (__stub___remove)
1520 if { (eval echo configure
:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1522 eval "ac_cv_func_remove=yes"
1524 echo "configure: failed program was:" >&5
1525 cat conftest.
$ac_ext >&5
1527 eval "ac_cv_func_remove=no"
1532 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1536 echo "$ac_t""no" 1>&6
1539 if test $ac_cv_func_remove = no
; then
1540 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1541 echo "configure:1542: checking for remove in -lposix" >&5
1542 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 ac_save_LIBS
="$LIBS"
1547 LIBS
="-lposix $LIBS"
1548 cat > conftest.
$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 /* Override any gcc2 internal prototype to avoid an error. */
1552 /* We use char because int might match the return type of a gcc2
1553 builtin and then its argument prototype would still apply. */
1560 if { (eval echo configure
:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1562 eval "ac_cv_lib_$ac_lib_var=yes"
1564 echo "configure: failed program was:" >&5
1565 cat conftest.
$ac_ext >&5
1567 eval "ac_cv_lib_$ac_lib_var=no"
1570 LIBS
="$ac_save_LIBS"
1573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1577 echo "$ac_t""no" 1>&6
1582 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1583 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1584 echo "configure:1585: checking for shmat" >&5
1585 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 cat > conftest.
$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 /* System header to define __stub macros and hopefully few prototypes,
1592 which can conflict with char shmat(); below. */
1594 /* Override any gcc2 internal prototype to avoid an error. */
1595 /* We use char because int might match the return type of a gcc2
1596 builtin and then its argument prototype would still apply. */
1601 /* The GNU C library defines this for functions which it implements
1602 to always fail with ENOSYS. Some functions are actually named
1603 something starting with __ and the normal name is an alias. */
1604 #if defined (__stub_shmat) || defined (__stub___shmat)
1612 if { (eval echo configure
:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1614 eval "ac_cv_func_shmat=yes"
1616 echo "configure: failed program was:" >&5
1617 cat conftest.
$ac_ext >&5
1619 eval "ac_cv_func_shmat=no"
1624 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1628 echo "$ac_t""no" 1>&6
1631 if test $ac_cv_func_shmat = no
; then
1632 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1633 echo "configure:1634: checking for shmat in -lipc" >&5
1634 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 ac_save_LIBS
="$LIBS"
1640 cat > conftest.
$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 /* Override any gcc2 internal prototype to avoid an error. */
1644 /* We use char because int might match the return type of a gcc2
1645 builtin and then its argument prototype would still apply. */
1652 if { (eval echo configure
:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1654 eval "ac_cv_lib_$ac_lib_var=yes"
1656 echo "configure: failed program was:" >&5
1657 cat conftest.
$ac_ext >&5
1659 eval "ac_cv_lib_$ac_lib_var=no"
1662 LIBS
="$ac_save_LIBS"
1665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1666 echo "$ac_t""yes" 1>&6
1667 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1669 echo "$ac_t""no" 1>&6
1675 # Check for libraries that X11R6 Xt/Xaw programs need.
1676 ac_save_LDFLAGS
="$LDFLAGS"
1677 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1678 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1679 # check for ICE first), but we must link in the order -lSM -lICE or
1680 # we get undefined symbols. So assume we have SM if we have ICE.
1681 # These have to be linked with before -lX11, unlike the other
1682 # libraries we check for below, so use a different variable.
1683 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1684 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1685 echo "configure:1686: checking for IceConnectionNumber in -lICE" >&5
1686 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 ac_save_LIBS
="$LIBS"
1692 cat > conftest.
$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1698 char IceConnectionNumber();
1701 IceConnectionNumber()
1704 if { (eval echo configure
:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1706 eval "ac_cv_lib_$ac_lib_var=yes"
1708 echo "configure: failed program was:" >&5
1709 cat conftest.
$ac_ext >&5
1711 eval "ac_cv_lib_$ac_lib_var=no"
1714 LIBS
="$ac_save_LIBS"
1717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1721 echo "$ac_t""no" 1>&6
1724 LDFLAGS
="$ac_save_LDFLAGS"
1728 for ac_prog
in 'bison -y' byacc
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy
$ac_prog; ac_word
=$2
1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_word" >&5
1734 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test -n "$YACC"; then
1738 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1740 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1741 for ac_dir
in $PATH; do
1742 test -z "$ac_dir" && ac_dir
=.
1743 if test -f $ac_dir/$ac_word; then
1744 ac_cv_prog_YACC
="$ac_prog"
1751 YACC
="$ac_cv_prog_YACC"
1752 if test -n "$YACC"; then
1753 echo "$ac_t""$YACC" 1>&6
1755 echo "$ac_t""no" 1>&6
1758 test -n "$YACC" && break
1760 test -n "$YACC" || YACC
="yacc"
1762 # Extract the first word of "flex", so it can be a program name with args.
1763 set dummy flex
; ac_word
=$2
1764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1765 echo "configure:1766: checking for $ac_word" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 if test -n "$LEX"; then
1770 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1773 for ac_dir
in $PATH; do
1774 test -z "$ac_dir" && ac_dir
=.
1775 if test -f $ac_dir/$ac_word; then
1776 ac_cv_prog_LEX
="flex"
1781 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1784 LEX
="$ac_cv_prog_LEX"
1785 if test -n "$LEX"; then
1786 echo "$ac_t""$LEX" 1>&6
1788 echo "$ac_t""no" 1>&6
1791 if test -z "$LEXLIB"
1797 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1798 echo "configure:1799: checking for yywrap in -l$ac_lib" >&5
1799 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 ac_save_LIBS
="$LIBS"
1804 LIBS
="-l$ac_lib $LIBS"
1805 cat > conftest.
$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 /* Override any gcc2 internal prototype to avoid an error. */
1809 /* We use char because int might match the return type of a gcc2
1810 builtin and then its argument prototype would still apply. */
1817 if { (eval echo configure
:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1819 eval "ac_cv_lib_$ac_lib_var=yes"
1821 echo "configure: failed program was:" >&5
1822 cat conftest.
$ac_ext >&5
1824 eval "ac_cv_lib_$ac_lib_var=no"
1827 LIBS
="$ac_save_LIBS"
1830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1834 echo "$ac_t""no" 1>&6
1839 # Extract the first word of "ranlib", so it can be a program name with args.
1840 set dummy ranlib
; ac_word
=$2
1841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $ac_word" >&5
1843 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 if test -n "$RANLIB"; then
1847 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1850 for ac_dir
in $PATH; do
1851 test -z "$ac_dir" && ac_dir
=.
1852 if test -f $ac_dir/$ac_word; then
1853 ac_cv_prog_RANLIB
="ranlib"
1858 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1861 RANLIB
="$ac_cv_prog_RANLIB"
1862 if test -n "$RANLIB"; then
1863 echo "$ac_t""$RANLIB" 1>&6
1865 echo "$ac_t""no" 1>&6
1868 # Find a good install program. We prefer a C program (faster),
1869 # so one script is as good as another. But avoid the broken or
1870 # incompatible versions:
1871 # SysV /etc/install, /usr/sbin/install
1872 # SunOS /usr/etc/install
1873 # IRIX /sbin/install
1875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1877 # ./install, which can be erroneously created by make from ./install.sh.
1878 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1879 echo "configure:1880: checking for a BSD compatible install" >&5
1880 if test -z "$INSTALL"; then
1881 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1885 for ac_dir
in $PATH; do
1886 # Account for people who put trailing slashes in PATH elements.
1888 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1890 # OSF1 and SCO ODT 3.0 have their own names for install.
1891 for ac_prog
in ginstall installbsd scoinst
install; do
1892 if test -f $ac_dir/$ac_prog; then
1893 if test $ac_prog = install &&
1894 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1895 # AIX install. It has an incompatible calling convention.
1896 # OSF/1 installbsd also uses dspmsg, but is usable.
1899 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1910 if test "${ac_cv_path_install+set}" = set; then
1911 INSTALL
="$ac_cv_path_install"
1913 # As a last resort, use the slow shell script. We don't cache a
1914 # path for INSTALL within a source directory, because that will
1915 # break other packages using the cache if that directory is
1916 # removed, or if the path is relative.
1917 INSTALL
="$ac_install_sh"
1920 echo "$ac_t""$INSTALL" 1>&6
1922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1923 # It thinks the first close brace ends the variable substitution.
1924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1926 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1928 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1929 echo "configure:1930: checking whether ln -s works" >&5
1930 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1934 if ln -s X conftestdata
2>/dev
/null
1937 ac_cv_prog_LN_S
="ln -s"
1942 LN_S
="$ac_cv_prog_LN_S"
1943 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1944 echo "$ac_t""yes" 1>&6
1946 echo "$ac_t""no" 1>&6
1949 # Extract the first word of "c2man", so it can be a program name with args.
1950 set dummy c2man
; ac_word
=$2
1951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_word" >&5
1953 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 if test -n "$C2MAN"; then
1957 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
1959 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1960 for ac_dir
in $PATH; do
1961 test -z "$ac_dir" && ac_dir
=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_C2MAN
="c2man"
1968 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="true"
1971 C2MAN
="$ac_cv_prog_C2MAN"
1972 if test -n "$C2MAN"; then
1973 echo "$ac_t""$C2MAN" 1>&6
1975 echo "$ac_t""no" 1>&6
1978 # Extract the first word of "ldconfig", so it can be a program name with args.
1979 set dummy ldconfig
; ac_word
=$2
1980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_word" >&5
1982 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1987 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
1990 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1991 for ac_dir
in /sbin
:/usr
/sbin
:$PATH$ac_dummy; do
1992 test -z "$ac_dir" && ac_dir
=.
1993 if test -f $ac_dir/$ac_word; then
1994 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
1999 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="false"
2003 LDCONFIG
="$ac_cv_path_LDCONFIG"
2004 if test -n "$LDCONFIG"; then
2005 echo "$ac_t""$LDCONFIG" 1>&6
2007 echo "$ac_t""no" 1>&6
2011 for ac_prog
in lclint lint
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy
$ac_prog; ac_word
=$2
2015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2016 echo "configure:2017: checking for $ac_word" >&5
2017 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 if test -n "$LINT"; then
2021 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2023 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2024 for ac_dir
in $PATH; do
2025 test -z "$ac_dir" && ac_dir
=.
2026 if test -f $ac_dir/$ac_word; then
2027 ac_cv_prog_LINT
="$ac_prog"
2034 LINT
="$ac_cv_prog_LINT"
2035 if test -n "$LINT"; then
2036 echo "$ac_t""$LINT" 1>&6
2038 echo "$ac_t""no" 1>&6
2041 test -n "$LINT" && break
2044 if test "$LINT" = "lint"
2046 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2052 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2053 echo "configure:2054: checking for sqrt in -lm" >&5
2054 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 ac_save_LIBS
="$LIBS"
2060 cat > conftest.
$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 /* Override any gcc2 internal prototype to avoid an error. */
2064 /* We use char because int might match the return type of a gcc2
2065 builtin and then its argument prototype would still apply. */
2072 if { (eval echo configure
:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2074 eval "ac_cv_lib_$ac_lib_var=yes"
2076 echo "configure: failed program was:" >&5
2077 cat conftest.
$ac_ext >&5
2079 eval "ac_cv_lib_$ac_lib_var=no"
2082 LIBS
="$ac_save_LIBS"
2085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2088 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2089 cat >> confdefs.h
<<EOF
2090 #define $ac_tr_lib 1
2096 echo "$ac_t""no" 1>&6
2099 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2100 echo "configure:2101: checking for i386_set_ldt in -li386" >&5
2101 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 ac_save_LIBS
="$LIBS"
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 /* Override any gcc2 internal prototype to avoid an error. */
2111 /* We use char because int might match the return type of a gcc2
2112 builtin and then its argument prototype would still apply. */
2113 char i386_set_ldt();
2119 if { (eval echo configure
:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2121 eval "ac_cv_lib_$ac_lib_var=yes"
2123 echo "configure: failed program was:" >&5
2124 cat conftest.
$ac_ext >&5
2126 eval "ac_cv_lib_$ac_lib_var=no"
2129 LIBS
="$ac_save_LIBS"
2132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2133 echo "$ac_t""yes" 1>&6
2134 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2136 cat >> confdefs.h
<<EOF
2137 #define $ac_tr_lib 1
2143 echo "$ac_t""no" 1>&6
2146 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2147 echo "configure:2148: checking for _oss_ioctl in -lossaudio" >&5
2148 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 ac_save_LIBS
="$LIBS"
2153 LIBS
="-lossaudio $LIBS"
2154 cat > conftest.
$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 /* Override any gcc2 internal prototype to avoid an error. */
2158 /* We use char because int might match the return type of a gcc2
2159 builtin and then its argument prototype would still apply. */
2166 if { (eval echo configure
:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2168 eval "ac_cv_lib_$ac_lib_var=yes"
2170 echo "configure: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 eval "ac_cv_lib_$ac_lib_var=no"
2176 LIBS
="$ac_save_LIBS"
2179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2183 cat >> confdefs.h
<<EOF
2184 #define $ac_tr_lib 1
2187 LIBS
="-lossaudio $LIBS"
2190 echo "$ac_t""no" 1>&6
2193 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2194 echo "configure:2195: checking for iswalnum in -lw" >&5
2195 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 ac_save_LIBS
="$LIBS"
2201 cat > conftest.
$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2204 /* Override any gcc2 internal prototype to avoid an error. */
2205 /* We use char because int might match the return type of a gcc2
2206 builtin and then its argument prototype would still apply. */
2213 if { (eval echo configure
:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2215 eval "ac_cv_lib_$ac_lib_var=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.
$ac_ext >&5
2220 eval "ac_cv_lib_$ac_lib_var=no"
2223 LIBS
="$ac_save_LIBS"
2226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2230 cat >> confdefs.h
<<EOF
2231 #define $ac_tr_lib 1
2237 echo "$ac_t""no" 1>&6
2240 for ac_func
in gethostbyname
2242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2243 echo "configure:2244: checking for $ac_func" >&5
2244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 cat > conftest.
$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 /* System header to define __stub macros and hopefully few prototypes,
2251 which can conflict with char $ac_func(); below. */
2253 /* Override any gcc2 internal prototype to avoid an error. */
2254 /* We use char because int might match the return type of a gcc2
2255 builtin and then its argument prototype would still apply. */
2260 /* The GNU C library defines this for functions which it implements
2261 to always fail with ENOSYS. Some functions are actually named
2262 something starting with __ and the normal name is an alias. */
2263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2271 if { (eval echo configure
:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2273 eval "ac_cv_func_$ac_func=yes"
2275 echo "configure: failed program was:" >&5
2276 cat conftest.
$ac_ext >&5
2278 eval "ac_cv_func_$ac_func=no"
2283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2286 cat >> confdefs.h
<<EOF
2287 #define $ac_tr_func 1
2291 echo "$ac_t""no" 1>&6
2292 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2293 echo "configure:2294: checking for gethostbyname in -lnsl" >&5
2294 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 ac_save_LIBS
="$LIBS"
2299 LIBS
="-lnsl -lsocket $LIBS"
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 /* Override any gcc2 internal prototype to avoid an error. */
2304 /* We use char because int might match the return type of a gcc2
2305 builtin and then its argument prototype would still apply. */
2306 char gethostbyname();
2312 if { (eval echo configure
:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2314 eval "ac_cv_lib_$ac_lib_var=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 eval "ac_cv_lib_$ac_lib_var=no"
2322 LIBS
="$ac_save_LIBS"
2325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2326 echo "$ac_t""yes" 1>&6
2327 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2329 echo "$ac_t""no" 1>&6
2330 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2331 echo "configure:2332: checking for gethostbyname in -lsocket" >&5
2332 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 ac_save_LIBS
="$LIBS"
2337 LIBS
="-lsocket -lnsl $LIBS"
2338 cat > conftest.
$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 /* Override any gcc2 internal prototype to avoid an error. */
2342 /* We use char because int might match the return type of a gcc2
2343 builtin and then its argument prototype would still apply. */
2344 char gethostbyname();
2350 if { (eval echo configure
:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2352 eval "ac_cv_lib_$ac_lib_var=yes"
2354 echo "configure: failed program was:" >&5
2355 cat conftest.
$ac_ext >&5
2357 eval "ac_cv_lib_$ac_lib_var=no"
2360 LIBS
="$ac_save_LIBS"
2363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2365 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2367 echo "$ac_t""no" 1>&6
2375 for ac_func
in connect
2377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_func" >&5
2379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 cat > conftest.
$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 /* System header to define __stub macros and hopefully few prototypes,
2386 which can conflict with char $ac_func(); below. */
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2395 /* The GNU C library defines this for functions which it implements
2396 to always fail with ENOSYS. Some functions are actually named
2397 something starting with __ and the normal name is an alias. */
2398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2406 if { (eval echo configure
:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2408 eval "ac_cv_func_$ac_func=yes"
2410 echo "configure: failed program was:" >&5
2411 cat conftest.
$ac_ext >&5
2413 eval "ac_cv_func_$ac_func=no"
2418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2421 cat >> confdefs.h
<<EOF
2422 #define $ac_tr_func 1
2426 echo "$ac_t""no" 1>&6
2427 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2428 echo "configure:2429: checking for connect in -lsocket" >&5
2429 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 ac_save_LIBS
="$LIBS"
2434 LIBS
="-lsocket $LIBS"
2435 cat > conftest.
$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 /* Override any gcc2 internal prototype to avoid an error. */
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2447 if { (eval echo configure
:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2449 eval "ac_cv_lib_$ac_lib_var=yes"
2451 echo "configure: failed program was:" >&5
2452 cat conftest.
$ac_ext >&5
2454 eval "ac_cv_lib_$ac_lib_var=no"
2457 LIBS
="$ac_save_LIBS"
2460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2464 cat >> confdefs.h
<<EOF
2465 #define $ac_tr_lib 1
2468 LIBS
="-lsocket $LIBS"
2471 echo "$ac_t""no" 1>&6
2477 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2478 echo "configure:2479: checking for setrunelocale in -lxpg4" >&5
2479 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 ac_save_LIBS
="$LIBS"
2485 cat > conftest.
$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 /* Override any gcc2 internal prototype to avoid an error. */
2489 /* We use char because int might match the return type of a gcc2
2490 builtin and then its argument prototype would still apply. */
2491 char setrunelocale();
2497 if { (eval echo configure
:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2499 eval "ac_cv_lib_$ac_lib_var=yes"
2501 echo "configure: failed program was:" >&5
2502 cat conftest.
$ac_ext >&5
2504 eval "ac_cv_lib_$ac_lib_var=no"
2507 LIBS
="$ac_save_LIBS"
2510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2511 echo "$ac_t""yes" 1>&6
2512 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2514 cat >> confdefs.h
<<EOF
2515 #define $ac_tr_lib 1
2521 echo "$ac_t""no" 1>&6
2524 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2525 echo "configure:2526: checking for mmap in -lmmap" >&5
2526 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 ac_save_LIBS
="$LIBS"
2532 cat > conftest.
$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2544 if { (eval echo configure
:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2546 eval "ac_cv_lib_$ac_lib_var=yes"
2548 echo "configure: failed program was:" >&5
2549 cat conftest.
$ac_ext >&5
2551 eval "ac_cv_lib_$ac_lib_var=no"
2554 LIBS
="$ac_save_LIBS"
2557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2559 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2560 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2561 cat >> confdefs.h
<<EOF
2562 #define $ac_tr_lib 1
2568 echo "$ac_t""no" 1>&6
2571 for ac_func
in openpty
2573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_func" >&5
2575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.
$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 /* System header to define __stub macros and hopefully few prototypes,
2582 which can conflict with char $ac_func(); below. */
2584 /* Override any gcc2 internal prototype to avoid an error. */
2585 /* We use char because int might match the return type of a gcc2
2586 builtin and then its argument prototype would still apply. */
2591 /* The GNU C library defines this for functions which it implements
2592 to always fail with ENOSYS. Some functions are actually named
2593 something starting with __ and the normal name is an alias. */
2594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2602 if { (eval echo configure
:2603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2604 eval "ac_cv_func_$ac_func=yes"
2606 echo "configure: failed program was:" >&5
2607 cat conftest.
$ac_ext >&5
2609 eval "ac_cv_func_$ac_func=no"
2614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2617 cat >> confdefs.h
<<EOF
2618 #define $ac_tr_func 1
2622 echo "$ac_t""no" 1>&6
2623 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2624 echo "configure:2625: checking for openpty in -lutil" >&5
2625 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 ac_save_LIBS
="$LIBS"
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 /* Override any gcc2 internal prototype to avoid an error. */
2635 /* We use char because int might match the return type of a gcc2
2636 builtin and then its argument prototype would still apply. */
2643 if { (eval echo configure
:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2645 eval "ac_cv_lib_$ac_lib_var=yes"
2647 echo "configure: failed program was:" >&5
2648 cat conftest.
$ac_ext >&5
2650 eval "ac_cv_lib_$ac_lib_var=no"
2653 LIBS
="$ac_save_LIBS"
2656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2657 echo "$ac_t""yes" 1>&6
2658 cat >> confdefs.h
<<\EOF
2659 #define HAVE_OPENPTY 1
2665 echo "$ac_t""no" 1>&6
2672 for ac_hdr
in dlfcn.h
2674 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2676 echo "configure:2677: checking for $ac_hdr" >&5
2677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.
$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2685 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686 { (eval echo configure
:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687 ac_err
=`grep -v '^ *+' conftest.out`
2688 if test -z "$ac_err"; then
2690 eval "ac_cv_header_$ac_safe=yes"
2693 echo "configure: failed program was:" >&5
2694 cat conftest.
$ac_ext >&5
2696 eval "ac_cv_header_$ac_safe=no"
2700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2703 cat >> confdefs.h
<<EOF
2704 #define $ac_tr_hdr 1
2706 for ac_func
in dlopen
2708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2709 echo "configure:2710: checking for $ac_func" >&5
2710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 /* System header to define __stub macros and hopefully few prototypes,
2717 which can conflict with char $ac_func(); below. */
2719 /* Override any gcc2 internal prototype to avoid an error. */
2720 /* We use char because int might match the return type of a gcc2
2721 builtin and then its argument prototype would still apply. */
2726 /* The GNU C library defines this for functions which it implements
2727 to always fail with ENOSYS. Some functions are actually named
2728 something starting with __ and the normal name is an alias. */
2729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2737 if { (eval echo configure
:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2739 eval "ac_cv_func_$ac_func=yes"
2741 echo "configure: failed program was:" >&5
2742 cat conftest.
$ac_ext >&5
2744 eval "ac_cv_func_$ac_func=no"
2749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2751 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2752 cat >> confdefs.h
<<EOF
2753 #define $ac_tr_func 1
2755 cat >> confdefs.h
<<\EOF
2756 #define HAVE_DL_API 1
2760 echo "$ac_t""no" 1>&6
2761 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2762 echo "configure:2763: checking for dlopen in -ldl" >&5
2763 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 ac_save_LIBS
="$LIBS"
2769 cat > conftest.
$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2772 /* Override any gcc2 internal prototype to avoid an error. */
2773 /* We use char because int might match the return type of a gcc2
2774 builtin and then its argument prototype would still apply. */
2781 if { (eval echo configure
:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2783 eval "ac_cv_lib_$ac_lib_var=yes"
2785 echo "configure: failed program was:" >&5
2786 cat conftest.
$ac_ext >&5
2788 eval "ac_cv_lib_$ac_lib_var=no"
2791 LIBS
="$ac_save_LIBS"
2794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2795 echo "$ac_t""yes" 1>&6
2796 cat >> confdefs.h
<<\EOF
2797 #define HAVE_DL_API 1
2803 echo "$ac_t""no" 1>&6
2812 echo "$ac_t""no" 1>&6
2817 if test "$have_x" = "yes"
2820 ac_save_CPPFLAGS
="$CPPFLAGS"
2821 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
2823 for ac_hdr
in X11
/xpm.h
2825 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_hdr" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2836 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure
:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err
=`grep -v '^ *+' conftest.out`
2839 if test -z "$ac_err"; then
2841 eval "ac_cv_header_$ac_safe=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.
$ac_ext >&5
2847 eval "ac_cv_header_$ac_safe=no"
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854 cat >> confdefs.h
<<EOF
2855 #define $ac_tr_hdr 1
2859 echo "$ac_t""no" 1>&6
2863 if test "$ac_cv_header_X11_xpm_h" = "yes"
2865 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2866 echo "configure:2867: checking for XpmCreatePixmapFromData in -lXpm" >&5
2867 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 ac_save_LIBS
="$LIBS"
2872 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* Override any gcc2 internal prototype to avoid an error. */
2877 /* We use char because int might match the return type of a gcc2
2878 builtin and then its argument prototype would still apply. */
2879 char XpmCreatePixmapFromData();
2882 XpmCreatePixmapFromData()
2885 if { (eval echo configure
:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2887 eval "ac_cv_lib_$ac_lib_var=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 eval "ac_cv_lib_$ac_lib_var=no"
2895 LIBS
="$ac_save_LIBS"
2898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 cat >> confdefs.h
<<\EOF
2901 #define HAVE_LIBXXPM 1
2903 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
2905 echo "$ac_t""no" 1>&6
2909 echo "When compiling with X support, you need the Xpm library, or"
2910 echo "WINE will not work. This Xpm library is within the following RPM,"
2911 echo "which you need to install:"
2912 echo "Redhat : xpm, xpm-devel"
2913 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
2916 echo "Or get the sources from ftp.x.org and all its mirror sites from "
2917 echo "the directory /contrib/libraries."
2923 for ac_hdr
in X11
/Xlib.h X11
/extensions
/XShm.h
2925 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2927 echo "configure:2928: checking for $ac_hdr" >&5
2928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 cat > conftest.
$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2936 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2937 { (eval echo configure
:2938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2938 ac_err
=`grep -v '^ *+' conftest.out`
2939 if test -z "$ac_err"; then
2941 eval "ac_cv_header_$ac_safe=yes"
2944 echo "configure: failed program was:" >&5
2945 cat conftest.
$ac_ext >&5
2947 eval "ac_cv_header_$ac_safe=no"
2951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2952 echo "$ac_t""yes" 1>&6
2953 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2954 cat >> confdefs.h
<<EOF
2955 #define $ac_tr_hdr 1
2959 echo "$ac_t""no" 1>&6
2963 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2965 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2966 echo "configure:2967: checking for XShmQueryExtension in -lXext" >&5
2967 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 ac_save_LIBS
="$LIBS"
2972 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2973 cat > conftest.
$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2976 /* Override any gcc2 internal prototype to avoid an error. */
2977 /* We use char because int might match the return type of a gcc2
2978 builtin and then its argument prototype would still apply. */
2979 char XShmQueryExtension();
2982 XShmQueryExtension()
2985 if { (eval echo configure
:2986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2987 eval "ac_cv_lib_$ac_lib_var=yes"
2989 echo "configure: failed program was:" >&5
2990 cat conftest.
$ac_ext >&5
2992 eval "ac_cv_lib_$ac_lib_var=no"
2995 LIBS
="$ac_save_LIBS"
2998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2999 echo "$ac_t""yes" 1>&6
3000 cat >> confdefs.h
<<\EOF
3001 #define HAVE_LIBXXSHM 1
3005 echo "$ac_t""no" 1>&6
3009 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86dga.h
3011 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3013 echo "configure:3014: checking for $ac_hdr" >&5
3014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 cat > conftest.
$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3022 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3023 { (eval echo configure
:3024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3024 ac_err
=`grep -v '^ *+' conftest.out`
3025 if test -z "$ac_err"; then
3027 eval "ac_cv_header_$ac_safe=yes"
3030 echo "configure: failed program was:" >&5
3031 cat conftest.
$ac_ext >&5
3033 eval "ac_cv_header_$ac_safe=no"
3037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3038 echo "$ac_t""yes" 1>&6
3039 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3040 cat >> confdefs.h
<<EOF
3041 #define $ac_tr_hdr 1
3045 echo "$ac_t""no" 1>&6
3049 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3051 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3052 echo "configure:3053: checking for XDGAQueryExtension in -lXxf86dga" >&5
3053 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 ac_save_LIBS
="$LIBS"
3058 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3059 cat > conftest.
$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3062 /* Override any gcc2 internal prototype to avoid an error. */
3063 /* We use char because int might match the return type of a gcc2
3064 builtin and then its argument prototype would still apply. */
3065 char XDGAQueryExtension();
3068 XDGAQueryExtension()
3071 if { (eval echo configure
:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3073 eval "ac_cv_lib_$ac_lib_var=yes"
3075 echo "configure: failed program was:" >&5
3076 cat conftest.
$ac_ext >&5
3078 eval "ac_cv_lib_$ac_lib_var=no"
3081 LIBS
="$ac_save_LIBS"
3084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3085 echo "$ac_t""yes" 1>&6
3086 cat >> confdefs.h
<<\EOF
3087 #define HAVE_LIBXXF86DGA2 1
3089 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3091 echo "$ac_t""no" 1>&6
3094 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3096 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3097 echo "configure:3098: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3098 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 ac_save_LIBS
="$LIBS"
3103 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3104 cat > conftest.
$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3107 /* Override any gcc2 internal prototype to avoid an error. */
3108 /* We use char because int might match the return type of a gcc2
3109 builtin and then its argument prototype would still apply. */
3110 char XF86DGAQueryExtension();
3113 XF86DGAQueryExtension()
3116 if { (eval echo configure
:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3118 eval "ac_cv_lib_$ac_lib_var=yes"
3120 echo "configure: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3123 eval "ac_cv_lib_$ac_lib_var=no"
3126 LIBS
="$ac_save_LIBS"
3129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 cat >> confdefs.h
<<\EOF
3132 #define HAVE_LIBXXF86DGA 1
3134 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3136 echo "$ac_t""no" 1>&6
3142 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86vmode.h
3144 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3146 echo "configure:3147: checking for $ac_hdr" >&5
3147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.
$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3155 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3156 { (eval echo configure
:3157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3157 ac_err
=`grep -v '^ *+' conftest.out`
3158 if test -z "$ac_err"; then
3160 eval "ac_cv_header_$ac_safe=yes"
3163 echo "configure: failed program was:" >&5
3164 cat conftest.
$ac_ext >&5
3166 eval "ac_cv_header_$ac_safe=no"
3170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3171 echo "$ac_t""yes" 1>&6
3172 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3173 cat >> confdefs.h
<<EOF
3174 #define $ac_tr_hdr 1
3178 echo "$ac_t""no" 1>&6
3182 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3184 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3185 echo "configure:3186: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3186 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 ac_save_LIBS
="$LIBS"
3191 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3192 cat > conftest.
$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 /* Override any gcc2 internal prototype to avoid an error. */
3196 /* We use char because int might match the return type of a gcc2
3197 builtin and then its argument prototype would still apply. */
3198 char XF86VidModeQueryExtension();
3201 XF86VidModeQueryExtension()
3204 if { (eval echo configure
:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3206 eval "ac_cv_lib_$ac_lib_var=yes"
3208 echo "configure: failed program was:" >&5
3209 cat conftest.
$ac_ext >&5
3211 eval "ac_cv_lib_$ac_lib_var=no"
3214 LIBS
="$ac_save_LIBS"
3217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3218 echo "$ac_t""yes" 1>&6
3219 cat >> confdefs.h
<<\EOF
3220 #define HAVE_LIBXXF86VM 1
3222 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3224 echo "$ac_t""no" 1>&6
3229 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/osmesa.h
3231 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_hdr" >&5
3234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 cat > conftest.
$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3242 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3243 { (eval echo configure
:3244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3244 ac_err
=`grep -v '^ *+' conftest.out`
3245 if test -z "$ac_err"; then
3247 eval "ac_cv_header_$ac_safe=yes"
3250 echo "configure: failed program was:" >&5
3251 cat conftest.
$ac_ext >&5
3253 eval "ac_cv_header_$ac_safe=no"
3257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3258 echo "$ac_t""yes" 1>&6
3259 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3260 cat >> confdefs.h
<<EOF
3261 #define $ac_tr_hdr 1
3265 echo "$ac_t""no" 1>&6
3269 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3271 echo $ac_n "checking "for up-to-date Mesa version
"""... $ac_c" 1>&6
3272 echo "configure:3273: checking "for up-to-date Mesa version
"" >&5
3273 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 cat > conftest.
$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3281 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3284 if { (eval echo configure
:3285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3286 wine_cv_mesa_version_OK
="yes"
3288 echo "configure: failed program was:" >&5
3289 cat conftest.
$ac_ext >&5
3291 wine_cv_mesa_version_OK
="no"
3298 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3300 if test "$wine_cv_mesa_version_OK" = "yes"
3302 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3303 echo "configure:3304: checking for glXCreateContext in -lGL" >&5
3304 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 ac_save_LIBS
="$LIBS"
3309 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3310 cat > conftest.
$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3316 char glXCreateContext();
3322 if { (eval echo configure
:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3324 eval "ac_cv_lib_$ac_lib_var=yes"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.
$ac_ext >&5
3329 eval "ac_cv_lib_$ac_lib_var=no"
3332 LIBS
="$ac_save_LIBS"
3335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 cat >> confdefs.h
<<\EOF
3338 #define HAVE_LIBMESAGL 1
3340 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
3342 echo "$ac_t""no" 1>&6
3345 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3347 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3348 echo "configure:3349: checking for glXCreateContext in -lMesaGL" >&5
3349 ac_lib_var
=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 ac_save_LIBS
="$LIBS"
3354 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3355 cat > conftest.
$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* Override any gcc2 internal prototype to avoid an error. */
3359 /* We use char because int might match the return type of a gcc2
3360 builtin and then its argument prototype would still apply. */
3361 char glXCreateContext();
3367 if { (eval echo configure
:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3369 eval "ac_cv_lib_$ac_lib_var=yes"
3371 echo "configure: failed program was:" >&5
3372 cat conftest.
$ac_ext >&5
3374 eval "ac_cv_lib_$ac_lib_var=no"
3377 LIBS
="$ac_save_LIBS"
3380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3382 cat >> confdefs.h
<<\EOF
3383 #define HAVE_LIBMESAGL 1
3385 X_PRE_LIBS
="$X_PRE_LIBS -lMesaGL"
3387 echo "$ac_t""no" 1>&6
3392 echo $ac_n "checking "for the OpenGL Color Index extension
"""... $ac_c" 1>&6
3393 echo "configure:3394: checking "for the OpenGL Color Index extension
"" >&5
3394 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3402 GLenum test = GL_COLOR_INDEX8_EXT;
3405 if { (eval echo configure
:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 cat >> confdefs.h
<<\EOF
3408 #define HAVE_GL_COLOR_TABLE 1
3412 echo "configure: failed program was:" >&5
3413 cat conftest.
$ac_ext >&5
3419 echo "$ac_t""$dummy" 1>&6
3420 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3422 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3423 echo "configure:3424: checking for glColorTableEXT in -lMesaGL" >&5
3424 ac_lib_var
=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3428 ac_save_LIBS
="$LIBS"
3429 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3430 cat > conftest.
$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 /* Override any gcc2 internal prototype to avoid an error. */
3434 /* We use char because int might match the return type of a gcc2
3435 builtin and then its argument prototype would still apply. */
3436 char glColorTableEXT();
3442 if { (eval echo configure
:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3444 eval "ac_cv_lib_$ac_lib_var=yes"
3446 echo "configure: failed program was:" >&5
3447 cat conftest.
$ac_ext >&5
3449 eval "ac_cv_lib_$ac_lib_var=no"
3452 LIBS
="$ac_save_LIBS"
3455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3456 echo "$ac_t""yes" 1>&6
3457 cat >> confdefs.h
<<\EOF
3458 #define HAVE_GL_PALETTED_TEXTURE 1
3462 echo "$ac_t""no" 1>&6
3466 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3467 echo "configure:3468: checking for glColorTableEXT in -lGL" >&5
3468 ac_lib_var
=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3469 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 ac_save_LIBS
="$LIBS"
3473 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3474 cat > conftest.
$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 /* Override any gcc2 internal prototype to avoid an error. */
3478 /* We use char because int might match the return type of a gcc2
3479 builtin and then its argument prototype would still apply. */
3480 char glColorTableEXT();
3486 if { (eval echo configure
:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3488 eval "ac_cv_lib_$ac_lib_var=yes"
3490 echo "configure: failed program was:" >&5
3491 cat conftest.
$ac_ext >&5
3493 eval "ac_cv_lib_$ac_lib_var=no"
3496 LIBS
="$ac_save_LIBS"
3499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 cat >> confdefs.h
<<\EOF
3502 #define HAVE_GL_PALETTED_TEXTURE 1
3506 echo "$ac_t""no" 1>&6
3513 CPPFLAGS
="$ac_save_CPPFLAGS"
3520 for ac_hdr
in ncurses.h
3522 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3524 echo "configure:3525: checking for $ac_hdr" >&5
3525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 cat > conftest.
$ac_ext <<EOF
3529 #line 3530 "configure"
3530 #include "confdefs.h"
3533 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3534 { (eval echo configure
:3535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3535 ac_err
=`grep -v '^ *+' conftest.out`
3536 if test -z "$ac_err"; then
3538 eval "ac_cv_header_$ac_safe=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.
$ac_ext >&5
3544 eval "ac_cv_header_$ac_safe=no"
3548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3549 echo "$ac_t""yes" 1>&6
3550 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3551 cat >> confdefs.h
<<EOF
3552 #define $ac_tr_hdr 1
3556 echo "$ac_t""no" 1>&6
3560 if test "$ac_cv_header_ncurses_h" = "yes"
3562 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3563 echo "configure:3564: checking for waddch in -lncurses" >&5
3564 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3568 ac_save_LIBS
="$LIBS"
3569 LIBS
="-lncurses $LIBS"
3570 cat > conftest.
$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* Override any gcc2 internal prototype to avoid an error. */
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3582 if { (eval echo configure
:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3584 eval "ac_cv_lib_$ac_lib_var=yes"
3586 echo "configure: failed program was:" >&5
3587 cat conftest.
$ac_ext >&5
3589 eval "ac_cv_lib_$ac_lib_var=no"
3592 LIBS
="$ac_save_LIBS"
3595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3596 echo "$ac_t""yes" 1>&6
3597 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3599 cat >> confdefs.h
<<EOF
3600 #define $ac_tr_lib 1
3603 LIBS
="-lncurses $LIBS"
3606 echo "$ac_t""no" 1>&6
3610 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3612 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3613 echo "configure:3614: checking for resizeterm in -lncurses" >&5
3614 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 ac_save_LIBS
="$LIBS"
3619 LIBS
="-lncurses $LIBS"
3620 cat > conftest.
$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3632 if { (eval echo configure
:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3634 eval "ac_cv_lib_$ac_lib_var=yes"
3636 echo "configure: failed program was:" >&5
3637 cat conftest.
$ac_ext >&5
3639 eval "ac_cv_lib_$ac_lib_var=no"
3642 LIBS
="$ac_save_LIBS"
3645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3646 echo "$ac_t""yes" 1>&6
3647 cat >> confdefs.h
<<\EOF
3648 #define HAVE_RESIZETERM 1
3652 echo "$ac_t""no" 1>&6
3655 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3656 echo "configure:3657: checking for getbkgd in -lncurses" >&5
3657 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3661 ac_save_LIBS
="$LIBS"
3662 LIBS
="-lncurses $LIBS"
3663 cat > conftest.
$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 /* Override any gcc2 internal prototype to avoid an error. */
3667 /* We use char because int might match the return type of a gcc2
3668 builtin and then its argument prototype would still apply. */
3675 if { (eval echo configure
:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3677 eval "ac_cv_lib_$ac_lib_var=yes"
3679 echo "configure: failed program was:" >&5
3680 cat conftest.
$ac_ext >&5
3682 eval "ac_cv_lib_$ac_lib_var=no"
3685 LIBS
="$ac_save_LIBS"
3688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3690 cat >> confdefs.h
<<\EOF
3691 #define HAVE_GETBKGD 1
3695 echo "$ac_t""no" 1>&6
3699 for ac_hdr
in curses.h
3701 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3703 echo "configure:3704: checking for $ac_hdr" >&5
3704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 cat > conftest.
$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3712 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3713 { (eval echo configure
:3714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3714 ac_err
=`grep -v '^ *+' conftest.out`
3715 if test -z "$ac_err"; then
3717 eval "ac_cv_header_$ac_safe=yes"
3720 echo "configure: failed program was:" >&5
3721 cat conftest.
$ac_ext >&5
3723 eval "ac_cv_header_$ac_safe=no"
3727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3730 cat >> confdefs.h
<<EOF
3731 #define $ac_tr_hdr 1
3735 echo "$ac_t""no" 1>&6
3739 if test "$ac_cv_header_curses_h" = "yes"
3741 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3742 echo "configure:3743: checking for waddch in -lcurses" >&5
3743 ac_lib_var
=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 ac_save_LIBS
="$LIBS"
3748 LIBS
="-lcurses $LIBS"
3749 cat > conftest.
$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 /* Override any gcc2 internal prototype to avoid an error. */
3753 /* We use char because int might match the return type of a gcc2
3754 builtin and then its argument prototype would still apply. */
3761 if { (eval echo configure
:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3763 eval "ac_cv_lib_$ac_lib_var=yes"
3765 echo "configure: failed program was:" >&5
3766 cat conftest.
$ac_ext >&5
3768 eval "ac_cv_lib_$ac_lib_var=no"
3771 LIBS
="$ac_save_LIBS"
3774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3775 echo "$ac_t""yes" 1>&6
3776 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3778 cat >> confdefs.h
<<EOF
3779 #define $ac_tr_lib 1
3782 LIBS
="-lcurses $LIBS"
3785 echo "$ac_t""no" 1>&6
3788 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3789 echo "configure:3790: checking for resizeterm in -lcurses" >&5
3790 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 ac_save_LIBS
="$LIBS"
3795 LIBS
="-lcurses $LIBS"
3796 cat > conftest.
$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3808 if { (eval echo configure
:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3810 eval "ac_cv_lib_$ac_lib_var=yes"
3812 echo "configure: failed program was:" >&5
3813 cat conftest.
$ac_ext >&5
3815 eval "ac_cv_lib_$ac_lib_var=no"
3818 LIBS
="$ac_save_LIBS"
3821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 cat >> confdefs.h
<<\EOF
3824 #define HAVE_RESIZETERM 1
3828 echo "$ac_t""no" 1>&6
3831 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3832 echo "configure:3833: checking for getbkgd in -lcurses" >&5
3833 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 ac_save_LIBS
="$LIBS"
3838 LIBS
="-lcurses $LIBS"
3839 cat > conftest.
$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3842 /* Override any gcc2 internal prototype to avoid an error. */
3843 /* We use char because int might match the return type of a gcc2
3844 builtin and then its argument prototype would still apply. */
3851 if { (eval echo configure
:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3853 eval "ac_cv_lib_$ac_lib_var=yes"
3855 echo "configure: failed program was:" >&5
3856 cat conftest.
$ac_ext >&5
3858 eval "ac_cv_lib_$ac_lib_var=no"
3861 LIBS
="$ac_save_LIBS"
3864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 cat >> confdefs.h
<<\EOF
3867 #define HAVE_GETBKGD 1
3871 echo "$ac_t""no" 1>&6
3877 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
3878 echo "configure:3879: checking "for GNU style IPX support
"" >&5
3879 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3882 cat > conftest.
$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3885 #include <sys/socket.h>
3886 #include <netipx/ipx.h>
3888 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3891 if { (eval echo configure
:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3893 cat >> confdefs.h
<<\EOF
3894 #define HAVE_IPX_GNU 1
3897 ac_cv_c_ipx_gnu
="yes"
3899 echo "configure: failed program was:" >&5
3900 cat conftest.
$ac_ext >&5
3902 ac_cv_c_ipx_gnu
="no"
3908 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3910 if test "$ac_cv_c_ipx_gnu" = "no"
3912 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
3913 echo "configure:3914: checking "for linux style IPX support
"" >&5
3914 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 cat > conftest.
$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 #include <sys/socket.h>
3921 #include <asm/types.h>
3922 #include <linux/ipx.h>
3924 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3927 if { (eval echo configure
:3928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3929 cat >> confdefs.h
<<\EOF
3930 #define HAVE_IPX_LINUX 1
3933 ac_cv_c_ipx_linux
="yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3938 ac_cv_c_ipx_linux
="no"
3944 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3947 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
3949 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_hdr" >&5
3952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.
$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3960 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3961 { (eval echo configure
:3962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3962 ac_err
=`grep -v '^ *+' conftest.out`
3963 if test -z "$ac_err"; then
3965 eval "ac_cv_header_$ac_safe=yes"
3968 echo "configure: failed program was:" >&5
3969 cat conftest.
$ac_ext >&5
3971 eval "ac_cv_header_$ac_safe=no"
3975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3976 echo "$ac_t""yes" 1>&6
3977 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3978 cat >> confdefs.h
<<EOF
3979 #define $ac_tr_hdr 1
3983 echo "$ac_t""no" 1>&6
3988 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
3989 echo "configure:3990: checking "for Open Sound System
"" >&5
3990 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3997 #if defined(HAVE_SYS_SOUNDCARD_H)
3998 #include <sys/soundcard.h>
3999 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4000 #include <machine/soundcard.h>
4001 #elif defined(HAVE_SOUNDCARD_H)
4002 #include <soundcard.h>
4008 /* check for one of the Open Sound System specific SNDCTL_ defines */
4009 #if !defined(SNDCTL_DSP_STEREO)
4010 #error No open sound system
4015 if { (eval echo configure
:4016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4017 ac_cv_c_opensoundsystem
="yes"
4019 echo "configure: failed program was:" >&5
4020 cat conftest.
$ac_ext >&5
4022 ac_cv_c_opensoundsystem
="no"
4027 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4029 if test "$ac_cv_c_opensoundsystem" = "yes"
4031 cat >> confdefs.h
<<\EOF
4037 echo $ac_n "checking "for Open Sound System
/MIDI interface
"""... $ac_c" 1>&6
4038 echo "configure:4039: checking "for Open Sound System
/MIDI interface
"" >&5
4039 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 cat > conftest.
$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4046 #if defined(HAVE_SYS_SOUNDCARD_H)
4047 #include <sys/soundcard.h>
4048 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4049 #include <machine/soundcard.h>
4050 #elif defined(HAVE_SOUNDCARD_H)
4051 #include <soundcard.h>
4057 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4058 #if !defined(SNDCTL_SEQ_SYNC)
4059 #error No open sound system MIDI interface
4064 if { (eval echo configure
:4065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4066 ac_cv_c_opensoundsystem_midi
="yes"
4068 echo "configure: failed program was:" >&5
4069 cat conftest.
$ac_ext >&5
4071 ac_cv_c_opensoundsystem_midi
="no"
4076 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4078 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4080 cat >> confdefs.h
<<\EOF
4081 #define HAVE_OSS_MIDI 1
4086 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4089 if test "x${GCC}" = "xyes"
4091 CFLAGS
="$CFLAGS -Wall"
4092 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
4093 echo "configure:4094: checking "for gcc strength-reduce bug
"" >&5
4094 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 if test "$cross_compiling" = yes; then
4098 ac_cv_c_gcc_strength_bug
="yes"
4100 cat > conftest.
$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4105 static int Array[3];
4108 for(i=0; i<B; i++) Array[i] = i - 3;
4109 exit( Array[1] != -2 );
4112 if { (eval echo configure
:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4114 ac_cv_c_gcc_strength_bug
="no"
4116 echo "configure: failed program was:" >&5
4117 cat conftest.
$ac_ext >&5
4119 ac_cv_c_gcc_strength_bug
="yes"
4126 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4127 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4129 CFLAGS
="$CFLAGS -fno-strength-reduce"
4134 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
4135 echo "configure:4136: checking "whether external symbols need an underscore prefix
"" >&5
4136 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4140 LIBS
="conftest_asm.s $LIBS"
4141 cat > conftest_asm.s
<<EOF
4146 cat > conftest.
$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4151 if (ac_test) return 1
4154 if { (eval echo configure
:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4156 ac_cv_c_extern_prefix
="yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.
$ac_ext >&5
4161 ac_cv_c_extern_prefix
="no"
4167 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4168 if test "$ac_cv_c_extern_prefix" = "yes"
4170 cat >> confdefs.h
<<\EOF
4171 #define NEED_UNDERSCORE_PREFIX 1
4177 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
4178 echo "configure:4179: checking "whether assembler accepts .string
"" >&5
4179 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4183 LIBS
="conftest_asm.s $LIBS"
4184 cat > conftest_asm.s
<<EOF
4187 cat > conftest.
$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4195 if { (eval echo configure
:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4197 ac_cv_c_asm_string
="yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.
$ac_ext >&5
4202 ac_cv_c_asm_string
="no"
4208 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4209 if test "$ac_cv_c_asm_string" = "yes"
4211 cat >> confdefs.h
<<\EOF
4212 #define HAVE_ASM_STRING 1
4221 if test "$LIB_TARGET" = "libwine.so.1.0"
4223 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
4224 echo "configure:4225: checking "whether we can build a Linux dll
"" >&5
4225 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 saved_cflags
=$CFLAGS
4229 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4230 cat > conftest.
$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4238 if { (eval echo configure
:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4240 ac_cv_c_dll_linux
="yes"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.
$ac_ext >&5
4245 ac_cv_c_dll_linux
="no"
4248 CFLAGS
=$saved_cflags
4252 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4253 if test "$ac_cv_c_dll_linux" = "yes"
4257 LDSHARED
="\$(CC) -shared -Wl,-soname,libwine.so,-rpath,\$(libdir)"
4259 echo $ac_n "checking "whether we can build a UnixWare dll
"""... $ac_c" 1>&6
4260 echo "configure:4261: checking "whether we can build a UnixWare dll
"" >&5
4261 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 saved_cflags
=$CFLAGS
4265 CFLAGS
="$CFLAGS -fPIC -Wl,-G,conftest.so.1.0"
4266 cat > conftest.
$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4274 if { (eval echo configure
:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4276 ac_cv_c_dll_unixware
="yes"
4278 echo "configure: failed program was:" >&5
4279 cat conftest.
$ac_ext >&5
4281 ac_cv_c_dll_unixware
="no"
4284 CFLAGS
=$saved_cflags
4288 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4289 if test "$ac_cv_c_dll_unixware" = "yes"
4293 LDSHARED
="\$(CC) -Wl,-G,-h,\$(libdir)/libwine.so"
4295 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
4296 echo "configure:4297: checking "whether we can build a NetBSD dll
"" >&5
4297 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4300 saved_cflags
=$CFLAGS
4301 CFLAGS
="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4302 cat > conftest.
$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4310 if { (eval echo configure
:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4312 ac_cv_c_dll_netbsd
="yes"
4314 echo "configure: failed program was:" >&5
4315 cat conftest.
$ac_ext >&5
4317 ac_cv_c_dll_netbsd
="no"
4320 CFLAGS
=$saved_cflags
4324 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4325 if test "$ac_cv_c_dll_netbsd" = "yes"
4329 LDSHARED
="ld -Bshareable -Bforcearchive"
4333 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4335 LIB_TARGET
="libwine.a"
4343 wine_cv_libc_reentrant
=no
4344 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
4345 echo "configure:4346: checking "for reentrant libc
: __errno_location
"" >&5
4346 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 if test "$cross_compiling" = yes; then
4350 wine_cv_libc_r__errno_location
=yes
4352 cat > conftest.
$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4357 int *__errno_location(){return &myerrno;}
4358 main(){connect(0,buf,255); exit(!myerrno);}
4360 if { (eval echo configure
:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4362 wine_cv_libc_r__errno_location
=yes
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4367 wine_cv_libc_r__errno_location
=no
4375 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4376 if test "$wine_cv_libc_r__errno_location" = "yes"
4378 cat >> confdefs.h
<<\EOF
4379 #define HAVE__ERRNO_LOCATION 1
4382 wine_cv_libc_reentrant
=__errno_location
4384 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
4385 echo "configure:4386: checking "for reentrant libc
: __error
"" >&5
4386 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 if test "$cross_compiling" = yes; then
4390 wine_cv_libc_r__error
=yes
4392 cat > conftest.
$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4397 int *__error(){return &myerrno;}
4398 main(){connect(0,buf,255); exit(!myerrno);}
4400 if { (eval echo configure
:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4402 wine_cv_libc_r__error
=yes
4404 echo "configure: failed program was:" >&5
4405 cat conftest.
$ac_ext >&5
4407 wine_cv_libc_r__error
=no
4415 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4416 if test "$wine_cv_libc_r__error" = "yes"
4418 cat >> confdefs.h
<<\EOF
4419 #define HAVE__ERROR 1
4422 wine_cv_libc_reentrant
=__error
4424 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
4425 echo "configure:4426: checking "for reentrant libc
: ___errno
"" >&5
4426 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4427 echo $ac_n "(cached) $ac_c" 1>&6
4429 if test "$cross_compiling" = yes; then
4430 wine_cv_libc_r___errno
=yes
4432 cat > conftest.
$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4437 int *___errno(){return &myerrno;}
4438 main(){connect(0,buf,255); exit(!myerrno);}
4440 if { (eval echo configure
:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4442 wine_cv_libc_r___errno
=yes
4444 echo "configure: failed program was:" >&5
4445 cat conftest.
$ac_ext >&5
4447 wine_cv_libc_r___errno
=no
4455 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4456 if test "$wine_cv_libc_r___errno" = "yes"
4458 cat >> confdefs.h
<<\EOF
4459 #define HAVE___ERRNO 1
4462 wine_cv_libc_reentrant
=___errno
4464 echo $ac_n "checking "for reentrant libc
: __thr_errno
"""... $ac_c" 1>&6
4465 echo "configure:4466: checking "for reentrant libc
: __thr_errno
"" >&5
4466 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 if test "$cross_compiling" = yes; then
4470 wine_cv_libc_r__thr_errno
=yes
4472 cat > conftest.
$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4477 int *__thr_errno(){return &myerrno;}
4478 main(){connect(0,buf,255); exit(!myerrno);}
4480 if { (eval echo configure
:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4482 wine_cv_libc_r__thr_errno
=yes
4484 echo "configure: failed program was:" >&5
4485 cat conftest.
$ac_ext >&5
4487 wine_cv_libc_r__thr_errno
=no
4495 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4496 if test "$wine_cv_libc_r__thr_errno" = "yes"
4498 cat >> confdefs.h
<<\EOF
4499 #define HAVE__THR_ERRNO 1
4502 wine_cv_libc_reentrant
=__thr_errno
4504 if test "$wine_cv_libc_reentrant" = "no"
4506 cat >> confdefs.h
<<\EOF
4507 #define NO_REENTRANT_LIBC 1
4513 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4515 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
4516 echo "configure:4517: checking "for reentrant X libraries
"" >&5
4517 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 if test "x$with_reentrant_x" = "xno"
4522 wine_cv_x_reentrant
=no
4525 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
4526 if test -r $dir/libX11.so
; then
4527 libX11_check
="-D $dir/libX11.so"
4530 if test -r $dir/libX11.a
; then
4531 libX11_check
="$dir/libX11.a"
4535 if test "$libX11_check" != "none"; then
4536 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
4538 wine_cv_x_reentrant
=yes
4540 wine_cv_x_reentrant
=no
4543 wine_cv_x_reentrant
=unknown
4548 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4550 wine_cv_x_reentrant
=no
4552 if test "$wine_cv_x_reentrant" = "no"
4554 cat >> confdefs.h
<<\EOF
4555 #define NO_REENTRANT_X11 1
4561 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4562 echo "configure:4563: checking whether byte ordering is bigendian" >&5
4563 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 ac_cv_c_bigendian
=unknown
4567 # See if sys/param.h defines the BYTE_ORDER macro.
4568 cat > conftest.
$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 #include <sys/types.h>
4572 #include <sys/param.h>
4575 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4580 if { (eval echo configure
:4581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4582 # It does; now see whether it defined to BIG_ENDIAN or not.
4583 cat > conftest.
$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 #include <sys/types.h>
4587 #include <sys/param.h>
4590 #if BYTE_ORDER != BIG_ENDIAN
4595 if { (eval echo configure
:4596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4597 ac_cv_c_bigendian
=yes
4599 echo "configure: failed program was:" >&5
4600 cat conftest.
$ac_ext >&5
4602 ac_cv_c_bigendian
=no
4606 echo "configure: failed program was:" >&5
4607 cat conftest.
$ac_ext >&5
4610 if test $ac_cv_c_bigendian = unknown
; then
4611 if test "$cross_compiling" = yes; then
4612 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4614 cat > conftest.
$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4618 /* Are we little or big endian? From Harbison&Steele. */
4622 char c[sizeof (long)];
4625 exit (u.c[sizeof (long) - 1] == 1);
4628 if { (eval echo configure
:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4630 ac_cv_c_bigendian
=no
4632 echo "configure: failed program was:" >&5
4633 cat conftest.
$ac_ext >&5
4635 ac_cv_c_bigendian
=yes
4643 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4644 if test $ac_cv_c_bigendian = yes; then
4645 cat >> confdefs.h
<<\EOF
4646 #define WORDS_BIGENDIAN 1
4653 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4654 # for constant arguments. Useless!
4655 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4656 echo "configure:4657: checking for working alloca.h" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.
$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4665 char *p = alloca(2 * sizeof(int));
4668 if { (eval echo configure
:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4670 ac_cv_header_alloca_h
=yes
4672 echo "configure: failed program was:" >&5
4673 cat conftest.
$ac_ext >&5
4675 ac_cv_header_alloca_h
=no
4680 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4681 if test $ac_cv_header_alloca_h = yes; then
4682 cat >> confdefs.h
<<\EOF
4683 #define HAVE_ALLOCA_H 1
4688 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4689 echo "configure:4690: checking for alloca" >&5
4690 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4693 cat > conftest.
$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4698 # define alloca __builtin_alloca
4701 # include <alloca.h>
4706 # ifndef alloca /* predefined by HP cc +Olibcalls */
4714 char *p = (char *) alloca(1);
4717 if { (eval echo configure
:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4719 ac_cv_func_alloca_works
=yes
4721 echo "configure: failed program was:" >&5
4722 cat conftest.
$ac_ext >&5
4724 ac_cv_func_alloca_works
=no
4729 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4730 if test $ac_cv_func_alloca_works = yes; then
4731 cat >> confdefs.h
<<\EOF
4732 #define HAVE_ALLOCA 1
4737 if test $ac_cv_func_alloca_works = no
; then
4738 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4739 # that cause trouble. Some versions do not even contain alloca or
4740 # contain a buggy version. If you still want to use their alloca,
4741 # use ar to extract alloca.o from them instead of compiling alloca.c.
4743 cat >> confdefs.h
<<\EOF
4748 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4749 echo "configure:4750: checking whether alloca needs Cray hooks" >&5
4750 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 cat > conftest.
$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 #if defined(CRAY) && ! defined(CRAY2)
4763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4764 egrep "webecray" >/dev
/null
2>&1; then
4775 echo "$ac_t""$ac_cv_os_cray" 1>&6
4776 if test $ac_cv_os_cray = yes; then
4777 for ac_func
in _getb67 GETB67 getb67
; do
4778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4779 echo "configure:4780: checking for $ac_func" >&5
4780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4783 cat > conftest.
$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4786 /* System header to define __stub macros and hopefully few prototypes,
4787 which can conflict with char $ac_func(); below. */
4789 /* Override any gcc2 internal prototype to avoid an error. */
4790 /* We use char because int might match the return type of a gcc2
4791 builtin and then its argument prototype would still apply. */
4796 /* The GNU C library defines this for functions which it implements
4797 to always fail with ENOSYS. Some functions are actually named
4798 something starting with __ and the normal name is an alias. */
4799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4807 if { (eval echo configure
:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4809 eval "ac_cv_func_$ac_func=yes"
4811 echo "configure: failed program was:" >&5
4812 cat conftest.
$ac_ext >&5
4814 eval "ac_cv_func_$ac_func=no"
4819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4820 echo "$ac_t""yes" 1>&6
4821 cat >> confdefs.h
<<EOF
4822 #define CRAY_STACKSEG_END $ac_func
4827 echo "$ac_t""no" 1>&6
4833 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4834 echo "configure:4835: checking stack direction for C alloca" >&5
4835 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4838 if test "$cross_compiling" = yes; then
4839 ac_cv_c_stack_direction
=0
4841 cat > conftest.
$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 find_stack_direction ()
4846 static char *addr = 0;
4851 return find_stack_direction ();
4854 return (&dummy > addr) ? 1 : -1;
4858 exit (find_stack_direction() < 0);
4861 if { (eval echo configure
:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4863 ac_cv_c_stack_direction
=1
4865 echo "configure: failed program was:" >&5
4866 cat conftest.
$ac_ext >&5
4868 ac_cv_c_stack_direction
=-1
4875 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4876 cat >> confdefs.h
<<EOF
4877 #define STACK_DIRECTION $ac_cv_c_stack_direction
4911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4912 echo "configure:4913: checking for $ac_func" >&5
4913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4916 cat > conftest.
$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4919 /* System header to define __stub macros and hopefully few prototypes,
4920 which can conflict with char $ac_func(); below. */
4922 /* Override any gcc2 internal prototype to avoid an error. */
4923 /* We use char because int might match the return type of a gcc2
4924 builtin and then its argument prototype would still apply. */
4929 /* The GNU C library defines this for functions which it implements
4930 to always fail with ENOSYS. Some functions are actually named
4931 something starting with __ and the normal name is an alias. */
4932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4940 if { (eval echo configure
:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4942 eval "ac_cv_func_$ac_func=yes"
4944 echo "configure: failed program was:" >&5
4945 cat conftest.
$ac_ext >&5
4947 eval "ac_cv_func_$ac_func=no"
4952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4953 echo "$ac_t""yes" 1>&6
4954 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4955 cat >> confdefs.h
<<EOF
4956 #define $ac_tr_func 1
4960 echo "$ac_t""no" 1>&6
5016 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_hdr" >&5
5019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 cat > conftest.
$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5027 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5028 { (eval echo configure
:5029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5029 ac_err
=`grep -v '^ *+' conftest.out`
5030 if test -z "$ac_err"; then
5032 eval "ac_cv_header_$ac_safe=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.
$ac_ext >&5
5038 eval "ac_cv_header_$ac_safe=no"
5042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5044 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5045 cat >> confdefs.h
<<EOF
5046 #define $ac_tr_hdr 1
5050 echo "$ac_t""no" 1>&6
5054 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5055 echo "configure:5056: checking whether stat file-mode macros are broken" >&5
5056 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 cat > conftest.
$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5062 #include <sys/types.h>
5063 #include <sys/stat.h>
5065 #if defined(S_ISBLK) && defined(S_IFDIR)
5066 # if S_ISBLK (S_IFDIR)
5071 #if defined(S_ISBLK) && defined(S_IFCHR)
5072 # if S_ISBLK (S_IFCHR)
5077 #if defined(S_ISLNK) && defined(S_IFREG)
5078 # if S_ISLNK (S_IFREG)
5083 #if defined(S_ISSOCK) && defined(S_IFREG)
5084 # if S_ISSOCK (S_IFREG)
5090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5091 egrep "You lose" >/dev
/null
2>&1; then
5093 ac_cv_header_stat_broken
=yes
5096 ac_cv_header_stat_broken
=no
5102 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5103 if test $ac_cv_header_stat_broken = yes; then
5104 cat >> confdefs.h
<<\EOF
5105 #define STAT_MACROS_BROKEN 1
5112 echo $ac_n "checking for working const""... $ac_c" 1>&6
5113 echo "configure:5114: checking for working const" >&5
5114 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 cat > conftest.
$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5123 /* Ultrix mips cc rejects this. */
5124 typedef int charset[2]; const charset x;
5125 /* SunOS 4.1.1 cc rejects this. */
5126 char const *const *ccp;
5128 /* NEC SVR4.0.2 mips cc rejects this. */
5129 struct point {int x, y;};
5130 static struct point const zero = {0,0};
5131 /* AIX XL C 1.02.0.0 rejects this.
5132 It does not let you subtract one const X* pointer from another in an arm
5133 of an if-expression whose if-part is not a constant expression */
5134 const char *g = "string";
5135 ccp = &g + (g ? g-g : 0);
5136 /* HPUX 7.0 cc rejects these. */
5139 ccp = (char const *const *) p;
5140 { /* SCO 3.2v4 cc rejects this. */
5142 char const *s = 0 ? (char *) 0 : (char const *) 0;
5146 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5148 const int *foo = &x[0];
5151 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5152 typedef const int *iptr;
5156 { /* AIX XL C 1.02.0.0 rejects this saying
5157 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5158 struct s { int j; const int *ap[3]; };
5159 struct s *b; b->j = 5;
5161 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5167 if { (eval echo configure
:5168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5171 echo "configure: failed program was:" >&5
5172 cat conftest.
$ac_ext >&5
5179 echo "$ac_t""$ac_cv_c_const" 1>&6
5180 if test $ac_cv_c_const = no
; then
5181 cat >> confdefs.h
<<\EOF
5187 echo $ac_n "checking for inline""... $ac_c" 1>&6
5188 echo "configure:5189: checking for inline" >&5
5189 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5193 for ac_kw
in inline __inline__ __inline
; do
5194 cat > conftest.
$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5202 if { (eval echo configure
:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5204 ac_cv_c_inline
=$ac_kw; break
5206 echo "configure: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5214 echo "$ac_t""$ac_cv_c_inline" 1>&6
5215 case "$ac_cv_c_inline" in
5217 no
) cat >> confdefs.h
<<\EOF
5221 *) cat >> confdefs.h
<<EOF
5222 #define inline $ac_cv_c_inline
5227 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5228 echo "configure:5229: checking for ANSI C header files" >&5
5229 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.
$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5240 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5241 { (eval echo configure
:5242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5242 ac_err
=`grep -v '^ *+' conftest.out`
5243 if test -z "$ac_err"; then
5245 ac_cv_header_stdc
=yes
5248 echo "configure: failed program was:" >&5
5249 cat conftest.
$ac_ext >&5
5251 ac_cv_header_stdc
=no
5255 if test $ac_cv_header_stdc = yes; then
5256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5257 cat > conftest.
$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 egrep "memchr" >/dev
/null
2>&1; then
5267 ac_cv_header_stdc
=no
5273 if test $ac_cv_header_stdc = yes; then
5274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5275 cat > conftest.
$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 egrep "free" >/dev
/null
2>&1; then
5285 ac_cv_header_stdc
=no
5291 if test $ac_cv_header_stdc = yes; then
5292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293 if test "$cross_compiling" = yes; then
5296 cat > conftest.
$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5300 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5301 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5303 int main () { int i; for (i = 0; i < 256; i++)
5304 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5308 if { (eval echo configure
:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5312 echo "configure: failed program was:" >&5
5313 cat conftest.
$ac_ext >&5
5315 ac_cv_header_stdc
=no
5323 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5324 if test $ac_cv_header_stdc = yes; then
5325 cat >> confdefs.h
<<\EOF
5326 #define STDC_HEADERS 1
5331 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5332 echo "configure:5333: checking for size_t" >&5
5333 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.
$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <sys/types.h>
5345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5348 ac_cv_type_size_t
=yes
5351 ac_cv_type_size_t
=no
5356 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5357 if test $ac_cv_type_size_t = no
; then
5358 cat >> confdefs.h
<<\EOF
5359 #define size_t unsigned
5364 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5365 echo "configure:5366: checking size of long long" >&5
5366 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 if test "$cross_compiling" = yes; then
5370 ac_cv_sizeof_long_long
=0
5372 cat > conftest.
$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5378 FILE *f=fopen("conftestval", "w");
5380 fprintf(f, "%d\n", sizeof(long long));
5384 if { (eval echo configure
:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5386 ac_cv_sizeof_long_long
=`cat conftestval`
5388 echo "configure: failed program was:" >&5
5389 cat conftest.
$ac_ext >&5
5391 ac_cv_sizeof_long_long
=0
5397 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5398 cat >> confdefs.h
<<EOF
5399 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5404 if test "$ac_cv_header_linux_joystick_h" = "yes"
5406 echo $ac_n "checking "whether linux
/joystick.h uses the Linux
2.2+ API
"""... $ac_c" 1>&6
5407 echo "configure:5408: checking "whether linux
/joystick.h uses the Linux
2.2+ API
"" >&5
5408 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5409 echo $ac_n "(cached) $ac_c" 1>&6
5411 cat > conftest.
$ac_ext <<EOF
5412 #line 5413 "configure"
5413 #include "confdefs.h"
5415 #include <sys/ioctl.h>
5416 #include <linux/joystick.h>
5418 struct js_event blub;
5419 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5420 #error "no 2.2 header"
5427 if { (eval echo configure
:5428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5429 wine_cv_linux_joystick_22_api
=yes
5431 echo "configure: failed program was:" >&5
5432 cat conftest.
$ac_ext >&5
5434 wine_cv_linux_joystick_22_api
=no
5440 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5441 if test "$wine_cv_linux_joystick_22_api"
5443 cat >> confdefs.h
<<\EOF
5444 #define HAVE_LINUX_22_JOYSTICK_API 1
5451 if test "$ac_cv_header_sys_vfs_h" = "yes"
5453 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
5454 echo "configure:5455: checking "whether sys
/vfs.h defines statfs
"" >&5
5455 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 cat > conftest.
$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5462 #include <sys/types.h>
5463 #ifdef HAVE_SYS_PARAM_H
5464 # include <sys/param.h>
5466 #include <sys/vfs.h>
5472 memset(&stfs,0,sizeof(stfs));
5476 if { (eval echo configure
:5477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5478 wine_cv_sys_vfs_has_statfs
=yes
5480 echo "configure: failed program was:" >&5
5481 cat conftest.
$ac_ext >&5
5483 wine_cv_sys_vfs_has_statfs
=no
5490 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5491 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5493 cat >> confdefs.h
<<\EOF
5494 #define STATFS_DEFINED_BY_SYS_VFS 1
5500 if test "$ac_cv_header_sys_statfs_h" = "yes"
5502 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
5503 echo "configure:5504: checking "whether sys
/statfs.h defines statfs
"" >&5
5504 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 cat > conftest.
$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5511 #include <sys/types.h>
5512 #ifdef HAVE_SYS_PARAM_H
5513 # include <sys/param.h>
5515 #include <sys/statfs.h>
5523 if { (eval echo configure
:5524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5525 wine_cv_sys_statfs_has_statfs
=yes
5527 echo "configure: failed program was:" >&5
5528 cat conftest.
$ac_ext >&5
5530 wine_cv_sys_statfs_has_statfs
=no
5537 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5538 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5540 cat >> confdefs.h
<<\EOF
5541 #define STATFS_DEFINED_BY_SYS_STATFS 1
5547 if test "$ac_cv_header_sys_mount_h" = "yes"
5549 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
5550 echo "configure:5551: checking "whether sys
/mount.h defines statfs
"" >&5
5551 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 cat > conftest.
$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5558 #include <sys/types.h>
5559 #ifdef HAVE_SYS_PARAM_H
5560 # include <sys/param.h>
5562 #include <sys/mount.h>
5570 if { (eval echo configure
:5571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5572 wine_cv_sys_mount_has_statfs
=yes
5574 echo "configure: failed program was:" >&5
5575 cat conftest.
$ac_ext >&5
5577 wine_cv_sys_mount_has_statfs
=no
5584 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5585 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5587 cat >> confdefs.h
<<\EOF
5588 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5595 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
5596 echo "configure:5597: checking "for statfs.f_bfree
"" >&5
5597 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5600 if test "x$statfs_bfree" = "xno"
5602 wine_cv_statfs_bfree
=no
5604 cat > conftest.
$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5608 #include <sys/types.h>
5609 #ifdef HAVE_SYS_PARAM_H
5610 # include <sys/param.h>
5612 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5613 # include <sys/mount.h>
5615 # ifdef STATFS_DEFINED_BY_SYS_VFS
5616 # include <sys/vfs.h>
5618 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5619 # include <sys/statfs.h>
5632 if { (eval echo configure
:5633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5634 wine_cv_statfs_bfree
=yes
5636 echo "configure: failed program was:" >&5
5637 cat conftest.
$ac_ext >&5
5639 wine_cv_statfs_bfree
=no
5646 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5647 if test "$wine_cv_statfs_bfree" = "yes"
5649 cat >> confdefs.h
<<\EOF
5650 #define STATFS_HAS_BFREE 1
5655 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
5656 echo "configure:5657: checking "for statfs.f_bavail
"" >&5
5657 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5658 echo $ac_n "(cached) $ac_c" 1>&6
5660 if test "x$statfs_bavail" = "xno"
5662 wine_cv_statfs_bavail
=no
5664 cat > conftest.
$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5668 #include <sys/types.h>
5669 #ifdef HAVE_SYS_PARAM_H
5670 # include <sys/param.h>
5672 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5673 # include <sys/mount.h>
5675 # ifdef STATFS_DEFINED_BY_SYS_VFS
5676 # include <sys/vfs.h>
5678 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5679 # include <sys/statfs.h>
5692 if { (eval echo configure
:5693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5694 wine_cv_statfs_bavail
=yes
5696 echo "configure: failed program was:" >&5
5697 cat conftest.
$ac_ext >&5
5699 wine_cv_statfs_bavail
=no
5706 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5707 if test "$wine_cv_statfs_bavail" = "yes"
5709 cat >> confdefs.h
<<\EOF
5710 #define STATFS_HAS_BAVAIL 1
5716 echo $ac_n "checking "for working sigaltstack
"""... $ac_c" 1>&6
5717 echo "configure:5718: checking "for working sigaltstack
"" >&5
5718 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5721 if test "$cross_compiling" = yes; then
5722 ac_cv_c_working_sigaltstack
="no"
5725 cat > conftest.
$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5730 #include <time.h> /* <sys/time.h> ? bad magic without end */
5731 #include <sys/types.h>
5732 #include <sys/signal.h>
5733 #ifdef HAVE_SYS_PARAM_H
5734 # include <sys/param.h>
5736 #ifdef HAVE_SYSCALL_H
5737 # include <syscall.h>
5739 # ifdef HAVE_SYS_SYSCALL_H
5740 # include <sys/syscall.h>
5744 unsigned char *xaltstack;
5747 main(int argc,char **argv) {
5748 struct sigaltstack ss;
5750 xaltstack = malloc(16384);
5751 ss.ss_sp = xaltstack;
5754 if (sigaltstack(&ss, NULL) < 0) {
5755 /* this catches the glibc case */
5756 perror("sigaltstack");
5757 return (1); /* aka exit(1) aka fail */
5759 /* assume it works. */
5764 if { (eval echo configure
:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5766 ac_cv_c_working_sigaltstack
="yes"
5768 echo "configure: failed program was:" >&5
5769 cat conftest.
$ac_ext >&5
5771 ac_cv_c_working_sigaltstack
="no"
5778 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5780 if test "$ac_cv_c_working_sigaltstack" = "yes"
5782 cat >> confdefs.h
<<\EOF
5783 #define HAVE_WORKING_SIGALTSTACK 1
5790 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
5791 echo "configure:5792: checking "for msg_accrights
in struct msghdr
"" >&5
5792 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5795 cat > conftest.
$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5798 #include <sys/types.h>
5799 #include <sys/socket.h>
5801 struct msghdr hdr; hdr.msg_accrights=0
5804 if { (eval echo configure
:5805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5806 ac_cv_c_msg_accrights
="yes"
5808 echo "configure: failed program was:" >&5
5809 cat conftest.
$ac_ext >&5
5811 ac_cv_c_msg_accrights
="no"
5816 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5817 if test "$ac_cv_c_msg_accrights" = "yes"
5819 cat >> confdefs.h
<<\EOF
5820 #define HAVE_MSGHDR_ACCRIGHTS 1
5826 echo $ac_n "checking "whether we need to define __i386__
"""... $ac_c" 1>&6
5827 echo "configure:5828: checking "whether we need to define __i386__
"" >&5
5828 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5831 cat > conftest.
$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5834 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5839 egrep "yes" >/dev
/null
2>&1; then
5841 ac_cv_cpp_def_i386
="yes"
5844 ac_cv_cpp_def_i386
="no"
5850 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5851 if test "$ac_cv_cpp_def_i386" = "yes"
5853 CFLAGS
="$CFLAGS -D__i386__"
5854 LINTFLAGS
="$LINTFLAGS -D__i386__"
5858 if test "$GCC" = "yes"
5860 GCC_NO_BUILTIN
="-fno-builtin"
5865 MAKE_RULES
=Make.rules
5869 cat > confcache
<<\EOF
5870 # This file is a shell script that caches the results of configure
5871 # tests run on this system so they can be shared between configure
5872 # scripts and configure runs. It is not useful on other systems.
5873 # If it contains results you don't want to keep, you may remove or edit it.
5875 # By default, configure uses ./config.cache as the cache file,
5876 # creating it if it does not exist already. You can give configure
5877 # the --cache-file=FILE option to use a different cache file; that is
5878 # what configure does when it calls configure scripts in
5879 # subdirectories, so they share the cache.
5880 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5881 # config.status only pays attention to the cache file if you give it the
5882 # --recheck option to rerun configure.
5885 # The following way of writing the cache mishandles newlines in values,
5886 # but we know of no workaround that is simple, portable, and efficient.
5887 # So, don't put newlines in cache variables' values.
5888 # Ultrix sh set writes to stderr and can't be redirected directly,
5889 # and sets the high bit in the cache file unless we assign to the vars.
5891 case `(ac_space=' '; set) 2>&1` in
5893 # `set' does not quote correctly, so add quotes (double-quote substitution
5894 # turns \\\\ into \\, and sed turns \\ into \).
5896 -e "s/'/'\\\\''/g" \
5897 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5900 # `set' quotes correctly as required by POSIX, so do not add quotes.
5901 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5904 if cmp -s $cache_file confcache
; then
5907 if test -w $cache_file; then
5908 echo "updating cache $cache_file"
5909 cat confcache
> $cache_file
5911 echo "not updating unwritable cache $cache_file"
5916 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5918 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5919 # Let make expand exec_prefix.
5920 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5922 # Any assignment to VPATH causes Sun make to only execute
5923 # the first set of double-colon rules, so remove it if not needed.
5924 # If there is a colon in the path, we need to keep it.
5925 if test "x$srcdir" = x.
; then
5926 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5929 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5931 DEFS
=-DHAVE_CONFIG_H
5933 # Without the "./", some shells look in PATH for config.status.
5934 : ${CONFIG_STATUS=./config.status}
5936 echo creating
$CONFIG_STATUS
5937 rm -f $CONFIG_STATUS
5938 cat > $CONFIG_STATUS <<EOF
5940 # Generated automatically by configure.
5941 # Run this file to recreate the current configuration.
5942 # This directory was configured as follows,
5943 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5945 # $0 $ac_configure_args
5947 # Compiler output produced by configure, useful for debugging
5948 # configure, is in ./config.log if it exists.
5950 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5953 case "\$ac_option" in
5954 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5955 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5956 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5957 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5958 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5960 -help | --help | --hel | --he | --h)
5961 echo "\$ac_cs_usage"; exit 0 ;;
5962 *) echo "\$ac_cs_usage"; exit 1 ;;
5966 ac_given_srcdir=$srcdir
5967 ac_given_INSTALL="$INSTALL"
5969 trap 'rm -fr `echo "
5976 dlls/advapi32/Makefile
5977 dlls/avifil32/Makefile
5978 dlls/comctl32/Makefile
5979 dlls/commdlg/Makefile
5980 dlls/crtdll/Makefile
5981 dlls/dciman32/Makefile
5982 dlls/display/Makefile
5983 dlls/dplayx/Makefile
5984 dlls/dsound/Makefile
5986 dlls/imagehlp/Makefile
5988 dlls/lzexpand/Makefile
5992 dlls/msacm32/Makefile
5993 dlls/msnet32/Makefile
5994 dlls/msvideo/Makefile
5996 dlls/odbc32/Makefile
5998 dlls/oleaut32/Makefile
5999 dlls/olecli/Makefile
6000 dlls/oledlg/Makefile
6001 dlls/olesvr/Makefile
6003 dlls/rasapi32/Makefile
6004 dlls/shell32/Makefile
6006 dlls/stress/Makefile
6007 dlls/tapi32/Makefile
6009 dlls/version/Makefile
6010 dlls/win32s/Makefile
6011 dlls/win87em/Makefile
6012 dlls/winaspi/Makefile
6013 dlls/windebug/Makefile
6016 dlls/winmm/mcianim/Makefile
6017 dlls/winmm/mciavi/Makefile
6018 dlls/winmm/mcicda/Makefile
6019 dlls/winmm/mciseq/Makefile
6020 dlls/winmm/mciwave/Makefile
6021 dlls/winmm/midimap/Makefile
6022 dlls/winmm/wavemap/Makefile
6023 dlls/winmm/wineoss/Makefile
6024 dlls/winspool/Makefile
6025 dlls/wnaspi32/Makefile
6026 documentation/Makefile
6027 documentation/wine.conf.man
6028 documentation/wine.man
6031 graphics/enhmetafiledrv/Makefile
6032 graphics/metafiledrv/Makefile
6033 graphics/psdrv/Makefile
6034 graphics/ttydrv/Makefile
6035 graphics/win16drv/Makefile
6036 graphics/x11drv/Makefile
6051 programs/clock/Makefile
6052 programs/cmdlgtst/Makefile
6053 programs/control/Makefile
6054 programs/avitools/Makefile
6055 programs/osversioncheck/Makefile
6056 programs/notepad/Makefile
6057 programs/progman/Makefile
6058 programs/regtest/Makefile
6059 programs/regapi/Makefile
6060 programs/view/Makefile
6061 programs/wcmd/Makefile
6062 programs/winhelp/Makefile
6063 programs/winver/Makefile
6074 windows/ttydrv/Makefile
6075 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6077 cat >> $CONFIG_STATUS <<EOF
6079 # Protect against being on the right side of a sed subst in config.status.
6080 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6081 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6084 s%@CFLAGS@%$CFLAGS%g
6085 s%@CPPFLAGS@%$CPPFLAGS%g
6086 s%@CXXFLAGS@%$CXXFLAGS%g
6088 s%@LDFLAGS@%$LDFLAGS%g
6090 s%@exec_prefix@%$exec_prefix%g
6091 s%@prefix@%$prefix%g
6092 s%@program_transform_name@%$program_transform_name%g
6093 s%@bindir@%$bindir%g
6094 s%@sbindir@%$sbindir%g
6095 s%@libexecdir@%$libexecdir%g
6096 s%@datadir@%$datadir%g
6097 s%@sysconfdir@%$sysconfdir%g
6098 s%@sharedstatedir@%$sharedstatedir%g
6099 s%@localstatedir@%$localstatedir%g
6100 s%@libdir@%$libdir%g
6101 s%@includedir@%$includedir%g
6102 s%@oldincludedir@%$oldincludedir%g
6103 s%@infodir@%$infodir%g
6104 s%@mandir@%$mandir%g
6105 s%@PROGEXT@%$PROGEXT%g
6106 s%@MAIN_TARGET@%$MAIN_TARGET%g
6107 s%@LIB_TARGET@%$LIB_TARGET%g
6108 s%@ALT_LINK@%$ALT_LINK%g
6109 s%@OPTIONS@%$OPTIONS%g
6110 s%@SET_MAKE@%$SET_MAKE%g
6113 s%@X_CFLAGS@%$X_CFLAGS%g
6114 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6115 s%@X_LIBS@%$X_LIBS%g
6116 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6119 s%@LEXLIB@%$LEXLIB%g
6120 s%@RANLIB@%$RANLIB%g
6121 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6122 s%@INSTALL_DATA@%$INSTALL_DATA%g
6125 s%@LDCONFIG@%$LDCONFIG%g
6127 s%@LINTFLAGS@%$LINTFLAGS%g
6129 s%@BUILDFLAGS@%$BUILDFLAGS%g
6130 s%@DLLFLAGS@%$DLLFLAGS%g
6131 s%@LDSHARED@%$LDSHARED%g
6132 s%@ALLOCA@%$ALLOCA%g
6133 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6134 /@MAKE_RULES@/r $MAKE_RULES
6140 cat >> $CONFIG_STATUS <<\EOF
6142 # Split the substitutions into bite-sized pieces for seds with
6143 # small command number limits, like on Digital OSF/1 and HP-UX.
6144 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6145 ac_file
=1 # Number of current file.
6146 ac_beg
=1 # First line for current file.
6147 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6150 while $ac_more_lines; do
6151 if test $ac_beg -gt 1; then
6152 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6154 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6156 if test ! -s conftest.s
$ac_file; then
6158 rm -f conftest.s
$ac_file
6160 if test -z "$ac_sed_cmds"; then
6161 ac_sed_cmds
="sed -f conftest.s$ac_file"
6163 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6165 ac_file
=`expr $ac_file + 1`
6167 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6170 if test -z "$ac_sed_cmds"; then
6175 cat >> $CONFIG_STATUS <<EOF
6177 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6183 dlls/advapi32/Makefile
6184 dlls/avifil32/Makefile
6185 dlls/comctl32/Makefile
6186 dlls/commdlg/Makefile
6187 dlls/crtdll/Makefile
6188 dlls/dciman32/Makefile
6189 dlls/display/Makefile
6190 dlls/dplayx/Makefile
6191 dlls/dsound/Makefile
6193 dlls/imagehlp/Makefile
6195 dlls/lzexpand/Makefile
6199 dlls/msacm32/Makefile
6200 dlls/msnet32/Makefile
6201 dlls/msvideo/Makefile
6203 dlls/odbc32/Makefile
6205 dlls/oleaut32/Makefile
6206 dlls/olecli/Makefile
6207 dlls/oledlg/Makefile
6208 dlls/olesvr/Makefile
6210 dlls/rasapi32/Makefile
6211 dlls/shell32/Makefile
6213 dlls/stress/Makefile
6214 dlls/tapi32/Makefile
6216 dlls/version/Makefile
6217 dlls/win32s/Makefile
6218 dlls/win87em/Makefile
6219 dlls/winaspi/Makefile
6220 dlls/windebug/Makefile
6223 dlls/winmm/mcianim/Makefile
6224 dlls/winmm/mciavi/Makefile
6225 dlls/winmm/mcicda/Makefile
6226 dlls/winmm/mciseq/Makefile
6227 dlls/winmm/mciwave/Makefile
6228 dlls/winmm/midimap/Makefile
6229 dlls/winmm/wavemap/Makefile
6230 dlls/winmm/wineoss/Makefile
6231 dlls/winspool/Makefile
6232 dlls/wnaspi32/Makefile
6233 documentation/Makefile
6234 documentation/wine.conf.man
6235 documentation/wine.man
6238 graphics/enhmetafiledrv/Makefile
6239 graphics/metafiledrv/Makefile
6240 graphics/psdrv/Makefile
6241 graphics/ttydrv/Makefile
6242 graphics/win16drv/Makefile
6243 graphics/x11drv/Makefile
6258 programs/clock/Makefile
6259 programs/cmdlgtst/Makefile
6260 programs/control/Makefile
6261 programs/avitools/Makefile
6262 programs/osversioncheck/Makefile
6263 programs/notepad/Makefile
6264 programs/progman/Makefile
6265 programs/regtest/Makefile
6266 programs/regapi/Makefile
6267 programs/view/Makefile
6268 programs/wcmd/Makefile
6269 programs/winhelp/Makefile
6270 programs/winver/Makefile
6281 windows/ttydrv/Makefile
6282 windows/x11drv/Makefile "}
6284 cat >> $CONFIG_STATUS <<\EOF
6285 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6286 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6288 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6289 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6290 *) ac_file_in
="${ac_file}.in" ;;
6293 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6295 # Remove last slash and all that follows it. Not all systems have dirname.
6296 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6297 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6298 # The file is in a subdirectory.
6299 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6300 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6301 # A "../" for each directory in $ac_dir_suffix.
6302 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6304 ac_dir_suffix
= ac_dots
=
6307 case "$ac_given_srcdir" in
6309 if test -z "$ac_dots"; then top_srcdir
=.
6310 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6311 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6313 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6314 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6317 case "$ac_given_INSTALL" in
6318 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6319 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6322 echo creating
"$ac_file"
6324 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6326 *Makefile
*) ac_comsub
="1i\\
6327 # $configure_input" ;;
6331 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6333 s%@configure_input@%$configure_input%g
6334 s%@srcdir@%$srcdir%g
6335 s%@top_srcdir@%$top_srcdir%g
6336 s%@INSTALL@%$INSTALL%g
6337 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6341 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6342 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6344 # ac_d sets the value in "#define NAME VALUE" lines.
6345 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6346 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6349 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6350 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6351 ac_uB
='\([ ]\)%\1#\2define\3'
6354 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6355 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6356 ac_eB
='$%\1#\2define\3'
6360 if test "${CONFIG_HEADERS+set}" != set; then
6362 cat >> $CONFIG_STATUS <<EOF
6363 CONFIG_HEADERS="include/config.h"
6365 cat >> $CONFIG_STATUS <<\EOF
6367 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6368 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6370 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6371 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6372 *) ac_file_in
="${ac_file}.in" ;;
6375 echo creating
$ac_file
6377 rm -f conftest.frag conftest.
in conftest.out
6378 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6379 cat $ac_file_inputs > conftest.
in
6383 # Transform confdefs.h into a sed script conftest.vals that substitutes
6384 # the proper values into config.h.in to produce config.h. And first:
6385 # Protect against being on the right side of a sed subst in config.status.
6386 # Protect against being in an unquoted here document in config.status.
6388 cat > conftest.hdr
<<\EOF
6391 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6395 sed -n -f conftest.hdr confdefs.h > conftest.vals
6398 # This sed command replaces #undef with comments. This is necessary, for
6399 # example, in the case of _POSIX_SOURCE, which is predefined and required
6400 # on some systems where configure will not decide to define it.
6401 cat >> conftest.vals <<\EOF
6402 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6405 # Break up conftest.vals because some shells have a limit on
6406 # the size of here documents, and old seds have small limits too.
6411 ac_lines=`grep -c . conftest.vals
`
6412 # grep -c gives empty output for an empty file on some AIX systems.
6413 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6414 # Write a limited-size here document to conftest.frag.
6415 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6416 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6418 sed -f conftest.frag conftest.in > conftest.out
6420 mv conftest.out conftest.in
6422 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6424 mv conftest.tail conftest.vals
6428 cat >> $CONFIG_STATUS <<\EOF
6429 rm -f conftest.frag conftest.h
6430 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6431 cat conftest.in >> conftest.h
6433 if cmp -s $ac_file conftest.h 2>/dev/null; then
6434 echo "$ac_file is unchanged"
6437 # Remove last slash and all that follows it. Not all systems have dirname.
6438 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6439 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6440 # The file is in a subdirectory.
6441 test ! -d "$ac_dir" && mkdir "$ac_dir"
6444 mv conftest.h $ac_file
6449 cat >> $CONFIG_STATUS <<EOF
6452 cat >> $CONFIG_STATUS <<\EOF
6456 chmod +x $CONFIG_STATUS
6457 rm -fr confdefs* $ac_clean_files
6458 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6461 if test "$have_x" = "no"
6464 echo "*** Warning: X development files not found. Wine will be built without"
6465 echo "*** X support, which currently does not work, and would probably not be"
6466 echo "*** what you want anyway. You will need to install devel packages of"
6467 echo "*** Xlib/Xfree86 and Xpm at the very least."
6468 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6471 echo "*** Warning: Xpm development files not found. Wine will be built without"
6472 echo "*** Xpm support, which currently does not work. You will need to install"
6473 echo "*** devel packages of Xpm."
6476 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6479 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6480 echo "*** terminal resize support. Consider upgrading ncurses."
6483 if test "$wine_cv_libc_reentrant" = "no"
6486 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6487 echo "*** thread support. Consider upgrading libc to a more recent"
6488 echo "*** reentrant version of libc."
6491 if test "$wine_cv_mesa_version_OK" = "no"
6494 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6495 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
6499 echo "Configure finished. Do 'make depend && make' to compile Wine."