blob: c852304c10d3e4e015469eaaf04b41dcecd810ef [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
604 cat >> confdefs.h <<\EOF
605#define NO_DEBUG_MSGS 1
606EOF
607
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000608fi
609
610if test "$TRACE_MSGS" = "no" -o "$DEBUG_MSGS" = "no"
611then
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000612 cat >> confdefs.h <<\EOF
613#define NO_TRACE_MSGS 1
614EOF
615
Alexandre Julliardf90efa91998-06-14 15:24:15 +0000616fi
617
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000618
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000619echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000620echo "configure:621: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000621set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000622if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
624else
625 cat > conftestmake <<\EOF
626all:
627 @echo 'ac_maketemp="${MAKE}"'
628EOF
629# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
630eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
631if test -n "$ac_maketemp"; then
632 eval ac_cv_prog_make_${ac_make}_set=yes
633else
634 eval ac_cv_prog_make_${ac_make}_set=no
635fi
636rm -f conftestmake
637fi
638if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
639 echo "$ac_t""yes" 1>&6
640 SET_MAKE=
641else
642 echo "$ac_t""no" 1>&6
643 SET_MAKE="MAKE=${MAKE-make}"
644fi
645
646# Extract the first word of "gcc", so it can be a program name with args.
647set dummy gcc; ac_word=$2
648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000649echo "configure:650: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000650if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
652else
653 if test -n "$CC"; then
654 ac_cv_prog_CC="$CC" # Let the user override the test.
655else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
657 ac_dummy="$PATH"
658 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
661 ac_cv_prog_CC="gcc"
662 break
663 fi
664 done
665 IFS="$ac_save_ifs"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000666fi
667fi
668CC="$ac_cv_prog_CC"
669if test -n "$CC"; then
670 echo "$ac_t""$CC" 1>&6
671else
672 echo "$ac_t""no" 1>&6
673fi
674
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000675if test -z "$CC"; then
676 # Extract the first word of "cc", so it can be a program name with args.
677set dummy cc; ac_word=$2
678echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000679echo "configure:680: checking for $ac_word" >&5
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000680if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
682else
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
685else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000687 ac_prog_rejected=no
Eric Pouech18ad24a2000-01-16 22:16:33 +0000688 ac_dummy="$PATH"
689 for ac_dir in $ac_dummy; do
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
693 ac_prog_rejected=yes
694 continue
695 fi
696 ac_cv_prog_CC="cc"
697 break
698 fi
699 done
700 IFS="$ac_save_ifs"
701if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy $ac_cv_prog_CC
704 shift
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
709 shift
710 set dummy "$ac_dir/$ac_word" "$@"
711 shift
712 ac_cv_prog_CC="$@"
713 fi
714fi
715fi
716fi
717CC="$ac_cv_prog_CC"
718if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
720else
721 echo "$ac_t""no" 1>&6
722fi
723
Eric Pouech18ad24a2000-01-16 22:16:33 +0000724 if test -z "$CC"; then
725 case "`uname -s`" in
726 *win32* | *WIN32*)
727 # Extract the first word of "cl", so it can be a program name with args.
728set dummy cl; ac_word=$2
729echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000730echo "configure:731: checking for $ac_word" >&5
Eric Pouech18ad24a2000-01-16 22:16:33 +0000731if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
733else
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
736else
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
738 ac_dummy="$PATH"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
742 ac_cv_prog_CC="cl"
743 break
744 fi
745 done
746 IFS="$ac_save_ifs"
747fi
748fi
749CC="$ac_cv_prog_CC"
750if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
752else
753 echo "$ac_t""no" 1>&6
754fi
755 ;;
756 esac
757 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
759fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000760
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000761echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000762echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000763
764ac_ext=c
765# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766ac_cpp='$CPP $CPPFLAGS'
767ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Eric Pouech18ad24a2000-01-16 22:16:33 +0000768ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000769cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000770
Eric Pouech18ad24a2000-01-16 22:16:33 +0000771cat > conftest.$ac_ext << EOF
772
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000773#line 774 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000774#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000775
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000776main(){return(0);}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000777EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000778if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000779 ac_cv_prog_cc_works=yes
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000780 # If we can't run a trivial program, we are probably using a cross compiler.
781 if (./conftest; exit) 2>/dev/null; then
782 ac_cv_prog_cc_cross=no
783 else
784 ac_cv_prog_cc_cross=yes
785 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000786else
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000789 ac_cv_prog_cc_works=no
790fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000791rm -fr conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000792ac_ext=c
793# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794ac_cpp='$CPP $CPPFLAGS'
795ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000798
799echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800if test $ac_cv_prog_cc_works = no; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000802fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000803echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000804echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000805echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806cross_compiling=$ac_cv_prog_cc_cross
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000807
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000808echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000809echo "configure:810: checking whether we are using GNU C" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000810if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
812else
813 cat > conftest.c <<EOF
814#ifdef __GNUC__
815 yes;
816#endif
817EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000818if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000819 ac_cv_prog_gcc=yes
820else
821 ac_cv_prog_gcc=no
822fi
823fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000824
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000825echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000826
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000827if test $ac_cv_prog_gcc = yes; then
828 GCC=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +0000829else
830 GCC=
831fi
832
833ac_test_CFLAGS="${CFLAGS+set}"
834ac_save_CFLAGS="$CFLAGS"
835CFLAGS=
836echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000837echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000838if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000839 echo $ac_n "(cached) $ac_c" 1>&6
840else
841 echo 'void f(){}' > conftest.c
842if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000843 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000844else
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000845 ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000846fi
847rm -f conftest*
848
849fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000850
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000851echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Eric Pouech18ad24a2000-01-16 22:16:33 +0000852if test "$ac_test_CFLAGS" = set; then
853 CFLAGS="$ac_save_CFLAGS"
854elif test $ac_cv_prog_cc_g = yes; then
855 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000856 CFLAGS="-g -O2"
857 else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000858 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000859 fi
860else
Eric Pouech18ad24a2000-01-16 22:16:33 +0000861 if test "$GCC" = yes; then
862 CFLAGS="-O2"
863 else
864 CFLAGS=
865 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000866fi
867
868echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000869echo "configure:870: checking how to run the C preprocessor" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000870# On Suns, sometimes $CPP names a directory.
871if test -n "$CPP" && test -d "$CPP"; then
872 CPP=
873fi
874if test -z "$CPP"; then
875if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877else
878 # This must be in double quotes, not single quotes, because CPP may get
879 # substituted into the Makefile and "${CC-cc}" will confuse make.
880 CPP="${CC-cc} -E"
881 # On the NeXT, cc -E runs the code through the compiler's parser,
882 # not just through cpp.
883 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000884#line 885 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000885#include "confdefs.h"
886#include <assert.h>
887Syntax Error
888EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000889ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000890{ (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000891ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000892if test -z "$ac_err"; then
893 :
894else
895 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000896 echo "configure: failed program was:" >&5
897 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000898 rm -rf conftest*
899 CPP="${CC-cc} -E -traditional-cpp"
900 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000901#line 902 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000902#include "confdefs.h"
903#include <assert.h>
904Syntax Error
905EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000906ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000907{ (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000908ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909if test -z "$ac_err"; then
910 :
911else
912 echo "$ac_err" >&5
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
915 rm -rf conftest*
916 CPP="${CC-cc} -nologo -E"
917 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000918#line 919 "configure"
Eric Pouech18ad24a2000-01-16 22:16:33 +0000919#include "confdefs.h"
920#include <assert.h>
921Syntax Error
922EOF
923ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000924{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +0000925ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000926if test -z "$ac_err"; then
927 :
928else
929 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000932 rm -rf conftest*
933 CPP=/lib/cpp
934fi
935rm -f conftest*
936fi
937rm -f conftest*
Eric Pouech18ad24a2000-01-16 22:16:33 +0000938fi
939rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000940 ac_cv_prog_CPP="$CPP"
941fi
942 CPP="$ac_cv_prog_CPP"
943else
944 ac_cv_prog_CPP="$CPP"
945fi
946echo "$ac_t""$CPP" 1>&6
947
948# If we find X, set shell vars x_includes and x_libraries to the
949# paths, otherwise set no_x=yes.
950# Uses ac_ vars as temps to allow command line to override cache and checks.
951# --without-x overrides everything else, but does not touch the cache.
952echo $ac_n "checking for X""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +0000953echo "configure:954: checking for X" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000954
955# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000956if test "${with_x+set}" = set; then
957 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000958 :
959fi
960
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000961# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000962if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000963 # The user explicitly disabled X.
964 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000965else
966 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000967 # Both variables are already set.
968 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000969 else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000970if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000971 echo $ac_n "(cached) $ac_c" 1>&6
972else
973 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000974ac_x_includes=NO ac_x_libraries=NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000975rm -fr conftestdir
976if mkdir conftestdir; then
977 cd conftestdir
978 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
979 cat > Imakefile <<'EOF'
980acfindx:
981 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
982EOF
983 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000985 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000986 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
987 for ac_extension in a so sl; do
988 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
989 test -f $ac_im_libdir/libX11.$ac_extension; then
990 ac_im_usrlibdir=$ac_im_libdir; break
991 fi
992 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +0000993 # Screen out bogus values from the imake configuration. They are
994 # bogus both because they are the default anyway, and because
995 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000996 case "$ac_im_incroot" in
997 /usr/include) ;;
998 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
999 esac
1000 case "$ac_im_usrlibdir" in
1001 /usr/lib | /lib) ;;
1002 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1003 esac
1004 fi
1005 cd ..
1006 rm -fr conftestdir
1007fi
1008
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001009if test "$ac_x_includes" = NO; then
1010 # Guess where to find include files, by looking for this one X11 .h file.
1011 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1012
1013 # First, try using that file with no special directory specified.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001014cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001015#line 1016 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001016#include "confdefs.h"
1017#include <$x_direct_test_include>
1018EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001019ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001020{ (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00001021ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001022if test -z "$ac_err"; then
1023 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001024 # We can compile using X headers with no special include directory.
1025ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001026else
1027 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001030 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001031 # Look for the header file in a standard set of common directories.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001032# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001033 for ac_dir in \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001034 /usr/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001035 /usr/X11R6/include \
1036 /usr/X11R5/include \
1037 /usr/X11R4/include \
1038 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001039 /usr/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001040 /usr/include/X11R6 \
1041 /usr/include/X11R5 \
1042 /usr/include/X11R4 \
1043 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001044 /usr/local/X11/include \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001045 /usr/local/X11R6/include \
1046 /usr/local/X11R5/include \
1047 /usr/local/X11R4/include \
1048 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001049 /usr/local/include/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001050 /usr/local/include/X11R6 \
1051 /usr/local/include/X11R5 \
1052 /usr/local/include/X11R4 \
1053 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001054 /usr/X386/include \
1055 /usr/x386/include \
1056 /usr/XFree86/include/X11 \
1057 \
1058 /usr/include \
1059 /usr/local/include \
1060 /usr/unsupported/include \
1061 /usr/athena/include \
1062 /usr/local/x11r5/include \
1063 /usr/lpp/Xamples/include \
1064 \
1065 /usr/openwin/include \
1066 /usr/openwin/share/include \
1067 ; \
1068 do
1069 if test -r "$ac_dir/$x_direct_test_include"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001070 ac_x_includes=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001071 break
1072 fi
1073 done
1074fi
1075rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001076fi # $ac_x_includes = NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001077
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001078if test "$ac_x_libraries" = NO; then
1079 # Check for the libraries.
1080
1081 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1082 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1083
1084 # See if we find them without any special options.
1085 # Don't add to $LIBS permanently.
1086 ac_save_LIBS="$LIBS"
1087 LIBS="-l$x_direct_test_library $LIBS"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001088cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001089#line 1090 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001090#include "confdefs.h"
1091
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001092int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001093${x_direct_test_function}()
1094; return 0; }
1095EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001096if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001097 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001098 LIBS="$ac_save_LIBS"
1099# We can link X programs with no special library path.
1100ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001101else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001102 echo "configure: failed program was:" >&5
1103 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001104 rm -rf conftest*
1105 LIBS="$ac_save_LIBS"
1106# First see if replacing the include by lib works.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001107# Check X11 before X11Rn because it is often a symlink to the current release.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001108for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001109 /usr/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001110 /usr/X11R6/lib \
1111 /usr/X11R5/lib \
1112 /usr/X11R4/lib \
1113 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001114 /usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001115 /usr/lib/X11R6 \
1116 /usr/lib/X11R5 \
1117 /usr/lib/X11R4 \
1118 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001119 /usr/local/X11/lib \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001120 /usr/local/X11R6/lib \
1121 /usr/local/X11R5/lib \
1122 /usr/local/X11R4/lib \
1123 \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001124 /usr/local/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001125 /usr/local/lib/X11R6 \
1126 /usr/local/lib/X11R5 \
1127 /usr/local/lib/X11R4 \
1128 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001129 /usr/X386/lib \
1130 /usr/x386/lib \
1131 /usr/XFree86/lib/X11 \
1132 \
1133 /usr/lib \
1134 /usr/local/lib \
1135 /usr/unsupported/lib \
1136 /usr/athena/lib \
1137 /usr/local/x11r5/lib \
1138 /usr/lpp/Xamples/lib \
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001139 /lib/usr/lib/X11 \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001140 \
1141 /usr/openwin/lib \
1142 /usr/openwin/share/lib \
1143 ; \
1144do
1145 for ac_extension in a so sl; do
1146 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001147 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001148 break 2
1149 fi
1150 done
1151done
1152fi
1153rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001154fi # $ac_x_libraries = NO
1155
1156if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1157 # Didn't find X anywhere. Cache the known absence of X.
1158 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001159else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001160 # Record where we found X for the cache.
1161 ac_cv_have_x="have_x=yes \
1162 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001163fi
1164fi
1165 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001166 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001167fi # $with_x != no
1168
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001169if test "$have_x" != yes; then
1170 echo "$ac_t""$have_x" 1>&6
1171 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001172else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001173 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001174 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1175 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001176 # Update the cache value to reflect the command line values.
1177 ac_cv_have_x="have_x=yes \
1178 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001179 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1180fi
1181
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001182if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001183 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001184 cat >> confdefs.h <<\EOF
1185#define X_DISPLAY_MISSING 1
1186EOF
1187
1188 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001189else
1190 if test -n "$x_includes"; then
1191 X_CFLAGS="$X_CFLAGS -I$x_includes"
1192 fi
1193
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001194 # It would also be nice to do this for all -L options, not just this one.
1195 if test -n "$x_libraries"; then
1196 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001197 # For Solaris; some versions of Sun CC require a space after -R and
1198 # others require no space. Words are not sufficient . . . .
1199 case "`(uname -sr) 2>/dev/null`" in
1200 "SunOS 5"*)
1201 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001202echo "configure:1203: checking whether -R must be followed by a space" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001203 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1204 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001205#line 1206 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001206#include "confdefs.h"
1207
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001208int main() {
1209
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001210; return 0; }
1211EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001212if { (eval echo configure:1213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001213 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001214 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001215else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001216 echo "configure: failed program was:" >&5
1217 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001218 rm -rf conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001219 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001220fi
1221rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001222 if test $ac_R_nospace = yes; then
1223 echo "$ac_t""no" 1>&6
1224 X_LIBS="$X_LIBS -R$x_libraries"
1225 else
1226 LIBS="$ac_xsave_LIBS -R $x_libraries"
1227 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001228#line 1229 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001229#include "confdefs.h"
1230
1231int main() {
1232
1233; return 0; }
1234EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001235if { (eval echo configure:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001236 rm -rf conftest*
1237 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001238else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001239 echo "configure: failed program was:" >&5
1240 cat conftest.$ac_ext >&5
1241 rm -rf conftest*
1242 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001243fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001244rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001245 if test $ac_R_space = yes; then
1246 echo "$ac_t""yes" 1>&6
1247 X_LIBS="$X_LIBS -R $x_libraries"
1248 else
1249 echo "$ac_t""neither works" 1>&6
1250 fi
1251 fi
1252 LIBS="$ac_xsave_LIBS"
1253 esac
1254 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001255
1256 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001257 # Do this before checking for the system-independent R6 libraries
1258 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001259
1260 if test "$ISC" = yes; then
1261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1262 else
1263 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1264 # libraries were built with DECnet support. And karl@cs.umb.edu says
1265 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001266 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001267echo "configure:1268: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001268ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001269if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001270 echo $ac_n "(cached) $ac_c" 1>&6
1271else
1272 ac_save_LIBS="$LIBS"
1273LIBS="-ldnet $LIBS"
1274cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001275#line 1276 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001276#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001277/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001278/* We use char because int might match the return type of a gcc2
1279 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001280char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001281
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001282int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001283dnet_ntoa()
1284; return 0; }
1285EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001286if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001287 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001288 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001289else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001292 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001293 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001294fi
1295rm -f conftest*
1296LIBS="$ac_save_LIBS"
1297
1298fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001299if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001300 echo "$ac_t""yes" 1>&6
1301 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1302else
1303 echo "$ac_t""no" 1>&6
1304fi
1305
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001306 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001307 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001308echo "configure:1309: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001309ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001310if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001311 echo $ac_n "(cached) $ac_c" 1>&6
1312else
1313 ac_save_LIBS="$LIBS"
1314LIBS="-ldnet_stub $LIBS"
1315cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001316#line 1317 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001317#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001318/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001319/* We use char because int might match the return type of a gcc2
1320 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001321char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001322
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001323int main() {
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001324dnet_ntoa()
1325; return 0; }
1326EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001327if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001328 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001329 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001330else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001333 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001334 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001335fi
1336rm -f conftest*
1337LIBS="$ac_save_LIBS"
1338
1339fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001340if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001341 echo "$ac_t""yes" 1>&6
1342 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1343else
1344 echo "$ac_t""no" 1>&6
1345fi
1346
1347 fi
1348
1349 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1350 # to get the SysV transport functions.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001351 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1352 # needs -lnsl.
1353 # The nsl library prevents programs from opening the X display
1354 # on Irix 5.2, according to dickey@clark.net.
1355 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001356echo "configure:1357: checking for gethostbyname" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001357if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1359else
1360 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001361#line 1362 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001362#include "confdefs.h"
1363/* System header to define __stub macros and hopefully few prototypes,
1364 which can conflict with char gethostbyname(); below. */
1365#include <assert.h>
1366/* Override any gcc2 internal prototype to avoid an error. */
1367/* We use char because int might match the return type of a gcc2
1368 builtin and then its argument prototype would still apply. */
1369char gethostbyname();
1370
1371int main() {
1372
1373/* The GNU C library defines this for functions which it implements
1374 to always fail with ENOSYS. Some functions are actually named
1375 something starting with __ and the normal name is an alias. */
1376#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1377choke me
1378#else
1379gethostbyname();
1380#endif
1381
1382; return 0; }
1383EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001384if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001385 rm -rf conftest*
1386 eval "ac_cv_func_gethostbyname=yes"
1387else
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1390 rm -rf conftest*
1391 eval "ac_cv_func_gethostbyname=no"
1392fi
1393rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001394fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001395
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001396if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1398 :
1399else
1400 echo "$ac_t""no" 1>&6
1401fi
1402
1403 if test $ac_cv_func_gethostbyname = no; then
1404 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001405echo "configure:1406: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001406ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001407if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001408 echo $ac_n "(cached) $ac_c" 1>&6
1409else
1410 ac_save_LIBS="$LIBS"
1411LIBS="-lnsl $LIBS"
1412cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001413#line 1414 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001414#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001415/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001416/* We use char because int might match the return type of a gcc2
1417 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001418char gethostbyname();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001419
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001420int main() {
1421gethostbyname()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001422; return 0; }
1423EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001424if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001425 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001426 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001427else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001428 echo "configure: failed program was:" >&5
1429 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001430 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001431 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001432fi
1433rm -f conftest*
1434LIBS="$ac_save_LIBS"
1435
1436fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001437if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001438 echo "$ac_t""yes" 1>&6
1439 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1440else
1441 echo "$ac_t""no" 1>&6
1442fi
1443
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001444 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001445
1446 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001447 # socket/setsockopt and other routines are undefined under SCO ODT
1448 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1449 # on later versions), says simon@lia.di.epfl.ch: it contains
1450 # gethostby* variants that don't use the nameserver (or something).
1451 # -lsocket must be given before -lnsl if both are needed.
1452 # We assume that if connect needs -lnsl, so does gethostbyname.
1453 echo $ac_n "checking for connect""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001454echo "configure:1455: checking for connect" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001455if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457else
1458 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001459#line 1460 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001460#include "confdefs.h"
1461/* System header to define __stub macros and hopefully few prototypes,
1462 which can conflict with char connect(); below. */
1463#include <assert.h>
1464/* Override any gcc2 internal prototype to avoid an error. */
1465/* We use char because int might match the return type of a gcc2
1466 builtin and then its argument prototype would still apply. */
1467char connect();
1468
1469int main() {
1470
1471/* The GNU C library defines this for functions which it implements
1472 to always fail with ENOSYS. Some functions are actually named
1473 something starting with __ and the normal name is an alias. */
1474#if defined (__stub_connect) || defined (__stub___connect)
1475choke me
1476#else
1477connect();
1478#endif
1479
1480; return 0; }
1481EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001482if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001483 rm -rf conftest*
1484 eval "ac_cv_func_connect=yes"
1485else
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1488 rm -rf conftest*
1489 eval "ac_cv_func_connect=no"
1490fi
1491rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001492fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001493
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001494if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1495 echo "$ac_t""yes" 1>&6
1496 :
1497else
1498 echo "$ac_t""no" 1>&6
1499fi
1500
1501 if test $ac_cv_func_connect = no; then
1502 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001503echo "configure:1504: checking for connect in -lsocket" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001504ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001505if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001506 echo $ac_n "(cached) $ac_c" 1>&6
1507else
1508 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001509LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001510cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001511#line 1512 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001512#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001513/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001514/* We use char because int might match the return type of a gcc2
1515 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001516char connect();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001517
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001518int main() {
1519connect()
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001520; return 0; }
1521EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001522if { (eval echo configure:1523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001523 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001524 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001525else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001528 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001529 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001530fi
1531rm -f conftest*
1532LIBS="$ac_save_LIBS"
1533
1534fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001535if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001536 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001537 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001538else
1539 echo "$ac_t""no" 1>&6
1540fi
1541
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001542 fi
1543
1544 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1545 echo $ac_n "checking for remove""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001546echo "configure:1547: checking for remove" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001547if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1549else
1550 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001551#line 1552 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001552#include "confdefs.h"
1553/* System header to define __stub macros and hopefully few prototypes,
1554 which can conflict with char remove(); below. */
1555#include <assert.h>
1556/* Override any gcc2 internal prototype to avoid an error. */
1557/* We use char because int might match the return type of a gcc2
1558 builtin and then its argument prototype would still apply. */
1559char remove();
1560
1561int main() {
1562
1563/* The GNU C library defines this for functions which it implements
1564 to always fail with ENOSYS. Some functions are actually named
1565 something starting with __ and the normal name is an alias. */
1566#if defined (__stub_remove) || defined (__stub___remove)
1567choke me
1568#else
1569remove();
1570#endif
1571
1572; return 0; }
1573EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001574if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001575 rm -rf conftest*
1576 eval "ac_cv_func_remove=yes"
1577else
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1580 rm -rf conftest*
1581 eval "ac_cv_func_remove=no"
1582fi
1583rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001584fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001585
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001586if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1588 :
1589else
1590 echo "$ac_t""no" 1>&6
1591fi
1592
1593 if test $ac_cv_func_remove = no; then
1594 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001595echo "configure:1596: checking for remove in -lposix" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001596ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001597if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1599else
1600 ac_save_LIBS="$LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001601LIBS="-lposix $LIBS"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001602cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001603#line 1604 "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001604#include "confdefs.h"
1605/* Override any gcc2 internal prototype to avoid an error. */
1606/* We use char because int might match the return type of a gcc2
1607 builtin and then its argument prototype would still apply. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001608char remove();
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001609
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001610int main() {
1611remove()
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001612; return 0; }
1613EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001614if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001615 rm -rf conftest*
1616 eval "ac_cv_lib_$ac_lib_var=yes"
1617else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001620 rm -rf conftest*
1621 eval "ac_cv_lib_$ac_lib_var=no"
1622fi
1623rm -f conftest*
1624LIBS="$ac_save_LIBS"
1625
1626fi
1627if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1628 echo "$ac_t""yes" 1>&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001629 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001630else
1631 echo "$ac_t""no" 1>&6
1632fi
1633
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001634 fi
1635
1636 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1637 echo $ac_n "checking for shmat""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001638echo "configure:1639: checking for shmat" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001639if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1641else
1642 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001643#line 1644 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001644#include "confdefs.h"
1645/* System header to define __stub macros and hopefully few prototypes,
1646 which can conflict with char shmat(); below. */
1647#include <assert.h>
1648/* Override any gcc2 internal prototype to avoid an error. */
1649/* We use char because int might match the return type of a gcc2
1650 builtin and then its argument prototype would still apply. */
1651char shmat();
1652
1653int main() {
1654
1655/* The GNU C library defines this for functions which it implements
1656 to always fail with ENOSYS. Some functions are actually named
1657 something starting with __ and the normal name is an alias. */
1658#if defined (__stub_shmat) || defined (__stub___shmat)
1659choke me
1660#else
1661shmat();
1662#endif
1663
1664; return 0; }
1665EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001666if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001667 rm -rf conftest*
1668 eval "ac_cv_func_shmat=yes"
1669else
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1672 rm -rf conftest*
1673 eval "ac_cv_func_shmat=no"
1674fi
1675rm -f conftest*
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001676fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001677
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001678if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1679 echo "$ac_t""yes" 1>&6
1680 :
1681else
1682 echo "$ac_t""no" 1>&6
1683fi
1684
1685 if test $ac_cv_func_shmat = no; then
1686 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001687echo "configure:1688: checking for shmat in -lipc" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001688ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1691else
1692 ac_save_LIBS="$LIBS"
1693LIBS="-lipc $LIBS"
1694cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001695#line 1696 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001696#include "confdefs.h"
1697/* Override any gcc2 internal prototype to avoid an error. */
1698/* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1700char shmat();
1701
1702int main() {
1703shmat()
1704; return 0; }
1705EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001706if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001707 rm -rf conftest*
1708 eval "ac_cv_lib_$ac_lib_var=yes"
1709else
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 rm -rf conftest*
1713 eval "ac_cv_lib_$ac_lib_var=no"
1714fi
1715rm -f conftest*
1716LIBS="$ac_save_LIBS"
1717
1718fi
1719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1722else
1723 echo "$ac_t""no" 1>&6
1724fi
1725
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001726 fi
1727 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001728
1729 # Check for libraries that X11R6 Xt/Xaw programs need.
1730 ac_save_LDFLAGS="$LDFLAGS"
1731 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1732 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1733 # check for ICE first), but we must link in the order -lSM -lICE or
1734 # we get undefined symbols. So assume we have SM if we have ICE.
1735 # These have to be linked with before -lX11, unlike the other
1736 # libraries we check for below, so use a different variable.
1737 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1738 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001739echo "configure:1740: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001740ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1741if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743else
1744 ac_save_LIBS="$LIBS"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001745LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001746cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001747#line 1748 "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001748#include "confdefs.h"
1749/* Override any gcc2 internal prototype to avoid an error. */
1750/* We use char because int might match the return type of a gcc2
1751 builtin and then its argument prototype would still apply. */
1752char IceConnectionNumber();
1753
1754int main() {
1755IceConnectionNumber()
1756; return 0; }
1757EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001758if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001759 rm -rf conftest*
1760 eval "ac_cv_lib_$ac_lib_var=yes"
1761else
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1764 rm -rf conftest*
1765 eval "ac_cv_lib_$ac_lib_var=no"
1766fi
1767rm -f conftest*
1768LIBS="$ac_save_LIBS"
1769
1770fi
1771if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1774else
1775 echo "$ac_t""no" 1>&6
1776fi
1777
1778 LDFLAGS="$ac_save_LDFLAGS"
1779
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001780fi
1781
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001782for ac_prog in 'bison -y' byacc
1783do
1784# Extract the first word of "$ac_prog", so it can be a program name with args.
1785set dummy $ac_prog; ac_word=$2
1786echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001787echo "configure:1788: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001788if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790else
1791 if test -n "$YACC"; then
1792 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1793else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1795 ac_dummy="$PATH"
1796 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001797 test -z "$ac_dir" && ac_dir=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_YACC="$ac_prog"
1800 break
1801 fi
1802 done
1803 IFS="$ac_save_ifs"
1804fi
1805fi
1806YACC="$ac_cv_prog_YACC"
1807if test -n "$YACC"; then
1808 echo "$ac_t""$YACC" 1>&6
1809else
1810 echo "$ac_t""no" 1>&6
1811fi
1812
1813test -n "$YACC" && break
1814done
1815test -n "$YACC" || YACC="yacc"
1816
1817# Extract the first word of "flex", so it can be a program name with args.
1818set dummy flex; ac_word=$2
1819echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001820echo "configure:1821: checking for $ac_word" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001821if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1823else
1824 if test -n "$LEX"; then
1825 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1826else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1828 ac_dummy="$PATH"
1829 for ac_dir in $ac_dummy; do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001830 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then
1832 ac_cv_prog_LEX="flex"
1833 break
1834 fi
1835 done
1836 IFS="$ac_save_ifs"
1837 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1838fi
1839fi
1840LEX="$ac_cv_prog_LEX"
1841if test -n "$LEX"; then
1842 echo "$ac_t""$LEX" 1>&6
1843else
1844 echo "$ac_t""no" 1>&6
1845fi
1846
1847if test -z "$LEXLIB"
1848then
1849 case "$LEX" in
1850 flex*) ac_lib=fl ;;
1851 *) ac_lib=l ;;
1852 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001853 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001854echo "configure:1855: checking for yywrap in -l$ac_lib" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001855ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001857 echo $ac_n "(cached) $ac_c" 1>&6
1858else
1859 ac_save_LIBS="$LIBS"
1860LIBS="-l$ac_lib $LIBS"
1861cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001862#line 1863 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001863#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001864/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001865/* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001867char yywrap();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001868
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001869int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001870yywrap()
1871; return 0; }
1872EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001873if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001874 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001875 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001876else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001879 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001880 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001881fi
1882rm -f conftest*
1883LIBS="$ac_save_LIBS"
1884
1885fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001887 echo "$ac_t""yes" 1>&6
1888 LEXLIB="-l$ac_lib"
1889else
1890 echo "$ac_t""no" 1>&6
1891fi
1892
1893fi
1894
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001895for ac_prog in $LEX flex lex
1896do
1897# Extract the first word of "$ac_prog", so it can be a program name with args.
1898set dummy $ac_prog; ac_word=$2
1899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001900echo "configure:1901: checking for $ac_word" >&5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00001901if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1903else
1904 if test -n "$XLEX"; then
1905 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
1906else
1907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1908 ac_dummy="$PATH"
1909 for ac_dir in $ac_dummy; do
1910 test -z "$ac_dir" && ac_dir=.
1911 if test -f $ac_dir/$ac_word; then
1912 ac_cv_prog_XLEX="$ac_prog"
1913 break
1914 fi
1915 done
1916 IFS="$ac_save_ifs"
1917fi
1918fi
1919XLEX="$ac_cv_prog_XLEX"
1920if test -n "$XLEX"; then
1921 echo "$ac_t""$XLEX" 1>&6
1922else
1923 echo "$ac_t""no" 1>&6
1924fi
1925
1926test -n "$XLEX" && break
1927done
1928test -n "$XLEX" || XLEX="none"
1929
1930if test "$XLEX" = "none"
1931then
1932 echo "*** Error: No suitable lex found. ***"
1933 echo " Please install the 'flex' package."
1934 exit 1
1935fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001936# Extract the first word of "ranlib", so it can be a program name with args.
1937set dummy ranlib; ac_word=$2
1938echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001939echo "configure:1940: checking for $ac_word" >&5
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001940if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942else
1943 if test -n "$RANLIB"; then
1944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1945else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1947 ac_dummy="$PATH"
1948 for ac_dir in $ac_dummy; do
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001949 test -z "$ac_dir" && ac_dir=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_prog_RANLIB="ranlib"
1952 break
1953 fi
1954 done
1955 IFS="$ac_save_ifs"
1956 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001957fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001958fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001959RANLIB="$ac_cv_prog_RANLIB"
1960if test -n "$RANLIB"; then
1961 echo "$ac_t""$RANLIB" 1>&6
1962else
1963 echo "$ac_t""no" 1>&6
1964fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001965
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001966# Find a good install program. We prefer a C program (faster),
1967# so one script is as good as another. But avoid the broken or
1968# incompatible versions:
1969# SysV /etc/install, /usr/sbin/install
1970# SunOS /usr/etc/install
1971# IRIX /sbin/install
1972# AIX /bin/install
Eric Pouech18ad24a2000-01-16 22:16:33 +00001973# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001974# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1975# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1976# ./install, which can be erroneously created by make from ./install.sh.
1977echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001978echo "configure:1979: checking for a BSD compatible install" >&5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001979if test -z "$INSTALL"; then
1980if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1982else
Eric Pouech18ad24a2000-01-16 22:16:33 +00001983 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001984 for ac_dir in $PATH; do
1985 # Account for people who put trailing slashes in PATH elements.
1986 case "$ac_dir/" in
1987 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1988 *)
1989 # OSF1 and SCO ODT 3.0 have their own names for install.
Eric Pouech18ad24a2000-01-16 22:16:33 +00001990 # Don't use installbsd from OSF since it installs stuff as root
1991 # by default.
1992 for ac_prog in ginstall scoinst install; do
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001993 if test -f $ac_dir/$ac_prog; then
1994 if test $ac_prog = install &&
1995 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1996 # AIX install. It has an incompatible calling convention.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001997 :
1998 else
1999 ac_cv_path_install="$ac_dir/$ac_prog -c"
2000 break 2
2001 fi
2002 fi
2003 done
2004 ;;
2005 esac
2006 done
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002007 IFS="$ac_save_IFS"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002008
2009fi
2010 if test "${ac_cv_path_install+set}" = set; then
2011 INSTALL="$ac_cv_path_install"
2012 else
2013 # As a last resort, use the slow shell script. We don't cache a
2014 # path for INSTALL within a source directory, because that will
2015 # break other packages using the cache if that directory is
2016 # removed, or if the path is relative.
2017 INSTALL="$ac_install_sh"
2018 fi
2019fi
2020echo "$ac_t""$INSTALL" 1>&6
2021
2022# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2023# It thinks the first close brace ends the variable substitution.
2024test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2025
Eric Pouech18ad24a2000-01-16 22:16:33 +00002026test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2027
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002028test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2029
Alexandre Julliard641ee761997-08-04 16:34:36 +00002030echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002031echo "configure:2032: checking whether ln -s works" >&5
Alexandre Julliard641ee761997-08-04 16:34:36 +00002032if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2034else
2035 rm -f conftestdata
2036if ln -s X conftestdata 2>/dev/null
2037then
2038 rm -f conftestdata
2039 ac_cv_prog_LN_S="ln -s"
2040else
2041 ac_cv_prog_LN_S=ln
2042fi
2043fi
2044LN_S="$ac_cv_prog_LN_S"
2045if test "$ac_cv_prog_LN_S" = "ln -s"; then
2046 echo "$ac_t""yes" 1>&6
2047else
2048 echo "$ac_t""no" 1>&6
2049fi
2050
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002051# Extract the first word of "c2man", so it can be a program name with args.
2052set dummy c2man; ac_word=$2
2053echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002054echo "configure:2055: checking for $ac_word" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002055if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2057else
2058 if test -n "$C2MAN"; then
2059 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2060else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2062 ac_dummy="$PATH"
2063 for ac_dir in $ac_dummy; do
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002064 test -z "$ac_dir" && ac_dir=.
2065 if test -f $ac_dir/$ac_word; then
2066 ac_cv_prog_C2MAN="c2man"
2067 break
2068 fi
2069 done
2070 IFS="$ac_save_ifs"
Mike McCormacke0df32f2000-08-11 21:15:21 +00002071 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00002072fi
2073fi
2074C2MAN="$ac_cv_prog_C2MAN"
2075if test -n "$C2MAN"; then
2076 echo "$ac_t""$C2MAN" 1>&6
2077else
2078 echo "$ac_t""no" 1>&6
2079fi
2080
James Juranffe6b761999-06-12 08:21:57 +00002081# Extract the first word of "ldconfig", so it can be a program name with args.
2082set dummy ldconfig; ac_word=$2
2083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002084echo "configure:2085: checking for $ac_word" >&5
James Juranffe6b761999-06-12 08:21:57 +00002085if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087else
2088 case "$LDCONFIG" in
2089 /*)
2090 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2091 ;;
Eric Pouech18ad24a2000-01-16 22:16:33 +00002092 ?:/*)
2093 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2094 ;;
James Juranffe6b761999-06-12 08:21:57 +00002095 *)
Eric Pouech18ad24a2000-01-16 22:16:33 +00002096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2097 ac_dummy="/sbin:/usr/sbin:$PATH"
2098 for ac_dir in $ac_dummy; do
James Juranffe6b761999-06-12 08:21:57 +00002099 test -z "$ac_dir" && ac_dir=.
2100 if test -f $ac_dir/$ac_word; then
2101 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2102 break
2103 fi
2104 done
2105 IFS="$ac_save_ifs"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00002106 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00002107 ;;
2108esac
2109fi
2110LDCONFIG="$ac_cv_path_LDCONFIG"
2111if test -n "$LDCONFIG"; then
2112 echo "$ac_t""$LDCONFIG" 1>&6
2113else
2114 echo "$ac_t""no" 1>&6
2115fi
2116
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002117echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002118echo "configure:2119: checking for Cygwin environment" >&5
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002119if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121else
2122 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002123#line 2124 "configure"
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002124#include "confdefs.h"
2125
2126int main() {
2127
2128#ifndef __CYGWIN__
2129#define __CYGWIN__ __CYGWIN32__
2130#endif
2131return __CYGWIN__;
2132; return 0; }
2133EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002134if { (eval echo configure:2135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002135 rm -rf conftest*
2136 ac_cv_cygwin=yes
2137else
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2140 rm -rf conftest*
2141 ac_cv_cygwin=no
2142fi
2143rm -f conftest*
2144rm -f conftest*
2145fi
2146
2147echo "$ac_t""$ac_cv_cygwin" 1>&6
2148CYGWIN=
2149test "$ac_cv_cygwin" = yes && CYGWIN=yes
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002150# Extract the first word of "dllwrap", so it can be a program name with args.
2151set dummy dllwrap; ac_word=$2
2152echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002153echo "configure:2154: checking for $ac_word" >&5
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00002154if eval "test \"`echo '$''{'ac_cv_prog_DLLWRAP'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2156else
2157 if test -n "$DLLWRAP"; then
2158 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2159else
2160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2161 ac_dummy="$PATH"
2162 for ac_dir in $ac_dummy; do
2163 test -z "$ac_dir" && ac_dir=.
2164 if test -f $ac_dir/$ac_word; then
2165 ac_cv_prog_DLLWRAP="dllwrap"
2166 break
2167 fi
2168 done
2169 IFS="$ac_save_ifs"
2170 test -z "$ac_cv_prog_DLLWRAP" && ac_cv_prog_DLLWRAP="false"
2171fi
2172fi
2173DLLWRAP="$ac_cv_prog_DLLWRAP"
2174if test -n "$DLLWRAP"; then
2175 echo "$ac_t""$DLLWRAP" 1>&6
2176else
2177 echo "$ac_t""no" 1>&6
2178fi
2179
Alexandre Julliard02e90081998-01-04 17:49:09 +00002180
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002181for ac_prog in lclint lint
2182do
2183# Extract the first word of "$ac_prog", so it can be a program name with args.
2184set dummy $ac_prog; ac_word=$2
2185echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002186echo "configure:2187: checking for $ac_word" >&5
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002187if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2189else
2190 if test -n "$LINT"; then
2191 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2192else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2194 ac_dummy="$PATH"
2195 for ac_dir in $ac_dummy; do
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00002196 test -z "$ac_dir" && ac_dir=.
2197 if test -f $ac_dir/$ac_word; then
2198 ac_cv_prog_LINT="$ac_prog"
2199 break
2200 fi
2201 done
2202 IFS="$ac_save_ifs"
2203fi
2204fi
2205LINT="$ac_cv_prog_LINT"
2206if test -n "$LINT"; then
2207 echo "$ac_t""$LINT" 1>&6
2208else
2209 echo "$ac_t""no" 1>&6
2210fi
2211
2212test -n "$LINT" && break
2213done
2214
2215if test "$LINT" = "lint"
2216then
2217 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2218 fi
2219
2220
2221
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00002222if test "$CYGWIN" = "yes"
2223then
2224 LDCOMBINE="ld -r --enable-stdcall-fixup"
2225else
2226 LDCOMBINE="ld -r"
2227fi
2228
2229
Alexandre Julliard02e90081998-01-04 17:49:09 +00002230
Howard Abrams13277481999-07-10 13:16:29 +00002231echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002232echo "configure:2233: checking for sqrt in -lm" >&5
Howard Abrams13277481999-07-10 13:16:29 +00002233ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2234if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236else
2237 ac_save_LIBS="$LIBS"
2238LIBS="-lm $LIBS"
2239cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002240#line 2241 "configure"
Howard Abrams13277481999-07-10 13:16:29 +00002241#include "confdefs.h"
2242/* Override any gcc2 internal prototype to avoid an error. */
2243/* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2245char sqrt();
2246
2247int main() {
2248sqrt()
2249; return 0; }
2250EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002251if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Howard Abrams13277481999-07-10 13:16:29 +00002252 rm -rf conftest*
2253 eval "ac_cv_lib_$ac_lib_var=yes"
2254else
2255 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2257 rm -rf conftest*
2258 eval "ac_cv_lib_$ac_lib_var=no"
2259fi
2260rm -f conftest*
2261LIBS="$ac_save_LIBS"
2262
2263fi
2264if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2268 cat >> confdefs.h <<EOF
2269#define $ac_tr_lib 1
2270EOF
2271
2272 LIBS="-lm $LIBS"
2273
2274else
2275 echo "$ac_t""no" 1>&6
2276fi
2277
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002278echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002279echo "configure:2280: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002280ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002281if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002282 echo $ac_n "(cached) $ac_c" 1>&6
2283else
2284 ac_save_LIBS="$LIBS"
2285LIBS="-li386 $LIBS"
2286cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002287#line 2288 "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00002288#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002289/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002290/* We use char because int might match the return type of a gcc2
2291 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002292char i386_set_ldt();
Alexandre Julliard902da691995-11-05 14:39:02 +00002293
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002294int main() {
Alexandre Julliard902da691995-11-05 14:39:02 +00002295i386_set_ldt()
2296; return 0; }
2297EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002298if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002299 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002300 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliard902da691995-11-05 14:39:02 +00002301else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
Alexandre Julliard902da691995-11-05 14:39:02 +00002304 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002305 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliard902da691995-11-05 14:39:02 +00002306fi
2307rm -f conftest*
2308LIBS="$ac_save_LIBS"
2309
2310fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002311if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00002312 echo "$ac_t""yes" 1>&6
Alexandre Julliard02e90081998-01-04 17:49:09 +00002313 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2315 cat >> confdefs.h <<EOF
2316#define $ac_tr_lib 1
2317EOF
2318
2319 LIBS="-li386 $LIBS"
2320
2321else
2322 echo "$ac_t""no" 1>&6
2323fi
2324
Todd Vierlingecc76691998-12-15 17:49:02 +00002325echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002326echo "configure:2327: checking for _oss_ioctl in -lossaudio" >&5
Todd Vierlingecc76691998-12-15 17:49:02 +00002327ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2328if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330else
2331 ac_save_LIBS="$LIBS"
2332LIBS="-lossaudio $LIBS"
2333cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002334#line 2335 "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00002335#include "confdefs.h"
2336/* Override any gcc2 internal prototype to avoid an error. */
2337/* We use char because int might match the return type of a gcc2
2338 builtin and then its argument prototype would still apply. */
2339char _oss_ioctl();
2340
2341int main() {
2342_oss_ioctl()
2343; return 0; }
2344EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002345if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Todd Vierlingecc76691998-12-15 17:49:02 +00002346 rm -rf conftest*
2347 eval "ac_cv_lib_$ac_lib_var=yes"
2348else
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 rm -rf conftest*
2352 eval "ac_cv_lib_$ac_lib_var=no"
2353fi
2354rm -f conftest*
2355LIBS="$ac_save_LIBS"
2356
2357fi
2358if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2362 cat >> confdefs.h <<EOF
2363#define $ac_tr_lib 1
2364EOF
2365
2366 LIBS="-lossaudio $LIBS"
2367
2368else
2369 echo "$ac_t""no" 1>&6
2370fi
2371
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002372for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00002373do
2374echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002375echo "configure:2376: checking for $ac_func" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002376if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2378else
2379 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002380#line 2381 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002381#include "confdefs.h"
2382/* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $ac_func(); below. */
2384#include <assert.h>
2385/* Override any gcc2 internal prototype to avoid an error. */
2386/* We use char because int might match the return type of a gcc2
2387 builtin and then its argument prototype would still apply. */
2388char $ac_func();
2389
2390int main() {
2391
2392/* The GNU C library defines this for functions which it implements
2393 to always fail with ENOSYS. Some functions are actually named
2394 something starting with __ and the normal name is an alias. */
2395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2396choke me
2397#else
2398$ac_func();
2399#endif
2400
2401; return 0; }
2402EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002403if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002404 rm -rf conftest*
2405 eval "ac_cv_func_$ac_func=yes"
2406else
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2409 rm -rf conftest*
2410 eval "ac_cv_func_$ac_func=no"
2411fi
2412rm -f conftest*
2413fi
2414
2415if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2418 cat >> confdefs.h <<EOF
2419#define $ac_tr_func 1
2420EOF
2421
2422else
2423 echo "$ac_t""no" 1>&6
2424echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002425echo "configure:2426: checking for iswalnum in -lw" >&5
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002426ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2427if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429else
2430 ac_save_LIBS="$LIBS"
2431LIBS="-lw $LIBS"
2432cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002433#line 2434 "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002434#include "confdefs.h"
2435/* Override any gcc2 internal prototype to avoid an error. */
2436/* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2438char iswalnum();
2439
2440int main() {
2441iswalnum()
2442; return 0; }
2443EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002444if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002445 rm -rf conftest*
2446 eval "ac_cv_lib_$ac_lib_var=yes"
2447else
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2450 rm -rf conftest*
2451 eval "ac_cv_lib_$ac_lib_var=no"
2452fi
2453rm -f conftest*
2454LIBS="$ac_save_LIBS"
2455
2456fi
2457if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2458 echo "$ac_t""yes" 1>&6
2459 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/^a-zA-Z0-9_/_/g' \
2460 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2461 cat >> confdefs.h <<EOF
2462#define $ac_tr_lib 1
2463EOF
2464
2465 LIBS="-lw $LIBS"
2466
2467else
2468 echo "$ac_t""no" 1>&6
2469fi
2470
2471fi
2472done
2473
2474for ac_func in gethostbyname
2475do
2476echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002477echo "configure:2478: checking for $ac_func" >&5
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002478if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480else
2481 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002482#line 2483 "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002483#include "confdefs.h"
2484/* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char $ac_func(); below. */
2486#include <assert.h>
2487/* Override any gcc2 internal prototype to avoid an error. */
2488/* We use char because int might match the return type of a gcc2
2489 builtin and then its argument prototype would still apply. */
2490char $ac_func();
2491
2492int main() {
2493
2494/* The GNU C library defines this for functions which it implements
2495 to always fail with ENOSYS. Some functions are actually named
2496 something starting with __ and the normal name is an alias. */
2497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2498choke me
2499#else
2500$ac_func();
2501#endif
2502
2503; return 0; }
2504EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002505if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002506 rm -rf conftest*
2507 eval "ac_cv_func_$ac_func=yes"
2508else
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2511 rm -rf conftest*
2512 eval "ac_cv_func_$ac_func=no"
2513fi
2514rm -f conftest*
2515fi
2516
2517if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2520 cat >> confdefs.h <<EOF
2521#define $ac_tr_func 1
2522EOF
2523
2524else
2525 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002526echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002527echo "configure:2528: checking for gethostbyname in -lnsl" >&5
Patrik Stridvallea584721998-11-01 16:22:07 +00002528ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2529if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2531else
2532 ac_save_LIBS="$LIBS"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002533LIBS="-lnsl $LIBS"
Patrik Stridvallea584721998-11-01 16:22:07 +00002534cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002535#line 2536 "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00002536#include "confdefs.h"
2537/* Override any gcc2 internal prototype to avoid an error. */
2538/* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2540char gethostbyname();
2541
2542int main() {
2543gethostbyname()
2544; return 0; }
2545EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002546if { (eval echo configure:2547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvallea584721998-11-01 16:22:07 +00002547 rm -rf conftest*
2548 eval "ac_cv_lib_$ac_lib_var=yes"
2549else
2550 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 rm -rf conftest*
2553 eval "ac_cv_lib_$ac_lib_var=no"
2554fi
2555rm -f conftest*
2556LIBS="$ac_save_LIBS"
2557
2558fi
2559if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002561 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2562 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2563 cat >> confdefs.h <<EOF
2564#define $ac_tr_lib 1
Ron Recorde977d6c1999-09-05 12:32:05 +00002565EOF
Ron Recorde977d6c1999-09-05 12:32:05 +00002566
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00002567 LIBS="-lnsl $LIBS"
2568
Ron Recorde977d6c1999-09-05 12:32:05 +00002569else
2570 echo "$ac_t""no" 1>&6
2571fi
2572
Patrik Stridvallea584721998-11-01 16:22:07 +00002573fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002574done
2575
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002576for ac_func in connect
2577do
2578echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002579echo "configure:2580: checking for $ac_func" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002580if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2582else
2583 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002584#line 2585 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002585#include "confdefs.h"
2586/* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $ac_func(); below. */
2588#include <assert.h>
2589/* Override any gcc2 internal prototype to avoid an error. */
2590/* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2592char $ac_func();
2593
2594int main() {
2595
2596/* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2600choke me
2601#else
2602$ac_func();
2603#endif
2604
2605; return 0; }
2606EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002607if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002608 rm -rf conftest*
2609 eval "ac_cv_func_$ac_func=yes"
2610else
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 rm -rf conftest*
2614 eval "ac_cv_func_$ac_func=no"
2615fi
2616rm -f conftest*
2617fi
2618
2619if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2622 cat >> confdefs.h <<EOF
2623#define $ac_tr_func 1
2624EOF
2625
2626else
2627 echo "$ac_t""no" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002628echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002629echo "configure:2630: checking for connect in -lsocket" >&5
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002630ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2631if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2633else
2634 ac_save_LIBS="$LIBS"
2635LIBS="-lsocket $LIBS"
2636cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002637#line 2638 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002638#include "confdefs.h"
2639/* Override any gcc2 internal prototype to avoid an error. */
2640/* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2642char connect();
2643
2644int main() {
2645connect()
2646; return 0; }
2647EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002648if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002649 rm -rf conftest*
2650 eval "ac_cv_lib_$ac_lib_var=yes"
2651else
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2654 rm -rf conftest*
2655 eval "ac_cv_lib_$ac_lib_var=no"
2656fi
2657rm -f conftest*
2658LIBS="$ac_save_LIBS"
2659
2660fi
2661if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002663 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
Ulrich Weigand715a55e1999-04-18 13:19:56 +00002664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2665 cat >> confdefs.h <<EOF
2666#define $ac_tr_lib 1
2667EOF
2668
2669 LIBS="-lsocket $LIBS"
2670
2671else
2672 echo "$ac_t""no" 1>&6
2673fi
2674
2675fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002676done
2677
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002678echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002679echo "configure:2680: checking for _xpg4_setrunelocale in -lxpg4" >&5
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002680ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'`
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002681if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2683else
2684 ac_save_LIBS="$LIBS"
2685LIBS="-lxpg4 $LIBS"
2686cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002687#line 2688 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002688#include "confdefs.h"
2689/* Override any gcc2 internal prototype to avoid an error. */
2690/* We use char because int might match the return type of a gcc2
2691 builtin and then its argument prototype would still apply. */
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002692char _xpg4_setrunelocale();
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002693
2694int main() {
Satsuki Fujishima66fb6072001-03-19 19:19:59 +00002695_xpg4_setrunelocale()
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002696; return 0; }
2697EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002698if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00002699 rm -rf conftest*
2700 eval "ac_cv_lib_$ac_lib_var=yes"
2701else
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704 rm -rf conftest*
2705 eval "ac_cv_lib_$ac_lib_var=no"
2706fi
2707rm -f conftest*
2708LIBS="$ac_save_LIBS"
2709
2710fi
2711if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2712 echo "$ac_t""yes" 1>&6
2713 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2715 cat >> confdefs.h <<EOF
2716#define $ac_tr_lib 1
2717EOF
2718
2719 LIBS="-lxpg4 $LIBS"
2720
2721else
2722 echo "$ac_t""no" 1>&6
2723fi
2724
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002725echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002726echo "configure:2727: checking for mmap in -lmmap" >&5
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002727ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2728if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2730else
2731 ac_save_LIBS="$LIBS"
2732LIBS="-lmmap $LIBS"
2733cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002734#line 2735 "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002735#include "confdefs.h"
2736/* Override any gcc2 internal prototype to avoid an error. */
2737/* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2739char mmap();
2740
2741int main() {
2742mmap()
2743; return 0; }
2744EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002745if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00002746 rm -rf conftest*
2747 eval "ac_cv_lib_$ac_lib_var=yes"
2748else
2749 echo "configure: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
2751 rm -rf conftest*
2752 eval "ac_cv_lib_$ac_lib_var=no"
2753fi
2754rm -f conftest*
2755LIBS="$ac_save_LIBS"
2756
2757fi
2758if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2762 cat >> confdefs.h <<EOF
2763#define $ac_tr_lib 1
2764EOF
2765
2766 LIBS="-lmmap $LIBS"
2767
2768else
2769 echo "$ac_t""no" 1>&6
2770fi
2771
Marcus Meissner2d7be871999-12-05 23:06:40 +00002772for ac_func in openpty
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002773do
2774echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002775echo "configure:2776: checking for $ac_func" >&5
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002776if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2778else
2779 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002780#line 2781 "configure"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002781#include "confdefs.h"
2782/* System header to define __stub macros and hopefully few prototypes,
2783 which can conflict with char $ac_func(); below. */
2784#include <assert.h>
2785/* Override any gcc2 internal prototype to avoid an error. */
2786/* We use char because int might match the return type of a gcc2
2787 builtin and then its argument prototype would still apply. */
2788char $ac_func();
2789
2790int main() {
2791
2792/* The GNU C library defines this for functions which it implements
2793 to always fail with ENOSYS. Some functions are actually named
2794 something starting with __ and the normal name is an alias. */
2795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2796choke me
2797#else
2798$ac_func();
2799#endif
2800
2801; return 0; }
2802EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002803if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002804 rm -rf conftest*
2805 eval "ac_cv_func_$ac_func=yes"
2806else
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 rm -rf conftest*
2810 eval "ac_cv_func_$ac_func=no"
2811fi
2812rm -f conftest*
2813fi
2814
2815if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2818 cat >> confdefs.h <<EOF
2819#define $ac_tr_func 1
2820EOF
2821
2822else
2823 echo "$ac_t""no" 1>&6
2824echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002825echo "configure:2826: checking for openpty in -lutil" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002826ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2829else
2830 ac_save_LIBS="$LIBS"
2831LIBS="-lutil $LIBS"
2832cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002833#line 2834 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002834#include "confdefs.h"
2835/* Override any gcc2 internal prototype to avoid an error. */
2836/* We use char because int might match the return type of a gcc2
2837 builtin and then its argument prototype would still apply. */
2838char openpty();
2839
2840int main() {
2841openpty()
2842; return 0; }
2843EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002844if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner2d7be871999-12-05 23:06:40 +00002845 rm -rf conftest*
2846 eval "ac_cv_lib_$ac_lib_var=yes"
2847else
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2850 rm -rf conftest*
2851 eval "ac_cv_lib_$ac_lib_var=no"
2852fi
2853rm -f conftest*
2854LIBS="$ac_save_LIBS"
2855
2856fi
2857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 cat >> confdefs.h <<\EOF
2860#define HAVE_OPENPTY 1
2861EOF
2862
2863 LIBS="$LIBS -lutil"
2864
2865else
2866 echo "$ac_t""no" 1>&6
2867fi
2868
2869fi
2870done
2871
2872
2873for ac_hdr in dlfcn.h
2874do
2875ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2876echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002877echo "configure:2878: checking for $ac_hdr" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002878if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2880else
2881 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002882#line 2883 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002883#include "confdefs.h"
2884#include <$ac_hdr>
2885EOF
2886ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002887{ (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002888ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Marcus Meissner2d7be871999-12-05 23:06:40 +00002889if test -z "$ac_err"; then
2890 rm -rf conftest*
2891 eval "ac_cv_header_$ac_safe=yes"
2892else
2893 echo "$ac_err" >&5
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 rm -rf conftest*
2897 eval "ac_cv_header_$ac_safe=no"
2898fi
2899rm -f conftest*
2900fi
2901if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2904 cat >> confdefs.h <<EOF
2905#define $ac_tr_hdr 1
2906EOF
2907 for ac_func in dlopen
2908do
2909echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002910echo "configure:2911: checking for $ac_func" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00002911if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2913else
2914 cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002915#line 2916 "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00002916#include "confdefs.h"
2917/* System header to define __stub macros and hopefully few prototypes,
2918 which can conflict with char $ac_func(); below. */
2919#include <assert.h>
2920/* Override any gcc2 internal prototype to avoid an error. */
2921/* We use char because int might match the return type of a gcc2
2922 builtin and then its argument prototype would still apply. */
2923char $ac_func();
2924
2925int main() {
2926
2927/* The GNU C library defines this for functions which it implements
2928 to always fail with ENOSYS. Some functions are actually named
2929 something starting with __ and the normal name is an alias. */
2930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2931choke me
2932#else
2933$ac_func();
2934#endif
2935
2936; return 0; }
2937EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002938if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002939 rm -rf conftest*
2940 eval "ac_cv_func_$ac_func=yes"
2941else
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 rm -rf conftest*
2945 eval "ac_cv_func_$ac_func=no"
2946fi
2947rm -f conftest*
2948fi
2949
2950if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2953 cat >> confdefs.h <<EOF
2954#define $ac_tr_func 1
2955EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002956
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002957else
2958 echo "$ac_t""no" 1>&6
Marcus Meissner8220bc91998-10-11 11:10:27 +00002959echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002960echo "configure:2961: checking for dlopen in -ldl" >&5
Marcus Meissner8220bc91998-10-11 11:10:27 +00002961ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2964else
2965 ac_save_LIBS="$LIBS"
2966LIBS="-ldl $LIBS"
2967cat > conftest.$ac_ext <<EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002968#line 2969 "configure"
Marcus Meissner8220bc91998-10-11 11:10:27 +00002969#include "confdefs.h"
2970/* Override any gcc2 internal prototype to avoid an error. */
2971/* We use char because int might match the return type of a gcc2
2972 builtin and then its argument prototype would still apply. */
2973char dlopen();
2974
2975int main() {
2976dlopen()
2977; return 0; }
2978EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002979if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissner8220bc91998-10-11 11:10:27 +00002980 rm -rf conftest*
2981 eval "ac_cv_lib_$ac_lib_var=yes"
2982else
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2985 rm -rf conftest*
2986 eval "ac_cv_lib_$ac_lib_var=no"
2987fi
2988rm -f conftest*
2989LIBS="$ac_save_LIBS"
2990
2991fi
2992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002994 cat >> confdefs.h <<\EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002995#define HAVE_DLOPEN 1
Marcus Meissner8220bc91998-10-11 11:10:27 +00002996EOF
2997
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00002998 LIBS="$LIBS -ldl"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00002999else
3000 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00003001LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003002fi
3003
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003004
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003005fi
3006done
3007
Marcus Meissner8220bc91998-10-11 11:10:27 +00003008else
3009 echo "$ac_t""no" 1>&6
Alexandre Julliarde1e75372000-04-24 17:17:49 +00003010LIBEXT="a"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003011
Marcus Meissner8220bc91998-10-11 11:10:27 +00003012fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00003013done
Marcus Meissner8220bc91998-10-11 11:10:27 +00003014
Patrik Stridvallea584721998-11-01 16:22:07 +00003015
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003016JPEGLIB=""
3017
3018for ac_hdr in jpeglib.h
3019do
3020ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3021echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3022echo "configure:3023: checking for $ac_hdr" >&5
3023if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3025else
3026 cat > conftest.$ac_ext <<EOF
3027#line 3028 "configure"
3028#include "confdefs.h"
3029#include <$ac_hdr>
3030EOF
3031ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3032{ (eval echo configure:3033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3033ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3034if test -z "$ac_err"; then
3035 rm -rf conftest*
3036 eval "ac_cv_header_$ac_safe=yes"
3037else
3038 echo "$ac_err" >&5
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3041 rm -rf conftest*
3042 eval "ac_cv_header_$ac_safe=no"
3043fi
3044rm -f conftest*
3045fi
3046if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3047 echo "$ac_t""yes" 1>&6
3048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3049 cat >> confdefs.h <<EOF
3050#define $ac_tr_hdr 1
3051EOF
3052 echo $ac_n "checking for jpeg_start_decompress in -ljpeg""... $ac_c" 1>&6
3053echo "configure:3054: checking for jpeg_start_decompress in -ljpeg" >&5
3054ac_lib_var=`echo jpeg'_'jpeg_start_decompress | sed 'y%./+-%__p_%'`
3055if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057else
3058 ac_save_LIBS="$LIBS"
3059LIBS="-ljpeg $LIBS"
3060cat > conftest.$ac_ext <<EOF
3061#line 3062 "configure"
3062#include "confdefs.h"
3063/* Override any gcc2 internal prototype to avoid an error. */
3064/* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066char jpeg_start_decompress();
3067
3068int main() {
3069jpeg_start_decompress()
3070; return 0; }
3071EOF
3072if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3073 rm -rf conftest*
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3075else
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3078 rm -rf conftest*
3079 eval "ac_cv_lib_$ac_lib_var=no"
3080fi
3081rm -f conftest*
3082LIBS="$ac_save_LIBS"
3083
3084fi
3085if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 cat >> confdefs.h <<\EOF
3088#define HAVE_LIBJPEG 1
3089EOF
3090
3091 JPEGLIB="-ljpeg"
3092
3093else
3094 echo "$ac_t""no" 1>&6
3095fi
3096
3097
3098else
3099 echo "$ac_t""no" 1>&6
3100fi
3101done
3102
3103
3104
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003105
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003106
Patrik Stridvall2941a212000-04-25 20:34:22 +00003107X_DLLS=""
3108
3109XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003110
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003111OPENGLFILES=""
3112
Hidenori Takeshima4615e292000-05-23 23:36:41 +00003113OPENGL32_DLL=""
Marcus Meissnerb63ab442001-06-08 19:02:57 +00003114GLU32FILES=""
3115
3116GLU32_DLL=""
3117
Patrik Stridvallea584721998-11-01 16:22:07 +00003118if test "$have_x" = "yes"
3119then
Patrik Stridvall24110281999-02-04 10:09:54 +00003120 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00003121 ac_save_CPPFLAGS="$CPPFLAGS"
3122 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00003123
Patrik Stridvall24110281999-02-04 10:09:54 +00003124 for ac_hdr in X11/xpm.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003125do
3126ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3127echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003128echo "configure:3129: checking for $ac_hdr" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003129if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3131else
3132 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003133#line 3134 "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003134#include "confdefs.h"
3135#include <$ac_hdr>
3136EOF
3137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003138{ (eval echo configure:3139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003139ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Lionel Ulmera1d6d241999-01-30 15:54:43 +00003140if test -z "$ac_err"; then
3141 rm -rf conftest*
3142 eval "ac_cv_header_$ac_safe=yes"
3143else
3144 echo "$ac_err" >&5
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3147 rm -rf conftest*
3148 eval "ac_cv_header_$ac_safe=no"
3149fi
3150rm -f conftest*
3151fi
3152if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3153 echo "$ac_t""yes" 1>&6
3154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3155 cat >> confdefs.h <<EOF
3156#define $ac_tr_hdr 1
3157EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003158 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003159echo "configure:3160: checking for XpmCreatePixmapFromData in -lXpm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003160ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3161if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3163else
3164 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003165LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3166 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003167cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003168#line 3169 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003169#include "confdefs.h"
3170/* Override any gcc2 internal prototype to avoid an error. */
3171/* We use char because int might match the return type of a gcc2
3172 builtin and then its argument prototype would still apply. */
3173char XpmCreatePixmapFromData();
3174
3175int main() {
3176XpmCreatePixmapFromData()
3177; return 0; }
3178EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003179if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003180 rm -rf conftest*
3181 eval "ac_cv_lib_$ac_lib_var=yes"
3182else
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3185 rm -rf conftest*
3186 eval "ac_cv_lib_$ac_lib_var=no"
3187fi
3188rm -f conftest*
3189LIBS="$ac_save_LIBS"
3190
3191fi
3192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3193 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003194 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003195#define HAVE_LIBXXPM 1
3196EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00003197
3198 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Patrik Stridvall24110281999-02-04 10:09:54 +00003199else
3200 echo "$ac_t""no" 1>&6
3201fi
3202
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003203
3204else
3205 echo "$ac_t""no" 1>&6
3206 echo "Redhat : xpm xpm-devel"
3207 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
Marcus Meissner284995e2000-03-04 19:21:49 +00003208 echo "SuSE : xpm"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003209 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003210 echo
3211 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3212 echo "the directory /contrib/libraries."
3213 echo
3214 exit 1
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003215
3216
3217fi
3218done
Patrik Stridvall24110281999-02-04 10:09:54 +00003219
Marcus Meissnercb99b0e1999-12-20 04:10:06 +00003220
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003221 for ac_hdr in X11/Xlib.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003222do
3223ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3224echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003225echo "configure:3226: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003226if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3228else
3229 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003230#line 3231 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003231#include "confdefs.h"
3232#include <$ac_hdr>
3233EOF
3234ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003235{ (eval echo configure:3236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003236ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003237if test -z "$ac_err"; then
3238 rm -rf conftest*
3239 eval "ac_cv_header_$ac_safe=yes"
3240else
3241 echo "$ac_err" >&5
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3244 rm -rf conftest*
3245 eval "ac_cv_header_$ac_safe=no"
3246fi
3247rm -f conftest*
3248fi
3249if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3252 cat >> confdefs.h <<EOF
3253#define $ac_tr_hdr 1
3254EOF
3255
Ove Kaavenc90fb252001-01-02 22:39:14 +00003256 for ac_hdr in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003257do
3258ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3259echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003260echo "configure:3261: checking for $ac_hdr" >&5
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003261if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00003263else
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003264 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003265#line 3266 "configure"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003266#include "confdefs.h"
3267#include <$ac_hdr>
3268EOF
3269ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003270{ (eval echo configure:3271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003271ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3272if test -z "$ac_err"; then
3273 rm -rf conftest*
3274 eval "ac_cv_header_$ac_safe=yes"
3275else
3276 echo "$ac_err" >&5
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3279 rm -rf conftest*
3280 eval "ac_cv_header_$ac_safe=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00003281fi
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003282rm -f conftest*
3283fi
3284if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3285 echo "$ac_t""yes" 1>&6
3286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3287 cat >> confdefs.h <<EOF
3288#define $ac_tr_hdr 1
3289EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003290 echo $ac_n "checking for XkbQueryExtension in -lX11""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003291echo "configure:3292: checking for XkbQueryExtension in -lX11" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003292ac_lib_var=`echo X11'_'XkbQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3295else
3296 ac_save_LIBS="$LIBS"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003297LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003298cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003299#line 3300 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003300#include "confdefs.h"
3301/* Override any gcc2 internal prototype to avoid an error. */
3302/* We use char because int might match the return type of a gcc2
3303 builtin and then its argument prototype would still apply. */
Ove Kaavenc90fb252001-01-02 22:39:14 +00003304char XkbQueryExtension();
Patrik Stridvall24110281999-02-04 10:09:54 +00003305
3306int main() {
Ove Kaavenc90fb252001-01-02 22:39:14 +00003307XkbQueryExtension()
Patrik Stridvall24110281999-02-04 10:09:54 +00003308; return 0; }
3309EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003310if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003311 rm -rf conftest*
3312 eval "ac_cv_lib_$ac_lib_var=yes"
3313else
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3316 rm -rf conftest*
3317 eval "ac_cv_lib_$ac_lib_var=no"
3318fi
3319rm -f conftest*
3320LIBS="$ac_save_LIBS"
3321
3322fi
3323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 cat >> confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003326#define HAVE_XKB 1
Patrik Stridvall24110281999-02-04 10:09:54 +00003327EOF
3328
3329else
3330 echo "$ac_t""no" 1>&6
3331fi
3332
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003333
3334else
3335 echo "$ac_t""no" 1>&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00003336echo "configure: warning: XKB extension not found!!" 1>&2
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003337
3338fi
3339done
3340
3341
Ove Kaavenc90fb252001-01-02 22:39:14 +00003342 for ac_hdr in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003343do
3344ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3345echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003346echo "configure:3347: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003347if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3349else
3350 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003351#line 3352 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003352#include "confdefs.h"
3353#include <$ac_hdr>
3354EOF
3355ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003356{ (eval echo configure:3357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003357ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003358if test -z "$ac_err"; then
3359 rm -rf conftest*
3360 eval "ac_cv_header_$ac_safe=yes"
3361else
3362 echo "$ac_err" >&5
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3365 rm -rf conftest*
3366 eval "ac_cv_header_$ac_safe=no"
3367fi
3368rm -f conftest*
3369fi
3370if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3373 cat >> confdefs.h <<EOF
3374#define $ac_tr_hdr 1
3375EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003376 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003377echo "configure:3378: checking for XShmQueryExtension in -lXext" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003378ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
Francois Jacques5b6879c2000-07-28 23:04:54 +00003379if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3381else
3382 ac_save_LIBS="$LIBS"
3383LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3384cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003385#line 3386 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00003386#include "confdefs.h"
3387/* Override any gcc2 internal prototype to avoid an error. */
3388/* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
Ove Kaavenc90fb252001-01-02 22:39:14 +00003390char XShmQueryExtension();
Francois Jacques5b6879c2000-07-28 23:04:54 +00003391
3392int main() {
Ove Kaavenc90fb252001-01-02 22:39:14 +00003393XShmQueryExtension()
Francois Jacques5b6879c2000-07-28 23:04:54 +00003394; return 0; }
3395EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003396if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00003397 rm -rf conftest*
3398 eval "ac_cv_lib_$ac_lib_var=yes"
3399else
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3402 rm -rf conftest*
3403 eval "ac_cv_lib_$ac_lib_var=no"
3404fi
3405rm -f conftest*
3406LIBS="$ac_save_LIBS"
3407
3408fi
3409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3411 cat >> confdefs.h <<\EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003412#define HAVE_LIBXXSHM 1
Francois Jacques5b6879c2000-07-28 23:04:54 +00003413EOF
3414
3415else
3416 echo "$ac_t""no" 1>&6
3417fi
3418
Ove Kaavenc90fb252001-01-02 22:39:14 +00003419
Francois Jacques5b6879c2000-07-28 23:04:54 +00003420else
3421 echo "$ac_t""no" 1>&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00003422echo "configure: warning: Xshm extension not found!!" 1>&2
3423
Francois Jacques5b6879c2000-07-28 23:04:54 +00003424fi
3425done
3426
Ove Kaavenc90fb252001-01-02 22:39:14 +00003427
3428 for ac_hdr in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00003429do
3430ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3431echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003432echo "configure:3433: checking for $ac_hdr" >&5
Francois Jacques5b6879c2000-07-28 23:04:54 +00003433if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3435else
3436 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003437#line 3438 "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00003438#include "confdefs.h"
3439#include <$ac_hdr>
3440EOF
3441ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003442{ (eval echo configure:3443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Francois Jacques5b6879c2000-07-28 23:04:54 +00003443ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3444if test -z "$ac_err"; then
3445 rm -rf conftest*
3446 eval "ac_cv_header_$ac_safe=yes"
3447else
3448 echo "$ac_err" >&5
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 rm -rf conftest*
3452 eval "ac_cv_header_$ac_safe=no"
3453fi
3454rm -f conftest*
3455fi
3456if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3457 echo "$ac_t""yes" 1>&6
3458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3459 cat >> confdefs.h <<EOF
3460#define $ac_tr_hdr 1
3461EOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00003462 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003463echo "configure:3464: checking for XShapeQueryExtension in -lXext" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003464ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
3465if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3467else
3468 ac_save_LIBS="$LIBS"
3469LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3470cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003471#line 3472 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003472#include "confdefs.h"
3473/* Override any gcc2 internal prototype to avoid an error. */
3474/* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3476char XShapeQueryExtension();
3477
3478int main() {
3479XShapeQueryExtension()
3480; return 0; }
3481EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003482if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00003483 rm -rf conftest*
3484 eval "ac_cv_lib_$ac_lib_var=yes"
3485else
3486 echo "configure: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3488 rm -rf conftest*
3489 eval "ac_cv_lib_$ac_lib_var=no"
3490fi
3491rm -f conftest*
3492LIBS="$ac_save_LIBS"
3493
3494fi
3495if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 cat >> confdefs.h <<\EOF
3498#define HAVE_LIBXSHAPE 1
3499EOF
3500
3501else
3502 echo "$ac_t""no" 1>&6
3503fi
3504
3505
3506else
3507 echo "$ac_t""no" 1>&6
3508echo "configure: warning: XShape extension not found!!" 1>&2
3509
3510fi
3511done
3512
3513
3514 for ac_hdr in X11/extensions/xf86dga.h
3515do
3516ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3517echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003518echo "configure:3519: checking for $ac_hdr" >&5
Ove Kaavenc90fb252001-01-02 22:39:14 +00003519if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3521else
3522 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003523#line 3524 "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00003524#include "confdefs.h"
3525#include <$ac_hdr>
3526EOF
3527ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003528{ (eval echo configure:3529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ove Kaavenc90fb252001-01-02 22:39:14 +00003529ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3530if test -z "$ac_err"; then
3531 rm -rf conftest*
3532 eval "ac_cv_header_$ac_safe=yes"
3533else
3534 echo "$ac_err" >&5
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3537 rm -rf conftest*
3538 eval "ac_cv_header_$ac_safe=no"
3539fi
3540rm -f conftest*
3541fi
3542if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3543 echo "$ac_t""yes" 1>&6
3544 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3545 cat >> confdefs.h <<EOF
3546#define $ac_tr_hdr 1
3547EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003548 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003549echo "configure:3550: checking for XDGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003550ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3553else
3554 ac_save_LIBS="$LIBS"
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003555LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003556 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003557cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003558#line 3559 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003559#include "confdefs.h"
3560/* Override any gcc2 internal prototype to avoid an error. */
3561/* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003563char XDGAQueryExtension();
3564
3565int main() {
3566XDGAQueryExtension()
3567; return 0; }
3568EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003569if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003570 rm -rf conftest*
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3572else
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3575 rm -rf conftest*
3576 eval "ac_cv_lib_$ac_lib_var=no"
3577fi
3578rm -f conftest*
3579LIBS="$ac_save_LIBS"
3580
3581fi
3582if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003584 cat >> confdefs.h <<\EOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003585#define HAVE_LIBXXF86DGA2 1
3586EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003587
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003588 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003589
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003590else
3591 echo "$ac_t""no" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003592 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003593echo "configure:3594: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003594ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3595if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3597else
3598 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003599LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3600 $LIBS"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003601cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003602#line 3603 "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00003603#include "confdefs.h"
3604/* Override any gcc2 internal prototype to avoid an error. */
3605/* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
Patrik Stridvall24110281999-02-04 10:09:54 +00003607char XF86DGAQueryExtension();
3608
3609int main() {
3610XF86DGAQueryExtension()
3611; return 0; }
3612EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003613if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003614 rm -rf conftest*
3615 eval "ac_cv_lib_$ac_lib_var=yes"
3616else
3617 echo "configure: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3619 rm -rf conftest*
3620 eval "ac_cv_lib_$ac_lib_var=no"
3621fi
3622rm -f conftest*
3623LIBS="$ac_save_LIBS"
3624
3625fi
3626if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003628 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003629#define HAVE_LIBXXF86DGA 1
3630EOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00003631
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003632 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003633
Patrik Stridvall24110281999-02-04 10:09:54 +00003634else
3635 echo "$ac_t""no" 1>&6
3636fi
3637
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003638
3639fi
Patrik Stridvall24110281999-02-04 10:09:54 +00003640
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003641
3642else
3643 echo "$ac_t""no" 1>&6
3644echo "configure: warning: DGA extension not found!!" 1>&2
3645
3646fi
3647done
3648
3649
3650 for ac_hdr in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003651do
3652ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3653echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003654echo "configure:3655: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003655if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657else
3658 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003659#line 3660 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003660#include "confdefs.h"
3661#include <$ac_hdr>
3662EOF
3663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003664{ (eval echo configure:3665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003666if test -z "$ac_err"; then
3667 rm -rf conftest*
3668 eval "ac_cv_header_$ac_safe=yes"
3669else
3670 echo "$ac_err" >&5
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 rm -rf conftest*
3674 eval "ac_cv_header_$ac_safe=no"
3675fi
3676rm -f conftest*
3677fi
3678if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3679 echo "$ac_t""yes" 1>&6
3680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3681 cat >> confdefs.h <<EOF
3682#define $ac_tr_hdr 1
3683EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003684 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003685echo "configure:3686: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003686ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3687if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3689else
3690 ac_save_LIBS="$LIBS"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003691LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3692 $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003693cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003694#line 3695 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003695#include "confdefs.h"
3696/* Override any gcc2 internal prototype to avoid an error. */
3697/* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699char XF86VidModeQueryExtension();
3700
3701int main() {
3702XF86VidModeQueryExtension()
3703; return 0; }
3704EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003705if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003706 rm -rf conftest*
3707 eval "ac_cv_lib_$ac_lib_var=yes"
3708else
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 rm -rf conftest*
3712 eval "ac_cv_lib_$ac_lib_var=no"
3713fi
3714rm -f conftest*
3715LIBS="$ac_save_LIBS"
3716
3717fi
3718if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003720 cat >> confdefs.h <<\EOF
Patrik Stridvall24110281999-02-04 10:09:54 +00003721#define HAVE_LIBXXF86VM 1
3722EOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003723
3724 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3725
Patrik Stridvall24110281999-02-04 10:09:54 +00003726else
3727 echo "$ac_t""no" 1>&6
3728fi
3729
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003730
3731else
3732 echo "$ac_t""no" 1>&6
3733echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2
3734
3735fi
3736done
Lionel Ulmer5c085701999-02-28 19:48:53 +00003737
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003738
3739 for ac_hdr in X11/extensions/Xvlib.h
3740do
3741ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3742echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003743echo "configure:3744: checking for $ac_hdr" >&5
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003744if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3746else
3747 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003748#line 3749 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003749#include "confdefs.h"
3750#include <$ac_hdr>
3751EOF
3752ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003753{ (eval echo configure:3754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003754ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3755if test -z "$ac_err"; then
3756 rm -rf conftest*
3757 eval "ac_cv_header_$ac_safe=yes"
3758else
3759 echo "$ac_err" >&5
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3762 rm -rf conftest*
3763 eval "ac_cv_header_$ac_safe=no"
3764fi
3765rm -f conftest*
3766fi
3767if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3768 echo "$ac_t""yes" 1>&6
3769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3770 cat >> confdefs.h <<EOF
3771#define $ac_tr_hdr 1
3772EOF
3773 echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003774echo "configure:3775: checking for XvShmCreateImage in -lXv" >&5
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003775ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'`
3776if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3778else
3779 ac_save_LIBS="$LIBS"
3780LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
3781 $LIBS"
3782cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003783#line 3784 "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003784#include "confdefs.h"
3785/* Override any gcc2 internal prototype to avoid an error. */
3786/* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3788char XvShmCreateImage();
3789
3790int main() {
3791XvShmCreateImage()
3792; return 0; }
3793EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003794if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00003795 rm -rf conftest*
3796 eval "ac_cv_lib_$ac_lib_var=yes"
3797else
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3800 rm -rf conftest*
3801 eval "ac_cv_lib_$ac_lib_var=no"
3802fi
3803rm -f conftest*
3804LIBS="$ac_save_LIBS"
3805
3806fi
3807if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3809 cat >> confdefs.h <<\EOF
3810#define HAVE_XVIDEO 1
3811EOF
3812
3813 X_PRE_LIBS="$X_PRE_LIBS -lXv"
3814
3815else
3816 echo "$ac_t""no" 1>&6
3817fi
3818
3819
3820else
3821 echo "$ac_t""no" 1>&6
3822echo "configure: warning: XVideo extension not found !!" 1>&2
3823
3824fi
3825done
3826
3827
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00003828
3829
3830else
3831 echo "$ac_t""no" 1>&6
3832fi
3833done
3834
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003835 if test $OPENGL = "yes" -o $OPENGL = "normal"
3836 then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003837 for ac_hdr in GL/gl.h GL/glx.h GL/glext.h
Patrik Stridvall24110281999-02-04 10:09:54 +00003838do
3839ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3840echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003841echo "configure:3842: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00003842if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3844else
3845 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003846#line 3847 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003847#include "confdefs.h"
3848#include <$ac_hdr>
3849EOF
3850ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003851{ (eval echo configure:3852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003852ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00003853if test -z "$ac_err"; then
3854 rm -rf conftest*
3855 eval "ac_cv_header_$ac_safe=yes"
3856else
3857 echo "$ac_err" >&5
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3860 rm -rf conftest*
3861 eval "ac_cv_header_$ac_safe=no"
3862fi
3863rm -f conftest*
3864fi
3865if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3868 cat >> confdefs.h <<EOF
3869#define $ac_tr_hdr 1
3870EOF
3871
3872else
3873 echo "$ac_t""no" 1>&6
3874fi
3875done
3876
Marcus Meissner22a969b2000-08-08 20:46:50 +00003877 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003878 then
3879 echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003880echo "configure:3881: checking "for up-to-date OpenGL version"" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003881if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003882 echo $ac_n "(cached) $ac_c" 1>&6
3883else
3884 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003885#line 3886 "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003886#include "confdefs.h"
3887#include <GL/gl.h>
3888int main() {
3889GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3890; return 0; }
3891EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003892if { (eval echo configure:3893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer5c085701999-02-28 19:48:53 +00003893 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003894 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00003895else
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3898 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003899 wine_cv_opengl_version_OK="no"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003900
Lionel Ulmer5c085701999-02-28 19:48:53 +00003901fi
3902rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003903
Lionel Ulmer5c085701999-02-28 19:48:53 +00003904fi
3905
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003906echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00003907
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003908 echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003909echo "configure:3910: checking "for thread-safe OpenGL version"" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003910if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003911 echo $ac_n "(cached) $ac_c" 1>&6
3912else
3913 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003914 LIBS="$X_LIBS -lGL"
3915 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003916#line 3917 "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003917#include "confdefs.h"
3918
3919int main() {
3920pthread_getspecific();
3921; return 0; }
3922EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003923if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003924 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003925 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003926else
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3929 rm -rf conftest*
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003930 wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003931fi
3932rm -f conftest*
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003933 LIBS=$saved_libs
3934
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003935fi
3936
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003937echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00003938
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003939 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 +00003940 then
3941 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003942echo "configure:3943: checking for glXCreateContext in -lGL" >&5
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003943ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
Patrik Stridvall24110281999-02-04 10:09:54 +00003944if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3946else
3947 ac_save_LIBS="$LIBS"
Marcus Meissner376ec882000-01-05 03:24:52 +00003948LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Patrik Stridvall24110281999-02-04 10:09:54 +00003949cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003950#line 3951 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00003951#include "confdefs.h"
3952/* Override any gcc2 internal prototype to avoid an error. */
3953/* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003955char glXCreateContext();
Patrik Stridvall24110281999-02-04 10:09:54 +00003956
3957int main() {
Lionel Ulmer5d68f791999-07-23 19:33:24 +00003958glXCreateContext()
Patrik Stridvall24110281999-02-04 10:09:54 +00003959; return 0; }
3960EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003961if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall24110281999-02-04 10:09:54 +00003962 rm -rf conftest*
3963 eval "ac_cv_lib_$ac_lib_var=yes"
3964else
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3967 rm -rf conftest*
3968 eval "ac_cv_lib_$ac_lib_var=no"
3969fi
3970rm -f conftest*
3971LIBS="$ac_save_LIBS"
3972
3973fi
3974if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3975 echo "$ac_t""yes" 1>&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003976 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003977
Patrik Stridvall24110281999-02-04 10:09:54 +00003978else
3979 echo "$ac_t""no" 1>&6
3980fi
3981
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00003982
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00003983 if test $ac_cv_lib_GL_glXCreateContext = "yes"
3984 then
Marcus Meissner22a969b2000-08-08 20:46:50 +00003985
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00003986 OPENGLFILES='$(OPENGLFILES)'
3987 cat >> confdefs.h <<\EOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00003988#define HAVE_OPENGL 1
3989EOF
3990
Marcus Meissner22a969b2000-08-08 20:46:50 +00003991
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003992 echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00003993echo "configure:3994: checking for glXGetProcAddressARB in -lGL" >&5
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00003994ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'`
3995if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3997else
3998 ac_save_LIBS="$LIBS"
3999LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
4000cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004001#line 4002 "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004002#include "confdefs.h"
4003/* Override any gcc2 internal prototype to avoid an error. */
4004/* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4006char glXGetProcAddressARB();
4007
4008int main() {
4009glXGetProcAddressARB()
4010; return 0; }
4011EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004012if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004013 rm -rf conftest*
4014 eval "ac_cv_lib_$ac_lib_var=yes"
4015else
4016 echo "configure: failed program was:" >&5
4017 cat conftest.$ac_ext >&5
4018 rm -rf conftest*
4019 eval "ac_cv_lib_$ac_lib_var=no"
4020fi
4021rm -f conftest*
4022LIBS="$ac_save_LIBS"
4023
4024fi
4025if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4026 echo "$ac_t""yes" 1>&6
4027 cat >> confdefs.h <<\EOF
4028#define HAVE_GLX_GETPROCADDRESS 1
4029EOF
4030
4031else
4032 echo "$ac_t""no" 1>&6
4033fi
4034
4035
4036 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
4037 then
Lionel Ulmer1434d872000-07-23 14:23:31 +00004038 echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004039echo "configure:4040: checking "for OpenGL extension functions prototypes"" >&5
Lionel Ulmer1434d872000-07-23 14:23:31 +00004040if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4042else
4043 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004044#line 4045 "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00004045#include "confdefs.h"
4046#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00004047 #ifdef HAVE_GL_GLEXT_H
4048 # include <GL/glext.h>
4049 #endif
4050
Lionel Ulmer1434d872000-07-23 14:23:31 +00004051int main() {
4052PFNGLCOLORTABLEEXTPROC test_proc;
4053; return 0; }
4054EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004055if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Lionel Ulmer1434d872000-07-23 14:23:31 +00004056 rm -rf conftest*
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004057 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00004058else
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 rm -rf conftest*
4062 wine_cv_extension_prototypes="no"
4063
4064fi
4065rm -f conftest*
4066
4067fi
4068
4069echo "$ac_t""$wine_cv_extension_prototypes" 1>&6
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004070 if test $wine_cv_extension_prototypes = "yes"
4071 then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004072 cat >> confdefs.h <<\EOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00004073#define HAVE_GLEXT_PROTOTYPES 1
4074EOF
4075
4076 fi
Lionel Ulmer1434d872000-07-23 14:23:31 +00004077
Hidenori Takeshima4615e292000-05-23 23:36:41 +00004078 OPENGL32_DLL=opengl32
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00004079 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00004080
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004081 fi
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004082 echo $ac_n "checking for glBegin in -lGLU""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004083echo "configure:4084: checking for glBegin in -lGLU" >&5
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004084ac_lib_var=`echo GLU'_'glBegin | sed 'y%./+-%__p_%'`
4085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4087else
4088 ac_save_LIBS="$LIBS"
4089LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
4090 $LIBS"
4091cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004092#line 4093 "configure"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004093#include "confdefs.h"
4094/* Override any gcc2 internal prototype to avoid an error. */
4095/* We use char because int might match the return type of a gcc2
4096 builtin and then its argument prototype would still apply. */
4097char glBegin();
4098
4099int main() {
4100glBegin()
4101; return 0; }
4102EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004103if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerb63ab442001-06-08 19:02:57 +00004104 rm -rf conftest*
4105 eval "ac_cv_lib_$ac_lib_var=yes"
4106else
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 rm -rf conftest*
4110 eval "ac_cv_lib_$ac_lib_var=no"
4111fi
4112rm -f conftest*
4113LIBS="$ac_save_LIBS"
4114
4115fi
4116if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
4119 GLU32FILES='$(GLU32FILES)'
4120 GLU32_DLL=glu32
4121
4122else
4123 echo "$ac_t""no" 1>&6
4124fi
4125
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00004126 fi
4127 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00004128 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00004129
4130 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00004131 X_DLLS='$(X_DLLS)'
4132 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00004133else
4134 XLIB=""
4135 X_CFLAGS=""
4136 X_LIBS=""
4137fi
Alexandre Julliard902da691995-11-05 14:39:02 +00004138
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00004139if test "$CURSES" = "yes"
4140then
4141 for ac_hdr in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00004142do
4143ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4144echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004145echo "configure:4146: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00004146if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4148else
4149 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004150#line 4151 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004151#include "confdefs.h"
4152#include <$ac_hdr>
4153EOF
4154ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004155{ (eval echo configure:4156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004156ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00004157if test -z "$ac_err"; then
4158 rm -rf conftest*
4159 eval "ac_cv_header_$ac_safe=yes"
4160else
4161 echo "$ac_err" >&5
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4164 rm -rf conftest*
4165 eval "ac_cv_header_$ac_safe=no"
4166fi
4167rm -f conftest*
4168fi
4169if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4171 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4172 cat >> confdefs.h <<EOF
4173#define $ac_tr_hdr 1
4174EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004175 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004176echo "configure:4177: checking for waddch in -lncurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004177ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
4178if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4180else
4181 ac_save_LIBS="$LIBS"
4182LIBS="-lncurses $LIBS"
4183cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004184#line 4185 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004185#include "confdefs.h"
4186/* Override any gcc2 internal prototype to avoid an error. */
4187/* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4189char waddch();
4190
4191int main() {
4192waddch()
4193; return 0; }
4194EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004195if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004196 rm -rf conftest*
4197 eval "ac_cv_lib_$ac_lib_var=yes"
4198else
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 rm -rf conftest*
4202 eval "ac_cv_lib_$ac_lib_var=no"
4203fi
4204rm -f conftest*
4205LIBS="$ac_save_LIBS"
4206
4207fi
4208if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004210 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004211 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4212 cat >> confdefs.h <<EOF
4213#define $ac_tr_lib 1
4214EOF
4215
4216 LIBS="-lncurses $LIBS"
4217
4218else
4219 echo "$ac_t""no" 1>&6
4220fi
4221
Alexandre Julliard638f1691999-01-17 16:32:32 +00004222else
4223 echo "$ac_t""no" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004224for ac_hdr in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00004225do
4226ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4227echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004228echo "configure:4229: checking for $ac_hdr" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00004229if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4231else
4232 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004233#line 4234 "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00004234#include "confdefs.h"
4235#include <$ac_hdr>
4236EOF
4237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004238{ (eval echo configure:4239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004239ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Patrik Stridvall24110281999-02-04 10:09:54 +00004240if test -z "$ac_err"; then
4241 rm -rf conftest*
4242 eval "ac_cv_header_$ac_safe=yes"
4243else
4244 echo "$ac_err" >&5
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 rm -rf conftest*
4248 eval "ac_cv_header_$ac_safe=no"
4249fi
4250rm -f conftest*
4251fi
4252if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4255 cat >> confdefs.h <<EOF
4256#define $ac_tr_hdr 1
4257EOF
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004258 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004259echo "configure:4260: checking for waddch in -lcurses" >&5
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004260ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
4261if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4263else
4264 ac_save_LIBS="$LIBS"
4265LIBS="-lcurses $LIBS"
4266cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004267#line 4268 "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004268#include "confdefs.h"
4269/* Override any gcc2 internal prototype to avoid an error. */
4270/* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4272char waddch();
4273
4274int main() {
4275waddch()
4276; return 0; }
4277EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004278if { (eval echo configure:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004279 rm -rf conftest*
4280 eval "ac_cv_lib_$ac_lib_var=yes"
4281else
4282 echo "configure: failed program was:" >&5
4283 cat conftest.$ac_ext >&5
4284 rm -rf conftest*
4285 eval "ac_cv_lib_$ac_lib_var=no"
4286fi
4287rm -f conftest*
4288LIBS="$ac_save_LIBS"
4289
4290fi
4291if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4292 echo "$ac_t""yes" 1>&6
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004293 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4295 cat >> confdefs.h <<EOF
4296#define $ac_tr_lib 1
4297EOF
4298
4299 LIBS="-lcurses $LIBS"
4300
4301else
4302 echo "$ac_t""no" 1>&6
4303fi
4304
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004305else
4306 echo "$ac_t""no" 1>&6
4307fi
4308done
4309
4310fi
4311done
4312
4313 for ac_func in getbkgd resizeterm
4314do
4315echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004316echo "configure:4317: checking for $ac_func" >&5
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004317if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004318 echo $ac_n "(cached) $ac_c" 1>&6
4319else
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004320 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004321#line 4322 "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004322#include "confdefs.h"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004323/* System header to define __stub macros and hopefully few prototypes,
4324 which can conflict with char $ac_func(); below. */
4325#include <assert.h>
Alexandre Julliard638f1691999-01-17 16:32:32 +00004326/* Override any gcc2 internal prototype to avoid an error. */
4327/* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004329char $ac_func();
Alexandre Julliard638f1691999-01-17 16:32:32 +00004330
4331int main() {
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004332
4333/* The GNU C library defines this for functions which it implements
4334 to always fail with ENOSYS. Some functions are actually named
4335 something starting with __ and the normal name is an alias. */
4336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4337choke me
4338#else
4339$ac_func();
4340#endif
4341
Alexandre Julliard638f1691999-01-17 16:32:32 +00004342; return 0; }
4343EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004344if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard638f1691999-01-17 16:32:32 +00004345 rm -rf conftest*
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004346 eval "ac_cv_func_$ac_func=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004347else
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 rm -rf conftest*
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004351 eval "ac_cv_func_$ac_func=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00004352fi
4353rm -f conftest*
Alexandre Julliard638f1691999-01-17 16:32:32 +00004354fi
Alexandre Julliard638f1691999-01-17 16:32:32 +00004355
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004356if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4359 cat >> confdefs.h <<EOF
4360#define $ac_tr_func 1
4361EOF
4362
Alexandre Julliard638f1691999-01-17 16:32:32 +00004363else
4364 echo "$ac_t""no" 1>&6
4365fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00004366done
Alexandre Julliard638f1691999-01-17 16:32:32 +00004367
Joseph Praneviche884f9c1999-01-03 16:14:34 +00004368fi
4369
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004370CUPSLIBS=""
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004371wine_cv_warn_cups_h=no
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004372echo $ac_n "checking for cupsGetPPD in -lcups""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004373echo "configure:4374: checking for cupsGetPPD in -lcups" >&5
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004374ac_lib_var=`echo cups'_'cupsGetPPD | sed 'y%./+-%__p_%'`
4375if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4377else
4378 ac_save_LIBS="$LIBS"
4379LIBS="-lcups $LIBS"
4380cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004381#line 4382 "configure"
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004382#include "confdefs.h"
4383/* Override any gcc2 internal prototype to avoid an error. */
4384/* We use char because int might match the return type of a gcc2
4385 builtin and then its argument prototype would still apply. */
4386char cupsGetPPD();
4387
4388int main() {
4389cupsGetPPD()
4390; return 0; }
4391EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004392if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004393 rm -rf conftest*
4394 eval "ac_cv_lib_$ac_lib_var=yes"
4395else
4396 echo "configure: failed program was:" >&5
4397 cat conftest.$ac_ext >&5
4398 rm -rf conftest*
4399 eval "ac_cv_lib_$ac_lib_var=no"
4400fi
4401rm -f conftest*
4402LIBS="$ac_save_LIBS"
4403
4404fi
4405if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4406 echo "$ac_t""yes" 1>&6
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004407 ac_safe=`echo "cups/cups.h" | sed 'y%./+-%__p_%'`
4408echo $ac_n "checking for cups/cups.h""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004409echo "configure:4410: checking for cups/cups.h" >&5
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004410if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4412else
4413 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004414#line 4415 "configure"
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004415#include "confdefs.h"
4416#include <cups/cups.h>
4417EOF
4418ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004419{ (eval echo configure:4420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004420ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4421if test -z "$ac_err"; then
4422 rm -rf conftest*
4423 eval "ac_cv_header_$ac_safe=yes"
4424else
4425 echo "$ac_err" >&5
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4428 rm -rf conftest*
4429 eval "ac_cv_header_$ac_safe=no"
4430fi
4431rm -f conftest*
4432fi
4433if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004435 cat >> confdefs.h <<\EOF
4436#define HAVE_CUPS 1
4437EOF
4438
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00004439 CUPSLIBS="-lcups"
4440else
4441 echo "$ac_t""no" 1>&6
4442wine_cv_warn_cups_h=yes
4443fi
4444
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00004445
4446else
4447 echo "$ac_t""no" 1>&6
4448fi
4449
4450
4451
Ian Pilcher563598d2001-05-16 20:56:05 +00004452echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004453echo "configure:4454: checking for FT_Init_FreeType in -lfreetype" >&5
Ian Pilcher563598d2001-05-16 20:56:05 +00004454ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
4455if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4457else
4458 ac_save_LIBS="$LIBS"
4459LIBS="-lfreetype $LIBS"
4460cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004461#line 4462 "configure"
Ian Pilcher563598d2001-05-16 20:56:05 +00004462#include "confdefs.h"
4463/* Override any gcc2 internal prototype to avoid an error. */
4464/* We use char because int might match the return type of a gcc2
4465 builtin and then its argument prototype would still apply. */
4466char FT_Init_FreeType();
4467
4468int main() {
4469FT_Init_FreeType()
4470; return 0; }
4471EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004472if { (eval echo configure:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ian Pilcher563598d2001-05-16 20:56:05 +00004473 rm -rf conftest*
4474 eval "ac_cv_lib_$ac_lib_var=yes"
4475else
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4478 rm -rf conftest*
4479 eval "ac_cv_lib_$ac_lib_var=no"
4480fi
4481rm -f conftest*
4482LIBS="$ac_save_LIBS"
4483
4484fi
4485if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4487 ft_lib=yes
4488else
4489 echo "$ac_t""no" 1>&6
4490ft_lib=no
4491fi
4492
4493if test "$ft_lib" = "no"
4494then
4495 FREETYPELIBS=""
4496 FREETYPEINCL=""
4497 wine_cv_msg_freetype=no
4498else
4499 # Extract the first word of "freetype-config", so it can be a program name with args.
4500set dummy freetype-config; ac_word=$2
4501echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004502echo "configure:4503: checking for $ac_word" >&5
Ian Pilcher563598d2001-05-16 20:56:05 +00004503if eval "test \"`echo '$''{'ac_cv_prog_ft_devel'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4505else
4506 if test -n "$ft_devel"; then
4507 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
4508else
4509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4510 ac_dummy="$PATH"
4511 for ac_dir in $ac_dummy; do
4512 test -z "$ac_dir" && ac_dir=.
4513 if test -f $ac_dir/$ac_word; then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004514 ac_cv_prog_ft_devel="freetype-config"
Ian Pilcher563598d2001-05-16 20:56:05 +00004515 break
4516 fi
4517 done
4518 IFS="$ac_save_ifs"
4519 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
4520fi
4521fi
4522ft_devel="$ac_cv_prog_ft_devel"
4523if test -n "$ft_devel"; then
4524 echo "$ac_t""$ft_devel" 1>&6
4525else
4526 echo "$ac_t""no" 1>&6
4527fi
4528
4529 if test "$ft_devel" = "no"
4530 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004531 # Extract the first word of "freetype2-config", so it can be a program name with args.
4532set dummy freetype2-config; ac_word=$2
4533echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004534echo "configure:4535: checking for $ac_word" >&5
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004535if eval "test \"`echo '$''{'ac_cv_prog_ft_devel2'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4537else
4538 if test -n "$ft_devel2"; then
4539 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
4540else
4541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4542 ac_dummy="$PATH"
4543 for ac_dir in $ac_dummy; do
4544 test -z "$ac_dir" && ac_dir=.
4545 if test -f $ac_dir/$ac_word; then
4546 ac_cv_prog_ft_devel2="freetype2-config"
4547 break
4548 fi
4549 done
4550 IFS="$ac_save_ifs"
4551 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
4552fi
4553fi
4554ft_devel2="$ac_cv_prog_ft_devel2"
4555if test -n "$ft_devel2"; then
4556 echo "$ac_t""$ft_devel2" 1>&6
4557else
4558 echo "$ac_t""no" 1>&6
4559fi
4560
4561 if test "$ft_devel2" = "freetype2-config"
4562 then
4563 ft_devel=$ft_devel2
4564 fi
4565 fi
4566 if test "$ft_devel" = "no"
4567 then
Ian Pilcher563598d2001-05-16 20:56:05 +00004568 FREETYPELIBS=""
4569 FREETYPEINCL=""
4570 wine_cv_msg_freetype=yes
4571 else
4572 cat >> confdefs.h <<\EOF
4573#define HAVE_FREETYPE 1
4574EOF
4575
Marcus Meissnerd28955d2001-05-31 21:35:15 +00004576 FREETYPELIBS=`$ft_devel --libs`
4577 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00004578 ac_save_CPPFLAGS="$CPPFLAGS"
4579 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
4580 for ac_hdr in freetype/freetype.h \
4581 freetype/ftglyph.h \
4582 freetype/tttables.h \
4583 freetype/ftnames.h \
4584 freetype/ftsnames.h \
4585 freetype/ttnameid.h
4586do
4587ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4588echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004589echo "configure:4590: checking for $ac_hdr" >&5
Ian Pilcher40432fe2001-06-06 21:05:23 +00004590if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4592else
4593 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004594#line 4595 "configure"
Ian Pilcher40432fe2001-06-06 21:05:23 +00004595#include "confdefs.h"
4596#include <$ac_hdr>
4597EOF
4598ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004599{ (eval echo configure:4600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Ian Pilcher40432fe2001-06-06 21:05:23 +00004600ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4601if test -z "$ac_err"; then
4602 rm -rf conftest*
4603 eval "ac_cv_header_$ac_safe=yes"
4604else
4605 echo "$ac_err" >&5
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4608 rm -rf conftest*
4609 eval "ac_cv_header_$ac_safe=no"
4610fi
4611rm -f conftest*
4612fi
4613if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4614 echo "$ac_t""yes" 1>&6
4615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4616 cat >> confdefs.h <<EOF
4617#define $ac_tr_hdr 1
4618EOF
4619
4620else
4621 echo "$ac_t""no" 1>&6
4622fi
4623done
4624
4625 CPPFLAGS="$ac_save_CPPFLAGS"
Ian Pilcher563598d2001-05-16 20:56:05 +00004626 wine_cv_msg_freetype=no
4627 fi
4628fi
4629
4630
4631
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004632echo $ac_n "checking "for parport header/ppdev.h"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004633echo "configure:4634: checking "for parport header/ppdev.h"" >&5
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004634if eval "test \"`echo '$''{'ac_cv_c_ppdev'+set}'`\" = set"; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004635 echo $ac_n "(cached) $ac_c" 1>&6
4636else
4637 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004638#line 4639 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004639#include "confdefs.h"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004640#include <linux/ppdev.h>
4641int main() {
4642ioctl (1,PPCLAIM,0)
4643; return 0; }
4644EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004645if { (eval echo configure:4646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004646 rm -rf conftest*
4647 ac_cv_c_ppdev="yes"
4648else
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -rf conftest*
4652 ac_cv_c_ppdev="no"
4653fi
4654rm -f conftest*
4655
4656fi
4657
4658echo "$ac_t""$ac_cv_c_ppdev" 1>&6
4659if test "$ac_cv_c_ppdev" = "yes"
4660then
4661 cat >> confdefs.h <<\EOF
4662#define HAVE_PPDEV 1
4663EOF
4664
4665fi
4666
4667echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004668echo "configure:4669: checking "for GNU style IPX support"" >&5
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004669if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4671else
4672 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004673#line 4674 "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00004674#include "confdefs.h"
Pavel Roskin94d99641998-12-26 11:52:51 +00004675#include <sys/socket.h>
4676 #include <netipx/ipx.h>
4677int main() {
4678((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4679; return 0; }
4680EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004681if { (eval echo configure:4682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004682 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004683 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004684else
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4687 rm -rf conftest*
4688 ac_cv_c_ipx_gnu="no"
4689fi
4690rm -f conftest*
4691
4692fi
4693
4694echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004695if test "$ac_cv_c_ipx_gnu" = "yes"
4696then
4697 cat >> confdefs.h <<\EOF
4698#define HAVE_IPX_GNU 1
4699EOF
4700
4701fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004702
4703if test "$ac_cv_c_ipx_gnu" = "no"
4704then
4705 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004706echo "configure:4707: checking "for linux style IPX support"" >&5
Pavel Roskin94d99641998-12-26 11:52:51 +00004707if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4709else
4710 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004711#line 4712 "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00004712#include "confdefs.h"
4713#include <sys/socket.h>
4714 #include <asm/types.h>
4715 #include <linux/ipx.h>
4716int main() {
4717((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4718; return 0; }
4719EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004720if { (eval echo configure:4721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Pavel Roskin94d99641998-12-26 11:52:51 +00004721 rm -rf conftest*
Aaron Hopec23872d2000-01-15 23:43:21 +00004722 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00004723else
4724 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4726 rm -rf conftest*
4727 ac_cv_c_ipx_linux="no"
4728fi
4729rm -f conftest*
4730
4731fi
4732
4733echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
Aaron Hopec23872d2000-01-15 23:43:21 +00004734 if test "$ac_cv_c_ipx_linux" = "yes"
4735 then
4736 cat >> confdefs.h <<\EOF
4737#define HAVE_IPX_LINUX 1
4738EOF
4739
4740 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00004741fi
4742
Todd Vierlingecc76691998-12-15 17:49:02 +00004743for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004744do
4745ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4746echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004747echo "configure:4748: checking for $ac_hdr" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004748if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4750else
4751 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004752#line 4753 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004753#include "confdefs.h"
4754#include <$ac_hdr>
4755EOF
4756ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004757{ (eval echo configure:4758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00004758ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004759if test -z "$ac_err"; then
4760 rm -rf conftest*
4761 eval "ac_cv_header_$ac_safe=yes"
4762else
4763 echo "$ac_err" >&5
4764 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
4766 rm -rf conftest*
4767 eval "ac_cv_header_$ac_safe=no"
4768fi
4769rm -f conftest*
4770fi
4771if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4772 echo "$ac_t""yes" 1>&6
4773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4774 cat >> confdefs.h <<EOF
4775#define $ac_tr_hdr 1
4776EOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004777 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004778else
4779 echo "$ac_t""no" 1>&6
4780fi
4781done
4782
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004783
4784echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004785echo "configure:4786: checking "for Open Sound System"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004786if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4788else
4789 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004790#line 4791 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004791#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004792
Todd Vierlingecc76691998-12-15 17:49:02 +00004793 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004794 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004795 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004796 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00004797 #elif defined(HAVE_SOUNDCARD_H)
4798 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004799 #endif
4800
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004801int main() {
4802
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004803
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00004804/* check for one of the Open Sound System specific SNDCTL_ defines */
4805#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004806#error No open sound system
4807#endif
4808
4809; return 0; }
4810EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004811if { (eval echo configure:4812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00004812 rm -rf conftest*
4813 ac_cv_c_opensoundsystem="yes"
4814else
4815 echo "configure: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 rm -rf conftest*
4818 ac_cv_c_opensoundsystem="no"
4819fi
4820rm -f conftest*
4821fi
4822
4823echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4824
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00004825if test "$ac_cv_c_opensoundsystem" = "yes"
4826then
4827 cat >> confdefs.h <<\EOF
4828#define HAVE_OSS 1
4829EOF
4830
4831fi
4832
Eric Pouech338d3b21999-05-22 18:52:21 +00004833echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004834echo "configure:4835: checking "for Open Sound System/MIDI interface"" >&5
Eric Pouech338d3b21999-05-22 18:52:21 +00004835if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4837else
4838 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004839#line 4840 "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00004840#include "confdefs.h"
4841
4842 #if defined(HAVE_SYS_SOUNDCARD_H)
4843 #include <sys/soundcard.h>
4844 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4845 #include <machine/soundcard.h>
4846 #elif defined(HAVE_SOUNDCARD_H)
4847 #include <soundcard.h>
4848 #endif
4849
4850int main() {
4851
4852
4853/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4854#if !defined(SNDCTL_SEQ_SYNC)
4855#error No open sound system MIDI interface
4856#endif
4857
4858; return 0; }
4859EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004860if { (eval echo configure:4861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00004861 rm -rf conftest*
4862 ac_cv_c_opensoundsystem_midi="yes"
4863else
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4866 rm -rf conftest*
4867 ac_cv_c_opensoundsystem_midi="no"
4868fi
4869rm -f conftest*
4870fi
4871
4872echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4873
4874if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4875then
4876 cat >> confdefs.h <<\EOF
4877#define HAVE_OSS_MIDI 1
4878EOF
4879
4880fi
4881
Alexandre Julliard641ee761997-08-04 16:34:36 +00004882if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4883
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004884
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00004885echo $ac_n "checking "whether mmap64 works defined as mmap"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004886echo "configure:4887: checking "whether mmap64 works defined as mmap"" >&5
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00004887if eval "test \"`echo '$''{'ac_cv_mmap64_works'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4889else
4890 if test "$cross_compiling" = yes; then
4891 ac_cv_mmap64_works="no"
4892else
4893 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004894#line 4895 "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00004895#include "confdefs.h"
4896
4897 #define _FILE_OFFSET_BITS 64
4898 #include <stdio.h>
4899 #include <unistd.h>
4900 #include <fcntl.h>
4901 #include <sys/mman.h>
4902 #include <errno.h>
4903
4904 int main(int argc,char **argv) {
4905 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
4906 if (fd == -1) exit(1);
4907
4908 unlink("conftest.map");
4909
4910 write(fd,"test",4);
4911
4912 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
4913 (errno == EINVAL)
4914 ) {
4915 exit(1);
4916 }
4917 close(fd);
4918 fprintf(stderr,"success!\n");
4919 exit(0);
4920 }
4921
4922
4923EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004924if { (eval echo configure:4925: \"$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 +00004925then
4926 ac_cv_mmap64_works="yes"
4927else
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4930 rm -fr conftest*
4931 ac_cv_mmap64_works="no"
4932fi
4933rm -fr conftest*
4934fi
4935
4936fi
4937
4938echo "$ac_t""$ac_cv_mmap64_works" 1>&6
4939
4940if test "$ac_cv_mmap64_works" = "yes"
4941then
4942 cat >> confdefs.h <<\EOF
4943#define _FILE_OFFSET_BITS 64
4944EOF
4945
4946fi
4947
4948
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004949if test "x${GCC}" = "xyes"
4950then
4951 CFLAGS="$CFLAGS -Wall"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004952 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004953echo "configure:4954: checking "for gcc strength-reduce bug"" >&5
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004954if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4956else
4957 if test "$cross_compiling" = yes; then
4958 ac_cv_c_gcc_strength_bug="yes"
4959else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004960 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004961#line 4962 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004962#include "confdefs.h"
4963
Eric Pouech5aee80f2000-11-11 00:31:39 +00004964int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004965int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00004966 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004967 unsigned int B = 3;
4968 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00004969 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00004970 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
4971 L[i] = 4;
4972
4973 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004974}
4975EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004976if { (eval echo configure:4977: \"$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 +00004977then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004978 ac_cv_c_gcc_strength_bug="no"
4979else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4982 rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004983 ac_cv_c_gcc_strength_bug="yes"
4984fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004985rm -fr conftest*
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004986fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004987
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00004988fi
4989
4990echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4991 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4992 then
4993 CFLAGS="$CFLAGS -fno-strength-reduce"
4994 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00004995
4996 echo $ac_n "checking "for gcc -mpreferred-stack-boundary=2 support"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00004997echo "configure:4998: checking "for gcc -mpreferred-stack-boundary=2 support"" >&5
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00004998if eval "test \"`echo '$''{'ac_cv_c_gcc_stack_boundary'+set}'`\" = set"; then
4999 echo $ac_n "(cached) $ac_c" 1>&6
5000else
5001 saved_cflags=$CFLAGS
5002 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5003 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005004#line 5005 "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005005#include "confdefs.h"
5006
5007int main() {
5008return 0
5009; return 0; }
5010EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005011if { (eval echo configure:5012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00005012 rm -rf conftest*
5013 ac_cv_c_gcc_stack_boundary="yes"
5014else
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5017 rm -rf conftest*
5018 ac_cv_c_gcc_stack_boundary="no"
5019fi
5020rm -f conftest*
5021 CFLAGS=$saved_cflags
5022
5023fi
5024
5025echo "$ac_t""$ac_cv_c_gcc_stack_boundary" 1>&6
5026 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
5027 then
5028 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
5029 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00005030fi
5031
5032
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005033echo $ac_n "checking "whether .type must sit inside a .def directive"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005034echo "configure:5035: checking "whether .type must sit inside a .def directive"" >&5
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005035if eval "test \"`echo '$''{'ac_cv_c_type_in_def'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5037else
5038 saved_libs=$LIBS
5039LIBS="conftest_asm.s $LIBS"
5040cat > conftest_asm.s <<EOF
5041 .globl _ac_test
5042 .def _ac_test; .scl 2; .type 32; .endef
5043_ac_test:
5044 .long 0
5045EOF
5046cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005047#line 5048 "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005048#include "confdefs.h"
5049
5050int main() {
5051
5052; return 0; }
5053EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005054if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00005055 rm -rf conftest*
5056 ac_cv_c_type_in_def="yes"
5057else
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5060 rm -rf conftest*
5061 ac_cv_c_type_in_def="no"
5062fi
5063rm -f conftest*
5064LIBS=$saved_libs
5065fi
5066
5067echo "$ac_t""$ac_cv_c_type_in_def" 1>&6
5068if test "$ac_cv_c_type_in_def" = "yes"
5069then
5070 cat >> confdefs.h <<\EOF
5071#define NEED_TYPE_IN_DEF 1
5072EOF
5073
5074fi
5075
5076
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005077echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005078echo "configure:5079: checking "whether external symbols need an underscore prefix"" >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005079if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5081else
5082 saved_libs=$LIBS
5083LIBS="conftest_asm.s $LIBS"
5084cat > conftest_asm.s <<EOF
5085 .globl _ac_test
5086_ac_test:
5087 .long 0
5088EOF
5089cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005090#line 5091 "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005091#include "confdefs.h"
5092extern int ac_test;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005093int main() {
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005094if (ac_test) return 1
5095; return 0; }
5096EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005097if { (eval echo configure:5098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005098 rm -rf conftest*
5099 ac_cv_c_extern_prefix="yes"
5100else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005101 echo "configure: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005103 rm -rf conftest*
5104 ac_cv_c_extern_prefix="no"
5105fi
5106rm -f conftest*
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00005107LIBS=$saved_libs
5108fi
5109
5110echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
5111if test "$ac_cv_c_extern_prefix" = "yes"
5112then
5113 cat >> confdefs.h <<\EOF
5114#define NEED_UNDERSCORE_PREFIX 1
5115EOF
5116
5117fi
5118
5119
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005120echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005121echo "configure:5122: checking "whether assembler accepts .string"" >&5
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005122if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5124else
5125 saved_libs=$LIBS
5126LIBS="conftest_asm.s $LIBS"
5127cat > conftest_asm.s <<EOF
5128 .string "test"
5129EOF
5130cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005131#line 5132 "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005132#include "confdefs.h"
5133
5134int main() {
5135
5136; return 0; }
5137EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005138if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00005139 rm -rf conftest*
5140 ac_cv_c_asm_string="yes"
5141else
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5144 rm -rf conftest*
5145 ac_cv_c_asm_string="no"
5146fi
5147rm -f conftest*
5148LIBS=$saved_libs
5149fi
5150
5151echo "$ac_t""$ac_cv_c_asm_string" 1>&6
5152if test "$ac_cv_c_asm_string" = "yes"
5153then
5154 cat >> confdefs.h <<\EOF
5155#define HAVE_ASM_STRING 1
5156EOF
5157
5158fi
5159
5160
Todd Vierling4b992b01998-12-15 15:26:27 +00005161LDSHARED=""
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005162LDDLLFLAGS=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005163if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005164then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005165 echo $ac_n "checking "whether we can build a GNU style ELF dll"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005166echo "configure:5167: checking "whether we can build a GNU style ELF dll"" >&5
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005167if eval "test \"`echo '$''{'ac_cv_c_dll_gnuelf'+set}'`\" = set"; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005168 echo $ac_n "(cached) $ac_c" 1>&6
5169else
5170 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005171 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005172 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005173#line 5174 "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005174#include "confdefs.h"
5175
5176int main() {
5177return 1
5178; return 0; }
5179EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005180if { (eval echo configure:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005181 rm -rf conftest*
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005182 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005183else
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5186 rm -rf conftest*
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005187 ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005188fi
5189rm -f conftest*
5190 CFLAGS=$saved_cflags
5191
5192fi
5193
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005194echo "$ac_t""$ac_cv_c_dll_gnuelf" 1>&6
5195 if test "$ac_cv_c_dll_gnuelf" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005196 then
Jeremy Whitec7b4ed72001-07-14 00:49:50 +00005197 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005198 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005199 else
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005200 echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005201echo "configure:5202: checking whether we can build a UnixWare (Solaris) dll" >&5
Ron Recorde977d6c1999-09-05 12:32:05 +00005202if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
Todd Vierling4b992b01998-12-15 15:26:27 +00005203 echo $ac_n "(cached) $ac_c" 1>&6
5204else
5205 saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005206 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +00005207 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005208#line 5209 "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +00005209#include "confdefs.h"
5210
5211int main() {
5212return 1
5213; return 0; }
5214EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005215if { (eval echo configure:5216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Ron Recorde977d6c1999-09-05 12:32:05 +00005216 rm -rf conftest*
5217 ac_cv_c_dll_unixware="yes"
5218else
5219 echo "configure: failed program was:" >&5
5220 cat conftest.$ac_ext >&5
5221 rm -rf conftest*
5222 ac_cv_c_dll_unixware="no"
5223fi
5224rm -f conftest*
5225 CFLAGS=$saved_cflags
5226
5227fi
5228
5229echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
5230 if test "$ac_cv_c_dll_unixware" = "yes"
5231 then
Jeremy Whitec7b4ed72001-07-14 00:49:50 +00005232 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005233 LDDLLFLAGS="-Wl,-B,symbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +00005234 fi
5235 fi
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +00005236 if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no"
Todd Vierling4b992b01998-12-15 15:26:27 +00005237 then
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005238 LIBEXT="a"
5239 if test "$DLLWRAP" = "dllwrap"; then
5240 if test "$CYGWIN" = "yes"; then
5241 echo "*** use dllwrap for building shared library."
5242 LIBEXT="dll"
5243 fi
5244 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005245 fi
5246fi
5247
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005248if test "$LIBEXT" = "a"; then
5249 echo "*** It is currently not possible to build WINE without shared"
5250 echo "*** library (.so) support to allow transparent switch between .so"
5251 echo "*** and .dll files."
5252 echo "*** If you are using Linux, you will need a newer binutils."
5253 exit 1
5254fi
5255
Alexandre Julliard0adad952000-01-26 01:45:58 +00005256DLLFLAGS=""
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005257LDPATH=""
Alexandre Julliard0adad952000-01-26 01:45:58 +00005258
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005259if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005260 DLLFLAGS="-fPIC"
Alexandre Julliardb0182392000-12-06 00:04:10 +00005261 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005262 LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
5263elif test "$LIBEXT" = "dll"; then
5264 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
5265 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
5266 LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
Alexandre Julliard0adad952000-01-26 01:45:58 +00005267else
Alexandre Julliardb0182392000-12-06 00:04:10 +00005268 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005269 echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005270echo "configure:5271: checking whether the linker supports --[no]-whole-archive (Linux)" >&5
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005271if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then
5272 echo $ac_n "(cached) $ac_c" 1>&6
5273else
5274 saved_cflags=$CFLAGS
5275 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
5276 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005277#line 5278 "configure"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005278#include "confdefs.h"
5279
5280int main() {
5281return 1
5282; return 0; }
5283EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005284if { (eval echo configure:5285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005285 rm -rf conftest*
5286 ac_cv_c_whole_archive="yes"
5287else
5288 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5
5290 rm -rf conftest*
5291 ac_cv_c_whole_archive="no"
5292fi
5293rm -f conftest*
5294 CFLAGS=$saved_cflags
5295
5296fi
5297
5298echo "$ac_t""$ac_cv_c_whole_archive" 1>&6
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005299 if test "$ac_cv_c_whole_archive" = "yes"
5300 then
5301 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
5302 else
5303 echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005304echo "configure:5305: checking whether the linker supports -z {all,default}extract (Linux)" >&5
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005305if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5307else
5308 saved_cflags=$CFLAGS
5309 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
5310 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005311#line 5312 "configure"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005312#include "confdefs.h"
5313
5314int main() {
5315return 1
5316; return 0; }
5317EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005318if { (eval echo configure:5319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005319 rm -rf conftest*
5320 ac_cv_c_allextract="yes"
5321else
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 rm -rf conftest*
5325 ac_cv_c_allextract="no"
5326fi
5327rm -f conftest*
5328 CFLAGS=$saved_cflags
5329
5330fi
5331
5332echo "$ac_t""$ac_cv_c_allextract" 1>&6
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005333 if test "$ac_cv_c_allextract" = "yes"
5334 then
5335 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +00005336 fi
Alexandre Julliard0adad952000-01-26 01:45:58 +00005337 fi
5338fi
5339
5340
5341
5342
5343
5344
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005345
Alexandre Julliard4354cda2000-11-09 20:27:45 +00005346
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00005347
Alexandre Julliard598412e2001-01-17 20:22:22 +00005348
5349
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005350wine_cv_libc_reentrant=no
Alexandre Julliard598412e2001-01-17 20:22:22 +00005351
5352 echo $ac_n "checking for reentrant libc: __errno_location""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005353echo "configure:5354: checking for reentrant libc: __errno_location" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005354if eval "test \"`echo '$''{'wine_cv_libc_r___errno_location'+set}'`\" = set"; then
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005355 echo $ac_n "(cached) $ac_c" 1>&6
5356else
5357 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005358 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005359else
5360 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005361#line 5362 "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005362#include "confdefs.h"
5363int myerrno = 0;
5364char buf[256];
5365int *__errno_location(){return &myerrno;}
5366main(){connect(0,buf,255); exit(!myerrno);}
5367EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005368if { (eval echo configure:5369: \"$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 +00005369then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005370 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005371else
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005375 wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005376fi
5377rm -fr conftest*
5378fi
Marcus Meissnerc2606381999-04-11 15:20:29 +00005379
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005380
5381fi
5382
Alexandre Julliard598412e2001-01-17 20:22:22 +00005383echo "$ac_t""$wine_cv_libc_r___errno_location" 1>&6
5384if test "$wine_cv_libc_r___errno_location" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005385then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005386 wine_cv_libc_reentrant=__errno_location
5387fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005388
5389
5390 echo $ac_n "checking for reentrant libc: __error""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005391echo "configure:5392: checking for reentrant libc: __error" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005392if eval "test \"`echo '$''{'wine_cv_libc_r___error'+set}'`\" = set"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005393 echo $ac_n "(cached) $ac_c" 1>&6
5394else
5395 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005396 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00005397else
5398 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005399#line 5400 "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +00005400#include "confdefs.h"
5401int myerrno = 0;
5402char buf[256];
5403int *__error(){return &myerrno;}
5404main(){connect(0,buf,255); exit(!myerrno);}
5405EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005406if { (eval echo configure:5407: \"$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 +00005407then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005408 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +00005409else
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5412 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005413 wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +00005414fi
5415rm -fr conftest*
5416fi
5417
Marcus Meissnerc2606381999-04-11 15:20:29 +00005418
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005419fi
5420
Alexandre Julliard598412e2001-01-17 20:22:22 +00005421echo "$ac_t""$wine_cv_libc_r___error" 1>&6
5422if test "$wine_cv_libc_r___error" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005423then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005424 wine_cv_libc_reentrant=__error
5425fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005426
5427
5428 echo $ac_n "checking for reentrant libc: ___errno""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005429echo "configure:5430: checking for reentrant libc: ___errno" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005430if eval "test \"`echo '$''{'wine_cv_libc_r____errno'+set}'`\" = set"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005431 echo $ac_n "(cached) $ac_c" 1>&6
5432else
5433 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005434 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005435else
5436 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005437#line 5438 "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005438#include "confdefs.h"
5439int myerrno = 0;
5440char buf[256];
5441int *___errno(){return &myerrno;}
5442main(){connect(0,buf,255); exit(!myerrno);}
5443EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005444if { (eval echo configure:5445: \"$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 +00005445then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005446 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005447else
5448 echo "configure: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5450 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005451 wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005452fi
5453rm -fr conftest*
5454fi
5455
5456
5457fi
5458
Alexandre Julliard598412e2001-01-17 20:22:22 +00005459echo "$ac_t""$wine_cv_libc_r____errno" 1>&6
5460if test "$wine_cv_libc_r____errno" = "yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005461then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005462 wine_cv_libc_reentrant=___errno
5463fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005464
5465
5466 echo $ac_n "checking for reentrant libc: __thr_errno""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005467echo "configure:5468: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliard598412e2001-01-17 20:22:22 +00005468if eval "test \"`echo '$''{'wine_cv_libc_r___thr_errno'+set}'`\" = set"; then
Ron Recorde977d6c1999-09-05 12:32:05 +00005469 echo $ac_n "(cached) $ac_c" 1>&6
5470else
5471 if test "$cross_compiling" = yes; then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005472 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00005473else
5474 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005475#line 5476 "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +00005476#include "confdefs.h"
5477int myerrno = 0;
5478char buf[256];
5479int *__thr_errno(){return &myerrno;}
5480main(){connect(0,buf,255); exit(!myerrno);}
5481EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005482if { (eval echo configure:5483: \"$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 +00005483then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005484 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +00005485else
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5488 rm -fr conftest*
Alexandre Julliard598412e2001-01-17 20:22:22 +00005489 wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +00005490fi
5491rm -fr conftest*
5492fi
5493
5494
5495fi
5496
Alexandre Julliard598412e2001-01-17 20:22:22 +00005497echo "$ac_t""$wine_cv_libc_r___thr_errno" 1>&6
5498if test "$wine_cv_libc_r___thr_errno" = "yes"
Ron Recorde977d6c1999-09-05 12:32:05 +00005499then
Ron Recorde977d6c1999-09-05 12:32:05 +00005500 wine_cv_libc_reentrant=__thr_errno
5501fi
Alexandre Julliard598412e2001-01-17 20:22:22 +00005502
5503
Bang Jun-Young33dff342001-05-07 18:21:10 +00005504 echo $ac_n "checking for reentrant libc: __errno""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005505echo "configure:5506: checking for reentrant libc: __errno" >&5
Bang Jun-Young33dff342001-05-07 18:21:10 +00005506if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5508else
5509 if test "$cross_compiling" = yes; then
5510 wine_cv_libc_r___errno=yes
5511else
5512 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005513#line 5514 "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +00005514#include "confdefs.h"
5515int myerrno = 0;
5516char buf[256];
5517int *__errno(){return &myerrno;}
5518main(){connect(0,buf,255); exit(!myerrno);}
5519EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005520if { (eval echo configure:5521: \"$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 +00005521then
5522 wine_cv_libc_r___errno=yes
5523else
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5526 rm -fr conftest*
5527 wine_cv_libc_r___errno=no
5528fi
5529rm -fr conftest*
5530fi
5531
5532
5533fi
5534
5535echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
5536if test "$wine_cv_libc_r___errno" = "yes"
5537then
5538 wine_cv_libc_reentrant=__errno
5539fi
5540
5541
Alexandre Julliard598412e2001-01-17 20:22:22 +00005542if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005543then
Alexandre Julliard598412e2001-01-17 20:22:22 +00005544 cat >> confdefs.h <<EOF
5545#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005546EOF
5547
5548fi
5549
5550
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005551if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +00005552then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005553echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005554echo "configure:5555: checking "for reentrant X libraries"" >&5
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005555if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5557else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005558 if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005559 then
5560 wine_cv_x_reentrant=no
5561 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005562 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005563 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +00005564 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005565 libX11_check="-D $dir/libX11.so"
5566 break 1
5567 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +00005568 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005569 libX11_check="$dir/libX11.a"
5570 break 1
5571 fi
5572 done
5573 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005574 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +00005575 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005576 wine_cv_x_reentrant=yes
5577 else
5578 wine_cv_x_reentrant=no
5579 fi
5580 else
5581 wine_cv_x_reentrant=unknown
5582 fi
5583 fi
5584fi
5585
5586echo "$ac_t""$wine_cv_x_reentrant" 1>&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005587else
5588 wine_cv_x_reentrant=no
5589fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00005590if test "$wine_cv_x_reentrant" = "no"
5591then
5592 cat >> confdefs.h <<\EOF
5593#define NO_REENTRANT_X11 1
5594EOF
5595
5596fi
5597
5598
Francois Gougetae5e93e1999-11-13 23:02:06 +00005599
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005600# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5601# for constant arguments. Useless!
5602echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005603echo "configure:5604: checking for working alloca.h" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005604if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5605 echo $ac_n "(cached) $ac_c" 1>&6
5606else
5607 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005608#line 5609 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005609#include "confdefs.h"
5610#include <alloca.h>
5611int main() {
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00005612char *p = alloca(2 * sizeof(int));
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005613; return 0; }
5614EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005615if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005616 rm -rf conftest*
5617 ac_cv_header_alloca_h=yes
5618else
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5621 rm -rf conftest*
5622 ac_cv_header_alloca_h=no
5623fi
5624rm -f conftest*
5625fi
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005626
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005627echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5628if test $ac_cv_header_alloca_h = yes; then
5629 cat >> confdefs.h <<\EOF
5630#define HAVE_ALLOCA_H 1
5631EOF
5632
5633fi
5634
5635echo $ac_n "checking for alloca""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005636echo "configure:5637: checking for alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005637if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5639else
5640 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005641#line 5642 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005642#include "confdefs.h"
5643
5644#ifdef __GNUC__
5645# define alloca __builtin_alloca
5646#else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005647# ifdef _MSC_VER
5648# include <malloc.h>
5649# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005650# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005651# if HAVE_ALLOCA_H
5652# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005653# else
Eric Pouech18ad24a2000-01-16 22:16:33 +00005654# ifdef _AIX
5655 #pragma alloca
5656# else
5657# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005658char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +00005659# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005660# endif
5661# endif
5662# endif
5663#endif
5664
5665int main() {
5666char *p = (char *) alloca(1);
5667; return 0; }
5668EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005669if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005670 rm -rf conftest*
5671 ac_cv_func_alloca_works=yes
5672else
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 rm -rf conftest*
5676 ac_cv_func_alloca_works=no
5677fi
5678rm -f conftest*
5679fi
5680
5681echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5682if test $ac_cv_func_alloca_works = yes; then
5683 cat >> confdefs.h <<\EOF
5684#define HAVE_ALLOCA 1
5685EOF
5686
5687fi
5688
5689if test $ac_cv_func_alloca_works = no; then
5690 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5691 # that cause trouble. Some versions do not even contain alloca or
5692 # contain a buggy version. If you still want to use their alloca,
5693 # use ar to extract alloca.o from them instead of compiling alloca.c.
Eric Pouech18ad24a2000-01-16 22:16:33 +00005694 ALLOCA=alloca.${ac_objext}
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005695 cat >> confdefs.h <<\EOF
5696#define C_ALLOCA 1
5697EOF
5698
5699
5700echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005701echo "configure:5702: checking whether alloca needs Cray hooks" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005702if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5704else
5705 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005706#line 5707 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005707#include "confdefs.h"
5708#if defined(CRAY) && ! defined(CRAY2)
5709webecray
5710#else
5711wenotbecray
5712#endif
5713
5714EOF
5715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5716 egrep "webecray" >/dev/null 2>&1; then
5717 rm -rf conftest*
5718 ac_cv_os_cray=yes
5719else
5720 rm -rf conftest*
5721 ac_cv_os_cray=no
5722fi
5723rm -f conftest*
5724
5725fi
5726
5727echo "$ac_t""$ac_cv_os_cray" 1>&6
5728if test $ac_cv_os_cray = yes; then
5729for ac_func in _getb67 GETB67 getb67; do
5730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005731echo "configure:5732: checking for $ac_func" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005732if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5734else
5735 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005736#line 5737 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005737#include "confdefs.h"
5738/* System header to define __stub macros and hopefully few prototypes,
5739 which can conflict with char $ac_func(); below. */
5740#include <assert.h>
5741/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005742/* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005744char $ac_func();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005745
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005746int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005747
5748/* The GNU C library defines this for functions which it implements
5749 to always fail with ENOSYS. Some functions are actually named
5750 something starting with __ and the normal name is an alias. */
5751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5752choke me
5753#else
5754$ac_func();
5755#endif
5756
5757; return 0; }
5758EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005759if { (eval echo configure:5760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005760 rm -rf conftest*
5761 eval "ac_cv_func_$ac_func=yes"
5762else
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5765 rm -rf conftest*
5766 eval "ac_cv_func_$ac_func=no"
5767fi
5768rm -f conftest*
5769fi
5770
5771if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5772 echo "$ac_t""yes" 1>&6
5773 cat >> confdefs.h <<EOF
5774#define CRAY_STACKSEG_END $ac_func
5775EOF
5776
5777 break
5778else
5779 echo "$ac_t""no" 1>&6
5780fi
5781
5782done
5783fi
5784
5785echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005786echo "configure:5787: checking stack direction for C alloca" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005787if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5788 echo $ac_n "(cached) $ac_c" 1>&6
5789else
5790 if test "$cross_compiling" = yes; then
5791 ac_cv_c_stack_direction=0
5792else
5793 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005794#line 5795 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005795#include "confdefs.h"
5796find_stack_direction ()
5797{
5798 static char *addr = 0;
5799 auto char dummy;
5800 if (addr == 0)
5801 {
5802 addr = &dummy;
5803 return find_stack_direction ();
5804 }
5805 else
5806 return (&dummy > addr) ? 1 : -1;
5807}
5808main ()
5809{
5810 exit (find_stack_direction() < 0);
5811}
5812EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005813if { (eval echo configure:5814: \"$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 +00005814then
5815 ac_cv_c_stack_direction=1
5816else
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819 rm -fr conftest*
5820 ac_cv_c_stack_direction=-1
5821fi
5822rm -fr conftest*
5823fi
5824
5825fi
5826
5827echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5828cat >> confdefs.h <<EOF
5829#define STACK_DIRECTION $ac_cv_c_stack_direction
5830EOF
5831
5832fi
5833
5834for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +00005835 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005836 _lwp_create \
5837 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +00005838 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +00005839 finite \
5840 fpclass \
Marcus Meissner3f1ed522001-05-14 20:09:37 +00005841 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005842 getnetbyaddr \
5843 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005844 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005845 getprotobyname \
5846 getprotobynumber \
Dimitrie O. Paun1ec253d2000-12-01 20:47:11 +00005847 getrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005848 getservbyport \
5849 getsockopt \
5850 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +00005851 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +00005852 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005853 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +00005854 mmap \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005855 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005856 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005857 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005858 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005859 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +00005860 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005861 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005862 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +00005863 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005864 tcgetattr \
5865 timegm \
5866 usleep \
5867 vfscanf \
5868 wait4 \
5869 waitpid \
5870
5871do
5872echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005873echo "configure:5874: checking for $ac_func" >&5
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005874if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5876else
5877 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005878#line 5879 "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +00005879#include "confdefs.h"
5880/* System header to define __stub macros and hopefully few prototypes,
5881 which can conflict with char $ac_func(); below. */
5882#include <assert.h>
5883/* Override any gcc2 internal prototype to avoid an error. */
5884/* We use char because int might match the return type of a gcc2
5885 builtin and then its argument prototype would still apply. */
5886char $ac_func();
5887
5888int main() {
5889
5890/* The GNU C library defines this for functions which it implements
5891 to always fail with ENOSYS. Some functions are actually named
5892 something starting with __ and the normal name is an alias. */
5893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5894choke me
5895#else
5896$ac_func();
5897#endif
5898
5899; return 0; }
5900EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005901if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005902 rm -rf conftest*
5903 eval "ac_cv_func_$ac_func=yes"
5904else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005905 echo "configure: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005907 rm -rf conftest*
5908 eval "ac_cv_func_$ac_func=no"
5909fi
5910rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005911fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00005912
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005913if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5914 echo "$ac_t""yes" 1>&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00005915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005916 cat >> confdefs.h <<EOF
5917#define $ac_tr_func 1
5918EOF
5919
5920else
5921 echo "$ac_t""no" 1>&6
5922fi
5923done
5924
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005925
5926
5927for ac_hdr in \
Patrik Stridvall96336321999-10-24 22:13:47 +00005928 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005929 arpa/nameser.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005930 elf.h \
5931 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005932 ieeefp.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005933 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +00005934 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005935 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005936 linux/cdrom.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +00005937 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +00005938 linux/joystick.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005939 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005940 net/if.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +00005941 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005942 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00005943 netinet/in_systm.h \
5944 netinet/ip.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005945 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +00005946 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005947 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005948 sched.h \
5949 socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005950 strings.h \
5951 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +00005952 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005953 sys/file.h \
5954 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005955 sys/ipc.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005956 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +00005957 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005958 sys/modem.h \
5959 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005960 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005961 sys/param.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00005962 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +00005963 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +00005964 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005965 sys/shm.h \
5966 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005967 sys/sockio.h \
5968 sys/statfs.h \
5969 sys/strtio.h \
5970 sys/syscall.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +00005971 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005972 sys/wait.h \
5973 sys/v86.h \
5974 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005975 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +00005976 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005977 syscall.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +00005978 ucontext.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +00005979
Alexandre Julliard02e90081998-01-04 17:49:09 +00005980do
5981ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5982echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005983echo "configure:5984: checking for $ac_hdr" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +00005984if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5985 echo $ac_n "(cached) $ac_c" 1>&6
5986else
5987 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005988#line 5989 "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +00005989#include "confdefs.h"
5990#include <$ac_hdr>
5991EOF
5992ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005993{ (eval echo configure:5994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00005994ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliard02e90081998-01-04 17:49:09 +00005995if test -z "$ac_err"; then
5996 rm -rf conftest*
5997 eval "ac_cv_header_$ac_safe=yes"
5998else
5999 echo "$ac_err" >&5
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6002 rm -rf conftest*
6003 eval "ac_cv_header_$ac_safe=no"
6004fi
6005rm -f conftest*
6006fi
6007if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6008 echo "$ac_t""yes" 1>&6
6009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6010 cat >> confdefs.h <<EOF
6011#define $ac_tr_hdr 1
6012EOF
6013
6014else
6015 echo "$ac_t""no" 1>&6
6016fi
6017done
6018
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006019echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006020echo "configure:6021: checking whether stat file-mode macros are broken" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006021if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6023else
6024 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006025#line 6026 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006026#include "confdefs.h"
6027#include <sys/types.h>
6028#include <sys/stat.h>
6029
6030#if defined(S_ISBLK) && defined(S_IFDIR)
6031# if S_ISBLK (S_IFDIR)
6032You lose.
6033# endif
6034#endif
6035
6036#if defined(S_ISBLK) && defined(S_IFCHR)
6037# if S_ISBLK (S_IFCHR)
6038You lose.
6039# endif
6040#endif
6041
6042#if defined(S_ISLNK) && defined(S_IFREG)
6043# if S_ISLNK (S_IFREG)
6044You lose.
6045# endif
6046#endif
6047
6048#if defined(S_ISSOCK) && defined(S_IFREG)
6049# if S_ISSOCK (S_IFREG)
6050You lose.
6051# endif
6052#endif
6053
6054EOF
6055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6056 egrep "You lose" >/dev/null 2>&1; then
6057 rm -rf conftest*
6058 ac_cv_header_stat_broken=yes
6059else
6060 rm -rf conftest*
6061 ac_cv_header_stat_broken=no
6062fi
6063rm -f conftest*
6064
6065fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006066
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006067echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
6068if test $ac_cv_header_stat_broken = yes; then
6069 cat >> confdefs.h <<\EOF
6070#define STAT_MACROS_BROKEN 1
6071EOF
6072
6073fi
6074
Alexandre Julliard2487cce1999-04-18 14:43:16 +00006075
6076
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006077echo $ac_n "checking for working const""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006078echo "configure:6079: checking for working const" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006079if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6081else
6082 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006083#line 6084 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006084#include "confdefs.h"
6085
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006086int main() {
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006087
6088/* Ultrix mips cc rejects this. */
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00006089typedef int charset[2]; const charset x;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006090/* SunOS 4.1.1 cc rejects this. */
6091char const *const *ccp;
6092char **p;
6093/* NEC SVR4.0.2 mips cc rejects this. */
6094struct point {int x, y;};
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006095static struct point const zero = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006096/* AIX XL C 1.02.0.0 rejects this.
6097 It does not let you subtract one const X* pointer from another in an arm
6098 of an if-expression whose if-part is not a constant expression */
6099const char *g = "string";
6100ccp = &g + (g ? g-g : 0);
6101/* HPUX 7.0 cc rejects these. */
6102++ccp;
6103p = (char**) ccp;
6104ccp = (char const *const *) p;
6105{ /* SCO 3.2v4 cc rejects this. */
6106 char *t;
6107 char const *s = 0 ? (char *) 0 : (char const *) 0;
6108
6109 *t++ = 0;
6110}
6111{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6112 int x[] = {25, 17};
6113 const int *foo = &x[0];
6114 ++foo;
6115}
6116{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6117 typedef const int *iptr;
6118 iptr p = 0;
6119 ++p;
6120}
6121{ /* AIX XL C 1.02.0.0 rejects this saying
6122 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6123 struct s { int j; const int *ap[3]; };
6124 struct s *b; b->j = 5;
6125}
6126{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6127 const int foo = 10;
6128}
6129
6130; return 0; }
6131EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006132if { (eval echo configure:6133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006133 rm -rf conftest*
6134 ac_cv_c_const=yes
6135else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006138 rm -rf conftest*
6139 ac_cv_c_const=no
6140fi
6141rm -f conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006142fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006143
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006144echo "$ac_t""$ac_cv_c_const" 1>&6
6145if test $ac_cv_c_const = no; then
6146 cat >> confdefs.h <<\EOF
6147#define const
6148EOF
6149
6150fi
6151
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006152echo $ac_n "checking for inline""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006153echo "configure:6154: checking for inline" >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006154if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6155 echo $ac_n "(cached) $ac_c" 1>&6
6156else
6157 ac_cv_c_inline=no
6158for ac_kw in inline __inline__ __inline; do
6159 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006160#line 6161 "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006161#include "confdefs.h"
6162
6163int main() {
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00006164} $ac_kw foo() {
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006165; return 0; }
6166EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006167if { (eval echo configure:6168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +00006168 rm -rf conftest*
6169 ac_cv_c_inline=$ac_kw; break
6170else
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6173fi
6174rm -f conftest*
6175done
6176
6177fi
6178
6179echo "$ac_t""$ac_cv_c_inline" 1>&6
6180case "$ac_cv_c_inline" in
6181 inline | yes) ;;
6182 no) cat >> confdefs.h <<\EOF
6183#define inline
6184EOF
6185 ;;
6186 *) cat >> confdefs.h <<EOF
6187#define inline $ac_cv_c_inline
6188EOF
6189 ;;
6190esac
6191
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006192echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006193echo "configure:6194: checking for ANSI C header files" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006194if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6196else
6197 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006198#line 6199 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006199#include "confdefs.h"
6200#include <stdlib.h>
6201#include <stdarg.h>
6202#include <string.h>
6203#include <float.h>
6204EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00006205ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006206{ (eval echo configure:6207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00006207ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006208if test -z "$ac_err"; then
6209 rm -rf conftest*
6210 ac_cv_header_stdc=yes
6211else
6212 echo "$ac_err" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006215 rm -rf conftest*
6216 ac_cv_header_stdc=no
6217fi
6218rm -f conftest*
6219
6220if test $ac_cv_header_stdc = yes; then
6221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6222cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006223#line 6224 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006224#include "confdefs.h"
6225#include <string.h>
6226EOF
6227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 egrep "memchr" >/dev/null 2>&1; then
6229 :
6230else
6231 rm -rf conftest*
6232 ac_cv_header_stdc=no
6233fi
6234rm -f conftest*
6235
6236fi
6237
6238if test $ac_cv_header_stdc = yes; then
6239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6240cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006241#line 6242 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006242#include "confdefs.h"
6243#include <stdlib.h>
6244EOF
6245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6246 egrep "free" >/dev/null 2>&1; then
6247 :
6248else
6249 rm -rf conftest*
6250 ac_cv_header_stdc=no
6251fi
6252rm -f conftest*
6253
6254fi
6255
6256if test $ac_cv_header_stdc = yes; then
6257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6258if test "$cross_compiling" = yes; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006259 :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006260else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006261 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006262#line 6263 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006263#include "confdefs.h"
6264#include <ctype.h>
6265#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6266#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6267#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6268int main () { int i; for (i = 0; i < 256; i++)
6269if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6270exit (0); }
6271
6272EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006273if { (eval echo configure:6274: \"$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 +00006274then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006275 :
6276else
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006277 echo "configure: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6279 rm -fr conftest*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006280 ac_cv_header_stdc=no
6281fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006282rm -fr conftest*
6283fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006284
6285fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006286fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006287
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006288echo "$ac_t""$ac_cv_header_stdc" 1>&6
6289if test $ac_cv_header_stdc = yes; then
6290 cat >> confdefs.h <<\EOF
6291#define STDC_HEADERS 1
6292EOF
6293
6294fi
6295
6296echo $ac_n "checking for size_t""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006297echo "configure:6298: checking for size_t" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006298if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6299 echo $ac_n "(cached) $ac_c" 1>&6
6300else
6301 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006302#line 6303 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006303#include "confdefs.h"
6304#include <sys/types.h>
6305#if STDC_HEADERS
6306#include <stdlib.h>
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00006307#include <stddef.h>
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006308#endif
6309EOF
6310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006311 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 +00006312 rm -rf conftest*
6313 ac_cv_type_size_t=yes
6314else
6315 rm -rf conftest*
6316 ac_cv_type_size_t=no
6317fi
6318rm -f conftest*
6319
6320fi
6321echo "$ac_t""$ac_cv_type_size_t" 1>&6
6322if test $ac_cv_type_size_t = no; then
6323 cat >> confdefs.h <<\EOF
6324#define size_t unsigned
6325EOF
6326
6327fi
6328
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006329echo $ac_n "checking size of long long""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006330echo "configure:6331: checking size of long long" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006331if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6333else
6334 if test "$cross_compiling" = yes; then
6335 ac_cv_sizeof_long_long=0
6336else
6337 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006338#line 6339 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006339#include "confdefs.h"
6340#include <stdio.h>
Patrik Stridvall87f48fc2001-06-19 03:30:13 +00006341#include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006342main()
6343{
6344 FILE *f=fopen("conftestval", "w");
6345 if (!f) exit(1);
6346 fprintf(f, "%d\n", sizeof(long long));
6347 exit(0);
6348}
6349EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006350if { (eval echo configure:6351: \"$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 +00006351then
6352 ac_cv_sizeof_long_long=`cat conftestval`
6353else
6354 echo "configure: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6356 rm -fr conftest*
6357 ac_cv_sizeof_long_long=0
6358fi
6359rm -fr conftest*
6360fi
6361
6362fi
6363echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6364cat >> confdefs.h <<EOF
6365#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6366EOF
6367
6368
6369
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006370echo $ac_n "checking "whether linux/input.h is for real"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006371echo "configure:6372: checking "whether linux/input.h is for real"" >&5
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006372if eval "test \"`echo '$''{'wine_cv_linux_input_h'+set}'`\" = set"; then
6373 echo $ac_n "(cached) $ac_c" 1>&6
6374else
6375 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006376#line 6377 "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006377#include "confdefs.h"
6378
6379 #include <linux/input.h>
6380
6381int main() {
6382
6383 int foo = EVIOCGBIT(EV_ABS,42);
6384 int bar = BTN_PINKIE;
6385 int fortytwo = 42;
6386
6387; return 0; }
6388EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006389if { (eval echo configure:6390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +00006390 rm -rf conftest*
6391 wine_cv_linux_input_h=yes
6392else
6393 echo "configure: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 rm -rf conftest*
6396 wine_cv_linux_input_h=no
6397fi
6398rm -f conftest*
6399
6400fi
6401
6402echo "$ac_t""$wine_cv_linux_input_h" 1>&6
6403 if test "$wine_cv_linux_input_h" = "yes"
6404 then
6405 cat >> confdefs.h <<\EOF
6406#define HAVE_CORRECT_LINUXINPUT_H 1
6407EOF
6408
6409 fi
6410
Rein Klazesff7a61f2000-09-24 19:41:57 +00006411
6412echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006413echo "configure:6414: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5
Rein Klazesff7a61f2000-09-24 19:41:57 +00006414if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6416else
6417 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006418#line 6419 "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +00006419#include "confdefs.h"
6420
6421#include <netdb.h>
6422
6423int main() {
6424
6425 char *name=NULL;
6426 struct hostent he;
6427 struct hostent *result;
6428 char *buf=NULL;
6429 int bufsize=0;
6430 int res,errnr;
6431 char *addr=NULL;
6432 int addrlen=0;
6433 int addrtype=0;
6434 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
6435 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
6436
6437; return 0; }
6438EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006439if { (eval echo configure:6440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +00006440 rm -rf conftest*
6441 wine_cv_linux_gethostbyname_r_6=yes
6442else
6443 echo "configure: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6445 rm -rf conftest*
6446 wine_cv_linux_gethostbyname_r_6=no
6447
6448fi
6449rm -f conftest*
6450
6451fi
6452
6453echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6
6454 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
6455 then
6456 cat >> confdefs.h <<\EOF
6457#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
6458EOF
6459
6460 fi
6461
Marcus Meissner028e9a11999-08-04 15:07:56 +00006462if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006463then
Marcus Meissner028e9a11999-08-04 15:07:56 +00006464 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006465echo "configure:6466: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00006466if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006467 echo $ac_n "(cached) $ac_c" 1>&6
6468else
6469 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006470#line 6471 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006471#include "confdefs.h"
6472
Marcus Meissner028e9a11999-08-04 15:07:56 +00006473 #include <sys/ioctl.h>
6474 #include <linux/joystick.h>
6475
6476 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +00006477 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
6478 #error "no 2.2 header"
6479 #endif
Marcus Meissner028e9a11999-08-04 15:07:56 +00006480
6481int main() {
6482/*empty*/
6483; return 0; }
6484EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006485if { (eval echo configure:6486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +00006486 rm -rf conftest*
6487 wine_cv_linux_joystick_22_api=yes
6488else
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6491 rm -rf conftest*
6492 wine_cv_linux_joystick_22_api=no
6493fi
6494rm -f conftest*
6495
6496fi
6497
6498echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
Rein Klazes87d224a2000-04-24 17:33:49 +00006499 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +00006500 then
6501 cat >> confdefs.h <<\EOF
6502#define HAVE_LINUX_22_JOYSTICK_API 1
6503EOF
6504
6505 fi
6506fi
6507
6508
6509if test "$ac_cv_header_sys_vfs_h" = "yes"
6510then
6511 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006512echo "configure:6513: checking "whether sys/vfs.h defines statfs"" >&5
Marcus Meissner028e9a11999-08-04 15:07:56 +00006513if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6515else
6516 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006517#line 6518 "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +00006518#include "confdefs.h"
6519
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006520 #include <sys/types.h>
6521 #ifdef HAVE_SYS_PARAM_H
6522 # include <sys/param.h>
6523 #endif
6524 #include <sys/vfs.h>
6525
6526int main() {
6527
6528 struct statfs stfs;
6529
6530 memset(&stfs,0,sizeof(stfs));
6531
6532; return 0; }
6533EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006534if { (eval echo configure:6535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006535 rm -rf conftest*
6536 wine_cv_sys_vfs_has_statfs=yes
6537else
6538 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6540 rm -rf conftest*
6541 wine_cv_sys_vfs_has_statfs=no
6542
6543fi
6544rm -f conftest*
6545
6546fi
6547
6548echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
6549 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
6550 then
6551 cat >> confdefs.h <<\EOF
6552#define STATFS_DEFINED_BY_SYS_VFS 1
6553EOF
6554
6555 fi
6556fi
6557
6558if test "$ac_cv_header_sys_statfs_h" = "yes"
6559then
6560 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006561echo "configure:6562: checking "whether sys/statfs.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006562if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6564else
6565 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006566#line 6567 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006567#include "confdefs.h"
6568
6569 #include <sys/types.h>
6570 #ifdef HAVE_SYS_PARAM_H
6571 # include <sys/param.h>
6572 #endif
6573 #include <sys/statfs.h>
6574
6575int main() {
6576
6577 struct statfs stfs;
6578
6579; return 0; }
6580EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006581if { (eval echo configure:6582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006582 rm -rf conftest*
6583 wine_cv_sys_statfs_has_statfs=yes
6584else
6585 echo "configure: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6587 rm -rf conftest*
6588 wine_cv_sys_statfs_has_statfs=no
6589
6590fi
6591rm -f conftest*
6592
6593fi
6594
6595echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
6596 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
6597 then
6598 cat >> confdefs.h <<\EOF
6599#define STATFS_DEFINED_BY_SYS_STATFS 1
6600EOF
6601
6602 fi
6603fi
6604
6605if test "$ac_cv_header_sys_mount_h" = "yes"
6606then
6607 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006608echo "configure:6609: checking "whether sys/mount.h defines statfs"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006609if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6611else
6612 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006613#line 6614 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006614#include "confdefs.h"
6615
6616 #include <sys/types.h>
6617 #ifdef HAVE_SYS_PARAM_H
6618 # include <sys/param.h>
6619 #endif
6620 #include <sys/mount.h>
6621
6622int main() {
6623
6624 struct statfs stfs;
6625
6626; return 0; }
6627EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006628if { (eval echo configure:6629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006629 rm -rf conftest*
6630 wine_cv_sys_mount_has_statfs=yes
6631else
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6634 rm -rf conftest*
6635 wine_cv_sys_mount_has_statfs=no
6636
6637fi
6638rm -f conftest*
6639
6640fi
6641
6642echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
6643 if test "$wine_cv_sys_mount_has_statfs" = "yes"
6644 then
6645 cat >> confdefs.h <<\EOF
6646#define STATFS_DEFINED_BY_SYS_MOUNT 1
6647EOF
6648
6649 fi
6650fi
6651
6652
6653echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006654echo "configure:6655: checking "for statfs.f_bfree"" >&5
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006655if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6657else
6658 if test "x$statfs_bfree" = "xno"
6659 then
6660 wine_cv_statfs_bfree=no
6661 else
6662 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006663#line 6664 "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006664#include "confdefs.h"
6665
6666 #include <sys/types.h>
6667 #ifdef HAVE_SYS_PARAM_H
6668 # include <sys/param.h>
6669 #endif
6670 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
6671 # include <sys/mount.h>
6672 #else
6673 # ifdef STATFS_DEFINED_BY_SYS_VFS
6674 # include <sys/vfs.h>
6675 # else
6676 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6677 # include <sys/statfs.h>
6678 # endif
6679 # endif
6680 #endif
6681
6682int main() {
6683
6684 struct statfs stfs;
6685
6686 stfs.f_bfree++;
6687
6688; return 0; }
6689EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006690if { (eval echo configure:6691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006691 rm -rf conftest*
6692 wine_cv_statfs_bfree=yes
6693else
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6696 rm -rf conftest*
6697 wine_cv_statfs_bfree=no
6698
6699fi
6700rm -f conftest*
6701 fi
6702fi
6703
6704echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
6705if test "$wine_cv_statfs_bfree" = "yes"
6706then
6707 cat >> confdefs.h <<\EOF
6708#define STATFS_HAS_BFREE 1
6709EOF
6710
6711fi
6712
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006713echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006714echo "configure:6715: checking "for statfs.f_bavail"" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006715if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
6716 echo $ac_n "(cached) $ac_c" 1>&6
6717else
6718 if test "x$statfs_bavail" = "xno"
6719 then
6720 wine_cv_statfs_bavail=no
6721 else
6722 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006723#line 6724 "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006724#include "confdefs.h"
6725
Alexandre Julliard46ea8b31998-05-03 19:01:20 +00006726 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006727 #ifdef HAVE_SYS_PARAM_H
6728 # include <sys/param.h>
6729 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006730 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006731 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006732 #else
6733 # ifdef STATFS_DEFINED_BY_SYS_VFS
6734 # include <sys/vfs.h>
6735 # else
6736 # ifdef STATFS_DEFINED_BY_SYS_STATFS
6737 # include <sys/statfs.h>
6738 # endif
6739 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006740 #endif
6741
6742int main() {
6743
6744 struct statfs stfs;
6745
6746 stfs.f_bavail++;
6747
6748; return 0; }
6749EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006750if { (eval echo configure:6751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00006751 rm -rf conftest*
6752 wine_cv_statfs_bavail=yes
6753else
6754 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6756 rm -rf conftest*
6757 wine_cv_statfs_bavail=no
6758
6759fi
6760rm -f conftest*
6761 fi
6762fi
6763
6764echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
6765if test "$wine_cv_statfs_bavail" = "yes"
6766then
6767 cat >> confdefs.h <<\EOF
6768#define STATFS_HAS_BAVAIL 1
6769EOF
6770
6771fi
6772
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00006773
Alexandre Julliard829fe321998-07-26 14:27:39 +00006774echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006775echo "configure:6776: checking "for msg_accrights in struct msghdr"" >&5
Alexandre Julliard829fe321998-07-26 14:27:39 +00006776if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6778else
6779 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006780#line 6781 "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +00006781#include "confdefs.h"
6782#include <sys/types.h>
6783#include <sys/socket.h>
6784int main() {
6785struct msghdr hdr; hdr.msg_accrights=0
6786; return 0; }
6787EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006788if { (eval echo configure:6789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliard829fe321998-07-26 14:27:39 +00006789 rm -rf conftest*
6790 ac_cv_c_msg_accrights="yes"
6791else
6792 echo "configure: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6794 rm -rf conftest*
6795 ac_cv_c_msg_accrights="no"
6796fi
6797rm -f conftest*
6798fi
6799
6800echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
6801if test "$ac_cv_c_msg_accrights" = "yes"
6802then
6803 cat >> confdefs.h <<\EOF
6804#define HAVE_MSGHDR_ACCRIGHTS 1
6805EOF
6806
6807fi
6808
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006809
Patrik Stridvall09da9662001-07-08 22:30:50 +00006810echo $ac_n "checking "for sa_len in struct sockaddr"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006811echo "configure:6812: checking "for sa_len in struct sockaddr"" >&5
Patrik Stridvall09da9662001-07-08 22:30:50 +00006812if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sa_len'+set}'`\" = set"; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006813 echo $ac_n "(cached) $ac_c" 1>&6
6814else
6815 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006816#line 6817 "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006817#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006818#include <sys/types.h>
6819#include <sys/socket.h>
Patrik Stridvall09da9662001-07-08 22:30:50 +00006820
6821int main() {
6822static struct sockaddr addr; addr.sa_len = 1
6823; return 0; }
6824EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006825if { (eval echo configure:6826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +00006826 rm -rf conftest*
6827 ac_cv_c_sockaddr_sa_len="yes"
6828else
6829 echo "configure: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6831 rm -rf conftest*
6832 ac_cv_c_sockaddr_sa_len="no"
6833fi
6834rm -f conftest*
6835fi
6836
6837echo "$ac_t""$ac_cv_c_sockaddr_sa_len" 1>&6
6838if test "$ac_cv_c_sockaddr_sa_len" = "yes"
6839then
6840 cat >> confdefs.h <<\EOF
6841#define HAVE_SOCKADDR_SA_LEN 1
6842EOF
6843
6844fi
6845
6846
6847echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006848echo "configure:6849: checking "for sun_len in struct sockaddr_un"" >&5
Patrik Stridvall09da9662001-07-08 22:30:50 +00006849if eval "test \"`echo '$''{'ac_cv_c_sockaddr_sun_len'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6851else
6852 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006853#line 6854 "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +00006854#include "confdefs.h"
6855#include <sys/types.h>
6856#include <sys/socket.h>
Juergen Lock2d33ab92000-02-13 16:03:29 +00006857#include <sys/un.h>
6858int main() {
6859static struct sockaddr_un addr; addr.sun_len = 1
6860; return 0; }
6861EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006862if { (eval echo configure:6863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Juergen Lock2d33ab92000-02-13 16:03:29 +00006863 rm -rf conftest*
Patrik Stridvall09da9662001-07-08 22:30:50 +00006864 ac_cv_c_sockaddr_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006865else
6866 echo "configure: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6868 rm -rf conftest*
Patrik Stridvall09da9662001-07-08 22:30:50 +00006869 ac_cv_c_sockaddr_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006870fi
6871rm -f conftest*
6872fi
6873
Patrik Stridvall09da9662001-07-08 22:30:50 +00006874echo "$ac_t""$ac_cv_c_sockaddr_sun_len" 1>&6
6875if test "$ac_cv_c_sockaddr_sun_len" = "yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006876then
6877 cat >> confdefs.h <<\EOF
6878#define HAVE_SOCKADDR_SUN_LEN 1
6879EOF
6880
6881fi
6882
6883
6884echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006885echo "configure:6886: checking "whether we need to define __i386__"" >&5
Juergen Lock2d33ab92000-02-13 16:03:29 +00006886if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6888else
6889 cat > conftest.$ac_ext <<EOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006890#line 6891 "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +00006891#include "confdefs.h"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006892#if (defined(i386) || defined(__i386)) && !defined(__i386__)
6893yes
6894#endif
6895EOF
6896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897 egrep "yes" >/dev/null 2>&1; then
6898 rm -rf conftest*
6899 ac_cv_cpp_def_i386="yes"
6900else
6901 rm -rf conftest*
6902 ac_cv_cpp_def_i386="no"
6903fi
6904rm -f conftest*
6905
6906fi
6907
6908echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
6909if test "$ac_cv_cpp_def_i386" = "yes"
6910then
6911 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006912 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00006913fi
6914
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00006915GCC_NO_BUILTIN=""
6916if test "$GCC" = "yes"
6917then
6918 GCC_NO_BUILTIN="-fno-builtin"
6919fi
6920
6921
Alexandre Julliard829fe321998-07-26 14:27:39 +00006922
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00006923
6924
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00006925MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006926
6927
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00006928MAKE_DLL_RULES=dlls/Makedll.rules
6929
6930
Alexandre Julliard626f4252000-11-10 23:35:20 +00006931MAKE_PROG_RULES=programs/Makeprog.rules
6932
6933
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006934trap '' 1 2 15
6935cat > confcache <<\EOF
6936# This file is a shell script that caches the results of configure
6937# tests run on this system so they can be shared between configure
6938# scripts and configure runs. It is not useful on other systems.
6939# If it contains results you don't want to keep, you may remove or edit it.
6940#
6941# By default, configure uses ./config.cache as the cache file,
6942# creating it if it does not exist already. You can give configure
6943# the --cache-file=FILE option to use a different cache file; that is
6944# what configure does when it calls configure scripts in
6945# subdirectories, so they share the cache.
6946# Giving --cache-file=/dev/null disables caching, for debugging configure.
6947# config.status only pays attention to the cache file if you give it the
6948# --recheck option to rerun configure.
6949#
6950EOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006951# The following way of writing the cache mishandles newlines in values,
6952# but we know of no workaround that is simple, portable, and efficient.
6953# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006954# Ultrix sh set writes to stderr and can't be redirected directly,
6955# and sets the high bit in the cache file unless we assign to the vars.
6956(set) 2>&1 |
Eric Pouech18ad24a2000-01-16 22:16:33 +00006957 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00006958 *ac_space=\ *)
6959 # `set' does not quote correctly, so add quotes (double-quote substitution
6960 # turns \\\\ into \\, and sed turns \\ into \).
6961 sed -n \
6962 -e "s/'/'\\\\''/g" \
6963 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6964 ;;
6965 *)
6966 # `set' quotes correctly as required by POSIX, so do not add quotes.
6967 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6968 ;;
6969 esac >> confcache
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006970if cmp -s $cache_file confcache; then
6971 :
6972else
6973 if test -w $cache_file; then
6974 echo "updating cache $cache_file"
6975 cat confcache > $cache_file
6976 else
6977 echo "not updating unwritable cache $cache_file"
6978 fi
6979fi
6980rm -f confcache
6981
6982trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6983
6984test "x$prefix" = xNONE && prefix=$ac_default_prefix
6985# Let make expand exec_prefix.
6986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6987
6988# Any assignment to VPATH causes Sun make to only execute
6989# the first set of double-colon rules, so remove it if not needed.
6990# If there is a colon in the path, we need to keep it.
6991if test "x$srcdir" = x.; then
6992 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6993fi
6994
6995trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6996
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006997DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006998
6999# Without the "./", some shells look in PATH for config.status.
7000: ${CONFIG_STATUS=./config.status}
7001
7002echo creating $CONFIG_STATUS
7003rm -f $CONFIG_STATUS
7004cat > $CONFIG_STATUS <<EOF
7005#! /bin/sh
7006# Generated automatically by configure.
7007# Run this file to recreate the current configuration.
7008# This directory was configured as follows,
7009# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7010#
7011# $0 $ac_configure_args
7012#
7013# Compiler output produced by configure, useful for debugging
7014# configure, is in ./config.log if it exists.
7015
7016ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7017for ac_option
7018do
7019 case "\$ac_option" in
7020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7021 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7022 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7023 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Eric Pouech18ad24a2000-01-16 22:16:33 +00007024 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007025 exit 0 ;;
7026 -help | --help | --hel | --he | --h)
7027 echo "\$ac_cs_usage"; exit 0 ;;
7028 *) echo "\$ac_cs_usage"; exit 1 ;;
7029 esac
7030done
7031
7032ac_given_srcdir=$srcdir
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007033ac_given_INSTALL="$INSTALL"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007034
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007035trap 'rm -fr `echo "
7036Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00007037dlls/Makedll.rules
7038programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007039Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00007040console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007041controls/Makefile
7042debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007043dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00007044dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00007045dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00007046dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00007047dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007048dlls/crtdll/Makefile
7049dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007050dlls/ddraw/Makefile
7051dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007052dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00007053dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007054dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007055dlls/gdi/Makefile
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007056dlls/glu32/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00007057dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007058dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007059dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00007060dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007061dlls/lzexpand/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00007062dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007063dlls/msacm/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007064dlls/msnet32/Makefile
Jon Griffiths1db20bf2001-01-10 23:59:25 +00007065dlls/msvcrt/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007066dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00007067dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00007068dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007069dlls/ole32/Makefile
7070dlls/oleaut32/Makefile
7071dlls/olecli/Makefile
7072dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00007073dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007074dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007075dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007076dlls/psapi/Makefile
Hidenori Takeshimab7d4b4e2001-07-02 18:57:22 +00007077dlls/quartz/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00007078dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00007079dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00007080dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00007081dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00007082dlls/setupapi/Makefile
John R. Sheetsbc80a3b2001-01-11 22:32:44 +00007083dlls/shdocvw/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007084dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007085dlls/shfolder/Makefile
7086dlls/shlwapi/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00007087dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007088dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007089dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007090dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00007091dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007092dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007093dlls/winaspi/Makefile
Ove Kaavene5557b32000-12-26 00:22:45 +00007094dlls/winedos/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00007095dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007096dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007097dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00007098dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007099dlls/winmm/mcianim/Makefile
7100dlls/winmm/mciavi/Makefile
7101dlls/winmm/mcicda/Makefile
7102dlls/winmm/mciseq/Makefile
7103dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00007104dlls/winmm/midimap/Makefile
7105dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007106dlls/winmm/wineoss/Makefile
Hidenori Takeshima9c672132000-12-14 21:56:18 +00007107dlls/winnls/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00007108dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00007109dlls/winspool/Makefile
Rein Klazes2a4c68b2001-04-16 19:36:12 +00007110dlls/wintrust/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007111dlls/wow32/Makefile
7112dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007113dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00007114documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00007115documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00007116documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007117files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007118graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00007119graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00007120graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007121graphics/win16drv/Makefile
7122graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007123if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00007124include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007125library/Makefile
7126libtest/Makefile
7127loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00007128loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007129loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007130memory/Makefile
7131misc/Makefile
7132miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007133msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007134objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007135ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007136programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007137programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007138programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00007139programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007140programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007141programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007142programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007143programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00007144programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007145programs/regtest/Makefile
7146programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007147programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00007148programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00007149programs/winemine/Makefile
Alexandre Julliardfc684342001-03-21 21:41:27 +00007150programs/winetest/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00007151programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007152programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007153relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007154scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00007155server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007156tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00007157tools/cvdump/Makefile
Jon Griffithsc7a3fec2001-01-04 19:45:49 +00007158tools/specmaker/Makefile
Patrik Stridvall647ac512001-07-30 20:21:34 +00007159tools/winapi/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00007160tools/winebuild/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00007161tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00007162tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007163tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00007164tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00007165unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007166win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00007167windows/Makefile
7168windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007169EOF
7170cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007171
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007172# Protect against being on the right side of a sed subst in config.status.
7173sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7174 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007175$ac_vpsub
7176$extrasub
Eric Pouech18ad24a2000-01-16 22:16:33 +00007177s%@SHELL@%$SHELL%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007178s%@CFLAGS@%$CFLAGS%g
7179s%@CPPFLAGS@%$CPPFLAGS%g
7180s%@CXXFLAGS@%$CXXFLAGS%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00007181s%@FFLAGS@%$FFLAGS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007182s%@DEFS@%$DEFS%g
7183s%@LDFLAGS@%$LDFLAGS%g
7184s%@LIBS@%$LIBS%g
7185s%@exec_prefix@%$exec_prefix%g
7186s%@prefix@%$prefix%g
7187s%@program_transform_name@%$program_transform_name%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007188s%@bindir@%$bindir%g
7189s%@sbindir@%$sbindir%g
7190s%@libexecdir@%$libexecdir%g
7191s%@datadir@%$datadir%g
7192s%@sysconfdir@%$sysconfdir%g
7193s%@sharedstatedir@%$sharedstatedir%g
7194s%@localstatedir@%$localstatedir%g
7195s%@libdir@%$libdir%g
7196s%@includedir@%$includedir%g
7197s%@oldincludedir@%$oldincludedir%g
7198s%@infodir@%$infodir%g
7199s%@mandir@%$mandir%g
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007200s%@OPTIONS@%$OPTIONS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007201s%@SET_MAKE@%$SET_MAKE%g
7202s%@CC@%$CC%g
7203s%@CPP@%$CPP%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007204s%@X_CFLAGS@%$X_CFLAGS%g
7205s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7206s%@X_LIBS@%$X_LIBS%g
7207s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007208s%@YACC@%$YACC%g
7209s%@LEX@%$LEX%g
7210s%@LEXLIB@%$LEXLIB%g
Marcus Meissnerb53bb412000-07-23 13:41:51 +00007211s%@XLEX@%$XLEX%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007212s%@RANLIB@%$RANLIB%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007213s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Eric Pouech18ad24a2000-01-16 22:16:33 +00007214s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007215s%@INSTALL_DATA@%$INSTALL_DATA%g
Alexandre Julliard641ee761997-08-04 16:34:36 +00007216s%@LN_S@%$LN_S%g
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00007217s%@C2MAN@%$C2MAN%g
James Juranffe6b761999-06-12 08:21:57 +00007218s%@LDCONFIG@%$LDCONFIG%g
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007219s%@DLLWRAP@%$DLLWRAP%g
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00007220s%@LINT@%$LINT%g
7221s%@LINTFLAGS@%$LINTFLAGS%g
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00007222s%@LDCOMBINE@%$LDCOMBINE%g
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007223s%@JPEGLIB@%$JPEGLIB%g
Patrik Stridvallea584721998-11-01 16:22:07 +00007224s%@XLIB@%$XLIB%g
Patrik Stridvall2941a212000-04-25 20:34:22 +00007225s%@X_DLLS@%$X_DLLS%g
7226s%@XFILES@%$XFILES%g
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007227s%@OPENGLFILES@%$OPENGLFILES%g
Hidenori Takeshima4615e292000-05-23 23:36:41 +00007228s%@OPENGL32_DLL@%$OPENGL32_DLL%g
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007229s%@GLU32FILES@%$GLU32FILES%g
7230s%@GLU32_DLL@%$GLU32_DLL%g
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007231s%@CUPSLIBS@%$CUPSLIBS%g
Ian Pilcher563598d2001-05-16 20:56:05 +00007232s%@ft_devel@%$ft_devel%g
Marcus Meissnerd28955d2001-05-31 21:35:15 +00007233s%@ft_devel2@%$ft_devel2%g
Ian Pilcher563598d2001-05-16 20:56:05 +00007234s%@FREETYPELIBS@%$FREETYPELIBS%g
7235s%@FREETYPEINCL@%$FREETYPEINCL%g
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00007236s%@DLL_LINK@%$DLL_LINK%g
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00007237s%@DLLFLAGS@%$DLLFLAGS%g
Todd Vierling4b992b01998-12-15 15:26:27 +00007238s%@LDSHARED@%$LDSHARED%g
Alexandre Julliard4354cda2000-11-09 20:27:45 +00007239s%@LDDLLFLAGS@%$LDDLLFLAGS%g
Alexandre Julliard0adad952000-01-26 01:45:58 +00007240s%@LIBEXT@%$LIBEXT%g
Hidenori Takeshimad48ca942000-12-22 22:28:00 +00007241s%@LDPATH@%$LDPATH%g
Patrik Stridvall1bb94031999-05-08 15:47:44 +00007242s%@ALLOCA@%$ALLOCA%g
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00007243s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00007244/@MAKE_RULES@/r $MAKE_RULES
7245s%@MAKE_RULES@%%g
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00007246/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
7247s%@MAKE_DLL_RULES@%%g
Alexandre Julliard626f4252000-11-10 23:35:20 +00007248/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
7249s%@MAKE_PROG_RULES@%%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007250
7251CEOF
7252EOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007253
7254cat >> $CONFIG_STATUS <<\EOF
7255
7256# Split the substitutions into bite-sized pieces for seds with
7257# small command number limits, like on Digital OSF/1 and HP-UX.
7258ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7259ac_file=1 # Number of current file.
7260ac_beg=1 # First line for current file.
7261ac_end=$ac_max_sed_cmds # Line after last line for current file.
7262ac_more_lines=:
7263ac_sed_cmds=""
7264while $ac_more_lines; do
7265 if test $ac_beg -gt 1; then
7266 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7267 else
7268 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7269 fi
7270 if test ! -s conftest.s$ac_file; then
7271 ac_more_lines=false
7272 rm -f conftest.s$ac_file
7273 else
7274 if test -z "$ac_sed_cmds"; then
7275 ac_sed_cmds="sed -f conftest.s$ac_file"
7276 else
7277 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7278 fi
7279 ac_file=`expr $ac_file + 1`
7280 ac_beg=$ac_end
7281 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7282 fi
7283done
7284if test -z "$ac_sed_cmds"; then
7285 ac_sed_cmds=cat
7286fi
7287EOF
7288
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007289cat >> $CONFIG_STATUS <<EOF
7290
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007291CONFIG_FILES=\${CONFIG_FILES-"Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00007292dlls/Makedll.rules
7293programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007294Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00007295console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007296controls/Makefile
7297debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007298dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00007299dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00007300dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00007301dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00007302dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007303dlls/crtdll/Makefile
7304dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00007305dlls/ddraw/Makefile
7306dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007307dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00007308dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007309dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007310dlls/gdi/Makefile
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007311dlls/glu32/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00007312dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007313dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007314dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00007315dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007316dlls/lzexpand/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00007317dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00007318dlls/msacm/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007319dlls/msnet32/Makefile
Jon Griffiths1db20bf2001-01-10 23:59:25 +00007320dlls/msvcrt/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007321dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00007322dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00007323dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007324dlls/ole32/Makefile
7325dlls/oleaut32/Makefile
7326dlls/olecli/Makefile
7327dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00007328dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00007329dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007330dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007331dlls/psapi/Makefile
Hidenori Takeshimab7d4b4e2001-07-02 18:57:22 +00007332dlls/quartz/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00007333dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00007334dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00007335dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00007336dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00007337dlls/setupapi/Makefile
John R. Sheetsbc80a3b2001-01-11 22:32:44 +00007338dlls/shdocvw/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007339dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007340dlls/shfolder/Makefile
7341dlls/shlwapi/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00007342dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007343dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007344dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007345dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00007346dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00007347dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007348dlls/winaspi/Makefile
Ove Kaavene5557b32000-12-26 00:22:45 +00007349dlls/winedos/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00007350dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00007351dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007352dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00007353dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007354dlls/winmm/mcianim/Makefile
7355dlls/winmm/mciavi/Makefile
7356dlls/winmm/mcicda/Makefile
7357dlls/winmm/mciseq/Makefile
7358dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00007359dlls/winmm/midimap/Makefile
7360dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00007361dlls/winmm/wineoss/Makefile
Hidenori Takeshima9c672132000-12-14 21:56:18 +00007362dlls/winnls/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00007363dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00007364dlls/winspool/Makefile
Rein Klazes2a4c68b2001-04-16 19:36:12 +00007365dlls/wintrust/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00007366dlls/wow32/Makefile
7367dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00007368dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00007369documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00007370documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00007371documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00007372files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007373graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00007374graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00007375graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00007376graphics/win16drv/Makefile
7377graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007378if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00007379include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007380library/Makefile
7381libtest/Makefile
7382loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00007383loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007384loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007385memory/Makefile
7386misc/Makefile
7387miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007388msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007389objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007390ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007391programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007392programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007393programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00007394programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007395programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007396programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007397programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00007398programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00007399programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007400programs/regtest/Makefile
7401programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00007402programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00007403programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00007404programs/winemine/Makefile
Alexandre Julliardfc684342001-03-21 21:41:27 +00007405programs/winetest/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00007406programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00007407programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00007408relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00007409scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00007410server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007411tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00007412tools/cvdump/Makefile
Jon Griffithsc7a3fec2001-01-04 19:45:49 +00007413tools/specmaker/Makefile
Patrik Stridvall647ac512001-07-30 20:21:34 +00007414tools/winapi/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00007415tools/winebuild/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00007416tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00007417tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00007418tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00007419tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00007420unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007421win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00007422windows/Makefile
7423windows/x11drv/Makefile "}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007424EOF
7425cat >> $CONFIG_STATUS <<\EOF
7426for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007428 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007429 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007430 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7431 *) ac_file_in="${ac_file}.in" ;;
7432 esac
7433
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007434 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007435
7436 # Remove last slash and all that follows it. Not all systems have dirname.
7437 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7438 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7439 # The file is in a subdirectory.
7440 test ! -d "$ac_dir" && mkdir "$ac_dir"
7441 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7442 # A "../" for each directory in $ac_dir_suffix.
7443 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7444 else
7445 ac_dir_suffix= ac_dots=
7446 fi
7447
7448 case "$ac_given_srcdir" in
7449 .) srcdir=.
7450 if test -z "$ac_dots"; then top_srcdir=.
7451 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7452 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7453 *) # Relative path.
7454 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7455 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7456 esac
7457
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007458 case "$ac_given_INSTALL" in
7459 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7460 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7461 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007462
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007463 echo creating "$ac_file"
7464 rm -f "$ac_file"
7465 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7466 case "$ac_file" in
7467 *Makefile*) ac_comsub="1i\\
7468# $configure_input" ;;
7469 *) ac_comsub= ;;
7470 esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007471
7472 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 +00007473 sed -e "$ac_comsub
7474s%@configure_input@%$configure_input%g
7475s%@srcdir@%$srcdir%g
7476s%@top_srcdir@%$top_srcdir%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007477s%@INSTALL@%$INSTALL%g
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007478" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007479fi; done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007480rm -f conftest.s*
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007481
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007482# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7483# NAME is the cpp macro being defined and VALUE is the value it is being given.
7484#
7485# ac_d sets the value in "#define NAME VALUE" lines.
7486ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7487ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7488ac_dC='\3'
7489ac_dD='%g'
7490# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7491ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7492ac_uB='\([ ]\)%\1#\2define\3'
7493ac_uC=' '
7494ac_uD='\4%g'
7495# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7496ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7497ac_eB='$%\1#\2define\3'
7498ac_eC=' '
7499ac_eD='%g'
7500
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007501if test "${CONFIG_HEADERS+set}" != set; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00007502EOF
7503cat >> $CONFIG_STATUS <<EOF
7504 CONFIG_HEADERS="include/config.h"
7505EOF
7506cat >> $CONFIG_STATUS <<\EOF
7507fi
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007508for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007510 case "$ac_file" in
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007511 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007512 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7513 *) ac_file_in="${ac_file}.in" ;;
7514 esac
7515
7516 echo creating $ac_file
7517
7518 rm -f conftest.frag conftest.in conftest.out
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007519 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7520 cat $ac_file_inputs > conftest.in
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007521
7522EOF
7523
7524# Transform confdefs.h into a sed script conftest.vals that substitutes
7525# the proper values into config.h.in to produce config.h. And first:
7526# Protect against being on the right side of a sed subst in config.status.
7527# Protect against being in an unquoted here document in config.status.
7528rm -f conftest.vals
7529cat > conftest.hdr <<\EOF
7530s/[\\&%]/\\&/g
7531s%[\\$`]%\\&%g
7532s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7533s%ac_d%ac_u%gp
7534s%ac_u%ac_e%gp
7535EOF
7536sed -n -f conftest.hdr confdefs.h > conftest.vals
7537rm -f conftest.hdr
7538
7539# This sed command replaces #undef with comments. This is necessary, for
7540# example, in the case of _POSIX_SOURCE, which is predefined and required
7541# on some systems where configure will not decide to define it.
7542cat >> conftest.vals <<\EOF
7543s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7544EOF
7545
7546# Break up conftest.vals because some shells have a limit on
7547# the size of here documents, and old seds have small limits too.
Alexandre Julliard18f92e71996-07-17 20:02:21 +00007548
7549rm -f conftest.tail
7550while :
7551do
7552 ac_lines=`grep -c . conftest.vals`
7553 # grep -c gives empty output for an empty file on some AIX systems.
7554 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7555 # Write a limited-size here document to conftest.frag.
7556 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7557 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7558 echo 'CEOF
7559 sed -f conftest.frag conftest.in > conftest.out
7560 rm -f conftest.in
7561 mv conftest.out conftest.in
7562' >> $CONFIG_STATUS
7563 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7564 rm -f conftest.vals
7565 mv conftest.tail conftest.vals
7566done
7567rm -f conftest.vals
7568
7569cat >> $CONFIG_STATUS <<\EOF
7570 rm -f conftest.frag conftest.h
7571 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7572 cat conftest.in >> conftest.h
7573 rm -f conftest.in
7574 if cmp -s $ac_file conftest.h 2>/dev/null; then
7575 echo "$ac_file is unchanged"
7576 rm -f conftest.h
7577 else
7578 # Remove last slash and all that follows it. Not all systems have dirname.
7579 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7580 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7581 # The file is in a subdirectory.
7582 test ! -d "$ac_dir" && mkdir "$ac_dir"
7583 fi
7584 rm -f $ac_file
7585 mv conftest.h $ac_file
7586 fi
7587fi; done
7588
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007589EOF
7590cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007591
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007592
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007593EOF
7594cat >> $CONFIG_STATUS <<\EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007595
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007596extra_subdirs="\
7597dlls/ddraw/d3ddevice \
7598dlls/ddraw/dclipper \
7599dlls/ddraw/ddraw \
7600dlls/ddraw/direct3d \
7601dlls/ddraw/dpalette \
7602dlls/ddraw/dsurface \
Lionel Ulmer6301e942000-11-05 20:25:02 +00007603dlls/dinput/joystick \
7604dlls/dinput/keyboard \
7605dlls/dinput/mouse \
Alexandre Julliardd1d09052000-07-30 13:39:52 +00007606dlls/kernel/messages \
Dmitry Timoshkov3b725f62001-06-29 19:20:18 +00007607dlls/user/dde \
Alexandre Julliard2affae52000-10-23 21:32:05 +00007608dlls/user/resources \
Ian Pilcher55d2e572001-05-29 22:06:10 +00007609dlls/wineps/data \
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00007610"
7611for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done
7612
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007613exit 0
7614EOF
7615chmod +x $CONFIG_STATUS
7616rm -fr confdefs* $ac_clean_files
7617test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7618
7619
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007620if test "$have_x" = "no"
7621then
7622 echo
7623 echo "*** Warning: X development files not found. Wine will be built without"
7624 echo "*** X support, which currently does not work, and would probably not be"
7625 echo "*** what you want anyway. You will need to install devel packages of"
7626 echo "*** Xlib/Xfree86 and Xpm at the very least."
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007627elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
7628then
7629 echo
7630 echo "*** Warning: Xpm development files not found. Wine will be built without"
7631 echo "*** Xpm support, which currently does not work. You will need to install"
7632 echo "*** devel packages of Xpm."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00007633fi
7634
Alexandre Julliard638f1691999-01-17 16:32:32 +00007635if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
7636then
7637 echo
7638 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
7639 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00007640fi
7641
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007642if test "$wine_cv_libc_reentrant" = "no"
7643then
7644 echo
7645 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
7646 echo "*** thread support. Consider upgrading libc to a more recent"
7647 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007648fi
7649
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007650if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007651then
7652 echo
7653 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007654 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
7655fi
7656
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007657if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007658then
7659 echo
7660 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007661 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
Andreas Mohr18a9d742001-01-17 21:52:42 +00007662 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 +00007663 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +00007664fi
7665
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007666if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007667then
7668 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007669 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007670 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
7671 echo "*** support before reporting bugs."
7672fi
7673
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007674if test "$wine_cv_warn_cups_h" = "yes"
7675then
7676 echo
7677 echo "*** Note: You have cups runtime libraries, but no development"
7678 echo "*** libraries. Install the cups-devel package or whichever package"
7679 echo "*** contains cups.h to enable CUPS support in WINE."
7680fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007681
Ian Pilcher563598d2001-05-16 20:56:05 +00007682if test "$wine_cv_msg_freetype" = "yes"
7683then
7684 echo
7685 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
7686 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
7687 echo "*** freetype-devel package (or its equivalent on your distribution) to"
7688 echo "*** enable Wine to use TrueType fonts."
7689fi
7690
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007691echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00007692echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007693echo
7694