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.13
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 SHELL
=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
93 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
94 bindir
="$ac_optarg" ;;
96 -build |
--build |
--buil |
--bui |
--bu)
98 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
101 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
102 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
103 ac_prev
=cache_file
;;
104 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
105 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
106 cache_file
="$ac_optarg" ;;
108 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
110 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
112 datadir
="$ac_optarg" ;;
114 -disable-* |
--disable-*)
115 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* |
--enable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
137 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
138 |
--exec |
--exe |
--ex)
139 ac_prev
=exec_prefix
;;
140 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
141 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
142 |
--exec=* |
--exe=* |
--ex=*)
143 exec_prefix
="$ac_optarg" ;;
145 -gas |
--gas |
--ga |
--g)
146 # Obsolete; use --with-gas.
149 -help |
--help |
--hel |
--he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host |
--host |
--hos |
--ho)
206 -host=* |
--host=* |
--hos=* |
--ho=*)
209 -includedir |
--includedir |
--includedi |
--included |
--include \
210 |
--includ |
--inclu |
--incl |
--inc)
211 ac_prev
=includedir
;;
212 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
213 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
214 includedir
="$ac_optarg" ;;
216 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
218 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
219 infodir
="$ac_optarg" ;;
221 -libdir |
--libdir |
--libdi |
--libd)
223 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
224 libdir
="$ac_optarg" ;;
226 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
227 |
--libexe |
--libex |
--libe)
228 ac_prev
=libexecdir
;;
229 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
230 |
--libexe=* |
--libex=* |
--libe=*)
231 libexecdir
="$ac_optarg" ;;
233 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
234 |
--localstate |
--localstat |
--localsta |
--localst \
235 |
--locals |
--local |
--loca |
--loc |
--lo)
236 ac_prev
=localstatedir
;;
237 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
238 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
239 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
240 localstatedir
="$ac_optarg" ;;
242 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
244 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
245 mandir
="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
255 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
256 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
259 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
260 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
261 |
--oldin |
--oldi |
--old |
--ol |
--o)
262 ac_prev
=oldincludedir
;;
263 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
264 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
265 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
266 oldincludedir
="$ac_optarg" ;;
268 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
270 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
271 prefix
="$ac_optarg" ;;
273 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
274 |
--program-pre |
--program-pr |
--program-p)
275 ac_prev
=program_prefix
;;
276 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
277 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
278 program_prefix
="$ac_optarg" ;;
280 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
281 |
--program-suf |
--program-su |
--program-s)
282 ac_prev
=program_suffix
;;
283 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
284 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
285 program_suffix
="$ac_optarg" ;;
287 -program-transform-name |
--program-transform-name \
288 |
--program-transform-nam |
--program-transform-na \
289 |
--program-transform-n |
--program-transform- \
290 |
--program-transform |
--program-transfor \
291 |
--program-transfo |
--program-transf \
292 |
--program-trans |
--program-tran \
293 |
--progr-tra |
--program-tr |
--program-t)
294 ac_prev
=program_transform_name
;;
295 -program-transform-name=* |
--program-transform-name=* \
296 |
--program-transform-nam=* |
--program-transform-na=* \
297 |
--program-transform-n=* |
--program-transform-=* \
298 |
--program-transform=* |
--program-transfor=* \
299 |
--program-transfo=* |
--program-transf=* \
300 |
--program-trans=* |
--program-tran=* \
301 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
302 program_transform_name
="$ac_optarg" ;;
304 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
305 |
-silent |
--silent |
--silen |
--sile |
--sil)
308 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
310 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
312 sbindir
="$ac_optarg" ;;
314 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
315 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
316 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
318 ac_prev
=sharedstatedir
;;
319 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
320 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
321 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
323 sharedstatedir
="$ac_optarg" ;;
325 -site |
--site |
--sit)
327 -site=* |
--site=* |
--sit=*)
330 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
332 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
333 srcdir
="$ac_optarg" ;;
335 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
336 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
337 ac_prev
=sysconfdir
;;
338 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
339 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
340 sysconfdir
="$ac_optarg" ;;
342 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
344 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
345 target
="$ac_optarg" ;;
347 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
350 -version |
--version |
--versio |
--versi |
--vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package
=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* |
--without-*)
368 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package
=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
382 ac_prev
=x_includes
;;
383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
385 x_includes
="$ac_optarg" ;;
387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
389 ac_prev
=x_libraries
;;
390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
392 x_libraries
="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE
; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
443 |
--no-cr |
--no-c) ;;
444 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
445 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
446 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest
* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file
=controls
/edit.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted
=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted
=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE
; then
497 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file
in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp
='$CPP $CPPFLAGS'
520 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling
=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
535 ac_n
= ac_c
='\c' ac_t
=
541 for ac_dir
in tools
$srcdir/tools
; do
542 if test -f $ac_dir/install-sh
; then
544 ac_install_sh
="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh
; then
548 ac_install_sh
="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
555 ac_config_guess
=$ac_aux_dir/config.guess
556 ac_config_sub
=$ac_aux_dir/config.sub
557 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
560 # We want these before the checks, so the checks can modify their values.
562 test -z "$PROGEXT" && PROGEXT
=""
567 ALT_LINK
="-Wl,--whole-archive -L\$(TOPOBJDIR) -lwine -Wl,--no-whole-archive"
568 TRACE_MSGS
=yes # the TRACE() macro
569 DEBUG_MSGS
=yes # the TRACE(), WARN(), and FIXME() macros.
571 # Check whether --enable-emulator or --disable-emulator was given.
572 if test "${enable_emulator+set}" = set; then
573 enableval
="$enable_emulator"
574 if test "$enableval" = "no"; then MAIN_TARGET
="lib"; fi
578 # Check whether --enable-dll or --disable-dll was given.
579 if test "${enable_dll+set}" = set; then
580 enableval
="$enable_dll"
581 if test "$enableval" = "no"; then : ; else LIB_TARGET
="libwine.so.1.0"; fi
585 # Check whether --enable-lib or --disable-lib was given.
586 if test "${enable_lib+set}" = set; then
587 enableval
="$enable_lib"
588 if test "$enableval" = "no"; then ALT_LINK
="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET
=""; fi
592 # Check whether --enable-debug or --disable-debug was given.
593 if test "${enable_debug+set}" = set; then
594 enableval
="$enable_debug"
595 if test "$enableval" = "no"; then DEBUG_MSGS
="no"; fi
599 # Check whether --enable-trace or --disable-trace was given.
600 if test "${enable_trace+set}" = set; then
601 enableval
="$enable_trace"
602 if test "$enableval" = "no"; then TRACE_MSGS
="no"; fi
606 # Check whether --with-reentrant-x or --without-reentrant-x was given.
607 if test "${with_reentrant_x+set}" = set; then
608 withval
="$with_reentrant_x"
618 if test "$DEBUG_MSGS" = "no"
620 cat >> confdefs.h
<<\EOF
621 #define NO_DEBUG_MSGS 1
624 cat >> confdefs.h
<<\EOF
625 #define NO_TRACE_MSGS 1
629 if test "$TRACE_MSGS" = "no"
631 cat >> confdefs.h
<<\EOF
632 #define NO_TRACE_MSGS 1
639 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
640 echo "configure:641: checking whether ${MAKE-make} sets \${MAKE}" >&5
641 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
642 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
645 cat > conftestmake
<<\EOF
647 @
echo 'ac_maketemp="${MAKE}"'
649 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
650 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
651 if test -n "$ac_maketemp"; then
652 eval ac_cv_prog_make_
${ac_make}_set
=yes
654 eval ac_cv_prog_make_
${ac_make}_set
=no
658 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
659 echo "$ac_t""yes" 1>&6
662 echo "$ac_t""no" 1>&6
663 SET_MAKE
="MAKE=${MAKE-make}"
666 # Extract the first word of "gcc", so it can be a program name with args.
667 set dummy gcc
; ac_word
=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$CC"; then
674 ac_cv_prog_CC
="$CC" # Let the user override the test.
676 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
678 for ac_dir
in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir
=.
680 if test -f $ac_dir/$ac_word; then
689 if test -n "$CC"; then
690 echo "$ac_t""$CC" 1>&6
692 echo "$ac_t""no" 1>&6
695 if test -z "$CC"; then
696 # Extract the first word of "cc", so it can be a program name with args.
697 set dummy cc
; ac_word
=$2
698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
699 echo "configure:700: checking for $ac_word" >&5
700 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 if test -n "$CC"; then
704 ac_cv_prog_CC
="$CC" # Let the user override the test.
706 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
709 for ac_dir
in $ac_dummy; do
710 test -z "$ac_dir" && ac_dir
=.
711 if test -f $ac_dir/$ac_word; then
712 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
721 if test $ac_prog_rejected = yes; then
722 # We found a bogon in the path, so make sure we never use it.
723 set dummy
$ac_cv_prog_CC
725 if test $# -gt 0; then
726 # We chose a different compiler from the bogus one.
727 # However, it has the same basename, so the bogon will be chosen
728 # first if we set CC to just the basename; use the full file name.
730 set dummy
"$ac_dir/$ac_word" "$@"
738 if test -n "$CC"; then
739 echo "$ac_t""$CC" 1>&6
741 echo "$ac_t""no" 1>&6
744 if test -z "$CC"; then
747 # Extract the first word of "cl", so it can be a program name with args.
748 set dummy cl
; ac_word
=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 if test -n "$CC"; then
755 ac_cv_prog_CC
="$CC" # Let the user override the test.
757 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
759 for ac_dir
in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir
=.
761 if test -f $ac_dir/$ac_word; then
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
773 echo "$ac_t""no" 1>&6
778 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp
='$CPP $CPPFLAGS'
787 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling
=$ac_cv_prog_cc_cross
791 cat > conftest.
$ac_ext << EOF
793 #line 794 "configure"
794 #include "confdefs.h"
798 if { (eval echo configure
:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
799 ac_cv_prog_cc_works
=yes
800 # If we can't run a trivial program, we are probably using a cross compiler.
801 if (.
/conftest
; exit) 2>/dev
/null
; then
802 ac_cv_prog_cc_cross
=no
804 ac_cv_prog_cc_cross
=yes
807 echo "configure: failed program was:" >&5
808 cat conftest.
$ac_ext >&5
809 ac_cv_prog_cc_works
=no
813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
814 ac_cpp
='$CPP $CPPFLAGS'
815 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
816 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
817 cross_compiling
=$ac_cv_prog_cc_cross
819 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
820 if test $ac_cv_prog_cc_works = no
; then
821 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
823 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
824 echo "configure:825: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
825 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
826 cross_compiling
=$ac_cv_prog_cc_cross
828 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
829 echo "configure:830: checking whether we are using GNU C" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 cat > conftest.c
<<EOF
838 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
845 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
847 if test $ac_cv_prog_gcc = yes; then
853 ac_test_CFLAGS
="${CFLAGS+set}"
854 ac_save_CFLAGS
="$CFLAGS"
856 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
857 echo "configure:858: checking whether ${CC-cc} accepts -g" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 echo 'void f(){}' > conftest.c
862 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
871 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
872 if test "$ac_test_CFLAGS" = set; then
873 CFLAGS
="$ac_save_CFLAGS"
874 elif test $ac_cv_prog_cc_g = yes; then
875 if test "$GCC" = yes; then
881 if test "$GCC" = yes; then
888 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
889 echo "configure:890: checking how to run the C preprocessor" >&5
890 # On Suns, sometimes $CPP names a directory.
891 if test -n "$CPP" && test -d "$CPP"; then
894 if test -z "$CPP"; then
895 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 # This must be in double quotes, not single quotes, because CPP may get
899 # substituted into the Makefile and "${CC-cc}" will confuse make.
901 # On the NeXT, cc -E runs the code through the compiler's parser,
902 # not just through cpp.
903 cat > conftest.
$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
909 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
910 { (eval echo configure
:911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
911 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
912 if test -z "$ac_err"; then
916 echo "configure: failed program was:" >&5
917 cat conftest.
$ac_ext >&5
919 CPP
="${CC-cc} -E -traditional-cpp"
920 cat > conftest.
$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
926 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
927 { (eval echo configure
:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
928 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
929 if test -z "$ac_err"; then
933 echo "configure: failed program was:" >&5
934 cat conftest.
$ac_ext >&5
936 CPP
="${CC-cc} -nologo -E"
937 cat > conftest.
$ac_ext <<EOF
938 #line 939 "configure"
939 #include "confdefs.h"
943 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
944 { (eval echo configure
:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
945 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
946 if test -z "$ac_err"; then
950 echo "configure: failed program was:" >&5
951 cat conftest.
$ac_ext >&5
960 ac_cv_prog_CPP
="$CPP"
962 CPP
="$ac_cv_prog_CPP"
964 ac_cv_prog_CPP
="$CPP"
966 echo "$ac_t""$CPP" 1>&6
968 # If we find X, set shell vars x_includes and x_libraries to the
969 # paths, otherwise set no_x=yes.
970 # Uses ac_ vars as temps to allow command line to override cache and checks.
971 # --without-x overrides everything else, but does not touch the cache.
972 echo $ac_n "checking for X""... $ac_c" 1>&6
973 echo "configure:974: checking for X" >&5
975 # Check whether --with-x or --without-x was given.
976 if test "${with_x+set}" = set; then
981 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
982 if test "x$with_x" = xno
; then
983 # The user explicitly disabled X.
986 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
987 # Both variables are already set.
990 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 # One or both of the vars are not set, and there is no cached value.
994 ac_x_includes
=NO ac_x_libraries
=NO
996 if mkdir conftestdir
; then
998 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
999 cat > Imakefile
<<'EOF'
1001 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1003 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1005 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1006 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1007 for ac_extension
in a so sl
; do
1008 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1009 test -f $ac_im_libdir/libX11.
$ac_extension; then
1010 ac_im_usrlibdir
=$ac_im_libdir; break
1013 # Screen out bogus values from the imake configuration. They are
1014 # bogus both because they are the default anyway, and because
1015 # using them would break gcc on systems where it needs fixed includes.
1016 case "$ac_im_incroot" in
1018 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1020 case "$ac_im_usrlibdir" in
1022 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1029 if test "$ac_x_includes" = NO
; then
1030 # Guess where to find include files, by looking for this one X11 .h file.
1031 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1033 # First, try using that file with no special directory specified.
1034 cat > conftest.
$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1037 #include <$x_direct_test_include>
1039 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1040 { (eval echo configure
:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1041 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1042 if test -z "$ac_err"; then
1044 # We can compile using X headers with no special include directory.
1048 echo "configure: failed program was:" >&5
1049 cat conftest.
$ac_ext >&5
1051 # Look for the header file in a standard set of common directories.
1052 # Check X11 before X11Rn because it is often a symlink to the current release.
1055 /usr
/X11R
6/include \
1056 /usr
/X11R
5/include \
1057 /usr
/X11R
4/include \
1060 /usr
/include
/X11R6 \
1061 /usr
/include
/X11R5 \
1062 /usr
/include
/X11R4 \
1064 /usr
/local
/X11
/include \
1065 /usr
/local
/X11R
6/include \
1066 /usr
/local
/X11R
5/include \
1067 /usr
/local
/X11R
4/include \
1069 /usr
/local
/include
/X11 \
1070 /usr
/local
/include
/X11R6 \
1071 /usr
/local
/include
/X11R5 \
1072 /usr
/local
/include
/X11R4 \
1076 /usr
/XFree86
/include
/X11 \
1079 /usr
/local
/include \
1080 /usr
/unsupported
/include \
1081 /usr
/athena
/include \
1082 /usr
/local
/x11r
5/include \
1083 /usr
/lpp
/Xamples
/include \
1085 /usr
/openwin
/include \
1086 /usr
/openwin
/share
/include \
1089 if test -r "$ac_dir/$x_direct_test_include"; then
1090 ac_x_includes
=$ac_dir
1096 fi # $ac_x_includes = NO
1098 if test "$ac_x_libraries" = NO
; then
1099 # Check for the libraries.
1101 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1102 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1104 # See if we find them without any special options.
1105 # Don't add to $LIBS permanently.
1106 ac_save_LIBS
="$LIBS"
1107 LIBS
="-l$x_direct_test_library $LIBS"
1108 cat > conftest.
$ac_ext <<EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1113 ${x_direct_test_function}()
1116 if { (eval echo configure
:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1118 LIBS
="$ac_save_LIBS"
1119 # We can link X programs with no special library path.
1122 echo "configure: failed program was:" >&5
1123 cat conftest.
$ac_ext >&5
1125 LIBS
="$ac_save_LIBS"
1126 # First see if replacing the include by lib works.
1127 # Check X11 before X11Rn because it is often a symlink to the current release.
1128 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1139 /usr
/local
/X11
/lib \
1140 /usr
/local
/X11R
6/lib \
1141 /usr
/local
/X11R
5/lib \
1142 /usr
/local
/X11R
4/lib \
1144 /usr
/local
/lib
/X11 \
1145 /usr
/local
/lib
/X11R6 \
1146 /usr
/local
/lib
/X11R5 \
1147 /usr
/local
/lib
/X11R4 \
1151 /usr
/XFree86
/lib
/X11 \
1155 /usr
/unsupported
/lib \
1157 /usr
/local
/x11r
5/lib \
1158 /usr
/lpp
/Xamples
/lib \
1162 /usr
/openwin
/share
/lib \
1165 for ac_extension
in a so sl
; do
1166 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1167 ac_x_libraries
=$ac_dir
1174 fi # $ac_x_libraries = NO
1176 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1177 # Didn't find X anywhere. Cache the known absence of X.
1178 ac_cv_have_x
="have_x=no"
1180 # Record where we found X for the cache.
1181 ac_cv_have_x
="have_x=yes \
1182 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1186 eval "$ac_cv_have_x"
1189 if test "$have_x" != yes; then
1190 echo "$ac_t""$have_x" 1>&6
1193 # If each of the values was on the command line, it overrides each guess.
1194 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1195 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1196 # Update the cache value to reflect the command line values.
1197 ac_cv_have_x
="have_x=yes \
1198 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1199 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1202 if test "$no_x" = yes; then
1203 # Not all programs may use this symbol, but it does not hurt to define it.
1204 cat >> confdefs.h
<<\EOF
1205 #define X_DISPLAY_MISSING 1
1208 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1210 if test -n "$x_includes"; then
1211 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1214 # It would also be nice to do this for all -L options, not just this one.
1215 if test -n "$x_libraries"; then
1216 X_LIBS
="$X_LIBS -L$x_libraries"
1217 # For Solaris; some versions of Sun CC require a space after -R and
1218 # others require no space. Words are not sufficient . . . .
1219 case "`(uname -sr) 2>/dev/null`" in
1221 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether -R must be followed by a space" >&5
1223 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1224 cat > conftest.
$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1232 if { (eval echo configure
:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1236 echo "configure: failed program was:" >&5
1237 cat conftest.
$ac_ext >&5
1242 if test $ac_R_nospace = yes; then
1243 echo "$ac_t""no" 1>&6
1244 X_LIBS
="$X_LIBS -R$x_libraries"
1246 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1247 cat > conftest.
$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1255 if { (eval echo configure
:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1259 echo "configure: failed program was:" >&5
1260 cat conftest.
$ac_ext >&5
1265 if test $ac_R_space = yes; then
1266 echo "$ac_t""yes" 1>&6
1267 X_LIBS
="$X_LIBS -R $x_libraries"
1269 echo "$ac_t""neither works" 1>&6
1272 LIBS
="$ac_xsave_LIBS"
1276 # Check for system-dependent libraries X programs must link with.
1277 # Do this before checking for the system-independent R6 libraries
1278 # (-lICE), since we may need -lsocket or whatever for X linking.
1280 if test "$ISC" = yes; then
1281 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1283 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1284 # libraries were built with DECnet support. And karl@cs.umb.edu says
1285 # the Alpha needs dnet_stub (dnet does not exist).
1286 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1287 echo "configure:1288: checking for dnet_ntoa in -ldnet" >&5
1288 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 ac_save_LIBS
="$LIBS"
1294 cat > conftest.
$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1297 /* Override any gcc2 internal prototype to avoid an error. */
1298 /* We use char because int might match the return type of a gcc2
1299 builtin and then its argument prototype would still apply. */
1306 if { (eval echo configure
:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1308 eval "ac_cv_lib_$ac_lib_var=yes"
1310 echo "configure: failed program was:" >&5
1311 cat conftest.
$ac_ext >&5
1313 eval "ac_cv_lib_$ac_lib_var=no"
1316 LIBS
="$ac_save_LIBS"
1319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1320 echo "$ac_t""yes" 1>&6
1321 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1323 echo "$ac_t""no" 1>&6
1326 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1327 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1328 echo "configure:1329: checking for dnet_ntoa in -ldnet_stub" >&5
1329 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 ac_save_LIBS
="$LIBS"
1334 LIBS
="-ldnet_stub $LIBS"
1335 cat > conftest.
$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1338 /* Override any gcc2 internal prototype to avoid an error. */
1339 /* We use char because int might match the return type of a gcc2
1340 builtin and then its argument prototype would still apply. */
1347 if { (eval echo configure
:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1349 eval "ac_cv_lib_$ac_lib_var=yes"
1351 echo "configure: failed program was:" >&5
1352 cat conftest.
$ac_ext >&5
1354 eval "ac_cv_lib_$ac_lib_var=no"
1357 LIBS
="$ac_save_LIBS"
1360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1361 echo "$ac_t""yes" 1>&6
1362 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1364 echo "$ac_t""no" 1>&6
1369 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1370 # to get the SysV transport functions.
1371 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1373 # The nsl library prevents programs from opening the X display
1374 # on Irix 5.2, according to dickey@clark.net.
1375 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1376 echo "configure:1377: checking for gethostbyname" >&5
1377 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1380 cat > conftest.
$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1383 /* System header to define __stub macros and hopefully few prototypes,
1384 which can conflict with char gethostbyname(); below. */
1386 /* Override any gcc2 internal prototype to avoid an error. */
1387 /* We use char because int might match the return type of a gcc2
1388 builtin and then its argument prototype would still apply. */
1389 char gethostbyname();
1393 /* The GNU C library defines this for functions which it implements
1394 to always fail with ENOSYS. Some functions are actually named
1395 something starting with __ and the normal name is an alias. */
1396 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1404 if { (eval echo configure
:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1406 eval "ac_cv_func_gethostbyname=yes"
1408 echo "configure: failed program was:" >&5
1409 cat conftest.
$ac_ext >&5
1411 eval "ac_cv_func_gethostbyname=no"
1416 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1417 echo "$ac_t""yes" 1>&6
1420 echo "$ac_t""no" 1>&6
1423 if test $ac_cv_func_gethostbyname = no
; then
1424 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1425 echo "configure:1426: checking for gethostbyname in -lnsl" >&5
1426 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 ac_save_LIBS
="$LIBS"
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 /* Override any gcc2 internal prototype to avoid an error. */
1436 /* We use char because int might match the return type of a gcc2
1437 builtin and then its argument prototype would still apply. */
1438 char gethostbyname();
1444 if { (eval echo configure
:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1446 eval "ac_cv_lib_$ac_lib_var=yes"
1448 echo "configure: failed program was:" >&5
1449 cat conftest.
$ac_ext >&5
1451 eval "ac_cv_lib_$ac_lib_var=no"
1454 LIBS
="$ac_save_LIBS"
1457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1459 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1461 echo "$ac_t""no" 1>&6
1466 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1467 # socket/setsockopt and other routines are undefined under SCO ODT
1468 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1469 # on later versions), says simon@lia.di.epfl.ch: it contains
1470 # gethostby* variants that don't use the nameserver (or something).
1471 # -lsocket must be given before -lnsl if both are needed.
1472 # We assume that if connect needs -lnsl, so does gethostbyname.
1473 echo $ac_n "checking for connect""... $ac_c" 1>&6
1474 echo "configure:1475: checking for connect" >&5
1475 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1478 cat > conftest.
$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 /* System header to define __stub macros and hopefully few prototypes,
1482 which can conflict with char connect(); below. */
1484 /* Override any gcc2 internal prototype to avoid an error. */
1485 /* We use char because int might match the return type of a gcc2
1486 builtin and then its argument prototype would still apply. */
1491 /* The GNU C library defines this for functions which it implements
1492 to always fail with ENOSYS. Some functions are actually named
1493 something starting with __ and the normal name is an alias. */
1494 #if defined (__stub_connect) || defined (__stub___connect)
1502 if { (eval echo configure
:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1504 eval "ac_cv_func_connect=yes"
1506 echo "configure: failed program was:" >&5
1507 cat conftest.
$ac_ext >&5
1509 eval "ac_cv_func_connect=no"
1514 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1515 echo "$ac_t""yes" 1>&6
1518 echo "$ac_t""no" 1>&6
1521 if test $ac_cv_func_connect = no
; then
1522 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1523 echo "configure:1524: checking for connect in -lsocket" >&5
1524 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 ac_save_LIBS
="$LIBS"
1529 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1530 cat > conftest.
$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 /* Override any gcc2 internal prototype to avoid an error. */
1534 /* We use char because int might match the return type of a gcc2
1535 builtin and then its argument prototype would still apply. */
1542 if { (eval echo configure
:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1544 eval "ac_cv_lib_$ac_lib_var=yes"
1546 echo "configure: failed program was:" >&5
1547 cat conftest.
$ac_ext >&5
1549 eval "ac_cv_lib_$ac_lib_var=no"
1552 LIBS
="$ac_save_LIBS"
1555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1556 echo "$ac_t""yes" 1>&6
1557 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1559 echo "$ac_t""no" 1>&6
1564 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1565 echo $ac_n "checking for remove""... $ac_c" 1>&6
1566 echo "configure:1567: checking for remove" >&5
1567 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.
$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 /* System header to define __stub macros and hopefully few prototypes,
1574 which can conflict with char remove(); below. */
1576 /* Override any gcc2 internal prototype to avoid an error. */
1577 /* We use char because int might match the return type of a gcc2
1578 builtin and then its argument prototype would still apply. */
1583 /* The GNU C library defines this for functions which it implements
1584 to always fail with ENOSYS. Some functions are actually named
1585 something starting with __ and the normal name is an alias. */
1586 #if defined (__stub_remove) || defined (__stub___remove)
1594 if { (eval echo configure
:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1596 eval "ac_cv_func_remove=yes"
1598 echo "configure: failed program was:" >&5
1599 cat conftest.
$ac_ext >&5
1601 eval "ac_cv_func_remove=no"
1606 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1610 echo "$ac_t""no" 1>&6
1613 if test $ac_cv_func_remove = no
; then
1614 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1615 echo "configure:1616: checking for remove in -lposix" >&5
1616 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 ac_save_LIBS
="$LIBS"
1621 LIBS
="-lposix $LIBS"
1622 cat > conftest.
$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* Override any gcc2 internal prototype to avoid an error. */
1626 /* We use char because int might match the return type of a gcc2
1627 builtin and then its argument prototype would still apply. */
1634 if { (eval echo configure
:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1636 eval "ac_cv_lib_$ac_lib_var=yes"
1638 echo "configure: failed program was:" >&5
1639 cat conftest.
$ac_ext >&5
1641 eval "ac_cv_lib_$ac_lib_var=no"
1644 LIBS
="$ac_save_LIBS"
1647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1648 echo "$ac_t""yes" 1>&6
1649 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1651 echo "$ac_t""no" 1>&6
1656 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1657 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1658 echo "configure:1659: checking for shmat" >&5
1659 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 cat > conftest.
$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1665 /* System header to define __stub macros and hopefully few prototypes,
1666 which can conflict with char shmat(); below. */
1668 /* Override any gcc2 internal prototype to avoid an error. */
1669 /* We use char because int might match the return type of a gcc2
1670 builtin and then its argument prototype would still apply. */
1675 /* The GNU C library defines this for functions which it implements
1676 to always fail with ENOSYS. Some functions are actually named
1677 something starting with __ and the normal name is an alias. */
1678 #if defined (__stub_shmat) || defined (__stub___shmat)
1686 if { (eval echo configure
:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1688 eval "ac_cv_func_shmat=yes"
1690 echo "configure: failed program was:" >&5
1691 cat conftest.
$ac_ext >&5
1693 eval "ac_cv_func_shmat=no"
1698 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1699 echo "$ac_t""yes" 1>&6
1702 echo "$ac_t""no" 1>&6
1705 if test $ac_cv_func_shmat = no
; then
1706 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1707 echo "configure:1708: checking for shmat in -lipc" >&5
1708 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 ac_save_LIBS
="$LIBS"
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 /* Override any gcc2 internal prototype to avoid an error. */
1718 /* We use char because int might match the return type of a gcc2
1719 builtin and then its argument prototype would still apply. */
1726 if { (eval echo configure
:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1728 eval "ac_cv_lib_$ac_lib_var=yes"
1730 echo "configure: failed program was:" >&5
1731 cat conftest.
$ac_ext >&5
1733 eval "ac_cv_lib_$ac_lib_var=no"
1736 LIBS
="$ac_save_LIBS"
1739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1740 echo "$ac_t""yes" 1>&6
1741 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1743 echo "$ac_t""no" 1>&6
1749 # Check for libraries that X11R6 Xt/Xaw programs need.
1750 ac_save_LDFLAGS
="$LDFLAGS"
1751 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1752 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1753 # check for ICE first), but we must link in the order -lSM -lICE or
1754 # we get undefined symbols. So assume we have SM if we have ICE.
1755 # These have to be linked with before -lX11, unlike the other
1756 # libraries we check for below, so use a different variable.
1757 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1758 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1759 echo "configure:1760: checking for IceConnectionNumber in -lICE" >&5
1760 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 ac_save_LIBS
="$LIBS"
1765 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1766 cat > conftest.
$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1772 char IceConnectionNumber();
1775 IceConnectionNumber()
1778 if { (eval echo configure
:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.
$ac_ext >&5
1785 eval "ac_cv_lib_$ac_lib_var=no"
1788 LIBS
="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1793 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1795 echo "$ac_t""no" 1>&6
1798 LDFLAGS
="$ac_save_LDFLAGS"
1802 for ac_prog
in 'bison -y' byacc
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy
$ac_prog; ac_word
=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5
1808 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 if test -n "$YACC"; then
1812 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1814 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1816 for ac_dir
in $ac_dummy; do
1817 test -z "$ac_dir" && ac_dir
=.
1818 if test -f $ac_dir/$ac_word; then
1819 ac_cv_prog_YACC
="$ac_prog"
1826 YACC
="$ac_cv_prog_YACC"
1827 if test -n "$YACC"; then
1828 echo "$ac_t""$YACC" 1>&6
1830 echo "$ac_t""no" 1>&6
1833 test -n "$YACC" && break
1835 test -n "$YACC" || YACC
="yacc"
1837 # Extract the first word of "flex", so it can be a program name with args.
1838 set dummy flex
; ac_word
=$2
1839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $ac_word" >&5
1841 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 if test -n "$LEX"; then
1845 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1847 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1849 for ac_dir
in $ac_dummy; do
1850 test -z "$ac_dir" && ac_dir
=.
1851 if test -f $ac_dir/$ac_word; then
1852 ac_cv_prog_LEX
="flex"
1857 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1860 LEX
="$ac_cv_prog_LEX"
1861 if test -n "$LEX"; then
1862 echo "$ac_t""$LEX" 1>&6
1864 echo "$ac_t""no" 1>&6
1867 if test -z "$LEXLIB"
1873 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1874 echo "configure:1875: checking for yywrap in -l$ac_lib" >&5
1875 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 ac_save_LIBS
="$LIBS"
1880 LIBS
="-l$ac_lib $LIBS"
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 /* Override any gcc2 internal prototype to avoid an error. */
1885 /* We use char because int might match the return type of a gcc2
1886 builtin and then its argument prototype would still apply. */
1893 if { (eval echo configure
:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1895 eval "ac_cv_lib_$ac_lib_var=yes"
1897 echo "configure: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1900 eval "ac_cv_lib_$ac_lib_var=no"
1903 LIBS
="$ac_save_LIBS"
1906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1910 echo "$ac_t""no" 1>&6
1915 # Extract the first word of "ranlib", so it can be a program name with args.
1916 set dummy ranlib
; ac_word
=$2
1917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1918 echo "configure:1919: checking for $ac_word" >&5
1919 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 if test -n "$RANLIB"; then
1923 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1925 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1927 for ac_dir
in $ac_dummy; do
1928 test -z "$ac_dir" && ac_dir
=.
1929 if test -f $ac_dir/$ac_word; then
1930 ac_cv_prog_RANLIB
="ranlib"
1935 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1938 RANLIB
="$ac_cv_prog_RANLIB"
1939 if test -n "$RANLIB"; then
1940 echo "$ac_t""$RANLIB" 1>&6
1942 echo "$ac_t""no" 1>&6
1945 # Find a good install program. We prefer a C program (faster),
1946 # so one script is as good as another. But avoid the broken or
1947 # incompatible versions:
1948 # SysV /etc/install, /usr/sbin/install
1949 # SunOS /usr/etc/install
1950 # IRIX /sbin/install
1952 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1953 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1954 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1955 # ./install, which can be erroneously created by make from ./install.sh.
1956 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1957 echo "configure:1958: checking for a BSD compatible install" >&5
1958 if test -z "$INSTALL"; then
1959 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1963 for ac_dir
in $PATH; do
1964 # Account for people who put trailing slashes in PATH elements.
1966 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1968 # OSF1 and SCO ODT 3.0 have their own names for install.
1969 # Don't use installbsd from OSF since it installs stuff as root
1971 for ac_prog
in ginstall scoinst
install; do
1972 if test -f $ac_dir/$ac_prog; then
1973 if test $ac_prog = install &&
1974 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1975 # AIX install. It has an incompatible calling convention.
1978 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1989 if test "${ac_cv_path_install+set}" = set; then
1990 INSTALL
="$ac_cv_path_install"
1992 # As a last resort, use the slow shell script. We don't cache a
1993 # path for INSTALL within a source directory, because that will
1994 # break other packages using the cache if that directory is
1995 # removed, or if the path is relative.
1996 INSTALL
="$ac_install_sh"
1999 echo "$ac_t""$INSTALL" 1>&6
2001 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2002 # It thinks the first close brace ends the variable substitution.
2003 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2005 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2007 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2009 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether ln -s works" >&5
2011 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2015 if ln -s X conftestdata
2>/dev
/null
2018 ac_cv_prog_LN_S
="ln -s"
2023 LN_S
="$ac_cv_prog_LN_S"
2024 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2025 echo "$ac_t""yes" 1>&6
2027 echo "$ac_t""no" 1>&6
2030 # Extract the first word of "c2man", so it can be a program name with args.
2031 set dummy c2man
; ac_word
=$2
2032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2033 echo "configure:2034: checking for $ac_word" >&5
2034 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 if test -n "$C2MAN"; then
2038 ac_cv_prog_C2MAN
="$C2MAN" # Let the user override the test.
2040 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2042 for ac_dir
in $ac_dummy; do
2043 test -z "$ac_dir" && ac_dir
=.
2044 if test -f $ac_dir/$ac_word; then
2045 ac_cv_prog_C2MAN
="c2man"
2050 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN
="true"
2053 C2MAN
="$ac_cv_prog_C2MAN"
2054 if test -n "$C2MAN"; then
2055 echo "$ac_t""$C2MAN" 1>&6
2057 echo "$ac_t""no" 1>&6
2060 # Extract the first word of "ldconfig", so it can be a program name with args.
2061 set dummy ldconfig
; ac_word
=$2
2062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2063 echo "configure:2064: checking for $ac_word" >&5
2064 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2069 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
2072 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a dos path.
2075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2076 ac_dummy
="/sbin:/usr/sbin:$PATH"
2077 for ac_dir
in $ac_dummy; do
2078 test -z "$ac_dir" && ac_dir
=.
2079 if test -f $ac_dir/$ac_word; then
2080 ac_cv_path_LDCONFIG
="$ac_dir/$ac_word"
2085 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
="false"
2089 LDCONFIG
="$ac_cv_path_LDCONFIG"
2090 if test -n "$LDCONFIG"; then
2091 echo "$ac_t""$LDCONFIG" 1>&6
2093 echo "$ac_t""no" 1>&6
2097 for ac_prog
in lclint lint
2099 # Extract the first word of "$ac_prog", so it can be a program name with args.
2100 set dummy
$ac_prog; ac_word
=$2
2101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_word" >&5
2103 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 if test -n "$LINT"; then
2107 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2109 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2111 for ac_dir
in $ac_dummy; do
2112 test -z "$ac_dir" && ac_dir
=.
2113 if test -f $ac_dir/$ac_word; then
2114 ac_cv_prog_LINT
="$ac_prog"
2121 LINT
="$ac_cv_prog_LINT"
2122 if test -n "$LINT"; then
2123 echo "$ac_t""$LINT" 1>&6
2125 echo "$ac_t""no" 1>&6
2128 test -n "$LINT" && break
2131 if test "$LINT" = "lint"
2133 LINTFLAGS
="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2139 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2140 echo "configure:2141: checking for sqrt in -lm" >&5
2141 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 ac_save_LIBS
="$LIBS"
2147 cat > conftest.
$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 /* Override any gcc2 internal prototype to avoid an error. */
2151 /* We use char because int might match the return type of a gcc2
2152 builtin and then its argument prototype would still apply. */
2159 if { (eval echo configure
:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2161 eval "ac_cv_lib_$ac_lib_var=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.
$ac_ext >&5
2166 eval "ac_cv_lib_$ac_lib_var=no"
2169 LIBS
="$ac_save_LIBS"
2172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2176 cat >> confdefs.h
<<EOF
2177 #define $ac_tr_lib 1
2183 echo "$ac_t""no" 1>&6
2186 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2187 echo "configure:2188: checking for i386_set_ldt in -li386" >&5
2188 ac_lib_var
=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 ac_save_LIBS
="$LIBS"
2194 cat > conftest.
$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 /* Override any gcc2 internal prototype to avoid an error. */
2198 /* We use char because int might match the return type of a gcc2
2199 builtin and then its argument prototype would still apply. */
2200 char i386_set_ldt();
2206 if { (eval echo configure
:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2208 eval "ac_cv_lib_$ac_lib_var=yes"
2210 echo "configure: failed program was:" >&5
2211 cat conftest.
$ac_ext >&5
2213 eval "ac_cv_lib_$ac_lib_var=no"
2216 LIBS
="$ac_save_LIBS"
2219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2220 echo "$ac_t""yes" 1>&6
2221 ac_tr_lib
=HAVE_LIB
`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2222 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2223 cat >> confdefs.h
<<EOF
2224 #define $ac_tr_lib 1
2230 echo "$ac_t""no" 1>&6
2233 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2234 echo "configure:2235: checking for _oss_ioctl in -lossaudio" >&5
2235 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 ac_save_LIBS
="$LIBS"
2240 LIBS
="-lossaudio $LIBS"
2241 cat > conftest.
$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2244 /* Override any gcc2 internal prototype to avoid an error. */
2245 /* We use char because int might match the return type of a gcc2
2246 builtin and then its argument prototype would still apply. */
2253 if { (eval echo configure
:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2255 eval "ac_cv_lib_$ac_lib_var=yes"
2257 echo "configure: failed program was:" >&5
2258 cat conftest.
$ac_ext >&5
2260 eval "ac_cv_lib_$ac_lib_var=no"
2263 LIBS
="$ac_save_LIBS"
2266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2267 echo "$ac_t""yes" 1>&6
2268 ac_tr_lib
=HAVE_LIB
`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2269 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2270 cat >> confdefs.h
<<EOF
2271 #define $ac_tr_lib 1
2274 LIBS
="-lossaudio $LIBS"
2277 echo "$ac_t""no" 1>&6
2280 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2281 echo "configure:2282: checking for iswalnum in -lw" >&5
2282 ac_lib_var
=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 ac_save_LIBS
="$LIBS"
2288 cat > conftest.
$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* Override any gcc2 internal prototype to avoid an error. */
2292 /* We use char because int might match the return type of a gcc2
2293 builtin and then its argument prototype would still apply. */
2300 if { (eval echo configure
:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2302 eval "ac_cv_lib_$ac_lib_var=yes"
2304 echo "configure: failed program was:" >&5
2305 cat conftest.
$ac_ext >&5
2307 eval "ac_cv_lib_$ac_lib_var=no"
2310 LIBS
="$ac_save_LIBS"
2313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 ac_tr_lib
=HAVE_LIB
`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2316 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2317 cat >> confdefs.h
<<EOF
2318 #define $ac_tr_lib 1
2324 echo "$ac_t""no" 1>&6
2327 for ac_func
in gethostbyname
2329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_func" >&5
2331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 /* System header to define __stub macros and hopefully few prototypes,
2338 which can conflict with char $ac_func(); below. */
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2347 /* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2358 if { (eval echo configure
:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2360 eval "ac_cv_func_$ac_func=yes"
2362 echo "configure: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2365 eval "ac_cv_func_$ac_func=no"
2370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2373 cat >> confdefs.h
<<EOF
2374 #define $ac_tr_func 1
2378 echo "$ac_t""no" 1>&6
2379 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2380 echo "configure:2381: checking for gethostbyname in -lnsl" >&5
2381 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_save_LIBS
="$LIBS"
2386 LIBS
="-lnsl -lsocket $LIBS"
2387 cat > conftest.
$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2393 char gethostbyname();
2399 if { (eval echo configure
:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.
$ac_ext >&5
2406 eval "ac_cv_lib_$ac_lib_var=no"
2409 LIBS
="$ac_save_LIBS"
2412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2416 echo "$ac_t""no" 1>&6
2417 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2418 echo "configure:2419: checking for gethostbyname in -lsocket" >&5
2419 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 ac_save_LIBS
="$LIBS"
2424 LIBS
="-lsocket -lnsl $LIBS"
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 /* Override any gcc2 internal prototype to avoid an error. */
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2431 char gethostbyname();
2437 if { (eval echo configure
:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2439 eval "ac_cv_lib_$ac_lib_var=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 eval "ac_cv_lib_$ac_lib_var=no"
2447 LIBS
="$ac_save_LIBS"
2450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2454 echo "$ac_t""no" 1>&6
2462 for ac_func
in connect
2464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2465 echo "configure:2466: checking for $ac_func" >&5
2466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2472 /* System header to define __stub macros and hopefully few prototypes,
2473 which can conflict with char $ac_func(); below. */
2475 /* Override any gcc2 internal prototype to avoid an error. */
2476 /* We use char because int might match the return type of a gcc2
2477 builtin and then its argument prototype would still apply. */
2482 /* The GNU C library defines this for functions which it implements
2483 to always fail with ENOSYS. Some functions are actually named
2484 something starting with __ and the normal name is an alias. */
2485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2493 if { (eval echo configure
:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2495 eval "ac_cv_func_$ac_func=yes"
2497 echo "configure: failed program was:" >&5
2498 cat conftest.
$ac_ext >&5
2500 eval "ac_cv_func_$ac_func=no"
2505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2506 echo "$ac_t""yes" 1>&6
2507 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2508 cat >> confdefs.h
<<EOF
2509 #define $ac_tr_func 1
2513 echo "$ac_t""no" 1>&6
2514 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2515 echo "configure:2516: checking for connect in -lsocket" >&5
2516 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 ac_save_LIBS
="$LIBS"
2521 LIBS
="-lsocket $LIBS"
2522 cat > conftest.
$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 /* Override any gcc2 internal prototype to avoid an error. */
2526 /* We use char because int might match the return type of a gcc2
2527 builtin and then its argument prototype would still apply. */
2534 if { (eval echo configure
:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2536 eval "ac_cv_lib_$ac_lib_var=yes"
2538 echo "configure: failed program was:" >&5
2539 cat conftest.
$ac_ext >&5
2541 eval "ac_cv_lib_$ac_lib_var=no"
2544 LIBS
="$ac_save_LIBS"
2547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2548 echo "$ac_t""yes" 1>&6
2549 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2551 cat >> confdefs.h
<<EOF
2552 #define $ac_tr_lib 1
2555 LIBS
="-lsocket $LIBS"
2558 echo "$ac_t""no" 1>&6
2564 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2565 echo "configure:2566: checking for setrunelocale in -lxpg4" >&5
2566 ac_lib_var
=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 ac_save_LIBS
="$LIBS"
2572 cat > conftest.
$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 /* Override any gcc2 internal prototype to avoid an error. */
2576 /* We use char because int might match the return type of a gcc2
2577 builtin and then its argument prototype would still apply. */
2578 char setrunelocale();
2584 if { (eval echo configure
:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2586 eval "ac_cv_lib_$ac_lib_var=yes"
2588 echo "configure: failed program was:" >&5
2589 cat conftest.
$ac_ext >&5
2591 eval "ac_cv_lib_$ac_lib_var=no"
2594 LIBS
="$ac_save_LIBS"
2597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2598 echo "$ac_t""yes" 1>&6
2599 ac_tr_lib
=HAVE_LIB
`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2600 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2601 cat >> confdefs.h
<<EOF
2602 #define $ac_tr_lib 1
2608 echo "$ac_t""no" 1>&6
2611 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2612 echo "configure:2613: checking for mmap in -lmmap" >&5
2613 ac_lib_var
=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 ac_save_LIBS
="$LIBS"
2619 cat > conftest.
$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 /* Override any gcc2 internal prototype to avoid an error. */
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2631 if { (eval echo configure
:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2633 eval "ac_cv_lib_$ac_lib_var=yes"
2635 echo "configure: failed program was:" >&5
2636 cat conftest.
$ac_ext >&5
2638 eval "ac_cv_lib_$ac_lib_var=no"
2641 LIBS
="$ac_save_LIBS"
2644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2646 ac_tr_lib
=HAVE_LIB
`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2648 cat >> confdefs.h
<<EOF
2649 #define $ac_tr_lib 1
2655 echo "$ac_t""no" 1>&6
2658 for ac_func
in openpty
2660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_func" >&5
2662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 cat > conftest.
$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 /* System header to define __stub macros and hopefully few prototypes,
2669 which can conflict with char $ac_func(); below. */
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 /* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2678 /* The GNU C library defines this for functions which it implements
2679 to always fail with ENOSYS. Some functions are actually named
2680 something starting with __ and the normal name is an alias. */
2681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2689 if { (eval echo configure
:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2691 eval "ac_cv_func_$ac_func=yes"
2693 echo "configure: failed program was:" >&5
2694 cat conftest.
$ac_ext >&5
2696 eval "ac_cv_func_$ac_func=no"
2701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2703 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2704 cat >> confdefs.h
<<EOF
2705 #define $ac_tr_func 1
2709 echo "$ac_t""no" 1>&6
2710 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2711 echo "configure:2712: checking for openpty in -lutil" >&5
2712 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 ac_save_LIBS
="$LIBS"
2718 cat > conftest.
$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2721 /* Override any gcc2 internal prototype to avoid an error. */
2722 /* We use char because int might match the return type of a gcc2
2723 builtin and then its argument prototype would still apply. */
2730 if { (eval echo configure
:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2732 eval "ac_cv_lib_$ac_lib_var=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2737 eval "ac_cv_lib_$ac_lib_var=no"
2740 LIBS
="$ac_save_LIBS"
2743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2744 echo "$ac_t""yes" 1>&6
2745 cat >> confdefs.h
<<\EOF
2746 #define HAVE_OPENPTY 1
2752 echo "$ac_t""no" 1>&6
2759 for ac_hdr
in dlfcn.h
2761 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2763 echo "configure:2764: checking for $ac_hdr" >&5
2764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 cat > conftest.
$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2772 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2773 { (eval echo configure
:2774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2774 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2775 if test -z "$ac_err"; then
2777 eval "ac_cv_header_$ac_safe=yes"
2780 echo "configure: failed program was:" >&5
2781 cat conftest.
$ac_ext >&5
2783 eval "ac_cv_header_$ac_safe=no"
2787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2788 echo "$ac_t""yes" 1>&6
2789 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2790 cat >> confdefs.h
<<EOF
2791 #define $ac_tr_hdr 1
2793 for ac_func
in dlopen
2795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2796 echo "configure:2797: checking for $ac_func" >&5
2797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2800 cat > conftest.
$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 /* System header to define __stub macros and hopefully few prototypes,
2804 which can conflict with char $ac_func(); below. */
2806 /* Override any gcc2 internal prototype to avoid an error. */
2807 /* We use char because int might match the return type of a gcc2
2808 builtin and then its argument prototype would still apply. */
2813 /* The GNU C library defines this for functions which it implements
2814 to always fail with ENOSYS. Some functions are actually named
2815 something starting with __ and the normal name is an alias. */
2816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2824 if { (eval echo configure
:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2826 eval "ac_cv_func_$ac_func=yes"
2828 echo "configure: failed program was:" >&5
2829 cat conftest.
$ac_ext >&5
2831 eval "ac_cv_func_$ac_func=no"
2836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2837 echo "$ac_t""yes" 1>&6
2838 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2839 cat >> confdefs.h
<<EOF
2840 #define $ac_tr_func 1
2842 cat >> confdefs.h
<<\EOF
2843 #define HAVE_DL_API 1
2847 echo "$ac_t""no" 1>&6
2848 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2849 echo "configure:2850: checking for dlopen in -ldl" >&5
2850 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 ac_save_LIBS
="$LIBS"
2856 cat > conftest.
$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2859 /* Override any gcc2 internal prototype to avoid an error. */
2860 /* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2868 if { (eval echo configure
:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2870 eval "ac_cv_lib_$ac_lib_var=yes"
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2875 eval "ac_cv_lib_$ac_lib_var=no"
2878 LIBS
="$ac_save_LIBS"
2881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 cat >> confdefs.h
<<\EOF
2884 #define HAVE_DL_API 1
2890 echo "$ac_t""no" 1>&6
2899 echo "$ac_t""no" 1>&6
2904 if test "$have_x" = "yes"
2907 ac_save_CPPFLAGS
="$CPPFLAGS"
2908 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
2910 for ac_hdr
in X11
/xpm.h
2912 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.
$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure
:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2928 eval "ac_cv_header_$ac_safe=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 eval "ac_cv_header_$ac_safe=no"
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h
<<EOF
2942 #define $ac_tr_hdr 1
2946 echo "$ac_t""no" 1>&6
2950 if test "$ac_cv_header_X11_xpm_h" = "yes"
2952 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2953 echo "configure:2954: checking for XpmCreatePixmapFromData in -lXpm" >&5
2954 ac_lib_var
=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 ac_save_LIBS
="$LIBS"
2959 LIBS
="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 /* We use char because int might match the return type of a gcc2
2965 builtin and then its argument prototype would still apply. */
2966 char XpmCreatePixmapFromData();
2969 XpmCreatePixmapFromData()
2972 if { (eval echo configure
:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2974 eval "ac_cv_lib_$ac_lib_var=yes"
2976 echo "configure: failed program was:" >&5
2977 cat conftest.
$ac_ext >&5
2979 eval "ac_cv_lib_$ac_lib_var=no"
2982 LIBS
="$ac_save_LIBS"
2985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2986 echo "$ac_t""yes" 1>&6
2987 cat >> confdefs.h
<<\EOF
2988 #define HAVE_LIBXXPM 1
2990 X_PRE_LIBS
="$X_PRE_LIBS -lXpm"
2992 echo "$ac_t""no" 1>&6
2996 echo "When compiling with X support, you need the Xpm library, or"
2997 echo "WINE will not work. This Xpm library is within the following RPM,"
2998 echo "which you need to install:"
2999 echo "Redhat : xpm, xpm-devel"
3000 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
3003 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3004 echo "the directory /contrib/libraries."
3010 for ac_hdr
in X11
/Xlib.h X11
/extensions
/XShm.h
3012 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3014 echo "configure:3015: checking for $ac_hdr" >&5
3015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 cat > conftest.
$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3023 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3024 { (eval echo configure
:3025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3025 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3026 if test -z "$ac_err"; then
3028 eval "ac_cv_header_$ac_safe=yes"
3031 echo "configure: failed program was:" >&5
3032 cat conftest.
$ac_ext >&5
3034 eval "ac_cv_header_$ac_safe=no"
3038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3039 echo "$ac_t""yes" 1>&6
3040 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3041 cat >> confdefs.h
<<EOF
3042 #define $ac_tr_hdr 1
3046 echo "$ac_t""no" 1>&6
3050 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3052 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3053 echo "configure:3054: checking for XShmQueryExtension in -lXext" >&5
3054 ac_lib_var
=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 ac_save_LIBS
="$LIBS"
3059 LIBS
="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3060 cat > conftest.
$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* Override any gcc2 internal prototype to avoid an error. */
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066 char XShmQueryExtension();
3069 XShmQueryExtension()
3072 if { (eval echo configure
:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3076 echo "configure: failed program was:" >&5
3077 cat conftest.
$ac_ext >&5
3079 eval "ac_cv_lib_$ac_lib_var=no"
3082 LIBS
="$ac_save_LIBS"
3085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 cat >> confdefs.h
<<\EOF
3088 #define HAVE_LIBXXSHM 1
3092 echo "$ac_t""no" 1>&6
3096 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86dga.h
3098 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3100 echo "configure:3101: checking for $ac_hdr" >&5
3101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 cat > conftest.
$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3109 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3110 { (eval echo configure
:3111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3111 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3112 if test -z "$ac_err"; then
3114 eval "ac_cv_header_$ac_safe=yes"
3117 echo "configure: failed program was:" >&5
3118 cat conftest.
$ac_ext >&5
3120 eval "ac_cv_header_$ac_safe=no"
3124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3125 echo "$ac_t""yes" 1>&6
3126 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3127 cat >> confdefs.h
<<EOF
3128 #define $ac_tr_hdr 1
3132 echo "$ac_t""no" 1>&6
3136 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3138 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3139 echo "configure:3140: checking for XDGAQueryExtension in -lXxf86dga" >&5
3140 ac_lib_var
=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 ac_save_LIBS
="$LIBS"
3145 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3146 cat > conftest.
$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 /* Override any gcc2 internal prototype to avoid an error. */
3150 /* We use char because int might match the return type of a gcc2
3151 builtin and then its argument prototype would still apply. */
3152 char XDGAQueryExtension();
3155 XDGAQueryExtension()
3158 if { (eval echo configure
:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3160 eval "ac_cv_lib_$ac_lib_var=yes"
3162 echo "configure: failed program was:" >&5
3163 cat conftest.
$ac_ext >&5
3165 eval "ac_cv_lib_$ac_lib_var=no"
3168 LIBS
="$ac_save_LIBS"
3171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 cat >> confdefs.h
<<\EOF
3174 #define HAVE_LIBXXF86DGA2 1
3176 cat >> confdefs.h
<<\EOF
3177 #define HAVE_LIBXXF86DGA 1
3179 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3181 echo "$ac_t""no" 1>&6
3184 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3186 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3187 echo "configure:3188: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3188 ac_lib_var
=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 ac_save_LIBS
="$LIBS"
3193 LIBS
="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3194 cat > conftest.
$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* Override any gcc2 internal prototype to avoid an error. */
3198 /* We use char because int might match the return type of a gcc2
3199 builtin and then its argument prototype would still apply. */
3200 char XF86DGAQueryExtension();
3203 XF86DGAQueryExtension()
3206 if { (eval echo configure
:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3208 eval "ac_cv_lib_$ac_lib_var=yes"
3210 echo "configure: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3213 eval "ac_cv_lib_$ac_lib_var=no"
3216 LIBS
="$ac_save_LIBS"
3219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3220 echo "$ac_t""yes" 1>&6
3221 cat >> confdefs.h
<<\EOF
3222 #define HAVE_LIBXXF86DGA 1
3224 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86dga"
3226 echo "$ac_t""no" 1>&6
3232 for ac_hdr
in X11
/Xlib.h X11
/extensions
/xf86vmode.h
3234 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_hdr" >&5
3237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3246 { (eval echo configure
:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3248 if test -z "$ac_err"; then
3250 eval "ac_cv_header_$ac_safe=yes"
3253 echo "configure: failed program was:" >&5
3254 cat conftest.
$ac_ext >&5
3256 eval "ac_cv_header_$ac_safe=no"
3260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3263 cat >> confdefs.h
<<EOF
3264 #define $ac_tr_hdr 1
3268 echo "$ac_t""no" 1>&6
3272 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3274 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3275 echo "configure:3276: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3276 ac_lib_var
=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 ac_save_LIBS
="$LIBS"
3281 LIBS
="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3282 cat > conftest.
$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3285 /* Override any gcc2 internal prototype to avoid an error. */
3286 /* We use char because int might match the return type of a gcc2
3287 builtin and then its argument prototype would still apply. */
3288 char XF86VidModeQueryExtension();
3291 XF86VidModeQueryExtension()
3294 if { (eval echo configure
:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3296 eval "ac_cv_lib_$ac_lib_var=yes"
3298 echo "configure: failed program was:" >&5
3299 cat conftest.
$ac_ext >&5
3301 eval "ac_cv_lib_$ac_lib_var=no"
3304 LIBS
="$ac_save_LIBS"
3307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 cat >> confdefs.h
<<\EOF
3310 #define HAVE_LIBXXF86VM 1
3312 X_PRE_LIBS
="$X_PRE_LIBS -lXxf86vm"
3314 echo "$ac_t""no" 1>&6
3319 for ac_hdr
in GL
/gl.h GL
/glx.h GL
/osmesa.h
3321 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3323 echo "configure:3324: checking for $ac_hdr" >&5
3324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 cat > conftest.
$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3332 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3333 { (eval echo configure
:3334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3334 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3335 if test -z "$ac_err"; then
3337 eval "ac_cv_header_$ac_safe=yes"
3340 echo "configure: failed program was:" >&5
3341 cat conftest.
$ac_ext >&5
3343 eval "ac_cv_header_$ac_safe=no"
3347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3350 cat >> confdefs.h
<<EOF
3351 #define $ac_tr_hdr 1
3355 echo "$ac_t""no" 1>&6
3359 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3361 echo $ac_n "checking "for up-to-date Mesa version
"""... $ac_c" 1>&6
3362 echo "configure:3363: checking "for up-to-date Mesa version
"" >&5
3363 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.
$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3371 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3374 if { (eval echo configure
:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3376 wine_cv_mesa_version_OK
="yes"
3378 echo "configure: failed program was:" >&5
3379 cat conftest.
$ac_ext >&5
3381 wine_cv_mesa_version_OK
="no"
3388 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3390 if test "$wine_cv_mesa_version_OK" = "yes"
3392 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3393 echo "configure:3394: checking for glXCreateContext in -lGL" >&5
3394 ac_lib_var
=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 ac_save_LIBS
="$LIBS"
3399 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406 char glXCreateContext();
3412 if { (eval echo configure
:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3416 echo "configure: failed program was:" >&5
3417 cat conftest.
$ac_ext >&5
3419 eval "ac_cv_lib_$ac_lib_var=no"
3422 LIBS
="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 cat >> confdefs.h
<<\EOF
3428 #define HAVE_LIBMESAGL 1
3430 X_PRE_LIBS
="$X_PRE_LIBS -lGL"
3432 echo "$ac_t""no" 1>&6
3435 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3437 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3438 echo "configure:3439: checking for glXCreateContext in -lMesaGL" >&5
3439 ac_lib_var
=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 ac_save_LIBS
="$LIBS"
3444 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3445 cat > conftest.
$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* Override any gcc2 internal prototype to avoid an error. */
3449 /* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3451 char glXCreateContext();
3457 if { (eval echo configure
:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3459 eval "ac_cv_lib_$ac_lib_var=yes"
3461 echo "configure: failed program was:" >&5
3462 cat conftest.
$ac_ext >&5
3464 eval "ac_cv_lib_$ac_lib_var=no"
3467 LIBS
="$ac_save_LIBS"
3470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3471 echo "$ac_t""yes" 1>&6
3472 cat >> confdefs.h
<<\EOF
3473 #define HAVE_LIBMESAGL 1
3475 X_PRE_LIBS
="$X_PRE_LIBS -lMesaGL"
3477 echo "$ac_t""no" 1>&6
3482 echo $ac_n "checking "for the OpenGL Color Index extension
"""... $ac_c" 1>&6
3483 echo "configure:3484: checking "for the OpenGL Color Index extension
"" >&5
3484 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 cat > conftest.
$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3492 GLenum test = GL_COLOR_INDEX8_EXT;
3495 if { (eval echo configure
:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3497 cat >> confdefs.h
<<\EOF
3498 #define HAVE_GL_COLOR_TABLE 1
3502 echo "configure: failed program was:" >&5
3503 cat conftest.
$ac_ext >&5
3509 echo "$ac_t""$dummy" 1>&6
3510 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3512 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3513 echo "configure:3514: checking for glColorTableEXT in -lMesaGL" >&5
3514 ac_lib_var
=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 ac_save_LIBS
="$LIBS"
3519 LIBS
="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3520 cat > conftest.
$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* Override any gcc2 internal prototype to avoid an error. */
3524 /* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
3526 char glColorTableEXT();
3532 if { (eval echo configure
:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3534 eval "ac_cv_lib_$ac_lib_var=yes"
3536 echo "configure: failed program was:" >&5
3537 cat conftest.
$ac_ext >&5
3539 eval "ac_cv_lib_$ac_lib_var=no"
3542 LIBS
="$ac_save_LIBS"
3545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 cat >> confdefs.h
<<\EOF
3548 #define HAVE_GL_PALETTED_TEXTURE 1
3552 echo "$ac_t""no" 1>&6
3556 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3557 echo "configure:3558: checking for glColorTableEXT in -lGL" >&5
3558 ac_lib_var
=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 ac_save_LIBS
="$LIBS"
3563 LIBS
="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3564 cat > conftest.
$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 /* Override any gcc2 internal prototype to avoid an error. */
3568 /* We use char because int might match the return type of a gcc2
3569 builtin and then its argument prototype would still apply. */
3570 char glColorTableEXT();
3576 if { (eval echo configure
:3577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3578 eval "ac_cv_lib_$ac_lib_var=yes"
3580 echo "configure: failed program was:" >&5
3581 cat conftest.
$ac_ext >&5
3583 eval "ac_cv_lib_$ac_lib_var=no"
3586 LIBS
="$ac_save_LIBS"
3589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3590 echo "$ac_t""yes" 1>&6
3591 cat >> confdefs.h
<<\EOF
3592 #define HAVE_GL_PALETTED_TEXTURE 1
3596 echo "$ac_t""no" 1>&6
3603 CPPFLAGS
="$ac_save_CPPFLAGS"
3610 for ac_hdr
in ncurses.h
3612 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_hdr" >&5
3615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.
$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3623 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3624 { (eval echo configure
:3625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3625 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3626 if test -z "$ac_err"; then
3628 eval "ac_cv_header_$ac_safe=yes"
3631 echo "configure: failed program was:" >&5
3632 cat conftest.
$ac_ext >&5
3634 eval "ac_cv_header_$ac_safe=no"
3638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3641 cat >> confdefs.h
<<EOF
3642 #define $ac_tr_hdr 1
3646 echo "$ac_t""no" 1>&6
3650 if test "$ac_cv_header_ncurses_h" = "yes"
3652 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3653 echo "configure:3654: checking for waddch in -lncurses" >&5
3654 ac_lib_var
=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 ac_save_LIBS
="$LIBS"
3659 LIBS
="-lncurses $LIBS"
3660 cat > conftest.
$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3672 if { (eval echo configure
:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3674 eval "ac_cv_lib_$ac_lib_var=yes"
3676 echo "configure: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3679 eval "ac_cv_lib_$ac_lib_var=no"
3682 LIBS
="$ac_save_LIBS"
3685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3687 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3688 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3689 cat >> confdefs.h
<<EOF
3690 #define $ac_tr_lib 1
3693 LIBS
="-lncurses $LIBS"
3696 echo "$ac_t""no" 1>&6
3700 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3702 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3703 echo "configure:3704: checking for resizeterm in -lncurses" >&5
3704 ac_lib_var
=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 ac_save_LIBS
="$LIBS"
3709 LIBS
="-lncurses $LIBS"
3710 cat > conftest.
$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3722 if { (eval echo configure
:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3724 eval "ac_cv_lib_$ac_lib_var=yes"
3726 echo "configure: failed program was:" >&5
3727 cat conftest.
$ac_ext >&5
3729 eval "ac_cv_lib_$ac_lib_var=no"
3732 LIBS
="$ac_save_LIBS"
3735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3736 echo "$ac_t""yes" 1>&6
3737 cat >> confdefs.h
<<\EOF
3738 #define HAVE_RESIZETERM 1
3742 echo "$ac_t""no" 1>&6
3745 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3746 echo "configure:3747: checking for getbkgd in -lncurses" >&5
3747 ac_lib_var
=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3751 ac_save_LIBS
="$LIBS"
3752 LIBS
="-lncurses $LIBS"
3753 cat > conftest.
$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 /* Override any gcc2 internal prototype to avoid an error. */
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3765 if { (eval echo configure
:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3767 eval "ac_cv_lib_$ac_lib_var=yes"
3769 echo "configure: failed program was:" >&5
3770 cat conftest.
$ac_ext >&5
3772 eval "ac_cv_lib_$ac_lib_var=no"
3775 LIBS
="$ac_save_LIBS"
3778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3779 echo "$ac_t""yes" 1>&6
3780 cat >> confdefs.h
<<\EOF
3781 #define HAVE_GETBKGD 1
3785 echo "$ac_t""no" 1>&6
3789 for ac_hdr
in curses.h
3791 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3793 echo "configure:3794: checking for $ac_hdr" >&5
3794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 cat > conftest.
$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3802 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3803 { (eval echo configure
:3804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3804 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3805 if test -z "$ac_err"; then
3807 eval "ac_cv_header_$ac_safe=yes"
3810 echo "configure: failed program was:" >&5
3811 cat conftest.
$ac_ext >&5
3813 eval "ac_cv_header_$ac_safe=no"
3817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3818 echo "$ac_t""yes" 1>&6
3819 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3820 cat >> confdefs.h
<<EOF
3821 #define $ac_tr_hdr 1
3825 echo "$ac_t""no" 1>&6
3829 if test "$ac_cv_header_curses_h" = "yes"
3831 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3832 echo "configure:3833: checking for waddch in -lcurses" >&5
3833 ac_lib_var
=`echo curses'_'waddch | 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
${ac_exeext}; 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 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3867 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3868 cat >> confdefs.h
<<EOF
3869 #define $ac_tr_lib 1
3872 LIBS
="-lcurses $LIBS"
3875 echo "$ac_t""no" 1>&6
3878 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3879 echo "configure:3880: checking for resizeterm in -lcurses" >&5
3880 ac_lib_var
=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 ac_save_LIBS
="$LIBS"
3885 LIBS
="-lcurses $LIBS"
3886 cat > conftest.
$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* Override any gcc2 internal prototype to avoid an error. */
3890 /* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3898 if { (eval echo configure
:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3900 eval "ac_cv_lib_$ac_lib_var=yes"
3902 echo "configure: failed program was:" >&5
3903 cat conftest.
$ac_ext >&5
3905 eval "ac_cv_lib_$ac_lib_var=no"
3908 LIBS
="$ac_save_LIBS"
3911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3913 cat >> confdefs.h
<<\EOF
3914 #define HAVE_RESIZETERM 1
3918 echo "$ac_t""no" 1>&6
3921 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3922 echo "configure:3923: checking for getbkgd in -lcurses" >&5
3923 ac_lib_var
=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3927 ac_save_LIBS
="$LIBS"
3928 LIBS
="-lcurses $LIBS"
3929 cat > conftest.
$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932 /* Override any gcc2 internal prototype to avoid an error. */
3933 /* We use char because int might match the return type of a gcc2
3934 builtin and then its argument prototype would still apply. */
3941 if { (eval echo configure
:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3943 eval "ac_cv_lib_$ac_lib_var=yes"
3945 echo "configure: failed program was:" >&5
3946 cat conftest.
$ac_ext >&5
3948 eval "ac_cv_lib_$ac_lib_var=no"
3951 LIBS
="$ac_save_LIBS"
3954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3955 echo "$ac_t""yes" 1>&6
3956 cat >> confdefs.h
<<\EOF
3957 #define HAVE_GETBKGD 1
3961 echo "$ac_t""no" 1>&6
3967 echo $ac_n "checking "for GNU style IPX support
"""... $ac_c" 1>&6
3968 echo "configure:3969: checking "for GNU style IPX support
"" >&5
3969 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 cat > conftest.
$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 #include <sys/socket.h>
3976 #include <netipx/ipx.h>
3978 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3981 if { (eval echo configure
:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3983 ac_cv_c_ipx_gnu
="yes"
3985 echo "configure: failed program was:" >&5
3986 cat conftest.
$ac_ext >&5
3988 ac_cv_c_ipx_gnu
="no"
3994 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3995 if test "$ac_cv_c_ipx_gnu" = "yes"
3997 cat >> confdefs.h
<<\EOF
3998 #define HAVE_IPX_GNU 1
4003 if test "$ac_cv_c_ipx_gnu" = "no"
4005 echo $ac_n "checking "for linux style IPX support
"""... $ac_c" 1>&6
4006 echo "configure:4007: checking "for linux style IPX support
"" >&5
4007 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 cat > conftest.
$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 #include <sys/socket.h>
4014 #include <asm/types.h>
4015 #include <linux/ipx.h>
4017 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4020 if { (eval echo configure
:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4022 ac_cv_c_ipx_linux
="yes"
4024 echo "configure: failed program was:" >&5
4025 cat conftest.
$ac_ext >&5
4027 ac_cv_c_ipx_linux
="no"
4033 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4034 if test "$ac_cv_c_ipx_linux" = "yes"
4036 cat >> confdefs.h
<<\EOF
4037 #define HAVE_IPX_LINUX 1
4043 for ac_hdr
in sys
/soundcard.h machine
/soundcard.h soundcard.h
4045 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4047 echo "configure:4048: checking for $ac_hdr" >&5
4048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 cat > conftest.
$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4056 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4057 { (eval echo configure
:4058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4058 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4059 if test -z "$ac_err"; then
4061 eval "ac_cv_header_$ac_safe=yes"
4064 echo "configure: failed program was:" >&5
4065 cat conftest.
$ac_ext >&5
4067 eval "ac_cv_header_$ac_safe=no"
4071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4072 echo "$ac_t""yes" 1>&6
4073 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4074 cat >> confdefs.h
<<EOF
4075 #define $ac_tr_hdr 1
4079 echo "$ac_t""no" 1>&6
4084 echo $ac_n "checking "for Open Sound System
"""... $ac_c" 1>&6
4085 echo "configure:4086: checking "for Open Sound System
"" >&5
4086 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4089 cat > conftest.
$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4093 #if defined(HAVE_SYS_SOUNDCARD_H)
4094 #include <sys/soundcard.h>
4095 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4096 #include <machine/soundcard.h>
4097 #elif defined(HAVE_SOUNDCARD_H)
4098 #include <soundcard.h>
4104 /* check for one of the Open Sound System specific SNDCTL_ defines */
4105 #if !defined(SNDCTL_DSP_STEREO)
4106 #error No open sound system
4111 if { (eval echo configure
:4112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4113 ac_cv_c_opensoundsystem
="yes"
4115 echo "configure: failed program was:" >&5
4116 cat conftest.
$ac_ext >&5
4118 ac_cv_c_opensoundsystem
="no"
4123 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4125 if test "$ac_cv_c_opensoundsystem" = "yes"
4127 cat >> confdefs.h
<<\EOF
4133 echo $ac_n "checking "for Open Sound System
/MIDI interface
"""... $ac_c" 1>&6
4134 echo "configure:4135: checking "for Open Sound System
/MIDI interface
"" >&5
4135 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 cat > conftest.
$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4142 #if defined(HAVE_SYS_SOUNDCARD_H)
4143 #include <sys/soundcard.h>
4144 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4145 #include <machine/soundcard.h>
4146 #elif defined(HAVE_SOUNDCARD_H)
4147 #include <soundcard.h>
4153 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4154 #if !defined(SNDCTL_SEQ_SYNC)
4155 #error No open sound system MIDI interface
4160 if { (eval echo configure
:4161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4162 ac_cv_c_opensoundsystem_midi
="yes"
4164 echo "configure: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4167 ac_cv_c_opensoundsystem_midi
="no"
4172 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4174 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4176 cat >> confdefs.h
<<\EOF
4177 #define HAVE_OSS_MIDI 1
4182 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S
=cp ; fi
4185 if test "x${GCC}" = "xyes"
4187 CFLAGS
="$CFLAGS -Wall"
4188 echo $ac_n "checking "for gcc strength-reduce bug
"""... $ac_c" 1>&6
4189 echo "configure:4190: checking "for gcc strength-reduce bug
"" >&5
4190 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4193 if test "$cross_compiling" = yes; then
4194 ac_cv_c_gcc_strength_bug
="yes"
4196 cat > conftest.
$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4201 static int Array[3];
4204 for(i=0; i<B; i++) Array[i] = i - 3;
4205 exit( Array[1] != -2 );
4208 if { (eval echo configure
:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4210 ac_cv_c_gcc_strength_bug
="no"
4212 echo "configure: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4215 ac_cv_c_gcc_strength_bug
="yes"
4222 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4223 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4225 CFLAGS
="$CFLAGS -fno-strength-reduce"
4230 echo $ac_n "checking "whether external symbols need an underscore prefix
"""... $ac_c" 1>&6
4231 echo "configure:4232: checking "whether external symbols need an underscore prefix
"" >&5
4232 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4236 LIBS
="conftest_asm.s $LIBS"
4237 cat > conftest_asm.s
<<EOF
4242 cat > conftest.
$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4247 if (ac_test) return 1
4250 if { (eval echo configure
:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4252 ac_cv_c_extern_prefix
="yes"
4254 echo "configure: failed program was:" >&5
4255 cat conftest.
$ac_ext >&5
4257 ac_cv_c_extern_prefix
="no"
4263 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4264 if test "$ac_cv_c_extern_prefix" = "yes"
4266 cat >> confdefs.h
<<\EOF
4267 #define NEED_UNDERSCORE_PREFIX 1
4273 echo $ac_n "checking "whether assembler accepts .string
"""... $ac_c" 1>&6
4274 echo "configure:4275: checking "whether assembler accepts .string
"" >&5
4275 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4279 LIBS
="conftest_asm.s $LIBS"
4280 cat > conftest_asm.s
<<EOF
4283 cat > conftest.
$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4291 if { (eval echo configure
:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4293 ac_cv_c_asm_string
="yes"
4295 echo "configure: failed program was:" >&5
4296 cat conftest.
$ac_ext >&5
4298 ac_cv_c_asm_string
="no"
4304 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4305 if test "$ac_cv_c_asm_string" = "yes"
4307 cat >> confdefs.h
<<\EOF
4308 #define HAVE_ASM_STRING 1
4317 if test "$LIB_TARGET" = "libwine.so.1.0"
4319 echo $ac_n "checking "whether we can build a Linux dll
"""... $ac_c" 1>&6
4320 echo "configure:4321: checking "whether we can build a Linux dll
"" >&5
4321 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 saved_cflags
=$CFLAGS
4325 CFLAGS
="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4326 cat > conftest.
$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4334 if { (eval echo configure
:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4336 ac_cv_c_dll_linux
="yes"
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 ac_cv_c_dll_linux
="no"
4344 CFLAGS
=$saved_cflags
4348 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4349 if test "$ac_cv_c_dll_linux" = "yes"
4353 LDSHARED
="\$(CC) -shared -Wl,-soname,libwine.so,-rpath,\$(libdir)"
4355 echo $ac_n "checking "whether we can build a UnixWare dll
"""... $ac_c" 1>&6
4356 echo "configure:4357: checking "whether we can build a UnixWare dll
"" >&5
4357 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 saved_cflags
=$CFLAGS
4361 CFLAGS
="$CFLAGS -fPIC -Wl,-G,conftest.so.1.0"
4362 cat > conftest.
$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4370 if { (eval echo configure
:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4372 ac_cv_c_dll_unixware
="yes"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.
$ac_ext >&5
4377 ac_cv_c_dll_unixware
="no"
4380 CFLAGS
=$saved_cflags
4384 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4385 if test "$ac_cv_c_dll_unixware" = "yes"
4389 LDSHARED
="\$(CC) -Wl,-G,-h,\$(libdir)/libwine.so"
4391 echo $ac_n "checking "whether we can build a NetBSD dll
"""... $ac_c" 1>&6
4392 echo "configure:4393: checking "whether we can build a NetBSD dll
"" >&5
4393 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4396 saved_cflags
=$CFLAGS
4397 CFLAGS
="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4398 cat > conftest.
$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4406 if { (eval echo configure
:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4408 ac_cv_c_dll_netbsd
="yes"
4410 echo "configure: failed program was:" >&5
4411 cat conftest.
$ac_ext >&5
4413 ac_cv_c_dll_netbsd
="no"
4416 CFLAGS
=$saved_cflags
4420 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4421 if test "$ac_cv_c_dll_netbsd" = "yes"
4425 LDSHARED
="ld -Bshareable -Bforcearchive"
4429 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4431 LIB_TARGET
="libwine.a"
4439 wine_cv_libc_reentrant
=no
4440 echo $ac_n "checking "for reentrant libc
: __errno_location
"""... $ac_c" 1>&6
4441 echo "configure:4442: checking "for reentrant libc
: __errno_location
"" >&5
4442 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 if test "$cross_compiling" = yes; then
4446 wine_cv_libc_r__errno_location
=yes
4448 cat > conftest.
$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4453 int *__errno_location(){return &myerrno;}
4454 main(){connect(0,buf,255); exit(!myerrno);}
4456 if { (eval echo configure
:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4458 wine_cv_libc_r__errno_location
=yes
4460 echo "configure: failed program was:" >&5
4461 cat conftest.
$ac_ext >&5
4463 wine_cv_libc_r__errno_location
=no
4471 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4472 if test "$wine_cv_libc_r__errno_location" = "yes"
4474 cat >> confdefs.h
<<\EOF
4475 #define HAVE__ERRNO_LOCATION 1
4478 wine_cv_libc_reentrant
=__errno_location
4480 echo $ac_n "checking "for reentrant libc
: __error
"""... $ac_c" 1>&6
4481 echo "configure:4482: checking "for reentrant libc
: __error
"" >&5
4482 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 if test "$cross_compiling" = yes; then
4486 wine_cv_libc_r__error
=yes
4488 cat > conftest.
$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4493 int *__error(){return &myerrno;}
4494 main(){connect(0,buf,255); exit(!myerrno);}
4496 if { (eval echo configure
:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4498 wine_cv_libc_r__error
=yes
4500 echo "configure: failed program was:" >&5
4501 cat conftest.
$ac_ext >&5
4503 wine_cv_libc_r__error
=no
4511 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4512 if test "$wine_cv_libc_r__error" = "yes"
4514 cat >> confdefs.h
<<\EOF
4515 #define HAVE__ERROR 1
4518 wine_cv_libc_reentrant
=__error
4520 echo $ac_n "checking "for reentrant libc
: ___errno
"""... $ac_c" 1>&6
4521 echo "configure:4522: checking "for reentrant libc
: ___errno
"" >&5
4522 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4525 if test "$cross_compiling" = yes; then
4526 wine_cv_libc_r___errno
=yes
4528 cat > conftest.
$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4533 int *___errno(){return &myerrno;}
4534 main(){connect(0,buf,255); exit(!myerrno);}
4536 if { (eval echo configure
:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4538 wine_cv_libc_r___errno
=yes
4540 echo "configure: failed program was:" >&5
4541 cat conftest.
$ac_ext >&5
4543 wine_cv_libc_r___errno
=no
4551 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4552 if test "$wine_cv_libc_r___errno" = "yes"
4554 cat >> confdefs.h
<<\EOF
4555 #define HAVE___ERRNO 1
4558 wine_cv_libc_reentrant
=___errno
4560 echo $ac_n "checking "for reentrant libc
: __thr_errno
"""... $ac_c" 1>&6
4561 echo "configure:4562: checking "for reentrant libc
: __thr_errno
"" >&5
4562 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 if test "$cross_compiling" = yes; then
4566 wine_cv_libc_r__thr_errno
=yes
4568 cat > conftest.
$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4573 int *__thr_errno(){return &myerrno;}
4574 main(){connect(0,buf,255); exit(!myerrno);}
4576 if { (eval echo configure
:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4578 wine_cv_libc_r__thr_errno
=yes
4580 echo "configure: failed program was:" >&5
4581 cat conftest.
$ac_ext >&5
4583 wine_cv_libc_r__thr_errno
=no
4591 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4592 if test "$wine_cv_libc_r__thr_errno" = "yes"
4594 cat >> confdefs.h
<<\EOF
4595 #define HAVE__THR_ERRNO 1
4598 wine_cv_libc_reentrant
=__thr_errno
4600 if test "$wine_cv_libc_reentrant" = "no"
4602 cat >> confdefs.h
<<\EOF
4603 #define NO_REENTRANT_LIBC 1
4609 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4611 echo $ac_n "checking "for reentrant X libraries
"""... $ac_c" 1>&6
4612 echo "configure:4613: checking "for reentrant X libraries
"" >&5
4613 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 if test "x$with_reentrant_x" = "xno"
4618 wine_cv_x_reentrant
=no
4621 for dir
in "$x_libraries" /usr
/lib
/usr
/local
/lib
/lib
; do
4622 if test -r $dir/libX11.so
; then
4623 libX11_check
="-D $dir/libX11.so"
4626 if test -r $dir/libX11.a
; then
4627 libX11_check
="$dir/libX11.a"
4631 if test "$libX11_check" != "none"; then
4632 if nm
$libX11_check |
grep $wine_cv_libc_reentrant >/dev
/null
2>&1
4634 wine_cv_x_reentrant
=yes
4636 wine_cv_x_reentrant
=no
4639 wine_cv_x_reentrant
=unknown
4644 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4646 wine_cv_x_reentrant
=no
4648 if test "$wine_cv_x_reentrant" = "no"
4650 cat >> confdefs.h
<<\EOF
4651 #define NO_REENTRANT_X11 1
4657 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4658 echo "configure:4659: checking whether byte ordering is bigendian" >&5
4659 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 ac_cv_c_bigendian
=unknown
4663 # See if sys/param.h defines the BYTE_ORDER macro.
4664 cat > conftest.
$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 #include <sys/types.h>
4668 #include <sys/param.h>
4671 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4676 if { (eval echo configure
:4677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4678 # It does; now see whether it defined to BIG_ENDIAN or not.
4679 cat > conftest.
$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 #include <sys/types.h>
4683 #include <sys/param.h>
4686 #if BYTE_ORDER != BIG_ENDIAN
4691 if { (eval echo configure
:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4693 ac_cv_c_bigendian
=yes
4695 echo "configure: failed program was:" >&5
4696 cat conftest.
$ac_ext >&5
4698 ac_cv_c_bigendian
=no
4702 echo "configure: failed program was:" >&5
4703 cat conftest.
$ac_ext >&5
4706 if test $ac_cv_c_bigendian = unknown
; then
4707 if test "$cross_compiling" = yes; then
4708 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4710 cat > conftest.
$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4714 /* Are we little or big endian? From Harbison&Steele. */
4718 char c[sizeof (long)];
4721 exit (u.c[sizeof (long) - 1] == 1);
4724 if { (eval echo configure
:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4726 ac_cv_c_bigendian
=no
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 ac_cv_c_bigendian
=yes
4739 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4740 if test $ac_cv_c_bigendian = yes; then
4741 cat >> confdefs.h
<<\EOF
4742 #define WORDS_BIGENDIAN 1
4749 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4750 # for constant arguments. Useless!
4751 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4752 echo "configure:4753: checking for working alloca.h" >&5
4753 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 cat > conftest.
$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4761 void *p = alloca(2 * sizeof(int));
4764 if { (eval echo configure
:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4766 ac_cv_header_alloca_h
=yes
4768 echo "configure: failed program was:" >&5
4769 cat conftest.
$ac_ext >&5
4771 ac_cv_header_alloca_h
=no
4776 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4777 if test $ac_cv_header_alloca_h = yes; then
4778 cat >> confdefs.h
<<\EOF
4779 #define HAVE_ALLOCA_H 1
4784 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4785 echo "configure:4786: checking for alloca" >&5
4786 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.
$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4794 # define alloca __builtin_alloca
4797 # include <malloc.h>
4798 # define alloca _alloca
4801 # include <alloca.h>
4806 # ifndef alloca /* predefined by HP cc +Olibcalls */
4815 char *p = (char *) alloca(1);
4818 if { (eval echo configure
:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4820 ac_cv_func_alloca_works
=yes
4822 echo "configure: failed program was:" >&5
4823 cat conftest.
$ac_ext >&5
4825 ac_cv_func_alloca_works
=no
4830 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4831 if test $ac_cv_func_alloca_works = yes; then
4832 cat >> confdefs.h
<<\EOF
4833 #define HAVE_ALLOCA 1
4838 if test $ac_cv_func_alloca_works = no
; then
4839 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4840 # that cause trouble. Some versions do not even contain alloca or
4841 # contain a buggy version. If you still want to use their alloca,
4842 # use ar to extract alloca.o from them instead of compiling alloca.c.
4843 ALLOCA
=alloca.
${ac_objext}
4844 cat >> confdefs.h
<<\EOF
4849 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4850 echo "configure:4851: checking whether alloca needs Cray hooks" >&5
4851 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 cat > conftest.
$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #if defined(CRAY) && ! defined(CRAY2)
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 egrep "webecray" >/dev
/null
2>&1; then
4876 echo "$ac_t""$ac_cv_os_cray" 1>&6
4877 if test $ac_cv_os_cray = yes; then
4878 for ac_func
in _getb67 GETB67 getb67
; do
4879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4880 echo "configure:4881: checking for $ac_func" >&5
4881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4882 echo $ac_n "(cached) $ac_c" 1>&6
4884 cat > conftest.
$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 /* System header to define __stub macros and hopefully few prototypes,
4888 which can conflict with char $ac_func(); below. */
4890 /* Override any gcc2 internal prototype to avoid an error. */
4891 /* We use char because int might match the return type of a gcc2
4892 builtin and then its argument prototype would still apply. */
4897 /* The GNU C library defines this for functions which it implements
4898 to always fail with ENOSYS. Some functions are actually named
4899 something starting with __ and the normal name is an alias. */
4900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4908 if { (eval echo configure
:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4910 eval "ac_cv_func_$ac_func=yes"
4912 echo "configure: failed program was:" >&5
4913 cat conftest.
$ac_ext >&5
4915 eval "ac_cv_func_$ac_func=no"
4920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4921 echo "$ac_t""yes" 1>&6
4922 cat >> confdefs.h
<<EOF
4923 #define CRAY_STACKSEG_END $ac_func
4928 echo "$ac_t""no" 1>&6
4934 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4935 echo "configure:4936: checking stack direction for C alloca" >&5
4936 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4939 if test "$cross_compiling" = yes; then
4940 ac_cv_c_stack_direction
=0
4942 cat > conftest.
$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 find_stack_direction ()
4947 static char *addr = 0;
4952 return find_stack_direction ();
4955 return (&dummy > addr) ? 1 : -1;
4959 exit (find_stack_direction() < 0);
4962 if { (eval echo configure
:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4964 ac_cv_c_stack_direction
=1
4966 echo "configure: failed program was:" >&5
4967 cat conftest.
$ac_ext >&5
4969 ac_cv_c_stack_direction
=-1
4976 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4977 cat >> confdefs.h
<<EOF
4978 #define STACK_DIRECTION $ac_cv_c_stack_direction
5012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5013 echo "configure:5014: checking for $ac_func" >&5
5014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 cat > conftest.
$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 /* System header to define __stub macros and hopefully few prototypes,
5021 which can conflict with char $ac_func(); below. */
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5030 /* The GNU C library defines this for functions which it implements
5031 to always fail with ENOSYS. Some functions are actually named
5032 something starting with __ and the normal name is an alias. */
5033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5041 if { (eval echo configure
:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5043 eval "ac_cv_func_$ac_func=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.
$ac_ext >&5
5048 eval "ac_cv_func_$ac_func=no"
5053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5054 echo "$ac_t""yes" 1>&6
5055 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5056 cat >> confdefs.h
<<EOF
5057 #define $ac_tr_func 1
5061 echo "$ac_t""no" 1>&6
5117 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5119 echo "configure:5120: checking for $ac_hdr" >&5
5120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 cat > conftest.
$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5128 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5129 { (eval echo configure
:5130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5130 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5131 if test -z "$ac_err"; then
5133 eval "ac_cv_header_$ac_safe=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.
$ac_ext >&5
5139 eval "ac_cv_header_$ac_safe=no"
5143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5144 echo "$ac_t""yes" 1>&6
5145 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5146 cat >> confdefs.h
<<EOF
5147 #define $ac_tr_hdr 1
5151 echo "$ac_t""no" 1>&6
5155 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5156 echo "configure:5157: checking whether stat file-mode macros are broken" >&5
5157 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 cat > conftest.
$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 #include <sys/types.h>
5164 #include <sys/stat.h>
5166 #if defined(S_ISBLK) && defined(S_IFDIR)
5167 # if S_ISBLK (S_IFDIR)
5172 #if defined(S_ISBLK) && defined(S_IFCHR)
5173 # if S_ISBLK (S_IFCHR)
5178 #if defined(S_ISLNK) && defined(S_IFREG)
5179 # if S_ISLNK (S_IFREG)
5184 #if defined(S_ISSOCK) && defined(S_IFREG)
5185 # if S_ISSOCK (S_IFREG)
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192 egrep "You lose" >/dev
/null
2>&1; then
5194 ac_cv_header_stat_broken
=yes
5197 ac_cv_header_stat_broken
=no
5203 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5204 if test $ac_cv_header_stat_broken = yes; then
5205 cat >> confdefs.h
<<\EOF
5206 #define STAT_MACROS_BROKEN 1
5213 echo $ac_n "checking for working const""... $ac_c" 1>&6
5214 echo "configure:5215: checking for working const" >&5
5215 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 cat > conftest.
$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5224 /* Ultrix mips cc rejects this. */
5225 typedef int charset[2]; const charset x = {0,0};
5226 /* SunOS 4.1.1 cc rejects this. */
5227 char const *const *ccp;
5229 /* NEC SVR4.0.2 mips cc rejects this. */
5230 struct point {int x, y;};
5231 static struct point const zero = {0,0};
5232 /* AIX XL C 1.02.0.0 rejects this.
5233 It does not let you subtract one const X* pointer from another in an arm
5234 of an if-expression whose if-part is not a constant expression */
5235 const char *g = "string";
5236 ccp = &g + (g ? g-g : 0);
5237 /* HPUX 7.0 cc rejects these. */
5240 ccp = (char const *const *) p;
5241 { /* SCO 3.2v4 cc rejects this. */
5243 char const *s = 0 ? (char *) 0 : (char const *) 0;
5247 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5249 const int *foo = &x[0];
5252 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5253 typedef const int *iptr;
5257 { /* AIX XL C 1.02.0.0 rejects this saying
5258 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5259 struct s { int j; const int *ap[3]; };
5260 struct s *b; b->j = 5;
5262 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5268 if { (eval echo configure
:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5272 echo "configure: failed program was:" >&5
5273 cat conftest.
$ac_ext >&5
5280 echo "$ac_t""$ac_cv_c_const" 1>&6
5281 if test $ac_cv_c_const = no
; then
5282 cat >> confdefs.h
<<\EOF
5288 echo $ac_n "checking for inline""... $ac_c" 1>&6
5289 echo "configure:5290: checking for inline" >&5
5290 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5294 for ac_kw
in inline __inline__ __inline
; do
5295 cat > conftest.
$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5300 } int $ac_kw foo() {
5303 if { (eval echo configure
:5304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5305 ac_cv_c_inline
=$ac_kw; break
5307 echo "configure: failed program was:" >&5
5308 cat conftest.
$ac_ext >&5
5315 echo "$ac_t""$ac_cv_c_inline" 1>&6
5316 case "$ac_cv_c_inline" in
5318 no
) cat >> confdefs.h
<<\EOF
5322 *) cat >> confdefs.h
<<EOF
5323 #define inline $ac_cv_c_inline
5328 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5329 echo "configure:5330: checking for ANSI C header files" >&5
5330 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5333 cat > conftest.
$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5341 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5342 { (eval echo configure
:5343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5343 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5344 if test -z "$ac_err"; then
5346 ac_cv_header_stdc
=yes
5349 echo "configure: failed program was:" >&5
5350 cat conftest.
$ac_ext >&5
5352 ac_cv_header_stdc
=no
5356 if test $ac_cv_header_stdc = yes; then
5357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5358 cat > conftest.
$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5364 egrep "memchr" >/dev
/null
2>&1; then
5368 ac_cv_header_stdc
=no
5374 if test $ac_cv_header_stdc = yes; then
5375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5376 cat > conftest.
$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 egrep "free" >/dev
/null
2>&1; then
5386 ac_cv_header_stdc
=no
5392 if test $ac_cv_header_stdc = yes; then
5393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5394 if test "$cross_compiling" = yes; then
5397 cat > conftest.
$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5401 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5402 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5404 int main () { int i; for (i = 0; i < 256; i++)
5405 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5409 if { (eval echo configure
:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5413 echo "configure: failed program was:" >&5
5414 cat conftest.
$ac_ext >&5
5416 ac_cv_header_stdc
=no
5424 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5425 if test $ac_cv_header_stdc = yes; then
5426 cat >> confdefs.h
<<\EOF
5427 #define STDC_HEADERS 1
5432 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5433 echo "configure:5434: checking for size_t" >&5
5434 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5437 cat > conftest.
$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 #include <sys/types.h>
5446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5449 ac_cv_type_size_t
=yes
5452 ac_cv_type_size_t
=no
5457 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5458 if test $ac_cv_type_size_t = no
; then
5459 cat >> confdefs.h
<<\EOF
5460 #define size_t unsigned
5465 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5466 echo "configure:5467: checking size of long long" >&5
5467 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5470 if test "$cross_compiling" = yes; then
5471 ac_cv_sizeof_long_long
=0
5473 cat > conftest.
$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5479 FILE *f=fopen("conftestval", "w");
5481 fprintf(f, "%d\n", sizeof(long long));
5485 if { (eval echo configure
:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5487 ac_cv_sizeof_long_long
=`cat conftestval`
5489 echo "configure: failed program was:" >&5
5490 cat conftest.
$ac_ext >&5
5492 ac_cv_sizeof_long_long
=0
5498 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5499 cat >> confdefs.h
<<EOF
5500 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5505 if test "$ac_cv_header_linux_joystick_h" = "yes"
5507 echo $ac_n "checking "whether linux
/joystick.h uses the Linux
2.2+ API
"""... $ac_c" 1>&6
5508 echo "configure:5509: checking "whether linux
/joystick.h uses the Linux
2.2+ API
"" >&5
5509 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5512 cat > conftest.
$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5516 #include <sys/ioctl.h>
5517 #include <linux/joystick.h>
5519 struct js_event blub;
5520 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5521 #error "no 2.2 header"
5528 if { (eval echo configure
:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5530 wine_cv_linux_joystick_22_api
=yes
5532 echo "configure: failed program was:" >&5
5533 cat conftest.
$ac_ext >&5
5535 wine_cv_linux_joystick_22_api
=no
5541 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5542 if test "$wine_cv_linux_joystick_22_api"
5544 cat >> confdefs.h
<<\EOF
5545 #define HAVE_LINUX_22_JOYSTICK_API 1
5552 if test "$ac_cv_header_sys_vfs_h" = "yes"
5554 echo $ac_n "checking "whether sys
/vfs.h defines statfs
"""... $ac_c" 1>&6
5555 echo "configure:5556: checking "whether sys
/vfs.h defines statfs
"" >&5
5556 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5559 cat > conftest.
$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5563 #include <sys/types.h>
5564 #ifdef HAVE_SYS_PARAM_H
5565 # include <sys/param.h>
5567 #include <sys/vfs.h>
5573 memset(&stfs,0,sizeof(stfs));
5577 if { (eval echo configure
:5578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5579 wine_cv_sys_vfs_has_statfs
=yes
5581 echo "configure: failed program was:" >&5
5582 cat conftest.
$ac_ext >&5
5584 wine_cv_sys_vfs_has_statfs
=no
5591 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5592 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5594 cat >> confdefs.h
<<\EOF
5595 #define STATFS_DEFINED_BY_SYS_VFS 1
5601 if test "$ac_cv_header_sys_statfs_h" = "yes"
5603 echo $ac_n "checking "whether sys
/statfs.h defines statfs
"""... $ac_c" 1>&6
5604 echo "configure:5605: checking "whether sys
/statfs.h defines statfs
"" >&5
5605 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.
$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5612 #include <sys/types.h>
5613 #ifdef HAVE_SYS_PARAM_H
5614 # include <sys/param.h>
5616 #include <sys/statfs.h>
5624 if { (eval echo configure
:5625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5626 wine_cv_sys_statfs_has_statfs
=yes
5628 echo "configure: failed program was:" >&5
5629 cat conftest.
$ac_ext >&5
5631 wine_cv_sys_statfs_has_statfs
=no
5638 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5639 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5641 cat >> confdefs.h
<<\EOF
5642 #define STATFS_DEFINED_BY_SYS_STATFS 1
5648 if test "$ac_cv_header_sys_mount_h" = "yes"
5650 echo $ac_n "checking "whether sys
/mount.h defines statfs
"""... $ac_c" 1>&6
5651 echo "configure:5652: checking "whether sys
/mount.h defines statfs
"" >&5
5652 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5655 cat > conftest.
$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5659 #include <sys/types.h>
5660 #ifdef HAVE_SYS_PARAM_H
5661 # include <sys/param.h>
5663 #include <sys/mount.h>
5671 if { (eval echo configure
:5672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5673 wine_cv_sys_mount_has_statfs
=yes
5675 echo "configure: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5678 wine_cv_sys_mount_has_statfs
=no
5685 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5686 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5688 cat >> confdefs.h
<<\EOF
5689 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5696 echo $ac_n "checking "for statfs.f_bfree
"""... $ac_c" 1>&6
5697 echo "configure:5698: checking "for statfs.f_bfree
"" >&5
5698 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5699 echo $ac_n "(cached) $ac_c" 1>&6
5701 if test "x$statfs_bfree" = "xno"
5703 wine_cv_statfs_bfree
=no
5705 cat > conftest.
$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5709 #include <sys/types.h>
5710 #ifdef HAVE_SYS_PARAM_H
5711 # include <sys/param.h>
5713 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5714 # include <sys/mount.h>
5716 # ifdef STATFS_DEFINED_BY_SYS_VFS
5717 # include <sys/vfs.h>
5719 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5720 # include <sys/statfs.h>
5733 if { (eval echo configure
:5734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5735 wine_cv_statfs_bfree
=yes
5737 echo "configure: failed program was:" >&5
5738 cat conftest.
$ac_ext >&5
5740 wine_cv_statfs_bfree
=no
5747 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5748 if test "$wine_cv_statfs_bfree" = "yes"
5750 cat >> confdefs.h
<<\EOF
5751 #define STATFS_HAS_BFREE 1
5756 echo $ac_n "checking "for statfs.f_bavail
"""... $ac_c" 1>&6
5757 echo "configure:5758: checking "for statfs.f_bavail
"" >&5
5758 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 if test "x$statfs_bavail" = "xno"
5763 wine_cv_statfs_bavail
=no
5765 cat > conftest.
$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5769 #include <sys/types.h>
5770 #ifdef HAVE_SYS_PARAM_H
5771 # include <sys/param.h>
5773 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5774 # include <sys/mount.h>
5776 # ifdef STATFS_DEFINED_BY_SYS_VFS
5777 # include <sys/vfs.h>
5779 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5780 # include <sys/statfs.h>
5793 if { (eval echo configure
:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5795 wine_cv_statfs_bavail
=yes
5797 echo "configure: failed program was:" >&5
5798 cat conftest.
$ac_ext >&5
5800 wine_cv_statfs_bavail
=no
5807 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5808 if test "$wine_cv_statfs_bavail" = "yes"
5810 cat >> confdefs.h
<<\EOF
5811 #define STATFS_HAS_BAVAIL 1
5817 echo $ac_n "checking "for working sigaltstack
"""... $ac_c" 1>&6
5818 echo "configure:5819: checking "for working sigaltstack
"" >&5
5819 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5822 if test "$cross_compiling" = yes; then
5823 ac_cv_c_working_sigaltstack
="no"
5826 cat > conftest.
$ac_ext <<EOF
5827 #line 5828 "configure"
5828 #include "confdefs.h"
5831 #include <time.h> /* <sys/time.h> ? bad magic without end */
5832 #include <sys/types.h>
5833 #include <sys/signal.h>
5834 #ifdef HAVE_SYS_PARAM_H
5835 # include <sys/param.h>
5837 #ifdef HAVE_SYSCALL_H
5838 # include <syscall.h>
5840 # ifdef HAVE_SYS_SYSCALL_H
5841 # include <sys/syscall.h>
5845 unsigned char *xaltstack;
5848 main(int argc,char **argv) {
5849 struct sigaltstack ss;
5851 xaltstack = malloc(16384);
5852 ss.ss_sp = xaltstack;
5855 if (sigaltstack(&ss, NULL) < 0) {
5856 /* this catches the glibc case */
5857 perror("sigaltstack");
5858 return (1); /* aka exit(1) aka fail */
5860 /* assume it works. */
5865 if { (eval echo configure
:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5867 ac_cv_c_working_sigaltstack
="yes"
5869 echo "configure: failed program was:" >&5
5870 cat conftest.
$ac_ext >&5
5872 ac_cv_c_working_sigaltstack
="no"
5879 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5881 if test "$ac_cv_c_working_sigaltstack" = "yes"
5883 cat >> confdefs.h
<<\EOF
5884 #define HAVE_WORKING_SIGALTSTACK 1
5891 echo $ac_n "checking "for msg_accrights
in struct msghdr
"""... $ac_c" 1>&6
5892 echo "configure:5893: checking "for msg_accrights
in struct msghdr
"" >&5
5893 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 cat > conftest.
$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 #include <sys/types.h>
5900 #include <sys/socket.h>
5902 struct msghdr hdr; hdr.msg_accrights=0
5905 if { (eval echo configure
:5906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5907 ac_cv_c_msg_accrights
="yes"
5909 echo "configure: failed program was:" >&5
5910 cat conftest.
$ac_ext >&5
5912 ac_cv_c_msg_accrights
="no"
5917 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5918 if test "$ac_cv_c_msg_accrights" = "yes"
5920 cat >> confdefs.h
<<\EOF
5921 #define HAVE_MSGHDR_ACCRIGHTS 1
5927 echo $ac_n "checking "whether we need to define __i386__
"""... $ac_c" 1>&6
5928 echo "configure:5929: checking "whether we need to define __i386__
"" >&5
5929 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5932 cat > conftest.
$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5940 egrep "yes" >/dev
/null
2>&1; then
5942 ac_cv_cpp_def_i386
="yes"
5945 ac_cv_cpp_def_i386
="no"
5951 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5952 if test "$ac_cv_cpp_def_i386" = "yes"
5954 CFLAGS
="$CFLAGS -D__i386__"
5955 LINTFLAGS
="$LINTFLAGS -D__i386__"
5959 if test "$GCC" = "yes"
5961 GCC_NO_BUILTIN
="-fno-builtin"
5966 MAKE_RULES
=Make.rules
5970 cat > confcache
<<\EOF
5971 # This file is a shell script that caches the results of configure
5972 # tests run on this system so they can be shared between configure
5973 # scripts and configure runs. It is not useful on other systems.
5974 # If it contains results you don't want to keep, you may remove or edit it.
5976 # By default, configure uses ./config.cache as the cache file,
5977 # creating it if it does not exist already. You can give configure
5978 # the --cache-file=FILE option to use a different cache file; that is
5979 # what configure does when it calls configure scripts in
5980 # subdirectories, so they share the cache.
5981 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5982 # config.status only pays attention to the cache file if you give it the
5983 # --recheck option to rerun configure.
5986 # The following way of writing the cache mishandles newlines in values,
5987 # but we know of no workaround that is simple, portable, and efficient.
5988 # So, don't put newlines in cache variables' values.
5989 # Ultrix sh set writes to stderr and can't be redirected directly,
5990 # and sets the high bit in the cache file unless we assign to the vars.
5992 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5994 # `set' does not quote correctly, so add quotes (double-quote substitution
5995 # turns \\\\ into \\, and sed turns \\ into \).
5997 -e "s/'/'\\\\''/g" \
5998 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6001 # `set' quotes correctly as required by POSIX, so do not add quotes.
6002 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6005 if cmp -s $cache_file confcache
; then
6008 if test -w $cache_file; then
6009 echo "updating cache $cache_file"
6010 cat confcache
> $cache_file
6012 echo "not updating unwritable cache $cache_file"
6017 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6019 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6020 # Let make expand exec_prefix.
6021 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6023 # Any assignment to VPATH causes Sun make to only execute
6024 # the first set of double-colon rules, so remove it if not needed.
6025 # If there is a colon in the path, we need to keep it.
6026 if test "x$srcdir" = x.
; then
6027 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6030 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6032 DEFS
=-DHAVE_CONFIG_H
6034 # Without the "./", some shells look in PATH for config.status.
6035 : ${CONFIG_STATUS=./config.status}
6037 echo creating
$CONFIG_STATUS
6038 rm -f $CONFIG_STATUS
6039 cat > $CONFIG_STATUS <<EOF
6041 # Generated automatically by configure.
6042 # Run this file to recreate the current configuration.
6043 # This directory was configured as follows,
6044 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6046 # $0 $ac_configure_args
6048 # Compiler output produced by configure, useful for debugging
6049 # configure, is in ./config.log if it exists.
6051 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6054 case "\$ac_option" in
6055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6056 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6057 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6058 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6059 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6061 -help | --help | --hel | --he | --h)
6062 echo "\$ac_cs_usage"; exit 0 ;;
6063 *) echo "\$ac_cs_usage"; exit 1 ;;
6067 ac_given_srcdir=$srcdir
6068 ac_given_INSTALL="$INSTALL"
6070 trap 'rm -fr `echo "
6077 dlls/advapi32/Makefile
6078 dlls/avifil32/Makefile
6079 dlls/comctl32/Makefile
6080 dlls/commdlg/Makefile
6081 dlls/crtdll/Makefile
6082 dlls/dciman32/Makefile
6083 dlls/display/Makefile
6084 dlls/dplayx/Makefile
6085 dlls/dsound/Makefile
6087 dlls/imagehlp/Makefile
6089 dlls/lzexpand/Makefile
6093 dlls/msacm32/Makefile
6094 dlls/msnet32/Makefile
6095 dlls/msvideo/Makefile
6097 dlls/odbc32/Makefile
6099 dlls/oleaut32/Makefile
6100 dlls/olecli/Makefile
6101 dlls/oledlg/Makefile
6102 dlls/olesvr/Makefile
6104 dlls/rasapi32/Makefile
6105 dlls/shell32/Makefile
6107 dlls/stress/Makefile
6108 dlls/tapi32/Makefile
6110 dlls/version/Makefile
6111 dlls/win32s/Makefile
6112 dlls/win87em/Makefile
6113 dlls/winaspi/Makefile
6114 dlls/windebug/Makefile
6117 dlls/winmm/mcianim/Makefile
6118 dlls/winmm/mciavi/Makefile
6119 dlls/winmm/mcicda/Makefile
6120 dlls/winmm/mciseq/Makefile
6121 dlls/winmm/mciwave/Makefile
6122 dlls/winmm/midimap/Makefile
6123 dlls/winmm/wavemap/Makefile
6124 dlls/winmm/wineoss/Makefile
6125 dlls/winspool/Makefile
6126 dlls/wnaspi32/Makefile
6127 documentation/Makefile
6128 documentation/wine.conf.man
6129 documentation/wine.man
6132 graphics/enhmetafiledrv/Makefile
6133 graphics/metafiledrv/Makefile
6134 graphics/psdrv/Makefile
6135 graphics/ttydrv/Makefile
6136 graphics/win16drv/Makefile
6137 graphics/x11drv/Makefile
6152 programs/clock/Makefile
6153 programs/cmdlgtst/Makefile
6154 programs/control/Makefile
6155 programs/avitools/Makefile
6156 programs/osversioncheck/Makefile
6157 programs/notepad/Makefile
6158 programs/progman/Makefile
6159 programs/regtest/Makefile
6160 programs/regapi/Makefile
6161 programs/view/Makefile
6162 programs/wcmd/Makefile
6163 programs/winhelp/Makefile
6164 programs/winver/Makefile
6175 windows/ttydrv/Makefile
6176 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6178 cat >> $CONFIG_STATUS <<EOF
6180 # Protect against being on the right side of a sed subst in config.status.
6181 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6182 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6186 s%@CFLAGS@%$CFLAGS%g
6187 s%@CPPFLAGS@%$CPPFLAGS%g
6188 s%@CXXFLAGS@%$CXXFLAGS%g
6189 s%@FFLAGS@%$FFLAGS%g
6191 s%@LDFLAGS@%$LDFLAGS%g
6193 s%@exec_prefix@%$exec_prefix%g
6194 s%@prefix@%$prefix%g
6195 s%@program_transform_name@%$program_transform_name%g
6196 s%@bindir@%$bindir%g
6197 s%@sbindir@%$sbindir%g
6198 s%@libexecdir@%$libexecdir%g
6199 s%@datadir@%$datadir%g
6200 s%@sysconfdir@%$sysconfdir%g
6201 s%@sharedstatedir@%$sharedstatedir%g
6202 s%@localstatedir@%$localstatedir%g
6203 s%@libdir@%$libdir%g
6204 s%@includedir@%$includedir%g
6205 s%@oldincludedir@%$oldincludedir%g
6206 s%@infodir@%$infodir%g
6207 s%@mandir@%$mandir%g
6208 s%@PROGEXT@%$PROGEXT%g
6209 s%@MAIN_TARGET@%$MAIN_TARGET%g
6210 s%@LIB_TARGET@%$LIB_TARGET%g
6211 s%@ALT_LINK@%$ALT_LINK%g
6212 s%@OPTIONS@%$OPTIONS%g
6213 s%@SET_MAKE@%$SET_MAKE%g
6216 s%@X_CFLAGS@%$X_CFLAGS%g
6217 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6218 s%@X_LIBS@%$X_LIBS%g
6219 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6222 s%@LEXLIB@%$LEXLIB%g
6223 s%@RANLIB@%$RANLIB%g
6224 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6225 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6226 s%@INSTALL_DATA@%$INSTALL_DATA%g
6229 s%@LDCONFIG@%$LDCONFIG%g
6231 s%@LINTFLAGS@%$LINTFLAGS%g
6233 s%@BUILDFLAGS@%$BUILDFLAGS%g
6234 s%@DLLFLAGS@%$DLLFLAGS%g
6235 s%@LDSHARED@%$LDSHARED%g
6236 s%@ALLOCA@%$ALLOCA%g
6237 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6238 /@MAKE_RULES@/r $MAKE_RULES
6244 cat >> $CONFIG_STATUS <<\EOF
6246 # Split the substitutions into bite-sized pieces for seds with
6247 # small command number limits, like on Digital OSF/1 and HP-UX.
6248 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6249 ac_file
=1 # Number of current file.
6250 ac_beg
=1 # First line for current file.
6251 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6254 while $ac_more_lines; do
6255 if test $ac_beg -gt 1; then
6256 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6258 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6260 if test ! -s conftest.s
$ac_file; then
6262 rm -f conftest.s
$ac_file
6264 if test -z "$ac_sed_cmds"; then
6265 ac_sed_cmds
="sed -f conftest.s$ac_file"
6267 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6269 ac_file
=`expr $ac_file + 1`
6271 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6274 if test -z "$ac_sed_cmds"; then
6279 cat >> $CONFIG_STATUS <<EOF
6281 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6287 dlls/advapi32/Makefile
6288 dlls/avifil32/Makefile
6289 dlls/comctl32/Makefile
6290 dlls/commdlg/Makefile
6291 dlls/crtdll/Makefile
6292 dlls/dciman32/Makefile
6293 dlls/display/Makefile
6294 dlls/dplayx/Makefile
6295 dlls/dsound/Makefile
6297 dlls/imagehlp/Makefile
6299 dlls/lzexpand/Makefile
6303 dlls/msacm32/Makefile
6304 dlls/msnet32/Makefile
6305 dlls/msvideo/Makefile
6307 dlls/odbc32/Makefile
6309 dlls/oleaut32/Makefile
6310 dlls/olecli/Makefile
6311 dlls/oledlg/Makefile
6312 dlls/olesvr/Makefile
6314 dlls/rasapi32/Makefile
6315 dlls/shell32/Makefile
6317 dlls/stress/Makefile
6318 dlls/tapi32/Makefile
6320 dlls/version/Makefile
6321 dlls/win32s/Makefile
6322 dlls/win87em/Makefile
6323 dlls/winaspi/Makefile
6324 dlls/windebug/Makefile
6327 dlls/winmm/mcianim/Makefile
6328 dlls/winmm/mciavi/Makefile
6329 dlls/winmm/mcicda/Makefile
6330 dlls/winmm/mciseq/Makefile
6331 dlls/winmm/mciwave/Makefile
6332 dlls/winmm/midimap/Makefile
6333 dlls/winmm/wavemap/Makefile
6334 dlls/winmm/wineoss/Makefile
6335 dlls/winspool/Makefile
6336 dlls/wnaspi32/Makefile
6337 documentation/Makefile
6338 documentation/wine.conf.man
6339 documentation/wine.man
6342 graphics/enhmetafiledrv/Makefile
6343 graphics/metafiledrv/Makefile
6344 graphics/psdrv/Makefile
6345 graphics/ttydrv/Makefile
6346 graphics/win16drv/Makefile
6347 graphics/x11drv/Makefile
6362 programs/clock/Makefile
6363 programs/cmdlgtst/Makefile
6364 programs/control/Makefile
6365 programs/avitools/Makefile
6366 programs/osversioncheck/Makefile
6367 programs/notepad/Makefile
6368 programs/progman/Makefile
6369 programs/regtest/Makefile
6370 programs/regapi/Makefile
6371 programs/view/Makefile
6372 programs/wcmd/Makefile
6373 programs/winhelp/Makefile
6374 programs/winver/Makefile
6385 windows/ttydrv/Makefile
6386 windows/x11drv/Makefile "}
6388 cat >> $CONFIG_STATUS <<\EOF
6389 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6390 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6392 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6393 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6394 *) ac_file_in
="${ac_file}.in" ;;
6397 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6399 # Remove last slash and all that follows it. Not all systems have dirname.
6400 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6401 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6402 # The file is in a subdirectory.
6403 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6404 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6405 # A "../" for each directory in $ac_dir_suffix.
6406 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6408 ac_dir_suffix
= ac_dots
=
6411 case "$ac_given_srcdir" in
6413 if test -z "$ac_dots"; then top_srcdir
=.
6414 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6415 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6417 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6418 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6421 case "$ac_given_INSTALL" in
6422 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6423 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6426 echo creating
"$ac_file"
6428 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6430 *Makefile
*) ac_comsub
="1i\\
6431 # $configure_input" ;;
6435 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6437 s%@configure_input@%$configure_input%g
6438 s%@srcdir@%$srcdir%g
6439 s%@top_srcdir@%$top_srcdir%g
6440 s%@INSTALL@%$INSTALL%g
6441 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6445 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6446 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6448 # ac_d sets the value in "#define NAME VALUE" lines.
6449 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6450 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6453 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6454 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6455 ac_uB
='\([ ]\)%\1#\2define\3'
6458 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6459 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6460 ac_eB
='$%\1#\2define\3'
6464 if test "${CONFIG_HEADERS+set}" != set; then
6466 cat >> $CONFIG_STATUS <<EOF
6467 CONFIG_HEADERS="include/config.h"
6469 cat >> $CONFIG_STATUS <<\EOF
6471 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6474 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6475 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6476 *) ac_file_in
="${ac_file}.in" ;;
6479 echo creating
$ac_file
6481 rm -f conftest.frag conftest.
in conftest.out
6482 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6483 cat $ac_file_inputs > conftest.
in
6487 # Transform confdefs.h into a sed script conftest.vals that substitutes
6488 # the proper values into config.h.in to produce config.h. And first:
6489 # Protect against being on the right side of a sed subst in config.status.
6490 # Protect against being in an unquoted here document in config.status.
6492 cat > conftest.hdr
<<\EOF
6495 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6499 sed -n -f conftest.hdr confdefs.h > conftest.vals
6502 # This sed command replaces #undef with comments. This is necessary, for
6503 # example, in the case of _POSIX_SOURCE, which is predefined and required
6504 # on some systems where configure will not decide to define it.
6505 cat >> conftest.vals <<\EOF
6506 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6509 # Break up conftest.vals because some shells have a limit on
6510 # the size of here documents, and old seds have small limits too.
6515 ac_lines=`grep -c . conftest.vals
`
6516 # grep -c gives empty output for an empty file on some AIX systems.
6517 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6518 # Write a limited-size here document to conftest.frag.
6519 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6520 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6522 sed -f conftest.frag conftest.in > conftest.out
6524 mv conftest.out conftest.in
6526 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6528 mv conftest.tail conftest.vals
6532 cat >> $CONFIG_STATUS <<\EOF
6533 rm -f conftest.frag conftest.h
6534 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6535 cat conftest.in >> conftest.h
6537 if cmp -s $ac_file conftest.h 2>/dev/null; then
6538 echo "$ac_file is unchanged"
6541 # Remove last slash and all that follows it. Not all systems have dirname.
6542 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6543 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6544 # The file is in a subdirectory.
6545 test ! -d "$ac_dir" && mkdir "$ac_dir"
6548 mv conftest.h $ac_file
6553 cat >> $CONFIG_STATUS <<EOF
6556 cat >> $CONFIG_STATUS <<\EOF
6560 chmod +x $CONFIG_STATUS
6561 rm -fr confdefs* $ac_clean_files
6562 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6565 if test "$have_x" = "no"
6568 echo "*** Warning: X development files not found. Wine will be built without"
6569 echo "*** X support, which currently does not work, and would probably not be"
6570 echo "*** what you want anyway. You will need to install devel packages of"
6571 echo "*** Xlib/Xfree86 and Xpm at the very least."
6572 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6575 echo "*** Warning: Xpm development files not found. Wine will be built without"
6576 echo "*** Xpm support, which currently does not work. You will need to install"
6577 echo "*** devel packages of Xpm."
6580 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6583 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6584 echo "*** terminal resize support. Consider upgrading ncurses."
6587 if test "$wine_cv_libc_reentrant" = "no"
6590 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6591 echo "*** thread support. Consider upgrading libc to a more recent"
6592 echo "*** reentrant version of libc."
6595 if test "$wine_cv_mesa_version_OK" = "no"
6598 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6599 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
6603 echo "Configure finished. Do 'make depend && make' to compile Wine."