Added more ordinals to KERNEL, GDI, USER and system drivers
[wine.git] / configure
blob5cf0ae4b358b4d69820b845e9961f54b1ae50423
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-dll build static libraries instead of DLLs"
17 ac_help="$ac_help
18 --disable-debug compile out all debugging messages"
19 ac_help="$ac_help
20 --enable-opengl force usage of OpenGL even if the latter is thread-safe"
21 ac_help="$ac_help
22 --disable-trace compile out TRACE messages"
23 ac_help="$ac_help
24 --without-curses do not use curses"
25 ac_help="$ac_help
26 --without-reentrant-x compile for use with non-reentrant X libraries"
27 ac_help="$ac_help
28 --with-x use the X Window System"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
33 build=NONE
34 cache_file=./config.cache
35 exec_prefix=NONE
36 host=NONE
37 no_create=
38 nonopt=NONE
39 no_recursion=
40 prefix=NONE
41 program_prefix=NONE
42 program_suffix=NONE
43 program_transform_name=s,x,x,
44 silent=
45 site=
46 srcdir=
47 target=NONE
48 verbose=
49 x_includes=NONE
50 x_libraries=NONE
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
65 subdirs=
66 MFLAGS= MAKEFLAGS=
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
69 ac_max_here_lines=12
71 ac_prev=
72 for ac_option
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
78 ac_prev=
79 continue
82 case "$ac_option" in
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 *) ac_optarg= ;;
85 esac
87 # Accept the important Cygnus configure options, so we can diagnose typos.
89 case "$ac_option" in
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 ac_prev=bindir ;;
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
97 ac_prev=build ;;
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 build="$ac_optarg" ;;
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 ac_prev=datadir ;;
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 | --da=*)
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 case "$ac_option" in
131 *=*) ;;
132 *) ac_optarg=yes ;;
133 esac
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
147 with_gas=yes ;;
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
152 cat << EOF
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
155 Configuration:
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
163 [$ac_default_prefix]
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 [same as prefix]
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
170 [PREFIX/share]
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
186 cat << EOF
187 Host type:
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
202 exit 0 ;;
204 -host | --host | --hos | --ho)
205 ac_prev=host ;;
206 -host=* | --host=* | --hos=* | --ho=*)
207 host="$ac_optarg" ;;
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 ac_prev=infodir ;;
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
222 ac_prev=libdir ;;
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 ac_prev=mandir ;;
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
247 -nfp | --nfp | --nf)
248 # Obsolete; use --without-fp.
249 with_fp=no ;;
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 | --no-cr | --no-c)
253 no_create=yes ;;
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 no_recursion=yes ;;
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 ac_prev=prefix ;;
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
306 silent=yes ;;
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 ac_prev=sbindir ;;
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 | --sbi=* | --sb=*)
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
317 | --sha | --sh)
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 | --sha=* | --sh=*)
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
326 ac_prev=site ;;
327 -site=* | --site=* | --sit=*)
328 site="$ac_optarg" ;;
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 ac_prev=srcdir ;;
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
343 ac_prev=target ;;
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 verbose=yes ;;
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
352 exit 0 ;;
354 -with-* | --with-*)
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 case "$ac_option" in
362 *=*) ;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
376 --x)
377 # Obsolete; use --with-x.
378 with_x=yes ;;
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 nonopt="$ac_option"
407 esac
408 done
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
417 # 0 standard input
418 # 1 file creation
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
425 exec 6>/dev/null
426 else
427 exec 6>&1
429 exec 5>./config.log
431 echo "\
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
434 " 1>&5
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
438 ac_configure_args=
439 for ac_arg
441 case "$ac_arg" in
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 esac
450 done
452 # NLS nuisances.
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 echo > confdefs.h
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=controls/edit.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
475 ac_prog=$0
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 srcdir=$ac_confdir
479 if test ! -r $srcdir/$ac_unique_file; then
480 srcdir=..
482 else
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 else
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 else
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
505 . "$ac_site_file"
507 done
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
511 . $cache_file
512 else
513 echo "creating cache $cache_file"
514 > $cache_file
517 ac_ext=c
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
524 ac_exeext=
525 ac_objext=o
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='
530 ' ac_t=' '
531 else
532 ac_n=-n ac_c= ac_t=
534 else
535 ac_n= ac_c='\c' ac_t=
540 ac_aux_dir=
541 for ac_dir in tools $srcdir/tools; do
542 if test -f $ac_dir/install-sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install-sh -c"
545 break
546 elif test -f $ac_dir/install.sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install.sh -c"
549 break
551 done
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561 LIBEXT=so # library type .so or .a
562 TRACE_MSGS=yes # the TRACE() macro
563 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
564 CURSES=yes
565 OPENGL=normal
567 # Check whether --enable-dll or --disable-dll was given.
568 if test "${enable_dll+set}" = set; then
569 enableval="$enable_dll"
570 if test "$enableval" = "no"; then LIBEXT="a"; fi
574 # Check whether --enable-debug or --disable-debug was given.
575 if test "${enable_debug+set}" = set; then
576 enableval="$enable_debug"
577 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
581 # Check whether --enable-opengl or --disable-opengl was given.
582 if test "${enable_opengl+set}" = set; then
583 enableval="$enable_opengl"
584 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
588 # Check whether --enable-trace or --disable-trace was given.
589 if test "${enable_trace+set}" = set; then
590 enableval="$enable_trace"
591 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
595 # Check whether --with-curses or --without-curses was given.
596 if test "${with_curses+set}" = set; then
597 withval="$with_curses"
598 if test "$withval" = "no"; then CURSES="no"; fi
602 # Check whether --with-reentrant-x or --without-reentrant-x was given.
603 if test "${with_reentrant_x+set}" = set; then
604 withval="$with_reentrant_x"
611 if test "$DEBUG_MSGS" = "no"
612 then
613 cat >> confdefs.h <<\EOF
614 #define NO_DEBUG_MSGS 1
617 cat >> confdefs.h <<\EOF
618 #define NO_TRACE_MSGS 1
621 else
622 if test "$TRACE_MSGS" = "no"
623 then
624 cat >> confdefs.h <<\EOF
625 #define NO_TRACE_MSGS 1
632 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
633 echo "configure:634: checking whether ${MAKE-make} sets \${MAKE}" >&5
634 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
635 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
637 else
638 cat > conftestmake <<\EOF
639 all:
640 @echo 'ac_maketemp="${MAKE}"'
642 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
643 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
644 if test -n "$ac_maketemp"; then
645 eval ac_cv_prog_make_${ac_make}_set=yes
646 else
647 eval ac_cv_prog_make_${ac_make}_set=no
649 rm -f conftestmake
651 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
652 echo "$ac_t""yes" 1>&6
653 SET_MAKE=
654 else
655 echo "$ac_t""no" 1>&6
656 SET_MAKE="MAKE=${MAKE-make}"
659 # Extract the first word of "gcc", so it can be a program name with args.
660 set dummy gcc; ac_word=$2
661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
662 echo "configure:663: checking for $ac_word" >&5
663 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
664 echo $ac_n "(cached) $ac_c" 1>&6
665 else
666 if test -n "$CC"; then
667 ac_cv_prog_CC="$CC" # Let the user override the test.
668 else
669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 ac_dummy="$PATH"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
674 ac_cv_prog_CC="gcc"
675 break
677 done
678 IFS="$ac_save_ifs"
681 CC="$ac_cv_prog_CC"
682 if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
684 else
685 echo "$ac_t""no" 1>&6
688 if test -z "$CC"; then
689 # Extract the first word of "cc", so it can be a program name with args.
690 set dummy cc; ac_word=$2
691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
692 echo "configure:693: checking for $ac_word" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695 else
696 if test -n "$CC"; then
697 ac_cv_prog_CC="$CC" # Let the user override the test.
698 else
699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
700 ac_prog_rejected=no
701 ac_dummy="$PATH"
702 for ac_dir in $ac_dummy; do
703 test -z "$ac_dir" && ac_dir=.
704 if test -f $ac_dir/$ac_word; then
705 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
706 ac_prog_rejected=yes
707 continue
709 ac_cv_prog_CC="cc"
710 break
712 done
713 IFS="$ac_save_ifs"
714 if test $ac_prog_rejected = yes; then
715 # We found a bogon in the path, so make sure we never use it.
716 set dummy $ac_cv_prog_CC
717 shift
718 if test $# -gt 0; then
719 # We chose a different compiler from the bogus one.
720 # However, it has the same basename, so the bogon will be chosen
721 # first if we set CC to just the basename; use the full file name.
722 shift
723 set dummy "$ac_dir/$ac_word" "$@"
724 shift
725 ac_cv_prog_CC="$@"
730 CC="$ac_cv_prog_CC"
731 if test -n "$CC"; then
732 echo "$ac_t""$CC" 1>&6
733 else
734 echo "$ac_t""no" 1>&6
737 if test -z "$CC"; then
738 case "`uname -s`" in
739 *win32* | *WIN32*)
740 # Extract the first word of "cl", so it can be a program name with args.
741 set dummy cl; ac_word=$2
742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
743 echo "configure:744: checking for $ac_word" >&5
744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746 else
747 if test -n "$CC"; then
748 ac_cv_prog_CC="$CC" # Let the user override the test.
749 else
750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 ac_dummy="$PATH"
752 for ac_dir in $ac_dummy; do
753 test -z "$ac_dir" && ac_dir=.
754 if test -f $ac_dir/$ac_word; then
755 ac_cv_prog_CC="cl"
756 break
758 done
759 IFS="$ac_save_ifs"
762 CC="$ac_cv_prog_CC"
763 if test -n "$CC"; then
764 echo "$ac_t""$CC" 1>&6
765 else
766 echo "$ac_t""no" 1>&6
769 esac
771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
775 echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
777 ac_ext=c
778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
779 ac_cpp='$CPP $CPPFLAGS'
780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
782 cross_compiling=$ac_cv_prog_cc_cross
784 cat > conftest.$ac_ext << EOF
786 #line 787 "configure"
787 #include "confdefs.h"
789 main(){return(0);}
791 if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
792 ac_cv_prog_cc_works=yes
793 # If we can't run a trivial program, we are probably using a cross compiler.
794 if (./conftest; exit) 2>/dev/null; then
795 ac_cv_prog_cc_cross=no
796 else
797 ac_cv_prog_cc_cross=yes
799 else
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
802 ac_cv_prog_cc_works=no
804 rm -fr conftest*
805 ac_ext=c
806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807 ac_cpp='$CPP $CPPFLAGS'
808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810 cross_compiling=$ac_cv_prog_cc_cross
812 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
813 if test $ac_cv_prog_cc_works = no; then
814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
817 echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
818 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
819 cross_compiling=$ac_cv_prog_cc_cross
821 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
822 echo "configure:823: checking whether we are using GNU C" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
825 else
826 cat > conftest.c <<EOF
827 #ifdef __GNUC__
828 yes;
829 #endif
831 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
832 ac_cv_prog_gcc=yes
833 else
834 ac_cv_prog_gcc=no
838 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
840 if test $ac_cv_prog_gcc = yes; then
841 GCC=yes
842 else
843 GCC=
846 ac_test_CFLAGS="${CFLAGS+set}"
847 ac_save_CFLAGS="$CFLAGS"
848 CFLAGS=
849 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
850 echo "configure:851: checking whether ${CC-cc} accepts -g" >&5
851 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
853 else
854 echo 'void f(){}' > conftest.c
855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
856 ac_cv_prog_cc_g=yes
857 else
858 ac_cv_prog_cc_g=no
860 rm -f conftest*
864 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
865 if test "$ac_test_CFLAGS" = set; then
866 CFLAGS="$ac_save_CFLAGS"
867 elif test $ac_cv_prog_cc_g = yes; then
868 if test "$GCC" = yes; then
869 CFLAGS="-g -O2"
870 else
871 CFLAGS="-g"
873 else
874 if test "$GCC" = yes; then
875 CFLAGS="-O2"
876 else
877 CFLAGS=
881 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
882 echo "configure:883: checking how to run the C preprocessor" >&5
883 # On Suns, sometimes $CPP names a directory.
884 if test -n "$CPP" && test -d "$CPP"; then
885 CPP=
887 if test -z "$CPP"; then
888 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
890 else
891 # This must be in double quotes, not single quotes, because CPP may get
892 # substituted into the Makefile and "${CC-cc}" will confuse make.
893 CPP="${CC-cc} -E"
894 # On the NeXT, cc -E runs the code through the compiler's parser,
895 # not just through cpp.
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
899 #include <assert.h>
900 Syntax Error
902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
903 { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905 if test -z "$ac_err"; then
907 else
908 echo "$ac_err" >&5
909 echo "configure: failed program was:" >&5
910 cat conftest.$ac_ext >&5
911 rm -rf conftest*
912 CPP="${CC-cc} -E -traditional-cpp"
913 cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
916 #include <assert.h>
917 Syntax Error
919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920 { (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922 if test -z "$ac_err"; then
924 else
925 echo "$ac_err" >&5
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 rm -rf conftest*
929 CPP="${CC-cc} -nologo -E"
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
933 #include <assert.h>
934 Syntax Error
936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939 if test -z "$ac_err"; then
941 else
942 echo "$ac_err" >&5
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
945 rm -rf conftest*
946 CPP=/lib/cpp
948 rm -f conftest*
950 rm -f conftest*
952 rm -f conftest*
953 ac_cv_prog_CPP="$CPP"
955 CPP="$ac_cv_prog_CPP"
956 else
957 ac_cv_prog_CPP="$CPP"
959 echo "$ac_t""$CPP" 1>&6
961 # If we find X, set shell vars x_includes and x_libraries to the
962 # paths, otherwise set no_x=yes.
963 # Uses ac_ vars as temps to allow command line to override cache and checks.
964 # --without-x overrides everything else, but does not touch the cache.
965 echo $ac_n "checking for X""... $ac_c" 1>&6
966 echo "configure:967: checking for X" >&5
968 # Check whether --with-x or --without-x was given.
969 if test "${with_x+set}" = set; then
970 withval="$with_x"
974 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
975 if test "x$with_x" = xno; then
976 # The user explicitly disabled X.
977 have_x=disabled
978 else
979 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
980 # Both variables are already set.
981 have_x=yes
982 else
983 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
985 else
986 # One or both of the vars are not set, and there is no cached value.
987 ac_x_includes=NO ac_x_libraries=NO
988 rm -fr conftestdir
989 if mkdir conftestdir; then
990 cd conftestdir
991 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
992 cat > Imakefile <<'EOF'
993 acfindx:
994 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
996 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
998 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
999 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1000 for ac_extension in a so sl; do
1001 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1002 test -f $ac_im_libdir/libX11.$ac_extension; then
1003 ac_im_usrlibdir=$ac_im_libdir; break
1005 done
1006 # Screen out bogus values from the imake configuration. They are
1007 # bogus both because they are the default anyway, and because
1008 # using them would break gcc on systems where it needs fixed includes.
1009 case "$ac_im_incroot" in
1010 /usr/include) ;;
1011 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1012 esac
1013 case "$ac_im_usrlibdir" in
1014 /usr/lib | /lib) ;;
1015 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1016 esac
1018 cd ..
1019 rm -fr conftestdir
1022 if test "$ac_x_includes" = NO; then
1023 # Guess where to find include files, by looking for this one X11 .h file.
1024 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1026 # First, try using that file with no special directory specified.
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1030 #include <$x_direct_test_include>
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1036 rm -rf conftest*
1037 # We can compile using X headers with no special include directory.
1038 ac_x_includes=
1039 else
1040 echo "$ac_err" >&5
1041 echo "configure: failed program was:" >&5
1042 cat conftest.$ac_ext >&5
1043 rm -rf conftest*
1044 # Look for the header file in a standard set of common directories.
1045 # Check X11 before X11Rn because it is often a symlink to the current release.
1046 for ac_dir in \
1047 /usr/X11/include \
1048 /usr/X11R6/include \
1049 /usr/X11R5/include \
1050 /usr/X11R4/include \
1052 /usr/include/X11 \
1053 /usr/include/X11R6 \
1054 /usr/include/X11R5 \
1055 /usr/include/X11R4 \
1057 /usr/local/X11/include \
1058 /usr/local/X11R6/include \
1059 /usr/local/X11R5/include \
1060 /usr/local/X11R4/include \
1062 /usr/local/include/X11 \
1063 /usr/local/include/X11R6 \
1064 /usr/local/include/X11R5 \
1065 /usr/local/include/X11R4 \
1067 /usr/X386/include \
1068 /usr/x386/include \
1069 /usr/XFree86/include/X11 \
1071 /usr/include \
1072 /usr/local/include \
1073 /usr/unsupported/include \
1074 /usr/athena/include \
1075 /usr/local/x11r5/include \
1076 /usr/lpp/Xamples/include \
1078 /usr/openwin/include \
1079 /usr/openwin/share/include \
1082 if test -r "$ac_dir/$x_direct_test_include"; then
1083 ac_x_includes=$ac_dir
1084 break
1086 done
1088 rm -f conftest*
1089 fi # $ac_x_includes = NO
1091 if test "$ac_x_libraries" = NO; then
1092 # Check for the libraries.
1094 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1095 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1097 # See if we find them without any special options.
1098 # Don't add to $LIBS permanently.
1099 ac_save_LIBS="$LIBS"
1100 LIBS="-l$x_direct_test_library $LIBS"
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1105 int main() {
1106 ${x_direct_test_function}()
1107 ; return 0; }
1109 if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1110 rm -rf conftest*
1111 LIBS="$ac_save_LIBS"
1112 # We can link X programs with no special library path.
1113 ac_x_libraries=
1114 else
1115 echo "configure: failed program was:" >&5
1116 cat conftest.$ac_ext >&5
1117 rm -rf conftest*
1118 LIBS="$ac_save_LIBS"
1119 # First see if replacing the include by lib works.
1120 # Check X11 before X11Rn because it is often a symlink to the current release.
1121 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1122 /usr/X11/lib \
1123 /usr/X11R6/lib \
1124 /usr/X11R5/lib \
1125 /usr/X11R4/lib \
1127 /usr/lib/X11 \
1128 /usr/lib/X11R6 \
1129 /usr/lib/X11R5 \
1130 /usr/lib/X11R4 \
1132 /usr/local/X11/lib \
1133 /usr/local/X11R6/lib \
1134 /usr/local/X11R5/lib \
1135 /usr/local/X11R4/lib \
1137 /usr/local/lib/X11 \
1138 /usr/local/lib/X11R6 \
1139 /usr/local/lib/X11R5 \
1140 /usr/local/lib/X11R4 \
1142 /usr/X386/lib \
1143 /usr/x386/lib \
1144 /usr/XFree86/lib/X11 \
1146 /usr/lib \
1147 /usr/local/lib \
1148 /usr/unsupported/lib \
1149 /usr/athena/lib \
1150 /usr/local/x11r5/lib \
1151 /usr/lpp/Xamples/lib \
1152 /lib/usr/lib/X11 \
1154 /usr/openwin/lib \
1155 /usr/openwin/share/lib \
1158 for ac_extension in a so sl; do
1159 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1160 ac_x_libraries=$ac_dir
1161 break 2
1163 done
1164 done
1166 rm -f conftest*
1167 fi # $ac_x_libraries = NO
1169 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1170 # Didn't find X anywhere. Cache the known absence of X.
1171 ac_cv_have_x="have_x=no"
1172 else
1173 # Record where we found X for the cache.
1174 ac_cv_have_x="have_x=yes \
1175 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1179 eval "$ac_cv_have_x"
1180 fi # $with_x != no
1182 if test "$have_x" != yes; then
1183 echo "$ac_t""$have_x" 1>&6
1184 no_x=yes
1185 else
1186 # If each of the values was on the command line, it overrides each guess.
1187 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1188 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1189 # Update the cache value to reflect the command line values.
1190 ac_cv_have_x="have_x=yes \
1191 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1192 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1195 if test "$no_x" = yes; then
1196 # Not all programs may use this symbol, but it does not hurt to define it.
1197 cat >> confdefs.h <<\EOF
1198 #define X_DISPLAY_MISSING 1
1201 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1202 else
1203 if test -n "$x_includes"; then
1204 X_CFLAGS="$X_CFLAGS -I$x_includes"
1207 # It would also be nice to do this for all -L options, not just this one.
1208 if test -n "$x_libraries"; then
1209 X_LIBS="$X_LIBS -L$x_libraries"
1210 # For Solaris; some versions of Sun CC require a space after -R and
1211 # others require no space. Words are not sufficient . . . .
1212 case "`(uname -sr) 2>/dev/null`" in
1213 "SunOS 5"*)
1214 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether -R must be followed by a space" >&5
1216 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1217 cat > conftest.$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1221 int main() {
1223 ; return 0; }
1225 if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1226 rm -rf conftest*
1227 ac_R_nospace=yes
1228 else
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1231 rm -rf conftest*
1232 ac_R_nospace=no
1234 rm -f conftest*
1235 if test $ac_R_nospace = yes; then
1236 echo "$ac_t""no" 1>&6
1237 X_LIBS="$X_LIBS -R$x_libraries"
1238 else
1239 LIBS="$ac_xsave_LIBS -R $x_libraries"
1240 cat > conftest.$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1244 int main() {
1246 ; return 0; }
1248 if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1249 rm -rf conftest*
1250 ac_R_space=yes
1251 else
1252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1254 rm -rf conftest*
1255 ac_R_space=no
1257 rm -f conftest*
1258 if test $ac_R_space = yes; then
1259 echo "$ac_t""yes" 1>&6
1260 X_LIBS="$X_LIBS -R $x_libraries"
1261 else
1262 echo "$ac_t""neither works" 1>&6
1265 LIBS="$ac_xsave_LIBS"
1266 esac
1269 # Check for system-dependent libraries X programs must link with.
1270 # Do this before checking for the system-independent R6 libraries
1271 # (-lICE), since we may need -lsocket or whatever for X linking.
1273 if test "$ISC" = yes; then
1274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1275 else
1276 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1277 # libraries were built with DECnet support. And karl@cs.umb.edu says
1278 # the Alpha needs dnet_stub (dnet does not exist).
1279 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1280 echo "configure:1281: checking for dnet_ntoa in -ldnet" >&5
1281 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1284 else
1285 ac_save_LIBS="$LIBS"
1286 LIBS="-ldnet $LIBS"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1293 char dnet_ntoa();
1295 int main() {
1296 dnet_ntoa()
1297 ; return 0; }
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1300 rm -rf conftest*
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1302 else
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1305 rm -rf conftest*
1306 eval "ac_cv_lib_$ac_lib_var=no"
1308 rm -f conftest*
1309 LIBS="$ac_save_LIBS"
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1315 else
1316 echo "$ac_t""no" 1>&6
1319 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1320 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1321 echo "configure:1322: checking for dnet_ntoa in -ldnet_stub" >&5
1322 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 ac_save_LIBS="$LIBS"
1327 LIBS="-ldnet_stub $LIBS"
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 /* Override any gcc2 internal prototype to avoid an error. */
1332 /* We use char because int might match the return type of a gcc2
1333 builtin and then its argument prototype would still apply. */
1334 char dnet_ntoa();
1336 int main() {
1337 dnet_ntoa()
1338 ; return 0; }
1340 if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1341 rm -rf conftest*
1342 eval "ac_cv_lib_$ac_lib_var=yes"
1343 else
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1346 rm -rf conftest*
1347 eval "ac_cv_lib_$ac_lib_var=no"
1349 rm -f conftest*
1350 LIBS="$ac_save_LIBS"
1353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1356 else
1357 echo "$ac_t""no" 1>&6
1362 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1363 # to get the SysV transport functions.
1364 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1365 # needs -lnsl.
1366 # The nsl library prevents programs from opening the X display
1367 # on Irix 5.2, according to dickey@clark.net.
1368 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1369 echo "configure:1370: checking for gethostbyname" >&5
1370 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1372 else
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1376 /* System header to define __stub macros and hopefully few prototypes,
1377 which can conflict with char gethostbyname(); below. */
1378 #include <assert.h>
1379 /* Override any gcc2 internal prototype to avoid an error. */
1380 /* We use char because int might match the return type of a gcc2
1381 builtin and then its argument prototype would still apply. */
1382 char gethostbyname();
1384 int main() {
1386 /* The GNU C library defines this for functions which it implements
1387 to always fail with ENOSYS. Some functions are actually named
1388 something starting with __ and the normal name is an alias. */
1389 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1390 choke me
1391 #else
1392 gethostbyname();
1393 #endif
1395 ; return 0; }
1397 if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398 rm -rf conftest*
1399 eval "ac_cv_func_gethostbyname=yes"
1400 else
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403 rm -rf conftest*
1404 eval "ac_cv_func_gethostbyname=no"
1406 rm -f conftest*
1409 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1410 echo "$ac_t""yes" 1>&6
1412 else
1413 echo "$ac_t""no" 1>&6
1416 if test $ac_cv_func_gethostbyname = no; then
1417 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1418 echo "configure:1419: checking for gethostbyname in -lnsl" >&5
1419 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423 ac_save_LIBS="$LIBS"
1424 LIBS="-lnsl $LIBS"
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 /* Override any gcc2 internal prototype to avoid an error. */
1429 /* We use char because int might match the return type of a gcc2
1430 builtin and then its argument prototype would still apply. */
1431 char gethostbyname();
1433 int main() {
1434 gethostbyname()
1435 ; return 0; }
1437 if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1438 rm -rf conftest*
1439 eval "ac_cv_lib_$ac_lib_var=yes"
1440 else
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1443 rm -rf conftest*
1444 eval "ac_cv_lib_$ac_lib_var=no"
1446 rm -f conftest*
1447 LIBS="$ac_save_LIBS"
1450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1451 echo "$ac_t""yes" 1>&6
1452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1453 else
1454 echo "$ac_t""no" 1>&6
1459 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1460 # socket/setsockopt and other routines are undefined under SCO ODT
1461 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1462 # on later versions), says simon@lia.di.epfl.ch: it contains
1463 # gethostby* variants that don't use the nameserver (or something).
1464 # -lsocket must be given before -lnsl if both are needed.
1465 # We assume that if connect needs -lnsl, so does gethostbyname.
1466 echo $ac_n "checking for connect""... $ac_c" 1>&6
1467 echo "configure:1468: checking for connect" >&5
1468 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470 else
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* System header to define __stub macros and hopefully few prototypes,
1475 which can conflict with char connect(); below. */
1476 #include <assert.h>
1477 /* Override any gcc2 internal prototype to avoid an error. */
1478 /* We use char because int might match the return type of a gcc2
1479 builtin and then its argument prototype would still apply. */
1480 char connect();
1482 int main() {
1484 /* The GNU C library defines this for functions which it implements
1485 to always fail with ENOSYS. Some functions are actually named
1486 something starting with __ and the normal name is an alias. */
1487 #if defined (__stub_connect) || defined (__stub___connect)
1488 choke me
1489 #else
1490 connect();
1491 #endif
1493 ; return 0; }
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1496 rm -rf conftest*
1497 eval "ac_cv_func_connect=yes"
1498 else
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 eval "ac_cv_func_connect=no"
1504 rm -f conftest*
1507 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1508 echo "$ac_t""yes" 1>&6
1510 else
1511 echo "$ac_t""no" 1>&6
1514 if test $ac_cv_func_connect = no; then
1515 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1516 echo "configure:1517: checking for connect in -lsocket" >&5
1517 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1520 else
1521 ac_save_LIBS="$LIBS"
1522 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 /* Override any gcc2 internal prototype to avoid an error. */
1527 /* We use char because int might match the return type of a gcc2
1528 builtin and then its argument prototype would still apply. */
1529 char connect();
1531 int main() {
1532 connect()
1533 ; return 0; }
1535 if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1536 rm -rf conftest*
1537 eval "ac_cv_lib_$ac_lib_var=yes"
1538 else
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1541 rm -rf conftest*
1542 eval "ac_cv_lib_$ac_lib_var=no"
1544 rm -f conftest*
1545 LIBS="$ac_save_LIBS"
1548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1549 echo "$ac_t""yes" 1>&6
1550 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1551 else
1552 echo "$ac_t""no" 1>&6
1557 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1558 echo $ac_n "checking for remove""... $ac_c" 1>&6
1559 echo "configure:1560: checking for remove" >&5
1560 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 /* System header to define __stub macros and hopefully few prototypes,
1567 which can conflict with char remove(); below. */
1568 #include <assert.h>
1569 /* Override any gcc2 internal prototype to avoid an error. */
1570 /* We use char because int might match the return type of a gcc2
1571 builtin and then its argument prototype would still apply. */
1572 char remove();
1574 int main() {
1576 /* The GNU C library defines this for functions which it implements
1577 to always fail with ENOSYS. Some functions are actually named
1578 something starting with __ and the normal name is an alias. */
1579 #if defined (__stub_remove) || defined (__stub___remove)
1580 choke me
1581 #else
1582 remove();
1583 #endif
1585 ; return 0; }
1587 if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1588 rm -rf conftest*
1589 eval "ac_cv_func_remove=yes"
1590 else
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1593 rm -rf conftest*
1594 eval "ac_cv_func_remove=no"
1596 rm -f conftest*
1599 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1602 else
1603 echo "$ac_t""no" 1>&6
1606 if test $ac_cv_func_remove = no; then
1607 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1608 echo "configure:1609: checking for remove in -lposix" >&5
1609 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1612 else
1613 ac_save_LIBS="$LIBS"
1614 LIBS="-lposix $LIBS"
1615 cat > conftest.$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1618 /* Override any gcc2 internal prototype to avoid an error. */
1619 /* We use char because int might match the return type of a gcc2
1620 builtin and then its argument prototype would still apply. */
1621 char remove();
1623 int main() {
1624 remove()
1625 ; return 0; }
1627 if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1628 rm -rf conftest*
1629 eval "ac_cv_lib_$ac_lib_var=yes"
1630 else
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1633 rm -rf conftest*
1634 eval "ac_cv_lib_$ac_lib_var=no"
1636 rm -f conftest*
1637 LIBS="$ac_save_LIBS"
1640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1641 echo "$ac_t""yes" 1>&6
1642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1643 else
1644 echo "$ac_t""no" 1>&6
1649 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1650 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1651 echo "configure:1652: checking for shmat" >&5
1652 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654 else
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char shmat(); below. */
1660 #include <assert.h>
1661 /* Override any gcc2 internal prototype to avoid an error. */
1662 /* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1664 char shmat();
1666 int main() {
1668 /* The GNU C library defines this for functions which it implements
1669 to always fail with ENOSYS. Some functions are actually named
1670 something starting with __ and the normal name is an alias. */
1671 #if defined (__stub_shmat) || defined (__stub___shmat)
1672 choke me
1673 #else
1674 shmat();
1675 #endif
1677 ; return 0; }
1679 if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1680 rm -rf conftest*
1681 eval "ac_cv_func_shmat=yes"
1682 else
1683 echo "configure: failed program was:" >&5
1684 cat conftest.$ac_ext >&5
1685 rm -rf conftest*
1686 eval "ac_cv_func_shmat=no"
1688 rm -f conftest*
1691 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1694 else
1695 echo "$ac_t""no" 1>&6
1698 if test $ac_cv_func_shmat = no; then
1699 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1700 echo "configure:1701: checking for shmat in -lipc" >&5
1701 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1704 else
1705 ac_save_LIBS="$LIBS"
1706 LIBS="-lipc $LIBS"
1707 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1710 /* Override any gcc2 internal prototype to avoid an error. */
1711 /* We use char because int might match the return type of a gcc2
1712 builtin and then its argument prototype would still apply. */
1713 char shmat();
1715 int main() {
1716 shmat()
1717 ; return 0; }
1719 if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1720 rm -rf conftest*
1721 eval "ac_cv_lib_$ac_lib_var=yes"
1722 else
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1725 rm -rf conftest*
1726 eval "ac_cv_lib_$ac_lib_var=no"
1728 rm -f conftest*
1729 LIBS="$ac_save_LIBS"
1732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1735 else
1736 echo "$ac_t""no" 1>&6
1742 # Check for libraries that X11R6 Xt/Xaw programs need.
1743 ac_save_LDFLAGS="$LDFLAGS"
1744 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1745 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1746 # check for ICE first), but we must link in the order -lSM -lICE or
1747 # we get undefined symbols. So assume we have SM if we have ICE.
1748 # These have to be linked with before -lX11, unlike the other
1749 # libraries we check for below, so use a different variable.
1750 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1751 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1752 echo "configure:1753: checking for IceConnectionNumber in -lICE" >&5
1753 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1756 else
1757 ac_save_LIBS="$LIBS"
1758 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 /* Override any gcc2 internal prototype to avoid an error. */
1763 /* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1765 char IceConnectionNumber();
1767 int main() {
1768 IceConnectionNumber()
1769 ; return 0; }
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1772 rm -rf conftest*
1773 eval "ac_cv_lib_$ac_lib_var=yes"
1774 else
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 rm -rf conftest*
1778 eval "ac_cv_lib_$ac_lib_var=no"
1780 rm -f conftest*
1781 LIBS="$ac_save_LIBS"
1784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1787 else
1788 echo "$ac_t""no" 1>&6
1791 LDFLAGS="$ac_save_LDFLAGS"
1795 for ac_prog in 'bison -y' byacc
1797 # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1800 echo "configure:1801: checking for $ac_word" >&5
1801 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804 if test -n "$YACC"; then
1805 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1806 else
1807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1808 ac_dummy="$PATH"
1809 for ac_dir in $ac_dummy; do
1810 test -z "$ac_dir" && ac_dir=.
1811 if test -f $ac_dir/$ac_word; then
1812 ac_cv_prog_YACC="$ac_prog"
1813 break
1815 done
1816 IFS="$ac_save_ifs"
1819 YACC="$ac_cv_prog_YACC"
1820 if test -n "$YACC"; then
1821 echo "$ac_t""$YACC" 1>&6
1822 else
1823 echo "$ac_t""no" 1>&6
1826 test -n "$YACC" && break
1827 done
1828 test -n "$YACC" || YACC="yacc"
1830 # Extract the first word of "flex", so it can be a program name with args.
1831 set dummy flex; ac_word=$2
1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_word" >&5
1834 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1836 else
1837 if test -n "$LEX"; then
1838 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1839 else
1840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1841 ac_dummy="$PATH"
1842 for ac_dir in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir=.
1844 if test -f $ac_dir/$ac_word; then
1845 ac_cv_prog_LEX="flex"
1846 break
1848 done
1849 IFS="$ac_save_ifs"
1850 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1853 LEX="$ac_cv_prog_LEX"
1854 if test -n "$LEX"; then
1855 echo "$ac_t""$LEX" 1>&6
1856 else
1857 echo "$ac_t""no" 1>&6
1860 if test -z "$LEXLIB"
1861 then
1862 case "$LEX" in
1863 flex*) ac_lib=fl ;;
1864 *) ac_lib=l ;;
1865 esac
1866 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1867 echo "configure:1868: checking for yywrap in -l$ac_lib" >&5
1868 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1871 else
1872 ac_save_LIBS="$LIBS"
1873 LIBS="-l$ac_lib $LIBS"
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 /* Override any gcc2 internal prototype to avoid an error. */
1878 /* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1880 char yywrap();
1882 int main() {
1883 yywrap()
1884 ; return 0; }
1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 rm -rf conftest*
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1889 else
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 rm -rf conftest*
1893 eval "ac_cv_lib_$ac_lib_var=no"
1895 rm -f conftest*
1896 LIBS="$ac_save_LIBS"
1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1901 LEXLIB="-l$ac_lib"
1902 else
1903 echo "$ac_t""no" 1>&6
1908 # Extract the first word of "ranlib", so it can be a program name with args.
1909 set dummy ranlib; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 if test -n "$RANLIB"; then
1916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1917 else
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919 ac_dummy="$PATH"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1923 ac_cv_prog_RANLIB="ranlib"
1924 break
1926 done
1927 IFS="$ac_save_ifs"
1928 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1931 RANLIB="$ac_cv_prog_RANLIB"
1932 if test -n "$RANLIB"; then
1933 echo "$ac_t""$RANLIB" 1>&6
1934 else
1935 echo "$ac_t""no" 1>&6
1938 # Find a good install program. We prefer a C program (faster),
1939 # so one script is as good as another. But avoid the broken or
1940 # incompatible versions:
1941 # SysV /etc/install, /usr/sbin/install
1942 # SunOS /usr/etc/install
1943 # IRIX /sbin/install
1944 # AIX /bin/install
1945 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1946 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1947 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1948 # ./install, which can be erroneously created by make from ./install.sh.
1949 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1950 echo "configure:1951: checking for a BSD compatible install" >&5
1951 if test -z "$INSTALL"; then
1952 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1954 else
1955 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1956 for ac_dir in $PATH; do
1957 # Account for people who put trailing slashes in PATH elements.
1958 case "$ac_dir/" in
1959 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1961 # OSF1 and SCO ODT 3.0 have their own names for install.
1962 # Don't use installbsd from OSF since it installs stuff as root
1963 # by default.
1964 for ac_prog in ginstall scoinst install; do
1965 if test -f $ac_dir/$ac_prog; then
1966 if test $ac_prog = install &&
1967 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1968 # AIX install. It has an incompatible calling convention.
1970 else
1971 ac_cv_path_install="$ac_dir/$ac_prog -c"
1972 break 2
1975 done
1977 esac
1978 done
1979 IFS="$ac_save_IFS"
1982 if test "${ac_cv_path_install+set}" = set; then
1983 INSTALL="$ac_cv_path_install"
1984 else
1985 # As a last resort, use the slow shell script. We don't cache a
1986 # path for INSTALL within a source directory, because that will
1987 # break other packages using the cache if that directory is
1988 # removed, or if the path is relative.
1989 INSTALL="$ac_install_sh"
1992 echo "$ac_t""$INSTALL" 1>&6
1994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1995 # It thinks the first close brace ends the variable substitution.
1996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2002 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2003 echo "configure:2004: checking whether ln -s works" >&5
2004 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2006 else
2007 rm -f conftestdata
2008 if ln -s X conftestdata 2>/dev/null
2009 then
2010 rm -f conftestdata
2011 ac_cv_prog_LN_S="ln -s"
2012 else
2013 ac_cv_prog_LN_S=ln
2016 LN_S="$ac_cv_prog_LN_S"
2017 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2018 echo "$ac_t""yes" 1>&6
2019 else
2020 echo "$ac_t""no" 1>&6
2023 # Extract the first word of "c2man", so it can be a program name with args.
2024 set dummy c2man; ac_word=$2
2025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2026 echo "configure:2027: checking for $ac_word" >&5
2027 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2029 else
2030 if test -n "$C2MAN"; then
2031 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2032 else
2033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2034 ac_dummy="$PATH"
2035 for ac_dir in $ac_dummy; do
2036 test -z "$ac_dir" && ac_dir=.
2037 if test -f $ac_dir/$ac_word; then
2038 ac_cv_prog_C2MAN="c2man"
2039 break
2041 done
2042 IFS="$ac_save_ifs"
2043 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2046 C2MAN="$ac_cv_prog_C2MAN"
2047 if test -n "$C2MAN"; then
2048 echo "$ac_t""$C2MAN" 1>&6
2049 else
2050 echo "$ac_t""no" 1>&6
2053 # Extract the first word of "ldconfig", so it can be a program name with args.
2054 set dummy ldconfig; ac_word=$2
2055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_word" >&5
2057 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060 case "$LDCONFIG" in
2062 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2064 ?:/*)
2065 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 ac_dummy="/sbin:/usr/sbin:$PATH"
2070 for ac_dir in $ac_dummy; do
2071 test -z "$ac_dir" && ac_dir=.
2072 if test -f $ac_dir/$ac_word; then
2073 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2074 break
2076 done
2077 IFS="$ac_save_ifs"
2078 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2080 esac
2082 LDCONFIG="$ac_cv_path_LDCONFIG"
2083 if test -n "$LDCONFIG"; then
2084 echo "$ac_t""$LDCONFIG" 1>&6
2085 else
2086 echo "$ac_t""no" 1>&6
2090 for ac_prog in lclint lint
2092 # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy $ac_prog; ac_word=$2
2094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_word" >&5
2096 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2098 else
2099 if test -n "$LINT"; then
2100 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2101 else
2102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2103 ac_dummy="$PATH"
2104 for ac_dir in $ac_dummy; do
2105 test -z "$ac_dir" && ac_dir=.
2106 if test -f $ac_dir/$ac_word; then
2107 ac_cv_prog_LINT="$ac_prog"
2108 break
2110 done
2111 IFS="$ac_save_ifs"
2114 LINT="$ac_cv_prog_LINT"
2115 if test -n "$LINT"; then
2116 echo "$ac_t""$LINT" 1>&6
2117 else
2118 echo "$ac_t""no" 1>&6
2121 test -n "$LINT" && break
2122 done
2124 if test "$LINT" = "lint"
2125 then
2126 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2132 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2133 echo "configure:2134: checking for sqrt in -lm" >&5
2134 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2137 else
2138 ac_save_LIBS="$LIBS"
2139 LIBS="-lm $LIBS"
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2143 /* Override any gcc2 internal prototype to avoid an error. */
2144 /* We use char because int might match the return type of a gcc2
2145 builtin and then its argument prototype would still apply. */
2146 char sqrt();
2148 int main() {
2149 sqrt()
2150 ; return 0; }
2152 if { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2153 rm -rf conftest*
2154 eval "ac_cv_lib_$ac_lib_var=yes"
2155 else
2156 echo "configure: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2158 rm -rf conftest*
2159 eval "ac_cv_lib_$ac_lib_var=no"
2161 rm -f conftest*
2162 LIBS="$ac_save_LIBS"
2165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2167 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2169 cat >> confdefs.h <<EOF
2170 #define $ac_tr_lib 1
2173 LIBS="-lm $LIBS"
2175 else
2176 echo "$ac_t""no" 1>&6
2179 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2180 echo "configure:2181: checking for i386_set_ldt in -li386" >&5
2181 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185 ac_save_LIBS="$LIBS"
2186 LIBS="-li386 $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193 char i386_set_ldt();
2195 int main() {
2196 i386_set_ldt()
2197 ; return 0; }
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200 rm -rf conftest*
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2202 else
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 rm -rf conftest*
2206 eval "ac_cv_lib_$ac_lib_var=no"
2208 rm -f conftest*
2209 LIBS="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2216 cat >> confdefs.h <<EOF
2217 #define $ac_tr_lib 1
2220 LIBS="-li386 $LIBS"
2222 else
2223 echo "$ac_t""no" 1>&6
2226 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2227 echo "configure:2228: checking for _oss_ioctl in -lossaudio" >&5
2228 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232 ac_save_LIBS="$LIBS"
2233 LIBS="-lossaudio $LIBS"
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* Override any gcc2 internal prototype to avoid an error. */
2238 /* We use char because int might match the return type of a gcc2
2239 builtin and then its argument prototype would still apply. */
2240 char _oss_ioctl();
2242 int main() {
2243 _oss_ioctl()
2244 ; return 0; }
2246 if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2247 rm -rf conftest*
2248 eval "ac_cv_lib_$ac_lib_var=yes"
2249 else
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2252 rm -rf conftest*
2253 eval "ac_cv_lib_$ac_lib_var=no"
2255 rm -f conftest*
2256 LIBS="$ac_save_LIBS"
2259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_lib 1
2267 LIBS="-lossaudio $LIBS"
2269 else
2270 echo "$ac_t""no" 1>&6
2273 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2274 echo "configure:2275: checking for iswalnum in -lw" >&5
2275 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2278 else
2279 ac_save_LIBS="$LIBS"
2280 LIBS="-lw $LIBS"
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 /* Override any gcc2 internal prototype to avoid an error. */
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2287 char iswalnum();
2289 int main() {
2290 iswalnum()
2291 ; return 0; }
2293 if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2294 rm -rf conftest*
2295 eval "ac_cv_lib_$ac_lib_var=yes"
2296 else
2297 echo "configure: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2299 rm -rf conftest*
2300 eval "ac_cv_lib_$ac_lib_var=no"
2302 rm -f conftest*
2303 LIBS="$ac_save_LIBS"
2306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2307 echo "$ac_t""yes" 1>&6
2308 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2310 cat >> confdefs.h <<EOF
2311 #define $ac_tr_lib 1
2314 LIBS="-lw $LIBS"
2316 else
2317 echo "$ac_t""no" 1>&6
2320 for ac_func in gethostbyname
2322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2323 echo "configure:2324: checking for $ac_func" >&5
2324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2326 else
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* System header to define __stub macros and hopefully few prototypes,
2331 which can conflict with char $ac_func(); below. */
2332 #include <assert.h>
2333 /* Override any gcc2 internal prototype to avoid an error. */
2334 /* We use char because int might match the return type of a gcc2
2335 builtin and then its argument prototype would still apply. */
2336 char $ac_func();
2338 int main() {
2340 /* The GNU C library defines this for functions which it implements
2341 to always fail with ENOSYS. Some functions are actually named
2342 something starting with __ and the normal name is an alias. */
2343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2344 choke me
2345 #else
2346 $ac_func();
2347 #endif
2349 ; return 0; }
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2352 rm -rf conftest*
2353 eval "ac_cv_func_$ac_func=yes"
2354 else
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 rm -rf conftest*
2358 eval "ac_cv_func_$ac_func=no"
2360 rm -f conftest*
2363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2364 echo "$ac_t""yes" 1>&6
2365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2366 cat >> confdefs.h <<EOF
2367 #define $ac_tr_func 1
2370 else
2371 echo "$ac_t""no" 1>&6
2372 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2373 echo "configure:2374: checking for gethostbyname in -lnsl" >&5
2374 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2377 else
2378 ac_save_LIBS="$LIBS"
2379 LIBS="-lnsl -lsocket $LIBS"
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2383 /* Override any gcc2 internal prototype to avoid an error. */
2384 /* We use char because int might match the return type of a gcc2
2385 builtin and then its argument prototype would still apply. */
2386 char gethostbyname();
2388 int main() {
2389 gethostbyname()
2390 ; return 0; }
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2393 rm -rf conftest*
2394 eval "ac_cv_lib_$ac_lib_var=yes"
2395 else
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2398 rm -rf conftest*
2399 eval "ac_cv_lib_$ac_lib_var=no"
2401 rm -f conftest*
2402 LIBS="$ac_save_LIBS"
2405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2406 echo "$ac_t""yes" 1>&6
2407 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2408 else
2409 echo "$ac_t""no" 1>&6
2410 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2411 echo "configure:2412: checking for gethostbyname in -lsocket" >&5
2412 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2415 else
2416 ac_save_LIBS="$LIBS"
2417 LIBS="-lsocket -lnsl $LIBS"
2418 cat > conftest.$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2421 /* Override any gcc2 internal prototype to avoid an error. */
2422 /* We use char because int might match the return type of a gcc2
2423 builtin and then its argument prototype would still apply. */
2424 char gethostbyname();
2426 int main() {
2427 gethostbyname()
2428 ; return 0; }
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431 rm -rf conftest*
2432 eval "ac_cv_lib_$ac_lib_var=yes"
2433 else
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 rm -rf conftest*
2437 eval "ac_cv_lib_$ac_lib_var=no"
2439 rm -f conftest*
2440 LIBS="$ac_save_LIBS"
2443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2446 else
2447 echo "$ac_t""no" 1>&6
2453 done
2455 for ac_func in connect
2457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_func" >&5
2459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2461 else
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $ac_func(); below. */
2467 #include <assert.h>
2468 /* Override any gcc2 internal prototype to avoid an error. */
2469 /* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
2471 char $ac_func();
2473 int main() {
2475 /* The GNU C library defines this for functions which it implements
2476 to always fail with ENOSYS. Some functions are actually named
2477 something starting with __ and the normal name is an alias. */
2478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2479 choke me
2480 #else
2481 $ac_func();
2482 #endif
2484 ; return 0; }
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 rm -rf conftest*
2488 eval "ac_cv_func_$ac_func=yes"
2489 else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 eval "ac_cv_func_$ac_func=no"
2495 rm -f conftest*
2498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2499 echo "$ac_t""yes" 1>&6
2500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2501 cat >> confdefs.h <<EOF
2502 #define $ac_tr_func 1
2505 else
2506 echo "$ac_t""no" 1>&6
2507 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2508 echo "configure:2509: checking for connect in -lsocket" >&5
2509 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2512 else
2513 ac_save_LIBS="$LIBS"
2514 LIBS="-lsocket $LIBS"
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Override any gcc2 internal prototype to avoid an error. */
2519 /* We use char because int might match the return type of a gcc2
2520 builtin and then its argument prototype would still apply. */
2521 char connect();
2523 int main() {
2524 connect()
2525 ; return 0; }
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2528 rm -rf conftest*
2529 eval "ac_cv_lib_$ac_lib_var=yes"
2530 else
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2533 rm -rf conftest*
2534 eval "ac_cv_lib_$ac_lib_var=no"
2536 rm -f conftest*
2537 LIBS="$ac_save_LIBS"
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2543 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2544 cat >> confdefs.h <<EOF
2545 #define $ac_tr_lib 1
2548 LIBS="-lsocket $LIBS"
2550 else
2551 echo "$ac_t""no" 1>&6
2555 done
2557 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2558 echo "configure:2559: checking for setrunelocale in -lxpg4" >&5
2559 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563 ac_save_LIBS="$LIBS"
2564 LIBS="-lxpg4 $LIBS"
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 /* Override any gcc2 internal prototype to avoid an error. */
2569 /* We use char because int might match the return type of a gcc2
2570 builtin and then its argument prototype would still apply. */
2571 char setrunelocale();
2573 int main() {
2574 setrunelocale()
2575 ; return 0; }
2577 if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2578 rm -rf conftest*
2579 eval "ac_cv_lib_$ac_lib_var=yes"
2580 else
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2583 rm -rf conftest*
2584 eval "ac_cv_lib_$ac_lib_var=no"
2586 rm -f conftest*
2587 LIBS="$ac_save_LIBS"
2590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2591 echo "$ac_t""yes" 1>&6
2592 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2593 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2594 cat >> confdefs.h <<EOF
2595 #define $ac_tr_lib 1
2598 LIBS="-lxpg4 $LIBS"
2600 else
2601 echo "$ac_t""no" 1>&6
2604 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2605 echo "configure:2606: checking for mmap in -lmmap" >&5
2606 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2609 else
2610 ac_save_LIBS="$LIBS"
2611 LIBS="-lmmap $LIBS"
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 /* Override any gcc2 internal prototype to avoid an error. */
2616 /* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */
2618 char mmap();
2620 int main() {
2621 mmap()
2622 ; return 0; }
2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625 rm -rf conftest*
2626 eval "ac_cv_lib_$ac_lib_var=yes"
2627 else
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2630 rm -rf conftest*
2631 eval "ac_cv_lib_$ac_lib_var=no"
2633 rm -f conftest*
2634 LIBS="$ac_save_LIBS"
2637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2639 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2641 cat >> confdefs.h <<EOF
2642 #define $ac_tr_lib 1
2645 LIBS="-lmmap $LIBS"
2647 else
2648 echo "$ac_t""no" 1>&6
2651 for ac_func in openpty
2653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_func" >&5
2655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2657 else
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2661 /* System header to define __stub macros and hopefully few prototypes,
2662 which can conflict with char $ac_func(); below. */
2663 #include <assert.h>
2664 /* Override any gcc2 internal prototype to avoid an error. */
2665 /* We use char because int might match the return type of a gcc2
2666 builtin and then its argument prototype would still apply. */
2667 char $ac_func();
2669 int main() {
2671 /* The GNU C library defines this for functions which it implements
2672 to always fail with ENOSYS. Some functions are actually named
2673 something starting with __ and the normal name is an alias. */
2674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2675 choke me
2676 #else
2677 $ac_func();
2678 #endif
2680 ; return 0; }
2682 if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2683 rm -rf conftest*
2684 eval "ac_cv_func_$ac_func=yes"
2685 else
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -rf conftest*
2689 eval "ac_cv_func_$ac_func=no"
2691 rm -f conftest*
2694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2697 cat >> confdefs.h <<EOF
2698 #define $ac_tr_func 1
2701 else
2702 echo "$ac_t""no" 1>&6
2703 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2704 echo "configure:2705: checking for openpty in -lutil" >&5
2705 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2708 else
2709 ac_save_LIBS="$LIBS"
2710 LIBS="-lutil $LIBS"
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2714 /* Override any gcc2 internal prototype to avoid an error. */
2715 /* We use char because int might match the return type of a gcc2
2716 builtin and then its argument prototype would still apply. */
2717 char openpty();
2719 int main() {
2720 openpty()
2721 ; return 0; }
2723 if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2724 rm -rf conftest*
2725 eval "ac_cv_lib_$ac_lib_var=yes"
2726 else
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2729 rm -rf conftest*
2730 eval "ac_cv_lib_$ac_lib_var=no"
2732 rm -f conftest*
2733 LIBS="$ac_save_LIBS"
2736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 cat >> confdefs.h <<\EOF
2739 #define HAVE_OPENPTY 1
2742 LIBS="$LIBS -lutil"
2744 else
2745 echo "$ac_t""no" 1>&6
2749 done
2752 for ac_hdr in dlfcn.h
2754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_hdr" >&5
2757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2759 else
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2763 #include <$ac_hdr>
2765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2766 { (eval echo configure:2767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2768 if test -z "$ac_err"; then
2769 rm -rf conftest*
2770 eval "ac_cv_header_$ac_safe=yes"
2771 else
2772 echo "$ac_err" >&5
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2775 rm -rf conftest*
2776 eval "ac_cv_header_$ac_safe=no"
2778 rm -f conftest*
2780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2781 echo "$ac_t""yes" 1>&6
2782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2783 cat >> confdefs.h <<EOF
2784 #define $ac_tr_hdr 1
2786 for ac_func in dlopen
2788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_func" >&5
2790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2792 else
2793 cat > conftest.$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2796 /* System header to define __stub macros and hopefully few prototypes,
2797 which can conflict with char $ac_func(); below. */
2798 #include <assert.h>
2799 /* Override any gcc2 internal prototype to avoid an error. */
2800 /* We use char because int might match the return type of a gcc2
2801 builtin and then its argument prototype would still apply. */
2802 char $ac_func();
2804 int main() {
2806 /* The GNU C library defines this for functions which it implements
2807 to always fail with ENOSYS. Some functions are actually named
2808 something starting with __ and the normal name is an alias. */
2809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2810 choke me
2811 #else
2812 $ac_func();
2813 #endif
2815 ; return 0; }
2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2818 rm -rf conftest*
2819 eval "ac_cv_func_$ac_func=yes"
2820 else
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2823 rm -rf conftest*
2824 eval "ac_cv_func_$ac_func=no"
2826 rm -f conftest*
2829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2830 echo "$ac_t""yes" 1>&6
2831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2832 cat >> confdefs.h <<EOF
2833 #define $ac_tr_func 1
2835 cat >> confdefs.h <<\EOF
2836 #define HAVE_DL_API 1
2839 else
2840 echo "$ac_t""no" 1>&6
2841 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2842 echo "configure:2843: checking for dlopen in -ldl" >&5
2843 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2846 else
2847 ac_save_LIBS="$LIBS"
2848 LIBS="-ldl $LIBS"
2849 cat > conftest.$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2852 /* Override any gcc2 internal prototype to avoid an error. */
2853 /* We use char because int might match the return type of a gcc2
2854 builtin and then its argument prototype would still apply. */
2855 char dlopen();
2857 int main() {
2858 dlopen()
2859 ; return 0; }
2861 if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2862 rm -rf conftest*
2863 eval "ac_cv_lib_$ac_lib_var=yes"
2864 else
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867 rm -rf conftest*
2868 eval "ac_cv_lib_$ac_lib_var=no"
2870 rm -f conftest*
2871 LIBS="$ac_save_LIBS"
2874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2876 cat >> confdefs.h <<\EOF
2877 #define HAVE_DL_API 1
2880 LIBS="$LIBS -ldl"
2881 else
2882 echo "$ac_t""no" 1>&6
2883 LIBEXT="a"
2889 done
2891 else
2892 echo "$ac_t""no" 1>&6
2893 LIBEXT="a"
2896 done
2900 X_DLLS=""
2902 XFILES=""
2904 OPENGLFILES=""
2906 OPENGL32_DLL=""
2908 DGA_SRCS=""
2910 DGA2_SRCS=""
2912 MESA_SRCS=""
2913 if test "$have_x" = "yes"
2914 then
2915 XLIB="-lXext -lX11"
2916 ac_save_CPPFLAGS="$CPPFLAGS"
2917 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2919 for ac_hdr in X11/xpm.h
2921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_hdr" >&5
2924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2926 else
2927 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 #include <$ac_hdr>
2932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2933 { (eval echo configure:2934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2935 if test -z "$ac_err"; then
2936 rm -rf conftest*
2937 eval "ac_cv_header_$ac_safe=yes"
2938 else
2939 echo "$ac_err" >&5
2940 echo "configure: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2942 rm -rf conftest*
2943 eval "ac_cv_header_$ac_safe=no"
2945 rm -f conftest*
2947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2948 echo "$ac_t""yes" 1>&6
2949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2950 cat >> confdefs.h <<EOF
2951 #define $ac_tr_hdr 1
2953 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2954 echo "configure:2955: checking for XpmCreatePixmapFromData in -lXpm" >&5
2955 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2958 else
2959 ac_save_LIBS="$LIBS"
2960 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
2961 $LIBS"
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 /* Override any gcc2 internal prototype to avoid an error. */
2966 /* We use char because int might match the return type of a gcc2
2967 builtin and then its argument prototype would still apply. */
2968 char XpmCreatePixmapFromData();
2970 int main() {
2971 XpmCreatePixmapFromData()
2972 ; return 0; }
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2975 rm -rf conftest*
2976 eval "ac_cv_lib_$ac_lib_var=yes"
2977 else
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 rm -rf conftest*
2981 eval "ac_cv_lib_$ac_lib_var=no"
2983 rm -f conftest*
2984 LIBS="$ac_save_LIBS"
2987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2988 echo "$ac_t""yes" 1>&6
2989 cat >> confdefs.h <<\EOF
2990 #define HAVE_LIBXXPM 1
2992 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2993 else
2994 echo "$ac_t""no" 1>&6
2998 else
2999 echo "$ac_t""no" 1>&6
3000 echo "Redhat : xpm xpm-devel"
3001 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
3002 echo "SuSE : xpm"
3003 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
3004 echo
3005 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3006 echo "the directory /contrib/libraries."
3007 echo
3008 exit 1
3012 done
3015 for ac_hdr in X11/Xlib.h
3017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3019 echo "configure:3020: checking for $ac_hdr" >&5
3020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3022 else
3023 cat > conftest.$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3026 #include <$ac_hdr>
3028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3029 { (eval echo configure:3030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3031 if test -z "$ac_err"; then
3032 rm -rf conftest*
3033 eval "ac_cv_header_$ac_safe=yes"
3034 else
3035 echo "$ac_err" >&5
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3038 rm -rf conftest*
3039 eval "ac_cv_header_$ac_safe=no"
3041 rm -f conftest*
3043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3046 cat >> confdefs.h <<EOF
3047 #define $ac_tr_hdr 1
3050 for ac_hdr in X11/extensions/XShm.h
3052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3054 echo "configure:3055: checking for $ac_hdr" >&5
3055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 cat > conftest.$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3061 #include <$ac_hdr>
3063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3064 { (eval echo configure:3065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3066 if test -z "$ac_err"; then
3067 rm -rf conftest*
3068 eval "ac_cv_header_$ac_safe=yes"
3069 else
3070 echo "$ac_err" >&5
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3073 rm -rf conftest*
3074 eval "ac_cv_header_$ac_safe=no"
3076 rm -f conftest*
3078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3079 echo "$ac_t""yes" 1>&6
3080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3081 cat >> confdefs.h <<EOF
3082 #define $ac_tr_hdr 1
3084 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3085 echo "configure:3086: checking for XShmQueryExtension in -lXext" >&5
3086 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3089 else
3090 ac_save_LIBS="$LIBS"
3091 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 /* Override any gcc2 internal prototype to avoid an error. */
3096 /* We use char because int might match the return type of a gcc2
3097 builtin and then its argument prototype would still apply. */
3098 char XShmQueryExtension();
3100 int main() {
3101 XShmQueryExtension()
3102 ; return 0; }
3104 if { (eval echo configure:3105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3105 rm -rf conftest*
3106 eval "ac_cv_lib_$ac_lib_var=yes"
3107 else
3108 echo "configure: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3110 rm -rf conftest*
3111 eval "ac_cv_lib_$ac_lib_var=no"
3113 rm -f conftest*
3114 LIBS="$ac_save_LIBS"
3117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 cat >> confdefs.h <<\EOF
3120 #define HAVE_LIBXXSHM 1
3123 else
3124 echo "$ac_t""no" 1>&6
3128 else
3129 echo "$ac_t""no" 1>&6
3130 echo "configure: warning: Xshm extension not found!!" 1>&2
3133 done
3136 for ac_hdr in X11/extensions/xf86dga.h
3138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_hdr" >&5
3141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3143 else
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <$ac_hdr>
3149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3150 { (eval echo configure:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3152 if test -z "$ac_err"; then
3153 rm -rf conftest*
3154 eval "ac_cv_header_$ac_safe=yes"
3155 else
3156 echo "$ac_err" >&5
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3159 rm -rf conftest*
3160 eval "ac_cv_header_$ac_safe=no"
3162 rm -f conftest*
3164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3167 cat >> confdefs.h <<EOF
3168 #define $ac_tr_hdr 1
3170 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3171 echo "configure:3172: checking for XDGAQueryExtension in -lXxf86dga" >&5
3172 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3175 else
3176 ac_save_LIBS="$LIBS"
3177 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3178 $LIBS"
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 /* Override any gcc2 internal prototype to avoid an error. */
3183 /* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3185 char XDGAQueryExtension();
3187 int main() {
3188 XDGAQueryExtension()
3189 ; return 0; }
3191 if { (eval echo configure:3192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3192 rm -rf conftest*
3193 eval "ac_cv_lib_$ac_lib_var=yes"
3194 else
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3197 rm -rf conftest*
3198 eval "ac_cv_lib_$ac_lib_var=no"
3200 rm -f conftest*
3201 LIBS="$ac_save_LIBS"
3204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3205 echo "$ac_t""yes" 1>&6
3206 cat >> confdefs.h <<\EOF
3207 #define HAVE_LIBXXF86DGA2 1
3210 cat >> confdefs.h <<\EOF
3211 #define HAVE_LIBXXF86DGA 1
3214 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3215 DGA_SRCS='$(DGA_SRCS)'
3216 DGA2_SRCS='$(DGA2_SRCS)'
3218 else
3219 echo "$ac_t""no" 1>&6
3220 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3221 echo "configure:3222: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3222 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3225 else
3226 ac_save_LIBS="$LIBS"
3227 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3228 $LIBS"
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 /* Override any gcc2 internal prototype to avoid an error. */
3233 /* We use char because int might match the return type of a gcc2
3234 builtin and then its argument prototype would still apply. */
3235 char XF86DGAQueryExtension();
3237 int main() {
3238 XF86DGAQueryExtension()
3239 ; return 0; }
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3242 rm -rf conftest*
3243 eval "ac_cv_lib_$ac_lib_var=yes"
3244 else
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3247 rm -rf conftest*
3248 eval "ac_cv_lib_$ac_lib_var=no"
3250 rm -f conftest*
3251 LIBS="$ac_save_LIBS"
3254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 cat >> confdefs.h <<\EOF
3257 #define HAVE_LIBXXF86DGA 1
3260 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3261 DGA_SRCS='$(DGA_SRCS)'
3263 else
3264 echo "$ac_t""no" 1>&6
3271 else
3272 echo "$ac_t""no" 1>&6
3273 echo "configure: warning: DGA extension not found!!" 1>&2
3276 done
3279 for ac_hdr in X11/extensions/xf86vmode.h
3281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3283 echo "configure:3284: checking for $ac_hdr" >&5
3284 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3286 else
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <$ac_hdr>
3292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3293 { (eval echo configure:3294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3295 if test -z "$ac_err"; then
3296 rm -rf conftest*
3297 eval "ac_cv_header_$ac_safe=yes"
3298 else
3299 echo "$ac_err" >&5
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3302 rm -rf conftest*
3303 eval "ac_cv_header_$ac_safe=no"
3305 rm -f conftest*
3307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3310 cat >> confdefs.h <<EOF
3311 #define $ac_tr_hdr 1
3313 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3314 echo "configure:3315: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3315 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3318 else
3319 ac_save_LIBS="$LIBS"
3320 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3321 $LIBS"
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3328 char XF86VidModeQueryExtension();
3330 int main() {
3331 XF86VidModeQueryExtension()
3332 ; return 0; }
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3335 rm -rf conftest*
3336 eval "ac_cv_lib_$ac_lib_var=yes"
3337 else
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 rm -rf conftest*
3341 eval "ac_cv_lib_$ac_lib_var=no"
3343 rm -f conftest*
3344 LIBS="$ac_save_LIBS"
3347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 cat >> confdefs.h <<\EOF
3350 #define HAVE_LIBXXF86VM 1
3353 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3355 else
3356 echo "$ac_t""no" 1>&6
3360 else
3361 echo "$ac_t""no" 1>&6
3362 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3365 done
3369 else
3370 echo "$ac_t""no" 1>&6
3372 done
3374 if test $OPENGL = "yes" -o $OPENGL = "normal"
3375 then
3376 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3380 echo "configure:3381: checking for $ac_hdr" >&5
3381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3383 else
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 #include <$ac_hdr>
3389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3390 { (eval echo configure:3391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3392 if test -z "$ac_err"; then
3393 rm -rf conftest*
3394 eval "ac_cv_header_$ac_safe=yes"
3395 else
3396 echo "$ac_err" >&5
3397 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3399 rm -rf conftest*
3400 eval "ac_cv_header_$ac_safe=no"
3402 rm -f conftest*
3404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3407 cat >> confdefs.h <<EOF
3408 #define $ac_tr_hdr 1
3411 else
3412 echo "$ac_t""no" 1>&6
3414 done
3416 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" -a "$ac_cv_header_GL_glext_h" = "yes"
3417 then
3418 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
3419 echo "configure:3420: checking "for up-to-date OpenGL version"" >&5
3420 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3422 else
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 #include <GL/gl.h>
3427 int main() {
3428 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3429 ; return 0; }
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3432 rm -rf conftest*
3433 wine_cv_opengl_version_OK="yes"
3434 else
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 rm -rf conftest*
3438 wine_cv_opengl_version_OK="no"
3441 rm -f conftest*
3445 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3447 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
3448 echo "configure:3449: checking "for thread-safe OpenGL version"" >&5
3449 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3451 else
3452 saved_libs=$LIBS
3453 LIBS="$X_LIBS -lGL"
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3458 int main() {
3459 pthread_getspecific();
3460 ; return 0; }
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3463 rm -rf conftest*
3464 wine_cv_opengl_version_threadsafe="yes"
3465 else
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3468 rm -rf conftest*
3469 wine_cv_opengl_version_threadsafe="no"
3471 rm -f conftest*
3472 LIBS=$saved_libs
3476 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3478 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3479 then
3480 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3481 echo "configure:3482: checking for glXCreateContext in -lGL" >&5
3482 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3485 else
3486 ac_save_LIBS="$LIBS"
3487 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3494 char glXCreateContext();
3496 int main() {
3497 glXCreateContext()
3498 ; return 0; }
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3501 rm -rf conftest*
3502 eval "ac_cv_lib_$ac_lib_var=yes"
3503 else
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3506 rm -rf conftest*
3507 eval "ac_cv_lib_$ac_lib_var=no"
3509 rm -f conftest*
3510 LIBS="$ac_save_LIBS"
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3516 MESA_SRCS='$(MESA_SRCS)'
3518 else
3519 echo "$ac_t""no" 1>&6
3523 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3524 then
3525 echo $ac_n "checking "for the OpenGL Color Index extension"""... $ac_c" 1>&6
3526 echo "configure:3527: checking "for the OpenGL Color Index extension"" >&5
3527 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3529 else
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 #include <GL/gl.h>
3534 int main() {
3535 GLenum test = GL_COLOR_INDEX8_EXT;
3536 ; return 0; }
3538 if { (eval echo configure:3539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3539 rm -rf conftest*
3540 cat >> confdefs.h <<\EOF
3541 #define HAVE_GL_COLOR_TABLE 1
3544 else
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 rm -f conftest*
3551 echo "$ac_t""$dummy" 1>&6
3553 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3554 echo "configure:3555: checking for glColorTableEXT in -lGL" >&5
3555 ac_lib_var=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3558 else
3559 ac_save_LIBS="$LIBS"
3560 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3567 char glColorTableEXT();
3569 int main() {
3570 glColorTableEXT()
3571 ; return 0; }
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3574 rm -rf conftest*
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3576 else
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3579 rm -rf conftest*
3580 eval "ac_cv_lib_$ac_lib_var=no"
3582 rm -f conftest*
3583 LIBS="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 cat >> confdefs.h <<\EOF
3589 #define HAVE_GL_PALETTED_TEXTURE 1
3592 else
3593 echo "$ac_t""no" 1>&6
3596 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
3597 echo "configure:3598: checking for glXGetProcAddressARB in -lGL" >&5
3598 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3601 else
3602 ac_save_LIBS="$LIBS"
3603 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3607 /* Override any gcc2 internal prototype to avoid an error. */
3608 /* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3610 char glXGetProcAddressARB();
3612 int main() {
3613 glXGetProcAddressARB()
3614 ; return 0; }
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3617 rm -rf conftest*
3618 eval "ac_cv_lib_$ac_lib_var=yes"
3619 else
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 eval "ac_cv_lib_$ac_lib_var=no"
3625 rm -f conftest*
3626 LIBS="$ac_save_LIBS"
3629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 cat >> confdefs.h <<\EOF
3632 #define HAVE_GLX_GETPROCADDRESS 1
3635 else
3636 echo "$ac_t""no" 1>&6
3640 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
3641 then
3642 cat >> confdefs.h <<\EOF
3643 #define HAVE_OPENGL 1
3646 OPENGL32_DLL=opengl32
3647 OPENGLFILES='$(OPENGLFILES)'
3654 CPPFLAGS="$ac_save_CPPFLAGS"
3655 X_DLLS='$(X_DLLS)'
3656 XFILES='$(XFILES)'
3657 else
3658 XLIB=""
3659 X_CFLAGS=""
3660 X_LIBS=""
3663 if test "$CURSES" = "yes"
3664 then
3665 for ac_hdr in ncurses.h
3667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3669 echo "configure:3670: checking for $ac_hdr" >&5
3670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3672 else
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <$ac_hdr>
3678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3679 { (eval echo configure:3680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3681 if test -z "$ac_err"; then
3682 rm -rf conftest*
3683 eval "ac_cv_header_$ac_safe=yes"
3684 else
3685 echo "$ac_err" >&5
3686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3688 rm -rf conftest*
3689 eval "ac_cv_header_$ac_safe=no"
3691 rm -f conftest*
3693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3694 echo "$ac_t""yes" 1>&6
3695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3696 cat >> confdefs.h <<EOF
3697 #define $ac_tr_hdr 1
3700 else
3701 echo "$ac_t""no" 1>&6
3703 done
3705 if test "$ac_cv_header_ncurses_h" = "yes"
3706 then
3707 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3708 echo "configure:3709: checking for waddch in -lncurses" >&5
3709 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3712 else
3713 ac_save_LIBS="$LIBS"
3714 LIBS="-lncurses $LIBS"
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3721 char waddch();
3723 int main() {
3724 waddch()
3725 ; return 0; }
3727 if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3728 rm -rf conftest*
3729 eval "ac_cv_lib_$ac_lib_var=yes"
3730 else
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3733 rm -rf conftest*
3734 eval "ac_cv_lib_$ac_lib_var=no"
3736 rm -f conftest*
3737 LIBS="$ac_save_LIBS"
3740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3741 echo "$ac_t""yes" 1>&6
3742 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3743 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3744 cat >> confdefs.h <<EOF
3745 #define $ac_tr_lib 1
3748 LIBS="-lncurses $LIBS"
3750 else
3751 echo "$ac_t""no" 1>&6
3755 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3756 then
3757 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3758 echo "configure:3759: checking for resizeterm in -lncurses" >&5
3759 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3762 else
3763 ac_save_LIBS="$LIBS"
3764 LIBS="-lncurses $LIBS"
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3771 char resizeterm();
3773 int main() {
3774 resizeterm()
3775 ; return 0; }
3777 if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3778 rm -rf conftest*
3779 eval "ac_cv_lib_$ac_lib_var=yes"
3780 else
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 rm -rf conftest*
3784 eval "ac_cv_lib_$ac_lib_var=no"
3786 rm -f conftest*
3787 LIBS="$ac_save_LIBS"
3790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3791 echo "$ac_t""yes" 1>&6
3792 cat >> confdefs.h <<\EOF
3793 #define HAVE_RESIZETERM 1
3796 else
3797 echo "$ac_t""no" 1>&6
3800 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3801 echo "configure:3802: checking for getbkgd in -lncurses" >&5
3802 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3805 else
3806 ac_save_LIBS="$LIBS"
3807 LIBS="-lncurses $LIBS"
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3814 char getbkgd();
3816 int main() {
3817 getbkgd()
3818 ; return 0; }
3820 if { (eval echo configure:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3821 rm -rf conftest*
3822 eval "ac_cv_lib_$ac_lib_var=yes"
3823 else
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 rm -rf conftest*
3827 eval "ac_cv_lib_$ac_lib_var=no"
3829 rm -f conftest*
3830 LIBS="$ac_save_LIBS"
3833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 cat >> confdefs.h <<\EOF
3836 #define HAVE_GETBKGD 1
3839 else
3840 echo "$ac_t""no" 1>&6
3843 else
3844 for ac_hdr in curses.h
3846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3848 echo "configure:3849: checking for $ac_hdr" >&5
3849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3851 else
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3855 #include <$ac_hdr>
3857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3858 { (eval echo configure:3859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3860 if test -z "$ac_err"; then
3861 rm -rf conftest*
3862 eval "ac_cv_header_$ac_safe=yes"
3863 else
3864 echo "$ac_err" >&5
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3867 rm -rf conftest*
3868 eval "ac_cv_header_$ac_safe=no"
3870 rm -f conftest*
3872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3873 echo "$ac_t""yes" 1>&6
3874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3875 cat >> confdefs.h <<EOF
3876 #define $ac_tr_hdr 1
3879 else
3880 echo "$ac_t""no" 1>&6
3882 done
3884 if test "$ac_cv_header_curses_h" = "yes"
3885 then
3886 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3887 echo "configure:3888: checking for waddch in -lcurses" >&5
3888 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3891 else
3892 ac_save_LIBS="$LIBS"
3893 LIBS="-lcurses $LIBS"
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3900 char waddch();
3902 int main() {
3903 waddch()
3904 ; return 0; }
3906 if { (eval echo configure:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3907 rm -rf conftest*
3908 eval "ac_cv_lib_$ac_lib_var=yes"
3909 else
3910 echo "configure: failed program was:" >&5
3911 cat conftest.$ac_ext >&5
3912 rm -rf conftest*
3913 eval "ac_cv_lib_$ac_lib_var=no"
3915 rm -f conftest*
3916 LIBS="$ac_save_LIBS"
3919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3920 echo "$ac_t""yes" 1>&6
3921 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3922 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3923 cat >> confdefs.h <<EOF
3924 #define $ac_tr_lib 1
3927 LIBS="-lcurses $LIBS"
3929 else
3930 echo "$ac_t""no" 1>&6
3933 if test "$ac_cv_lib_curses_waddch" = "yes"
3934 then
3935 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3936 echo "configure:3937: checking for resizeterm in -lcurses" >&5
3937 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3940 else
3941 ac_save_LIBS="$LIBS"
3942 LIBS="-lcurses $LIBS"
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 /* Override any gcc2 internal prototype to avoid an error. */
3947 /* We use char because int might match the return type of a gcc2
3948 builtin and then its argument prototype would still apply. */
3949 char resizeterm();
3951 int main() {
3952 resizeterm()
3953 ; return 0; }
3955 if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3956 rm -rf conftest*
3957 eval "ac_cv_lib_$ac_lib_var=yes"
3958 else
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3961 rm -rf conftest*
3962 eval "ac_cv_lib_$ac_lib_var=no"
3964 rm -f conftest*
3965 LIBS="$ac_save_LIBS"
3968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3969 echo "$ac_t""yes" 1>&6
3970 cat >> confdefs.h <<\EOF
3971 #define HAVE_RESIZETERM 1
3974 else
3975 echo "$ac_t""no" 1>&6
3978 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3979 echo "configure:3980: checking for getbkgd in -lcurses" >&5
3980 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3983 else
3984 ac_save_LIBS="$LIBS"
3985 LIBS="-lcurses $LIBS"
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
3992 char getbkgd();
3994 int main() {
3995 getbkgd()
3996 ; return 0; }
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3999 rm -rf conftest*
4000 eval "ac_cv_lib_$ac_lib_var=yes"
4001 else
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4004 rm -rf conftest*
4005 eval "ac_cv_lib_$ac_lib_var=no"
4007 rm -f conftest*
4008 LIBS="$ac_save_LIBS"
4011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4012 echo "$ac_t""yes" 1>&6
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_GETBKGD 1
4017 else
4018 echo "$ac_t""no" 1>&6
4026 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4027 echo "configure:4028: checking "for GNU style IPX support"" >&5
4028 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 #include <sys/socket.h>
4035 #include <netipx/ipx.h>
4036 int main() {
4037 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4038 ; return 0; }
4040 if { (eval echo configure:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4041 rm -rf conftest*
4042 ac_cv_c_ipx_gnu="yes"
4043 else
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4046 rm -rf conftest*
4047 ac_cv_c_ipx_gnu="no"
4049 rm -f conftest*
4053 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4054 if test "$ac_cv_c_ipx_gnu" = "yes"
4055 then
4056 cat >> confdefs.h <<\EOF
4057 #define HAVE_IPX_GNU 1
4062 if test "$ac_cv_c_ipx_gnu" = "no"
4063 then
4064 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4065 echo "configure:4066: checking "for linux style IPX support"" >&5
4066 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4068 else
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 #include <sys/socket.h>
4073 #include <asm/types.h>
4074 #include <linux/ipx.h>
4075 int main() {
4076 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4077 ; return 0; }
4079 if { (eval echo configure:4080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4080 rm -rf conftest*
4081 ac_cv_c_ipx_linux="yes"
4082 else
4083 echo "configure: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4085 rm -rf conftest*
4086 ac_cv_c_ipx_linux="no"
4088 rm -f conftest*
4092 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4093 if test "$ac_cv_c_ipx_linux" = "yes"
4094 then
4095 cat >> confdefs.h <<\EOF
4096 #define HAVE_IPX_LINUX 1
4102 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4106 echo "configure:4107: checking for $ac_hdr" >&5
4107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4109 else
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 #include <$ac_hdr>
4115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4116 { (eval echo configure:4117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4118 if test -z "$ac_err"; then
4119 rm -rf conftest*
4120 eval "ac_cv_header_$ac_safe=yes"
4121 else
4122 echo "$ac_err" >&5
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4125 rm -rf conftest*
4126 eval "ac_cv_header_$ac_safe=no"
4128 rm -f conftest*
4130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4133 cat >> confdefs.h <<EOF
4134 #define $ac_tr_hdr 1
4136 break
4137 else
4138 echo "$ac_t""no" 1>&6
4140 done
4143 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4144 echo "configure:4145: checking "for Open Sound System"" >&5
4145 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4147 else
4148 cat > conftest.$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4152 #if defined(HAVE_SYS_SOUNDCARD_H)
4153 #include <sys/soundcard.h>
4154 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4155 #include <machine/soundcard.h>
4156 #elif defined(HAVE_SOUNDCARD_H)
4157 #include <soundcard.h>
4158 #endif
4160 int main() {
4163 /* check for one of the Open Sound System specific SNDCTL_ defines */
4164 #if !defined(SNDCTL_DSP_STEREO)
4165 #error No open sound system
4166 #endif
4168 ; return 0; }
4170 if { (eval echo configure:4171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4171 rm -rf conftest*
4172 ac_cv_c_opensoundsystem="yes"
4173 else
4174 echo "configure: failed program was:" >&5
4175 cat conftest.$ac_ext >&5
4176 rm -rf conftest*
4177 ac_cv_c_opensoundsystem="no"
4179 rm -f conftest*
4182 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4184 if test "$ac_cv_c_opensoundsystem" = "yes"
4185 then
4186 cat >> confdefs.h <<\EOF
4187 #define HAVE_OSS 1
4192 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4193 echo "configure:4194: checking "for Open Sound System/MIDI interface"" >&5
4194 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4196 else
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4201 #if defined(HAVE_SYS_SOUNDCARD_H)
4202 #include <sys/soundcard.h>
4203 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4204 #include <machine/soundcard.h>
4205 #elif defined(HAVE_SOUNDCARD_H)
4206 #include <soundcard.h>
4207 #endif
4209 int main() {
4212 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4213 #if !defined(SNDCTL_SEQ_SYNC)
4214 #error No open sound system MIDI interface
4215 #endif
4217 ; return 0; }
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4220 rm -rf conftest*
4221 ac_cv_c_opensoundsystem_midi="yes"
4222 else
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4225 rm -rf conftest*
4226 ac_cv_c_opensoundsystem_midi="no"
4228 rm -f conftest*
4231 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4233 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4234 then
4235 cat >> confdefs.h <<\EOF
4236 #define HAVE_OSS_MIDI 1
4241 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4244 if test "x${GCC}" = "xyes"
4245 then
4246 CFLAGS="$CFLAGS -Wall"
4247 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4248 echo "configure:4249: checking "for gcc strength-reduce bug"" >&5
4249 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4251 else
4252 if test "$cross_compiling" = yes; then
4253 ac_cv_c_gcc_strength_bug="yes"
4254 else
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4259 int main(void) {
4260 static int Array[3];
4261 unsigned int B = 3;
4262 int i;
4263 for(i=0; i<B; i++) Array[i] = i - 3;
4264 exit( Array[1] != -2 );
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4268 then
4269 ac_cv_c_gcc_strength_bug="no"
4270 else
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4273 rm -fr conftest*
4274 ac_cv_c_gcc_strength_bug="yes"
4276 rm -fr conftest*
4281 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4282 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4283 then
4284 CFLAGS="$CFLAGS -fno-strength-reduce"
4289 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4290 echo "configure:4291: checking "whether external symbols need an underscore prefix"" >&5
4291 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4293 else
4294 saved_libs=$LIBS
4295 LIBS="conftest_asm.s $LIBS"
4296 cat > conftest_asm.s <<EOF
4297 .globl _ac_test
4298 _ac_test:
4299 .long 0
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 extern int ac_test;
4305 int main() {
4306 if (ac_test) return 1
4307 ; return 0; }
4309 if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4310 rm -rf conftest*
4311 ac_cv_c_extern_prefix="yes"
4312 else
4313 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4315 rm -rf conftest*
4316 ac_cv_c_extern_prefix="no"
4318 rm -f conftest*
4319 LIBS=$saved_libs
4322 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4323 if test "$ac_cv_c_extern_prefix" = "yes"
4324 then
4325 cat >> confdefs.h <<\EOF
4326 #define NEED_UNDERSCORE_PREFIX 1
4332 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4333 echo "configure:4334: checking "whether assembler accepts .string"" >&5
4334 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336 else
4337 saved_libs=$LIBS
4338 LIBS="conftest_asm.s $LIBS"
4339 cat > conftest_asm.s <<EOF
4340 .string "test"
4342 cat > conftest.$ac_ext <<EOF
4343 #line 4344 "configure"
4344 #include "confdefs.h"
4346 int main() {
4348 ; return 0; }
4350 if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4351 rm -rf conftest*
4352 ac_cv_c_asm_string="yes"
4353 else
4354 echo "configure: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4356 rm -rf conftest*
4357 ac_cv_c_asm_string="no"
4359 rm -f conftest*
4360 LIBS=$saved_libs
4363 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4364 if test "$ac_cv_c_asm_string" = "yes"
4365 then
4366 cat >> confdefs.h <<\EOF
4367 #define HAVE_ASM_STRING 1
4373 LDSHARED=""
4374 if test "$LIBEXT" = "so"
4375 then
4376 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4377 echo "configure:4378: checking "whether we can build a Linux dll"" >&5
4378 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4380 else
4381 saved_cflags=$CFLAGS
4382 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4387 int main() {
4388 return 1
4389 ; return 0; }
4391 if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4392 rm -rf conftest*
4393 ac_cv_c_dll_linux="yes"
4394 else
4395 echo "configure: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4397 rm -rf conftest*
4398 ac_cv_c_dll_linux="no"
4400 rm -f conftest*
4401 CFLAGS=$saved_cflags
4405 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4406 if test "$ac_cv_c_dll_linux" = "yes"
4407 then
4408 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4409 else
4410 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4411 echo "configure:4412: checking whether we can build a UnixWare (Solaris) dll" >&5
4412 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4414 else
4415 saved_cflags=$CFLAGS
4416 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4421 int main() {
4422 return 1
4423 ; return 0; }
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4426 rm -rf conftest*
4427 ac_cv_c_dll_unixware="yes"
4428 else
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 rm -rf conftest*
4432 ac_cv_c_dll_unixware="no"
4434 rm -f conftest*
4435 CFLAGS=$saved_cflags
4439 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4440 if test "$ac_cv_c_dll_unixware" = "yes"
4441 then
4442 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4443 else
4444 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4445 echo "configure:4446: checking "whether we can build a NetBSD dll"" >&5
4446 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4448 else
4449 saved_cflags=$CFLAGS
4450 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4455 int main() {
4456 return 1
4457 ; return 0; }
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460 rm -rf conftest*
4461 ac_cv_c_dll_netbsd="yes"
4462 else
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 rm -rf conftest*
4466 ac_cv_c_dll_netbsd="no"
4468 rm -f conftest*
4469 CFLAGS=$saved_cflags
4473 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4474 if test "$ac_cv_c_dll_netbsd" = "yes"
4475 then
4476 LDSHARED="ld -Bshareable -Bforcearchive"
4480 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4481 then
4482 LIBEXT="a"
4486 DLLFLAGS=""
4487 BUILDFLAGS=""
4489 if test "$LIBEXT" = "so"; then
4490 BUILDFLAGS="-pic"
4491 DLLFLAGS="-fPIC"
4492 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4493 else
4494 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine \$(X_LIBS) \$(XLIB)"
4495 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4496 echo "configure:4497: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4497 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4499 else
4500 saved_cflags=$CFLAGS
4501 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4506 int main() {
4507 return 1
4508 ; return 0; }
4510 if { (eval echo configure:4511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 rm -rf conftest*
4512 ac_cv_c_whole_archive="yes"
4513 else
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4516 rm -rf conftest*
4517 ac_cv_c_whole_archive="no"
4519 rm -f conftest*
4520 CFLAGS=$saved_cflags
4524 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4525 if test "$ac_cv_c_whole_archive" = "yes"
4526 then
4527 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4528 else
4529 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4530 echo "configure:4531: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4531 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4533 else
4534 saved_cflags=$CFLAGS
4535 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4540 int main() {
4541 return 1
4542 ; return 0; }
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4545 rm -rf conftest*
4546 ac_cv_c_allextract="yes"
4547 else
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 rm -rf conftest*
4551 ac_cv_c_allextract="no"
4553 rm -f conftest*
4554 CFLAGS=$saved_cflags
4558 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4559 if test "$ac_cv_c_allextract" = "yes"
4560 then
4561 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4573 wine_cv_libc_reentrant=no
4574 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4575 echo "configure:4576: checking "for reentrant libc: __errno_location"" >&5
4576 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4578 else
4579 if test "$cross_compiling" = yes; then
4580 wine_cv_libc_r__errno_location=yes
4581 else
4582 cat > conftest.$ac_ext <<EOF
4583 #line 4584 "configure"
4584 #include "confdefs.h"
4585 int myerrno = 0;
4586 char buf[256];
4587 int *__errno_location(){return &myerrno;}
4588 main(){connect(0,buf,255); exit(!myerrno);}
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4591 then
4592 wine_cv_libc_r__errno_location=yes
4593 else
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4596 rm -fr conftest*
4597 wine_cv_libc_r__errno_location=no
4599 rm -fr conftest*
4605 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4606 if test "$wine_cv_libc_r__errno_location" = "yes"
4607 then
4608 cat >> confdefs.h <<\EOF
4609 #define HAVE__ERRNO_LOCATION 1
4612 wine_cv_libc_reentrant=__errno_location
4614 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4615 echo "configure:4616: checking "for reentrant libc: __error"" >&5
4616 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4618 else
4619 if test "$cross_compiling" = yes; then
4620 wine_cv_libc_r__error=yes
4621 else
4622 cat > conftest.$ac_ext <<EOF
4623 #line 4624 "configure"
4624 #include "confdefs.h"
4625 int myerrno = 0;
4626 char buf[256];
4627 int *__error(){return &myerrno;}
4628 main(){connect(0,buf,255); exit(!myerrno);}
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4631 then
4632 wine_cv_libc_r__error=yes
4633 else
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4636 rm -fr conftest*
4637 wine_cv_libc_r__error=no
4639 rm -fr conftest*
4645 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4646 if test "$wine_cv_libc_r__error" = "yes"
4647 then
4648 cat >> confdefs.h <<\EOF
4649 #define HAVE__ERROR 1
4652 wine_cv_libc_reentrant=__error
4654 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4655 echo "configure:4656: checking "for reentrant libc: ___errno"" >&5
4656 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4658 else
4659 if test "$cross_compiling" = yes; then
4660 wine_cv_libc_r___errno=yes
4661 else
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 int myerrno = 0;
4666 char buf[256];
4667 int *___errno(){return &myerrno;}
4668 main(){connect(0,buf,255); exit(!myerrno);}
4670 if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4671 then
4672 wine_cv_libc_r___errno=yes
4673 else
4674 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4676 rm -fr conftest*
4677 wine_cv_libc_r___errno=no
4679 rm -fr conftest*
4685 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4686 if test "$wine_cv_libc_r___errno" = "yes"
4687 then
4688 cat >> confdefs.h <<\EOF
4689 #define HAVE___ERRNO 1
4692 wine_cv_libc_reentrant=___errno
4694 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4695 echo "configure:4696: checking "for reentrant libc: __thr_errno"" >&5
4696 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4698 else
4699 if test "$cross_compiling" = yes; then
4700 wine_cv_libc_r__thr_errno=yes
4701 else
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 int myerrno = 0;
4706 char buf[256];
4707 int *__thr_errno(){return &myerrno;}
4708 main(){connect(0,buf,255); exit(!myerrno);}
4710 if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4711 then
4712 wine_cv_libc_r__thr_errno=yes
4713 else
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4716 rm -fr conftest*
4717 wine_cv_libc_r__thr_errno=no
4719 rm -fr conftest*
4725 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4726 if test "$wine_cv_libc_r__thr_errno" = "yes"
4727 then
4728 cat >> confdefs.h <<\EOF
4729 #define HAVE__THR_ERRNO 1
4732 wine_cv_libc_reentrant=__thr_errno
4734 if test "$wine_cv_libc_reentrant" = "no"
4735 then
4736 cat >> confdefs.h <<\EOF
4737 #define NO_REENTRANT_LIBC 1
4743 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4744 then
4745 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4746 echo "configure:4747: checking "for reentrant X libraries"" >&5
4747 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749 else
4750 if test "x$with_reentrant_x" = "xno"
4751 then
4752 wine_cv_x_reentrant=no
4753 else
4754 libX11_check=none
4755 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4756 if test -r $dir/libX11.so; then
4757 libX11_check="-D $dir/libX11.so"
4758 break 1
4760 if test -r $dir/libX11.a; then
4761 libX11_check="$dir/libX11.a"
4762 break 1
4764 done
4765 if test "$libX11_check" != "none"; then
4766 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4767 then
4768 wine_cv_x_reentrant=yes
4769 else
4770 wine_cv_x_reentrant=no
4772 else
4773 wine_cv_x_reentrant=unknown
4778 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4779 else
4780 wine_cv_x_reentrant=no
4782 if test "$wine_cv_x_reentrant" = "no"
4783 then
4784 cat >> confdefs.h <<\EOF
4785 #define NO_REENTRANT_X11 1
4791 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4792 echo "configure:4793: checking whether byte ordering is bigendian" >&5
4793 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4795 else
4796 ac_cv_c_bigendian=unknown
4797 # See if sys/param.h defines the BYTE_ORDER macro.
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 #include <sys/types.h>
4802 #include <sys/param.h>
4803 int main() {
4805 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4806 bogus endian macros
4807 #endif
4808 ; return 0; }
4810 if { (eval echo configure:4811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4811 rm -rf conftest*
4812 # It does; now see whether it defined to BIG_ENDIAN or not.
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 #include <sys/types.h>
4817 #include <sys/param.h>
4818 int main() {
4820 #if BYTE_ORDER != BIG_ENDIAN
4821 not big endian
4822 #endif
4823 ; return 0; }
4825 if { (eval echo configure:4826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4826 rm -rf conftest*
4827 ac_cv_c_bigendian=yes
4828 else
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4831 rm -rf conftest*
4832 ac_cv_c_bigendian=no
4834 rm -f conftest*
4835 else
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4839 rm -f conftest*
4840 if test $ac_cv_c_bigendian = unknown; then
4841 if test "$cross_compiling" = yes; then
4842 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4843 else
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 main () {
4848 /* Are we little or big endian? From Harbison&Steele. */
4849 union
4851 long l;
4852 char c[sizeof (long)];
4853 } u;
4854 u.l = 1;
4855 exit (u.c[sizeof (long) - 1] == 1);
4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4859 then
4860 ac_cv_c_bigendian=no
4861 else
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4864 rm -fr conftest*
4865 ac_cv_c_bigendian=yes
4867 rm -fr conftest*
4873 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4874 if test $ac_cv_c_bigendian = yes; then
4875 cat >> confdefs.h <<\EOF
4876 #define WORDS_BIGENDIAN 1
4883 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4884 # for constant arguments. Useless!
4885 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4886 echo "configure:4887: checking for working alloca.h" >&5
4887 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4889 else
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 #include <alloca.h>
4894 int main() {
4895 void *p = alloca(2 * sizeof(int));
4896 ; return 0; }
4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4899 rm -rf conftest*
4900 ac_cv_header_alloca_h=yes
4901 else
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4904 rm -rf conftest*
4905 ac_cv_header_alloca_h=no
4907 rm -f conftest*
4910 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4911 if test $ac_cv_header_alloca_h = yes; then
4912 cat >> confdefs.h <<\EOF
4913 #define HAVE_ALLOCA_H 1
4918 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4919 echo "configure:4920: checking for alloca" >&5
4920 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4922 else
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4927 #ifdef __GNUC__
4928 # define alloca __builtin_alloca
4929 #else
4930 # ifdef _MSC_VER
4931 # include <malloc.h>
4932 # define alloca _alloca
4933 # else
4934 # if HAVE_ALLOCA_H
4935 # include <alloca.h>
4936 # else
4937 # ifdef _AIX
4938 #pragma alloca
4939 # else
4940 # ifndef alloca /* predefined by HP cc +Olibcalls */
4941 char *alloca ();
4942 # endif
4943 # endif
4944 # endif
4945 # endif
4946 #endif
4948 int main() {
4949 char *p = (char *) alloca(1);
4950 ; return 0; }
4952 if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4953 rm -rf conftest*
4954 ac_cv_func_alloca_works=yes
4955 else
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4958 rm -rf conftest*
4959 ac_cv_func_alloca_works=no
4961 rm -f conftest*
4964 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4965 if test $ac_cv_func_alloca_works = yes; then
4966 cat >> confdefs.h <<\EOF
4967 #define HAVE_ALLOCA 1
4972 if test $ac_cv_func_alloca_works = no; then
4973 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4974 # that cause trouble. Some versions do not even contain alloca or
4975 # contain a buggy version. If you still want to use their alloca,
4976 # use ar to extract alloca.o from them instead of compiling alloca.c.
4977 ALLOCA=alloca.${ac_objext}
4978 cat >> confdefs.h <<\EOF
4979 #define C_ALLOCA 1
4983 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4984 echo "configure:4985: checking whether alloca needs Cray hooks" >&5
4985 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4987 else
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991 #if defined(CRAY) && ! defined(CRAY2)
4992 webecray
4993 #else
4994 wenotbecray
4995 #endif
4998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4999 egrep "webecray" >/dev/null 2>&1; then
5000 rm -rf conftest*
5001 ac_cv_os_cray=yes
5002 else
5003 rm -rf conftest*
5004 ac_cv_os_cray=no
5006 rm -f conftest*
5010 echo "$ac_t""$ac_cv_os_cray" 1>&6
5011 if test $ac_cv_os_cray = yes; then
5012 for ac_func in _getb67 GETB67 getb67; do
5013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5014 echo "configure:5015: checking for $ac_func" >&5
5015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5017 else
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5021 /* System header to define __stub macros and hopefully few prototypes,
5022 which can conflict with char $ac_func(); below. */
5023 #include <assert.h>
5024 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5027 char $ac_func();
5029 int main() {
5031 /* The GNU C library defines this for functions which it implements
5032 to always fail with ENOSYS. Some functions are actually named
5033 something starting with __ and the normal name is an alias. */
5034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5035 choke me
5036 #else
5037 $ac_func();
5038 #endif
5040 ; return 0; }
5042 if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5043 rm -rf conftest*
5044 eval "ac_cv_func_$ac_func=yes"
5045 else
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5048 rm -rf conftest*
5049 eval "ac_cv_func_$ac_func=no"
5051 rm -f conftest*
5054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 cat >> confdefs.h <<EOF
5057 #define CRAY_STACKSEG_END $ac_func
5060 break
5061 else
5062 echo "$ac_t""no" 1>&6
5065 done
5068 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5069 echo "configure:5070: checking stack direction for C alloca" >&5
5070 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5072 else
5073 if test "$cross_compiling" = yes; then
5074 ac_cv_c_stack_direction=0
5075 else
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 find_stack_direction ()
5081 static char *addr = 0;
5082 auto char dummy;
5083 if (addr == 0)
5085 addr = &dummy;
5086 return find_stack_direction ();
5088 else
5089 return (&dummy > addr) ? 1 : -1;
5091 main ()
5093 exit (find_stack_direction() < 0);
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5097 then
5098 ac_cv_c_stack_direction=1
5099 else
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5102 rm -fr conftest*
5103 ac_cv_c_stack_direction=-1
5105 rm -fr conftest*
5110 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5111 cat >> confdefs.h <<EOF
5112 #define STACK_DIRECTION $ac_cv_c_stack_direction
5117 for ac_func in \
5118 __libc_fork \
5119 _lwp_create \
5120 clone \
5121 getnetbyaddr \
5122 getnetbyname \
5123 getpagesize \
5124 getprotobyname \
5125 getprotobynumber \
5126 getservbyport \
5127 getsockopt \
5128 inet_network \
5129 memmove \
5130 rfork \
5131 select \
5132 sendmsg \
5133 settimeofday \
5134 sigaltstack \
5135 statfs \
5136 strcasecmp \
5137 strerror \
5138 strncasecmp \
5139 tcgetattr \
5140 timegm \
5141 usleep \
5142 vfscanf \
5143 wait4 \
5144 waitpid \
5147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5148 echo "configure:5149: checking for $ac_func" >&5
5149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5151 else
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 /* System header to define __stub macros and hopefully few prototypes,
5156 which can conflict with char $ac_func(); below. */
5157 #include <assert.h>
5158 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5161 char $ac_func();
5163 int main() {
5165 /* The GNU C library defines this for functions which it implements
5166 to always fail with ENOSYS. Some functions are actually named
5167 something starting with __ and the normal name is an alias. */
5168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5169 choke me
5170 #else
5171 $ac_func();
5172 #endif
5174 ; return 0; }
5176 if { (eval echo configure:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 rm -rf conftest*
5178 eval "ac_cv_func_$ac_func=yes"
5179 else
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5182 rm -rf conftest*
5183 eval "ac_cv_func_$ac_func=no"
5185 rm -f conftest*
5188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5189 echo "$ac_t""yes" 1>&6
5190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5191 cat >> confdefs.h <<EOF
5192 #define $ac_tr_func 1
5195 else
5196 echo "$ac_t""no" 1>&6
5198 done
5202 for ac_hdr in \
5203 a.out.h \
5204 a_out.h \
5205 arpa/inet.h \
5206 arpa/nameser.h \
5207 elf.h \
5208 float.h \
5209 libio.h \
5210 link.h \
5211 linux/cdrom.h \
5212 linux/joystick.h \
5213 linux/ucdrom.h \
5214 net/if.h \
5215 netinet/in.h \
5216 netinet/tcp.h \
5217 pty.h \
5218 resolv.h \
5219 sched.h \
5220 socket.h \
5221 strings.h \
5222 sys/cdio.h \
5223 sys/errno.h \
5224 sys/file.h \
5225 sys/filio.h \
5226 sys/ipc.h \
5227 sys/lwp.h \
5228 sys/mman.h \
5229 sys/modem.h \
5230 sys/mount.h \
5231 sys/msg.h \
5232 sys/param.h \
5233 sys/reg.h \
5234 sys/signal.h \
5235 sys/shm.h \
5236 sys/socket.h \
5237 sys/sockio.h \
5238 sys/statfs.h \
5239 sys/strtio.h \
5240 sys/syscall.h \
5241 sys/wait.h \
5242 sys/v86.h \
5243 sys/v86intr.h \
5244 sys/vfs.h \
5245 sys/vm86.h \
5246 syscall.h \
5247 ucontext.h \
5248 wctype.h \
5251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5253 echo "configure:5254: checking for $ac_hdr" >&5
5254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5256 else
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5260 #include <$ac_hdr>
5262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5263 { (eval echo configure:5264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5265 if test -z "$ac_err"; then
5266 rm -rf conftest*
5267 eval "ac_cv_header_$ac_safe=yes"
5268 else
5269 echo "$ac_err" >&5
5270 echo "configure: failed program was:" >&5
5271 cat conftest.$ac_ext >&5
5272 rm -rf conftest*
5273 eval "ac_cv_header_$ac_safe=no"
5275 rm -f conftest*
5277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5278 echo "$ac_t""yes" 1>&6
5279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5280 cat >> confdefs.h <<EOF
5281 #define $ac_tr_hdr 1
5284 else
5285 echo "$ac_t""no" 1>&6
5287 done
5289 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5290 echo "configure:5291: checking whether stat file-mode macros are broken" >&5
5291 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5293 else
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5297 #include <sys/types.h>
5298 #include <sys/stat.h>
5300 #if defined(S_ISBLK) && defined(S_IFDIR)
5301 # if S_ISBLK (S_IFDIR)
5302 You lose.
5303 # endif
5304 #endif
5306 #if defined(S_ISBLK) && defined(S_IFCHR)
5307 # if S_ISBLK (S_IFCHR)
5308 You lose.
5309 # endif
5310 #endif
5312 #if defined(S_ISLNK) && defined(S_IFREG)
5313 # if S_ISLNK (S_IFREG)
5314 You lose.
5315 # endif
5316 #endif
5318 #if defined(S_ISSOCK) && defined(S_IFREG)
5319 # if S_ISSOCK (S_IFREG)
5320 You lose.
5321 # endif
5322 #endif
5325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5326 egrep "You lose" >/dev/null 2>&1; then
5327 rm -rf conftest*
5328 ac_cv_header_stat_broken=yes
5329 else
5330 rm -rf conftest*
5331 ac_cv_header_stat_broken=no
5333 rm -f conftest*
5337 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5338 if test $ac_cv_header_stat_broken = yes; then
5339 cat >> confdefs.h <<\EOF
5340 #define STAT_MACROS_BROKEN 1
5347 echo $ac_n "checking for working const""... $ac_c" 1>&6
5348 echo "configure:5349: checking for working const" >&5
5349 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5351 else
5352 cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5356 int main() {
5358 /* Ultrix mips cc rejects this. */
5359 typedef int charset[2]; const charset x = {0,0};
5360 /* SunOS 4.1.1 cc rejects this. */
5361 char const *const *ccp;
5362 char **p;
5363 /* NEC SVR4.0.2 mips cc rejects this. */
5364 struct point {int x, y;};
5365 static struct point const zero = {0,0};
5366 /* AIX XL C 1.02.0.0 rejects this.
5367 It does not let you subtract one const X* pointer from another in an arm
5368 of an if-expression whose if-part is not a constant expression */
5369 const char *g = "string";
5370 ccp = &g + (g ? g-g : 0);
5371 /* HPUX 7.0 cc rejects these. */
5372 ++ccp;
5373 p = (char**) ccp;
5374 ccp = (char const *const *) p;
5375 { /* SCO 3.2v4 cc rejects this. */
5376 char *t;
5377 char const *s = 0 ? (char *) 0 : (char const *) 0;
5379 *t++ = 0;
5381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5382 int x[] = {25, 17};
5383 const int *foo = &x[0];
5384 ++foo;
5386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5387 typedef const int *iptr;
5388 iptr p = 0;
5389 ++p;
5391 { /* AIX XL C 1.02.0.0 rejects this saying
5392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5393 struct s { int j; const int *ap[3]; };
5394 struct s *b; b->j = 5;
5396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5397 const int foo = 10;
5400 ; return 0; }
5402 if { (eval echo configure:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5403 rm -rf conftest*
5404 ac_cv_c_const=yes
5405 else
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5408 rm -rf conftest*
5409 ac_cv_c_const=no
5411 rm -f conftest*
5414 echo "$ac_t""$ac_cv_c_const" 1>&6
5415 if test $ac_cv_c_const = no; then
5416 cat >> confdefs.h <<\EOF
5417 #define const
5422 echo $ac_n "checking for inline""... $ac_c" 1>&6
5423 echo "configure:5424: checking for inline" >&5
5424 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5426 else
5427 ac_cv_c_inline=no
5428 for ac_kw in inline __inline__ __inline; do
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5433 int main() {
5434 } int $ac_kw foo() {
5435 ; return 0; }
5437 if { (eval echo configure:5438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5438 rm -rf conftest*
5439 ac_cv_c_inline=$ac_kw; break
5440 else
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5444 rm -f conftest*
5445 done
5449 echo "$ac_t""$ac_cv_c_inline" 1>&6
5450 case "$ac_cv_c_inline" in
5451 inline | yes) ;;
5452 no) cat >> confdefs.h <<\EOF
5453 #define inline
5456 *) cat >> confdefs.h <<EOF
5457 #define inline $ac_cv_c_inline
5460 esac
5462 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5463 echo "configure:5464: checking for ANSI C header files" >&5
5464 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5466 else
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5470 #include <stdlib.h>
5471 #include <stdarg.h>
5472 #include <string.h>
5473 #include <float.h>
5475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5476 { (eval echo configure:5477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5478 if test -z "$ac_err"; then
5479 rm -rf conftest*
5480 ac_cv_header_stdc=yes
5481 else
5482 echo "$ac_err" >&5
5483 echo "configure: failed program was:" >&5
5484 cat conftest.$ac_ext >&5
5485 rm -rf conftest*
5486 ac_cv_header_stdc=no
5488 rm -f conftest*
5490 if test $ac_cv_header_stdc = yes; then
5491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5495 #include <string.h>
5497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5498 egrep "memchr" >/dev/null 2>&1; then
5500 else
5501 rm -rf conftest*
5502 ac_cv_header_stdc=no
5504 rm -f conftest*
5508 if test $ac_cv_header_stdc = yes; then
5509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 #include <stdlib.h>
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 egrep "free" >/dev/null 2>&1; then
5518 else
5519 rm -rf conftest*
5520 ac_cv_header_stdc=no
5522 rm -f conftest*
5526 if test $ac_cv_header_stdc = yes; then
5527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5528 if test "$cross_compiling" = yes; then
5530 else
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5534 #include <ctype.h>
5535 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5536 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5538 int main () { int i; for (i = 0; i < 256; i++)
5539 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5540 exit (0); }
5543 if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5544 then
5546 else
5547 echo "configure: failed program was:" >&5
5548 cat conftest.$ac_ext >&5
5549 rm -fr conftest*
5550 ac_cv_header_stdc=no
5552 rm -fr conftest*
5558 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5559 if test $ac_cv_header_stdc = yes; then
5560 cat >> confdefs.h <<\EOF
5561 #define STDC_HEADERS 1
5566 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5567 echo "configure:5568: checking for size_t" >&5
5568 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5570 else
5571 cat > conftest.$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 #include <sys/types.h>
5575 #if STDC_HEADERS
5576 #include <stdlib.h>
5577 #include <stddef.h>
5578 #endif
5580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5582 rm -rf conftest*
5583 ac_cv_type_size_t=yes
5584 else
5585 rm -rf conftest*
5586 ac_cv_type_size_t=no
5588 rm -f conftest*
5591 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5592 if test $ac_cv_type_size_t = no; then
5593 cat >> confdefs.h <<\EOF
5594 #define size_t unsigned
5599 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5600 echo "configure:5601: checking size of long long" >&5
5601 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5603 else
5604 if test "$cross_compiling" = yes; then
5605 ac_cv_sizeof_long_long=0
5606 else
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5610 #include <stdio.h>
5611 main()
5613 FILE *f=fopen("conftestval", "w");
5614 if (!f) exit(1);
5615 fprintf(f, "%d\n", sizeof(long long));
5616 exit(0);
5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5620 then
5621 ac_cv_sizeof_long_long=`cat conftestval`
5622 else
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 rm -fr conftest*
5626 ac_cv_sizeof_long_long=0
5628 rm -fr conftest*
5632 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5633 cat >> confdefs.h <<EOF
5634 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5639 if test "$ac_cv_header_linux_joystick_h" = "yes"
5640 then
5641 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5642 echo "configure:5643: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5643 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5645 else
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5650 #include <sys/ioctl.h>
5651 #include <linux/joystick.h>
5653 struct js_event blub;
5654 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5655 #error "no 2.2 header"
5656 #endif
5658 int main() {
5659 /*empty*/
5660 ; return 0; }
5662 if { (eval echo configure:5663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5663 rm -rf conftest*
5664 wine_cv_linux_joystick_22_api=yes
5665 else
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5668 rm -rf conftest*
5669 wine_cv_linux_joystick_22_api=no
5671 rm -f conftest*
5675 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5676 if test "$wine_cv_linux_joystick_22_api" = "yes"
5677 then
5678 cat >> confdefs.h <<\EOF
5679 #define HAVE_LINUX_22_JOYSTICK_API 1
5686 if test "$ac_cv_header_sys_vfs_h" = "yes"
5687 then
5688 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5689 echo "configure:5690: checking "whether sys/vfs.h defines statfs"" >&5
5690 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5691 echo $ac_n "(cached) $ac_c" 1>&6
5692 else
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5697 #include <sys/types.h>
5698 #ifdef HAVE_SYS_PARAM_H
5699 # include <sys/param.h>
5700 #endif
5701 #include <sys/vfs.h>
5703 int main() {
5705 struct statfs stfs;
5707 memset(&stfs,0,sizeof(stfs));
5709 ; return 0; }
5711 if { (eval echo configure:5712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5712 rm -rf conftest*
5713 wine_cv_sys_vfs_has_statfs=yes
5714 else
5715 echo "configure: failed program was:" >&5
5716 cat conftest.$ac_ext >&5
5717 rm -rf conftest*
5718 wine_cv_sys_vfs_has_statfs=no
5721 rm -f conftest*
5725 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5726 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5727 then
5728 cat >> confdefs.h <<\EOF
5729 #define STATFS_DEFINED_BY_SYS_VFS 1
5735 if test "$ac_cv_header_sys_statfs_h" = "yes"
5736 then
5737 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5738 echo "configure:5739: checking "whether sys/statfs.h defines statfs"" >&5
5739 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5740 echo $ac_n "(cached) $ac_c" 1>&6
5741 else
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5746 #include <sys/types.h>
5747 #ifdef HAVE_SYS_PARAM_H
5748 # include <sys/param.h>
5749 #endif
5750 #include <sys/statfs.h>
5752 int main() {
5754 struct statfs stfs;
5756 ; return 0; }
5758 if { (eval echo configure:5759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5759 rm -rf conftest*
5760 wine_cv_sys_statfs_has_statfs=yes
5761 else
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5764 rm -rf conftest*
5765 wine_cv_sys_statfs_has_statfs=no
5768 rm -f conftest*
5772 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5773 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5774 then
5775 cat >> confdefs.h <<\EOF
5776 #define STATFS_DEFINED_BY_SYS_STATFS 1
5782 if test "$ac_cv_header_sys_mount_h" = "yes"
5783 then
5784 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5785 echo "configure:5786: checking "whether sys/mount.h defines statfs"" >&5
5786 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5787 echo $ac_n "(cached) $ac_c" 1>&6
5788 else
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5793 #include <sys/types.h>
5794 #ifdef HAVE_SYS_PARAM_H
5795 # include <sys/param.h>
5796 #endif
5797 #include <sys/mount.h>
5799 int main() {
5801 struct statfs stfs;
5803 ; return 0; }
5805 if { (eval echo configure:5806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5806 rm -rf conftest*
5807 wine_cv_sys_mount_has_statfs=yes
5808 else
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5811 rm -rf conftest*
5812 wine_cv_sys_mount_has_statfs=no
5815 rm -f conftest*
5819 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5820 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5821 then
5822 cat >> confdefs.h <<\EOF
5823 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5830 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5831 echo "configure:5832: checking "for statfs.f_bfree"" >&5
5832 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5834 else
5835 if test "x$statfs_bfree" = "xno"
5836 then
5837 wine_cv_statfs_bfree=no
5838 else
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5843 #include <sys/types.h>
5844 #ifdef HAVE_SYS_PARAM_H
5845 # include <sys/param.h>
5846 #endif
5847 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5848 # include <sys/mount.h>
5849 #else
5850 # ifdef STATFS_DEFINED_BY_SYS_VFS
5851 # include <sys/vfs.h>
5852 # else
5853 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5854 # include <sys/statfs.h>
5855 # endif
5856 # endif
5857 #endif
5859 int main() {
5861 struct statfs stfs;
5863 stfs.f_bfree++;
5865 ; return 0; }
5867 if { (eval echo configure:5868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5868 rm -rf conftest*
5869 wine_cv_statfs_bfree=yes
5870 else
5871 echo "configure: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5873 rm -rf conftest*
5874 wine_cv_statfs_bfree=no
5877 rm -f conftest*
5881 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5882 if test "$wine_cv_statfs_bfree" = "yes"
5883 then
5884 cat >> confdefs.h <<\EOF
5885 #define STATFS_HAS_BFREE 1
5890 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5891 echo "configure:5892: checking "for statfs.f_bavail"" >&5
5892 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5894 else
5895 if test "x$statfs_bavail" = "xno"
5896 then
5897 wine_cv_statfs_bavail=no
5898 else
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure"
5901 #include "confdefs.h"
5903 #include <sys/types.h>
5904 #ifdef HAVE_SYS_PARAM_H
5905 # include <sys/param.h>
5906 #endif
5907 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5908 # include <sys/mount.h>
5909 #else
5910 # ifdef STATFS_DEFINED_BY_SYS_VFS
5911 # include <sys/vfs.h>
5912 # else
5913 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5914 # include <sys/statfs.h>
5915 # endif
5916 # endif
5917 #endif
5919 int main() {
5921 struct statfs stfs;
5923 stfs.f_bavail++;
5925 ; return 0; }
5927 if { (eval echo configure:5928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5928 rm -rf conftest*
5929 wine_cv_statfs_bavail=yes
5930 else
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5933 rm -rf conftest*
5934 wine_cv_statfs_bavail=no
5937 rm -f conftest*
5941 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5942 if test "$wine_cv_statfs_bavail" = "yes"
5943 then
5944 cat >> confdefs.h <<\EOF
5945 #define STATFS_HAS_BAVAIL 1
5951 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5952 echo "configure:5953: checking "for msg_accrights in struct msghdr"" >&5
5953 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6
5955 else
5956 cat > conftest.$ac_ext <<EOF
5957 #line 5958 "configure"
5958 #include "confdefs.h"
5959 #include <sys/types.h>
5960 #include <sys/socket.h>
5961 int main() {
5962 struct msghdr hdr; hdr.msg_accrights=0
5963 ; return 0; }
5965 if { (eval echo configure:5966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5966 rm -rf conftest*
5967 ac_cv_c_msg_accrights="yes"
5968 else
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5971 rm -rf conftest*
5972 ac_cv_c_msg_accrights="no"
5974 rm -f conftest*
5977 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5978 if test "$ac_cv_c_msg_accrights" = "yes"
5979 then
5980 cat >> confdefs.h <<\EOF
5981 #define HAVE_MSGHDR_ACCRIGHTS 1
5987 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
5988 echo "configure:5989: checking "for sun_len in struct sockaddr_un"" >&5
5989 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5991 else
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 #include <sys/types.h>
5996 #include <sys/socket.h>
5997 #include <sys/un.h>
5998 int main() {
5999 static struct sockaddr_un addr; addr.sun_len = 1
6000 ; return 0; }
6002 if { (eval echo configure:6003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6003 rm -rf conftest*
6004 ac_cv_c_sun_len="yes"
6005 else
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6008 rm -rf conftest*
6009 ac_cv_c_sun_len="no"
6011 rm -f conftest*
6014 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6015 if test "$ac_cv_c_sun_len" = "yes"
6016 then
6017 cat >> confdefs.h <<\EOF
6018 #define HAVE_SOCKADDR_SUN_LEN 1
6024 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6025 echo "configure:6026: checking "whether we need to define __i386__"" >&5
6026 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6027 echo $ac_n "(cached) $ac_c" 1>&6
6028 else
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6034 #endif
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 egrep "yes" >/dev/null 2>&1; then
6038 rm -rf conftest*
6039 ac_cv_cpp_def_i386="yes"
6040 else
6041 rm -rf conftest*
6042 ac_cv_cpp_def_i386="no"
6044 rm -f conftest*
6048 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6049 if test "$ac_cv_cpp_def_i386" = "yes"
6050 then
6051 CFLAGS="$CFLAGS -D__i386__"
6052 LINTFLAGS="$LINTFLAGS -D__i386__"
6055 GCC_NO_BUILTIN=""
6056 if test "$GCC" = "yes"
6057 then
6058 GCC_NO_BUILTIN="-fno-builtin"
6065 MAKE_RULES=Make.rules
6068 MAKE_DLL_RULES=dlls/Makedll.rules
6071 trap '' 1 2 15
6072 cat > confcache <<\EOF
6073 # This file is a shell script that caches the results of configure
6074 # tests run on this system so they can be shared between configure
6075 # scripts and configure runs. It is not useful on other systems.
6076 # If it contains results you don't want to keep, you may remove or edit it.
6078 # By default, configure uses ./config.cache as the cache file,
6079 # creating it if it does not exist already. You can give configure
6080 # the --cache-file=FILE option to use a different cache file; that is
6081 # what configure does when it calls configure scripts in
6082 # subdirectories, so they share the cache.
6083 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6084 # config.status only pays attention to the cache file if you give it the
6085 # --recheck option to rerun configure.
6088 # The following way of writing the cache mishandles newlines in values,
6089 # but we know of no workaround that is simple, portable, and efficient.
6090 # So, don't put newlines in cache variables' values.
6091 # Ultrix sh set writes to stderr and can't be redirected directly,
6092 # and sets the high bit in the cache file unless we assign to the vars.
6093 (set) 2>&1 |
6094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6095 *ac_space=\ *)
6096 # `set' does not quote correctly, so add quotes (double-quote substitution
6097 # turns \\\\ into \\, and sed turns \\ into \).
6098 sed -n \
6099 -e "s/'/'\\\\''/g" \
6100 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6103 # `set' quotes correctly as required by POSIX, so do not add quotes.
6104 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6106 esac >> confcache
6107 if cmp -s $cache_file confcache; then
6109 else
6110 if test -w $cache_file; then
6111 echo "updating cache $cache_file"
6112 cat confcache > $cache_file
6113 else
6114 echo "not updating unwritable cache $cache_file"
6117 rm -f confcache
6119 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6121 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6122 # Let make expand exec_prefix.
6123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6125 # Any assignment to VPATH causes Sun make to only execute
6126 # the first set of double-colon rules, so remove it if not needed.
6127 # If there is a colon in the path, we need to keep it.
6128 if test "x$srcdir" = x.; then
6129 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6132 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6134 DEFS=-DHAVE_CONFIG_H
6136 # Without the "./", some shells look in PATH for config.status.
6137 : ${CONFIG_STATUS=./config.status}
6139 echo creating $CONFIG_STATUS
6140 rm -f $CONFIG_STATUS
6141 cat > $CONFIG_STATUS <<EOF
6142 #! /bin/sh
6143 # Generated automatically by configure.
6144 # Run this file to recreate the current configuration.
6145 # This directory was configured as follows,
6146 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6148 # $0 $ac_configure_args
6150 # Compiler output produced by configure, useful for debugging
6151 # configure, is in ./config.log if it exists.
6153 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6154 for ac_option
6156 case "\$ac_option" in
6157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6158 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6159 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6160 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6161 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6162 exit 0 ;;
6163 -help | --help | --hel | --he | --h)
6164 echo "\$ac_cs_usage"; exit 0 ;;
6165 *) echo "\$ac_cs_usage"; exit 1 ;;
6166 esac
6167 done
6169 ac_given_srcdir=$srcdir
6170 ac_given_INSTALL="$INSTALL"
6172 trap 'rm -fr `echo "
6173 Make.rules
6174 Makefile
6175 console/Makefile
6176 controls/Makefile
6177 debugger/Makefile
6178 dlls/Makedll.rules
6179 dlls/Makefile
6180 dlls/advapi32/Makefile
6181 dlls/avifil32/Makefile
6182 dlls/comctl32/Makefile
6183 dlls/commdlg/Makefile
6184 dlls/crtdll/Makefile
6185 dlls/dciman32/Makefile
6186 dlls/ddraw/Makefile
6187 dlls/dinput/Makefile
6188 dlls/dplayx/Makefile
6189 dlls/dsound/Makefile
6190 dlls/gdi/Makefile
6191 dlls/icmp/Makefile
6192 dlls/imagehlp/Makefile
6193 dlls/imm32/Makefile
6194 dlls/kernel/Makefile
6195 dlls/lzexpand/Makefile
6196 dlls/mpr/Makefile
6197 dlls/msacm/Makefile
6198 dlls/msacm32/Makefile
6199 dlls/msnet32/Makefile
6200 dlls/msvideo/Makefile
6201 dlls/ntdll/Makefile
6202 dlls/odbc32/Makefile
6203 dlls/ole32/Makefile
6204 dlls/oleaut32/Makefile
6205 dlls/olecli/Makefile
6206 dlls/oledlg/Makefile
6207 dlls/olepro32/Makefile
6208 dlls/olesvr/Makefile
6209 dlls/opengl32/Makefile
6210 dlls/psapi/Makefile
6211 dlls/rasapi32/Makefile
6212 dlls/richedit/Makefile
6213 dlls/setupx/Makefile
6214 dlls/shell32/Makefile
6215 dlls/sound/Makefile
6216 dlls/stress/Makefile
6217 dlls/tapi32/Makefile
6218 dlls/ttydrv/Makefile
6219 dlls/urlmon/Makefile
6220 dlls/user/Makefile
6221 dlls/version/Makefile
6222 dlls/win32s/Makefile
6223 dlls/win87em/Makefile
6224 dlls/winaspi/Makefile
6225 dlls/windebug/Makefile
6226 dlls/wineps/Makefile
6227 dlls/wing/Makefile
6228 dlls/wininet/Makefile
6229 dlls/winmm/Makefile
6230 dlls/winmm/joystick/Makefile
6231 dlls/winmm/mcianim/Makefile
6232 dlls/winmm/mciavi/Makefile
6233 dlls/winmm/mcicda/Makefile
6234 dlls/winmm/mciseq/Makefile
6235 dlls/winmm/mciwave/Makefile
6236 dlls/winmm/midimap/Makefile
6237 dlls/winmm/wavemap/Makefile
6238 dlls/winmm/wineoss/Makefile
6239 dlls/winsock/Makefile
6240 dlls/winspool/Makefile
6241 dlls/ttydrv/Makefile
6242 dlls/x11drv/Makefile
6243 documentation/Makefile
6244 documentation/wine.conf.man
6245 documentation/wine.man
6246 files/Makefile
6247 graphics/Makefile
6248 graphics/enhmetafiledrv/Makefile
6249 graphics/metafiledrv/Makefile
6250 graphics/ttydrv/Makefile
6251 graphics/win16drv/Makefile
6252 graphics/x11drv/Makefile
6253 if1632/Makefile
6254 include/Makefile
6255 library/Makefile
6256 libtest/Makefile
6257 loader/Makefile
6258 loader/ne/Makefile
6259 loader/dos/Makefile
6260 memory/Makefile
6261 misc/Makefile
6262 miscemu/Makefile
6263 msdos/Makefile
6264 objects/Makefile
6265 ole/Makefile
6266 programs/Makefile
6267 programs/clock/Makefile
6268 programs/cmdlgtst/Makefile
6269 programs/control/Makefile
6270 programs/avitools/Makefile
6271 programs/osversioncheck/Makefile
6272 programs/notepad/Makefile
6273 programs/progman/Makefile
6274 programs/regtest/Makefile
6275 programs/regapi/Makefile
6276 programs/view/Makefile
6277 programs/wcmd/Makefile
6278 programs/winemine/Makefile
6279 programs/winhelp/Makefile
6280 programs/winver/Makefile
6281 relay32/Makefile
6282 resources/Makefile
6283 scheduler/Makefile
6284 server/Makefile
6285 tools/Makefile
6286 tools/cvdump/Makefile
6287 tools/wrc/Makefile
6288 tools/wmc/Makefile
6289 tsx11/Makefile
6290 unicode/Makefile
6291 win32/Makefile
6292 windows/Makefile
6293 windows/ttydrv/Makefile
6294 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6296 cat >> $CONFIG_STATUS <<EOF
6298 # Protect against being on the right side of a sed subst in config.status.
6299 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6300 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6301 $ac_vpsub
6302 $extrasub
6303 s%@SHELL@%$SHELL%g
6304 s%@CFLAGS@%$CFLAGS%g
6305 s%@CPPFLAGS@%$CPPFLAGS%g
6306 s%@CXXFLAGS@%$CXXFLAGS%g
6307 s%@FFLAGS@%$FFLAGS%g
6308 s%@DEFS@%$DEFS%g
6309 s%@LDFLAGS@%$LDFLAGS%g
6310 s%@LIBS@%$LIBS%g
6311 s%@exec_prefix@%$exec_prefix%g
6312 s%@prefix@%$prefix%g
6313 s%@program_transform_name@%$program_transform_name%g
6314 s%@bindir@%$bindir%g
6315 s%@sbindir@%$sbindir%g
6316 s%@libexecdir@%$libexecdir%g
6317 s%@datadir@%$datadir%g
6318 s%@sysconfdir@%$sysconfdir%g
6319 s%@sharedstatedir@%$sharedstatedir%g
6320 s%@localstatedir@%$localstatedir%g
6321 s%@libdir@%$libdir%g
6322 s%@includedir@%$includedir%g
6323 s%@oldincludedir@%$oldincludedir%g
6324 s%@infodir@%$infodir%g
6325 s%@mandir@%$mandir%g
6326 s%@OPTIONS@%$OPTIONS%g
6327 s%@SET_MAKE@%$SET_MAKE%g
6328 s%@CC@%$CC%g
6329 s%@CPP@%$CPP%g
6330 s%@X_CFLAGS@%$X_CFLAGS%g
6331 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6332 s%@X_LIBS@%$X_LIBS%g
6333 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6334 s%@YACC@%$YACC%g
6335 s%@LEX@%$LEX%g
6336 s%@LEXLIB@%$LEXLIB%g
6337 s%@RANLIB@%$RANLIB%g
6338 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6339 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6340 s%@INSTALL_DATA@%$INSTALL_DATA%g
6341 s%@LN_S@%$LN_S%g
6342 s%@C2MAN@%$C2MAN%g
6343 s%@LDCONFIG@%$LDCONFIG%g
6344 s%@LINT@%$LINT%g
6345 s%@LINTFLAGS@%$LINTFLAGS%g
6346 s%@XLIB@%$XLIB%g
6347 s%@X_DLLS@%$X_DLLS%g
6348 s%@XFILES@%$XFILES%g
6349 s%@OPENGLFILES@%$OPENGLFILES%g
6350 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6351 s%@DGA_SRCS@%$DGA_SRCS%g
6352 s%@DGA2_SRCS@%$DGA2_SRCS%g
6353 s%@MESA_SRCS@%$MESA_SRCS%g
6354 s%@DLL_LINK@%$DLL_LINK%g
6355 s%@BUILDFLAGS@%$BUILDFLAGS%g
6356 s%@DLLFLAGS@%$DLLFLAGS%g
6357 s%@LDSHARED@%$LDSHARED%g
6358 s%@LIBEXT@%$LIBEXT%g
6359 s%@ALLOCA@%$ALLOCA%g
6360 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6361 /@MAKE_RULES@/r $MAKE_RULES
6362 s%@MAKE_RULES@%%g
6363 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6364 s%@MAKE_DLL_RULES@%%g
6366 CEOF
6369 cat >> $CONFIG_STATUS <<\EOF
6371 # Split the substitutions into bite-sized pieces for seds with
6372 # small command number limits, like on Digital OSF/1 and HP-UX.
6373 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6374 ac_file=1 # Number of current file.
6375 ac_beg=1 # First line for current file.
6376 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6377 ac_more_lines=:
6378 ac_sed_cmds=""
6379 while $ac_more_lines; do
6380 if test $ac_beg -gt 1; then
6381 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6382 else
6383 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6385 if test ! -s conftest.s$ac_file; then
6386 ac_more_lines=false
6387 rm -f conftest.s$ac_file
6388 else
6389 if test -z "$ac_sed_cmds"; then
6390 ac_sed_cmds="sed -f conftest.s$ac_file"
6391 else
6392 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6394 ac_file=`expr $ac_file + 1`
6395 ac_beg=$ac_end
6396 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6398 done
6399 if test -z "$ac_sed_cmds"; then
6400 ac_sed_cmds=cat
6404 cat >> $CONFIG_STATUS <<EOF
6406 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6407 Makefile
6408 console/Makefile
6409 controls/Makefile
6410 debugger/Makefile
6411 dlls/Makedll.rules
6412 dlls/Makefile
6413 dlls/advapi32/Makefile
6414 dlls/avifil32/Makefile
6415 dlls/comctl32/Makefile
6416 dlls/commdlg/Makefile
6417 dlls/crtdll/Makefile
6418 dlls/dciman32/Makefile
6419 dlls/ddraw/Makefile
6420 dlls/dinput/Makefile
6421 dlls/dplayx/Makefile
6422 dlls/dsound/Makefile
6423 dlls/gdi/Makefile
6424 dlls/icmp/Makefile
6425 dlls/imagehlp/Makefile
6426 dlls/imm32/Makefile
6427 dlls/kernel/Makefile
6428 dlls/lzexpand/Makefile
6429 dlls/mpr/Makefile
6430 dlls/msacm/Makefile
6431 dlls/msacm32/Makefile
6432 dlls/msnet32/Makefile
6433 dlls/msvideo/Makefile
6434 dlls/ntdll/Makefile
6435 dlls/odbc32/Makefile
6436 dlls/ole32/Makefile
6437 dlls/oleaut32/Makefile
6438 dlls/olecli/Makefile
6439 dlls/oledlg/Makefile
6440 dlls/olepro32/Makefile
6441 dlls/olesvr/Makefile
6442 dlls/opengl32/Makefile
6443 dlls/psapi/Makefile
6444 dlls/rasapi32/Makefile
6445 dlls/richedit/Makefile
6446 dlls/setupx/Makefile
6447 dlls/shell32/Makefile
6448 dlls/sound/Makefile
6449 dlls/stress/Makefile
6450 dlls/tapi32/Makefile
6451 dlls/ttydrv/Makefile
6452 dlls/urlmon/Makefile
6453 dlls/user/Makefile
6454 dlls/version/Makefile
6455 dlls/win32s/Makefile
6456 dlls/win87em/Makefile
6457 dlls/winaspi/Makefile
6458 dlls/windebug/Makefile
6459 dlls/wineps/Makefile
6460 dlls/wing/Makefile
6461 dlls/wininet/Makefile
6462 dlls/winmm/Makefile
6463 dlls/winmm/joystick/Makefile
6464 dlls/winmm/mcianim/Makefile
6465 dlls/winmm/mciavi/Makefile
6466 dlls/winmm/mcicda/Makefile
6467 dlls/winmm/mciseq/Makefile
6468 dlls/winmm/mciwave/Makefile
6469 dlls/winmm/midimap/Makefile
6470 dlls/winmm/wavemap/Makefile
6471 dlls/winmm/wineoss/Makefile
6472 dlls/winsock/Makefile
6473 dlls/winspool/Makefile
6474 dlls/ttydrv/Makefile
6475 dlls/x11drv/Makefile
6476 documentation/Makefile
6477 documentation/wine.conf.man
6478 documentation/wine.man
6479 files/Makefile
6480 graphics/Makefile
6481 graphics/enhmetafiledrv/Makefile
6482 graphics/metafiledrv/Makefile
6483 graphics/ttydrv/Makefile
6484 graphics/win16drv/Makefile
6485 graphics/x11drv/Makefile
6486 if1632/Makefile
6487 include/Makefile
6488 library/Makefile
6489 libtest/Makefile
6490 loader/Makefile
6491 loader/ne/Makefile
6492 loader/dos/Makefile
6493 memory/Makefile
6494 misc/Makefile
6495 miscemu/Makefile
6496 msdos/Makefile
6497 objects/Makefile
6498 ole/Makefile
6499 programs/Makefile
6500 programs/clock/Makefile
6501 programs/cmdlgtst/Makefile
6502 programs/control/Makefile
6503 programs/avitools/Makefile
6504 programs/osversioncheck/Makefile
6505 programs/notepad/Makefile
6506 programs/progman/Makefile
6507 programs/regtest/Makefile
6508 programs/regapi/Makefile
6509 programs/view/Makefile
6510 programs/wcmd/Makefile
6511 programs/winemine/Makefile
6512 programs/winhelp/Makefile
6513 programs/winver/Makefile
6514 relay32/Makefile
6515 resources/Makefile
6516 scheduler/Makefile
6517 server/Makefile
6518 tools/Makefile
6519 tools/cvdump/Makefile
6520 tools/wrc/Makefile
6521 tools/wmc/Makefile
6522 tsx11/Makefile
6523 unicode/Makefile
6524 win32/Makefile
6525 windows/Makefile
6526 windows/ttydrv/Makefile
6527 windows/x11drv/Makefile "}
6529 cat >> $CONFIG_STATUS <<\EOF
6530 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6532 case "$ac_file" in
6533 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6534 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6535 *) ac_file_in="${ac_file}.in" ;;
6536 esac
6538 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6540 # Remove last slash and all that follows it. Not all systems have dirname.
6541 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6542 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6543 # The file is in a subdirectory.
6544 test ! -d "$ac_dir" && mkdir "$ac_dir"
6545 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6546 # A "../" for each directory in $ac_dir_suffix.
6547 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6548 else
6549 ac_dir_suffix= ac_dots=
6552 case "$ac_given_srcdir" in
6553 .) srcdir=.
6554 if test -z "$ac_dots"; then top_srcdir=.
6555 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6556 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6557 *) # Relative path.
6558 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6559 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6560 esac
6562 case "$ac_given_INSTALL" in
6563 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6564 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6565 esac
6567 echo creating "$ac_file"
6568 rm -f "$ac_file"
6569 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6570 case "$ac_file" in
6571 *Makefile*) ac_comsub="1i\\
6572 # $configure_input" ;;
6573 *) ac_comsub= ;;
6574 esac
6576 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6577 sed -e "$ac_comsub
6578 s%@configure_input@%$configure_input%g
6579 s%@srcdir@%$srcdir%g
6580 s%@top_srcdir@%$top_srcdir%g
6581 s%@INSTALL@%$INSTALL%g
6582 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6583 fi; done
6584 rm -f conftest.s*
6586 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6587 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6589 # ac_d sets the value in "#define NAME VALUE" lines.
6590 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6591 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6592 ac_dC='\3'
6593 ac_dD='%g'
6594 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6595 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6596 ac_uB='\([ ]\)%\1#\2define\3'
6597 ac_uC=' '
6598 ac_uD='\4%g'
6599 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6600 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6601 ac_eB='$%\1#\2define\3'
6602 ac_eC=' '
6603 ac_eD='%g'
6605 if test "${CONFIG_HEADERS+set}" != set; then
6607 cat >> $CONFIG_STATUS <<EOF
6608 CONFIG_HEADERS="include/config.h"
6610 cat >> $CONFIG_STATUS <<\EOF
6612 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6613 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6614 case "$ac_file" in
6615 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6616 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6617 *) ac_file_in="${ac_file}.in" ;;
6618 esac
6620 echo creating $ac_file
6622 rm -f conftest.frag conftest.in conftest.out
6623 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6624 cat $ac_file_inputs > conftest.in
6628 # Transform confdefs.h into a sed script conftest.vals that substitutes
6629 # the proper values into config.h.in to produce config.h. And first:
6630 # Protect against being on the right side of a sed subst in config.status.
6631 # Protect against being in an unquoted here document in config.status.
6632 rm -f conftest.vals
6633 cat > conftest.hdr <<\EOF
6634 s/[\\&%]/\\&/g
6635 s%[\\$`]%\\&%g
6636 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6637 s%ac_d%ac_u%gp
6638 s%ac_u%ac_e%gp
6640 sed -n -f conftest.hdr confdefs.h > conftest.vals
6641 rm -f conftest.hdr
6643 # This sed command replaces #undef with comments. This is necessary, for
6644 # example, in the case of _POSIX_SOURCE, which is predefined and required
6645 # on some systems where configure will not decide to define it.
6646 cat >> conftest.vals <<\EOF
6647 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6650 # Break up conftest.vals because some shells have a limit on
6651 # the size of here documents, and old seds have small limits too.
6653 rm -f conftest.tail
6654 while :
6656 ac_lines=`grep -c . conftest.vals`
6657 # grep -c gives empty output for an empty file on some AIX systems.
6658 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6659 # Write a limited-size here document to conftest.frag.
6660 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6661 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6662 echo 'CEOF
6663 sed -f conftest.frag conftest.in > conftest.out
6664 rm -f conftest.in
6665 mv conftest.out conftest.in
6666 ' >> $CONFIG_STATUS
6667 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6668 rm -f conftest.vals
6669 mv conftest.tail conftest.vals
6670 done
6671 rm -f conftest.vals
6673 cat >> $CONFIG_STATUS <<\EOF
6674 rm -f conftest.frag conftest.h
6675 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6676 cat conftest.in >> conftest.h
6677 rm -f conftest.in
6678 if cmp -s $ac_file conftest.h 2>/dev/null; then
6679 echo "$ac_file is unchanged"
6680 rm -f conftest.h
6681 else
6682 # Remove last slash and all that follows it. Not all systems have dirname.
6683 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6684 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6685 # The file is in a subdirectory.
6686 test ! -d "$ac_dir" && mkdir "$ac_dir"
6688 rm -f $ac_file
6689 mv conftest.h $ac_file
6691 fi; done
6694 cat >> $CONFIG_STATUS <<EOF
6698 cat >> $CONFIG_STATUS <<\EOF
6700 extra_subdirs="\
6701 dlls/ddraw/d3ddevice \
6702 dlls/ddraw/dclipper \
6703 dlls/ddraw/ddraw \
6704 dlls/ddraw/direct3d \
6705 dlls/ddraw/dpalette \
6706 dlls/ddraw/dsurface \
6708 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6710 exit 0
6712 chmod +x $CONFIG_STATUS
6713 rm -fr confdefs* $ac_clean_files
6714 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6717 if test "$have_x" = "no"
6718 then
6719 echo
6720 echo "*** Warning: X development files not found. Wine will be built without"
6721 echo "*** X support, which currently does not work, and would probably not be"
6722 echo "*** what you want anyway. You will need to install devel packages of"
6723 echo "*** Xlib/Xfree86 and Xpm at the very least."
6724 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6725 then
6726 echo
6727 echo "*** Warning: Xpm development files not found. Wine will be built without"
6728 echo "*** Xpm support, which currently does not work. You will need to install"
6729 echo "*** devel packages of Xpm."
6732 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6733 then
6734 echo
6735 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6736 echo "*** terminal resize support. Consider upgrading ncurses."
6739 if test "$wine_cv_libc_reentrant" = "no"
6740 then
6741 echo
6742 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6743 echo "*** thread support. Consider upgrading libc to a more recent"
6744 echo "*** reentrant version of libc."
6747 if test "$wine_cv_opengl_version_OK" = "no"
6748 then
6749 echo
6750 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6751 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6754 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
6755 then
6756 echo
6757 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6758 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
6759 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
6760 echo "*** start configure with '--enable-opengl' to force OpenGL support."
6763 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
6764 then
6765 echo
6766 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
6767 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
6768 echo "*** support before reporting bugs."
6772 echo
6773 echo "Configure finished. Do 'make depend && make' to compile Wine."
6774 echo