blob: 47cc41d3ffa678782495361191a20df891acd96d [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.
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005# Generated automatically using autoconf version 2.10-patched
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 Julliardff8331e1995-09-18 11:19:54 +000016 --with-library build Wine as a library instead of an emulator"
17ac_help="$ac_help
Alexandre Julliard7e56f681996-01-31 19:02:28 +000018 --with-dll build Wine as a DLL instead of an emulator"
19ac_help="$ac_help
Alexandre Julliardb7258be1995-09-01 15:57:28 +000020 --with-ipc use inter-process communication for DDE"
21ac_help="$ac_help
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022 --with-x use the X Window System"
23
24# Initialize some variables set by options.
25# The variables have the same names as the options, with
26# dashes changed to underlines.
27build=NONE
28cache_file=./config.cache
29exec_prefix=NONE
30host=NONE
31no_create=
32nonopt=NONE
33no_recursion=
34prefix=NONE
35program_prefix=NONE
36program_suffix=NONE
37program_transform_name=s,x,x,
38silent=
39site=
40srcdir=
41target=NONE
42verbose=
43x_includes=NONE
44x_libraries=NONE
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000045bindir='${exec_prefix}/bin'
46sbindir='${exec_prefix}/sbin'
47libexecdir='${exec_prefix}/libexec'
48datadir='${prefix}/share'
49sysconfdir='${prefix}/etc'
50sharedstatedir='${prefix}/com'
51localstatedir='${prefix}/var'
52libdir='${exec_prefix}/lib'
53includedir='${prefix}/include'
54oldincludedir='/usr/include'
55infodir='${prefix}/info'
56mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000057
58# Initialize some other variables.
59subdirs=
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000060MFLAGS= MAKEFLAGS=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000061
62ac_prev=
63for ac_option
64do
65
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
69 ac_prev=
70 continue
71 fi
72
73 case "$ac_option" in
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 *) ac_optarg= ;;
76 esac
77
78 # Accept the important Cygnus configure options, so we can diagnose typos.
79
80 case "$ac_option" in
81
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000082 -bindir | --bindir | --bindi | --bind | --bin | --bi)
83 ac_prev=bindir ;;
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
86
87 -build | --build | --buil | --bui | --bu)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000088 ac_prev=build ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000089 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000090 build="$ac_optarg" ;;
91
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94 ac_prev=cache_file ;;
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
98
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000099 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100 ac_prev=datadir ;;
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102 | --da=*)
103 datadir="$ac_optarg" ;;
104
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110 fi
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
113
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 fi
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 case "$ac_option" in
122 *=*) ;;
123 *) ac_optarg=yes ;;
124 esac
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
126
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
135
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
138 with_gas=yes ;;
139
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
143 cat << EOF
144Usage: configure [options] [host]
145Options: [defaults in brackets after descriptions]
146Configuration:
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
154 [$ac_default_prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000156 [same as prefix]
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
161 [PREFIX/share]
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 [PREFIX/com]
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
176EOF
177 cat << EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000178Host type:
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000189EOF
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
192 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000193 exit 0 ;;
194
195 -host | --host | --hos | --ho)
196 ac_prev=host ;;
197 -host=* | --host=* | --hos=* | --ho=*)
198 host="$ac_optarg" ;;
199
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
206
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
208 ac_prev=infodir ;;
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
211
212 -libdir | --libdir | --libdi | --libd)
213 ac_prev=libdir ;;
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
216
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
223
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
232
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234 ac_prev=mandir ;;
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
237
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000238 -nfp | --nfp | --nf)
239 # Obsolete; use --without-fp.
240 with_fp=no ;;
241
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243 | --no-cr | --no-c)
244 no_create=yes ;;
245
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 no_recursion=yes ;;
249
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
258
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260 ac_prev=prefix ;;
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
263
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
270
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
277
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
294
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
297 silent=yes ;;
298
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300 ac_prev=sbindir ;;
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302 | --sbi=* | --sb=*)
303 sbindir="$ac_optarg" ;;
304
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
308 | --sha | --sh)
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313 | --sha=* | --sh=*)
314 sharedstatedir="$ac_optarg" ;;
315
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000316 -site | --site | --sit)
317 ac_prev=site ;;
318 -site=* | --site=* | --sit=*)
319 site="$ac_optarg" ;;
320
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322 ac_prev=srcdir ;;
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
325
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
332
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000333 -target | --target | --targe | --targ | --tar | --ta | --t)
334 ac_prev=target ;;
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
337
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 verbose=yes ;;
340
341 -version | --version | --versio | --versi | --vers)
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +0000342 echo "configure generated by autoconf version 2.10-patched"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000343 exit 0 ;;
344
345 -with-* | --with-*)
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350 fi
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
352 case "$ac_option" in
353 *=*) ;;
354 *) ac_optarg=yes ;;
355 esac
356 eval "with_${ac_package}='$ac_optarg'" ;;
357
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 fi
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
366
367 --x)
368 # Obsolete; use --with-x.
369 with_x=yes ;;
370
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
377
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
384
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386 ;;
387
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000388 *)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
391 fi
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394 fi
395 nonopt="$ac_option"
396 ;;
397
398 esac
399done
400
401if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403fi
404
405trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406
407# File descriptor usage:
408# 0 standard input
409# 1 file creation
410# 2 errors and warnings
411# 3 some systems may open it to /dev/tty
412# 4 used on the Kubota Titan
413# 6 checking for... messages and results
414# 5 compiler messages saved in config.log
415if test "$silent" = yes; then
416 exec 6>/dev/null
417else
418 exec 6>&1
419fi
420exec 5>./config.log
421
422echo "\
423This file contains any messages produced by compilers while
424running configure, to aid debugging if configure makes a mistake.
425" 1>&5
426
427# Strip out --no-create and --no-recursion so they do not pile up.
428# Also quote any args containing shell metacharacters.
429ac_configure_args=
430for ac_arg
431do
432 case "$ac_arg" in
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440 esac
441done
442
443# NLS nuisances.
444# Only set LANG and LC_ALL to C if already set.
445# These must not be set unconditionally because not all systems understand
446# e.g. LANG=C (notably SCO).
447if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449
450# confdefs.h avoids OS command line length limits that DEFS can exceed.
451rm -rf conftest* confdefs.h
452# AIX cpp loses on an empty file, so make sure it contains at least a newline.
453echo > confdefs.h
454
455# A filename unique to this package, relative to the directory that
456# configure is in, which we can look for to find out if srcdir is correct.
457ac_unique_file=controls/edit.c
458
459# Find the source files, if location was not specified.
460if test -z "$srcdir"; then
461 ac_srcdir_defaulted=yes
462 # Try the directory containing this script, then its parent.
463 ac_prog=$0
464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
466 srcdir=$ac_confdir
467 if test ! -r $srcdir/$ac_unique_file; then
468 srcdir=..
469 fi
470else
471 ac_srcdir_defaulted=no
472fi
473if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
476 else
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478 fi
479fi
480srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481
482# Prefer explicitly selected file to automatically selected ones.
483if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE; then
485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
486 else
487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488 fi
489fi
490for ac_site_file in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
493 . "$ac_site_file"
494 fi
495done
496
497if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
499 . $cache_file
500else
501 echo "creating cache $cache_file"
502 > $cache_file
503fi
504
505ac_ext=c
506# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000507ac_cpp='$CPP $CPPFLAGS'
508ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000510
511if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514 ac_n= ac_c='
515' ac_t=' '
516 else
517 ac_n=-n ac_c= ac_t=
518 fi
519else
520 ac_n= ac_c='\c' ac_t=
521fi
522
523
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000524
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000525ac_aux_dir=
526for ac_dir in tools $srcdir/tools; do
527 if test -f $ac_dir/install-sh; then
528 ac_aux_dir=$ac_dir
529 ac_install_sh="$ac_aux_dir/install-sh -c"
530 break
531 elif test -f $ac_dir/install.sh; then
532 ac_aux_dir=$ac_dir
533 ac_install_sh="$ac_aux_dir/install.sh -c"
534 break
535 fi
536done
537if test -z "$ac_aux_dir"; then
538 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
539fi
540ac_config_guess=$ac_aux_dir/config.guess
541ac_config_sub=$ac_aux_dir/config.sub
542ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
543
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000544
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000545# We want these before the checks, so the checks can modify their values.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000546test -z "$CFLAGS" && CFLAGS="-g -O2"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000547test -z "$LDFLAGS" && LDFLAGS=-g
Alexandre Julliard902da691995-11-05 14:39:02 +0000548test -z "$LDLIBS" && LDLIBS=-lm
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000549
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000550
551# Check whether --with-library or --without-library was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000552if test "${with_library+set}" = set; then
553 withval="$with_library"
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000554 OPTIONS="-DWINELIB" MAIN_TARGET="libwine.a"
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000555else
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000556 OPTIONS="" MAIN_TARGET="wine"
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000557fi
558
559
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000560# Check whether --with-dll or --without-dll was given.
561if test "${with_dll+set}" = set; then
562 withval="$with_dll"
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000563 OPTIONS="-DWINELIB -DWINELIBDLL" MAIN_TARGET="libwine.so.1.0" CFLAGS="$CFLAGS -fPIC"
Alexandre Julliard7e56f681996-01-31 19:02:28 +0000564fi
565
566
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000567# Check whether --with-ipc or --without-ipc was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000568if test "${with_ipc+set}" = set; then
569 withval="$with_ipc"
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000570 OPTIONS="$OPTIONS -DCONFIG_IPC"
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000571fi
572
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000573
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000574
Alexandre Julliardb7258be1995-09-01 15:57:28 +0000575
576
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000577
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000578echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
579set dummy ${MAKE-make}; ac_make=$2
580if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
582else
583 cat > conftestmake <<\EOF
584all:
585 @echo 'ac_maketemp="${MAKE}"'
586EOF
587# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
588eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
589if test -n "$ac_maketemp"; then
590 eval ac_cv_prog_make_${ac_make}_set=yes
591else
592 eval ac_cv_prog_make_${ac_make}_set=no
593fi
594rm -f conftestmake
595fi
596if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
597 echo "$ac_t""yes" 1>&6
598 SET_MAKE=
599else
600 echo "$ac_t""no" 1>&6
601 SET_MAKE="MAKE=${MAKE-make}"
602fi
603
604# Extract the first word of "gcc", so it can be a program name with args.
605set dummy gcc; ac_word=$2
606echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
607if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
608 echo $ac_n "(cached) $ac_c" 1>&6
609else
610 if test -n "$CC"; then
611 ac_cv_prog_CC="$CC" # Let the user override the test.
612else
613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
614 for ac_dir in $PATH; do
615 test -z "$ac_dir" && ac_dir=.
616 if test -f $ac_dir/$ac_word; then
617 ac_cv_prog_CC="gcc"
618 break
619 fi
620 done
621 IFS="$ac_save_ifs"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000622fi
623fi
624CC="$ac_cv_prog_CC"
625if test -n "$CC"; then
626 echo "$ac_t""$CC" 1>&6
627else
628 echo "$ac_t""no" 1>&6
629fi
630
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000631if test -z "$CC"; then
632 # Extract the first word of "cc", so it can be a program name with args.
633set dummy cc; ac_word=$2
634echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
637else
638 if test -n "$CC"; then
639 ac_cv_prog_CC="$CC" # Let the user override the test.
640else
641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
642 ac_prog_rejected=no
643 for ac_dir in $PATH; do
644 test -z "$ac_dir" && ac_dir=.
645 if test -f $ac_dir/$ac_word; then
646 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
647 ac_prog_rejected=yes
648 continue
649 fi
650 ac_cv_prog_CC="cc"
651 break
652 fi
653 done
654 IFS="$ac_save_ifs"
655if test $ac_prog_rejected = yes; then
656 # We found a bogon in the path, so make sure we never use it.
657 set dummy $ac_cv_prog_CC
658 shift
659 if test $# -gt 0; then
660 # We chose a different compiler from the bogus one.
661 # However, it has the same basename, so the bogon will be chosen
662 # first if we set CC to just the basename; use the full file name.
663 shift
664 set dummy "$ac_dir/$ac_word" "$@"
665 shift
666 ac_cv_prog_CC="$@"
667 fi
668fi
669fi
670fi
671CC="$ac_cv_prog_CC"
672if test -n "$CC"; then
673 echo "$ac_t""$CC" 1>&6
674else
675 echo "$ac_t""no" 1>&6
676fi
677
678 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
679fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000680
681echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
682if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
684else
685 cat > conftest.c <<EOF
686#ifdef __GNUC__
687 yes;
688#endif
689EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000690if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000691 ac_cv_prog_gcc=yes
692else
693 ac_cv_prog_gcc=no
694fi
695fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000696
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000697echo "$ac_t""$ac_cv_prog_gcc" 1>&6
698if test $ac_cv_prog_gcc = yes; then
699 GCC=yes
700 if test "${CFLAGS+set}" != set; then
701 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
702if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
704else
705 echo 'void f(){}' > conftest.c
706if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
707 ac_cv_prog_gcc_g=yes
708else
709 ac_cv_prog_gcc_g=no
710fi
711rm -f conftest*
712
713fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000714
715echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000716 if test $ac_cv_prog_gcc_g = yes; then
717 CFLAGS="-g -O"
718 else
719 CFLAGS="-O"
720 fi
721 fi
722else
723 GCC=
724 test "${CFLAGS+set}" = set || CFLAGS="-g"
725fi
726
727echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
728# On Suns, sometimes $CPP names a directory.
729if test -n "$CPP" && test -d "$CPP"; then
730 CPP=
731fi
732if test -z "$CPP"; then
733if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
735else
736 # This must be in double quotes, not single quotes, because CPP may get
737 # substituted into the Makefile and "${CC-cc}" will confuse make.
738 CPP="${CC-cc} -E"
739 # On the NeXT, cc -E runs the code through the compiler's parser,
740 # not just through cpp.
741 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000742#line 743 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000743#include "confdefs.h"
744#include <assert.h>
745Syntax Error
746EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000747ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000748{ (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000749ac_err=`grep -v '^ *+' conftest.out`
750if test -z "$ac_err"; then
751 :
752else
753 echo "$ac_err" >&5
754 rm -rf conftest*
755 CPP="${CC-cc} -E -traditional-cpp"
756 cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000757#line 758 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000758#include "confdefs.h"
759#include <assert.h>
760Syntax Error
761EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000762ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000763{ (eval echo configure:764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000764ac_err=`grep -v '^ *+' conftest.out`
765if test -z "$ac_err"; then
766 :
767else
768 echo "$ac_err" >&5
769 rm -rf conftest*
770 CPP=/lib/cpp
771fi
772rm -f conftest*
773fi
774rm -f conftest*
775 ac_cv_prog_CPP="$CPP"
776fi
777 CPP="$ac_cv_prog_CPP"
778else
779 ac_cv_prog_CPP="$CPP"
780fi
781echo "$ac_t""$CPP" 1>&6
782
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000783echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
784if test -d /etc/conf/kconfig.d &&
785 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
786then
787 echo "$ac_t""yes" 1>&6
788 ISC=yes # If later tests want to check for ISC.
789 cat >> confdefs.h <<\EOF
790#define _POSIX_SOURCE 1
791EOF
792
793 if test "$GCC" = yes; then
794 CC="$CC -posix"
795 else
796 CC="$CC -Xp"
797 fi
798else
799 echo "$ac_t""no" 1>&6
800 ISC=
801fi
802
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000803# If we find X, set shell vars x_includes and x_libraries to the
804# paths, otherwise set no_x=yes.
805# Uses ac_ vars as temps to allow command line to override cache and checks.
806# --without-x overrides everything else, but does not touch the cache.
807echo $ac_n "checking for X""... $ac_c" 1>&6
808
809# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000810if test "${with_x+set}" = set; then
811 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000812 :
813fi
814
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000815# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000816if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000817 # The user explicitly disabled X.
818 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000819else
820 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000821 # Both variables are already set.
822 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000823 else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000824if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000825 echo $ac_n "(cached) $ac_c" 1>&6
826else
827 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000828ac_x_includes=NO ac_x_libraries=NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000829rm -fr conftestdir
830if mkdir conftestdir; then
831 cd conftestdir
832 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
833 cat > Imakefile <<'EOF'
834acfindx:
835 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
836EOF
837 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000839 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000840 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
841 for ac_extension in a so sl; do
842 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
843 test -f $ac_im_libdir/libX11.$ac_extension; then
844 ac_im_usrlibdir=$ac_im_libdir; break
845 fi
846 done
847 # Screen out bogus values from the imake configuration.
848 case "$ac_im_incroot" in
849 /usr/include) ;;
850 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
851 esac
852 case "$ac_im_usrlibdir" in
853 /usr/lib | /lib) ;;
854 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
855 esac
856 fi
857 cd ..
858 rm -fr conftestdir
859fi
860
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000861if test "$ac_x_includes" = NO; then
862 # Guess where to find include files, by looking for this one X11 .h file.
863 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
864
865 # First, try using that file with no special directory specified.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000866cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000867#line 868 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000868#include "confdefs.h"
869#include <$x_direct_test_include>
870EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000872{ (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000873ac_err=`grep -v '^ *+' conftest.out`
874if test -z "$ac_err"; then
875 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000876 # We can compile using X headers with no special include directory.
877ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000878else
879 echo "$ac_err" >&5
880 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000881 # Look for the header file in a standard set of common directories.
882 for ac_dir in \
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000883 /usr/X11R6/include \
884 /usr/X11R5/include \
885 /usr/X11R4/include \
886 \
887 /usr/include/X11R6 \
888 /usr/include/X11R5 \
889 /usr/include/X11R4 \
890 \
891 /usr/local/X11R6/include \
892 /usr/local/X11R5/include \
893 /usr/local/X11R4/include \
894 \
895 /usr/local/include/X11R6 \
896 /usr/local/include/X11R5 \
897 /usr/local/include/X11R4 \
898 \
899 /usr/X11/include \
900 /usr/include/X11 \
901 /usr/local/X11/include \
902 /usr/local/include/X11 \
903 \
904 /usr/X386/include \
905 /usr/x386/include \
906 /usr/XFree86/include/X11 \
907 \
908 /usr/include \
909 /usr/local/include \
910 /usr/unsupported/include \
911 /usr/athena/include \
912 /usr/local/x11r5/include \
913 /usr/lpp/Xamples/include \
914 \
915 /usr/openwin/include \
916 /usr/openwin/share/include \
917 ; \
918 do
919 if test -r "$ac_dir/$x_direct_test_include"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000920 ac_x_includes=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000921 break
922 fi
923 done
924fi
925rm -f conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000926fi # $ac_x_includes = NO
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000927
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000928if test "$ac_x_libraries" = NO; then
929 # Check for the libraries.
930
931 test -z "$x_direct_test_library" && x_direct_test_library=Xt
932 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
933
934 # See if we find them without any special options.
935 # Don't add to $LIBS permanently.
936 ac_save_LIBS="$LIBS"
937 LIBS="-l$x_direct_test_library $LIBS"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000938cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000939#line 940 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000940#include "confdefs.h"
941
942int main() { return 0; }
943int t() {
944${x_direct_test_function}()
945; return 0; }
946EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +0000947if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000948 rm -rf conftest*
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000949 LIBS="$ac_save_LIBS"
950# We can link X programs with no special library path.
951ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000952else
953 rm -rf conftest*
954 LIBS="$ac_save_LIBS"
955# First see if replacing the include by lib works.
956for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
957 /usr/X11R6/lib \
958 /usr/X11R5/lib \
959 /usr/X11R4/lib \
960 \
961 /usr/lib/X11R6 \
962 /usr/lib/X11R5 \
963 /usr/lib/X11R4 \
964 \
965 /usr/local/X11R6/lib \
966 /usr/local/X11R5/lib \
967 /usr/local/X11R4/lib \
968 \
969 /usr/local/lib/X11R6 \
970 /usr/local/lib/X11R5 \
971 /usr/local/lib/X11R4 \
972 \
973 /usr/X11/lib \
974 /usr/lib/X11 \
975 /usr/local/X11/lib \
976 /usr/local/lib/X11 \
977 \
978 /usr/X386/lib \
979 /usr/x386/lib \
980 /usr/XFree86/lib/X11 \
981 \
982 /usr/lib \
983 /usr/local/lib \
984 /usr/unsupported/lib \
985 /usr/athena/lib \
986 /usr/local/x11r5/lib \
987 /usr/lpp/Xamples/lib \
988 \
989 /usr/openwin/lib \
990 /usr/openwin/share/lib \
991 ; \
992do
993 for ac_extension in a so sl; do
994 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +0000995 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000996 break 2
997 fi
998 done
999done
1000fi
1001rm -f conftest*
1002
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001003fi # $ac_x_libraries = NO
1004
1005if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1006 # Didn't find X anywhere. Cache the known absence of X.
1007 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001008else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001009 # Record where we found X for the cache.
1010 ac_cv_have_x="have_x=yes \
1011 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001012fi
1013fi
1014 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001015 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001016fi # $with_x != no
1017
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001018if test "$have_x" != yes; then
1019 echo "$ac_t""$have_x" 1>&6
1020 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001021else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001022 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001023 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1024 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001025 # Update the cache value to reflect the command line values.
1026 ac_cv_have_x="have_x=yes \
1027 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001028 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1029fi
1030
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001031if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001032 # Not all programs may use this symbol, but it does not hurt to define it.
1033 X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
1034else
1035 if test -n "$x_includes"; then
1036 X_CFLAGS="$X_CFLAGS -I$x_includes"
1037 fi
1038
1039 # It would be nice to have a more robust check for the -R ld option than
1040 # just checking for Solaris.
1041 # It would also be nice to do this for all -L options, not just this one.
1042 if test -n "$x_libraries"; then
1043 X_LIBS="$X_LIBS -L$x_libraries"
1044 if test "`(uname) 2>/dev/null`" = SunOS &&
1045 uname -r | grep '^5' >/dev/null; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001046 X_LIBS="$X_LIBS -R $x_libraries"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001047 fi
1048 fi
1049
1050 # Check for libraries that X11R6 Xt/Xaw programs need.
1051
1052 ac_save_LDFLAGS="$LDFLAGS"
1053 LDFLAGS="$LDFLAGS -L$x_libraries"
1054 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1055 # check for ICE first), but we must link in the order -lSM -lICE or
1056 # we get undefined symbols. So assume we have SM if we have ICE.
1057 # These have to be linked with before -lX11, unlike the other
1058 # libraries we check for below, so use a different variable.
1059 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1060 echo $ac_n "checking for -lICE""... $ac_c" 1>&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001061ac_lib_var=`echo ICE'_'IceConnectionNumber | tr './+\055' '__p_'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001062if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001063 echo $ac_n "(cached) $ac_c" 1>&6
1064else
1065 ac_save_LIBS="$LIBS"
1066LIBS="-lICE $LIBS"
1067cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001068#line 1069 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001069#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001070/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001071/* We use char because int might match the return type of a gcc2
1072 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001073char IceConnectionNumber();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001074
1075int main() { return 0; }
1076int t() {
1077IceConnectionNumber()
1078; return 0; }
1079EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001080if { (eval echo configure:1081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001081 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001082 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001083else
1084 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001085 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001086fi
1087rm -f conftest*
1088LIBS="$ac_save_LIBS"
1089
1090fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001091if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001092 echo "$ac_t""yes" 1>&6
1093 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1094else
1095 echo "$ac_t""no" 1>&6
1096fi
1097
1098 LDFLAGS="$ac_save_LDFLAGS"
1099
1100 # Check for system-dependent libraries X programs must link with.
1101
1102 if test "$ISC" = yes; then
1103 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1104 else
1105 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1106 # libraries were built with DECnet support. And karl@cs.umb.edu says
1107 # the Alpha needs dnet_stub (dnet does not exist).
1108 echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001109ac_lib_var=`echo dnet'_'dnet_ntoa | tr './+\055' '__p_'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001110if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001111 echo $ac_n "(cached) $ac_c" 1>&6
1112else
1113 ac_save_LIBS="$LIBS"
1114LIBS="-ldnet $LIBS"
1115cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001116#line 1117 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001117#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001118/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001119/* We use char because int might match the return type of a gcc2
1120 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001121char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001122
1123int main() { return 0; }
1124int t() {
1125dnet_ntoa()
1126; return 0; }
1127EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001128if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001129 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001130 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001131else
1132 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001133 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001134fi
1135rm -f conftest*
1136LIBS="$ac_save_LIBS"
1137
1138fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001139if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001140 echo "$ac_t""yes" 1>&6
1141 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1142else
1143 echo "$ac_t""no" 1>&6
1144fi
1145
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001146 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001147 echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001148ac_lib_var=`echo dnet_stub'_'dnet_ntoa | tr './+\055' '__p_'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001149if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001150 echo $ac_n "(cached) $ac_c" 1>&6
1151else
1152 ac_save_LIBS="$LIBS"
1153LIBS="-ldnet_stub $LIBS"
1154cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001155#line 1156 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001156#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001157/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001158/* We use char because int might match the return type of a gcc2
1159 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001160char dnet_ntoa();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001161
1162int main() { return 0; }
1163int t() {
1164dnet_ntoa()
1165; return 0; }
1166EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001167if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001168 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001169 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001170else
1171 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001172 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001173fi
1174rm -f conftest*
1175LIBS="$ac_save_LIBS"
1176
1177fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001178if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001179 echo "$ac_t""yes" 1>&6
1180 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1181else
1182 echo "$ac_t""no" 1>&6
1183fi
1184
1185 fi
1186
1187 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1188 # to get the SysV transport functions.
1189 # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1190 # check for it.
1191 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001192ac_lib_var=`echo nsl'_'t_accept | tr './+\055' '__p_'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001193if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001194 echo $ac_n "(cached) $ac_c" 1>&6
1195else
1196 ac_save_LIBS="$LIBS"
1197LIBS="-lnsl $LIBS"
1198cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001199#line 1200 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001200#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001201/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001202/* We use char because int might match the return type of a gcc2
1203 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001204char t_accept();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001205
1206int main() { return 0; }
1207int t() {
1208t_accept()
1209; return 0; }
1210EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001211if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001212 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001213 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001214else
1215 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001216 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001217fi
1218rm -f conftest*
1219LIBS="$ac_save_LIBS"
1220
1221fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001222if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001223 echo "$ac_t""yes" 1>&6
1224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1225else
1226 echo "$ac_t""no" 1>&6
1227fi
1228
1229
1230 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1231 # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1232 # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
1233 if test "`(uname) 2>/dev/null`" != IRIX; then
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001234 if test $ac_cv_lib_nsl_t_accept = no; then
1235 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1236ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001237if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001238 echo $ac_n "(cached) $ac_c" 1>&6
1239else
1240 ac_save_LIBS="$LIBS"
1241LIBS="-lsocket $LIBS"
1242cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001243#line 1244 "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001244#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001245/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001246/* We use char because int might match the return type of a gcc2
1247 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001248char socket();
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001249
1250int main() { return 0; }
1251int t() {
1252socket()
1253; return 0; }
1254EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001255if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001256 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001257 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001258else
1259 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001260 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001261fi
1262rm -f conftest*
1263LIBS="$ac_save_LIBS"
1264
1265fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001266if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001267 echo "$ac_t""yes" 1>&6
1268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1269else
1270 echo "$ac_t""no" 1>&6
1271fi
1272
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001273 else
1274 # If we found -lnsl, use it to check for -lsocket. -- AJ
1275 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1276ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
1277if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1279else
1280 ac_save_LIBS="$LIBS"
1281LIBS="-lsocket -lnsl $LIBS"
1282cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001283#line 1284 "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001284#include "confdefs.h"
1285/* Override any gcc2 internal prototype to avoid an error. */
1286/* We use char because int might match the return type of a gcc2
1287 builtin and then its argument prototype would still apply. */
1288char socket();
1289
1290int main() { return 0; }
1291int t() {
1292socket()
1293; return 0; }
1294EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001295if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001296 rm -rf conftest*
1297 eval "ac_cv_lib_$ac_lib_var=yes"
1298else
1299 rm -rf conftest*
1300 eval "ac_cv_lib_$ac_lib_var=no"
1301fi
1302rm -f conftest*
1303LIBS="$ac_save_LIBS"
1304
1305fi
1306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1307 echo "$ac_t""yes" 1>&6
1308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1309else
1310 echo "$ac_t""no" 1>&6
1311fi
1312
1313 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001314 fi
1315 fi
1316fi
1317
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001318for ac_prog in 'bison -y' byacc
1319do
1320# Extract the first word of "$ac_prog", so it can be a program name with args.
1321set dummy $ac_prog; ac_word=$2
1322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1323if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325else
1326 if test -n "$YACC"; then
1327 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1328else
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1330 for ac_dir in $PATH; do
1331 test -z "$ac_dir" && ac_dir=.
1332 if test -f $ac_dir/$ac_word; then
1333 ac_cv_prog_YACC="$ac_prog"
1334 break
1335 fi
1336 done
1337 IFS="$ac_save_ifs"
1338fi
1339fi
1340YACC="$ac_cv_prog_YACC"
1341if test -n "$YACC"; then
1342 echo "$ac_t""$YACC" 1>&6
1343else
1344 echo "$ac_t""no" 1>&6
1345fi
1346
1347test -n "$YACC" && break
1348done
1349test -n "$YACC" || YACC="yacc"
1350
1351# Extract the first word of "flex", so it can be a program name with args.
1352set dummy flex; ac_word=$2
1353echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1356else
1357 if test -n "$LEX"; then
1358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1359else
1360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1361 for ac_dir in $PATH; do
1362 test -z "$ac_dir" && ac_dir=.
1363 if test -f $ac_dir/$ac_word; then
1364 ac_cv_prog_LEX="flex"
1365 break
1366 fi
1367 done
1368 IFS="$ac_save_ifs"
1369 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1370fi
1371fi
1372LEX="$ac_cv_prog_LEX"
1373if test -n "$LEX"; then
1374 echo "$ac_t""$LEX" 1>&6
1375else
1376 echo "$ac_t""no" 1>&6
1377fi
1378
1379if test -z "$LEXLIB"
1380then
1381 case "$LEX" in
1382 flex*) ac_lib=fl ;;
1383 *) ac_lib=l ;;
1384 esac
1385 echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001386ac_lib_var=`echo $ac_lib'_'yywrap | tr './+\055' '__p_'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001387if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001388 echo $ac_n "(cached) $ac_c" 1>&6
1389else
1390 ac_save_LIBS="$LIBS"
1391LIBS="-l$ac_lib $LIBS"
1392cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001393#line 1394 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001394#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001395/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001396/* We use char because int might match the return type of a gcc2
1397 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001398char yywrap();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001399
1400int main() { return 0; }
1401int t() {
1402yywrap()
1403; return 0; }
1404EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001405if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001406 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001407 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001408else
1409 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001410 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001411fi
1412rm -f conftest*
1413LIBS="$ac_save_LIBS"
1414
1415fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001416if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001417 echo "$ac_t""yes" 1>&6
1418 LEXLIB="-l$ac_lib"
1419else
1420 echo "$ac_t""no" 1>&6
1421fi
1422
1423fi
1424
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001425# Extract the first word of "ranlib", so it can be a program name with args.
1426set dummy ranlib; ac_word=$2
1427echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1430else
1431 if test -n "$RANLIB"; then
1432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1433else
1434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1435 for ac_dir in $PATH; do
1436 test -z "$ac_dir" && ac_dir=.
1437 if test -f $ac_dir/$ac_word; then
1438 ac_cv_prog_RANLIB="ranlib"
1439 break
1440 fi
1441 done
1442 IFS="$ac_save_ifs"
1443 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001444fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001445fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001446RANLIB="$ac_cv_prog_RANLIB"
1447if test -n "$RANLIB"; then
1448 echo "$ac_t""$RANLIB" 1>&6
1449else
1450 echo "$ac_t""no" 1>&6
1451fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001452
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001453# Find a good install program. We prefer a C program (faster),
1454# so one script is as good as another. But avoid the broken or
1455# incompatible versions:
1456# SysV /etc/install, /usr/sbin/install
1457# SunOS /usr/etc/install
1458# IRIX /sbin/install
1459# AIX /bin/install
1460# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462# ./install, which can be erroneously created by make from ./install.sh.
1463echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1464if test -z "$INSTALL"; then
1465if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1467else
1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1469 for ac_dir in $PATH; do
1470 # Account for people who put trailing slashes in PATH elements.
1471 case "$ac_dir/" in
1472 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1473 *)
1474 # OSF1 and SCO ODT 3.0 have their own names for install.
1475 for ac_prog in ginstall installbsd scoinst install; do
1476 if test -f $ac_dir/$ac_prog; then
1477 if test $ac_prog = install &&
1478 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1479 # AIX install. It has an incompatible calling convention.
1480 # OSF/1 installbsd also uses dspmsg, but is usable.
1481 :
1482 else
1483 ac_cv_path_install="$ac_dir/$ac_prog -c"
1484 break 2
1485 fi
1486 fi
1487 done
1488 ;;
1489 esac
1490 done
1491 IFS="$ac_save_ifs"
1492
1493fi
1494 if test "${ac_cv_path_install+set}" = set; then
1495 INSTALL="$ac_cv_path_install"
1496 else
1497 # As a last resort, use the slow shell script. We don't cache a
1498 # path for INSTALL within a source directory, because that will
1499 # break other packages using the cache if that directory is
1500 # removed, or if the path is relative.
1501 INSTALL="$ac_install_sh"
1502 fi
1503fi
1504echo "$ac_t""$INSTALL" 1>&6
1505
1506# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1507# It thinks the first close brace ends the variable substitution.
1508test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1509
1510test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1511
Alexandre Julliard902da691995-11-05 14:39:02 +00001512echo $ac_n "checking for -li386""... $ac_c" 1>&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001513ac_lib_var=`echo i386'_'i386_set_ldt | tr './+\055' '__p_'`
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001514if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00001515 echo $ac_n "(cached) $ac_c" 1>&6
1516else
1517 ac_save_LIBS="$LIBS"
1518LIBS="-li386 $LIBS"
1519cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001520#line 1521 "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00001521#include "confdefs.h"
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001522/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001523/* We use char because int might match the return type of a gcc2
1524 builtin and then its argument prototype would still apply. */
Alexandre Julliard59730ae1996-03-24 16:20:51 +00001525char i386_set_ldt();
Alexandre Julliard902da691995-11-05 14:39:02 +00001526
1527int main() { return 0; }
1528int t() {
1529i386_set_ldt()
1530; return 0; }
1531EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001532if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliard902da691995-11-05 14:39:02 +00001533 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001534 eval "ac_cv_lib_$ac_lib_var=yes"
Alexandre Julliard902da691995-11-05 14:39:02 +00001535else
1536 rm -rf conftest*
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001537 eval "ac_cv_lib_$ac_lib_var=no"
Alexandre Julliard902da691995-11-05 14:39:02 +00001538fi
1539rm -f conftest*
1540LIBS="$ac_save_LIBS"
1541
1542fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Alexandre Julliard902da691995-11-05 14:39:02 +00001544 echo "$ac_t""yes" 1>&6
1545 LDLIBS="$LDLIBS -li386"
1546else
1547 echo "$ac_t""no" 1>&6
1548fi
1549
1550
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001551
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001552if test "x${GCC}" = "xyes"
1553then
1554 CFLAGS="$CFLAGS -Wall"
1555 # If we cannot run a trivial program, we must be cross compiling.
1556echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1557if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1559else
1560 if test "$cross_compiling" = yes; then
1561 ac_cv_c_cross=yes
1562else
1563cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001564#line 1565 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001565#include "confdefs.h"
1566main(){return(0);}
1567EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001568{ (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001569if test -s conftest && (./conftest; exit) 2>/dev/null; then
1570 ac_cv_c_cross=no
1571else
1572 ac_cv_c_cross=yes
1573fi
1574fi
1575rm -fr conftest*
1576fi
1577
1578echo "$ac_t""$ac_cv_c_cross" 1>&6
1579cross_compiling=$ac_cv_c_cross
1580
1581 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
1582if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1584else
1585 if test "$cross_compiling" = yes; then
1586 ac_cv_c_gcc_strength_bug="yes"
1587else
1588cat > conftest.$ac_ext <<EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001589#line 1590 "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001590#include "confdefs.h"
1591
1592int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00001593 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001594 unsigned int B = 3;
1595 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00001596 for(i=0; i<B; i++) Array[i] = i - 3;
1597 exit( Array[1] != -2 );
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001598}
1599EOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001600{ (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001601if test -s conftest && (./conftest; exit) 2>/dev/null; then
1602 ac_cv_c_gcc_strength_bug="no"
1603else
1604 ac_cv_c_gcc_strength_bug="yes"
1605fi
1606fi
1607rm -fr conftest*
1608fi
1609
1610echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
1611 if test "$ac_cv_c_gcc_strength_bug" = "yes"
1612 then
1613 CFLAGS="$CFLAGS -fno-strength-reduce"
1614 fi
1615fi
1616
1617
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001618echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
1619if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1621else
1622 saved_libs=$LIBS
1623LIBS="conftest_asm.s $LIBS"
1624cat > conftest_asm.s <<EOF
1625 .globl _ac_test
1626_ac_test:
1627 .long 0
1628EOF
1629cat > conftest.$ac_ext <<EOF
1630#line 1631 "configure"
1631#include "confdefs.h"
1632extern int ac_test;
1633int main() { return 0; }
1634int t() {
1635if (ac_test) return 1
1636; return 0; }
1637EOF
1638if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1639 rm -rf conftest*
1640 ac_cv_c_extern_prefix="yes"
1641else
1642 rm -rf conftest*
1643 ac_cv_c_extern_prefix="no"
1644fi
1645rm -f conftest*
1646
1647LIBS=$saved_libs
1648fi
1649
1650echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
1651if test "$ac_cv_c_extern_prefix" = "yes"
1652then
1653 cat >> confdefs.h <<\EOF
1654#define NEED_UNDERSCORE_PREFIX 1
1655EOF
1656
1657fi
1658
1659
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001660for ac_func in memmove tcgetattr usleep
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001661do
1662echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1663if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665else
1666 cat > conftest.$ac_ext <<EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001667#line 1668 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001668#include "confdefs.h"
1669/* System header to define __stub macros and hopefully few prototypes,
1670 which can conflict with char $ac_func(); below. */
1671#include <assert.h>
1672/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00001673/* We use char because int might match the return type of a gcc2
1674 builtin and then its argument prototype would still apply. */
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001675char $ac_func();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001676
1677int main() { return 0; }
1678int t() {
1679
1680/* The GNU C library defines this for functions which it implements
1681 to always fail with ENOSYS. Some functions are actually named
1682 something starting with __ and the normal name is an alias. */
1683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1684choke me
1685#else
1686$ac_func();
1687#endif
1688
1689; return 0; }
1690EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001691if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001692 rm -rf conftest*
1693 eval "ac_cv_func_$ac_func=yes"
1694else
1695 rm -rf conftest*
1696 eval "ac_cv_func_$ac_func=no"
1697fi
1698rm -f conftest*
1699
1700fi
1701if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1702 echo "$ac_t""yes" 1>&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001704 cat >> confdefs.h <<EOF
1705#define $ac_tr_func 1
1706EOF
1707
1708else
1709 echo "$ac_t""no" 1>&6
1710fi
1711done
1712
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001713echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1714if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1716else
1717 cat > conftest.$ac_ext <<EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001718#line 1719 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001719#include "confdefs.h"
1720#include <sys/types.h>
1721#include <sys/stat.h>
1722
1723#if defined(S_ISBLK) && defined(S_IFDIR)
1724# if S_ISBLK (S_IFDIR)
1725You lose.
1726# endif
1727#endif
1728
1729#if defined(S_ISBLK) && defined(S_IFCHR)
1730# if S_ISBLK (S_IFCHR)
1731You lose.
1732# endif
1733#endif
1734
1735#if defined(S_ISLNK) && defined(S_IFREG)
1736# if S_ISLNK (S_IFREG)
1737You lose.
1738# endif
1739#endif
1740
1741#if defined(S_ISSOCK) && defined(S_IFREG)
1742# if S_ISSOCK (S_IFREG)
1743You lose.
1744# endif
1745#endif
1746
1747EOF
1748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1749 egrep "You lose" >/dev/null 2>&1; then
1750 rm -rf conftest*
1751 ac_cv_header_stat_broken=yes
1752else
1753 rm -rf conftest*
1754 ac_cv_header_stat_broken=no
1755fi
1756rm -f conftest*
1757
1758fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001759
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001760echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1761if test $ac_cv_header_stat_broken = yes; then
1762 cat >> confdefs.h <<\EOF
1763#define STAT_MACROS_BROKEN 1
1764EOF
1765
1766fi
1767
1768echo $ac_n "checking for working const""... $ac_c" 1>&6
1769if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1771else
1772 cat > conftest.$ac_ext <<EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001773#line 1774 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001774#include "confdefs.h"
1775
1776int main() { return 0; }
1777int t() {
1778
1779/* Ultrix mips cc rejects this. */
1780typedef int charset[2]; const charset x;
1781/* SunOS 4.1.1 cc rejects this. */
1782char const *const *ccp;
1783char **p;
1784/* NEC SVR4.0.2 mips cc rejects this. */
1785struct point {int x, y;};
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001786static struct point const zero = {0,0};
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001787/* AIX XL C 1.02.0.0 rejects this.
1788 It does not let you subtract one const X* pointer from another in an arm
1789 of an if-expression whose if-part is not a constant expression */
1790const char *g = "string";
1791ccp = &g + (g ? g-g : 0);
1792/* HPUX 7.0 cc rejects these. */
1793++ccp;
1794p = (char**) ccp;
1795ccp = (char const *const *) p;
1796{ /* SCO 3.2v4 cc rejects this. */
1797 char *t;
1798 char const *s = 0 ? (char *) 0 : (char const *) 0;
1799
1800 *t++ = 0;
1801}
1802{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1803 int x[] = {25, 17};
1804 const int *foo = &x[0];
1805 ++foo;
1806}
1807{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1808 typedef const int *iptr;
1809 iptr p = 0;
1810 ++p;
1811}
1812{ /* AIX XL C 1.02.0.0 rejects this saying
1813 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1814 struct s { int j; const int *ap[3]; };
1815 struct s *b; b->j = 5;
1816}
1817{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1818 const int foo = 10;
1819}
1820
1821; return 0; }
1822EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001823if { (eval echo configure:1824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001824 rm -rf conftest*
1825 ac_cv_c_const=yes
1826else
1827 rm -rf conftest*
1828 ac_cv_c_const=no
1829fi
1830rm -f conftest*
1831
1832fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001833
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001834echo "$ac_t""$ac_cv_c_const" 1>&6
1835if test $ac_cv_c_const = no; then
1836 cat >> confdefs.h <<\EOF
1837#define const
1838EOF
1839
1840fi
1841
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001842echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1843if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1845else
1846 cat > conftest.$ac_ext <<EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001847#line 1848 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001848#include "confdefs.h"
1849#include <stdlib.h>
1850#include <stdarg.h>
1851#include <string.h>
1852#include <float.h>
1853EOF
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001854ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001855{ (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001856ac_err=`grep -v '^ *+' conftest.out`
1857if test -z "$ac_err"; then
1858 rm -rf conftest*
1859 ac_cv_header_stdc=yes
1860else
1861 echo "$ac_err" >&5
1862 rm -rf conftest*
1863 ac_cv_header_stdc=no
1864fi
1865rm -f conftest*
1866
1867if test $ac_cv_header_stdc = yes; then
1868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1869cat > conftest.$ac_ext <<EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001870#line 1871 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001871#include "confdefs.h"
1872#include <string.h>
1873EOF
1874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1875 egrep "memchr" >/dev/null 2>&1; then
1876 :
1877else
1878 rm -rf conftest*
1879 ac_cv_header_stdc=no
1880fi
1881rm -f conftest*
1882
1883fi
1884
1885if test $ac_cv_header_stdc = yes; then
1886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1887cat > conftest.$ac_ext <<EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001888#line 1889 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001889#include "confdefs.h"
1890#include <stdlib.h>
1891EOF
1892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1893 egrep "free" >/dev/null 2>&1; then
1894 :
1895else
1896 rm -rf conftest*
1897 ac_cv_header_stdc=no
1898fi
1899rm -f conftest*
1900
1901fi
1902
1903if test $ac_cv_header_stdc = yes; then
1904 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1905if test "$cross_compiling" = yes; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001906 :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001907else
1908cat > conftest.$ac_ext <<EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001909#line 1910 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001910#include "confdefs.h"
1911#include <ctype.h>
1912#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1913#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1914#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1915int main () { int i; for (i = 0; i < 256; i++)
1916if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1917exit (0); }
1918
1919EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001920{ (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001921if test -s conftest && (./conftest; exit) 2>/dev/null; then
1922 :
1923else
1924 ac_cv_header_stdc=no
1925fi
1926fi
1927rm -fr conftest*
1928fi
1929fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001930
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001931echo "$ac_t""$ac_cv_header_stdc" 1>&6
1932if test $ac_cv_header_stdc = yes; then
1933 cat >> confdefs.h <<\EOF
1934#define STDC_HEADERS 1
1935EOF
1936
1937fi
1938
1939echo $ac_n "checking for size_t""... $ac_c" 1>&6
1940if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1942else
1943 cat > conftest.$ac_ext <<EOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00001944#line 1945 "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001945#include "confdefs.h"
1946#include <sys/types.h>
1947#if STDC_HEADERS
1948#include <stdlib.h>
1949#endif
1950EOF
1951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1952 egrep "size_t" >/dev/null 2>&1; then
1953 rm -rf conftest*
1954 ac_cv_type_size_t=yes
1955else
1956 rm -rf conftest*
1957 ac_cv_type_size_t=no
1958fi
1959rm -f conftest*
1960
1961fi
1962echo "$ac_t""$ac_cv_type_size_t" 1>&6
1963if test $ac_cv_type_size_t = no; then
1964 cat >> confdefs.h <<\EOF
1965#define size_t unsigned
1966EOF
1967
1968fi
1969
1970
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001971
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001972MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001973
1974
1975trap '' 1 2 15
1976cat > confcache <<\EOF
1977# This file is a shell script that caches the results of configure
1978# tests run on this system so they can be shared between configure
1979# scripts and configure runs. It is not useful on other systems.
1980# If it contains results you don't want to keep, you may remove or edit it.
1981#
1982# By default, configure uses ./config.cache as the cache file,
1983# creating it if it does not exist already. You can give configure
1984# the --cache-file=FILE option to use a different cache file; that is
1985# what configure does when it calls configure scripts in
1986# subdirectories, so they share the cache.
1987# Giving --cache-file=/dev/null disables caching, for debugging configure.
1988# config.status only pays attention to the cache file if you give it the
1989# --recheck option to rerun configure.
1990#
1991EOF
1992# Ultrix sh set writes to stderr and can't be redirected directly,
1993# and sets the high bit in the cache file unless we assign to the vars.
1994(set) 2>&1 |
1995 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1996 >> confcache
1997if cmp -s $cache_file confcache; then
1998 :
1999else
2000 if test -w $cache_file; then
2001 echo "updating cache $cache_file"
2002 cat confcache > $cache_file
2003 else
2004 echo "not updating unwritable cache $cache_file"
2005 fi
2006fi
2007rm -f confcache
2008
2009trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2010
2011test "x$prefix" = xNONE && prefix=$ac_default_prefix
2012# Let make expand exec_prefix.
2013test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2014
2015# Any assignment to VPATH causes Sun make to only execute
2016# the first set of double-colon rules, so remove it if not needed.
2017# If there is a colon in the path, we need to keep it.
2018if test "x$srcdir" = x.; then
2019 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2020fi
2021
2022trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2023
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002024DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002025
2026# Without the "./", some shells look in PATH for config.status.
2027: ${CONFIG_STATUS=./config.status}
2028
2029echo creating $CONFIG_STATUS
2030rm -f $CONFIG_STATUS
2031cat > $CONFIG_STATUS <<EOF
2032#! /bin/sh
2033# Generated automatically by configure.
2034# Run this file to recreate the current configuration.
2035# This directory was configured as follows,
2036# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2037#
2038# $0 $ac_configure_args
2039#
2040# Compiler output produced by configure, useful for debugging
2041# configure, is in ./config.log if it exists.
2042
2043ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2044for ac_option
2045do
2046 case "\$ac_option" in
2047 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2048 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2049 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2050 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002051 echo "$CONFIG_STATUS generated by autoconf version 2.10-patched"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002052 exit 0 ;;
2053 -help | --help | --hel | --he | --h)
2054 echo "\$ac_cs_usage"; exit 0 ;;
2055 *) echo "\$ac_cs_usage"; exit 1 ;;
2056 esac
2057done
2058
2059ac_given_srcdir=$srcdir
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002060ac_given_INSTALL="$INSTALL"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002061
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002062trap 'rm -fr `echo "
2063Make.rules
2064Makefile
2065controls/Makefile
2066debugger/Makefile
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00002067files/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002068if1632/Makefile
2069ipc/Makefile
2070library/Makefile
2071libtest/Makefile
2072loader/Makefile
2073memory/Makefile
2074misc/Makefile
2075miscemu/Makefile
2076multimedia/Makefile
2077objects/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00002078programs/Makefile
2079programs/progman/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002080programs/winhelp/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002081rc/Makefile
2082resources/Makefile
2083tools/Makefile
2084win32/Makefile
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002085windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002086EOF
2087cat >> $CONFIG_STATUS <<EOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002088
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002089# Protect against being on the right side of a sed subst in config.status.
2090sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2091 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002092$ac_vpsub
2093$extrasub
2094s%@CFLAGS@%$CFLAGS%g
2095s%@CPPFLAGS@%$CPPFLAGS%g
2096s%@CXXFLAGS@%$CXXFLAGS%g
2097s%@DEFS@%$DEFS%g
2098s%@LDFLAGS@%$LDFLAGS%g
2099s%@LIBS@%$LIBS%g
2100s%@exec_prefix@%$exec_prefix%g
2101s%@prefix@%$prefix%g
2102s%@program_transform_name@%$program_transform_name%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002103s%@bindir@%$bindir%g
2104s%@sbindir@%$sbindir%g
2105s%@libexecdir@%$libexecdir%g
2106s%@datadir@%$datadir%g
2107s%@sysconfdir@%$sysconfdir%g
2108s%@sharedstatedir@%$sharedstatedir%g
2109s%@localstatedir@%$localstatedir%g
2110s%@libdir@%$libdir%g
2111s%@includedir@%$includedir%g
2112s%@oldincludedir@%$oldincludedir%g
2113s%@infodir@%$infodir%g
2114s%@mandir@%$mandir%g
Alexandre Julliard902da691995-11-05 14:39:02 +00002115s%@LDLIBS@%$LDLIBS%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002116s%@MAIN_TARGET@%$MAIN_TARGET%g
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002117s%@OPTIONS@%$OPTIONS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002118s%@SET_MAKE@%$SET_MAKE%g
2119s%@CC@%$CC%g
2120s%@CPP@%$CPP%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002121s%@X_CFLAGS@%$X_CFLAGS%g
2122s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2123s%@X_LIBS@%$X_LIBS%g
2124s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002125s%@YACC@%$YACC%g
2126s%@LEX@%$LEX%g
2127s%@LEXLIB@%$LEXLIB%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002128s%@RANLIB@%$RANLIB%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002129s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2130s%@INSTALL_DATA@%$INSTALL_DATA%g
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002131/@MAKE_RULES@/r $MAKE_RULES
2132s%@MAKE_RULES@%%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002133
2134CEOF
2135EOF
2136cat >> $CONFIG_STATUS <<EOF
2137
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002138CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2139Makefile
2140controls/Makefile
2141debugger/Makefile
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00002142files/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002143if1632/Makefile
2144ipc/Makefile
2145library/Makefile
2146libtest/Makefile
2147loader/Makefile
2148memory/Makefile
2149misc/Makefile
2150miscemu/Makefile
2151multimedia/Makefile
2152objects/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00002153programs/Makefile
2154programs/progman/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00002155programs/winhelp/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002156rc/Makefile
2157resources/Makefile
2158tools/Makefile
2159win32/Makefile
2160windows/Makefile "}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002161EOF
2162cat >> $CONFIG_STATUS <<\EOF
2163for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2164 # Support "outfile[:infile]", defaulting infile="outfile.in".
2165 case "$ac_file" in
2166 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2167 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2168 *) ac_file_in="${ac_file}.in" ;;
2169 esac
2170
2171 # Adjust relative srcdir, etc. for subdirectories.
2172
2173 # Remove last slash and all that follows it. Not all systems have dirname.
2174 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2175 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2176 # The file is in a subdirectory.
2177 test ! -d "$ac_dir" && mkdir "$ac_dir"
2178 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2179 # A "../" for each directory in $ac_dir_suffix.
2180 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2181 else
2182 ac_dir_suffix= ac_dots=
2183 fi
2184
2185 case "$ac_given_srcdir" in
2186 .) srcdir=.
2187 if test -z "$ac_dots"; then top_srcdir=.
2188 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2189 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2190 *) # Relative path.
2191 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2192 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2193 esac
2194
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002195 case "$ac_given_INSTALL" in
2196 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2197 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2198 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002199 echo creating "$ac_file"
2200 rm -f "$ac_file"
2201 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2202 case "$ac_file" in
2203 *Makefile*) ac_comsub="1i\\
2204# $configure_input" ;;
2205 *) ac_comsub= ;;
2206 esac
2207 sed -e "$ac_comsub
2208s%@configure_input@%$configure_input%g
2209s%@srcdir@%$srcdir%g
2210s%@top_srcdir@%$top_srcdir%g
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002211s%@INSTALL@%$INSTALL%g
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002212" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2213fi; done
2214rm -f conftest.subs
2215
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002216# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2217# NAME is the cpp macro being defined and VALUE is the value it is being given.
2218#
2219# ac_d sets the value in "#define NAME VALUE" lines.
2220ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2221ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2222ac_dC='\3'
2223ac_dD='%g'
2224# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2225ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2226ac_uB='\([ ]\)%\1#\2define\3'
2227ac_uC=' '
2228ac_uD='\4%g'
2229# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2230ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2231ac_eB='$%\1#\2define\3'
2232ac_eC=' '
2233ac_eD='%g'
2234
2235CONFIG_HEADERS=${CONFIG_HEADERS-"include/config.h"}
2236for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2237 # Support "outfile[:infile]", defaulting infile="outfile.in".
2238 case "$ac_file" in
2239 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2240 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2241 *) ac_file_in="${ac_file}.in" ;;
2242 esac
2243
2244 echo creating $ac_file
2245
2246 rm -f conftest.frag conftest.in conftest.out
2247 cp $ac_given_srcdir/$ac_file_in conftest.in
2248
2249EOF
2250
2251# Transform confdefs.h into a sed script conftest.vals that substitutes
2252# the proper values into config.h.in to produce config.h. And first:
2253# Protect against being on the right side of a sed subst in config.status.
2254# Protect against being in an unquoted here document in config.status.
2255rm -f conftest.vals
2256cat > conftest.hdr <<\EOF
2257s/[\\&%]/\\&/g
2258s%[\\$`]%\\&%g
2259s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2260s%ac_d%ac_u%gp
2261s%ac_u%ac_e%gp
2262EOF
2263sed -n -f conftest.hdr confdefs.h > conftest.vals
2264rm -f conftest.hdr
2265
2266# This sed command replaces #undef with comments. This is necessary, for
2267# example, in the case of _POSIX_SOURCE, which is predefined and required
2268# on some systems where configure will not decide to define it.
2269cat >> conftest.vals <<\EOF
2270s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2271EOF
2272
2273# Break up conftest.vals because some shells have a limit on
2274# the size of here documents, and old seds have small limits too.
2275# Maximum number of lines to put in a single here document.
2276ac_max_here_lines=12
2277
2278rm -f conftest.tail
2279while :
2280do
2281 ac_lines=`grep -c . conftest.vals`
2282 # grep -c gives empty output for an empty file on some AIX systems.
2283 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2284 # Write a limited-size here document to conftest.frag.
2285 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2286 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2287 echo 'CEOF
2288 sed -f conftest.frag conftest.in > conftest.out
2289 rm -f conftest.in
2290 mv conftest.out conftest.in
2291' >> $CONFIG_STATUS
2292 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2293 rm -f conftest.vals
2294 mv conftest.tail conftest.vals
2295done
2296rm -f conftest.vals
2297
2298cat >> $CONFIG_STATUS <<\EOF
2299 rm -f conftest.frag conftest.h
2300 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2301 cat conftest.in >> conftest.h
2302 rm -f conftest.in
2303 if cmp -s $ac_file conftest.h 2>/dev/null; then
2304 echo "$ac_file is unchanged"
2305 rm -f conftest.h
2306 else
2307 # Remove last slash and all that follows it. Not all systems have dirname.
2308 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2309 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2310 # The file is in a subdirectory.
2311 test ! -d "$ac_dir" && mkdir "$ac_dir"
2312 fi
2313 rm -f $ac_file
2314 mv conftest.h $ac_file
2315 fi
2316fi; done
2317
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002318
2319
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002320exit 0
2321EOF
2322chmod +x $CONFIG_STATUS
2323rm -fr confdefs* $ac_clean_files
2324test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2325
2326
2327echo
2328echo "Configure finished. Do 'make depend; make' to compile Wine."
2329echo
2330