blob: adc0b0b506b00a8c3a0f570863e3d8ce3124276b [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001#! /bin/sh
2
3# From configure.in configure.in 1.00
4# Guess values for system-dependent variables and create Makefiles.
Eric Pouech18ad24a2000-01-16 22:16:33 +00005# Generated automatically using autoconf version 2.13
Alexandre Julliard59730ae1996-03-24 16:20:51 +00006# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007#
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10
11# Defaults:
12ac_help=
13ac_default_prefix=/usr/local
14# Any additions from configure.in:
15ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000016 --disable-debug compile out all debugging messages"
17ac_help="$ac_help
Andreas Mohr18a9d742001-01-17 21:52:42 +000018 --enable-opengl force usage of OpenGL even if the latter is thread-safe via pthread"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000019ac_help="$ac_help
Alexandre Julliardf90efa91998-06-14 15:24:15 +000020 --disable-trace compile out TRACE messages"
21ac_help="$ac_help
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000022 --without-curses do not use curses"
23ac_help="$ac_help
Patrik Stridvallf638aef1998-12-07 09:36:13 +000024 --without-reentrant-x compile for use with non-reentrant X libraries"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000025ac_help="$ac_help
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000026 --with-x use the X Window System"
27
28# Initialize some variables set by options.
29# The variables have the same names as the options, with
30# dashes changed to underlines.
31build=NONE
32cache_file=./config.cache
33exec_prefix=NONE
34host=NONE
35no_create=
36nonopt=NONE
37no_recursion=
38prefix=NONE
39program_prefix=NONE
40program_suffix=NONE
41program_transform_name=s,x,x,
42silent=
43site=
44srcdir=
45target=NONE
46verbose=
47x_includes=NONE
48x_libraries=NONE
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000049bindir='${exec_prefix}/bin'
50sbindir='${exec_prefix}/sbin'
51libexecdir='${exec_prefix}/libexec'
52datadir='${prefix}/share'
53sysconfdir='${prefix}/etc'
54sharedstatedir='${prefix}/com'
55localstatedir='${prefix}/var'
56libdir='${exec_prefix}/lib'
57includedir='${prefix}/include'
58oldincludedir='/usr/include'
59infodir='${prefix}/info'
60mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000061
62# Initialize some other variables.
63subdirs=
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000064MFLAGS= MAKEFLAGS=
Eric Pouech18ad24a2000-01-16 22:16:33 +000065SHELL=${CONFIG_SHELL-/bin/sh}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000066# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000068
69ac_prev=
70for ac_option
71do
72
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
78 fi
79
80 case "$ac_option" in
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 *) ac_optarg= ;;
83 esac
84
85 # Accept the important Cygnus configure options, so we can diagnose typos.
86
87 case "$ac_option" in
88
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000089 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 ac_prev=bindir ;;
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
93
94 -build | --build | --buil | --bui | --bu)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000095 ac_prev=build ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000096 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000097 build="$ac_optarg" ;;
98
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" ;;
105
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 ac_prev=datadir ;;
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 | --da=*)
110 datadir="$ac_optarg" ;;
111
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000112 -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; }
117 fi
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
120
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; }
126 fi
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'" ;;
133
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" ;;
142
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
145 with_gas=yes ;;
146
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
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
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
159Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
161 [$ac_default_prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000163 [same as prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000164 --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]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000178 --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
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
183EOF
184 cat << EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000185Host 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]
189Features 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
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000196EOF
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
199 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000200 exit 0 ;;
201
202 -host | --host | --hos | --ho)
203 ac_prev=host ;;
204 -host=* | --host=* | --hos=* | --ho=*)
205 host="$ac_optarg" ;;
206
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000207 -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" ;;
213
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 ac_prev=infodir ;;
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
218
219 -libdir | --libdir | --libdi | --libd)
220 ac_prev=libdir ;;
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
223
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" ;;
230
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" ;;
239
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 ac_prev=mandir ;;
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
244
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000245 -nfp | --nfp | --nf)
246 # Obsolete; use --without-fp.
247 with_fp=no ;;
248
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 | --no-cr | --no-c)
251 no_create=yes ;;
252
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 ;;
256
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000257 -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" ;;
265
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 ac_prev=prefix ;;
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
270
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" ;;
277
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" ;;
284
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" ;;
301
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
304 silent=yes ;;
305
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 ac_prev=sbindir ;;
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 | --sbi=* | --sb=*)
310 sbindir="$ac_optarg" ;;
311
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" ;;
322
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000323 -site | --site | --sit)
324 ac_prev=site ;;
325 -site=* | --site=* | --sit=*)
326 site="$ac_optarg" ;;
327
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 ac_prev=srcdir ;;
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
332
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000333 -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" ;;
339
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000340 -target | --target | --targe | --targ | --tar | --ta | --t)
341 ac_prev=target ;;
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
344
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
346 verbose=yes ;;
347
348 -version | --version | --versio | --versi | --vers)
Eric Pouech18ad24a2000-01-16 22:16:33 +0000349 echo "configure generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000350 exit 0 ;;
351
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; }
357 fi
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'" ;;
364
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; }
370 fi
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
373
374 --x)
375 # Obsolete; use --with-x.
376 with_x=yes ;;
377
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" ;;
384
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" ;;
391
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 ;;
394
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000395 *)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 fi
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; }
401 fi
402 nonopt="$ac_option"
403 ;;
404
405 esac
406done
407
408if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
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
422if test "$silent" = yes; then
423 exec 6>/dev/null
424else
425 exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
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
448done
449
450# NLS nuisances.
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000451# 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.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000455if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
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.
467ac_unique_file=controls/edit.c
468
469# Find the source files, if location was not specified.
470if 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=..
479 fi
480else
481 ac_srcdir_defaulted=no
482fi
483if 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; }
488 fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if 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"
498 fi
499fi
500for 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"
504 fi
505done
506
507if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 . $cache_file
510else
511 echo "creating cache $cache_file"
512 > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000520cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000521
Eric Pouech18ad24a2000-01-16 22:16:33 +0000522ac_exeext=
523ac_objext=o
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000524if (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=
531 fi
532else
533 ac_n= ac_c='\c' ac_t=
534fi
535
536
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000537
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000538ac_aux_dir=
539for 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
548 fi
549done
550if 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; }
552fi
553ac_config_guess=$ac_aux_dir/config.guess
554ac_config_sub=$ac_aux_dir/config.sub
555ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000557
Howard Abrams13277481999-07-10 13:16:29 +0000558
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000559LIBEXT=so # library type .so or .a
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000560TRACE_MSGS=yes # the TRACE() macro
561DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000562CURSES=yes
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000563OPENGL=normal
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000564
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000565# Check whether --enable-debug or --disable-debug was given.
566if test "${enable_debug+set}" = set; then
567 enableval="$enable_debug"
568 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
569fi
570
571
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000572# Check whether --enable-opengl or --disable-opengl was given.
573if 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
576fi
577
578
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000579# Check whether --enable-trace or --disable-trace was given.
580if test "${enable_trace+set}" = set; then
581 enableval="$enable_trace"
582 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
583fi
584
585
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000586# Check whether --with-curses or --without-curses was given.
587if test "${with_curses+set}" = set; then
588 withval="$with_curses"
589 if test "$withval" = "no"; then CURSES="no"; fi
590fi
591
592
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000593# Check whether --with-reentrant-x or --without-reentrant-x was given.
594if test "${with_reentrant_x+set}" = set; then
595 withval="$with_reentrant_x"
596 :
597fi
598
599
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000600
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000601
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000602if test "$DEBUG_MSGS" = "no"
603then
François Gouget2663b802001-11-06 19:01:05 +0000604 OPTIONS="$OPTIONS -DNO_DEBUG_MSGS"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000605fi
606
607if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
608then
François Gouget2663b802001-11-06 19:01:05 +0000609 OPTIONS="$OPTIONS -DNO_TRACE_MSGS"
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000610fi
611
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000612
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000613echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000614echo "configure:615: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000615set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000616if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
618else
619 cat > conftestmake <<\EOF
620all:
621 @echo 'ac_maketemp="${MAKE}"'
622EOF
623# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
624eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
625if test -n "$ac_maketemp"; then
626 eval ac_cv_prog_make_${ac_make}_set=yes
627else
628 eval ac_cv_prog_make_${ac_make}_set=no
629fi
630rm -f conftestmake
631fi
632if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
633 echo "$ac_t""yes" 1>&6
634 SET_MAKE=
635else
636 echo "$ac_t""no" 1>&6
637 SET_MAKE="MAKE=${MAKE-make}"
638fi
639
640# Extract the first word of "gcc", so it can be a program name with args.
641set dummy gcc; ac_word=$2
642echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000643echo "configure:644: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000644if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
646else
647 if test -n "$CC"; then
648 ac_cv_prog_CC="$CC" # Let the user override the test.
649else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
651 ac_dummy="$PATH"
652 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000653 test -z "$ac_dir" && ac_dir=.
654 if test -f $ac_dir/$ac_word; then
655 ac_cv_prog_CC="gcc"
656 break
657 fi
658 done
659 IFS="$ac_save_ifs"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000660fi
661fi
662CC="$ac_cv_prog_CC"
663if test -n "$CC"; then
664 echo "$ac_t""$CC" 1>&6
665else
666 echo "$ac_t""no" 1>&6
667fi
668
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000669if test -z "$CC"; then
670 # Extract the first word of "cc", so it can be a program name with args.
671set dummy cc; ac_word=$2
672echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000673echo "configure:674: checking for $ac_word" >&5
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000674if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676else
677 if test -n "$CC"; then
678 ac_cv_prog_CC="$CC" # Let the user override the test.
679else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000681 ac_prog_rejected=no
Eric Pouech18ad24a2000-01-16 22:16:33 +0000682 ac_dummy="$PATH"
683 for ac_dir in $ac_dummy; do
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000684 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
689 fi
690 ac_cv_prog_CC="cc"
691 break
692 fi
693 done
694 IFS="$ac_save_ifs"
695if 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="$@"
707 fi
708fi
709fi
710fi
711CC="$ac_cv_prog_CC"
712if test -n "$CC"; then
713 echo "$ac_t""$CC" 1>&6
714else
715 echo "$ac_t""no" 1>&6
716fi
717
Eric Pouech18ad24a2000-01-16 22:16:33 +0000718 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.
722set dummy cl; ac_word=$2
723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000724echo "configure:725: checking for $ac_word" >&5
Eric Pouech18ad24a2000-01-16 22:16:33 +0000725if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
727else
728 if test -n "$CC"; then
729 ac_cv_prog_CC="$CC" # Let the user override the test.
730else
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
738 fi
739 done
740 IFS="$ac_save_ifs"
741fi
742fi
743CC="$ac_cv_prog_CC"
744if test -n "$CC"; then
745 echo "$ac_t""$CC" 1>&6
746else
747 echo "$ac_t""no" 1>&6
748fi
749 ;;
750 esac
751 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000752 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
753fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000754
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000755echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000756echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000757
758ac_ext=c
759# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760ac_cpp='$CPP $CPPFLAGS'
761ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000762ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000763cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000764
Eric Pouech18ad24a2000-01-16 22:16:33 +0000765cat > conftest.$ac_ext << EOF
766
François Gouget2663b802001-11-06 19:01:05 +0000767#line 768 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000768#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000769
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000770main(){return(0);}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000771EOF
François Gouget2663b802001-11-06 19:01:05 +0000772if { (eval echo configure:773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000773 ac_cv_prog_cc_works=yes
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000774 # 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
779 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000780else
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000783 ac_cv_prog_cc_works=no
784fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000785rm -fr conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000786ac_ext=c
787# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788ac_cpp='$CPP $CPPFLAGS'
789ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000792
793echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
794if test $ac_cv_prog_cc_works = no; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000795 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000796fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000797echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000798echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000799echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
800cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000801
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000802echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000803echo "configure:804: checking whether we are using GNU C" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000804if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
806else
807 cat > conftest.c <<EOF
808#ifdef __GNUC__
809 yes;
810#endif
811EOF
François Gouget2663b802001-11-06 19:01:05 +0000812if { 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
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000813 ac_cv_prog_gcc=yes
814else
815 ac_cv_prog_gcc=no
816fi
817fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000818
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000819echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000820
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000821if test $ac_cv_prog_gcc = yes; then
822 GCC=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +0000823else
824 GCC=
825fi
826
827ac_test_CFLAGS="${CFLAGS+set}"
828ac_save_CFLAGS="$CFLAGS"
829CFLAGS=
830echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000831echo "configure:832: checking whether ${CC-cc} accepts -g" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000832if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000833 echo $ac_n "(cached) $ac_c" 1>&6
834else
835 echo 'void f(){}' > conftest.c
836if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000837 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838else
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000839 ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000840fi
841rm -f conftest*
842
843fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000844
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000845echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Eric Pouech18ad24a2000-01-16 22:16:33 +0000846if test "$ac_test_CFLAGS" = set; then
847 CFLAGS="$ac_save_CFLAGS"
848elif test $ac_cv_prog_cc_g = yes; then
849 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000850 CFLAGS="-g -O2"
851 else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000852 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000853 fi
854else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000855 if test "$GCC" = yes; then
856 CFLAGS="-O2"
857 else
858 CFLAGS=
859 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000860fi
861
862echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000863echo "configure:864: checking how to run the C preprocessor" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000864# On Suns, sometimes $CPP names a directory.
865if test -n "$CPP" && test -d "$CPP"; then
866 CPP=
867fi
868if test -z "$CPP"; then
869if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
871else
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
François Gouget2663b802001-11-06 19:01:05 +0000878#line 879 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000879#include "confdefs.h"
880#include <assert.h>
881Syntax Error
882EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000883ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +0000884{ (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000885ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000886if test -z "$ac_err"; then
887 :
888else
889 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000890 echo "configure: failed program was:" >&5
891 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000892 rm -rf conftest*
893 CPP="${CC-cc} -E -traditional-cpp"
894 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +0000895#line 896 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000896#include "confdefs.h"
897#include <assert.h>
898Syntax Error
899EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +0000901{ (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
903if test -z "$ac_err"; then
904 :
905else
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
François Gouget2663b802001-11-06 19:01:05 +0000912#line 913 "configure"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000913#include "confdefs.h"
914#include <assert.h>
915Syntax Error
916EOF
917ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +0000918{ (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000919ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000920if test -z "$ac_err"; then
921 :
922else
923 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000924 echo "configure: failed program was:" >&5
925 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000926 rm -rf conftest*
927 CPP=/lib/cpp
928fi
929rm -f conftest*
930fi
931rm -f conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000932fi
933rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000934 ac_cv_prog_CPP="$CPP"
935fi
936 CPP="$ac_cv_prog_CPP"
937else
938 ac_cv_prog_CPP="$CPP"
939fi
940echo "$ac_t""$CPP" 1>&6
941
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.
946echo $ac_n "checking for X""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +0000947echo "configure:948: checking for X" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000948
949# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000950if test "${with_x+set}" = set; then
951 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000952 :
953fi
954
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000955# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000956if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000957 # The user explicitly disabled X.
958 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000959else
960 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000961 # Both variables are already set.
962 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000963 else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000964if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000965 echo $ac_n "(cached) $ac_c" 1>&6
966else
967 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000968ac_x_includes=NO ac_x_libraries=NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000969rm -fr conftestdir
970if 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'
974acfindx:
975 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
976EOF
977 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000978 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000979 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000980 # 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
985 fi
986 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000987 # 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.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000990 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
998 fi
999 cd ..
1000 rm -fr conftestdir
1001fi
1002
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001003if 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
1006
1007 # First, try using that file with no special directory specified.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001008cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001009#line 1010 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001010#include "confdefs.h"
1011#include <$x_direct_test_include>
1012EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001013ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +00001014{ (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00001015ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001016if test -z "$ac_err"; then
1017 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001018 # We can compile using X headers with no special include directory.
1019ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001020else
1021 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001024 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001025 # Look for the header file in a standard set of common directories.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001026# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001027 for ac_dir in \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001028 /usr/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001029 /usr/X11R6/include \
1030 /usr/X11R5/include \
1031 /usr/X11R4/include \
1032 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001033 /usr/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001034 /usr/include/X11R6 \
1035 /usr/include/X11R5 \
1036 /usr/include/X11R4 \
1037 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001038 /usr/local/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001039 /usr/local/X11R6/include \
1040 /usr/local/X11R5/include \
1041 /usr/local/X11R4/include \
1042 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001043 /usr/local/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001044 /usr/local/include/X11R6 \
1045 /usr/local/include/X11R5 \
1046 /usr/local/include/X11R4 \
1047 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001048 /usr/X386/include \
1049 /usr/x386/include \
1050 /usr/XFree86/include/X11 \
1051 \
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 \
1058 \
1059 /usr/openwin/include \
1060 /usr/openwin/share/include \
1061 ; \
1062 do
1063 if test -r "$ac_dir/$x_direct_test_include"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001064 ac_x_includes=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001065 break
1066 fi
1067 done
1068fi
1069rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001070fi # $ac_x_includes = NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001071
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001072if test "$ac_x_libraries" = NO; then
1073 # Check for the libraries.
1074
1075 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1076 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1077
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"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001082cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001083#line 1084 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001084#include "confdefs.h"
1085
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001086int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001087${x_direct_test_function}()
1088; return 0; }
1089EOF
François Gouget2663b802001-11-06 19:01:05 +00001090if { (eval echo configure:1091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001091 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001092 LIBS="$ac_save_LIBS"
1093# We can link X programs with no special library path.
1094ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001095else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001098 rm -rf conftest*
1099 LIBS="$ac_save_LIBS"
1100# First see if replacing the include by lib works.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001101# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001102for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001103 /usr/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001104 /usr/X11R6/lib \
1105 /usr/X11R5/lib \
1106 /usr/X11R4/lib \
1107 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001108 /usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001109 /usr/lib/X11R6 \
1110 /usr/lib/X11R5 \
1111 /usr/lib/X11R4 \
1112 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001113 /usr/local/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001114 /usr/local/X11R6/lib \
1115 /usr/local/X11R5/lib \
1116 /usr/local/X11R4/lib \
1117 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001118 /usr/local/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001119 /usr/local/lib/X11R6 \
1120 /usr/local/lib/X11R5 \
1121 /usr/local/lib/X11R4 \
1122 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001123 /usr/X386/lib \
1124 /usr/x386/lib \
1125 /usr/XFree86/lib/X11 \
1126 \
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 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001133 /lib/usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001134 \
1135 /usr/openwin/lib \
1136 /usr/openwin/share/lib \
1137 ; \
1138do
1139 for ac_extension in a so sl; do
1140 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001141 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001142 break 2
1143 fi
1144 done
1145done
1146fi
1147rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001148fi # $ac_x_libraries = NO
1149
1150if 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"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001154 # 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"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001157fi
1158fi
1159 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001160 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001161fi # $with_x != no
1162
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001163if test "$have_x" != yes; then
1164 echo "$ac_t""$have_x" 1>&6
1165 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001166else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001167 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001168 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1169 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001170 # 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"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001173 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1174fi
1175
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001176if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001177 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001178 cat >> confdefs.h <<\EOF
1179#define X_DISPLAY_MISSING 1
1180EOF
1181
1182 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001183else
1184 if test -n "$x_includes"; then
1185 X_CFLAGS="$X_CFLAGS -I$x_includes"
1186 fi
1187
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001188 # 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"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001191 # 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
François Gouget2663b802001-11-06 19:01:05 +00001196echo "configure:1197: checking whether -R must be followed by a space" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001197 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1198 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001199#line 1200 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001200#include "confdefs.h"
1201
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001202int main() {
1203
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001204; return 0; }
1205EOF
François Gouget2663b802001-11-06 19:01:05 +00001206if { (eval echo configure:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001207 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001208 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001209else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001212 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001213 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001214fi
1215rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001216 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
François Gouget2663b802001-11-06 19:01:05 +00001222#line 1223 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001223#include "confdefs.h"
1224
1225int main() {
1226
1227; return 0; }
1228EOF
François Gouget2663b802001-11-06 19:01:05 +00001229if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001230 rm -rf conftest*
1231 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001232else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1235 rm -rf conftest*
1236 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001237fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001238rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001239 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
1244 fi
1245 fi
1246 LIBS="$ac_xsave_LIBS"
1247 esac
1248 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001249
1250 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001251 # Do this before checking for the system-independent R6 libraries
1252 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001253
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).
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001260 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001261echo "configure:1262: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001262ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001263if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001264 echo $ac_n "(cached) $ac_c" 1>&6
1265else
1266 ac_save_LIBS="$LIBS"
1267LIBS="-ldnet $LIBS"
1268cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001269#line 1270 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001270#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001271/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001272/* We use char because int might match the return type of a gcc2
1273 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001274char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001275
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001276int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001277dnet_ntoa()
1278; return 0; }
1279EOF
François Gouget2663b802001-11-06 19:01:05 +00001280if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001281 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001282 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001283else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001286 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001287 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001288fi
1289rm -f conftest*
1290LIBS="$ac_save_LIBS"
1291
1292fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001293if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001294 echo "$ac_t""yes" 1>&6
1295 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1296else
1297 echo "$ac_t""no" 1>&6
1298fi
1299
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001300 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001301 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001302echo "configure:1303: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001303ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001304if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001305 echo $ac_n "(cached) $ac_c" 1>&6
1306else
1307 ac_save_LIBS="$LIBS"
1308LIBS="-ldnet_stub $LIBS"
1309cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001310#line 1311 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001311#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001312/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001313/* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001315char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001316
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001317int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001318dnet_ntoa()
1319; return 0; }
1320EOF
François Gouget2663b802001-11-06 19:01:05 +00001321if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001322 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001323 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001324else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001325 echo "configure: failed program was:" >&5
1326 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001327 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001328 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001329fi
1330rm -f conftest*
1331LIBS="$ac_save_LIBS"
1332
1333fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001334if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001335 echo "$ac_t""yes" 1>&6
1336 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1337else
1338 echo "$ac_t""no" 1>&6
1339fi
1340
1341 fi
1342
1343 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1344 # to get the SysV transport functions.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001345 # 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
François Gouget2663b802001-11-06 19:01:05 +00001350echo "configure:1351: checking for gethostbyname" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001351if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353else
1354 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001355#line 1356 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001356#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. */
1363char gethostbyname();
1364
1365int main() {
1366
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)
1371choke me
1372#else
1373gethostbyname();
1374#endif
1375
1376; return 0; }
1377EOF
François Gouget2663b802001-11-06 19:01:05 +00001378if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001379 rm -rf conftest*
1380 eval "ac_cv_func_gethostbyname=yes"
1381else
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1384 rm -rf conftest*
1385 eval "ac_cv_func_gethostbyname=no"
1386fi
1387rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001388fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001389
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001390if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1392 :
1393else
1394 echo "$ac_t""no" 1>&6
1395fi
1396
1397 if test $ac_cv_func_gethostbyname = no; then
1398 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001399echo "configure:1400: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001400ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001401if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001402 echo $ac_n "(cached) $ac_c" 1>&6
1403else
1404 ac_save_LIBS="$LIBS"
1405LIBS="-lnsl $LIBS"
1406cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001407#line 1408 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001408#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001409/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001410/* We use char because int might match the return type of a gcc2
1411 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001412char gethostbyname();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001413
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001414int main() {
1415gethostbyname()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001416; return 0; }
1417EOF
François Gouget2663b802001-11-06 19:01:05 +00001418if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001419 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001420 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001421else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001424 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001425 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001426fi
1427rm -f conftest*
1428LIBS="$ac_save_LIBS"
1429
1430fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001431if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001432 echo "$ac_t""yes" 1>&6
1433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1434else
1435 echo "$ac_t""no" 1>&6
1436fi
1437
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001438 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001439
1440 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001441 # 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
François Gouget2663b802001-11-06 19:01:05 +00001448echo "configure:1449: checking for connect" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001449if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451else
1452 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001453#line 1454 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001454#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. */
1461char connect();
1462
1463int main() {
1464
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)
1469choke me
1470#else
1471connect();
1472#endif
1473
1474; return 0; }
1475EOF
François Gouget2663b802001-11-06 19:01:05 +00001476if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001477 rm -rf conftest*
1478 eval "ac_cv_func_connect=yes"
1479else
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1482 rm -rf conftest*
1483 eval "ac_cv_func_connect=no"
1484fi
1485rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001486fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001487
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001488if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1490 :
1491else
1492 echo "$ac_t""no" 1>&6
1493fi
1494
1495 if test $ac_cv_func_connect = no; then
1496 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001497echo "configure:1498: checking for connect in -lsocket" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001498ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001499if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001500 echo $ac_n "(cached) $ac_c" 1>&6
1501else
1502 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001503LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001504cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001505#line 1506 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001506#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001507/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001508/* We use char because int might match the return type of a gcc2
1509 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001510char connect();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001511
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001512int main() {
1513connect()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001514; return 0; }
1515EOF
François Gouget2663b802001-11-06 19:01:05 +00001516if { (eval echo configure:1517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001517 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001518 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001519else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001522 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001523 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001524fi
1525rm -f conftest*
1526LIBS="$ac_save_LIBS"
1527
1528fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001529if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001530 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001531 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001532else
1533 echo "$ac_t""no" 1>&6
1534fi
1535
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001536 fi
1537
1538 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1539 echo $ac_n "checking for remove""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001540echo "configure:1541: checking for remove" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001541if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1543else
1544 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001545#line 1546 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001546#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. */
1553char remove();
1554
1555int main() {
1556
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)
1561choke me
1562#else
1563remove();
1564#endif
1565
1566; return 0; }
1567EOF
François Gouget2663b802001-11-06 19:01:05 +00001568if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001569 rm -rf conftest*
1570 eval "ac_cv_func_remove=yes"
1571else
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 rm -rf conftest*
1575 eval "ac_cv_func_remove=no"
1576fi
1577rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001578fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001579
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001580if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1582 :
1583else
1584 echo "$ac_t""no" 1>&6
1585fi
1586
1587 if test $ac_cv_func_remove = no; then
1588 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001589echo "configure:1590: checking for remove in -lposix" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001590ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001591if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1593else
1594 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001595LIBS="-lposix $LIBS"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001596cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001597#line 1598 "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001598#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. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001602char remove();
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001603
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001604int main() {
1605remove()
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001606; return 0; }
1607EOF
François Gouget2663b802001-11-06 19:01:05 +00001608if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001609 rm -rf conftest*
1610 eval "ac_cv_lib_$ac_lib_var=yes"
1611else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001614 rm -rf conftest*
1615 eval "ac_cv_lib_$ac_lib_var=no"
1616fi
1617rm -f conftest*
1618LIBS="$ac_save_LIBS"
1619
1620fi
1621if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1622 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001624else
1625 echo "$ac_t""no" 1>&6
1626fi
1627
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001628 fi
1629
1630 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1631 echo $ac_n "checking for shmat""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001632echo "configure:1633: checking for shmat" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001633if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635else
1636 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001637#line 1638 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001638#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. */
1645char shmat();
1646
1647int main() {
1648
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)
1653choke me
1654#else
1655shmat();
1656#endif
1657
1658; return 0; }
1659EOF
François Gouget2663b802001-11-06 19:01:05 +00001660if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001661 rm -rf conftest*
1662 eval "ac_cv_func_shmat=yes"
1663else
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1666 rm -rf conftest*
1667 eval "ac_cv_func_shmat=no"
1668fi
1669rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001670fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001671
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001672if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1673 echo "$ac_t""yes" 1>&6
1674 :
1675else
1676 echo "$ac_t""no" 1>&6
1677fi
1678
1679 if test $ac_cv_func_shmat = no; then
1680 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001681echo "configure:1682: checking for shmat in -lipc" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001682ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1685else
1686 ac_save_LIBS="$LIBS"
1687LIBS="-lipc $LIBS"
1688cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001689#line 1690 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001690#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. */
1694char shmat();
1695
1696int main() {
1697shmat()
1698; return 0; }
1699EOF
François Gouget2663b802001-11-06 19:01:05 +00001700if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001701 rm -rf conftest*
1702 eval "ac_cv_lib_$ac_lib_var=yes"
1703else
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"
1708fi
1709rm -f conftest*
1710LIBS="$ac_save_LIBS"
1711
1712fi
1713if 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"
1716else
1717 echo "$ac_t""no" 1>&6
1718fi
1719
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001720 fi
1721 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001722
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
François Gouget2663b802001-11-06 19:01:05 +00001733echo "configure:1734: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001734ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737else
1738 ac_save_LIBS="$LIBS"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001739LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001740cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001741#line 1742 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001742#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. */
1746char IceConnectionNumber();
1747
1748int main() {
1749IceConnectionNumber()
1750; return 0; }
1751EOF
François Gouget2663b802001-11-06 19:01:05 +00001752if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001753 rm -rf conftest*
1754 eval "ac_cv_lib_$ac_lib_var=yes"
1755else
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"
1760fi
1761rm -f conftest*
1762LIBS="$ac_save_LIBS"
1763
1764fi
1765if 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"
1768else
1769 echo "$ac_t""no" 1>&6
1770fi
1771
1772 LDFLAGS="$ac_save_LDFLAGS"
1773
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001774fi
1775
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001776for ac_prog in 'bison -y' byacc
1777do
1778# Extract the first word of "$ac_prog", so it can be a program name with args.
1779set dummy $ac_prog; ac_word=$2
1780echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001781echo "configure:1782: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001782if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784else
1785 if test -n "$YACC"; then
1786 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1787else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1789 ac_dummy="$PATH"
1790 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001791 test -z "$ac_dir" && ac_dir=.
1792 if test -f $ac_dir/$ac_word; then
1793 ac_cv_prog_YACC="$ac_prog"
1794 break
1795 fi
1796 done
1797 IFS="$ac_save_ifs"
1798fi
1799fi
1800YACC="$ac_cv_prog_YACC"
1801if test -n "$YACC"; then
1802 echo "$ac_t""$YACC" 1>&6
1803else
1804 echo "$ac_t""no" 1>&6
1805fi
1806
1807test -n "$YACC" && break
1808done
1809test -n "$YACC" || YACC="yacc"
1810
1811# Extract the first word of "flex", so it can be a program name with args.
1812set dummy flex; ac_word=$2
1813echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001814echo "configure:1815: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001815if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817else
1818 if test -n "$LEX"; then
1819 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1820else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1822 ac_dummy="$PATH"
1823 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001824 test -z "$ac_dir" && ac_dir=.
1825 if test -f $ac_dir/$ac_word; then
1826 ac_cv_prog_LEX="flex"
1827 break
1828 fi
1829 done
1830 IFS="$ac_save_ifs"
1831 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1832fi
1833fi
1834LEX="$ac_cv_prog_LEX"
1835if test -n "$LEX"; then
1836 echo "$ac_t""$LEX" 1>&6
1837else
1838 echo "$ac_t""no" 1>&6
1839fi
1840
1841if test -z "$LEXLIB"
1842then
1843 case "$LEX" in
1844 flex*) ac_lib=fl ;;
1845 *) ac_lib=l ;;
1846 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001847 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001848echo "configure:1849: checking for yywrap in -l$ac_lib" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001849ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001850if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001851 echo $ac_n "(cached) $ac_c" 1>&6
1852else
1853 ac_save_LIBS="$LIBS"
1854LIBS="-l$ac_lib $LIBS"
1855cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00001856#line 1857 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001857#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001858/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001859/* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001861char yywrap();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001862
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001863int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001864yywrap()
1865; return 0; }
1866EOF
François Gouget2663b802001-11-06 19:01:05 +00001867if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001868 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001869 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001870else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001873 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001874 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001875fi
1876rm -f conftest*
1877LIBS="$ac_save_LIBS"
1878
1879fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001880if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001881 echo "$ac_t""yes" 1>&6
1882 LEXLIB="-l$ac_lib"
1883else
1884 echo "$ac_t""no" 1>&6
1885fi
1886
1887fi
1888
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001889for ac_prog in $LEX flex lex
1890do
1891# Extract the first word of "$ac_prog", so it can be a program name with args.
1892set dummy $ac_prog; ac_word=$2
1893echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001894echo "configure:1895: checking for $ac_word" >&5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001895if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897else
1898 if test -n "$XLEX"; then
1899 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1900else
1901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1902 ac_dummy="$PATH"
1903 for ac_dir in $ac_dummy; do
1904 test -z "$ac_dir" && ac_dir=.
1905 if test -f $ac_dir/$ac_word; then
1906 ac_cv_prog_XLEX="$ac_prog"
1907 break
1908 fi
1909 done
1910 IFS="$ac_save_ifs"
1911fi
1912fi
1913XLEX="$ac_cv_prog_XLEX"
1914if test -n "$XLEX"; then
1915 echo "$ac_t""$XLEX" 1>&6
1916else
1917 echo "$ac_t""no" 1>&6
1918fi
1919
1920test -n "$XLEX" && break
1921done
1922test -n "$XLEX" || XLEX="none"
1923
1924if test "$XLEX" = "none"
1925then
1926 echo "*** Error: No suitable lex found. ***"
1927 echo " Please install the 'flex' package."
1928 exit 1
1929fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001930# Extract the first word of "ranlib", so it can be a program name with args.
1931set dummy ranlib; ac_word=$2
1932echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001933echo "configure:1934: checking for $ac_word" >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001934if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1936else
1937 if test -n "$RANLIB"; then
1938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1939else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1941 ac_dummy="$PATH"
1942 for ac_dir in $ac_dummy; do
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001943 test -z "$ac_dir" && ac_dir=.
1944 if test -f $ac_dir/$ac_word; then
1945 ac_cv_prog_RANLIB="ranlib"
1946 break
1947 fi
1948 done
1949 IFS="$ac_save_ifs"
1950 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001951fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001952fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001953RANLIB="$ac_cv_prog_RANLIB"
1954if test -n "$RANLIB"; then
1955 echo "$ac_t""$RANLIB" 1>&6
1956else
1957 echo "$ac_t""no" 1>&6
1958fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001959
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001960# Find a good install program. We prefer a C program (faster),
1961# so one script is as good as another. But avoid the broken or
1962# incompatible versions:
1963# SysV /etc/install, /usr/sbin/install
1964# SunOS /usr/etc/install
1965# IRIX /sbin/install
1966# AIX /bin/install
Eric Pouech18ad24a2000-01-16 22:16:33 +00001967# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001968# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1969# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1970# ./install, which can be erroneously created by make from ./install.sh.
1971echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00001972echo "configure:1973: checking for a BSD compatible install" >&5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001973if test -z "$INSTALL"; then
1974if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1976else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001977 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001978 for ac_dir in $PATH; do
1979 # Account for people who put trailing slashes in PATH elements.
1980 case "$ac_dir/" in
1981 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1982 *)
1983 # OSF1 and SCO ODT 3.0 have their own names for install.
Eric Pouech18ad24a2000-01-16 22:16:33 +00001984 # Don't use installbsd from OSF since it installs stuff as root
1985 # by default.
1986 for ac_prog in ginstall scoinst install; do
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001987 if test -f $ac_dir/$ac_prog; then
1988 if test $ac_prog = install &&
1989 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1990 # AIX install. It has an incompatible calling convention.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001991 :
1992 else
1993 ac_cv_path_install="$ac_dir/$ac_prog -c"
1994 break 2
1995 fi
1996 fi
1997 done
1998 ;;
1999 esac
2000 done
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002001 IFS="$ac_save_IFS"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002002
2003fi
2004 if test "${ac_cv_path_install+set}" = set; then
2005 INSTALL="$ac_cv_path_install"
2006 else
2007 # As a last resort, use the slow shell script. We don't cache a
2008 # path for INSTALL within a source directory, because that will
2009 # break other packages using the cache if that directory is
2010 # removed, or if the path is relative.
2011 INSTALL="$ac_install_sh"
2012 fi
2013fi
2014echo "$ac_t""$INSTALL" 1>&6
2015
2016# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2017# It thinks the first close brace ends the variable substitution.
2018test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2019
Eric Pouech18ad24a2000-01-16 22:16:33 +00002020test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2021
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002022test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2023
Alexandre Julliard641ee761997-08-04 16:34:36 +00002024echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002025echo "configure:2026: checking whether ln -s works" >&5
Alexandre Julliard641ee761997-08-04 16:34:36 +00002026if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2028else
2029 rm -f conftestdata
2030if ln -s X conftestdata 2>/dev/null
2031then
2032 rm -f conftestdata
2033 ac_cv_prog_LN_S="ln -s"
2034else
2035 ac_cv_prog_LN_S=ln
2036fi
2037fi
2038LN_S="$ac_cv_prog_LN_S"
2039if test "$ac_cv_prog_LN_S" = "ln -s"; then
2040 echo "$ac_t""yes" 1>&6
2041else
2042 echo "$ac_t""no" 1>&6
2043fi
2044
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002045# Extract the first word of "c2man", so it can be a program name with args.
2046set dummy c2man; ac_word=$2
2047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002048echo "configure:2049: checking for $ac_word" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002049if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2051else
2052 if test -n "$C2MAN"; then
2053 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2054else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2056 ac_dummy="$PATH"
2057 for ac_dir in $ac_dummy; do
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002058 test -z "$ac_dir" && ac_dir=.
2059 if test -f $ac_dir/$ac_word; then
2060 ac_cv_prog_C2MAN="c2man"
2061 break
2062 fi
2063 done
2064 IFS="$ac_save_ifs"
Mike McCormacke0df32f2000-08-11 21:15:21 +00002065 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002066fi
2067fi
2068C2MAN="$ac_cv_prog_C2MAN"
2069if test -n "$C2MAN"; then
2070 echo "$ac_t""$C2MAN" 1>&6
2071else
2072 echo "$ac_t""no" 1>&6
2073fi
2074
James Juranffe6b761999-06-12 08:21:57 +00002075# Extract the first word of "ldconfig", so it can be a program name with args.
2076set dummy ldconfig; ac_word=$2
2077echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002078echo "configure:2079: checking for $ac_word" >&5
James Juranffe6b761999-06-12 08:21:57 +00002079if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2081else
2082 case "$LDCONFIG" in
2083 /*)
2084 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2085 ;;
Eric Pouech18ad24a2000-01-16 22:16:33 +00002086 ?:/*)
2087 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2088 ;;
James Juranffe6b761999-06-12 08:21:57 +00002089 *)
Eric Pouech18ad24a2000-01-16 22:16:33 +00002090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2091 ac_dummy="/sbin:/usr/sbin:$PATH"
2092 for ac_dir in $ac_dummy; do
James Juranffe6b761999-06-12 08:21:57 +00002093 test -z "$ac_dir" && ac_dir=.
2094 if test -f $ac_dir/$ac_word; then
2095 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2096 break
2097 fi
2098 done
2099 IFS="$ac_save_ifs"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00002100 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00002101 ;;
2102esac
2103fi
2104LDCONFIG="$ac_cv_path_LDCONFIG"
2105if test -n "$LDCONFIG"; then
2106 echo "$ac_t""$LDCONFIG" 1>&6
2107else
2108 echo "$ac_t""no" 1>&6
2109fi
2110
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002111echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002112echo "configure:2113: checking for Cygwin environment" >&5
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002113if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2115else
2116 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002117#line 2118 "configure"
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002118#include "confdefs.h"
2119
2120int main() {
2121
2122#ifndef __CYGWIN__
2123#define __CYGWIN__ __CYGWIN32__
2124#endif
2125return __CYGWIN__;
2126; return 0; }
2127EOF
François Gouget2663b802001-11-06 19:01:05 +00002128if { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002129 rm -rf conftest*
2130 ac_cv_cygwin=yes
2131else
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2134 rm -rf conftest*
2135 ac_cv_cygwin=no
2136fi
2137rm -f conftest*
2138rm -f conftest*
2139fi
2140
2141echo "$ac_t""$ac_cv_cygwin" 1>&6
2142CYGWIN=
2143test "$ac_cv_cygwin" = yes && CYGWIN=yes
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002144# Extract the first word of "dllwrap", so it can be a program name with args.
2145set dummy dllwrap; ac_word=$2
2146echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002147echo "configure:2148: checking for $ac_word" >&5
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002148if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2150else
2151 if test -n "$DLLWRAP"; then
2152 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2153else
2154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2155 ac_dummy="$PATH"
2156 for ac_dir in $ac_dummy; do
2157 test -z "$ac_dir" && ac_dir=.
2158 if test -f $ac_dir/$ac_word; then
2159 ac_cv_prog_DLLWRAP="dllwrap"
2160 break
2161 fi
2162 done
2163 IFS="$ac_save_ifs"
2164 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2165fi
2166fi
2167DLLWRAP="$ac_cv_prog_DLLWRAP"
2168if test -n "$DLLWRAP"; then
2169 echo "$ac_t""$DLLWRAP" 1>&6
2170else
2171 echo "$ac_t""no" 1>&6
2172fi
2173
Alexandre Julliard02e90081998-01-04 17:49:09 +00002174
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002175for ac_prog in lclint lint
2176do
2177# Extract the first word of "$ac_prog", so it can be a program name with args.
2178set dummy $ac_prog; ac_word=$2
2179echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002180echo "configure:2181: checking for $ac_word" >&5
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002181if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2183else
2184 if test -n "$LINT"; then
2185 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2186else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2188 ac_dummy="$PATH"
2189 for ac_dir in $ac_dummy; do
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002190 test -z "$ac_dir" && ac_dir=.
2191 if test -f $ac_dir/$ac_word; then
2192 ac_cv_prog_LINT="$ac_prog"
2193 break
2194 fi
2195 done
2196 IFS="$ac_save_ifs"
2197fi
2198fi
2199LINT="$ac_cv_prog_LINT"
2200if test -n "$LINT"; then
2201 echo "$ac_t""$LINT" 1>&6
2202else
2203 echo "$ac_t""no" 1>&6
2204fi
2205
2206test -n "$LINT" && break
2207done
2208
2209if test "$LINT" = "lint"
2210then
2211 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2212 fi
2213
2214
2215
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002216if test "$CYGWIN" = "yes"
2217then
2218 LDCOMBINE="ld -r --enable-stdcall-fixup"
2219else
2220 LDCOMBINE="ld -r"
2221fi
2222
2223
Alexandre Julliard02e90081998-01-04 17:49:09 +00002224
Howard Abrams13277481999-07-10 13:16:29 +00002225echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002226echo "configure:2227: checking for sqrt in -lm" >&5
Howard Abrams13277481999-07-10 13:16:29 +00002227ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2228if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2230else
2231 ac_save_LIBS="$LIBS"
2232LIBS="-lm $LIBS"
2233cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002234#line 2235 "configure"
Howard Abrams13277481999-07-10 13:16:29 +00002235#include "confdefs.h"
2236/* Override any gcc2 internal prototype to avoid an error. */
2237/* We use char because int might match the return type of a gcc2
2238 builtin and then its argument prototype would still apply. */
2239char sqrt();
2240
2241int main() {
2242sqrt()
2243; return 0; }
2244EOF
François Gouget2663b802001-11-06 19:01:05 +00002245if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Howard Abrams13277481999-07-10 13:16:29 +00002246 rm -rf conftest*
2247 eval "ac_cv_lib_$ac_lib_var=yes"
2248else
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 rm -rf conftest*
2252 eval "ac_cv_lib_$ac_lib_var=no"
2253fi
2254rm -f conftest*
2255LIBS="$ac_save_LIBS"
2256
2257fi
2258if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2262 cat >> confdefs.h <<EOF
2263#define $ac_tr_lib 1
2264EOF
2265
2266 LIBS="-lm $LIBS"
2267
2268else
2269 echo "$ac_t""no" 1>&6
2270fi
2271
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002272echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002273echo "configure:2274: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002274ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002275if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002276 echo $ac_n "(cached) $ac_c" 1>&6
2277else
2278 ac_save_LIBS="$LIBS"
2279LIBS="-li386 $LIBS"
2280cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002281#line 2282 "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00002282#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002283/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002284/* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002286char i386_set_ldt();
Alexandre Julliard902da691995-11-05 14:39:02 +00002287
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002288int main() {
Alexandre Julliard902da691995-11-05 14:39:02 +00002289i386_set_ldt()
2290; return 0; }
2291EOF
François Gouget2663b802001-11-06 19:01:05 +00002292if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002293 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002294 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliard902da691995-11-05 14:39:02 +00002295else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
Alexandre Julliard902da691995-11-05 14:39:02 +00002298 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002299 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliard902da691995-11-05 14:39:02 +00002300fi
2301rm -f conftest*
2302LIBS="$ac_save_LIBS"
2303
2304fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002305if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002306 echo "$ac_t""yes" 1>&6
Alexandre Julliard02e90081998-01-04 17:49:09 +00002307 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2309 cat >> confdefs.h <<EOF
2310#define $ac_tr_lib 1
2311EOF
2312
2313 LIBS="-li386 $LIBS"
2314
2315else
2316 echo "$ac_t""no" 1>&6
2317fi
2318
Todd Vierlingecc76691998-12-15 17:49:02 +00002319echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002320echo "configure:2321: checking for _oss_ioctl in -lossaudio" >&5
Todd Vierlingecc76691998-12-15 17:49:02 +00002321ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2324else
2325 ac_save_LIBS="$LIBS"
2326LIBS="-lossaudio $LIBS"
2327cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002328#line 2329 "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00002329#include "confdefs.h"
2330/* Override any gcc2 internal prototype to avoid an error. */
2331/* We use char because int might match the return type of a gcc2
2332 builtin and then its argument prototype would still apply. */
2333char _oss_ioctl();
2334
2335int main() {
2336_oss_ioctl()
2337; return 0; }
2338EOF
François Gouget2663b802001-11-06 19:01:05 +00002339if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Todd Vierlingecc76691998-12-15 17:49:02 +00002340 rm -rf conftest*
2341 eval "ac_cv_lib_$ac_lib_var=yes"
2342else
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2345 rm -rf conftest*
2346 eval "ac_cv_lib_$ac_lib_var=no"
2347fi
2348rm -f conftest*
2349LIBS="$ac_save_LIBS"
2350
2351fi
2352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2353 echo "$ac_t""yes" 1>&6
2354 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2356 cat >> confdefs.h <<EOF
2357#define $ac_tr_lib 1
2358EOF
2359
2360 LIBS="-lossaudio $LIBS"
2361
2362else
2363 echo "$ac_t""no" 1>&6
2364fi
2365
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002366for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00002367do
2368echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002369echo "configure:2370: checking for $ac_func" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002370if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2372else
2373 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002374#line 2375 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002375#include "confdefs.h"
2376/* System header to define __stub macros and hopefully few prototypes,
2377 which can conflict with char $ac_func(); below. */
2378#include <assert.h>
2379/* Override any gcc2 internal prototype to avoid an error. */
2380/* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382char $ac_func();
2383
2384int main() {
2385
2386/* The GNU C library defines this for functions which it implements
2387 to always fail with ENOSYS. Some functions are actually named
2388 something starting with __ and the normal name is an alias. */
2389#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2390choke me
2391#else
2392$ac_func();
2393#endif
2394
2395; return 0; }
2396EOF
François Gouget2663b802001-11-06 19:01:05 +00002397if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002398 rm -rf conftest*
2399 eval "ac_cv_func_$ac_func=yes"
2400else
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2403 rm -rf conftest*
2404 eval "ac_cv_func_$ac_func=no"
2405fi
2406rm -f conftest*
2407fi
2408
2409if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2412 cat >> confdefs.h <<EOF
2413#define $ac_tr_func 1
2414EOF
2415
2416else
2417 echo "$ac_t""no" 1>&6
2418echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002419echo "configure:2420: checking for iswalnum in -lw" >&5
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002420ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2421if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423else
2424 ac_save_LIBS="$LIBS"
2425LIBS="-lw $LIBS"
2426cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002427#line 2428 "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002428#include "confdefs.h"
2429/* Override any gcc2 internal prototype to avoid an error. */
2430/* We use char because int might match the return type of a gcc2
2431 builtin and then its argument prototype would still apply. */
2432char iswalnum();
2433
2434int main() {
2435iswalnum()
2436; return 0; }
2437EOF
François Gouget2663b802001-11-06 19:01:05 +00002438if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002439 rm -rf conftest*
2440 eval "ac_cv_lib_$ac_lib_var=yes"
2441else
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2444 rm -rf conftest*
2445 eval "ac_cv_lib_$ac_lib_var=no"
2446fi
2447rm -f conftest*
2448LIBS="$ac_save_LIBS"
2449
2450fi
2451if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2455 cat >> confdefs.h <<EOF
2456#define $ac_tr_lib 1
2457EOF
2458
2459 LIBS="-lw $LIBS"
2460
2461else
2462 echo "$ac_t""no" 1>&6
2463fi
2464
2465fi
2466done
2467
2468for ac_func in gethostbyname
2469do
2470echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002471echo "configure:2472: checking for $ac_func" >&5
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002472if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2474else
2475 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002476#line 2477 "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002477#include "confdefs.h"
2478/* System header to define __stub macros and hopefully few prototypes,
2479 which can conflict with char $ac_func(); below. */
2480#include <assert.h>
2481/* Override any gcc2 internal prototype to avoid an error. */
2482/* We use char because int might match the return type of a gcc2
2483 builtin and then its argument prototype would still apply. */
2484char $ac_func();
2485
2486int main() {
2487
2488/* The GNU C library defines this for functions which it implements
2489 to always fail with ENOSYS. Some functions are actually named
2490 something starting with __ and the normal name is an alias. */
2491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2492choke me
2493#else
2494$ac_func();
2495#endif
2496
2497; return 0; }
2498EOF
François Gouget2663b802001-11-06 19:01:05 +00002499if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002500 rm -rf conftest*
2501 eval "ac_cv_func_$ac_func=yes"
2502else
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 rm -rf conftest*
2506 eval "ac_cv_func_$ac_func=no"
2507fi
2508rm -f conftest*
2509fi
2510
2511if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2512 echo "$ac_t""yes" 1>&6
2513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2514 cat >> confdefs.h <<EOF
2515#define $ac_tr_func 1
2516EOF
2517
2518else
2519 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002520echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002521echo "configure:2522: checking for gethostbyname in -lnsl" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002522ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2523if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2525else
2526 ac_save_LIBS="$LIBS"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002527LIBS="-lnsl $LIBS"
Patrik Stridvallea584721998-11-01 16:22:07 +00002528cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002529#line 2530 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002530#include "confdefs.h"
2531/* Override any gcc2 internal prototype to avoid an error. */
2532/* We use char because int might match the return type of a gcc2
2533 builtin and then its argument prototype would still apply. */
2534char gethostbyname();
2535
2536int main() {
2537gethostbyname()
2538; return 0; }
2539EOF
François Gouget2663b802001-11-06 19:01:05 +00002540if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002541 rm -rf conftest*
2542 eval "ac_cv_lib_$ac_lib_var=yes"
2543else
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 rm -rf conftest*
2547 eval "ac_cv_lib_$ac_lib_var=no"
2548fi
2549rm -f conftest*
2550LIBS="$ac_save_LIBS"
2551
2552fi
2553if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002555 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2557 cat >> confdefs.h <<EOF
2558#define $ac_tr_lib 1
Ron Recorde977d6c1999-09-05 12:32:05 +00002559EOF
Ron Recorde977d6c1999-09-05 12:32:05 +00002560
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002561 LIBS="-lnsl $LIBS"
2562
Ron Recorde977d6c1999-09-05 12:32:05 +00002563else
2564 echo "$ac_t""no" 1>&6
2565fi
2566
Patrik Stridvallea584721998-11-01 16:22:07 +00002567fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002568done
2569
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002570for ac_func in connect
2571do
2572echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002573echo "configure:2574: checking for $ac_func" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002574if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2576else
2577 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002578#line 2579 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002579#include "confdefs.h"
2580/* System header to define __stub macros and hopefully few prototypes,
2581 which can conflict with char $ac_func(); below. */
2582#include <assert.h>
2583/* Override any gcc2 internal prototype to avoid an error. */
2584/* We use char because int might match the return type of a gcc2
2585 builtin and then its argument prototype would still apply. */
2586char $ac_func();
2587
2588int main() {
2589
2590/* The GNU C library defines this for functions which it implements
2591 to always fail with ENOSYS. Some functions are actually named
2592 something starting with __ and the normal name is an alias. */
2593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2594choke me
2595#else
2596$ac_func();
2597#endif
2598
2599; return 0; }
2600EOF
François Gouget2663b802001-11-06 19:01:05 +00002601if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002602 rm -rf conftest*
2603 eval "ac_cv_func_$ac_func=yes"
2604else
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 rm -rf conftest*
2608 eval "ac_cv_func_$ac_func=no"
2609fi
2610rm -f conftest*
2611fi
2612
2613if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2616 cat >> confdefs.h <<EOF
2617#define $ac_tr_func 1
2618EOF
2619
2620else
2621 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002622echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002623echo "configure:2624: checking for connect in -lsocket" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002624ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2625if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2627else
2628 ac_save_LIBS="$LIBS"
2629LIBS="-lsocket $LIBS"
2630cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002631#line 2632 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002632#include "confdefs.h"
2633/* Override any gcc2 internal prototype to avoid an error. */
2634/* We use char because int might match the return type of a gcc2
2635 builtin and then its argument prototype would still apply. */
2636char connect();
2637
2638int main() {
2639connect()
2640; return 0; }
2641EOF
François Gouget2663b802001-11-06 19:01:05 +00002642if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002643 rm -rf conftest*
2644 eval "ac_cv_lib_$ac_lib_var=yes"
2645else
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -rf conftest*
2649 eval "ac_cv_lib_$ac_lib_var=no"
2650fi
2651rm -f conftest*
2652LIBS="$ac_save_LIBS"
2653
2654fi
2655if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2656 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002657 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2659 cat >> confdefs.h <<EOF
2660#define $ac_tr_lib 1
2661EOF
2662
2663 LIBS="-lsocket $LIBS"
2664
2665else
2666 echo "$ac_t""no" 1>&6
2667fi
2668
2669fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002670done
2671
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002672echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002673echo "configure:2674: checking for _xpg4_setrunelocale in -lxpg4" >&5
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002674ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002675if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2677else
2678 ac_save_LIBS="$LIBS"
2679LIBS="-lxpg4 $LIBS"
2680cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002681#line 2682 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002682#include "confdefs.h"
2683/* Override any gcc2 internal prototype to avoid an error. */
2684/* We use char because int might match the return type of a gcc2
2685 builtin and then its argument prototype would still apply. */
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002686char _xpg4_setrunelocale();
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002687
2688int main() {
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002689_xpg4_setrunelocale()
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002690; return 0; }
2691EOF
François Gouget2663b802001-11-06 19:01:05 +00002692if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002693 rm -rf conftest*
2694 eval "ac_cv_lib_$ac_lib_var=yes"
2695else
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2698 rm -rf conftest*
2699 eval "ac_cv_lib_$ac_lib_var=no"
2700fi
2701rm -f conftest*
2702LIBS="$ac_save_LIBS"
2703
2704fi
2705if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2708 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2709 cat >> confdefs.h <<EOF
2710#define $ac_tr_lib 1
2711EOF
2712
2713 LIBS="-lxpg4 $LIBS"
2714
2715else
2716 echo "$ac_t""no" 1>&6
2717fi
2718
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002719echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002720echo "configure:2721: checking for mmap in -lmmap" >&5
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002721ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2722if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2724else
2725 ac_save_LIBS="$LIBS"
2726LIBS="-lmmap $LIBS"
2727cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002728#line 2729 "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002729#include "confdefs.h"
2730/* Override any gcc2 internal prototype to avoid an error. */
2731/* We use char because int might match the return type of a gcc2
2732 builtin and then its argument prototype would still apply. */
2733char mmap();
2734
2735int main() {
2736mmap()
2737; return 0; }
2738EOF
François Gouget2663b802001-11-06 19:01:05 +00002739if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002740 rm -rf conftest*
2741 eval "ac_cv_lib_$ac_lib_var=yes"
2742else
2743 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2745 rm -rf conftest*
2746 eval "ac_cv_lib_$ac_lib_var=no"
2747fi
2748rm -f conftest*
2749LIBS="$ac_save_LIBS"
2750
2751fi
2752if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2753 echo "$ac_t""yes" 1>&6
2754 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2756 cat >> confdefs.h <<EOF
2757#define $ac_tr_lib 1
2758EOF
2759
2760 LIBS="-lmmap $LIBS"
2761
2762else
2763 echo "$ac_t""no" 1>&6
2764fi
2765
Marcus Meissner2d7be871999-12-05 23:06:40 +00002766for ac_func in openpty
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002767do
2768echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002769echo "configure:2770: checking for $ac_func" >&5
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002770if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2772else
2773 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002774#line 2775 "configure"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002775#include "confdefs.h"
2776/* System header to define __stub macros and hopefully few prototypes,
2777 which can conflict with char $ac_func(); below. */
2778#include <assert.h>
2779/* Override any gcc2 internal prototype to avoid an error. */
2780/* We use char because int might match the return type of a gcc2
2781 builtin and then its argument prototype would still apply. */
2782char $ac_func();
2783
2784int main() {
2785
2786/* The GNU C library defines this for functions which it implements
2787 to always fail with ENOSYS. Some functions are actually named
2788 something starting with __ and the normal name is an alias. */
2789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2790choke me
2791#else
2792$ac_func();
2793#endif
2794
2795; return 0; }
2796EOF
François Gouget2663b802001-11-06 19:01:05 +00002797if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002798 rm -rf conftest*
2799 eval "ac_cv_func_$ac_func=yes"
2800else
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2803 rm -rf conftest*
2804 eval "ac_cv_func_$ac_func=no"
2805fi
2806rm -f conftest*
2807fi
2808
2809if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2812 cat >> confdefs.h <<EOF
2813#define $ac_tr_func 1
2814EOF
2815
2816else
2817 echo "$ac_t""no" 1>&6
2818echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002819echo "configure:2820: checking for openpty in -lutil" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002820ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2821if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2823else
2824 ac_save_LIBS="$LIBS"
2825LIBS="-lutil $LIBS"
2826cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002827#line 2828 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002828#include "confdefs.h"
2829/* Override any gcc2 internal prototype to avoid an error. */
2830/* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2832char openpty();
2833
2834int main() {
2835openpty()
2836; return 0; }
2837EOF
François Gouget2663b802001-11-06 19:01:05 +00002838if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002839 rm -rf conftest*
2840 eval "ac_cv_lib_$ac_lib_var=yes"
2841else
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 rm -rf conftest*
2845 eval "ac_cv_lib_$ac_lib_var=no"
2846fi
2847rm -f conftest*
2848LIBS="$ac_save_LIBS"
2849
2850fi
2851if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 cat >> confdefs.h <<\EOF
2854#define HAVE_OPENPTY 1
2855EOF
2856
2857 LIBS="$LIBS -lutil"
2858
2859else
2860 echo "$ac_t""no" 1>&6
2861fi
2862
2863fi
2864done
2865
2866
2867for ac_hdr in dlfcn.h
2868do
2869ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2870echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002871echo "configure:2872: checking for $ac_hdr" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002872if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2874else
2875 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002876#line 2877 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002877#include "confdefs.h"
2878#include <$ac_hdr>
2879EOF
2880ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +00002881{ (eval echo configure:2882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002882ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Marcus Meissner2d7be871999-12-05 23:06:40 +00002883if test -z "$ac_err"; then
2884 rm -rf conftest*
2885 eval "ac_cv_header_$ac_safe=yes"
2886else
2887 echo "$ac_err" >&5
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2890 rm -rf conftest*
2891 eval "ac_cv_header_$ac_safe=no"
2892fi
2893rm -f conftest*
2894fi
2895if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2898 cat >> confdefs.h <<EOF
2899#define $ac_tr_hdr 1
2900EOF
2901 for ac_func in dlopen
2902do
2903echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002904echo "configure:2905: checking for $ac_func" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002905if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2907else
2908 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002909#line 2910 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002910#include "confdefs.h"
2911/* System header to define __stub macros and hopefully few prototypes,
2912 which can conflict with char $ac_func(); below. */
2913#include <assert.h>
2914/* Override any gcc2 internal prototype to avoid an error. */
2915/* We use char because int might match the return type of a gcc2
2916 builtin and then its argument prototype would still apply. */
2917char $ac_func();
2918
2919int main() {
2920
2921/* The GNU C library defines this for functions which it implements
2922 to always fail with ENOSYS. Some functions are actually named
2923 something starting with __ and the normal name is an alias. */
2924#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2925choke me
2926#else
2927$ac_func();
2928#endif
2929
2930; return 0; }
2931EOF
François Gouget2663b802001-11-06 19:01:05 +00002932if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002933 rm -rf conftest*
2934 eval "ac_cv_func_$ac_func=yes"
2935else
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2938 rm -rf conftest*
2939 eval "ac_cv_func_$ac_func=no"
2940fi
2941rm -f conftest*
2942fi
2943
2944if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2945 echo "$ac_t""yes" 1>&6
2946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2947 cat >> confdefs.h <<EOF
2948#define $ac_tr_func 1
2949EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002950
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002951else
2952 echo "$ac_t""no" 1>&6
Marcus Meissner8220bc91998-10-11 11:10:27 +00002953echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00002954echo "configure:2955: checking for dlopen in -ldl" >&5
Marcus Meissner8220bc91998-10-11 11:10:27 +00002955ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2956if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2958else
2959 ac_save_LIBS="$LIBS"
2960LIBS="-ldl $LIBS"
2961cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00002962#line 2963 "configure"
Marcus Meissner8220bc91998-10-11 11:10:27 +00002963#include "confdefs.h"
2964/* Override any gcc2 internal prototype to avoid an error. */
2965/* We use char because int might match the return type of a gcc2
2966 builtin and then its argument prototype would still apply. */
2967char dlopen();
2968
2969int main() {
2970dlopen()
2971; return 0; }
2972EOF
François Gouget2663b802001-11-06 19:01:05 +00002973if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner8220bc91998-10-11 11:10:27 +00002974 rm -rf conftest*
2975 eval "ac_cv_lib_$ac_lib_var=yes"
2976else
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2979 rm -rf conftest*
2980 eval "ac_cv_lib_$ac_lib_var=no"
2981fi
2982rm -f conftest*
2983LIBS="$ac_save_LIBS"
2984
2985fi
2986if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002988 cat >> confdefs.h <<\EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002989#define HAVE_DLOPEN 1
Marcus Meissner8220bc91998-10-11 11:10:27 +00002990EOF
2991
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002992 LIBS="$LIBS -ldl"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002993else
2994 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00002995LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002996fi
2997
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002998
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002999fi
3000done
3001
Marcus Meissner8220bc91998-10-11 11:10:27 +00003002else
3003 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00003004LIBEXT="a"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003005
Marcus Meissner8220bc91998-10-11 11:10:27 +00003006fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003007done
Marcus Meissner8220bc91998-10-11 11:10:27 +00003008
Patrik Stridvallea584721998-11-01 16:22:07 +00003009
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003010JPEGLIB=""
3011
3012for ac_hdr in jpeglib.h
3013do
3014ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3015echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00003016echo "configure:3017: checking for $ac_hdr" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003017if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3019else
3020 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00003021#line 3022 "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003022#include "confdefs.h"
3023#include <$ac_hdr>
3024EOF
3025ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +00003026{ (eval echo configure:3027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003027ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3028if test -z "$ac_err"; then
3029 rm -rf conftest*
3030 eval "ac_cv_header_$ac_safe=yes"
3031else
3032 echo "$ac_err" >&5
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3035 rm -rf conftest*
3036 eval "ac_cv_header_$ac_safe=no"
3037fi
3038rm -f conftest*
3039fi
3040if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3041 echo "$ac_t""yes" 1>&6
3042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3043 cat >> confdefs.h <<EOF
3044#define $ac_tr_hdr 1
3045EOF
3046 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00003047echo "configure:3048: checking for jpeg_start_decompress in -ljpeg" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003048ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3049if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3051else
3052 ac_save_LIBS="$LIBS"
3053LIBS="-ljpeg $LIBS"
3054cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00003055#line 3056 "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003056#include "confdefs.h"
3057/* Override any gcc2 internal prototype to avoid an error. */
3058/* We use char because int might match the return type of a gcc2
3059 builtin and then its argument prototype would still apply. */
3060char jpeg_start_decompress();
3061
3062int main() {
3063jpeg_start_decompress()
3064; return 0; }
3065EOF
François Gouget2663b802001-11-06 19:01:05 +00003066if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003067 rm -rf conftest*
3068 eval "ac_cv_lib_$ac_lib_var=yes"
3069else
3070 echo "configure: failed program was:" >&5
3071 cat conftest.$ac_ext >&5
3072 rm -rf conftest*
3073 eval "ac_cv_lib_$ac_lib_var=no"
3074fi
3075rm -f conftest*
3076LIBS="$ac_save_LIBS"
3077
3078fi
3079if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3080 echo "$ac_t""yes" 1>&6
3081 cat >> confdefs.h <<\EOF
3082#define HAVE_LIBJPEG 1
3083EOF
3084
3085 JPEGLIB="-ljpeg"
3086
3087else
3088 echo "$ac_t""no" 1>&6
3089fi
3090
3091
3092else
3093 echo "$ac_t""no" 1>&6
3094fi
3095done
3096
3097
3098
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003099
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003100
Patrik Stridvall2941a212000-04-25 20:34:22 +00003101XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003102
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003103OPENGLFILES=""
3104
Marcus Meissnerb63ab442001-06-08 19:02:57 +00003105GLU32FILES=""
Patrik Stridvallea584721998-11-01 16:22:07 +00003106if test "$have_x" = "yes"
3107then
Patrik Stridvall24110281999-02-04 10:09:54 +00003108 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00003109 ac_save_CPPFLAGS="$CPPFLAGS"
3110 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00003111
Patrik Stridvall24110281999-02-04 10:09:54 +00003112 for ac_hdr in X11/xpm.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003113do
3114ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3115echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00003116echo "configure:3117: checking for $ac_hdr" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003117if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3119else
3120 cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00003121#line 3122 "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003122#include "confdefs.h"
3123#include <$ac_hdr>
3124EOF
3125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
François Gouget2663b802001-11-06 19:01:05 +00003126{ (eval echo configure:3127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003128if test -z "$ac_err"; then
3129 rm -rf conftest*
3130 eval "ac_cv_header_$ac_safe=yes"
3131else
3132 echo "$ac_err" >&5
3133 echo "configure: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3135 rm -rf conftest*
3136 eval "ac_cv_header_$ac_safe=no"
3137fi
3138rm -f conftest*
3139fi
3140if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3141 echo "$ac_t""yes" 1>&6
3142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3143 cat >> confdefs.h <<EOF
3144#define $ac_tr_hdr 1
3145EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003146 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
François Gouget2663b802001-11-06 19:01:05 +00003147echo "configure:3148: checking for XpmCreatePixmapFromData in -lXpm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003148ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3149if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3151else
3152 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003153LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3154 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003155cat > conftest.$ac_ext <<EOF
François Gouget2663b802001-11-06 19:01:05 +00003156#line 3157 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003157#include "confdefs.h"
3158/* Override any gcc2 internal prototype to avoid an error. */
3159/* We use char because int might match the return type of a gcc2
3160 builtin and then its argument prototype would still apply. */
3161char XpmCreatePixmapFromData();
3162
3163int main() {
3164XpmCreatePixmapFromData()
3165; return 0; }
3166EOF
François Gouget2663b802001-11-06 19:01:05 +00003167if { (eval echo configure:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003168 rm -rf conftest*
3169 eval "ac_cv_lib_$ac_lib_var=yes"
3170else
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3173 rm -rf conftest*
3174 eval "ac_cv_lib_$ac_lib_var=no"
3175fi
3176rm -f conftest*
3177LIBS="$ac_save_LIBS"
3178
3179fi
3180if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3181 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003182 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003183#define HAVE_LIBXXPM 1
3184EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003185
3186 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Patrik Stridvall24110281999-02-04 10:09:54 +00003187else
3188 echo "$ac_t""no" 1>&6
3189fi
3190
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003191
3192else
3193 echo "$ac_t""no" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003194 echo "Couldn't find the xpm development header X11/xpm.h"
3195 echo "Install the following packages:"
Andreas Mohrf3598952001-10-02 17:49:20 +00003196 echo "Red Hat < 7.1 : xpm xpm-devel"
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00003197 echo "Red Hat >= 7.1 : XFree86-devel"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003198 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
Marcus Meissner284995e2000-03-04 19:21:49 +00003199 echo "SuSE : xpm"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003200 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
François Gouget01036f42001-11-05 23:52:54 +00003201 echo "Solaris 8 : SFWxpm"
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003202 echo
3203 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3204 echo "the directory /contrib/libraries."
3205 echo
3206 exit 1
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003207
3208
3209fi
3210done
Patrik Stridvall24110281999-02-04 10:09:54 +00003211
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003212
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003213 for ac_hdr in X11/Xlib.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003214do
3215ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3216echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003217echo "configure:3218: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003218if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3220else
3221 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003222#line 3223 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003223#include "confdefs.h"
3224#include <$ac_hdr>
3225EOF
3226ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andreas Mohra69c0392001-12-26 20:40:47 +00003227{ (eval echo configure:3228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003228ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003229if test -z "$ac_err"; then
3230 rm -rf conftest*
3231 eval "ac_cv_header_$ac_safe=yes"
3232else
3233 echo "$ac_err" >&5
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3236 rm -rf conftest*
3237 eval "ac_cv_header_$ac_safe=no"
3238fi
3239rm -f conftest*
3240fi
3241if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3242 echo "$ac_t""yes" 1>&6
3243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3244 cat >> confdefs.h <<EOF
3245#define $ac_tr_hdr 1
3246EOF
3247
Ove Kaavenc90fb252001-01-02 22:39:14 +00003248 for ac_hdr in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003249do
3250ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3251echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003252echo "configure:3253: checking for $ac_hdr" >&5
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003253if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00003255else
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003256 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003257#line 3258 "configure"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003258#include "confdefs.h"
3259#include <$ac_hdr>
3260EOF
3261ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andreas Mohra69c0392001-12-26 20:40:47 +00003262{ (eval echo configure:3263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003263ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3264if test -z "$ac_err"; then
3265 rm -rf conftest*
3266 eval "ac_cv_header_$ac_safe=yes"
3267else
3268 echo "$ac_err" >&5
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3271 rm -rf conftest*
3272 eval "ac_cv_header_$ac_safe=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00003273fi
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003274rm -f conftest*
3275fi
3276if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3279 cat >> confdefs.h <<EOF
3280#define $ac_tr_hdr 1
3281EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003282 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003283echo "configure:3284: checking for XkbQueryExtension in -lX11" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003284ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003285if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3287else
3288 ac_save_LIBS="$LIBS"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003289LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003290cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003291#line 3292 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003292#include "confdefs.h"
3293/* Override any gcc2 internal prototype to avoid an error. */
3294/* We use char because int might match the return type of a gcc2
3295 builtin and then its argument prototype would still apply. */
Ove Kaavenc90fb252001-01-02 22:39:14 +00003296char XkbQueryExtension();
Patrik Stridvall24110281999-02-04 10:09:54 +00003297
3298int main() {
Ove Kaavenc90fb252001-01-02 22:39:14 +00003299XkbQueryExtension()
Patrik Stridvall24110281999-02-04 10:09:54 +00003300; return 0; }
3301EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003302if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003303 rm -rf conftest*
3304 eval "ac_cv_lib_$ac_lib_var=yes"
3305else
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3308 rm -rf conftest*
3309 eval "ac_cv_lib_$ac_lib_var=no"
3310fi
3311rm -f conftest*
3312LIBS="$ac_save_LIBS"
3313
3314fi
3315if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3316 echo "$ac_t""yes" 1>&6
3317 cat >> confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003318#define HAVE_XKB 1
Patrik Stridvall24110281999-02-04 10:09:54 +00003319EOF
3320
3321else
3322 echo "$ac_t""no" 1>&6
3323fi
3324
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003325
3326else
3327 echo "$ac_t""no" 1>&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00003328echo "configure: warning: XKB extension not found!!" 1>&2
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003329
3330fi
3331done
3332
3333
Ove Kaavenc90fb252001-01-02 22:39:14 +00003334 for ac_hdr in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003335do
3336ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3337echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003338echo "configure:3339: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003339if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3341else
3342 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003343#line 3344 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003344#include "confdefs.h"
3345#include <$ac_hdr>
3346EOF
3347ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andreas Mohra69c0392001-12-26 20:40:47 +00003348{ (eval echo configure:3349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003349ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003350if test -z "$ac_err"; then
3351 rm -rf conftest*
3352 eval "ac_cv_header_$ac_safe=yes"
3353else
3354 echo "$ac_err" >&5
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 rm -rf conftest*
3358 eval "ac_cv_header_$ac_safe=no"
3359fi
3360rm -f conftest*
3361fi
3362if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3363 echo "$ac_t""yes" 1>&6
3364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3365 cat >> confdefs.h <<EOF
3366#define $ac_tr_hdr 1
3367EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003368 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003369echo "configure:3370: checking for XShmQueryExtension in -lXext" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003370ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
Francois Jacques5b6879c2000-07-28 23:04:54 +00003371if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3373else
3374 ac_save_LIBS="$LIBS"
3375LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3376cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003377#line 3378 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00003378#include "confdefs.h"
3379/* Override any gcc2 internal prototype to avoid an error. */
3380/* We use char because int might match the return type of a gcc2
3381 builtin and then its argument prototype would still apply. */
Ove Kaavenc90fb252001-01-02 22:39:14 +00003382char XShmQueryExtension();
Francois Jacques5b6879c2000-07-28 23:04:54 +00003383
3384int main() {
Ove Kaavenc90fb252001-01-02 22:39:14 +00003385XShmQueryExtension()
Francois Jacques5b6879c2000-07-28 23:04:54 +00003386; return 0; }
3387EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003388if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00003389 rm -rf conftest*
3390 eval "ac_cv_lib_$ac_lib_var=yes"
3391else
3392 echo "configure: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3394 rm -rf conftest*
3395 eval "ac_cv_lib_$ac_lib_var=no"
3396fi
3397rm -f conftest*
3398LIBS="$ac_save_LIBS"
3399
3400fi
3401if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3402 echo "$ac_t""yes" 1>&6
3403 cat >> confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003404#define HAVE_LIBXXSHM 1
Francois Jacques5b6879c2000-07-28 23:04:54 +00003405EOF
3406
3407else
3408 echo "$ac_t""no" 1>&6
3409fi
3410
Ove Kaavenc90fb252001-01-02 22:39:14 +00003411
Francois Jacques5b6879c2000-07-28 23:04:54 +00003412else
3413 echo "$ac_t""no" 1>&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00003414echo "configure: warning: Xshm extension not found!!" 1>&2
3415
Francois Jacques5b6879c2000-07-28 23:04:54 +00003416fi
3417done
3418
Ove Kaavenc90fb252001-01-02 22:39:14 +00003419
3420 for ac_hdr in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00003421do
3422ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3423echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003424echo "configure:3425: checking for $ac_hdr" >&5
Francois Jacques5b6879c2000-07-28 23:04:54 +00003425if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3427else
3428 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003429#line 3430 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00003430#include "confdefs.h"
3431#include <$ac_hdr>
3432EOF
3433ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andreas Mohra69c0392001-12-26 20:40:47 +00003434{ (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Francois Jacques5b6879c2000-07-28 23:04:54 +00003435ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3436if test -z "$ac_err"; then
3437 rm -rf conftest*
3438 eval "ac_cv_header_$ac_safe=yes"
3439else
3440 echo "$ac_err" >&5
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 rm -rf conftest*
3444 eval "ac_cv_header_$ac_safe=no"
3445fi
3446rm -f conftest*
3447fi
3448if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3449 echo "$ac_t""yes" 1>&6
3450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3451 cat >> confdefs.h <<EOF
3452#define $ac_tr_hdr 1
3453EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003454 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003455echo "configure:3456: checking for XShapeQueryExtension in -lXext" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003456ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3457if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3459else
3460 ac_save_LIBS="$LIBS"
3461LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3462cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003463#line 3464 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003464#include "confdefs.h"
3465/* Override any gcc2 internal prototype to avoid an error. */
3466/* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3468char XShapeQueryExtension();
3469
3470int main() {
3471XShapeQueryExtension()
3472; return 0; }
3473EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003474if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00003475 rm -rf conftest*
3476 eval "ac_cv_lib_$ac_lib_var=yes"
3477else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 eval "ac_cv_lib_$ac_lib_var=no"
3482fi
3483rm -f conftest*
3484LIBS="$ac_save_LIBS"
3485
3486fi
3487if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 cat >> confdefs.h <<\EOF
3490#define HAVE_LIBXSHAPE 1
3491EOF
3492
3493else
3494 echo "$ac_t""no" 1>&6
3495fi
3496
3497
3498else
3499 echo "$ac_t""no" 1>&6
3500echo "configure: warning: XShape extension not found!!" 1>&2
3501
3502fi
3503done
3504
3505
3506 for ac_hdr in X11/extensions/xf86dga.h
3507do
3508ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3509echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003510echo "configure:3511: checking for $ac_hdr" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003511if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3513else
3514 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003515#line 3516 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003516#include "confdefs.h"
3517#include <$ac_hdr>
3518EOF
3519ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andreas Mohra69c0392001-12-26 20:40:47 +00003520{ (eval echo configure:3521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ove Kaavenc90fb252001-01-02 22:39:14 +00003521ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3522if test -z "$ac_err"; then
3523 rm -rf conftest*
3524 eval "ac_cv_header_$ac_safe=yes"
3525else
3526 echo "$ac_err" >&5
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3529 rm -rf conftest*
3530 eval "ac_cv_header_$ac_safe=no"
3531fi
3532rm -f conftest*
3533fi
3534if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3537 cat >> confdefs.h <<EOF
3538#define $ac_tr_hdr 1
3539EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003540 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003541echo "configure:3542: checking for XDGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003542ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003543if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3545else
3546 ac_save_LIBS="$LIBS"
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003547LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003548 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003549cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003550#line 3551 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003551#include "confdefs.h"
3552/* Override any gcc2 internal prototype to avoid an error. */
3553/* We use char because int might match the return type of a gcc2
3554 builtin and then its argument prototype would still apply. */
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003555char XDGAQueryExtension();
3556
3557int main() {
3558XDGAQueryExtension()
3559; return 0; }
3560EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003561if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003562 rm -rf conftest*
3563 eval "ac_cv_lib_$ac_lib_var=yes"
3564else
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3567 rm -rf conftest*
3568 eval "ac_cv_lib_$ac_lib_var=no"
3569fi
3570rm -f conftest*
3571LIBS="$ac_save_LIBS"
3572
3573fi
3574if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3575 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003576 cat >> confdefs.h <<\EOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003577#define HAVE_LIBXXF86DGA2 1
3578EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003579
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003580 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003581
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003582else
3583 echo "$ac_t""no" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003584 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003585echo "configure:3586: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003586ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3587if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3589else
3590 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003591LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3592 $LIBS"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003593cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003594#line 3595 "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003595#include "confdefs.h"
3596/* Override any gcc2 internal prototype to avoid an error. */
3597/* We use char because int might match the return type of a gcc2
3598 builtin and then its argument prototype would still apply. */
Patrik Stridvall24110281999-02-04 10:09:54 +00003599char XF86DGAQueryExtension();
3600
3601int main() {
3602XF86DGAQueryExtension()
3603; return 0; }
3604EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003605if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003606 rm -rf conftest*
3607 eval "ac_cv_lib_$ac_lib_var=yes"
3608else
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3611 rm -rf conftest*
3612 eval "ac_cv_lib_$ac_lib_var=no"
3613fi
3614rm -f conftest*
3615LIBS="$ac_save_LIBS"
3616
3617fi
3618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003620 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003621#define HAVE_LIBXXF86DGA 1
3622EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003623
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003624 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003625
Patrik Stridvall24110281999-02-04 10:09:54 +00003626else
3627 echo "$ac_t""no" 1>&6
3628fi
3629
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003630
3631fi
Patrik Stridvall24110281999-02-04 10:09:54 +00003632
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003633
3634else
3635 echo "$ac_t""no" 1>&6
3636echo "configure: warning: DGA extension not found!!" 1>&2
3637
3638fi
3639done
3640
3641
3642 for ac_hdr in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003643do
3644ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3645echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003646echo "configure:3647: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003647if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3649else
3650 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003651#line 3652 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003652#include "confdefs.h"
3653#include <$ac_hdr>
3654EOF
3655ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andreas Mohra69c0392001-12-26 20:40:47 +00003656{ (eval echo configure:3657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003657ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003658if test -z "$ac_err"; then
3659 rm -rf conftest*
3660 eval "ac_cv_header_$ac_safe=yes"
3661else
3662 echo "$ac_err" >&5
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3665 rm -rf conftest*
3666 eval "ac_cv_header_$ac_safe=no"
3667fi
3668rm -f conftest*
3669fi
3670if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3671 echo "$ac_t""yes" 1>&6
3672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3673 cat >> confdefs.h <<EOF
3674#define $ac_tr_hdr 1
3675EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003676 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003677echo "configure:3678: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003678ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3681else
3682 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003683LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3684 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003685cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003686#line 3687 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003687#include "confdefs.h"
3688/* Override any gcc2 internal prototype to avoid an error. */
3689/* We use char because int might match the return type of a gcc2
3690 builtin and then its argument prototype would still apply. */
3691char XF86VidModeQueryExtension();
3692
3693int main() {
3694XF86VidModeQueryExtension()
3695; return 0; }
3696EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003697if { (eval echo configure:3698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003698 rm -rf conftest*
3699 eval "ac_cv_lib_$ac_lib_var=yes"
3700else
3701 echo "configure: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3703 rm -rf conftest*
3704 eval "ac_cv_lib_$ac_lib_var=no"
3705fi
3706rm -f conftest*
3707LIBS="$ac_save_LIBS"
3708
3709fi
3710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3711 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003712 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003713#define HAVE_LIBXXF86VM 1
3714EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003715
3716 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3717
Patrik Stridvall24110281999-02-04 10:09:54 +00003718else
3719 echo "$ac_t""no" 1>&6
3720fi
3721
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003722
3723else
3724 echo "$ac_t""no" 1>&6
3725echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3726
3727fi
3728done
Lionel Ulmer5c085701999-02-28 19:48:53 +00003729
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003730
3731 for ac_hdr in X11/extensions/Xvlib.h
3732do
3733ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3734echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003735echo "configure:3736: checking for $ac_hdr" >&5
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003736if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3738else
3739 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003740#line 3741 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003741#include "confdefs.h"
3742#include <$ac_hdr>
3743EOF
3744ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andreas Mohra69c0392001-12-26 20:40:47 +00003745{ (eval echo configure:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003746ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3747if test -z "$ac_err"; then
3748 rm -rf conftest*
3749 eval "ac_cv_header_$ac_safe=yes"
3750else
3751 echo "$ac_err" >&5
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3754 rm -rf conftest*
3755 eval "ac_cv_header_$ac_safe=no"
3756fi
3757rm -f conftest*
3758fi
3759if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3762 cat >> confdefs.h <<EOF
3763#define $ac_tr_hdr 1
3764EOF
3765 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003766echo "configure:3767: checking for XvShmCreateImage in -lXv" >&5
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003767ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3768if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3770else
3771 ac_save_LIBS="$LIBS"
3772LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3773 $LIBS"
3774cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003775#line 3776 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003776#include "confdefs.h"
3777/* Override any gcc2 internal prototype to avoid an error. */
3778/* We use char because int might match the return type of a gcc2
3779 builtin and then its argument prototype would still apply. */
3780char XvShmCreateImage();
3781
3782int main() {
3783XvShmCreateImage()
3784; return 0; }
3785EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003786if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003787 rm -rf conftest*
3788 eval "ac_cv_lib_$ac_lib_var=yes"
3789else
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3792 rm -rf conftest*
3793 eval "ac_cv_lib_$ac_lib_var=no"
3794fi
3795rm -f conftest*
3796LIBS="$ac_save_LIBS"
3797
3798fi
3799if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 cat >> confdefs.h <<\EOF
3802#define HAVE_XVIDEO 1
3803EOF
3804
3805 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3806
3807else
3808 echo "$ac_t""no" 1>&6
3809fi
3810
3811
3812else
3813 echo "$ac_t""no" 1>&6
3814echo "configure: warning: XVideo extension not found !!" 1>&2
3815
3816fi
3817done
3818
3819
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003820 for ac_hdr in X11/extensions/Xrender.h
3821do
3822ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3823echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003824echo "configure:3825: checking for $ac_hdr" >&5
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003825if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3827else
3828 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003829#line 3830 "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003830#include "confdefs.h"
3831#include <$ac_hdr>
3832EOF
3833ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andreas Mohra69c0392001-12-26 20:40:47 +00003834{ (eval echo configure:3835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003835ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3836if test -z "$ac_err"; then
3837 rm -rf conftest*
3838 eval "ac_cv_header_$ac_safe=yes"
3839else
3840 echo "$ac_err" >&5
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3843 rm -rf conftest*
3844 eval "ac_cv_header_$ac_safe=no"
3845fi
3846rm -f conftest*
3847fi
3848if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3851 cat >> confdefs.h <<EOF
3852#define $ac_tr_hdr 1
3853EOF
3854 echo $ac_n "checking for XRenderQueryExtension in -lXrender""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003855echo "configure:3856: checking for XRenderQueryExtension in -lXrender" >&5
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003856ac_lib_var=`echo Xrender'_'XRenderQueryExtension | sed 'y%./+-%__p_%'`
3857if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3859else
3860 ac_save_LIBS="$LIBS"
3861LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3862 $LIBS"
3863cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003864#line 3865 "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003865#include "confdefs.h"
3866/* Override any gcc2 internal prototype to avoid an error. */
3867/* We use char because int might match the return type of a gcc2
3868 builtin and then its argument prototype would still apply. */
3869char XRenderQueryExtension();
3870
3871int main() {
3872XRenderQueryExtension()
3873; return 0; }
3874EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003875if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Huw D M Daviesff453fc2001-09-14 01:04:25 +00003876 rm -rf conftest*
3877 eval "ac_cv_lib_$ac_lib_var=yes"
3878else
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3881 rm -rf conftest*
3882 eval "ac_cv_lib_$ac_lib_var=no"
3883fi
3884rm -f conftest*
3885LIBS="$ac_save_LIBS"
3886
3887fi
3888if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
3890 cat >> confdefs.h <<\EOF
3891#define HAVE_LIBXRENDER 1
3892EOF
3893
3894 X_PRE_LIBS="$X_PRE_LIBS -lXrender"
3895
3896else
3897 echo "$ac_t""no" 1>&6
3898fi
3899
3900
3901else
3902 echo "$ac_t""no" 1>&6
3903echo "configure: warning: XRender extension not found !!" 1>&2
3904
3905fi
3906done
3907
3908
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003909
3910
3911else
3912 echo "$ac_t""no" 1>&6
3913fi
3914done
3915
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003916 if test $OPENGL = "yes" -o $OPENGL = "normal"
3917 then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003918 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003919do
3920ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3921echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003922echo "configure:3923: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003923if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3925else
3926 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003927#line 3928 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003928#include "confdefs.h"
3929#include <$ac_hdr>
3930EOF
3931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andreas Mohra69c0392001-12-26 20:40:47 +00003932{ (eval echo configure:3933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003933ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003934if test -z "$ac_err"; then
3935 rm -rf conftest*
3936 eval "ac_cv_header_$ac_safe=yes"
3937else
3938 echo "$ac_err" >&5
3939 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3941 rm -rf conftest*
3942 eval "ac_cv_header_$ac_safe=no"
3943fi
3944rm -f conftest*
3945fi
3946if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3949 cat >> confdefs.h <<EOF
3950#define $ac_tr_hdr 1
3951EOF
3952
3953else
3954 echo "$ac_t""no" 1>&6
3955fi
3956done
3957
Marcus Meissner22a969b2000-08-08 20:46:50 +00003958 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003959 then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00003960 echo $ac_n "checking for up-to-date OpenGL version""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003961echo "configure:3962: checking for up-to-date OpenGL version" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003962if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003963 echo $ac_n "(cached) $ac_c" 1>&6
3964else
3965 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003966#line 3967 "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003967#include "confdefs.h"
3968#include <GL/gl.h>
3969int main() {
3970GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3971; return 0; }
3972EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003973if { (eval echo configure:3974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003974 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003975 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003976else
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3979 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003980 wine_cv_opengl_version_OK="no"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003981
Lionel Ulmer5c085701999-02-28 19:48:53 +00003982fi
3983rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003984
Lionel Ulmer5c085701999-02-28 19:48:53 +00003985fi
3986
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003987echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00003988
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00003989 echo $ac_n "checking for thread-safe OpenGL version""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00003990echo "configure:3991: checking for thread-safe OpenGL version" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003991if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003992 echo $ac_n "(cached) $ac_c" 1>&6
3993else
3994 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003995 LIBS="$X_LIBS -lGL"
3996 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00003997#line 3998 "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003998#include "confdefs.h"
3999
4000int main() {
4001pthread_getspecific();
4002; return 0; }
4003EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00004004if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00004005 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004006 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00004007else
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4010 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004011 wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00004012fi
4013rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004014 LIBS=$saved_libs
4015
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00004016fi
4017
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004018echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00004019
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004020 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004021 then
4022 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00004023echo "configure:4024: checking for glXCreateContext in -lGL" >&5
Lionel Ulmer5d68f791999-07-23 19:33:24 +00004024ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00004025if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4027else
4028 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00004029LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00004030cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00004031#line 4032 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004032#include "confdefs.h"
4033/* Override any gcc2 internal prototype to avoid an error. */
4034/* We use char because int might match the return type of a gcc2
4035 builtin and then its argument prototype would still apply. */
Lionel Ulmer5d68f791999-07-23 19:33:24 +00004036char glXCreateContext();
Patrik Stridvall24110281999-02-04 10:09:54 +00004037
4038int main() {
Lionel Ulmer5d68f791999-07-23 19:33:24 +00004039glXCreateContext()
Patrik Stridvall24110281999-02-04 10:09:54 +00004040; return 0; }
4041EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00004042if { (eval echo configure:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00004043 rm -rf conftest*
4044 eval "ac_cv_lib_$ac_lib_var=yes"
4045else
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 rm -rf conftest*
4049 eval "ac_cv_lib_$ac_lib_var=no"
4050fi
4051rm -f conftest*
4052LIBS="$ac_save_LIBS"
4053
4054fi
4055if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4056 echo "$ac_t""yes" 1>&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004057 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004058
Patrik Stridvall24110281999-02-04 10:09:54 +00004059else
4060 echo "$ac_t""no" 1>&6
4061fi
4062
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004063
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00004064 if test $ac_cv_lib_GL_glXCreateContext = "yes"
4065 then
Marcus Meissner22a969b2000-08-08 20:46:50 +00004066
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00004067 OPENGLFILES='$(OPENGLFILES)'
4068 cat >> confdefs.h <<\EOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00004069#define HAVE_OPENGL 1
4070EOF
4071
Marcus Meissner22a969b2000-08-08 20:46:50 +00004072
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004073 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00004074echo "configure:4075: checking for glXGetProcAddressARB in -lGL" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004075ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
4076if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4078else
4079 ac_save_LIBS="$LIBS"
4080LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4081cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00004082#line 4083 "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004083#include "confdefs.h"
4084/* Override any gcc2 internal prototype to avoid an error. */
4085/* We use char because int might match the return type of a gcc2
4086 builtin and then its argument prototype would still apply. */
4087char glXGetProcAddressARB();
4088
4089int main() {
4090glXGetProcAddressARB()
4091; return 0; }
4092EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00004093if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004094 rm -rf conftest*
4095 eval "ac_cv_lib_$ac_lib_var=yes"
4096else
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4099 rm -rf conftest*
4100 eval "ac_cv_lib_$ac_lib_var=no"
4101fi
4102rm -f conftest*
4103LIBS="$ac_save_LIBS"
4104
4105fi
4106if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4107 echo "$ac_t""yes" 1>&6
4108 cat >> confdefs.h <<\EOF
4109#define HAVE_GLX_GETPROCADDRESS 1
4110EOF
4111
4112else
4113 echo "$ac_t""no" 1>&6
4114fi
4115
4116
4117 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4118 then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004119 echo $ac_n "checking for OpenGL extension functions prototypes""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00004120echo "configure:4121: checking for OpenGL extension functions prototypes" >&5
Lionel Ulmer1434d872000-07-23 14:23:31 +00004121if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4123else
4124 cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00004125#line 4126 "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00004126#include "confdefs.h"
4127#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00004128 #ifdef HAVE_GL_GLEXT_H
4129 # include <GL/glext.h>
4130 #endif
4131
Lionel Ulmer1434d872000-07-23 14:23:31 +00004132int main() {
4133PFNGLCOLORTABLEEXTPROC test_proc;
4134; return 0; }
4135EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00004136if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer1434d872000-07-23 14:23:31 +00004137 rm -rf conftest*
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004138 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00004139else
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4142 rm -rf conftest*
4143 wine_cv_extension_prototypes="no"
4144
4145fi
4146rm -f conftest*
4147
4148fi
4149
4150echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004151 if test $wine_cv_extension_prototypes = "yes"
4152 then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004153 cat >> confdefs.h <<\EOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004154#define HAVE_GLEXT_PROTOTYPES 1
4155EOF
4156
4157 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004158 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004159
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004160 fi
Marcus Meissner6e9ab402001-08-08 23:21:16 +00004161 echo $ac_n "checking for gluLookAt in -lGLU""... $ac_c" 1>&6
Andreas Mohra69c0392001-12-26 20:40:47 +00004162echo "configure:4163: checking for gluLookAt in -lGLU" >&5
Marcus Meissner6e9ab402001-08-08 23:21:16 +00004163ac_lib_var=`echo GLU'_'gluLookAt | sed 'y%./+-%__p_%'`
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004164if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4165 echo $ac_n "(cached) $ac_c" 1>&6
4166else
4167 ac_save_LIBS="$LIBS"
4168LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4169 $LIBS"
4170cat > conftest.$ac_ext <<EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00004171#line 4172 "configure"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004172#include "confdefs.h"
4173/* Override any gcc2 internal prototype to avoid an error. */
4174/* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
Marcus Meissner6e9ab402001-08-08 23:21:16 +00004176char gluLookAt();
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004177
4178int main() {
Marcus Meissner6e9ab402001-08-08 23:21:16 +00004179gluLookAt()
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004180; return 0; }
4181EOF
Andreas Mohra69c0392001-12-26 20:40:47 +00004182if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004183 rm -rf conftest*
4184 eval "ac_cv_lib_$ac_lib_var=yes"
4185else
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4188 rm -rf conftest*
4189 eval "ac_cv_lib_$ac_lib_var=no"
4190fi
4191rm -f conftest*
4192LIBS="$ac_save_LIBS"
4193
4194fi
4195if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4198 GLU32FILES='$(GLU32FILES)'
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004199
4200else
4201 echo "$ac_t""no" 1>&6
4202fi
4203
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004204 fi
4205 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00004206 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00004207
4208 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00004209 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00004210else
4211 XLIB=""
4212 X_CFLAGS=""
4213 X_LIBS=""
4214fi
Alexandre Julliard902da691995-11-05 14:39:02 +00004215
Alexandre Julliard48957682001-12-26 23:08:31 +00004216CURSESLIBS=""
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004217if test "$CURSES" = "yes"
4218then
4219 for ac_hdr in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00004220do
4221ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4222echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004223echo "configure:4224: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00004224if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4226else
4227 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004228#line 4229 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004229#include "confdefs.h"
4230#include <$ac_hdr>
4231EOF
4232ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard48957682001-12-26 23:08:31 +00004233{ (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004234ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00004235if test -z "$ac_err"; then
4236 rm -rf conftest*
4237 eval "ac_cv_header_$ac_safe=yes"
4238else
4239 echo "$ac_err" >&5
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4242 rm -rf conftest*
4243 eval "ac_cv_header_$ac_safe=no"
4244fi
4245rm -f conftest*
4246fi
4247if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4250 cat >> confdefs.h <<EOF
4251#define $ac_tr_hdr 1
4252EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004253 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004254echo "configure:4255: checking for waddch in -lncurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004255ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4256if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4258else
4259 ac_save_LIBS="$LIBS"
4260LIBS="-lncurses $LIBS"
4261cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004262#line 4263 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004263#include "confdefs.h"
4264/* Override any gcc2 internal prototype to avoid an error. */
4265/* We use char because int might match the return type of a gcc2
4266 builtin and then its argument prototype would still apply. */
4267char waddch();
4268
4269int main() {
4270waddch()
4271; return 0; }
4272EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004273if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004274 rm -rf conftest*
4275 eval "ac_cv_lib_$ac_lib_var=yes"
4276else
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 rm -rf conftest*
4280 eval "ac_cv_lib_$ac_lib_var=no"
4281fi
4282rm -f conftest*
4283LIBS="$ac_save_LIBS"
4284
4285fi
4286if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4287 echo "$ac_t""yes" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004288 cat >> confdefs.h <<\EOF
4289#define HAVE_LIBNCURSES 1
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004290EOF
4291
Alexandre Julliard48957682001-12-26 23:08:31 +00004292 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004293else
4294 echo "$ac_t""no" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004295for ac_hdr in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00004296do
4297ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4298echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004299echo "configure:4300: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00004300if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4302else
4303 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004304#line 4305 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004305#include "confdefs.h"
4306#include <$ac_hdr>
4307EOF
4308ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard48957682001-12-26 23:08:31 +00004309{ (eval echo configure:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004310ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00004311if test -z "$ac_err"; then
4312 rm -rf conftest*
4313 eval "ac_cv_header_$ac_safe=yes"
4314else
4315 echo "$ac_err" >&5
4316 echo "configure: failed program was:" >&5
4317 cat conftest.$ac_ext >&5
4318 rm -rf conftest*
4319 eval "ac_cv_header_$ac_safe=no"
4320fi
4321rm -f conftest*
4322fi
4323if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6
4325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4326 cat >> confdefs.h <<EOF
4327#define $ac_tr_hdr 1
4328EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004329 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004330echo "configure:4331: checking for waddch in -lcurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004331ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4332if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4334else
4335 ac_save_LIBS="$LIBS"
4336LIBS="-lcurses $LIBS"
4337cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004338#line 4339 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004339#include "confdefs.h"
4340/* Override any gcc2 internal prototype to avoid an error. */
4341/* We use char because int might match the return type of a gcc2
4342 builtin and then its argument prototype would still apply. */
4343char waddch();
4344
4345int main() {
4346waddch()
4347; return 0; }
4348EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004349if { (eval echo configure:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004350 rm -rf conftest*
4351 eval "ac_cv_lib_$ac_lib_var=yes"
4352else
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4355 rm -rf conftest*
4356 eval "ac_cv_lib_$ac_lib_var=no"
4357fi
4358rm -f conftest*
4359LIBS="$ac_save_LIBS"
4360
4361fi
4362if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4363 echo "$ac_t""yes" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004364 cat >> confdefs.h <<\EOF
4365#define HAVE_LIBCURSES 1
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004366EOF
4367
Alexandre Julliard48957682001-12-26 23:08:31 +00004368 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004369else
4370 echo "$ac_t""no" 1>&6
4371fi
4372
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004373else
4374 echo "$ac_t""no" 1>&6
4375fi
4376done
4377
4378fi
Alexandre Julliard48957682001-12-26 23:08:31 +00004379
4380else
4381 echo "$ac_t""no" 1>&6
4382fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004383done
4384
Alexandre Julliard48957682001-12-26 23:08:31 +00004385 saved_libs="$LIBS"
4386 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004387 for ac_func in getbkgd resizeterm
4388do
4389echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004390echo "configure:4391: checking for $ac_func" >&5
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004391if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004392 echo $ac_n "(cached) $ac_c" 1>&6
4393else
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004394 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004395#line 4396 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004396#include "confdefs.h"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004397/* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char $ac_func(); below. */
4399#include <assert.h>
Alexandre Julliard638f1691999-01-17 16:32:32 +00004400/* Override any gcc2 internal prototype to avoid an error. */
4401/* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004403char $ac_func();
Alexandre Julliard638f1691999-01-17 16:32:32 +00004404
4405int main() {
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004406
4407/* The GNU C library defines this for functions which it implements
4408 to always fail with ENOSYS. Some functions are actually named
4409 something starting with __ and the normal name is an alias. */
4410#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4411choke me
4412#else
4413$ac_func();
4414#endif
4415
Alexandre Julliard638f1691999-01-17 16:32:32 +00004416; return 0; }
4417EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004418if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004419 rm -rf conftest*
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004420 eval "ac_cv_func_$ac_func=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004421else
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004425 eval "ac_cv_func_$ac_func=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004426fi
4427rm -f conftest*
Alexandre Julliard638f1691999-01-17 16:32:32 +00004428fi
Alexandre Julliard638f1691999-01-17 16:32:32 +00004429
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004430if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4433 cat >> confdefs.h <<EOF
4434#define $ac_tr_func 1
4435EOF
4436
Alexandre Julliard638f1691999-01-17 16:32:32 +00004437else
4438 echo "$ac_t""no" 1>&6
4439fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004440done
Alexandre Julliard638f1691999-01-17 16:32:32 +00004441
Alexandre Julliard48957682001-12-26 23:08:31 +00004442 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004443fi
4444
Alexandre Julliard48957682001-12-26 23:08:31 +00004445
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004446CUPSLIBS=""
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004447wine_cv_warn_cups_h=no
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004448echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004449echo "configure:4450: checking for cupsGetPPD in -lcups" >&5
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004450ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4451if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4453else
4454 ac_save_LIBS="$LIBS"
4455LIBS="-lcups $LIBS"
4456cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004457#line 4458 "configure"
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004458#include "confdefs.h"
4459/* Override any gcc2 internal prototype to avoid an error. */
4460/* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4462char cupsGetPPD();
4463
4464int main() {
4465cupsGetPPD()
4466; return 0; }
4467EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004468if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004469 rm -rf conftest*
4470 eval "ac_cv_lib_$ac_lib_var=yes"
4471else
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4474 rm -rf conftest*
4475 eval "ac_cv_lib_$ac_lib_var=no"
4476fi
4477rm -f conftest*
4478LIBS="$ac_save_LIBS"
4479
4480fi
4481if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004483 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4484echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004485echo "configure:4486: checking for cups/cups.h" >&5
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4488else
4489 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004490#line 4491 "configure"
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004491#include "confdefs.h"
4492#include <cups/cups.h>
4493EOF
4494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard48957682001-12-26 23:08:31 +00004495{ (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497if test -z "$ac_err"; then
4498 rm -rf conftest*
4499 eval "ac_cv_header_$ac_safe=yes"
4500else
4501 echo "$ac_err" >&5
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4504 rm -rf conftest*
4505 eval "ac_cv_header_$ac_safe=no"
4506fi
4507rm -f conftest*
4508fi
4509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004511 cat >> confdefs.h <<\EOF
4512#define HAVE_CUPS 1
4513EOF
4514
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004515 CUPSLIBS="-lcups"
4516else
4517 echo "$ac_t""no" 1>&6
4518wine_cv_warn_cups_h=yes
4519fi
4520
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004521
4522else
4523 echo "$ac_t""no" 1>&6
4524fi
4525
4526
4527
Ian Pilcher563598d2001-05-16 20:56:05 +00004528echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004529echo "configure:4530: checking for FT_Init_FreeType in -lfreetype" >&5
Ian Pilcher563598d2001-05-16 20:56:05 +00004530ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4531if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4533else
4534 ac_save_LIBS="$LIBS"
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00004535LIBS="-lfreetype $X_LIBS $LIBS"
Ian Pilcher563598d2001-05-16 20:56:05 +00004536cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004537#line 4538 "configure"
Ian Pilcher563598d2001-05-16 20:56:05 +00004538#include "confdefs.h"
4539/* Override any gcc2 internal prototype to avoid an error. */
4540/* We use char because int might match the return type of a gcc2
4541 builtin and then its argument prototype would still apply. */
4542char FT_Init_FreeType();
4543
4544int main() {
4545FT_Init_FreeType()
4546; return 0; }
4547EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004548if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ian Pilcher563598d2001-05-16 20:56:05 +00004549 rm -rf conftest*
4550 eval "ac_cv_lib_$ac_lib_var=yes"
4551else
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 rm -rf conftest*
4555 eval "ac_cv_lib_$ac_lib_var=no"
4556fi
4557rm -f conftest*
4558LIBS="$ac_save_LIBS"
4559
4560fi
4561if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 ft_lib=yes
4564else
4565 echo "$ac_t""no" 1>&6
4566ft_lib=no
4567fi
4568
4569if test "$ft_lib" = "no"
4570then
4571 FREETYPELIBS=""
4572 FREETYPEINCL=""
4573 wine_cv_msg_freetype=no
4574else
4575 # Extract the first word of "freetype-config", so it can be a program name with args.
4576set dummy freetype-config; ac_word=$2
4577echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004578echo "configure:4579: checking for $ac_word" >&5
Ian Pilcher563598d2001-05-16 20:56:05 +00004579if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4581else
4582 if test -n "$ft_devel"; then
4583 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4584else
4585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4586 ac_dummy="$PATH"
4587 for ac_dir in $ac_dummy; do
4588 test -z "$ac_dir" && ac_dir=.
4589 if test -f $ac_dir/$ac_word; then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004590 ac_cv_prog_ft_devel="freetype-config"
Ian Pilcher563598d2001-05-16 20:56:05 +00004591 break
4592 fi
4593 done
4594 IFS="$ac_save_ifs"
4595 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4596fi
4597fi
4598ft_devel="$ac_cv_prog_ft_devel"
4599if test -n "$ft_devel"; then
4600 echo "$ac_t""$ft_devel" 1>&6
4601else
4602 echo "$ac_t""no" 1>&6
4603fi
4604
4605 if test "$ft_devel" = "no"
4606 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004607 # Extract the first word of "freetype2-config", so it can be a program name with args.
4608set dummy freetype2-config; ac_word=$2
4609echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004610echo "configure:4611: checking for $ac_word" >&5
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004611if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4613else
4614 if test -n "$ft_devel2"; then
4615 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4616else
4617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4618 ac_dummy="$PATH"
4619 for ac_dir in $ac_dummy; do
4620 test -z "$ac_dir" && ac_dir=.
4621 if test -f $ac_dir/$ac_word; then
4622 ac_cv_prog_ft_devel2="freetype2-config"
4623 break
4624 fi
4625 done
4626 IFS="$ac_save_ifs"
4627 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4628fi
4629fi
4630ft_devel2="$ac_cv_prog_ft_devel2"
4631if test -n "$ft_devel2"; then
4632 echo "$ac_t""$ft_devel2" 1>&6
4633else
4634 echo "$ac_t""no" 1>&6
4635fi
4636
4637 if test "$ft_devel2" = "freetype2-config"
4638 then
4639 ft_devel=$ft_devel2
4640 fi
4641 fi
4642 if test "$ft_devel" = "no"
4643 then
Ian Pilcher563598d2001-05-16 20:56:05 +00004644 FREETYPELIBS=""
4645 FREETYPEINCL=""
4646 wine_cv_msg_freetype=yes
4647 else
4648 cat >> confdefs.h <<\EOF
4649#define HAVE_FREETYPE 1
4650EOF
4651
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004652 FREETYPELIBS=`$ft_devel --libs`
4653 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00004654 ac_save_CPPFLAGS="$CPPFLAGS"
4655 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4656 for ac_hdr in freetype/freetype.h \
4657 freetype/ftglyph.h \
4658 freetype/tttables.h \
4659 freetype/ftnames.h \
4660 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00004661 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00004662 freetype/ftoutln.h \
4663 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00004664do
4665ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4666echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004667echo "configure:4668: checking for $ac_hdr" >&5
Ian Pilcher40432fe2001-06-06 21:05:23 +00004668if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4670else
4671 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004672#line 4673 "configure"
Ian Pilcher40432fe2001-06-06 21:05:23 +00004673#include "confdefs.h"
4674#include <$ac_hdr>
4675EOF
4676ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard48957682001-12-26 23:08:31 +00004677{ (eval echo configure:4678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ian Pilcher40432fe2001-06-06 21:05:23 +00004678ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4679if test -z "$ac_err"; then
4680 rm -rf conftest*
4681 eval "ac_cv_header_$ac_safe=yes"
4682else
4683 echo "$ac_err" >&5
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 rm -rf conftest*
4687 eval "ac_cv_header_$ac_safe=no"
4688fi
4689rm -f conftest*
4690fi
4691if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4692 echo "$ac_t""yes" 1>&6
4693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4694 cat >> confdefs.h <<EOF
4695#define $ac_tr_hdr 1
4696EOF
4697
4698else
4699 echo "$ac_t""no" 1>&6
4700fi
4701done
4702
4703 CPPFLAGS="$ac_save_CPPFLAGS"
Ian Pilcher563598d2001-05-16 20:56:05 +00004704 wine_cv_msg_freetype=no
4705 fi
4706fi
4707
4708
4709
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004710echo $ac_n "checking for parport header/ppdev.h""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004711echo "configure:4712: checking for parport header/ppdev.h" >&5
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004712if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004713 echo $ac_n "(cached) $ac_c" 1>&6
4714else
4715 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004716#line 4717 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004717#include "confdefs.h"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004718#include <linux/ppdev.h>
4719int main() {
4720ioctl (1,PPCLAIM,0)
4721; return 0; }
4722EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004723if { (eval echo configure:4724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004724 rm -rf conftest*
4725 ac_cv_c_ppdev="yes"
4726else
4727 echo "configure: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4729 rm -rf conftest*
4730 ac_cv_c_ppdev="no"
4731fi
4732rm -f conftest*
4733
4734fi
4735
4736echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4737if test "$ac_cv_c_ppdev" = "yes"
4738then
4739 cat >> confdefs.h <<\EOF
4740#define HAVE_PPDEV 1
4741EOF
4742
4743fi
4744
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004745echo $ac_n "checking for GNU style IPX support""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004746echo "configure:4747: checking for GNU style IPX support" >&5
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004747if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4749else
4750 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004751#line 4752 "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004752#include "confdefs.h"
Pavel Roskin94d99641998-12-26 11:52:51 +00004753#include <sys/socket.h>
4754 #include <netipx/ipx.h>
4755int main() {
4756((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4757; return 0; }
4758EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004759if { (eval echo configure:4760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004760 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004761 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004762else
4763 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4765 rm -rf conftest*
4766 ac_cv_c_ipx_gnu="no"
4767fi
4768rm -f conftest*
4769
4770fi
4771
4772echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004773if test "$ac_cv_c_ipx_gnu" = "yes"
4774then
4775 cat >> confdefs.h <<\EOF
4776#define HAVE_IPX_GNU 1
4777EOF
4778
4779fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004780
4781if test "$ac_cv_c_ipx_gnu" = "no"
4782then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004783 echo $ac_n "checking for linux style IPX support""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004784echo "configure:4785: checking for linux style IPX support" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00004785if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4787else
4788 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004789#line 4790 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004790#include "confdefs.h"
4791#include <sys/socket.h>
4792 #include <asm/types.h>
4793 #include <linux/ipx.h>
4794int main() {
4795((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4796; return 0; }
4797EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004798if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004799 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004800 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004801else
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4804 rm -rf conftest*
4805 ac_cv_c_ipx_linux="no"
4806fi
4807rm -f conftest*
4808
4809fi
4810
4811echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004812 if test "$ac_cv_c_ipx_linux" = "yes"
4813 then
4814 cat >> confdefs.h <<\EOF
4815#define HAVE_IPX_LINUX 1
4816EOF
4817
4818 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004819fi
4820
Todd Vierlingecc76691998-12-15 17:49:02 +00004821for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004822do
4823ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4824echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004825echo "configure:4826: checking for $ac_hdr" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004826if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4828else
4829 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004830#line 4831 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004831#include "confdefs.h"
4832#include <$ac_hdr>
4833EOF
4834ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard48957682001-12-26 23:08:31 +00004835{ (eval echo configure:4836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004836ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004837if test -z "$ac_err"; then
4838 rm -rf conftest*
4839 eval "ac_cv_header_$ac_safe=yes"
4840else
4841 echo "$ac_err" >&5
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4844 rm -rf conftest*
4845 eval "ac_cv_header_$ac_safe=no"
4846fi
4847rm -f conftest*
4848fi
4849if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4852 cat >> confdefs.h <<EOF
4853#define $ac_tr_hdr 1
4854EOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004855 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004856else
4857 echo "$ac_t""no" 1>&6
4858fi
4859done
4860
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004861
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004862echo $ac_n "checking for Open Sound System""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004863echo "configure:4864: checking for Open Sound System" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004864if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4866else
4867 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004868#line 4869 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004869#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004870
Todd Vierlingecc76691998-12-15 17:49:02 +00004871 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004872 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004873 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004874 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004875 #elif defined(HAVE_SOUNDCARD_H)
4876 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004877 #endif
4878
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004879int main() {
4880
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004881
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00004882/* check for one of the Open Sound System specific SNDCTL_ defines */
4883#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004884#error No open sound system
4885#endif
4886
4887; return 0; }
4888EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004889if { (eval echo configure:4890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004890 rm -rf conftest*
4891 ac_cv_c_opensoundsystem="yes"
4892else
4893 echo "configure: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4895 rm -rf conftest*
4896 ac_cv_c_opensoundsystem="no"
4897fi
4898rm -f conftest*
4899fi
4900
4901echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4902
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004903if test "$ac_cv_c_opensoundsystem" = "yes"
4904then
4905 cat >> confdefs.h <<\EOF
4906#define HAVE_OSS 1
4907EOF
4908
4909fi
4910
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004911echo $ac_n "checking for Open Sound System/MIDI interface""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004912echo "configure:4913: checking for Open Sound System/MIDI interface" >&5
Eric Pouech338d3b21999-05-22 18:52:21 +00004913if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4915else
4916 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004917#line 4918 "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00004918#include "confdefs.h"
4919
4920 #if defined(HAVE_SYS_SOUNDCARD_H)
4921 #include <sys/soundcard.h>
4922 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4923 #include <machine/soundcard.h>
4924 #elif defined(HAVE_SOUNDCARD_H)
4925 #include <soundcard.h>
4926 #endif
4927
4928int main() {
4929
4930
4931/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4932#if !defined(SNDCTL_SEQ_SYNC)
4933#error No open sound system MIDI interface
4934#endif
4935
4936; return 0; }
4937EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004938if { (eval echo configure:4939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00004939 rm -rf conftest*
4940 ac_cv_c_opensoundsystem_midi="yes"
4941else
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4944 rm -rf conftest*
4945 ac_cv_c_opensoundsystem_midi="no"
4946fi
4947rm -f conftest*
4948fi
4949
4950echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4951
4952if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4953then
4954 cat >> confdefs.h <<\EOF
4955#define HAVE_OSS_MIDI 1
4956EOF
4957
4958fi
4959
Alexandre Julliard641ee761997-08-04 16:34:36 +00004960if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4961
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004962
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00004963echo $ac_n "checking whether mmap64 works defined as mmap""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00004964echo "configure:4965: checking whether mmap64 works defined as mmap" >&5
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00004965if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4967else
4968 if test "$cross_compiling" = yes; then
4969 ac_cv_mmap64_works="no"
4970else
4971 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00004972#line 4973 "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00004973#include "confdefs.h"
4974
4975 #define _FILE_OFFSET_BITS 64
4976 #include <stdio.h>
4977 #include <unistd.h>
4978 #include <fcntl.h>
4979 #include <sys/mman.h>
4980 #include <errno.h>
4981
4982 int main(int argc,char **argv) {
4983 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4984 if (fd == -1) exit(1);
4985
4986 unlink("conftest.map");
4987
4988 write(fd,"test",4);
4989
4990 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4991 (errno == EINVAL)
4992 ) {
4993 exit(1);
4994 }
4995 close(fd);
4996 fprintf(stderr,"success!\n");
4997 exit(0);
4998 }
4999
5000
5001EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005002if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00005003then
5004 ac_cv_mmap64_works="yes"
5005else
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 rm -fr conftest*
5009 ac_cv_mmap64_works="no"
5010fi
5011rm -fr conftest*
5012fi
5013
5014fi
5015
5016echo "$ac_t""$ac_cv_mmap64_works" 1>&6
5017
5018if test "$ac_cv_mmap64_works" = "yes"
5019then
5020 cat >> confdefs.h <<\EOF
5021#define _FILE_OFFSET_BITS 64
5022EOF
5023
5024fi
5025
5026
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005027if test "x${GCC}" = "xyes"
5028then
5029 CFLAGS="$CFLAGS -Wall"
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005030 echo $ac_n "checking for gcc strength-reduce bug""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005031echo "configure:5032: checking for gcc strength-reduce bug" >&5
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005032if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5034else
5035 if test "$cross_compiling" = yes; then
5036 ac_cv_c_gcc_strength_bug="yes"
5037else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005038 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005039#line 5040 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005040#include "confdefs.h"
5041
Eric Pouech5aee80f2000-11-11 00:31:39 +00005042int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005043int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00005044 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005045 unsigned int B = 3;
5046 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00005047 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00005048 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
5049 L[i] = 4;
5050
5051 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005052}
5053EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005054if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005055then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005056 ac_cv_c_gcc_strength_bug="no"
5057else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5060 rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005061 ac_cv_c_gcc_strength_bug="yes"
5062fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005063rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005064fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005065
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005066fi
5067
5068echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
5069 if test "$ac_cv_c_gcc_strength_bug" = "yes"
5070 then
5071 CFLAGS="$CFLAGS -fno-strength-reduce"
5072 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005073
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005074 echo $ac_n "checking for gcc -mpreferred-stack-boundary=2 support""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005075echo "configure:5076: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005076if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5078else
5079 saved_cflags=$CFLAGS
5080 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5081 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005082#line 5083 "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005083#include "confdefs.h"
5084
5085int main() {
5086return 0
5087; return 0; }
5088EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005089if { (eval echo configure:5090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005090 rm -rf conftest*
5091 ac_cv_c_gcc_stack_boundary="yes"
5092else
5093 echo "configure: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5095 rm -rf conftest*
5096 ac_cv_c_gcc_stack_boundary="no"
5097fi
5098rm -f conftest*
5099 CFLAGS=$saved_cflags
5100
5101fi
5102
5103echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5104 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5105 then
5106 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5107 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005108fi
5109
5110
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005111echo $ac_n "checking whether .type must sit inside a .def directive""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005112echo "configure:5113: checking whether .type must sit inside a .def directive" >&5
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005113if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5115else
5116 saved_libs=$LIBS
5117LIBS="conftest_asm.s $LIBS"
5118cat > conftest_asm.s <<EOF
5119 .globl _ac_test
5120 .def _ac_test; .scl 2; .type 32; .endef
5121_ac_test:
5122 .long 0
5123EOF
5124cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005125#line 5126 "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005126#include "confdefs.h"
5127
5128int main() {
5129
5130; return 0; }
5131EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005132if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005133 rm -rf conftest*
5134 ac_cv_c_type_in_def="yes"
5135else
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 rm -rf conftest*
5139 ac_cv_c_type_in_def="no"
5140fi
5141rm -f conftest*
5142LIBS=$saved_libs
5143fi
5144
5145echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5146if test "$ac_cv_c_type_in_def" = "yes"
5147then
5148 cat >> confdefs.h <<\EOF
5149#define NEED_TYPE_IN_DEF 1
5150EOF
5151
5152fi
5153
5154
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005155echo $ac_n "checking whether external symbols need an underscore prefix""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005156echo "configure:5157: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005157if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5159else
5160 saved_libs=$LIBS
5161LIBS="conftest_asm.s $LIBS"
5162cat > conftest_asm.s <<EOF
5163 .globl _ac_test
5164_ac_test:
5165 .long 0
5166EOF
5167cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005168#line 5169 "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005169#include "confdefs.h"
5170extern int ac_test;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005171int main() {
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005172if (ac_test) return 1
5173; return 0; }
5174EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005175if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005176 rm -rf conftest*
5177 ac_cv_c_extern_prefix="yes"
5178else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005181 rm -rf conftest*
5182 ac_cv_c_extern_prefix="no"
5183fi
5184rm -f conftest*
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005185LIBS=$saved_libs
5186fi
5187
5188echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5189if test "$ac_cv_c_extern_prefix" = "yes"
5190then
5191 cat >> confdefs.h <<\EOF
5192#define NEED_UNDERSCORE_PREFIX 1
5193EOF
5194
5195fi
5196
5197
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005198echo $ac_n "checking whether assembler accepts .string""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005199echo "configure:5200: checking whether assembler accepts .string" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005200if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5202else
5203 saved_libs=$LIBS
5204LIBS="conftest_asm.s $LIBS"
5205cat > conftest_asm.s <<EOF
5206 .string "test"
5207EOF
5208cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005209#line 5210 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005210#include "confdefs.h"
5211
5212int main() {
5213
5214; return 0; }
5215EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005216if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005217 rm -rf conftest*
5218 ac_cv_c_asm_string="yes"
5219else
5220 echo "configure: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 rm -rf conftest*
5223 ac_cv_c_asm_string="no"
5224fi
5225rm -f conftest*
5226LIBS=$saved_libs
5227fi
5228
5229echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5230if test "$ac_cv_c_asm_string" = "yes"
5231then
5232 cat >> confdefs.h <<\EOF
5233#define HAVE_ASM_STRING 1
5234EOF
5235
5236fi
5237
5238
Todd Vierling4b992b01998-12-15 15:26:27 +00005239LDSHARED=""
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005240LDDLLFLAGS=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005241if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005242then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005243 echo $ac_n "checking whether we can build a GNU style ELF dll""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005244echo "configure:5245: checking whether we can build a GNU style ELF dll" >&5
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005245if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005246 echo $ac_n "(cached) $ac_c" 1>&6
5247else
5248 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005249 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005250 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005251#line 5252 "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005252#include "confdefs.h"
5253
5254int main() {
5255return 1
5256; return 0; }
5257EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005258if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005259 rm -rf conftest*
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005260 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005261else
5262 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5264 rm -rf conftest*
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005265 ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005266fi
5267rm -f conftest*
5268 CFLAGS=$saved_cflags
5269
5270fi
5271
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005272echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5273 if test "$ac_cv_c_dll_gnuelf" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005274 then
Jeremy Whitec7b4ed72001-07-14 00:49:50 +00005275 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005276 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005277 else
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005278 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005279echo "configure:5280: checking whether we can build a UnixWare (Solaris) dll" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00005280if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
Todd Vierling4b992b01998-12-15 15:26:27 +00005281 echo $ac_n "(cached) $ac_c" 1>&6
5282else
5283 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005284 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +00005285 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005286#line 5287 "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +00005287#include "confdefs.h"
5288
5289int main() {
5290return 1
5291; return 0; }
5292EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005293if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ron Recorde977d6c1999-09-05 12:32:05 +00005294 rm -rf conftest*
5295 ac_cv_c_dll_unixware="yes"
5296else
5297 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5299 rm -rf conftest*
5300 ac_cv_c_dll_unixware="no"
5301fi
5302rm -f conftest*
5303 CFLAGS=$saved_cflags
5304
5305fi
5306
5307echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5308 if test "$ac_cv_c_dll_unixware" = "yes"
5309 then
Jeremy Whitec7b4ed72001-07-14 00:49:50 +00005310 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005311 LDDLLFLAGS="-Wl,-B,symbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +00005312 fi
5313 fi
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005314 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
Todd Vierling4b992b01998-12-15 15:26:27 +00005315 then
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005316 LIBEXT="a"
5317 if test "$DLLWRAP" = "dllwrap"; then
5318 if test "$CYGWIN" = "yes"; then
5319 echo "*** use dllwrap for building shared library."
5320 LIBEXT="dll"
5321 fi
5322 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005323 fi
5324fi
5325
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005326if test "$LIBEXT" = "a"; then
5327 echo "*** It is currently not possible to build WINE without shared"
5328 echo "*** library (.so) support to allow transparent switch between .so"
5329 echo "*** and .dll files."
5330 echo "*** If you are using Linux, you will need a newer binutils."
5331 exit 1
5332fi
5333
Alexandre Julliard0adad952000-01-26 01:45:58 +00005334DLLFLAGS=""
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005335LDPATH=""
Alexandre Julliard0adad952000-01-26 01:45:58 +00005336
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005337if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005338 DLLFLAGS="-fPIC"
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005339 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5340elif test "$LIBEXT" = "dll"; then
5341 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005342 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005343fi
Alexandre Julliard0adad952000-01-26 01:45:58 +00005344
5345
5346
5347
5348
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005349
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005350
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005351
Alexandre Julliard598412e2001-01-17 20:22:22 +00005352
5353
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005354wine_cv_libc_reentrant=no
Alexandre Julliard598412e2001-01-17 20:22:22 +00005355
5356 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005357echo "configure:5358: checking for reentrant libc: __errno_location" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005358if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005359 echo $ac_n "(cached) $ac_c" 1>&6
5360else
5361 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005362 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005363else
5364 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005365#line 5366 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005366#include "confdefs.h"
5367int myerrno = 0;
5368char buf[256];
5369int *__errno_location(){return &myerrno;}
5370main(){connect(0,buf,255); exit(!myerrno);}
5371EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005372if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005373then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005374 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005375else
5376 echo "configure: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5378 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005379 wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005380fi
5381rm -fr conftest*
5382fi
Marcus Meissnerc2606381999-04-11 15:20:29 +00005383
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005384
5385fi
5386
Alexandre Julliard598412e2001-01-17 20:22:22 +00005387echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5388if test "$wine_cv_libc_r___errno_location" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005389then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005390 wine_cv_libc_reentrant=__errno_location
5391fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005392
5393
5394 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005395echo "configure:5396: checking for reentrant libc: __error" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005396if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005397 echo $ac_n "(cached) $ac_c" 1>&6
5398else
5399 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005400 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00005401else
5402 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005403#line 5404 "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +00005404#include "confdefs.h"
5405int myerrno = 0;
5406char buf[256];
5407int *__error(){return &myerrno;}
5408main(){connect(0,buf,255); exit(!myerrno);}
5409EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005410if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Marcus Meissnerc2606381999-04-11 15:20:29 +00005411then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005412 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00005413else
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5416 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005417 wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +00005418fi
5419rm -fr conftest*
5420fi
5421
Marcus Meissnerc2606381999-04-11 15:20:29 +00005422
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005423fi
5424
Alexandre Julliard598412e2001-01-17 20:22:22 +00005425echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5426if test "$wine_cv_libc_r___error" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005427then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005428 wine_cv_libc_reentrant=__error
5429fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005430
5431
5432 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005433echo "configure:5434: checking for reentrant libc: ___errno" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005434if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005435 echo $ac_n "(cached) $ac_c" 1>&6
5436else
5437 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005438 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005439else
5440 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005441#line 5442 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005442#include "confdefs.h"
5443int myerrno = 0;
5444char buf[256];
5445int *___errno(){return &myerrno;}
5446main(){connect(0,buf,255); exit(!myerrno);}
5447EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005448if { (eval echo configure:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005449then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005450 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005451else
5452 echo "configure: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5454 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005455 wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005456fi
5457rm -fr conftest*
5458fi
5459
5460
5461fi
5462
Alexandre Julliard598412e2001-01-17 20:22:22 +00005463echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5464if test "$wine_cv_libc_r____errno" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005465then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005466 wine_cv_libc_reentrant=___errno
5467fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005468
5469
5470 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005471echo "configure:5472: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005472if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
Ron Recorde977d6c1999-09-05 12:32:05 +00005473 echo $ac_n "(cached) $ac_c" 1>&6
5474else
5475 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005476 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00005477else
5478 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005479#line 5480 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00005480#include "confdefs.h"
5481int myerrno = 0;
5482char buf[256];
5483int *__thr_errno(){return &myerrno;}
5484main(){connect(0,buf,255); exit(!myerrno);}
5485EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005486if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Ron Recorde977d6c1999-09-05 12:32:05 +00005487then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005488 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00005489else
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5492 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005493 wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +00005494fi
5495rm -fr conftest*
5496fi
5497
5498
5499fi
5500
Alexandre Julliard598412e2001-01-17 20:22:22 +00005501echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5502if test "$wine_cv_libc_r___thr_errno" = "yes"
Ron Recorde977d6c1999-09-05 12:32:05 +00005503then
Ron Recorde977d6c1999-09-05 12:32:05 +00005504 wine_cv_libc_reentrant=__thr_errno
5505fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005506
5507
Bang Jun-Young33dff342001-05-07 18:21:10 +00005508 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005509echo "configure:5510: checking for reentrant libc: __errno" >&5
Bang Jun-Young33dff342001-05-07 18:21:10 +00005510if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5511 echo $ac_n "(cached) $ac_c" 1>&6
5512else
5513 if test "$cross_compiling" = yes; then
5514 wine_cv_libc_r___errno=yes
5515else
5516 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005517#line 5518 "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +00005518#include "confdefs.h"
5519int myerrno = 0;
5520char buf[256];
5521int *__errno(){return &myerrno;}
5522main(){connect(0,buf,255); exit(!myerrno);}
5523EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005524if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Bang Jun-Young33dff342001-05-07 18:21:10 +00005525then
5526 wine_cv_libc_r___errno=yes
5527else
5528 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5530 rm -fr conftest*
5531 wine_cv_libc_r___errno=no
5532fi
5533rm -fr conftest*
5534fi
5535
5536
5537fi
5538
5539echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5540if test "$wine_cv_libc_r___errno" = "yes"
5541then
5542 wine_cv_libc_reentrant=__errno
5543fi
5544
5545
Alexandre Julliard598412e2001-01-17 20:22:22 +00005546if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005547then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005548 cat >> confdefs.h <<EOF
5549#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005550EOF
5551
5552fi
5553
5554
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005555if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +00005556then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00005557echo $ac_n "checking for reentrant X libraries""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005558echo "configure:5559: checking for reentrant X libraries" >&5
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005559if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5561else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005562 if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005563 then
5564 wine_cv_x_reentrant=no
5565 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005566 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005567 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +00005568 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005569 libX11_check="-D $dir/libX11.so"
5570 break 1
5571 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +00005572 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005573 libX11_check="$dir/libX11.a"
5574 break 1
5575 fi
5576 done
5577 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005578 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +00005579 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005580 wine_cv_x_reentrant=yes
5581 else
5582 wine_cv_x_reentrant=no
5583 fi
5584 else
5585 wine_cv_x_reentrant=unknown
5586 fi
5587 fi
5588fi
5589
5590echo "$ac_t""$wine_cv_x_reentrant" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005591else
5592 wine_cv_x_reentrant=no
5593fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005594if test "$wine_cv_x_reentrant" = "no"
5595then
5596 cat >> confdefs.h <<\EOF
5597#define NO_REENTRANT_X11 1
5598EOF
5599
5600fi
5601
5602
Francois Gougetae5e93e1999-11-13 23:02:06 +00005603
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005604# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5605# for constant arguments. Useless!
5606echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005607echo "configure:5608: checking for working alloca.h" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005608if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5610else
5611 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005612#line 5613 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005613#include "confdefs.h"
5614#include <alloca.h>
5615int main() {
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00005616char *p = alloca(2 * sizeof(int));
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005617; return 0; }
5618EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005619if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005620 rm -rf conftest*
5621 ac_cv_header_alloca_h=yes
5622else
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5625 rm -rf conftest*
5626 ac_cv_header_alloca_h=no
5627fi
5628rm -f conftest*
5629fi
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005630
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005631echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5632if test $ac_cv_header_alloca_h = yes; then
5633 cat >> confdefs.h <<\EOF
5634#define HAVE_ALLOCA_H 1
5635EOF
5636
5637fi
5638
5639echo $ac_n "checking for alloca""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005640echo "configure:5641: checking for alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005641if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5643else
5644 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005645#line 5646 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005646#include "confdefs.h"
5647
5648#ifdef __GNUC__
5649# define alloca __builtin_alloca
5650#else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005651# ifdef _MSC_VER
5652# include <malloc.h>
5653# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005654# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005655# if HAVE_ALLOCA_H
5656# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005657# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005658# ifdef _AIX
5659 #pragma alloca
5660# else
5661# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005662char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +00005663# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005664# endif
5665# endif
5666# endif
5667#endif
5668
5669int main() {
5670char *p = (char *) alloca(1);
5671; return 0; }
5672EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005673if { (eval echo configure:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005674 rm -rf conftest*
5675 ac_cv_func_alloca_works=yes
5676else
5677 echo "configure: failed program was:" >&5
5678 cat conftest.$ac_ext >&5
5679 rm -rf conftest*
5680 ac_cv_func_alloca_works=no
5681fi
5682rm -f conftest*
5683fi
5684
5685echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5686if test $ac_cv_func_alloca_works = yes; then
5687 cat >> confdefs.h <<\EOF
5688#define HAVE_ALLOCA 1
5689EOF
5690
5691fi
5692
5693if test $ac_cv_func_alloca_works = no; then
5694 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5695 # that cause trouble. Some versions do not even contain alloca or
5696 # contain a buggy version. If you still want to use their alloca,
5697 # use ar to extract alloca.o from them instead of compiling alloca.c.
Eric Pouech18ad24a2000-01-16 22:16:33 +00005698 ALLOCA=alloca.${ac_objext}
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005699 cat >> confdefs.h <<\EOF
5700#define C_ALLOCA 1
5701EOF
5702
5703
5704echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005705echo "configure:5706: checking whether alloca needs Cray hooks" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005706if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5708else
5709 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005710#line 5711 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005711#include "confdefs.h"
5712#if defined(CRAY) && ! defined(CRAY2)
5713webecray
5714#else
5715wenotbecray
5716#endif
5717
5718EOF
5719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5720 egrep "webecray" >/dev/null 2>&1; then
5721 rm -rf conftest*
5722 ac_cv_os_cray=yes
5723else
5724 rm -rf conftest*
5725 ac_cv_os_cray=no
5726fi
5727rm -f conftest*
5728
5729fi
5730
5731echo "$ac_t""$ac_cv_os_cray" 1>&6
5732if test $ac_cv_os_cray = yes; then
5733for ac_func in _getb67 GETB67 getb67; do
5734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005735echo "configure:5736: checking for $ac_func" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005736if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5738else
5739 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005740#line 5741 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005741#include "confdefs.h"
5742/* System header to define __stub macros and hopefully few prototypes,
5743 which can conflict with char $ac_func(); below. */
5744#include <assert.h>
5745/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005746/* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005748char $ac_func();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005749
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005750int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005751
5752/* The GNU C library defines this for functions which it implements
5753 to always fail with ENOSYS. Some functions are actually named
5754 something starting with __ and the normal name is an alias. */
5755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5756choke me
5757#else
5758$ac_func();
5759#endif
5760
5761; return 0; }
5762EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005763if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005764 rm -rf conftest*
5765 eval "ac_cv_func_$ac_func=yes"
5766else
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5769 rm -rf conftest*
5770 eval "ac_cv_func_$ac_func=no"
5771fi
5772rm -f conftest*
5773fi
5774
5775if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5776 echo "$ac_t""yes" 1>&6
5777 cat >> confdefs.h <<EOF
5778#define CRAY_STACKSEG_END $ac_func
5779EOF
5780
5781 break
5782else
5783 echo "$ac_t""no" 1>&6
5784fi
5785
5786done
5787fi
5788
5789echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005790echo "configure:5791: checking stack direction for C alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005791if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5793else
5794 if test "$cross_compiling" = yes; then
5795 ac_cv_c_stack_direction=0
5796else
5797 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005798#line 5799 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005799#include "confdefs.h"
5800find_stack_direction ()
5801{
5802 static char *addr = 0;
5803 auto char dummy;
5804 if (addr == 0)
5805 {
5806 addr = &dummy;
5807 return find_stack_direction ();
5808 }
5809 else
5810 return (&dummy > addr) ? 1 : -1;
5811}
5812main ()
5813{
5814 exit (find_stack_direction() < 0);
5815}
5816EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005817if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005818then
5819 ac_cv_c_stack_direction=1
5820else
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5823 rm -fr conftest*
5824 ac_cv_c_stack_direction=-1
5825fi
5826rm -fr conftest*
5827fi
5828
5829fi
5830
5831echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5832cat >> confdefs.h <<EOF
5833#define STACK_DIRECTION $ac_cv_c_stack_direction
5834EOF
5835
5836fi
5837
5838for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +00005839 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005840 _lwp_create \
5841 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +00005842 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +00005843 finite \
5844 fpclass \
Marcus Meissner3f1ed522001-05-14 20:09:37 +00005845 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005846 getnetbyaddr \
5847 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005848 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005849 getprotobyname \
5850 getprotobynumber \
Dimitrie O. Paun1ec253d2000-12-01 20:47:11 +00005851 getrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005852 getservbyport \
5853 getsockopt \
5854 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +00005855 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +00005856 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005857 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +00005858 mmap \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005859 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005860 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005861 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005862 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005863 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005864 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005865 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005866 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005867 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005868 tcgetattr \
5869 timegm \
5870 usleep \
5871 vfscanf \
5872 wait4 \
5873 waitpid \
5874
5875do
5876echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005877echo "configure:5878: checking for $ac_func" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005878if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5880else
5881 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005882#line 5883 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005883#include "confdefs.h"
5884/* System header to define __stub macros and hopefully few prototypes,
5885 which can conflict with char $ac_func(); below. */
5886#include <assert.h>
5887/* Override any gcc2 internal prototype to avoid an error. */
5888/* We use char because int might match the return type of a gcc2
5889 builtin and then its argument prototype would still apply. */
5890char $ac_func();
5891
5892int main() {
5893
5894/* The GNU C library defines this for functions which it implements
5895 to always fail with ENOSYS. Some functions are actually named
5896 something starting with __ and the normal name is an alias. */
5897#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5898choke me
5899#else
5900$ac_func();
5901#endif
5902
5903; return 0; }
5904EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005905if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005906 rm -rf conftest*
5907 eval "ac_cv_func_$ac_func=yes"
5908else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005909 echo "configure: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005911 rm -rf conftest*
5912 eval "ac_cv_func_$ac_func=no"
5913fi
5914rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005915fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005916
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005917if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5918 echo "$ac_t""yes" 1>&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005920 cat >> confdefs.h <<EOF
5921#define $ac_tr_func 1
5922EOF
5923
5924else
5925 echo "$ac_t""no" 1>&6
5926fi
5927done
5928
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005929
5930
5931for ac_hdr in \
Patrik Stridvall96336321999-10-24 22:13:47 +00005932 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005933 arpa/nameser.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005934 elf.h \
5935 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005936 ieeefp.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005937 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +00005938 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005939 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005940 linux/cdrom.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +00005941 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +00005942 linux/joystick.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005943 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005944 net/if.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +00005945 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005946 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00005947 netinet/in_systm.h \
5948 netinet/ip.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005949 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +00005950 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005951 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005952 sched.h \
5953 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +00005954 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005955 strings.h \
5956 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +00005957 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005958 sys/file.h \
5959 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005960 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +00005961 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005962 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +00005963 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005964 sys/modem.h \
5965 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005966 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005967 sys/param.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00005968 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +00005969 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +00005970 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005971 sys/shm.h \
5972 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005973 sys/sockio.h \
5974 sys/statfs.h \
5975 sys/strtio.h \
5976 sys/syscall.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00005977 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005978 sys/wait.h \
5979 sys/v86.h \
5980 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005981 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005982 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005983 syscall.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00005984 ucontext.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005985
Alexandre Julliard02e90081998-01-04 17:49:09 +00005986do
5987ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5988echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00005989echo "configure:5990: checking for $ac_hdr" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00005990if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5992else
5993 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00005994#line 5995 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00005995#include "confdefs.h"
5996#include <$ac_hdr>
5997EOF
5998ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard48957682001-12-26 23:08:31 +00005999{ (eval echo configure:6000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00006000ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliard02e90081998-01-04 17:49:09 +00006001if test -z "$ac_err"; then
6002 rm -rf conftest*
6003 eval "ac_cv_header_$ac_safe=yes"
6004else
6005 echo "$ac_err" >&5
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6008 rm -rf conftest*
6009 eval "ac_cv_header_$ac_safe=no"
6010fi
6011rm -f conftest*
6012fi
6013if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6016 cat >> confdefs.h <<EOF
6017#define $ac_tr_hdr 1
6018EOF
6019
6020else
6021 echo "$ac_t""no" 1>&6
6022fi
6023done
6024
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006025echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006026echo "configure:6027: checking whether stat file-mode macros are broken" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006027if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6029else
6030 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006031#line 6032 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006032#include "confdefs.h"
6033#include <sys/types.h>
6034#include <sys/stat.h>
6035
6036#if defined(S_ISBLK) && defined(S_IFDIR)
6037# if S_ISBLK (S_IFDIR)
6038You lose.
6039# endif
6040#endif
6041
6042#if defined(S_ISBLK) && defined(S_IFCHR)
6043# if S_ISBLK (S_IFCHR)
6044You lose.
6045# endif
6046#endif
6047
6048#if defined(S_ISLNK) && defined(S_IFREG)
6049# if S_ISLNK (S_IFREG)
6050You lose.
6051# endif
6052#endif
6053
6054#if defined(S_ISSOCK) && defined(S_IFREG)
6055# if S_ISSOCK (S_IFREG)
6056You lose.
6057# endif
6058#endif
6059
6060EOF
6061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6062 egrep "You lose" >/dev/null 2>&1; then
6063 rm -rf conftest*
6064 ac_cv_header_stat_broken=yes
6065else
6066 rm -rf conftest*
6067 ac_cv_header_stat_broken=no
6068fi
6069rm -f conftest*
6070
6071fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006072
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006073echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6074if test $ac_cv_header_stat_broken = yes; then
6075 cat >> confdefs.h <<\EOF
6076#define STAT_MACROS_BROKEN 1
6077EOF
6078
6079fi
6080
Alexandre Julliard2487cce1999-04-18 14:43:16 +00006081
6082
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006083echo $ac_n "checking for working const""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006084echo "configure:6085: checking for working const" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006085if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6086 echo $ac_n "(cached) $ac_c" 1>&6
6087else
6088 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006089#line 6090 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006090#include "confdefs.h"
6091
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006092int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006093
6094/* Ultrix mips cc rejects this. */
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00006095typedef int charset[2]; const charset x;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006096/* SunOS 4.1.1 cc rejects this. */
6097char const *const *ccp;
6098char **p;
6099/* NEC SVR4.0.2 mips cc rejects this. */
6100struct point {int x, y;};
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006101static struct point const zero = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006102/* AIX XL C 1.02.0.0 rejects this.
6103 It does not let you subtract one const X* pointer from another in an arm
6104 of an if-expression whose if-part is not a constant expression */
6105const char *g = "string";
6106ccp = &g + (g ? g-g : 0);
6107/* HPUX 7.0 cc rejects these. */
6108++ccp;
6109p = (char**) ccp;
6110ccp = (char const *const *) p;
6111{ /* SCO 3.2v4 cc rejects this. */
6112 char *t;
6113 char const *s = 0 ? (char *) 0 : (char const *) 0;
6114
6115 *t++ = 0;
6116}
6117{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6118 int x[] = {25, 17};
6119 const int *foo = &x[0];
6120 ++foo;
6121}
6122{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6123 typedef const int *iptr;
6124 iptr p = 0;
6125 ++p;
6126}
6127{ /* AIX XL C 1.02.0.0 rejects this saying
6128 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6129 struct s { int j; const int *ap[3]; };
6130 struct s *b; b->j = 5;
6131}
6132{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6133 const int foo = 10;
6134}
6135
6136; return 0; }
6137EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006138if { (eval echo configure:6139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006139 rm -rf conftest*
6140 ac_cv_c_const=yes
6141else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006144 rm -rf conftest*
6145 ac_cv_c_const=no
6146fi
6147rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006148fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006149
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006150echo "$ac_t""$ac_cv_c_const" 1>&6
6151if test $ac_cv_c_const = no; then
6152 cat >> confdefs.h <<\EOF
6153#define const
6154EOF
6155
6156fi
6157
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006158echo $ac_n "checking for inline""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006159echo "configure:6160: checking for inline" >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006160if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6162else
6163 ac_cv_c_inline=no
6164for ac_kw in inline __inline__ __inline; do
6165 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006166#line 6167 "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006167#include "confdefs.h"
6168
6169int main() {
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00006170} $ac_kw foo() {
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006171; return 0; }
6172EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006173if { (eval echo configure:6174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006174 rm -rf conftest*
6175 ac_cv_c_inline=$ac_kw; break
6176else
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6179fi
6180rm -f conftest*
6181done
6182
6183fi
6184
6185echo "$ac_t""$ac_cv_c_inline" 1>&6
6186case "$ac_cv_c_inline" in
6187 inline | yes) ;;
6188 no) cat >> confdefs.h <<\EOF
6189#define inline
6190EOF
6191 ;;
6192 *) cat >> confdefs.h <<EOF
6193#define inline $ac_cv_c_inline
6194EOF
6195 ;;
6196esac
6197
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006198echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006199echo "configure:6200: checking for ANSI C header files" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006200if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6202else
6203 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006204#line 6205 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006205#include "confdefs.h"
6206#include <stdlib.h>
6207#include <stdarg.h>
6208#include <string.h>
6209#include <float.h>
6210EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00006211ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard48957682001-12-26 23:08:31 +00006212{ (eval echo configure:6213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00006213ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006214if test -z "$ac_err"; then
6215 rm -rf conftest*
6216 ac_cv_header_stdc=yes
6217else
6218 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006219 echo "configure: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006221 rm -rf conftest*
6222 ac_cv_header_stdc=no
6223fi
6224rm -f conftest*
6225
6226if test $ac_cv_header_stdc = yes; then
6227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6228cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006229#line 6230 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006230#include "confdefs.h"
6231#include <string.h>
6232EOF
6233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234 egrep "memchr" >/dev/null 2>&1; then
6235 :
6236else
6237 rm -rf conftest*
6238 ac_cv_header_stdc=no
6239fi
6240rm -f conftest*
6241
6242fi
6243
6244if test $ac_cv_header_stdc = yes; then
6245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6246cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006247#line 6248 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006248#include "confdefs.h"
6249#include <stdlib.h>
6250EOF
6251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6252 egrep "free" >/dev/null 2>&1; then
6253 :
6254else
6255 rm -rf conftest*
6256 ac_cv_header_stdc=no
6257fi
6258rm -f conftest*
6259
6260fi
6261
6262if test $ac_cv_header_stdc = yes; then
6263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6264if test "$cross_compiling" = yes; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006265 :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006266else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006267 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006268#line 6269 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006269#include "confdefs.h"
6270#include <ctype.h>
6271#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6272#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6273#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6274int main () { int i; for (i = 0; i < 256; i++)
6275if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6276exit (0); }
6277
6278EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006279if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006280then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006281 :
6282else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006283 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5
6285 rm -fr conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006286 ac_cv_header_stdc=no
6287fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006288rm -fr conftest*
6289fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006290
6291fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006292fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006293
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006294echo "$ac_t""$ac_cv_header_stdc" 1>&6
6295if test $ac_cv_header_stdc = yes; then
6296 cat >> confdefs.h <<\EOF
6297#define STDC_HEADERS 1
6298EOF
6299
6300fi
6301
6302echo $ac_n "checking for size_t""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006303echo "configure:6304: checking for size_t" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006304if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6305 echo $ac_n "(cached) $ac_c" 1>&6
6306else
6307 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006308#line 6309 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006309#include "confdefs.h"
6310#include <sys/types.h>
6311#if STDC_HEADERS
6312#include <stdlib.h>
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006313#include <stddef.h>
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006314#endif
6315EOF
6316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006317 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006318 rm -rf conftest*
6319 ac_cv_type_size_t=yes
6320else
6321 rm -rf conftest*
6322 ac_cv_type_size_t=no
6323fi
6324rm -f conftest*
6325
6326fi
6327echo "$ac_t""$ac_cv_type_size_t" 1>&6
6328if test $ac_cv_type_size_t = no; then
6329 cat >> confdefs.h <<\EOF
6330#define size_t unsigned
6331EOF
6332
6333fi
6334
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006335echo $ac_n "checking size of long long""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006336echo "configure:6337: checking size of long long" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006337if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6339else
6340 if test "$cross_compiling" = yes; then
6341 ac_cv_sizeof_long_long=0
6342else
6343 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006344#line 6345 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006345#include "confdefs.h"
6346#include <stdio.h>
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00006347#include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006348main()
6349{
6350 FILE *f=fopen("conftestval", "w");
6351 if (!f) exit(1);
6352 fprintf(f, "%d\n", sizeof(long long));
6353 exit(0);
6354}
6355EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006356if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006357then
6358 ac_cv_sizeof_long_long=`cat conftestval`
6359else
6360 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 rm -fr conftest*
6363 ac_cv_sizeof_long_long=0
6364fi
6365rm -fr conftest*
6366fi
6367
6368fi
6369echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6370cat >> confdefs.h <<EOF
6371#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6372EOF
6373
6374
6375
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006376echo $ac_n "checking whether linux/input.h is for real""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006377echo "configure:6378: checking whether linux/input.h is for real" >&5
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006378if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6380else
6381 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006382#line 6383 "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006383#include "confdefs.h"
6384
6385 #include <linux/input.h>
6386
6387int main() {
6388
6389 int foo = EVIOCGBIT(EV_ABS,42);
6390 int bar = BTN_PINKIE;
6391 int fortytwo = 42;
6392
6393; return 0; }
6394EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006395if { (eval echo configure:6396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006396 rm -rf conftest*
6397 wine_cv_linux_input_h=yes
6398else
6399 echo "configure: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6401 rm -rf conftest*
6402 wine_cv_linux_input_h=no
6403fi
6404rm -f conftest*
6405
6406fi
6407
6408echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6409 if test "$wine_cv_linux_input_h" = "yes"
6410 then
6411 cat >> confdefs.h <<\EOF
6412#define HAVE_CORRECT_LINUXINPUT_H 1
6413EOF
6414
6415 fi
6416
Rein Klazesff7a61f2000-09-24 19:41:57 +00006417
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006418echo $ac_n "checking whether we can use re-entrant gethostbyname_r Linux style""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006419echo "configure:6420: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Rein Klazesff7a61f2000-09-24 19:41:57 +00006420if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6422else
6423 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006424#line 6425 "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +00006425#include "confdefs.h"
6426
6427#include <netdb.h>
6428
6429int main() {
6430
6431 char *name=NULL;
6432 struct hostent he;
6433 struct hostent *result;
6434 char *buf=NULL;
6435 int bufsize=0;
6436 int res,errnr;
6437 char *addr=NULL;
6438 int addrlen=0;
6439 int addrtype=0;
6440 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6441 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6442
6443; return 0; }
6444EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006445if { (eval echo configure:6446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +00006446 rm -rf conftest*
6447 wine_cv_linux_gethostbyname_r_6=yes
6448else
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6451 rm -rf conftest*
6452 wine_cv_linux_gethostbyname_r_6=no
6453
6454fi
6455rm -f conftest*
6456
6457fi
6458
6459echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6460 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6461 then
6462 cat >> confdefs.h <<\EOF
6463#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6464EOF
6465
6466 fi
6467
Marcus Meissner028e9a11999-08-04 15:07:56 +00006468if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006469then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006470 echo $ac_n "checking whether linux/joystick.h uses the Linux 2.2+ API""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006471echo "configure:6472: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00006472if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006473 echo $ac_n "(cached) $ac_c" 1>&6
6474else
6475 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006476#line 6477 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006477#include "confdefs.h"
6478
Marcus Meissner028e9a11999-08-04 15:07:56 +00006479 #include <sys/ioctl.h>
6480 #include <linux/joystick.h>
6481
6482 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +00006483 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6484 #error "no 2.2 header"
6485 #endif
Marcus Meissner028e9a11999-08-04 15:07:56 +00006486
6487int main() {
6488/*empty*/
6489; return 0; }
6490EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006491if { (eval echo configure:6492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +00006492 rm -rf conftest*
6493 wine_cv_linux_joystick_22_api=yes
6494else
6495 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6497 rm -rf conftest*
6498 wine_cv_linux_joystick_22_api=no
6499fi
6500rm -f conftest*
6501
6502fi
6503
6504echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
Rein Klazes87d224a2000-04-24 17:33:49 +00006505 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +00006506 then
6507 cat >> confdefs.h <<\EOF
6508#define HAVE_LINUX_22_JOYSTICK_API 1
6509EOF
6510
6511 fi
6512fi
6513
6514
6515if test "$ac_cv_header_sys_vfs_h" = "yes"
6516then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006517 echo $ac_n "checking whether sys/vfs.h defines statfs""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006518echo "configure:6519: checking whether sys/vfs.h defines statfs" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00006519if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6520 echo $ac_n "(cached) $ac_c" 1>&6
6521else
6522 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006523#line 6524 "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +00006524#include "confdefs.h"
6525
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006526 #include <sys/types.h>
6527 #ifdef HAVE_SYS_PARAM_H
6528 # include <sys/param.h>
6529 #endif
6530 #include <sys/vfs.h>
6531
6532int main() {
6533
6534 struct statfs stfs;
6535
6536 memset(&stfs,0,sizeof(stfs));
6537
6538; return 0; }
6539EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006540if { (eval echo configure:6541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006541 rm -rf conftest*
6542 wine_cv_sys_vfs_has_statfs=yes
6543else
6544 echo "configure: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6546 rm -rf conftest*
6547 wine_cv_sys_vfs_has_statfs=no
6548
6549fi
6550rm -f conftest*
6551
6552fi
6553
6554echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6555 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6556 then
6557 cat >> confdefs.h <<\EOF
6558#define STATFS_DEFINED_BY_SYS_VFS 1
6559EOF
6560
6561 fi
6562fi
6563
6564if test "$ac_cv_header_sys_statfs_h" = "yes"
6565then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006566 echo $ac_n "checking whether sys/statfs.h defines statfs""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006567echo "configure:6568: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006568if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6570else
6571 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006572#line 6573 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006573#include "confdefs.h"
6574
6575 #include <sys/types.h>
6576 #ifdef HAVE_SYS_PARAM_H
6577 # include <sys/param.h>
6578 #endif
6579 #include <sys/statfs.h>
6580
6581int main() {
6582
6583 struct statfs stfs;
6584
6585; return 0; }
6586EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006587if { (eval echo configure:6588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006588 rm -rf conftest*
6589 wine_cv_sys_statfs_has_statfs=yes
6590else
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6593 rm -rf conftest*
6594 wine_cv_sys_statfs_has_statfs=no
6595
6596fi
6597rm -f conftest*
6598
6599fi
6600
6601echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6602 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6603 then
6604 cat >> confdefs.h <<\EOF
6605#define STATFS_DEFINED_BY_SYS_STATFS 1
6606EOF
6607
6608 fi
6609fi
6610
6611if test "$ac_cv_header_sys_mount_h" = "yes"
6612then
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006613 echo $ac_n "checking whether sys/mount.h defines statfs""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006614echo "configure:6615: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006615if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6617else
6618 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006619#line 6620 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006620#include "confdefs.h"
6621
6622 #include <sys/types.h>
6623 #ifdef HAVE_SYS_PARAM_H
6624 # include <sys/param.h>
6625 #endif
6626 #include <sys/mount.h>
6627
6628int main() {
6629
6630 struct statfs stfs;
6631
6632; return 0; }
6633EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006634if { (eval echo configure:6635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006635 rm -rf conftest*
6636 wine_cv_sys_mount_has_statfs=yes
6637else
6638 echo "configure: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6640 rm -rf conftest*
6641 wine_cv_sys_mount_has_statfs=no
6642
6643fi
6644rm -f conftest*
6645
6646fi
6647
6648echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6649 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6650 then
6651 cat >> confdefs.h <<\EOF
6652#define STATFS_DEFINED_BY_SYS_MOUNT 1
6653EOF
6654
6655 fi
6656fi
6657
6658
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006659echo $ac_n "checking for statfs.f_bfree""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006660echo "configure:6661: checking for statfs.f_bfree" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006661if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6663else
6664 if test "x$statfs_bfree" = "xno"
6665 then
6666 wine_cv_statfs_bfree=no
6667 else
6668 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006669#line 6670 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006670#include "confdefs.h"
6671
6672 #include <sys/types.h>
6673 #ifdef HAVE_SYS_PARAM_H
6674 # include <sys/param.h>
6675 #endif
6676 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6677 # include <sys/mount.h>
6678 #else
6679 # ifdef STATFS_DEFINED_BY_SYS_VFS
6680 # include <sys/vfs.h>
6681 # else
6682 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6683 # include <sys/statfs.h>
6684 # endif
6685 # endif
6686 #endif
6687
6688int main() {
6689
6690 struct statfs stfs;
6691
6692 stfs.f_bfree++;
6693
6694; return 0; }
6695EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006696if { (eval echo configure:6697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006697 rm -rf conftest*
6698 wine_cv_statfs_bfree=yes
6699else
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6702 rm -rf conftest*
6703 wine_cv_statfs_bfree=no
6704
6705fi
6706rm -f conftest*
6707 fi
6708fi
6709
6710echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6711if test "$wine_cv_statfs_bfree" = "yes"
6712then
6713 cat >> confdefs.h <<\EOF
6714#define STATFS_HAS_BFREE 1
6715EOF
6716
6717fi
6718
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006719echo $ac_n "checking for statfs.f_bavail""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006720echo "configure:6721: checking for statfs.f_bavail" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006721if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6723else
6724 if test "x$statfs_bavail" = "xno"
6725 then
6726 wine_cv_statfs_bavail=no
6727 else
6728 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006729#line 6730 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006730#include "confdefs.h"
6731
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00006732 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006733 #ifdef HAVE_SYS_PARAM_H
6734 # include <sys/param.h>
6735 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006736 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006737 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006738 #else
6739 # ifdef STATFS_DEFINED_BY_SYS_VFS
6740 # include <sys/vfs.h>
6741 # else
6742 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6743 # include <sys/statfs.h>
6744 # endif
6745 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006746 #endif
6747
6748int main() {
6749
6750 struct statfs stfs;
6751
6752 stfs.f_bavail++;
6753
6754; return 0; }
6755EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006756if { (eval echo configure:6757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006757 rm -rf conftest*
6758 wine_cv_statfs_bavail=yes
6759else
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6762 rm -rf conftest*
6763 wine_cv_statfs_bavail=no
6764
6765fi
6766rm -f conftest*
6767 fi
6768fi
6769
6770echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6771if test "$wine_cv_statfs_bavail" = "yes"
6772then
6773 cat >> confdefs.h <<\EOF
6774#define STATFS_HAS_BAVAIL 1
6775EOF
6776
6777fi
6778
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006779
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006780echo $ac_n "checking for msg_accrights in struct msghdr""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006781echo "configure:6782: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliard829fe321998-07-26 14:27:39 +00006782if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6784else
6785 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006786#line 6787 "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +00006787#include "confdefs.h"
6788#include <sys/types.h>
6789#include <sys/socket.h>
6790int main() {
6791struct msghdr hdr; hdr.msg_accrights=0
6792; return 0; }
6793EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006794if { (eval echo configure:6795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard829fe321998-07-26 14:27:39 +00006795 rm -rf conftest*
6796 ac_cv_c_msg_accrights="yes"
6797else
6798 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6800 rm -rf conftest*
6801 ac_cv_c_msg_accrights="no"
6802fi
6803rm -f conftest*
6804fi
6805
6806echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6807if test "$ac_cv_c_msg_accrights" = "yes"
6808then
6809 cat >> confdefs.h <<\EOF
6810#define HAVE_MSGHDR_ACCRIGHTS 1
6811EOF
6812
6813fi
6814
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006815
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006816echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006817echo "configure:6818: checking for sa_len in struct sockaddr" >&5
Patrik Stridvall09da9662001-07-08 22:30:50 +00006818if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006819 echo $ac_n "(cached) $ac_c" 1>&6
6820else
6821 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006822#line 6823 "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006823#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006824#include <sys/types.h>
6825#include <sys/socket.h>
Patrik Stridvall09da9662001-07-08 22:30:50 +00006826
6827int main() {
6828static struct sockaddr addr; addr.sa_len = 1
6829; return 0; }
6830EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006831if { (eval echo configure:6832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +00006832 rm -rf conftest*
6833 ac_cv_c_sockaddr_sa_len="yes"
6834else
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6837 rm -rf conftest*
6838 ac_cv_c_sockaddr_sa_len="no"
6839fi
6840rm -f conftest*
6841fi
6842
6843echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6844if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6845then
6846 cat >> confdefs.h <<\EOF
6847#define HAVE_SOCKADDR_SA_LEN 1
6848EOF
6849
6850fi
6851
6852
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006853echo $ac_n "checking for sun_len in struct sockaddr_un""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006854echo "configure:6855: checking for sun_len in struct sockaddr_un" >&5
Patrik Stridvall09da9662001-07-08 22:30:50 +00006855if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6857else
6858 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006859#line 6860 "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +00006860#include "confdefs.h"
6861#include <sys/types.h>
6862#include <sys/socket.h>
Juergen Lock2d33ab92000-02-13 16:03:29 +00006863#include <sys/un.h>
6864int main() {
6865static struct sockaddr_un addr; addr.sun_len = 1
6866; return 0; }
6867EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006868if { (eval echo configure:6869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Juergen Lock2d33ab92000-02-13 16:03:29 +00006869 rm -rf conftest*
Patrik Stridvall09da9662001-07-08 22:30:50 +00006870 ac_cv_c_sockaddr_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006871else
6872 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6874 rm -rf conftest*
Patrik Stridvall09da9662001-07-08 22:30:50 +00006875 ac_cv_c_sockaddr_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006876fi
6877rm -f conftest*
6878fi
6879
Patrik Stridvall09da9662001-07-08 22:30:50 +00006880echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6881if test "$ac_cv_c_sockaddr_sun_len" = "yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006882then
6883 cat >> confdefs.h <<\EOF
6884#define HAVE_SOCKADDR_SUN_LEN 1
6885EOF
6886
6887fi
6888
6889
Bernhard Rosenkraenzerfea260a2001-09-19 20:30:28 +00006890echo $ac_n "checking whether we need to define __i386__""... $ac_c" 1>&6
Alexandre Julliard48957682001-12-26 23:08:31 +00006891echo "configure:6892: checking whether we need to define __i386__" >&5
Juergen Lock2d33ab92000-02-13 16:03:29 +00006892if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6893 echo $ac_n "(cached) $ac_c" 1>&6
6894else
6895 cat > conftest.$ac_ext <<EOF
Alexandre Julliard48957682001-12-26 23:08:31 +00006896#line 6897 "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006897#include "confdefs.h"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006898#if (defined(i386) || defined(__i386)) && !defined(__i386__)
6899yes
6900#endif
6901EOF
6902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6903 egrep "yes" >/dev/null 2>&1; then
6904 rm -rf conftest*
6905 ac_cv_cpp_def_i386="yes"
6906else
6907 rm -rf conftest*
6908 ac_cv_cpp_def_i386="no"
6909fi
6910rm -f conftest*
6911
6912fi
6913
6914echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6915if test "$ac_cv_cpp_def_i386" = "yes"
6916then
6917 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006918 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006919fi
6920
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00006921GCC_NO_BUILTIN=""
6922if test "$GCC" = "yes"
6923then
6924 GCC_NO_BUILTIN="-fno-builtin"
6925fi
6926
6927
Alexandre Julliard829fe321998-07-26 14:27:39 +00006928
François Gouget14259412001-11-06 20:57:11 +00006929cat >> confdefs.h <<\EOF
6930#define __WINE_CONFIG_H 1
6931EOF
6932
6933
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006934
6935
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006936MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006937
6938
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006939MAKE_DLL_RULES=dlls/Makedll.rules
6940
6941
Alexandre Julliard626f4252000-11-10 23:35:20 +00006942MAKE_PROG_RULES=programs/Makeprog.rules
6943
6944
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006945trap '' 1 2 15
6946cat > confcache <<\EOF
6947# This file is a shell script that caches the results of configure
6948# tests run on this system so they can be shared between configure
6949# scripts and configure runs. It is not useful on other systems.
6950# If it contains results you don't want to keep, you may remove or edit it.
6951#
6952# By default, configure uses ./config.cache as the cache file,
6953# creating it if it does not exist already. You can give configure
6954# the --cache-file=FILE option to use a different cache file; that is
6955# what configure does when it calls configure scripts in
6956# subdirectories, so they share the cache.
6957# Giving --cache-file=/dev/null disables caching, for debugging configure.
6958# config.status only pays attention to the cache file if you give it the
6959# --recheck option to rerun configure.
6960#
6961EOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006962# The following way of writing the cache mishandles newlines in values,
6963# but we know of no workaround that is simple, portable, and efficient.
6964# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006965# Ultrix sh set writes to stderr and can't be redirected directly,
6966# and sets the high bit in the cache file unless we assign to the vars.
6967(set) 2>&1 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006968 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006969 *ac_space=\ *)
6970 # `set' does not quote correctly, so add quotes (double-quote substitution
6971 # turns \\\\ into \\, and sed turns \\ into \).
6972 sed -n \
6973 -e "s/'/'\\\\''/g" \
6974 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6975 ;;
6976 *)
6977 # `set' quotes correctly as required by POSIX, so do not add quotes.
6978 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6979 ;;
6980 esac >> confcache
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006981if cmp -s $cache_file confcache; then
6982 :
6983else
6984 if test -w $cache_file; then
6985 echo "updating cache $cache_file"
6986 cat confcache > $cache_file
6987 else
6988 echo "not updating unwritable cache $cache_file"
6989 fi
6990fi
6991rm -f confcache
6992
6993trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6994
6995test "x$prefix" = xNONE && prefix=$ac_default_prefix
6996# Let make expand exec_prefix.
6997test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6998
6999# Any assignment to VPATH causes Sun make to only execute
7000# the first set of double-colon rules, so remove it if not needed.
7001# If there is a colon in the path, we need to keep it.
7002if test "x$srcdir" = x.; then
7003 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7004fi
7005
7006trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7007
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007008DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007009
7010# Without the "./", some shells look in PATH for config.status.
7011: ${CONFIG_STATUS=./config.status}
7012
7013echo creating $CONFIG_STATUS
7014rm -f $CONFIG_STATUS
7015cat > $CONFIG_STATUS <<EOF
7016#! /bin/sh
7017# Generated automatically by configure.
7018# Run this file to recreate the current configuration.
7019# This directory was configured as follows,
7020# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7021#
7022# $0 $ac_configure_args
7023#
7024# Compiler output produced by configure, useful for debugging
7025# configure, is in ./config.log if it exists.
7026
7027ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7028for ac_option
7029do
7030 case "\$ac_option" in
7031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7032 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7033 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7034 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Eric Pouech18ad24a2000-01-16 22:16:33 +00007035 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007036 exit 0 ;;
7037 -help | --help | --hel | --he | --h)
7038 echo "\$ac_cs_usage"; exit 0 ;;
7039 *) echo "\$ac_cs_usage"; exit 1 ;;
7040 esac
7041done
7042
7043ac_given_srcdir=$srcdir
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007044ac_given_INSTALL="$INSTALL"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007045
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007046trap 'rm -fr `echo "
7047Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00007048dlls/Makedll.rules
7049programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007050Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00007051console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007052controls/Makefile
7053debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007054dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00007055dlls/advapi32/Makefile
Hidenori Takeshima1c53a7f2001-11-06 00:41:05 +00007056dlls/avicap32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00007057dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00007058dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00007059dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007060dlls/crtdll/Makefile
7061dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007062dlls/ddraw/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007063dlls/devenum/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007064dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007065dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00007066dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007067dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007068dlls/gdi/Makefile
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007069dlls/glu32/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00007070dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007071dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007072dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00007073dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007074dlls/lzexpand/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007075dlls/mapi32/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00007076dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007077dlls/msacm/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007078dlls/msdmo/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007079dlls/msimg32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007080dlls/msnet32/Makefile
Hidenori Takeshima1c53a7f2001-11-06 00:41:05 +00007081dlls/msrle32/Makefile
Jon Griffiths1db20bf2001-01-10 23:59:25 +00007082dlls/msvcrt/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007083dlls/msvideo/Makefile
Mike McCormack2e40b962001-11-06 17:52:36 +00007084dlls/netapi32/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00007085dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00007086dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007087dlls/ole32/Makefile
7088dlls/oleaut32/Makefile
7089dlls/olecli/Makefile
7090dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00007091dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007092dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007093dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007094dlls/psapi/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007095dlls/qcap/Makefile
Hidenori Takeshimab7d4b4e2001-07-02 18:57:22 +00007096dlls/quartz/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00007097dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00007098dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00007099dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00007100dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00007101dlls/setupapi/Makefile
John R. Sheetsbc80a3b2001-01-11 22:32:44 +00007102dlls/shdocvw/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007103dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007104dlls/shfolder/Makefile
7105dlls/shlwapi/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007106dlls/sti/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00007107dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007108dlls/ttydrv/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007109dlls/url/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007110dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007111dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00007112dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007113dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007114dlls/winaspi/Makefile
Ove Kaavene5557b32000-12-26 00:22:45 +00007115dlls/winedos/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00007116dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007117dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007118dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00007119dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007120dlls/winmm/mcianim/Makefile
7121dlls/winmm/mciavi/Makefile
7122dlls/winmm/mcicda/Makefile
7123dlls/winmm/mciseq/Makefile
7124dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00007125dlls/winmm/midimap/Makefile
7126dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007127dlls/winmm/wineoss/Makefile
Hidenori Takeshima9c672132000-12-14 21:56:18 +00007128dlls/winnls/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00007129dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00007130dlls/winspool/Makefile
Rein Klazes2a4c68b2001-04-16 19:36:12 +00007131dlls/wintrust/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007132dlls/wow32/Makefile
7133dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007134dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00007135documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00007136documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00007137documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007138files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007139graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00007140graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00007141graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007142graphics/win16drv/Makefile
7143graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007144if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00007145include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007146library/Makefile
7147libtest/Makefile
7148loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00007149loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007150loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007151memory/Makefile
7152misc/Makefile
7153miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007154msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007155objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007156ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007157programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007158programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007159programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00007160programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007161programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007162programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007163programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007164programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00007165programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007166programs/regtest/Makefile
7167programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007168programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00007169programs/wcmd/Makefile
Eric Pouech0b83d4c2001-11-23 23:04:58 +00007170programs/wineconsole/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00007171programs/winemine/Makefile
Alexandre Julliardfc684342001-03-21 21:41:27 +00007172programs/winetest/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00007173programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007174programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007175relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007176scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00007177server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007178tools/Makefile
Patrik Stridvall647ac512001-07-30 20:21:34 +00007179tools/winapi/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00007180tools/winebuild/Makefile
Eric Pouechd786a122001-09-07 16:04:38 +00007181tools/winedump/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00007182tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00007183tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007184tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00007185tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00007186unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007187win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00007188windows/Makefile
7189windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007190EOF
7191cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007192
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007193# Protect against being on the right side of a sed subst in config.status.
7194sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7195 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007196$ac_vpsub
7197$extrasub
Eric Pouech18ad24a2000-01-16 22:16:33 +00007198s%@SHELL@%$SHELL%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007199s%@CFLAGS@%$CFLAGS%g
7200s%@CPPFLAGS@%$CPPFLAGS%g
7201s%@CXXFLAGS@%$CXXFLAGS%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00007202s%@FFLAGS@%$FFLAGS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007203s%@DEFS@%$DEFS%g
7204s%@LDFLAGS@%$LDFLAGS%g
7205s%@LIBS@%$LIBS%g
7206s%@exec_prefix@%$exec_prefix%g
7207s%@prefix@%$prefix%g
7208s%@program_transform_name@%$program_transform_name%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007209s%@bindir@%$bindir%g
7210s%@sbindir@%$sbindir%g
7211s%@libexecdir@%$libexecdir%g
7212s%@datadir@%$datadir%g
7213s%@sysconfdir@%$sysconfdir%g
7214s%@sharedstatedir@%$sharedstatedir%g
7215s%@localstatedir@%$localstatedir%g
7216s%@libdir@%$libdir%g
7217s%@includedir@%$includedir%g
7218s%@oldincludedir@%$oldincludedir%g
7219s%@infodir@%$infodir%g
7220s%@mandir@%$mandir%g
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007221s%@OPTIONS@%$OPTIONS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007222s%@SET_MAKE@%$SET_MAKE%g
7223s%@CC@%$CC%g
7224s%@CPP@%$CPP%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007225s%@X_CFLAGS@%$X_CFLAGS%g
7226s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7227s%@X_LIBS@%$X_LIBS%g
7228s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007229s%@YACC@%$YACC%g
7230s%@LEX@%$LEX%g
7231s%@LEXLIB@%$LEXLIB%g
Marcus Meissnerb53bb412000-07-23 13:41:51 +00007232s%@XLEX@%$XLEX%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007233s%@RANLIB@%$RANLIB%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007234s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00007235s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007236s%@INSTALL_DATA@%$INSTALL_DATA%g
Alexandre Julliard641ee761997-08-04 16:34:36 +00007237s%@LN_S@%$LN_S%g
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007238s%@C2MAN@%$C2MAN%g
James Juranffe6b761999-06-12 08:21:57 +00007239s%@LDCONFIG@%$LDCONFIG%g
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007240s%@DLLWRAP@%$DLLWRAP%g
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00007241s%@LINT@%$LINT%g
7242s%@LINTFLAGS@%$LINTFLAGS%g
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00007243s%@LDCOMBINE@%$LDCOMBINE%g
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007244s%@JPEGLIB@%$JPEGLIB%g
Patrik Stridvallea584721998-11-01 16:22:07 +00007245s%@XLIB@%$XLIB%g
Patrik Stridvall2941a212000-04-25 20:34:22 +00007246s%@XFILES@%$XFILES%g
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007247s%@OPENGLFILES@%$OPENGLFILES%g
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007248s%@GLU32FILES@%$GLU32FILES%g
Alexandre Julliard48957682001-12-26 23:08:31 +00007249s%@CURSESLIBS@%$CURSESLIBS%g
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007250s%@CUPSLIBS@%$CUPSLIBS%g
Ian Pilcher563598d2001-05-16 20:56:05 +00007251s%@ft_devel@%$ft_devel%g
Marcus Meissnerd28955d2001-05-31 21:35:15 +00007252s%@ft_devel2@%$ft_devel2%g
Ian Pilcher563598d2001-05-16 20:56:05 +00007253s%@FREETYPELIBS@%$FREETYPELIBS%g
7254s%@FREETYPEINCL@%$FREETYPEINCL%g
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00007255s%@DLLFLAGS@%$DLLFLAGS%g
Todd Vierling4b992b01998-12-15 15:26:27 +00007256s%@LDSHARED@%$LDSHARED%g
Alexandre Julliard4354cda2000-11-09 20:27:45 +00007257s%@LDDLLFLAGS@%$LDDLLFLAGS%g
Alexandre Julliard0adad952000-01-26 01:45:58 +00007258s%@LIBEXT@%$LIBEXT%g
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007259s%@LDPATH@%$LDPATH%g
Patrik Stridvall1bb94031999-05-08 15:47:44 +00007260s%@ALLOCA@%$ALLOCA%g
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00007261s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007262/@MAKE_RULES@/r $MAKE_RULES
7263s%@MAKE_RULES@%%g
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00007264/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7265s%@MAKE_DLL_RULES@%%g
Alexandre Julliard626f4252000-11-10 23:35:20 +00007266/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7267s%@MAKE_PROG_RULES@%%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007268
7269CEOF
7270EOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007271
7272cat >> $CONFIG_STATUS <<\EOF
7273
7274# Split the substitutions into bite-sized pieces for seds with
7275# small command number limits, like on Digital OSF/1 and HP-UX.
7276ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7277ac_file=1 # Number of current file.
7278ac_beg=1 # First line for current file.
7279ac_end=$ac_max_sed_cmds # Line after last line for current file.
7280ac_more_lines=:
7281ac_sed_cmds=""
7282while $ac_more_lines; do
7283 if test $ac_beg -gt 1; then
7284 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7285 else
7286 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7287 fi
7288 if test ! -s conftest.s$ac_file; then
7289 ac_more_lines=false
7290 rm -f conftest.s$ac_file
7291 else
7292 if test -z "$ac_sed_cmds"; then
7293 ac_sed_cmds="sed -f conftest.s$ac_file"
7294 else
7295 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7296 fi
7297 ac_file=`expr $ac_file + 1`
7298 ac_beg=$ac_end
7299 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7300 fi
7301done
7302if test -z "$ac_sed_cmds"; then
7303 ac_sed_cmds=cat
7304fi
7305EOF
7306
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007307cat >> $CONFIG_STATUS <<EOF
7308
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007309CONFIG_FILES=\${CONFIG_FILES-"Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00007310dlls/Makedll.rules
7311programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007312Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00007313console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007314controls/Makefile
7315debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007316dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00007317dlls/advapi32/Makefile
Hidenori Takeshima1c53a7f2001-11-06 00:41:05 +00007318dlls/avicap32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00007319dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00007320dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00007321dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007322dlls/crtdll/Makefile
7323dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007324dlls/ddraw/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007325dlls/devenum/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007326dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007327dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00007328dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007329dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007330dlls/gdi/Makefile
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007331dlls/glu32/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00007332dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007333dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007334dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00007335dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007336dlls/lzexpand/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007337dlls/mapi32/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00007338dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007339dlls/msacm/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007340dlls/msdmo/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007341dlls/msimg32/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007342dlls/msnet32/Makefile
Hidenori Takeshima1c53a7f2001-11-06 00:41:05 +00007343dlls/msrle32/Makefile
Jon Griffiths1db20bf2001-01-10 23:59:25 +00007344dlls/msvcrt/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007345dlls/msvideo/Makefile
Mike McCormack2e40b962001-11-06 17:52:36 +00007346dlls/netapi32/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00007347dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00007348dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007349dlls/ole32/Makefile
7350dlls/oleaut32/Makefile
7351dlls/olecli/Makefile
7352dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00007353dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007354dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007355dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007356dlls/psapi/Makefile
Hidenori Takeshimab4be9982001-10-23 20:35:23 +00007357dlls/qcap/Makefile
Hidenori Takeshimab7d4b4e2001-07-02 18:57:22 +00007358dlls/quartz/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00007359dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00007360dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00007361dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00007362dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00007363dlls/setupapi/Makefile
John R. Sheetsbc80a3b2001-01-11 22:32:44 +00007364dlls/shdocvw/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007365dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007366dlls/shfolder/Makefile
7367dlls/shlwapi/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007368dlls/sti/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00007369dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007370dlls/ttydrv/Makefile
Hidenori Takeshima1a8b3392001-09-14 21:36:30 +00007371dlls/url/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007372dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007373dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00007374dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007375dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007376dlls/winaspi/Makefile
Ove Kaavene5557b32000-12-26 00:22:45 +00007377dlls/winedos/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00007378dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007379dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007380dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00007381dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007382dlls/winmm/mcianim/Makefile
7383dlls/winmm/mciavi/Makefile
7384dlls/winmm/mcicda/Makefile
7385dlls/winmm/mciseq/Makefile
7386dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00007387dlls/winmm/midimap/Makefile
7388dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007389dlls/winmm/wineoss/Makefile
Hidenori Takeshima9c672132000-12-14 21:56:18 +00007390dlls/winnls/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00007391dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00007392dlls/winspool/Makefile
Rein Klazes2a4c68b2001-04-16 19:36:12 +00007393dlls/wintrust/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007394dlls/wow32/Makefile
7395dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007396dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00007397documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00007398documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00007399documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007400files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007401graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00007402graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00007403graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007404graphics/win16drv/Makefile
7405graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007406if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00007407include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007408library/Makefile
7409libtest/Makefile
7410loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00007411loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007412loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007413memory/Makefile
7414misc/Makefile
7415miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007416msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007417objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007418ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007419programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007420programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007421programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00007422programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007423programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007424programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007425programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007426programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00007427programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007428programs/regtest/Makefile
7429programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007430programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00007431programs/wcmd/Makefile
Eric Pouech0b83d4c2001-11-23 23:04:58 +00007432programs/wineconsole/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00007433programs/winemine/Makefile
Alexandre Julliardfc684342001-03-21 21:41:27 +00007434programs/winetest/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00007435programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007436programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007437relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007438scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00007439server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007440tools/Makefile
Patrik Stridvall647ac512001-07-30 20:21:34 +00007441tools/winapi/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00007442tools/winebuild/Makefile
Eric Pouechd786a122001-09-07 16:04:38 +00007443tools/winedump/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00007444tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00007445tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007446tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00007447tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00007448unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007449win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00007450windows/Makefile
7451windows/x11drv/Makefile "}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007452EOF
7453cat >> $CONFIG_STATUS <<\EOF
7454for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007456 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007457 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007458 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7459 *) ac_file_in="${ac_file}.in" ;;
7460 esac
7461
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007462 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007463
7464 # Remove last slash and all that follows it. Not all systems have dirname.
7465 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7466 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7467 # The file is in a subdirectory.
7468 test ! -d "$ac_dir" && mkdir "$ac_dir"
7469 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7470 # A "../" for each directory in $ac_dir_suffix.
7471 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7472 else
7473 ac_dir_suffix= ac_dots=
7474 fi
7475
7476 case "$ac_given_srcdir" in
7477 .) srcdir=.
7478 if test -z "$ac_dots"; then top_srcdir=.
7479 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7480 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7481 *) # Relative path.
7482 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7483 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7484 esac
7485
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007486 case "$ac_given_INSTALL" in
7487 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7488 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7489 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007490
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007491 echo creating "$ac_file"
7492 rm -f "$ac_file"
7493 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7494 case "$ac_file" in
7495 *Makefile*) ac_comsub="1i\\
7496# $configure_input" ;;
7497 *) ac_comsub= ;;
7498 esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007499
7500 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007501 sed -e "$ac_comsub
7502s%@configure_input@%$configure_input%g
7503s%@srcdir@%$srcdir%g
7504s%@top_srcdir@%$top_srcdir%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007505s%@INSTALL@%$INSTALL%g
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007506" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007507fi; done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007508rm -f conftest.s*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007509
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007510# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7511# NAME is the cpp macro being defined and VALUE is the value it is being given.
7512#
7513# ac_d sets the value in "#define NAME VALUE" lines.
7514ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7515ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7516ac_dC='\3'
7517ac_dD='%g'
7518# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7519ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7520ac_uB='\([ ]\)%\1#\2define\3'
7521ac_uC=' '
7522ac_uD='\4%g'
7523# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7524ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7525ac_eB='$%\1#\2define\3'
7526ac_eC=' '
7527ac_eD='%g'
7528
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007529if test "${CONFIG_HEADERS+set}" != set; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007530EOF
7531cat >> $CONFIG_STATUS <<EOF
7532 CONFIG_HEADERS="include/config.h"
7533EOF
7534cat >> $CONFIG_STATUS <<\EOF
7535fi
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007536for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007537 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007538 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007539 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007540 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7541 *) ac_file_in="${ac_file}.in" ;;
7542 esac
7543
7544 echo creating $ac_file
7545
7546 rm -f conftest.frag conftest.in conftest.out
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007547 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7548 cat $ac_file_inputs > conftest.in
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007549
7550EOF
7551
7552# Transform confdefs.h into a sed script conftest.vals that substitutes
7553# the proper values into config.h.in to produce config.h. And first:
7554# Protect against being on the right side of a sed subst in config.status.
7555# Protect against being in an unquoted here document in config.status.
7556rm -f conftest.vals
7557cat > conftest.hdr <<\EOF
7558s/[\\&%]/\\&/g
7559s%[\\$`]%\\&%g
7560s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7561s%ac_d%ac_u%gp
7562s%ac_u%ac_e%gp
7563EOF
7564sed -n -f conftest.hdr confdefs.h > conftest.vals
7565rm -f conftest.hdr
7566
7567# This sed command replaces #undef with comments. This is necessary, for
7568# example, in the case of _POSIX_SOURCE, which is predefined and required
7569# on some systems where configure will not decide to define it.
7570cat >> conftest.vals <<\EOF
7571s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7572EOF
7573
7574# Break up conftest.vals because some shells have a limit on
7575# the size of here documents, and old seds have small limits too.
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007576
7577rm -f conftest.tail
7578while :
7579do
7580 ac_lines=`grep -c . conftest.vals`
7581 # grep -c gives empty output for an empty file on some AIX systems.
7582 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7583 # Write a limited-size here document to conftest.frag.
7584 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7585 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7586 echo 'CEOF
7587 sed -f conftest.frag conftest.in > conftest.out
7588 rm -f conftest.in
7589 mv conftest.out conftest.in
7590' >> $CONFIG_STATUS
7591 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7592 rm -f conftest.vals
7593 mv conftest.tail conftest.vals
7594done
7595rm -f conftest.vals
7596
7597cat >> $CONFIG_STATUS <<\EOF
7598 rm -f conftest.frag conftest.h
7599 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7600 cat conftest.in >> conftest.h
7601 rm -f conftest.in
7602 if cmp -s $ac_file conftest.h 2>/dev/null; then
7603 echo "$ac_file is unchanged"
7604 rm -f conftest.h
7605 else
7606 # Remove last slash and all that follows it. Not all systems have dirname.
7607 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7609 # The file is in a subdirectory.
7610 test ! -d "$ac_dir" && mkdir "$ac_dir"
7611 fi
7612 rm -f $ac_file
7613 mv conftest.h $ac_file
7614 fi
7615fi; done
7616
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007617EOF
7618cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007619
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007620
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007621EOF
7622cat >> $CONFIG_STATUS <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007623
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007624extra_subdirs="\
7625dlls/ddraw/d3ddevice \
7626dlls/ddraw/dclipper \
7627dlls/ddraw/ddraw \
7628dlls/ddraw/direct3d \
7629dlls/ddraw/dpalette \
7630dlls/ddraw/dsurface \
Lionel Ulmer6301e942000-11-05 20:25:02 +00007631dlls/dinput/joystick \
7632dlls/dinput/keyboard \
7633dlls/dinput/mouse \
Alexandre Julliardd1d09052000-07-30 13:39:52 +00007634dlls/kernel/messages \
Dmitry Timoshkov3b725f62001-06-29 19:20:18 +00007635dlls/user/dde \
Alexandre Julliard2affae52000-10-23 21:32:05 +00007636dlls/user/resources \
Ian Pilcher55d2e572001-05-29 22:06:10 +00007637dlls/wineps/data \
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007638"
7639for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7640
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007641exit 0
7642EOF
7643chmod +x $CONFIG_STATUS
7644rm -fr confdefs* $ac_clean_files
7645test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7646
7647
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007648if test "$have_x" = "no"
7649then
7650 echo
7651 echo "*** Warning: X development files not found. Wine will be built without"
7652 echo "*** X support, which currently does not work, and would probably not be"
7653 echo "*** what you want anyway. You will need to install devel packages of"
7654 echo "*** Xlib/Xfree86 and Xpm at the very least."
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007655elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7656then
7657 echo
7658 echo "*** Warning: Xpm development files not found. Wine will be built without"
7659 echo "*** Xpm support, which currently does not work. You will need to install"
7660 echo "*** devel packages of Xpm."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007661fi
7662
Alexandre Julliard638f1691999-01-17 16:32:32 +00007663if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7664then
7665 echo
7666 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7667 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00007668fi
7669
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007670if test "$wine_cv_libc_reentrant" = "no"
7671then
7672 echo
7673 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7674 echo "*** thread support. Consider upgrading libc to a more recent"
7675 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007676fi
7677
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007678if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007679then
7680 echo
7681 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007682 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7683fi
7684
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007685if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007686then
7687 echo
7688 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007689 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
Andreas Mohr18a9d742001-01-17 21:52:42 +00007690 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007691 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +00007692fi
7693
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007694if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007695then
7696 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007697 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007698 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7699 echo "*** support before reporting bugs."
7700fi
7701
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007702if test "$wine_cv_warn_cups_h" = "yes"
7703then
7704 echo
7705 echo "*** Note: You have cups runtime libraries, but no development"
7706 echo "*** libraries. Install the cups-devel package or whichever package"
7707 echo "*** contains cups.h to enable CUPS support in WINE."
7708fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007709
Ian Pilcher563598d2001-05-16 20:56:05 +00007710if test "$wine_cv_msg_freetype" = "yes"
7711then
7712 echo
7713 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7714 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7715 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7716 echo "*** enable Wine to use TrueType fonts."
7717fi
7718
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007719echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00007720echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007721echo
7722