Added missing break statement.
[wine/multimedia.git] / configure
blob4d60b6c82feabc5456503b991a2e989a5701c14e
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-debug compile out all debugging messages"
17 ac_help="$ac_help
18 --enable-opengl force usage of OpenGL even if the latter is thread-safe via pthread"
19 ac_help="$ac_help
20 --disable-trace compile out TRACE messages"
21 ac_help="$ac_help
22 --without-curses do not use curses"
23 ac_help="$ac_help
24 --without-reentrant-x compile for use with non-reentrant X libraries"
25 ac_help="$ac_help
26 --with-x use the X Window System"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
31 build=NONE
32 cache_file=./config.cache
33 exec_prefix=NONE
34 host=NONE
35 no_create=
36 nonopt=NONE
37 no_recursion=
38 prefix=NONE
39 program_prefix=NONE
40 program_suffix=NONE
41 program_transform_name=s,x,x,
42 silent=
43 site=
44 srcdir=
45 target=NONE
46 verbose=
47 x_includes=NONE
48 x_libraries=NONE
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
63 subdirs=
64 MFLAGS= MAKEFLAGS=
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
67 ac_max_here_lines=12
69 ac_prev=
70 for ac_option
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
76 ac_prev=
77 continue
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
85 # Accept the important Cygnus configure options, so we can diagnose typos.
87 case "$ac_option" in
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
95 ac_prev=build ;;
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97 build="$ac_optarg" ;;
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 case "$ac_option" in
129 *=*) ;;
130 *) ac_optarg=yes ;;
131 esac
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
150 cat << EOF
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
153 Configuration:
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 [same as prefix]
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
168 [PREFIX/share]
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 [PREFIX/com]
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
184 cat << EOF
185 Host type:
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
200 exit 0 ;;
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255 no_recursion=yes ;;
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
315 | --sha | --sh)
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 | --sha=* | --sh=*)
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.13"
350 exit 0 ;;
352 -with-* | --with-*)
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 case "$ac_option" in
360 *=*) ;;
361 *) ac_optarg=yes ;;
362 esac
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 nonopt="$ac_option"
405 esac
406 done
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
415 # 0 standard input
416 # 1 file creation
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
423 exec 6>/dev/null
424 else
425 exec 6>&1
427 exec 5>./config.log
429 echo "\
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
432 " 1>&5
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
436 ac_configure_args=
437 for ac_arg
439 case "$ac_arg" in
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 esac
448 done
450 # NLS nuisances.
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
463 echo > confdefs.h
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=controls/edit.c
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
473 ac_prog=$0
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 srcdir=$ac_confdir
477 if test ! -r $srcdir/$ac_unique_file; then
478 srcdir=..
480 else
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 else
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 else
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
503 . "$ac_site_file"
505 done
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510 else
511 echo "creating cache $cache_file"
512 > $cache_file
515 ac_ext=c
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
522 ac_exeext=
523 ac_objext=o
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='
528 ' ac_t=' '
529 else
530 ac_n=-n ac_c= ac_t=
532 else
533 ac_n= ac_c='\c' ac_t=
538 ac_aux_dir=
539 for ac_dir in tools $srcdir/tools; do
540 if test -f $ac_dir/install-sh; then
541 ac_aux_dir=$ac_dir
542 ac_install_sh="$ac_aux_dir/install-sh -c"
543 break
544 elif test -f $ac_dir/install.sh; then
545 ac_aux_dir=$ac_dir
546 ac_install_sh="$ac_aux_dir/install.sh -c"
547 break
549 done
550 if test -z "$ac_aux_dir"; then
551 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
553 ac_config_guess=$ac_aux_dir/config.guess
554 ac_config_sub=$ac_aux_dir/config.sub
555 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
559 LIBEXT=so # library type .so or .a
560 TRACE_MSGS=yes # the TRACE() macro
561 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
562 CURSES=yes
563 OPENGL=normal
565 # Check whether --enable-debug or --disable-debug was given.
566 if test "${enable_debug+set}" = set; then
567 enableval="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
572 # Check whether --enable-opengl or --disable-opengl was given.
573 if test "${enable_opengl+set}" = set; then
574 enableval="$enable_opengl"
575 if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi
579 # Check whether --enable-trace or --disable-trace was given.
580 if test "${enable_trace+set}" = set; then
581 enableval="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
586 # Check whether --with-curses or --without-curses was given.
587 if test "${with_curses+set}" = set; then
588 withval="$with_curses"
589 if test "$withval" = "no"; then CURSES="no"; fi
593 # Check whether --with-reentrant-x or --without-reentrant-x was given.
594 if test "${with_reentrant_x+set}" = set; then
595 withval="$with_reentrant_x"
602 if test "$DEBUG_MSGS" = "no"
603 then
604 OPTIONS="$OPTIONS -DNO_DEBUG_MSGS"
607 if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
608 then
609 OPTIONS="$OPTIONS -DNO_TRACE_MSGS"
613 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
614 echo "configure:615: checking whether ${MAKE-make} sets \${MAKE}" >&5
615 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
616 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
618 else
619 cat > conftestmake <<\EOF
620 all:
621 @echo 'ac_maketemp="${MAKE}"'
623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
624 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
625 if test -n "$ac_maketemp"; then
626 eval ac_cv_prog_make_${ac_make}_set=yes
627 else
628 eval ac_cv_prog_make_${ac_make}_set=no
630 rm -f conftestmake
632 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
633 echo "$ac_t""yes" 1>&6
634 SET_MAKE=
635 else
636 echo "$ac_t""no" 1>&6
637 SET_MAKE="MAKE=${MAKE-make}"
640 # Extract the first word of "gcc", so it can be a program name with args.
641 set dummy gcc; ac_word=$2
642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
643 echo "configure:644: checking for $ac_word" >&5
644 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
646 else
647 if test -n "$CC"; then
648 ac_cv_prog_CC="$CC" # Let the user override the test.
649 else
650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
651 ac_dummy="$PATH"
652 for ac_dir in $ac_dummy; do
653 test -z "$ac_dir" && ac_dir=.
654 if test -f $ac_dir/$ac_word; then
655 ac_cv_prog_CC="gcc"
656 break
658 done
659 IFS="$ac_save_ifs"
662 CC="$ac_cv_prog_CC"
663 if test -n "$CC"; then
664 echo "$ac_t""$CC" 1>&6
665 else
666 echo "$ac_t""no" 1>&6
669 if test -z "$CC"; then
670 # Extract the first word of "cc", so it can be a program name with args.
671 set dummy cc; ac_word=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676 else
677 if test -n "$CC"; then
678 ac_cv_prog_CC="$CC" # Let the user override the test.
679 else
680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 ac_prog_rejected=no
682 ac_dummy="$PATH"
683 for ac_dir in $ac_dummy; do
684 test -z "$ac_dir" && ac_dir=.
685 if test -f $ac_dir/$ac_word; then
686 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
687 ac_prog_rejected=yes
688 continue
690 ac_cv_prog_CC="cc"
691 break
693 done
694 IFS="$ac_save_ifs"
695 if test $ac_prog_rejected = yes; then
696 # We found a bogon in the path, so make sure we never use it.
697 set dummy $ac_cv_prog_CC
698 shift
699 if test $# -gt 0; then
700 # We chose a different compiler from the bogus one.
701 # However, it has the same basename, so the bogon will be chosen
702 # first if we set CC to just the basename; use the full file name.
703 shift
704 set dummy "$ac_dir/$ac_word" "$@"
705 shift
706 ac_cv_prog_CC="$@"
711 CC="$ac_cv_prog_CC"
712 if test -n "$CC"; then
713 echo "$ac_t""$CC" 1>&6
714 else
715 echo "$ac_t""no" 1>&6
718 if test -z "$CC"; then
719 case "`uname -s`" in
720 *win32* | *WIN32*)
721 # Extract the first word of "cl", so it can be a program name with args.
722 set dummy cl; ac_word=$2
723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
724 echo "configure:725: checking for $ac_word" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
727 else
728 if test -n "$CC"; then
729 ac_cv_prog_CC="$CC" # Let the user override the test.
730 else
731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
732 ac_dummy="$PATH"
733 for ac_dir in $ac_dummy; do
734 test -z "$ac_dir" && ac_dir=.
735 if test -f $ac_dir/$ac_word; then
736 ac_cv_prog_CC="cl"
737 break
739 done
740 IFS="$ac_save_ifs"
743 CC="$ac_cv_prog_CC"
744 if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
746 else
747 echo "$ac_t""no" 1>&6
750 esac
752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
756 echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
758 ac_ext=c
759 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760 ac_cpp='$CPP $CPPFLAGS'
761 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763 cross_compiling=$ac_cv_prog_cc_cross
765 cat > conftest.$ac_ext << EOF
767 #line 768 "configure"
768 #include "confdefs.h"
770 main(){return(0);}
772 if { (eval echo configure:773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
773 ac_cv_prog_cc_works=yes
774 # If we can't run a trivial program, we are probably using a cross compiler.
775 if (./conftest; exit) 2>/dev/null; then
776 ac_cv_prog_cc_cross=no
777 else
778 ac_cv_prog_cc_cross=yes
780 else
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
783 ac_cv_prog_cc_works=no
785 rm -fr conftest*
786 ac_ext=c
787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788 ac_cpp='$CPP $CPPFLAGS'
789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791 cross_compiling=$ac_cv_prog_cc_cross
793 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
794 if test $ac_cv_prog_cc_works = no; then
795 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
797 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
798 echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
799 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
800 cross_compiling=$ac_cv_prog_cc_cross
802 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
803 echo "configure:804: checking whether we are using GNU C" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
806 else
807 cat > conftest.c <<EOF
808 #ifdef __GNUC__
809 yes;
810 #endif
812 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
813 ac_cv_prog_gcc=yes
814 else
815 ac_cv_prog_gcc=no
819 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
821 if test $ac_cv_prog_gcc = yes; then
822 GCC=yes
823 else
824 GCC=
827 ac_test_CFLAGS="${CFLAGS+set}"
828 ac_save_CFLAGS="$CFLAGS"
829 CFLAGS=
830 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
831 echo "configure:832: checking whether ${CC-cc} accepts -g" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
834 else
835 echo 'void f(){}' > conftest.c
836 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
837 ac_cv_prog_cc_g=yes
838 else
839 ac_cv_prog_cc_g=no
841 rm -f conftest*
845 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
846 if test "$ac_test_CFLAGS" = set; then
847 CFLAGS="$ac_save_CFLAGS"
848 elif test $ac_cv_prog_cc_g = yes; then
849 if test "$GCC" = yes; then
850 CFLAGS="-g -O2"
851 else
852 CFLAGS="-g"
854 else
855 if test "$GCC" = yes; then
856 CFLAGS="-O2"
857 else
858 CFLAGS=
862 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
863 echo "configure:864: checking how to run the C preprocessor" >&5
864 # On Suns, sometimes $CPP names a directory.
865 if test -n "$CPP" && test -d "$CPP"; then
866 CPP=
868 if test -z "$CPP"; then
869 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
871 else
872 # This must be in double quotes, not single quotes, because CPP may get
873 # substituted into the Makefile and "${CC-cc}" will confuse make.
874 CPP="${CC-cc} -E"
875 # On the NeXT, cc -E runs the code through the compiler's parser,
876 # not just through cpp.
877 cat > conftest.$ac_ext <<EOF
878 #line 879 "configure"
879 #include "confdefs.h"
880 #include <assert.h>
881 Syntax Error
883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
884 { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
886 if test -z "$ac_err"; then
888 else
889 echo "$ac_err" >&5
890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
892 rm -rf conftest*
893 CPP="${CC-cc} -E -traditional-cpp"
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
897 #include <assert.h>
898 Syntax Error
900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
901 { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
903 if test -z "$ac_err"; then
905 else
906 echo "$ac_err" >&5
907 echo "configure: failed program was:" >&5
908 cat conftest.$ac_ext >&5
909 rm -rf conftest*
910 CPP="${CC-cc} -nologo -E"
911 cat > conftest.$ac_ext <<EOF
912 #line 913 "configure"
913 #include "confdefs.h"
914 #include <assert.h>
915 Syntax Error
917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918 { (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
920 if test -z "$ac_err"; then
922 else
923 echo "$ac_err" >&5
924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
926 rm -rf conftest*
927 CPP=/lib/cpp
929 rm -f conftest*
931 rm -f conftest*
933 rm -f conftest*
934 ac_cv_prog_CPP="$CPP"
936 CPP="$ac_cv_prog_CPP"
937 else
938 ac_cv_prog_CPP="$CPP"
940 echo "$ac_t""$CPP" 1>&6
942 # If we find X, set shell vars x_includes and x_libraries to the
943 # paths, otherwise set no_x=yes.
944 # Uses ac_ vars as temps to allow command line to override cache and checks.
945 # --without-x overrides everything else, but does not touch the cache.
946 echo $ac_n "checking for X""... $ac_c" 1>&6
947 echo "configure:948: checking for X" >&5
949 # Check whether --with-x or --without-x was given.
950 if test "${with_x+set}" = set; then
951 withval="$with_x"
955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
956 if test "x$with_x" = xno; then
957 # The user explicitly disabled X.
958 have_x=disabled
959 else
960 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
961 # Both variables are already set.
962 have_x=yes
963 else
964 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
966 else
967 # One or both of the vars are not set, and there is no cached value.
968 ac_x_includes=NO ac_x_libraries=NO
969 rm -fr conftestdir
970 if mkdir conftestdir; then
971 cd conftestdir
972 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
973 cat > Imakefile <<'EOF'
974 acfindx:
975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
977 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
980 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
981 for ac_extension in a so sl; do
982 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
983 test -f $ac_im_libdir/libX11.$ac_extension; then
984 ac_im_usrlibdir=$ac_im_libdir; break
986 done
987 # Screen out bogus values from the imake configuration. They are
988 # bogus both because they are the default anyway, and because
989 # using them would break gcc on systems where it needs fixed includes.
990 case "$ac_im_incroot" in
991 /usr/include) ;;
992 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
993 esac
994 case "$ac_im_usrlibdir" in
995 /usr/lib | /lib) ;;
996 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
997 esac
999 cd ..
1000 rm -fr conftestdir
1003 if test "$ac_x_includes" = NO; then
1004 # Guess where to find include files, by looking for this one X11 .h file.
1005 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1007 # First, try using that file with no special directory specified.
1008 cat > conftest.$ac_ext <<EOF
1009 #line 1010 "configure"
1010 #include "confdefs.h"
1011 #include <$x_direct_test_include>
1013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1014 { (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1016 if test -z "$ac_err"; then
1017 rm -rf conftest*
1018 # We can compile using X headers with no special include directory.
1019 ac_x_includes=
1020 else
1021 echo "$ac_err" >&5
1022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
1024 rm -rf conftest*
1025 # Look for the header file in a standard set of common directories.
1026 # Check X11 before X11Rn because it is often a symlink to the current release.
1027 for ac_dir in \
1028 /usr/X11/include \
1029 /usr/X11R6/include \
1030 /usr/X11R5/include \
1031 /usr/X11R4/include \
1033 /usr/include/X11 \
1034 /usr/include/X11R6 \
1035 /usr/include/X11R5 \
1036 /usr/include/X11R4 \
1038 /usr/local/X11/include \
1039 /usr/local/X11R6/include \
1040 /usr/local/X11R5/include \
1041 /usr/local/X11R4/include \
1043 /usr/local/include/X11 \
1044 /usr/local/include/X11R6 \
1045 /usr/local/include/X11R5 \
1046 /usr/local/include/X11R4 \
1048 /usr/X386/include \
1049 /usr/x386/include \
1050 /usr/XFree86/include/X11 \
1052 /usr/include \
1053 /usr/local/include \
1054 /usr/unsupported/include \
1055 /usr/athena/include \
1056 /usr/local/x11r5/include \
1057 /usr/lpp/Xamples/include \
1059 /usr/openwin/include \
1060 /usr/openwin/share/include \
1063 if test -r "$ac_dir/$x_direct_test_include"; then
1064 ac_x_includes=$ac_dir
1065 break
1067 done
1069 rm -f conftest*
1070 fi # $ac_x_includes = NO
1072 if test "$ac_x_libraries" = NO; then
1073 # Check for the libraries.
1075 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1076 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1078 # See if we find them without any special options.
1079 # Don't add to $LIBS permanently.
1080 ac_save_LIBS="$LIBS"
1081 LIBS="-l$x_direct_test_library $LIBS"
1082 cat > conftest.$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1086 int main() {
1087 ${x_direct_test_function}()
1088 ; return 0; }
1090 if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1091 rm -rf conftest*
1092 LIBS="$ac_save_LIBS"
1093 # We can link X programs with no special library path.
1094 ac_x_libraries=
1095 else
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1098 rm -rf conftest*
1099 LIBS="$ac_save_LIBS"
1100 # First see if replacing the include by lib works.
1101 # Check X11 before X11Rn because it is often a symlink to the current release.
1102 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1103 /usr/X11/lib \
1104 /usr/X11R6/lib \
1105 /usr/X11R5/lib \
1106 /usr/X11R4/lib \
1108 /usr/lib/X11 \
1109 /usr/lib/X11R6 \
1110 /usr/lib/X11R5 \
1111 /usr/lib/X11R4 \
1113 /usr/local/X11/lib \
1114 /usr/local/X11R6/lib \
1115 /usr/local/X11R5/lib \
1116 /usr/local/X11R4/lib \
1118 /usr/local/lib/X11 \
1119 /usr/local/lib/X11R6 \
1120 /usr/local/lib/X11R5 \
1121 /usr/local/lib/X11R4 \
1123 /usr/X386/lib \
1124 /usr/x386/lib \
1125 /usr/XFree86/lib/X11 \
1127 /usr/lib \
1128 /usr/local/lib \
1129 /usr/unsupported/lib \
1130 /usr/athena/lib \
1131 /usr/local/x11r5/lib \
1132 /usr/lpp/Xamples/lib \
1133 /lib/usr/lib/X11 \
1135 /usr/openwin/lib \
1136 /usr/openwin/share/lib \
1139 for ac_extension in a so sl; do
1140 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1141 ac_x_libraries=$ac_dir
1142 break 2
1144 done
1145 done
1147 rm -f conftest*
1148 fi # $ac_x_libraries = NO
1150 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1151 # Didn't find X anywhere. Cache the known absence of X.
1152 ac_cv_have_x="have_x=no"
1153 else
1154 # Record where we found X for the cache.
1155 ac_cv_have_x="have_x=yes \
1156 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1160 eval "$ac_cv_have_x"
1161 fi # $with_x != no
1163 if test "$have_x" != yes; then
1164 echo "$ac_t""$have_x" 1>&6
1165 no_x=yes
1166 else
1167 # If each of the values was on the command line, it overrides each guess.
1168 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1169 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1170 # Update the cache value to reflect the command line values.
1171 ac_cv_have_x="have_x=yes \
1172 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1173 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1176 if test "$no_x" = yes; then
1177 # Not all programs may use this symbol, but it does not hurt to define it.
1178 cat >> confdefs.h <<\EOF
1179 #define X_DISPLAY_MISSING 1
1182 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1183 else
1184 if test -n "$x_includes"; then
1185 X_CFLAGS="$X_CFLAGS -I$x_includes"
1188 # It would also be nice to do this for all -L options, not just this one.
1189 if test -n "$x_libraries"; then
1190 X_LIBS="$X_LIBS -L$x_libraries"
1191 # For Solaris; some versions of Sun CC require a space after -R and
1192 # others require no space. Words are not sufficient . . . .
1193 case "`(uname -sr) 2>/dev/null`" in
1194 "SunOS 5"*)
1195 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether -R must be followed by a space" >&5
1197 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1202 int main() {
1204 ; return 0; }
1206 if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1207 rm -rf conftest*
1208 ac_R_nospace=yes
1209 else
1210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
1212 rm -rf conftest*
1213 ac_R_nospace=no
1215 rm -f conftest*
1216 if test $ac_R_nospace = yes; then
1217 echo "$ac_t""no" 1>&6
1218 X_LIBS="$X_LIBS -R$x_libraries"
1219 else
1220 LIBS="$ac_xsave_LIBS -R $x_libraries"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1225 int main() {
1227 ; return 0; }
1229 if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1230 rm -rf conftest*
1231 ac_R_space=yes
1232 else
1233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1235 rm -rf conftest*
1236 ac_R_space=no
1238 rm -f conftest*
1239 if test $ac_R_space = yes; then
1240 echo "$ac_t""yes" 1>&6
1241 X_LIBS="$X_LIBS -R $x_libraries"
1242 else
1243 echo "$ac_t""neither works" 1>&6
1246 LIBS="$ac_xsave_LIBS"
1247 esac
1250 # Check for system-dependent libraries X programs must link with.
1251 # Do this before checking for the system-independent R6 libraries
1252 # (-lICE), since we may need -lsocket or whatever for X linking.
1254 if test "$ISC" = yes; then
1255 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1256 else
1257 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1258 # libraries were built with DECnet support. And karl@cs.umb.edu says
1259 # the Alpha needs dnet_stub (dnet does not exist).
1260 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1261 echo "configure:1262: checking for dnet_ntoa in -ldnet" >&5
1262 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1265 else
1266 ac_save_LIBS="$LIBS"
1267 LIBS="-ldnet $LIBS"
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 /* Override any gcc2 internal prototype to avoid an error. */
1272 /* We use char because int might match the return type of a gcc2
1273 builtin and then its argument prototype would still apply. */
1274 char dnet_ntoa();
1276 int main() {
1277 dnet_ntoa()
1278 ; return 0; }
1280 if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1281 rm -rf conftest*
1282 eval "ac_cv_lib_$ac_lib_var=yes"
1283 else
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1286 rm -rf conftest*
1287 eval "ac_cv_lib_$ac_lib_var=no"
1289 rm -f conftest*
1290 LIBS="$ac_save_LIBS"
1293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1294 echo "$ac_t""yes" 1>&6
1295 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1296 else
1297 echo "$ac_t""no" 1>&6
1300 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1301 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1302 echo "configure:1303: checking for dnet_ntoa in -ldnet_stub" >&5
1303 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1306 else
1307 ac_save_LIBS="$LIBS"
1308 LIBS="-ldnet_stub $LIBS"
1309 cat > conftest.$ac_ext <<EOF
1310 #line 1311 "configure"
1311 #include "confdefs.h"
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1315 char dnet_ntoa();
1317 int main() {
1318 dnet_ntoa()
1319 ; return 0; }
1321 if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1322 rm -rf conftest*
1323 eval "ac_cv_lib_$ac_lib_var=yes"
1324 else
1325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
1327 rm -rf conftest*
1328 eval "ac_cv_lib_$ac_lib_var=no"
1330 rm -f conftest*
1331 LIBS="$ac_save_LIBS"
1334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1335 echo "$ac_t""yes" 1>&6
1336 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1337 else
1338 echo "$ac_t""no" 1>&6
1343 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1344 # to get the SysV transport functions.
1345 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1346 # needs -lnsl.
1347 # The nsl library prevents programs from opening the X display
1348 # on Irix 5.2, according to dickey@clark.net.
1349 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1350 echo "configure:1351: checking for gethostbyname" >&5
1351 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1357 /* System header to define __stub macros and hopefully few prototypes,
1358 which can conflict with char gethostbyname(); below. */
1359 #include <assert.h>
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1362 builtin and then its argument prototype would still apply. */
1363 char gethostbyname();
1365 int main() {
1367 /* The GNU C library defines this for functions which it implements
1368 to always fail with ENOSYS. Some functions are actually named
1369 something starting with __ and the normal name is an alias. */
1370 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1371 choke me
1372 #else
1373 gethostbyname();
1374 #endif
1376 ; return 0; }
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1379 rm -rf conftest*
1380 eval "ac_cv_func_gethostbyname=yes"
1381 else
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 eval "ac_cv_func_gethostbyname=no"
1387 rm -f conftest*
1390 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1393 else
1394 echo "$ac_t""no" 1>&6
1397 if test $ac_cv_func_gethostbyname = no; then
1398 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1399 echo "configure:1400: checking for gethostbyname in -lnsl" >&5
1400 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 ac_save_LIBS="$LIBS"
1405 LIBS="-lnsl $LIBS"
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1409 /* Override any gcc2 internal prototype to avoid an error. */
1410 /* We use char because int might match the return type of a gcc2
1411 builtin and then its argument prototype would still apply. */
1412 char gethostbyname();
1414 int main() {
1415 gethostbyname()
1416 ; return 0; }
1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1419 rm -rf conftest*
1420 eval "ac_cv_lib_$ac_lib_var=yes"
1421 else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425 eval "ac_cv_lib_$ac_lib_var=no"
1427 rm -f conftest*
1428 LIBS="$ac_save_LIBS"
1431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1432 echo "$ac_t""yes" 1>&6
1433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1434 else
1435 echo "$ac_t""no" 1>&6
1440 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1441 # socket/setsockopt and other routines are undefined under SCO ODT
1442 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1443 # on later versions), says simon@lia.di.epfl.ch: it contains
1444 # gethostby* variants that don't use the nameserver (or something).
1445 # -lsocket must be given before -lnsl if both are needed.
1446 # We assume that if connect needs -lnsl, so does gethostbyname.
1447 echo $ac_n "checking for connect""... $ac_c" 1>&6
1448 echo "configure:1449: checking for connect" >&5
1449 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 /* System header to define __stub macros and hopefully few prototypes,
1456 which can conflict with char connect(); below. */
1457 #include <assert.h>
1458 /* Override any gcc2 internal prototype to avoid an error. */
1459 /* We use char because int might match the return type of a gcc2
1460 builtin and then its argument prototype would still apply. */
1461 char connect();
1463 int main() {
1465 /* The GNU C library defines this for functions which it implements
1466 to always fail with ENOSYS. Some functions are actually named
1467 something starting with __ and the normal name is an alias. */
1468 #if defined (__stub_connect) || defined (__stub___connect)
1469 choke me
1470 #else
1471 connect();
1472 #endif
1474 ; return 0; }
1476 if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1477 rm -rf conftest*
1478 eval "ac_cv_func_connect=yes"
1479 else
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1482 rm -rf conftest*
1483 eval "ac_cv_func_connect=no"
1485 rm -f conftest*
1488 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1491 else
1492 echo "$ac_t""no" 1>&6
1495 if test $ac_cv_func_connect = no; then
1496 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1497 echo "configure:1498: checking for connect in -lsocket" >&5
1498 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1501 else
1502 ac_save_LIBS="$LIBS"
1503 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1507 /* Override any gcc2 internal prototype to avoid an error. */
1508 /* We use char because int might match the return type of a gcc2
1509 builtin and then its argument prototype would still apply. */
1510 char connect();
1512 int main() {
1513 connect()
1514 ; return 0; }
1516 if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1517 rm -rf conftest*
1518 eval "ac_cv_lib_$ac_lib_var=yes"
1519 else
1520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
1522 rm -rf conftest*
1523 eval "ac_cv_lib_$ac_lib_var=no"
1525 rm -f conftest*
1526 LIBS="$ac_save_LIBS"
1529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1530 echo "$ac_t""yes" 1>&6
1531 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1532 else
1533 echo "$ac_t""no" 1>&6
1538 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1539 echo $ac_n "checking for remove""... $ac_c" 1>&6
1540 echo "configure:1541: checking for remove" >&5
1541 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1543 else
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 /* System header to define __stub macros and hopefully few prototypes,
1548 which can conflict with char remove(); below. */
1549 #include <assert.h>
1550 /* Override any gcc2 internal prototype to avoid an error. */
1551 /* We use char because int might match the return type of a gcc2
1552 builtin and then its argument prototype would still apply. */
1553 char remove();
1555 int main() {
1557 /* The GNU C library defines this for functions which it implements
1558 to always fail with ENOSYS. Some functions are actually named
1559 something starting with __ and the normal name is an alias. */
1560 #if defined (__stub_remove) || defined (__stub___remove)
1561 choke me
1562 #else
1563 remove();
1564 #endif
1566 ; return 0; }
1568 if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1569 rm -rf conftest*
1570 eval "ac_cv_func_remove=yes"
1571 else
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 rm -rf conftest*
1575 eval "ac_cv_func_remove=no"
1577 rm -f conftest*
1580 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1583 else
1584 echo "$ac_t""no" 1>&6
1587 if test $ac_cv_func_remove = no; then
1588 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1589 echo "configure:1590: checking for remove in -lposix" >&5
1590 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1593 else
1594 ac_save_LIBS="$LIBS"
1595 LIBS="-lposix $LIBS"
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 /* Override any gcc2 internal prototype to avoid an error. */
1600 /* We use char because int might match the return type of a gcc2
1601 builtin and then its argument prototype would still apply. */
1602 char remove();
1604 int main() {
1605 remove()
1606 ; return 0; }
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1609 rm -rf conftest*
1610 eval "ac_cv_lib_$ac_lib_var=yes"
1611 else
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 rm -rf conftest*
1615 eval "ac_cv_lib_$ac_lib_var=no"
1617 rm -f conftest*
1618 LIBS="$ac_save_LIBS"
1621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1622 echo "$ac_t""yes" 1>&6
1623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1624 else
1625 echo "$ac_t""no" 1>&6
1630 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1631 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1632 echo "configure:1633: checking for shmat" >&5
1633 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635 else
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 /* System header to define __stub macros and hopefully few prototypes,
1640 which can conflict with char shmat(); below. */
1641 #include <assert.h>
1642 /* Override any gcc2 internal prototype to avoid an error. */
1643 /* We use char because int might match the return type of a gcc2
1644 builtin and then its argument prototype would still apply. */
1645 char shmat();
1647 int main() {
1649 /* The GNU C library defines this for functions which it implements
1650 to always fail with ENOSYS. Some functions are actually named
1651 something starting with __ and the normal name is an alias. */
1652 #if defined (__stub_shmat) || defined (__stub___shmat)
1653 choke me
1654 #else
1655 shmat();
1656 #endif
1658 ; return 0; }
1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1661 rm -rf conftest*
1662 eval "ac_cv_func_shmat=yes"
1663 else
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 rm -rf conftest*
1667 eval "ac_cv_func_shmat=no"
1669 rm -f conftest*
1672 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1675 else
1676 echo "$ac_t""no" 1>&6
1679 if test $ac_cv_func_shmat = no; then
1680 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1681 echo "configure:1682: checking for shmat in -lipc" >&5
1682 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685 else
1686 ac_save_LIBS="$LIBS"
1687 LIBS="-lipc $LIBS"
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 /* Override any gcc2 internal prototype to avoid an error. */
1692 /* We use char because int might match the return type of a gcc2
1693 builtin and then its argument prototype would still apply. */
1694 char shmat();
1696 int main() {
1697 shmat()
1698 ; return 0; }
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1701 rm -rf conftest*
1702 eval "ac_cv_lib_$ac_lib_var=yes"
1703 else
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1706 rm -rf conftest*
1707 eval "ac_cv_lib_$ac_lib_var=no"
1709 rm -f conftest*
1710 LIBS="$ac_save_LIBS"
1713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1714 echo "$ac_t""yes" 1>&6
1715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1716 else
1717 echo "$ac_t""no" 1>&6
1723 # Check for libraries that X11R6 Xt/Xaw programs need.
1724 ac_save_LDFLAGS="$LDFLAGS"
1725 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1726 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1727 # check for ICE first), but we must link in the order -lSM -lICE or
1728 # we get undefined symbols. So assume we have SM if we have ICE.
1729 # These have to be linked with before -lX11, unlike the other
1730 # libraries we check for below, so use a different variable.
1731 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1732 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1733 echo "configure:1734: checking for IceConnectionNumber in -lICE" >&5
1734 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737 else
1738 ac_save_LIBS="$LIBS"
1739 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1743 /* Override any gcc2 internal prototype to avoid an error. */
1744 /* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1746 char IceConnectionNumber();
1748 int main() {
1749 IceConnectionNumber()
1750 ; return 0; }
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1753 rm -rf conftest*
1754 eval "ac_cv_lib_$ac_lib_var=yes"
1755 else
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1758 rm -rf conftest*
1759 eval "ac_cv_lib_$ac_lib_var=no"
1761 rm -f conftest*
1762 LIBS="$ac_save_LIBS"
1765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1766 echo "$ac_t""yes" 1>&6
1767 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1768 else
1769 echo "$ac_t""no" 1>&6
1772 LDFLAGS="$ac_save_LDFLAGS"
1776 for ac_prog in 'bison -y' byacc
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779 set dummy $ac_prog; ac_word=$2
1780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1781 echo "configure:1782: checking for $ac_word" >&5
1782 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784 else
1785 if test -n "$YACC"; then
1786 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1787 else
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1789 ac_dummy="$PATH"
1790 for ac_dir in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir=.
1792 if test -f $ac_dir/$ac_word; then
1793 ac_cv_prog_YACC="$ac_prog"
1794 break
1796 done
1797 IFS="$ac_save_ifs"
1800 YACC="$ac_cv_prog_YACC"
1801 if test -n "$YACC"; then
1802 echo "$ac_t""$YACC" 1>&6
1803 else
1804 echo "$ac_t""no" 1>&6
1807 test -n "$YACC" && break
1808 done
1809 test -n "$YACC" || YACC="yacc"
1811 # Extract the first word of "flex", so it can be a program name with args.
1812 set dummy flex; ac_word=$2
1813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1814 echo "configure:1815: checking for $ac_word" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817 else
1818 if test -n "$LEX"; then
1819 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1820 else
1821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1822 ac_dummy="$PATH"
1823 for ac_dir in $ac_dummy; do
1824 test -z "$ac_dir" && ac_dir=.
1825 if test -f $ac_dir/$ac_word; then
1826 ac_cv_prog_LEX="flex"
1827 break
1829 done
1830 IFS="$ac_save_ifs"
1831 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1834 LEX="$ac_cv_prog_LEX"
1835 if test -n "$LEX"; then
1836 echo "$ac_t""$LEX" 1>&6
1837 else
1838 echo "$ac_t""no" 1>&6
1841 if test -z "$LEXLIB"
1842 then
1843 case "$LEX" in
1844 flex*) ac_lib=fl ;;
1845 *) ac_lib=l ;;
1846 esac
1847 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1848 echo "configure:1849: checking for yywrap in -l$ac_lib" >&5
1849 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853 ac_save_LIBS="$LIBS"
1854 LIBS="-l$ac_lib $LIBS"
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1858 /* Override any gcc2 internal prototype to avoid an error. */
1859 /* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
1861 char yywrap();
1863 int main() {
1864 yywrap()
1865 ; return 0; }
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1868 rm -rf conftest*
1869 eval "ac_cv_lib_$ac_lib_var=yes"
1870 else
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1873 rm -rf conftest*
1874 eval "ac_cv_lib_$ac_lib_var=no"
1876 rm -f conftest*
1877 LIBS="$ac_save_LIBS"
1880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1881 echo "$ac_t""yes" 1>&6
1882 LEXLIB="-l$ac_lib"
1883 else
1884 echo "$ac_t""no" 1>&6
1890 for ac_prog in $YACC bison yacc
1892 # Extract the first word of "$ac_prog", so it can be a program name with args.
1893 set dummy $ac_prog; ac_word=$2
1894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1895 echo "configure:1896: checking for $ac_word" >&5
1896 if eval "test \"`echo '$''{'ac_cv_prog_XYACC'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1898 else
1899 if test -n "$XYACC"; then
1900 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
1901 else
1902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1903 ac_dummy="$PATH"
1904 for ac_dir in $ac_dummy; do
1905 test -z "$ac_dir" && ac_dir=.
1906 if test -f $ac_dir/$ac_word; then
1907 ac_cv_prog_XYACC="$ac_prog"
1908 break
1910 done
1911 IFS="$ac_save_ifs"
1914 XYACC="$ac_cv_prog_XYACC"
1915 if test -n "$XYACC"; then
1916 echo "$ac_t""$XYACC" 1>&6
1917 else
1918 echo "$ac_t""no" 1>&6
1921 test -n "$XYACC" && break
1922 done
1923 test -n "$XYACC" || XYACC="none"
1925 if test "$XYACC" = "none"
1926 then
1927 echo "*** Error: No suitable bison/yacc found. ***"
1928 echo " Please install the 'bison' package."
1929 exit 1
1931 for ac_prog in $LEX flex lex
1933 # Extract the first word of "$ac_prog", so it can be a program name with args.
1934 set dummy $ac_prog; ac_word=$2
1935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_word" >&5
1937 if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1939 else
1940 if test -n "$XLEX"; then
1941 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1942 else
1943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1944 ac_dummy="$PATH"
1945 for ac_dir in $ac_dummy; do
1946 test -z "$ac_dir" && ac_dir=.
1947 if test -f $ac_dir/$ac_word; then
1948 ac_cv_prog_XLEX="$ac_prog"
1949 break
1951 done
1952 IFS="$ac_save_ifs"
1955 XLEX="$ac_cv_prog_XLEX"
1956 if test -n "$XLEX"; then
1957 echo "$ac_t""$XLEX" 1>&6
1958 else
1959 echo "$ac_t""no" 1>&6
1962 test -n "$XLEX" && break
1963 done
1964 test -n "$XLEX" || XLEX="none"
1966 if test "$XLEX" = "none"
1967 then
1968 echo "*** Error: No suitable lex found. ***"
1969 echo " Please install the 'flex' package."
1970 exit 1
1972 # Extract the first word of "ranlib", so it can be a program name with args.
1973 set dummy ranlib; ac_word=$2
1974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1975 echo "configure:1976: checking for $ac_word" >&5
1976 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1978 else
1979 if test -n "$RANLIB"; then
1980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1981 else
1982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1983 ac_dummy="$PATH"
1984 for ac_dir in $ac_dummy; do
1985 test -z "$ac_dir" && ac_dir=.
1986 if test -f $ac_dir/$ac_word; then
1987 ac_cv_prog_RANLIB="ranlib"
1988 break
1990 done
1991 IFS="$ac_save_ifs"
1992 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1995 RANLIB="$ac_cv_prog_RANLIB"
1996 if test -n "$RANLIB"; then
1997 echo "$ac_t""$RANLIB" 1>&6
1998 else
1999 echo "$ac_t""no" 1>&6
2002 # Find a good install program. We prefer a C program (faster),
2003 # so one script is as good as another. But avoid the broken or
2004 # incompatible versions:
2005 # SysV /etc/install, /usr/sbin/install
2006 # SunOS /usr/etc/install
2007 # IRIX /sbin/install
2008 # AIX /bin/install
2009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2012 # ./install, which can be erroneously created by make from ./install.sh.
2013 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2014 echo "configure:2015: checking for a BSD compatible install" >&5
2015 if test -z "$INSTALL"; then
2016 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018 else
2019 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2020 for ac_dir in $PATH; do
2021 # Account for people who put trailing slashes in PATH elements.
2022 case "$ac_dir/" in
2023 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2025 # OSF1 and SCO ODT 3.0 have their own names for install.
2026 # Don't use installbsd from OSF since it installs stuff as root
2027 # by default.
2028 for ac_prog in ginstall scoinst install; do
2029 if test -f $ac_dir/$ac_prog; then
2030 if test $ac_prog = install &&
2031 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2032 # AIX install. It has an incompatible calling convention.
2034 else
2035 ac_cv_path_install="$ac_dir/$ac_prog -c"
2036 break 2
2039 done
2041 esac
2042 done
2043 IFS="$ac_save_IFS"
2046 if test "${ac_cv_path_install+set}" = set; then
2047 INSTALL="$ac_cv_path_install"
2048 else
2049 # As a last resort, use the slow shell script. We don't cache a
2050 # path for INSTALL within a source directory, because that will
2051 # break other packages using the cache if that directory is
2052 # removed, or if the path is relative.
2053 INSTALL="$ac_install_sh"
2056 echo "$ac_t""$INSTALL" 1>&6
2058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2059 # It thinks the first close brace ends the variable substitution.
2060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2067 echo "configure:2068: checking whether ln -s works" >&5
2068 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071 rm -f conftestdata
2072 if ln -s X conftestdata 2>/dev/null
2073 then
2074 rm -f conftestdata
2075 ac_cv_prog_LN_S="ln -s"
2076 else
2077 ac_cv_prog_LN_S=ln
2080 LN_S="$ac_cv_prog_LN_S"
2081 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2082 echo "$ac_t""yes" 1>&6
2083 else
2084 echo "$ac_t""no" 1>&6
2087 # Extract the first word of "c2man", so it can be a program name with args.
2088 set dummy c2man; ac_word=$2
2089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_word" >&5
2091 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094 if test -n "$C2MAN"; then
2095 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2096 else
2097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2098 ac_dummy="$PATH"
2099 for ac_dir in $ac_dummy; do
2100 test -z "$ac_dir" && ac_dir=.
2101 if test -f $ac_dir/$ac_word; then
2102 ac_cv_prog_C2MAN="c2man"
2103 break
2105 done
2106 IFS="$ac_save_ifs"
2107 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
2110 C2MAN="$ac_cv_prog_C2MAN"
2111 if test -n "$C2MAN"; then
2112 echo "$ac_t""$C2MAN" 1>&6
2113 else
2114 echo "$ac_t""no" 1>&6
2117 # Extract the first word of "ldconfig", so it can be a program name with args.
2118 set dummy ldconfig; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2123 else
2124 case "$LDCONFIG" in
2126 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2128 ?:/*)
2129 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2133 ac_dummy="/sbin:/usr/sbin:$PATH"
2134 for ac_dir in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/$ac_word; then
2137 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2138 break
2140 done
2141 IFS="$ac_save_ifs"
2142 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
2144 esac
2146 LDCONFIG="$ac_cv_path_LDCONFIG"
2147 if test -n "$LDCONFIG"; then
2148 echo "$ac_t""$LDCONFIG" 1>&6
2149 else
2150 echo "$ac_t""no" 1>&6
2153 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2154 echo "configure:2155: checking for Cygwin environment" >&5
2155 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2157 else
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2162 int main() {
2164 #ifndef __CYGWIN__
2165 #define __CYGWIN__ __CYGWIN32__
2166 #endif
2167 return __CYGWIN__;
2168 ; return 0; }
2170 if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2171 rm -rf conftest*
2172 ac_cv_cygwin=yes
2173 else
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 rm -rf conftest*
2177 ac_cv_cygwin=no
2179 rm -f conftest*
2180 rm -f conftest*
2183 echo "$ac_t""$ac_cv_cygwin" 1>&6
2184 CYGWIN=
2185 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2186 # Extract the first word of "dllwrap", so it can be a program name with args.
2187 set dummy dllwrap; ac_word=$2
2188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_word" >&5
2190 if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2192 else
2193 if test -n "$DLLWRAP"; then
2194 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2195 else
2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2197 ac_dummy="$PATH"
2198 for ac_dir in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir=.
2200 if test -f $ac_dir/$ac_word; then
2201 ac_cv_prog_DLLWRAP="dllwrap"
2202 break
2204 done
2205 IFS="$ac_save_ifs"
2206 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2209 DLLWRAP="$ac_cv_prog_DLLWRAP"
2210 if test -n "$DLLWRAP"; then
2211 echo "$ac_t""$DLLWRAP" 1>&6
2212 else
2213 echo "$ac_t""no" 1>&6
2217 for ac_prog in lclint lint
2219 # Extract the first word of "$ac_prog", so it can be a program name with args.
2220 set dummy $ac_prog; ac_word=$2
2221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_word" >&5
2223 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 if test -n "$LINT"; then
2227 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2228 else
2229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2230 ac_dummy="$PATH"
2231 for ac_dir in $ac_dummy; do
2232 test -z "$ac_dir" && ac_dir=.
2233 if test -f $ac_dir/$ac_word; then
2234 ac_cv_prog_LINT="$ac_prog"
2235 break
2237 done
2238 IFS="$ac_save_ifs"
2241 LINT="$ac_cv_prog_LINT"
2242 if test -n "$LINT"; then
2243 echo "$ac_t""$LINT" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2248 test -n "$LINT" && break
2249 done
2251 if test "$LINT" = "lint"
2252 then
2253 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2258 if test "$CYGWIN" = "yes"
2259 then
2260 LDCOMBINE="ld -r --enable-stdcall-fixup"
2261 else
2262 LDCOMBINE="ld -r"
2267 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2268 echo "configure:2269: checking for sqrt in -lm" >&5
2269 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272 else
2273 ac_save_LIBS="$LIBS"
2274 LIBS="-lm $LIBS"
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 /* Override any gcc2 internal prototype to avoid an error. */
2279 /* We use char because int might match the return type of a gcc2
2280 builtin and then its argument prototype would still apply. */
2281 char sqrt();
2283 int main() {
2284 sqrt()
2285 ; return 0; }
2287 if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2288 rm -rf conftest*
2289 eval "ac_cv_lib_$ac_lib_var=yes"
2290 else
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 eval "ac_cv_lib_$ac_lib_var=no"
2296 rm -f conftest*
2297 LIBS="$ac_save_LIBS"
2300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2304 cat >> confdefs.h <<EOF
2305 #define $ac_tr_lib 1
2308 LIBS="-lm $LIBS"
2310 else
2311 echo "$ac_t""no" 1>&6
2314 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2315 echo "configure:2316: checking for i386_set_ldt in -li386" >&5
2316 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 ac_save_LIBS="$LIBS"
2321 LIBS="-li386 $LIBS"
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2328 char i386_set_ldt();
2330 int main() {
2331 i386_set_ldt()
2332 ; return 0; }
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 rm -rf conftest*
2336 eval "ac_cv_lib_$ac_lib_var=yes"
2337 else
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 rm -rf conftest*
2341 eval "ac_cv_lib_$ac_lib_var=no"
2343 rm -f conftest*
2344 LIBS="$ac_save_LIBS"
2347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2349 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2351 cat >> confdefs.h <<EOF
2352 #define $ac_tr_lib 1
2355 LIBS="-li386 $LIBS"
2357 else
2358 echo "$ac_t""no" 1>&6
2361 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2362 echo "configure:2363: checking for _oss_ioctl in -lossaudio" >&5
2363 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2366 else
2367 ac_save_LIBS="$LIBS"
2368 LIBS="-lossaudio $LIBS"
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 /* Override any gcc2 internal prototype to avoid an error. */
2373 /* We use char because int might match the return type of a gcc2
2374 builtin and then its argument prototype would still apply. */
2375 char _oss_ioctl();
2377 int main() {
2378 _oss_ioctl()
2379 ; return 0; }
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2382 rm -rf conftest*
2383 eval "ac_cv_lib_$ac_lib_var=yes"
2384 else
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 rm -rf conftest*
2388 eval "ac_cv_lib_$ac_lib_var=no"
2390 rm -f conftest*
2391 LIBS="$ac_save_LIBS"
2394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2398 cat >> confdefs.h <<EOF
2399 #define $ac_tr_lib 1
2402 LIBS="-lossaudio $LIBS"
2404 else
2405 echo "$ac_t""no" 1>&6
2408 for ac_func in iswalnum
2410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2411 echo "configure:2412: checking for $ac_func" >&5
2412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2414 else
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2418 /* System header to define __stub macros and hopefully few prototypes,
2419 which can conflict with char $ac_func(); below. */
2420 #include <assert.h>
2421 /* Override any gcc2 internal prototype to avoid an error. */
2422 /* We use char because int might match the return type of a gcc2
2423 builtin and then its argument prototype would still apply. */
2424 char $ac_func();
2426 int main() {
2428 /* The GNU C library defines this for functions which it implements
2429 to always fail with ENOSYS. Some functions are actually named
2430 something starting with __ and the normal name is an alias. */
2431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2432 choke me
2433 #else
2434 $ac_func();
2435 #endif
2437 ; return 0; }
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2440 rm -rf conftest*
2441 eval "ac_cv_func_$ac_func=yes"
2442 else
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 rm -rf conftest*
2446 eval "ac_cv_func_$ac_func=no"
2448 rm -f conftest*
2451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2454 cat >> confdefs.h <<EOF
2455 #define $ac_tr_func 1
2458 else
2459 echo "$ac_t""no" 1>&6
2460 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2461 echo "configure:2462: checking for iswalnum in -lw" >&5
2462 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466 ac_save_LIBS="$LIBS"
2467 LIBS="-lw $LIBS"
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2474 char iswalnum();
2476 int main() {
2477 iswalnum()
2478 ; return 0; }
2480 if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2481 rm -rf conftest*
2482 eval "ac_cv_lib_$ac_lib_var=yes"
2483 else
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 rm -rf conftest*
2487 eval "ac_cv_lib_$ac_lib_var=no"
2489 rm -f conftest*
2490 LIBS="$ac_save_LIBS"
2493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2497 cat >> confdefs.h <<EOF
2498 #define $ac_tr_lib 1
2501 LIBS="-lw $LIBS"
2503 else
2504 echo "$ac_t""no" 1>&6
2508 done
2510 for ac_func in gethostbyname
2512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2513 echo "configure:2514: checking for $ac_func" >&5
2514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2516 else
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* System header to define __stub macros and hopefully few prototypes,
2521 which can conflict with char $ac_func(); below. */
2522 #include <assert.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 $ac_func();
2528 int main() {
2530 /* The GNU C library defines this for functions which it implements
2531 to always fail with ENOSYS. Some functions are actually named
2532 something starting with __ and the normal name is an alias. */
2533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2534 choke me
2535 #else
2536 $ac_func();
2537 #endif
2539 ; return 0; }
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2542 rm -rf conftest*
2543 eval "ac_cv_func_$ac_func=yes"
2544 else
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 rm -rf conftest*
2548 eval "ac_cv_func_$ac_func=no"
2550 rm -f conftest*
2553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2556 cat >> confdefs.h <<EOF
2557 #define $ac_tr_func 1
2560 else
2561 echo "$ac_t""no" 1>&6
2562 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2563 echo "configure:2564: checking for gethostbyname in -lnsl" >&5
2564 ac_lib_var=`echo nsl'_'gethostbyname | 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="-lnsl $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 gethostbyname();
2578 int main() {
2579 gethostbyname()
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 nsl | 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="-lnsl $LIBS"
2605 else
2606 echo "$ac_t""no" 1>&6
2610 done
2612 for ac_func in connect
2614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_func" >&5
2616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2618 else
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 /* System header to define __stub macros and hopefully few prototypes,
2623 which can conflict with char $ac_func(); below. */
2624 #include <assert.h>
2625 /* Override any gcc2 internal prototype to avoid an error. */
2626 /* We use char because int might match the return type of a gcc2
2627 builtin and then its argument prototype would still apply. */
2628 char $ac_func();
2630 int main() {
2632 /* The GNU C library defines this for functions which it implements
2633 to always fail with ENOSYS. Some functions are actually named
2634 something starting with __ and the normal name is an alias. */
2635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2636 choke me
2637 #else
2638 $ac_func();
2639 #endif
2641 ; return 0; }
2643 if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2644 rm -rf conftest*
2645 eval "ac_cv_func_$ac_func=yes"
2646 else
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 rm -rf conftest*
2650 eval "ac_cv_func_$ac_func=no"
2652 rm -f conftest*
2655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2656 echo "$ac_t""yes" 1>&6
2657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2658 cat >> confdefs.h <<EOF
2659 #define $ac_tr_func 1
2662 else
2663 echo "$ac_t""no" 1>&6
2664 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2665 echo "configure:2666: checking for connect in -lsocket" >&5
2666 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2669 else
2670 ac_save_LIBS="$LIBS"
2671 LIBS="-lsocket $LIBS"
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 /* Override any gcc2 internal prototype to avoid an error. */
2676 /* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2678 char connect();
2680 int main() {
2681 connect()
2682 ; return 0; }
2684 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2685 rm -rf conftest*
2686 eval "ac_cv_lib_$ac_lib_var=yes"
2687 else
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2690 rm -rf conftest*
2691 eval "ac_cv_lib_$ac_lib_var=no"
2693 rm -f conftest*
2694 LIBS="$ac_save_LIBS"
2697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2698 echo "$ac_t""yes" 1>&6
2699 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2701 cat >> confdefs.h <<EOF
2702 #define $ac_tr_lib 1
2705 LIBS="-lsocket $LIBS"
2707 else
2708 echo "$ac_t""no" 1>&6
2712 done
2714 echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
2715 echo "configure:2716: checking for _xpg4_setrunelocale in -lxpg4" >&5
2716 ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
2717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2719 else
2720 ac_save_LIBS="$LIBS"
2721 LIBS="-lxpg4 $LIBS"
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 /* Override any gcc2 internal prototype to avoid an error. */
2726 /* We use char because int might match the return type of a gcc2
2727 builtin and then its argument prototype would still apply. */
2728 char _xpg4_setrunelocale();
2730 int main() {
2731 _xpg4_setrunelocale()
2732 ; return 0; }
2734 if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2735 rm -rf conftest*
2736 eval "ac_cv_lib_$ac_lib_var=yes"
2737 else
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 rm -rf conftest*
2741 eval "ac_cv_lib_$ac_lib_var=no"
2743 rm -f conftest*
2744 LIBS="$ac_save_LIBS"
2747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2748 echo "$ac_t""yes" 1>&6
2749 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2750 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2751 cat >> confdefs.h <<EOF
2752 #define $ac_tr_lib 1
2755 LIBS="-lxpg4 $LIBS"
2757 else
2758 echo "$ac_t""no" 1>&6
2761 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2762 echo "configure:2763: checking for mmap in -lmmap" >&5
2763 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2766 else
2767 ac_save_LIBS="$LIBS"
2768 LIBS="-lmmap $LIBS"
2769 cat > conftest.$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2772 /* Override any gcc2 internal prototype to avoid an error. */
2773 /* We use char because int might match the return type of a gcc2
2774 builtin and then its argument prototype would still apply. */
2775 char mmap();
2777 int main() {
2778 mmap()
2779 ; return 0; }
2781 if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2782 rm -rf conftest*
2783 eval "ac_cv_lib_$ac_lib_var=yes"
2784 else
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 rm -rf conftest*
2788 eval "ac_cv_lib_$ac_lib_var=no"
2790 rm -f conftest*
2791 LIBS="$ac_save_LIBS"
2794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2795 echo "$ac_t""yes" 1>&6
2796 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2798 cat >> confdefs.h <<EOF
2799 #define $ac_tr_lib 1
2802 LIBS="-lmmap $LIBS"
2804 else
2805 echo "$ac_t""no" 1>&6
2809 UTILLIBS=""
2811 for ac_func in openpty
2813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_func" >&5
2815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2817 else
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 /* System header to define __stub macros and hopefully few prototypes,
2822 which can conflict with char $ac_func(); below. */
2823 #include <assert.h>
2824 /* Override any gcc2 internal prototype to avoid an error. */
2825 /* We use char because int might match the return type of a gcc2
2826 builtin and then its argument prototype would still apply. */
2827 char $ac_func();
2829 int main() {
2831 /* The GNU C library defines this for functions which it implements
2832 to always fail with ENOSYS. Some functions are actually named
2833 something starting with __ and the normal name is an alias. */
2834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2835 choke me
2836 #else
2837 $ac_func();
2838 #endif
2840 ; return 0; }
2842 if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2843 rm -rf conftest*
2844 eval "ac_cv_func_$ac_func=yes"
2845 else
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2848 rm -rf conftest*
2849 eval "ac_cv_func_$ac_func=no"
2851 rm -f conftest*
2854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2857 cat >> confdefs.h <<EOF
2858 #define $ac_tr_func 1
2861 else
2862 echo "$ac_t""no" 1>&6
2863 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2864 echo "configure:2865: checking for openpty in -lutil" >&5
2865 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2868 else
2869 ac_save_LIBS="$LIBS"
2870 LIBS="-lutil $LIBS"
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 /* Override any gcc2 internal prototype to avoid an error. */
2875 /* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2877 char openpty();
2879 int main() {
2880 openpty()
2881 ; return 0; }
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2884 rm -rf conftest*
2885 eval "ac_cv_lib_$ac_lib_var=yes"
2886 else
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2889 rm -rf conftest*
2890 eval "ac_cv_lib_$ac_lib_var=no"
2892 rm -f conftest*
2893 LIBS="$ac_save_LIBS"
2896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2897 echo "$ac_t""yes" 1>&6
2898 cat >> confdefs.h <<\EOF
2899 #define HAVE_OPENPTY 1
2902 UTILLIBS="-lutil"
2904 else
2905 echo "$ac_t""no" 1>&6
2909 done
2912 DLLIBS=""
2914 for ac_hdr in dlfcn.h
2916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_hdr" >&5
2919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2921 else
2922 cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2925 #include <$ac_hdr>
2927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2928 { (eval echo configure:2929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2930 if test -z "$ac_err"; then
2931 rm -rf conftest*
2932 eval "ac_cv_header_$ac_safe=yes"
2933 else
2934 echo "$ac_err" >&5
2935 echo "configure: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2937 rm -rf conftest*
2938 eval "ac_cv_header_$ac_safe=no"
2940 rm -f conftest*
2942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2945 cat >> confdefs.h <<EOF
2946 #define $ac_tr_hdr 1
2948 for ac_func in dlopen
2950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_func" >&5
2952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2954 else
2955 cat > conftest.$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2958 /* System header to define __stub macros and hopefully few prototypes,
2959 which can conflict with char $ac_func(); below. */
2960 #include <assert.h>
2961 /* Override any gcc2 internal prototype to avoid an error. */
2962 /* We use char because int might match the return type of a gcc2
2963 builtin and then its argument prototype would still apply. */
2964 char $ac_func();
2966 int main() {
2968 /* The GNU C library defines this for functions which it implements
2969 to always fail with ENOSYS. Some functions are actually named
2970 something starting with __ and the normal name is an alias. */
2971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2972 choke me
2973 #else
2974 $ac_func();
2975 #endif
2977 ; return 0; }
2979 if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2980 rm -rf conftest*
2981 eval "ac_cv_func_$ac_func=yes"
2982 else
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 rm -rf conftest*
2986 eval "ac_cv_func_$ac_func=no"
2988 rm -f conftest*
2991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2994 cat >> confdefs.h <<EOF
2995 #define $ac_tr_func 1
2998 else
2999 echo "$ac_t""no" 1>&6
3000 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3001 echo "configure:3002: checking for dlopen in -ldl" >&5
3002 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3005 else
3006 ac_save_LIBS="$LIBS"
3007 LIBS="-ldl $LIBS"
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 /* Override any gcc2 internal prototype to avoid an error. */
3012 /* We use char because int might match the return type of a gcc2
3013 builtin and then its argument prototype would still apply. */
3014 char dlopen();
3016 int main() {
3017 dlopen()
3018 ; return 0; }
3020 if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3021 rm -rf conftest*
3022 eval "ac_cv_lib_$ac_lib_var=yes"
3023 else
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3026 rm -rf conftest*
3027 eval "ac_cv_lib_$ac_lib_var=no"
3029 rm -f conftest*
3030 LIBS="$ac_save_LIBS"
3033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3035 cat >> confdefs.h <<\EOF
3036 #define HAVE_DLOPEN 1
3039 DLLIBS="-ldl"
3040 else
3041 echo "$ac_t""no" 1>&6
3042 LIBEXT="a"
3047 done
3049 else
3050 echo "$ac_t""no" 1>&6
3051 LIBEXT="a"
3054 done
3057 JPEGLIB=""
3059 for ac_hdr in jpeglib.h
3061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_hdr" >&5
3064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066 else
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 #include <$ac_hdr>
3072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3073 { (eval echo configure:3074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3075 if test -z "$ac_err"; then
3076 rm -rf conftest*
3077 eval "ac_cv_header_$ac_safe=yes"
3078 else
3079 echo "$ac_err" >&5
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 rm -rf conftest*
3083 eval "ac_cv_header_$ac_safe=no"
3085 rm -f conftest*
3087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3090 cat >> confdefs.h <<EOF
3091 #define $ac_tr_hdr 1
3093 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
3094 echo "configure:3095: checking for jpeg_start_decompress in -ljpeg" >&5
3095 ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3098 else
3099 ac_save_LIBS="$LIBS"
3100 LIBS="-ljpeg $LIBS"
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 /* Override any gcc2 internal prototype to avoid an error. */
3105 /* We use char because int might match the return type of a gcc2
3106 builtin and then its argument prototype would still apply. */
3107 char jpeg_start_decompress();
3109 int main() {
3110 jpeg_start_decompress()
3111 ; return 0; }
3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3114 rm -rf conftest*
3115 eval "ac_cv_lib_$ac_lib_var=yes"
3116 else
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 rm -rf conftest*
3120 eval "ac_cv_lib_$ac_lib_var=no"
3122 rm -f conftest*
3123 LIBS="$ac_save_LIBS"
3126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3127 echo "$ac_t""yes" 1>&6
3128 cat >> confdefs.h <<\EOF
3129 #define HAVE_LIBJPEG 1
3132 JPEGLIB="-ljpeg"
3134 else
3135 echo "$ac_t""no" 1>&6
3139 else
3140 echo "$ac_t""no" 1>&6
3142 done
3148 XFILES=""
3150 OPENGLFILES=""
3152 GLU32FILES=""
3153 if test "$have_x" = "yes"
3154 then
3155 XLIB="-lXext -lX11"
3156 ac_save_CPPFLAGS="$CPPFLAGS"
3157 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3159 for ac_hdr in X11/Xlib.h
3161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3163 echo "configure:3164: checking for $ac_hdr" >&5
3164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3166 else
3167 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 #include <$ac_hdr>
3172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3173 { (eval echo configure:3174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3175 if test -z "$ac_err"; then
3176 rm -rf conftest*
3177 eval "ac_cv_header_$ac_safe=yes"
3178 else
3179 echo "$ac_err" >&5
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3182 rm -rf conftest*
3183 eval "ac_cv_header_$ac_safe=no"
3185 rm -f conftest*
3187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3188 echo "$ac_t""yes" 1>&6
3189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3190 cat >> confdefs.h <<EOF
3191 #define $ac_tr_hdr 1
3194 for ac_hdr in X11/XKBlib.h
3196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3198 echo "configure:3199: checking for $ac_hdr" >&5
3199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3201 else
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 #include <$ac_hdr>
3207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3208 { (eval echo configure:3209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3210 if test -z "$ac_err"; then
3211 rm -rf conftest*
3212 eval "ac_cv_header_$ac_safe=yes"
3213 else
3214 echo "$ac_err" >&5
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3217 rm -rf conftest*
3218 eval "ac_cv_header_$ac_safe=no"
3220 rm -f conftest*
3222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3223 echo "$ac_t""yes" 1>&6
3224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3225 cat >> confdefs.h <<EOF
3226 #define $ac_tr_hdr 1
3228 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
3229 echo "configure:3230: checking for XkbQueryExtension in -lX11" >&5
3230 ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
3231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3233 else
3234 ac_save_LIBS="$LIBS"
3235 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 /* Override any gcc2 internal prototype to avoid an error. */
3240 /* We use char because int might match the return type of a gcc2
3241 builtin and then its argument prototype would still apply. */
3242 char XkbQueryExtension();
3244 int main() {
3245 XkbQueryExtension()
3246 ; return 0; }
3248 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3249 rm -rf conftest*
3250 eval "ac_cv_lib_$ac_lib_var=yes"
3251 else
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -rf conftest*
3255 eval "ac_cv_lib_$ac_lib_var=no"
3257 rm -f conftest*
3258 LIBS="$ac_save_LIBS"
3261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3262 echo "$ac_t""yes" 1>&6
3263 cat >> confdefs.h <<\EOF
3264 #define HAVE_XKB 1
3267 else
3268 echo "$ac_t""no" 1>&6
3272 else
3273 echo "$ac_t""no" 1>&6
3274 echo "configure: warning: XKB extension not found!!" 1>&2
3277 done
3280 for ac_hdr in X11/extensions/XShm.h
3282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3284 echo "configure:3285: checking for $ac_hdr" >&5
3285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3287 else
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 #include <$ac_hdr>
3293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3296 if test -z "$ac_err"; then
3297 rm -rf conftest*
3298 eval "ac_cv_header_$ac_safe=yes"
3299 else
3300 echo "$ac_err" >&5
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3303 rm -rf conftest*
3304 eval "ac_cv_header_$ac_safe=no"
3306 rm -f conftest*
3308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3311 cat >> confdefs.h <<EOF
3312 #define $ac_tr_hdr 1
3314 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3315 echo "configure:3316: checking for XShmQueryExtension in -lXext" >&5
3316 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3319 else
3320 ac_save_LIBS="$LIBS"
3321 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3328 char XShmQueryExtension();
3330 int main() {
3331 XShmQueryExtension()
3332 ; return 0; }
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3335 rm -rf conftest*
3336 eval "ac_cv_lib_$ac_lib_var=yes"
3337 else
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 rm -rf conftest*
3341 eval "ac_cv_lib_$ac_lib_var=no"
3343 rm -f conftest*
3344 LIBS="$ac_save_LIBS"
3347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 cat >> confdefs.h <<\EOF
3350 #define HAVE_LIBXXSHM 1
3353 else
3354 echo "$ac_t""no" 1>&6
3358 else
3359 echo "$ac_t""no" 1>&6
3360 echo "configure: warning: Xshm extension not found!!" 1>&2
3363 done
3366 for ac_hdr in X11/extensions/shape.h
3368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_hdr" >&5
3371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3373 else
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 #include <$ac_hdr>
3379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3380 { (eval echo configure:3381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3382 if test -z "$ac_err"; then
3383 rm -rf conftest*
3384 eval "ac_cv_header_$ac_safe=yes"
3385 else
3386 echo "$ac_err" >&5
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3389 rm -rf conftest*
3390 eval "ac_cv_header_$ac_safe=no"
3392 rm -f conftest*
3394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3395 echo "$ac_t""yes" 1>&6
3396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3397 cat >> confdefs.h <<EOF
3398 #define $ac_tr_hdr 1
3400 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
3401 echo "configure:3402: checking for XShapeQueryExtension in -lXext" >&5
3402 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3405 else
3406 ac_save_LIBS="$LIBS"
3407 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3414 char XShapeQueryExtension();
3416 int main() {
3417 XShapeQueryExtension()
3418 ; return 0; }
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3421 rm -rf conftest*
3422 eval "ac_cv_lib_$ac_lib_var=yes"
3423 else
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3426 rm -rf conftest*
3427 eval "ac_cv_lib_$ac_lib_var=no"
3429 rm -f conftest*
3430 LIBS="$ac_save_LIBS"
3433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 cat >> confdefs.h <<\EOF
3436 #define HAVE_LIBXSHAPE 1
3439 else
3440 echo "$ac_t""no" 1>&6
3444 else
3445 echo "$ac_t""no" 1>&6
3446 echo "configure: warning: XShape extension not found!!" 1>&2
3449 done
3452 for ac_hdr in X11/extensions/xf86dga.h
3454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3456 echo "configure:3457: checking for $ac_hdr" >&5
3457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3459 else
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 #include <$ac_hdr>
3465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3466 { (eval echo configure:3467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3468 if test -z "$ac_err"; then
3469 rm -rf conftest*
3470 eval "ac_cv_header_$ac_safe=yes"
3471 else
3472 echo "$ac_err" >&5
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 rm -rf conftest*
3476 eval "ac_cv_header_$ac_safe=no"
3478 rm -f conftest*
3480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3483 cat >> confdefs.h <<EOF
3484 #define $ac_tr_hdr 1
3486 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3487 echo "configure:3488: checking for XDGAQueryExtension in -lXxf86dga" >&5
3488 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3491 else
3492 ac_save_LIBS="$LIBS"
3493 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3494 $LIBS"
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 /* Override any gcc2 internal prototype to avoid an error. */
3499 /* We use char because int might match the return type of a gcc2
3500 builtin and then its argument prototype would still apply. */
3501 char XDGAQueryExtension();
3503 int main() {
3504 XDGAQueryExtension()
3505 ; return 0; }
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 rm -rf conftest*
3509 eval "ac_cv_lib_$ac_lib_var=yes"
3510 else
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3513 rm -rf conftest*
3514 eval "ac_cv_lib_$ac_lib_var=no"
3516 rm -f conftest*
3517 LIBS="$ac_save_LIBS"
3520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 cat >> confdefs.h <<\EOF
3523 #define HAVE_LIBXXF86DGA2 1
3526 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3528 else
3529 echo "$ac_t""no" 1>&6
3530 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3531 echo "configure:3532: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3532 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3535 else
3536 ac_save_LIBS="$LIBS"
3537 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3538 $LIBS"
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 /* Override any gcc2 internal prototype to avoid an error. */
3543 /* We use char because int might match the return type of a gcc2
3544 builtin and then its argument prototype would still apply. */
3545 char XF86DGAQueryExtension();
3547 int main() {
3548 XF86DGAQueryExtension()
3549 ; return 0; }
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3552 rm -rf conftest*
3553 eval "ac_cv_lib_$ac_lib_var=yes"
3554 else
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3557 rm -rf conftest*
3558 eval "ac_cv_lib_$ac_lib_var=no"
3560 rm -f conftest*
3561 LIBS="$ac_save_LIBS"
3564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3565 echo "$ac_t""yes" 1>&6
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_LIBXXF86DGA 1
3570 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3572 else
3573 echo "$ac_t""no" 1>&6
3580 else
3581 echo "$ac_t""no" 1>&6
3582 echo "configure: warning: DGA extension not found!!" 1>&2
3585 done
3588 for ac_hdr in X11/extensions/xf86vmode.h
3590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3592 echo "configure:3593: checking for $ac_hdr" >&5
3593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3595 else
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <$ac_hdr>
3601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3602 { (eval echo configure:3603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3604 if test -z "$ac_err"; then
3605 rm -rf conftest*
3606 eval "ac_cv_header_$ac_safe=yes"
3607 else
3608 echo "$ac_err" >&5
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3611 rm -rf conftest*
3612 eval "ac_cv_header_$ac_safe=no"
3614 rm -f conftest*
3616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3619 cat >> confdefs.h <<EOF
3620 #define $ac_tr_hdr 1
3622 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3623 echo "configure:3624: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3624 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3627 else
3628 ac_save_LIBS="$LIBS"
3629 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3630 $LIBS"
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637 char XF86VidModeQueryExtension();
3639 int main() {
3640 XF86VidModeQueryExtension()
3641 ; return 0; }
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3644 rm -rf conftest*
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3646 else
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 rm -rf conftest*
3650 eval "ac_cv_lib_$ac_lib_var=no"
3652 rm -f conftest*
3653 LIBS="$ac_save_LIBS"
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 cat >> confdefs.h <<\EOF
3659 #define HAVE_LIBXXF86VM 1
3662 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3664 else
3665 echo "$ac_t""no" 1>&6
3669 else
3670 echo "$ac_t""no" 1>&6
3671 echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3674 done
3677 for ac_hdr in X11/extensions/Xvlib.h
3679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3681 echo "configure:3682: checking for $ac_hdr" >&5
3682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3684 else
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3688 #include <$ac_hdr>
3690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3691 { (eval echo configure:3692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3693 if test -z "$ac_err"; then
3694 rm -rf conftest*
3695 eval "ac_cv_header_$ac_safe=yes"
3696 else
3697 echo "$ac_err" >&5
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3700 rm -rf conftest*
3701 eval "ac_cv_header_$ac_safe=no"
3703 rm -f conftest*
3705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3708 cat >> confdefs.h <<EOF
3709 #define $ac_tr_hdr 1
3711 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
3712 echo "configure:3713: checking for XvShmCreateImage in -lXv" >&5
3713 ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3715 echo $ac_n "(cached) $ac_c" 1>&6
3716 else
3717 ac_save_LIBS="$LIBS"
3718 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3719 $LIBS"
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 /* Override any gcc2 internal prototype to avoid an error. */
3724 /* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3726 char XvShmCreateImage();
3728 int main() {
3729 XvShmCreateImage()
3730 ; return 0; }
3732 if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3733 rm -rf conftest*
3734 eval "ac_cv_lib_$ac_lib_var=yes"
3735 else
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 rm -rf conftest*
3739 eval "ac_cv_lib_$ac_lib_var=no"
3741 rm -f conftest*
3742 LIBS="$ac_save_LIBS"
3745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3746 echo "$ac_t""yes" 1>&6
3747 cat >> confdefs.h <<\EOF
3748 #define HAVE_XVIDEO 1
3751 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3753 else
3754 echo "$ac_t""no" 1>&6
3758 else
3759 echo "$ac_t""no" 1>&6
3760 echo "configure: warning: XVideo extension not found !!" 1>&2
3763 done
3766 for ac_hdr in X11/extensions/Xrender.h
3768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3770 echo "configure:3771: checking for $ac_hdr" >&5
3771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3773 else
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #include <$ac_hdr>
3779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3780 { (eval echo configure:3781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3782 if test -z "$ac_err"; then
3783 rm -rf conftest*
3784 eval "ac_cv_header_$ac_safe=yes"
3785 else
3786 echo "$ac_err" >&5
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3789 rm -rf conftest*
3790 eval "ac_cv_header_$ac_safe=no"
3792 rm -f conftest*
3794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3797 cat >> confdefs.h <<EOF
3798 #define $ac_tr_hdr 1
3800 echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
3801 echo "configure:3802: checking for XRenderQueryExtension in -lXrender" >&5
3802 ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
3803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3805 else
3806 ac_save_LIBS="$LIBS"
3807 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3808 $LIBS"
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* Override any gcc2 internal prototype to avoid an error. */
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815 char XRenderQueryExtension();
3817 int main() {
3818 XRenderQueryExtension()
3819 ; return 0; }
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3822 rm -rf conftest*
3823 eval "ac_cv_lib_$ac_lib_var=yes"
3824 else
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 rm -rf conftest*
3828 eval "ac_cv_lib_$ac_lib_var=no"
3830 rm -f conftest*
3831 LIBS="$ac_save_LIBS"
3834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3836 cat >> confdefs.h <<\EOF
3837 #define HAVE_LIBXRENDER 1
3840 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
3842 else
3843 echo "$ac_t""no" 1>&6
3847 else
3848 echo "$ac_t""no" 1>&6
3849 echo "configure: warning: XRender extension not found !!" 1>&2
3852 done
3857 else
3858 echo "$ac_t""no" 1>&6
3860 done
3862 if test $OPENGL = "yes" -o $OPENGL = "normal"
3863 then
3864 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
3865 then
3866 { echo "configure: error: /usr/X11R6/lib/libGL.a is present on your system.
3867 This prevents linking to OpenGL. Delete the file and restart configure." 1>&2; exit 1; }
3870 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
3872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3874 echo "configure:3875: checking for $ac_hdr" >&5
3875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3876 echo $ac_n "(cached) $ac_c" 1>&6
3877 else
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3881 #include <$ac_hdr>
3883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3884 { (eval echo configure:3885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3886 if test -z "$ac_err"; then
3887 rm -rf conftest*
3888 eval "ac_cv_header_$ac_safe=yes"
3889 else
3890 echo "$ac_err" >&5
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3893 rm -rf conftest*
3894 eval "ac_cv_header_$ac_safe=no"
3896 rm -f conftest*
3898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3899 echo "$ac_t""yes" 1>&6
3900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3901 cat >> confdefs.h <<EOF
3902 #define $ac_tr_hdr 1
3905 else
3906 echo "$ac_t""no" 1>&6
3908 done
3910 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3911 then
3912 echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6
3913 echo "configure:3914: checking for up-to-date OpenGL version" >&5
3914 if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3916 else
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 #include <GL/gl.h>
3921 int main() {
3922 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3923 ; return 0; }
3925 if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926 rm -rf conftest*
3927 wine_cv_opengl_version_OK="yes"
3928 else
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3931 rm -rf conftest*
3932 wine_cv_opengl_version_OK="no"
3935 rm -f conftest*
3939 echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
3941 echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6
3942 echo "configure:3943: checking for thread-safe OpenGL version" >&5
3943 if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3945 else
3946 saved_libs=$LIBS
3947 LIBS="$X_LIBS -lGL"
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3952 int main() {
3953 pthread_getspecific();
3954 ; return 0; }
3956 if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3957 rm -rf conftest*
3958 wine_cv_opengl_version_threadsafe="yes"
3959 else
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 rm -rf conftest*
3963 wine_cv_opengl_version_threadsafe="no"
3965 rm -f conftest*
3966 LIBS=$saved_libs
3970 echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
3972 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
3973 then
3974 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3975 echo "configure:3976: checking for glXCreateContext in -lGL" >&5
3976 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3979 else
3980 ac_save_LIBS="$LIBS"
3981 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3982 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3985 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3988 char glXCreateContext();
3990 int main() {
3991 glXCreateContext()
3992 ; return 0; }
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3995 rm -rf conftest*
3996 eval "ac_cv_lib_$ac_lib_var=yes"
3997 else
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 rm -rf conftest*
4001 eval "ac_cv_lib_$ac_lib_var=no"
4003 rm -f conftest*
4004 LIBS="$ac_save_LIBS"
4007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4008 echo "$ac_t""yes" 1>&6
4009 X_PRE_LIBS="$X_PRE_LIBS -lGL"
4011 else
4012 echo "$ac_t""no" 1>&6
4016 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
4017 then
4018 OPENGLFILES='$(OPENGLFILES)'
4019 cat >> confdefs.h <<\EOF
4020 #define HAVE_OPENGL 1
4024 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
4025 echo "configure:4026: checking for glXGetProcAddressARB in -lGL" >&5
4026 ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
4027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4029 else
4030 ac_save_LIBS="$LIBS"
4031 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4035 /* Override any gcc2 internal prototype to avoid an error. */
4036 /* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */
4038 char glXGetProcAddressARB();
4040 int main() {
4041 glXGetProcAddressARB()
4042 ; return 0; }
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4045 rm -rf conftest*
4046 eval "ac_cv_lib_$ac_lib_var=yes"
4047 else
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 rm -rf conftest*
4051 eval "ac_cv_lib_$ac_lib_var=no"
4053 rm -f conftest*
4054 LIBS="$ac_save_LIBS"
4057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 cat >> confdefs.h <<\EOF
4060 #define HAVE_GLX_GETPROCADDRESS 1
4063 else
4064 echo "$ac_t""no" 1>&6
4068 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
4069 then
4070 echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6
4071 echo "configure:4072: checking for OpenGL extension functions prototypes" >&5
4072 if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4074 else
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4078 #include <GL/gl.h>
4079 #ifdef HAVE_GL_GLEXT_H
4080 # include <GL/glext.h>
4081 #endif
4083 int main() {
4084 PFNGLCOLORTABLEEXTPROC test_proc;
4085 ; return 0; }
4087 if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4088 rm -rf conftest*
4089 wine_cv_extension_prototypes="yes"
4090 else
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4093 rm -rf conftest*
4094 wine_cv_extension_prototypes="no"
4097 rm -f conftest*
4101 echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
4102 if test "$wine_cv_extension_prototypes" = "yes"
4103 then
4104 cat >> confdefs.h <<\EOF
4105 #define HAVE_GLEXT_PROTOTYPES 1
4112 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
4113 echo "configure:4114: checking for gluLookAt in -lGLU" >&5
4114 ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
4115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4116 echo $ac_n "(cached) $ac_c" 1>&6
4117 else
4118 ac_save_LIBS="$LIBS"
4119 LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4120 $LIBS"
4121 cat > conftest.$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4124 /* Override any gcc2 internal prototype to avoid an error. */
4125 /* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4127 char gluLookAt();
4129 int main() {
4130 gluLookAt()
4131 ; return 0; }
4133 if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4134 rm -rf conftest*
4135 eval "ac_cv_lib_$ac_lib_var=yes"
4136 else
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4139 rm -rf conftest*
4140 eval "ac_cv_lib_$ac_lib_var=no"
4142 rm -f conftest*
4143 LIBS="$ac_save_LIBS"
4146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4147 echo "$ac_t""yes" 1>&6
4148 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4149 GLU32FILES='$(GLU32FILES)'
4151 else
4152 echo "$ac_t""no" 1>&6
4159 CPPFLAGS="$ac_save_CPPFLAGS"
4160 XFILES='$(XFILES)'
4161 else
4162 XLIB=""
4163 X_CFLAGS=""
4164 X_LIBS=""
4167 CURSESLIBS=""
4168 if test "$CURSES" = "yes"
4169 then
4170 for ac_hdr in ncurses.h
4172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4174 echo "configure:4175: checking for $ac_hdr" >&5
4175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4177 else
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 #include <$ac_hdr>
4183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4184 { (eval echo configure:4185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4186 if test -z "$ac_err"; then
4187 rm -rf conftest*
4188 eval "ac_cv_header_$ac_safe=yes"
4189 else
4190 echo "$ac_err" >&5
4191 echo "configure: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4193 rm -rf conftest*
4194 eval "ac_cv_header_$ac_safe=no"
4196 rm -f conftest*
4198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4201 cat >> confdefs.h <<EOF
4202 #define $ac_tr_hdr 1
4204 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
4205 echo "configure:4206: checking for waddch in -lncurses" >&5
4206 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4209 else
4210 ac_save_LIBS="$LIBS"
4211 LIBS="-lncurses $LIBS"
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4215 /* Override any gcc2 internal prototype to avoid an error. */
4216 /* We use char because int might match the return type of a gcc2
4217 builtin and then its argument prototype would still apply. */
4218 char waddch();
4220 int main() {
4221 waddch()
4222 ; return 0; }
4224 if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4225 rm -rf conftest*
4226 eval "ac_cv_lib_$ac_lib_var=yes"
4227 else
4228 echo "configure: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4230 rm -rf conftest*
4231 eval "ac_cv_lib_$ac_lib_var=no"
4233 rm -f conftest*
4234 LIBS="$ac_save_LIBS"
4237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4238 echo "$ac_t""yes" 1>&6
4239 cat >> confdefs.h <<\EOF
4240 #define HAVE_LIBNCURSES 1
4243 CURSESLIBS="-lncurses"
4244 else
4245 echo "$ac_t""no" 1>&6
4246 for ac_hdr in curses.h
4248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4250 echo "configure:4251: checking for $ac_hdr" >&5
4251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4253 else
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 #include <$ac_hdr>
4259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4260 { (eval echo configure:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4262 if test -z "$ac_err"; then
4263 rm -rf conftest*
4264 eval "ac_cv_header_$ac_safe=yes"
4265 else
4266 echo "$ac_err" >&5
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 rm -rf conftest*
4270 eval "ac_cv_header_$ac_safe=no"
4272 rm -f conftest*
4274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4277 cat >> confdefs.h <<EOF
4278 #define $ac_tr_hdr 1
4280 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
4281 echo "configure:4282: checking for waddch in -lcurses" >&5
4282 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4285 else
4286 ac_save_LIBS="$LIBS"
4287 LIBS="-lcurses $LIBS"
4288 cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4291 /* Override any gcc2 internal prototype to avoid an error. */
4292 /* We use char because int might match the return type of a gcc2
4293 builtin and then its argument prototype would still apply. */
4294 char waddch();
4296 int main() {
4297 waddch()
4298 ; return 0; }
4300 if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4301 rm -rf conftest*
4302 eval "ac_cv_lib_$ac_lib_var=yes"
4303 else
4304 echo "configure: failed program was:" >&5
4305 cat conftest.$ac_ext >&5
4306 rm -rf conftest*
4307 eval "ac_cv_lib_$ac_lib_var=no"
4309 rm -f conftest*
4310 LIBS="$ac_save_LIBS"
4313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4314 echo "$ac_t""yes" 1>&6
4315 cat >> confdefs.h <<\EOF
4316 #define HAVE_LIBCURSES 1
4319 CURSESLIBS="-lcurses"
4320 else
4321 echo "$ac_t""no" 1>&6
4324 else
4325 echo "$ac_t""no" 1>&6
4327 done
4331 else
4332 echo "$ac_t""no" 1>&6
4334 done
4336 saved_libs="$LIBS"
4337 LIBS="$CURSESLIBS $LIBS"
4338 for ac_func in getbkgd resizeterm
4340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4341 echo "configure:4342: checking for $ac_func" >&5
4342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4344 else
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 /* System header to define __stub macros and hopefully few prototypes,
4349 which can conflict with char $ac_func(); below. */
4350 #include <assert.h>
4351 /* Override any gcc2 internal prototype to avoid an error. */
4352 /* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
4354 char $ac_func();
4356 int main() {
4358 /* The GNU C library defines this for functions which it implements
4359 to always fail with ENOSYS. Some functions are actually named
4360 something starting with __ and the normal name is an alias. */
4361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4362 choke me
4363 #else
4364 $ac_func();
4365 #endif
4367 ; return 0; }
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4370 rm -rf conftest*
4371 eval "ac_cv_func_$ac_func=yes"
4372 else
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4375 rm -rf conftest*
4376 eval "ac_cv_func_$ac_func=no"
4378 rm -f conftest*
4381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4384 cat >> confdefs.h <<EOF
4385 #define $ac_tr_func 1
4388 else
4389 echo "$ac_t""no" 1>&6
4391 done
4393 LIBS="$saved_libs"
4397 CUPSLIBS=""
4398 wine_cv_warn_cups_h=no
4399 echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
4400 echo "configure:4401: checking for cupsGetPPD in -lcups" >&5
4401 ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4404 else
4405 ac_save_LIBS="$LIBS"
4406 LIBS="-lcups $LIBS"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4413 char cupsGetPPD();
4415 int main() {
4416 cupsGetPPD()
4417 ; return 0; }
4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4420 rm -rf conftest*
4421 eval "ac_cv_lib_$ac_lib_var=yes"
4422 else
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4425 rm -rf conftest*
4426 eval "ac_cv_lib_$ac_lib_var=no"
4428 rm -f conftest*
4429 LIBS="$ac_save_LIBS"
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4434 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4435 echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
4436 echo "configure:4437: checking for cups/cups.h" >&5
4437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4439 else
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 #include <cups/cups.h>
4445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4446 { (eval echo configure:4447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4448 if test -z "$ac_err"; then
4449 rm -rf conftest*
4450 eval "ac_cv_header_$ac_safe=yes"
4451 else
4452 echo "$ac_err" >&5
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4455 rm -rf conftest*
4456 eval "ac_cv_header_$ac_safe=no"
4458 rm -f conftest*
4460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4461 echo "$ac_t""yes" 1>&6
4462 cat >> confdefs.h <<\EOF
4463 #define HAVE_CUPS 1
4466 CUPSLIBS="-lcups"
4467 else
4468 echo "$ac_t""no" 1>&6
4469 wine_cv_warn_cups_h=yes
4473 else
4474 echo "$ac_t""no" 1>&6
4479 echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
4480 echo "configure:4481: checking for FT_Init_FreeType in -lfreetype" >&5
4481 ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4484 else
4485 ac_save_LIBS="$LIBS"
4486 LIBS="-lfreetype $X_LIBS $LIBS"
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4493 char FT_Init_FreeType();
4495 int main() {
4496 FT_Init_FreeType()
4497 ; return 0; }
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4500 rm -rf conftest*
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4502 else
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4505 rm -rf conftest*
4506 eval "ac_cv_lib_$ac_lib_var=no"
4508 rm -f conftest*
4509 LIBS="$ac_save_LIBS"
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 ft_lib=yes
4515 else
4516 echo "$ac_t""no" 1>&6
4517 ft_lib=no
4520 if test "$ft_lib" = "no"
4521 then
4522 FREETYPELIBS=""
4523 FREETYPEINCL=""
4524 wine_cv_msg_freetype=no
4525 else
4526 # Extract the first word of "freetype-config", so it can be a program name with args.
4527 set dummy freetype-config; ac_word=$2
4528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4529 echo "configure:4530: checking for $ac_word" >&5
4530 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4532 else
4533 if test -n "$ft_devel"; then
4534 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4535 else
4536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4537 ac_dummy="$PATH"
4538 for ac_dir in $ac_dummy; do
4539 test -z "$ac_dir" && ac_dir=.
4540 if test -f $ac_dir/$ac_word; then
4541 ac_cv_prog_ft_devel="freetype-config"
4542 break
4544 done
4545 IFS="$ac_save_ifs"
4546 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4549 ft_devel="$ac_cv_prog_ft_devel"
4550 if test -n "$ft_devel"; then
4551 echo "$ac_t""$ft_devel" 1>&6
4552 else
4553 echo "$ac_t""no" 1>&6
4556 if test "$ft_devel" = "no"
4557 then
4558 # Extract the first word of "freetype2-config", so it can be a program name with args.
4559 set dummy freetype2-config; ac_word=$2
4560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4561 echo "configure:4562: checking for $ac_word" >&5
4562 if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4564 else
4565 if test -n "$ft_devel2"; then
4566 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4567 else
4568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4569 ac_dummy="$PATH"
4570 for ac_dir in $ac_dummy; do
4571 test -z "$ac_dir" && ac_dir=.
4572 if test -f $ac_dir/$ac_word; then
4573 ac_cv_prog_ft_devel2="freetype2-config"
4574 break
4576 done
4577 IFS="$ac_save_ifs"
4578 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4581 ft_devel2="$ac_cv_prog_ft_devel2"
4582 if test -n "$ft_devel2"; then
4583 echo "$ac_t""$ft_devel2" 1>&6
4584 else
4585 echo "$ac_t""no" 1>&6
4588 if test "$ft_devel2" = "freetype2-config"
4589 then
4590 ft_devel=$ft_devel2
4593 if test "$ft_devel" = "no"
4594 then
4595 FREETYPELIBS=""
4596 FREETYPEINCL=""
4597 wine_cv_msg_freetype=yes
4598 else
4599 FREETYPELIBS=`$ft_devel --libs`
4600 FREETYPEINCL=`$ft_devel --cflags`
4601 ac_save_CPPFLAGS="$CPPFLAGS"
4602 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4603 for ac_hdr in freetype/freetype.h \
4604 freetype/ftglyph.h \
4605 freetype/tttables.h \
4606 freetype/ftnames.h \
4607 freetype/ftsnames.h \
4608 freetype/ttnameid.h \
4609 freetype/ftoutln.h \
4610 freetype/internal/sfnt.h
4612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_hdr" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4617 else
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4621 #include <$ac_hdr>
4623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4626 if test -z "$ac_err"; then
4627 rm -rf conftest*
4628 eval "ac_cv_header_$ac_safe=yes"
4629 else
4630 echo "$ac_err" >&5
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4633 rm -rf conftest*
4634 eval "ac_cv_header_$ac_safe=no"
4636 rm -f conftest*
4638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_hdr 1
4645 else
4646 echo "$ac_t""no" 1>&6
4648 done
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 #include <ft2build.h>
4654 #include <freetype/fttrigon.h>
4656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4657 { (eval echo configure:4658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4659 if test -z "$ac_err"; then
4660 rm -rf conftest*
4661 cat >> confdefs.h <<\EOF
4662 #define HAVE_FREETYPE_FTTRIGON_H 1
4665 wine_cv_fttrigon=yes
4666 else
4667 echo "$ac_err" >&5
4668 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4670 rm -rf conftest*
4671 wine_cv_fttrigon=no
4673 rm -f conftest*
4674 CPPFLAGS="$ac_save_CPPFLAGS"
4675 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
4676 then
4677 cat >> confdefs.h <<\EOF
4678 #define HAVE_FREETYPE 1
4681 wine_cv_msg_freetype=no
4682 else
4683 FREETYPELIBS=""
4684 FREETYPEINCL=""
4685 wine_cv_msg_freetype=yes
4692 echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6
4693 echo "configure:4694: checking for parport header/ppdev.h" >&5
4694 if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4696 else
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4700 #include <linux/ppdev.h>
4701 int main() {
4702 ioctl (1,PPCLAIM,0)
4703 ; return 0; }
4705 if { (eval echo configure:4706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4706 rm -rf conftest*
4707 ac_cv_c_ppdev="yes"
4708 else
4709 echo "configure: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4711 rm -rf conftest*
4712 ac_cv_c_ppdev="no"
4714 rm -f conftest*
4718 echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4719 if test "$ac_cv_c_ppdev" = "yes"
4720 then
4721 cat >> confdefs.h <<\EOF
4722 #define HAVE_PPDEV 1
4727 echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6
4728 echo "configure:4729: checking for GNU style IPX support" >&5
4729 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4731 else
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4735 #include <sys/socket.h>
4736 #include <netipx/ipx.h>
4737 int main() {
4738 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4739 ; return 0; }
4741 if { (eval echo configure:4742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4742 rm -rf conftest*
4743 ac_cv_c_ipx_gnu="yes"
4744 else
4745 echo "configure: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4747 rm -rf conftest*
4748 ac_cv_c_ipx_gnu="no"
4750 rm -f conftest*
4754 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
4755 if test "$ac_cv_c_ipx_gnu" = "yes"
4756 then
4757 cat >> confdefs.h <<\EOF
4758 #define HAVE_IPX_GNU 1
4763 if test "$ac_cv_c_ipx_gnu" = "no"
4764 then
4765 echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6
4766 echo "configure:4767: checking for linux style IPX support" >&5
4767 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4769 else
4770 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4773 #include <sys/socket.h>
4774 #include <asm/types.h>
4775 #include <linux/ipx.h>
4776 int main() {
4777 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4778 ; return 0; }
4780 if { (eval echo configure:4781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4781 rm -rf conftest*
4782 ac_cv_c_ipx_linux="yes"
4783 else
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4786 rm -rf conftest*
4787 ac_cv_c_ipx_linux="no"
4789 rm -f conftest*
4793 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4794 if test "$ac_cv_c_ipx_linux" = "yes"
4795 then
4796 cat >> confdefs.h <<\EOF
4797 #define HAVE_IPX_LINUX 1
4803 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4807 echo "configure:4808: checking for $ac_hdr" >&5
4808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4810 else
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 #include <$ac_hdr>
4816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4817 { (eval echo configure:4818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4819 if test -z "$ac_err"; then
4820 rm -rf conftest*
4821 eval "ac_cv_header_$ac_safe=yes"
4822 else
4823 echo "$ac_err" >&5
4824 echo "configure: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4826 rm -rf conftest*
4827 eval "ac_cv_header_$ac_safe=no"
4829 rm -f conftest*
4831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4832 echo "$ac_t""yes" 1>&6
4833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4834 cat >> confdefs.h <<EOF
4835 #define $ac_tr_hdr 1
4837 break
4838 else
4839 echo "$ac_t""no" 1>&6
4841 done
4844 echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6
4845 echo "configure:4846: checking for Open Sound System" >&5
4846 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4848 else
4849 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure"
4851 #include "confdefs.h"
4853 #if defined(HAVE_SYS_SOUNDCARD_H)
4854 #include <sys/soundcard.h>
4855 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4856 #include <machine/soundcard.h>
4857 #elif defined(HAVE_SOUNDCARD_H)
4858 #include <soundcard.h>
4859 #endif
4861 int main() {
4864 /* check for one of the Open Sound System specific SNDCTL_ defines */
4865 #if !defined(SNDCTL_DSP_STEREO)
4866 #error No open sound system
4867 #endif
4869 ; return 0; }
4871 if { (eval echo configure:4872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4872 rm -rf conftest*
4873 ac_cv_c_opensoundsystem="yes"
4874 else
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4877 rm -rf conftest*
4878 ac_cv_c_opensoundsystem="no"
4880 rm -f conftest*
4883 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4885 if test "$ac_cv_c_opensoundsystem" = "yes"
4886 then
4887 cat >> confdefs.h <<\EOF
4888 #define HAVE_OSS 1
4893 echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6
4894 echo "configure:4895: checking for Open Sound System/MIDI interface" >&5
4895 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4897 else
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4902 #if defined(HAVE_SYS_SOUNDCARD_H)
4903 #include <sys/soundcard.h>
4904 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4905 #include <machine/soundcard.h>
4906 #elif defined(HAVE_SOUNDCARD_H)
4907 #include <soundcard.h>
4908 #endif
4910 int main() {
4913 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4914 #if !defined(SNDCTL_SEQ_SYNC)
4915 #error No open sound system MIDI interface
4916 #endif
4918 ; return 0; }
4920 if { (eval echo configure:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4921 rm -rf conftest*
4922 ac_cv_c_opensoundsystem_midi="yes"
4923 else
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 rm -rf conftest*
4927 ac_cv_c_opensoundsystem_midi="no"
4929 rm -f conftest*
4932 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4934 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4935 then
4936 cat >> confdefs.h <<\EOF
4937 #define HAVE_OSS_MIDI 1
4942 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4945 echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6
4946 echo "configure:4947: checking whether mmap64 works defined as mmap" >&5
4947 if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4949 else
4950 if test "$cross_compiling" = yes; then
4951 ac_cv_mmap64_works="no"
4952 else
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4957 #define _FILE_OFFSET_BITS 64
4958 #include <stdio.h>
4959 #include <unistd.h>
4960 #include <fcntl.h>
4961 #include <sys/mman.h>
4962 #include <errno.h>
4964 int main(int argc,char **argv) {
4965 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4966 if (fd == -1) exit(1);
4968 unlink("conftest.map");
4970 write(fd,"test",4);
4972 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4973 (errno == EINVAL)
4975 exit(1);
4977 close(fd);
4978 fprintf(stderr,"success!\n");
4979 exit(0);
4984 if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4985 then
4986 ac_cv_mmap64_works="yes"
4987 else
4988 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4990 rm -fr conftest*
4991 ac_cv_mmap64_works="no"
4993 rm -fr conftest*
4998 echo "$ac_t""$ac_cv_mmap64_works" 1>&6
5000 if test "$ac_cv_mmap64_works" = "yes"
5001 then
5002 cat >> confdefs.h <<\EOF
5003 #define _FILE_OFFSET_BITS 64
5009 if test "x${GCC}" = "xyes"
5010 then
5011 CFLAGS="$CFLAGS -Wall"
5012 echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6
5013 echo "configure:5014: checking for gcc strength-reduce bug" >&5
5014 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5016 else
5017 if test "$cross_compiling" = yes; then
5018 ac_cv_c_gcc_strength_bug="yes"
5019 else
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5024 int L[4] = {0,1,2,3};
5025 int main(void) {
5026 static int Array[3];
5027 unsigned int B = 3;
5028 int i;
5029 for(i=0; i<B; i++) Array[i] = i - 3;
5030 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5031 L[i] = 4;
5033 exit( Array[1] != -2 || L[2] != 3);
5036 if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5037 then
5038 ac_cv_c_gcc_strength_bug="no"
5039 else
5040 echo "configure: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 rm -fr conftest*
5043 ac_cv_c_gcc_strength_bug="yes"
5045 rm -fr conftest*
5050 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5051 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5052 then
5053 CFLAGS="$CFLAGS -fno-strength-reduce"
5056 echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6
5057 echo "configure:5058: checking for gcc -mpreferred-stack-boundary=2 support" >&5
5058 if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5060 else
5061 saved_cflags=$CFLAGS
5062 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5067 int main() {
5068 return 0
5069 ; return 0; }
5071 if { (eval echo configure:5072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5072 rm -rf conftest*
5073 ac_cv_c_gcc_stack_boundary="yes"
5074 else
5075 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5077 rm -rf conftest*
5078 ac_cv_c_gcc_stack_boundary="no"
5080 rm -f conftest*
5081 CFLAGS=$saved_cflags
5085 echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5086 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5087 then
5088 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5093 echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6
5094 echo "configure:5095: checking whether .type must sit inside a .def directive" >&5
5095 if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5097 else
5098 saved_libs=$LIBS
5099 LIBS="conftest_asm.s $LIBS"
5100 cat > conftest_asm.s <<EOF
5101 .globl _ac_test
5102 .def _ac_test; .scl 2; .type 32; .endef
5103 _ac_test:
5104 .long 0
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5110 int main() {
5112 ; return 0; }
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5115 rm -rf conftest*
5116 ac_cv_c_type_in_def="yes"
5117 else
5118 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5120 rm -rf conftest*
5121 ac_cv_c_type_in_def="no"
5123 rm -f conftest*
5124 LIBS=$saved_libs
5127 echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5128 if test "$ac_cv_c_type_in_def" = "yes"
5129 then
5130 cat >> confdefs.h <<\EOF
5131 #define NEED_TYPE_IN_DEF 1
5137 echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6
5138 echo "configure:5139: checking whether external symbols need an underscore prefix" >&5
5139 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5141 else
5142 saved_libs=$LIBS
5143 LIBS="conftest_asm.s $LIBS"
5144 cat > conftest_asm.s <<EOF
5145 .globl _ac_test
5146 _ac_test:
5147 .long 0
5149 cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5152 extern int ac_test;
5153 int main() {
5154 if (ac_test) return 1
5155 ; return 0; }
5157 if { (eval echo configure:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5158 rm -rf conftest*
5159 ac_cv_c_extern_prefix="yes"
5160 else
5161 echo "configure: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5163 rm -rf conftest*
5164 ac_cv_c_extern_prefix="no"
5166 rm -f conftest*
5167 LIBS=$saved_libs
5170 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5171 if test "$ac_cv_c_extern_prefix" = "yes"
5172 then
5173 cat >> confdefs.h <<\EOF
5174 #define NEED_UNDERSCORE_PREFIX 1
5180 echo $ac_n "checking whether stdcall symbols need to be decorated""... $ac_c" 1>&6
5181 echo "configure:5182: checking whether stdcall symbols need to be decorated" >&5
5182 if eval "test \"`echo '$''{'ac_cv_c_stdcall_decoration'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5184 else
5185 saved_libs=$LIBS
5186 LIBS="conftest_asm.s $LIBS"
5187 if test "$ac_cv_c_extern_prefix" = "yes"
5188 then
5189 cat > conftest_asm.s <<EOF
5190 .globl _ac_test@0
5191 _ac_test@0:
5193 else
5194 cat > conftest_asm.s <<EOF
5195 .globl ac_test@0
5196 ac_test@0:
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 extern void __attribute__((__stdcall__)) ac_test(void);
5203 int main() {
5204 ac_test(); return 0
5205 ; return 0; }
5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5208 rm -rf conftest*
5209 ac_cv_c_stdcall_decoration="yes"
5210 else
5211 echo "configure: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5213 rm -rf conftest*
5214 ac_cv_c_stdcall_decoration="no"
5216 rm -f conftest*
5217 LIBS=$saved_libs
5220 echo "$ac_t""$ac_cv_c_stdcall_decoration" 1>&6
5221 if test "$ac_cv_c_stdcall_decoration" = "yes"
5222 then
5223 cat >> confdefs.h <<\EOF
5224 #define NEED_STDCALL_DECORATION 1
5230 echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6
5231 echo "configure:5232: checking whether assembler accepts .string" >&5
5232 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5234 else
5235 saved_libs=$LIBS
5236 LIBS="conftest_asm.s $LIBS"
5237 cat > conftest_asm.s <<EOF
5238 .string "test"
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5244 int main() {
5246 ; return 0; }
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5249 rm -rf conftest*
5250 ac_cv_c_asm_string="yes"
5251 else
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 rm -rf conftest*
5255 ac_cv_c_asm_string="no"
5257 rm -f conftest*
5258 LIBS=$saved_libs
5261 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5262 if test "$ac_cv_c_asm_string" = "yes"
5263 then
5264 cat >> confdefs.h <<\EOF
5265 #define HAVE_ASM_STRING 1
5271 LDSHARED=""
5272 LDDLLFLAGS=""
5273 if test "$LIBEXT" = "so"
5274 then
5275 echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6
5276 echo "configure:5277: checking whether we can build a GNU style ELF dll" >&5
5277 if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5279 else
5280 saved_cflags=$CFLAGS
5281 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5286 int main() {
5287 return 1
5288 ; return 0; }
5290 if { (eval echo configure:5291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5291 rm -rf conftest*
5292 ac_cv_c_dll_gnuelf="yes"
5293 else
5294 echo "configure: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5296 rm -rf conftest*
5297 ac_cv_c_dll_gnuelf="no"
5299 rm -f conftest*
5300 CFLAGS=$saved_cflags
5304 echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5305 if test "$ac_cv_c_dll_gnuelf" = "yes"
5306 then
5307 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
5308 LDDLLFLAGS="-Wl,-Bsymbolic"
5309 else
5310 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
5311 echo "configure:5312: checking whether we can build a UnixWare (Solaris) dll" >&5
5312 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5314 else
5315 saved_cflags=$CFLAGS
5316 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5321 int main() {
5322 return 1
5323 ; return 0; }
5325 if { (eval echo configure:5326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5326 rm -rf conftest*
5327 ac_cv_c_dll_unixware="yes"
5328 else
5329 echo "configure: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5331 rm -rf conftest*
5332 ac_cv_c_dll_unixware="no"
5334 rm -f conftest*
5335 CFLAGS=$saved_cflags
5339 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5340 if test "$ac_cv_c_dll_unixware" = "yes"
5341 then
5342 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
5343 LDDLLFLAGS="-Wl,-B,symbolic"
5346 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
5347 then
5348 LIBEXT="a"
5349 if test "$DLLWRAP" = "dllwrap"; then
5350 if test "$CYGWIN" = "yes"; then
5351 echo "*** use dllwrap for building shared library."
5352 LIBEXT="dll"
5358 if test "$LIBEXT" = "a"; then
5359 echo "*** It is currently not possible to build WINE without shared"
5360 echo "*** library (.so) support to allow transparent switch between .so"
5361 echo "*** and .dll files."
5362 echo "*** If you are using Linux, you will need a newer binutils."
5363 exit 1
5366 DLLFLAGS=""
5367 LDPATH=""
5369 if test "$LIBEXT" = "so"; then
5370 DLLFLAGS="-fPIC"
5371 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5372 elif test "$LIBEXT" = "dll"; then
5373 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5374 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
5386 wine_cv_libc_reentrant=no
5388 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
5389 echo "configure:5390: checking for reentrant libc: __errno_location" >&5
5390 if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5392 else
5393 if test "$cross_compiling" = yes; then
5394 wine_cv_libc_r___errno_location=yes
5395 else
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 int myerrno = 0;
5400 char buf[256];
5401 int *__errno_location(){return &myerrno;}
5402 main(){connect(0,buf,255); exit(!myerrno);}
5404 if { (eval echo configure:5405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5405 then
5406 wine_cv_libc_r___errno_location=yes
5407 else
5408 echo "configure: failed program was:" >&5
5409 cat conftest.$ac_ext >&5
5410 rm -fr conftest*
5411 wine_cv_libc_r___errno_location=no
5413 rm -fr conftest*
5419 echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5420 if test "$wine_cv_libc_r___errno_location" = "yes"
5421 then
5422 wine_cv_libc_reentrant=__errno_location
5426 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
5427 echo "configure:5428: checking for reentrant libc: __error" >&5
5428 if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5430 else
5431 if test "$cross_compiling" = yes; then
5432 wine_cv_libc_r___error=yes
5433 else
5434 cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437 int myerrno = 0;
5438 char buf[256];
5439 int *__error(){return &myerrno;}
5440 main(){connect(0,buf,255); exit(!myerrno);}
5442 if { (eval echo configure:5443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5443 then
5444 wine_cv_libc_r___error=yes
5445 else
5446 echo "configure: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5448 rm -fr conftest*
5449 wine_cv_libc_r___error=no
5451 rm -fr conftest*
5457 echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5458 if test "$wine_cv_libc_r___error" = "yes"
5459 then
5460 wine_cv_libc_reentrant=__error
5464 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
5465 echo "configure:5466: checking for reentrant libc: ___errno" >&5
5466 if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5468 else
5469 if test "$cross_compiling" = yes; then
5470 wine_cv_libc_r____errno=yes
5471 else
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5475 int myerrno = 0;
5476 char buf[256];
5477 int *___errno(){return &myerrno;}
5478 main(){connect(0,buf,255); exit(!myerrno);}
5480 if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5481 then
5482 wine_cv_libc_r____errno=yes
5483 else
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5486 rm -fr conftest*
5487 wine_cv_libc_r____errno=no
5489 rm -fr conftest*
5495 echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5496 if test "$wine_cv_libc_r____errno" = "yes"
5497 then
5498 wine_cv_libc_reentrant=___errno
5502 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
5503 echo "configure:5504: checking for reentrant libc: __thr_errno" >&5
5504 if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5506 else
5507 if test "$cross_compiling" = yes; then
5508 wine_cv_libc_r___thr_errno=yes
5509 else
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 int myerrno = 0;
5514 char buf[256];
5515 int *__thr_errno(){return &myerrno;}
5516 main(){connect(0,buf,255); exit(!myerrno);}
5518 if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5519 then
5520 wine_cv_libc_r___thr_errno=yes
5521 else
5522 echo "configure: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5524 rm -fr conftest*
5525 wine_cv_libc_r___thr_errno=no
5527 rm -fr conftest*
5533 echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5534 if test "$wine_cv_libc_r___thr_errno" = "yes"
5535 then
5536 wine_cv_libc_reentrant=__thr_errno
5540 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
5541 echo "configure:5542: checking for reentrant libc: __errno" >&5
5542 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5544 else
5545 if test "$cross_compiling" = yes; then
5546 wine_cv_libc_r___errno=yes
5547 else
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5551 int myerrno = 0;
5552 char buf[256];
5553 int *__errno(){return &myerrno;}
5554 main(){connect(0,buf,255); exit(!myerrno);}
5556 if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5557 then
5558 wine_cv_libc_r___errno=yes
5559 else
5560 echo "configure: failed program was:" >&5
5561 cat conftest.$ac_ext >&5
5562 rm -fr conftest*
5563 wine_cv_libc_r___errno=no
5565 rm -fr conftest*
5571 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5572 if test "$wine_cv_libc_r___errno" = "yes"
5573 then
5574 wine_cv_libc_reentrant=__errno
5578 if test "$wine_cv_libc_reentrant" != "no"
5579 then
5580 cat >> confdefs.h <<EOF
5581 #define ERRNO_LOCATION $wine_cv_libc_reentrant
5587 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
5588 then
5589 echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6
5590 echo "configure:5591: checking for reentrant X libraries" >&5
5591 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5593 else
5594 if test "x$with_reentrant_x" = "xno"
5595 then
5596 wine_cv_x_reentrant=no
5597 else
5598 libX11_check=none
5599 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
5600 if test -r $dir/libX11.so; then
5601 libX11_check="-D $dir/libX11.so"
5602 break 1
5604 if test -r $dir/libX11.a; then
5605 libX11_check="$dir/libX11.a"
5606 break 1
5608 done
5609 if test "$libX11_check" != "none"; then
5610 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
5611 then
5612 wine_cv_x_reentrant=yes
5613 else
5614 wine_cv_x_reentrant=no
5616 else
5617 wine_cv_x_reentrant=unknown
5622 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
5623 else
5624 wine_cv_x_reentrant=no
5626 if test "$wine_cv_x_reentrant" = "no"
5627 then
5628 cat >> confdefs.h <<\EOF
5629 #define NO_REENTRANT_X11 1
5636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5637 # for constant arguments. Useless!
5638 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5639 echo "configure:5640: checking for working alloca.h" >&5
5640 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5642 else
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5646 #include <alloca.h>
5647 int main() {
5648 char *p = alloca(2 * sizeof(int));
5649 ; return 0; }
5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5652 rm -rf conftest*
5653 ac_cv_header_alloca_h=yes
5654 else
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5657 rm -rf conftest*
5658 ac_cv_header_alloca_h=no
5660 rm -f conftest*
5663 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5664 if test $ac_cv_header_alloca_h = yes; then
5665 cat >> confdefs.h <<\EOF
5666 #define HAVE_ALLOCA_H 1
5671 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5672 echo "configure:5673: checking for alloca" >&5
5673 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5674 echo $ac_n "(cached) $ac_c" 1>&6
5675 else
5676 cat > conftest.$ac_ext <<EOF
5677 #line 5678 "configure"
5678 #include "confdefs.h"
5680 #ifdef __GNUC__
5681 # define alloca __builtin_alloca
5682 #else
5683 # ifdef _MSC_VER
5684 # include <malloc.h>
5685 # define alloca _alloca
5686 # else
5687 # if HAVE_ALLOCA_H
5688 # include <alloca.h>
5689 # else
5690 # ifdef _AIX
5691 #pragma alloca
5692 # else
5693 # ifndef alloca /* predefined by HP cc +Olibcalls */
5694 char *alloca ();
5695 # endif
5696 # endif
5697 # endif
5698 # endif
5699 #endif
5701 int main() {
5702 char *p = (char *) alloca(1);
5703 ; return 0; }
5705 if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5706 rm -rf conftest*
5707 ac_cv_func_alloca_works=yes
5708 else
5709 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5711 rm -rf conftest*
5712 ac_cv_func_alloca_works=no
5714 rm -f conftest*
5717 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5718 if test $ac_cv_func_alloca_works = yes; then
5719 cat >> confdefs.h <<\EOF
5720 #define HAVE_ALLOCA 1
5725 if test $ac_cv_func_alloca_works = no; then
5726 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5727 # that cause trouble. Some versions do not even contain alloca or
5728 # contain a buggy version. If you still want to use their alloca,
5729 # use ar to extract alloca.o from them instead of compiling alloca.c.
5730 ALLOCA=alloca.${ac_objext}
5731 cat >> confdefs.h <<\EOF
5732 #define C_ALLOCA 1
5736 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5737 echo "configure:5738: checking whether alloca needs Cray hooks" >&5
5738 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5740 else
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 #if defined(CRAY) && ! defined(CRAY2)
5745 webecray
5746 #else
5747 wenotbecray
5748 #endif
5751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5752 egrep "webecray" >/dev/null 2>&1; then
5753 rm -rf conftest*
5754 ac_cv_os_cray=yes
5755 else
5756 rm -rf conftest*
5757 ac_cv_os_cray=no
5759 rm -f conftest*
5763 echo "$ac_t""$ac_cv_os_cray" 1>&6
5764 if test $ac_cv_os_cray = yes; then
5765 for ac_func in _getb67 GETB67 getb67; do
5766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5767 echo "configure:5768: checking for $ac_func" >&5
5768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5769 echo $ac_n "(cached) $ac_c" 1>&6
5770 else
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 /* System header to define __stub macros and hopefully few prototypes,
5775 which can conflict with char $ac_func(); below. */
5776 #include <assert.h>
5777 /* Override any gcc2 internal prototype to avoid an error. */
5778 /* We use char because int might match the return type of a gcc2
5779 builtin and then its argument prototype would still apply. */
5780 char $ac_func();
5782 int main() {
5784 /* The GNU C library defines this for functions which it implements
5785 to always fail with ENOSYS. Some functions are actually named
5786 something starting with __ and the normal name is an alias. */
5787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5788 choke me
5789 #else
5790 $ac_func();
5791 #endif
5793 ; return 0; }
5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5796 rm -rf conftest*
5797 eval "ac_cv_func_$ac_func=yes"
5798 else
5799 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5801 rm -rf conftest*
5802 eval "ac_cv_func_$ac_func=no"
5804 rm -f conftest*
5807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5808 echo "$ac_t""yes" 1>&6
5809 cat >> confdefs.h <<EOF
5810 #define CRAY_STACKSEG_END $ac_func
5813 break
5814 else
5815 echo "$ac_t""no" 1>&6
5818 done
5821 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5822 echo "configure:5823: checking stack direction for C alloca" >&5
5823 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5824 echo $ac_n "(cached) $ac_c" 1>&6
5825 else
5826 if test "$cross_compiling" = yes; then
5827 ac_cv_c_stack_direction=0
5828 else
5829 cat > conftest.$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5832 find_stack_direction ()
5834 static char *addr = 0;
5835 auto char dummy;
5836 if (addr == 0)
5838 addr = &dummy;
5839 return find_stack_direction ();
5841 else
5842 return (&dummy > addr) ? 1 : -1;
5844 main ()
5846 exit (find_stack_direction() < 0);
5849 if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5850 then
5851 ac_cv_c_stack_direction=1
5852 else
5853 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 rm -fr conftest*
5856 ac_cv_c_stack_direction=-1
5858 rm -fr conftest*
5863 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5864 cat >> confdefs.h <<EOF
5865 #define STACK_DIRECTION $ac_cv_c_stack_direction
5870 for ac_func in \
5871 __libc_fork \
5872 _lwp_create \
5873 clone \
5874 ecvt \
5875 finite \
5876 fpclass \
5877 ftruncate64 \
5878 getnetbyaddr \
5879 getnetbyname \
5880 getpagesize \
5881 getprotobyname \
5882 getprotobynumber \
5883 getrlimit \
5884 getservbyport \
5885 getsockopt \
5886 inet_network \
5887 lseek64 \
5888 lstat \
5889 memmove \
5890 mmap \
5891 pread \
5892 pwrite \
5893 rfork \
5894 select \
5895 sendmsg \
5896 settimeofday \
5897 sigaltstack \
5898 statfs \
5899 strcasecmp \
5900 strerror \
5901 strncasecmp \
5902 tcgetattr \
5903 timegm \
5904 usleep \
5905 vfscanf \
5906 wait4 \
5907 waitpid \
5910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5911 echo "configure:5912: checking for $ac_func" >&5
5912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5914 else
5915 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 /* System header to define __stub macros and hopefully few prototypes,
5919 which can conflict with char $ac_func(); below. */
5920 #include <assert.h>
5921 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5924 char $ac_func();
5926 int main() {
5928 /* The GNU C library defines this for functions which it implements
5929 to always fail with ENOSYS. Some functions are actually named
5930 something starting with __ and the normal name is an alias. */
5931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5932 choke me
5933 #else
5934 $ac_func();
5935 #endif
5937 ; return 0; }
5939 if { (eval echo configure:5940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5940 rm -rf conftest*
5941 eval "ac_cv_func_$ac_func=yes"
5942 else
5943 echo "configure: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5945 rm -rf conftest*
5946 eval "ac_cv_func_$ac_func=no"
5948 rm -f conftest*
5951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5952 echo "$ac_t""yes" 1>&6
5953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5954 cat >> confdefs.h <<EOF
5955 #define $ac_tr_func 1
5958 else
5959 echo "$ac_t""no" 1>&6
5961 done
5965 for ac_hdr in \
5966 arpa/inet.h \
5967 arpa/nameser.h \
5968 elf.h \
5969 float.h \
5970 ieeefp.h \
5971 libio.h \
5972 libutil.h \
5973 link.h \
5974 linux/cdrom.h \
5975 linux/input.h \
5976 linux/joystick.h \
5977 linux/ucdrom.h \
5978 net/if.h \
5979 netdb.h \
5980 netinet/in.h \
5981 netinet/in_systm.h \
5982 netinet/ip.h \
5983 netinet/tcp.h \
5984 pty.h \
5985 resolv.h \
5986 sched.h \
5987 socket.h \
5988 stdint.h \
5989 strings.h \
5990 sys/cdio.h \
5991 sys/errno.h \
5992 sys/file.h \
5993 sys/filio.h \
5994 sys/ipc.h \
5995 sys/link.h \
5996 sys/lwp.h \
5997 sys/mman.h \
5998 sys/modem.h \
5999 sys/mount.h \
6000 sys/msg.h \
6001 sys/param.h \
6002 sys/ptrace.h \
6003 sys/reg.h \
6004 sys/signal.h \
6005 sys/shm.h \
6006 sys/socket.h \
6007 sys/sockio.h \
6008 sys/statfs.h \
6009 sys/strtio.h \
6010 sys/syscall.h \
6011 sys/user.h \
6012 sys/wait.h \
6013 sys/v86.h \
6014 sys/v86intr.h \
6015 sys/vfs.h \
6016 sys/vm86.h \
6017 syscall.h \
6018 ucontext.h \
6021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6023 echo "configure:6024: checking for $ac_hdr" >&5
6024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6026 else
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 #include <$ac_hdr>
6032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6033 { (eval echo configure:6034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6035 if test -z "$ac_err"; then
6036 rm -rf conftest*
6037 eval "ac_cv_header_$ac_safe=yes"
6038 else
6039 echo "$ac_err" >&5
6040 echo "configure: failed program was:" >&5
6041 cat conftest.$ac_ext >&5
6042 rm -rf conftest*
6043 eval "ac_cv_header_$ac_safe=no"
6045 rm -f conftest*
6047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6048 echo "$ac_t""yes" 1>&6
6049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6050 cat >> confdefs.h <<EOF
6051 #define $ac_tr_hdr 1
6054 else
6055 echo "$ac_t""no" 1>&6
6057 done
6059 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
6060 echo "configure:6061: checking whether stat file-mode macros are broken" >&5
6061 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6062 echo $ac_n "(cached) $ac_c" 1>&6
6063 else
6064 cat > conftest.$ac_ext <<EOF
6065 #line 6066 "configure"
6066 #include "confdefs.h"
6067 #include <sys/types.h>
6068 #include <sys/stat.h>
6070 #if defined(S_ISBLK) && defined(S_IFDIR)
6071 # if S_ISBLK (S_IFDIR)
6072 You lose.
6073 # endif
6074 #endif
6076 #if defined(S_ISBLK) && defined(S_IFCHR)
6077 # if S_ISBLK (S_IFCHR)
6078 You lose.
6079 # endif
6080 #endif
6082 #if defined(S_ISLNK) && defined(S_IFREG)
6083 # if S_ISLNK (S_IFREG)
6084 You lose.
6085 # endif
6086 #endif
6088 #if defined(S_ISSOCK) && defined(S_IFREG)
6089 # if S_ISSOCK (S_IFREG)
6090 You lose.
6091 # endif
6092 #endif
6095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6096 egrep "You lose" >/dev/null 2>&1; then
6097 rm -rf conftest*
6098 ac_cv_header_stat_broken=yes
6099 else
6100 rm -rf conftest*
6101 ac_cv_header_stat_broken=no
6103 rm -f conftest*
6107 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6108 if test $ac_cv_header_stat_broken = yes; then
6109 cat >> confdefs.h <<\EOF
6110 #define STAT_MACROS_BROKEN 1
6117 echo $ac_n "checking for working const""... $ac_c" 1>&6
6118 echo "configure:6119: checking for working const" >&5
6119 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6121 else
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6126 int main() {
6128 /* Ultrix mips cc rejects this. */
6129 typedef int charset[2]; const charset x;
6130 /* SunOS 4.1.1 cc rejects this. */
6131 char const *const *ccp;
6132 char **p;
6133 /* NEC SVR4.0.2 mips cc rejects this. */
6134 struct point {int x, y;};
6135 static struct point const zero = {0,0};
6136 /* AIX XL C 1.02.0.0 rejects this.
6137 It does not let you subtract one const X* pointer from another in an arm
6138 of an if-expression whose if-part is not a constant expression */
6139 const char *g = "string";
6140 ccp = &g + (g ? g-g : 0);
6141 /* HPUX 7.0 cc rejects these. */
6142 ++ccp;
6143 p = (char**) ccp;
6144 ccp = (char const *const *) p;
6145 { /* SCO 3.2v4 cc rejects this. */
6146 char *t;
6147 char const *s = 0 ? (char *) 0 : (char const *) 0;
6149 *t++ = 0;
6151 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6152 int x[] = {25, 17};
6153 const int *foo = &x[0];
6154 ++foo;
6156 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6157 typedef const int *iptr;
6158 iptr p = 0;
6159 ++p;
6161 { /* AIX XL C 1.02.0.0 rejects this saying
6162 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6163 struct s { int j; const int *ap[3]; };
6164 struct s *b; b->j = 5;
6166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6167 const int foo = 10;
6170 ; return 0; }
6172 if { (eval echo configure:6173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6173 rm -rf conftest*
6174 ac_cv_c_const=yes
6175 else
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6178 rm -rf conftest*
6179 ac_cv_c_const=no
6181 rm -f conftest*
6184 echo "$ac_t""$ac_cv_c_const" 1>&6
6185 if test $ac_cv_c_const = no; then
6186 cat >> confdefs.h <<\EOF
6187 #define const
6192 echo $ac_n "checking for inline""... $ac_c" 1>&6
6193 echo "configure:6194: checking for inline" >&5
6194 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6196 else
6197 ac_cv_c_inline=no
6198 for ac_kw in inline __inline__ __inline; do
6199 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure"
6201 #include "confdefs.h"
6203 int main() {
6204 } $ac_kw foo() {
6205 ; return 0; }
6207 if { (eval echo configure:6208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6208 rm -rf conftest*
6209 ac_cv_c_inline=$ac_kw; break
6210 else
6211 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6214 rm -f conftest*
6215 done
6219 echo "$ac_t""$ac_cv_c_inline" 1>&6
6220 case "$ac_cv_c_inline" in
6221 inline | yes) ;;
6222 no) cat >> confdefs.h <<\EOF
6223 #define inline
6226 *) cat >> confdefs.h <<EOF
6227 #define inline $ac_cv_c_inline
6230 esac
6232 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6233 echo "configure:6234: checking for ANSI C header files" >&5
6234 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6236 else
6237 cat > conftest.$ac_ext <<EOF
6238 #line 6239 "configure"
6239 #include "confdefs.h"
6240 #include <stdlib.h>
6241 #include <stdarg.h>
6242 #include <string.h>
6243 #include <float.h>
6245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6246 { (eval echo configure:6247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6248 if test -z "$ac_err"; then
6249 rm -rf conftest*
6250 ac_cv_header_stdc=yes
6251 else
6252 echo "$ac_err" >&5
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 rm -rf conftest*
6256 ac_cv_header_stdc=no
6258 rm -f conftest*
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 #include <string.h>
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 egrep "memchr" >/dev/null 2>&1; then
6270 else
6271 rm -rf conftest*
6272 ac_cv_header_stdc=no
6274 rm -f conftest*
6278 if test $ac_cv_header_stdc = yes; then
6279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6280 cat > conftest.$ac_ext <<EOF
6281 #line 6282 "configure"
6282 #include "confdefs.h"
6283 #include <stdlib.h>
6285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 egrep "free" >/dev/null 2>&1; then
6288 else
6289 rm -rf conftest*
6290 ac_cv_header_stdc=no
6292 rm -f conftest*
6296 if test $ac_cv_header_stdc = yes; then
6297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6298 if test "$cross_compiling" = yes; then
6300 else
6301 cat > conftest.$ac_ext <<EOF
6302 #line 6303 "configure"
6303 #include "confdefs.h"
6304 #include <ctype.h>
6305 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6306 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6308 int main () { int i; for (i = 0; i < 256; i++)
6309 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6310 exit (0); }
6313 if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6314 then
6316 else
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6319 rm -fr conftest*
6320 ac_cv_header_stdc=no
6322 rm -fr conftest*
6328 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6329 if test $ac_cv_header_stdc = yes; then
6330 cat >> confdefs.h <<\EOF
6331 #define STDC_HEADERS 1
6336 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6337 echo "configure:6338: checking for size_t" >&5
6338 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6340 else
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 #include <sys/types.h>
6345 #if STDC_HEADERS
6346 #include <stdlib.h>
6347 #include <stddef.h>
6348 #endif
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6352 rm -rf conftest*
6353 ac_cv_type_size_t=yes
6354 else
6355 rm -rf conftest*
6356 ac_cv_type_size_t=no
6358 rm -f conftest*
6361 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6362 if test $ac_cv_type_size_t = no; then
6363 cat >> confdefs.h <<\EOF
6364 #define size_t unsigned
6369 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6370 echo "configure:6371: checking size of long long" >&5
6371 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6372 echo $ac_n "(cached) $ac_c" 1>&6
6373 else
6374 if test "$cross_compiling" = yes; then
6375 ac_cv_sizeof_long_long=0
6376 else
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6380 #include <stdio.h>
6381 #include <sys/types.h>
6382 main()
6384 FILE *f=fopen("conftestval", "w");
6385 if (!f) exit(1);
6386 fprintf(f, "%d\n", sizeof(long long));
6387 exit(0);
6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6391 then
6392 ac_cv_sizeof_long_long=`cat conftestval`
6393 else
6394 echo "configure: failed program was:" >&5
6395 cat conftest.$ac_ext >&5
6396 rm -fr conftest*
6397 ac_cv_sizeof_long_long=0
6399 rm -fr conftest*
6403 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6404 cat >> confdefs.h <<EOF
6405 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6410 echo $ac_n "checking whether linux/input.h is for real""... $ac_c" 1>&6
6411 echo "configure:6412: checking whether linux/input.h is for real" >&5
6412 if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6414 else
6415 cat > conftest.$ac_ext <<EOF
6416 #line 6417 "configure"
6417 #include "confdefs.h"
6419 #include <linux/input.h>
6421 int main() {
6423 int foo = EVIOCGBIT(EV_ABS,42);
6424 int bar = BTN_PINKIE;
6425 int fortytwo = 42;
6427 ; return 0; }
6429 if { (eval echo configure:6430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6430 rm -rf conftest*
6431 wine_cv_linux_input_h=yes
6432 else
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6435 rm -rf conftest*
6436 wine_cv_linux_input_h=no
6438 rm -f conftest*
6442 echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6443 if test "$wine_cv_linux_input_h" = "yes"
6444 then
6445 cat >> confdefs.h <<\EOF
6446 #define HAVE_CORRECT_LINUXINPUT_H 1
6452 echo $ac_n "checking whether we can use re-entrant gethostbyname_r Linux style""... $ac_c" 1>&6
6453 echo "configure:6454: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
6454 if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6456 else
6457 cat > conftest.$ac_ext <<EOF
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6461 #include <netdb.h>
6463 int main() {
6465 char *name=NULL;
6466 struct hostent he;
6467 struct hostent *result;
6468 char *buf=NULL;
6469 int bufsize=0;
6470 int res,errnr;
6471 char *addr=NULL;
6472 int addrlen=0;
6473 int addrtype=0;
6474 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6475 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6477 ; return 0; }
6479 if { (eval echo configure:6480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6480 rm -rf conftest*
6481 wine_cv_linux_gethostbyname_r_6=yes
6482 else
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6485 rm -rf conftest*
6486 wine_cv_linux_gethostbyname_r_6=no
6489 rm -f conftest*
6493 echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6494 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6495 then
6496 cat >> confdefs.h <<\EOF
6497 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6502 if test "$ac_cv_header_linux_joystick_h" = "yes"
6503 then
6504 echo $ac_n "checking whether linux/joystick.h uses the Linux 2.2+ API""... $ac_c" 1>&6
6505 echo "configure:6506: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
6506 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
6507 echo $ac_n "(cached) $ac_c" 1>&6
6508 else
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6513 #include <sys/ioctl.h>
6514 #include <linux/joystick.h>
6516 struct js_event blub;
6517 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6518 #error "no 2.2 header"
6519 #endif
6521 int main() {
6522 /*empty*/
6523 ; return 0; }
6525 if { (eval echo configure:6526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6526 rm -rf conftest*
6527 wine_cv_linux_joystick_22_api=yes
6528 else
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 rm -rf conftest*
6532 wine_cv_linux_joystick_22_api=no
6534 rm -f conftest*
6538 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
6539 if test "$wine_cv_linux_joystick_22_api" = "yes"
6540 then
6541 cat >> confdefs.h <<\EOF
6542 #define HAVE_LINUX_22_JOYSTICK_API 1
6549 if test "$ac_cv_header_sys_vfs_h" = "yes"
6550 then
6551 echo $ac_n "checking whether sys/vfs.h defines statfs""... $ac_c" 1>&6
6552 echo "configure:6553: checking whether sys/vfs.h defines statfs" >&5
6553 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6554 echo $ac_n "(cached) $ac_c" 1>&6
6555 else
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6560 #include <sys/types.h>
6561 #ifdef HAVE_SYS_PARAM_H
6562 # include <sys/param.h>
6563 #endif
6564 #include <sys/vfs.h>
6566 int main() {
6568 struct statfs stfs;
6570 memset(&stfs,0,sizeof(stfs));
6572 ; return 0; }
6574 if { (eval echo configure:6575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6575 rm -rf conftest*
6576 wine_cv_sys_vfs_has_statfs=yes
6577 else
6578 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5
6580 rm -rf conftest*
6581 wine_cv_sys_vfs_has_statfs=no
6584 rm -f conftest*
6588 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6589 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6590 then
6591 cat >> confdefs.h <<\EOF
6592 #define STATFS_DEFINED_BY_SYS_VFS 1
6598 if test "$ac_cv_header_sys_statfs_h" = "yes"
6599 then
6600 echo $ac_n "checking whether sys/statfs.h defines statfs""... $ac_c" 1>&6
6601 echo "configure:6602: checking whether sys/statfs.h defines statfs" >&5
6602 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6604 else
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6609 #include <sys/types.h>
6610 #ifdef HAVE_SYS_PARAM_H
6611 # include <sys/param.h>
6612 #endif
6613 #include <sys/statfs.h>
6615 int main() {
6617 struct statfs stfs;
6619 ; return 0; }
6621 if { (eval echo configure:6622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6622 rm -rf conftest*
6623 wine_cv_sys_statfs_has_statfs=yes
6624 else
6625 echo "configure: failed program was:" >&5
6626 cat conftest.$ac_ext >&5
6627 rm -rf conftest*
6628 wine_cv_sys_statfs_has_statfs=no
6631 rm -f conftest*
6635 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6636 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6637 then
6638 cat >> confdefs.h <<\EOF
6639 #define STATFS_DEFINED_BY_SYS_STATFS 1
6645 if test "$ac_cv_header_sys_mount_h" = "yes"
6646 then
6647 echo $ac_n "checking whether sys/mount.h defines statfs""... $ac_c" 1>&6
6648 echo "configure:6649: checking whether sys/mount.h defines statfs" >&5
6649 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6651 else
6652 cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6656 #include <sys/types.h>
6657 #ifdef HAVE_SYS_PARAM_H
6658 # include <sys/param.h>
6659 #endif
6660 #include <sys/mount.h>
6662 int main() {
6664 struct statfs stfs;
6666 ; return 0; }
6668 if { (eval echo configure:6669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6669 rm -rf conftest*
6670 wine_cv_sys_mount_has_statfs=yes
6671 else
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6674 rm -rf conftest*
6675 wine_cv_sys_mount_has_statfs=no
6678 rm -f conftest*
6682 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6683 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6684 then
6685 cat >> confdefs.h <<\EOF
6686 #define STATFS_DEFINED_BY_SYS_MOUNT 1
6693 echo $ac_n "checking for statfs.f_bfree""... $ac_c" 1>&6
6694 echo "configure:6695: checking for statfs.f_bfree" >&5
6695 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6696 echo $ac_n "(cached) $ac_c" 1>&6
6697 else
6698 if test "x$statfs_bfree" = "xno"
6699 then
6700 wine_cv_statfs_bfree=no
6701 else
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6706 #include <sys/types.h>
6707 #ifdef HAVE_SYS_PARAM_H
6708 # include <sys/param.h>
6709 #endif
6710 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6711 # include <sys/mount.h>
6712 #else
6713 # ifdef STATFS_DEFINED_BY_SYS_VFS
6714 # include <sys/vfs.h>
6715 # else
6716 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6717 # include <sys/statfs.h>
6718 # endif
6719 # endif
6720 #endif
6722 int main() {
6724 struct statfs stfs;
6726 stfs.f_bfree++;
6728 ; return 0; }
6730 if { (eval echo configure:6731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6731 rm -rf conftest*
6732 wine_cv_statfs_bfree=yes
6733 else
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6736 rm -rf conftest*
6737 wine_cv_statfs_bfree=no
6740 rm -f conftest*
6744 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6745 if test "$wine_cv_statfs_bfree" = "yes"
6746 then
6747 cat >> confdefs.h <<\EOF
6748 #define STATFS_HAS_BFREE 1
6753 echo $ac_n "checking for statfs.f_bavail""... $ac_c" 1>&6
6754 echo "configure:6755: checking for statfs.f_bavail" >&5
6755 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6756 echo $ac_n "(cached) $ac_c" 1>&6
6757 else
6758 if test "x$statfs_bavail" = "xno"
6759 then
6760 wine_cv_statfs_bavail=no
6761 else
6762 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6766 #include <sys/types.h>
6767 #ifdef HAVE_SYS_PARAM_H
6768 # include <sys/param.h>
6769 #endif
6770 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6771 # include <sys/mount.h>
6772 #else
6773 # ifdef STATFS_DEFINED_BY_SYS_VFS
6774 # include <sys/vfs.h>
6775 # else
6776 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6777 # include <sys/statfs.h>
6778 # endif
6779 # endif
6780 #endif
6782 int main() {
6784 struct statfs stfs;
6786 stfs.f_bavail++;
6788 ; return 0; }
6790 if { (eval echo configure:6791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6791 rm -rf conftest*
6792 wine_cv_statfs_bavail=yes
6793 else
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6796 rm -rf conftest*
6797 wine_cv_statfs_bavail=no
6800 rm -f conftest*
6804 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6805 if test "$wine_cv_statfs_bavail" = "yes"
6806 then
6807 cat >> confdefs.h <<\EOF
6808 #define STATFS_HAS_BAVAIL 1
6814 echo $ac_n "checking for msg_accrights in struct msghdr""... $ac_c" 1>&6
6815 echo "configure:6816: checking for msg_accrights in struct msghdr" >&5
6816 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6818 else
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 #include <sys/types.h>
6823 #include <sys/socket.h>
6824 int main() {
6825 struct msghdr hdr; hdr.msg_accrights=0
6826 ; return 0; }
6828 if { (eval echo configure:6829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6829 rm -rf conftest*
6830 ac_cv_c_msg_accrights="yes"
6831 else
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6834 rm -rf conftest*
6835 ac_cv_c_msg_accrights="no"
6837 rm -f conftest*
6840 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6841 if test "$ac_cv_c_msg_accrights" = "yes"
6842 then
6843 cat >> confdefs.h <<\EOF
6844 #define HAVE_MSGHDR_ACCRIGHTS 1
6850 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
6851 echo "configure:6852: checking for sa_len in struct sockaddr" >&5
6852 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6854 else
6855 cat > conftest.$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 #include <sys/types.h>
6859 #include <sys/socket.h>
6861 int main() {
6862 static struct sockaddr addr; addr.sa_len = 1
6863 ; return 0; }
6865 if { (eval echo configure:6866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6866 rm -rf conftest*
6867 ac_cv_c_sockaddr_sa_len="yes"
6868 else
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 rm -rf conftest*
6872 ac_cv_c_sockaddr_sa_len="no"
6874 rm -f conftest*
6877 echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6878 if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6879 then
6880 cat >> confdefs.h <<\EOF
6881 #define HAVE_SOCKADDR_SA_LEN 1
6887 echo $ac_n "checking for sun_len in struct sockaddr_un""... $ac_c" 1>&6
6888 echo "configure:6889: checking for sun_len in struct sockaddr_un" >&5
6889 if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6891 else
6892 cat > conftest.$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6895 #include <sys/types.h>
6896 #include <sys/socket.h>
6897 #include <sys/un.h>
6898 int main() {
6899 static struct sockaddr_un addr; addr.sun_len = 1
6900 ; return 0; }
6902 if { (eval echo configure:6903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6903 rm -rf conftest*
6904 ac_cv_c_sockaddr_sun_len="yes"
6905 else
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6908 rm -rf conftest*
6909 ac_cv_c_sockaddr_sun_len="no"
6911 rm -f conftest*
6914 echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6915 if test "$ac_cv_c_sockaddr_sun_len" = "yes"
6916 then
6917 cat >> confdefs.h <<\EOF
6918 #define HAVE_SOCKADDR_SUN_LEN 1
6924 echo $ac_n "checking whether we need to define __i386__""... $ac_c" 1>&6
6925 echo "configure:6926: checking whether we need to define __i386__" >&5
6926 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6927 echo $ac_n "(cached) $ac_c" 1>&6
6928 else
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6932 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
6934 #endif
6936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6937 egrep "yes" >/dev/null 2>&1; then
6938 rm -rf conftest*
6939 ac_cv_cpp_def_i386="yes"
6940 else
6941 rm -rf conftest*
6942 ac_cv_cpp_def_i386="no"
6944 rm -f conftest*
6948 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6949 if test "$ac_cv_cpp_def_i386" = "yes"
6950 then
6951 CFLAGS="$CFLAGS -D__i386__"
6952 LINTFLAGS="$LINTFLAGS -D__i386__"
6955 GCC_NO_BUILTIN=""
6956 if test "$GCC" = "yes"
6957 then
6958 GCC_NO_BUILTIN="-fno-builtin"
6963 cat >> confdefs.h <<\EOF
6964 #define __WINE_CONFIG_H 1
6970 MAKE_RULES=Make.rules
6973 MAKE_DLL_RULES=dlls/Makedll.rules
6976 MAKE_PROG_RULES=programs/Makeprog.rules
6979 trap '' 1 2 15
6980 cat > confcache <<\EOF
6981 # This file is a shell script that caches the results of configure
6982 # tests run on this system so they can be shared between configure
6983 # scripts and configure runs. It is not useful on other systems.
6984 # If it contains results you don't want to keep, you may remove or edit it.
6986 # By default, configure uses ./config.cache as the cache file,
6987 # creating it if it does not exist already. You can give configure
6988 # the --cache-file=FILE option to use a different cache file; that is
6989 # what configure does when it calls configure scripts in
6990 # subdirectories, so they share the cache.
6991 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6992 # config.status only pays attention to the cache file if you give it the
6993 # --recheck option to rerun configure.
6996 # The following way of writing the cache mishandles newlines in values,
6997 # but we know of no workaround that is simple, portable, and efficient.
6998 # So, don't put newlines in cache variables' values.
6999 # Ultrix sh set writes to stderr and can't be redirected directly,
7000 # and sets the high bit in the cache file unless we assign to the vars.
7001 (set) 2>&1 |
7002 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7003 *ac_space=\ *)
7004 # `set' does not quote correctly, so add quotes (double-quote substitution
7005 # turns \\\\ into \\, and sed turns \\ into \).
7006 sed -n \
7007 -e "s/'/'\\\\''/g" \
7008 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7011 # `set' quotes correctly as required by POSIX, so do not add quotes.
7012 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7014 esac >> confcache
7015 if cmp -s $cache_file confcache; then
7017 else
7018 if test -w $cache_file; then
7019 echo "updating cache $cache_file"
7020 cat confcache > $cache_file
7021 else
7022 echo "not updating unwritable cache $cache_file"
7025 rm -f confcache
7027 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7030 # Let make expand exec_prefix.
7031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7033 # Any assignment to VPATH causes Sun make to only execute
7034 # the first set of double-colon rules, so remove it if not needed.
7035 # If there is a colon in the path, we need to keep it.
7036 if test "x$srcdir" = x.; then
7037 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7040 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7042 DEFS=-DHAVE_CONFIG_H
7044 # Without the "./", some shells look in PATH for config.status.
7045 : ${CONFIG_STATUS=./config.status}
7047 echo creating $CONFIG_STATUS
7048 rm -f $CONFIG_STATUS
7049 cat > $CONFIG_STATUS <<EOF
7050 #! /bin/sh
7051 # Generated automatically by configure.
7052 # Run this file to recreate the current configuration.
7053 # This directory was configured as follows,
7054 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7056 # $0 $ac_configure_args
7058 # Compiler output produced by configure, useful for debugging
7059 # configure, is in ./config.log if it exists.
7061 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7062 for ac_option
7064 case "\$ac_option" in
7065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7066 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7067 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7068 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7069 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7070 exit 0 ;;
7071 -help | --help | --hel | --he | --h)
7072 echo "\$ac_cs_usage"; exit 0 ;;
7073 *) echo "\$ac_cs_usage"; exit 1 ;;
7074 esac
7075 done
7077 ac_given_srcdir=$srcdir
7078 ac_given_INSTALL="$INSTALL"
7080 trap 'rm -fr `echo "
7081 Make.rules
7082 dlls/Makedll.rules
7083 programs/Makeprog.rules
7084 Makefile
7085 console/Makefile
7086 controls/Makefile
7087 debugger/Makefile
7088 dlls/Makefile
7089 dlls/advapi32/Makefile
7090 dlls/avicap32/Makefile
7091 dlls/avifil32/Makefile
7092 dlls/comctl32/Makefile
7093 dlls/commdlg/Makefile
7094 dlls/crtdll/Makefile
7095 dlls/crypt32/Makefile
7096 dlls/dciman32/Makefile
7097 dlls/ddraw/Makefile
7098 dlls/devenum/Makefile
7099 dlls/dinput/Makefile
7100 dlls/dplay/Makefile
7101 dlls/dplayx/Makefile
7102 dlls/dsound/Makefile
7103 dlls/gdi/Makefile
7104 dlls/glu32/Makefile
7105 dlls/icmp/Makefile
7106 dlls/imagehlp/Makefile
7107 dlls/imm32/Makefile
7108 dlls/kernel/Makefile
7109 dlls/lzexpand/Makefile
7110 dlls/mapi32/Makefile
7111 dlls/mpr/Makefile
7112 dlls/msacm/Makefile
7113 dlls/msdmo/Makefile
7114 dlls/msimg32/Makefile
7115 dlls/msnet32/Makefile
7116 dlls/msrle32/Makefile
7117 dlls/msvcrt/Makefile
7118 dlls/msvcrt20/Makefile
7119 dlls/msvideo/Makefile
7120 dlls/netapi32/Makefile
7121 dlls/ntdll/Makefile
7122 dlls/odbc32/Makefile
7123 dlls/ole32/Makefile
7124 dlls/oleaut32/Makefile
7125 dlls/olecli/Makefile
7126 dlls/oledlg/Makefile
7127 dlls/olepro32/Makefile
7128 dlls/olesvr/Makefile
7129 dlls/opengl32/Makefile
7130 dlls/psapi/Makefile
7131 dlls/qcap/Makefile
7132 dlls/quartz/Makefile
7133 dlls/rasapi32/Makefile
7134 dlls/richedit/Makefile
7135 dlls/rpcrt4/Makefile
7136 dlls/serialui/Makefile
7137 dlls/setupapi/Makefile
7138 dlls/shdocvw/Makefile
7139 dlls/shell32/Makefile
7140 dlls/shfolder/Makefile
7141 dlls/shlwapi/Makefile
7142 dlls/sti/Makefile
7143 dlls/tapi32/Makefile
7144 dlls/ttydrv/Makefile
7145 dlls/url/Makefile
7146 dlls/urlmon/Makefile
7147 dlls/user/Makefile
7148 dlls/version/Makefile
7149 dlls/win32s/Makefile
7150 dlls/winaspi/Makefile
7151 dlls/winedos/Makefile
7152 dlls/wineps/Makefile
7153 dlls/wininet/Makefile
7154 dlls/winmm/Makefile
7155 dlls/winmm/joystick/Makefile
7156 dlls/winmm/mcianim/Makefile
7157 dlls/winmm/mciavi/Makefile
7158 dlls/winmm/mcicda/Makefile
7159 dlls/winmm/mciseq/Makefile
7160 dlls/winmm/mciwave/Makefile
7161 dlls/winmm/midimap/Makefile
7162 dlls/winmm/wavemap/Makefile
7163 dlls/winmm/wineoss/Makefile
7164 dlls/winnls/Makefile
7165 dlls/winsock/Makefile
7166 dlls/winspool/Makefile
7167 dlls/wintrust/Makefile
7168 dlls/wow32/Makefile
7169 dlls/wsock32/Makefile
7170 dlls/x11drv/Makefile
7171 documentation/Makefile
7172 documentation/wine.conf.man
7173 documentation/wine.man
7174 files/Makefile
7175 graphics/Makefile
7176 graphics/enhmetafiledrv/Makefile
7177 graphics/metafiledrv/Makefile
7178 graphics/win16drv/Makefile
7179 graphics/x11drv/Makefile
7180 if1632/Makefile
7181 include/Makefile
7182 library/Makefile
7183 libtest/Makefile
7184 loader/Makefile
7185 loader/ne/Makefile
7186 memory/Makefile
7187 misc/Makefile
7188 miscemu/Makefile
7189 msdos/Makefile
7190 objects/Makefile
7191 ole/Makefile
7192 programs/Makefile
7193 programs/avitools/Makefile
7194 programs/clock/Makefile
7195 programs/cmdlgtst/Makefile
7196 programs/control/Makefile
7197 programs/notepad/Makefile
7198 programs/osversioncheck/Makefile
7199 programs/progman/Makefile
7200 programs/regapi/Makefile
7201 programs/regtest/Makefile
7202 programs/uninstaller/Makefile
7203 programs/view/Makefile
7204 programs/wcmd/Makefile
7205 programs/wineconsole/Makefile
7206 programs/winemine/Makefile
7207 programs/winetest/Makefile
7208 programs/winhelp/Makefile
7209 programs/winver/Makefile
7210 relay32/Makefile
7211 scheduler/Makefile
7212 server/Makefile
7213 tools/Makefile
7214 tools/winapi/Makefile
7215 tools/winebuild/Makefile
7216 tools/winedump/Makefile
7217 tools/winelauncher
7218 tools/wmc/Makefile
7219 tools/wrc/Makefile
7220 tsx11/Makefile
7221 unicode/Makefile
7222 win32/Makefile
7223 windows/Makefile
7224 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7226 cat >> $CONFIG_STATUS <<EOF
7228 # Protect against being on the right side of a sed subst in config.status.
7229 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7230 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7231 $ac_vpsub
7232 $extrasub
7233 s%@SHELL@%$SHELL%g
7234 s%@CFLAGS@%$CFLAGS%g
7235 s%@CPPFLAGS@%$CPPFLAGS%g
7236 s%@CXXFLAGS@%$CXXFLAGS%g
7237 s%@FFLAGS@%$FFLAGS%g
7238 s%@DEFS@%$DEFS%g
7239 s%@LDFLAGS@%$LDFLAGS%g
7240 s%@LIBS@%$LIBS%g
7241 s%@exec_prefix@%$exec_prefix%g
7242 s%@prefix@%$prefix%g
7243 s%@program_transform_name@%$program_transform_name%g
7244 s%@bindir@%$bindir%g
7245 s%@sbindir@%$sbindir%g
7246 s%@libexecdir@%$libexecdir%g
7247 s%@datadir@%$datadir%g
7248 s%@sysconfdir@%$sysconfdir%g
7249 s%@sharedstatedir@%$sharedstatedir%g
7250 s%@localstatedir@%$localstatedir%g
7251 s%@libdir@%$libdir%g
7252 s%@includedir@%$includedir%g
7253 s%@oldincludedir@%$oldincludedir%g
7254 s%@infodir@%$infodir%g
7255 s%@mandir@%$mandir%g
7256 s%@OPTIONS@%$OPTIONS%g
7257 s%@SET_MAKE@%$SET_MAKE%g
7258 s%@CC@%$CC%g
7259 s%@CPP@%$CPP%g
7260 s%@X_CFLAGS@%$X_CFLAGS%g
7261 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7262 s%@X_LIBS@%$X_LIBS%g
7263 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7264 s%@YACC@%$YACC%g
7265 s%@LEX@%$LEX%g
7266 s%@LEXLIB@%$LEXLIB%g
7267 s%@XYACC@%$XYACC%g
7268 s%@XLEX@%$XLEX%g
7269 s%@RANLIB@%$RANLIB%g
7270 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7271 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7272 s%@INSTALL_DATA@%$INSTALL_DATA%g
7273 s%@LN_S@%$LN_S%g
7274 s%@C2MAN@%$C2MAN%g
7275 s%@LDCONFIG@%$LDCONFIG%g
7276 s%@DLLWRAP@%$DLLWRAP%g
7277 s%@LINT@%$LINT%g
7278 s%@LINTFLAGS@%$LINTFLAGS%g
7279 s%@LDCOMBINE@%$LDCOMBINE%g
7280 s%@UTILLIBS@%$UTILLIBS%g
7281 s%@DLLIBS@%$DLLIBS%g
7282 s%@JPEGLIB@%$JPEGLIB%g
7283 s%@XLIB@%$XLIB%g
7284 s%@XFILES@%$XFILES%g
7285 s%@OPENGLFILES@%$OPENGLFILES%g
7286 s%@GLU32FILES@%$GLU32FILES%g
7287 s%@CURSESLIBS@%$CURSESLIBS%g
7288 s%@CUPSLIBS@%$CUPSLIBS%g
7289 s%@ft_devel@%$ft_devel%g
7290 s%@ft_devel2@%$ft_devel2%g
7291 s%@FREETYPELIBS@%$FREETYPELIBS%g
7292 s%@FREETYPEINCL@%$FREETYPEINCL%g
7293 s%@DLLFLAGS@%$DLLFLAGS%g
7294 s%@LDSHARED@%$LDSHARED%g
7295 s%@LDDLLFLAGS@%$LDDLLFLAGS%g
7296 s%@LIBEXT@%$LIBEXT%g
7297 s%@LDPATH@%$LDPATH%g
7298 s%@ALLOCA@%$ALLOCA%g
7299 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
7300 /@MAKE_RULES@/r $MAKE_RULES
7301 s%@MAKE_RULES@%%g
7302 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7303 s%@MAKE_DLL_RULES@%%g
7304 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7305 s%@MAKE_PROG_RULES@%%g
7307 CEOF
7310 cat >> $CONFIG_STATUS <<\EOF
7312 # Split the substitutions into bite-sized pieces for seds with
7313 # small command number limits, like on Digital OSF/1 and HP-UX.
7314 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7315 ac_file=1 # Number of current file.
7316 ac_beg=1 # First line for current file.
7317 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7318 ac_more_lines=:
7319 ac_sed_cmds=""
7320 while $ac_more_lines; do
7321 if test $ac_beg -gt 1; then
7322 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7323 else
7324 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7326 if test ! -s conftest.s$ac_file; then
7327 ac_more_lines=false
7328 rm -f conftest.s$ac_file
7329 else
7330 if test -z "$ac_sed_cmds"; then
7331 ac_sed_cmds="sed -f conftest.s$ac_file"
7332 else
7333 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7335 ac_file=`expr $ac_file + 1`
7336 ac_beg=$ac_end
7337 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7339 done
7340 if test -z "$ac_sed_cmds"; then
7341 ac_sed_cmds=cat
7345 cat >> $CONFIG_STATUS <<EOF
7347 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
7348 dlls/Makedll.rules
7349 programs/Makeprog.rules
7350 Makefile
7351 console/Makefile
7352 controls/Makefile
7353 debugger/Makefile
7354 dlls/Makefile
7355 dlls/advapi32/Makefile
7356 dlls/avicap32/Makefile
7357 dlls/avifil32/Makefile
7358 dlls/comctl32/Makefile
7359 dlls/commdlg/Makefile
7360 dlls/crtdll/Makefile
7361 dlls/crypt32/Makefile
7362 dlls/dciman32/Makefile
7363 dlls/ddraw/Makefile
7364 dlls/devenum/Makefile
7365 dlls/dinput/Makefile
7366 dlls/dplay/Makefile
7367 dlls/dplayx/Makefile
7368 dlls/dsound/Makefile
7369 dlls/gdi/Makefile
7370 dlls/glu32/Makefile
7371 dlls/icmp/Makefile
7372 dlls/imagehlp/Makefile
7373 dlls/imm32/Makefile
7374 dlls/kernel/Makefile
7375 dlls/lzexpand/Makefile
7376 dlls/mapi32/Makefile
7377 dlls/mpr/Makefile
7378 dlls/msacm/Makefile
7379 dlls/msdmo/Makefile
7380 dlls/msimg32/Makefile
7381 dlls/msnet32/Makefile
7382 dlls/msrle32/Makefile
7383 dlls/msvcrt/Makefile
7384 dlls/msvcrt20/Makefile
7385 dlls/msvideo/Makefile
7386 dlls/netapi32/Makefile
7387 dlls/ntdll/Makefile
7388 dlls/odbc32/Makefile
7389 dlls/ole32/Makefile
7390 dlls/oleaut32/Makefile
7391 dlls/olecli/Makefile
7392 dlls/oledlg/Makefile
7393 dlls/olepro32/Makefile
7394 dlls/olesvr/Makefile
7395 dlls/opengl32/Makefile
7396 dlls/psapi/Makefile
7397 dlls/qcap/Makefile
7398 dlls/quartz/Makefile
7399 dlls/rasapi32/Makefile
7400 dlls/richedit/Makefile
7401 dlls/rpcrt4/Makefile
7402 dlls/serialui/Makefile
7403 dlls/setupapi/Makefile
7404 dlls/shdocvw/Makefile
7405 dlls/shell32/Makefile
7406 dlls/shfolder/Makefile
7407 dlls/shlwapi/Makefile
7408 dlls/sti/Makefile
7409 dlls/tapi32/Makefile
7410 dlls/ttydrv/Makefile
7411 dlls/url/Makefile
7412 dlls/urlmon/Makefile
7413 dlls/user/Makefile
7414 dlls/version/Makefile
7415 dlls/win32s/Makefile
7416 dlls/winaspi/Makefile
7417 dlls/winedos/Makefile
7418 dlls/wineps/Makefile
7419 dlls/wininet/Makefile
7420 dlls/winmm/Makefile
7421 dlls/winmm/joystick/Makefile
7422 dlls/winmm/mcianim/Makefile
7423 dlls/winmm/mciavi/Makefile
7424 dlls/winmm/mcicda/Makefile
7425 dlls/winmm/mciseq/Makefile
7426 dlls/winmm/mciwave/Makefile
7427 dlls/winmm/midimap/Makefile
7428 dlls/winmm/wavemap/Makefile
7429 dlls/winmm/wineoss/Makefile
7430 dlls/winnls/Makefile
7431 dlls/winsock/Makefile
7432 dlls/winspool/Makefile
7433 dlls/wintrust/Makefile
7434 dlls/wow32/Makefile
7435 dlls/wsock32/Makefile
7436 dlls/x11drv/Makefile
7437 documentation/Makefile
7438 documentation/wine.conf.man
7439 documentation/wine.man
7440 files/Makefile
7441 graphics/Makefile
7442 graphics/enhmetafiledrv/Makefile
7443 graphics/metafiledrv/Makefile
7444 graphics/win16drv/Makefile
7445 graphics/x11drv/Makefile
7446 if1632/Makefile
7447 include/Makefile
7448 library/Makefile
7449 libtest/Makefile
7450 loader/Makefile
7451 loader/ne/Makefile
7452 memory/Makefile
7453 misc/Makefile
7454 miscemu/Makefile
7455 msdos/Makefile
7456 objects/Makefile
7457 ole/Makefile
7458 programs/Makefile
7459 programs/avitools/Makefile
7460 programs/clock/Makefile
7461 programs/cmdlgtst/Makefile
7462 programs/control/Makefile
7463 programs/notepad/Makefile
7464 programs/osversioncheck/Makefile
7465 programs/progman/Makefile
7466 programs/regapi/Makefile
7467 programs/regtest/Makefile
7468 programs/uninstaller/Makefile
7469 programs/view/Makefile
7470 programs/wcmd/Makefile
7471 programs/wineconsole/Makefile
7472 programs/winemine/Makefile
7473 programs/winetest/Makefile
7474 programs/winhelp/Makefile
7475 programs/winver/Makefile
7476 relay32/Makefile
7477 scheduler/Makefile
7478 server/Makefile
7479 tools/Makefile
7480 tools/winapi/Makefile
7481 tools/winebuild/Makefile
7482 tools/winedump/Makefile
7483 tools/winelauncher
7484 tools/wmc/Makefile
7485 tools/wrc/Makefile
7486 tsx11/Makefile
7487 unicode/Makefile
7488 win32/Makefile
7489 windows/Makefile
7490 windows/x11drv/Makefile "}
7492 cat >> $CONFIG_STATUS <<\EOF
7493 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7494 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7495 case "$ac_file" in
7496 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7497 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7498 *) ac_file_in="${ac_file}.in" ;;
7499 esac
7501 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7503 # Remove last slash and all that follows it. Not all systems have dirname.
7504 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7505 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7506 # The file is in a subdirectory.
7507 test ! -d "$ac_dir" && mkdir "$ac_dir"
7508 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7509 # A "../" for each directory in $ac_dir_suffix.
7510 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7511 else
7512 ac_dir_suffix= ac_dots=
7515 case "$ac_given_srcdir" in
7516 .) srcdir=.
7517 if test -z "$ac_dots"; then top_srcdir=.
7518 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7519 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7520 *) # Relative path.
7521 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7522 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7523 esac
7525 case "$ac_given_INSTALL" in
7526 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7527 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7528 esac
7530 echo creating "$ac_file"
7531 rm -f "$ac_file"
7532 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7533 case "$ac_file" in
7534 *Makefile*) ac_comsub="1i\\
7535 # $configure_input" ;;
7536 *) ac_comsub= ;;
7537 esac
7539 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7540 sed -e "$ac_comsub
7541 s%@configure_input@%$configure_input%g
7542 s%@srcdir@%$srcdir%g
7543 s%@top_srcdir@%$top_srcdir%g
7544 s%@INSTALL@%$INSTALL%g
7545 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7546 fi; done
7547 rm -f conftest.s*
7549 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7550 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7552 # ac_d sets the value in "#define NAME VALUE" lines.
7553 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7554 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7555 ac_dC='\3'
7556 ac_dD='%g'
7557 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7558 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7559 ac_uB='\([ ]\)%\1#\2define\3'
7560 ac_uC=' '
7561 ac_uD='\4%g'
7562 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7563 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7564 ac_eB='$%\1#\2define\3'
7565 ac_eC=' '
7566 ac_eD='%g'
7568 if test "${CONFIG_HEADERS+set}" != set; then
7570 cat >> $CONFIG_STATUS <<EOF
7571 CONFIG_HEADERS="include/config.h"
7573 cat >> $CONFIG_STATUS <<\EOF
7575 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7576 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7577 case "$ac_file" in
7578 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7579 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7580 *) ac_file_in="${ac_file}.in" ;;
7581 esac
7583 echo creating $ac_file
7585 rm -f conftest.frag conftest.in conftest.out
7586 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7587 cat $ac_file_inputs > conftest.in
7591 # Transform confdefs.h into a sed script conftest.vals that substitutes
7592 # the proper values into config.h.in to produce config.h. And first:
7593 # Protect against being on the right side of a sed subst in config.status.
7594 # Protect against being in an unquoted here document in config.status.
7595 rm -f conftest.vals
7596 cat > conftest.hdr <<\EOF
7597 s/[\\&%]/\\&/g
7598 s%[\\$`]%\\&%g
7599 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7600 s%ac_d%ac_u%gp
7601 s%ac_u%ac_e%gp
7603 sed -n -f conftest.hdr confdefs.h > conftest.vals
7604 rm -f conftest.hdr
7606 # This sed command replaces #undef with comments. This is necessary, for
7607 # example, in the case of _POSIX_SOURCE, which is predefined and required
7608 # on some systems where configure will not decide to define it.
7609 cat >> conftest.vals <<\EOF
7610 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7613 # Break up conftest.vals because some shells have a limit on
7614 # the size of here documents, and old seds have small limits too.
7616 rm -f conftest.tail
7617 while :
7619 ac_lines=`grep -c . conftest.vals`
7620 # grep -c gives empty output for an empty file on some AIX systems.
7621 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7622 # Write a limited-size here document to conftest.frag.
7623 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7624 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7625 echo 'CEOF
7626 sed -f conftest.frag conftest.in > conftest.out
7627 rm -f conftest.in
7628 mv conftest.out conftest.in
7629 ' >> $CONFIG_STATUS
7630 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7631 rm -f conftest.vals
7632 mv conftest.tail conftest.vals
7633 done
7634 rm -f conftest.vals
7636 cat >> $CONFIG_STATUS <<\EOF
7637 rm -f conftest.frag conftest.h
7638 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7639 cat conftest.in >> conftest.h
7640 rm -f conftest.in
7641 if cmp -s $ac_file conftest.h 2>/dev/null; then
7642 echo "$ac_file is unchanged"
7643 rm -f conftest.h
7644 else
7645 # Remove last slash and all that follows it. Not all systems have dirname.
7646 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7647 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7648 # The file is in a subdirectory.
7649 test ! -d "$ac_dir" && mkdir "$ac_dir"
7651 rm -f $ac_file
7652 mv conftest.h $ac_file
7654 fi; done
7657 cat >> $CONFIG_STATUS <<EOF
7661 cat >> $CONFIG_STATUS <<\EOF
7663 extra_subdirs="\
7664 dlls/ddraw/d3ddevice \
7665 dlls/ddraw/dclipper \
7666 dlls/ddraw/ddraw \
7667 dlls/ddraw/direct3d \
7668 dlls/ddraw/dpalette \
7669 dlls/ddraw/dsurface \
7670 dlls/dinput/joystick \
7671 dlls/dinput/keyboard \
7672 dlls/dinput/mouse \
7673 dlls/kernel/messages \
7674 dlls/user/dde \
7675 dlls/user/resources \
7676 dlls/wineps/data \
7678 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7680 exit 0
7682 chmod +x $CONFIG_STATUS
7683 rm -fr confdefs* $ac_clean_files
7684 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7687 if test "$have_x" = "no"
7688 then
7689 echo
7690 echo "*** Warning: X development files not found. Wine will be built without"
7691 echo "*** X support, which currently does not work, and would probably not be"
7692 echo "*** what you want anyway. You will need to install devel packages of"
7693 echo "*** Xlib/Xfree86 at the very least."
7696 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7697 then
7698 echo
7699 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7700 echo "*** terminal resize support. Consider upgrading ncurses."
7703 if test "$wine_cv_libc_reentrant" = "no"
7704 then
7705 echo
7706 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7707 echo "*** thread support. Consider upgrading libc to a more recent"
7708 echo "*** reentrant version of libc."
7711 if test "$wine_cv_opengl_version_OK" = "no"
7712 then
7713 echo
7714 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
7715 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7718 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
7719 then
7720 echo
7721 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
7722 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
7723 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
7724 echo "*** start configure with '--enable-opengl' to force OpenGL support."
7727 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
7728 then
7729 echo
7730 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
7731 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7732 echo "*** support before reporting bugs."
7735 if test "$wine_cv_warn_cups_h" = "yes"
7736 then
7737 echo
7738 echo "*** Note: You have cups runtime libraries, but no development"
7739 echo "*** libraries. Install the cups-devel package or whichever package"
7740 echo "*** contains cups.h to enable CUPS support in WINE."
7743 if test "$wine_cv_msg_freetype" = "yes"
7744 then
7745 echo
7746 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7747 echo "*** installed, but either 'freetype-config' is not in your PATH,"
7748 echo "*** you do not have the FreeType include files or you have a version"
7749 echo "*** of FreeType lower than 2.0.3. Install the freetype-devel package"
7750 echo "*** (or its equivalent on your distribution) to enable Wine to use"
7751 echo "*** TrueType fonts."
7754 echo
7755 echo "Configure finished. Do 'make depend && make' to compile Wine."
7756 echo