Added leaving of critical section on all return cases.
[wine/multimedia.git] / configure
blobaf2f506f3f354325970db6b4c39c9ccb71705b44
1 #! /bin/sh
3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.13
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --disable-emulator build only the Wine library, not the emulator"
17 ac_help="$ac_help
18 --disable-dll build static libraries instead of DLLs"
19 ac_help="$ac_help
20 --disable-debug compile out all debugging messages"
21 ac_help="$ac_help
22 --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.
560 # We want these before the checks, so the checks can modify their values.
562 test -z "$PROGEXT" && PROGEXT=""
565 EMU_TARGET=wine
566 LIBEXT=so # library type .so or .a
567 TRACE_MSGS=yes # the TRACE() macro
568 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
569 CURSES=yes
571 # Check whether --enable-emulator or --disable-emulator was given.
572 if test "${enable_emulator+set}" = set; then
573 enableval="$enable_emulator"
574 if test "$enableval" = "no"; then EMU_TARGET=""; fi
578 # Check whether --enable-dll or --disable-dll was given.
579 if test "${enable_dll+set}" = set; then
580 enableval="$enable_dll"
581 if test "$enableval" = "no"; then LIBEXT="a"; fi
585 # Check whether --enable-debug or --disable-debug was given.
586 if test "${enable_debug+set}" = set; then
587 enableval="$enable_debug"
588 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
592 # Check whether --enable-trace or --disable-trace was given.
593 if test "${enable_trace+set}" = set; then
594 enableval="$enable_trace"
595 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
599 # Check whether --with-curses or --without-curses was given.
600 if test "${with_curses+set}" = set; then
601 withval="$with_curses"
602 if test "$withval" = "no"; then CURSES="no"; fi
606 # Check whether --with-reentrant-x or --without-reentrant-x was given.
607 if test "${with_reentrant_x+set}" = set; then
608 withval="$with_reentrant_x"
616 if test "$DEBUG_MSGS" = "no"
617 then
618 cat >> confdefs.h <<\EOF
619 #define NO_DEBUG_MSGS 1
622 cat >> confdefs.h <<\EOF
623 #define NO_TRACE_MSGS 1
626 else
627 if test "$TRACE_MSGS" = "no"
628 then
629 cat >> confdefs.h <<\EOF
630 #define NO_TRACE_MSGS 1
637 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
638 echo "configure:639: checking whether ${MAKE-make} sets \${MAKE}" >&5
639 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
640 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
642 else
643 cat > conftestmake <<\EOF
644 all:
645 @echo 'ac_maketemp="${MAKE}"'
647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
648 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
649 if test -n "$ac_maketemp"; then
650 eval ac_cv_prog_make_${ac_make}_set=yes
651 else
652 eval ac_cv_prog_make_${ac_make}_set=no
654 rm -f conftestmake
656 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
657 echo "$ac_t""yes" 1>&6
658 SET_MAKE=
659 else
660 echo "$ac_t""no" 1>&6
661 SET_MAKE="MAKE=${MAKE-make}"
664 # Extract the first word of "gcc", so it can be a program name with args.
665 set dummy gcc; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
670 else
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
673 else
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
675 ac_dummy="$PATH"
676 for ac_dir in $ac_dummy; do
677 test -z "$ac_dir" && ac_dir=.
678 if test -f $ac_dir/$ac_word; then
679 ac_cv_prog_CC="gcc"
680 break
682 done
683 IFS="$ac_save_ifs"
686 CC="$ac_cv_prog_CC"
687 if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
689 else
690 echo "$ac_t""no" 1>&6
693 if test -z "$CC"; then
694 # Extract the first word of "cc", so it can be a program name with args.
695 set dummy cc; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700 else
701 if test -n "$CC"; then
702 ac_cv_prog_CC="$CC" # Let the user override the test.
703 else
704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
705 ac_prog_rejected=no
706 ac_dummy="$PATH"
707 for ac_dir in $ac_dummy; do
708 test -z "$ac_dir" && ac_dir=.
709 if test -f $ac_dir/$ac_word; then
710 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
711 ac_prog_rejected=yes
712 continue
714 ac_cv_prog_CC="cc"
715 break
717 done
718 IFS="$ac_save_ifs"
719 if test $ac_prog_rejected = yes; then
720 # We found a bogon in the path, so make sure we never use it.
721 set dummy $ac_cv_prog_CC
722 shift
723 if test $# -gt 0; then
724 # We chose a different compiler from the bogus one.
725 # However, it has the same basename, so the bogon will be chosen
726 # first if we set CC to just the basename; use the full file name.
727 shift
728 set dummy "$ac_dir/$ac_word" "$@"
729 shift
730 ac_cv_prog_CC="$@"
735 CC="$ac_cv_prog_CC"
736 if test -n "$CC"; then
737 echo "$ac_t""$CC" 1>&6
738 else
739 echo "$ac_t""no" 1>&6
742 if test -z "$CC"; then
743 case "`uname -s`" in
744 *win32* | *WIN32*)
745 # Extract the first word of "cl", so it can be a program name with args.
746 set dummy cl; ac_word=$2
747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
748 echo "configure:749: checking for $ac_word" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
751 else
752 if test -n "$CC"; then
753 ac_cv_prog_CC="$CC" # Let the user override the test.
754 else
755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
756 ac_dummy="$PATH"
757 for ac_dir in $ac_dummy; do
758 test -z "$ac_dir" && ac_dir=.
759 if test -f $ac_dir/$ac_word; then
760 ac_cv_prog_CC="cl"
761 break
763 done
764 IFS="$ac_save_ifs"
767 CC="$ac_cv_prog_CC"
768 if test -n "$CC"; then
769 echo "$ac_t""$CC" 1>&6
770 else
771 echo "$ac_t""no" 1>&6
774 esac
776 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
779 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
780 echo "configure:781: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
782 ac_ext=c
783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
784 ac_cpp='$CPP $CPPFLAGS'
785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
787 cross_compiling=$ac_cv_prog_cc_cross
789 cat > conftest.$ac_ext << EOF
791 #line 792 "configure"
792 #include "confdefs.h"
794 main(){return(0);}
796 if { (eval echo configure:797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
797 ac_cv_prog_cc_works=yes
798 # If we can't run a trivial program, we are probably using a cross compiler.
799 if (./conftest; exit) 2>/dev/null; then
800 ac_cv_prog_cc_cross=no
801 else
802 ac_cv_prog_cc_cross=yes
804 else
805 echo "configure: failed program was:" >&5
806 cat conftest.$ac_ext >&5
807 ac_cv_prog_cc_works=no
809 rm -fr conftest*
810 ac_ext=c
811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
812 ac_cpp='$CPP $CPPFLAGS'
813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
815 cross_compiling=$ac_cv_prog_cc_cross
817 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
818 if test $ac_cv_prog_cc_works = no; then
819 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
821 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
822 echo "configure:823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
823 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
824 cross_compiling=$ac_cv_prog_cc_cross
826 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
827 echo "configure:828: checking whether we are using GNU C" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
830 else
831 cat > conftest.c <<EOF
832 #ifdef __GNUC__
833 yes;
834 #endif
836 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
837 ac_cv_prog_gcc=yes
838 else
839 ac_cv_prog_gcc=no
843 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
845 if test $ac_cv_prog_gcc = yes; then
846 GCC=yes
847 else
848 GCC=
851 ac_test_CFLAGS="${CFLAGS+set}"
852 ac_save_CFLAGS="$CFLAGS"
853 CFLAGS=
854 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
855 echo "configure:856: checking whether ${CC-cc} accepts -g" >&5
856 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
858 else
859 echo 'void f(){}' > conftest.c
860 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
861 ac_cv_prog_cc_g=yes
862 else
863 ac_cv_prog_cc_g=no
865 rm -f conftest*
869 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
870 if test "$ac_test_CFLAGS" = set; then
871 CFLAGS="$ac_save_CFLAGS"
872 elif test $ac_cv_prog_cc_g = yes; then
873 if test "$GCC" = yes; then
874 CFLAGS="-g -O2"
875 else
876 CFLAGS="-g"
878 else
879 if test "$GCC" = yes; then
880 CFLAGS="-O2"
881 else
882 CFLAGS=
886 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
887 echo "configure:888: checking how to run the C preprocessor" >&5
888 # On Suns, sometimes $CPP names a directory.
889 if test -n "$CPP" && test -d "$CPP"; then
890 CPP=
892 if test -z "$CPP"; then
893 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
895 else
896 # This must be in double quotes, not single quotes, because CPP may get
897 # substituted into the Makefile and "${CC-cc}" will confuse make.
898 CPP="${CC-cc} -E"
899 # On the NeXT, cc -E runs the code through the compiler's parser,
900 # not just through cpp.
901 cat > conftest.$ac_ext <<EOF
902 #line 903 "configure"
903 #include "confdefs.h"
904 #include <assert.h>
905 Syntax Error
907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
908 { (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
910 if test -z "$ac_err"; then
912 else
913 echo "$ac_err" >&5
914 echo "configure: failed program was:" >&5
915 cat conftest.$ac_ext >&5
916 rm -rf conftest*
917 CPP="${CC-cc} -E -traditional-cpp"
918 cat > conftest.$ac_ext <<EOF
919 #line 920 "configure"
920 #include "confdefs.h"
921 #include <assert.h>
922 Syntax Error
924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
925 { (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
927 if test -z "$ac_err"; then
929 else
930 echo "$ac_err" >&5
931 echo "configure: failed program was:" >&5
932 cat conftest.$ac_ext >&5
933 rm -rf conftest*
934 CPP="${CC-cc} -nologo -E"
935 cat > conftest.$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
938 #include <assert.h>
939 Syntax Error
941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
942 { (eval echo configure:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
944 if test -z "$ac_err"; then
946 else
947 echo "$ac_err" >&5
948 echo "configure: failed program was:" >&5
949 cat conftest.$ac_ext >&5
950 rm -rf conftest*
951 CPP=/lib/cpp
953 rm -f conftest*
955 rm -f conftest*
957 rm -f conftest*
958 ac_cv_prog_CPP="$CPP"
960 CPP="$ac_cv_prog_CPP"
961 else
962 ac_cv_prog_CPP="$CPP"
964 echo "$ac_t""$CPP" 1>&6
966 # If we find X, set shell vars x_includes and x_libraries to the
967 # paths, otherwise set no_x=yes.
968 # Uses ac_ vars as temps to allow command line to override cache and checks.
969 # --without-x overrides everything else, but does not touch the cache.
970 echo $ac_n "checking for X""... $ac_c" 1>&6
971 echo "configure:972: checking for X" >&5
973 # Check whether --with-x or --without-x was given.
974 if test "${with_x+set}" = set; then
975 withval="$with_x"
979 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
980 if test "x$with_x" = xno; then
981 # The user explicitly disabled X.
982 have_x=disabled
983 else
984 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
985 # Both variables are already set.
986 have_x=yes
987 else
988 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990 else
991 # One or both of the vars are not set, and there is no cached value.
992 ac_x_includes=NO ac_x_libraries=NO
993 rm -fr conftestdir
994 if mkdir conftestdir; then
995 cd conftestdir
996 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
997 cat > Imakefile <<'EOF'
998 acfindx:
999 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1001 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1003 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1004 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1005 for ac_extension in a so sl; do
1006 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1007 test -f $ac_im_libdir/libX11.$ac_extension; then
1008 ac_im_usrlibdir=$ac_im_libdir; break
1010 done
1011 # Screen out bogus values from the imake configuration. They are
1012 # bogus both because they are the default anyway, and because
1013 # using them would break gcc on systems where it needs fixed includes.
1014 case "$ac_im_incroot" in
1015 /usr/include) ;;
1016 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1017 esac
1018 case "$ac_im_usrlibdir" in
1019 /usr/lib | /lib) ;;
1020 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1021 esac
1023 cd ..
1024 rm -fr conftestdir
1027 if test "$ac_x_includes" = NO; then
1028 # Guess where to find include files, by looking for this one X11 .h file.
1029 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1031 # First, try using that file with no special directory specified.
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1035 #include <$x_direct_test_include>
1037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1038 { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1040 if test -z "$ac_err"; then
1041 rm -rf conftest*
1042 # We can compile using X headers with no special include directory.
1043 ac_x_includes=
1044 else
1045 echo "$ac_err" >&5
1046 echo "configure: failed program was:" >&5
1047 cat conftest.$ac_ext >&5
1048 rm -rf conftest*
1049 # Look for the header file in a standard set of common directories.
1050 # Check X11 before X11Rn because it is often a symlink to the current release.
1051 for ac_dir in \
1052 /usr/X11/include \
1053 /usr/X11R6/include \
1054 /usr/X11R5/include \
1055 /usr/X11R4/include \
1057 /usr/include/X11 \
1058 /usr/include/X11R6 \
1059 /usr/include/X11R5 \
1060 /usr/include/X11R4 \
1062 /usr/local/X11/include \
1063 /usr/local/X11R6/include \
1064 /usr/local/X11R5/include \
1065 /usr/local/X11R4/include \
1067 /usr/local/include/X11 \
1068 /usr/local/include/X11R6 \
1069 /usr/local/include/X11R5 \
1070 /usr/local/include/X11R4 \
1072 /usr/X386/include \
1073 /usr/x386/include \
1074 /usr/XFree86/include/X11 \
1076 /usr/include \
1077 /usr/local/include \
1078 /usr/unsupported/include \
1079 /usr/athena/include \
1080 /usr/local/x11r5/include \
1081 /usr/lpp/Xamples/include \
1083 /usr/openwin/include \
1084 /usr/openwin/share/include \
1087 if test -r "$ac_dir/$x_direct_test_include"; then
1088 ac_x_includes=$ac_dir
1089 break
1091 done
1093 rm -f conftest*
1094 fi # $ac_x_includes = NO
1096 if test "$ac_x_libraries" = NO; then
1097 # Check for the libraries.
1099 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1100 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1102 # See if we find them without any special options.
1103 # Don't add to $LIBS permanently.
1104 ac_save_LIBS="$LIBS"
1105 LIBS="-l$x_direct_test_library $LIBS"
1106 cat > conftest.$ac_ext <<EOF
1107 #line 1108 "configure"
1108 #include "confdefs.h"
1110 int main() {
1111 ${x_direct_test_function}()
1112 ; return 0; }
1114 if { (eval echo configure:1115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1115 rm -rf conftest*
1116 LIBS="$ac_save_LIBS"
1117 # We can link X programs with no special library path.
1118 ac_x_libraries=
1119 else
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1122 rm -rf conftest*
1123 LIBS="$ac_save_LIBS"
1124 # First see if replacing the include by lib works.
1125 # Check X11 before X11Rn because it is often a symlink to the current release.
1126 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1127 /usr/X11/lib \
1128 /usr/X11R6/lib \
1129 /usr/X11R5/lib \
1130 /usr/X11R4/lib \
1132 /usr/lib/X11 \
1133 /usr/lib/X11R6 \
1134 /usr/lib/X11R5 \
1135 /usr/lib/X11R4 \
1137 /usr/local/X11/lib \
1138 /usr/local/X11R6/lib \
1139 /usr/local/X11R5/lib \
1140 /usr/local/X11R4/lib \
1142 /usr/local/lib/X11 \
1143 /usr/local/lib/X11R6 \
1144 /usr/local/lib/X11R5 \
1145 /usr/local/lib/X11R4 \
1147 /usr/X386/lib \
1148 /usr/x386/lib \
1149 /usr/XFree86/lib/X11 \
1151 /usr/lib \
1152 /usr/local/lib \
1153 /usr/unsupported/lib \
1154 /usr/athena/lib \
1155 /usr/local/x11r5/lib \
1156 /usr/lpp/Xamples/lib \
1157 /lib/usr/lib/X11 \
1159 /usr/openwin/lib \
1160 /usr/openwin/share/lib \
1163 for ac_extension in a so sl; do
1164 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1165 ac_x_libraries=$ac_dir
1166 break 2
1168 done
1169 done
1171 rm -f conftest*
1172 fi # $ac_x_libraries = NO
1174 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1175 # Didn't find X anywhere. Cache the known absence of X.
1176 ac_cv_have_x="have_x=no"
1177 else
1178 # Record where we found X for the cache.
1179 ac_cv_have_x="have_x=yes \
1180 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1184 eval "$ac_cv_have_x"
1185 fi # $with_x != no
1187 if test "$have_x" != yes; then
1188 echo "$ac_t""$have_x" 1>&6
1189 no_x=yes
1190 else
1191 # If each of the values was on the command line, it overrides each guess.
1192 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1193 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1194 # Update the cache value to reflect the command line values.
1195 ac_cv_have_x="have_x=yes \
1196 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1197 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1200 if test "$no_x" = yes; then
1201 # Not all programs may use this symbol, but it does not hurt to define it.
1202 cat >> confdefs.h <<\EOF
1203 #define X_DISPLAY_MISSING 1
1206 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1207 else
1208 if test -n "$x_includes"; then
1209 X_CFLAGS="$X_CFLAGS -I$x_includes"
1212 # It would also be nice to do this for all -L options, not just this one.
1213 if test -n "$x_libraries"; then
1214 X_LIBS="$X_LIBS -L$x_libraries"
1215 # For Solaris; some versions of Sun CC require a space after -R and
1216 # others require no space. Words are not sufficient . . . .
1217 case "`(uname -sr) 2>/dev/null`" in
1218 "SunOS 5"*)
1219 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether -R must be followed by a space" >&5
1221 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1222 cat > conftest.$ac_ext <<EOF
1223 #line 1224 "configure"
1224 #include "confdefs.h"
1226 int main() {
1228 ; return 0; }
1230 if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1231 rm -rf conftest*
1232 ac_R_nospace=yes
1233 else
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1236 rm -rf conftest*
1237 ac_R_nospace=no
1239 rm -f conftest*
1240 if test $ac_R_nospace = yes; then
1241 echo "$ac_t""no" 1>&6
1242 X_LIBS="$X_LIBS -R$x_libraries"
1243 else
1244 LIBS="$ac_xsave_LIBS -R $x_libraries"
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1249 int main() {
1251 ; return 0; }
1253 if { (eval echo configure:1254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1254 rm -rf conftest*
1255 ac_R_space=yes
1256 else
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1259 rm -rf conftest*
1260 ac_R_space=no
1262 rm -f conftest*
1263 if test $ac_R_space = yes; then
1264 echo "$ac_t""yes" 1>&6
1265 X_LIBS="$X_LIBS -R $x_libraries"
1266 else
1267 echo "$ac_t""neither works" 1>&6
1270 LIBS="$ac_xsave_LIBS"
1271 esac
1274 # Check for system-dependent libraries X programs must link with.
1275 # Do this before checking for the system-independent R6 libraries
1276 # (-lICE), since we may need -lsocket or whatever for X linking.
1278 if test "$ISC" = yes; then
1279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1280 else
1281 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1282 # libraries were built with DECnet support. And karl@cs.umb.edu says
1283 # the Alpha needs dnet_stub (dnet does not exist).
1284 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1285 echo "configure:1286: checking for dnet_ntoa in -ldnet" >&5
1286 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290 ac_save_LIBS="$LIBS"
1291 LIBS="-ldnet $LIBS"
1292 cat > conftest.$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1295 /* Override any gcc2 internal prototype to avoid an error. */
1296 /* We use char because int might match the return type of a gcc2
1297 builtin and then its argument prototype would still apply. */
1298 char dnet_ntoa();
1300 int main() {
1301 dnet_ntoa()
1302 ; return 0; }
1304 if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1305 rm -rf conftest*
1306 eval "ac_cv_lib_$ac_lib_var=yes"
1307 else
1308 echo "configure: failed program was:" >&5
1309 cat conftest.$ac_ext >&5
1310 rm -rf conftest*
1311 eval "ac_cv_lib_$ac_lib_var=no"
1313 rm -f conftest*
1314 LIBS="$ac_save_LIBS"
1317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1318 echo "$ac_t""yes" 1>&6
1319 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1320 else
1321 echo "$ac_t""no" 1>&6
1324 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1325 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1326 echo "configure:1327: checking for dnet_ntoa in -ldnet_stub" >&5
1327 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1330 else
1331 ac_save_LIBS="$LIBS"
1332 LIBS="-ldnet_stub $LIBS"
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1336 /* Override any gcc2 internal prototype to avoid an error. */
1337 /* We use char because int might match the return type of a gcc2
1338 builtin and then its argument prototype would still apply. */
1339 char dnet_ntoa();
1341 int main() {
1342 dnet_ntoa()
1343 ; return 0; }
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1346 rm -rf conftest*
1347 eval "ac_cv_lib_$ac_lib_var=yes"
1348 else
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1351 rm -rf conftest*
1352 eval "ac_cv_lib_$ac_lib_var=no"
1354 rm -f conftest*
1355 LIBS="$ac_save_LIBS"
1358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1359 echo "$ac_t""yes" 1>&6
1360 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1361 else
1362 echo "$ac_t""no" 1>&6
1367 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1368 # to get the SysV transport functions.
1369 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1370 # needs -lnsl.
1371 # The nsl library prevents programs from opening the X display
1372 # on Irix 5.2, according to dickey@clark.net.
1373 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1374 echo "configure:1375: checking for gethostbyname" >&5
1375 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1377 else
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1381 /* System header to define __stub macros and hopefully few prototypes,
1382 which can conflict with char gethostbyname(); below. */
1383 #include <assert.h>
1384 /* Override any gcc2 internal prototype to avoid an error. */
1385 /* We use char because int might match the return type of a gcc2
1386 builtin and then its argument prototype would still apply. */
1387 char gethostbyname();
1389 int main() {
1391 /* The GNU C library defines this for functions which it implements
1392 to always fail with ENOSYS. Some functions are actually named
1393 something starting with __ and the normal name is an alias. */
1394 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1395 choke me
1396 #else
1397 gethostbyname();
1398 #endif
1400 ; return 0; }
1402 if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1403 rm -rf conftest*
1404 eval "ac_cv_func_gethostbyname=yes"
1405 else
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1408 rm -rf conftest*
1409 eval "ac_cv_func_gethostbyname=no"
1411 rm -f conftest*
1414 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1415 echo "$ac_t""yes" 1>&6
1417 else
1418 echo "$ac_t""no" 1>&6
1421 if test $ac_cv_func_gethostbyname = no; then
1422 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1423 echo "configure:1424: checking for gethostbyname in -lnsl" >&5
1424 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1427 else
1428 ac_save_LIBS="$LIBS"
1429 LIBS="-lnsl $LIBS"
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 /* Override any gcc2 internal prototype to avoid an error. */
1434 /* We use char because int might match the return type of a gcc2
1435 builtin and then its argument prototype would still apply. */
1436 char gethostbyname();
1438 int main() {
1439 gethostbyname()
1440 ; return 0; }
1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1443 rm -rf conftest*
1444 eval "ac_cv_lib_$ac_lib_var=yes"
1445 else
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1448 rm -rf conftest*
1449 eval "ac_cv_lib_$ac_lib_var=no"
1451 rm -f conftest*
1452 LIBS="$ac_save_LIBS"
1455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1457 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1458 else
1459 echo "$ac_t""no" 1>&6
1464 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1465 # socket/setsockopt and other routines are undefined under SCO ODT
1466 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1467 # on later versions), says simon@lia.di.epfl.ch: it contains
1468 # gethostby* variants that don't use the nameserver (or something).
1469 # -lsocket must be given before -lnsl if both are needed.
1470 # We assume that if connect needs -lnsl, so does gethostbyname.
1471 echo $ac_n "checking for connect""... $ac_c" 1>&6
1472 echo "configure:1473: checking for connect" >&5
1473 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1475 else
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1479 /* System header to define __stub macros and hopefully few prototypes,
1480 which can conflict with char connect(); below. */
1481 #include <assert.h>
1482 /* Override any gcc2 internal prototype to avoid an error. */
1483 /* We use char because int might match the return type of a gcc2
1484 builtin and then its argument prototype would still apply. */
1485 char connect();
1487 int main() {
1489 /* The GNU C library defines this for functions which it implements
1490 to always fail with ENOSYS. Some functions are actually named
1491 something starting with __ and the normal name is an alias. */
1492 #if defined (__stub_connect) || defined (__stub___connect)
1493 choke me
1494 #else
1495 connect();
1496 #endif
1498 ; return 0; }
1500 if { (eval echo configure:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1501 rm -rf conftest*
1502 eval "ac_cv_func_connect=yes"
1503 else
1504 echo "configure: failed program was:" >&5
1505 cat conftest.$ac_ext >&5
1506 rm -rf conftest*
1507 eval "ac_cv_func_connect=no"
1509 rm -f conftest*
1512 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1513 echo "$ac_t""yes" 1>&6
1515 else
1516 echo "$ac_t""no" 1>&6
1519 if test $ac_cv_func_connect = no; then
1520 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1521 echo "configure:1522: checking for connect in -lsocket" >&5
1522 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1525 else
1526 ac_save_LIBS="$LIBS"
1527 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1528 cat > conftest.$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1531 /* Override any gcc2 internal prototype to avoid an error. */
1532 /* We use char because int might match the return type of a gcc2
1533 builtin and then its argument prototype would still apply. */
1534 char connect();
1536 int main() {
1537 connect()
1538 ; return 0; }
1540 if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1541 rm -rf conftest*
1542 eval "ac_cv_lib_$ac_lib_var=yes"
1543 else
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1546 rm -rf conftest*
1547 eval "ac_cv_lib_$ac_lib_var=no"
1549 rm -f conftest*
1550 LIBS="$ac_save_LIBS"
1553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1554 echo "$ac_t""yes" 1>&6
1555 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1556 else
1557 echo "$ac_t""no" 1>&6
1562 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1563 echo $ac_n "checking for remove""... $ac_c" 1>&6
1564 echo "configure:1565: checking for remove" >&5
1565 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1571 /* System header to define __stub macros and hopefully few prototypes,
1572 which can conflict with char remove(); below. */
1573 #include <assert.h>
1574 /* Override any gcc2 internal prototype to avoid an error. */
1575 /* We use char because int might match the return type of a gcc2
1576 builtin and then its argument prototype would still apply. */
1577 char remove();
1579 int main() {
1581 /* The GNU C library defines this for functions which it implements
1582 to always fail with ENOSYS. Some functions are actually named
1583 something starting with __ and the normal name is an alias. */
1584 #if defined (__stub_remove) || defined (__stub___remove)
1585 choke me
1586 #else
1587 remove();
1588 #endif
1590 ; return 0; }
1592 if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1593 rm -rf conftest*
1594 eval "ac_cv_func_remove=yes"
1595 else
1596 echo "configure: failed program was:" >&5
1597 cat conftest.$ac_ext >&5
1598 rm -rf conftest*
1599 eval "ac_cv_func_remove=no"
1601 rm -f conftest*
1604 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1607 else
1608 echo "$ac_t""no" 1>&6
1611 if test $ac_cv_func_remove = no; then
1612 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1613 echo "configure:1614: checking for remove in -lposix" >&5
1614 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1617 else
1618 ac_save_LIBS="$LIBS"
1619 LIBS="-lposix $LIBS"
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 /* Override any gcc2 internal prototype to avoid an error. */
1624 /* We use char because int might match the return type of a gcc2
1625 builtin and then its argument prototype would still apply. */
1626 char remove();
1628 int main() {
1629 remove()
1630 ; return 0; }
1632 if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1633 rm -rf conftest*
1634 eval "ac_cv_lib_$ac_lib_var=yes"
1635 else
1636 echo "configure: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1638 rm -rf conftest*
1639 eval "ac_cv_lib_$ac_lib_var=no"
1641 rm -f conftest*
1642 LIBS="$ac_save_LIBS"
1645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1646 echo "$ac_t""yes" 1>&6
1647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1648 else
1649 echo "$ac_t""no" 1>&6
1654 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1655 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1656 echo "configure:1657: checking for shmat" >&5
1657 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1659 else
1660 cat > conftest.$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1663 /* System header to define __stub macros and hopefully few prototypes,
1664 which can conflict with char shmat(); below. */
1665 #include <assert.h>
1666 /* Override any gcc2 internal prototype to avoid an error. */
1667 /* We use char because int might match the return type of a gcc2
1668 builtin and then its argument prototype would still apply. */
1669 char shmat();
1671 int main() {
1673 /* The GNU C library defines this for functions which it implements
1674 to always fail with ENOSYS. Some functions are actually named
1675 something starting with __ and the normal name is an alias. */
1676 #if defined (__stub_shmat) || defined (__stub___shmat)
1677 choke me
1678 #else
1679 shmat();
1680 #endif
1682 ; return 0; }
1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1685 rm -rf conftest*
1686 eval "ac_cv_func_shmat=yes"
1687 else
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1690 rm -rf conftest*
1691 eval "ac_cv_func_shmat=no"
1693 rm -f conftest*
1696 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1697 echo "$ac_t""yes" 1>&6
1699 else
1700 echo "$ac_t""no" 1>&6
1703 if test $ac_cv_func_shmat = no; then
1704 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1705 echo "configure:1706: checking for shmat in -lipc" >&5
1706 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710 ac_save_LIBS="$LIBS"
1711 LIBS="-lipc $LIBS"
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* Override any gcc2 internal prototype to avoid an error. */
1716 /* We use char because int might match the return type of a gcc2
1717 builtin and then its argument prototype would still apply. */
1718 char shmat();
1720 int main() {
1721 shmat()
1722 ; return 0; }
1724 if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1725 rm -rf conftest*
1726 eval "ac_cv_lib_$ac_lib_var=yes"
1727 else
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1730 rm -rf conftest*
1731 eval "ac_cv_lib_$ac_lib_var=no"
1733 rm -f conftest*
1734 LIBS="$ac_save_LIBS"
1737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1738 echo "$ac_t""yes" 1>&6
1739 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1740 else
1741 echo "$ac_t""no" 1>&6
1747 # Check for libraries that X11R6 Xt/Xaw programs need.
1748 ac_save_LDFLAGS="$LDFLAGS"
1749 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1750 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1751 # check for ICE first), but we must link in the order -lSM -lICE or
1752 # we get undefined symbols. So assume we have SM if we have ICE.
1753 # These have to be linked with before -lX11, unlike the other
1754 # libraries we check for below, so use a different variable.
1755 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1756 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1757 echo "configure:1758: checking for IceConnectionNumber in -lICE" >&5
1758 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762 ac_save_LIBS="$LIBS"
1763 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1764 cat > conftest.$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767 /* Override any gcc2 internal prototype to avoid an error. */
1768 /* We use char because int might match the return type of a gcc2
1769 builtin and then its argument prototype would still apply. */
1770 char IceConnectionNumber();
1772 int main() {
1773 IceConnectionNumber()
1774 ; return 0; }
1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1777 rm -rf conftest*
1778 eval "ac_cv_lib_$ac_lib_var=yes"
1779 else
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1782 rm -rf conftest*
1783 eval "ac_cv_lib_$ac_lib_var=no"
1785 rm -f conftest*
1786 LIBS="$ac_save_LIBS"
1789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1790 echo "$ac_t""yes" 1>&6
1791 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1792 else
1793 echo "$ac_t""no" 1>&6
1796 LDFLAGS="$ac_save_LDFLAGS"
1800 for ac_prog in 'bison -y' byacc
1802 # Extract the first word of "$ac_prog", so it can be a program name with args.
1803 set dummy $ac_prog; ac_word=$2
1804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1805 echo "configure:1806: checking for $ac_word" >&5
1806 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1808 else
1809 if test -n "$YACC"; then
1810 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1811 else
1812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1813 ac_dummy="$PATH"
1814 for ac_dir in $ac_dummy; do
1815 test -z "$ac_dir" && ac_dir=.
1816 if test -f $ac_dir/$ac_word; then
1817 ac_cv_prog_YACC="$ac_prog"
1818 break
1820 done
1821 IFS="$ac_save_ifs"
1824 YACC="$ac_cv_prog_YACC"
1825 if test -n "$YACC"; then
1826 echo "$ac_t""$YACC" 1>&6
1827 else
1828 echo "$ac_t""no" 1>&6
1831 test -n "$YACC" && break
1832 done
1833 test -n "$YACC" || YACC="yacc"
1835 # Extract the first word of "flex", so it can be a program name with args.
1836 set dummy flex; ac_word=$2
1837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1838 echo "configure:1839: checking for $ac_word" >&5
1839 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841 else
1842 if test -n "$LEX"; then
1843 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1844 else
1845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1846 ac_dummy="$PATH"
1847 for ac_dir in $ac_dummy; do
1848 test -z "$ac_dir" && ac_dir=.
1849 if test -f $ac_dir/$ac_word; then
1850 ac_cv_prog_LEX="flex"
1851 break
1853 done
1854 IFS="$ac_save_ifs"
1855 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1858 LEX="$ac_cv_prog_LEX"
1859 if test -n "$LEX"; then
1860 echo "$ac_t""$LEX" 1>&6
1861 else
1862 echo "$ac_t""no" 1>&6
1865 if test -z "$LEXLIB"
1866 then
1867 case "$LEX" in
1868 flex*) ac_lib=fl ;;
1869 *) ac_lib=l ;;
1870 esac
1871 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1872 echo "configure:1873: checking for yywrap in -l$ac_lib" >&5
1873 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1876 else
1877 ac_save_LIBS="$LIBS"
1878 LIBS="-l$ac_lib $LIBS"
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 /* Override any gcc2 internal prototype to avoid an error. */
1883 /* We use char because int might match the return type of a gcc2
1884 builtin and then its argument prototype would still apply. */
1885 char yywrap();
1887 int main() {
1888 yywrap()
1889 ; return 0; }
1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1892 rm -rf conftest*
1893 eval "ac_cv_lib_$ac_lib_var=yes"
1894 else
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 rm -rf conftest*
1898 eval "ac_cv_lib_$ac_lib_var=no"
1900 rm -f conftest*
1901 LIBS="$ac_save_LIBS"
1904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1905 echo "$ac_t""yes" 1>&6
1906 LEXLIB="-l$ac_lib"
1907 else
1908 echo "$ac_t""no" 1>&6
1913 # Extract the first word of "ranlib", so it can be a program name with args.
1914 set dummy ranlib; ac_word=$2
1915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1916 echo "configure:1917: checking for $ac_word" >&5
1917 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1919 else
1920 if test -n "$RANLIB"; then
1921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1922 else
1923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1924 ac_dummy="$PATH"
1925 for ac_dir in $ac_dummy; do
1926 test -z "$ac_dir" && ac_dir=.
1927 if test -f $ac_dir/$ac_word; then
1928 ac_cv_prog_RANLIB="ranlib"
1929 break
1931 done
1932 IFS="$ac_save_ifs"
1933 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1936 RANLIB="$ac_cv_prog_RANLIB"
1937 if test -n "$RANLIB"; then
1938 echo "$ac_t""$RANLIB" 1>&6
1939 else
1940 echo "$ac_t""no" 1>&6
1943 # Find a good install program. We prefer a C program (faster),
1944 # so one script is as good as another. But avoid the broken or
1945 # incompatible versions:
1946 # SysV /etc/install, /usr/sbin/install
1947 # SunOS /usr/etc/install
1948 # IRIX /sbin/install
1949 # AIX /bin/install
1950 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1951 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1952 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1953 # ./install, which can be erroneously created by make from ./install.sh.
1954 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1955 echo "configure:1956: checking for a BSD compatible install" >&5
1956 if test -z "$INSTALL"; then
1957 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1958 echo $ac_n "(cached) $ac_c" 1>&6
1959 else
1960 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1961 for ac_dir in $PATH; do
1962 # Account for people who put trailing slashes in PATH elements.
1963 case "$ac_dir/" in
1964 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1966 # OSF1 and SCO ODT 3.0 have their own names for install.
1967 # Don't use installbsd from OSF since it installs stuff as root
1968 # by default.
1969 for ac_prog in ginstall scoinst install; do
1970 if test -f $ac_dir/$ac_prog; then
1971 if test $ac_prog = install &&
1972 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1973 # AIX install. It has an incompatible calling convention.
1975 else
1976 ac_cv_path_install="$ac_dir/$ac_prog -c"
1977 break 2
1980 done
1982 esac
1983 done
1984 IFS="$ac_save_IFS"
1987 if test "${ac_cv_path_install+set}" = set; then
1988 INSTALL="$ac_cv_path_install"
1989 else
1990 # As a last resort, use the slow shell script. We don't cache a
1991 # path for INSTALL within a source directory, because that will
1992 # break other packages using the cache if that directory is
1993 # removed, or if the path is relative.
1994 INSTALL="$ac_install_sh"
1997 echo "$ac_t""$INSTALL" 1>&6
1999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2000 # It thinks the first close brace ends the variable substitution.
2001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2005 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2007 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2008 echo "configure:2009: checking whether ln -s works" >&5
2009 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2011 else
2012 rm -f conftestdata
2013 if ln -s X conftestdata 2>/dev/null
2014 then
2015 rm -f conftestdata
2016 ac_cv_prog_LN_S="ln -s"
2017 else
2018 ac_cv_prog_LN_S=ln
2021 LN_S="$ac_cv_prog_LN_S"
2022 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2023 echo "$ac_t""yes" 1>&6
2024 else
2025 echo "$ac_t""no" 1>&6
2028 # Extract the first word of "c2man", so it can be a program name with args.
2029 set dummy c2man; ac_word=$2
2030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_word" >&5
2032 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2034 else
2035 if test -n "$C2MAN"; then
2036 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2037 else
2038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2039 ac_dummy="$PATH"
2040 for ac_dir in $ac_dummy; do
2041 test -z "$ac_dir" && ac_dir=.
2042 if test -f $ac_dir/$ac_word; then
2043 ac_cv_prog_C2MAN="c2man"
2044 break
2046 done
2047 IFS="$ac_save_ifs"
2048 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2051 C2MAN="$ac_cv_prog_C2MAN"
2052 if test -n "$C2MAN"; then
2053 echo "$ac_t""$C2MAN" 1>&6
2054 else
2055 echo "$ac_t""no" 1>&6
2058 # Extract the first word of "ldconfig", so it can be a program name with args.
2059 set dummy ldconfig; ac_word=$2
2060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_word" >&5
2062 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2064 else
2065 case "$LDCONFIG" in
2067 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2069 ?:/*)
2070 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2074 ac_dummy="/sbin:/usr/sbin:$PATH"
2075 for ac_dir in $ac_dummy; do
2076 test -z "$ac_dir" && ac_dir=.
2077 if test -f $ac_dir/$ac_word; then
2078 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2079 break
2081 done
2082 IFS="$ac_save_ifs"
2083 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2085 esac
2087 LDCONFIG="$ac_cv_path_LDCONFIG"
2088 if test -n "$LDCONFIG"; then
2089 echo "$ac_t""$LDCONFIG" 1>&6
2090 else
2091 echo "$ac_t""no" 1>&6
2095 for ac_prog in lclint lint
2097 # Extract the first word of "$ac_prog", so it can be a program name with args.
2098 set dummy $ac_prog; ac_word=$2
2099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100 echo "configure:2101: checking for $ac_word" >&5
2101 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104 if test -n "$LINT"; then
2105 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2106 else
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2108 ac_dummy="$PATH"
2109 for ac_dir in $ac_dummy; do
2110 test -z "$ac_dir" && ac_dir=.
2111 if test -f $ac_dir/$ac_word; then
2112 ac_cv_prog_LINT="$ac_prog"
2113 break
2115 done
2116 IFS="$ac_save_ifs"
2119 LINT="$ac_cv_prog_LINT"
2120 if test -n "$LINT"; then
2121 echo "$ac_t""$LINT" 1>&6
2122 else
2123 echo "$ac_t""no" 1>&6
2126 test -n "$LINT" && break
2127 done
2129 if test "$LINT" = "lint"
2130 then
2131 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2137 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2138 echo "configure:2139: checking for sqrt in -lm" >&5
2139 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2142 else
2143 ac_save_LIBS="$LIBS"
2144 LIBS="-lm $LIBS"
2145 cat > conftest.$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 /* Override any gcc2 internal prototype to avoid an error. */
2149 /* We use char because int might match the return type of a gcc2
2150 builtin and then its argument prototype would still apply. */
2151 char sqrt();
2153 int main() {
2154 sqrt()
2155 ; return 0; }
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2158 rm -rf conftest*
2159 eval "ac_cv_lib_$ac_lib_var=yes"
2160 else
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 rm -rf conftest*
2164 eval "ac_cv_lib_$ac_lib_var=no"
2166 rm -f conftest*
2167 LIBS="$ac_save_LIBS"
2170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2174 cat >> confdefs.h <<EOF
2175 #define $ac_tr_lib 1
2178 LIBS="-lm $LIBS"
2180 else
2181 echo "$ac_t""no" 1>&6
2184 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2185 echo "configure:2186: checking for i386_set_ldt in -li386" >&5
2186 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2189 else
2190 ac_save_LIBS="$LIBS"
2191 LIBS="-li386 $LIBS"
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 /* Override any gcc2 internal prototype to avoid an error. */
2196 /* We use char because int might match the return type of a gcc2
2197 builtin and then its argument prototype would still apply. */
2198 char i386_set_ldt();
2200 int main() {
2201 i386_set_ldt()
2202 ; return 0; }
2204 if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2205 rm -rf conftest*
2206 eval "ac_cv_lib_$ac_lib_var=yes"
2207 else
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2210 rm -rf conftest*
2211 eval "ac_cv_lib_$ac_lib_var=no"
2213 rm -f conftest*
2214 LIBS="$ac_save_LIBS"
2217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2218 echo "$ac_t""yes" 1>&6
2219 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2221 cat >> confdefs.h <<EOF
2222 #define $ac_tr_lib 1
2225 LIBS="-li386 $LIBS"
2227 else
2228 echo "$ac_t""no" 1>&6
2231 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2232 echo "configure:2233: checking for _oss_ioctl in -lossaudio" >&5
2233 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 ac_save_LIBS="$LIBS"
2238 LIBS="-lossaudio $LIBS"
2239 cat > conftest.$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2245 char _oss_ioctl();
2247 int main() {
2248 _oss_ioctl()
2249 ; return 0; }
2251 if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2252 rm -rf conftest*
2253 eval "ac_cv_lib_$ac_lib_var=yes"
2254 else
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 rm -rf conftest*
2258 eval "ac_cv_lib_$ac_lib_var=no"
2260 rm -f conftest*
2261 LIBS="$ac_save_LIBS"
2264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2268 cat >> confdefs.h <<EOF
2269 #define $ac_tr_lib 1
2272 LIBS="-lossaudio $LIBS"
2274 else
2275 echo "$ac_t""no" 1>&6
2278 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2279 echo "configure:2280: checking for iswalnum in -lw" >&5
2280 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 ac_save_LIBS="$LIBS"
2285 LIBS="-lw $LIBS"
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 /* Override any gcc2 internal prototype to avoid an error. */
2290 /* We use char because int might match the return type of a gcc2
2291 builtin and then its argument prototype would still apply. */
2292 char iswalnum();
2294 int main() {
2295 iswalnum()
2296 ; return 0; }
2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299 rm -rf conftest*
2300 eval "ac_cv_lib_$ac_lib_var=yes"
2301 else
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2304 rm -rf conftest*
2305 eval "ac_cv_lib_$ac_lib_var=no"
2307 rm -f conftest*
2308 LIBS="$ac_save_LIBS"
2311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2312 echo "$ac_t""yes" 1>&6
2313 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2315 cat >> confdefs.h <<EOF
2316 #define $ac_tr_lib 1
2319 LIBS="-lw $LIBS"
2321 else
2322 echo "$ac_t""no" 1>&6
2325 for ac_func in gethostbyname
2327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2328 echo "configure:2329: checking for $ac_func" >&5
2329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2331 else
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 /* System header to define __stub macros and hopefully few prototypes,
2336 which can conflict with char $ac_func(); below. */
2337 #include <assert.h>
2338 /* Override any gcc2 internal prototype to avoid an error. */
2339 /* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2341 char $ac_func();
2343 int main() {
2345 /* The GNU C library defines this for functions which it implements
2346 to always fail with ENOSYS. Some functions are actually named
2347 something starting with __ and the normal name is an alias. */
2348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2349 choke me
2350 #else
2351 $ac_func();
2352 #endif
2354 ; return 0; }
2356 if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2357 rm -rf conftest*
2358 eval "ac_cv_func_$ac_func=yes"
2359 else
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2362 rm -rf conftest*
2363 eval "ac_cv_func_$ac_func=no"
2365 rm -f conftest*
2368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2371 cat >> confdefs.h <<EOF
2372 #define $ac_tr_func 1
2375 else
2376 echo "$ac_t""no" 1>&6
2377 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2378 echo "configure:2379: checking for gethostbyname in -lnsl" >&5
2379 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383 ac_save_LIBS="$LIBS"
2384 LIBS="-lnsl -lsocket $LIBS"
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2391 char gethostbyname();
2393 int main() {
2394 gethostbyname()
2395 ; return 0; }
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2398 rm -rf conftest*
2399 eval "ac_cv_lib_$ac_lib_var=yes"
2400 else
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 rm -rf conftest*
2404 eval "ac_cv_lib_$ac_lib_var=no"
2406 rm -f conftest*
2407 LIBS="$ac_save_LIBS"
2410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2413 else
2414 echo "$ac_t""no" 1>&6
2415 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2416 echo "configure:2417: checking for gethostbyname in -lsocket" >&5
2417 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2420 else
2421 ac_save_LIBS="$LIBS"
2422 LIBS="-lsocket -lnsl $LIBS"
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 /* Override any gcc2 internal prototype to avoid an error. */
2427 /* We use char because int might match the return type of a gcc2
2428 builtin and then its argument prototype would still apply. */
2429 char gethostbyname();
2431 int main() {
2432 gethostbyname()
2433 ; return 0; }
2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2436 rm -rf conftest*
2437 eval "ac_cv_lib_$ac_lib_var=yes"
2438 else
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2441 rm -rf conftest*
2442 eval "ac_cv_lib_$ac_lib_var=no"
2444 rm -f conftest*
2445 LIBS="$ac_save_LIBS"
2448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2451 else
2452 echo "$ac_t""no" 1>&6
2458 done
2460 for ac_func in connect
2462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_func" >&5
2464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2466 else
2467 cat > conftest.$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2470 /* System header to define __stub macros and hopefully few prototypes,
2471 which can conflict with char $ac_func(); below. */
2472 #include <assert.h>
2473 /* Override any gcc2 internal prototype to avoid an error. */
2474 /* We use char because int might match the return type of a gcc2
2475 builtin and then its argument prototype would still apply. */
2476 char $ac_func();
2478 int main() {
2480 /* The GNU C library defines this for functions which it implements
2481 to always fail with ENOSYS. Some functions are actually named
2482 something starting with __ and the normal name is an alias. */
2483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2484 choke me
2485 #else
2486 $ac_func();
2487 #endif
2489 ; return 0; }
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2492 rm -rf conftest*
2493 eval "ac_cv_func_$ac_func=yes"
2494 else
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 rm -rf conftest*
2498 eval "ac_cv_func_$ac_func=no"
2500 rm -f conftest*
2503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2506 cat >> confdefs.h <<EOF
2507 #define $ac_tr_func 1
2510 else
2511 echo "$ac_t""no" 1>&6
2512 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2513 echo "configure:2514: checking for connect in -lsocket" >&5
2514 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2517 else
2518 ac_save_LIBS="$LIBS"
2519 LIBS="-lsocket $LIBS"
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 /* Override any gcc2 internal prototype to avoid an error. */
2524 /* We use char because int might match the return type of a gcc2
2525 builtin and then its argument prototype would still apply. */
2526 char connect();
2528 int main() {
2529 connect()
2530 ; return 0; }
2532 if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2533 rm -rf conftest*
2534 eval "ac_cv_lib_$ac_lib_var=yes"
2535 else
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2538 rm -rf conftest*
2539 eval "ac_cv_lib_$ac_lib_var=no"
2541 rm -f conftest*
2542 LIBS="$ac_save_LIBS"
2545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2546 echo "$ac_t""yes" 1>&6
2547 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2549 cat >> confdefs.h <<EOF
2550 #define $ac_tr_lib 1
2553 LIBS="-lsocket $LIBS"
2555 else
2556 echo "$ac_t""no" 1>&6
2560 done
2562 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2563 echo "configure:2564: checking for setrunelocale in -lxpg4" >&5
2564 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2567 else
2568 ac_save_LIBS="$LIBS"
2569 LIBS="-lxpg4 $LIBS"
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 /* Override any gcc2 internal prototype to avoid an error. */
2574 /* We use char because int might match the return type of a gcc2
2575 builtin and then its argument prototype would still apply. */
2576 char setrunelocale();
2578 int main() {
2579 setrunelocale()
2580 ; return 0; }
2582 if { (eval echo configure:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2583 rm -rf conftest*
2584 eval "ac_cv_lib_$ac_lib_var=yes"
2585 else
2586 echo "configure: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2588 rm -rf conftest*
2589 eval "ac_cv_lib_$ac_lib_var=no"
2591 rm -f conftest*
2592 LIBS="$ac_save_LIBS"
2595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2596 echo "$ac_t""yes" 1>&6
2597 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2598 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2599 cat >> confdefs.h <<EOF
2600 #define $ac_tr_lib 1
2603 LIBS="-lxpg4 $LIBS"
2605 else
2606 echo "$ac_t""no" 1>&6
2609 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2610 echo "configure:2611: checking for mmap in -lmmap" >&5
2611 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2614 else
2615 ac_save_LIBS="$LIBS"
2616 LIBS="-lmmap $LIBS"
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 /* Override any gcc2 internal prototype to avoid an error. */
2621 /* We use char because int might match the return type of a gcc2
2622 builtin and then its argument prototype would still apply. */
2623 char mmap();
2625 int main() {
2626 mmap()
2627 ; return 0; }
2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2630 rm -rf conftest*
2631 eval "ac_cv_lib_$ac_lib_var=yes"
2632 else
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 rm -rf conftest*
2636 eval "ac_cv_lib_$ac_lib_var=no"
2638 rm -f conftest*
2639 LIBS="$ac_save_LIBS"
2642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2643 echo "$ac_t""yes" 1>&6
2644 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2645 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2646 cat >> confdefs.h <<EOF
2647 #define $ac_tr_lib 1
2650 LIBS="-lmmap $LIBS"
2652 else
2653 echo "$ac_t""no" 1>&6
2656 for ac_func in openpty
2658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_func" >&5
2660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2662 else
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 /* System header to define __stub macros and hopefully few prototypes,
2667 which can conflict with char $ac_func(); below. */
2668 #include <assert.h>
2669 /* Override any gcc2 internal prototype to avoid an error. */
2670 /* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2672 char $ac_func();
2674 int main() {
2676 /* The GNU C library defines this for functions which it implements
2677 to always fail with ENOSYS. Some functions are actually named
2678 something starting with __ and the normal name is an alias. */
2679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2680 choke me
2681 #else
2682 $ac_func();
2683 #endif
2685 ; return 0; }
2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2688 rm -rf conftest*
2689 eval "ac_cv_func_$ac_func=yes"
2690 else
2691 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2693 rm -rf conftest*
2694 eval "ac_cv_func_$ac_func=no"
2696 rm -f conftest*
2699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2700 echo "$ac_t""yes" 1>&6
2701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2702 cat >> confdefs.h <<EOF
2703 #define $ac_tr_func 1
2706 else
2707 echo "$ac_t""no" 1>&6
2708 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2709 echo "configure:2710: checking for openpty in -lutil" >&5
2710 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2713 else
2714 ac_save_LIBS="$LIBS"
2715 LIBS="-lutil $LIBS"
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 /* Override any gcc2 internal prototype to avoid an error. */
2720 /* We use char because int might match the return type of a gcc2
2721 builtin and then its argument prototype would still apply. */
2722 char openpty();
2724 int main() {
2725 openpty()
2726 ; return 0; }
2728 if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2729 rm -rf conftest*
2730 eval "ac_cv_lib_$ac_lib_var=yes"
2731 else
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2734 rm -rf conftest*
2735 eval "ac_cv_lib_$ac_lib_var=no"
2737 rm -f conftest*
2738 LIBS="$ac_save_LIBS"
2741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2742 echo "$ac_t""yes" 1>&6
2743 cat >> confdefs.h <<\EOF
2744 #define HAVE_OPENPTY 1
2747 LIBS="$LIBS -lutil"
2749 else
2750 echo "$ac_t""no" 1>&6
2754 done
2757 for ac_hdr in dlfcn.h
2759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_hdr" >&5
2762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2764 else
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 #include <$ac_hdr>
2770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2771 { (eval echo configure:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2773 if test -z "$ac_err"; then
2774 rm -rf conftest*
2775 eval "ac_cv_header_$ac_safe=yes"
2776 else
2777 echo "$ac_err" >&5
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2780 rm -rf conftest*
2781 eval "ac_cv_header_$ac_safe=no"
2783 rm -f conftest*
2785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2786 echo "$ac_t""yes" 1>&6
2787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2788 cat >> confdefs.h <<EOF
2789 #define $ac_tr_hdr 1
2791 for ac_func in dlopen
2793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2794 echo "configure:2795: checking for $ac_func" >&5
2795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2797 else
2798 cat > conftest.$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2801 /* System header to define __stub macros and hopefully few prototypes,
2802 which can conflict with char $ac_func(); below. */
2803 #include <assert.h>
2804 /* Override any gcc2 internal prototype to avoid an error. */
2805 /* We use char because int might match the return type of a gcc2
2806 builtin and then its argument prototype would still apply. */
2807 char $ac_func();
2809 int main() {
2811 /* The GNU C library defines this for functions which it implements
2812 to always fail with ENOSYS. Some functions are actually named
2813 something starting with __ and the normal name is an alias. */
2814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2815 choke me
2816 #else
2817 $ac_func();
2818 #endif
2820 ; return 0; }
2822 if { (eval echo configure:2823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2823 rm -rf conftest*
2824 eval "ac_cv_func_$ac_func=yes"
2825 else
2826 echo "configure: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2828 rm -rf conftest*
2829 eval "ac_cv_func_$ac_func=no"
2831 rm -f conftest*
2834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2835 echo "$ac_t""yes" 1>&6
2836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2837 cat >> confdefs.h <<EOF
2838 #define $ac_tr_func 1
2840 cat >> confdefs.h <<\EOF
2841 #define HAVE_DL_API 1
2844 else
2845 echo "$ac_t""no" 1>&6
2846 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2847 echo "configure:2848: checking for dlopen in -ldl" >&5
2848 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2851 else
2852 ac_save_LIBS="$LIBS"
2853 LIBS="-ldl $LIBS"
2854 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857 /* Override any gcc2 internal prototype to avoid an error. */
2858 /* We use char because int might match the return type of a gcc2
2859 builtin and then its argument prototype would still apply. */
2860 char dlopen();
2862 int main() {
2863 dlopen()
2864 ; return 0; }
2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2867 rm -rf conftest*
2868 eval "ac_cv_lib_$ac_lib_var=yes"
2869 else
2870 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 rm -rf conftest*
2873 eval "ac_cv_lib_$ac_lib_var=no"
2875 rm -f conftest*
2876 LIBS="$ac_save_LIBS"
2879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 cat >> confdefs.h <<\EOF
2882 #define HAVE_DL_API 1
2885 LIBS="$LIBS -ldl"
2886 else
2887 echo "$ac_t""no" 1>&6
2888 LIBEXT="a"
2894 done
2896 else
2897 echo "$ac_t""no" 1>&6
2898 LIBEXT="a"
2901 done
2905 X_DLLS=""
2907 XFILES=""
2909 DGA_SRCS=""
2911 MESA_SRCS=""
2912 if test "$have_x" = "yes"
2913 then
2914 XLIB="-lXext -lX11"
2915 ac_save_CPPFLAGS="$CPPFLAGS"
2916 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2918 for ac_hdr in X11/xpm.h
2920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2922 echo "configure:2923: checking for $ac_hdr" >&5
2923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2925 else
2926 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2929 #include <$ac_hdr>
2931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2932 { (eval echo configure:2933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2934 if test -z "$ac_err"; then
2935 rm -rf conftest*
2936 eval "ac_cv_header_$ac_safe=yes"
2937 else
2938 echo "$ac_err" >&5
2939 echo "configure: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2941 rm -rf conftest*
2942 eval "ac_cv_header_$ac_safe=no"
2944 rm -f conftest*
2946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2949 cat >> confdefs.h <<EOF
2950 #define $ac_tr_hdr 1
2953 else
2954 echo "$ac_t""no" 1>&6
2956 done
2958 if test "$ac_cv_header_X11_xpm_h" = "yes"
2959 then
2960 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2961 echo "configure:2962: checking for XpmCreatePixmapFromData in -lXpm" >&5
2962 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2965 else
2966 ac_save_LIBS="$LIBS"
2967 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971 /* Override any gcc2 internal prototype to avoid an error. */
2972 /* We use char because int might match the return type of a gcc2
2973 builtin and then its argument prototype would still apply. */
2974 char XpmCreatePixmapFromData();
2976 int main() {
2977 XpmCreatePixmapFromData()
2978 ; return 0; }
2980 if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2981 rm -rf conftest*
2982 eval "ac_cv_lib_$ac_lib_var=yes"
2983 else
2984 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2986 rm -rf conftest*
2987 eval "ac_cv_lib_$ac_lib_var=no"
2989 rm -f conftest*
2990 LIBS="$ac_save_LIBS"
2993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2994 echo "$ac_t""yes" 1>&6
2995 cat >> confdefs.h <<\EOF
2996 #define HAVE_LIBXXPM 1
2998 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2999 else
3000 echo "$ac_t""no" 1>&6
3003 else
3004 echo "When compiling with X support, you need the Xpm library, or"
3005 echo "WINE will not work. This Xpm library is within the following RPM,"
3006 echo "which you need to install:"
3007 echo "Redhat : xpm, xpm-devel"
3008 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
3009 echo "SuSE : xpm"
3010 echo "Debian/Corel Linux: xpm4g, xpm4g-dev"
3011 echo
3012 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3013 echo "the directory /contrib/libraries."
3014 echo
3015 exit 1
3019 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
3021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_hdr" >&5
3024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3026 else
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 #include <$ac_hdr>
3032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3033 { (eval echo configure:3034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3035 if test -z "$ac_err"; then
3036 rm -rf conftest*
3037 eval "ac_cv_header_$ac_safe=yes"
3038 else
3039 echo "$ac_err" >&5
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3042 rm -rf conftest*
3043 eval "ac_cv_header_$ac_safe=no"
3045 rm -f conftest*
3047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3048 echo "$ac_t""yes" 1>&6
3049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3050 cat >> confdefs.h <<EOF
3051 #define $ac_tr_hdr 1
3054 else
3055 echo "$ac_t""no" 1>&6
3057 done
3059 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3060 then
3061 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3062 echo "configure:3063: checking for XShmQueryExtension in -lXext" >&5
3063 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066 else
3067 ac_save_LIBS="$LIBS"
3068 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 /* Override any gcc2 internal prototype to avoid an error. */
3073 /* We use char because int might match the return type of a gcc2
3074 builtin and then its argument prototype would still apply. */
3075 char XShmQueryExtension();
3077 int main() {
3078 XShmQueryExtension()
3079 ; return 0; }
3081 if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3082 rm -rf conftest*
3083 eval "ac_cv_lib_$ac_lib_var=yes"
3084 else
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 rm -rf conftest*
3088 eval "ac_cv_lib_$ac_lib_var=no"
3090 rm -f conftest*
3091 LIBS="$ac_save_LIBS"
3094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3095 echo "$ac_t""yes" 1>&6
3096 cat >> confdefs.h <<\EOF
3097 #define HAVE_LIBXXSHM 1
3100 else
3101 echo "$ac_t""no" 1>&6
3105 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
3107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_hdr" >&5
3110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3112 else
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 #include <$ac_hdr>
3118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3119 { (eval echo configure:3120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3121 if test -z "$ac_err"; then
3122 rm -rf conftest*
3123 eval "ac_cv_header_$ac_safe=yes"
3124 else
3125 echo "$ac_err" >&5
3126 echo "configure: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3128 rm -rf conftest*
3129 eval "ac_cv_header_$ac_safe=no"
3131 rm -f conftest*
3133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3134 echo "$ac_t""yes" 1>&6
3135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3136 cat >> confdefs.h <<EOF
3137 #define $ac_tr_hdr 1
3140 else
3141 echo "$ac_t""no" 1>&6
3143 done
3145 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3146 then
3147 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3148 echo "configure:3149: checking for XDGAQueryExtension in -lXxf86dga" >&5
3149 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3152 else
3153 ac_save_LIBS="$LIBS"
3154 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3155 $LIBS"
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 /* Override any gcc2 internal prototype to avoid an error. */
3160 /* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
3162 char XDGAQueryExtension();
3164 int main() {
3165 XDGAQueryExtension()
3166 ; return 0; }
3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3169 rm -rf conftest*
3170 eval "ac_cv_lib_$ac_lib_var=yes"
3171 else
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3174 rm -rf conftest*
3175 eval "ac_cv_lib_$ac_lib_var=no"
3177 rm -f conftest*
3178 LIBS="$ac_save_LIBS"
3181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3183 cat >> confdefs.h <<\EOF
3184 #define HAVE_LIBXXF86DGA2 1
3187 cat >> confdefs.h <<\EOF
3188 #define HAVE_LIBXXF86DGA 1
3191 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3192 DGA_SRCS='$(DGA_SRCS)'
3194 else
3195 echo "$ac_t""no" 1>&6
3198 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3199 then
3200 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3201 echo "configure:3202: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3202 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3205 else
3206 ac_save_LIBS="$LIBS"
3207 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 /* Override any gcc2 internal prototype to avoid an error. */
3212 /* We use char because int might match the return type of a gcc2
3213 builtin and then its argument prototype would still apply. */
3214 char XF86DGAQueryExtension();
3216 int main() {
3217 XF86DGAQueryExtension()
3218 ; return 0; }
3220 if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3221 rm -rf conftest*
3222 eval "ac_cv_lib_$ac_lib_var=yes"
3223 else
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3226 rm -rf conftest*
3227 eval "ac_cv_lib_$ac_lib_var=no"
3229 rm -f conftest*
3230 LIBS="$ac_save_LIBS"
3233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3235 cat >> confdefs.h <<\EOF
3236 #define HAVE_LIBXXF86DGA 1
3239 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3240 DGA_SRCS='$(DGA_SRCS)'
3242 else
3243 echo "$ac_t""no" 1>&6
3249 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
3251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3253 echo "configure:3254: checking for $ac_hdr" >&5
3254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3256 else
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3260 #include <$ac_hdr>
3262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3263 { (eval echo configure:3264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3265 if test -z "$ac_err"; then
3266 rm -rf conftest*
3267 eval "ac_cv_header_$ac_safe=yes"
3268 else
3269 echo "$ac_err" >&5
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3272 rm -rf conftest*
3273 eval "ac_cv_header_$ac_safe=no"
3275 rm -f conftest*
3277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3278 echo "$ac_t""yes" 1>&6
3279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3280 cat >> confdefs.h <<EOF
3281 #define $ac_tr_hdr 1
3284 else
3285 echo "$ac_t""no" 1>&6
3287 done
3289 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3290 then
3291 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3292 echo "configure:3293: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3293 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3296 else
3297 ac_save_LIBS="$LIBS"
3298 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 /* Override any gcc2 internal prototype to avoid an error. */
3303 /* We use char because int might match the return type of a gcc2
3304 builtin and then its argument prototype would still apply. */
3305 char XF86VidModeQueryExtension();
3307 int main() {
3308 XF86VidModeQueryExtension()
3309 ; return 0; }
3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 rm -rf conftest*
3313 eval "ac_cv_lib_$ac_lib_var=yes"
3314 else
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3317 rm -rf conftest*
3318 eval "ac_cv_lib_$ac_lib_var=no"
3320 rm -f conftest*
3321 LIBS="$ac_save_LIBS"
3324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3326 cat >> confdefs.h <<\EOF
3327 #define HAVE_LIBXXF86VM 1
3329 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3330 else
3331 echo "$ac_t""no" 1>&6
3336 for ac_hdr in GL/gl.h GL/glx.h GL/osmesa.h
3338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3340 echo "configure:3341: checking for $ac_hdr" >&5
3341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3343 else
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <$ac_hdr>
3349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3350 { (eval echo configure:3351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3352 if test -z "$ac_err"; then
3353 rm -rf conftest*
3354 eval "ac_cv_header_$ac_safe=yes"
3355 else
3356 echo "$ac_err" >&5
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 rm -rf conftest*
3360 eval "ac_cv_header_$ac_safe=no"
3362 rm -f conftest*
3364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3365 echo "$ac_t""yes" 1>&6
3366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3367 cat >> confdefs.h <<EOF
3368 #define $ac_tr_hdr 1
3371 else
3372 echo "$ac_t""no" 1>&6
3374 done
3376 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3377 then
3378 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
3379 echo "configure:3380: checking "for up-to-date Mesa version"" >&5
3380 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3382 else
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 #include <GL/gl.h>
3387 int main() {
3388 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3389 ; return 0; }
3391 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392 rm -rf conftest*
3393 wine_cv_mesa_version_OK="yes"
3394 else
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3397 rm -rf conftest*
3398 wine_cv_mesa_version_OK="no"
3401 rm -f conftest*
3405 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3407 echo $ac_n "checking "for thread-safe Mesa version"""... $ac_c" 1>&6
3408 echo "configure:3409: checking "for thread-safe Mesa version"" >&5
3409 if eval "test \"`echo '$''{'wine_cv_mesa_version_threadsafe'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3411 else
3412 saved_libs=$LIBS
3413 LIBS="$X_LIBS -lGL"
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3418 int main() {
3419 pthread_getspecific();
3420 ; return 0; }
3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3423 rm -rf conftest*
3424 wine_cv_mesa_version_threadsafe="yes"
3425 else
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3428 rm -rf conftest*
3429 wine_cv_mesa_version_threadsafe="no"
3431 rm -f conftest*
3432 LIBS=$saved_libs
3436 echo "$ac_t""$wine_cv_mesa_version_threadsafe" 1>&6
3438 if test "$wine_cv_mesa_version_OK" = "yes" -a "$wine_cv_mesa_version_threadsafe" = "no"
3439 then
3440 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3441 echo "configure:3442: checking for glXCreateContext in -lGL" >&5
3442 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3445 else
3446 ac_save_LIBS="$LIBS"
3447 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3454 char glXCreateContext();
3456 int main() {
3457 glXCreateContext()
3458 ; return 0; }
3460 if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3461 rm -rf conftest*
3462 eval "ac_cv_lib_$ac_lib_var=yes"
3463 else
3464 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3466 rm -rf conftest*
3467 eval "ac_cv_lib_$ac_lib_var=no"
3469 rm -f conftest*
3470 LIBS="$ac_save_LIBS"
3473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3475 cat >> confdefs.h <<\EOF
3476 #define HAVE_LIBMESAGL 1
3479 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3480 MESA_SRCS='$(MESA_SRCS)'
3482 else
3483 echo "$ac_t""no" 1>&6
3486 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3487 then
3488 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3489 echo "configure:3490: checking for glXCreateContext in -lMesaGL" >&5
3490 ac_lib_var=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3493 else
3494 ac_save_LIBS="$LIBS"
3495 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 /* Override any gcc2 internal prototype to avoid an error. */
3500 /* We use char because int might match the return type of a gcc2
3501 builtin and then its argument prototype would still apply. */
3502 char glXCreateContext();
3504 int main() {
3505 glXCreateContext()
3506 ; return 0; }
3508 if { (eval echo configure:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3509 rm -rf conftest*
3510 eval "ac_cv_lib_$ac_lib_var=yes"
3511 else
3512 echo "configure: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 rm -rf conftest*
3515 eval "ac_cv_lib_$ac_lib_var=no"
3517 rm -f conftest*
3518 LIBS="$ac_save_LIBS"
3521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3522 echo "$ac_t""yes" 1>&6
3523 cat >> confdefs.h <<\EOF
3524 #define HAVE_LIBMESAGL 1
3527 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3528 MESA_SRCS='$(MESA_SRCS)'
3530 else
3531 echo "$ac_t""no" 1>&6
3536 echo $ac_n "checking "for the OpenGL Color Index extension"""... $ac_c" 1>&6
3537 echo "configure:3538: checking "for the OpenGL Color Index extension"" >&5
3538 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3540 else
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include <GL/gl.h>
3545 int main() {
3546 GLenum test = GL_COLOR_INDEX8_EXT;
3547 ; return 0; }
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 rm -rf conftest*
3551 cat >> confdefs.h <<\EOF
3552 #define HAVE_GL_COLOR_TABLE 1
3555 else
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3559 rm -f conftest*
3563 echo "$ac_t""$dummy" 1>&6
3564 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3565 then
3566 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3567 echo "configure:3568: checking for glColorTableEXT in -lMesaGL" >&5
3568 ac_lib_var=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3571 else
3572 ac_save_LIBS="$LIBS"
3573 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 /* We use char because int might match the return type of a gcc2
3579 builtin and then its argument prototype would still apply. */
3580 char glColorTableEXT();
3582 int main() {
3583 glColorTableEXT()
3584 ; return 0; }
3586 if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3587 rm -rf conftest*
3588 eval "ac_cv_lib_$ac_lib_var=yes"
3589 else
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3592 rm -rf conftest*
3593 eval "ac_cv_lib_$ac_lib_var=no"
3595 rm -f conftest*
3596 LIBS="$ac_save_LIBS"
3599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3601 cat >> confdefs.h <<\EOF
3602 #define HAVE_GL_PALETTED_TEXTURE 1
3605 else
3606 echo "$ac_t""no" 1>&6
3609 else
3610 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3611 echo "configure:3612: checking for glColorTableEXT in -lGL" >&5
3612 ac_lib_var=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3615 else
3616 ac_save_LIBS="$LIBS"
3617 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3624 char glColorTableEXT();
3626 int main() {
3627 glColorTableEXT()
3628 ; return 0; }
3630 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 rm -rf conftest*
3632 eval "ac_cv_lib_$ac_lib_var=yes"
3633 else
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 rm -rf conftest*
3637 eval "ac_cv_lib_$ac_lib_var=no"
3639 rm -f conftest*
3640 LIBS="$ac_save_LIBS"
3643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3644 echo "$ac_t""yes" 1>&6
3645 cat >> confdefs.h <<\EOF
3646 #define HAVE_GL_PALETTED_TEXTURE 1
3649 else
3650 echo "$ac_t""no" 1>&6
3657 CPPFLAGS="$ac_save_CPPFLAGS"
3658 X_DLLS='$(X_DLLS)'
3659 XFILES='$(XFILES)'
3660 else
3661 XLIB=""
3662 X_CFLAGS=""
3663 X_LIBS=""
3666 if test "$CURSES" = "yes"
3667 then
3668 for ac_hdr in ncurses.h
3670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3672 echo "configure:3673: checking for $ac_hdr" >&5
3673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3675 else
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 #include <$ac_hdr>
3681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3682 { (eval echo configure:3683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3684 if test -z "$ac_err"; then
3685 rm -rf conftest*
3686 eval "ac_cv_header_$ac_safe=yes"
3687 else
3688 echo "$ac_err" >&5
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3691 rm -rf conftest*
3692 eval "ac_cv_header_$ac_safe=no"
3694 rm -f conftest*
3696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3697 echo "$ac_t""yes" 1>&6
3698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3699 cat >> confdefs.h <<EOF
3700 #define $ac_tr_hdr 1
3703 else
3704 echo "$ac_t""no" 1>&6
3706 done
3708 if test "$ac_cv_header_ncurses_h" = "yes"
3709 then
3710 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3711 echo "configure:3712: checking for waddch in -lncurses" >&5
3712 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3715 else
3716 ac_save_LIBS="$LIBS"
3717 LIBS="-lncurses $LIBS"
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 /* Override any gcc2 internal prototype to avoid an error. */
3722 /* We use char because int might match the return type of a gcc2
3723 builtin and then its argument prototype would still apply. */
3724 char waddch();
3726 int main() {
3727 waddch()
3728 ; return 0; }
3730 if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3731 rm -rf conftest*
3732 eval "ac_cv_lib_$ac_lib_var=yes"
3733 else
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3736 rm -rf conftest*
3737 eval "ac_cv_lib_$ac_lib_var=no"
3739 rm -f conftest*
3740 LIBS="$ac_save_LIBS"
3743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3746 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3747 cat >> confdefs.h <<EOF
3748 #define $ac_tr_lib 1
3751 LIBS="-lncurses $LIBS"
3753 else
3754 echo "$ac_t""no" 1>&6
3758 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3759 then
3760 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3761 echo "configure:3762: checking for resizeterm in -lncurses" >&5
3762 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3765 else
3766 ac_save_LIBS="$LIBS"
3767 LIBS="-lncurses $LIBS"
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3771 /* Override any gcc2 internal prototype to avoid an error. */
3772 /* We use char because int might match the return type of a gcc2
3773 builtin and then its argument prototype would still apply. */
3774 char resizeterm();
3776 int main() {
3777 resizeterm()
3778 ; return 0; }
3780 if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781 rm -rf conftest*
3782 eval "ac_cv_lib_$ac_lib_var=yes"
3783 else
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3786 rm -rf conftest*
3787 eval "ac_cv_lib_$ac_lib_var=no"
3789 rm -f conftest*
3790 LIBS="$ac_save_LIBS"
3793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3795 cat >> confdefs.h <<\EOF
3796 #define HAVE_RESIZETERM 1
3799 else
3800 echo "$ac_t""no" 1>&6
3803 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3804 echo "configure:3805: checking for getbkgd in -lncurses" >&5
3805 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3808 else
3809 ac_save_LIBS="$LIBS"
3810 LIBS="-lncurses $LIBS"
3811 cat > conftest.$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3814 /* Override any gcc2 internal prototype to avoid an error. */
3815 /* We use char because int might match the return type of a gcc2
3816 builtin and then its argument prototype would still apply. */
3817 char getbkgd();
3819 int main() {
3820 getbkgd()
3821 ; return 0; }
3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3824 rm -rf conftest*
3825 eval "ac_cv_lib_$ac_lib_var=yes"
3826 else
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3829 rm -rf conftest*
3830 eval "ac_cv_lib_$ac_lib_var=no"
3832 rm -f conftest*
3833 LIBS="$ac_save_LIBS"
3836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3838 cat >> confdefs.h <<\EOF
3839 #define HAVE_GETBKGD 1
3842 else
3843 echo "$ac_t""no" 1>&6
3846 else
3847 for ac_hdr in curses.h
3849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3851 echo "configure:3852: checking for $ac_hdr" >&5
3852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3854 else
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 #include <$ac_hdr>
3860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3861 { (eval echo configure:3862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3863 if test -z "$ac_err"; then
3864 rm -rf conftest*
3865 eval "ac_cv_header_$ac_safe=yes"
3866 else
3867 echo "$ac_err" >&5
3868 echo "configure: failed program was:" >&5
3869 cat conftest.$ac_ext >&5
3870 rm -rf conftest*
3871 eval "ac_cv_header_$ac_safe=no"
3873 rm -f conftest*
3875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3878 cat >> confdefs.h <<EOF
3879 #define $ac_tr_hdr 1
3882 else
3883 echo "$ac_t""no" 1>&6
3885 done
3887 if test "$ac_cv_header_curses_h" = "yes"
3888 then
3889 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3890 echo "configure:3891: checking for waddch in -lcurses" >&5
3891 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3894 else
3895 ac_save_LIBS="$LIBS"
3896 LIBS="-lcurses $LIBS"
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* Override any gcc2 internal prototype to avoid an error. */
3901 /* We use char because int might match the return type of a gcc2
3902 builtin and then its argument prototype would still apply. */
3903 char waddch();
3905 int main() {
3906 waddch()
3907 ; return 0; }
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3910 rm -rf conftest*
3911 eval "ac_cv_lib_$ac_lib_var=yes"
3912 else
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3915 rm -rf conftest*
3916 eval "ac_cv_lib_$ac_lib_var=no"
3918 rm -f conftest*
3919 LIBS="$ac_save_LIBS"
3922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3924 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3925 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3926 cat >> confdefs.h <<EOF
3927 #define $ac_tr_lib 1
3930 LIBS="-lcurses $LIBS"
3932 else
3933 echo "$ac_t""no" 1>&6
3936 if test "$ac_cv_lib_curses_waddch" = "yes"
3937 then
3938 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3939 echo "configure:3940: checking for resizeterm in -lcurses" >&5
3940 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3943 else
3944 ac_save_LIBS="$LIBS"
3945 LIBS="-lcurses $LIBS"
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3949 /* Override any gcc2 internal prototype to avoid an error. */
3950 /* We use char because int might match the return type of a gcc2
3951 builtin and then its argument prototype would still apply. */
3952 char resizeterm();
3954 int main() {
3955 resizeterm()
3956 ; return 0; }
3958 if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3959 rm -rf conftest*
3960 eval "ac_cv_lib_$ac_lib_var=yes"
3961 else
3962 echo "configure: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3964 rm -rf conftest*
3965 eval "ac_cv_lib_$ac_lib_var=no"
3967 rm -f conftest*
3968 LIBS="$ac_save_LIBS"
3971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3972 echo "$ac_t""yes" 1>&6
3973 cat >> confdefs.h <<\EOF
3974 #define HAVE_RESIZETERM 1
3977 else
3978 echo "$ac_t""no" 1>&6
3981 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3982 echo "configure:3983: checking for getbkgd in -lcurses" >&5
3983 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3986 else
3987 ac_save_LIBS="$LIBS"
3988 LIBS="-lcurses $LIBS"
3989 cat > conftest.$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3992 /* Override any gcc2 internal prototype to avoid an error. */
3993 /* We use char because int might match the return type of a gcc2
3994 builtin and then its argument prototype would still apply. */
3995 char getbkgd();
3997 int main() {
3998 getbkgd()
3999 ; return 0; }
4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4002 rm -rf conftest*
4003 eval "ac_cv_lib_$ac_lib_var=yes"
4004 else
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4007 rm -rf conftest*
4008 eval "ac_cv_lib_$ac_lib_var=no"
4010 rm -f conftest*
4011 LIBS="$ac_save_LIBS"
4014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4016 cat >> confdefs.h <<\EOF
4017 #define HAVE_GETBKGD 1
4020 else
4021 echo "$ac_t""no" 1>&6
4029 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
4030 echo "configure:4031: checking "for GNU style IPX support"" >&5
4031 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4033 else
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4037 #include <sys/socket.h>
4038 #include <netipx/ipx.h>
4039 int main() {
4040 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4041 ; return 0; }
4043 if { (eval echo configure:4044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4044 rm -rf conftest*
4045 ac_cv_c_ipx_gnu="yes"
4046 else
4047 echo "configure: failed program was:" >&5
4048 cat conftest.$ac_ext >&5
4049 rm -rf conftest*
4050 ac_cv_c_ipx_gnu="no"
4052 rm -f conftest*
4056 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4057 if test "$ac_cv_c_ipx_gnu" = "yes"
4058 then
4059 cat >> confdefs.h <<\EOF
4060 #define HAVE_IPX_GNU 1
4065 if test "$ac_cv_c_ipx_gnu" = "no"
4066 then
4067 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4068 echo "configure:4069: checking "for linux style IPX support"" >&5
4069 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4071 else
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 #include <sys/socket.h>
4076 #include <asm/types.h>
4077 #include <linux/ipx.h>
4078 int main() {
4079 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4080 ; return 0; }
4082 if { (eval echo configure:4083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4083 rm -rf conftest*
4084 ac_cv_c_ipx_linux="yes"
4085 else
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4088 rm -rf conftest*
4089 ac_cv_c_ipx_linux="no"
4091 rm -f conftest*
4095 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4096 if test "$ac_cv_c_ipx_linux" = "yes"
4097 then
4098 cat >> confdefs.h <<\EOF
4099 #define HAVE_IPX_LINUX 1
4105 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4109 echo "configure:4110: checking for $ac_hdr" >&5
4110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4112 else
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 #include <$ac_hdr>
4118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4119 { (eval echo configure:4120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4121 if test -z "$ac_err"; then
4122 rm -rf conftest*
4123 eval "ac_cv_header_$ac_safe=yes"
4124 else
4125 echo "$ac_err" >&5
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 rm -rf conftest*
4129 eval "ac_cv_header_$ac_safe=no"
4131 rm -f conftest*
4133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4136 cat >> confdefs.h <<EOF
4137 #define $ac_tr_hdr 1
4139 break
4140 else
4141 echo "$ac_t""no" 1>&6
4143 done
4146 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4147 echo "configure:4148: checking "for Open Sound System"" >&5
4148 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4150 else
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4155 #if defined(HAVE_SYS_SOUNDCARD_H)
4156 #include <sys/soundcard.h>
4157 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4158 #include <machine/soundcard.h>
4159 #elif defined(HAVE_SOUNDCARD_H)
4160 #include <soundcard.h>
4161 #endif
4163 int main() {
4166 /* check for one of the Open Sound System specific SNDCTL_ defines */
4167 #if !defined(SNDCTL_DSP_STEREO)
4168 #error No open sound system
4169 #endif
4171 ; return 0; }
4173 if { (eval echo configure:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4174 rm -rf conftest*
4175 ac_cv_c_opensoundsystem="yes"
4176 else
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 rm -rf conftest*
4180 ac_cv_c_opensoundsystem="no"
4182 rm -f conftest*
4185 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4187 if test "$ac_cv_c_opensoundsystem" = "yes"
4188 then
4189 cat >> confdefs.h <<\EOF
4190 #define HAVE_OSS 1
4195 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4196 echo "configure:4197: checking "for Open Sound System/MIDI interface"" >&5
4197 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4199 else
4200 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure"
4202 #include "confdefs.h"
4204 #if defined(HAVE_SYS_SOUNDCARD_H)
4205 #include <sys/soundcard.h>
4206 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4207 #include <machine/soundcard.h>
4208 #elif defined(HAVE_SOUNDCARD_H)
4209 #include <soundcard.h>
4210 #endif
4212 int main() {
4215 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4216 #if !defined(SNDCTL_SEQ_SYNC)
4217 #error No open sound system MIDI interface
4218 #endif
4220 ; return 0; }
4222 if { (eval echo configure:4223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4223 rm -rf conftest*
4224 ac_cv_c_opensoundsystem_midi="yes"
4225 else
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4228 rm -rf conftest*
4229 ac_cv_c_opensoundsystem_midi="no"
4231 rm -f conftest*
4234 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4236 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4237 then
4238 cat >> confdefs.h <<\EOF
4239 #define HAVE_OSS_MIDI 1
4244 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4247 if test "x${GCC}" = "xyes"
4248 then
4249 CFLAGS="$CFLAGS -Wall"
4250 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4251 echo "configure:4252: checking "for gcc strength-reduce bug"" >&5
4252 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4254 else
4255 if test "$cross_compiling" = yes; then
4256 ac_cv_c_gcc_strength_bug="yes"
4257 else
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4262 int main(void) {
4263 static int Array[3];
4264 unsigned int B = 3;
4265 int i;
4266 for(i=0; i<B; i++) Array[i] = i - 3;
4267 exit( Array[1] != -2 );
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4271 then
4272 ac_cv_c_gcc_strength_bug="no"
4273 else
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4276 rm -fr conftest*
4277 ac_cv_c_gcc_strength_bug="yes"
4279 rm -fr conftest*
4284 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4285 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4286 then
4287 CFLAGS="$CFLAGS -fno-strength-reduce"
4292 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4293 echo "configure:4294: checking "whether external symbols need an underscore prefix"" >&5
4294 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4296 else
4297 saved_libs=$LIBS
4298 LIBS="conftest_asm.s $LIBS"
4299 cat > conftest_asm.s <<EOF
4300 .globl _ac_test
4301 _ac_test:
4302 .long 0
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 extern int ac_test;
4308 int main() {
4309 if (ac_test) return 1
4310 ; return 0; }
4312 if { (eval echo configure:4313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4313 rm -rf conftest*
4314 ac_cv_c_extern_prefix="yes"
4315 else
4316 echo "configure: failed program was:" >&5
4317 cat conftest.$ac_ext >&5
4318 rm -rf conftest*
4319 ac_cv_c_extern_prefix="no"
4321 rm -f conftest*
4322 LIBS=$saved_libs
4325 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4326 if test "$ac_cv_c_extern_prefix" = "yes"
4327 then
4328 cat >> confdefs.h <<\EOF
4329 #define NEED_UNDERSCORE_PREFIX 1
4335 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4336 echo "configure:4337: checking "whether assembler accepts .string"" >&5
4337 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4339 else
4340 saved_libs=$LIBS
4341 LIBS="conftest_asm.s $LIBS"
4342 cat > conftest_asm.s <<EOF
4343 .string "test"
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4349 int main() {
4351 ; return 0; }
4353 if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4354 rm -rf conftest*
4355 ac_cv_c_asm_string="yes"
4356 else
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4359 rm -rf conftest*
4360 ac_cv_c_asm_string="no"
4362 rm -f conftest*
4363 LIBS=$saved_libs
4366 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4367 if test "$ac_cv_c_asm_string" = "yes"
4368 then
4369 cat >> confdefs.h <<\EOF
4370 #define HAVE_ASM_STRING 1
4376 LDSHARED=""
4377 if test "$LIBEXT" = "so"
4378 then
4379 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4380 echo "configure:4381: checking "whether we can build a Linux dll"" >&5
4381 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4383 else
4384 saved_cflags=$CFLAGS
4385 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4390 int main() {
4391 return 1
4392 ; return 0; }
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 rm -rf conftest*
4396 ac_cv_c_dll_linux="yes"
4397 else
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4400 rm -rf conftest*
4401 ac_cv_c_dll_linux="no"
4403 rm -f conftest*
4404 CFLAGS=$saved_cflags
4408 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4409 if test "$ac_cv_c_dll_linux" = "yes"
4410 then
4411 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
4412 else
4413 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
4414 echo "configure:4415: checking whether we can build a UnixWare (Solaris) dll" >&5
4415 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4417 else
4418 saved_cflags=$CFLAGS
4419 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4424 int main() {
4425 return 1
4426 ; return 0; }
4428 if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 rm -rf conftest*
4430 ac_cv_c_dll_unixware="yes"
4431 else
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4434 rm -rf conftest*
4435 ac_cv_c_dll_unixware="no"
4437 rm -f conftest*
4438 CFLAGS=$saved_cflags
4442 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4443 if test "$ac_cv_c_dll_unixware" = "yes"
4444 then
4445 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
4446 else
4447 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4448 echo "configure:4449: checking "whether we can build a NetBSD dll"" >&5
4449 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4451 else
4452 saved_cflags=$CFLAGS
4453 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4458 int main() {
4459 return 1
4460 ; return 0; }
4462 if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4463 rm -rf conftest*
4464 ac_cv_c_dll_netbsd="yes"
4465 else
4466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4468 rm -rf conftest*
4469 ac_cv_c_dll_netbsd="no"
4471 rm -f conftest*
4472 CFLAGS=$saved_cflags
4476 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4477 if test "$ac_cv_c_dll_netbsd" = "yes"
4478 then
4479 LDSHARED="ld -Bshareable -Bforcearchive"
4483 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4484 then
4485 LIBEXT="a"
4489 DLLFLAGS=""
4490 BUILDFLAGS=""
4492 if test "$LIBEXT" = "so"; then
4493 BUILDFLAGS="-pic"
4494 DLLFLAGS="-fPIC"
4495 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine"
4496 else
4497 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine \$(X_LIBS) \$(XLIB)"
4498 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
4499 echo "configure:4500: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
4500 if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4502 else
4503 saved_cflags=$CFLAGS
4504 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
4505 cat > conftest.$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4509 int main() {
4510 return 1
4511 ; return 0; }
4513 if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4514 rm -rf conftest*
4515 ac_cv_c_whole_archive="yes"
4516 else
4517 echo "configure: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4519 rm -rf conftest*
4520 ac_cv_c_whole_archive="no"
4522 rm -f conftest*
4523 CFLAGS=$saved_cflags
4527 echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
4528 if test "$ac_cv_c_whole_archive" = "yes"
4529 then
4530 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
4531 else
4532 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
4533 echo "configure:4534: checking whether the linker supports -z {all,default}extract (Linux)" >&5
4534 if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4536 else
4537 saved_cflags=$CFLAGS
4538 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4543 int main() {
4544 return 1
4545 ; return 0; }
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4548 rm -rf conftest*
4549 ac_cv_c_allextract="yes"
4550 else
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4553 rm -rf conftest*
4554 ac_cv_c_allextract="no"
4556 rm -f conftest*
4557 CFLAGS=$saved_cflags
4561 echo "$ac_t""$ac_cv_c_allextract" 1>&6
4562 if test "$ac_cv_c_allextract" = "yes"
4563 then
4564 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
4576 wine_cv_libc_reentrant=no
4577 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4578 echo "configure:4579: checking "for reentrant libc: __errno_location"" >&5
4579 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4581 else
4582 if test "$cross_compiling" = yes; then
4583 wine_cv_libc_r__errno_location=yes
4584 else
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4588 int myerrno = 0;
4589 char buf[256];
4590 int *__errno_location(){return &myerrno;}
4591 main(){connect(0,buf,255); exit(!myerrno);}
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4594 then
4595 wine_cv_libc_r__errno_location=yes
4596 else
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4599 rm -fr conftest*
4600 wine_cv_libc_r__errno_location=no
4602 rm -fr conftest*
4608 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4609 if test "$wine_cv_libc_r__errno_location" = "yes"
4610 then
4611 cat >> confdefs.h <<\EOF
4612 #define HAVE__ERRNO_LOCATION 1
4615 wine_cv_libc_reentrant=__errno_location
4617 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4618 echo "configure:4619: checking "for reentrant libc: __error"" >&5
4619 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4621 else
4622 if test "$cross_compiling" = yes; then
4623 wine_cv_libc_r__error=yes
4624 else
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 int myerrno = 0;
4629 char buf[256];
4630 int *__error(){return &myerrno;}
4631 main(){connect(0,buf,255); exit(!myerrno);}
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4634 then
4635 wine_cv_libc_r__error=yes
4636 else
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4639 rm -fr conftest*
4640 wine_cv_libc_r__error=no
4642 rm -fr conftest*
4648 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4649 if test "$wine_cv_libc_r__error" = "yes"
4650 then
4651 cat >> confdefs.h <<\EOF
4652 #define HAVE__ERROR 1
4655 wine_cv_libc_reentrant=__error
4657 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4658 echo "configure:4659: checking "for reentrant libc: ___errno"" >&5
4659 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4661 else
4662 if test "$cross_compiling" = yes; then
4663 wine_cv_libc_r___errno=yes
4664 else
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 int myerrno = 0;
4669 char buf[256];
4670 int *___errno(){return &myerrno;}
4671 main(){connect(0,buf,255); exit(!myerrno);}
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4674 then
4675 wine_cv_libc_r___errno=yes
4676 else
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4679 rm -fr conftest*
4680 wine_cv_libc_r___errno=no
4682 rm -fr conftest*
4688 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4689 if test "$wine_cv_libc_r___errno" = "yes"
4690 then
4691 cat >> confdefs.h <<\EOF
4692 #define HAVE___ERRNO 1
4695 wine_cv_libc_reentrant=___errno
4697 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4698 echo "configure:4699: checking "for reentrant libc: __thr_errno"" >&5
4699 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4701 else
4702 if test "$cross_compiling" = yes; then
4703 wine_cv_libc_r__thr_errno=yes
4704 else
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4708 int myerrno = 0;
4709 char buf[256];
4710 int *__thr_errno(){return &myerrno;}
4711 main(){connect(0,buf,255); exit(!myerrno);}
4713 if { (eval echo configure:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4714 then
4715 wine_cv_libc_r__thr_errno=yes
4716 else
4717 echo "configure: failed program was:" >&5
4718 cat conftest.$ac_ext >&5
4719 rm -fr conftest*
4720 wine_cv_libc_r__thr_errno=no
4722 rm -fr conftest*
4728 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4729 if test "$wine_cv_libc_r__thr_errno" = "yes"
4730 then
4731 cat >> confdefs.h <<\EOF
4732 #define HAVE__THR_ERRNO 1
4735 wine_cv_libc_reentrant=__thr_errno
4737 if test "$wine_cv_libc_reentrant" = "no"
4738 then
4739 cat >> confdefs.h <<\EOF
4740 #define NO_REENTRANT_LIBC 1
4746 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4747 then
4748 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4749 echo "configure:4750: checking "for reentrant X libraries"" >&5
4750 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4752 else
4753 if test "x$with_reentrant_x" = "xno"
4754 then
4755 wine_cv_x_reentrant=no
4756 else
4757 libX11_check=none
4758 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4759 if test -r $dir/libX11.so; then
4760 libX11_check="-D $dir/libX11.so"
4761 break 1
4763 if test -r $dir/libX11.a; then
4764 libX11_check="$dir/libX11.a"
4765 break 1
4767 done
4768 if test "$libX11_check" != "none"; then
4769 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4770 then
4771 wine_cv_x_reentrant=yes
4772 else
4773 wine_cv_x_reentrant=no
4775 else
4776 wine_cv_x_reentrant=unknown
4781 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4782 else
4783 wine_cv_x_reentrant=no
4785 if test "$wine_cv_x_reentrant" = "no"
4786 then
4787 cat >> confdefs.h <<\EOF
4788 #define NO_REENTRANT_X11 1
4794 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4795 echo "configure:4796: checking whether byte ordering is bigendian" >&5
4796 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4798 else
4799 ac_cv_c_bigendian=unknown
4800 # See if sys/param.h defines the BYTE_ORDER macro.
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 #include <sys/types.h>
4805 #include <sys/param.h>
4806 int main() {
4808 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4809 bogus endian macros
4810 #endif
4811 ; return 0; }
4813 if { (eval echo configure:4814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4814 rm -rf conftest*
4815 # It does; now see whether it defined to BIG_ENDIAN or not.
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4819 #include <sys/types.h>
4820 #include <sys/param.h>
4821 int main() {
4823 #if BYTE_ORDER != BIG_ENDIAN
4824 not big endian
4825 #endif
4826 ; return 0; }
4828 if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4829 rm -rf conftest*
4830 ac_cv_c_bigendian=yes
4831 else
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 rm -rf conftest*
4835 ac_cv_c_bigendian=no
4837 rm -f conftest*
4838 else
4839 echo "configure: failed program was:" >&5
4840 cat conftest.$ac_ext >&5
4842 rm -f conftest*
4843 if test $ac_cv_c_bigendian = unknown; then
4844 if test "$cross_compiling" = yes; then
4845 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4846 else
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 main () {
4851 /* Are we little or big endian? From Harbison&Steele. */
4852 union
4854 long l;
4855 char c[sizeof (long)];
4856 } u;
4857 u.l = 1;
4858 exit (u.c[sizeof (long) - 1] == 1);
4861 if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4862 then
4863 ac_cv_c_bigendian=no
4864 else
4865 echo "configure: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 rm -fr conftest*
4868 ac_cv_c_bigendian=yes
4870 rm -fr conftest*
4876 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4877 if test $ac_cv_c_bigendian = yes; then
4878 cat >> confdefs.h <<\EOF
4879 #define WORDS_BIGENDIAN 1
4886 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4887 # for constant arguments. Useless!
4888 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4889 echo "configure:4890: checking for working alloca.h" >&5
4890 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4892 else
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 #include <alloca.h>
4897 int main() {
4898 void *p = alloca(2 * sizeof(int));
4899 ; return 0; }
4901 if { (eval echo configure:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4902 rm -rf conftest*
4903 ac_cv_header_alloca_h=yes
4904 else
4905 echo "configure: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 rm -rf conftest*
4908 ac_cv_header_alloca_h=no
4910 rm -f conftest*
4913 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4914 if test $ac_cv_header_alloca_h = yes; then
4915 cat >> confdefs.h <<\EOF
4916 #define HAVE_ALLOCA_H 1
4921 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4922 echo "configure:4923: checking for alloca" >&5
4923 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4924 echo $ac_n "(cached) $ac_c" 1>&6
4925 else
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4930 #ifdef __GNUC__
4931 # define alloca __builtin_alloca
4932 #else
4933 # ifdef _MSC_VER
4934 # include <malloc.h>
4935 # define alloca _alloca
4936 # else
4937 # if HAVE_ALLOCA_H
4938 # include <alloca.h>
4939 # else
4940 # ifdef _AIX
4941 #pragma alloca
4942 # else
4943 # ifndef alloca /* predefined by HP cc +Olibcalls */
4944 char *alloca ();
4945 # endif
4946 # endif
4947 # endif
4948 # endif
4949 #endif
4951 int main() {
4952 char *p = (char *) alloca(1);
4953 ; return 0; }
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4956 rm -rf conftest*
4957 ac_cv_func_alloca_works=yes
4958 else
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4961 rm -rf conftest*
4962 ac_cv_func_alloca_works=no
4964 rm -f conftest*
4967 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4968 if test $ac_cv_func_alloca_works = yes; then
4969 cat >> confdefs.h <<\EOF
4970 #define HAVE_ALLOCA 1
4975 if test $ac_cv_func_alloca_works = no; then
4976 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4977 # that cause trouble. Some versions do not even contain alloca or
4978 # contain a buggy version. If you still want to use their alloca,
4979 # use ar to extract alloca.o from them instead of compiling alloca.c.
4980 ALLOCA=alloca.${ac_objext}
4981 cat >> confdefs.h <<\EOF
4982 #define C_ALLOCA 1
4986 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4987 echo "configure:4988: checking whether alloca needs Cray hooks" >&5
4988 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4989 echo $ac_n "(cached) $ac_c" 1>&6
4990 else
4991 cat > conftest.$ac_ext <<EOF
4992 #line 4993 "configure"
4993 #include "confdefs.h"
4994 #if defined(CRAY) && ! defined(CRAY2)
4995 webecray
4996 #else
4997 wenotbecray
4998 #endif
5001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5002 egrep "webecray" >/dev/null 2>&1; then
5003 rm -rf conftest*
5004 ac_cv_os_cray=yes
5005 else
5006 rm -rf conftest*
5007 ac_cv_os_cray=no
5009 rm -f conftest*
5013 echo "$ac_t""$ac_cv_os_cray" 1>&6
5014 if test $ac_cv_os_cray = yes; then
5015 for ac_func in _getb67 GETB67 getb67; do
5016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5017 echo "configure:5018: checking for $ac_func" >&5
5018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5020 else
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* System header to define __stub macros and hopefully few prototypes,
5025 which can conflict with char $ac_func(); below. */
5026 #include <assert.h>
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5030 char $ac_func();
5032 int main() {
5034 /* The GNU C library defines this for functions which it implements
5035 to always fail with ENOSYS. Some functions are actually named
5036 something starting with __ and the normal name is an alias. */
5037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5038 choke me
5039 #else
5040 $ac_func();
5041 #endif
5043 ; return 0; }
5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5046 rm -rf conftest*
5047 eval "ac_cv_func_$ac_func=yes"
5048 else
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5051 rm -rf conftest*
5052 eval "ac_cv_func_$ac_func=no"
5054 rm -f conftest*
5057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 cat >> confdefs.h <<EOF
5060 #define CRAY_STACKSEG_END $ac_func
5063 break
5064 else
5065 echo "$ac_t""no" 1>&6
5068 done
5071 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5072 echo "configure:5073: checking stack direction for C alloca" >&5
5073 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5075 else
5076 if test "$cross_compiling" = yes; then
5077 ac_cv_c_stack_direction=0
5078 else
5079 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5082 find_stack_direction ()
5084 static char *addr = 0;
5085 auto char dummy;
5086 if (addr == 0)
5088 addr = &dummy;
5089 return find_stack_direction ();
5091 else
5092 return (&dummy > addr) ? 1 : -1;
5094 main ()
5096 exit (find_stack_direction() < 0);
5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5100 then
5101 ac_cv_c_stack_direction=1
5102 else
5103 echo "configure: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5105 rm -fr conftest*
5106 ac_cv_c_stack_direction=-1
5108 rm -fr conftest*
5113 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5114 cat >> confdefs.h <<EOF
5115 #define STACK_DIRECTION $ac_cv_c_stack_direction
5120 for ac_func in \
5121 _lwp_create \
5122 clone \
5123 getnetbyaddr \
5124 getnetbyname \
5125 getpagesize \
5126 getprotobyname \
5127 getprotobynumber \
5128 getservbyport \
5129 getsockopt \
5130 inet_network \
5131 memmove \
5132 rfork \
5133 select \
5134 sendmsg \
5135 settimeofday \
5136 sigaltstack \
5137 statfs \
5138 strcasecmp \
5139 strerror \
5140 strncasecmp \
5141 tcgetattr \
5142 timegm \
5143 usleep \
5144 vfscanf \
5145 wait4 \
5146 waitpid \
5149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5150 echo "configure:5151: checking for $ac_func" >&5
5151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5153 else
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5157 /* System header to define __stub macros and hopefully few prototypes,
5158 which can conflict with char $ac_func(); below. */
5159 #include <assert.h>
5160 /* Override any gcc2 internal prototype to avoid an error. */
5161 /* We use char because int might match the return type of a gcc2
5162 builtin and then its argument prototype would still apply. */
5163 char $ac_func();
5165 int main() {
5167 /* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5171 choke me
5172 #else
5173 $ac_func();
5174 #endif
5176 ; return 0; }
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5179 rm -rf conftest*
5180 eval "ac_cv_func_$ac_func=yes"
5181 else
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 rm -rf conftest*
5185 eval "ac_cv_func_$ac_func=no"
5187 rm -f conftest*
5190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5191 echo "$ac_t""yes" 1>&6
5192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5193 cat >> confdefs.h <<EOF
5194 #define $ac_tr_func 1
5197 else
5198 echo "$ac_t""no" 1>&6
5200 done
5204 for ac_hdr in \
5205 a.out.h \
5206 a_out.h \
5207 arpa/inet.h \
5208 arpa/nameser.h \
5209 elf.h \
5210 float.h \
5211 libio.h \
5212 link.h \
5213 linux/cdrom.h \
5214 linux/joystick.h \
5215 linux/ucdrom.h \
5216 net/if.h \
5217 netinet/in.h \
5218 netinet/tcp.h \
5219 pty.h \
5220 resolv.h \
5221 sched.h \
5222 socket.h \
5223 strings.h \
5224 sys/cdio.h \
5225 sys/errno.h \
5226 sys/file.h \
5227 sys/filio.h \
5228 sys/ipc.h \
5229 sys/lwp.h \
5230 sys/mman.h \
5231 sys/modem.h \
5232 sys/mount.h \
5233 sys/msg.h \
5234 sys/param.h \
5235 sys/reg.h \
5236 sys/signal.h \
5237 sys/shm.h \
5238 sys/socket.h \
5239 sys/sockio.h \
5240 sys/statfs.h \
5241 sys/strtio.h \
5242 sys/syscall.h \
5243 sys/wait.h \
5244 sys/v86.h \
5245 sys/v86intr.h \
5246 sys/vfs.h \
5247 sys/vm86.h \
5248 syscall.h \
5249 ucontext.h \
5250 wctype.h \
5253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5255 echo "configure:5256: checking for $ac_hdr" >&5
5256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5258 else
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5262 #include <$ac_hdr>
5264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5265 { (eval echo configure:5266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5267 if test -z "$ac_err"; then
5268 rm -rf conftest*
5269 eval "ac_cv_header_$ac_safe=yes"
5270 else
5271 echo "$ac_err" >&5
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5274 rm -rf conftest*
5275 eval "ac_cv_header_$ac_safe=no"
5277 rm -f conftest*
5279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5280 echo "$ac_t""yes" 1>&6
5281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5282 cat >> confdefs.h <<EOF
5283 #define $ac_tr_hdr 1
5286 else
5287 echo "$ac_t""no" 1>&6
5289 done
5291 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5292 echo "configure:5293: checking whether stat file-mode macros are broken" >&5
5293 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5295 else
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 #include <sys/types.h>
5300 #include <sys/stat.h>
5302 #if defined(S_ISBLK) && defined(S_IFDIR)
5303 # if S_ISBLK (S_IFDIR)
5304 You lose.
5305 # endif
5306 #endif
5308 #if defined(S_ISBLK) && defined(S_IFCHR)
5309 # if S_ISBLK (S_IFCHR)
5310 You lose.
5311 # endif
5312 #endif
5314 #if defined(S_ISLNK) && defined(S_IFREG)
5315 # if S_ISLNK (S_IFREG)
5316 You lose.
5317 # endif
5318 #endif
5320 #if defined(S_ISSOCK) && defined(S_IFREG)
5321 # if S_ISSOCK (S_IFREG)
5322 You lose.
5323 # endif
5324 #endif
5327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5328 egrep "You lose" >/dev/null 2>&1; then
5329 rm -rf conftest*
5330 ac_cv_header_stat_broken=yes
5331 else
5332 rm -rf conftest*
5333 ac_cv_header_stat_broken=no
5335 rm -f conftest*
5339 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5340 if test $ac_cv_header_stat_broken = yes; then
5341 cat >> confdefs.h <<\EOF
5342 #define STAT_MACROS_BROKEN 1
5349 echo $ac_n "checking for working const""... $ac_c" 1>&6
5350 echo "configure:5351: checking for working const" >&5
5351 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5353 else
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5358 int main() {
5360 /* Ultrix mips cc rejects this. */
5361 typedef int charset[2]; const charset x = {0,0};
5362 /* SunOS 4.1.1 cc rejects this. */
5363 char const *const *ccp;
5364 char **p;
5365 /* NEC SVR4.0.2 mips cc rejects this. */
5366 struct point {int x, y;};
5367 static struct point const zero = {0,0};
5368 /* AIX XL C 1.02.0.0 rejects this.
5369 It does not let you subtract one const X* pointer from another in an arm
5370 of an if-expression whose if-part is not a constant expression */
5371 const char *g = "string";
5372 ccp = &g + (g ? g-g : 0);
5373 /* HPUX 7.0 cc rejects these. */
5374 ++ccp;
5375 p = (char**) ccp;
5376 ccp = (char const *const *) p;
5377 { /* SCO 3.2v4 cc rejects this. */
5378 char *t;
5379 char const *s = 0 ? (char *) 0 : (char const *) 0;
5381 *t++ = 0;
5383 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5384 int x[] = {25, 17};
5385 const int *foo = &x[0];
5386 ++foo;
5388 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5389 typedef const int *iptr;
5390 iptr p = 0;
5391 ++p;
5393 { /* AIX XL C 1.02.0.0 rejects this saying
5394 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5395 struct s { int j; const int *ap[3]; };
5396 struct s *b; b->j = 5;
5398 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5399 const int foo = 10;
5402 ; return 0; }
5404 if { (eval echo configure:5405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 rm -rf conftest*
5406 ac_cv_c_const=yes
5407 else
5408 echo "configure: failed program was:" >&5
5409 cat conftest.$ac_ext >&5
5410 rm -rf conftest*
5411 ac_cv_c_const=no
5413 rm -f conftest*
5416 echo "$ac_t""$ac_cv_c_const" 1>&6
5417 if test $ac_cv_c_const = no; then
5418 cat >> confdefs.h <<\EOF
5419 #define const
5424 echo $ac_n "checking for inline""... $ac_c" 1>&6
5425 echo "configure:5426: checking for inline" >&5
5426 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5428 else
5429 ac_cv_c_inline=no
5430 for ac_kw in inline __inline__ __inline; do
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5435 int main() {
5436 } int $ac_kw foo() {
5437 ; return 0; }
5439 if { (eval echo configure:5440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5440 rm -rf conftest*
5441 ac_cv_c_inline=$ac_kw; break
5442 else
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 rm -f conftest*
5447 done
5451 echo "$ac_t""$ac_cv_c_inline" 1>&6
5452 case "$ac_cv_c_inline" in
5453 inline | yes) ;;
5454 no) cat >> confdefs.h <<\EOF
5455 #define inline
5458 *) cat >> confdefs.h <<EOF
5459 #define inline $ac_cv_c_inline
5462 esac
5464 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5465 echo "configure:5466: checking for ANSI C header files" >&5
5466 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5468 else
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 #include <stdlib.h>
5473 #include <stdarg.h>
5474 #include <string.h>
5475 #include <float.h>
5477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5478 { (eval echo configure:5479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5480 if test -z "$ac_err"; then
5481 rm -rf conftest*
5482 ac_cv_header_stdc=yes
5483 else
5484 echo "$ac_err" >&5
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5487 rm -rf conftest*
5488 ac_cv_header_stdc=no
5490 rm -f conftest*
5492 if test $ac_cv_header_stdc = yes; then
5493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5494 cat > conftest.$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5497 #include <string.h>
5499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5500 egrep "memchr" >/dev/null 2>&1; then
5502 else
5503 rm -rf conftest*
5504 ac_cv_header_stdc=no
5506 rm -f conftest*
5510 if test $ac_cv_header_stdc = yes; then
5511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515 #include <stdlib.h>
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 egrep "free" >/dev/null 2>&1; then
5520 else
5521 rm -rf conftest*
5522 ac_cv_header_stdc=no
5524 rm -f conftest*
5528 if test $ac_cv_header_stdc = yes; then
5529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5530 if test "$cross_compiling" = yes; then
5532 else
5533 cat > conftest.$ac_ext <<EOF
5534 #line 5535 "configure"
5535 #include "confdefs.h"
5536 #include <ctype.h>
5537 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5538 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5540 int main () { int i; for (i = 0; i < 256; i++)
5541 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5542 exit (0); }
5545 if { (eval echo configure:5546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5546 then
5548 else
5549 echo "configure: failed program was:" >&5
5550 cat conftest.$ac_ext >&5
5551 rm -fr conftest*
5552 ac_cv_header_stdc=no
5554 rm -fr conftest*
5560 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5561 if test $ac_cv_header_stdc = yes; then
5562 cat >> confdefs.h <<\EOF
5563 #define STDC_HEADERS 1
5568 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5569 echo "configure:5570: checking for size_t" >&5
5570 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5572 else
5573 cat > conftest.$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5576 #include <sys/types.h>
5577 #if STDC_HEADERS
5578 #include <stdlib.h>
5579 #include <stddef.h>
5580 #endif
5582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5583 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5584 rm -rf conftest*
5585 ac_cv_type_size_t=yes
5586 else
5587 rm -rf conftest*
5588 ac_cv_type_size_t=no
5590 rm -f conftest*
5593 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5594 if test $ac_cv_type_size_t = no; then
5595 cat >> confdefs.h <<\EOF
5596 #define size_t unsigned
5601 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5602 echo "configure:5603: checking size of long long" >&5
5603 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5605 else
5606 if test "$cross_compiling" = yes; then
5607 ac_cv_sizeof_long_long=0
5608 else
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 #include <stdio.h>
5613 main()
5615 FILE *f=fopen("conftestval", "w");
5616 if (!f) exit(1);
5617 fprintf(f, "%d\n", sizeof(long long));
5618 exit(0);
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5622 then
5623 ac_cv_sizeof_long_long=`cat conftestval`
5624 else
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5627 rm -fr conftest*
5628 ac_cv_sizeof_long_long=0
5630 rm -fr conftest*
5634 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5635 cat >> confdefs.h <<EOF
5636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5641 if test "$ac_cv_header_linux_joystick_h" = "yes"
5642 then
5643 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5644 echo "configure:5645: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5645 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5647 else
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5652 #include <sys/ioctl.h>
5653 #include <linux/joystick.h>
5655 struct js_event blub;
5656 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5657 #error "no 2.2 header"
5658 #endif
5660 int main() {
5661 /*empty*/
5662 ; return 0; }
5664 if { (eval echo configure:5665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5665 rm -rf conftest*
5666 wine_cv_linux_joystick_22_api=yes
5667 else
5668 echo "configure: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5670 rm -rf conftest*
5671 wine_cv_linux_joystick_22_api=no
5673 rm -f conftest*
5677 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5678 if test "$wine_cv_linux_joystick_22_api" = "yes"
5679 then
5680 cat >> confdefs.h <<\EOF
5681 #define HAVE_LINUX_22_JOYSTICK_API 1
5688 if test "$ac_cv_header_sys_vfs_h" = "yes"
5689 then
5690 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5691 echo "configure:5692: checking "whether sys/vfs.h defines statfs"" >&5
5692 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5694 else
5695 cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5699 #include <sys/types.h>
5700 #ifdef HAVE_SYS_PARAM_H
5701 # include <sys/param.h>
5702 #endif
5703 #include <sys/vfs.h>
5705 int main() {
5707 struct statfs stfs;
5709 memset(&stfs,0,sizeof(stfs));
5711 ; return 0; }
5713 if { (eval echo configure:5714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5714 rm -rf conftest*
5715 wine_cv_sys_vfs_has_statfs=yes
5716 else
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5719 rm -rf conftest*
5720 wine_cv_sys_vfs_has_statfs=no
5723 rm -f conftest*
5727 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5728 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5729 then
5730 cat >> confdefs.h <<\EOF
5731 #define STATFS_DEFINED_BY_SYS_VFS 1
5737 if test "$ac_cv_header_sys_statfs_h" = "yes"
5738 then
5739 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5740 echo "configure:5741: checking "whether sys/statfs.h defines statfs"" >&5
5741 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5742 echo $ac_n "(cached) $ac_c" 1>&6
5743 else
5744 cat > conftest.$ac_ext <<EOF
5745 #line 5746 "configure"
5746 #include "confdefs.h"
5748 #include <sys/types.h>
5749 #ifdef HAVE_SYS_PARAM_H
5750 # include <sys/param.h>
5751 #endif
5752 #include <sys/statfs.h>
5754 int main() {
5756 struct statfs stfs;
5758 ; return 0; }
5760 if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5761 rm -rf conftest*
5762 wine_cv_sys_statfs_has_statfs=yes
5763 else
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5766 rm -rf conftest*
5767 wine_cv_sys_statfs_has_statfs=no
5770 rm -f conftest*
5774 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5775 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5776 then
5777 cat >> confdefs.h <<\EOF
5778 #define STATFS_DEFINED_BY_SYS_STATFS 1
5784 if test "$ac_cv_header_sys_mount_h" = "yes"
5785 then
5786 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5787 echo "configure:5788: checking "whether sys/mount.h defines statfs"" >&5
5788 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5789 echo $ac_n "(cached) $ac_c" 1>&6
5790 else
5791 cat > conftest.$ac_ext <<EOF
5792 #line 5793 "configure"
5793 #include "confdefs.h"
5795 #include <sys/types.h>
5796 #ifdef HAVE_SYS_PARAM_H
5797 # include <sys/param.h>
5798 #endif
5799 #include <sys/mount.h>
5801 int main() {
5803 struct statfs stfs;
5805 ; return 0; }
5807 if { (eval echo configure:5808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5808 rm -rf conftest*
5809 wine_cv_sys_mount_has_statfs=yes
5810 else
5811 echo "configure: failed program was:" >&5
5812 cat conftest.$ac_ext >&5
5813 rm -rf conftest*
5814 wine_cv_sys_mount_has_statfs=no
5817 rm -f conftest*
5821 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5822 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5823 then
5824 cat >> confdefs.h <<\EOF
5825 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5832 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5833 echo "configure:5834: checking "for statfs.f_bfree"" >&5
5834 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5836 else
5837 if test "x$statfs_bfree" = "xno"
5838 then
5839 wine_cv_statfs_bfree=no
5840 else
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5845 #include <sys/types.h>
5846 #ifdef HAVE_SYS_PARAM_H
5847 # include <sys/param.h>
5848 #endif
5849 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5850 # include <sys/mount.h>
5851 #else
5852 # ifdef STATFS_DEFINED_BY_SYS_VFS
5853 # include <sys/vfs.h>
5854 # else
5855 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5856 # include <sys/statfs.h>
5857 # endif
5858 # endif
5859 #endif
5861 int main() {
5863 struct statfs stfs;
5865 stfs.f_bfree++;
5867 ; return 0; }
5869 if { (eval echo configure:5870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5870 rm -rf conftest*
5871 wine_cv_statfs_bfree=yes
5872 else
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5875 rm -rf conftest*
5876 wine_cv_statfs_bfree=no
5879 rm -f conftest*
5883 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5884 if test "$wine_cv_statfs_bfree" = "yes"
5885 then
5886 cat >> confdefs.h <<\EOF
5887 #define STATFS_HAS_BFREE 1
5892 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5893 echo "configure:5894: checking "for statfs.f_bavail"" >&5
5894 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5895 echo $ac_n "(cached) $ac_c" 1>&6
5896 else
5897 if test "x$statfs_bavail" = "xno"
5898 then
5899 wine_cv_statfs_bavail=no
5900 else
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5905 #include <sys/types.h>
5906 #ifdef HAVE_SYS_PARAM_H
5907 # include <sys/param.h>
5908 #endif
5909 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5910 # include <sys/mount.h>
5911 #else
5912 # ifdef STATFS_DEFINED_BY_SYS_VFS
5913 # include <sys/vfs.h>
5914 # else
5915 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5916 # include <sys/statfs.h>
5917 # endif
5918 # endif
5919 #endif
5921 int main() {
5923 struct statfs stfs;
5925 stfs.f_bavail++;
5927 ; return 0; }
5929 if { (eval echo configure:5930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5930 rm -rf conftest*
5931 wine_cv_statfs_bavail=yes
5932 else
5933 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5935 rm -rf conftest*
5936 wine_cv_statfs_bavail=no
5939 rm -f conftest*
5943 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5944 if test "$wine_cv_statfs_bavail" = "yes"
5945 then
5946 cat >> confdefs.h <<\EOF
5947 #define STATFS_HAS_BAVAIL 1
5953 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5954 echo "configure:5955: checking "for msg_accrights in struct msghdr"" >&5
5955 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6
5957 else
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5961 #include <sys/types.h>
5962 #include <sys/socket.h>
5963 int main() {
5964 struct msghdr hdr; hdr.msg_accrights=0
5965 ; return 0; }
5967 if { (eval echo configure:5968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5968 rm -rf conftest*
5969 ac_cv_c_msg_accrights="yes"
5970 else
5971 echo "configure: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5973 rm -rf conftest*
5974 ac_cv_c_msg_accrights="no"
5976 rm -f conftest*
5979 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5980 if test "$ac_cv_c_msg_accrights" = "yes"
5981 then
5982 cat >> confdefs.h <<\EOF
5983 #define HAVE_MSGHDR_ACCRIGHTS 1
5989 echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
5990 echo "configure:5991: checking "for sun_len in struct sockaddr_un"" >&5
5991 if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5993 else
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 #include <sys/types.h>
5998 #include <sys/socket.h>
5999 #include <sys/un.h>
6000 int main() {
6001 static struct sockaddr_un addr; addr.sun_len = 1
6002 ; return 0; }
6004 if { (eval echo configure:6005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6005 rm -rf conftest*
6006 ac_cv_c_sun_len="yes"
6007 else
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6010 rm -rf conftest*
6011 ac_cv_c_sun_len="no"
6013 rm -f conftest*
6016 echo "$ac_t""$ac_cv_c_sun_len" 1>&6
6017 if test "$ac_cv_c_sun_len" = "yes"
6018 then
6019 cat >> confdefs.h <<\EOF
6020 #define HAVE_SOCKADDR_SUN_LEN 1
6026 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
6027 echo "configure:6028: checking "whether we need to define __i386__"" >&5
6028 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6030 else
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6034 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6036 #endif
6038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039 egrep "yes" >/dev/null 2>&1; then
6040 rm -rf conftest*
6041 ac_cv_cpp_def_i386="yes"
6042 else
6043 rm -rf conftest*
6044 ac_cv_cpp_def_i386="no"
6046 rm -f conftest*
6050 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6051 if test "$ac_cv_cpp_def_i386" = "yes"
6052 then
6053 CFLAGS="$CFLAGS -D__i386__"
6054 LINTFLAGS="$LINTFLAGS -D__i386__"
6057 GCC_NO_BUILTIN=""
6058 if test "$GCC" = "yes"
6059 then
6060 GCC_NO_BUILTIN="-fno-builtin"
6067 MAKE_RULES=Make.rules
6070 MAKE_DLL_RULES=dlls/Makedll.rules
6073 trap '' 1 2 15
6074 cat > confcache <<\EOF
6075 # This file is a shell script that caches the results of configure
6076 # tests run on this system so they can be shared between configure
6077 # scripts and configure runs. It is not useful on other systems.
6078 # If it contains results you don't want to keep, you may remove or edit it.
6080 # By default, configure uses ./config.cache as the cache file,
6081 # creating it if it does not exist already. You can give configure
6082 # the --cache-file=FILE option to use a different cache file; that is
6083 # what configure does when it calls configure scripts in
6084 # subdirectories, so they share the cache.
6085 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6086 # config.status only pays attention to the cache file if you give it the
6087 # --recheck option to rerun configure.
6090 # The following way of writing the cache mishandles newlines in values,
6091 # but we know of no workaround that is simple, portable, and efficient.
6092 # So, don't put newlines in cache variables' values.
6093 # Ultrix sh set writes to stderr and can't be redirected directly,
6094 # and sets the high bit in the cache file unless we assign to the vars.
6095 (set) 2>&1 |
6096 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6097 *ac_space=\ *)
6098 # `set' does not quote correctly, so add quotes (double-quote substitution
6099 # turns \\\\ into \\, and sed turns \\ into \).
6100 sed -n \
6101 -e "s/'/'\\\\''/g" \
6102 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6105 # `set' quotes correctly as required by POSIX, so do not add quotes.
6106 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6108 esac >> confcache
6109 if cmp -s $cache_file confcache; then
6111 else
6112 if test -w $cache_file; then
6113 echo "updating cache $cache_file"
6114 cat confcache > $cache_file
6115 else
6116 echo "not updating unwritable cache $cache_file"
6119 rm -f confcache
6121 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6123 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6124 # Let make expand exec_prefix.
6125 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6127 # Any assignment to VPATH causes Sun make to only execute
6128 # the first set of double-colon rules, so remove it if not needed.
6129 # If there is a colon in the path, we need to keep it.
6130 if test "x$srcdir" = x.; then
6131 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6134 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6136 DEFS=-DHAVE_CONFIG_H
6138 # Without the "./", some shells look in PATH for config.status.
6139 : ${CONFIG_STATUS=./config.status}
6141 echo creating $CONFIG_STATUS
6142 rm -f $CONFIG_STATUS
6143 cat > $CONFIG_STATUS <<EOF
6144 #! /bin/sh
6145 # Generated automatically by configure.
6146 # Run this file to recreate the current configuration.
6147 # This directory was configured as follows,
6148 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6150 # $0 $ac_configure_args
6152 # Compiler output produced by configure, useful for debugging
6153 # configure, is in ./config.log if it exists.
6155 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6156 for ac_option
6158 case "\$ac_option" in
6159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6160 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6161 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6162 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6163 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6164 exit 0 ;;
6165 -help | --help | --hel | --he | --h)
6166 echo "\$ac_cs_usage"; exit 0 ;;
6167 *) echo "\$ac_cs_usage"; exit 1 ;;
6168 esac
6169 done
6171 ac_given_srcdir=$srcdir
6172 ac_given_INSTALL="$INSTALL"
6174 trap 'rm -fr `echo "
6175 Make.rules
6176 Makefile
6177 console/Makefile
6178 controls/Makefile
6179 debugger/Makefile
6180 dlls/Makedll.rules
6181 dlls/Makefile
6182 dlls/advapi32/Makefile
6183 dlls/avifil32/Makefile
6184 dlls/comctl32/Makefile
6185 dlls/commdlg/Makefile
6186 dlls/crtdll/Makefile
6187 dlls/dciman32/Makefile
6188 dlls/ddraw/Makefile
6189 dlls/dinput/Makefile
6190 dlls/display/Makefile
6191 dlls/dplayx/Makefile
6192 dlls/dsound/Makefile
6193 dlls/gdi/Makefile
6194 dlls/icmp/Makefile
6195 dlls/imagehlp/Makefile
6196 dlls/imm32/Makefile
6197 dlls/lzexpand/Makefile
6198 dlls/mouse/Makefile
6199 dlls/mpr/Makefile
6200 dlls/msacm/Makefile
6201 dlls/msacm32/Makefile
6202 dlls/msnet32/Makefile
6203 dlls/msvideo/Makefile
6204 dlls/ntdll/Makefile
6205 dlls/odbc32/Makefile
6206 dlls/ole32/Makefile
6207 dlls/oleaut32/Makefile
6208 dlls/olecli/Makefile
6209 dlls/oledlg/Makefile
6210 dlls/olepro32/Makefile
6211 dlls/olesvr/Makefile
6212 dlls/psapi/Makefile
6213 dlls/rasapi32/Makefile
6214 dlls/setupx/Makefile
6215 dlls/shell32/Makefile
6216 dlls/sound/Makefile
6217 dlls/stress/Makefile
6218 dlls/tapi32/Makefile
6219 dlls/ttydrv/Makefile
6220 dlls/urlmon/Makefile
6221 dlls/user/Makefile
6222 dlls/version/Makefile
6223 dlls/win32s/Makefile
6224 dlls/win87em/Makefile
6225 dlls/winaspi/Makefile
6226 dlls/windebug/Makefile
6227 dlls/wing/Makefile
6228 dlls/wininet/Makefile
6229 dlls/winmm/Makefile
6230 dlls/winmm/joystick/Makefile
6231 dlls/winmm/mcianim/Makefile
6232 dlls/winmm/mciavi/Makefile
6233 dlls/winmm/mcicda/Makefile
6234 dlls/winmm/mciseq/Makefile
6235 dlls/winmm/mciwave/Makefile
6236 dlls/winmm/midimap/Makefile
6237 dlls/winmm/wavemap/Makefile
6238 dlls/winmm/wineoss/Makefile
6239 dlls/winsock/Makefile
6240 dlls/winspool/Makefile
6241 dlls/ttydrv/Makefile
6242 dlls/x11drv/Makefile
6243 documentation/Makefile
6244 documentation/wine.conf.man
6245 documentation/wine.man
6246 files/Makefile
6247 graphics/Makefile
6248 graphics/enhmetafiledrv/Makefile
6249 graphics/metafiledrv/Makefile
6250 graphics/psdrv/Makefile
6251 graphics/ttydrv/Makefile
6252 graphics/win16drv/Makefile
6253 graphics/x11drv/Makefile
6254 if1632/Makefile
6255 include/Makefile
6256 library/Makefile
6257 libtest/Makefile
6258 loader/Makefile
6259 loader/ne/Makefile
6260 loader/dos/Makefile
6261 memory/Makefile
6262 misc/Makefile
6263 miscemu/Makefile
6264 msdos/Makefile
6265 objects/Makefile
6266 ole/Makefile
6267 programs/Makefile
6268 programs/clock/Makefile
6269 programs/cmdlgtst/Makefile
6270 programs/control/Makefile
6271 programs/avitools/Makefile
6272 programs/osversioncheck/Makefile
6273 programs/notepad/Makefile
6274 programs/progman/Makefile
6275 programs/regtest/Makefile
6276 programs/regapi/Makefile
6277 programs/view/Makefile
6278 programs/wcmd/Makefile
6279 programs/winemine/Makefile
6280 programs/winhelp/Makefile
6281 programs/winver/Makefile
6282 relay32/Makefile
6283 resources/Makefile
6284 scheduler/Makefile
6285 server/Makefile
6286 tools/Makefile
6287 tools/cvdump/Makefile
6288 tools/wrc/Makefile
6289 tsx11/Makefile
6290 win32/Makefile
6291 windows/Makefile
6292 windows/ttydrv/Makefile
6293 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6295 cat >> $CONFIG_STATUS <<EOF
6297 # Protect against being on the right side of a sed subst in config.status.
6298 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6299 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6300 $ac_vpsub
6301 $extrasub
6302 s%@SHELL@%$SHELL%g
6303 s%@CFLAGS@%$CFLAGS%g
6304 s%@CPPFLAGS@%$CPPFLAGS%g
6305 s%@CXXFLAGS@%$CXXFLAGS%g
6306 s%@FFLAGS@%$FFLAGS%g
6307 s%@DEFS@%$DEFS%g
6308 s%@LDFLAGS@%$LDFLAGS%g
6309 s%@LIBS@%$LIBS%g
6310 s%@exec_prefix@%$exec_prefix%g
6311 s%@prefix@%$prefix%g
6312 s%@program_transform_name@%$program_transform_name%g
6313 s%@bindir@%$bindir%g
6314 s%@sbindir@%$sbindir%g
6315 s%@libexecdir@%$libexecdir%g
6316 s%@datadir@%$datadir%g
6317 s%@sysconfdir@%$sysconfdir%g
6318 s%@sharedstatedir@%$sharedstatedir%g
6319 s%@localstatedir@%$localstatedir%g
6320 s%@libdir@%$libdir%g
6321 s%@includedir@%$includedir%g
6322 s%@oldincludedir@%$oldincludedir%g
6323 s%@infodir@%$infodir%g
6324 s%@mandir@%$mandir%g
6325 s%@PROGEXT@%$PROGEXT%g
6326 s%@EMU_TARGET@%$EMU_TARGET%g
6327 s%@OPTIONS@%$OPTIONS%g
6328 s%@SET_MAKE@%$SET_MAKE%g
6329 s%@CC@%$CC%g
6330 s%@CPP@%$CPP%g
6331 s%@X_CFLAGS@%$X_CFLAGS%g
6332 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6333 s%@X_LIBS@%$X_LIBS%g
6334 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6335 s%@YACC@%$YACC%g
6336 s%@LEX@%$LEX%g
6337 s%@LEXLIB@%$LEXLIB%g
6338 s%@RANLIB@%$RANLIB%g
6339 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6340 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6341 s%@INSTALL_DATA@%$INSTALL_DATA%g
6342 s%@LN_S@%$LN_S%g
6343 s%@C2MAN@%$C2MAN%g
6344 s%@LDCONFIG@%$LDCONFIG%g
6345 s%@LINT@%$LINT%g
6346 s%@LINTFLAGS@%$LINTFLAGS%g
6347 s%@XLIB@%$XLIB%g
6348 s%@X_DLLS@%$X_DLLS%g
6349 s%@XFILES@%$XFILES%g
6350 s%@DGA_SRCS@%$DGA_SRCS%g
6351 s%@MESA_SRCS@%$MESA_SRCS%g
6352 s%@DLL_LINK@%$DLL_LINK%g
6353 s%@BUILDFLAGS@%$BUILDFLAGS%g
6354 s%@DLLFLAGS@%$DLLFLAGS%g
6355 s%@LDSHARED@%$LDSHARED%g
6356 s%@LIBEXT@%$LIBEXT%g
6357 s%@ALLOCA@%$ALLOCA%g
6358 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6359 /@MAKE_RULES@/r $MAKE_RULES
6360 s%@MAKE_RULES@%%g
6361 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
6362 s%@MAKE_DLL_RULES@%%g
6364 CEOF
6367 cat >> $CONFIG_STATUS <<\EOF
6369 # Split the substitutions into bite-sized pieces for seds with
6370 # small command number limits, like on Digital OSF/1 and HP-UX.
6371 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6372 ac_file=1 # Number of current file.
6373 ac_beg=1 # First line for current file.
6374 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6375 ac_more_lines=:
6376 ac_sed_cmds=""
6377 while $ac_more_lines; do
6378 if test $ac_beg -gt 1; then
6379 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6380 else
6381 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6383 if test ! -s conftest.s$ac_file; then
6384 ac_more_lines=false
6385 rm -f conftest.s$ac_file
6386 else
6387 if test -z "$ac_sed_cmds"; then
6388 ac_sed_cmds="sed -f conftest.s$ac_file"
6389 else
6390 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6392 ac_file=`expr $ac_file + 1`
6393 ac_beg=$ac_end
6394 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6396 done
6397 if test -z "$ac_sed_cmds"; then
6398 ac_sed_cmds=cat
6402 cat >> $CONFIG_STATUS <<EOF
6404 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6405 Makefile
6406 console/Makefile
6407 controls/Makefile
6408 debugger/Makefile
6409 dlls/Makedll.rules
6410 dlls/Makefile
6411 dlls/advapi32/Makefile
6412 dlls/avifil32/Makefile
6413 dlls/comctl32/Makefile
6414 dlls/commdlg/Makefile
6415 dlls/crtdll/Makefile
6416 dlls/dciman32/Makefile
6417 dlls/ddraw/Makefile
6418 dlls/dinput/Makefile
6419 dlls/display/Makefile
6420 dlls/dplayx/Makefile
6421 dlls/dsound/Makefile
6422 dlls/gdi/Makefile
6423 dlls/icmp/Makefile
6424 dlls/imagehlp/Makefile
6425 dlls/imm32/Makefile
6426 dlls/lzexpand/Makefile
6427 dlls/mouse/Makefile
6428 dlls/mpr/Makefile
6429 dlls/msacm/Makefile
6430 dlls/msacm32/Makefile
6431 dlls/msnet32/Makefile
6432 dlls/msvideo/Makefile
6433 dlls/ntdll/Makefile
6434 dlls/odbc32/Makefile
6435 dlls/ole32/Makefile
6436 dlls/oleaut32/Makefile
6437 dlls/olecli/Makefile
6438 dlls/oledlg/Makefile
6439 dlls/olepro32/Makefile
6440 dlls/olesvr/Makefile
6441 dlls/psapi/Makefile
6442 dlls/rasapi32/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/wing/Makefile
6457 dlls/wininet/Makefile
6458 dlls/winmm/Makefile
6459 dlls/winmm/joystick/Makefile
6460 dlls/winmm/mcianim/Makefile
6461 dlls/winmm/mciavi/Makefile
6462 dlls/winmm/mcicda/Makefile
6463 dlls/winmm/mciseq/Makefile
6464 dlls/winmm/mciwave/Makefile
6465 dlls/winmm/midimap/Makefile
6466 dlls/winmm/wavemap/Makefile
6467 dlls/winmm/wineoss/Makefile
6468 dlls/winsock/Makefile
6469 dlls/winspool/Makefile
6470 dlls/ttydrv/Makefile
6471 dlls/x11drv/Makefile
6472 documentation/Makefile
6473 documentation/wine.conf.man
6474 documentation/wine.man
6475 files/Makefile
6476 graphics/Makefile
6477 graphics/enhmetafiledrv/Makefile
6478 graphics/metafiledrv/Makefile
6479 graphics/psdrv/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/wrc/Makefile
6518 tsx11/Makefile
6519 win32/Makefile
6520 windows/Makefile
6521 windows/ttydrv/Makefile
6522 windows/x11drv/Makefile "}
6524 cat >> $CONFIG_STATUS <<\EOF
6525 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6527 case "$ac_file" in
6528 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6529 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6530 *) ac_file_in="${ac_file}.in" ;;
6531 esac
6533 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6535 # Remove last slash and all that follows it. Not all systems have dirname.
6536 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6537 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6538 # The file is in a subdirectory.
6539 test ! -d "$ac_dir" && mkdir "$ac_dir"
6540 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6541 # A "../" for each directory in $ac_dir_suffix.
6542 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6543 else
6544 ac_dir_suffix= ac_dots=
6547 case "$ac_given_srcdir" in
6548 .) srcdir=.
6549 if test -z "$ac_dots"; then top_srcdir=.
6550 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6551 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6552 *) # Relative path.
6553 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6554 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6555 esac
6557 case "$ac_given_INSTALL" in
6558 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6559 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6560 esac
6562 echo creating "$ac_file"
6563 rm -f "$ac_file"
6564 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6565 case "$ac_file" in
6566 *Makefile*) ac_comsub="1i\\
6567 # $configure_input" ;;
6568 *) ac_comsub= ;;
6569 esac
6571 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6572 sed -e "$ac_comsub
6573 s%@configure_input@%$configure_input%g
6574 s%@srcdir@%$srcdir%g
6575 s%@top_srcdir@%$top_srcdir%g
6576 s%@INSTALL@%$INSTALL%g
6577 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6578 fi; done
6579 rm -f conftest.s*
6581 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6582 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6584 # ac_d sets the value in "#define NAME VALUE" lines.
6585 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6586 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6587 ac_dC='\3'
6588 ac_dD='%g'
6589 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6590 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6591 ac_uB='\([ ]\)%\1#\2define\3'
6592 ac_uC=' '
6593 ac_uD='\4%g'
6594 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6595 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6596 ac_eB='$%\1#\2define\3'
6597 ac_eC=' '
6598 ac_eD='%g'
6600 if test "${CONFIG_HEADERS+set}" != set; then
6602 cat >> $CONFIG_STATUS <<EOF
6603 CONFIG_HEADERS="include/config.h"
6605 cat >> $CONFIG_STATUS <<\EOF
6607 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6608 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6609 case "$ac_file" in
6610 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6611 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6612 *) ac_file_in="${ac_file}.in" ;;
6613 esac
6615 echo creating $ac_file
6617 rm -f conftest.frag conftest.in conftest.out
6618 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6619 cat $ac_file_inputs > conftest.in
6623 # Transform confdefs.h into a sed script conftest.vals that substitutes
6624 # the proper values into config.h.in to produce config.h. And first:
6625 # Protect against being on the right side of a sed subst in config.status.
6626 # Protect against being in an unquoted here document in config.status.
6627 rm -f conftest.vals
6628 cat > conftest.hdr <<\EOF
6629 s/[\\&%]/\\&/g
6630 s%[\\$`]%\\&%g
6631 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6632 s%ac_d%ac_u%gp
6633 s%ac_u%ac_e%gp
6635 sed -n -f conftest.hdr confdefs.h > conftest.vals
6636 rm -f conftest.hdr
6638 # This sed command replaces #undef with comments. This is necessary, for
6639 # example, in the case of _POSIX_SOURCE, which is predefined and required
6640 # on some systems where configure will not decide to define it.
6641 cat >> conftest.vals <<\EOF
6642 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6645 # Break up conftest.vals because some shells have a limit on
6646 # the size of here documents, and old seds have small limits too.
6648 rm -f conftest.tail
6649 while :
6651 ac_lines=`grep -c . conftest.vals`
6652 # grep -c gives empty output for an empty file on some AIX systems.
6653 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6654 # Write a limited-size here document to conftest.frag.
6655 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6656 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6657 echo 'CEOF
6658 sed -f conftest.frag conftest.in > conftest.out
6659 rm -f conftest.in
6660 mv conftest.out conftest.in
6661 ' >> $CONFIG_STATUS
6662 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6663 rm -f conftest.vals
6664 mv conftest.tail conftest.vals
6665 done
6666 rm -f conftest.vals
6668 cat >> $CONFIG_STATUS <<\EOF
6669 rm -f conftest.frag conftest.h
6670 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6671 cat conftest.in >> conftest.h
6672 rm -f conftest.in
6673 if cmp -s $ac_file conftest.h 2>/dev/null; then
6674 echo "$ac_file is unchanged"
6675 rm -f conftest.h
6676 else
6677 # Remove last slash and all that follows it. Not all systems have dirname.
6678 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6679 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6680 # The file is in a subdirectory.
6681 test ! -d "$ac_dir" && mkdir "$ac_dir"
6683 rm -f $ac_file
6684 mv conftest.h $ac_file
6686 fi; done
6689 cat >> $CONFIG_STATUS <<EOF
6693 cat >> $CONFIG_STATUS <<\EOF
6695 extra_subdirs="\
6696 dlls/ddraw/d3ddevice \
6697 dlls/ddraw/dclipper \
6698 dlls/ddraw/ddraw \
6699 dlls/ddraw/direct3d \
6700 dlls/ddraw/dpalette \
6701 dlls/ddraw/dsurface \
6703 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
6705 exit 0
6707 chmod +x $CONFIG_STATUS
6708 rm -fr confdefs* $ac_clean_files
6709 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6712 if test "$have_x" = "no"
6713 then
6714 echo
6715 echo "*** Warning: X development files not found. Wine will be built without"
6716 echo "*** X support, which currently does not work, and would probably not be"
6717 echo "*** what you want anyway. You will need to install devel packages of"
6718 echo "*** Xlib/Xfree86 and Xpm at the very least."
6719 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6720 then
6721 echo
6722 echo "*** Warning: Xpm development files not found. Wine will be built without"
6723 echo "*** Xpm support, which currently does not work. You will need to install"
6724 echo "*** devel packages of Xpm."
6727 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6728 then
6729 echo
6730 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6731 echo "*** terminal resize support. Consider upgrading ncurses."
6734 if test "$wine_cv_libc_reentrant" = "no"
6735 then
6736 echo
6737 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6738 echo "*** thread support. Consider upgrading libc to a more recent"
6739 echo "*** reentrant version of libc."
6742 if test "$wine_cv_mesa_version_OK" = "no"
6743 then
6744 echo
6745 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6746 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
6749 if test "$wine_cv_mesa_version_threadsafe" = "yes"
6750 then
6751 echo
6752 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
6753 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed"
6754 echo "*** (while we work on a better fix)."
6757 echo
6758 echo "Configure finished. Do 'make depend && make' to compile Wine."
6759 echo