Do not send WM_SIZING to 16-bit windows.
[wine.git] / configure
blob4e27b0aa47814d7569c9cde59f5670f0b00e46e6
1 #! /bin/sh
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.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --disable-emulator build only the Wine library, not the emulator"
17 ac_help="$ac_help
18 --disable-dll build static libraries instead of DLLs"
19 ac_help="$ac_help
20 --disable-debug compile out all debugging messages"
21 ac_help="$ac_help
22 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
23 ac_help="$ac_help
24 --disable-trace compile out TRACE messages"
25 ac_help="$ac_help
26 --without-curses do not use curses"
27 ac_help="$ac_help
28 --without-reentrant-x compile for use with non-reentrant X libraries"
29 ac_help="$ac_help
30 --with-x use the X Window System"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
35 build=NONE
36 cache_file=./config.cache
37 exec_prefix=NONE
38 host=NONE
39 no_create=
40 nonopt=NONE
41 no_recursion=
42 prefix=NONE
43 program_prefix=NONE
44 program_suffix=NONE
45 program_transform_name=s,x,x,
46 silent=
47 site=
48 srcdir=
49 target=NONE
50 verbose=
51 x_includes=NONE
52 x_libraries=NONE
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
67 subdirs=
68 MFLAGS= MAKEFLAGS=
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
71 ac_max_here_lines=12
73 ac_prev=
74 for ac_option
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
80 ac_prev=
81 continue
84 case "$ac_option" in
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 *) ac_optarg= ;;
87 esac
89 # Accept the important Cygnus configure options, so we can diagnose typos.
91 case "$ac_option" in
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 ac_prev=bindir ;;
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
99 ac_prev=build ;;
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 ac_prev=datadir ;;
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 | --da=*)
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 case "$ac_option" in
133 *=*) ;;
134 *) ac_optarg=yes ;;
135 esac
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
149 with_gas=yes ;;
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
154 cat << EOF
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
157 Configuration:
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 [same as prefix]
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
188 cat << EOF
189 Host type:
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
204 exit 0 ;;
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 ac_prev=srcdir ;;
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
345 ac_prev=target ;;
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 verbose=yes ;;
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
354 exit 0 ;;
356 -with-* | --with-*)
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 case "$ac_option" in
364 *=*) ;;
365 *) ac_optarg=yes ;;
366 esac
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
378 --x)
379 # Obsolete; use --with-x.
380 with_x=yes ;;
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406 nonopt="$ac_option"
409 esac
410 done
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
419 # 0 standard input
420 # 1 file creation
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
427 exec 6>/dev/null
428 else
429 exec 6>&1
431 exec 5>./config.log
433 echo "\
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
436 " 1>&5
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
440 ac_configure_args=
441 for ac_arg
443 case "$ac_arg" in
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 esac
452 done
454 # NLS nuisances.
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 echo > confdefs.h
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=controls/edit.c
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
477 ac_prog=$0
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 srcdir=$ac_confdir
481 if test ! -r $srcdir/$ac_unique_file; then
482 srcdir=..
484 else
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 else
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 else
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
507 . "$ac_site_file"
509 done
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514 else
515 echo "creating cache $cache_file"
516 > $cache_file
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
526 ac_exeext=
527 ac_objext=o
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='
532 ' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
536 else
537 ac_n= ac_c='\c' ac_t=
542 ac_aux_dir=
543 for ac_dir in tools $srcdir/tools; do
544 if test -f $ac_dir/install-sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install-sh -c"
547 break
548 elif test -f $ac_dir/install.sh; then
549 ac_aux_dir=$ac_dir
550 ac_install_sh="$ac_aux_dir/install.sh -c"
551 break
553 done
554 if test -z "$ac_aux_dir"; then
555 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
557 ac_config_guess=$ac_aux_dir/config.guess
558 ac_config_sub=$ac_aux_dir/config.sub
559 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
562 # We want these before the checks, so the checks can modify their values.
564 test -z "$PROGEXT" && PROGEXT=""
567 EMU_TARGET=wine
568 LIBEXT=so # library type .so or .a
569 TRACE_MSGS=yes # the TRACE() macro
570 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
571 CURSES=yes
572 OPENGL=normal
574 # Check whether --enable-emulator or --disable-emulator was given.
575 if test "${enable_emulator+set}" = set; then
576 enableval="$enable_emulator"
577 if test "$enableval" = "no"; then EMU_TARGET=""; fi
581 # Check whether --enable-dll or --disable-dll was given.
582 if test "${enable_dll+set}" = set; then
583 enableval="$enable_dll"
584 if test "$enableval" = "no"; then LIBEXT="a"; fi
588 # Check whether --enable-debug or --disable-debug was given.
589 if test "${enable_debug+set}" = set; then
590 enableval="$enable_debug"
591 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
595 # Check whether --enable-opengl or --disable-opengl was given.
596 if test "${enable_opengl+set}" = set; then
597 enableval="$enable_opengl"
598 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
602 # Check whether --enable-trace or --disable-trace was given.
603 if test "${enable_trace+set}" = set; then
604 enableval="$enable_trace"
605 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
609 # Check whether --with-curses or --without-curses was given.
610 if test "${with_curses+set}" = set; then
611 withval="$with_curses"
612 if test "$withval" = "no"; then CURSES="no"; fi
616 # Check whether --with-reentrant-x or --without-reentrant-x was given.
617 if test "${with_reentrant_x+set}" = set; then
618 withval="$with_reentrant_x"
626 if test "$DEBUG_MSGS" = "no"
627 then
628 cat >> confdefs.h <<\EOF
629 #define NO_DEBUG_MSGS 1
632 cat >> confdefs.h <<\EOF
633 #define NO_TRACE_MSGS 1
636 else
637 if test "$TRACE_MSGS" = "no"
638 then
639 cat >> confdefs.h <<\EOF
640 #define NO_TRACE_MSGS 1
647 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
648 echo "configure:649: checking whether ${MAKE-make} sets \${MAKE}" >&5
649 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
650 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
652 else
653 cat > conftestmake <<\EOF
654 all:
655 @echo 'ac_maketemp="${MAKE}"'
657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
658 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
659 if test -n "$ac_maketemp"; then
660 eval ac_cv_prog_make_${ac_make}_set=yes
661 else
662 eval ac_cv_prog_make_${ac_make}_set=no
664 rm -f conftestmake
666 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
667 echo "$ac_t""yes" 1>&6
668 SET_MAKE=
669 else
670 echo "$ac_t""no" 1>&6
671 SET_MAKE="MAKE=${MAKE-make}"
674 # Extract the first word of "gcc", so it can be a program name with args.
675 set dummy gcc; ac_word=$2
676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
677 echo "configure:678: checking for $ac_word" >&5
678 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
680 else
681 if test -n "$CC"; then
682 ac_cv_prog_CC="$CC" # Let the user override the test.
683 else
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
685 ac_dummy="$PATH"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
689 ac_cv_prog_CC="gcc"
690 break
692 done
693 IFS="$ac_save_ifs"
696 CC="$ac_cv_prog_CC"
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
699 else
700 echo "$ac_t""no" 1>&6
703 if test -z "$CC"; then
704 # Extract the first word of "cc", so it can be a program name with args.
705 set dummy cc; ac_word=$2
706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
707 echo "configure:708: checking for $ac_word" >&5
708 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
710 else
711 if test -n "$CC"; then
712 ac_cv_prog_CC="$CC" # Let the user override the test.
713 else
714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
715 ac_prog_rejected=no
716 ac_dummy="$PATH"
717 for ac_dir in $ac_dummy; do
718 test -z "$ac_dir" && ac_dir=.
719 if test -f $ac_dir/$ac_word; then
720 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
721 ac_prog_rejected=yes
722 continue
724 ac_cv_prog_CC="cc"
725 break
727 done
728 IFS="$ac_save_ifs"
729 if test $ac_prog_rejected = yes; then
730 # We found a bogon in the path, so make sure we never use it.
731 set dummy $ac_cv_prog_CC
732 shift
733 if test $# -gt 0; then
734 # We chose a different compiler from the bogus one.
735 # However, it has the same basename, so the bogon will be chosen
736 # first if we set CC to just the basename; use the full file name.
737 shift
738 set dummy "$ac_dir/$ac_word" "$@"
739 shift
740 ac_cv_prog_CC="$@"
745 CC="$ac_cv_prog_CC"
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
748 else
749 echo "$ac_t""no" 1>&6
752 if test -z "$CC"; then
753 case "`uname -s`" in
754 *win32* | *WIN32*)
755 # Extract the first word of "cl", so it can be a program name with args.
756 set dummy cl; ac_word=$2
757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
758 echo "configure:759: checking for $ac_word" >&5
759 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
760 echo $ac_n "(cached) $ac_c" 1>&6
761 else
762 if test -n "$CC"; then
763 ac_cv_prog_CC="$CC" # Let the user override the test.
764 else
765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766 ac_dummy="$PATH"
767 for ac_dir in $ac_dummy; do
768 test -z "$ac_dir" && ac_dir=.
769 if test -f $ac_dir/$ac_word; then
770 ac_cv_prog_CC="cl"
771 break
773 done
774 IFS="$ac_save_ifs"
777 CC="$ac_cv_prog_CC"
778 if test -n "$CC"; then
779 echo "$ac_t""$CC" 1>&6
780 else
781 echo "$ac_t""no" 1>&6
784 esac
786 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
790 echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
792 ac_ext=c
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp='$CPP $CPPFLAGS'
795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling=$ac_cv_prog_cc_cross
799 cat > conftest.$ac_ext << EOF
801 #line 802 "configure"
802 #include "confdefs.h"
804 main(){return(0);}
806 if { (eval echo configure:807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
807 ac_cv_prog_cc_works=yes
808 # If we can't run a trivial program, we are probably using a cross compiler.
809 if (./conftest; exit) 2>/dev/null; then
810 ac_cv_prog_cc_cross=no
811 else
812 ac_cv_prog_cc_cross=yes
814 else
815 echo "configure: failed program was:" >&5
816 cat conftest.$ac_ext >&5
817 ac_cv_prog_cc_works=no
819 rm -fr conftest*
820 ac_ext=c
821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
822 ac_cpp='$CPP $CPPFLAGS'
823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
825 cross_compiling=$ac_cv_prog_cc_cross
827 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
828 if test $ac_cv_prog_cc_works = no; then
829 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
831 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
832 echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
833 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
834 cross_compiling=$ac_cv_prog_cc_cross
836 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
837 echo "configure:838: checking whether we are using GNU C" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840 else
841 cat > conftest.c <<EOF
842 #ifdef __GNUC__
843 yes;
844 #endif
846 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
847 ac_cv_prog_gcc=yes
848 else
849 ac_cv_prog_gcc=no
853 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
855 if test $ac_cv_prog_gcc = yes; then
856 GCC=yes
857 else
858 GCC=
861 ac_test_CFLAGS="${CFLAGS+set}"
862 ac_save_CFLAGS="$CFLAGS"
863 CFLAGS=
864 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
865 echo "configure:866: checking whether ${CC-cc} accepts -g" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868 else
869 echo 'void f(){}' > conftest.c
870 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
871 ac_cv_prog_cc_g=yes
872 else
873 ac_cv_prog_cc_g=no
875 rm -f conftest*
879 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
880 if test "$ac_test_CFLAGS" = set; then
881 CFLAGS="$ac_save_CFLAGS"
882 elif test $ac_cv_prog_cc_g = yes; then
883 if test "$GCC" = yes; then
884 CFLAGS="-g -O2"
885 else
886 CFLAGS="-g"
888 else
889 if test "$GCC" = yes; then
890 CFLAGS="-O2"
891 else
892 CFLAGS=
896 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
897 echo "configure:898: checking how to run the C preprocessor" >&5
898 # On Suns, sometimes $CPP names a directory.
899 if test -n "$CPP" && test -d "$CPP"; then
900 CPP=
902 if test -z "$CPP"; then
903 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
905 else
906 # This must be in double quotes, not single quotes, because CPP may get
907 # substituted into the Makefile and "${CC-cc}" will confuse make.
908 CPP="${CC-cc} -E"
909 # On the NeXT, cc -E runs the code through the compiler's parser,
910 # not just through cpp.
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
914 #include <assert.h>
915 Syntax Error
917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918 { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920 if test -z "$ac_err"; then
922 else
923 echo "$ac_err" >&5
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
926 rm -rf conftest*
927 CPP="${CC-cc} -E -traditional-cpp"
928 cat > conftest.$ac_ext <<EOF
929 #line 930 "configure"
930 #include "confdefs.h"
931 #include <assert.h>
932 Syntax Error
934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
935 { (eval echo configure:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
937 if test -z "$ac_err"; then
939 else
940 echo "$ac_err" >&5
941 echo "configure: failed program was:" >&5
942 cat conftest.$ac_ext >&5
943 rm -rf conftest*
944 CPP="${CC-cc} -nologo -E"
945 cat > conftest.$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
948 #include <assert.h>
949 Syntax Error
951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
952 { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
954 if test -z "$ac_err"; then
956 else
957 echo "$ac_err" >&5
958 echo "configure: failed program was:" >&5
959 cat conftest.$ac_ext >&5
960 rm -rf conftest*
961 CPP=/lib/cpp
963 rm -f conftest*
965 rm -f conftest*
967 rm -f conftest*
968 ac_cv_prog_CPP="$CPP"
970 CPP="$ac_cv_prog_CPP"
971 else
972 ac_cv_prog_CPP="$CPP"
974 echo "$ac_t""$CPP" 1>&6
976 # If we find X, set shell vars x_includes and x_libraries to the
977 # paths, otherwise set no_x=yes.
978 # Uses ac_ vars as temps to allow command line to override cache and checks.
979 # --without-x overrides everything else, but does not touch the cache.
980 echo $ac_n "checking for X""... $ac_c" 1>&6
981 echo "configure:982: checking for X" >&5
983 # Check whether --with-x or --without-x was given.
984 if test "${with_x+set}" = set; then
985 withval="$with_x"
989 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
990 if test "x$with_x" = xno; then
991 # The user explicitly disabled X.
992 have_x=disabled
993 else
994 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
995 # Both variables are already set.
996 have_x=yes
997 else
998 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1000 else
1001 # One or both of the vars are not set, and there is no cached value.
1002 ac_x_includes=NO ac_x_libraries=NO
1003 rm -fr conftestdir
1004 if mkdir conftestdir; then
1005 cd conftestdir
1006 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1007 cat > Imakefile <<'EOF'
1008 acfindx:
1009 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1011 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1013 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1014 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1015 for ac_extension in a so sl; do
1016 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1017 test -f $ac_im_libdir/libX11.$ac_extension; then
1018 ac_im_usrlibdir=$ac_im_libdir; break
1020 done
1021 # Screen out bogus values from the imake configuration. They are
1022 # bogus both because they are the default anyway, and because
1023 # using them would break gcc on systems where it needs fixed includes.
1024 case "$ac_im_incroot" in
1025 /usr/include) ;;
1026 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1027 esac
1028 case "$ac_im_usrlibdir" in
1029 /usr/lib | /lib) ;;
1030 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1031 esac
1033 cd ..
1034 rm -fr conftestdir
1037 if test "$ac_x_includes" = NO; then
1038 # Guess where to find include files, by looking for this one X11 .h file.
1039 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1041 # First, try using that file with no special directory specified.
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1045 #include <$x_direct_test_include>
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1051 rm -rf conftest*
1052 # We can compile using X headers with no special include directory.
1053 ac_x_includes=
1054 else
1055 echo "$ac_err" >&5
1056 echo "configure: failed program was:" >&5
1057 cat conftest.$ac_ext >&5
1058 rm -rf conftest*
1059 # Look for the header file in a standard set of common directories.
1060 # Check X11 before X11Rn because it is often a symlink to the current release.
1061 for ac_dir in \
1062 /usr/X11/include \
1063 /usr/X11R6/include \
1064 /usr/X11R5/include \
1065 /usr/X11R4/include \
1067 /usr/include/X11 \
1068 /usr/include/X11R6 \
1069 /usr/include/X11R5 \
1070 /usr/include/X11R4 \
1072 /usr/local/X11/include \
1073 /usr/local/X11R6/include \
1074 /usr/local/X11R5/include \
1075 /usr/local/X11R4/include \
1077 /usr/local/include/X11 \
1078 /usr/local/include/X11R6 \
1079 /usr/local/include/X11R5 \
1080 /usr/local/include/X11R4 \
1082 /usr/X386/include \
1083 /usr/x386/include \
1084 /usr/XFree86/include/X11 \
1086 /usr/include \
1087 /usr/local/include \
1088 /usr/unsupported/include \
1089 /usr/athena/include \
1090 /usr/local/x11r5/include \
1091 /usr/lpp/Xamples/include \
1093 /usr/openwin/include \
1094 /usr/openwin/share/include \
1097 if test -r "$ac_dir/$x_direct_test_include"; then
1098 ac_x_includes=$ac_dir
1099 break
1101 done
1103 rm -f conftest*
1104 fi # $ac_x_includes = NO
1106 if test "$ac_x_libraries" = NO; then
1107 # Check for the libraries.
1109 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1110 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1112 # See if we find them without any special options.
1113 # Don't add to $LIBS permanently.
1114 ac_save_LIBS="$LIBS"
1115 LIBS="-l$x_direct_test_library $LIBS"
1116 cat > conftest.$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1120 int main() {
1121 ${x_direct_test_function}()
1122 ; return 0; }
1124 if { (eval echo configure:1125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1125 rm -rf conftest*
1126 LIBS="$ac_save_LIBS"
1127 # We can link X programs with no special library path.
1128 ac_x_libraries=
1129 else
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1132 rm -rf conftest*
1133 LIBS="$ac_save_LIBS"
1134 # First see if replacing the include by lib works.
1135 # Check X11 before X11Rn because it is often a symlink to the current release.
1136 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1137 /usr/X11/lib \
1138 /usr/X11R6/lib \
1139 /usr/X11R5/lib \
1140 /usr/X11R4/lib \
1142 /usr/lib/X11 \
1143 /usr/lib/X11R6 \
1144 /usr/lib/X11R5 \
1145 /usr/lib/X11R4 \
1147 /usr/local/X11/lib \
1148 /usr/local/X11R6/lib \
1149 /usr/local/X11R5/lib \
1150 /usr/local/X11R4/lib \
1152 /usr/local/lib/X11 \
1153 /usr/local/lib/X11R6 \
1154 /usr/local/lib/X11R5 \
1155 /usr/local/lib/X11R4 \
1157 /usr/X386/lib \
1158 /usr/x386/lib \
1159 /usr/XFree86/lib/X11 \
1161 /usr/lib \
1162 /usr/local/lib \
1163 /usr/unsupported/lib \
1164 /usr/athena/lib \
1165 /usr/local/x11r5/lib \
1166 /usr/lpp/Xamples/lib \
1167 /lib/usr/lib/X11 \
1169 /usr/openwin/lib \
1170 /usr/openwin/share/lib \
1173 for ac_extension in a so sl; do
1174 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1175 ac_x_libraries=$ac_dir
1176 break 2
1178 done
1179 done
1181 rm -f conftest*
1182 fi # $ac_x_libraries = NO
1184 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1185 # Didn't find X anywhere. Cache the known absence of X.
1186 ac_cv_have_x="have_x=no"
1187 else
1188 # Record where we found X for the cache.
1189 ac_cv_have_x="have_x=yes \
1190 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1194 eval "$ac_cv_have_x"
1195 fi # $with_x != no
1197 if test "$have_x" != yes; then
1198 echo "$ac_t""$have_x" 1>&6
1199 no_x=yes
1200 else
1201 # If each of the values was on the command line, it overrides each guess.
1202 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1203 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1204 # Update the cache value to reflect the command line values.
1205 ac_cv_have_x="have_x=yes \
1206 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1207 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1210 if test "$no_x" = yes; then
1211 # Not all programs may use this symbol, but it does not hurt to define it.
1212 cat >> confdefs.h <<\EOF
1213 #define X_DISPLAY_MISSING 1
1216 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1217 else
1218 if test -n "$x_includes"; then
1219 X_CFLAGS="$X_CFLAGS -I$x_includes"
1222 # It would also be nice to do this for all -L options, not just this one.
1223 if test -n "$x_libraries"; then
1224 X_LIBS="$X_LIBS -L$x_libraries"
1225 # For Solaris; some versions of Sun CC require a space after -R and
1226 # others require no space. Words are not sufficient . . . .
1227 case "`(uname -sr) 2>/dev/null`" in
1228 "SunOS 5"*)
1229 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether -R must be followed by a space" >&5
1231 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1232 cat > conftest.$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1236 int main() {
1238 ; return 0; }
1240 if { (eval echo configure:1241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1241 rm -rf conftest*
1242 ac_R_nospace=yes
1243 else
1244 echo "configure: failed program was:" >&5
1245 cat conftest.$ac_ext >&5
1246 rm -rf conftest*
1247 ac_R_nospace=no
1249 rm -f conftest*
1250 if test $ac_R_nospace = yes; then
1251 echo "$ac_t""no" 1>&6
1252 X_LIBS="$X_LIBS -R$x_libraries"
1253 else
1254 LIBS="$ac_xsave_LIBS -R $x_libraries"
1255 cat > conftest.$ac_ext <<EOF
1256 #line 1257 "configure"
1257 #include "confdefs.h"
1259 int main() {
1261 ; return 0; }
1263 if { (eval echo configure:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1264 rm -rf conftest*
1265 ac_R_space=yes
1266 else
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 rm -rf conftest*
1270 ac_R_space=no
1272 rm -f conftest*
1273 if test $ac_R_space = yes; then
1274 echo "$ac_t""yes" 1>&6
1275 X_LIBS="$X_LIBS -R $x_libraries"
1276 else
1277 echo "$ac_t""neither works" 1>&6
1280 LIBS="$ac_xsave_LIBS"
1281 esac
1284 # Check for system-dependent libraries X programs must link with.
1285 # Do this before checking for the system-independent R6 libraries
1286 # (-lICE), since we may need -lsocket or whatever for X linking.
1288 if test "$ISC" = yes; then
1289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1290 else
1291 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1292 # libraries were built with DECnet support. And karl@cs.umb.edu says
1293 # the Alpha needs dnet_stub (dnet does not exist).
1294 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1295 echo "configure:1296: checking for dnet_ntoa in -ldnet" >&5
1296 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 ac_save_LIBS="$LIBS"
1301 LIBS="-ldnet $LIBS"
1302 cat > conftest.$ac_ext <<EOF
1303 #line 1304 "configure"
1304 #include "confdefs.h"
1305 /* Override any gcc2 internal prototype to avoid an error. */
1306 /* We use char because int might match the return type of a gcc2
1307 builtin and then its argument prototype would still apply. */
1308 char dnet_ntoa();
1310 int main() {
1311 dnet_ntoa()
1312 ; return 0; }
1314 if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1315 rm -rf conftest*
1316 eval "ac_cv_lib_$ac_lib_var=yes"
1317 else
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1320 rm -rf conftest*
1321 eval "ac_cv_lib_$ac_lib_var=no"
1323 rm -f conftest*
1324 LIBS="$ac_save_LIBS"
1327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1328 echo "$ac_t""yes" 1>&6
1329 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1330 else
1331 echo "$ac_t""no" 1>&6
1334 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1335 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1336 echo "configure:1337: checking for dnet_ntoa in -ldnet_stub" >&5
1337 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1340 else
1341 ac_save_LIBS="$LIBS"
1342 LIBS="-ldnet_stub $LIBS"
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* Override any gcc2 internal prototype to avoid an error. */
1347 /* We use char because int might match the return type of a gcc2
1348 builtin and then its argument prototype would still apply. */
1349 char dnet_ntoa();
1351 int main() {
1352 dnet_ntoa()
1353 ; return 0; }
1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1356 rm -rf conftest*
1357 eval "ac_cv_lib_$ac_lib_var=yes"
1358 else
1359 echo "configure: failed program was:" >&5
1360 cat conftest.$ac_ext >&5
1361 rm -rf conftest*
1362 eval "ac_cv_lib_$ac_lib_var=no"
1364 rm -f conftest*
1365 LIBS="$ac_save_LIBS"
1368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1370 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1371 else
1372 echo "$ac_t""no" 1>&6
1377 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1378 # to get the SysV transport functions.
1379 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1380 # needs -lnsl.
1381 # The nsl library prevents programs from opening the X display
1382 # on Irix 5.2, according to dickey@clark.net.
1383 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1384 echo "configure:1385: checking for gethostbyname" >&5
1385 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1387 else
1388 cat > conftest.$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1391 /* System header to define __stub macros and hopefully few prototypes,
1392 which can conflict with char gethostbyname(); below. */
1393 #include <assert.h>
1394 /* Override any gcc2 internal prototype to avoid an error. */
1395 /* We use char because int might match the return type of a gcc2
1396 builtin and then its argument prototype would still apply. */
1397 char gethostbyname();
1399 int main() {
1401 /* The GNU C library defines this for functions which it implements
1402 to always fail with ENOSYS. Some functions are actually named
1403 something starting with __ and the normal name is an alias. */
1404 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1405 choke me
1406 #else
1407 gethostbyname();
1408 #endif
1410 ; return 0; }
1412 if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 rm -rf conftest*
1414 eval "ac_cv_func_gethostbyname=yes"
1415 else
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1418 rm -rf conftest*
1419 eval "ac_cv_func_gethostbyname=no"
1421 rm -f conftest*
1424 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1427 else
1428 echo "$ac_t""no" 1>&6
1431 if test $ac_cv_func_gethostbyname = no; then
1432 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1433 echo "configure:1434: checking for gethostbyname in -lnsl" >&5
1434 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1437 else
1438 ac_save_LIBS="$LIBS"
1439 LIBS="-lnsl $LIBS"
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 /* Override any gcc2 internal prototype to avoid an error. */
1444 /* We use char because int might match the return type of a gcc2
1445 builtin and then its argument prototype would still apply. */
1446 char gethostbyname();
1448 int main() {
1449 gethostbyname()
1450 ; return 0; }
1452 if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1453 rm -rf conftest*
1454 eval "ac_cv_lib_$ac_lib_var=yes"
1455 else
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1458 rm -rf conftest*
1459 eval "ac_cv_lib_$ac_lib_var=no"
1461 rm -f conftest*
1462 LIBS="$ac_save_LIBS"
1465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1466 echo "$ac_t""yes" 1>&6
1467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1468 else
1469 echo "$ac_t""no" 1>&6
1474 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1475 # socket/setsockopt and other routines are undefined under SCO ODT
1476 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1477 # on later versions), says simon@lia.di.epfl.ch: it contains
1478 # gethostby* variants that don't use the nameserver (or something).
1479 # -lsocket must be given before -lnsl if both are needed.
1480 # We assume that if connect needs -lnsl, so does gethostbyname.
1481 echo $ac_n "checking for connect""... $ac_c" 1>&6
1482 echo "configure:1483: checking for connect" >&5
1483 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485 else
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 /* System header to define __stub macros and hopefully few prototypes,
1490 which can conflict with char connect(); below. */
1491 #include <assert.h>
1492 /* Override any gcc2 internal prototype to avoid an error. */
1493 /* We use char because int might match the return type of a gcc2
1494 builtin and then its argument prototype would still apply. */
1495 char connect();
1497 int main() {
1499 /* The GNU C library defines this for functions which it implements
1500 to always fail with ENOSYS. Some functions are actually named
1501 something starting with __ and the normal name is an alias. */
1502 #if defined (__stub_connect) || defined (__stub___connect)
1503 choke me
1504 #else
1505 connect();
1506 #endif
1508 ; return 0; }
1510 if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511 rm -rf conftest*
1512 eval "ac_cv_func_connect=yes"
1513 else
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1516 rm -rf conftest*
1517 eval "ac_cv_func_connect=no"
1519 rm -f conftest*
1522 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1525 else
1526 echo "$ac_t""no" 1>&6
1529 if test $ac_cv_func_connect = no; then
1530 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1531 echo "configure:1532: checking for connect in -lsocket" >&5
1532 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1535 else
1536 ac_save_LIBS="$LIBS"
1537 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 /* Override any gcc2 internal prototype to avoid an error. */
1542 /* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
1544 char connect();
1546 int main() {
1547 connect()
1548 ; return 0; }
1550 if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1551 rm -rf conftest*
1552 eval "ac_cv_lib_$ac_lib_var=yes"
1553 else
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1556 rm -rf conftest*
1557 eval "ac_cv_lib_$ac_lib_var=no"
1559 rm -f conftest*
1560 LIBS="$ac_save_LIBS"
1563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1564 echo "$ac_t""yes" 1>&6
1565 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1566 else
1567 echo "$ac_t""no" 1>&6
1572 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1573 echo $ac_n "checking for remove""... $ac_c" 1>&6
1574 echo "configure:1575: checking for remove" >&5
1575 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1577 else
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1581 /* System header to define __stub macros and hopefully few prototypes,
1582 which can conflict with char remove(); below. */
1583 #include <assert.h>
1584 /* Override any gcc2 internal prototype to avoid an error. */
1585 /* We use char because int might match the return type of a gcc2
1586 builtin and then its argument prototype would still apply. */
1587 char remove();
1589 int main() {
1591 /* The GNU C library defines this for functions which it implements
1592 to always fail with ENOSYS. Some functions are actually named
1593 something starting with __ and the normal name is an alias. */
1594 #if defined (__stub_remove) || defined (__stub___remove)
1595 choke me
1596 #else
1597 remove();
1598 #endif
1600 ; return 0; }
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1603 rm -rf conftest*
1604 eval "ac_cv_func_remove=yes"
1605 else
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 rm -rf conftest*
1609 eval "ac_cv_func_remove=no"
1611 rm -f conftest*
1614 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1615 echo "$ac_t""yes" 1>&6
1617 else
1618 echo "$ac_t""no" 1>&6
1621 if test $ac_cv_func_remove = no; then
1622 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1623 echo "configure:1624: checking for remove in -lposix" >&5
1624 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1627 else
1628 ac_save_LIBS="$LIBS"
1629 LIBS="-lposix $LIBS"
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 /* Override any gcc2 internal prototype to avoid an error. */
1634 /* We use char because int might match the return type of a gcc2
1635 builtin and then its argument prototype would still apply. */
1636 char remove();
1638 int main() {
1639 remove()
1640 ; return 0; }
1642 if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1643 rm -rf conftest*
1644 eval "ac_cv_lib_$ac_lib_var=yes"
1645 else
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1648 rm -rf conftest*
1649 eval "ac_cv_lib_$ac_lib_var=no"
1651 rm -f conftest*
1652 LIBS="$ac_save_LIBS"
1655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1658 else
1659 echo "$ac_t""no" 1>&6
1664 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1665 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1666 echo "configure:1667: checking for shmat" >&5
1667 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669 else
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 /* System header to define __stub macros and hopefully few prototypes,
1674 which can conflict with char shmat(); below. */
1675 #include <assert.h>
1676 /* Override any gcc2 internal prototype to avoid an error. */
1677 /* We use char because int might match the return type of a gcc2
1678 builtin and then its argument prototype would still apply. */
1679 char shmat();
1681 int main() {
1683 /* The GNU C library defines this for functions which it implements
1684 to always fail with ENOSYS. Some functions are actually named
1685 something starting with __ and the normal name is an alias. */
1686 #if defined (__stub_shmat) || defined (__stub___shmat)
1687 choke me
1688 #else
1689 shmat();
1690 #endif
1692 ; return 0; }
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695 rm -rf conftest*
1696 eval "ac_cv_func_shmat=yes"
1697 else
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1700 rm -rf conftest*
1701 eval "ac_cv_func_shmat=no"
1703 rm -f conftest*
1706 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1709 else
1710 echo "$ac_t""no" 1>&6
1713 if test $ac_cv_func_shmat = no; then
1714 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1715 echo "configure:1716: checking for shmat in -lipc" >&5
1716 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1719 else
1720 ac_save_LIBS="$LIBS"
1721 LIBS="-lipc $LIBS"
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 /* Override any gcc2 internal prototype to avoid an error. */
1726 /* We use char because int might match the return type of a gcc2
1727 builtin and then its argument prototype would still apply. */
1728 char shmat();
1730 int main() {
1731 shmat()
1732 ; return 0; }
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1735 rm -rf conftest*
1736 eval "ac_cv_lib_$ac_lib_var=yes"
1737 else
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 rm -rf conftest*
1741 eval "ac_cv_lib_$ac_lib_var=no"
1743 rm -f conftest*
1744 LIBS="$ac_save_LIBS"
1747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1750 else
1751 echo "$ac_t""no" 1>&6
1757 # Check for libraries that X11R6 Xt/Xaw programs need.
1758 ac_save_LDFLAGS="$LDFLAGS"
1759 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1760 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1761 # check for ICE first), but we must link in the order -lSM -lICE or
1762 # we get undefined symbols. So assume we have SM if we have ICE.
1763 # These have to be linked with before -lX11, unlike the other
1764 # libraries we check for below, so use a different variable.
1765 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1766 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1767 echo "configure:1768: checking for IceConnectionNumber in -lICE" >&5
1768 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771 else
1772 ac_save_LIBS="$LIBS"
1773 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 /* Override any gcc2 internal prototype to avoid an error. */
1778 /* We use char because int might match the return type of a gcc2
1779 builtin and then its argument prototype would still apply. */
1780 char IceConnectionNumber();
1782 int main() {
1783 IceConnectionNumber()
1784 ; return 0; }
1786 if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1787 rm -rf conftest*
1788 eval "ac_cv_lib_$ac_lib_var=yes"
1789 else
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1792 rm -rf conftest*
1793 eval "ac_cv_lib_$ac_lib_var=no"
1795 rm -f conftest*
1796 LIBS="$ac_save_LIBS"
1799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1800 echo "$ac_t""yes" 1>&6
1801 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1802 else
1803 echo "$ac_t""no" 1>&6
1806 LDFLAGS="$ac_save_LDFLAGS"
1810 for ac_prog in 'bison -y' byacc
1812 # Extract the first word of "$ac_prog", so it can be a program name with args.
1813 set dummy $ac_prog; ac_word=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 if test -n "$YACC"; then
1820 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1821 else
1822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1823 ac_dummy="$PATH"
1824 for ac_dir in $ac_dummy; do
1825 test -z "$ac_dir" && ac_dir=.
1826 if test -f $ac_dir/$ac_word; then
1827 ac_cv_prog_YACC="$ac_prog"
1828 break
1830 done
1831 IFS="$ac_save_ifs"
1834 YACC="$ac_cv_prog_YACC"
1835 if test -n "$YACC"; then
1836 echo "$ac_t""$YACC" 1>&6
1837 else
1838 echo "$ac_t""no" 1>&6
1841 test -n "$YACC" && break
1842 done
1843 test -n "$YACC" || YACC="yacc"
1845 # Extract the first word of "flex", so it can be a program name with args.
1846 set dummy flex; ac_word=$2
1847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1848 echo "configure:1849: checking for $ac_word" >&5
1849 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851 else
1852 if test -n "$LEX"; then
1853 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1854 else
1855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 ac_dummy="$PATH"
1857 for ac_dir in $ac_dummy; do
1858 test -z "$ac_dir" && ac_dir=.
1859 if test -f $ac_dir/$ac_word; then
1860 ac_cv_prog_LEX="flex"
1861 break
1863 done
1864 IFS="$ac_save_ifs"
1865 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1868 LEX="$ac_cv_prog_LEX"
1869 if test -n "$LEX"; then
1870 echo "$ac_t""$LEX" 1>&6
1871 else
1872 echo "$ac_t""no" 1>&6
1875 if test -z "$LEXLIB"
1876 then
1877 case "$LEX" in
1878 flex*) ac_lib=fl ;;
1879 *) ac_lib=l ;;
1880 esac
1881 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1882 echo "configure:1883: checking for yywrap in -l$ac_lib" >&5
1883 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1886 else
1887 ac_save_LIBS="$LIBS"
1888 LIBS="-l$ac_lib $LIBS"
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1892 /* Override any gcc2 internal prototype to avoid an error. */
1893 /* We use char because int might match the return type of a gcc2
1894 builtin and then its argument prototype would still apply. */
1895 char yywrap();
1897 int main() {
1898 yywrap()
1899 ; return 0; }
1901 if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902 rm -rf conftest*
1903 eval "ac_cv_lib_$ac_lib_var=yes"
1904 else
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 rm -rf conftest*
1908 eval "ac_cv_lib_$ac_lib_var=no"
1910 rm -f conftest*
1911 LIBS="$ac_save_LIBS"
1914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1915 echo "$ac_t""yes" 1>&6
1916 LEXLIB="-l$ac_lib"
1917 else
1918 echo "$ac_t""no" 1>&6
1923 # Extract the first word of "ranlib", so it can be a program name with args.
1924 set dummy ranlib; ac_word=$2
1925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1926 echo "configure:1927: checking for $ac_word" >&5
1927 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1929 else
1930 if test -n "$RANLIB"; then
1931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1932 else
1933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1934 ac_dummy="$PATH"
1935 for ac_dir in $ac_dummy; do
1936 test -z "$ac_dir" && ac_dir=.
1937 if test -f $ac_dir/$ac_word; then
1938 ac_cv_prog_RANLIB="ranlib"
1939 break
1941 done
1942 IFS="$ac_save_ifs"
1943 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1946 RANLIB="$ac_cv_prog_RANLIB"
1947 if test -n "$RANLIB"; then
1948 echo "$ac_t""$RANLIB" 1>&6
1949 else
1950 echo "$ac_t""no" 1>&6
1953 # Find a good install program. We prefer a C program (faster),
1954 # so one script is as good as another. But avoid the broken or
1955 # incompatible versions:
1956 # SysV /etc/install, /usr/sbin/install
1957 # SunOS /usr/etc/install
1958 # IRIX /sbin/install
1959 # AIX /bin/install
1960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1963 # ./install, which can be erroneously created by make from ./install.sh.
1964 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1965 echo "configure:1966: checking for a BSD compatible install" >&5
1966 if test -z "$INSTALL"; then
1967 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1971 for ac_dir in $PATH; do
1972 # Account for people who put trailing slashes in PATH elements.
1973 case "$ac_dir/" in
1974 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1976 # OSF1 and SCO ODT 3.0 have their own names for install.
1977 # Don't use installbsd from OSF since it installs stuff as root
1978 # by default.
1979 for ac_prog in ginstall scoinst install; do
1980 if test -f $ac_dir/$ac_prog; then
1981 if test $ac_prog = install &&
1982 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1983 # AIX install. It has an incompatible calling convention.
1985 else
1986 ac_cv_path_install="$ac_dir/$ac_prog -c"
1987 break 2
1990 done
1992 esac
1993 done
1994 IFS="$ac_save_IFS"
1997 if test "${ac_cv_path_install+set}" = set; then
1998 INSTALL="$ac_cv_path_install"
1999 else
2000 # As a last resort, use the slow shell script. We don't cache a
2001 # path for INSTALL within a source directory, because that will
2002 # break other packages using the cache if that directory is
2003 # removed, or if the path is relative.
2004 INSTALL="$ac_install_sh"
2007 echo "$ac_t""$INSTALL" 1>&6
2009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2010 # It thinks the first close brace ends the variable substitution.
2011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2017 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether ln -s works" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2021 else
2022 rm -f conftestdata
2023 if ln -s X conftestdata 2>/dev/null
2024 then
2025 rm -f conftestdata
2026 ac_cv_prog_LN_S="ln -s"
2027 else
2028 ac_cv_prog_LN_S=ln
2031 LN_S="$ac_cv_prog_LN_S"
2032 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2033 echo "$ac_t""yes" 1>&6
2034 else
2035 echo "$ac_t""no" 1>&6
2038 # Extract the first word of "c2man", so it can be a program name with args.
2039 set dummy c2man; ac_word=$2
2040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_word" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044 else
2045 if test -n "$C2MAN"; then
2046 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2047 else
2048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2049 ac_dummy="$PATH"
2050 for ac_dir in $ac_dummy; do
2051 test -z "$ac_dir" && ac_dir=.
2052 if test -f $ac_dir/$ac_word; then
2053 ac_cv_prog_C2MAN="c2man"
2054 break
2056 done
2057 IFS="$ac_save_ifs"
2058 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2061 C2MAN="$ac_cv_prog_C2MAN"
2062 if test -n "$C2MAN"; then
2063 echo "$ac_t""$C2MAN" 1>&6
2064 else
2065 echo "$ac_t""no" 1>&6
2068 # Extract the first word of "ldconfig", so it can be a program name with args.
2069 set dummy ldconfig; ac_word=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5
2072 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075 case "$LDCONFIG" in
2077 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2079 ?:/*)
2080 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2084 ac_dummy="/sbin:/usr/sbin:$PATH"
2085 for ac_dir in $ac_dummy; do
2086 test -z "$ac_dir" && ac_dir=.
2087 if test -f $ac_dir/$ac_word; then
2088 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2089 break
2091 done
2092 IFS="$ac_save_ifs"
2093 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2095 esac
2097 LDCONFIG="$ac_cv_path_LDCONFIG"
2098 if test -n "$LDCONFIG"; then
2099 echo "$ac_t""$LDCONFIG" 1>&6
2100 else
2101 echo "$ac_t""no" 1>&6
2105 for ac_prog in lclint lint
2107 # Extract the first word of "$ac_prog", so it can be a program name with args.
2108 set dummy $ac_prog; ac_word=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 if test -n "$LINT"; then
2115 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2116 else
2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2118 ac_dummy="$PATH"
2119 for ac_dir in $ac_dummy; do
2120 test -z "$ac_dir" && ac_dir=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_LINT="$ac_prog"
2123 break
2125 done
2126 IFS="$ac_save_ifs"
2129 LINT="$ac_cv_prog_LINT"
2130 if test -n "$LINT"; then
2131 echo "$ac_t""$LINT" 1>&6
2132 else
2133 echo "$ac_t""no" 1>&6
2136 test -n "$LINT" && break
2137 done
2139 if test "$LINT" = "lint"
2140 then
2141 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2147 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2148 echo "configure:2149: checking for sqrt in -lm" >&5
2149 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2152 else
2153 ac_save_LIBS="$LIBS"
2154 LIBS="-lm $LIBS"
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 /* Override any gcc2 internal prototype to avoid an error. */
2159 /* We use char because int might match the return type of a gcc2
2160 builtin and then its argument prototype would still apply. */
2161 char sqrt();
2163 int main() {
2164 sqrt()
2165 ; return 0; }
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2168 rm -rf conftest*
2169 eval "ac_cv_lib_$ac_lib_var=yes"
2170 else
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2173 rm -rf conftest*
2174 eval "ac_cv_lib_$ac_lib_var=no"
2176 rm -f conftest*
2177 LIBS="$ac_save_LIBS"
2180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2181 echo "$ac_t""yes" 1>&6
2182 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2184 cat >> confdefs.h <<EOF
2185 #define $ac_tr_lib 1
2188 LIBS="-lm $LIBS"
2190 else
2191 echo "$ac_t""no" 1>&6
2194 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2195 echo "configure:2196: checking for i386_set_ldt in -li386" >&5
2196 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2199 else
2200 ac_save_LIBS="$LIBS"
2201 LIBS="-li386 $LIBS"
2202 cat > conftest.$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2205 /* Override any gcc2 internal prototype to avoid an error. */
2206 /* We use char because int might match the return type of a gcc2
2207 builtin and then its argument prototype would still apply. */
2208 char i386_set_ldt();
2210 int main() {
2211 i386_set_ldt()
2212 ; return 0; }
2214 if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2215 rm -rf conftest*
2216 eval "ac_cv_lib_$ac_lib_var=yes"
2217 else
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 rm -rf conftest*
2221 eval "ac_cv_lib_$ac_lib_var=no"
2223 rm -f conftest*
2224 LIBS="$ac_save_LIBS"
2227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2229 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2230 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2231 cat >> confdefs.h <<EOF
2232 #define $ac_tr_lib 1
2235 LIBS="-li386 $LIBS"
2237 else
2238 echo "$ac_t""no" 1>&6
2241 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2242 echo "configure:2243: checking for _oss_ioctl in -lossaudio" >&5
2243 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2246 else
2247 ac_save_LIBS="$LIBS"
2248 LIBS="-lossaudio $LIBS"
2249 cat > conftest.$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2252 /* Override any gcc2 internal prototype to avoid an error. */
2253 /* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2255 char _oss_ioctl();
2257 int main() {
2258 _oss_ioctl()
2259 ; return 0; }
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 rm -rf conftest*
2263 eval "ac_cv_lib_$ac_lib_var=yes"
2264 else
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 eval "ac_cv_lib_$ac_lib_var=no"
2270 rm -f conftest*
2271 LIBS="$ac_save_LIBS"
2274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2277 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2278 cat >> confdefs.h <<EOF
2279 #define $ac_tr_lib 1
2282 LIBS="-lossaudio $LIBS"
2284 else
2285 echo "$ac_t""no" 1>&6
2288 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2289 echo "configure:2290: checking for iswalnum in -lw" >&5
2290 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2293 else
2294 ac_save_LIBS="$LIBS"
2295 LIBS="-lw $LIBS"
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2299 /* Override any gcc2 internal prototype to avoid an error. */
2300 /* We use char because int might match the return type of a gcc2
2301 builtin and then its argument prototype would still apply. */
2302 char iswalnum();
2304 int main() {
2305 iswalnum()
2306 ; return 0; }
2308 if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309 rm -rf conftest*
2310 eval "ac_cv_lib_$ac_lib_var=yes"
2311 else
2312 echo "configure: failed program was:" >&5
2313 cat conftest.$ac_ext >&5
2314 rm -rf conftest*
2315 eval "ac_cv_lib_$ac_lib_var=no"
2317 rm -f conftest*
2318 LIBS="$ac_save_LIBS"
2321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2325 cat >> confdefs.h <<EOF
2326 #define $ac_tr_lib 1
2329 LIBS="-lw $LIBS"
2331 else
2332 echo "$ac_t""no" 1>&6
2335 for ac_func in gethostbyname
2337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_func" >&5
2339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341 else
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 /* System header to define __stub macros and hopefully few prototypes,
2346 which can conflict with char $ac_func(); below. */
2347 #include <assert.h>
2348 /* Override any gcc2 internal prototype to avoid an error. */
2349 /* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2351 char $ac_func();
2353 int main() {
2355 /* The GNU C library defines this for functions which it implements
2356 to always fail with ENOSYS. Some functions are actually named
2357 something starting with __ and the normal name is an alias. */
2358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2359 choke me
2360 #else
2361 $ac_func();
2362 #endif
2364 ; return 0; }
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2367 rm -rf conftest*
2368 eval "ac_cv_func_$ac_func=yes"
2369 else
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 rm -rf conftest*
2373 eval "ac_cv_func_$ac_func=no"
2375 rm -f conftest*
2378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_func 1
2385 else
2386 echo "$ac_t""no" 1>&6
2387 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2388 echo "configure:2389: checking for gethostbyname in -lnsl" >&5
2389 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2392 else
2393 ac_save_LIBS="$LIBS"
2394 LIBS="-lnsl -lsocket $LIBS"
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 /* Override any gcc2 internal prototype to avoid an error. */
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2401 char gethostbyname();
2403 int main() {
2404 gethostbyname()
2405 ; return 0; }
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 rm -rf conftest*
2409 eval "ac_cv_lib_$ac_lib_var=yes"
2410 else
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2413 rm -rf conftest*
2414 eval "ac_cv_lib_$ac_lib_var=no"
2416 rm -f conftest*
2417 LIBS="$ac_save_LIBS"
2420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2423 else
2424 echo "$ac_t""no" 1>&6
2425 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2426 echo "configure:2427: checking for gethostbyname in -lsocket" >&5
2427 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2430 else
2431 ac_save_LIBS="$LIBS"
2432 LIBS="-lsocket -lnsl $LIBS"
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char gethostbyname();
2441 int main() {
2442 gethostbyname()
2443 ; return 0; }
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2446 rm -rf conftest*
2447 eval "ac_cv_lib_$ac_lib_var=yes"
2448 else
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -rf conftest*
2452 eval "ac_cv_lib_$ac_lib_var=no"
2454 rm -f conftest*
2455 LIBS="$ac_save_LIBS"
2458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2460 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2461 else
2462 echo "$ac_t""no" 1>&6
2468 done
2470 for ac_func in connect
2472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_func" >&5
2474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476 else
2477 cat > conftest.$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 /* System header to define __stub macros and hopefully few prototypes,
2481 which can conflict with char $ac_func(); below. */
2482 #include <assert.h>
2483 /* Override any gcc2 internal prototype to avoid an error. */
2484 /* We use char because int might match the return type of a gcc2
2485 builtin and then its argument prototype would still apply. */
2486 char $ac_func();
2488 int main() {
2490 /* The GNU C library defines this for functions which it implements
2491 to always fail with ENOSYS. Some functions are actually named
2492 something starting with __ and the normal name is an alias. */
2493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2494 choke me
2495 #else
2496 $ac_func();
2497 #endif
2499 ; return 0; }
2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2502 rm -rf conftest*
2503 eval "ac_cv_func_$ac_func=yes"
2504 else
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2507 rm -rf conftest*
2508 eval "ac_cv_func_$ac_func=no"
2510 rm -f conftest*
2513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2514 echo "$ac_t""yes" 1>&6
2515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2516 cat >> confdefs.h <<EOF
2517 #define $ac_tr_func 1
2520 else
2521 echo "$ac_t""no" 1>&6
2522 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2523 echo "configure:2524: checking for connect in -lsocket" >&5
2524 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2527 else
2528 ac_save_LIBS="$LIBS"
2529 LIBS="-lsocket $LIBS"
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 /* Override any gcc2 internal prototype to avoid an error. */
2534 /* We use char because int might match the return type of a gcc2
2535 builtin and then its argument prototype would still apply. */
2536 char connect();
2538 int main() {
2539 connect()
2540 ; return 0; }
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2543 rm -rf conftest*
2544 eval "ac_cv_lib_$ac_lib_var=yes"
2545 else
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 rm -rf conftest*
2549 eval "ac_cv_lib_$ac_lib_var=no"
2551 rm -f conftest*
2552 LIBS="$ac_save_LIBS"
2555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
2557 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2559 cat >> confdefs.h <<EOF
2560 #define $ac_tr_lib 1
2563 LIBS="-lsocket $LIBS"
2565 else
2566 echo "$ac_t""no" 1>&6
2570 done
2572 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2573 echo "configure:2574: checking for setrunelocale in -lxpg4" >&5
2574 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2577 else
2578 ac_save_LIBS="$LIBS"
2579 LIBS="-lxpg4 $LIBS"
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 /* Override any gcc2 internal prototype to avoid an error. */
2584 /* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586 char setrunelocale();
2588 int main() {
2589 setrunelocale()
2590 ; return 0; }
2592 if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2593 rm -rf conftest*
2594 eval "ac_cv_lib_$ac_lib_var=yes"
2595 else
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 rm -rf conftest*
2599 eval "ac_cv_lib_$ac_lib_var=no"
2601 rm -f conftest*
2602 LIBS="$ac_save_LIBS"
2605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2609 cat >> confdefs.h <<EOF
2610 #define $ac_tr_lib 1
2613 LIBS="-lxpg4 $LIBS"
2615 else
2616 echo "$ac_t""no" 1>&6
2619 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2620 echo "configure:2621: checking for mmap in -lmmap" >&5
2621 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2624 else
2625 ac_save_LIBS="$LIBS"
2626 LIBS="-lmmap $LIBS"
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 /* Override any gcc2 internal prototype to avoid an error. */
2631 /* We use char because int might match the return type of a gcc2
2632 builtin and then its argument prototype would still apply. */
2633 char mmap();
2635 int main() {
2636 mmap()
2637 ; return 0; }
2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2640 rm -rf conftest*
2641 eval "ac_cv_lib_$ac_lib_var=yes"
2642 else
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 rm -rf conftest*
2646 eval "ac_cv_lib_$ac_lib_var=no"
2648 rm -f conftest*
2649 LIBS="$ac_save_LIBS"
2652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2655 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2656 cat >> confdefs.h <<EOF
2657 #define $ac_tr_lib 1
2660 LIBS="-lmmap $LIBS"
2662 else
2663 echo "$ac_t""no" 1>&6
2666 for ac_func in openpty
2668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_func" >&5
2670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 /* System header to define __stub macros and hopefully few prototypes,
2677 which can conflict with char $ac_func(); below. */
2678 #include <assert.h>
2679 /* Override any gcc2 internal prototype to avoid an error. */
2680 /* We use char because int might match the return type of a gcc2
2681 builtin and then its argument prototype would still apply. */
2682 char $ac_func();
2684 int main() {
2686 /* The GNU C library defines this for functions which it implements
2687 to always fail with ENOSYS. Some functions are actually named
2688 something starting with __ and the normal name is an alias. */
2689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2690 choke me
2691 #else
2692 $ac_func();
2693 #endif
2695 ; return 0; }
2697 if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2698 rm -rf conftest*
2699 eval "ac_cv_func_$ac_func=yes"
2700 else
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 rm -rf conftest*
2704 eval "ac_cv_func_$ac_func=no"
2706 rm -f conftest*
2709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2712 cat >> confdefs.h <<EOF
2713 #define $ac_tr_func 1
2716 else
2717 echo "$ac_t""no" 1>&6
2718 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2719 echo "configure:2720: checking for openpty in -lutil" >&5
2720 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2723 else
2724 ac_save_LIBS="$LIBS"
2725 LIBS="-lutil $LIBS"
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 /* Override any gcc2 internal prototype to avoid an error. */
2730 /* We use char because int might match the return type of a gcc2
2731 builtin and then its argument prototype would still apply. */
2732 char openpty();
2734 int main() {
2735 openpty()
2736 ; return 0; }
2738 if { (eval echo configure:2739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2739 rm -rf conftest*
2740 eval "ac_cv_lib_$ac_lib_var=yes"
2741 else
2742 echo "configure: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 rm -rf conftest*
2745 eval "ac_cv_lib_$ac_lib_var=no"
2747 rm -f conftest*
2748 LIBS="$ac_save_LIBS"
2751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 cat >> confdefs.h <<\EOF
2754 #define HAVE_OPENPTY 1
2757 LIBS="$LIBS -lutil"
2759 else
2760 echo "$ac_t""no" 1>&6
2764 done
2767 for ac_hdr in dlfcn.h
2769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_hdr" >&5
2772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774 else
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 #include <$ac_hdr>
2780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2781 { (eval echo configure:2782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2783 if test -z "$ac_err"; then
2784 rm -rf conftest*
2785 eval "ac_cv_header_$ac_safe=yes"
2786 else
2787 echo "$ac_err" >&5
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 rm -rf conftest*
2791 eval "ac_cv_header_$ac_safe=no"
2793 rm -f conftest*
2795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2798 cat >> confdefs.h <<EOF
2799 #define $ac_tr_hdr 1
2801 for ac_func in dlopen
2803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2804 echo "configure:2805: checking for $ac_func" >&5
2805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2807 else
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 /* System header to define __stub macros and hopefully few prototypes,
2812 which can conflict with char $ac_func(); below. */
2813 #include <assert.h>
2814 /* Override any gcc2 internal prototype to avoid an error. */
2815 /* We use char because int might match the return type of a gcc2
2816 builtin and then its argument prototype would still apply. */
2817 char $ac_func();
2819 int main() {
2821 /* The GNU C library defines this for functions which it implements
2822 to always fail with ENOSYS. Some functions are actually named
2823 something starting with __ and the normal name is an alias. */
2824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2825 choke me
2826 #else
2827 $ac_func();
2828 #endif
2830 ; return 0; }
2832 if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2833 rm -rf conftest*
2834 eval "ac_cv_func_$ac_func=yes"
2835 else
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2838 rm -rf conftest*
2839 eval "ac_cv_func_$ac_func=no"
2841 rm -f conftest*
2844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2847 cat >> confdefs.h <<EOF
2848 #define $ac_tr_func 1
2850 cat >> confdefs.h <<\EOF
2851 #define HAVE_DL_API 1
2854 else
2855 echo "$ac_t""no" 1>&6
2856 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2857 echo "configure:2858: checking for dlopen in -ldl" >&5
2858 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2861 else
2862 ac_save_LIBS="$LIBS"
2863 LIBS="-ldl $LIBS"
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 /* Override any gcc2 internal prototype to avoid an error. */
2868 /* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2870 char dlopen();
2872 int main() {
2873 dlopen()
2874 ; return 0; }
2876 if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2877 rm -rf conftest*
2878 eval "ac_cv_lib_$ac_lib_var=yes"
2879 else
2880 echo "configure: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2882 rm -rf conftest*
2883 eval "ac_cv_lib_$ac_lib_var=no"
2885 rm -f conftest*
2886 LIBS="$ac_save_LIBS"
2889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 cat >> confdefs.h <<\EOF
2892 #define HAVE_DL_API 1
2895 LIBS="$LIBS -ldl"
2896 else
2897 echo "$ac_t""no" 1>&6
2898 LIBEXT="a"
2904 done
2906 else
2907 echo "$ac_t""no" 1>&6
2908 LIBEXT="a"
2911 done
2915 X_DLLS=""
2917 XFILES=""
2919 DGA_SRCS=""
2921 DGA2_SRCS=""
2923 MESA_SRCS=""
2924 if test "$have_x" = "yes"
2925 then
2926 XLIB="-lXext -lX11"
2927 ac_save_CPPFLAGS="$CPPFLAGS"
2928 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2930 for ac_hdr in X11/xpm.h
2932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2934 echo "configure:2935: checking for $ac_hdr" >&5
2935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2937 else
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2941 #include <$ac_hdr>
2943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2944 { (eval echo configure:2945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2946 if test -z "$ac_err"; then
2947 rm -rf conftest*
2948 eval "ac_cv_header_$ac_safe=yes"
2949 else
2950 echo "$ac_err" >&5
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 rm -rf conftest*
2954 eval "ac_cv_header_$ac_safe=no"
2956 rm -f conftest*
2958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2959 echo "$ac_t""yes" 1>&6
2960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2961 cat >> confdefs.h <<EOF
2962 #define $ac_tr_hdr 1
2965 else
2966 echo "$ac_t""no" 1>&6
2968 done
2970 if test "$ac_cv_header_X11_xpm_h" = "yes"
2971 then
2972 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2973 echo "configure:2974: checking for XpmCreatePixmapFromData in -lXpm" >&5
2974 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2977 else
2978 ac_save_LIBS="$LIBS"
2979 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 /* Override any gcc2 internal prototype to avoid an error. */
2984 /* We use char because int might match the return type of a gcc2
2985 builtin and then its argument prototype would still apply. */
2986 char XpmCreatePixmapFromData();
2988 int main() {
2989 XpmCreatePixmapFromData()
2990 ; return 0; }
2992 if { (eval echo configure:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2993 rm -rf conftest*
2994 eval "ac_cv_lib_$ac_lib_var=yes"
2995 else
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2998 rm -rf conftest*
2999 eval "ac_cv_lib_$ac_lib_var=no"
3001 rm -f conftest*
3002 LIBS="$ac_save_LIBS"
3005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3006 echo "$ac_t""yes" 1>&6
3007 cat >> confdefs.h <<\EOF
3008 #define HAVE_LIBXXPM 1
3010 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
3011 else
3012 echo "$ac_t""no" 1>&6
3015 else
3016 echo "When compiling with X support, you need the Xpm library, or"
3017 echo "WINE will not work. This Xpm library is within the following RPM,"
3018 echo "which you need to install:"
3019 echo "Redhat : xpm, xpm-devel"
3020 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
3021 echo "SuSE : xpm"
3022 echo "Debian/Corel Linux: xpm4g, xpm4g-dev"
3023 echo
3024 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3025 echo "the directory /contrib/libraries."
3026 echo
3027 exit 1
3031 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
3033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3035 echo "configure:3036: checking for $ac_hdr" >&5
3036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3038 else
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3042 #include <$ac_hdr>
3044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3045 { (eval echo configure:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3047 if test -z "$ac_err"; then
3048 rm -rf conftest*
3049 eval "ac_cv_header_$ac_safe=yes"
3050 else
3051 echo "$ac_err" >&5
3052 echo "configure: failed program was:" >&5
3053 cat conftest.$ac_ext >&5
3054 rm -rf conftest*
3055 eval "ac_cv_header_$ac_safe=no"
3057 rm -f conftest*
3059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3060 echo "$ac_t""yes" 1>&6
3061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3062 cat >> confdefs.h <<EOF
3063 #define $ac_tr_hdr 1
3066 else
3067 echo "$ac_t""no" 1>&6
3069 done
3071 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3072 then
3073 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3074 echo "configure:3075: checking for XShmQueryExtension in -lXext" >&5
3075 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078 else
3079 ac_save_LIBS="$LIBS"
3080 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 /* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3087 char XShmQueryExtension();
3089 int main() {
3090 XShmQueryExtension()
3091 ; return 0; }
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 rm -rf conftest*
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3096 else
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3099 rm -rf conftest*
3100 eval "ac_cv_lib_$ac_lib_var=no"
3102 rm -f conftest*
3103 LIBS="$ac_save_LIBS"
3106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 cat >> confdefs.h <<\EOF
3109 #define HAVE_LIBXXSHM 1
3112 else
3113 echo "$ac_t""no" 1>&6
3117 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
3119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_hdr" >&5
3122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3124 else
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #include <$ac_hdr>
3130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3131 { (eval echo configure:3132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3133 if test -z "$ac_err"; then
3134 rm -rf conftest*
3135 eval "ac_cv_header_$ac_safe=yes"
3136 else
3137 echo "$ac_err" >&5
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3140 rm -rf conftest*
3141 eval "ac_cv_header_$ac_safe=no"
3143 rm -f conftest*
3145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3146 echo "$ac_t""yes" 1>&6
3147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3148 cat >> confdefs.h <<EOF
3149 #define $ac_tr_hdr 1
3152 else
3153 echo "$ac_t""no" 1>&6
3155 done
3157 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3158 then
3159 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3160 echo "configure:3161: checking for XDGAQueryExtension in -lXxf86dga" >&5
3161 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164 else
3165 ac_save_LIBS="$LIBS"
3166 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3167 $LIBS"
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 /* Override any gcc2 internal prototype to avoid an error. */
3172 /* We use char because int might match the return type of a gcc2
3173 builtin and then its argument prototype would still apply. */
3174 char XDGAQueryExtension();
3176 int main() {
3177 XDGAQueryExtension()
3178 ; return 0; }
3180 if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3181 rm -rf conftest*
3182 eval "ac_cv_lib_$ac_lib_var=yes"
3183 else
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 rm -rf conftest*
3187 eval "ac_cv_lib_$ac_lib_var=no"
3189 rm -f conftest*
3190 LIBS="$ac_save_LIBS"
3193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3194 echo "$ac_t""yes" 1>&6
3195 cat >> confdefs.h <<\EOF
3196 #define HAVE_LIBXXF86DGA2 1
3199 cat >> confdefs.h <<\EOF
3200 #define HAVE_LIBXXF86DGA 1
3203 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3204 DGA_SRCS='$(DGA_SRCS)'
3205 DGA2_SRCS='$(DGA2_SRCS)'
3207 else
3208 echo "$ac_t""no" 1>&6
3211 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3212 then
3213 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3214 echo "configure:3215: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3215 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3218 else
3219 ac_save_LIBS="$LIBS"
3220 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3227 char XF86DGAQueryExtension();
3229 int main() {
3230 XF86DGAQueryExtension()
3231 ; return 0; }
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3234 rm -rf conftest*
3235 eval "ac_cv_lib_$ac_lib_var=yes"
3236 else
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3239 rm -rf conftest*
3240 eval "ac_cv_lib_$ac_lib_var=no"
3242 rm -f conftest*
3243 LIBS="$ac_save_LIBS"
3246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3247 echo "$ac_t""yes" 1>&6
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_LIBXXF86DGA 1
3252 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3253 DGA_SRCS='$(DGA_SRCS)'
3255 else
3256 echo "$ac_t""no" 1>&6
3262 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
3264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_hdr" >&5
3267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3269 else
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #include <$ac_hdr>
3275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3276 { (eval echo configure:3277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3278 if test -z "$ac_err"; then
3279 rm -rf conftest*
3280 eval "ac_cv_header_$ac_safe=yes"
3281 else
3282 echo "$ac_err" >&5
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 rm -rf conftest*
3286 eval "ac_cv_header_$ac_safe=no"
3288 rm -f conftest*
3290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3293 cat >> confdefs.h <<EOF
3294 #define $ac_tr_hdr 1
3297 else
3298 echo "$ac_t""no" 1>&6
3300 done
3302 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3303 then
3304 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3305 echo "configure:3306: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3306 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3309 else
3310 ac_save_LIBS="$LIBS"
3311 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 /* Override any gcc2 internal prototype to avoid an error. */
3316 /* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3318 char XF86VidModeQueryExtension();
3320 int main() {
3321 XF86VidModeQueryExtension()
3322 ; return 0; }
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3325 rm -rf conftest*
3326 eval "ac_cv_lib_$ac_lib_var=yes"
3327 else
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3330 rm -rf conftest*
3331 eval "ac_cv_lib_$ac_lib_var=no"
3333 rm -f conftest*
3334 LIBS="$ac_save_LIBS"
3337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 cat >> confdefs.h <<\EOF
3340 #define HAVE_LIBXXF86VM 1
3342 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3343 else
3344 echo "$ac_t""no" 1>&6
3349 if test $OPENGL = "yes" -o $OPENGL = "normal"
3350 then
3351 for ac_hdr in GL/gl.h GL/glx.h
3353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3355 echo "configure:3356: checking for $ac_hdr" >&5
3356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3358 else
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 #include <$ac_hdr>
3364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3365 { (eval echo configure:3366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3367 if test -z "$ac_err"; then
3368 rm -rf conftest*
3369 eval "ac_cv_header_$ac_safe=yes"
3370 else
3371 echo "$ac_err" >&5
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3374 rm -rf conftest*
3375 eval "ac_cv_header_$ac_safe=no"
3377 rm -f conftest*
3379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3380 echo "$ac_t""yes" 1>&6
3381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3382 cat >> confdefs.h <<EOF
3383 #define $ac_tr_hdr 1
3386 else
3387 echo "$ac_t""no" 1>&6
3389 done
3391 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3392 then
3393 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3394 echo "configure:3395: checking "for up-to-date OpenGL version"" >&5
3395 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397 else
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 #include <GL/gl.h>
3402 int main() {
3403 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3404 ; return 0; }
3406 if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 rm -rf conftest*
3408 wine_cv_mesa_version_OK="yes"
3409 else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 wine_cv_mesa_version_OK="no"
3416 rm -f conftest*
3420 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3422 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3423 echo "configure:3424: checking "for thread-safe OpenGL version"" >&5
3424 if eval "test \"`echo '$''{'wine_cv_mesa_version_threadsafe'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3426 else
3427 saved_libs=$LIBS
3428 LIBS="$X_LIBS -lGL"
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3433 int main() {
3434 pthread_getspecific();
3435 ; return 0; }
3437 if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3438 rm -rf conftest*
3439 wine_cv_mesa_version_threadsafe="yes"
3440 else
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 rm -rf conftest*
3444 wine_cv_mesa_version_threadsafe="no"
3446 rm -f conftest*
3447 LIBS=$saved_libs
3451 echo "$ac_t""$wine_cv_mesa_version_threadsafe" 1>&6
3453 if test "$wine_cv_mesa_version_OK" = "yes" -a \( "$wine_cv_mesa_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3454 then
3455 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3456 echo "configure:3457: checking for glXCreateContext in -lGL" >&5
3457 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3460 else
3461 ac_save_LIBS="$LIBS"
3462 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 /* Override any gcc2 internal prototype to avoid an error. */
3467 /* We use char because int might match the return type of a gcc2
3468 builtin and then its argument prototype would still apply. */
3469 char glXCreateContext();
3471 int main() {
3472 glXCreateContext()
3473 ; return 0; }
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3476 rm -rf conftest*
3477 eval "ac_cv_lib_$ac_lib_var=yes"
3478 else
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3481 rm -rf conftest*
3482 eval "ac_cv_lib_$ac_lib_var=no"
3484 rm -f conftest*
3485 LIBS="$ac_save_LIBS"
3488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3489 echo "$ac_t""yes" 1>&6
3490 cat >> confdefs.h <<\EOF
3491 #define HAVE_LIBMESAGL 1
3494 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3495 MESA_SRCS='$(MESA_SRCS)'
3497 else
3498 echo "$ac_t""no" 1>&6
3502 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3503 then
3504 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3505 echo "configure:3506: checking for glXCreateContext in -lMesaGL" >&5
3506 ac_lib_var=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3509 else
3510 ac_save_LIBS="$LIBS"
3511 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 /* Override any gcc2 internal prototype to avoid an error. */
3516 /* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3518 char glXCreateContext();
3520 int main() {
3521 glXCreateContext()
3522 ; return 0; }
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 rm -rf conftest*
3526 eval "ac_cv_lib_$ac_lib_var=yes"
3527 else
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 rm -rf conftest*
3531 eval "ac_cv_lib_$ac_lib_var=no"
3533 rm -f conftest*
3534 LIBS="$ac_save_LIBS"
3537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3539 cat >> confdefs.h <<\EOF
3540 #define HAVE_LIBMESAGL 1
3543 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3544 MESA_SRCS='$(MESA_SRCS)'
3546 else
3547 echo "$ac_t""no" 1>&6
3552 echo $ac_n "checking "for the OpenGL Color Index extension"""... $ac_c" 1>&6
3553 echo "configure:3554: checking "for the OpenGL Color Index extension"" >&5
3554 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3556 else
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 #include <GL/gl.h>
3561 int main() {
3562 GLenum test = GL_COLOR_INDEX8_EXT;
3563 ; return 0; }
3565 if { (eval echo configure:3566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3566 rm -rf conftest*
3567 cat >> confdefs.h <<\EOF
3568 #define HAVE_GL_COLOR_TABLE 1
3571 else
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3575 rm -f conftest*
3578 echo "$ac_t""$dummy" 1>&6
3580 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3581 then
3582 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3583 echo "configure:3584: checking for glColorTableEXT in -lMesaGL" >&5
3584 ac_lib_var=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3587 else
3588 ac_save_LIBS="$LIBS"
3589 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 /* Override any gcc2 internal prototype to avoid an error. */
3594 /* We use char because int might match the return type of a gcc2
3595 builtin and then its argument prototype would still apply. */
3596 char glColorTableEXT();
3598 int main() {
3599 glColorTableEXT()
3600 ; return 0; }
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3603 rm -rf conftest*
3604 eval "ac_cv_lib_$ac_lib_var=yes"
3605 else
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3608 rm -rf conftest*
3609 eval "ac_cv_lib_$ac_lib_var=no"
3611 rm -f conftest*
3612 LIBS="$ac_save_LIBS"
3615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3616 echo "$ac_t""yes" 1>&6
3617 cat >> confdefs.h <<\EOF
3618 #define HAVE_GL_PALETTED_TEXTURE 1
3621 else
3622 echo "$ac_t""no" 1>&6
3625 else
3626 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3627 echo "configure:3628: checking for glColorTableEXT in -lGL" >&5
3628 ac_lib_var=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3631 else
3632 ac_save_LIBS="$LIBS"
3633 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3640 char glColorTableEXT();
3642 int main() {
3643 glColorTableEXT()
3644 ; return 0; }
3646 if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3647 rm -rf conftest*
3648 eval "ac_cv_lib_$ac_lib_var=yes"
3649 else
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3652 rm -rf conftest*
3653 eval "ac_cv_lib_$ac_lib_var=no"
3655 rm -f conftest*
3656 LIBS="$ac_save_LIBS"
3659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3661 cat >> confdefs.h <<\EOF
3662 #define HAVE_GL_PALETTED_TEXTURE 1
3665 else
3666 echo "$ac_t""no" 1>&6
3674 CPPFLAGS="$ac_save_CPPFLAGS"
3675 X_DLLS='$(X_DLLS)'
3676 XFILES='$(XFILES)'
3677 else
3678 XLIB=""
3679 X_CFLAGS=""
3680 X_LIBS=""
3683 if test "$CURSES" = "yes"
3684 then
3685 for ac_hdr in ncurses.h
3687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_hdr" >&5
3690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3692 else
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 #include <$ac_hdr>
3698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3699 { (eval echo configure:3700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3701 if test -z "$ac_err"; then
3702 rm -rf conftest*
3703 eval "ac_cv_header_$ac_safe=yes"
3704 else
3705 echo "$ac_err" >&5
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 rm -rf conftest*
3709 eval "ac_cv_header_$ac_safe=no"
3711 rm -f conftest*
3713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3716 cat >> confdefs.h <<EOF
3717 #define $ac_tr_hdr 1
3720 else
3721 echo "$ac_t""no" 1>&6
3723 done
3725 if test "$ac_cv_header_ncurses_h" = "yes"
3726 then
3727 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3728 echo "configure:3729: checking for waddch in -lncurses" >&5
3729 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3732 else
3733 ac_save_LIBS="$LIBS"
3734 LIBS="-lncurses $LIBS"
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 /* Override any gcc2 internal prototype to avoid an error. */
3739 /* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */
3741 char waddch();
3743 int main() {
3744 waddch()
3745 ; return 0; }
3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3748 rm -rf conftest*
3749 eval "ac_cv_lib_$ac_lib_var=yes"
3750 else
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3753 rm -rf conftest*
3754 eval "ac_cv_lib_$ac_lib_var=no"
3756 rm -f conftest*
3757 LIBS="$ac_save_LIBS"
3760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3762 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3764 cat >> confdefs.h <<EOF
3765 #define $ac_tr_lib 1
3768 LIBS="-lncurses $LIBS"
3770 else
3771 echo "$ac_t""no" 1>&6
3775 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3776 then
3777 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3778 echo "configure:3779: checking for resizeterm in -lncurses" >&5
3779 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3782 else
3783 ac_save_LIBS="$LIBS"
3784 LIBS="-lncurses $LIBS"
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3791 char resizeterm();
3793 int main() {
3794 resizeterm()
3795 ; return 0; }
3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3798 rm -rf conftest*
3799 eval "ac_cv_lib_$ac_lib_var=yes"
3800 else
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3803 rm -rf conftest*
3804 eval "ac_cv_lib_$ac_lib_var=no"
3806 rm -f conftest*
3807 LIBS="$ac_save_LIBS"
3810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 cat >> confdefs.h <<\EOF
3813 #define HAVE_RESIZETERM 1
3816 else
3817 echo "$ac_t""no" 1>&6
3820 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3821 echo "configure:3822: checking for getbkgd in -lncurses" >&5
3822 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825 else
3826 ac_save_LIBS="$LIBS"
3827 LIBS="-lncurses $LIBS"
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 /* Override any gcc2 internal prototype to avoid an error. */
3832 /* We use char because int might match the return type of a gcc2
3833 builtin and then its argument prototype would still apply. */
3834 char getbkgd();
3836 int main() {
3837 getbkgd()
3838 ; return 0; }
3840 if { (eval echo configure:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3841 rm -rf conftest*
3842 eval "ac_cv_lib_$ac_lib_var=yes"
3843 else
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 rm -rf conftest*
3847 eval "ac_cv_lib_$ac_lib_var=no"
3849 rm -f conftest*
3850 LIBS="$ac_save_LIBS"
3853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3854 echo "$ac_t""yes" 1>&6
3855 cat >> confdefs.h <<\EOF
3856 #define HAVE_GETBKGD 1
3859 else
3860 echo "$ac_t""no" 1>&6
3863 else
3864 for ac_hdr in curses.h
3866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3868 echo "configure:3869: checking for $ac_hdr" >&5
3869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3871 else
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 #include <$ac_hdr>
3877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3878 { (eval echo configure:3879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3880 if test -z "$ac_err"; then
3881 rm -rf conftest*
3882 eval "ac_cv_header_$ac_safe=yes"
3883 else
3884 echo "$ac_err" >&5
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 rm -rf conftest*
3888 eval "ac_cv_header_$ac_safe=no"
3890 rm -f conftest*
3892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3895 cat >> confdefs.h <<EOF
3896 #define $ac_tr_hdr 1
3899 else
3900 echo "$ac_t""no" 1>&6
3902 done
3904 if test "$ac_cv_header_curses_h" = "yes"
3905 then
3906 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3907 echo "configure:3908: checking for waddch in -lcurses" >&5
3908 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3911 else
3912 ac_save_LIBS="$LIBS"
3913 LIBS="-lcurses $LIBS"
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* Override any gcc2 internal prototype to avoid an error. */
3918 /* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3920 char waddch();
3922 int main() {
3923 waddch()
3924 ; return 0; }
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927 rm -rf conftest*
3928 eval "ac_cv_lib_$ac_lib_var=yes"
3929 else
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3932 rm -rf conftest*
3933 eval "ac_cv_lib_$ac_lib_var=no"
3935 rm -f conftest*
3936 LIBS="$ac_save_LIBS"
3939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3942 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3943 cat >> confdefs.h <<EOF
3944 #define $ac_tr_lib 1
3947 LIBS="-lcurses $LIBS"
3949 else
3950 echo "$ac_t""no" 1>&6
3953 if test "$ac_cv_lib_curses_waddch" = "yes"
3954 then
3955 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3956 echo "configure:3957: checking for resizeterm in -lcurses" >&5
3957 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3960 else
3961 ac_save_LIBS="$LIBS"
3962 LIBS="-lcurses $LIBS"
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969 char resizeterm();
3971 int main() {
3972 resizeterm()
3973 ; return 0; }
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3976 rm -rf conftest*
3977 eval "ac_cv_lib_$ac_lib_var=yes"
3978 else
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3981 rm -rf conftest*
3982 eval "ac_cv_lib_$ac_lib_var=no"
3984 rm -f conftest*
3985 LIBS="$ac_save_LIBS"
3988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 cat >> confdefs.h <<\EOF
3991 #define HAVE_RESIZETERM 1
3994 else
3995 echo "$ac_t""no" 1>&6
3998 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3999 echo "configure:4000: checking for getbkgd in -lcurses" >&5
4000 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
4001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4003 else
4004 ac_save_LIBS="$LIBS"
4005 LIBS="-lcurses $LIBS"
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 /* Override any gcc2 internal prototype to avoid an error. */
4010 /* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4012 char getbkgd();
4014 int main() {
4015 getbkgd()
4016 ; return 0; }
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4019 rm -rf conftest*
4020 eval "ac_cv_lib_$ac_lib_var=yes"
4021 else
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 rm -rf conftest*
4025 eval "ac_cv_lib_$ac_lib_var=no"
4027 rm -f conftest*
4028 LIBS="$ac_save_LIBS"
4031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4033 cat >> confdefs.h <<\EOF
4034 #define HAVE_GETBKGD 1
4037 else
4038 echo "$ac_t""no" 1>&6
4046 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4047 echo "configure:4048: checking "for GNU style IPX support"" >&5
4048 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #include <sys/socket.h>
4055 #include <netipx/ipx.h>
4056 int main() {
4057 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4058 ; return 0; }
4060 if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4061 rm -rf conftest*
4062 ac_cv_c_ipx_gnu="yes"
4063 else
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4066 rm -rf conftest*
4067 ac_cv_c_ipx_gnu="no"
4069 rm -f conftest*
4073 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4074 if test "$ac_cv_c_ipx_gnu" = "yes"
4075 then
4076 cat >> confdefs.h <<\EOF
4077 #define HAVE_IPX_GNU 1
4082 if test "$ac_cv_c_ipx_gnu" = "no"
4083 then
4084 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4085 echo "configure:4086: checking "for linux style IPX support"" >&5
4086 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4092 #include <sys/socket.h>
4093 #include <asm/types.h>
4094 #include <linux/ipx.h>
4095 int main() {
4096 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4097 ; return 0; }
4099 if { (eval echo configure:4100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4100 rm -rf conftest*
4101 ac_cv_c_ipx_linux="yes"
4102 else
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 rm -rf conftest*
4106 ac_cv_c_ipx_linux="no"
4108 rm -f conftest*
4112 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4113 if test "$ac_cv_c_ipx_linux" = "yes"
4114 then
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_IPX_LINUX 1
4122 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4126 echo "configure:4127: checking for $ac_hdr" >&5
4127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4129 else
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 #include <$ac_hdr>
4135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4136 { (eval echo configure:4137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4138 if test -z "$ac_err"; then
4139 rm -rf conftest*
4140 eval "ac_cv_header_$ac_safe=yes"
4141 else
4142 echo "$ac_err" >&5
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4145 rm -rf conftest*
4146 eval "ac_cv_header_$ac_safe=no"
4148 rm -f conftest*
4150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4153 cat >> confdefs.h <<EOF
4154 #define $ac_tr_hdr 1
4156 break
4157 else
4158 echo "$ac_t""no" 1>&6
4160 done
4163 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4164 echo "configure:4165: checking "for Open Sound System"" >&5
4165 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4167 else
4168 cat > conftest.$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4172 #if defined(HAVE_SYS_SOUNDCARD_H)
4173 #include <sys/soundcard.h>
4174 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4175 #include <machine/soundcard.h>
4176 #elif defined(HAVE_SOUNDCARD_H)
4177 #include <soundcard.h>
4178 #endif
4180 int main() {
4183 /* check for one of the Open Sound System specific SNDCTL_ defines */
4184 #if !defined(SNDCTL_DSP_STEREO)
4185 #error No open sound system
4186 #endif
4188 ; return 0; }
4190 if { (eval echo configure:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4191 rm -rf conftest*
4192 ac_cv_c_opensoundsystem="yes"
4193 else
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4196 rm -rf conftest*
4197 ac_cv_c_opensoundsystem="no"
4199 rm -f conftest*
4202 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4204 if test "$ac_cv_c_opensoundsystem" = "yes"
4205 then
4206 cat >> confdefs.h <<\EOF
4207 #define HAVE_OSS 1
4212 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4213 echo "configure:4214: checking "for Open Sound System/MIDI interface"" >&5
4214 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4216 else
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4221 #if defined(HAVE_SYS_SOUNDCARD_H)
4222 #include <sys/soundcard.h>
4223 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4224 #include <machine/soundcard.h>
4225 #elif defined(HAVE_SOUNDCARD_H)
4226 #include <soundcard.h>
4227 #endif
4229 int main() {
4232 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4233 #if !defined(SNDCTL_SEQ_SYNC)
4234 #error No open sound system MIDI interface
4235 #endif
4237 ; return 0; }
4239 if { (eval echo configure:4240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4240 rm -rf conftest*
4241 ac_cv_c_opensoundsystem_midi="yes"
4242 else
4243 echo "configure: failed program was:" >&5
4244 cat conftest.$ac_ext >&5
4245 rm -rf conftest*
4246 ac_cv_c_opensoundsystem_midi="no"
4248 rm -f conftest*
4251 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4253 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4254 then
4255 cat >> confdefs.h <<\EOF
4256 #define HAVE_OSS_MIDI 1
4261 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4264 if test "x${GCC}" = "xyes"
4265 then
4266 CFLAGS="$CFLAGS -Wall"
4267 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4268 echo "configure:4269: checking "for gcc strength-reduce bug"" >&5
4269 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4271 else
4272 if test "$cross_compiling" = yes; then
4273 ac_cv_c_gcc_strength_bug="yes"
4274 else
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4279 int main(void) {
4280 static int Array[3];
4281 unsigned int B = 3;
4282 int i;
4283 for(i=0; i<B; i++) Array[i] = i - 3;
4284 exit( Array[1] != -2 );
4287 if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4288 then
4289 ac_cv_c_gcc_strength_bug="no"
4290 else
4291 echo "configure: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4293 rm -fr conftest*
4294 ac_cv_c_gcc_strength_bug="yes"
4296 rm -fr conftest*
4301 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4302 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4303 then
4304 CFLAGS="$CFLAGS -fno-strength-reduce"
4309 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4310 echo "configure:4311: checking "whether external symbols need an underscore prefix"" >&5
4311 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4313 else
4314 saved_libs=$LIBS
4315 LIBS="conftest_asm.s $LIBS"
4316 cat > conftest_asm.s <<EOF
4317 .globl _ac_test
4318 _ac_test:
4319 .long 0
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 extern int ac_test;
4325 int main() {
4326 if (ac_test) return 1
4327 ; return 0; }
4329 if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4330 rm -rf conftest*
4331 ac_cv_c_extern_prefix="yes"
4332 else
4333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4335 rm -rf conftest*
4336 ac_cv_c_extern_prefix="no"
4338 rm -f conftest*
4339 LIBS=$saved_libs
4342 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4343 if test "$ac_cv_c_extern_prefix" = "yes"
4344 then
4345 cat >> confdefs.h <<\EOF
4346 #define NEED_UNDERSCORE_PREFIX 1
4352 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4353 echo "configure:4354: checking "whether assembler accepts .string"" >&5
4354 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4356 else
4357 saved_libs=$LIBS
4358 LIBS="conftest_asm.s $LIBS"
4359 cat > conftest_asm.s <<EOF
4360 .string "test"
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4366 int main() {
4368 ; return 0; }
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 rm -rf conftest*
4372 ac_cv_c_asm_string="yes"
4373 else
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4376 rm -rf conftest*
4377 ac_cv_c_asm_string="no"
4379 rm -f conftest*
4380 LIBS=$saved_libs
4383 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4384 if test "$ac_cv_c_asm_string" = "yes"
4385 then
4386 cat >> confdefs.h <<\EOF
4387 #define HAVE_ASM_STRING 1
4393 LDSHARED=""
4394 if test "$LIBEXT" = "so"
4395 then
4396 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4397 echo "configure:4398: checking "whether we can build a Linux dll"" >&5
4398 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4400 else
4401 saved_cflags=$CFLAGS
4402 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4407 int main() {
4408 return 1
4409 ; return 0; }
4411 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4412 rm -rf conftest*
4413 ac_cv_c_dll_linux="yes"
4414 else
4415 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4417 rm -rf conftest*
4418 ac_cv_c_dll_linux="no"
4420 rm -f conftest*
4421 CFLAGS=$saved_cflags
4425 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4426 if test "$ac_cv_c_dll_linux" = "yes"
4427 then
4428 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4429 else
4430 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4431 echo "configure:4432: checking whether we can build a UnixWare (Solaris) dll" >&5
4432 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4434 else
4435 saved_cflags=$CFLAGS
4436 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4441 int main() {
4442 return 1
4443 ; return 0; }
4445 if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4446 rm -rf conftest*
4447 ac_cv_c_dll_unixware="yes"
4448 else
4449 echo "configure: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4451 rm -rf conftest*
4452 ac_cv_c_dll_unixware="no"
4454 rm -f conftest*
4455 CFLAGS=$saved_cflags
4459 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4460 if test "$ac_cv_c_dll_unixware" = "yes"
4461 then
4462 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4463 else
4464 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4465 echo "configure:4466: checking "whether we can build a NetBSD dll"" >&5
4466 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4468 else
4469 saved_cflags=$CFLAGS
4470 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4475 int main() {
4476 return 1
4477 ; return 0; }
4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 rm -rf conftest*
4481 ac_cv_c_dll_netbsd="yes"
4482 else
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 rm -rf conftest*
4486 ac_cv_c_dll_netbsd="no"
4488 rm -f conftest*
4489 CFLAGS=$saved_cflags
4493 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4494 if test "$ac_cv_c_dll_netbsd" = "yes"
4495 then
4496 LDSHARED="ld -Bshareable -Bforcearchive"
4500 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4501 then
4502 LIBEXT="a"
4506 DLLFLAGS=""
4507 BUILDFLAGS=""
4509 if test "$LIBEXT" = "so"; then
4510 BUILDFLAGS="-pic"
4511 DLLFLAGS="-fPIC"
4512 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4513 else
4514 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine \$(X_LIBS) \$(XLIB)"
4515 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4516 echo "configure:4517: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4517 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4519 else
4520 saved_cflags=$CFLAGS
4521 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4526 int main() {
4527 return 1
4528 ; return 0; }
4530 if { (eval echo configure:4531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4531 rm -rf conftest*
4532 ac_cv_c_whole_archive="yes"
4533 else
4534 echo "configure: failed program was:" >&5
4535 cat conftest.$ac_ext >&5
4536 rm -rf conftest*
4537 ac_cv_c_whole_archive="no"
4539 rm -f conftest*
4540 CFLAGS=$saved_cflags
4544 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4545 if test "$ac_cv_c_whole_archive" = "yes"
4546 then
4547 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4548 else
4549 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4550 echo "configure:4551: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4551 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4553 else
4554 saved_cflags=$CFLAGS
4555 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4556 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4560 int main() {
4561 return 1
4562 ; return 0; }
4564 if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4565 rm -rf conftest*
4566 ac_cv_c_allextract="yes"
4567 else
4568 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4570 rm -rf conftest*
4571 ac_cv_c_allextract="no"
4573 rm -f conftest*
4574 CFLAGS=$saved_cflags
4578 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4579 if test "$ac_cv_c_allextract" = "yes"
4580 then
4581 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4593 wine_cv_libc_reentrant=no
4594 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4595 echo "configure:4596: checking "for reentrant libc: __errno_location"" >&5
4596 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4598 else
4599 if test "$cross_compiling" = yes; then
4600 wine_cv_libc_r__errno_location=yes
4601 else
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 int myerrno = 0;
4606 char buf[256];
4607 int *__errno_location(){return &myerrno;}
4608 main(){connect(0,buf,255); exit(!myerrno);}
4610 if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4611 then
4612 wine_cv_libc_r__errno_location=yes
4613 else
4614 echo "configure: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4616 rm -fr conftest*
4617 wine_cv_libc_r__errno_location=no
4619 rm -fr conftest*
4625 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4626 if test "$wine_cv_libc_r__errno_location" = "yes"
4627 then
4628 cat >> confdefs.h <<\EOF
4629 #define HAVE__ERRNO_LOCATION 1
4632 wine_cv_libc_reentrant=__errno_location
4634 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4635 echo "configure:4636: checking "for reentrant libc: __error"" >&5
4636 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4638 else
4639 if test "$cross_compiling" = yes; then
4640 wine_cv_libc_r__error=yes
4641 else
4642 cat > conftest.$ac_ext <<EOF
4643 #line 4644 "configure"
4644 #include "confdefs.h"
4645 int myerrno = 0;
4646 char buf[256];
4647 int *__error(){return &myerrno;}
4648 main(){connect(0,buf,255); exit(!myerrno);}
4650 if { (eval echo configure:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4651 then
4652 wine_cv_libc_r__error=yes
4653 else
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4656 rm -fr conftest*
4657 wine_cv_libc_r__error=no
4659 rm -fr conftest*
4665 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4666 if test "$wine_cv_libc_r__error" = "yes"
4667 then
4668 cat >> confdefs.h <<\EOF
4669 #define HAVE__ERROR 1
4672 wine_cv_libc_reentrant=__error
4674 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4675 echo "configure:4676: checking "for reentrant libc: ___errno"" >&5
4676 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4678 else
4679 if test "$cross_compiling" = yes; then
4680 wine_cv_libc_r___errno=yes
4681 else
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 int myerrno = 0;
4686 char buf[256];
4687 int *___errno(){return &myerrno;}
4688 main(){connect(0,buf,255); exit(!myerrno);}
4690 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4691 then
4692 wine_cv_libc_r___errno=yes
4693 else
4694 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 rm -fr conftest*
4697 wine_cv_libc_r___errno=no
4699 rm -fr conftest*
4705 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4706 if test "$wine_cv_libc_r___errno" = "yes"
4707 then
4708 cat >> confdefs.h <<\EOF
4709 #define HAVE___ERRNO 1
4712 wine_cv_libc_reentrant=___errno
4714 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4715 echo "configure:4716: checking "for reentrant libc: __thr_errno"" >&5
4716 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4718 else
4719 if test "$cross_compiling" = yes; then
4720 wine_cv_libc_r__thr_errno=yes
4721 else
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 int myerrno = 0;
4726 char buf[256];
4727 int *__thr_errno(){return &myerrno;}
4728 main(){connect(0,buf,255); exit(!myerrno);}
4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4731 then
4732 wine_cv_libc_r__thr_errno=yes
4733 else
4734 echo "configure: failed program was:" >&5
4735 cat conftest.$ac_ext >&5
4736 rm -fr conftest*
4737 wine_cv_libc_r__thr_errno=no
4739 rm -fr conftest*
4745 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4746 if test "$wine_cv_libc_r__thr_errno" = "yes"
4747 then
4748 cat >> confdefs.h <<\EOF
4749 #define HAVE__THR_ERRNO 1
4752 wine_cv_libc_reentrant=__thr_errno
4754 if test "$wine_cv_libc_reentrant" = "no"
4755 then
4756 cat >> confdefs.h <<\EOF
4757 #define NO_REENTRANT_LIBC 1
4763 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4764 then
4765 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4766 echo "configure:4767: checking "for reentrant X libraries"" >&5
4767 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4769 else
4770 if test "x$with_reentrant_x" = "xno"
4771 then
4772 wine_cv_x_reentrant=no
4773 else
4774 libX11_check=none
4775 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4776 if test -r $dir/libX11.so; then
4777 libX11_check="-D $dir/libX11.so"
4778 break 1
4780 if test -r $dir/libX11.a; then
4781 libX11_check="$dir/libX11.a"
4782 break 1
4784 done
4785 if test "$libX11_check" != "none"; then
4786 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4787 then
4788 wine_cv_x_reentrant=yes
4789 else
4790 wine_cv_x_reentrant=no
4792 else
4793 wine_cv_x_reentrant=unknown
4798 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4799 else
4800 wine_cv_x_reentrant=no
4802 if test "$wine_cv_x_reentrant" = "no"
4803 then
4804 cat >> confdefs.h <<\EOF
4805 #define NO_REENTRANT_X11 1
4811 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4812 echo "configure:4813: checking whether byte ordering is bigendian" >&5
4813 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4815 else
4816 ac_cv_c_bigendian=unknown
4817 # See if sys/param.h defines the BYTE_ORDER macro.
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4821 #include <sys/types.h>
4822 #include <sys/param.h>
4823 int main() {
4825 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4826 bogus endian macros
4827 #endif
4828 ; return 0; }
4830 if { (eval echo configure:4831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4831 rm -rf conftest*
4832 # It does; now see whether it defined to BIG_ENDIAN or not.
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 #include <sys/types.h>
4837 #include <sys/param.h>
4838 int main() {
4840 #if BYTE_ORDER != BIG_ENDIAN
4841 not big endian
4842 #endif
4843 ; return 0; }
4845 if { (eval echo configure:4846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 rm -rf conftest*
4847 ac_cv_c_bigendian=yes
4848 else
4849 echo "configure: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4851 rm -rf conftest*
4852 ac_cv_c_bigendian=no
4854 rm -f conftest*
4855 else
4856 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4859 rm -f conftest*
4860 if test $ac_cv_c_bigendian = unknown; then
4861 if test "$cross_compiling" = yes; then
4862 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4863 else
4864 cat > conftest.$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4867 main () {
4868 /* Are we little or big endian? From Harbison&Steele. */
4869 union
4871 long l;
4872 char c[sizeof (long)];
4873 } u;
4874 u.l = 1;
4875 exit (u.c[sizeof (long) - 1] == 1);
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4879 then
4880 ac_cv_c_bigendian=no
4881 else
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 rm -fr conftest*
4885 ac_cv_c_bigendian=yes
4887 rm -fr conftest*
4893 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4894 if test $ac_cv_c_bigendian = yes; then
4895 cat >> confdefs.h <<\EOF
4896 #define WORDS_BIGENDIAN 1
4903 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4904 # for constant arguments. Useless!
4905 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4906 echo "configure:4907: checking for working alloca.h" >&5
4907 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4909 else
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 #include <alloca.h>
4914 int main() {
4915 void *p = alloca(2 * sizeof(int));
4916 ; return 0; }
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4919 rm -rf conftest*
4920 ac_cv_header_alloca_h=yes
4921 else
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4924 rm -rf conftest*
4925 ac_cv_header_alloca_h=no
4927 rm -f conftest*
4930 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4931 if test $ac_cv_header_alloca_h = yes; then
4932 cat >> confdefs.h <<\EOF
4933 #define HAVE_ALLOCA_H 1
4938 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4939 echo "configure:4940: checking for alloca" >&5
4940 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4942 else
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4947 #ifdef __GNUC__
4948 # define alloca __builtin_alloca
4949 #else
4950 # ifdef _MSC_VER
4951 # include <malloc.h>
4952 # define alloca _alloca
4953 # else
4954 # if HAVE_ALLOCA_H
4955 # include <alloca.h>
4956 # else
4957 # ifdef _AIX
4958 #pragma alloca
4959 # else
4960 # ifndef alloca /* predefined by HP cc +Olibcalls */
4961 char *alloca ();
4962 # endif
4963 # endif
4964 # endif
4965 # endif
4966 #endif
4968 int main() {
4969 char *p = (char *) alloca(1);
4970 ; return 0; }
4972 if { (eval echo configure:4973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4973 rm -rf conftest*
4974 ac_cv_func_alloca_works=yes
4975 else
4976 echo "configure: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4978 rm -rf conftest*
4979 ac_cv_func_alloca_works=no
4981 rm -f conftest*
4984 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4985 if test $ac_cv_func_alloca_works = yes; then
4986 cat >> confdefs.h <<\EOF
4987 #define HAVE_ALLOCA 1
4992 if test $ac_cv_func_alloca_works = no; then
4993 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4994 # that cause trouble. Some versions do not even contain alloca or
4995 # contain a buggy version. If you still want to use their alloca,
4996 # use ar to extract alloca.o from them instead of compiling alloca.c.
4997 ALLOCA=alloca.${ac_objext}
4998 cat >> confdefs.h <<\EOF
4999 #define C_ALLOCA 1
5003 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5004 echo "configure:5005: checking whether alloca needs Cray hooks" >&5
5005 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5007 else
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 #if defined(CRAY) && ! defined(CRAY2)
5012 webecray
5013 #else
5014 wenotbecray
5015 #endif
5018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019 egrep "webecray" >/dev/null 2>&1; then
5020 rm -rf conftest*
5021 ac_cv_os_cray=yes
5022 else
5023 rm -rf conftest*
5024 ac_cv_os_cray=no
5026 rm -f conftest*
5030 echo "$ac_t""$ac_cv_os_cray" 1>&6
5031 if test $ac_cv_os_cray = yes; then
5032 for ac_func in _getb67 GETB67 getb67; do
5033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5034 echo "configure:5035: checking for $ac_func" >&5
5035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5037 else
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 /* System header to define __stub macros and hopefully few prototypes,
5042 which can conflict with char $ac_func(); below. */
5043 #include <assert.h>
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5047 char $ac_func();
5049 int main() {
5051 /* The GNU C library defines this for functions which it implements
5052 to always fail with ENOSYS. Some functions are actually named
5053 something starting with __ and the normal name is an alias. */
5054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5055 choke me
5056 #else
5057 $ac_func();
5058 #endif
5060 ; return 0; }
5062 if { (eval echo configure:5063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5063 rm -rf conftest*
5064 eval "ac_cv_func_$ac_func=yes"
5065 else
5066 echo "configure: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 rm -rf conftest*
5069 eval "ac_cv_func_$ac_func=no"
5071 rm -f conftest*
5074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5075 echo "$ac_t""yes" 1>&6
5076 cat >> confdefs.h <<EOF
5077 #define CRAY_STACKSEG_END $ac_func
5080 break
5081 else
5082 echo "$ac_t""no" 1>&6
5085 done
5088 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5089 echo "configure:5090: checking stack direction for C alloca" >&5
5090 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5092 else
5093 if test "$cross_compiling" = yes; then
5094 ac_cv_c_stack_direction=0
5095 else
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 find_stack_direction ()
5101 static char *addr = 0;
5102 auto char dummy;
5103 if (addr == 0)
5105 addr = &dummy;
5106 return find_stack_direction ();
5108 else
5109 return (&dummy > addr) ? 1 : -1;
5111 main ()
5113 exit (find_stack_direction() < 0);
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5117 then
5118 ac_cv_c_stack_direction=1
5119 else
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5122 rm -fr conftest*
5123 ac_cv_c_stack_direction=-1
5125 rm -fr conftest*
5130 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5131 cat >> confdefs.h <<EOF
5132 #define STACK_DIRECTION $ac_cv_c_stack_direction
5137 for ac_func in \
5138 __libc_fork \
5139 _lwp_create \
5140 clone \
5141 getnetbyaddr \
5142 getnetbyname \
5143 getpagesize \
5144 getprotobyname \
5145 getprotobynumber \
5146 getservbyport \
5147 getsockopt \
5148 inet_network \
5149 memmove \
5150 rfork \
5151 select \
5152 sendmsg \
5153 settimeofday \
5154 sigaltstack \
5155 statfs \
5156 strcasecmp \
5157 strerror \
5158 strncasecmp \
5159 tcgetattr \
5160 timegm \
5161 usleep \
5162 vfscanf \
5163 wait4 \
5164 waitpid \
5167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5168 echo "configure:5169: checking for $ac_func" >&5
5169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5171 else
5172 cat > conftest.$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5175 /* System header to define __stub macros and hopefully few prototypes,
5176 which can conflict with char $ac_func(); below. */
5177 #include <assert.h>
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5181 char $ac_func();
5183 int main() {
5185 /* The GNU C library defines this for functions which it implements
5186 to always fail with ENOSYS. Some functions are actually named
5187 something starting with __ and the normal name is an alias. */
5188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5189 choke me
5190 #else
5191 $ac_func();
5192 #endif
5194 ; return 0; }
5196 if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5197 rm -rf conftest*
5198 eval "ac_cv_func_$ac_func=yes"
5199 else
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5202 rm -rf conftest*
5203 eval "ac_cv_func_$ac_func=no"
5205 rm -f conftest*
5208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5209 echo "$ac_t""yes" 1>&6
5210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5211 cat >> confdefs.h <<EOF
5212 #define $ac_tr_func 1
5215 else
5216 echo "$ac_t""no" 1>&6
5218 done
5222 for ac_hdr in \
5223 a.out.h \
5224 a_out.h \
5225 arpa/inet.h \
5226 arpa/nameser.h \
5227 elf.h \
5228 float.h \
5229 libio.h \
5230 link.h \
5231 linux/cdrom.h \
5232 linux/joystick.h \
5233 linux/ucdrom.h \
5234 net/if.h \
5235 netinet/in.h \
5236 netinet/tcp.h \
5237 pty.h \
5238 resolv.h \
5239 sched.h \
5240 socket.h \
5241 strings.h \
5242 sys/cdio.h \
5243 sys/errno.h \
5244 sys/file.h \
5245 sys/filio.h \
5246 sys/ipc.h \
5247 sys/lwp.h \
5248 sys/mman.h \
5249 sys/modem.h \
5250 sys/mount.h \
5251 sys/msg.h \
5252 sys/param.h \
5253 sys/reg.h \
5254 sys/signal.h \
5255 sys/shm.h \
5256 sys/socket.h \
5257 sys/sockio.h \
5258 sys/statfs.h \
5259 sys/strtio.h \
5260 sys/syscall.h \
5261 sys/wait.h \
5262 sys/v86.h \
5263 sys/v86intr.h \
5264 sys/vfs.h \
5265 sys/vm86.h \
5266 syscall.h \
5267 ucontext.h \
5268 wctype.h \
5271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5273 echo "configure:5274: checking for $ac_hdr" >&5
5274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5276 else
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5280 #include <$ac_hdr>
5282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5283 { (eval echo configure:5284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5285 if test -z "$ac_err"; then
5286 rm -rf conftest*
5287 eval "ac_cv_header_$ac_safe=yes"
5288 else
5289 echo "$ac_err" >&5
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 rm -rf conftest*
5293 eval "ac_cv_header_$ac_safe=no"
5295 rm -f conftest*
5297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5300 cat >> confdefs.h <<EOF
5301 #define $ac_tr_hdr 1
5304 else
5305 echo "$ac_t""no" 1>&6
5307 done
5309 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5310 echo "configure:5311: checking whether stat file-mode macros are broken" >&5
5311 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5313 else
5314 cat > conftest.$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5317 #include <sys/types.h>
5318 #include <sys/stat.h>
5320 #if defined(S_ISBLK) && defined(S_IFDIR)
5321 # if S_ISBLK (S_IFDIR)
5322 You lose.
5323 # endif
5324 #endif
5326 #if defined(S_ISBLK) && defined(S_IFCHR)
5327 # if S_ISBLK (S_IFCHR)
5328 You lose.
5329 # endif
5330 #endif
5332 #if defined(S_ISLNK) && defined(S_IFREG)
5333 # if S_ISLNK (S_IFREG)
5334 You lose.
5335 # endif
5336 #endif
5338 #if defined(S_ISSOCK) && defined(S_IFREG)
5339 # if S_ISSOCK (S_IFREG)
5340 You lose.
5341 # endif
5342 #endif
5345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 egrep "You lose" >/dev/null 2>&1; then
5347 rm -rf conftest*
5348 ac_cv_header_stat_broken=yes
5349 else
5350 rm -rf conftest*
5351 ac_cv_header_stat_broken=no
5353 rm -f conftest*
5357 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5358 if test $ac_cv_header_stat_broken = yes; then
5359 cat >> confdefs.h <<\EOF
5360 #define STAT_MACROS_BROKEN 1
5367 echo $ac_n "checking for working const""... $ac_c" 1>&6
5368 echo "configure:5369: checking for working const" >&5
5369 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5371 else
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5376 int main() {
5378 /* Ultrix mips cc rejects this. */
5379 typedef int charset[2]; const charset x = {0,0};
5380 /* SunOS 4.1.1 cc rejects this. */
5381 char const *const *ccp;
5382 char **p;
5383 /* NEC SVR4.0.2 mips cc rejects this. */
5384 struct point {int x, y;};
5385 static struct point const zero = {0,0};
5386 /* AIX XL C 1.02.0.0 rejects this.
5387 It does not let you subtract one const X* pointer from another in an arm
5388 of an if-expression whose if-part is not a constant expression */
5389 const char *g = "string";
5390 ccp = &g + (g ? g-g : 0);
5391 /* HPUX 7.0 cc rejects these. */
5392 ++ccp;
5393 p = (char**) ccp;
5394 ccp = (char const *const *) p;
5395 { /* SCO 3.2v4 cc rejects this. */
5396 char *t;
5397 char const *s = 0 ? (char *) 0 : (char const *) 0;
5399 *t++ = 0;
5401 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5402 int x[] = {25, 17};
5403 const int *foo = &x[0];
5404 ++foo;
5406 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5407 typedef const int *iptr;
5408 iptr p = 0;
5409 ++p;
5411 { /* AIX XL C 1.02.0.0 rejects this saying
5412 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5413 struct s { int j; const int *ap[3]; };
5414 struct s *b; b->j = 5;
5416 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5417 const int foo = 10;
5420 ; return 0; }
5422 if { (eval echo configure:5423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5423 rm -rf conftest*
5424 ac_cv_c_const=yes
5425 else
5426 echo "configure: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 rm -rf conftest*
5429 ac_cv_c_const=no
5431 rm -f conftest*
5434 echo "$ac_t""$ac_cv_c_const" 1>&6
5435 if test $ac_cv_c_const = no; then
5436 cat >> confdefs.h <<\EOF
5437 #define const
5442 echo $ac_n "checking for inline""... $ac_c" 1>&6
5443 echo "configure:5444: checking for inline" >&5
5444 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5446 else
5447 ac_cv_c_inline=no
5448 for ac_kw in inline __inline__ __inline; do
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5453 int main() {
5454 } int $ac_kw foo() {
5455 ; return 0; }
5457 if { (eval echo configure:5458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5458 rm -rf conftest*
5459 ac_cv_c_inline=$ac_kw; break
5460 else
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 rm -f conftest*
5465 done
5469 echo "$ac_t""$ac_cv_c_inline" 1>&6
5470 case "$ac_cv_c_inline" in
5471 inline | yes) ;;
5472 no) cat >> confdefs.h <<\EOF
5473 #define inline
5476 *) cat >> confdefs.h <<EOF
5477 #define inline $ac_cv_c_inline
5480 esac
5482 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5483 echo "configure:5484: checking for ANSI C header files" >&5
5484 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5486 else
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 #include <stdlib.h>
5491 #include <stdarg.h>
5492 #include <string.h>
5493 #include <float.h>
5495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5496 { (eval echo configure:5497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5498 if test -z "$ac_err"; then
5499 rm -rf conftest*
5500 ac_cv_header_stdc=yes
5501 else
5502 echo "$ac_err" >&5
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 rm -rf conftest*
5506 ac_cv_header_stdc=no
5508 rm -f conftest*
5510 if test $ac_cv_header_stdc = yes; then
5511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 #include <string.h>
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 egrep "memchr" >/dev/null 2>&1; then
5520 else
5521 rm -rf conftest*
5522 ac_cv_header_stdc=no
5524 rm -f conftest*
5528 if test $ac_cv_header_stdc = yes; then
5529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 #include <stdlib.h>
5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536 egrep "free" >/dev/null 2>&1; then
5538 else
5539 rm -rf conftest*
5540 ac_cv_header_stdc=no
5542 rm -f conftest*
5546 if test $ac_cv_header_stdc = yes; then
5547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5548 if test "$cross_compiling" = yes; then
5550 else
5551 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5554 #include <ctype.h>
5555 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5558 int main () { int i; for (i = 0; i < 256; i++)
5559 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5560 exit (0); }
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5564 then
5566 else
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5569 rm -fr conftest*
5570 ac_cv_header_stdc=no
5572 rm -fr conftest*
5578 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5579 if test $ac_cv_header_stdc = yes; then
5580 cat >> confdefs.h <<\EOF
5581 #define STDC_HEADERS 1
5586 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5587 echo "configure:5588: checking for size_t" >&5
5588 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5590 else
5591 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5594 #include <sys/types.h>
5595 #if STDC_HEADERS
5596 #include <stdlib.h>
5597 #include <stddef.h>
5598 #endif
5600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5602 rm -rf conftest*
5603 ac_cv_type_size_t=yes
5604 else
5605 rm -rf conftest*
5606 ac_cv_type_size_t=no
5608 rm -f conftest*
5611 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5612 if test $ac_cv_type_size_t = no; then
5613 cat >> confdefs.h <<\EOF
5614 #define size_t unsigned
5619 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5620 echo "configure:5621: checking size of long long" >&5
5621 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5623 else
5624 if test "$cross_compiling" = yes; then
5625 ac_cv_sizeof_long_long=0
5626 else
5627 cat > conftest.$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5630 #include <stdio.h>
5631 main()
5633 FILE *f=fopen("conftestval", "w");
5634 if (!f) exit(1);
5635 fprintf(f, "%d\n", sizeof(long long));
5636 exit(0);
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5640 then
5641 ac_cv_sizeof_long_long=`cat conftestval`
5642 else
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5645 rm -fr conftest*
5646 ac_cv_sizeof_long_long=0
5648 rm -fr conftest*
5652 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5653 cat >> confdefs.h <<EOF
5654 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5659 if test "$ac_cv_header_linux_joystick_h" = "yes"
5660 then
5661 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5662 echo "configure:5663: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5663 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5664 echo $ac_n "(cached) $ac_c" 1>&6
5665 else
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5670 #include <sys/ioctl.h>
5671 #include <linux/joystick.h>
5673 struct js_event blub;
5674 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5675 #error "no 2.2 header"
5676 #endif
5678 int main() {
5679 /*empty*/
5680 ; return 0; }
5682 if { (eval echo configure:5683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5683 rm -rf conftest*
5684 wine_cv_linux_joystick_22_api=yes
5685 else
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5688 rm -rf conftest*
5689 wine_cv_linux_joystick_22_api=no
5691 rm -f conftest*
5695 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5696 if test "$wine_cv_linux_joystick_22_api" = "yes"
5697 then
5698 cat >> confdefs.h <<\EOF
5699 #define HAVE_LINUX_22_JOYSTICK_API 1
5706 if test "$ac_cv_header_sys_vfs_h" = "yes"
5707 then
5708 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5709 echo "configure:5710: checking "whether sys/vfs.h defines statfs"" >&5
5710 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5712 else
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5717 #include <sys/types.h>
5718 #ifdef HAVE_SYS_PARAM_H
5719 # include <sys/param.h>
5720 #endif
5721 #include <sys/vfs.h>
5723 int main() {
5725 struct statfs stfs;
5727 memset(&stfs,0,sizeof(stfs));
5729 ; return 0; }
5731 if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5732 rm -rf conftest*
5733 wine_cv_sys_vfs_has_statfs=yes
5734 else
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 rm -rf conftest*
5738 wine_cv_sys_vfs_has_statfs=no
5741 rm -f conftest*
5745 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5746 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5747 then
5748 cat >> confdefs.h <<\EOF
5749 #define STATFS_DEFINED_BY_SYS_VFS 1
5755 if test "$ac_cv_header_sys_statfs_h" = "yes"
5756 then
5757 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5758 echo "configure:5759: checking "whether sys/statfs.h defines statfs"" >&5
5759 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5761 else
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5766 #include <sys/types.h>
5767 #ifdef HAVE_SYS_PARAM_H
5768 # include <sys/param.h>
5769 #endif
5770 #include <sys/statfs.h>
5772 int main() {
5774 struct statfs stfs;
5776 ; return 0; }
5778 if { (eval echo configure:5779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5779 rm -rf conftest*
5780 wine_cv_sys_statfs_has_statfs=yes
5781 else
5782 echo "configure: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5784 rm -rf conftest*
5785 wine_cv_sys_statfs_has_statfs=no
5788 rm -f conftest*
5792 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5793 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5794 then
5795 cat >> confdefs.h <<\EOF
5796 #define STATFS_DEFINED_BY_SYS_STATFS 1
5802 if test "$ac_cv_header_sys_mount_h" = "yes"
5803 then
5804 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5805 echo "configure:5806: checking "whether sys/mount.h defines statfs"" >&5
5806 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5808 else
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5813 #include <sys/types.h>
5814 #ifdef HAVE_SYS_PARAM_H
5815 # include <sys/param.h>
5816 #endif
5817 #include <sys/mount.h>
5819 int main() {
5821 struct statfs stfs;
5823 ; return 0; }
5825 if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5826 rm -rf conftest*
5827 wine_cv_sys_mount_has_statfs=yes
5828 else
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 rm -rf conftest*
5832 wine_cv_sys_mount_has_statfs=no
5835 rm -f conftest*
5839 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5840 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5841 then
5842 cat >> confdefs.h <<\EOF
5843 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5850 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5851 echo "configure:5852: checking "for statfs.f_bfree"" >&5
5852 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5854 else
5855 if test "x$statfs_bfree" = "xno"
5856 then
5857 wine_cv_statfs_bfree=no
5858 else
5859 cat > conftest.$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5863 #include <sys/types.h>
5864 #ifdef HAVE_SYS_PARAM_H
5865 # include <sys/param.h>
5866 #endif
5867 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5868 # include <sys/mount.h>
5869 #else
5870 # ifdef STATFS_DEFINED_BY_SYS_VFS
5871 # include <sys/vfs.h>
5872 # else
5873 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5874 # include <sys/statfs.h>
5875 # endif
5876 # endif
5877 #endif
5879 int main() {
5881 struct statfs stfs;
5883 stfs.f_bfree++;
5885 ; return 0; }
5887 if { (eval echo configure:5888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5888 rm -rf conftest*
5889 wine_cv_statfs_bfree=yes
5890 else
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5893 rm -rf conftest*
5894 wine_cv_statfs_bfree=no
5897 rm -f conftest*
5901 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5902 if test "$wine_cv_statfs_bfree" = "yes"
5903 then
5904 cat >> confdefs.h <<\EOF
5905 #define STATFS_HAS_BFREE 1
5910 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5911 echo "configure:5912: checking "for statfs.f_bavail"" >&5
5912 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5914 else
5915 if test "x$statfs_bavail" = "xno"
5916 then
5917 wine_cv_statfs_bavail=no
5918 else
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5923 #include <sys/types.h>
5924 #ifdef HAVE_SYS_PARAM_H
5925 # include <sys/param.h>
5926 #endif
5927 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5928 # include <sys/mount.h>
5929 #else
5930 # ifdef STATFS_DEFINED_BY_SYS_VFS
5931 # include <sys/vfs.h>
5932 # else
5933 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5934 # include <sys/statfs.h>
5935 # endif
5936 # endif
5937 #endif
5939 int main() {
5941 struct statfs stfs;
5943 stfs.f_bavail++;
5945 ; return 0; }
5947 if { (eval echo configure:5948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5948 rm -rf conftest*
5949 wine_cv_statfs_bavail=yes
5950 else
5951 echo "configure: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5953 rm -rf conftest*
5954 wine_cv_statfs_bavail=no
5957 rm -f conftest*
5961 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5962 if test "$wine_cv_statfs_bavail" = "yes"
5963 then
5964 cat >> confdefs.h <<\EOF
5965 #define STATFS_HAS_BAVAIL 1
5971 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5972 echo "configure:5973: checking "for msg_accrights in struct msghdr"" >&5
5973 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5975 else
5976 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5979 #include <sys/types.h>
5980 #include <sys/socket.h>
5981 int main() {
5982 struct msghdr hdr; hdr.msg_accrights=0
5983 ; return 0; }
5985 if { (eval echo configure:5986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5986 rm -rf conftest*
5987 ac_cv_c_msg_accrights="yes"
5988 else
5989 echo "configure: failed program was:" >&5
5990 cat conftest.$ac_ext >&5
5991 rm -rf conftest*
5992 ac_cv_c_msg_accrights="no"
5994 rm -f conftest*
5997 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5998 if test "$ac_cv_c_msg_accrights" = "yes"
5999 then
6000 cat >> confdefs.h <<\EOF
6001 #define HAVE_MSGHDR_ACCRIGHTS 1
6007 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
6008 echo "configure:6009: checking "for sun_len in struct sockaddr_un"" >&5
6009 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6
6011 else
6012 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6015 #include <sys/types.h>
6016 #include <sys/socket.h>
6017 #include <sys/un.h>
6018 int main() {
6019 static struct sockaddr_un addr; addr.sun_len = 1
6020 ; return 0; }
6022 if { (eval echo configure:6023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6023 rm -rf conftest*
6024 ac_cv_c_sun_len="yes"
6025 else
6026 echo "configure: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 rm -rf conftest*
6029 ac_cv_c_sun_len="no"
6031 rm -f conftest*
6034 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6035 if test "$ac_cv_c_sun_len" = "yes"
6036 then
6037 cat >> confdefs.h <<\EOF
6038 #define HAVE_SOCKADDR_SUN_LEN 1
6044 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6045 echo "configure:6046: checking "whether we need to define __i386__"" >&5
6046 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6048 else
6049 cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6052 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6054 #endif
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 egrep "yes" >/dev/null 2>&1; then
6058 rm -rf conftest*
6059 ac_cv_cpp_def_i386="yes"
6060 else
6061 rm -rf conftest*
6062 ac_cv_cpp_def_i386="no"
6064 rm -f conftest*
6068 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6069 if test "$ac_cv_cpp_def_i386" = "yes"
6070 then
6071 CFLAGS="$CFLAGS -D__i386__"
6072 LINTFLAGS="$LINTFLAGS -D__i386__"
6075 GCC_NO_BUILTIN=""
6076 if test "$GCC" = "yes"
6077 then
6078 GCC_NO_BUILTIN="-fno-builtin"
6085 MAKE_RULES=Make.rules
6088 MAKE_DLL_RULES=dlls/Makedll.rules
6091 trap '' 1 2 15
6092 cat > confcache <<\EOF
6093 # This file is a shell script that caches the results of configure
6094 # tests run on this system so they can be shared between configure
6095 # scripts and configure runs. It is not useful on other systems.
6096 # If it contains results you don't want to keep, you may remove or edit it.
6098 # By default, configure uses ./config.cache as the cache file,
6099 # creating it if it does not exist already. You can give configure
6100 # the --cache-file=FILE option to use a different cache file; that is
6101 # what configure does when it calls configure scripts in
6102 # subdirectories, so they share the cache.
6103 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6104 # config.status only pays attention to the cache file if you give it the
6105 # --recheck option to rerun configure.
6108 # The following way of writing the cache mishandles newlines in values,
6109 # but we know of no workaround that is simple, portable, and efficient.
6110 # So, don't put newlines in cache variables' values.
6111 # Ultrix sh set writes to stderr and can't be redirected directly,
6112 # and sets the high bit in the cache file unless we assign to the vars.
6113 (set) 2>&1 |
6114 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6115 *ac_space=\ *)
6116 # `set' does not quote correctly, so add quotes (double-quote substitution
6117 # turns \\\\ into \\, and sed turns \\ into \).
6118 sed -n \
6119 -e "s/'/'\\\\''/g" \
6120 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6123 # `set' quotes correctly as required by POSIX, so do not add quotes.
6124 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6126 esac >> confcache
6127 if cmp -s $cache_file confcache; then
6129 else
6130 if test -w $cache_file; then
6131 echo "updating cache $cache_file"
6132 cat confcache > $cache_file
6133 else
6134 echo "not updating unwritable cache $cache_file"
6137 rm -f confcache
6139 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6141 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6142 # Let make expand exec_prefix.
6143 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6145 # Any assignment to VPATH causes Sun make to only execute
6146 # the first set of double-colon rules, so remove it if not needed.
6147 # If there is a colon in the path, we need to keep it.
6148 if test "x$srcdir" = x.; then
6149 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6152 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6154 DEFS=-DHAVE_CONFIG_H
6156 # Without the "./", some shells look in PATH for config.status.
6157 : ${CONFIG_STATUS=./config.status}
6159 echo creating $CONFIG_STATUS
6160 rm -f $CONFIG_STATUS
6161 cat > $CONFIG_STATUS <<EOF
6162 #! /bin/sh
6163 # Generated automatically by configure.
6164 # Run this file to recreate the current configuration.
6165 # This directory was configured as follows,
6166 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6168 # $0 $ac_configure_args
6170 # Compiler output produced by configure, useful for debugging
6171 # configure, is in ./config.log if it exists.
6173 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6174 for ac_option
6176 case "\$ac_option" in
6177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6178 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6179 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6180 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6181 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6182 exit 0 ;;
6183 -help | --help | --hel | --he | --h)
6184 echo "\$ac_cs_usage"; exit 0 ;;
6185 *) echo "\$ac_cs_usage"; exit 1 ;;
6186 esac
6187 done
6189 ac_given_srcdir=$srcdir
6190 ac_given_INSTALL="$INSTALL"
6192 trap 'rm -fr `echo "
6193 Make.rules
6194 Makefile
6195 console/Makefile
6196 controls/Makefile
6197 debugger/Makefile
6198 dlls/Makedll.rules
6199 dlls/Makefile
6200 dlls/advapi32/Makefile
6201 dlls/avifil32/Makefile
6202 dlls/comctl32/Makefile
6203 dlls/commdlg/Makefile
6204 dlls/crtdll/Makefile
6205 dlls/dciman32/Makefile
6206 dlls/ddraw/Makefile
6207 dlls/dinput/Makefile
6208 dlls/display/Makefile
6209 dlls/dplayx/Makefile
6210 dlls/dsound/Makefile
6211 dlls/gdi/Makefile
6212 dlls/icmp/Makefile
6213 dlls/imagehlp/Makefile
6214 dlls/imm32/Makefile
6215 dlls/lzexpand/Makefile
6216 dlls/mouse/Makefile
6217 dlls/mpr/Makefile
6218 dlls/msacm/Makefile
6219 dlls/msacm32/Makefile
6220 dlls/msnet32/Makefile
6221 dlls/msvideo/Makefile
6222 dlls/ntdll/Makefile
6223 dlls/odbc32/Makefile
6224 dlls/ole32/Makefile
6225 dlls/oleaut32/Makefile
6226 dlls/olecli/Makefile
6227 dlls/oledlg/Makefile
6228 dlls/olepro32/Makefile
6229 dlls/olesvr/Makefile
6230 dlls/psapi/Makefile
6231 dlls/rasapi32/Makefile
6232 dlls/richedit/Makefile
6233 dlls/setupx/Makefile
6234 dlls/shell32/Makefile
6235 dlls/sound/Makefile
6236 dlls/stress/Makefile
6237 dlls/tapi32/Makefile
6238 dlls/ttydrv/Makefile
6239 dlls/urlmon/Makefile
6240 dlls/user/Makefile
6241 dlls/version/Makefile
6242 dlls/win32s/Makefile
6243 dlls/win87em/Makefile
6244 dlls/winaspi/Makefile
6245 dlls/windebug/Makefile
6246 dlls/wing/Makefile
6247 dlls/wininet/Makefile
6248 dlls/winmm/Makefile
6249 dlls/winmm/joystick/Makefile
6250 dlls/winmm/mcianim/Makefile
6251 dlls/winmm/mciavi/Makefile
6252 dlls/winmm/mcicda/Makefile
6253 dlls/winmm/mciseq/Makefile
6254 dlls/winmm/mciwave/Makefile
6255 dlls/winmm/midimap/Makefile
6256 dlls/winmm/wavemap/Makefile
6257 dlls/winmm/wineoss/Makefile
6258 dlls/winsock/Makefile
6259 dlls/winspool/Makefile
6260 dlls/ttydrv/Makefile
6261 dlls/x11drv/Makefile
6262 documentation/Makefile
6263 documentation/wine.conf.man
6264 documentation/wine.man
6265 files/Makefile
6266 graphics/Makefile
6267 graphics/enhmetafiledrv/Makefile
6268 graphics/metafiledrv/Makefile
6269 graphics/psdrv/Makefile
6270 graphics/ttydrv/Makefile
6271 graphics/win16drv/Makefile
6272 graphics/x11drv/Makefile
6273 if1632/Makefile
6274 include/Makefile
6275 library/Makefile
6276 libtest/Makefile
6277 loader/Makefile
6278 loader/ne/Makefile
6279 loader/dos/Makefile
6280 memory/Makefile
6281 misc/Makefile
6282 miscemu/Makefile
6283 msdos/Makefile
6284 objects/Makefile
6285 ole/Makefile
6286 programs/Makefile
6287 programs/clock/Makefile
6288 programs/cmdlgtst/Makefile
6289 programs/control/Makefile
6290 programs/avitools/Makefile
6291 programs/osversioncheck/Makefile
6292 programs/notepad/Makefile
6293 programs/progman/Makefile
6294 programs/regtest/Makefile
6295 programs/regapi/Makefile
6296 programs/view/Makefile
6297 programs/wcmd/Makefile
6298 programs/winemine/Makefile
6299 programs/winhelp/Makefile
6300 programs/winver/Makefile
6301 relay32/Makefile
6302 resources/Makefile
6303 scheduler/Makefile
6304 server/Makefile
6305 tools/Makefile
6306 tools/cvdump/Makefile
6307 tools/wrc/Makefile
6308 tsx11/Makefile
6309 win32/Makefile
6310 windows/Makefile
6311 windows/ttydrv/Makefile
6312 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6314 cat >> $CONFIG_STATUS <<EOF
6316 # Protect against being on the right side of a sed subst in config.status.
6317 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6318 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6319 $ac_vpsub
6320 $extrasub
6321 s%@SHELL@%$SHELL%g
6322 s%@CFLAGS@%$CFLAGS%g
6323 s%@CPPFLAGS@%$CPPFLAGS%g
6324 s%@CXXFLAGS@%$CXXFLAGS%g
6325 s%@FFLAGS@%$FFLAGS%g
6326 s%@DEFS@%$DEFS%g
6327 s%@LDFLAGS@%$LDFLAGS%g
6328 s%@LIBS@%$LIBS%g
6329 s%@exec_prefix@%$exec_prefix%g
6330 s%@prefix@%$prefix%g
6331 s%@program_transform_name@%$program_transform_name%g
6332 s%@bindir@%$bindir%g
6333 s%@sbindir@%$sbindir%g
6334 s%@libexecdir@%$libexecdir%g
6335 s%@datadir@%$datadir%g
6336 s%@sysconfdir@%$sysconfdir%g
6337 s%@sharedstatedir@%$sharedstatedir%g
6338 s%@localstatedir@%$localstatedir%g
6339 s%@libdir@%$libdir%g
6340 s%@includedir@%$includedir%g
6341 s%@oldincludedir@%$oldincludedir%g
6342 s%@infodir@%$infodir%g
6343 s%@mandir@%$mandir%g
6344 s%@PROGEXT@%$PROGEXT%g
6345 s%@EMU_TARGET@%$EMU_TARGET%g
6346 s%@OPTIONS@%$OPTIONS%g
6347 s%@SET_MAKE@%$SET_MAKE%g
6348 s%@CC@%$CC%g
6349 s%@CPP@%$CPP%g
6350 s%@X_CFLAGS@%$X_CFLAGS%g
6351 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6352 s%@X_LIBS@%$X_LIBS%g
6353 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6354 s%@YACC@%$YACC%g
6355 s%@LEX@%$LEX%g
6356 s%@LEXLIB@%$LEXLIB%g
6357 s%@RANLIB@%$RANLIB%g
6358 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6359 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6360 s%@INSTALL_DATA@%$INSTALL_DATA%g
6361 s%@LN_S@%$LN_S%g
6362 s%@C2MAN@%$C2MAN%g
6363 s%@LDCONFIG@%$LDCONFIG%g
6364 s%@LINT@%$LINT%g
6365 s%@LINTFLAGS@%$LINTFLAGS%g
6366 s%@XLIB@%$XLIB%g
6367 s%@X_DLLS@%$X_DLLS%g
6368 s%@XFILES@%$XFILES%g
6369 s%@DGA_SRCS@%$DGA_SRCS%g
6370 s%@DGA2_SRCS@%$DGA2_SRCS%g
6371 s%@MESA_SRCS@%$MESA_SRCS%g
6372 s%@DLL_LINK@%$DLL_LINK%g
6373 s%@BUILDFLAGS@%$BUILDFLAGS%g
6374 s%@DLLFLAGS@%$DLLFLAGS%g
6375 s%@LDSHARED@%$LDSHARED%g
6376 s%@LIBEXT@%$LIBEXT%g
6377 s%@ALLOCA@%$ALLOCA%g
6378 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6379 /@MAKE_RULES@/r $MAKE_RULES
6380 s%@MAKE_RULES@%%g
6381 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6382 s%@MAKE_DLL_RULES@%%g
6384 CEOF
6387 cat >> $CONFIG_STATUS <<\EOF
6389 # Split the substitutions into bite-sized pieces for seds with
6390 # small command number limits, like on Digital OSF/1 and HP-UX.
6391 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6392 ac_file=1 # Number of current file.
6393 ac_beg=1 # First line for current file.
6394 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6395 ac_more_lines=:
6396 ac_sed_cmds=""
6397 while $ac_more_lines; do
6398 if test $ac_beg -gt 1; then
6399 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6400 else
6401 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6403 if test ! -s conftest.s$ac_file; then
6404 ac_more_lines=false
6405 rm -f conftest.s$ac_file
6406 else
6407 if test -z "$ac_sed_cmds"; then
6408 ac_sed_cmds="sed -f conftest.s$ac_file"
6409 else
6410 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6412 ac_file=`expr $ac_file + 1`
6413 ac_beg=$ac_end
6414 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6416 done
6417 if test -z "$ac_sed_cmds"; then
6418 ac_sed_cmds=cat
6422 cat >> $CONFIG_STATUS <<EOF
6424 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6425 Makefile
6426 console/Makefile
6427 controls/Makefile
6428 debugger/Makefile
6429 dlls/Makedll.rules
6430 dlls/Makefile
6431 dlls/advapi32/Makefile
6432 dlls/avifil32/Makefile
6433 dlls/comctl32/Makefile
6434 dlls/commdlg/Makefile
6435 dlls/crtdll/Makefile
6436 dlls/dciman32/Makefile
6437 dlls/ddraw/Makefile
6438 dlls/dinput/Makefile
6439 dlls/display/Makefile
6440 dlls/dplayx/Makefile
6441 dlls/dsound/Makefile
6442 dlls/gdi/Makefile
6443 dlls/icmp/Makefile
6444 dlls/imagehlp/Makefile
6445 dlls/imm32/Makefile
6446 dlls/lzexpand/Makefile
6447 dlls/mouse/Makefile
6448 dlls/mpr/Makefile
6449 dlls/msacm/Makefile
6450 dlls/msacm32/Makefile
6451 dlls/msnet32/Makefile
6452 dlls/msvideo/Makefile
6453 dlls/ntdll/Makefile
6454 dlls/odbc32/Makefile
6455 dlls/ole32/Makefile
6456 dlls/oleaut32/Makefile
6457 dlls/olecli/Makefile
6458 dlls/oledlg/Makefile
6459 dlls/olepro32/Makefile
6460 dlls/olesvr/Makefile
6461 dlls/psapi/Makefile
6462 dlls/rasapi32/Makefile
6463 dlls/richedit/Makefile
6464 dlls/setupx/Makefile
6465 dlls/shell32/Makefile
6466 dlls/sound/Makefile
6467 dlls/stress/Makefile
6468 dlls/tapi32/Makefile
6469 dlls/ttydrv/Makefile
6470 dlls/urlmon/Makefile
6471 dlls/user/Makefile
6472 dlls/version/Makefile
6473 dlls/win32s/Makefile
6474 dlls/win87em/Makefile
6475 dlls/winaspi/Makefile
6476 dlls/windebug/Makefile
6477 dlls/wing/Makefile
6478 dlls/wininet/Makefile
6479 dlls/winmm/Makefile
6480 dlls/winmm/joystick/Makefile
6481 dlls/winmm/mcianim/Makefile
6482 dlls/winmm/mciavi/Makefile
6483 dlls/winmm/mcicda/Makefile
6484 dlls/winmm/mciseq/Makefile
6485 dlls/winmm/mciwave/Makefile
6486 dlls/winmm/midimap/Makefile
6487 dlls/winmm/wavemap/Makefile
6488 dlls/winmm/wineoss/Makefile
6489 dlls/winsock/Makefile
6490 dlls/winspool/Makefile
6491 dlls/ttydrv/Makefile
6492 dlls/x11drv/Makefile
6493 documentation/Makefile
6494 documentation/wine.conf.man
6495 documentation/wine.man
6496 files/Makefile
6497 graphics/Makefile
6498 graphics/enhmetafiledrv/Makefile
6499 graphics/metafiledrv/Makefile
6500 graphics/psdrv/Makefile
6501 graphics/ttydrv/Makefile
6502 graphics/win16drv/Makefile
6503 graphics/x11drv/Makefile
6504 if1632/Makefile
6505 include/Makefile
6506 library/Makefile
6507 libtest/Makefile
6508 loader/Makefile
6509 loader/ne/Makefile
6510 loader/dos/Makefile
6511 memory/Makefile
6512 misc/Makefile
6513 miscemu/Makefile
6514 msdos/Makefile
6515 objects/Makefile
6516 ole/Makefile
6517 programs/Makefile
6518 programs/clock/Makefile
6519 programs/cmdlgtst/Makefile
6520 programs/control/Makefile
6521 programs/avitools/Makefile
6522 programs/osversioncheck/Makefile
6523 programs/notepad/Makefile
6524 programs/progman/Makefile
6525 programs/regtest/Makefile
6526 programs/regapi/Makefile
6527 programs/view/Makefile
6528 programs/wcmd/Makefile
6529 programs/winemine/Makefile
6530 programs/winhelp/Makefile
6531 programs/winver/Makefile
6532 relay32/Makefile
6533 resources/Makefile
6534 scheduler/Makefile
6535 server/Makefile
6536 tools/Makefile
6537 tools/cvdump/Makefile
6538 tools/wrc/Makefile
6539 tsx11/Makefile
6540 win32/Makefile
6541 windows/Makefile
6542 windows/ttydrv/Makefile
6543 windows/x11drv/Makefile "}
6545 cat >> $CONFIG_STATUS <<\EOF
6546 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6547 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6548 case "$ac_file" in
6549 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6550 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6551 *) ac_file_in="${ac_file}.in" ;;
6552 esac
6554 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6556 # Remove last slash and all that follows it. Not all systems have dirname.
6557 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6558 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6559 # The file is in a subdirectory.
6560 test ! -d "$ac_dir" && mkdir "$ac_dir"
6561 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6562 # A "../" for each directory in $ac_dir_suffix.
6563 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6564 else
6565 ac_dir_suffix= ac_dots=
6568 case "$ac_given_srcdir" in
6569 .) srcdir=.
6570 if test -z "$ac_dots"; then top_srcdir=.
6571 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6572 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6573 *) # Relative path.
6574 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6575 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6576 esac
6578 case "$ac_given_INSTALL" in
6579 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6580 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6581 esac
6583 echo creating "$ac_file"
6584 rm -f "$ac_file"
6585 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6586 case "$ac_file" in
6587 *Makefile*) ac_comsub="1i\\
6588 # $configure_input" ;;
6589 *) ac_comsub= ;;
6590 esac
6592 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6593 sed -e "$ac_comsub
6594 s%@configure_input@%$configure_input%g
6595 s%@srcdir@%$srcdir%g
6596 s%@top_srcdir@%$top_srcdir%g
6597 s%@INSTALL@%$INSTALL%g
6598 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6599 fi; done
6600 rm -f conftest.s*
6602 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6603 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6605 # ac_d sets the value in "#define NAME VALUE" lines.
6606 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6607 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6608 ac_dC='\3'
6609 ac_dD='%g'
6610 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6611 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6612 ac_uB='\([ ]\)%\1#\2define\3'
6613 ac_uC=' '
6614 ac_uD='\4%g'
6615 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6616 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6617 ac_eB='$%\1#\2define\3'
6618 ac_eC=' '
6619 ac_eD='%g'
6621 if test "${CONFIG_HEADERS+set}" != set; then
6623 cat >> $CONFIG_STATUS <<EOF
6624 CONFIG_HEADERS="include/config.h"
6626 cat >> $CONFIG_STATUS <<\EOF
6628 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6630 case "$ac_file" in
6631 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6632 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6633 *) ac_file_in="${ac_file}.in" ;;
6634 esac
6636 echo creating $ac_file
6638 rm -f conftest.frag conftest.in conftest.out
6639 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6640 cat $ac_file_inputs > conftest.in
6644 # Transform confdefs.h into a sed script conftest.vals that substitutes
6645 # the proper values into config.h.in to produce config.h. And first:
6646 # Protect against being on the right side of a sed subst in config.status.
6647 # Protect against being in an unquoted here document in config.status.
6648 rm -f conftest.vals
6649 cat > conftest.hdr <<\EOF
6650 s/[\\&%]/\\&/g
6651 s%[\\$`]%\\&%g
6652 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6653 s%ac_d%ac_u%gp
6654 s%ac_u%ac_e%gp
6656 sed -n -f conftest.hdr confdefs.h > conftest.vals
6657 rm -f conftest.hdr
6659 # This sed command replaces #undef with comments. This is necessary, for
6660 # example, in the case of _POSIX_SOURCE, which is predefined and required
6661 # on some systems where configure will not decide to define it.
6662 cat >> conftest.vals <<\EOF
6663 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6666 # Break up conftest.vals because some shells have a limit on
6667 # the size of here documents, and old seds have small limits too.
6669 rm -f conftest.tail
6670 while :
6672 ac_lines=`grep -c . conftest.vals`
6673 # grep -c gives empty output for an empty file on some AIX systems.
6674 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6675 # Write a limited-size here document to conftest.frag.
6676 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6677 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6678 echo 'CEOF
6679 sed -f conftest.frag conftest.in > conftest.out
6680 rm -f conftest.in
6681 mv conftest.out conftest.in
6682 ' >> $CONFIG_STATUS
6683 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6684 rm -f conftest.vals
6685 mv conftest.tail conftest.vals
6686 done
6687 rm -f conftest.vals
6689 cat >> $CONFIG_STATUS <<\EOF
6690 rm -f conftest.frag conftest.h
6691 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6692 cat conftest.in >> conftest.h
6693 rm -f conftest.in
6694 if cmp -s $ac_file conftest.h 2>/dev/null; then
6695 echo "$ac_file is unchanged"
6696 rm -f conftest.h
6697 else
6698 # Remove last slash and all that follows it. Not all systems have dirname.
6699 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6700 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6701 # The file is in a subdirectory.
6702 test ! -d "$ac_dir" && mkdir "$ac_dir"
6704 rm -f $ac_file
6705 mv conftest.h $ac_file
6707 fi; done
6710 cat >> $CONFIG_STATUS <<EOF
6714 cat >> $CONFIG_STATUS <<\EOF
6716 extra_subdirs="\
6717 dlls/ddraw/d3ddevice \
6718 dlls/ddraw/dclipper \
6719 dlls/ddraw/ddraw \
6720 dlls/ddraw/direct3d \
6721 dlls/ddraw/dpalette \
6722 dlls/ddraw/dsurface \
6724 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6726 exit 0
6728 chmod +x $CONFIG_STATUS
6729 rm -fr confdefs* $ac_clean_files
6730 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6733 if test "$have_x" = "no"
6734 then
6735 echo
6736 echo "*** Warning: X development files not found. Wine will be built without"
6737 echo "*** X support, which currently does not work, and would probably not be"
6738 echo "*** what you want anyway. You will need to install devel packages of"
6739 echo "*** Xlib/Xfree86 and Xpm at the very least."
6740 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6741 then
6742 echo
6743 echo "*** Warning: Xpm development files not found. Wine will be built without"
6744 echo "*** Xpm support, which currently does not work. You will need to install"
6745 echo "*** devel packages of Xpm."
6748 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6749 then
6750 echo
6751 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6752 echo "*** terminal resize support. Consider upgrading ncurses."
6755 if test "$wine_cv_libc_reentrant" = "no"
6756 then
6757 echo
6758 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6759 echo "*** thread support. Consider upgrading libc to a more recent"
6760 echo "*** reentrant version of libc."
6763 if test "$wine_cv_mesa_version_OK" = "no"
6764 then
6765 echo
6766 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6767 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6770 if test "$wine_cv_mesa_version_threadsafe" = "yes" -a $OPENGL = "normal"
6771 then
6772 echo
6773 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6774 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
6775 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
6776 echo "*** start configure with '--enable-opengl' to force OpenGL support."
6779 if test "$wine_cv_mesa_version_threadsafe" = "yes" -a $OPENGL = "yes"
6780 then
6781 echo
6782 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
6783 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
6784 echo "*** support before reporting bugs."
6788 echo
6789 echo "Configure finished. Do 'make depend && make' to compile Wine."
6790 echo