Implement IDataAdviseHolder.
[wine/multimedia.git] / configure
blob20acabf26ea03a9224fcb085922de66a34ae0c2d
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=""
4488 if test "$LIBEXT" = "so"; then
4489 DLLFLAGS="-fPIC"
4490 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4491 else
4492 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine \$(X_LIBS) \$(XLIB)"
4493 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4494 echo "configure:4495: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4495 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4497 else
4498 saved_cflags=$CFLAGS
4499 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4504 int main() {
4505 return 1
4506 ; return 0; }
4508 if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4509 rm -rf conftest*
4510 ac_cv_c_whole_archive="yes"
4511 else
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 rm -rf conftest*
4515 ac_cv_c_whole_archive="no"
4517 rm -f conftest*
4518 CFLAGS=$saved_cflags
4522 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4523 if test "$ac_cv_c_whole_archive" = "yes"
4524 then
4525 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4526 else
4527 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4528 echo "configure:4529: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4529 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4531 else
4532 saved_cflags=$CFLAGS
4533 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4538 int main() {
4539 return 1
4540 ; return 0; }
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4543 rm -rf conftest*
4544 ac_cv_c_allextract="yes"
4545 else
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4548 rm -rf conftest*
4549 ac_cv_c_allextract="no"
4551 rm -f conftest*
4552 CFLAGS=$saved_cflags
4556 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4557 if test "$ac_cv_c_allextract" = "yes"
4558 then
4559 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4570 wine_cv_libc_reentrant=no
4571 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4572 echo "configure:4573: checking "for reentrant libc: __errno_location"" >&5
4573 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4575 else
4576 if test "$cross_compiling" = yes; then
4577 wine_cv_libc_r__errno_location=yes
4578 else
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 int myerrno = 0;
4583 char buf[256];
4584 int *__errno_location(){return &myerrno;}
4585 main(){connect(0,buf,255); exit(!myerrno);}
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4588 then
4589 wine_cv_libc_r__errno_location=yes
4590 else
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4593 rm -fr conftest*
4594 wine_cv_libc_r__errno_location=no
4596 rm -fr conftest*
4602 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4603 if test "$wine_cv_libc_r__errno_location" = "yes"
4604 then
4605 cat >> confdefs.h <<\EOF
4606 #define HAVE__ERRNO_LOCATION 1
4609 wine_cv_libc_reentrant=__errno_location
4611 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4612 echo "configure:4613: checking "for reentrant libc: __error"" >&5
4613 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4615 else
4616 if test "$cross_compiling" = yes; then
4617 wine_cv_libc_r__error=yes
4618 else
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 int myerrno = 0;
4623 char buf[256];
4624 int *__error(){return &myerrno;}
4625 main(){connect(0,buf,255); exit(!myerrno);}
4627 if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4628 then
4629 wine_cv_libc_r__error=yes
4630 else
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4633 rm -fr conftest*
4634 wine_cv_libc_r__error=no
4636 rm -fr conftest*
4642 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4643 if test "$wine_cv_libc_r__error" = "yes"
4644 then
4645 cat >> confdefs.h <<\EOF
4646 #define HAVE__ERROR 1
4649 wine_cv_libc_reentrant=__error
4651 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4652 echo "configure:4653: checking "for reentrant libc: ___errno"" >&5
4653 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4655 else
4656 if test "$cross_compiling" = yes; then
4657 wine_cv_libc_r___errno=yes
4658 else
4659 cat > conftest.$ac_ext <<EOF
4660 #line 4661 "configure"
4661 #include "confdefs.h"
4662 int myerrno = 0;
4663 char buf[256];
4664 int *___errno(){return &myerrno;}
4665 main(){connect(0,buf,255); exit(!myerrno);}
4667 if { (eval echo configure:4668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4668 then
4669 wine_cv_libc_r___errno=yes
4670 else
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4673 rm -fr conftest*
4674 wine_cv_libc_r___errno=no
4676 rm -fr conftest*
4682 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4683 if test "$wine_cv_libc_r___errno" = "yes"
4684 then
4685 cat >> confdefs.h <<\EOF
4686 #define HAVE___ERRNO 1
4689 wine_cv_libc_reentrant=___errno
4691 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4692 echo "configure:4693: checking "for reentrant libc: __thr_errno"" >&5
4693 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4695 else
4696 if test "$cross_compiling" = yes; then
4697 wine_cv_libc_r__thr_errno=yes
4698 else
4699 cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 int myerrno = 0;
4703 char buf[256];
4704 int *__thr_errno(){return &myerrno;}
4705 main(){connect(0,buf,255); exit(!myerrno);}
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4708 then
4709 wine_cv_libc_r__thr_errno=yes
4710 else
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 rm -fr conftest*
4714 wine_cv_libc_r__thr_errno=no
4716 rm -fr conftest*
4722 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4723 if test "$wine_cv_libc_r__thr_errno" = "yes"
4724 then
4725 cat >> confdefs.h <<\EOF
4726 #define HAVE__THR_ERRNO 1
4729 wine_cv_libc_reentrant=__thr_errno
4731 if test "$wine_cv_libc_reentrant" = "no"
4732 then
4733 cat >> confdefs.h <<\EOF
4734 #define NO_REENTRANT_LIBC 1
4740 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4741 then
4742 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4743 echo "configure:4744: checking "for reentrant X libraries"" >&5
4744 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4746 else
4747 if test "x$with_reentrant_x" = "xno"
4748 then
4749 wine_cv_x_reentrant=no
4750 else
4751 libX11_check=none
4752 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4753 if test -r $dir/libX11.so; then
4754 libX11_check="-D $dir/libX11.so"
4755 break 1
4757 if test -r $dir/libX11.a; then
4758 libX11_check="$dir/libX11.a"
4759 break 1
4761 done
4762 if test "$libX11_check" != "none"; then
4763 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4764 then
4765 wine_cv_x_reentrant=yes
4766 else
4767 wine_cv_x_reentrant=no
4769 else
4770 wine_cv_x_reentrant=unknown
4775 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4776 else
4777 wine_cv_x_reentrant=no
4779 if test "$wine_cv_x_reentrant" = "no"
4780 then
4781 cat >> confdefs.h <<\EOF
4782 #define NO_REENTRANT_X11 1
4788 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4789 echo "configure:4790: checking whether byte ordering is bigendian" >&5
4790 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4792 else
4793 ac_cv_c_bigendian=unknown
4794 # See if sys/param.h defines the BYTE_ORDER macro.
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 #include <sys/types.h>
4799 #include <sys/param.h>
4800 int main() {
4802 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4803 bogus endian macros
4804 #endif
4805 ; return 0; }
4807 if { (eval echo configure:4808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4808 rm -rf conftest*
4809 # It does; now see whether it defined to BIG_ENDIAN or not.
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 #include <sys/types.h>
4814 #include <sys/param.h>
4815 int main() {
4817 #if BYTE_ORDER != BIG_ENDIAN
4818 not big endian
4819 #endif
4820 ; return 0; }
4822 if { (eval echo configure:4823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4823 rm -rf conftest*
4824 ac_cv_c_bigendian=yes
4825 else
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4828 rm -rf conftest*
4829 ac_cv_c_bigendian=no
4831 rm -f conftest*
4832 else
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 rm -f conftest*
4837 if test $ac_cv_c_bigendian = unknown; then
4838 if test "$cross_compiling" = yes; then
4839 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4840 else
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 main () {
4845 /* Are we little or big endian? From Harbison&Steele. */
4846 union
4848 long l;
4849 char c[sizeof (long)];
4850 } u;
4851 u.l = 1;
4852 exit (u.c[sizeof (long) - 1] == 1);
4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4856 then
4857 ac_cv_c_bigendian=no
4858 else
4859 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4861 rm -fr conftest*
4862 ac_cv_c_bigendian=yes
4864 rm -fr conftest*
4870 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4871 if test $ac_cv_c_bigendian = yes; then
4872 cat >> confdefs.h <<\EOF
4873 #define WORDS_BIGENDIAN 1
4880 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4881 # for constant arguments. Useless!
4882 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4883 echo "configure:4884: checking for working alloca.h" >&5
4884 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4886 else
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 #include <alloca.h>
4891 int main() {
4892 void *p = alloca(2 * sizeof(int));
4893 ; return 0; }
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4896 rm -rf conftest*
4897 ac_cv_header_alloca_h=yes
4898 else
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4901 rm -rf conftest*
4902 ac_cv_header_alloca_h=no
4904 rm -f conftest*
4907 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4908 if test $ac_cv_header_alloca_h = yes; then
4909 cat >> confdefs.h <<\EOF
4910 #define HAVE_ALLOCA_H 1
4915 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4916 echo "configure:4917: checking for alloca" >&5
4917 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4919 else
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4924 #ifdef __GNUC__
4925 # define alloca __builtin_alloca
4926 #else
4927 # ifdef _MSC_VER
4928 # include <malloc.h>
4929 # define alloca _alloca
4930 # else
4931 # if HAVE_ALLOCA_H
4932 # include <alloca.h>
4933 # else
4934 # ifdef _AIX
4935 #pragma alloca
4936 # else
4937 # ifndef alloca /* predefined by HP cc +Olibcalls */
4938 char *alloca ();
4939 # endif
4940 # endif
4941 # endif
4942 # endif
4943 #endif
4945 int main() {
4946 char *p = (char *) alloca(1);
4947 ; return 0; }
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4950 rm -rf conftest*
4951 ac_cv_func_alloca_works=yes
4952 else
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4955 rm -rf conftest*
4956 ac_cv_func_alloca_works=no
4958 rm -f conftest*
4961 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4962 if test $ac_cv_func_alloca_works = yes; then
4963 cat >> confdefs.h <<\EOF
4964 #define HAVE_ALLOCA 1
4969 if test $ac_cv_func_alloca_works = no; then
4970 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4971 # that cause trouble. Some versions do not even contain alloca or
4972 # contain a buggy version. If you still want to use their alloca,
4973 # use ar to extract alloca.o from them instead of compiling alloca.c.
4974 ALLOCA=alloca.${ac_objext}
4975 cat >> confdefs.h <<\EOF
4976 #define C_ALLOCA 1
4980 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4981 echo "configure:4982: checking whether alloca needs Cray hooks" >&5
4982 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4983 echo $ac_n "(cached) $ac_c" 1>&6
4984 else
4985 cat > conftest.$ac_ext <<EOF
4986 #line 4987 "configure"
4987 #include "confdefs.h"
4988 #if defined(CRAY) && ! defined(CRAY2)
4989 webecray
4990 #else
4991 wenotbecray
4992 #endif
4995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4996 egrep "webecray" >/dev/null 2>&1; then
4997 rm -rf conftest*
4998 ac_cv_os_cray=yes
4999 else
5000 rm -rf conftest*
5001 ac_cv_os_cray=no
5003 rm -f conftest*
5007 echo "$ac_t""$ac_cv_os_cray" 1>&6
5008 if test $ac_cv_os_cray = yes; then
5009 for ac_func in _getb67 GETB67 getb67; do
5010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5011 echo "configure:5012: checking for $ac_func" >&5
5012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5014 else
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 /* System header to define __stub macros and hopefully few prototypes,
5019 which can conflict with char $ac_func(); below. */
5020 #include <assert.h>
5021 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5024 char $ac_func();
5026 int main() {
5028 /* The GNU C library defines this for functions which it implements
5029 to always fail with ENOSYS. Some functions are actually named
5030 something starting with __ and the normal name is an alias. */
5031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5032 choke me
5033 #else
5034 $ac_func();
5035 #endif
5037 ; return 0; }
5039 if { (eval echo configure:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5040 rm -rf conftest*
5041 eval "ac_cv_func_$ac_func=yes"
5042 else
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5045 rm -rf conftest*
5046 eval "ac_cv_func_$ac_func=no"
5048 rm -f conftest*
5051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5052 echo "$ac_t""yes" 1>&6
5053 cat >> confdefs.h <<EOF
5054 #define CRAY_STACKSEG_END $ac_func
5057 break
5058 else
5059 echo "$ac_t""no" 1>&6
5062 done
5065 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5066 echo "configure:5067: checking stack direction for C alloca" >&5
5067 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5069 else
5070 if test "$cross_compiling" = yes; then
5071 ac_cv_c_stack_direction=0
5072 else
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5076 find_stack_direction ()
5078 static char *addr = 0;
5079 auto char dummy;
5080 if (addr == 0)
5082 addr = &dummy;
5083 return find_stack_direction ();
5085 else
5086 return (&dummy > addr) ? 1 : -1;
5088 main ()
5090 exit (find_stack_direction() < 0);
5093 if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5094 then
5095 ac_cv_c_stack_direction=1
5096 else
5097 echo "configure: failed program was:" >&5
5098 cat conftest.$ac_ext >&5
5099 rm -fr conftest*
5100 ac_cv_c_stack_direction=-1
5102 rm -fr conftest*
5107 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5108 cat >> confdefs.h <<EOF
5109 #define STACK_DIRECTION $ac_cv_c_stack_direction
5114 for ac_func in \
5115 __libc_fork \
5116 _lwp_create \
5117 clone \
5118 getnetbyaddr \
5119 getnetbyname \
5120 getpagesize \
5121 getprotobyname \
5122 getprotobynumber \
5123 getservbyport \
5124 getsockopt \
5125 inet_network \
5126 memmove \
5127 rfork \
5128 select \
5129 sendmsg \
5130 settimeofday \
5131 sigaltstack \
5132 statfs \
5133 strcasecmp \
5134 strerror \
5135 strncasecmp \
5136 tcgetattr \
5137 timegm \
5138 usleep \
5139 vfscanf \
5140 wait4 \
5141 waitpid \
5144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5145 echo "configure:5146: checking for $ac_func" >&5
5146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5148 else
5149 cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 /* System header to define __stub macros and hopefully few prototypes,
5153 which can conflict with char $ac_func(); below. */
5154 #include <assert.h>
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5158 char $ac_func();
5160 int main() {
5162 /* The GNU C library defines this for functions which it implements
5163 to always fail with ENOSYS. Some functions are actually named
5164 something starting with __ and the normal name is an alias. */
5165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5166 choke me
5167 #else
5168 $ac_func();
5169 #endif
5171 ; return 0; }
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5174 rm -rf conftest*
5175 eval "ac_cv_func_$ac_func=yes"
5176 else
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5179 rm -rf conftest*
5180 eval "ac_cv_func_$ac_func=no"
5182 rm -f conftest*
5185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5188 cat >> confdefs.h <<EOF
5189 #define $ac_tr_func 1
5192 else
5193 echo "$ac_t""no" 1>&6
5195 done
5199 for ac_hdr in \
5200 a.out.h \
5201 a_out.h \
5202 arpa/inet.h \
5203 arpa/nameser.h \
5204 elf.h \
5205 float.h \
5206 libio.h \
5207 link.h \
5208 linux/cdrom.h \
5209 linux/joystick.h \
5210 linux/ucdrom.h \
5211 net/if.h \
5212 netinet/in.h \
5213 netinet/tcp.h \
5214 pty.h \
5215 resolv.h \
5216 sched.h \
5217 socket.h \
5218 strings.h \
5219 sys/cdio.h \
5220 sys/errno.h \
5221 sys/file.h \
5222 sys/filio.h \
5223 sys/ipc.h \
5224 sys/lwp.h \
5225 sys/mman.h \
5226 sys/modem.h \
5227 sys/mount.h \
5228 sys/msg.h \
5229 sys/param.h \
5230 sys/reg.h \
5231 sys/signal.h \
5232 sys/shm.h \
5233 sys/socket.h \
5234 sys/sockio.h \
5235 sys/statfs.h \
5236 sys/strtio.h \
5237 sys/syscall.h \
5238 sys/wait.h \
5239 sys/v86.h \
5240 sys/v86intr.h \
5241 sys/vfs.h \
5242 sys/vm86.h \
5243 syscall.h \
5244 ucontext.h \
5245 wctype.h \
5248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5250 echo "configure:5251: checking for $ac_hdr" >&5
5251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5253 else
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5257 #include <$ac_hdr>
5259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5260 { (eval echo configure:5261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5262 if test -z "$ac_err"; then
5263 rm -rf conftest*
5264 eval "ac_cv_header_$ac_safe=yes"
5265 else
5266 echo "$ac_err" >&5
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5269 rm -rf conftest*
5270 eval "ac_cv_header_$ac_safe=no"
5272 rm -f conftest*
5274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5275 echo "$ac_t""yes" 1>&6
5276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5277 cat >> confdefs.h <<EOF
5278 #define $ac_tr_hdr 1
5281 else
5282 echo "$ac_t""no" 1>&6
5284 done
5286 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5287 echo "configure:5288: checking whether stat file-mode macros are broken" >&5
5288 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5289 echo $ac_n "(cached) $ac_c" 1>&6
5290 else
5291 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5294 #include <sys/types.h>
5295 #include <sys/stat.h>
5297 #if defined(S_ISBLK) && defined(S_IFDIR)
5298 # if S_ISBLK (S_IFDIR)
5299 You lose.
5300 # endif
5301 #endif
5303 #if defined(S_ISBLK) && defined(S_IFCHR)
5304 # if S_ISBLK (S_IFCHR)
5305 You lose.
5306 # endif
5307 #endif
5309 #if defined(S_ISLNK) && defined(S_IFREG)
5310 # if S_ISLNK (S_IFREG)
5311 You lose.
5312 # endif
5313 #endif
5315 #if defined(S_ISSOCK) && defined(S_IFREG)
5316 # if S_ISSOCK (S_IFREG)
5317 You lose.
5318 # endif
5319 #endif
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 egrep "You lose" >/dev/null 2>&1; then
5324 rm -rf conftest*
5325 ac_cv_header_stat_broken=yes
5326 else
5327 rm -rf conftest*
5328 ac_cv_header_stat_broken=no
5330 rm -f conftest*
5334 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5335 if test $ac_cv_header_stat_broken = yes; then
5336 cat >> confdefs.h <<\EOF
5337 #define STAT_MACROS_BROKEN 1
5344 echo $ac_n "checking for working const""... $ac_c" 1>&6
5345 echo "configure:5346: checking for working const" >&5
5346 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5348 else
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5353 int main() {
5355 /* Ultrix mips cc rejects this. */
5356 typedef int charset[2]; const charset x = {0,0};
5357 /* SunOS 4.1.1 cc rejects this. */
5358 char const *const *ccp;
5359 char **p;
5360 /* NEC SVR4.0.2 mips cc rejects this. */
5361 struct point {int x, y;};
5362 static struct point const zero = {0,0};
5363 /* AIX XL C 1.02.0.0 rejects this.
5364 It does not let you subtract one const X* pointer from another in an arm
5365 of an if-expression whose if-part is not a constant expression */
5366 const char *g = "string";
5367 ccp = &g + (g ? g-g : 0);
5368 /* HPUX 7.0 cc rejects these. */
5369 ++ccp;
5370 p = (char**) ccp;
5371 ccp = (char const *const *) p;
5372 { /* SCO 3.2v4 cc rejects this. */
5373 char *t;
5374 char const *s = 0 ? (char *) 0 : (char const *) 0;
5376 *t++ = 0;
5378 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5379 int x[] = {25, 17};
5380 const int *foo = &x[0];
5381 ++foo;
5383 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5384 typedef const int *iptr;
5385 iptr p = 0;
5386 ++p;
5388 { /* AIX XL C 1.02.0.0 rejects this saying
5389 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5390 struct s { int j; const int *ap[3]; };
5391 struct s *b; b->j = 5;
5393 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5394 const int foo = 10;
5397 ; return 0; }
5399 if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5400 rm -rf conftest*
5401 ac_cv_c_const=yes
5402 else
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5405 rm -rf conftest*
5406 ac_cv_c_const=no
5408 rm -f conftest*
5411 echo "$ac_t""$ac_cv_c_const" 1>&6
5412 if test $ac_cv_c_const = no; then
5413 cat >> confdefs.h <<\EOF
5414 #define const
5419 echo $ac_n "checking for inline""... $ac_c" 1>&6
5420 echo "configure:5421: checking for inline" >&5
5421 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5423 else
5424 ac_cv_c_inline=no
5425 for ac_kw in inline __inline__ __inline; do
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5430 int main() {
5431 } int $ac_kw foo() {
5432 ; return 0; }
5434 if { (eval echo configure:5435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5435 rm -rf conftest*
5436 ac_cv_c_inline=$ac_kw; break
5437 else
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 rm -f conftest*
5442 done
5446 echo "$ac_t""$ac_cv_c_inline" 1>&6
5447 case "$ac_cv_c_inline" in
5448 inline | yes) ;;
5449 no) cat >> confdefs.h <<\EOF
5450 #define inline
5453 *) cat >> confdefs.h <<EOF
5454 #define inline $ac_cv_c_inline
5457 esac
5459 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5460 echo "configure:5461: checking for ANSI C header files" >&5
5461 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5463 else
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5467 #include <stdlib.h>
5468 #include <stdarg.h>
5469 #include <string.h>
5470 #include <float.h>
5472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5473 { (eval echo configure:5474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5475 if test -z "$ac_err"; then
5476 rm -rf conftest*
5477 ac_cv_header_stdc=yes
5478 else
5479 echo "$ac_err" >&5
5480 echo "configure: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5482 rm -rf conftest*
5483 ac_cv_header_stdc=no
5485 rm -f conftest*
5487 if test $ac_cv_header_stdc = yes; then
5488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 #include <string.h>
5494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5495 egrep "memchr" >/dev/null 2>&1; then
5497 else
5498 rm -rf conftest*
5499 ac_cv_header_stdc=no
5501 rm -f conftest*
5505 if test $ac_cv_header_stdc = yes; then
5506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 #include <stdlib.h>
5512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 egrep "free" >/dev/null 2>&1; then
5515 else
5516 rm -rf conftest*
5517 ac_cv_header_stdc=no
5519 rm -f conftest*
5523 if test $ac_cv_header_stdc = yes; then
5524 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5525 if test "$cross_compiling" = yes; then
5527 else
5528 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5531 #include <ctype.h>
5532 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5533 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5535 int main () { int i; for (i = 0; i < 256; i++)
5536 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5537 exit (0); }
5540 if { (eval echo configure:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5541 then
5543 else
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5546 rm -fr conftest*
5547 ac_cv_header_stdc=no
5549 rm -fr conftest*
5555 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5556 if test $ac_cv_header_stdc = yes; then
5557 cat >> confdefs.h <<\EOF
5558 #define STDC_HEADERS 1
5563 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5564 echo "configure:5565: checking for size_t" >&5
5565 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5567 else
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 #include <sys/types.h>
5572 #if STDC_HEADERS
5573 #include <stdlib.h>
5574 #include <stddef.h>
5575 #endif
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5579 rm -rf conftest*
5580 ac_cv_type_size_t=yes
5581 else
5582 rm -rf conftest*
5583 ac_cv_type_size_t=no
5585 rm -f conftest*
5588 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5589 if test $ac_cv_type_size_t = no; then
5590 cat >> confdefs.h <<\EOF
5591 #define size_t unsigned
5596 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5597 echo "configure:5598: checking size of long long" >&5
5598 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5600 else
5601 if test "$cross_compiling" = yes; then
5602 ac_cv_sizeof_long_long=0
5603 else
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5607 #include <stdio.h>
5608 main()
5610 FILE *f=fopen("conftestval", "w");
5611 if (!f) exit(1);
5612 fprintf(f, "%d\n", sizeof(long long));
5613 exit(0);
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5617 then
5618 ac_cv_sizeof_long_long=`cat conftestval`
5619 else
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5622 rm -fr conftest*
5623 ac_cv_sizeof_long_long=0
5625 rm -fr conftest*
5629 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5630 cat >> confdefs.h <<EOF
5631 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5636 if test "$ac_cv_header_linux_joystick_h" = "yes"
5637 then
5638 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5639 echo "configure:5640: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5640 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5642 else
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5647 #include <sys/ioctl.h>
5648 #include <linux/joystick.h>
5650 struct js_event blub;
5651 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5652 #error "no 2.2 header"
5653 #endif
5655 int main() {
5656 /*empty*/
5657 ; return 0; }
5659 if { (eval echo configure:5660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5660 rm -rf conftest*
5661 wine_cv_linux_joystick_22_api=yes
5662 else
5663 echo "configure: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5665 rm -rf conftest*
5666 wine_cv_linux_joystick_22_api=no
5668 rm -f conftest*
5672 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5673 if test "$wine_cv_linux_joystick_22_api" = "yes"
5674 then
5675 cat >> confdefs.h <<\EOF
5676 #define HAVE_LINUX_22_JOYSTICK_API 1
5683 if test "$ac_cv_header_sys_vfs_h" = "yes"
5684 then
5685 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5686 echo "configure:5687: checking "whether sys/vfs.h defines statfs"" >&5
5687 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5689 else
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5694 #include <sys/types.h>
5695 #ifdef HAVE_SYS_PARAM_H
5696 # include <sys/param.h>
5697 #endif
5698 #include <sys/vfs.h>
5700 int main() {
5702 struct statfs stfs;
5704 memset(&stfs,0,sizeof(stfs));
5706 ; return 0; }
5708 if { (eval echo configure:5709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5709 rm -rf conftest*
5710 wine_cv_sys_vfs_has_statfs=yes
5711 else
5712 echo "configure: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714 rm -rf conftest*
5715 wine_cv_sys_vfs_has_statfs=no
5718 rm -f conftest*
5722 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5723 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5724 then
5725 cat >> confdefs.h <<\EOF
5726 #define STATFS_DEFINED_BY_SYS_VFS 1
5732 if test "$ac_cv_header_sys_statfs_h" = "yes"
5733 then
5734 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5735 echo "configure:5736: checking "whether sys/statfs.h defines statfs"" >&5
5736 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5738 else
5739 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5743 #include <sys/types.h>
5744 #ifdef HAVE_SYS_PARAM_H
5745 # include <sys/param.h>
5746 #endif
5747 #include <sys/statfs.h>
5749 int main() {
5751 struct statfs stfs;
5753 ; return 0; }
5755 if { (eval echo configure:5756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5756 rm -rf conftest*
5757 wine_cv_sys_statfs_has_statfs=yes
5758 else
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5761 rm -rf conftest*
5762 wine_cv_sys_statfs_has_statfs=no
5765 rm -f conftest*
5769 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5770 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5771 then
5772 cat >> confdefs.h <<\EOF
5773 #define STATFS_DEFINED_BY_SYS_STATFS 1
5779 if test "$ac_cv_header_sys_mount_h" = "yes"
5780 then
5781 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5782 echo "configure:5783: checking "whether sys/mount.h defines statfs"" >&5
5783 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5785 else
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5790 #include <sys/types.h>
5791 #ifdef HAVE_SYS_PARAM_H
5792 # include <sys/param.h>
5793 #endif
5794 #include <sys/mount.h>
5796 int main() {
5798 struct statfs stfs;
5800 ; return 0; }
5802 if { (eval echo configure:5803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5803 rm -rf conftest*
5804 wine_cv_sys_mount_has_statfs=yes
5805 else
5806 echo "configure: failed program was:" >&5
5807 cat conftest.$ac_ext >&5
5808 rm -rf conftest*
5809 wine_cv_sys_mount_has_statfs=no
5812 rm -f conftest*
5816 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5817 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5818 then
5819 cat >> confdefs.h <<\EOF
5820 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5827 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5828 echo "configure:5829: checking "for statfs.f_bfree"" >&5
5829 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5830 echo $ac_n "(cached) $ac_c" 1>&6
5831 else
5832 if test "x$statfs_bfree" = "xno"
5833 then
5834 wine_cv_statfs_bfree=no
5835 else
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5840 #include <sys/types.h>
5841 #ifdef HAVE_SYS_PARAM_H
5842 # include <sys/param.h>
5843 #endif
5844 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5845 # include <sys/mount.h>
5846 #else
5847 # ifdef STATFS_DEFINED_BY_SYS_VFS
5848 # include <sys/vfs.h>
5849 # else
5850 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5851 # include <sys/statfs.h>
5852 # endif
5853 # endif
5854 #endif
5856 int main() {
5858 struct statfs stfs;
5860 stfs.f_bfree++;
5862 ; return 0; }
5864 if { (eval echo configure:5865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5865 rm -rf conftest*
5866 wine_cv_statfs_bfree=yes
5867 else
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 rm -rf conftest*
5871 wine_cv_statfs_bfree=no
5874 rm -f conftest*
5878 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5879 if test "$wine_cv_statfs_bfree" = "yes"
5880 then
5881 cat >> confdefs.h <<\EOF
5882 #define STATFS_HAS_BFREE 1
5887 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5888 echo "configure:5889: checking "for statfs.f_bavail"" >&5
5889 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5891 else
5892 if test "x$statfs_bavail" = "xno"
5893 then
5894 wine_cv_statfs_bavail=no
5895 else
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5900 #include <sys/types.h>
5901 #ifdef HAVE_SYS_PARAM_H
5902 # include <sys/param.h>
5903 #endif
5904 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5905 # include <sys/mount.h>
5906 #else
5907 # ifdef STATFS_DEFINED_BY_SYS_VFS
5908 # include <sys/vfs.h>
5909 # else
5910 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5911 # include <sys/statfs.h>
5912 # endif
5913 # endif
5914 #endif
5916 int main() {
5918 struct statfs stfs;
5920 stfs.f_bavail++;
5922 ; return 0; }
5924 if { (eval echo configure:5925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5925 rm -rf conftest*
5926 wine_cv_statfs_bavail=yes
5927 else
5928 echo "configure: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 rm -rf conftest*
5931 wine_cv_statfs_bavail=no
5934 rm -f conftest*
5938 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5939 if test "$wine_cv_statfs_bavail" = "yes"
5940 then
5941 cat >> confdefs.h <<\EOF
5942 #define STATFS_HAS_BAVAIL 1
5948 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5949 echo "configure:5950: checking "for msg_accrights in struct msghdr"" >&5
5950 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5951 echo $ac_n "(cached) $ac_c" 1>&6
5952 else
5953 cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5956 #include <sys/types.h>
5957 #include <sys/socket.h>
5958 int main() {
5959 struct msghdr hdr; hdr.msg_accrights=0
5960 ; return 0; }
5962 if { (eval echo configure:5963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5963 rm -rf conftest*
5964 ac_cv_c_msg_accrights="yes"
5965 else
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5968 rm -rf conftest*
5969 ac_cv_c_msg_accrights="no"
5971 rm -f conftest*
5974 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5975 if test "$ac_cv_c_msg_accrights" = "yes"
5976 then
5977 cat >> confdefs.h <<\EOF
5978 #define HAVE_MSGHDR_ACCRIGHTS 1
5984 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
5985 echo "configure:5986: checking "for sun_len in struct sockaddr_un"" >&5
5986 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
5987 echo $ac_n "(cached) $ac_c" 1>&6
5988 else
5989 cat > conftest.$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5992 #include <sys/types.h>
5993 #include <sys/socket.h>
5994 #include <sys/un.h>
5995 int main() {
5996 static struct sockaddr_un addr; addr.sun_len = 1
5997 ; return 0; }
5999 if { (eval echo configure:6000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6000 rm -rf conftest*
6001 ac_cv_c_sun_len="yes"
6002 else
6003 echo "configure: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6005 rm -rf conftest*
6006 ac_cv_c_sun_len="no"
6008 rm -f conftest*
6011 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6012 if test "$ac_cv_c_sun_len" = "yes"
6013 then
6014 cat >> confdefs.h <<\EOF
6015 #define HAVE_SOCKADDR_SUN_LEN 1
6021 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6022 echo "configure:6023: checking "whether we need to define __i386__"" >&5
6023 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6025 else
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6029 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6031 #endif
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034 egrep "yes" >/dev/null 2>&1; then
6035 rm -rf conftest*
6036 ac_cv_cpp_def_i386="yes"
6037 else
6038 rm -rf conftest*
6039 ac_cv_cpp_def_i386="no"
6041 rm -f conftest*
6045 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6046 if test "$ac_cv_cpp_def_i386" = "yes"
6047 then
6048 CFLAGS="$CFLAGS -D__i386__"
6049 LINTFLAGS="$LINTFLAGS -D__i386__"
6052 GCC_NO_BUILTIN=""
6053 if test "$GCC" = "yes"
6054 then
6055 GCC_NO_BUILTIN="-fno-builtin"
6062 MAKE_RULES=Make.rules
6065 MAKE_DLL_RULES=dlls/Makedll.rules
6068 trap '' 1 2 15
6069 cat > confcache <<\EOF
6070 # This file is a shell script that caches the results of configure
6071 # tests run on this system so they can be shared between configure
6072 # scripts and configure runs. It is not useful on other systems.
6073 # If it contains results you don't want to keep, you may remove or edit it.
6075 # By default, configure uses ./config.cache as the cache file,
6076 # creating it if it does not exist already. You can give configure
6077 # the --cache-file=FILE option to use a different cache file; that is
6078 # what configure does when it calls configure scripts in
6079 # subdirectories, so they share the cache.
6080 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6081 # config.status only pays attention to the cache file if you give it the
6082 # --recheck option to rerun configure.
6085 # The following way of writing the cache mishandles newlines in values,
6086 # but we know of no workaround that is simple, portable, and efficient.
6087 # So, don't put newlines in cache variables' values.
6088 # Ultrix sh set writes to stderr and can't be redirected directly,
6089 # and sets the high bit in the cache file unless we assign to the vars.
6090 (set) 2>&1 |
6091 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6092 *ac_space=\ *)
6093 # `set' does not quote correctly, so add quotes (double-quote substitution
6094 # turns \\\\ into \\, and sed turns \\ into \).
6095 sed -n \
6096 -e "s/'/'\\\\''/g" \
6097 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6100 # `set' quotes correctly as required by POSIX, so do not add quotes.
6101 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6103 esac >> confcache
6104 if cmp -s $cache_file confcache; then
6106 else
6107 if test -w $cache_file; then
6108 echo "updating cache $cache_file"
6109 cat confcache > $cache_file
6110 else
6111 echo "not updating unwritable cache $cache_file"
6114 rm -f confcache
6116 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6118 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6119 # Let make expand exec_prefix.
6120 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6122 # Any assignment to VPATH causes Sun make to only execute
6123 # the first set of double-colon rules, so remove it if not needed.
6124 # If there is a colon in the path, we need to keep it.
6125 if test "x$srcdir" = x.; then
6126 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6129 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6131 DEFS=-DHAVE_CONFIG_H
6133 # Without the "./", some shells look in PATH for config.status.
6134 : ${CONFIG_STATUS=./config.status}
6136 echo creating $CONFIG_STATUS
6137 rm -f $CONFIG_STATUS
6138 cat > $CONFIG_STATUS <<EOF
6139 #! /bin/sh
6140 # Generated automatically by configure.
6141 # Run this file to recreate the current configuration.
6142 # This directory was configured as follows,
6143 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6145 # $0 $ac_configure_args
6147 # Compiler output produced by configure, useful for debugging
6148 # configure, is in ./config.log if it exists.
6150 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6151 for ac_option
6153 case "\$ac_option" in
6154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6155 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6156 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6157 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6158 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6159 exit 0 ;;
6160 -help | --help | --hel | --he | --h)
6161 echo "\$ac_cs_usage"; exit 0 ;;
6162 *) echo "\$ac_cs_usage"; exit 1 ;;
6163 esac
6164 done
6166 ac_given_srcdir=$srcdir
6167 ac_given_INSTALL="$INSTALL"
6169 trap 'rm -fr `echo "
6170 Make.rules
6171 Makefile
6172 console/Makefile
6173 controls/Makefile
6174 debugger/Makefile
6175 dlls/Makedll.rules
6176 dlls/Makefile
6177 dlls/advapi32/Makefile
6178 dlls/avifil32/Makefile
6179 dlls/comctl32/Makefile
6180 dlls/commdlg/Makefile
6181 dlls/crtdll/Makefile
6182 dlls/dciman32/Makefile
6183 dlls/ddraw/Makefile
6184 dlls/dinput/Makefile
6185 dlls/dplayx/Makefile
6186 dlls/dsound/Makefile
6187 dlls/gdi/Makefile
6188 dlls/icmp/Makefile
6189 dlls/imagehlp/Makefile
6190 dlls/imm32/Makefile
6191 dlls/kernel/Makefile
6192 dlls/lzexpand/Makefile
6193 dlls/mpr/Makefile
6194 dlls/msacm/Makefile
6195 dlls/msacm32/Makefile
6196 dlls/msnet32/Makefile
6197 dlls/msvideo/Makefile
6198 dlls/ntdll/Makefile
6199 dlls/odbc32/Makefile
6200 dlls/ole32/Makefile
6201 dlls/oleaut32/Makefile
6202 dlls/olecli/Makefile
6203 dlls/oledlg/Makefile
6204 dlls/olepro32/Makefile
6205 dlls/olesvr/Makefile
6206 dlls/opengl32/Makefile
6207 dlls/psapi/Makefile
6208 dlls/rasapi32/Makefile
6209 dlls/richedit/Makefile
6210 dlls/setupx/Makefile
6211 dlls/shell32/Makefile
6212 dlls/sound/Makefile
6213 dlls/stress/Makefile
6214 dlls/tapi32/Makefile
6215 dlls/ttydrv/Makefile
6216 dlls/urlmon/Makefile
6217 dlls/user/Makefile
6218 dlls/version/Makefile
6219 dlls/win32s/Makefile
6220 dlls/win87em/Makefile
6221 dlls/winaspi/Makefile
6222 dlls/windebug/Makefile
6223 dlls/wineps/Makefile
6224 dlls/wing/Makefile
6225 dlls/wininet/Makefile
6226 dlls/winmm/Makefile
6227 dlls/winmm/joystick/Makefile
6228 dlls/winmm/mcianim/Makefile
6229 dlls/winmm/mciavi/Makefile
6230 dlls/winmm/mcicda/Makefile
6231 dlls/winmm/mciseq/Makefile
6232 dlls/winmm/mciwave/Makefile
6233 dlls/winmm/midimap/Makefile
6234 dlls/winmm/wavemap/Makefile
6235 dlls/winmm/wineoss/Makefile
6236 dlls/winsock/Makefile
6237 dlls/winspool/Makefile
6238 dlls/ttydrv/Makefile
6239 dlls/x11drv/Makefile
6240 documentation/Makefile
6241 documentation/wine.conf.man
6242 documentation/wine.man
6243 files/Makefile
6244 graphics/Makefile
6245 graphics/enhmetafiledrv/Makefile
6246 graphics/metafiledrv/Makefile
6247 graphics/ttydrv/Makefile
6248 graphics/win16drv/Makefile
6249 graphics/x11drv/Makefile
6250 if1632/Makefile
6251 include/Makefile
6252 library/Makefile
6253 libtest/Makefile
6254 loader/Makefile
6255 loader/ne/Makefile
6256 loader/dos/Makefile
6257 memory/Makefile
6258 misc/Makefile
6259 miscemu/Makefile
6260 msdos/Makefile
6261 objects/Makefile
6262 ole/Makefile
6263 programs/Makefile
6264 programs/clock/Makefile
6265 programs/cmdlgtst/Makefile
6266 programs/control/Makefile
6267 programs/avitools/Makefile
6268 programs/osversioncheck/Makefile
6269 programs/notepad/Makefile
6270 programs/progman/Makefile
6271 programs/regtest/Makefile
6272 programs/regapi/Makefile
6273 programs/view/Makefile
6274 programs/wcmd/Makefile
6275 programs/winemine/Makefile
6276 programs/winhelp/Makefile
6277 programs/winver/Makefile
6278 relay32/Makefile
6279 resources/Makefile
6280 scheduler/Makefile
6281 server/Makefile
6282 tools/Makefile
6283 tools/cvdump/Makefile
6284 tools/winebuild/Makefile
6285 tools/wrc/Makefile
6286 tools/wmc/Makefile
6287 tsx11/Makefile
6288 unicode/Makefile
6289 win32/Makefile
6290 windows/Makefile
6291 windows/ttydrv/Makefile
6292 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6294 cat >> $CONFIG_STATUS <<EOF
6296 # Protect against being on the right side of a sed subst in config.status.
6297 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6298 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6299 $ac_vpsub
6300 $extrasub
6301 s%@SHELL@%$SHELL%g
6302 s%@CFLAGS@%$CFLAGS%g
6303 s%@CPPFLAGS@%$CPPFLAGS%g
6304 s%@CXXFLAGS@%$CXXFLAGS%g
6305 s%@FFLAGS@%$FFLAGS%g
6306 s%@DEFS@%$DEFS%g
6307 s%@LDFLAGS@%$LDFLAGS%g
6308 s%@LIBS@%$LIBS%g
6309 s%@exec_prefix@%$exec_prefix%g
6310 s%@prefix@%$prefix%g
6311 s%@program_transform_name@%$program_transform_name%g
6312 s%@bindir@%$bindir%g
6313 s%@sbindir@%$sbindir%g
6314 s%@libexecdir@%$libexecdir%g
6315 s%@datadir@%$datadir%g
6316 s%@sysconfdir@%$sysconfdir%g
6317 s%@sharedstatedir@%$sharedstatedir%g
6318 s%@localstatedir@%$localstatedir%g
6319 s%@libdir@%$libdir%g
6320 s%@includedir@%$includedir%g
6321 s%@oldincludedir@%$oldincludedir%g
6322 s%@infodir@%$infodir%g
6323 s%@mandir@%$mandir%g
6324 s%@OPTIONS@%$OPTIONS%g
6325 s%@SET_MAKE@%$SET_MAKE%g
6326 s%@CC@%$CC%g
6327 s%@CPP@%$CPP%g
6328 s%@X_CFLAGS@%$X_CFLAGS%g
6329 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6330 s%@X_LIBS@%$X_LIBS%g
6331 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6332 s%@YACC@%$YACC%g
6333 s%@LEX@%$LEX%g
6334 s%@LEXLIB@%$LEXLIB%g
6335 s%@RANLIB@%$RANLIB%g
6336 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6337 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6338 s%@INSTALL_DATA@%$INSTALL_DATA%g
6339 s%@LN_S@%$LN_S%g
6340 s%@C2MAN@%$C2MAN%g
6341 s%@LDCONFIG@%$LDCONFIG%g
6342 s%@LINT@%$LINT%g
6343 s%@LINTFLAGS@%$LINTFLAGS%g
6344 s%@XLIB@%$XLIB%g
6345 s%@X_DLLS@%$X_DLLS%g
6346 s%@XFILES@%$XFILES%g
6347 s%@OPENGLFILES@%$OPENGLFILES%g
6348 s%@OPENGL32_DLL@%$OPENGL32_DLL%g
6349 s%@DGA_SRCS@%$DGA_SRCS%g
6350 s%@DGA2_SRCS@%$DGA2_SRCS%g
6351 s%@MESA_SRCS@%$MESA_SRCS%g
6352 s%@DLL_LINK@%$DLL_LINK%g
6353 s%@DLLFLAGS@%$DLLFLAGS%g
6354 s%@LDSHARED@%$LDSHARED%g
6355 s%@LIBEXT@%$LIBEXT%g
6356 s%@ALLOCA@%$ALLOCA%g
6357 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6358 /@MAKE_RULES@/r $MAKE_RULES
6359 s%@MAKE_RULES@%%g
6360 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6361 s%@MAKE_DLL_RULES@%%g
6363 CEOF
6366 cat >> $CONFIG_STATUS <<\EOF
6368 # Split the substitutions into bite-sized pieces for seds with
6369 # small command number limits, like on Digital OSF/1 and HP-UX.
6370 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6371 ac_file=1 # Number of current file.
6372 ac_beg=1 # First line for current file.
6373 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6374 ac_more_lines=:
6375 ac_sed_cmds=""
6376 while $ac_more_lines; do
6377 if test $ac_beg -gt 1; then
6378 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6379 else
6380 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6382 if test ! -s conftest.s$ac_file; then
6383 ac_more_lines=false
6384 rm -f conftest.s$ac_file
6385 else
6386 if test -z "$ac_sed_cmds"; then
6387 ac_sed_cmds="sed -f conftest.s$ac_file"
6388 else
6389 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6391 ac_file=`expr $ac_file + 1`
6392 ac_beg=$ac_end
6393 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6395 done
6396 if test -z "$ac_sed_cmds"; then
6397 ac_sed_cmds=cat
6401 cat >> $CONFIG_STATUS <<EOF
6403 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6404 Makefile
6405 console/Makefile
6406 controls/Makefile
6407 debugger/Makefile
6408 dlls/Makedll.rules
6409 dlls/Makefile
6410 dlls/advapi32/Makefile
6411 dlls/avifil32/Makefile
6412 dlls/comctl32/Makefile
6413 dlls/commdlg/Makefile
6414 dlls/crtdll/Makefile
6415 dlls/dciman32/Makefile
6416 dlls/ddraw/Makefile
6417 dlls/dinput/Makefile
6418 dlls/dplayx/Makefile
6419 dlls/dsound/Makefile
6420 dlls/gdi/Makefile
6421 dlls/icmp/Makefile
6422 dlls/imagehlp/Makefile
6423 dlls/imm32/Makefile
6424 dlls/kernel/Makefile
6425 dlls/lzexpand/Makefile
6426 dlls/mpr/Makefile
6427 dlls/msacm/Makefile
6428 dlls/msacm32/Makefile
6429 dlls/msnet32/Makefile
6430 dlls/msvideo/Makefile
6431 dlls/ntdll/Makefile
6432 dlls/odbc32/Makefile
6433 dlls/ole32/Makefile
6434 dlls/oleaut32/Makefile
6435 dlls/olecli/Makefile
6436 dlls/oledlg/Makefile
6437 dlls/olepro32/Makefile
6438 dlls/olesvr/Makefile
6439 dlls/opengl32/Makefile
6440 dlls/psapi/Makefile
6441 dlls/rasapi32/Makefile
6442 dlls/richedit/Makefile
6443 dlls/setupx/Makefile
6444 dlls/shell32/Makefile
6445 dlls/sound/Makefile
6446 dlls/stress/Makefile
6447 dlls/tapi32/Makefile
6448 dlls/ttydrv/Makefile
6449 dlls/urlmon/Makefile
6450 dlls/user/Makefile
6451 dlls/version/Makefile
6452 dlls/win32s/Makefile
6453 dlls/win87em/Makefile
6454 dlls/winaspi/Makefile
6455 dlls/windebug/Makefile
6456 dlls/wineps/Makefile
6457 dlls/wing/Makefile
6458 dlls/wininet/Makefile
6459 dlls/winmm/Makefile
6460 dlls/winmm/joystick/Makefile
6461 dlls/winmm/mcianim/Makefile
6462 dlls/winmm/mciavi/Makefile
6463 dlls/winmm/mcicda/Makefile
6464 dlls/winmm/mciseq/Makefile
6465 dlls/winmm/mciwave/Makefile
6466 dlls/winmm/midimap/Makefile
6467 dlls/winmm/wavemap/Makefile
6468 dlls/winmm/wineoss/Makefile
6469 dlls/winsock/Makefile
6470 dlls/winspool/Makefile
6471 dlls/ttydrv/Makefile
6472 dlls/x11drv/Makefile
6473 documentation/Makefile
6474 documentation/wine.conf.man
6475 documentation/wine.man
6476 files/Makefile
6477 graphics/Makefile
6478 graphics/enhmetafiledrv/Makefile
6479 graphics/metafiledrv/Makefile
6480 graphics/ttydrv/Makefile
6481 graphics/win16drv/Makefile
6482 graphics/x11drv/Makefile
6483 if1632/Makefile
6484 include/Makefile
6485 library/Makefile
6486 libtest/Makefile
6487 loader/Makefile
6488 loader/ne/Makefile
6489 loader/dos/Makefile
6490 memory/Makefile
6491 misc/Makefile
6492 miscemu/Makefile
6493 msdos/Makefile
6494 objects/Makefile
6495 ole/Makefile
6496 programs/Makefile
6497 programs/clock/Makefile
6498 programs/cmdlgtst/Makefile
6499 programs/control/Makefile
6500 programs/avitools/Makefile
6501 programs/osversioncheck/Makefile
6502 programs/notepad/Makefile
6503 programs/progman/Makefile
6504 programs/regtest/Makefile
6505 programs/regapi/Makefile
6506 programs/view/Makefile
6507 programs/wcmd/Makefile
6508 programs/winemine/Makefile
6509 programs/winhelp/Makefile
6510 programs/winver/Makefile
6511 relay32/Makefile
6512 resources/Makefile
6513 scheduler/Makefile
6514 server/Makefile
6515 tools/Makefile
6516 tools/cvdump/Makefile
6517 tools/winebuild/Makefile
6518 tools/wrc/Makefile
6519 tools/wmc/Makefile
6520 tsx11/Makefile
6521 unicode/Makefile
6522 win32/Makefile
6523 windows/Makefile
6524 windows/ttydrv/Makefile
6525 windows/x11drv/Makefile "}
6527 cat >> $CONFIG_STATUS <<\EOF
6528 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6530 case "$ac_file" in
6531 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6532 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6533 *) ac_file_in="${ac_file}.in" ;;
6534 esac
6536 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6538 # Remove last slash and all that follows it. Not all systems have dirname.
6539 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6540 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6541 # The file is in a subdirectory.
6542 test ! -d "$ac_dir" && mkdir "$ac_dir"
6543 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6544 # A "../" for each directory in $ac_dir_suffix.
6545 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6546 else
6547 ac_dir_suffix= ac_dots=
6550 case "$ac_given_srcdir" in
6551 .) srcdir=.
6552 if test -z "$ac_dots"; then top_srcdir=.
6553 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6554 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6555 *) # Relative path.
6556 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6557 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6558 esac
6560 case "$ac_given_INSTALL" in
6561 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6562 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6563 esac
6565 echo creating "$ac_file"
6566 rm -f "$ac_file"
6567 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6568 case "$ac_file" in
6569 *Makefile*) ac_comsub="1i\\
6570 # $configure_input" ;;
6571 *) ac_comsub= ;;
6572 esac
6574 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6575 sed -e "$ac_comsub
6576 s%@configure_input@%$configure_input%g
6577 s%@srcdir@%$srcdir%g
6578 s%@top_srcdir@%$top_srcdir%g
6579 s%@INSTALL@%$INSTALL%g
6580 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6581 fi; done
6582 rm -f conftest.s*
6584 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6585 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6587 # ac_d sets the value in "#define NAME VALUE" lines.
6588 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6589 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6590 ac_dC='\3'
6591 ac_dD='%g'
6592 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6593 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6594 ac_uB='\([ ]\)%\1#\2define\3'
6595 ac_uC=' '
6596 ac_uD='\4%g'
6597 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6598 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6599 ac_eB='$%\1#\2define\3'
6600 ac_eC=' '
6601 ac_eD='%g'
6603 if test "${CONFIG_HEADERS+set}" != set; then
6605 cat >> $CONFIG_STATUS <<EOF
6606 CONFIG_HEADERS="include/config.h"
6608 cat >> $CONFIG_STATUS <<\EOF
6610 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6612 case "$ac_file" in
6613 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6614 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6615 *) ac_file_in="${ac_file}.in" ;;
6616 esac
6618 echo creating $ac_file
6620 rm -f conftest.frag conftest.in conftest.out
6621 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6622 cat $ac_file_inputs > conftest.in
6626 # Transform confdefs.h into a sed script conftest.vals that substitutes
6627 # the proper values into config.h.in to produce config.h. And first:
6628 # Protect against being on the right side of a sed subst in config.status.
6629 # Protect against being in an unquoted here document in config.status.
6630 rm -f conftest.vals
6631 cat > conftest.hdr <<\EOF
6632 s/[\\&%]/\\&/g
6633 s%[\\$`]%\\&%g
6634 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6635 s%ac_d%ac_u%gp
6636 s%ac_u%ac_e%gp
6638 sed -n -f conftest.hdr confdefs.h > conftest.vals
6639 rm -f conftest.hdr
6641 # This sed command replaces #undef with comments. This is necessary, for
6642 # example, in the case of _POSIX_SOURCE, which is predefined and required
6643 # on some systems where configure will not decide to define it.
6644 cat >> conftest.vals <<\EOF
6645 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6648 # Break up conftest.vals because some shells have a limit on
6649 # the size of here documents, and old seds have small limits too.
6651 rm -f conftest.tail
6652 while :
6654 ac_lines=`grep -c . conftest.vals`
6655 # grep -c gives empty output for an empty file on some AIX systems.
6656 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6657 # Write a limited-size here document to conftest.frag.
6658 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6659 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6660 echo 'CEOF
6661 sed -f conftest.frag conftest.in > conftest.out
6662 rm -f conftest.in
6663 mv conftest.out conftest.in
6664 ' >> $CONFIG_STATUS
6665 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6666 rm -f conftest.vals
6667 mv conftest.tail conftest.vals
6668 done
6669 rm -f conftest.vals
6671 cat >> $CONFIG_STATUS <<\EOF
6672 rm -f conftest.frag conftest.h
6673 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6674 cat conftest.in >> conftest.h
6675 rm -f conftest.in
6676 if cmp -s $ac_file conftest.h 2>/dev/null; then
6677 echo "$ac_file is unchanged"
6678 rm -f conftest.h
6679 else
6680 # Remove last slash and all that follows it. Not all systems have dirname.
6681 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6682 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6683 # The file is in a subdirectory.
6684 test ! -d "$ac_dir" && mkdir "$ac_dir"
6686 rm -f $ac_file
6687 mv conftest.h $ac_file
6689 fi; done
6692 cat >> $CONFIG_STATUS <<EOF
6696 cat >> $CONFIG_STATUS <<\EOF
6698 extra_subdirs="\
6699 dlls/ddraw/d3ddevice \
6700 dlls/ddraw/dclipper \
6701 dlls/ddraw/ddraw \
6702 dlls/ddraw/direct3d \
6703 dlls/ddraw/dpalette \
6704 dlls/ddraw/dsurface \
6706 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6708 exit 0
6710 chmod +x $CONFIG_STATUS
6711 rm -fr confdefs* $ac_clean_files
6712 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6715 if test "$have_x" = "no"
6716 then
6717 echo
6718 echo "*** Warning: X development files not found. Wine will be built without"
6719 echo "*** X support, which currently does not work, and would probably not be"
6720 echo "*** what you want anyway. You will need to install devel packages of"
6721 echo "*** Xlib/Xfree86 and Xpm at the very least."
6722 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6723 then
6724 echo
6725 echo "*** Warning: Xpm development files not found. Wine will be built without"
6726 echo "*** Xpm support, which currently does not work. You will need to install"
6727 echo "*** devel packages of Xpm."
6730 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6731 then
6732 echo
6733 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6734 echo "*** terminal resize support. Consider upgrading ncurses."
6737 if test "$wine_cv_libc_reentrant" = "no"
6738 then
6739 echo
6740 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6741 echo "*** thread support. Consider upgrading libc to a more recent"
6742 echo "*** reentrant version of libc."
6745 if test "$wine_cv_opengl_version_OK" = "no"
6746 then
6747 echo
6748 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6749 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6752 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
6753 then
6754 echo
6755 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6756 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
6757 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
6758 echo "*** start configure with '--enable-opengl' to force OpenGL support."
6761 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
6762 then
6763 echo
6764 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
6765 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
6766 echo "*** support before reporting bugs."
6770 echo
6771 echo "Configure finished. Do 'make depend && make' to compile Wine."
6772 echo