Commit | Line | Data |
---|---|---|
e2991ea7 AJ |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in configure.in 1.00 | |
4 | # Guess values for system-dependent variables and create Makefiles. | |
18ad24a7 | 5 | # Generated automatically using autoconf version 2.13 |
59730ae1 | 6 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
e2991ea7 AJ |
7 | # |
8 | # This configure script is free software; the Free Software Foundation | |
9 | # gives unlimited permission to copy, distribute and modify it. | |
10 | ||
11 | # Defaults: | |
12 | ac_help= | |
13 | ac_default_prefix=/usr/local | |
14 | # Any additions from configure.in: | |
7e56f684 | 15 | ac_help="$ac_help |
0adad95d | 16 | --disable-dll build static libraries instead of DLLs" |
f90efa9c AJ |
17 | ac_help="$ac_help |
18 | --disable-debug compile out all debugging messages" | |
fbc15b17 LU |
19 | ac_help="$ac_help |
20 | --enable-opengl force usage of OpenGL even if the latter is thread-safe" | |
f90efa9c AJ |
21 | ac_help="$ac_help |
22 | --disable-trace compile out TRACE messages" | |
5e5ad531 PS |
23 | ac_help="$ac_help |
24 | --without-curses do not use curses" | |
a11d7b1a | 25 | ac_help="$ac_help |
f638aef5 | 26 | --without-reentrant-x compile for use with non-reentrant X libraries" |
e2991ea7 AJ |
27 | ac_help="$ac_help |
28 | --with-x use the X Window System" | |
29 | ||
30 | # Initialize some variables set by options. | |
31 | # The variables have the same names as the options, with | |
32 | # dashes changed to underlines. | |
33 | build=NONE | |
34 | cache_file=./config.cache | |
35 | exec_prefix=NONE | |
36 | host=NONE | |
37 | no_create= | |
38 | nonopt=NONE | |
39 | no_recursion= | |
40 | prefix=NONE | |
41 | program_prefix=NONE | |
42 | program_suffix=NONE | |
43 | program_transform_name=s,x,x, | |
44 | silent= | |
45 | site= | |
46 | srcdir= | |
47 | target=NONE | |
48 | verbose= | |
49 | x_includes=NONE | |
50 | x_libraries=NONE | |
d7d4fdf8 AJ |
51 | bindir='${exec_prefix}/bin' |
52 | sbindir='${exec_prefix}/sbin' | |
53 | libexecdir='${exec_prefix}/libexec' | |
54 | datadir='${prefix}/share' | |
55 | sysconfdir='${prefix}/etc' | |
56 | sharedstatedir='${prefix}/com' | |
57 | localstatedir='${prefix}/var' | |
58 | libdir='${exec_prefix}/lib' | |
59 | includedir='${prefix}/include' | |
60 | oldincludedir='/usr/include' | |
61 | infodir='${prefix}/info' | |
62 | mandir='${prefix}/man' | |
e2991ea7 AJ |
63 | |
64 | # Initialize some other variables. | |
65 | subdirs= | |
d7d4fdf8 | 66 | MFLAGS= MAKEFLAGS= |
18ad24a7 | 67 | SHELL=${CONFIG_SHELL-/bin/sh} |
da0cfb36 AJ |
68 | # Maximum number of lines to put in a shell here document. |
69 | ac_max_here_lines=12 | |
e2991ea7 AJ |
70 | |
71 | ac_prev= | |
72 | for ac_option | |
73 | do | |
74 | ||
75 | # If the previous option needs an argument, assign it. | |
76 | if test -n "$ac_prev"; then | |
77 | eval "$ac_prev=\$ac_option" | |
78 | ac_prev= | |
79 | continue | |
80 | fi | |
81 | ||
82 | case "$ac_option" in | |
83 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
84 | *) ac_optarg= ;; | |
85 | esac | |
86 | ||
87 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
88 | ||
89 | case "$ac_option" in | |
90 | ||
d7d4fdf8 AJ |
91 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
92 | ac_prev=bindir ;; | |
93 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
94 | bindir="$ac_optarg" ;; | |
95 | ||
96 | -build | --build | --buil | --bui | --bu) | |
e2991ea7 | 97 | ac_prev=build ;; |
d7d4fdf8 | 98 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e2991ea7 AJ |
99 | build="$ac_optarg" ;; |
100 | ||
101 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
102 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
103 | ac_prev=cache_file ;; | |
104 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
105 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
106 | cache_file="$ac_optarg" ;; | |
107 | ||
d7d4fdf8 AJ |
108 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
109 | ac_prev=datadir ;; | |
110 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
111 | | --da=*) | |
112 | datadir="$ac_optarg" ;; | |
113 | ||
e2991ea7 AJ |
114 | -disable-* | --disable-*) |
115 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
116 | # Reject names that are not valid shell variable names. | |
117 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
118 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
119 | fi | |
120 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
121 | eval "enable_${ac_feature}=no" ;; | |
122 | ||
123 | -enable-* | --enable-*) | |
124 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
125 | # Reject names that are not valid shell variable names. | |
126 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
127 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
128 | fi | |
129 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
130 | case "$ac_option" in | |
131 | *=*) ;; | |
132 | *) ac_optarg=yes ;; | |
133 | esac | |
134 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
135 | ||
136 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
137 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
138 | | --exec | --exe | --ex) | |
139 | ac_prev=exec_prefix ;; | |
140 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
141 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
142 | | --exec=* | --exe=* | --ex=*) | |
143 | exec_prefix="$ac_optarg" ;; | |
144 | ||
145 | -gas | --gas | --ga | --g) | |
146 | # Obsolete; use --with-gas. | |
147 | with_gas=yes ;; | |
148 | ||
149 | -help | --help | --hel | --he) | |
150 | # Omit some internal or obsolete options to make the list less imposing. | |
151 | # This message is too long to be a string in the A/UX 3.1 sh. | |
152 | cat << EOF | |
153 | Usage: configure [options] [host] | |
154 | Options: [defaults in brackets after descriptions] | |
155 | Configuration: | |
156 | --cache-file=FILE cache test results in FILE | |
157 | --help print this message | |
158 | --no-create do not create output files | |
159 | --quiet, --silent do not print \`checking...' messages | |
160 | --version print the version of autoconf that created configure | |
161 | Directory and file names: | |
162 | --prefix=PREFIX install architecture-independent files in PREFIX | |
163 | [$ac_default_prefix] | |
d7d4fdf8 | 164 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
e2991ea7 | 165 | [same as prefix] |
d7d4fdf8 AJ |
166 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
167 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
168 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
169 | --datadir=DIR read-only architecture-independent data in DIR | |
170 | [PREFIX/share] | |
171 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
172 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
173 | [PREFIX/com] | |
174 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
175 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
176 | --includedir=DIR C header files in DIR [PREFIX/include] | |
177 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
178 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
179 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
e2991ea7 AJ |
180 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
181 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
182 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
d7d4fdf8 AJ |
183 | --program-transform-name=PROGRAM |
184 | run sed PROGRAM on installed program names | |
185 | EOF | |
186 | cat << EOF | |
e2991ea7 AJ |
187 | Host type: |
188 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
189 | --host=HOST configure for HOST [guessed] | |
190 | --target=TARGET configure for TARGET [TARGET=HOST] | |
191 | Features and packages: | |
192 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
193 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
194 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
195 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
196 | --x-includes=DIR X include files are in DIR | |
197 | --x-libraries=DIR X library files are in DIR | |
e2991ea7 | 198 | EOF |
d7d4fdf8 AJ |
199 | if test -n "$ac_help"; then |
200 | echo "--enable and --with options recognized:$ac_help" | |
201 | fi | |
e2991ea7 AJ |
202 | exit 0 ;; |
203 | ||
204 | -host | --host | --hos | --ho) | |
205 | ac_prev=host ;; | |
206 | -host=* | --host=* | --hos=* | --ho=*) | |
207 | host="$ac_optarg" ;; | |
208 | ||
d7d4fdf8 AJ |
209 | -includedir | --includedir | --includedi | --included | --include \ |
210 | | --includ | --inclu | --incl | --inc) | |
211 | ac_prev=includedir ;; | |
212 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
213 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
214 | includedir="$ac_optarg" ;; | |
215 | ||
216 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
217 | ac_prev=infodir ;; | |
218 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
219 | infodir="$ac_optarg" ;; | |
220 | ||
221 | -libdir | --libdir | --libdi | --libd) | |
222 | ac_prev=libdir ;; | |
223 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
224 | libdir="$ac_optarg" ;; | |
225 | ||
226 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
227 | | --libexe | --libex | --libe) | |
228 | ac_prev=libexecdir ;; | |
229 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
230 | | --libexe=* | --libex=* | --libe=*) | |
231 | libexecdir="$ac_optarg" ;; | |
232 | ||
233 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
234 | | --localstate | --localstat | --localsta | --localst \ | |
235 | | --locals | --local | --loca | --loc | --lo) | |
236 | ac_prev=localstatedir ;; | |
237 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
238 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
239 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
240 | localstatedir="$ac_optarg" ;; | |
241 | ||
242 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
243 | ac_prev=mandir ;; | |
244 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
245 | mandir="$ac_optarg" ;; | |
246 | ||
e2991ea7 AJ |
247 | -nfp | --nfp | --nf) |
248 | # Obsolete; use --without-fp. | |
249 | with_fp=no ;; | |
250 | ||
251 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
252 | | --no-cr | --no-c) | |
253 | no_create=yes ;; | |
254 | ||
255 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
256 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
257 | no_recursion=yes ;; | |
258 | ||
d7d4fdf8 AJ |
259 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
260 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
261 | | --oldin | --oldi | --old | --ol | --o) | |
262 | ac_prev=oldincludedir ;; | |
263 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
264 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
265 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
266 | oldincludedir="$ac_optarg" ;; | |
267 | ||
e2991ea7 AJ |
268 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
269 | ac_prev=prefix ;; | |
270 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
271 | prefix="$ac_optarg" ;; | |
272 | ||
273 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
274 | | --program-pre | --program-pr | --program-p) | |
275 | ac_prev=program_prefix ;; | |
276 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
277 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
278 | program_prefix="$ac_optarg" ;; | |
279 | ||
280 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
281 | | --program-suf | --program-su | --program-s) | |
282 | ac_prev=program_suffix ;; | |
283 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
284 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
285 | program_suffix="$ac_optarg" ;; | |
286 | ||
287 | -program-transform-name | --program-transform-name \ | |
288 | | --program-transform-nam | --program-transform-na \ | |
289 | | --program-transform-n | --program-transform- \ | |
290 | | --program-transform | --program-transfor \ | |
291 | | --program-transfo | --program-transf \ | |
292 | | --program-trans | --program-tran \ | |
293 | | --progr-tra | --program-tr | --program-t) | |
294 | ac_prev=program_transform_name ;; | |
295 | -program-transform-name=* | --program-transform-name=* \ | |
296 | | --program-transform-nam=* | --program-transform-na=* \ | |
297 | | --program-transform-n=* | --program-transform-=* \ | |
298 | | --program-transform=* | --program-transfor=* \ | |
299 | | --program-transfo=* | --program-transf=* \ | |
300 | | --program-trans=* | --program-tran=* \ | |
301 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
302 | program_transform_name="$ac_optarg" ;; | |
303 | ||
304 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
305 | | -silent | --silent | --silen | --sile | --sil) | |
306 | silent=yes ;; | |
307 | ||
d7d4fdf8 AJ |
308 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
309 | ac_prev=sbindir ;; | |
310 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
311 | | --sbi=* | --sb=*) | |
312 | sbindir="$ac_optarg" ;; | |
313 | ||
314 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
315 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
316 | | --sharedst | --shareds | --shared | --share | --shar \ | |
317 | | --sha | --sh) | |
318 | ac_prev=sharedstatedir ;; | |
319 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
320 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
321 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
322 | | --sha=* | --sh=*) | |
323 | sharedstatedir="$ac_optarg" ;; | |
324 | ||
e2991ea7 AJ |
325 | -site | --site | --sit) |
326 | ac_prev=site ;; | |
327 | -site=* | --site=* | --sit=*) | |
328 | site="$ac_optarg" ;; | |
329 | ||
330 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
331 | ac_prev=srcdir ;; | |
332 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
333 | srcdir="$ac_optarg" ;; | |
334 | ||
d7d4fdf8 AJ |
335 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
336 | | --syscon | --sysco | --sysc | --sys | --sy) | |
337 | ac_prev=sysconfdir ;; | |
338 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
339 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
340 | sysconfdir="$ac_optarg" ;; | |
341 | ||
e2991ea7 AJ |
342 | -target | --target | --targe | --targ | --tar | --ta | --t) |
343 | ac_prev=target ;; | |
344 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
345 | target="$ac_optarg" ;; | |
346 | ||
347 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
348 | verbose=yes ;; | |
349 | ||
350 | -version | --version | --versio | --versi | --vers) | |
18ad24a7 | 351 | echo "configure generated by autoconf version 2.13" |
e2991ea7 AJ |
352 | exit 0 ;; |
353 | ||
354 | -with-* | --with-*) | |
355 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
356 | # Reject names that are not valid shell variable names. | |
357 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
358 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
359 | fi | |
360 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
361 | case "$ac_option" in | |
362 | *=*) ;; | |
363 | *) ac_optarg=yes ;; | |
364 | esac | |
365 | eval "with_${ac_package}='$ac_optarg'" ;; | |
366 | ||
367 | -without-* | --without-*) | |
368 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
369 | # Reject names that are not valid shell variable names. | |
370 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
371 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
372 | fi | |
373 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
374 | eval "with_${ac_package}=no" ;; | |
375 | ||
376 | --x) | |
377 | # Obsolete; use --with-x. | |
378 | with_x=yes ;; | |
379 | ||
380 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
381 | | --x-incl | --x-inc | --x-in | --x-i) | |
382 | ac_prev=x_includes ;; | |
383 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
384 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
385 | x_includes="$ac_optarg" ;; | |
386 | ||
387 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
388 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
389 | ac_prev=x_libraries ;; | |
390 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
391 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
392 | x_libraries="$ac_optarg" ;; | |
393 | ||
394 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
395 | ;; | |
396 | ||
d7d4fdf8 | 397 | *) |
e2991ea7 AJ |
398 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
399 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
400 | fi | |
401 | if test "x$nonopt" != xNONE; then | |
402 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
403 | fi | |
404 | nonopt="$ac_option" | |
405 | ;; | |
406 | ||
407 | esac | |
408 | done | |
409 | ||
410 | if test -n "$ac_prev"; then | |
411 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
412 | fi | |
413 | ||
414 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
415 | ||
416 | # File descriptor usage: | |
417 | # 0 standard input | |
418 | # 1 file creation | |
419 | # 2 errors and warnings | |
420 | # 3 some systems may open it to /dev/tty | |
421 | # 4 used on the Kubota Titan | |
422 | # 6 checking for... messages and results | |
423 | # 5 compiler messages saved in config.log | |
424 | if test "$silent" = yes; then | |
425 | exec 6>/dev/null | |
426 | else | |
427 | exec 6>&1 | |
428 | fi | |
429 | exec 5>./config.log | |
430 | ||
431 | echo "\ | |
432 | This file contains any messages produced by compilers while | |
433 | running configure, to aid debugging if configure makes a mistake. | |
434 | " 1>&5 | |
435 | ||
436 | # Strip out --no-create and --no-recursion so they do not pile up. | |
437 | # Also quote any args containing shell metacharacters. | |
438 | ac_configure_args= | |
439 | for ac_arg | |
440 | do | |
441 | case "$ac_arg" in | |
442 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
443 | | --no-cr | --no-c) ;; | |
444 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
445 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
446 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
447 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
448 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
449 | esac | |
450 | done | |
451 | ||
452 | # NLS nuisances. | |
7e6ae4ba AJ |
453 | # Only set these to C if already set. These must not be set unconditionally |
454 | # because not all systems understand e.g. LANG=C (notably SCO). | |
455 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
456 | # Non-C LC_CTYPE values break the ctype check. | |
e2991ea7 | 457 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
7e6ae4ba AJ |
458 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
459 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
460 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
e2991ea7 AJ |
461 | |
462 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
463 | rm -rf conftest* confdefs.h | |
464 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
465 | echo > confdefs.h | |
466 | ||
467 | # A filename unique to this package, relative to the directory that | |
468 | # configure is in, which we can look for to find out if srcdir is correct. | |
469 | ac_unique_file=controls/edit.c | |
470 | ||
471 | # Find the source files, if location was not specified. | |
472 | if test -z "$srcdir"; then | |
473 | ac_srcdir_defaulted=yes | |
474 | # Try the directory containing this script, then its parent. | |
475 | ac_prog=$0 | |
476 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
477 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
478 | srcdir=$ac_confdir | |
479 | if test ! -r $srcdir/$ac_unique_file; then | |
480 | srcdir=.. | |
481 | fi | |
482 | else | |
483 | ac_srcdir_defaulted=no | |
484 | fi | |
485 | if test ! -r $srcdir/$ac_unique_file; then | |
486 | if test "$ac_srcdir_defaulted" = yes; then | |
487 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
488 | else | |
489 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
490 | fi | |
491 | fi | |
492 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
493 | ||
494 | # Prefer explicitly selected file to automatically selected ones. | |
495 | if test -z "$CONFIG_SITE"; then | |
496 | if test "x$prefix" != xNONE; then | |
497 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
498 | else | |
499 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
500 | fi | |
501 | fi | |
502 | for ac_site_file in $CONFIG_SITE; do | |
503 | if test -r "$ac_site_file"; then | |
504 | echo "loading site script $ac_site_file" | |
505 | . "$ac_site_file" | |
506 | fi | |
507 | done | |
508 | ||
509 | if test -r "$cache_file"; then | |
510 | echo "loading cache $cache_file" | |
511 | . $cache_file | |
512 | else | |
513 | echo "creating cache $cache_file" | |
514 | > $cache_file | |
515 | fi | |
516 | ||
517 | ac_ext=c | |
518 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
b817f4fb AJ |
519 | ac_cpp='$CPP $CPPFLAGS' |
520 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18ad24a7 | 521 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7e6ae4ba | 522 | cross_compiling=$ac_cv_prog_cc_cross |
e2991ea7 | 523 | |
18ad24a7 EP |
524 | ac_exeext= |
525 | ac_objext=o | |
e2991ea7 AJ |
526 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
527 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
528 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
529 | ac_n= ac_c=' | |
530 | ' ac_t=' ' | |
531 | else | |
532 | ac_n=-n ac_c= ac_t= | |
533 | fi | |
534 | else | |
535 | ac_n= ac_c='\c' ac_t= | |
536 | fi | |
537 | ||
538 | ||
18f92e76 | 539 | |
d7d4fdf8 AJ |
540 | ac_aux_dir= |
541 | for ac_dir in tools $srcdir/tools; do | |
542 | if test -f $ac_dir/install-sh; then | |
543 | ac_aux_dir=$ac_dir | |
544 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
545 | break | |
546 | elif test -f $ac_dir/install.sh; then | |
547 | ac_aux_dir=$ac_dir | |
548 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
549 | break | |
550 | fi | |
551 | done | |
552 | if test -z "$ac_aux_dir"; then | |
553 | { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; } | |
554 | fi | |
555 | ac_config_guess=$ac_aux_dir/config.guess | |
556 | ac_config_sub=$ac_aux_dir/config.sub | |
557 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
558 | ||
e2991ea7 | 559 | |
ff8331ea | 560 | |
318f4cef | 561 | LIBEXT=so # library type .so or .a |
f90efa9c AJ |
562 | TRACE_MSGS=yes # the TRACE() macro |
563 | DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros. | |
5e5ad531 | 564 | CURSES=yes |
fbc15b17 | 565 | OPENGL=normal |
a0b2b1d0 | 566 | |
a0b2b1d0 AJ |
567 | # Check whether --enable-dll or --disable-dll was given. |
568 | if test "${enable_dll+set}" = set; then | |
569 | enableval="$enable_dll" | |
318f4cef | 570 | if test "$enableval" = "no"; then LIBEXT="a"; fi |
642d3136 AJ |
571 | fi |
572 | ||
573 | ||
f90efa9c AJ |
574 | # Check whether --enable-debug or --disable-debug was given. |
575 | if test "${enable_debug+set}" = set; then | |
576 | enableval="$enable_debug" | |
577 | if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi | |
578 | fi | |
579 | ||
580 | ||
fbc15b17 LU |
581 | # Check whether --enable-opengl or --disable-opengl was given. |
582 | if test "${enable_opengl+set}" = set; then | |
583 | enableval="$enable_opengl" | |
584 | if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi | |
585 | fi | |
586 | ||
587 | ||
f90efa9c AJ |
588 | # Check whether --enable-trace or --disable-trace was given. |
589 | if test "${enable_trace+set}" = set; then | |
590 | enableval="$enable_trace" | |
591 | if test "$enableval" = "no"; then TRACE_MSGS="no"; fi | |
592 | fi | |
593 | ||
594 | ||
5e5ad531 PS |
595 | # Check whether --with-curses or --without-curses was given. |
596 | if test "${with_curses+set}" = set; then | |
597 | withval="$with_curses" | |
598 | if test "$withval" = "no"; then CURSES="no"; fi | |
599 | fi | |
600 | ||
601 | ||
a11d7b1a AJ |
602 | # Check whether --with-reentrant-x or --without-reentrant-x was given. |
603 | if test "${with_reentrant_x+set}" = set; then | |
604 | withval="$with_reentrant_x" | |
605 | : | |
606 | fi | |
607 | ||
608 | ||
b7258bef | 609 | |
b7258bef | 610 | |
f90efa9c AJ |
611 | if test "$DEBUG_MSGS" = "no" |
612 | then | |
613 | cat >> confdefs.h <<\EOF | |
614 | #define NO_DEBUG_MSGS 1 | |
615 | EOF | |
616 | ||
617 | cat >> confdefs.h <<\EOF | |
618 | #define NO_TRACE_MSGS 1 | |
619 | EOF | |
620 | ||
621 | else | |
622 | if test "$TRACE_MSGS" = "no" | |
623 | then | |
624 | cat >> confdefs.h <<\EOF | |
625 | #define NO_TRACE_MSGS 1 | |
626 | EOF | |
627 | ||
628 | fi | |
629 | fi | |
630 | ||
a0b2b1d0 | 631 | |
e2991ea7 | 632 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
2f158c26 | 633 | echo "configure:634: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
da0cfb36 | 634 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
e2991ea7 AJ |
635 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
637 | else | |
638 | cat > conftestmake <<\EOF | |
639 | all: | |
640 | @echo 'ac_maketemp="${MAKE}"' | |
641 | EOF | |
642 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
643 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
644 | if test -n "$ac_maketemp"; then | |
645 | eval ac_cv_prog_make_${ac_make}_set=yes | |
646 | else | |
647 | eval ac_cv_prog_make_${ac_make}_set=no | |
648 | fi | |
649 | rm -f conftestmake | |
650 | fi | |
651 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
652 | echo "$ac_t""yes" 1>&6 | |
653 | SET_MAKE= | |
654 | else | |
655 | echo "$ac_t""no" 1>&6 | |
656 | SET_MAKE="MAKE=${MAKE-make}" | |
657 | fi | |
658 | ||
659 | # Extract the first word of "gcc", so it can be a program name with args. | |
660 | set dummy gcc; ac_word=$2 | |
661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2f158c26 | 662 | echo "configure:663: checking for $ac_word" >&5 |
e2991ea7 AJ |
663 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
665 | else | |
666 | if test -n "$CC"; then | |
667 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
668 | else | |
18ad24a7 EP |
669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
670 | ac_dummy="$PATH" | |
671 | for ac_dir in $ac_dummy; do | |
e2991ea7 AJ |
672 | test -z "$ac_dir" && ac_dir=. |
673 | if test -f $ac_dir/$ac_word; then | |
674 | ac_cv_prog_CC="gcc" | |
675 | break | |
676 | fi | |
677 | done | |
678 | IFS="$ac_save_ifs" | |
e2991ea7 AJ |
679 | fi |
680 | fi | |
681 | CC="$ac_cv_prog_CC" | |
682 | if test -n "$CC"; then | |
683 | echo "$ac_t""$CC" 1>&6 | |
684 | else | |
685 | echo "$ac_t""no" 1>&6 | |
686 | fi | |
687 | ||
b817f4fb AJ |
688 | if test -z "$CC"; then |
689 | # Extract the first word of "cc", so it can be a program name with args. | |
690 | set dummy cc; ac_word=$2 | |
691 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2f158c26 | 692 | echo "configure:693: checking for $ac_word" >&5 |
b817f4fb AJ |
693 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
695 | else | |
696 | if test -n "$CC"; then | |
697 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
698 | else | |
18ad24a7 | 699 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
b817f4fb | 700 | ac_prog_rejected=no |
18ad24a7 EP |
701 | ac_dummy="$PATH" |
702 | for ac_dir in $ac_dummy; do | |
b817f4fb AJ |
703 | test -z "$ac_dir" && ac_dir=. |
704 | if test -f $ac_dir/$ac_word; then | |
705 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
706 | ac_prog_rejected=yes | |
707 | continue | |
708 | fi | |
709 | ac_cv_prog_CC="cc" | |
710 | break | |
711 | fi | |
712 | done | |
713 | IFS="$ac_save_ifs" | |
714 | if test $ac_prog_rejected = yes; then | |
715 | # We found a bogon in the path, so make sure we never use it. | |
716 | set dummy $ac_cv_prog_CC | |
717 | shift | |
718 | if test $# -gt 0; then | |
719 | # We chose a different compiler from the bogus one. | |
720 | # However, it has the same basename, so the bogon will be chosen | |
721 | # first if we set CC to just the basename; use the full file name. | |
722 | shift | |
723 | set dummy "$ac_dir/$ac_word" "$@" | |
724 | shift | |
725 | ac_cv_prog_CC="$@" | |
726 | fi | |
727 | fi | |
728 | fi | |
729 | fi | |
730 | CC="$ac_cv_prog_CC" | |
731 | if test -n "$CC"; then | |
732 | echo "$ac_t""$CC" 1>&6 | |
733 | else | |
734 | echo "$ac_t""no" 1>&6 | |
735 | fi | |
736 | ||
18ad24a7 EP |
737 | if test -z "$CC"; then |
738 | case "`uname -s`" in | |
739 | *win32* | *WIN32*) | |
740 | # Extract the first word of "cl", so it can be a program name with args. | |
741 | set dummy cl; ac_word=$2 | |
742 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2f158c26 | 743 | echo "configure:744: checking for $ac_word" >&5 |
18ad24a7 EP |
744 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
746 | else | |
747 | if test -n "$CC"; then | |
748 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
749 | else | |
750 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
751 | ac_dummy="$PATH" | |
752 | for ac_dir in $ac_dummy; do | |
753 | test -z "$ac_dir" && ac_dir=. | |
754 | if test -f $ac_dir/$ac_word; then | |
755 | ac_cv_prog_CC="cl" | |
756 | break | |
757 | fi | |
758 | done | |
759 | IFS="$ac_save_ifs" | |
760 | fi | |
761 | fi | |
762 | CC="$ac_cv_prog_CC" | |
763 | if test -n "$CC"; then | |
764 | echo "$ac_t""$CC" 1>&6 | |
765 | else | |
766 | echo "$ac_t""no" 1>&6 | |
767 | fi | |
768 | ;; | |
769 | esac | |
770 | fi | |
b817f4fb AJ |
771 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
772 | fi | |
e2991ea7 | 773 | |
da0cfb36 | 774 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
2f158c26 | 775 | echo "configure:776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
da0cfb36 AJ |
776 | |
777 | ac_ext=c | |
778 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
779 | ac_cpp='$CPP $CPPFLAGS' | |
780 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18ad24a7 | 781 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7e6ae4ba | 782 | cross_compiling=$ac_cv_prog_cc_cross |
da0cfb36 | 783 | |
18ad24a7 EP |
784 | cat > conftest.$ac_ext << EOF |
785 | ||
2f158c26 | 786 | #line 787 "configure" |
da0cfb36 | 787 | #include "confdefs.h" |
18ad24a7 | 788 | |
7e6ae4ba | 789 | main(){return(0);} |
da0cfb36 | 790 | EOF |
2f158c26 | 791 | if { (eval echo configure:792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da0cfb36 | 792 | ac_cv_prog_cc_works=yes |
7e6ae4ba AJ |
793 | # If we can't run a trivial program, we are probably using a cross compiler. |
794 | if (./conftest; exit) 2>/dev/null; then | |
795 | ac_cv_prog_cc_cross=no | |
796 | else | |
797 | ac_cv_prog_cc_cross=yes | |
798 | fi | |
da0cfb36 AJ |
799 | else |
800 | echo "configure: failed program was:" >&5 | |
801 | cat conftest.$ac_ext >&5 | |
da0cfb36 AJ |
802 | ac_cv_prog_cc_works=no |
803 | fi | |
7e6ae4ba | 804 | rm -fr conftest* |
18ad24a7 EP |
805 | ac_ext=c |
806 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
807 | ac_cpp='$CPP $CPPFLAGS' | |
808 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
809 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
810 | cross_compiling=$ac_cv_prog_cc_cross | |
da0cfb36 AJ |
811 | |
812 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
813 | if test $ac_cv_prog_cc_works = no; then | |
7e6ae4ba | 814 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
da0cfb36 | 815 | fi |
7e6ae4ba | 816 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
2f158c26 | 817 | echo "configure:818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
7e6ae4ba AJ |
818 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
819 | cross_compiling=$ac_cv_prog_cc_cross | |
da0cfb36 | 820 | |
e2991ea7 | 821 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
2f158c26 | 822 | echo "configure:823: checking whether we are using GNU C" >&5 |
e2991ea7 AJ |
823 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
825 | else | |
826 | cat > conftest.c <<EOF | |
827 | #ifdef __GNUC__ | |
828 | yes; | |
829 | #endif | |
830 | EOF | |
2f158c26 | 831 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
e2991ea7 AJ |
832 | ac_cv_prog_gcc=yes |
833 | else | |
834 | ac_cv_prog_gcc=no | |
835 | fi | |
836 | fi | |
d7d4fdf8 | 837 | |
e2991ea7 | 838 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
da0cfb36 | 839 | |
e2991ea7 AJ |
840 | if test $ac_cv_prog_gcc = yes; then |
841 | GCC=yes | |
18ad24a7 EP |
842 | else |
843 | GCC= | |
844 | fi | |
845 | ||
846 | ac_test_CFLAGS="${CFLAGS+set}" | |
847 | ac_save_CFLAGS="$CFLAGS" | |
848 | CFLAGS= | |
849 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
2f158c26 | 850 | echo "configure:851: checking whether ${CC-cc} accepts -g" >&5 |
7e6ae4ba | 851 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
e2991ea7 AJ |
852 | echo $ac_n "(cached) $ac_c" 1>&6 |
853 | else | |
854 | echo 'void f(){}' > conftest.c | |
855 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
7e6ae4ba | 856 | ac_cv_prog_cc_g=yes |
e2991ea7 | 857 | else |
7e6ae4ba | 858 | ac_cv_prog_cc_g=no |
e2991ea7 AJ |
859 | fi |
860 | rm -f conftest* | |
861 | ||
862 | fi | |
d7d4fdf8 | 863 | |
7e6ae4ba | 864 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
18ad24a7 EP |
865 | if test "$ac_test_CFLAGS" = set; then |
866 | CFLAGS="$ac_save_CFLAGS" | |
867 | elif test $ac_cv_prog_cc_g = yes; then | |
868 | if test "$GCC" = yes; then | |
da0cfb36 AJ |
869 | CFLAGS="-g -O2" |
870 | else | |
18ad24a7 | 871 | CFLAGS="-g" |
e2991ea7 AJ |
872 | fi |
873 | else | |
18ad24a7 EP |
874 | if test "$GCC" = yes; then |
875 | CFLAGS="-O2" | |
876 | else | |
877 | CFLAGS= | |
878 | fi | |
e2991ea7 AJ |
879 | fi |
880 | ||
881 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
2f158c26 | 882 | echo "configure:883: checking how to run the C preprocessor" >&5 |
e2991ea7 AJ |
883 | # On Suns, sometimes $CPP names a directory. |
884 | if test -n "$CPP" && test -d "$CPP"; then | |
885 | CPP= | |
886 | fi | |
887 | if test -z "$CPP"; then | |
888 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
890 | else | |
891 | # This must be in double quotes, not single quotes, because CPP may get | |
892 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
893 | CPP="${CC-cc} -E" | |
894 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
895 | # not just through cpp. | |
896 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 897 | #line 898 "configure" |
e2991ea7 AJ |
898 | #include "confdefs.h" |
899 | #include <assert.h> | |
900 | Syntax Error | |
901 | EOF | |
b817f4fb | 902 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2f158c26 | 903 | { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 904 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
e2991ea7 AJ |
905 | if test -z "$ac_err"; then |
906 | : | |
907 | else | |
908 | echo "$ac_err" >&5 | |
da0cfb36 AJ |
909 | echo "configure: failed program was:" >&5 |
910 | cat conftest.$ac_ext >&5 | |
e2991ea7 AJ |
911 | rm -rf conftest* |
912 | CPP="${CC-cc} -E -traditional-cpp" | |
913 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 914 | #line 915 "configure" |
e2991ea7 AJ |
915 | #include "confdefs.h" |
916 | #include <assert.h> | |
917 | Syntax Error | |
918 | EOF | |
b817f4fb | 919 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2f158c26 | 920 | { (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 EP |
921 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
922 | if test -z "$ac_err"; then | |
923 | : | |
924 | else | |
925 | echo "$ac_err" >&5 | |
926 | echo "configure: failed program was:" >&5 | |
927 | cat conftest.$ac_ext >&5 | |
928 | rm -rf conftest* | |
929 | CPP="${CC-cc} -nologo -E" | |
930 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 931 | #line 932 "configure" |
18ad24a7 EP |
932 | #include "confdefs.h" |
933 | #include <assert.h> | |
934 | Syntax Error | |
935 | EOF | |
936 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2f158c26 | 937 | { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 938 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
e2991ea7 AJ |
939 | if test -z "$ac_err"; then |
940 | : | |
941 | else | |
942 | echo "$ac_err" >&5 | |
da0cfb36 AJ |
943 | echo "configure: failed program was:" >&5 |
944 | cat conftest.$ac_ext >&5 | |
e2991ea7 AJ |
945 | rm -rf conftest* |
946 | CPP=/lib/cpp | |
947 | fi | |
948 | rm -f conftest* | |
949 | fi | |
18ad24a7 EP |
950 | rm -f conftest* |
951 | fi | |
e2991ea7 AJ |
952 | rm -f conftest* |
953 | ac_cv_prog_CPP="$CPP" | |
954 | fi | |
955 | CPP="$ac_cv_prog_CPP" | |
956 | else | |
957 | ac_cv_prog_CPP="$CPP" | |
958 | fi | |
959 | echo "$ac_t""$CPP" 1>&6 | |
960 | ||
961 | # If we find X, set shell vars x_includes and x_libraries to the | |
962 | # paths, otherwise set no_x=yes. | |
963 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
964 | # --without-x overrides everything else, but does not touch the cache. | |
965 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
2f158c26 | 966 | echo "configure:967: checking for X" >&5 |
e2991ea7 AJ |
967 | |
968 | # Check whether --with-x or --without-x was given. | |
d7d4fdf8 AJ |
969 | if test "${with_x+set}" = set; then |
970 | withval="$with_x" | |
e2991ea7 AJ |
971 | : |
972 | fi | |
973 | ||
b817f4fb | 974 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
e2991ea7 | 975 | if test "x$with_x" = xno; then |
b817f4fb AJ |
976 | # The user explicitly disabled X. |
977 | have_x=disabled | |
e2991ea7 AJ |
978 | else |
979 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
b817f4fb AJ |
980 | # Both variables are already set. |
981 | have_x=yes | |
e2991ea7 | 982 | else |
b817f4fb | 983 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
e2991ea7 AJ |
984 | echo $ac_n "(cached) $ac_c" 1>&6 |
985 | else | |
986 | # One or both of the vars are not set, and there is no cached value. | |
b817f4fb | 987 | ac_x_includes=NO ac_x_libraries=NO |
e2991ea7 AJ |
988 | rm -fr conftestdir |
989 | if mkdir conftestdir; then | |
990 | cd conftestdir | |
991 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
992 | cat > Imakefile <<'EOF' | |
993 | acfindx: | |
994 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
995 | EOF | |
996 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
e2991ea7 | 997 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
d7d4fdf8 | 998 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
e2991ea7 AJ |
999 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
1000 | for ac_extension in a so sl; do | |
1001 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
1002 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
1003 | ac_im_usrlibdir=$ac_im_libdir; break | |
1004 | fi | |
1005 | done | |
da0cfb36 AJ |
1006 | # Screen out bogus values from the imake configuration. They are |
1007 | # bogus both because they are the default anyway, and because | |
1008 | # using them would break gcc on systems where it needs fixed includes. | |
e2991ea7 AJ |
1009 | case "$ac_im_incroot" in |
1010 | /usr/include) ;; | |
1011 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
1012 | esac | |
1013 | case "$ac_im_usrlibdir" in | |
1014 | /usr/lib | /lib) ;; | |
1015 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
1016 | esac | |
1017 | fi | |
1018 | cd .. | |
1019 | rm -fr conftestdir | |
1020 | fi | |
1021 | ||
b817f4fb AJ |
1022 | if test "$ac_x_includes" = NO; then |
1023 | # Guess where to find include files, by looking for this one X11 .h file. | |
1024 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
1025 | ||
1026 | # First, try using that file with no special directory specified. | |
e2991ea7 | 1027 | cat > conftest.$ac_ext <<EOF |
2f158c26 | 1028 | #line 1029 "configure" |
e2991ea7 AJ |
1029 | #include "confdefs.h" |
1030 | #include <$x_direct_test_include> | |
1031 | EOF | |
b817f4fb | 1032 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2f158c26 | 1033 | { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 1034 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
e2991ea7 AJ |
1035 | if test -z "$ac_err"; then |
1036 | rm -rf conftest* | |
b817f4fb AJ |
1037 | # We can compile using X headers with no special include directory. |
1038 | ac_x_includes= | |
e2991ea7 AJ |
1039 | else |
1040 | echo "$ac_err" >&5 | |
da0cfb36 AJ |
1041 | echo "configure: failed program was:" >&5 |
1042 | cat conftest.$ac_ext >&5 | |
e2991ea7 | 1043 | rm -rf conftest* |
b817f4fb | 1044 | # Look for the header file in a standard set of common directories. |
da0cfb36 | 1045 | # Check X11 before X11Rn because it is often a symlink to the current release. |
b817f4fb | 1046 | for ac_dir in \ |
da0cfb36 | 1047 | /usr/X11/include \ |
e2991ea7 AJ |
1048 | /usr/X11R6/include \ |
1049 | /usr/X11R5/include \ | |
1050 | /usr/X11R4/include \ | |
1051 | \ | |
da0cfb36 | 1052 | /usr/include/X11 \ |
e2991ea7 AJ |
1053 | /usr/include/X11R6 \ |
1054 | /usr/include/X11R5 \ | |
1055 | /usr/include/X11R4 \ | |
1056 | \ | |
da0cfb36 | 1057 | /usr/local/X11/include \ |
e2991ea7 AJ |
1058 | /usr/local/X11R6/include \ |
1059 | /usr/local/X11R5/include \ | |
1060 | /usr/local/X11R4/include \ | |
1061 | \ | |
da0cfb36 | 1062 | /usr/local/include/X11 \ |
e2991ea7 AJ |
1063 | /usr/local/include/X11R6 \ |
1064 | /usr/local/include/X11R5 \ | |
1065 | /usr/local/include/X11R4 \ | |
1066 | \ | |
e2991ea7 AJ |
1067 | /usr/X386/include \ |
1068 | /usr/x386/include \ | |
1069 | /usr/XFree86/include/X11 \ | |
1070 | \ | |
1071 | /usr/include \ | |
1072 | /usr/local/include \ | |
1073 | /usr/unsupported/include \ | |
1074 | /usr/athena/include \ | |
1075 | /usr/local/x11r5/include \ | |
1076 | /usr/lpp/Xamples/include \ | |
1077 | \ | |
1078 | /usr/openwin/include \ | |
1079 | /usr/openwin/share/include \ | |
1080 | ; \ | |
1081 | do | |
1082 | if test -r "$ac_dir/$x_direct_test_include"; then | |
b817f4fb | 1083 | ac_x_includes=$ac_dir |
e2991ea7 AJ |
1084 | break |
1085 | fi | |
1086 | done | |
1087 | fi | |
1088 | rm -f conftest* | |
b817f4fb AJ |
1089 | fi # $ac_x_includes = NO |
1090 | ||
1091 | if test "$ac_x_libraries" = NO; then | |
1092 | # Check for the libraries. | |
e2991ea7 | 1093 | |
b817f4fb AJ |
1094 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
1095 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
1096 | ||
1097 | # See if we find them without any special options. | |
1098 | # Don't add to $LIBS permanently. | |
1099 | ac_save_LIBS="$LIBS" | |
1100 | LIBS="-l$x_direct_test_library $LIBS" | |
e2991ea7 | 1101 | cat > conftest.$ac_ext <<EOF |
2f158c26 | 1102 | #line 1103 "configure" |
e2991ea7 AJ |
1103 | #include "confdefs.h" |
1104 | ||
da0cfb36 | 1105 | int main() { |
e2991ea7 AJ |
1106 | ${x_direct_test_function}() |
1107 | ; return 0; } | |
1108 | EOF | |
2f158c26 | 1109 | if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e2991ea7 | 1110 | rm -rf conftest* |
b817f4fb AJ |
1111 | LIBS="$ac_save_LIBS" |
1112 | # We can link X programs with no special library path. | |
1113 | ac_x_libraries= | |
e2991ea7 | 1114 | else |
da0cfb36 AJ |
1115 | echo "configure: failed program was:" >&5 |
1116 | cat conftest.$ac_ext >&5 | |
e2991ea7 AJ |
1117 | rm -rf conftest* |
1118 | LIBS="$ac_save_LIBS" | |
1119 | # First see if replacing the include by lib works. | |
da0cfb36 | 1120 | # Check X11 before X11Rn because it is often a symlink to the current release. |
e2991ea7 | 1121 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
da0cfb36 | 1122 | /usr/X11/lib \ |
e2991ea7 AJ |
1123 | /usr/X11R6/lib \ |
1124 | /usr/X11R5/lib \ | |
1125 | /usr/X11R4/lib \ | |
1126 | \ | |
da0cfb36 | 1127 | /usr/lib/X11 \ |
e2991ea7 AJ |
1128 | /usr/lib/X11R6 \ |
1129 | /usr/lib/X11R5 \ | |
1130 | /usr/lib/X11R4 \ | |
1131 | \ | |
da0cfb36 | 1132 | /usr/local/X11/lib \ |
e2991ea7 AJ |
1133 | /usr/local/X11R6/lib \ |
1134 | /usr/local/X11R5/lib \ | |
1135 | /usr/local/X11R4/lib \ | |
1136 | \ | |
da0cfb36 | 1137 | /usr/local/lib/X11 \ |
e2991ea7 AJ |
1138 | /usr/local/lib/X11R6 \ |
1139 | /usr/local/lib/X11R5 \ | |
1140 | /usr/local/lib/X11R4 \ | |
1141 | \ | |
e2991ea7 AJ |
1142 | /usr/X386/lib \ |
1143 | /usr/x386/lib \ | |
1144 | /usr/XFree86/lib/X11 \ | |
1145 | \ | |
1146 | /usr/lib \ | |
1147 | /usr/local/lib \ | |
1148 | /usr/unsupported/lib \ | |
1149 | /usr/athena/lib \ | |
1150 | /usr/local/x11r5/lib \ | |
1151 | /usr/lpp/Xamples/lib \ | |
da0cfb36 | 1152 | /lib/usr/lib/X11 \ |
e2991ea7 AJ |
1153 | \ |
1154 | /usr/openwin/lib \ | |
1155 | /usr/openwin/share/lib \ | |
1156 | ; \ | |
1157 | do | |
1158 | for ac_extension in a so sl; do | |
1159 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
b817f4fb | 1160 | ac_x_libraries=$ac_dir |
e2991ea7 AJ |
1161 | break 2 |
1162 | fi | |
1163 | done | |
1164 | done | |
1165 | fi | |
1166 | rm -f conftest* | |
b817f4fb AJ |
1167 | fi # $ac_x_libraries = NO |
1168 | ||
1169 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
1170 | # Didn't find X anywhere. Cache the known absence of X. | |
1171 | ac_cv_have_x="have_x=no" | |
e2991ea7 | 1172 | else |
b817f4fb AJ |
1173 | # Record where we found X for the cache. |
1174 | ac_cv_have_x="have_x=yes \ | |
1175 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
e2991ea7 AJ |
1176 | fi |
1177 | fi | |
1178 | fi | |
b817f4fb | 1179 | eval "$ac_cv_have_x" |
e2991ea7 AJ |
1180 | fi # $with_x != no |
1181 | ||
b817f4fb AJ |
1182 | if test "$have_x" != yes; then |
1183 | echo "$ac_t""$have_x" 1>&6 | |
1184 | no_x=yes | |
e2991ea7 | 1185 | else |
b817f4fb | 1186 | # If each of the values was on the command line, it overrides each guess. |
e2991ea7 AJ |
1187 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
1188 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
b817f4fb AJ |
1189 | # Update the cache value to reflect the command line values. |
1190 | ac_cv_have_x="have_x=yes \ | |
1191 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e2991ea7 AJ |
1192 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
1193 | fi | |
1194 | ||
b817f4fb | 1195 | if test "$no_x" = yes; then |
ff8331ea | 1196 | # Not all programs may use this symbol, but it does not hurt to define it. |
da0cfb36 AJ |
1197 | cat >> confdefs.h <<\EOF |
1198 | #define X_DISPLAY_MISSING 1 | |
1199 | EOF | |
1200 | ||
1201 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
ff8331ea AJ |
1202 | else |
1203 | if test -n "$x_includes"; then | |
1204 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
1205 | fi | |
1206 | ||
ff8331ea AJ |
1207 | # It would also be nice to do this for all -L options, not just this one. |
1208 | if test -n "$x_libraries"; then | |
1209 | X_LIBS="$X_LIBS -L$x_libraries" | |
da0cfb36 AJ |
1210 | # For Solaris; some versions of Sun CC require a space after -R and |
1211 | # others require no space. Words are not sufficient . . . . | |
1212 | case "`(uname -sr) 2>/dev/null`" in | |
1213 | "SunOS 5"*) | |
1214 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
2f158c26 | 1215 | echo "configure:1216: checking whether -R must be followed by a space" >&5 |
da0cfb36 AJ |
1216 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
1217 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1218 | #line 1219 "configure" |
ff8331ea AJ |
1219 | #include "confdefs.h" |
1220 | ||
da0cfb36 AJ |
1221 | int main() { |
1222 | ||
ff8331ea AJ |
1223 | ; return 0; } |
1224 | EOF | |
2f158c26 | 1225 | if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ff8331ea | 1226 | rm -rf conftest* |
da0cfb36 | 1227 | ac_R_nospace=yes |
ff8331ea | 1228 | else |
da0cfb36 AJ |
1229 | echo "configure: failed program was:" >&5 |
1230 | cat conftest.$ac_ext >&5 | |
ff8331ea | 1231 | rm -rf conftest* |
da0cfb36 | 1232 | ac_R_nospace=no |
ff8331ea AJ |
1233 | fi |
1234 | rm -f conftest* | |
da0cfb36 AJ |
1235 | if test $ac_R_nospace = yes; then |
1236 | echo "$ac_t""no" 1>&6 | |
1237 | X_LIBS="$X_LIBS -R$x_libraries" | |
1238 | else | |
1239 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
1240 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1241 | #line 1242 "configure" |
da0cfb36 AJ |
1242 | #include "confdefs.h" |
1243 | ||
1244 | int main() { | |
1245 | ||
1246 | ; return 0; } | |
1247 | EOF | |
2f158c26 | 1248 | if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da0cfb36 AJ |
1249 | rm -rf conftest* |
1250 | ac_R_space=yes | |
ff8331ea | 1251 | else |
da0cfb36 AJ |
1252 | echo "configure: failed program was:" >&5 |
1253 | cat conftest.$ac_ext >&5 | |
1254 | rm -rf conftest* | |
1255 | ac_R_space=no | |
ff8331ea | 1256 | fi |
da0cfb36 | 1257 | rm -f conftest* |
da0cfb36 AJ |
1258 | if test $ac_R_space = yes; then |
1259 | echo "$ac_t""yes" 1>&6 | |
1260 | X_LIBS="$X_LIBS -R $x_libraries" | |
1261 | else | |
1262 | echo "$ac_t""neither works" 1>&6 | |
1263 | fi | |
1264 | fi | |
1265 | LIBS="$ac_xsave_LIBS" | |
1266 | esac | |
1267 | fi | |
ff8331ea AJ |
1268 | |
1269 | # Check for system-dependent libraries X programs must link with. | |
da0cfb36 AJ |
1270 | # Do this before checking for the system-independent R6 libraries |
1271 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
ff8331ea AJ |
1272 | |
1273 | if test "$ISC" = yes; then | |
1274 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
1275 | else | |
1276 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
1277 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
1278 | # the Alpha needs dnet_stub (dnet does not exist). | |
da0cfb36 | 1279 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
2f158c26 | 1280 | echo "configure:1281: checking for dnet_ntoa in -ldnet" >&5 |
da0cfb36 | 1281 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
d7d4fdf8 | 1282 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
ff8331ea AJ |
1283 | echo $ac_n "(cached) $ac_c" 1>&6 |
1284 | else | |
1285 | ac_save_LIBS="$LIBS" | |
1286 | LIBS="-ldnet $LIBS" | |
1287 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1288 | #line 1289 "configure" |
ff8331ea | 1289 | #include "confdefs.h" |
59730ae1 | 1290 | /* Override any gcc2 internal prototype to avoid an error. */ |
e2bfa4c7 AJ |
1291 | /* We use char because int might match the return type of a gcc2 |
1292 | builtin and then its argument prototype would still apply. */ | |
59730ae1 | 1293 | char dnet_ntoa(); |
ff8331ea | 1294 | |
da0cfb36 | 1295 | int main() { |
ff8331ea AJ |
1296 | dnet_ntoa() |
1297 | ; return 0; } | |
1298 | EOF | |
2f158c26 | 1299 | if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ff8331ea | 1300 | rm -rf conftest* |
d7d4fdf8 | 1301 | eval "ac_cv_lib_$ac_lib_var=yes" |
ff8331ea | 1302 | else |
da0cfb36 AJ |
1303 | echo "configure: failed program was:" >&5 |
1304 | cat conftest.$ac_ext >&5 | |
ff8331ea | 1305 | rm -rf conftest* |
d7d4fdf8 | 1306 | eval "ac_cv_lib_$ac_lib_var=no" |
ff8331ea AJ |
1307 | fi |
1308 | rm -f conftest* | |
1309 | LIBS="$ac_save_LIBS" | |
1310 | ||
1311 | fi | |
d7d4fdf8 | 1312 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
ff8331ea AJ |
1313 | echo "$ac_t""yes" 1>&6 |
1314 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
1315 | else | |
1316 | echo "$ac_t""no" 1>&6 | |
1317 | fi | |
1318 | ||
59730ae1 | 1319 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
da0cfb36 | 1320 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
2f158c26 | 1321 | echo "configure:1322: checking for dnet_ntoa in -ldnet_stub" >&5 |
da0cfb36 | 1322 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
d7d4fdf8 | 1323 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
ff8331ea AJ |
1324 | echo $ac_n "(cached) $ac_c" 1>&6 |
1325 | else | |
1326 | ac_save_LIBS="$LIBS" | |
1327 | LIBS="-ldnet_stub $LIBS" | |
1328 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1329 | #line 1330 "configure" |
ff8331ea | 1330 | #include "confdefs.h" |
59730ae1 | 1331 | /* Override any gcc2 internal prototype to avoid an error. */ |
e2bfa4c7 AJ |
1332 | /* We use char because int might match the return type of a gcc2 |
1333 | builtin and then its argument prototype would still apply. */ | |
59730ae1 | 1334 | char dnet_ntoa(); |
ff8331ea | 1335 | |
da0cfb36 | 1336 | int main() { |
ff8331ea AJ |
1337 | dnet_ntoa() |
1338 | ; return 0; } | |
1339 | EOF | |
2f158c26 | 1340 | if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ff8331ea | 1341 | rm -rf conftest* |
d7d4fdf8 | 1342 | eval "ac_cv_lib_$ac_lib_var=yes" |
ff8331ea | 1343 | else |
da0cfb36 AJ |
1344 | echo "configure: failed program was:" >&5 |
1345 | cat conftest.$ac_ext >&5 | |
ff8331ea | 1346 | rm -rf conftest* |
d7d4fdf8 | 1347 | eval "ac_cv_lib_$ac_lib_var=no" |
ff8331ea AJ |
1348 | fi |
1349 | rm -f conftest* | |
1350 | LIBS="$ac_save_LIBS" | |
1351 | ||
1352 | fi | |
d7d4fdf8 | 1353 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
ff8331ea AJ |
1354 | echo "$ac_t""yes" 1>&6 |
1355 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
1356 | else | |
1357 | echo "$ac_t""no" 1>&6 | |
1358 | fi | |
1359 | ||
1360 | fi | |
1361 | ||
1362 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
1363 | # to get the SysV transport functions. | |
da0cfb36 AJ |
1364 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
1365 | # needs -lnsl. | |
1366 | # The nsl library prevents programs from opening the X display | |
1367 | # on Irix 5.2, according to dickey@clark.net. | |
1368 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
2f158c26 | 1369 | echo "configure:1370: checking for gethostbyname" >&5 |
da0cfb36 AJ |
1370 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
1371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1372 | else | |
1373 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1374 | #line 1375 "configure" |
da0cfb36 AJ |
1375 | #include "confdefs.h" |
1376 | /* System header to define __stub macros and hopefully few prototypes, | |
1377 | which can conflict with char gethostbyname(); below. */ | |
1378 | #include <assert.h> | |
1379 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1380 | /* We use char because int might match the return type of a gcc2 | |
1381 | builtin and then its argument prototype would still apply. */ | |
1382 | char gethostbyname(); | |
1383 | ||
1384 | int main() { | |
1385 | ||
1386 | /* The GNU C library defines this for functions which it implements | |
1387 | to always fail with ENOSYS. Some functions are actually named | |
1388 | something starting with __ and the normal name is an alias. */ | |
1389 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
1390 | choke me | |
1391 | #else | |
1392 | gethostbyname(); | |
1393 | #endif | |
1394 | ||
1395 | ; return 0; } | |
1396 | EOF | |
2f158c26 | 1397 | if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da0cfb36 AJ |
1398 | rm -rf conftest* |
1399 | eval "ac_cv_func_gethostbyname=yes" | |
1400 | else | |
1401 | echo "configure: failed program was:" >&5 | |
1402 | cat conftest.$ac_ext >&5 | |
1403 | rm -rf conftest* | |
1404 | eval "ac_cv_func_gethostbyname=no" | |
1405 | fi | |
1406 | rm -f conftest* | |
da0cfb36 | 1407 | fi |
7e6ae4ba | 1408 | |
da0cfb36 AJ |
1409 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
1410 | echo "$ac_t""yes" 1>&6 | |
1411 | : | |
1412 | else | |
1413 | echo "$ac_t""no" 1>&6 | |
1414 | fi | |
1415 | ||
1416 | if test $ac_cv_func_gethostbyname = no; then | |
1417 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
2f158c26 | 1418 | echo "configure:1419: checking for gethostbyname in -lnsl" >&5 |
da0cfb36 | 1419 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
d7d4fdf8 | 1420 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
ff8331ea AJ |
1421 | echo $ac_n "(cached) $ac_c" 1>&6 |
1422 | else | |
1423 | ac_save_LIBS="$LIBS" | |
1424 | LIBS="-lnsl $LIBS" | |
1425 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1426 | #line 1427 "configure" |
ff8331ea | 1427 | #include "confdefs.h" |
59730ae1 | 1428 | /* Override any gcc2 internal prototype to avoid an error. */ |
e2bfa4c7 AJ |
1429 | /* We use char because int might match the return type of a gcc2 |
1430 | builtin and then its argument prototype would still apply. */ | |
da0cfb36 | 1431 | char gethostbyname(); |
ff8331ea | 1432 | |
da0cfb36 AJ |
1433 | int main() { |
1434 | gethostbyname() | |
ff8331ea AJ |
1435 | ; return 0; } |
1436 | EOF | |
2f158c26 | 1437 | if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ff8331ea | 1438 | rm -rf conftest* |
d7d4fdf8 | 1439 | eval "ac_cv_lib_$ac_lib_var=yes" |
ff8331ea | 1440 | else |
da0cfb36 AJ |
1441 | echo "configure: failed program was:" >&5 |
1442 | cat conftest.$ac_ext >&5 | |
ff8331ea | 1443 | rm -rf conftest* |
d7d4fdf8 | 1444 | eval "ac_cv_lib_$ac_lib_var=no" |
ff8331ea AJ |
1445 | fi |
1446 | rm -f conftest* | |
1447 | LIBS="$ac_save_LIBS" | |
1448 | ||
1449 | fi | |
d7d4fdf8 | 1450 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
ff8331ea AJ |
1451 | echo "$ac_t""yes" 1>&6 |
1452 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
1453 | else | |
1454 | echo "$ac_t""no" 1>&6 | |
1455 | fi | |
1456 | ||
da0cfb36 | 1457 | fi |
ff8331ea AJ |
1458 | |
1459 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
da0cfb36 AJ |
1460 | # socket/setsockopt and other routines are undefined under SCO ODT |
1461 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
1462 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
1463 | # gethostby* variants that don't use the nameserver (or something). | |
1464 | # -lsocket must be given before -lnsl if both are needed. | |
1465 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
1466 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
2f158c26 | 1467 | echo "configure:1468: checking for connect" >&5 |
da0cfb36 AJ |
1468 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
1469 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1470 | else | |
1471 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1472 | #line 1473 "configure" |
da0cfb36 AJ |
1473 | #include "confdefs.h" |
1474 | /* System header to define __stub macros and hopefully few prototypes, | |
1475 | which can conflict with char connect(); below. */ | |
1476 | #include <assert.h> | |
1477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1478 | /* We use char because int might match the return type of a gcc2 | |
1479 | builtin and then its argument prototype would still apply. */ | |
1480 | char connect(); | |
1481 | ||
1482 | int main() { | |
1483 | ||
1484 | /* The GNU C library defines this for functions which it implements | |
1485 | to always fail with ENOSYS. Some functions are actually named | |
1486 | something starting with __ and the normal name is an alias. */ | |
1487 | #if defined (__stub_connect) || defined (__stub___connect) | |
1488 | choke me | |
1489 | #else | |
1490 | connect(); | |
1491 | #endif | |
1492 | ||
1493 | ; return 0; } | |
1494 | EOF | |
2f158c26 | 1495 | if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da0cfb36 AJ |
1496 | rm -rf conftest* |
1497 | eval "ac_cv_func_connect=yes" | |
1498 | else | |
1499 | echo "configure: failed program was:" >&5 | |
1500 | cat conftest.$ac_ext >&5 | |
1501 | rm -rf conftest* | |
1502 | eval "ac_cv_func_connect=no" | |
1503 | fi | |
1504 | rm -f conftest* | |
da0cfb36 | 1505 | fi |
7e6ae4ba | 1506 | |
da0cfb36 AJ |
1507 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
1508 | echo "$ac_t""yes" 1>&6 | |
1509 | : | |
1510 | else | |
1511 | echo "$ac_t""no" 1>&6 | |
1512 | fi | |
1513 | ||
1514 | if test $ac_cv_func_connect = no; then | |
1515 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
2f158c26 | 1516 | echo "configure:1517: checking for connect in -lsocket" >&5 |
da0cfb36 | 1517 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
d7d4fdf8 | 1518 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
ff8331ea AJ |
1519 | echo $ac_n "(cached) $ac_c" 1>&6 |
1520 | else | |
1521 | ac_save_LIBS="$LIBS" | |
da0cfb36 | 1522 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
ff8331ea | 1523 | cat > conftest.$ac_ext <<EOF |
2f158c26 | 1524 | #line 1525 "configure" |
ff8331ea | 1525 | #include "confdefs.h" |
59730ae1 | 1526 | /* Override any gcc2 internal prototype to avoid an error. */ |
e2bfa4c7 AJ |
1527 | /* We use char because int might match the return type of a gcc2 |
1528 | builtin and then its argument prototype would still apply. */ | |
da0cfb36 | 1529 | char connect(); |
ff8331ea | 1530 | |
da0cfb36 AJ |
1531 | int main() { |
1532 | connect() | |
ff8331ea AJ |
1533 | ; return 0; } |
1534 | EOF | |
2f158c26 | 1535 | if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ff8331ea | 1536 | rm -rf conftest* |
d7d4fdf8 | 1537 | eval "ac_cv_lib_$ac_lib_var=yes" |
ff8331ea | 1538 | else |
da0cfb36 AJ |
1539 | echo "configure: failed program was:" >&5 |
1540 | cat conftest.$ac_ext >&5 | |
ff8331ea | 1541 | rm -rf conftest* |
d7d4fdf8 | 1542 | eval "ac_cv_lib_$ac_lib_var=no" |
ff8331ea AJ |
1543 | fi |
1544 | rm -f conftest* | |
1545 | LIBS="$ac_save_LIBS" | |
1546 | ||
1547 | fi | |
d7d4fdf8 | 1548 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
ff8331ea | 1549 | echo "$ac_t""yes" 1>&6 |
da0cfb36 | 1550 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
ff8331ea AJ |
1551 | else |
1552 | echo "$ac_t""no" 1>&6 | |
1553 | fi | |
1554 | ||
da0cfb36 AJ |
1555 | fi |
1556 | ||
1557 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
1558 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
2f158c26 | 1559 | echo "configure:1560: checking for remove" >&5 |
da0cfb36 AJ |
1560 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
1561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1562 | else | |
1563 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1564 | #line 1565 "configure" |
da0cfb36 AJ |
1565 | #include "confdefs.h" |
1566 | /* System header to define __stub macros and hopefully few prototypes, | |
1567 | which can conflict with char remove(); below. */ | |
1568 | #include <assert.h> | |
1569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1570 | /* We use char because int might match the return type of a gcc2 | |
1571 | builtin and then its argument prototype would still apply. */ | |
1572 | char remove(); | |
1573 | ||
1574 | int main() { | |
1575 | ||
1576 | /* The GNU C library defines this for functions which it implements | |
1577 | to always fail with ENOSYS. Some functions are actually named | |
1578 | something starting with __ and the normal name is an alias. */ | |
1579 | #if defined (__stub_remove) || defined (__stub___remove) | |
1580 | choke me | |
1581 | #else | |
1582 | remove(); | |
1583 | #endif | |
1584 | ||
1585 | ; return 0; } | |
1586 | EOF | |
2f158c26 | 1587 | if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da0cfb36 AJ |
1588 | rm -rf conftest* |
1589 | eval "ac_cv_func_remove=yes" | |
1590 | else | |
1591 | echo "configure: failed program was:" >&5 | |
1592 | cat conftest.$ac_ext >&5 | |
1593 | rm -rf conftest* | |
1594 | eval "ac_cv_func_remove=no" | |
1595 | fi | |
1596 | rm -f conftest* | |
da0cfb36 | 1597 | fi |
7e6ae4ba | 1598 | |
da0cfb36 AJ |
1599 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
1600 | echo "$ac_t""yes" 1>&6 | |
1601 | : | |
1602 | else | |
1603 | echo "$ac_t""no" 1>&6 | |
1604 | fi | |
1605 | ||
1606 | if test $ac_cv_func_remove = no; then | |
1607 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
2f158c26 | 1608 | echo "configure:1609: checking for remove in -lposix" >&5 |
da0cfb36 | 1609 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
e2bfa4c7 AJ |
1610 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1612 | else | |
1613 | ac_save_LIBS="$LIBS" | |
da0cfb36 | 1614 | LIBS="-lposix $LIBS" |
e2bfa4c7 | 1615 | cat > conftest.$ac_ext <<EOF |
2f158c26 | 1616 | #line 1617 "configure" |
e2bfa4c7 AJ |
1617 | #include "confdefs.h" |
1618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1619 | /* We use char because int might match the return type of a gcc2 | |
1620 | builtin and then its argument prototype would still apply. */ | |
da0cfb36 | 1621 | char remove(); |
e2bfa4c7 | 1622 | |
da0cfb36 AJ |
1623 | int main() { |
1624 | remove() | |
e2bfa4c7 AJ |
1625 | ; return 0; } |
1626 | EOF | |
2f158c26 | 1627 | if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e2bfa4c7 AJ |
1628 | rm -rf conftest* |
1629 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1630 | else | |
da0cfb36 AJ |
1631 | echo "configure: failed program was:" >&5 |
1632 | cat conftest.$ac_ext >&5 | |
e2bfa4c7 AJ |
1633 | rm -rf conftest* |
1634 | eval "ac_cv_lib_$ac_lib_var=no" | |
1635 | fi | |
1636 | rm -f conftest* | |
1637 | LIBS="$ac_save_LIBS" | |
1638 | ||
1639 | fi | |
1640 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1641 | echo "$ac_t""yes" 1>&6 | |
da0cfb36 AJ |
1642 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
1643 | else | |
1644 | echo "$ac_t""no" 1>&6 | |
1645 | fi | |
1646 | ||
1647 | fi | |
1648 | ||
1649 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
1650 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
2f158c26 | 1651 | echo "configure:1652: checking for shmat" >&5 |
da0cfb36 AJ |
1652 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
1653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1654 | else | |
1655 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1656 | #line 1657 "configure" |
da0cfb36 AJ |
1657 | #include "confdefs.h" |
1658 | /* System header to define __stub macros and hopefully few prototypes, | |
1659 | which can conflict with char shmat(); below. */ | |
1660 | #include <assert.h> | |
1661 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1662 | /* We use char because int might match the return type of a gcc2 | |
1663 | builtin and then its argument prototype would still apply. */ | |
1664 | char shmat(); | |
1665 | ||
1666 | int main() { | |
1667 | ||
1668 | /* The GNU C library defines this for functions which it implements | |
1669 | to always fail with ENOSYS. Some functions are actually named | |
1670 | something starting with __ and the normal name is an alias. */ | |
1671 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
1672 | choke me | |
1673 | #else | |
1674 | shmat(); | |
1675 | #endif | |
1676 | ||
1677 | ; return 0; } | |
1678 | EOF | |
2f158c26 | 1679 | if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da0cfb36 AJ |
1680 | rm -rf conftest* |
1681 | eval "ac_cv_func_shmat=yes" | |
1682 | else | |
1683 | echo "configure: failed program was:" >&5 | |
1684 | cat conftest.$ac_ext >&5 | |
1685 | rm -rf conftest* | |
1686 | eval "ac_cv_func_shmat=no" | |
1687 | fi | |
1688 | rm -f conftest* | |
da0cfb36 | 1689 | fi |
7e6ae4ba | 1690 | |
da0cfb36 AJ |
1691 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
1692 | echo "$ac_t""yes" 1>&6 | |
1693 | : | |
1694 | else | |
1695 | echo "$ac_t""no" 1>&6 | |
1696 | fi | |
1697 | ||
1698 | if test $ac_cv_func_shmat = no; then | |
1699 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
2f158c26 | 1700 | echo "configure:1701: checking for shmat in -lipc" >&5 |
da0cfb36 AJ |
1701 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
1702 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1704 | else | |
1705 | ac_save_LIBS="$LIBS" | |
1706 | LIBS="-lipc $LIBS" | |
1707 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1708 | #line 1709 "configure" |
da0cfb36 AJ |
1709 | #include "confdefs.h" |
1710 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1711 | /* We use char because int might match the return type of a gcc2 | |
1712 | builtin and then its argument prototype would still apply. */ | |
1713 | char shmat(); | |
1714 | ||
1715 | int main() { | |
1716 | shmat() | |
1717 | ; return 0; } | |
1718 | EOF | |
2f158c26 | 1719 | if { (eval echo configure:1720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da0cfb36 AJ |
1720 | rm -rf conftest* |
1721 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1722 | else | |
1723 | echo "configure: failed program was:" >&5 | |
1724 | cat conftest.$ac_ext >&5 | |
1725 | rm -rf conftest* | |
1726 | eval "ac_cv_lib_$ac_lib_var=no" | |
1727 | fi | |
1728 | rm -f conftest* | |
1729 | LIBS="$ac_save_LIBS" | |
1730 | ||
1731 | fi | |
1732 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1733 | echo "$ac_t""yes" 1>&6 | |
1734 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
e2bfa4c7 AJ |
1735 | else |
1736 | echo "$ac_t""no" 1>&6 | |
1737 | fi | |
1738 | ||
ff8331ea AJ |
1739 | fi |
1740 | fi | |
da0cfb36 AJ |
1741 | |
1742 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
1743 | ac_save_LDFLAGS="$LDFLAGS" | |
1744 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
1745 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
1746 | # check for ICE first), but we must link in the order -lSM -lICE or | |
1747 | # we get undefined symbols. So assume we have SM if we have ICE. | |
1748 | # These have to be linked with before -lX11, unlike the other | |
1749 | # libraries we check for below, so use a different variable. | |
1750 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
1751 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
2f158c26 | 1752 | echo "configure:1753: checking for IceConnectionNumber in -lICE" >&5 |
da0cfb36 AJ |
1753 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
1754 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1756 | else | |
1757 | ac_save_LIBS="$LIBS" | |
18ad24a7 | 1758 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
da0cfb36 | 1759 | cat > conftest.$ac_ext <<EOF |
2f158c26 | 1760 | #line 1761 "configure" |
da0cfb36 AJ |
1761 | #include "confdefs.h" |
1762 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1763 | /* We use char because int might match the return type of a gcc2 | |
1764 | builtin and then its argument prototype would still apply. */ | |
1765 | char IceConnectionNumber(); | |
1766 | ||
1767 | int main() { | |
1768 | IceConnectionNumber() | |
1769 | ; return 0; } | |
1770 | EOF | |
2f158c26 | 1771 | if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
da0cfb36 AJ |
1772 | rm -rf conftest* |
1773 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1774 | else | |
1775 | echo "configure: failed program was:" >&5 | |
1776 | cat conftest.$ac_ext >&5 | |
1777 | rm -rf conftest* | |
1778 | eval "ac_cv_lib_$ac_lib_var=no" | |
1779 | fi | |
1780 | rm -f conftest* | |
1781 | LIBS="$ac_save_LIBS" | |
1782 | ||
1783 | fi | |
1784 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1785 | echo "$ac_t""yes" 1>&6 | |
1786 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
1787 | else | |
1788 | echo "$ac_t""no" 1>&6 | |
1789 | fi | |
1790 | ||
1791 | LDFLAGS="$ac_save_LDFLAGS" | |
1792 | ||
ff8331ea AJ |
1793 | fi |
1794 | ||
e2991ea7 AJ |
1795 | for ac_prog in 'bison -y' byacc |
1796 | do | |
1797 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1798 | set dummy $ac_prog; ac_word=$2 | |
1799 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2f158c26 | 1800 | echo "configure:1801: checking for $ac_word" >&5 |
e2991ea7 AJ |
1801 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
1802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1803 | else | |
1804 | if test -n "$YACC"; then | |
1805 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
1806 | else | |
18ad24a7 EP |
1807 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1808 | ac_dummy="$PATH" | |
1809 | for ac_dir in $ac_dummy; do | |
e2991ea7 AJ |
1810 | test -z "$ac_dir" && ac_dir=. |
1811 | if test -f $ac_dir/$ac_word; then | |
1812 | ac_cv_prog_YACC="$ac_prog" | |
1813 | break | |
1814 | fi | |
1815 | done | |
1816 | IFS="$ac_save_ifs" | |
1817 | fi | |
1818 | fi | |
1819 | YACC="$ac_cv_prog_YACC" | |
1820 | if test -n "$YACC"; then | |
1821 | echo "$ac_t""$YACC" 1>&6 | |
1822 | else | |
1823 | echo "$ac_t""no" 1>&6 | |
1824 | fi | |
1825 | ||
1826 | test -n "$YACC" && break | |
1827 | done | |
1828 | test -n "$YACC" || YACC="yacc" | |
1829 | ||
1830 | # Extract the first word of "flex", so it can be a program name with args. | |
1831 | set dummy flex; ac_word=$2 | |
1832 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2f158c26 | 1833 | echo "configure:1834: checking for $ac_word" >&5 |
e2991ea7 AJ |
1834 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
1835 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1836 | else | |
1837 | if test -n "$LEX"; then | |
1838 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
1839 | else | |
18ad24a7 EP |
1840 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1841 | ac_dummy="$PATH" | |
1842 | for ac_dir in $ac_dummy; do | |
e2991ea7 AJ |
1843 | test -z "$ac_dir" && ac_dir=. |
1844 | if test -f $ac_dir/$ac_word; then | |
1845 | ac_cv_prog_LEX="flex" | |
1846 | break | |
1847 | fi | |
1848 | done | |
1849 | IFS="$ac_save_ifs" | |
1850 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
1851 | fi | |
1852 | fi | |
1853 | LEX="$ac_cv_prog_LEX" | |
1854 | if test -n "$LEX"; then | |
1855 | echo "$ac_t""$LEX" 1>&6 | |
1856 | else | |
1857 | echo "$ac_t""no" 1>&6 | |
1858 | fi | |
1859 | ||
1860 | if test -z "$LEXLIB" | |
1861 | then | |
1862 | case "$LEX" in | |
1863 | flex*) ac_lib=fl ;; | |
1864 | *) ac_lib=l ;; | |
1865 | esac | |
da0cfb36 | 1866 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
2f158c26 | 1867 | echo "configure:1868: checking for yywrap in -l$ac_lib" >&5 |
da0cfb36 | 1868 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
d7d4fdf8 | 1869 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
e2991ea7 AJ |
1870 | echo $ac_n "(cached) $ac_c" 1>&6 |
1871 | else | |
1872 | ac_save_LIBS="$LIBS" | |
1873 | LIBS="-l$ac_lib $LIBS" | |
1874 | cat > conftest.$ac_ext <<EOF | |
2f158c26 | 1875 | #line 1876 "configure" |
e2991ea7 | 1876 | #include "confdefs.h" |
59730ae1 | 1877 | /* Override any gcc2 internal prototype to avoid an error. */ |
e2bfa4c7 AJ |
1878 | /* We use char because int might match the return type of a gcc2 |
1879 | builtin and then its argument prototype would still apply. */ | |
59730ae1 | 1880 | char yywrap(); |
e2991ea7 | 1881 | |
da0cfb36 | 1882 | int main() { |
e2991ea7 AJ |
1883 | yywrap() |
1884 | ; return 0; } | |
1885 | EOF | |
2f158c26 | 1886 | if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e2991ea7 | 1887 | rm -rf conftest* |
d7d4fdf8 | 1888 | eval "ac_cv_lib_$ac_lib_var=yes" |
e2991ea7 | 1889 | else |
da0cfb36 AJ |
1890 | echo "configure: failed program was:" >&5 |
1891 | cat conftest.$ac_ext >&5 | |
e2991ea7 | 1892 | rm -rf conftest* |
d7d4fdf8 | 1893 | eval "ac_cv_lib_$ac_lib_var=no" |
e2991ea7 AJ |
1894 | fi |
1895 | rm -f conftest* | |
1896 | LIBS="$ac_save_LIBS" | |
1897 | ||
1898 | fi | |
d7d4fdf8 | 1899 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
e2991ea7 AJ |
1900 | echo "$ac_t""yes" 1>&6 |
1901 | LEXLIB="-l$ac_lib" | |
1902 | else | |
1903 | echo "$ac_t""no" 1>&6 | |
1904 | fi | |
1905 | ||
1906 | fi | |
1907 | ||
b53bb419 MM |
1908 | for ac_prog in $LEX flex lex |
1909 | do | |
1910 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1911 | set dummy $ac_prog; ac_word=$2 | |
1912 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1913 | echo "configure:1914: checking for $ac_word" >&5 | |
1914 | if eval "test \"`echo '$''{'ac_cv_prog_XLEX'+set}'`\" = set"; then | |
1915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1916 | else | |
1917 | if test -n "$XLEX"; then | |
1918 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. | |
1919 | else | |
1920 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1921 | ac_dummy="$PATH" | |
1922 | for ac_dir in $ac_dummy; do | |
1923 | test -z "$ac_dir" && ac_dir=. | |
1924 | if test -f $ac_dir/$ac_word; then | |
1925 | ac_cv_prog_XLEX="$ac_prog" | |
1926 | break | |
1927 | fi | |
1928 | done | |
1929 | IFS="$ac_save_ifs" | |
1930 | fi | |
1931 | fi | |
1932 | XLEX="$ac_cv_prog_XLEX" | |
1933 | if test -n "$XLEX"; then | |
1934 | echo "$ac_t""$XLEX" 1>&6 | |
1935 | else | |
1936 | echo "$ac_t""no" 1>&6 | |
1937 | fi | |
1938 | ||
1939 | test -n "$XLEX" && break | |
1940 | done | |
1941 | test -n "$XLEX" || XLEX="none" | |
1942 | ||
1943 | if test "$XLEX" = "none" | |
1944 | then | |
1945 | echo "*** Error: No suitable lex found. ***" | |
1946 | echo " Please install the 'flex' package." | |
1947 | exit 1 | |
1948 | fi | |
1949 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 | |
1950 | echo "configure:1951: checking lex output file root" >&5 | |
1951 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then | |
1952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1953 | else | |
1954 | # The minimal lex program is just a single line: %%. But some broken lexes | |
1955 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
1956 | echo '%% | |
1957 | %%' | $LEX | |
1958 | if test -f lex.yy.c; then | |
1959 | ac_cv_prog_lex_root=lex.yy | |
1960 | elif test -f lexyy.c; then | |
1961 | ac_cv_prog_lex_root=lexyy | |
1962 | else | |
1963 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } | |
1964 | fi | |
1965 | fi | |
1966 | ||
1967 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 | |
1968 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
1969 | ||
1970 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 | |
1971 | echo "configure:1972: checking whether yytext is a pointer" >&5 | |
1972 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then | |
1973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1974 | else | |
1975 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
1976 | # default is implementation-dependent. Figure out which it is, since | |
1977 | # not all implementations provide the %pointer and %array declarations. | |
1978 | ac_cv_prog_lex_yytext_pointer=no | |
1979 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
1980 | ac_save_LIBS="$LIBS" | |
1981 | LIBS="$LIBS $LEXLIB" | |
1982 | cat > conftest.$ac_ext <<EOF | |
1983 | #line 1984 "configure" | |
1984 | #include "confdefs.h" | |
1985 | `cat $LEX_OUTPUT_ROOT.c` | |
1986 | int main() { | |
1987 | ||
1988 | ; return 0; } | |
1989 | EOF | |
1990 | if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1991 | rm -rf conftest* | |
1992 | ac_cv_prog_lex_yytext_pointer=yes | |
1993 | else | |
1994 | echo "configure: failed program was:" >&5 | |
1995 | cat conftest.$ac_ext >&5 | |
1996 | fi | |
1997 | rm -f conftest* | |
1998 | LIBS="$ac_save_LIBS" | |
1999 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
2000 | ||
2001 | fi | |
2002 | ||
2003 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 | |
2004 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
2005 | cat >> confdefs.h <<\EOF | |
2006 | #define YYTEXT_POINTER 1 | |
2007 | EOF | |
2008 | ||
2009 | fi | |
2010 | ||
ff8331ea AJ |
2011 | # Extract the first word of "ranlib", so it can be a program name with args. |
2012 | set dummy ranlib; ac_word=$2 | |
2013 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b53bb419 | 2014 | echo "configure:2015: checking for $ac_word" >&5 |
ff8331ea AJ |
2015 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2017 | else | |
2018 | if test -n "$RANLIB"; then | |
2019 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2020 | else | |
18ad24a7 EP |
2021 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2022 | ac_dummy="$PATH" | |
2023 | for ac_dir in $ac_dummy; do | |
ff8331ea AJ |
2024 | test -z "$ac_dir" && ac_dir=. |
2025 | if test -f $ac_dir/$ac_word; then | |
2026 | ac_cv_prog_RANLIB="ranlib" | |
2027 | break | |
2028 | fi | |
2029 | done | |
2030 | IFS="$ac_save_ifs" | |
2031 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
e2991ea7 | 2032 | fi |
e2991ea7 | 2033 | fi |
ff8331ea AJ |
2034 | RANLIB="$ac_cv_prog_RANLIB" |
2035 | if test -n "$RANLIB"; then | |
2036 | echo "$ac_t""$RANLIB" 1>&6 | |
2037 | else | |
2038 | echo "$ac_t""no" 1>&6 | |
2039 | fi | |
e2991ea7 | 2040 | |
d7d4fdf8 AJ |
2041 | # Find a good install program. We prefer a C program (faster), |
2042 | # so one script is as good as another. But avoid the broken or | |
2043 | # incompatible versions: | |
2044 | # SysV /etc/install, /usr/sbin/install | |
2045 | # SunOS /usr/etc/install | |
2046 | # IRIX /sbin/install | |
2047 | # AIX /bin/install | |
18ad24a7 | 2048 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
d7d4fdf8 AJ |
2049 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2050 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2051 | # ./install, which can be erroneously created by make from ./install.sh. | |
2052 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
b53bb419 | 2053 | echo "configure:2054: checking for a BSD compatible install" >&5 |
d7d4fdf8 AJ |
2054 | if test -z "$INSTALL"; then |
2055 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2057 | else | |
18ad24a7 | 2058 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
d7d4fdf8 AJ |
2059 | for ac_dir in $PATH; do |
2060 | # Account for people who put trailing slashes in PATH elements. | |
2061 | case "$ac_dir/" in | |
2062 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2063 | *) | |
2064 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
18ad24a7 EP |
2065 | # Don't use installbsd from OSF since it installs stuff as root |
2066 | # by default. | |
2067 | for ac_prog in ginstall scoinst install; do | |
d7d4fdf8 AJ |
2068 | if test -f $ac_dir/$ac_prog; then |
2069 | if test $ac_prog = install && | |
2070 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2071 | # AIX install. It has an incompatible calling convention. | |
d7d4fdf8 AJ |
2072 | : |
2073 | else | |
2074 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2075 | break 2 | |
2076 | fi | |
2077 | fi | |
2078 | done | |
2079 | ;; | |
2080 | esac | |
2081 | done | |
7e6ae4ba | 2082 | IFS="$ac_save_IFS" |
d7d4fdf8 AJ |
2083 | |
2084 | fi | |
2085 | if test "${ac_cv_path_install+set}" = set; then | |
2086 | INSTALL="$ac_cv_path_install" | |
2087 | else | |
2088 | # As a last resort, use the slow shell script. We don't cache a | |
2089 | # path for INSTALL within a source directory, because that will | |
2090 | # break other packages using the cache if that directory is | |
2091 | # removed, or if the path is relative. | |
2092 | INSTALL="$ac_install_sh" | |
2093 | fi | |
2094 | fi | |
2095 | echo "$ac_t""$INSTALL" 1>&6 | |
2096 | ||
2097 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2098 | # It thinks the first close brace ends the variable substitution. | |
2099 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2100 | ||
18ad24a7 EP |
2101 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
2102 | ||
d7d4fdf8 AJ |
2103 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2104 | ||
641ee76a | 2105 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
b53bb419 | 2106 | echo "configure:2107: checking whether ln -s works" >&5 |
641ee76a AJ |
2107 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
2108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2109 | else | |
2110 | rm -f conftestdata | |
2111 | if ln -s X conftestdata 2>/dev/null | |
2112 | then | |
2113 | rm -f conftestdata | |
2114 | ac_cv_prog_LN_S="ln -s" | |
2115 | else | |
2116 | ac_cv_prog_LN_S=ln | |
2117 | fi | |
2118 | fi | |
2119 | LN_S="$ac_cv_prog_LN_S" | |
2120 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
2121 | echo "$ac_t""yes" 1>&6 | |
2122 | else | |
2123 | echo "$ac_t""no" 1>&6 | |
2124 | fi | |
2125 | ||
c7c217b3 AJ |
2126 | # Extract the first word of "c2man", so it can be a program name with args. |
2127 | set dummy c2man; ac_word=$2 | |
2128 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b53bb419 | 2129 | echo "configure:2130: checking for $ac_word" >&5 |
c7c217b3 AJ |
2130 | if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then |
2131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2132 | else | |
2133 | if test -n "$C2MAN"; then | |
2134 | ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test. | |
2135 | else | |
18ad24a7 EP |
2136 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2137 | ac_dummy="$PATH" | |
2138 | for ac_dir in $ac_dummy; do | |
c7c217b3 AJ |
2139 | test -z "$ac_dir" && ac_dir=. |
2140 | if test -f $ac_dir/$ac_word; then | |
2141 | ac_cv_prog_C2MAN="c2man" | |
2142 | break | |
2143 | fi | |
2144 | done | |
2145 | IFS="$ac_save_ifs" | |
e0df32ff | 2146 | test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl" |
c7c217b3 AJ |
2147 | fi |
2148 | fi | |
2149 | C2MAN="$ac_cv_prog_C2MAN" | |
2150 | if test -n "$C2MAN"; then | |
2151 | echo "$ac_t""$C2MAN" 1>&6 | |
2152 | else | |
2153 | echo "$ac_t""no" 1>&6 | |
2154 | fi | |
2155 | ||
ffe6b767 JJ |
2156 | # Extract the first word of "ldconfig", so it can be a program name with args. |
2157 | set dummy ldconfig; ac_word=$2 | |
2158 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b53bb419 | 2159 | echo "configure:2160: checking for $ac_word" >&5 |
ffe6b767 JJ |
2160 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
2161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2162 | else | |
2163 | case "$LDCONFIG" in | |
2164 | /*) | |
2165 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. | |
2166 | ;; | |
18ad24a7 EP |
2167 | ?:/*) |
2168 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. | |
2169 | ;; | |
ffe6b767 | 2170 | *) |
18ad24a7 EP |
2171 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2172 | ac_dummy="/sbin:/usr/sbin:$PATH" | |
2173 | for ac_dir in $ac_dummy; do | |
ffe6b767 JJ |
2174 | test -z "$ac_dir" && ac_dir=. |
2175 | if test -f $ac_dir/$ac_word; then | |
2176 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" | |
2177 | break | |
2178 | fi | |
2179 | done | |
2180 | IFS="$ac_save_ifs" | |
318f4cef | 2181 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
ffe6b767 JJ |
2182 | ;; |
2183 | esac | |
2184 | fi | |
2185 | LDCONFIG="$ac_cv_path_LDCONFIG" | |
2186 | if test -n "$LDCONFIG"; then | |
2187 | echo "$ac_t""$LDCONFIG" 1>&6 | |
2188 | else | |
2189 | echo "$ac_t""no" 1>&6 | |
2190 | fi | |
2191 | ||
02e90087 | 2192 | |
a9be64e2 PS |
2193 | for ac_prog in lclint lint |
2194 | do | |
2195 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2196 | set dummy $ac_prog; ac_word=$2 | |
2197 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b53bb419 | 2198 | echo "configure:2199: checking for $ac_word" >&5 |
a9be64e2 PS |
2199 | if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then |
2200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2201 | else | |
2202 | if test -n "$LINT"; then | |
2203 | ac_cv_prog_LINT="$LINT" # Let the user override the test. | |
2204 | else | |
18ad24a7 EP |
2205 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2206 | ac_dummy="$PATH" | |
2207 | for ac_dir in $ac_dummy; do | |
a9be64e2 PS |
2208 | test -z "$ac_dir" && ac_dir=. |
2209 | if test -f $ac_dir/$ac_word; then | |
2210 | ac_cv_prog_LINT="$ac_prog" | |
2211 | break | |
2212 | fi | |
2213 | done | |
2214 | IFS="$ac_save_ifs" | |
2215 | fi | |
2216 | fi | |
2217 | LINT="$ac_cv_prog_LINT" | |
2218 | if test -n "$LINT"; then | |
2219 | echo "$ac_t""$LINT" 1>&6 | |
2220 | else | |
2221 | echo "$ac_t""no" 1>&6 | |
2222 | fi | |
2223 | ||
2224 | test -n "$LINT" && break | |
2225 | done | |
2226 | ||
2227 | if test "$LINT" = "lint" | |
2228 | then | |
2229 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" | |
2230 | fi | |
2231 | ||
2232 | ||
2233 | ||
02e90087 | 2234 | |
13277480 | 2235 | echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
b53bb419 | 2236 | echo "configure:2237: checking for sqrt in -lm" >&5 |
13277480 HA |
2237 | ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
2238 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2240 | else | |
2241 | ac_save_LIBS="$LIBS" | |
2242 | LIBS="-lm $LIBS" | |
2243 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2244 | #line 2245 "configure" |
13277480 HA |
2245 | #include "confdefs.h" |
2246 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2247 | /* We use char because int might match the return type of a gcc2 | |
2248 | builtin and then its argument prototype would still apply. */ | |
2249 | char sqrt(); | |
2250 | ||
2251 | int main() { | |
2252 | sqrt() | |
2253 | ; return 0; } | |
2254 | EOF | |
b53bb419 | 2255 | if { (eval echo configure:2256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13277480 HA |
2256 | rm -rf conftest* |
2257 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2258 | else | |
2259 | echo "configure: failed program was:" >&5 | |
2260 | cat conftest.$ac_ext >&5 | |
2261 | rm -rf conftest* | |
2262 | eval "ac_cv_lib_$ac_lib_var=no" | |
2263 | fi | |
2264 | rm -f conftest* | |
2265 | LIBS="$ac_save_LIBS" | |
2266 | ||
2267 | fi | |
2268 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2269 | echo "$ac_t""yes" 1>&6 | |
2270 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2271 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2272 | cat >> confdefs.h <<EOF | |
2273 | #define $ac_tr_lib 1 | |
2274 | EOF | |
2275 | ||
2276 | LIBS="-lm $LIBS" | |
2277 | ||
2278 | else | |
2279 | echo "$ac_t""no" 1>&6 | |
2280 | fi | |
2281 | ||
da0cfb36 | 2282 | echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6 |
b53bb419 | 2283 | echo "configure:2284: checking for i386_set_ldt in -li386" >&5 |
da0cfb36 | 2284 | ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'` |
d7d4fdf8 | 2285 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
902da699 AJ |
2286 | echo $ac_n "(cached) $ac_c" 1>&6 |
2287 | else | |
2288 | ac_save_LIBS="$LIBS" | |
2289 | LIBS="-li386 $LIBS" | |
2290 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2291 | #line 2292 "configure" |
902da699 | 2292 | #include "confdefs.h" |
59730ae1 | 2293 | /* Override any gcc2 internal prototype to avoid an error. */ |
e2bfa4c7 AJ |
2294 | /* We use char because int might match the return type of a gcc2 |
2295 | builtin and then its argument prototype would still apply. */ | |
59730ae1 | 2296 | char i386_set_ldt(); |
902da699 | 2297 | |
da0cfb36 | 2298 | int main() { |
902da699 AJ |
2299 | i386_set_ldt() |
2300 | ; return 0; } | |
2301 | EOF | |
b53bb419 | 2302 | if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
02e90087 AJ |
2303 | rm -rf conftest* |
2304 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2305 | else | |
2306 | echo "configure: failed program was:" >&5 | |
2307 | cat conftest.$ac_ext >&5 | |
2308 | rm -rf conftest* | |
2309 | eval "ac_cv_lib_$ac_lib_var=no" | |
2310 | fi | |
2311 | rm -f conftest* | |
2312 | LIBS="$ac_save_LIBS" | |
2313 | ||
2314 | fi | |
2315 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2316 | echo "$ac_t""yes" 1>&6 | |
2317 | ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2318 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2319 | cat >> confdefs.h <<EOF | |
2320 | #define $ac_tr_lib 1 | |
2321 | EOF | |
2322 | ||
2323 | LIBS="-li386 $LIBS" | |
2324 | ||
2325 | else | |
2326 | echo "$ac_t""no" 1>&6 | |
2327 | fi | |
2328 | ||
ecc7669d | 2329 | echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 |
b53bb419 | 2330 | echo "configure:2331: checking for _oss_ioctl in -lossaudio" >&5 |
ecc7669d TV |
2331 | ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` |
2332 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2334 | else | |
2335 | ac_save_LIBS="$LIBS" | |
2336 | LIBS="-lossaudio $LIBS" | |
2337 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2338 | #line 2339 "configure" |
ecc7669d TV |
2339 | #include "confdefs.h" |
2340 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2341 | /* We use char because int might match the return type of a gcc2 | |
2342 | builtin and then its argument prototype would still apply. */ | |
2343 | char _oss_ioctl(); | |
2344 | ||
2345 | int main() { | |
2346 | _oss_ioctl() | |
2347 | ; return 0; } | |
2348 | EOF | |
b53bb419 | 2349 | if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ecc7669d TV |
2350 | rm -rf conftest* |
2351 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2352 | else | |
2353 | echo "configure: failed program was:" >&5 | |
2354 | cat conftest.$ac_ext >&5 | |
2355 | rm -rf conftest* | |
2356 | eval "ac_cv_lib_$ac_lib_var=no" | |
2357 | fi | |
2358 | rm -f conftest* | |
2359 | LIBS="$ac_save_LIBS" | |
2360 | ||
2361 | fi | |
2362 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2363 | echo "$ac_t""yes" 1>&6 | |
2364 | ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2365 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2366 | cat >> confdefs.h <<EOF | |
2367 | #define $ac_tr_lib 1 | |
2368 | EOF | |
2369 | ||
2370 | LIBS="-lossaudio $LIBS" | |
2371 | ||
2372 | else | |
2373 | echo "$ac_t""no" 1>&6 | |
2374 | fi | |
2375 | ||
02e90087 | 2376 | echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6 |
b53bb419 | 2377 | echo "configure:2378: checking for iswalnum in -lw" >&5 |
02e90087 AJ |
2378 | ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'` |
2379 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2381 | else | |
2382 | ac_save_LIBS="$LIBS" | |
2383 | LIBS="-lw $LIBS" | |
2384 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2385 | #line 2386 "configure" |
02e90087 AJ |
2386 | #include "confdefs.h" |
2387 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2388 | /* We use char because int might match the return type of a gcc2 | |
2389 | builtin and then its argument prototype would still apply. */ | |
2390 | char iswalnum(); | |
2391 | ||
2392 | int main() { | |
2393 | iswalnum() | |
2394 | ; return 0; } | |
2395 | EOF | |
b53bb419 | 2396 | if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
02e90087 AJ |
2397 | rm -rf conftest* |
2398 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2399 | else | |
2400 | echo "configure: failed program was:" >&5 | |
2401 | cat conftest.$ac_ext >&5 | |
2402 | rm -rf conftest* | |
2403 | eval "ac_cv_lib_$ac_lib_var=no" | |
2404 | fi | |
2405 | rm -f conftest* | |
2406 | LIBS="$ac_save_LIBS" | |
2407 | ||
2408 | fi | |
2409 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2410 | echo "$ac_t""yes" 1>&6 | |
2411 | ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2412 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2413 | cat >> confdefs.h <<EOF | |
2414 | #define $ac_tr_lib 1 | |
2415 | EOF | |
2416 | ||
2417 | LIBS="-lw $LIBS" | |
2418 | ||
2419 | else | |
2420 | echo "$ac_t""no" 1>&6 | |
2421 | fi | |
2422 | ||
ea584724 PS |
2423 | for ac_func in gethostbyname |
2424 | do | |
2425 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b53bb419 | 2426 | echo "configure:2427: checking for $ac_func" >&5 |
ea584724 PS |
2427 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2429 | else | |
2430 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2431 | #line 2432 "configure" |
ea584724 PS |
2432 | #include "confdefs.h" |
2433 | /* System header to define __stub macros and hopefully few prototypes, | |
2434 | which can conflict with char $ac_func(); below. */ | |
2435 | #include <assert.h> | |
2436 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2437 | /* We use char because int might match the return type of a gcc2 | |
2438 | builtin and then its argument prototype would still apply. */ | |
2439 | char $ac_func(); | |
2440 | ||
2441 | int main() { | |
2442 | ||
2443 | /* The GNU C library defines this for functions which it implements | |
2444 | to always fail with ENOSYS. Some functions are actually named | |
2445 | something starting with __ and the normal name is an alias. */ | |
2446 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2447 | choke me | |
2448 | #else | |
2449 | $ac_func(); | |
2450 | #endif | |
2451 | ||
2452 | ; return 0; } | |
2453 | EOF | |
b53bb419 | 2454 | if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ea584724 PS |
2455 | rm -rf conftest* |
2456 | eval "ac_cv_func_$ac_func=yes" | |
2457 | else | |
2458 | echo "configure: failed program was:" >&5 | |
2459 | cat conftest.$ac_ext >&5 | |
2460 | rm -rf conftest* | |
2461 | eval "ac_cv_func_$ac_func=no" | |
2462 | fi | |
2463 | rm -f conftest* | |
2464 | fi | |
2465 | ||
2466 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2467 | echo "$ac_t""yes" 1>&6 | |
2468 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2469 | cat >> confdefs.h <<EOF | |
2470 | #define $ac_tr_func 1 | |
2471 | EOF | |
2472 | ||
2473 | else | |
2474 | echo "$ac_t""no" 1>&6 | |
f070fda2 | 2475 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
b53bb419 | 2476 | echo "configure:2477: checking for gethostbyname in -lnsl" >&5 |
ea584724 PS |
2477 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
2478 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2480 | else | |
2481 | ac_save_LIBS="$LIBS" | |
e977d6ca | 2482 | LIBS="-lnsl -lsocket $LIBS" |
ea584724 | 2483 | cat > conftest.$ac_ext <<EOF |
b53bb419 | 2484 | #line 2485 "configure" |
ea584724 PS |
2485 | #include "confdefs.h" |
2486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2487 | /* We use char because int might match the return type of a gcc2 | |
2488 | builtin and then its argument prototype would still apply. */ | |
2489 | char gethostbyname(); | |
2490 | ||
2491 | int main() { | |
2492 | gethostbyname() | |
2493 | ; return 0; } | |
2494 | EOF | |
b53bb419 | 2495 | if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ea584724 PS |
2496 | rm -rf conftest* |
2497 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2498 | else | |
2499 | echo "configure: failed program was:" >&5 | |
2500 | cat conftest.$ac_ext >&5 | |
2501 | rm -rf conftest* | |
2502 | eval "ac_cv_lib_$ac_lib_var=no" | |
2503 | fi | |
2504 | rm -f conftest* | |
2505 | LIBS="$ac_save_LIBS" | |
2506 | ||
2507 | fi | |
2508 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2509 | echo "$ac_t""yes" 1>&6 | |
e977d6ca RR |
2510 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
2511 | else | |
2512 | echo "$ac_t""no" 1>&6 | |
2513 | echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6 | |
b53bb419 | 2514 | echo "configure:2515: checking for gethostbyname in -lsocket" >&5 |
e977d6ca RR |
2515 | ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'` |
2516 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2517 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2518 | else | |
2519 | ac_save_LIBS="$LIBS" | |
2520 | LIBS="-lsocket -lnsl $LIBS" | |
2521 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2522 | #line 2523 "configure" |
e977d6ca RR |
2523 | #include "confdefs.h" |
2524 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2525 | /* We use char because int might match the return type of a gcc2 | |
2526 | builtin and then its argument prototype would still apply. */ | |
2527 | char gethostbyname(); | |
ea584724 | 2528 | |
e977d6ca RR |
2529 | int main() { |
2530 | gethostbyname() | |
2531 | ; return 0; } | |
2532 | EOF | |
b53bb419 | 2533 | if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e977d6ca RR |
2534 | rm -rf conftest* |
2535 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2536 | else | |
2537 | echo "configure: failed program was:" >&5 | |
2538 | cat conftest.$ac_ext >&5 | |
2539 | rm -rf conftest* | |
2540 | eval "ac_cv_lib_$ac_lib_var=no" | |
2541 | fi | |
2542 | rm -f conftest* | |
2543 | LIBS="$ac_save_LIBS" | |
ea584724 | 2544 | |
e977d6ca RR |
2545 | fi |
2546 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2547 | echo "$ac_t""yes" 1>&6 | |
2548 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
ea584724 PS |
2549 | else |
2550 | echo "$ac_t""no" 1>&6 | |
2551 | fi | |
2552 | ||
e977d6ca RR |
2553 | fi |
2554 | ||
715a55e7 | 2555 | fi |
f070fda2 MM |
2556 | done |
2557 | ||
715a55e7 UW |
2558 | for ac_func in connect |
2559 | do | |
2560 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b53bb419 | 2561 | echo "configure:2562: checking for $ac_func" >&5 |
715a55e7 UW |
2562 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2564 | else | |
2565 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2566 | #line 2567 "configure" |
715a55e7 UW |
2567 | #include "confdefs.h" |
2568 | /* System header to define __stub macros and hopefully few prototypes, | |
2569 | which can conflict with char $ac_func(); below. */ | |
2570 | #include <assert.h> | |
2571 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2572 | /* We use char because int might match the return type of a gcc2 | |
2573 | builtin and then its argument prototype would still apply. */ | |
2574 | char $ac_func(); | |
2575 | ||
2576 | int main() { | |
2577 | ||
2578 | /* The GNU C library defines this for functions which it implements | |
2579 | to always fail with ENOSYS. Some functions are actually named | |
2580 | something starting with __ and the normal name is an alias. */ | |
2581 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2582 | choke me | |
2583 | #else | |
2584 | $ac_func(); | |
2585 | #endif | |
2586 | ||
2587 | ; return 0; } | |
2588 | EOF | |
b53bb419 | 2589 | if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
715a55e7 UW |
2590 | rm -rf conftest* |
2591 | eval "ac_cv_func_$ac_func=yes" | |
2592 | else | |
2593 | echo "configure: failed program was:" >&5 | |
2594 | cat conftest.$ac_ext >&5 | |
2595 | rm -rf conftest* | |
2596 | eval "ac_cv_func_$ac_func=no" | |
2597 | fi | |
2598 | rm -f conftest* | |
2599 | fi | |
2600 | ||
2601 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2602 | echo "$ac_t""yes" 1>&6 | |
2603 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2604 | cat >> confdefs.h <<EOF | |
2605 | #define $ac_tr_func 1 | |
2606 | EOF | |
2607 | ||
2608 | else | |
2609 | echo "$ac_t""no" 1>&6 | |
f070fda2 | 2610 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
b53bb419 | 2611 | echo "configure:2612: checking for connect in -lsocket" >&5 |
715a55e7 UW |
2612 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
2613 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2614 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2615 | else | |
2616 | ac_save_LIBS="$LIBS" | |
2617 | LIBS="-lsocket $LIBS" | |
2618 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2619 | #line 2620 "configure" |
715a55e7 UW |
2620 | #include "confdefs.h" |
2621 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2622 | /* We use char because int might match the return type of a gcc2 | |
2623 | builtin and then its argument prototype would still apply. */ | |
2624 | char connect(); | |
2625 | ||
2626 | int main() { | |
2627 | connect() | |
2628 | ; return 0; } | |
2629 | EOF | |
b53bb419 | 2630 | if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
715a55e7 UW |
2631 | rm -rf conftest* |
2632 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2633 | else | |
2634 | echo "configure: failed program was:" >&5 | |
2635 | cat conftest.$ac_ext >&5 | |
2636 | rm -rf conftest* | |
2637 | eval "ac_cv_lib_$ac_lib_var=no" | |
2638 | fi | |
2639 | rm -f conftest* | |
2640 | LIBS="$ac_save_LIBS" | |
2641 | ||
2642 | fi | |
2643 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2644 | echo "$ac_t""yes" 1>&6 | |
f070fda2 | 2645 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ |
715a55e7 UW |
2646 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
2647 | cat >> confdefs.h <<EOF | |
2648 | #define $ac_tr_lib 1 | |
2649 | EOF | |
2650 | ||
2651 | LIBS="-lsocket $LIBS" | |
2652 | ||
2653 | else | |
2654 | echo "$ac_t""no" 1>&6 | |
2655 | fi | |
2656 | ||
ea584724 | 2657 | fi |
f070fda2 MM |
2658 | done |
2659 | ||
d30dfd24 | 2660 | echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6 |
b53bb419 | 2661 | echo "configure:2662: checking for setrunelocale in -lxpg4" >&5 |
d30dfd24 AJ |
2662 | ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'` |
2663 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2665 | else | |
2666 | ac_save_LIBS="$LIBS" | |
2667 | LIBS="-lxpg4 $LIBS" | |
2668 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2669 | #line 2670 "configure" |
d30dfd24 AJ |
2670 | #include "confdefs.h" |
2671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2672 | /* We use char because int might match the return type of a gcc2 | |
2673 | builtin and then its argument prototype would still apply. */ | |
2674 | char setrunelocale(); | |
2675 | ||
2676 | int main() { | |
2677 | setrunelocale() | |
2678 | ; return 0; } | |
2679 | EOF | |
b53bb419 | 2680 | if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
d30dfd24 AJ |
2681 | rm -rf conftest* |
2682 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2683 | else | |
2684 | echo "configure: failed program was:" >&5 | |
2685 | cat conftest.$ac_ext >&5 | |
2686 | rm -rf conftest* | |
2687 | eval "ac_cv_lib_$ac_lib_var=no" | |
2688 | fi | |
2689 | rm -f conftest* | |
2690 | LIBS="$ac_save_LIBS" | |
2691 | ||
2692 | fi | |
2693 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2694 | echo "$ac_t""yes" 1>&6 | |
2695 | ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2696 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2697 | cat >> confdefs.h <<EOF | |
2698 | #define $ac_tr_lib 1 | |
2699 | EOF | |
2700 | ||
2701 | LIBS="-lxpg4 $LIBS" | |
2702 | ||
2703 | else | |
2704 | echo "$ac_t""no" 1>&6 | |
2705 | fi | |
2706 | ||
0e7bd08c | 2707 | echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6 |
b53bb419 | 2708 | echo "configure:2709: checking for mmap in -lmmap" >&5 |
0e7bd08c AJ |
2709 | ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'` |
2710 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2712 | else | |
2713 | ac_save_LIBS="$LIBS" | |
2714 | LIBS="-lmmap $LIBS" | |
2715 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2716 | #line 2717 "configure" |
0e7bd08c AJ |
2717 | #include "confdefs.h" |
2718 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2719 | /* We use char because int might match the return type of a gcc2 | |
2720 | builtin and then its argument prototype would still apply. */ | |
2721 | char mmap(); | |
2722 | ||
2723 | int main() { | |
2724 | mmap() | |
2725 | ; return 0; } | |
2726 | EOF | |
b53bb419 | 2727 | if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0e7bd08c AJ |
2728 | rm -rf conftest* |
2729 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2730 | else | |
2731 | echo "configure: failed program was:" >&5 | |
2732 | cat conftest.$ac_ext >&5 | |
2733 | rm -rf conftest* | |
2734 | eval "ac_cv_lib_$ac_lib_var=no" | |
2735 | fi | |
2736 | rm -f conftest* | |
2737 | LIBS="$ac_save_LIBS" | |
2738 | ||
2739 | fi | |
2740 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2741 | echo "$ac_t""yes" 1>&6 | |
2742 | ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
2743 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
2744 | cat >> confdefs.h <<EOF | |
2745 | #define $ac_tr_lib 1 | |
2746 | EOF | |
2747 | ||
2748 | LIBS="-lmmap $LIBS" | |
2749 | ||
2750 | else | |
2751 | echo "$ac_t""no" 1>&6 | |
2752 | fi | |
2753 | ||
2d7be870 MM |
2754 | for ac_func in openpty |
2755 | do | |
2756 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b53bb419 | 2757 | echo "configure:2758: checking for $ac_func" >&5 |
2d7be870 MM |
2758 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2760 | else | |
2761 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2762 | #line 2763 "configure" |
2d7be870 MM |
2763 | #include "confdefs.h" |
2764 | /* System header to define __stub macros and hopefully few prototypes, | |
2765 | which can conflict with char $ac_func(); below. */ | |
2766 | #include <assert.h> | |
2767 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2768 | /* We use char because int might match the return type of a gcc2 | |
2769 | builtin and then its argument prototype would still apply. */ | |
2770 | char $ac_func(); | |
2771 | ||
2772 | int main() { | |
2773 | ||
2774 | /* The GNU C library defines this for functions which it implements | |
2775 | to always fail with ENOSYS. Some functions are actually named | |
2776 | something starting with __ and the normal name is an alias. */ | |
2777 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2778 | choke me | |
2779 | #else | |
2780 | $ac_func(); | |
2781 | #endif | |
2782 | ||
2783 | ; return 0; } | |
2784 | EOF | |
b53bb419 | 2785 | if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2d7be870 MM |
2786 | rm -rf conftest* |
2787 | eval "ac_cv_func_$ac_func=yes" | |
2788 | else | |
2789 | echo "configure: failed program was:" >&5 | |
2790 | cat conftest.$ac_ext >&5 | |
2791 | rm -rf conftest* | |
2792 | eval "ac_cv_func_$ac_func=no" | |
2793 | fi | |
2794 | rm -f conftest* | |
2795 | fi | |
2796 | ||
2797 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2798 | echo "$ac_t""yes" 1>&6 | |
2799 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2800 | cat >> confdefs.h <<EOF | |
2801 | #define $ac_tr_func 1 | |
2802 | EOF | |
2803 | ||
2804 | else | |
2805 | echo "$ac_t""no" 1>&6 | |
2806 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 | |
b53bb419 | 2807 | echo "configure:2808: checking for openpty in -lutil" >&5 |
2d7be870 MM |
2808 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
2809 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2811 | else | |
2812 | ac_save_LIBS="$LIBS" | |
2813 | LIBS="-lutil $LIBS" | |
2814 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2815 | #line 2816 "configure" |
2d7be870 MM |
2816 | #include "confdefs.h" |
2817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2818 | /* We use char because int might match the return type of a gcc2 | |
2819 | builtin and then its argument prototype would still apply. */ | |
2820 | char openpty(); | |
2821 | ||
2822 | int main() { | |
2823 | openpty() | |
2824 | ; return 0; } | |
2825 | EOF | |
b53bb419 | 2826 | if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2d7be870 MM |
2827 | rm -rf conftest* |
2828 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2829 | else | |
2830 | echo "configure: failed program was:" >&5 | |
2831 | cat conftest.$ac_ext >&5 | |
2832 | rm -rf conftest* | |
2833 | eval "ac_cv_lib_$ac_lib_var=no" | |
2834 | fi | |
2835 | rm -f conftest* | |
2836 | LIBS="$ac_save_LIBS" | |
2837 | ||
2838 | fi | |
2839 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2840 | echo "$ac_t""yes" 1>&6 | |
2841 | cat >> confdefs.h <<\EOF | |
2842 | #define HAVE_OPENPTY 1 | |
2843 | EOF | |
2844 | ||
2845 | LIBS="$LIBS -lutil" | |
2846 | ||
2847 | else | |
2848 | echo "$ac_t""no" 1>&6 | |
2849 | fi | |
2850 | ||
2851 | fi | |
2852 | done | |
2853 | ||
f070fda2 MM |
2854 | |
2855 | for ac_hdr in dlfcn.h | |
2856 | do | |
2857 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2858 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b53bb419 | 2859 | echo "configure:2860: checking for $ac_hdr" >&5 |
f070fda2 MM |
2860 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2862 | else | |
2863 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2864 | #line 2865 "configure" |
f070fda2 MM |
2865 | #include "confdefs.h" |
2866 | #include <$ac_hdr> | |
2867 | EOF | |
2868 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b53bb419 | 2869 | { (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 2870 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
f070fda2 MM |
2871 | if test -z "$ac_err"; then |
2872 | rm -rf conftest* | |
2873 | eval "ac_cv_header_$ac_safe=yes" | |
2874 | else | |
2875 | echo "$ac_err" >&5 | |
2876 | echo "configure: failed program was:" >&5 | |
2877 | cat conftest.$ac_ext >&5 | |
2878 | rm -rf conftest* | |
2879 | eval "ac_cv_header_$ac_safe=no" | |
2880 | fi | |
2881 | rm -f conftest* | |
2882 | fi | |
2883 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2884 | echo "$ac_t""yes" 1>&6 | |
2885 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2886 | cat >> confdefs.h <<EOF | |
2887 | #define $ac_tr_hdr 1 | |
2888 | EOF | |
2889 | for ac_func in dlopen | |
2890 | do | |
2891 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b53bb419 | 2892 | echo "configure:2893: checking for $ac_func" >&5 |
f070fda2 MM |
2893 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2895 | else | |
2896 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2897 | #line 2898 "configure" |
f070fda2 MM |
2898 | #include "confdefs.h" |
2899 | /* System header to define __stub macros and hopefully few prototypes, | |
2900 | which can conflict with char $ac_func(); below. */ | |
2901 | #include <assert.h> | |
2902 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2903 | /* We use char because int might match the return type of a gcc2 | |
2904 | builtin and then its argument prototype would still apply. */ | |
2905 | char $ac_func(); | |
2906 | ||
2907 | int main() { | |
2908 | ||
2909 | /* The GNU C library defines this for functions which it implements | |
2910 | to always fail with ENOSYS. Some functions are actually named | |
2911 | something starting with __ and the normal name is an alias. */ | |
2912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2913 | choke me | |
2914 | #else | |
2915 | $ac_func(); | |
2916 | #endif | |
2917 | ||
2918 | ; return 0; } | |
2919 | EOF | |
b53bb419 | 2920 | if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f070fda2 MM |
2921 | rm -rf conftest* |
2922 | eval "ac_cv_func_$ac_func=yes" | |
2923 | else | |
2924 | echo "configure: failed program was:" >&5 | |
2925 | cat conftest.$ac_ext >&5 | |
2926 | rm -rf conftest* | |
2927 | eval "ac_cv_func_$ac_func=no" | |
2928 | fi | |
2929 | rm -f conftest* | |
2930 | fi | |
2931 | ||
2932 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2933 | echo "$ac_t""yes" 1>&6 | |
2934 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2935 | cat >> confdefs.h <<EOF | |
2936 | #define $ac_tr_func 1 | |
2937 | EOF | |
2938 | cat >> confdefs.h <<\EOF | |
2939 | #define HAVE_DL_API 1 | |
2940 | EOF | |
2941 | ||
2942 | else | |
2943 | echo "$ac_t""no" 1>&6 | |
8220bc9d | 2944 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
b53bb419 | 2945 | echo "configure:2946: checking for dlopen in -ldl" >&5 |
8220bc9d MM |
2946 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
2947 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
2948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2949 | else | |
2950 | ac_save_LIBS="$LIBS" | |
2951 | LIBS="-ldl $LIBS" | |
2952 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 2953 | #line 2954 "configure" |
8220bc9d MM |
2954 | #include "confdefs.h" |
2955 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2956 | /* We use char because int might match the return type of a gcc2 | |
2957 | builtin and then its argument prototype would still apply. */ | |
2958 | char dlopen(); | |
2959 | ||
2960 | int main() { | |
2961 | dlopen() | |
2962 | ; return 0; } | |
2963 | EOF | |
b53bb419 | 2964 | if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8220bc9d MM |
2965 | rm -rf conftest* |
2966 | eval "ac_cv_lib_$ac_lib_var=yes" | |
2967 | else | |
2968 | echo "configure: failed program was:" >&5 | |
2969 | cat conftest.$ac_ext >&5 | |
2970 | rm -rf conftest* | |
2971 | eval "ac_cv_lib_$ac_lib_var=no" | |
2972 | fi | |
2973 | rm -f conftest* | |
2974 | LIBS="$ac_save_LIBS" | |
2975 | ||
2976 | fi | |
2977 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
2978 | echo "$ac_t""yes" 1>&6 | |
f070fda2 MM |
2979 | cat >> confdefs.h <<\EOF |
2980 | #define HAVE_DL_API 1 | |
8220bc9d MM |
2981 | EOF |
2982 | ||
f070fda2 | 2983 | LIBS="$LIBS -ldl" |
f070fda2 MM |
2984 | else |
2985 | echo "$ac_t""no" 1>&6 | |
e1e75371 AJ |
2986 | LIBEXT="a" |
2987 | ||
f070fda2 MM |
2988 | fi |
2989 | ||
2990 | ||
2991 | fi | |
2992 | done | |
2993 | ||
8220bc9d MM |
2994 | else |
2995 | echo "$ac_t""no" 1>&6 | |
e1e75371 AJ |
2996 | LIBEXT="a" |
2997 | ||
8220bc9d | 2998 | fi |
f070fda2 | 2999 | done |
8220bc9d | 3000 | |
ea584724 | 3001 | |
10ad97c8 | 3002 | |
2941a212 PS |
3003 | X_DLLS="" |
3004 | ||
3005 | XFILES="" | |
10ad97c8 | 3006 | |
bedf40b5 LU |
3007 | OPENGLFILES="" |
3008 | ||
4615e29c HT |
3009 | OPENGL32_DLL="" |
3010 | ||
10ad97c8 MM |
3011 | DGA_SRCS="" |
3012 | ||
51177f96 LU |
3013 | DGA2_SRCS="" |
3014 | ||
10ad97c8 | 3015 | MESA_SRCS="" |
ea584724 PS |
3016 | if test "$have_x" = "yes" |
3017 | then | |
24110288 | 3018 | XLIB="-lXext -lX11" |
1eb593cb OK |
3019 | ac_save_CPPFLAGS="$CPPFLAGS" |
3020 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" | |
24110288 PS |
3021 | |
3022 | for ac_hdr in X11/xpm.h | |
3023 | do | |
3024 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3025 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b53bb419 | 3026 | echo "configure:3027: checking for $ac_hdr" >&5 |
24110288 PS |
3027 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3029 | else | |
3030 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 3031 | #line 3032 "configure" |
24110288 PS |
3032 | #include "confdefs.h" |
3033 | #include <$ac_hdr> | |
3034 | EOF | |
3035 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b53bb419 | 3036 | { (eval echo configure:3037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 3037 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
24110288 PS |
3038 | if test -z "$ac_err"; then |
3039 | rm -rf conftest* | |
3040 | eval "ac_cv_header_$ac_safe=yes" | |
3041 | else | |
3042 | echo "$ac_err" >&5 | |
3043 | echo "configure: failed program was:" >&5 | |
3044 | cat conftest.$ac_ext >&5 | |
3045 | rm -rf conftest* | |
3046 | eval "ac_cv_header_$ac_safe=no" | |
3047 | fi | |
3048 | rm -f conftest* | |
3049 | fi | |
3050 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3051 | echo "$ac_t""yes" 1>&6 | |
3052 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3053 | cat >> confdefs.h <<EOF | |
3054 | #define $ac_tr_hdr 1 | |
3055 | EOF | |
f2b77ccb | 3056 | echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6 |
b53bb419 | 3057 | echo "configure:3058: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
24110288 PS |
3058 | ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'` |
3059 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3061 | else | |
3062 | ac_save_LIBS="$LIBS" | |
f2b77ccb JS |
3063 | LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
3064 | $LIBS" | |
24110288 | 3065 | cat > conftest.$ac_ext <<EOF |
b53bb419 | 3066 | #line 3067 "configure" |
24110288 PS |
3067 | #include "confdefs.h" |
3068 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3069 | /* We use char because int might match the return type of a gcc2 | |
3070 | builtin and then its argument prototype would still apply. */ | |
3071 | char XpmCreatePixmapFromData(); | |
3072 | ||
3073 | int main() { | |
3074 | XpmCreatePixmapFromData() | |
3075 | ; return 0; } | |
3076 | EOF | |
b53bb419 | 3077 | if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
24110288 PS |
3078 | rm -rf conftest* |
3079 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3080 | else | |
3081 | echo "configure: failed program was:" >&5 | |
3082 | cat conftest.$ac_ext >&5 | |
3083 | rm -rf conftest* | |
3084 | eval "ac_cv_lib_$ac_lib_var=no" | |
3085 | fi | |
3086 | rm -f conftest* | |
3087 | LIBS="$ac_save_LIBS" | |
3088 | ||
3089 | fi | |
3090 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3091 | echo "$ac_t""yes" 1>&6 | |
f2b77ccb | 3092 | cat >> confdefs.h <<\EOF |
24110288 PS |
3093 | #define HAVE_LIBXXPM 1 |
3094 | EOF | |
3095 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" | |
3096 | else | |
3097 | echo "$ac_t""no" 1>&6 | |
3098 | fi | |
3099 | ||
f2b77ccb JS |
3100 | |
3101 | else | |
3102 | echo "$ac_t""no" 1>&6 | |
3103 | echo "Redhat : xpm xpm-devel" | |
3104 | echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static" | |
284995e6 | 3105 | echo "SuSE : xpm" |
f2b77ccb | 3106 | echo "Debian/Corel Linux: xpm4g xpm4g-dev" |
cb99b0ea MM |
3107 | echo |
3108 | echo "Or get the sources from ftp.x.org and all its mirror sites from " | |
3109 | echo "the directory /contrib/libraries." | |
3110 | echo | |
3111 | exit 1 | |
f2b77ccb JS |
3112 | |
3113 | ||
3114 | fi | |
3115 | done | |
24110288 | 3116 | |
cb99b0ea | 3117 | |
f2b77ccb | 3118 | for ac_hdr in X11/Xlib.h |
24110288 PS |
3119 | do |
3120 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3121 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b53bb419 | 3122 | echo "configure:3123: checking for $ac_hdr" >&5 |
24110288 PS |
3123 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3125 | else | |
3126 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 3127 | #line 3128 "configure" |
24110288 PS |
3128 | #include "confdefs.h" |
3129 | #include <$ac_hdr> | |
3130 | EOF | |
3131 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b53bb419 | 3132 | { (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 3133 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
24110288 PS |
3134 | if test -z "$ac_err"; then |
3135 | rm -rf conftest* | |
3136 | eval "ac_cv_header_$ac_safe=yes" | |
3137 | else | |
3138 | echo "$ac_err" >&5 | |
3139 | echo "configure: failed program was:" >&5 | |
3140 | cat conftest.$ac_ext >&5 | |
3141 | rm -rf conftest* | |
3142 | eval "ac_cv_header_$ac_safe=no" | |
3143 | fi | |
3144 | rm -f conftest* | |
3145 | fi | |
3146 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3147 | echo "$ac_t""yes" 1>&6 | |
3148 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3149 | cat >> confdefs.h <<EOF | |
3150 | #define $ac_tr_hdr 1 | |
3151 | EOF | |
3152 | ||
f2b77ccb JS |
3153 | for ac_hdr in X11/extensions/XShm.h |
3154 | do | |
3155 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3156 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b53bb419 | 3157 | echo "configure:3158: checking for $ac_hdr" >&5 |
f2b77ccb JS |
3158 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3159 | echo $ac_n "(cached) $ac_c" 1>&6 | |
24110288 | 3160 | else |
f2b77ccb | 3161 | cat > conftest.$ac_ext <<EOF |
b53bb419 | 3162 | #line 3163 "configure" |
f2b77ccb JS |
3163 | #include "confdefs.h" |
3164 | #include <$ac_hdr> | |
3165 | EOF | |
3166 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b53bb419 | 3167 | { (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
f2b77ccb JS |
3168 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3169 | if test -z "$ac_err"; then | |
3170 | rm -rf conftest* | |
3171 | eval "ac_cv_header_$ac_safe=yes" | |
3172 | else | |
3173 | echo "$ac_err" >&5 | |
3174 | echo "configure: failed program was:" >&5 | |
3175 | cat conftest.$ac_ext >&5 | |
3176 | rm -rf conftest* | |
3177 | eval "ac_cv_header_$ac_safe=no" | |
24110288 | 3178 | fi |
f2b77ccb JS |
3179 | rm -f conftest* |
3180 | fi | |
3181 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3182 | echo "$ac_t""yes" 1>&6 | |
3183 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3184 | cat >> confdefs.h <<EOF | |
3185 | #define $ac_tr_hdr 1 | |
3186 | EOF | |
3187 | echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6 | |
b53bb419 | 3188 | echo "configure:3189: checking for XShmQueryExtension in -lXext" >&5 |
ea584724 PS |
3189 | ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'` |
3190 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3191 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3192 | else | |
3193 | ac_save_LIBS="$LIBS" | |
376ec88e | 3194 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
ea584724 | 3195 | cat > conftest.$ac_ext <<EOF |
b53bb419 | 3196 | #line 3197 "configure" |
ea584724 PS |
3197 | #include "confdefs.h" |
3198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3199 | /* We use char because int might match the return type of a gcc2 | |
3200 | builtin and then its argument prototype would still apply. */ | |
3201 | char XShmQueryExtension(); | |
3202 | ||
3203 | int main() { | |
3204 | XShmQueryExtension() | |
3205 | ; return 0; } | |
3206 | EOF | |
b53bb419 | 3207 | if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ea584724 PS |
3208 | rm -rf conftest* |
3209 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3210 | else | |
3211 | echo "configure: failed program was:" >&5 | |
3212 | cat conftest.$ac_ext >&5 | |
3213 | rm -rf conftest* | |
3214 | eval "ac_cv_lib_$ac_lib_var=no" | |
3215 | fi | |
3216 | rm -f conftest* | |
3217 | LIBS="$ac_save_LIBS" | |
3218 | ||
3219 | fi | |
3220 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3221 | echo "$ac_t""yes" 1>&6 | |
3222 | cat >> confdefs.h <<\EOF | |
3223 | #define HAVE_LIBXXSHM 1 | |
3224 | EOF | |
3225 | ||
3226 | else | |
3227 | echo "$ac_t""no" 1>&6 | |
3228 | fi | |
3229 | ||
f2b77ccb JS |
3230 | |
3231 | else | |
3232 | echo "$ac_t""no" 1>&6 | |
3233 | echo "configure: warning: Xshm extension not found!!" 1>&2 | |
3234 | ||
3235 | fi | |
3236 | done | |
3237 | ||
3238 | ||
5b6879c5 | 3239 | for ac_hdr in X11/Xlib.h X11/extensions/shape.h |
24110288 PS |
3240 | do |
3241 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3242 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b53bb419 | 3243 | echo "configure:3244: checking for $ac_hdr" >&5 |
24110288 PS |
3244 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3246 | else | |
3247 | cat > conftest.$ac_ext <<EOF | |
b53bb419 | 3248 | #line 3249 "configure" |
24110288 PS |
3249 | #include "confdefs.h" |
3250 | #include <$ac_hdr> | |
3251 | EOF | |
3252 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b53bb419 | 3253 | { (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 3254 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
24110288 PS |
3255 | if test -z "$ac_err"; then |
3256 | rm -rf conftest* | |
3257 | eval "ac_cv_header_$ac_safe=yes" | |
3258 | else | |
3259 | echo "$ac_err" >&5 | |
3260 | echo "configure: failed program was:" >&5 | |
3261 | cat conftest.$ac_ext >&5 | |
3262 | rm -rf conftest* | |
3263 | eval "ac_cv_header_$ac_safe=no" | |
3264 | fi | |
3265 | rm -f conftest* | |
3266 | fi | |
3267 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3268 | echo "$ac_t""yes" 1>&6 | |
3269 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3270 | cat >> confdefs.h <<EOF | |
3271 | #define $ac_tr_hdr 1 | |
5b6879c5 FJ |
3272 | EOF |
3273 | echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 | |
3274 | echo "configure:3275: checking for XShapeQueryExtension in -lXext" >&5 | |
3275 | ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` | |
3276 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3278 | else | |
3279 | ac_save_LIBS="$LIBS" | |
3280 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" | |
3281 | cat > conftest.$ac_ext <<EOF | |
3282 | #line 3283 "configure" | |
3283 | #include "confdefs.h" | |
3284 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3285 | /* We use char because int might match the return type of a gcc2 | |
3286 | builtin and then its argument prototype would still apply. */ | |
3287 | char XShapeQueryExtension(); | |
3288 | ||
3289 | int main() { | |
3290 | XShapeQueryExtension() | |
3291 | ; return 0; } | |
3292 | EOF | |
3293 | if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3294 | rm -rf conftest* | |
3295 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3296 | else | |
3297 | echo "configure: failed program was:" >&5 | |
3298 | cat conftest.$ac_ext >&5 | |
3299 | rm -rf conftest* | |
3300 | eval "ac_cv_lib_$ac_lib_var=no" | |
3301 | fi | |
3302 | rm -f conftest* | |
3303 | LIBS="$ac_save_LIBS" | |
3304 | ||
3305 | fi | |
3306 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3307 | echo "$ac_t""yes" 1>&6 | |
3308 | cat >> confdefs.h <<\EOF | |
3309 | #define HAVE_LIBXSHAPE 1 | |
3310 | EOF | |
3311 | ||
3312 | else | |
3313 | echo "$ac_t""no" 1>&6 | |
3314 | fi | |
3315 | ||
3316 | ||
3317 | else | |
3318 | echo "$ac_t""no" 1>&6 | |
3319 | echo "configure: warning: XShape extension found!!" 1>&2 | |
3320 | ||
3321 | fi | |
3322 | done | |
3323 | ||
3324 | ||
3325 | for ac_hdr in X11/extensions/xf86dga.h | |
3326 | do | |
3327 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3328 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3329 | echo "configure:3330: checking for $ac_hdr" >&5 | |
3330 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
3331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3332 | else | |
3333 | cat > conftest.$ac_ext <<EOF | |
3334 | #line 3335 "configure" | |
3335 | #include "confdefs.h" | |
3336 | #include <$ac_hdr> | |
3337 | EOF | |
3338 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3339 | { (eval echo configure:3340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3340 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3341 | if test -z "$ac_err"; then | |
3342 | rm -rf conftest* | |
3343 | eval "ac_cv_header_$ac_safe=yes" | |
3344 | else | |
3345 | echo "$ac_err" >&5 | |
3346 | echo "configure: failed program was:" >&5 | |
3347 | cat conftest.$ac_ext >&5 | |
3348 | rm -rf conftest* | |
3349 | eval "ac_cv_header_$ac_safe=no" | |
3350 | fi | |
3351 | rm -f conftest* | |
3352 | fi | |
3353 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3354 | echo "$ac_t""yes" 1>&6 | |
3355 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3356 | cat >> confdefs.h <<EOF | |
3357 | #define $ac_tr_hdr 1 | |
24110288 | 3358 | EOF |
f2b77ccb | 3359 | echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 |
5b6879c5 | 3360 | echo "configure:3361: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
d94475bd LU |
3361 | ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'` |
3362 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3364 | else | |
3365 | ac_save_LIBS="$LIBS" | |
10ad97c8 | 3366 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
f2b77ccb | 3367 | $LIBS" |
d94475bd | 3368 | cat > conftest.$ac_ext <<EOF |
5b6879c5 | 3369 | #line 3370 "configure" |
d94475bd LU |
3370 | #include "confdefs.h" |
3371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3372 | /* We use char because int might match the return type of a gcc2 | |
3373 | builtin and then its argument prototype would still apply. */ | |
3374 | char XDGAQueryExtension(); | |
3375 | ||
3376 | int main() { | |
3377 | XDGAQueryExtension() | |
3378 | ; return 0; } | |
3379 | EOF | |
5b6879c5 | 3380 | if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
d94475bd LU |
3381 | rm -rf conftest* |
3382 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3383 | else | |
3384 | echo "configure: failed program was:" >&5 | |
3385 | cat conftest.$ac_ext >&5 | |
3386 | rm -rf conftest* | |
3387 | eval "ac_cv_lib_$ac_lib_var=no" | |
3388 | fi | |
3389 | rm -f conftest* | |
3390 | LIBS="$ac_save_LIBS" | |
3391 | ||
3392 | fi | |
3393 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3394 | echo "$ac_t""yes" 1>&6 | |
f2b77ccb | 3395 | cat >> confdefs.h <<\EOF |
d94475bd | 3396 | #define HAVE_LIBXXF86DGA2 1 |
7be462dd | 3397 | EOF |
10ad97c8 | 3398 | |
f2b77ccb | 3399 | cat >> confdefs.h <<\EOF |
7be462dd | 3400 | #define HAVE_LIBXXF86DGA 1 |
d94475bd | 3401 | EOF |
10ad97c8 | 3402 | |
f2b77ccb JS |
3403 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
3404 | DGA_SRCS='$(DGA_SRCS)' | |
3405 | DGA2_SRCS='$(DGA2_SRCS)' | |
3406 | ||
d94475bd LU |
3407 | else |
3408 | echo "$ac_t""no" 1>&6 | |
f2b77ccb | 3409 | echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 |
5b6879c5 | 3410 | echo "configure:3411: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
02e90087 AJ |
3411 | ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'` |
3412 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3414 | else | |
3415 | ac_save_LIBS="$LIBS" | |
f2b77ccb JS |
3416 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
3417 | $LIBS" | |
02e90087 | 3418 | cat > conftest.$ac_ext <<EOF |
5b6879c5 | 3419 | #line 3420 "configure" |
02e90087 AJ |
3420 | #include "confdefs.h" |
3421 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3422 | /* We use char because int might match the return type of a gcc2 | |
3423 | builtin and then its argument prototype would still apply. */ | |
3424 | char XF86DGAQueryExtension(); | |
3425 | ||
3426 | int main() { | |
3427 | XF86DGAQueryExtension() | |
3428 | ; return 0; } | |
3429 | EOF | |
5b6879c5 | 3430 | if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
902da699 | 3431 | rm -rf conftest* |
d7d4fdf8 | 3432 | eval "ac_cv_lib_$ac_lib_var=yes" |
902da699 | 3433 | else |
da0cfb36 AJ |
3434 | echo "configure: failed program was:" >&5 |
3435 | cat conftest.$ac_ext >&5 | |
902da699 | 3436 | rm -rf conftest* |
d7d4fdf8 | 3437 | eval "ac_cv_lib_$ac_lib_var=no" |
902da699 AJ |
3438 | fi |
3439 | rm -f conftest* | |
3440 | LIBS="$ac_save_LIBS" | |
3441 | ||
3442 | fi | |
d7d4fdf8 | 3443 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
902da699 | 3444 | echo "$ac_t""yes" 1>&6 |
f2b77ccb | 3445 | cat >> confdefs.h <<\EOF |
0623a6f3 | 3446 | #define HAVE_LIBXXF86DGA 1 |
02e90087 | 3447 | EOF |
10ad97c8 | 3448 | |
f2b77ccb JS |
3449 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
3450 | DGA_SRCS='$(DGA_SRCS)' | |
3451 | ||
0623a6f3 AJ |
3452 | else |
3453 | echo "$ac_t""no" 1>&6 | |
3454 | fi | |
3455 | ||
f2b77ccb JS |
3456 | |
3457 | fi | |
3458 | ||
3459 | ||
3460 | else | |
3461 | echo "$ac_t""no" 1>&6 | |
3462 | echo "configure: warning: DGA extension not found!!" 1>&2 | |
3463 | ||
3464 | fi | |
3465 | done | |
3466 | ||
24110288 | 3467 | |
f2b77ccb | 3468 | for ac_hdr in X11/extensions/xf86vmode.h |
24110288 PS |
3469 | do |
3470 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3471 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5b6879c5 | 3472 | echo "configure:3473: checking for $ac_hdr" >&5 |
24110288 PS |
3473 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3475 | else | |
3476 | cat > conftest.$ac_ext <<EOF | |
5b6879c5 | 3477 | #line 3478 "configure" |
24110288 PS |
3478 | #include "confdefs.h" |
3479 | #include <$ac_hdr> | |
3480 | EOF | |
3481 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5b6879c5 | 3482 | { (eval echo configure:3483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 3483 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
24110288 PS |
3484 | if test -z "$ac_err"; then |
3485 | rm -rf conftest* | |
3486 | eval "ac_cv_header_$ac_safe=yes" | |
3487 | else | |
3488 | echo "$ac_err" >&5 | |
3489 | echo "configure: failed program was:" >&5 | |
3490 | cat conftest.$ac_ext >&5 | |
3491 | rm -rf conftest* | |
3492 | eval "ac_cv_header_$ac_safe=no" | |
3493 | fi | |
3494 | rm -f conftest* | |
3495 | fi | |
3496 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3497 | echo "$ac_t""yes" 1>&6 | |
3498 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3499 | cat >> confdefs.h <<EOF | |
3500 | #define $ac_tr_hdr 1 | |
3501 | EOF | |
f2b77ccb | 3502 | echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6 |
5b6879c5 | 3503 | echo "configure:3504: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
399931a2 SC |
3504 | ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'` |
3505 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3507 | else | |
3508 | ac_save_LIBS="$LIBS" | |
f2b77ccb JS |
3509 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
3510 | $LIBS" | |
399931a2 | 3511 | cat > conftest.$ac_ext <<EOF |
5b6879c5 | 3512 | #line 3513 "configure" |
399931a2 SC |
3513 | #include "confdefs.h" |
3514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3515 | /* We use char because int might match the return type of a gcc2 | |
3516 | builtin and then its argument prototype would still apply. */ | |
3517 | char XF86VidModeQueryExtension(); | |
3518 | ||
3519 | int main() { | |
3520 | XF86VidModeQueryExtension() | |
3521 | ; return 0; } | |
3522 | EOF | |
5b6879c5 | 3523 | if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
399931a2 SC |
3524 | rm -rf conftest* |
3525 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3526 | else | |
3527 | echo "configure: failed program was:" >&5 | |
3528 | cat conftest.$ac_ext >&5 | |
3529 | rm -rf conftest* | |
3530 | eval "ac_cv_lib_$ac_lib_var=no" | |
3531 | fi | |
3532 | rm -f conftest* | |
3533 | LIBS="$ac_save_LIBS" | |
3534 | ||
3535 | fi | |
3536 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3537 | echo "$ac_t""yes" 1>&6 | |
f2b77ccb | 3538 | cat >> confdefs.h <<\EOF |
399931a2 SC |
3539 | #define HAVE_LIBXXF86VM 1 |
3540 | EOF | |
f2b77ccb JS |
3541 | |
3542 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" | |
3543 | ||
399931a2 SC |
3544 | else |
3545 | echo "$ac_t""no" 1>&6 | |
3546 | fi | |
3547 | ||
f2b77ccb JS |
3548 | |
3549 | else | |
3550 | echo "$ac_t""no" 1>&6 | |
3551 | echo "configure: warning: XFree86 VMODE extension not found!!" 1>&2 | |
3552 | ||
3553 | fi | |
3554 | done | |
5c085704 | 3555 | |
3d2f32dc LU |
3556 | |
3557 | for ac_hdr in X11/extensions/Xvlib.h | |
3558 | do | |
3559 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3560 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3561 | echo "configure:3562: checking for $ac_hdr" >&5 | |
3562 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
3563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3564 | else | |
3565 | cat > conftest.$ac_ext <<EOF | |
3566 | #line 3567 "configure" | |
3567 | #include "confdefs.h" | |
3568 | #include <$ac_hdr> | |
3569 | EOF | |
3570 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3571 | { (eval echo configure:3572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3572 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3573 | if test -z "$ac_err"; then | |
3574 | rm -rf conftest* | |
3575 | eval "ac_cv_header_$ac_safe=yes" | |
3576 | else | |
3577 | echo "$ac_err" >&5 | |
3578 | echo "configure: failed program was:" >&5 | |
3579 | cat conftest.$ac_ext >&5 | |
3580 | rm -rf conftest* | |
3581 | eval "ac_cv_header_$ac_safe=no" | |
3582 | fi | |
3583 | rm -f conftest* | |
3584 | fi | |
3585 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3586 | echo "$ac_t""yes" 1>&6 | |
3587 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3588 | cat >> confdefs.h <<EOF | |
3589 | #define $ac_tr_hdr 1 | |
3590 | EOF | |
3591 | echo $ac_n "checking for XvShmCreateImage in -lXv""... $ac_c" 1>&6 | |
3592 | echo "configure:3593: checking for XvShmCreateImage in -lXv" >&5 | |
3593 | ac_lib_var=`echo Xv'_'XvShmCreateImage | sed 'y%./+-%__p_%'` | |
3594 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3595 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3596 | else | |
3597 | ac_save_LIBS="$LIBS" | |
3598 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS | |
3599 | $LIBS" | |
3600 | cat > conftest.$ac_ext <<EOF | |
3601 | #line 3602 "configure" | |
3602 | #include "confdefs.h" | |
3603 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3604 | /* We use char because int might match the return type of a gcc2 | |
3605 | builtin and then its argument prototype would still apply. */ | |
3606 | char XvShmCreateImage(); | |
3607 | ||
3608 | int main() { | |
3609 | XvShmCreateImage() | |
3610 | ; return 0; } | |
3611 | EOF | |
3612 | if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3613 | rm -rf conftest* | |
3614 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3615 | else | |
3616 | echo "configure: failed program was:" >&5 | |
3617 | cat conftest.$ac_ext >&5 | |
3618 | rm -rf conftest* | |
3619 | eval "ac_cv_lib_$ac_lib_var=no" | |
3620 | fi | |
3621 | rm -f conftest* | |
3622 | LIBS="$ac_save_LIBS" | |
3623 | ||
3624 | fi | |
3625 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3626 | echo "$ac_t""yes" 1>&6 | |
3627 | cat >> confdefs.h <<\EOF | |
3628 | #define HAVE_XVIDEO 1 | |
3629 | EOF | |
3630 | ||
3631 | X_PRE_LIBS="$X_PRE_LIBS -lXv" | |
3632 | ||
3633 | else | |
3634 | echo "$ac_t""no" 1>&6 | |
3635 | fi | |
3636 | ||
3637 | ||
3638 | else | |
3639 | echo "$ac_t""no" 1>&6 | |
3640 | echo "configure: warning: XVideo extension not found !!" 1>&2 | |
3641 | ||
3642 | fi | |
3643 | done | |
3644 | ||
3645 | ||
f2b77ccb JS |
3646 | |
3647 | ||
3648 | else | |
3649 | echo "$ac_t""no" 1>&6 | |
3650 | fi | |
3651 | done | |
3652 | ||
fbc15b17 LU |
3653 | if test $OPENGL = "yes" -o $OPENGL = "normal" |
3654 | then | |
bedf40b5 | 3655 | for ac_hdr in GL/gl.h GL/glx.h GL/glext.h |
24110288 PS |
3656 | do |
3657 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3658 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3d2f32dc | 3659 | echo "configure:3660: checking for $ac_hdr" >&5 |
24110288 PS |
3660 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3662 | else | |
3663 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 3664 | #line 3665 "configure" |
24110288 PS |
3665 | #include "confdefs.h" |
3666 | #include <$ac_hdr> | |
3667 | EOF | |
3668 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3d2f32dc | 3669 | { (eval echo configure:3670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 3670 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
24110288 PS |
3671 | if test -z "$ac_err"; then |
3672 | rm -rf conftest* | |
3673 | eval "ac_cv_header_$ac_safe=yes" | |
3674 | else | |
3675 | echo "$ac_err" >&5 | |
3676 | echo "configure: failed program was:" >&5 | |
3677 | cat conftest.$ac_ext >&5 | |
3678 | rm -rf conftest* | |
3679 | eval "ac_cv_header_$ac_safe=no" | |
3680 | fi | |
3681 | rm -f conftest* | |
3682 | fi | |
3683 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3684 | echo "$ac_t""yes" 1>&6 | |
3685 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3686 | cat >> confdefs.h <<EOF | |
3687 | #define $ac_tr_hdr 1 | |
3688 | EOF | |
3689 | ||
3690 | else | |
3691 | echo "$ac_t""no" 1>&6 | |
3692 | fi | |
3693 | done | |
3694 | ||
22a969ba | 3695 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
fbc15b17 LU |
3696 | then |
3697 | echo $ac_n "checking "for up-to-date OpenGL version"""... $ac_c" 1>&6 | |
3d2f32dc | 3698 | echo "configure:3699: checking "for up-to-date OpenGL version"" >&5 |
bedf40b5 | 3699 | if eval "test \"`echo '$''{'wine_cv_opengl_version_OK'+set}'`\" = set"; then |
5c085704 LU |
3700 | echo $ac_n "(cached) $ac_c" 1>&6 |
3701 | else | |
3702 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 3703 | #line 3704 "configure" |
5c085704 LU |
3704 | #include "confdefs.h" |
3705 | #include <GL/gl.h> | |
3706 | int main() { | |
3707 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; | |
3708 | ; return 0; } | |
3709 | EOF | |
3d2f32dc | 3710 | if { (eval echo configure:3711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5c085704 | 3711 | rm -rf conftest* |
bedf40b5 | 3712 | wine_cv_opengl_version_OK="yes" |
5c085704 LU |
3713 | else |
3714 | echo "configure: failed program was:" >&5 | |
3715 | cat conftest.$ac_ext >&5 | |
3716 | rm -rf conftest* | |
bedf40b5 | 3717 | wine_cv_opengl_version_OK="no" |
fbc15b17 | 3718 | |
5c085704 LU |
3719 | fi |
3720 | rm -f conftest* | |
fbc15b17 | 3721 | |
5c085704 LU |
3722 | fi |
3723 | ||
bedf40b5 | 3724 | echo "$ac_t""$wine_cv_opengl_version_OK" 1>&6 |
5c085704 | 3725 | |
fbc15b17 | 3726 | echo $ac_n "checking "for thread-safe OpenGL version"""... $ac_c" 1>&6 |
3d2f32dc | 3727 | echo "configure:3728: checking "for thread-safe OpenGL version"" >&5 |
bedf40b5 | 3728 | if eval "test \"`echo '$''{'wine_cv_opengl_version_threadsafe'+set}'`\" = set"; then |
5eee0bff LU |
3729 | echo $ac_n "(cached) $ac_c" 1>&6 |
3730 | else | |
3731 | saved_libs=$LIBS | |
fbc15b17 LU |
3732 | LIBS="$X_LIBS -lGL" |
3733 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 3734 | #line 3735 "configure" |
5eee0bff LU |
3735 | #include "confdefs.h" |
3736 | ||
3737 | int main() { | |
3738 | pthread_getspecific(); | |
3739 | ; return 0; } | |
3740 | EOF | |
3d2f32dc | 3741 | if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5eee0bff | 3742 | rm -rf conftest* |
bedf40b5 | 3743 | wine_cv_opengl_version_threadsafe="yes" |
5eee0bff LU |
3744 | else |
3745 | echo "configure: failed program was:" >&5 | |
3746 | cat conftest.$ac_ext >&5 | |
3747 | rm -rf conftest* | |
bedf40b5 | 3748 | wine_cv_opengl_version_threadsafe="no" |
5eee0bff LU |
3749 | fi |
3750 | rm -f conftest* | |
fbc15b17 LU |
3751 | LIBS=$saved_libs |
3752 | ||
5eee0bff LU |
3753 | fi |
3754 | ||
bedf40b5 | 3755 | echo "$ac_t""$wine_cv_opengl_version_threadsafe" 1>&6 |
5eee0bff | 3756 | |
bedf40b5 | 3757 | if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \) |
fbc15b17 LU |
3758 | then |
3759 | echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6 | |
3d2f32dc | 3760 | echo "configure:3761: checking for glXCreateContext in -lGL" >&5 |
5d68f79a | 3761 | ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'` |
5ff00774 LU |
3762 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3764 | else | |
3765 | ac_save_LIBS="$LIBS" | |
376ec88e | 3766 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
5ff00774 | 3767 | cat > conftest.$ac_ext <<EOF |
3d2f32dc | 3768 | #line 3769 "configure" |
5ff00774 LU |
3769 | #include "confdefs.h" |
3770 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3771 | /* We use char because int might match the return type of a gcc2 | |
3772 | builtin and then its argument prototype would still apply. */ | |
5d68f79a | 3773 | char glXCreateContext(); |
5ff00774 LU |
3774 | |
3775 | int main() { | |
5d68f79a | 3776 | glXCreateContext() |
5ff00774 LU |
3777 | ; return 0; } |
3778 | EOF | |
3d2f32dc | 3779 | if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5ff00774 LU |
3780 | rm -rf conftest* |
3781 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3782 | else | |
3783 | echo "configure: failed program was:" >&5 | |
3784 | cat conftest.$ac_ext >&5 | |
3785 | rm -rf conftest* | |
3786 | eval "ac_cv_lib_$ac_lib_var=no" | |
3787 | fi | |
3788 | rm -f conftest* | |
3789 | LIBS="$ac_save_LIBS" | |
3790 | ||
3791 | fi | |
3792 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3793 | echo "$ac_t""yes" 1>&6 | |
bedf40b5 | 3794 | X_PRE_LIBS="$X_PRE_LIBS -lGL" |
fbc15b17 LU |
3795 | MESA_SRCS='$(MESA_SRCS)' |
3796 | ||
5d68f79a LU |
3797 | else |
3798 | echo "$ac_t""no" 1>&6 | |
3799 | fi | |
3800 | ||
fbc15b17 | 3801 | |
22a969ba MM |
3802 | |
3803 | OPENGLFILES='$(OPENGLFILES)' | |
6bb6d4c2 MM |
3804 | cat >> confdefs.h <<\EOF |
3805 | #define HAVE_OPENGL 1 | |
3806 | EOF | |
3807 | ||
22a969ba | 3808 | |
bedf40b5 | 3809 | if test $ac_cv_lib_GL_glXCreateContext = "yes" |
fbc15b17 | 3810 | then |
bedf40b5 | 3811 | echo $ac_n "checking for glXGetProcAddressARB in -lGL""... $ac_c" 1>&6 |
3d2f32dc | 3812 | echo "configure:3813: checking for glXGetProcAddressARB in -lGL" >&5 |
bedf40b5 | 3813 | ac_lib_var=`echo GL'_'glXGetProcAddressARB | sed 'y%./+-%__p_%'` |
48c08164 LU |
3814 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3816 | else | |
3817 | ac_save_LIBS="$LIBS" | |
376ec88e | 3818 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
48c08164 | 3819 | cat > conftest.$ac_ext <<EOF |
3d2f32dc | 3820 | #line 3821 "configure" |
48c08164 LU |
3821 | #include "confdefs.h" |
3822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3823 | /* We use char because int might match the return type of a gcc2 | |
3824 | builtin and then its argument prototype would still apply. */ | |
bedf40b5 | 3825 | char glXGetProcAddressARB(); |
48c08164 LU |
3826 | |
3827 | int main() { | |
bedf40b5 | 3828 | glXGetProcAddressARB() |
48c08164 LU |
3829 | ; return 0; } |
3830 | EOF | |
3d2f32dc | 3831 | if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
48c08164 LU |
3832 | rm -rf conftest* |
3833 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3834 | else | |
3835 | echo "configure: failed program was:" >&5 | |
3836 | cat conftest.$ac_ext >&5 | |
3837 | rm -rf conftest* | |
3838 | eval "ac_cv_lib_$ac_lib_var=no" | |
3839 | fi | |
3840 | rm -f conftest* | |
3841 | LIBS="$ac_save_LIBS" | |
3842 | ||
3843 | fi | |
3844 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3845 | echo "$ac_t""yes" 1>&6 | |
3846 | cat >> confdefs.h <<\EOF | |
bedf40b5 | 3847 | #define HAVE_GLX_GETPROCADDRESS 1 |
48c08164 LU |
3848 | EOF |
3849 | ||
5ff00774 LU |
3850 | else |
3851 | echo "$ac_t""no" 1>&6 | |
3852 | fi | |
3853 | ||
bedf40b5 LU |
3854 | |
3855 | if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes" | |
3856 | then | |
1434d875 | 3857 | echo $ac_n "checking "for OpenGL extension functions prototypes"""... $ac_c" 1>&6 |
3d2f32dc | 3858 | echo "configure:3859: checking "for OpenGL extension functions prototypes"" >&5 |
1434d875 LU |
3859 | if eval "test \"`echo '$''{'wine_cv_extension_prototypes'+set}'`\" = set"; then |
3860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3861 | else | |
3862 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 3863 | #line 3864 "configure" |
1434d875 LU |
3864 | #include "confdefs.h" |
3865 | #include <GL/gl.h> | |
6bb6d4c2 MM |
3866 | #ifdef HAVE_GL_GLEXT_H |
3867 | # include <GL/glext.h> | |
3868 | #endif | |
3869 | ||
1434d875 LU |
3870 | int main() { |
3871 | PFNGLCOLORTABLEEXTPROC test_proc; | |
3872 | ; return 0; } | |
3873 | EOF | |
3d2f32dc | 3874 | if { (eval echo configure:3875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1434d875 | 3875 | rm -rf conftest* |
fe210ef3 | 3876 | wine_cv_extension_prototypes="yes" |
1434d875 LU |
3877 | else |
3878 | echo "configure: failed program was:" >&5 | |
3879 | cat conftest.$ac_ext >&5 | |
3880 | rm -rf conftest* | |
3881 | wine_cv_extension_prototypes="no" | |
3882 | ||
3883 | fi | |
3884 | rm -f conftest* | |
3885 | ||
3886 | fi | |
3887 | ||
3888 | echo "$ac_t""$wine_cv_extension_prototypes" 1>&6 | |
fe210ef3 LU |
3889 | if test $wine_cv_extension_prototypes = "yes" |
3890 | then | |
3891 | cat >> confdefs.h <<\EOF | |
3892 | #define HAVE_GLEXT_PROTOTYPES 1 | |
3893 | EOF | |
3894 | ||
3895 | fi | |
1434d875 | 3896 | |
4615e29c | 3897 | OPENGL32_DLL=opengl32 |
bedf40b5 | 3898 | fi |
fbc15b17 LU |
3899 | fi |
3900 | fi | |
3901 | fi | |
24110288 | 3902 | fi |
1eb593cb OK |
3903 | |
3904 | CPPFLAGS="$ac_save_CPPFLAGS" | |
2941a212 PS |
3905 | X_DLLS='$(X_DLLS)' |
3906 | XFILES='$(XFILES)' | |
24110288 PS |
3907 | else |
3908 | XLIB="" | |
3909 | X_CFLAGS="" | |
3910 | X_LIBS="" | |
3911 | fi | |
3912 | ||
5e5ad531 PS |
3913 | if test "$CURSES" = "yes" |
3914 | then | |
3915 | for ac_hdr in ncurses.h | |
a1d6d247 LU |
3916 | do |
3917 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3918 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3d2f32dc | 3919 | echo "configure:3920: checking for $ac_hdr" >&5 |
a1d6d247 LU |
3920 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3922 | else | |
3923 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 3924 | #line 3925 "configure" |
a1d6d247 LU |
3925 | #include "confdefs.h" |
3926 | #include <$ac_hdr> | |
3927 | EOF | |
3928 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3d2f32dc | 3929 | { (eval echo configure:3930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 3930 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
a1d6d247 LU |
3931 | if test -z "$ac_err"; then |
3932 | rm -rf conftest* | |
3933 | eval "ac_cv_header_$ac_safe=yes" | |
3934 | else | |
3935 | echo "$ac_err" >&5 | |
3936 | echo "configure: failed program was:" >&5 | |
3937 | cat conftest.$ac_ext >&5 | |
3938 | rm -rf conftest* | |
3939 | eval "ac_cv_header_$ac_safe=no" | |
3940 | fi | |
3941 | rm -f conftest* | |
3942 | fi | |
3943 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3944 | echo "$ac_t""yes" 1>&6 | |
3945 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3946 | cat >> confdefs.h <<EOF | |
3947 | #define $ac_tr_hdr 1 | |
3948 | EOF | |
3949 | ||
3950 | else | |
3951 | echo "$ac_t""no" 1>&6 | |
3952 | fi | |
3953 | done | |
3954 | ||
5e5ad531 PS |
3955 | if test "$ac_cv_header_ncurses_h" = "yes" |
3956 | then | |
3957 | echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6 | |
3d2f32dc | 3958 | echo "configure:3959: checking for waddch in -lncurses" >&5 |
e884f9ca JP |
3959 | ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'` |
3960 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3962 | else | |
3963 | ac_save_LIBS="$LIBS" | |
3964 | LIBS="-lncurses $LIBS" | |
3965 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 3966 | #line 3967 "configure" |
e884f9ca JP |
3967 | #include "confdefs.h" |
3968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3969 | /* We use char because int might match the return type of a gcc2 | |
3970 | builtin and then its argument prototype would still apply. */ | |
3971 | char waddch(); | |
3972 | ||
3973 | int main() { | |
3974 | waddch() | |
3975 | ; return 0; } | |
3976 | EOF | |
3d2f32dc | 3977 | if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e884f9ca JP |
3978 | rm -rf conftest* |
3979 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3980 | else | |
3981 | echo "configure: failed program was:" >&5 | |
3982 | cat conftest.$ac_ext >&5 | |
3983 | rm -rf conftest* | |
3984 | eval "ac_cv_lib_$ac_lib_var=no" | |
3985 | fi | |
3986 | rm -f conftest* | |
3987 | LIBS="$ac_save_LIBS" | |
3988 | ||
3989 | fi | |
3990 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3991 | echo "$ac_t""yes" 1>&6 | |
3992 | ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
3993 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
3994 | cat >> confdefs.h <<EOF | |
3995 | #define $ac_tr_lib 1 | |
3996 | EOF | |
3997 | ||
3998 | LIBS="-lncurses $LIBS" | |
3999 | ||
4000 | else | |
4001 | echo "$ac_t""no" 1>&6 | |
4002 | fi | |
4003 | ||
5e5ad531 PS |
4004 | fi |
4005 | if test "$ac_cv_lib_ncurses_waddch" = "yes" | |
4006 | then | |
4007 | echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6 | |
3d2f32dc | 4008 | echo "configure:4009: checking for resizeterm in -lncurses" >&5 |
638f169b AJ |
4009 | ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'` |
4010 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4012 | else | |
4013 | ac_save_LIBS="$LIBS" | |
4014 | LIBS="-lncurses $LIBS" | |
4015 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4016 | #line 4017 "configure" |
638f169b AJ |
4017 | #include "confdefs.h" |
4018 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4019 | /* We use char because int might match the return type of a gcc2 | |
4020 | builtin and then its argument prototype would still apply. */ | |
4021 | char resizeterm(); | |
4022 | ||
4023 | int main() { | |
4024 | resizeterm() | |
4025 | ; return 0; } | |
4026 | EOF | |
3d2f32dc | 4027 | if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
638f169b AJ |
4028 | rm -rf conftest* |
4029 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4030 | else | |
4031 | echo "configure: failed program was:" >&5 | |
4032 | cat conftest.$ac_ext >&5 | |
4033 | rm -rf conftest* | |
4034 | eval "ac_cv_lib_$ac_lib_var=no" | |
4035 | fi | |
4036 | rm -f conftest* | |
4037 | LIBS="$ac_save_LIBS" | |
4038 | ||
4039 | fi | |
4040 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4041 | echo "$ac_t""yes" 1>&6 | |
4042 | cat >> confdefs.h <<\EOF | |
4043 | #define HAVE_RESIZETERM 1 | |
4044 | EOF | |
4045 | ||
f544507b MV |
4046 | else |
4047 | echo "$ac_t""no" 1>&6 | |
4048 | fi | |
4049 | ||
5e5ad531 | 4050 | echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6 |
3d2f32dc | 4051 | echo "configure:4052: checking for getbkgd in -lncurses" >&5 |
f544507b MV |
4052 | ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'` |
4053 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4055 | else | |
4056 | ac_save_LIBS="$LIBS" | |
4057 | LIBS="-lncurses $LIBS" | |
4058 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4059 | #line 4060 "configure" |
f544507b MV |
4060 | #include "confdefs.h" |
4061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4062 | /* We use char because int might match the return type of a gcc2 | |
4063 | builtin and then its argument prototype would still apply. */ | |
4064 | char getbkgd(); | |
4065 | ||
4066 | int main() { | |
4067 | getbkgd() | |
4068 | ; return 0; } | |
4069 | EOF | |
3d2f32dc | 4070 | if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f544507b MV |
4071 | rm -rf conftest* |
4072 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4073 | else | |
4074 | echo "configure: failed program was:" >&5 | |
4075 | cat conftest.$ac_ext >&5 | |
4076 | rm -rf conftest* | |
4077 | eval "ac_cv_lib_$ac_lib_var=no" | |
4078 | fi | |
4079 | rm -f conftest* | |
4080 | LIBS="$ac_save_LIBS" | |
4081 | ||
4082 | fi | |
4083 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4084 | echo "$ac_t""yes" 1>&6 | |
4085 | cat >> confdefs.h <<\EOF | |
4086 | #define HAVE_GETBKGD 1 | |
4087 | EOF | |
4088 | ||
638f169b AJ |
4089 | else |
4090 | echo "$ac_t""no" 1>&6 | |
4091 | fi | |
4092 | ||
5e5ad531 PS |
4093 | else |
4094 | for ac_hdr in curses.h | |
24110288 PS |
4095 | do |
4096 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
4097 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3d2f32dc | 4098 | echo "configure:4099: checking for $ac_hdr" >&5 |
24110288 PS |
4099 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4101 | else | |
4102 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4103 | #line 4104 "configure" |
24110288 PS |
4104 | #include "confdefs.h" |
4105 | #include <$ac_hdr> | |
4106 | EOF | |
4107 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3d2f32dc | 4108 | { (eval echo configure:4109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 4109 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
24110288 PS |
4110 | if test -z "$ac_err"; then |
4111 | rm -rf conftest* | |
4112 | eval "ac_cv_header_$ac_safe=yes" | |
4113 | else | |
4114 | echo "$ac_err" >&5 | |
4115 | echo "configure: failed program was:" >&5 | |
4116 | cat conftest.$ac_ext >&5 | |
4117 | rm -rf conftest* | |
4118 | eval "ac_cv_header_$ac_safe=no" | |
4119 | fi | |
4120 | rm -f conftest* | |
4121 | fi | |
4122 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4123 | echo "$ac_t""yes" 1>&6 | |
4124 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4125 | cat >> confdefs.h <<EOF | |
4126 | #define $ac_tr_hdr 1 | |
4127 | EOF | |
4128 | ||
4129 | else | |
4130 | echo "$ac_t""no" 1>&6 | |
4131 | fi | |
4132 | done | |
4133 | ||
5e5ad531 PS |
4134 | if test "$ac_cv_header_curses_h" = "yes" |
4135 | then | |
4136 | echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6 | |
3d2f32dc | 4137 | echo "configure:4138: checking for waddch in -lcurses" >&5 |
e884f9ca JP |
4138 | ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'` |
4139 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4141 | else | |
4142 | ac_save_LIBS="$LIBS" | |
4143 | LIBS="-lcurses $LIBS" | |
4144 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4145 | #line 4146 "configure" |
e884f9ca JP |
4146 | #include "confdefs.h" |
4147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4148 | /* We use char because int might match the return type of a gcc2 | |
4149 | builtin and then its argument prototype would still apply. */ | |
4150 | char waddch(); | |
4151 | ||
4152 | int main() { | |
4153 | waddch() | |
4154 | ; return 0; } | |
4155 | EOF | |
3d2f32dc | 4156 | if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e884f9ca JP |
4157 | rm -rf conftest* |
4158 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4159 | else | |
4160 | echo "configure: failed program was:" >&5 | |
4161 | cat conftest.$ac_ext >&5 | |
4162 | rm -rf conftest* | |
4163 | eval "ac_cv_lib_$ac_lib_var=no" | |
4164 | fi | |
4165 | rm -f conftest* | |
4166 | LIBS="$ac_save_LIBS" | |
4167 | ||
4168 | fi | |
4169 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4170 | echo "$ac_t""yes" 1>&6 | |
4171 | ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4172 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4173 | cat >> confdefs.h <<EOF | |
4174 | #define $ac_tr_lib 1 | |
4175 | EOF | |
4176 | ||
4177 | LIBS="-lcurses $LIBS" | |
4178 | ||
638f169b AJ |
4179 | else |
4180 | echo "$ac_t""no" 1>&6 | |
4181 | fi | |
4182 | ||
5e5ad531 PS |
4183 | if test "$ac_cv_lib_curses_waddch" = "yes" |
4184 | then | |
4185 | echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6 | |
3d2f32dc | 4186 | echo "configure:4187: checking for resizeterm in -lcurses" >&5 |
638f169b AJ |
4187 | ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'` |
4188 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4190 | else | |
4191 | ac_save_LIBS="$LIBS" | |
4192 | LIBS="-lcurses $LIBS" | |
4193 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4194 | #line 4195 "configure" |
638f169b AJ |
4195 | #include "confdefs.h" |
4196 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4197 | /* We use char because int might match the return type of a gcc2 | |
4198 | builtin and then its argument prototype would still apply. */ | |
4199 | char resizeterm(); | |
4200 | ||
4201 | int main() { | |
4202 | resizeterm() | |
4203 | ; return 0; } | |
4204 | EOF | |
3d2f32dc | 4205 | if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
638f169b AJ |
4206 | rm -rf conftest* |
4207 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4208 | else | |
4209 | echo "configure: failed program was:" >&5 | |
4210 | cat conftest.$ac_ext >&5 | |
4211 | rm -rf conftest* | |
4212 | eval "ac_cv_lib_$ac_lib_var=no" | |
4213 | fi | |
4214 | rm -f conftest* | |
4215 | LIBS="$ac_save_LIBS" | |
4216 | ||
4217 | fi | |
4218 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4219 | echo "$ac_t""yes" 1>&6 | |
4220 | cat >> confdefs.h <<\EOF | |
4221 | #define HAVE_RESIZETERM 1 | |
4222 | EOF | |
4223 | ||
f544507b MV |
4224 | else |
4225 | echo "$ac_t""no" 1>&6 | |
4226 | fi | |
4227 | ||
5e5ad531 | 4228 | echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6 |
3d2f32dc | 4229 | echo "configure:4230: checking for getbkgd in -lcurses" >&5 |
f544507b MV |
4230 | ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'` |
4231 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4233 | else | |
4234 | ac_save_LIBS="$LIBS" | |
4235 | LIBS="-lcurses $LIBS" | |
4236 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4237 | #line 4238 "configure" |
f544507b MV |
4238 | #include "confdefs.h" |
4239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4240 | /* We use char because int might match the return type of a gcc2 | |
4241 | builtin and then its argument prototype would still apply. */ | |
4242 | char getbkgd(); | |
4243 | ||
4244 | int main() { | |
4245 | getbkgd() | |
4246 | ; return 0; } | |
4247 | EOF | |
3d2f32dc | 4248 | if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f544507b MV |
4249 | rm -rf conftest* |
4250 | eval "ac_cv_lib_$ac_lib_var=yes" | |
4251 | else | |
4252 | echo "configure: failed program was:" >&5 | |
4253 | cat conftest.$ac_ext >&5 | |
4254 | rm -rf conftest* | |
4255 | eval "ac_cv_lib_$ac_lib_var=no" | |
4256 | fi | |
4257 | rm -f conftest* | |
4258 | LIBS="$ac_save_LIBS" | |
4259 | ||
4260 | fi | |
4261 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4262 | echo "$ac_t""yes" 1>&6 | |
4263 | cat >> confdefs.h <<\EOF | |
4264 | #define HAVE_GETBKGD 1 | |
4265 | EOF | |
4266 | ||
e884f9ca JP |
4267 | else |
4268 | echo "$ac_t""no" 1>&6 | |
4269 | fi | |
4270 | ||
5e5ad531 PS |
4271 | fi |
4272 | fi | |
24110288 | 4273 | fi |
e884f9ca JP |
4274 | fi |
4275 | ||
94d99642 | 4276 | echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6 |
3d2f32dc | 4277 | echo "configure:4278: checking "for GNU style IPX support"" >&5 |
94d99642 PR |
4278 | if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then |
4279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4280 | else | |
4281 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4282 | #line 4283 "configure" |
94d99642 PR |
4283 | #include "confdefs.h" |
4284 | #include <sys/socket.h> | |
4285 | #include <netipx/ipx.h> | |
4286 | int main() { | |
4287 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX | |
4288 | ; return 0; } | |
4289 | EOF | |
3d2f32dc | 4290 | if { (eval echo configure:4291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
94d99642 | 4291 | rm -rf conftest* |
c23872d9 | 4292 | ac_cv_c_ipx_gnu="yes" |
94d99642 PR |
4293 | else |
4294 | echo "configure: failed program was:" >&5 | |
4295 | cat conftest.$ac_ext >&5 | |
4296 | rm -rf conftest* | |
4297 | ac_cv_c_ipx_gnu="no" | |
4298 | fi | |
4299 | rm -f conftest* | |
4300 | ||
4301 | fi | |
4302 | ||
4303 | echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6 | |
c23872d9 AH |
4304 | if test "$ac_cv_c_ipx_gnu" = "yes" |
4305 | then | |
4306 | cat >> confdefs.h <<\EOF | |
4307 | #define HAVE_IPX_GNU 1 | |
4308 | EOF | |
4309 | ||
4310 | fi | |
94d99642 PR |
4311 | |
4312 | if test "$ac_cv_c_ipx_gnu" = "no" | |
4313 | then | |
4314 | echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6 | |
3d2f32dc | 4315 | echo "configure:4316: checking "for linux style IPX support"" >&5 |
94d99642 PR |
4316 | if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then |
4317 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4318 | else | |
4319 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4320 | #line 4321 "configure" |
94d99642 PR |
4321 | #include "confdefs.h" |
4322 | #include <sys/socket.h> | |
4323 | #include <asm/types.h> | |
4324 | #include <linux/ipx.h> | |
4325 | int main() { | |
4326 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX | |
4327 | ; return 0; } | |
4328 | EOF | |
3d2f32dc | 4329 | if { (eval echo configure:4330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
94d99642 | 4330 | rm -rf conftest* |
c23872d9 | 4331 | ac_cv_c_ipx_linux="yes" |
94d99642 PR |
4332 | else |
4333 | echo "configure: failed program was:" >&5 | |
4334 | cat conftest.$ac_ext >&5 | |
4335 | rm -rf conftest* | |
4336 | ac_cv_c_ipx_linux="no" | |
4337 | fi | |
4338 | rm -f conftest* | |
4339 | ||
4340 | fi | |
4341 | ||
4342 | echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6 | |
c23872d9 AH |
4343 | if test "$ac_cv_c_ipx_linux" = "yes" |
4344 | then | |
4345 | cat >> confdefs.h <<\EOF | |
4346 | #define HAVE_IPX_LINUX 1 | |
4347 | EOF | |
4348 | ||
4349 | fi | |
94d99642 PR |
4350 | fi |
4351 | ||
ecc7669d | 4352 | for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h |
c7c217b3 AJ |
4353 | do |
4354 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
4355 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3d2f32dc | 4356 | echo "configure:4357: checking for $ac_hdr" >&5 |
c7c217b3 | 4357 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
0623a6f3 | 4358 | echo $ac_n "(cached) $ac_c" 1>&6 |
902da699 | 4359 | else |
0623a6f3 | 4360 | cat > conftest.$ac_ext <<EOF |
3d2f32dc | 4361 | #line 4362 "configure" |
0623a6f3 | 4362 | #include "confdefs.h" |
c7c217b3 | 4363 | #include <$ac_hdr> |
0623a6f3 | 4364 | EOF |
c7c217b3 | 4365 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3d2f32dc | 4366 | { (eval echo configure:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 4367 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
c7c217b3 | 4368 | if test -z "$ac_err"; then |
0623a6f3 | 4369 | rm -rf conftest* |
c7c217b3 | 4370 | eval "ac_cv_header_$ac_safe=yes" |
0623a6f3 | 4371 | else |
c7c217b3 | 4372 | echo "$ac_err" >&5 |
0623a6f3 AJ |
4373 | echo "configure: failed program was:" >&5 |
4374 | cat conftest.$ac_ext >&5 | |
4375 | rm -rf conftest* | |
c7c217b3 | 4376 | eval "ac_cv_header_$ac_safe=no" |
0623a6f3 AJ |
4377 | fi |
4378 | rm -f conftest* | |
4379 | fi | |
c7c217b3 AJ |
4380 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4381 | echo "$ac_t""yes" 1>&6 | |
4382 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4383 | cat >> confdefs.h <<EOF | |
4384 | #define $ac_tr_hdr 1 | |
4385 | EOF | |
ecc7669d | 4386 | break |
c7c217b3 AJ |
4387 | else |
4388 | echo "$ac_t""no" 1>&6 | |
4389 | fi | |
4390 | done | |
0623a6f3 | 4391 | |
0623a6f3 | 4392 | |
c7c217b3 | 4393 | echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6 |
3d2f32dc | 4394 | echo "configure:4395: checking "for Open Sound System"" >&5 |
c7c217b3 | 4395 | if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then |
a69b88b2 AJ |
4396 | echo $ac_n "(cached) $ac_c" 1>&6 |
4397 | else | |
4398 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4399 | #line 4400 "configure" |
a69b88b2 | 4400 | #include "confdefs.h" |
c7c217b3 | 4401 | |
ecc7669d | 4402 | #if defined(HAVE_SYS_SOUNDCARD_H) |
c7c217b3 | 4403 | #include <sys/soundcard.h> |
ecc7669d | 4404 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
c7c217b3 | 4405 | #include <machine/soundcard.h> |
ecc7669d TV |
4406 | #elif defined(HAVE_SOUNDCARD_H) |
4407 | #include <soundcard.h> | |
c7c217b3 AJ |
4408 | #endif |
4409 | ||
a69b88b2 AJ |
4410 | int main() { |
4411 | ||
c7c217b3 | 4412 | |
a69b88b2 AJ |
4413 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
4414 | #if !defined(SNDCTL_DSP_STEREO) | |
4415 | #error No open sound system | |
4416 | #endif | |
4417 | ||
4418 | ; return 0; } | |
4419 | EOF | |
3d2f32dc | 4420 | if { (eval echo configure:4421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a69b88b2 | 4421 | rm -rf conftest* |
c7c217b3 | 4422 | ac_cv_c_opensoundsystem="yes" |
a69b88b2 AJ |
4423 | else |
4424 | echo "configure: failed program was:" >&5 | |
4425 | cat conftest.$ac_ext >&5 | |
4426 | rm -rf conftest* | |
c7c217b3 | 4427 | ac_cv_c_opensoundsystem="no" |
a69b88b2 AJ |
4428 | fi |
4429 | rm -f conftest* | |
4430 | fi | |
4431 | ||
c7c217b3 | 4432 | echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6 |
0623a6f3 | 4433 | |
dadf78ff AJ |
4434 | if test "$ac_cv_c_opensoundsystem" = "yes" |
4435 | then | |
4436 | cat >> confdefs.h <<\EOF | |
4437 | #define HAVE_OSS 1 | |
4438 | EOF | |
4439 | ||
4440 | fi | |
4441 | ||
338d3b2d | 4442 | echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6 |
3d2f32dc | 4443 | echo "configure:4444: checking "for Open Sound System/MIDI interface"" >&5 |
338d3b2d EP |
4444 | if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then |
4445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4446 | else | |
4447 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4448 | #line 4449 "configure" |
338d3b2d EP |
4449 | #include "confdefs.h" |
4450 | ||
4451 | #if defined(HAVE_SYS_SOUNDCARD_H) | |
4452 | #include <sys/soundcard.h> | |
4453 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) | |
4454 | #include <machine/soundcard.h> | |
4455 | #elif defined(HAVE_SOUNDCARD_H) | |
4456 | #include <soundcard.h> | |
4457 | #endif | |
4458 | ||
4459 | int main() { | |
4460 | ||
4461 | ||
4462 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ | |
4463 | #if !defined(SNDCTL_SEQ_SYNC) | |
4464 | #error No open sound system MIDI interface | |
4465 | #endif | |
4466 | ||
4467 | ; return 0; } | |
4468 | EOF | |
3d2f32dc | 4469 | if { (eval echo configure:4470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
338d3b2d EP |
4470 | rm -rf conftest* |
4471 | ac_cv_c_opensoundsystem_midi="yes" | |
4472 | else | |
4473 | echo "configure: failed program was:" >&5 | |
4474 | cat conftest.$ac_ext >&5 | |
4475 | rm -rf conftest* | |
4476 | ac_cv_c_opensoundsystem_midi="no" | |
4477 | fi | |
4478 | rm -f conftest* | |
4479 | fi | |
4480 | ||
4481 | echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6 | |
4482 | ||
4483 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" | |
4484 | then | |
4485 | cat >> confdefs.h <<\EOF | |
4486 | #define HAVE_OSS_MIDI 1 | |
4487 | EOF | |
4488 | ||
4489 | fi | |
4490 | ||
641ee76a AJ |
4491 | if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi |
4492 | ||
e2991ea7 | 4493 | |
4f8c37b4 AJ |
4494 | if test "x${GCC}" = "xyes" |
4495 | then | |
4496 | CFLAGS="$CFLAGS -Wall" | |
4f8c37b4 | 4497 | echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6 |
3d2f32dc | 4498 | echo "configure:4499: checking "for gcc strength-reduce bug"" >&5 |
4f8c37b4 AJ |
4499 | if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then |
4500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4501 | else | |
4502 | if test "$cross_compiling" = yes; then | |
4503 | ac_cv_c_gcc_strength_bug="yes" | |
4504 | else | |
da0cfb36 | 4505 | cat > conftest.$ac_ext <<EOF |
3d2f32dc | 4506 | #line 4507 "configure" |
4f8c37b4 AJ |
4507 | #include "confdefs.h" |
4508 | ||
4509 | int main(void) { | |
d2e1c1a4 | 4510 | static int Array[3]; |
4f8c37b4 AJ |
4511 | unsigned int B = 3; |
4512 | int i; | |
d2e1c1a4 AJ |
4513 | for(i=0; i<B; i++) Array[i] = i - 3; |
4514 | exit( Array[1] != -2 ); | |
4f8c37b4 AJ |
4515 | } |
4516 | EOF | |
3d2f32dc | 4517 | if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7e6ae4ba | 4518 | then |
4f8c37b4 AJ |
4519 | ac_cv_c_gcc_strength_bug="no" |
4520 | else | |
da0cfb36 AJ |
4521 | echo "configure: failed program was:" >&5 |
4522 | cat conftest.$ac_ext >&5 | |
4523 | rm -fr conftest* | |
4f8c37b4 AJ |
4524 | ac_cv_c_gcc_strength_bug="yes" |
4525 | fi | |
da0cfb36 | 4526 | rm -fr conftest* |
4f8c37b4 | 4527 | fi |
da0cfb36 | 4528 | |
4f8c37b4 AJ |
4529 | fi |
4530 | ||
4531 | echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6 | |
4532 | if test "$ac_cv_c_gcc_strength_bug" = "yes" | |
4533 | then | |
4534 | CFLAGS="$CFLAGS -fno-strength-reduce" | |
4535 | fi | |
4536 | fi | |
4537 | ||
4538 | ||
8cc3a5e4 | 4539 | echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6 |
3d2f32dc | 4540 | echo "configure:4541: checking "whether external symbols need an underscore prefix"" >&5 |
8cc3a5e4 AJ |
4541 | if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then |
4542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4543 | else | |
4544 | saved_libs=$LIBS | |
4545 | LIBS="conftest_asm.s $LIBS" | |
4546 | cat > conftest_asm.s <<EOF | |
4547 | .globl _ac_test | |
4548 | _ac_test: | |
4549 | .long 0 | |
4550 | EOF | |
4551 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4552 | #line 4553 "configure" |
8cc3a5e4 AJ |
4553 | #include "confdefs.h" |
4554 | extern int ac_test; | |
da0cfb36 | 4555 | int main() { |
8cc3a5e4 AJ |
4556 | if (ac_test) return 1 |
4557 | ; return 0; } | |
4558 | EOF | |
3d2f32dc | 4559 | if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8cc3a5e4 AJ |
4560 | rm -rf conftest* |
4561 | ac_cv_c_extern_prefix="yes" | |
4562 | else | |
da0cfb36 AJ |
4563 | echo "configure: failed program was:" >&5 |
4564 | cat conftest.$ac_ext >&5 | |
8cc3a5e4 AJ |
4565 | rm -rf conftest* |
4566 | ac_cv_c_extern_prefix="no" | |
4567 | fi | |
4568 | rm -f conftest* | |
8cc3a5e4 AJ |
4569 | LIBS=$saved_libs |
4570 | fi | |
4571 | ||
4572 | echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6 | |
4573 | if test "$ac_cv_c_extern_prefix" = "yes" | |
4574 | then | |
4575 | cat >> confdefs.h <<\EOF | |
4576 | #define NEED_UNDERSCORE_PREFIX 1 | |
4577 | EOF | |
4578 | ||
4579 | fi | |
4580 | ||
4581 | ||
0623a6f3 | 4582 | echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6 |
3d2f32dc | 4583 | echo "configure:4584: checking "whether assembler accepts .string"" >&5 |
0623a6f3 AJ |
4584 | if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then |
4585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4586 | else | |
4587 | saved_libs=$LIBS | |
4588 | LIBS="conftest_asm.s $LIBS" | |
4589 | cat > conftest_asm.s <<EOF | |
4590 | .string "test" | |
4591 | EOF | |
4592 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4593 | #line 4594 "configure" |
0623a6f3 AJ |
4594 | #include "confdefs.h" |
4595 | ||
4596 | int main() { | |
4597 | ||
4598 | ; return 0; } | |
4599 | EOF | |
3d2f32dc | 4600 | if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0623a6f3 AJ |
4601 | rm -rf conftest* |
4602 | ac_cv_c_asm_string="yes" | |
4603 | else | |
4604 | echo "configure: failed program was:" >&5 | |
4605 | cat conftest.$ac_ext >&5 | |
4606 | rm -rf conftest* | |
4607 | ac_cv_c_asm_string="no" | |
4608 | fi | |
4609 | rm -f conftest* | |
4610 | LIBS=$saved_libs | |
4611 | fi | |
4612 | ||
4613 | echo "$ac_t""$ac_cv_c_asm_string" 1>&6 | |
4614 | if test "$ac_cv_c_asm_string" = "yes" | |
4615 | then | |
4616 | cat >> confdefs.h <<\EOF | |
4617 | #define HAVE_ASM_STRING 1 | |
4618 | EOF | |
4619 | ||
4620 | fi | |
4621 | ||
4622 | ||
4b992b0f | 4623 | LDSHARED="" |
318f4cef | 4624 | if test "$LIBEXT" = "so" |
7e6ae4ba | 4625 | then |
4b992b0f | 4626 | echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6 |
3d2f32dc | 4627 | echo "configure:4628: checking "whether we can build a Linux dll"" >&5 |
4b992b0f | 4628 | if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then |
7e6ae4ba AJ |
4629 | echo $ac_n "(cached) $ac_c" 1>&6 |
4630 | else | |
4631 | saved_cflags=$CFLAGS | |
4632 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0" | |
4633 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4634 | #line 4635 "configure" |
7e6ae4ba AJ |
4635 | #include "confdefs.h" |
4636 | ||
4637 | int main() { | |
4638 | return 1 | |
4639 | ; return 0; } | |
4640 | EOF | |
3d2f32dc | 4641 | if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7e6ae4ba | 4642 | rm -rf conftest* |
4b992b0f | 4643 | ac_cv_c_dll_linux="yes" |
7e6ae4ba AJ |
4644 | else |
4645 | echo "configure: failed program was:" >&5 | |
4646 | cat conftest.$ac_ext >&5 | |
4647 | rm -rf conftest* | |
4b992b0f | 4648 | ac_cv_c_dll_linux="no" |
7e6ae4ba AJ |
4649 | fi |
4650 | rm -f conftest* | |
4651 | CFLAGS=$saved_cflags | |
4652 | ||
4653 | fi | |
4654 | ||
4b992b0f TV |
4655 | echo "$ac_t""$ac_cv_c_dll_linux" 1>&6 |
4656 | if test "$ac_cv_c_dll_linux" = "yes" | |
7e6ae4ba | 4657 | then |
0adad95d | 4658 | LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)" |
7e6ae4ba | 4659 | else |
a9ee4a2e | 4660 | echo $ac_n "checking whether we can build a UnixWare (Solaris) dll""... $ac_c" 1>&6 |
3d2f32dc | 4661 | echo "configure:4662: checking whether we can build a UnixWare (Solaris) dll" >&5 |
e977d6ca | 4662 | if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then |
4b992b0f TV |
4663 | echo $ac_n "(cached) $ac_c" 1>&6 |
4664 | else | |
4665 | saved_cflags=$CFLAGS | |
a9ee4a2e | 4666 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0" |
4b992b0f | 4667 | cat > conftest.$ac_ext <<EOF |
3d2f32dc | 4668 | #line 4669 "configure" |
4b992b0f TV |
4669 | #include "confdefs.h" |
4670 | ||
4671 | int main() { | |
4672 | return 1 | |
4673 | ; return 0; } | |
4674 | EOF | |
3d2f32dc | 4675 | if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4b992b0f | 4676 | rm -rf conftest* |
e977d6ca | 4677 | ac_cv_c_dll_unixware="yes" |
4b992b0f TV |
4678 | else |
4679 | echo "configure: failed program was:" >&5 | |
4680 | cat conftest.$ac_ext >&5 | |
4681 | rm -rf conftest* | |
e977d6ca | 4682 | ac_cv_c_dll_unixware="no" |
4b992b0f TV |
4683 | fi |
4684 | rm -f conftest* | |
4685 | CFLAGS=$saved_cflags | |
4686 | ||
4687 | fi | |
4688 | ||
e977d6ca RR |
4689 | echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6 |
4690 | if test "$ac_cv_c_dll_unixware" = "yes" | |
4b992b0f | 4691 | then |
0adad95d | 4692 | LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)" |
e977d6ca RR |
4693 | else |
4694 | echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6 | |
3d2f32dc | 4695 | echo "configure:4696: checking "whether we can build a NetBSD dll"" >&5 |
e977d6ca RR |
4696 | if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then |
4697 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4698 | else | |
4699 | saved_cflags=$CFLAGS | |
4700 | CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive" | |
4701 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4702 | #line 4703 "configure" |
e977d6ca RR |
4703 | #include "confdefs.h" |
4704 | ||
4705 | int main() { | |
4706 | return 1 | |
4707 | ; return 0; } | |
4708 | EOF | |
3d2f32dc | 4709 | if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e977d6ca RR |
4710 | rm -rf conftest* |
4711 | ac_cv_c_dll_netbsd="yes" | |
4712 | else | |
4713 | echo "configure: failed program was:" >&5 | |
4714 | cat conftest.$ac_ext >&5 | |
4715 | rm -rf conftest* | |
4716 | ac_cv_c_dll_netbsd="no" | |
4717 | fi | |
4718 | rm -f conftest* | |
4719 | CFLAGS=$saved_cflags | |
4720 | ||
4721 | fi | |
4722 | ||
4723 | echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6 | |
4724 | if test "$ac_cv_c_dll_netbsd" = "yes" | |
4725 | then | |
e977d6ca RR |
4726 | LDSHARED="ld -Bshareable -Bforcearchive" |
4727 | fi | |
4b992b0f TV |
4728 | fi |
4729 | fi | |
e977d6ca | 4730 | if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no" |
4b992b0f | 4731 | then |
318f4cef | 4732 | LIBEXT="a" |
7e6ae4ba AJ |
4733 | fi |
4734 | fi | |
4735 | ||
0adad95d | 4736 | DLLFLAGS="" |
0adad95d | 4737 | |
318f4cef | 4738 | if test "$LIBEXT" = "so"; then |
318f4cef | 4739 | DLLFLAGS="-fPIC" |
7e495e1d | 4740 | DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode" |
0adad95d | 4741 | else |
7e495e1d | 4742 | DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode \$(X_LIBS) \$(XLIB)" |
318f4cef | 4743 | echo $ac_n "checking whether the linker supports --[no]-whole-archive (Linux)""... $ac_c" 1>&6 |
3d2f32dc | 4744 | echo "configure:4745: checking whether the linker supports --[no]-whole-archive (Linux)" >&5 |
a9ee4a2e PS |
4745 | if eval "test \"`echo '$''{'ac_cv_c_whole_archive'+set}'`\" = set"; then |
4746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4747 | else | |
4748 | saved_cflags=$CFLAGS | |
4749 | CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive" | |
4750 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4751 | #line 4752 "configure" |
a9ee4a2e PS |
4752 | #include "confdefs.h" |
4753 | ||
4754 | int main() { | |
4755 | return 1 | |
4756 | ; return 0; } | |
4757 | EOF | |
3d2f32dc | 4758 | if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a9ee4a2e PS |
4759 | rm -rf conftest* |
4760 | ac_cv_c_whole_archive="yes" | |
4761 | else | |
4762 | echo "configure: failed program was:" >&5 | |
4763 | cat conftest.$ac_ext >&5 | |
4764 | rm -rf conftest* | |
4765 | ac_cv_c_whole_archive="no" | |
4766 | fi | |
4767 | rm -f conftest* | |
4768 | CFLAGS=$saved_cflags | |
4769 | ||
4770 | fi | |
4771 | ||
4772 | echo "$ac_t""$ac_cv_c_whole_archive" 1>&6 | |
318f4cef AJ |
4773 | if test "$ac_cv_c_whole_archive" = "yes" |
4774 | then | |
4775 | DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive" | |
4776 | else | |
4777 | echo $ac_n "checking whether the linker supports -z {all,default}extract (Linux)""... $ac_c" 1>&6 | |
3d2f32dc | 4778 | echo "configure:4779: checking whether the linker supports -z {all,default}extract (Linux)" >&5 |
a9ee4a2e PS |
4779 | if eval "test \"`echo '$''{'ac_cv_c_allextract'+set}'`\" = set"; then |
4780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4781 | else | |
4782 | saved_cflags=$CFLAGS | |
4783 | CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract" | |
4784 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4785 | #line 4786 "configure" |
a9ee4a2e PS |
4786 | #include "confdefs.h" |
4787 | ||
4788 | int main() { | |
4789 | return 1 | |
4790 | ; return 0; } | |
4791 | EOF | |
3d2f32dc | 4792 | if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a9ee4a2e PS |
4793 | rm -rf conftest* |
4794 | ac_cv_c_allextract="yes" | |
4795 | else | |
4796 | echo "configure: failed program was:" >&5 | |
4797 | cat conftest.$ac_ext >&5 | |
4798 | rm -rf conftest* | |
4799 | ac_cv_c_allextract="no" | |
4800 | fi | |
4801 | rm -f conftest* | |
4802 | CFLAGS=$saved_cflags | |
4803 | ||
4804 | fi | |
4805 | ||
4806 | echo "$ac_t""$ac_cv_c_allextract" 1>&6 | |
318f4cef AJ |
4807 | if test "$ac_cv_c_allextract" = "yes" |
4808 | then | |
4809 | DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract" | |
a9ee4a2e | 4810 | fi |
0adad95d AJ |
4811 | fi |
4812 | fi | |
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | ||
4818 | ||
7e6ae4ba | 4819 | |
715a55e7 UW |
4820 | wine_cv_libc_reentrant=no |
4821 | echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6 | |
3d2f32dc | 4822 | echo "configure:4823: checking "for reentrant libc: __errno_location"" >&5 |
715a55e7 | 4823 | if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then |
d30dfd24 AJ |
4824 | echo $ac_n "(cached) $ac_c" 1>&6 |
4825 | else | |
4826 | if test "$cross_compiling" = yes; then | |
715a55e7 | 4827 | wine_cv_libc_r__errno_location=yes |
d30dfd24 AJ |
4828 | else |
4829 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4830 | #line 4831 "configure" |
d30dfd24 AJ |
4831 | #include "confdefs.h" |
4832 | int myerrno = 0; | |
4833 | char buf[256]; | |
4834 | int *__errno_location(){return &myerrno;} | |
4835 | main(){connect(0,buf,255); exit(!myerrno);} | |
4836 | EOF | |
3d2f32dc | 4837 | if { (eval echo configure:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d30dfd24 | 4838 | then |
715a55e7 | 4839 | wine_cv_libc_r__errno_location=yes |
d30dfd24 AJ |
4840 | else |
4841 | echo "configure: failed program was:" >&5 | |
4842 | cat conftest.$ac_ext >&5 | |
4843 | rm -fr conftest* | |
715a55e7 | 4844 | wine_cv_libc_r__errno_location=no |
d30dfd24 AJ |
4845 | fi |
4846 | rm -fr conftest* | |
4847 | fi | |
c2606381 | 4848 | |
715a55e7 UW |
4849 | |
4850 | fi | |
4851 | ||
4852 | echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6 | |
4853 | if test "$wine_cv_libc_r__errno_location" = "yes" | |
4854 | then | |
4855 | cat >> confdefs.h <<\EOF | |
4856 | #define HAVE__ERRNO_LOCATION 1 | |
4857 | EOF | |
4858 | ||
4859 | wine_cv_libc_reentrant=__errno_location | |
4860 | fi | |
4861 | echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6 | |
3d2f32dc | 4862 | echo "configure:4863: checking "for reentrant libc: __error"" >&5 |
715a55e7 UW |
4863 | if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then |
4864 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4865 | else | |
4866 | if test "$cross_compiling" = yes; then | |
4867 | wine_cv_libc_r__error=yes | |
c2606381 MM |
4868 | else |
4869 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4870 | #line 4871 "configure" |
c2606381 MM |
4871 | #include "confdefs.h" |
4872 | int myerrno = 0; | |
4873 | char buf[256]; | |
4874 | int *__error(){return &myerrno;} | |
4875 | main(){connect(0,buf,255); exit(!myerrno);} | |
4876 | EOF | |
3d2f32dc | 4877 | if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c2606381 | 4878 | then |
715a55e7 | 4879 | wine_cv_libc_r__error=yes |
c2606381 MM |
4880 | else |
4881 | echo "configure: failed program was:" >&5 | |
4882 | cat conftest.$ac_ext >&5 | |
4883 | rm -fr conftest* | |
715a55e7 | 4884 | wine_cv_libc_r__error=no |
c2606381 MM |
4885 | fi |
4886 | rm -fr conftest* | |
4887 | fi | |
4888 | ||
c2606381 | 4889 | |
d30dfd24 AJ |
4890 | fi |
4891 | ||
715a55e7 UW |
4892 | echo "$ac_t""$wine_cv_libc_r__error" 1>&6 |
4893 | if test "$wine_cv_libc_r__error" = "yes" | |
4894 | then | |
4895 | cat >> confdefs.h <<\EOF | |
4896 | #define HAVE__ERROR 1 | |
4897 | EOF | |
4898 | ||
4899 | wine_cv_libc_reentrant=__error | |
4900 | fi | |
4901 | echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6 | |
3d2f32dc | 4902 | echo "configure:4903: checking "for reentrant libc: ___errno"" >&5 |
715a55e7 UW |
4903 | if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then |
4904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4905 | else | |
4906 | if test "$cross_compiling" = yes; then | |
4907 | wine_cv_libc_r___errno=yes | |
4908 | else | |
4909 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4910 | #line 4911 "configure" |
715a55e7 UW |
4911 | #include "confdefs.h" |
4912 | int myerrno = 0; | |
4913 | char buf[256]; | |
4914 | int *___errno(){return &myerrno;} | |
4915 | main(){connect(0,buf,255); exit(!myerrno);} | |
4916 | EOF | |
3d2f32dc | 4917 | if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
715a55e7 UW |
4918 | then |
4919 | wine_cv_libc_r___errno=yes | |
4920 | else | |
4921 | echo "configure: failed program was:" >&5 | |
4922 | cat conftest.$ac_ext >&5 | |
4923 | rm -fr conftest* | |
4924 | wine_cv_libc_r___errno=no | |
4925 | fi | |
4926 | rm -fr conftest* | |
4927 | fi | |
4928 | ||
4929 | ||
4930 | fi | |
4931 | ||
4932 | echo "$ac_t""$wine_cv_libc_r___errno" 1>&6 | |
4933 | if test "$wine_cv_libc_r___errno" = "yes" | |
4934 | then | |
4935 | cat >> confdefs.h <<\EOF | |
4936 | #define HAVE___ERRNO 1 | |
4937 | EOF | |
4938 | ||
4939 | wine_cv_libc_reentrant=___errno | |
4940 | fi | |
e977d6ca | 4941 | echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6 |
3d2f32dc | 4942 | echo "configure:4943: checking "for reentrant libc: __thr_errno"" >&5 |
e977d6ca RR |
4943 | if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then |
4944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4945 | else | |
4946 | if test "$cross_compiling" = yes; then | |
4947 | wine_cv_libc_r__thr_errno=yes | |
4948 | else | |
4949 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 4950 | #line 4951 "configure" |
e977d6ca RR |
4951 | #include "confdefs.h" |
4952 | int myerrno = 0; | |
4953 | char buf[256]; | |
4954 | int *__thr_errno(){return &myerrno;} | |
4955 | main(){connect(0,buf,255); exit(!myerrno);} | |
4956 | EOF | |
3d2f32dc | 4957 | if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
e977d6ca RR |
4958 | then |
4959 | wine_cv_libc_r__thr_errno=yes | |
4960 | else | |
4961 | echo "configure: failed program was:" >&5 | |
4962 | cat conftest.$ac_ext >&5 | |
4963 | rm -fr conftest* | |
4964 | wine_cv_libc_r__thr_errno=no | |
4965 | fi | |
4966 | rm -fr conftest* | |
4967 | fi | |
4968 | ||
4969 | ||
4970 | fi | |
4971 | ||
4972 | echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6 | |
4973 | if test "$wine_cv_libc_r__thr_errno" = "yes" | |
4974 | then | |
4975 | cat >> confdefs.h <<\EOF | |
4976 | #define HAVE__THR_ERRNO 1 | |
4977 | EOF | |
4978 | ||
4979 | wine_cv_libc_reentrant=__thr_errno | |
4980 | fi | |
d30dfd24 AJ |
4981 | if test "$wine_cv_libc_reentrant" = "no" |
4982 | then | |
4983 | cat >> confdefs.h <<\EOF | |
4984 | #define NO_REENTRANT_LIBC 1 | |
4985 | EOF | |
4986 | ||
4987 | fi | |
4988 | ||
4989 | ||
715a55e7 | 4990 | if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no" |
24110288 | 4991 | then |
a11d7b1a | 4992 | echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6 |
3d2f32dc | 4993 | echo "configure:4994: checking "for reentrant X libraries"" >&5 |
a11d7b1a AJ |
4994 | if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then |
4995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4996 | else | |
715a55e7 | 4997 | if test "x$with_reentrant_x" = "xno" |
a11d7b1a AJ |
4998 | then |
4999 | wine_cv_x_reentrant=no | |
5000 | else | |
715a55e7 | 5001 | libX11_check=none |
a11d7b1a | 5002 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do |
829fe323 | 5003 | if test -r $dir/libX11.so; then |
a11d7b1a AJ |
5004 | libX11_check="-D $dir/libX11.so" |
5005 | break 1 | |
5006 | fi | |
829fe323 | 5007 | if test -r $dir/libX11.a; then |
a11d7b1a AJ |
5008 | libX11_check="$dir/libX11.a" |
5009 | break 1 | |
5010 | fi | |
5011 | done | |
5012 | if test "$libX11_check" != "none"; then | |
715a55e7 | 5013 | if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1 |
829fe323 | 5014 | then |
a11d7b1a AJ |
5015 | wine_cv_x_reentrant=yes |
5016 | else | |
5017 | wine_cv_x_reentrant=no | |
5018 | fi | |
5019 | else | |
5020 | wine_cv_x_reentrant=unknown | |
5021 | fi | |
5022 | fi | |
5023 | fi | |
5024 | ||
5025 | echo "$ac_t""$wine_cv_x_reentrant" 1>&6 | |
24110288 PS |
5026 | else |
5027 | wine_cv_x_reentrant=no | |
5028 | fi | |
a11d7b1a AJ |
5029 | if test "$wine_cv_x_reentrant" = "no" |
5030 | then | |
5031 | cat >> confdefs.h <<\EOF | |
5032 | #define NO_REENTRANT_X11 1 | |
5033 | EOF | |
5034 | ||
5035 | fi | |
5036 | ||
5037 | ||
ae5e93e3 | 5038 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
3d2f32dc | 5039 | echo "configure:5040: checking whether byte ordering is bigendian" >&5 |
ae5e93e3 FG |
5040 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
5041 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5042 | else | |
5043 | ac_cv_c_bigendian=unknown | |
5044 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5045 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5046 | #line 5047 "configure" |
ae5e93e3 FG |
5047 | #include "confdefs.h" |
5048 | #include <sys/types.h> | |
5049 | #include <sys/param.h> | |
5050 | int main() { | |
5051 | ||
5052 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
5053 | bogus endian macros | |
5054 | #endif | |
5055 | ; return 0; } | |
5056 | EOF | |
3d2f32dc | 5057 | if { (eval echo configure:5058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ae5e93e3 FG |
5058 | rm -rf conftest* |
5059 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5060 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5061 | #line 5062 "configure" |
ae5e93e3 FG |
5062 | #include "confdefs.h" |
5063 | #include <sys/types.h> | |
5064 | #include <sys/param.h> | |
5065 | int main() { | |
5066 | ||
5067 | #if BYTE_ORDER != BIG_ENDIAN | |
5068 | not big endian | |
5069 | #endif | |
5070 | ; return 0; } | |
5071 | EOF | |
3d2f32dc | 5072 | if { (eval echo configure:5073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ae5e93e3 FG |
5073 | rm -rf conftest* |
5074 | ac_cv_c_bigendian=yes | |
5075 | else | |
5076 | echo "configure: failed program was:" >&5 | |
5077 | cat conftest.$ac_ext >&5 | |
5078 | rm -rf conftest* | |
5079 | ac_cv_c_bigendian=no | |
5080 | fi | |
5081 | rm -f conftest* | |
5082 | else | |
5083 | echo "configure: failed program was:" >&5 | |
5084 | cat conftest.$ac_ext >&5 | |
5085 | fi | |
5086 | rm -f conftest* | |
5087 | if test $ac_cv_c_bigendian = unknown; then | |
5088 | if test "$cross_compiling" = yes; then | |
5089 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | |
5090 | else | |
5091 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5092 | #line 5093 "configure" |
ae5e93e3 FG |
5093 | #include "confdefs.h" |
5094 | main () { | |
5095 | /* Are we little or big endian? From Harbison&Steele. */ | |
5096 | union | |
5097 | { | |
5098 | long l; | |
5099 | char c[sizeof (long)]; | |
5100 | } u; | |
5101 | u.l = 1; | |
5102 | exit (u.c[sizeof (long) - 1] == 1); | |
5103 | } | |
5104 | EOF | |
3d2f32dc | 5105 | if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
ae5e93e3 FG |
5106 | then |
5107 | ac_cv_c_bigendian=no | |
5108 | else | |
5109 | echo "configure: failed program was:" >&5 | |
5110 | cat conftest.$ac_ext >&5 | |
5111 | rm -fr conftest* | |
5112 | ac_cv_c_bigendian=yes | |
5113 | fi | |
5114 | rm -fr conftest* | |
5115 | fi | |
5116 | ||
5117 | fi | |
5118 | fi | |
5119 | ||
5120 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
5121 | if test $ac_cv_c_bigendian = yes; then | |
5122 | cat >> confdefs.h <<\EOF | |
5123 | #define WORDS_BIGENDIAN 1 | |
5124 | EOF | |
5125 | ||
5126 | fi | |
5127 | ||
5128 | ||
5129 | ||
1bb94039 PS |
5130 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5131 | # for constant arguments. Useless! | |
5132 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
3d2f32dc | 5133 | echo "configure:5134: checking for working alloca.h" >&5 |
1bb94039 PS |
5134 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
5135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5136 | else | |
5137 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5138 | #line 5139 "configure" |
1bb94039 PS |
5139 | #include "confdefs.h" |
5140 | #include <alloca.h> | |
5141 | int main() { | |
18ad24a7 | 5142 | void *p = alloca(2 * sizeof(int)); |
1bb94039 PS |
5143 | ; return 0; } |
5144 | EOF | |
3d2f32dc | 5145 | if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1bb94039 PS |
5146 | rm -rf conftest* |
5147 | ac_cv_header_alloca_h=yes | |
5148 | else | |
5149 | echo "configure: failed program was:" >&5 | |
5150 | cat conftest.$ac_ext >&5 | |
5151 | rm -rf conftest* | |
5152 | ac_cv_header_alloca_h=no | |
5153 | fi | |
5154 | rm -f conftest* | |
5155 | fi | |
5156 | ||
5157 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
5158 | if test $ac_cv_header_alloca_h = yes; then | |
5159 | cat >> confdefs.h <<\EOF | |
5160 | #define HAVE_ALLOCA_H 1 | |
5161 | EOF | |
5162 | ||
5163 | fi | |
5164 | ||
5165 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
3d2f32dc | 5166 | echo "configure:5167: checking for alloca" >&5 |
1bb94039 PS |
5167 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
5168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5169 | else | |
5170 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5171 | #line 5172 "configure" |
1bb94039 PS |
5172 | #include "confdefs.h" |
5173 | ||
5174 | #ifdef __GNUC__ | |
5175 | # define alloca __builtin_alloca | |
5176 | #else | |
18ad24a7 EP |
5177 | # ifdef _MSC_VER |
5178 | # include <malloc.h> | |
5179 | # define alloca _alloca | |
1bb94039 | 5180 | # else |
18ad24a7 EP |
5181 | # if HAVE_ALLOCA_H |
5182 | # include <alloca.h> | |
1bb94039 | 5183 | # else |
18ad24a7 EP |
5184 | # ifdef _AIX |
5185 | #pragma alloca | |
5186 | # else | |
5187 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
1bb94039 | 5188 | char *alloca (); |
18ad24a7 | 5189 | # endif |
1bb94039 PS |
5190 | # endif |
5191 | # endif | |
5192 | # endif | |
5193 | #endif | |
5194 | ||
5195 | int main() { | |
5196 | char *p = (char *) alloca(1); | |
5197 | ; return 0; } | |
5198 | EOF | |
3d2f32dc | 5199 | if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1bb94039 PS |
5200 | rm -rf conftest* |
5201 | ac_cv_func_alloca_works=yes | |
5202 | else | |
5203 | echo "configure: failed program was:" >&5 | |
5204 | cat conftest.$ac_ext >&5 | |
5205 | rm -rf conftest* | |
5206 | ac_cv_func_alloca_works=no | |
5207 | fi | |
5208 | rm -f conftest* | |
5209 | fi | |
5210 | ||
5211 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
5212 | if test $ac_cv_func_alloca_works = yes; then | |
5213 | cat >> confdefs.h <<\EOF | |
5214 | #define HAVE_ALLOCA 1 | |
5215 | EOF | |
5216 | ||
5217 | fi | |
5218 | ||
5219 | if test $ac_cv_func_alloca_works = no; then | |
5220 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5221 | # that cause trouble. Some versions do not even contain alloca or | |
5222 | # contain a buggy version. If you still want to use their alloca, | |
5223 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
18ad24a7 | 5224 | ALLOCA=alloca.${ac_objext} |
1bb94039 PS |
5225 | cat >> confdefs.h <<\EOF |
5226 | #define C_ALLOCA 1 | |
5227 | EOF | |
5228 | ||
5229 | ||
5230 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
3d2f32dc | 5231 | echo "configure:5232: checking whether alloca needs Cray hooks" >&5 |
1bb94039 PS |
5232 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5234 | else | |
5235 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5236 | #line 5237 "configure" |
1bb94039 PS |
5237 | #include "confdefs.h" |
5238 | #if defined(CRAY) && ! defined(CRAY2) | |
5239 | webecray | |
5240 | #else | |
5241 | wenotbecray | |
5242 | #endif | |
5243 | ||
5244 | EOF | |
5245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5246 | egrep "webecray" >/dev/null 2>&1; then | |
5247 | rm -rf conftest* | |
5248 | ac_cv_os_cray=yes | |
5249 | else | |
5250 | rm -rf conftest* | |
5251 | ac_cv_os_cray=no | |
5252 | fi | |
5253 | rm -f conftest* | |
5254 | ||
5255 | fi | |
5256 | ||
5257 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
5258 | if test $ac_cv_os_cray = yes; then | |
5259 | for ac_func in _getb67 GETB67 getb67; do | |
5260 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3d2f32dc | 5261 | echo "configure:5262: checking for $ac_func" >&5 |
1bb94039 PS |
5262 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5264 | else | |
5265 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5266 | #line 5267 "configure" |
1bb94039 PS |
5267 | #include "confdefs.h" |
5268 | /* System header to define __stub macros and hopefully few prototypes, | |
5269 | which can conflict with char $ac_func(); below. */ | |
5270 | #include <assert.h> | |
5271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5272 | /* We use char because int might match the return type of a gcc2 | |
5273 | builtin and then its argument prototype would still apply. */ | |
5274 | char $ac_func(); | |
5275 | ||
5276 | int main() { | |
5277 | ||
5278 | /* The GNU C library defines this for functions which it implements | |
5279 | to always fail with ENOSYS. Some functions are actually named | |
5280 | something starting with __ and the normal name is an alias. */ | |
5281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5282 | choke me | |
5283 | #else | |
5284 | $ac_func(); | |
5285 | #endif | |
5286 | ||
5287 | ; return 0; } | |
5288 | EOF | |
3d2f32dc | 5289 | if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1bb94039 PS |
5290 | rm -rf conftest* |
5291 | eval "ac_cv_func_$ac_func=yes" | |
5292 | else | |
5293 | echo "configure: failed program was:" >&5 | |
5294 | cat conftest.$ac_ext >&5 | |
5295 | rm -rf conftest* | |
5296 | eval "ac_cv_func_$ac_func=no" | |
5297 | fi | |
5298 | rm -f conftest* | |
5299 | fi | |
5300 | ||
5301 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5302 | echo "$ac_t""yes" 1>&6 | |
5303 | cat >> confdefs.h <<EOF | |
5304 | #define CRAY_STACKSEG_END $ac_func | |
5305 | EOF | |
5306 | ||
5307 | break | |
5308 | else | |
5309 | echo "$ac_t""no" 1>&6 | |
5310 | fi | |
5311 | ||
5312 | done | |
5313 | fi | |
5314 | ||
5315 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
3d2f32dc | 5316 | echo "configure:5317: checking stack direction for C alloca" >&5 |
1bb94039 PS |
5317 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5319 | else | |
5320 | if test "$cross_compiling" = yes; then | |
5321 | ac_cv_c_stack_direction=0 | |
5322 | else | |
5323 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5324 | #line 5325 "configure" |
1bb94039 PS |
5325 | #include "confdefs.h" |
5326 | find_stack_direction () | |
5327 | { | |
5328 | static char *addr = 0; | |
5329 | auto char dummy; | |
5330 | if (addr == 0) | |
5331 | { | |
5332 | addr = &dummy; | |
5333 | return find_stack_direction (); | |
5334 | } | |
5335 | else | |
5336 | return (&dummy > addr) ? 1 : -1; | |
5337 | } | |
5338 | main () | |
5339 | { | |
5340 | exit (find_stack_direction() < 0); | |
5341 | } | |
5342 | EOF | |
3d2f32dc | 5343 | if { (eval echo configure:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1bb94039 PS |
5344 | then |
5345 | ac_cv_c_stack_direction=1 | |
5346 | else | |
5347 | echo "configure: failed program was:" >&5 | |
5348 | cat conftest.$ac_ext >&5 | |
5349 | rm -fr conftest* | |
5350 | ac_cv_c_stack_direction=-1 | |
5351 | fi | |
5352 | rm -fr conftest* | |
5353 | fi | |
5354 | ||
5355 | fi | |
5356 | ||
5357 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
5358 | cat >> confdefs.h <<EOF | |
5359 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5360 | EOF | |
5361 | ||
5362 | fi | |
5363 | ||
2487ccea | 5364 | for ac_func in \ |
f61d7e0a | 5365 | __libc_fork \ |
2487ccea AJ |
5366 | _lwp_create \ |
5367 | clone \ | |
b9010214 PS |
5368 | getnetbyaddr \ |
5369 | getnetbyname \ | |
2487ccea | 5370 | getpagesize \ |
b9010214 PS |
5371 | getprotobyname \ |
5372 | getprotobynumber \ | |
5373 | getservbyport \ | |
5374 | getsockopt \ | |
5375 | inet_network \ | |
2487ccea AJ |
5376 | memmove \ |
5377 | rfork \ | |
b9010214 | 5378 | select \ |
2487ccea | 5379 | sendmsg \ |
b9010214 | 5380 | settimeofday \ |
2487ccea | 5381 | sigaltstack \ |
b9010214 | 5382 | statfs \ |
3b96efc0 | 5383 | strcasecmp \ |
2487ccea | 5384 | strerror \ |
3b96efc0 | 5385 | strncasecmp \ |
2487ccea AJ |
5386 | tcgetattr \ |
5387 | timegm \ | |
5388 | usleep \ | |
5389 | vfscanf \ | |
5390 | wait4 \ | |
5391 | waitpid \ | |
5392 | ||
e2991ea7 AJ |
5393 | do |
5394 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3d2f32dc | 5395 | echo "configure:5396: checking for $ac_func" >&5 |
e2991ea7 AJ |
5396 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5398 | else | |
5399 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5400 | #line 5401 "configure" |
e2991ea7 AJ |
5401 | #include "confdefs.h" |
5402 | /* System header to define __stub macros and hopefully few prototypes, | |
5403 | which can conflict with char $ac_func(); below. */ | |
5404 | #include <assert.h> | |
5405 | /* Override any gcc2 internal prototype to avoid an error. */ | |
e2bfa4c7 AJ |
5406 | /* We use char because int might match the return type of a gcc2 |
5407 | builtin and then its argument prototype would still apply. */ | |
d7d4fdf8 | 5408 | char $ac_func(); |
e2991ea7 | 5409 | |
da0cfb36 | 5410 | int main() { |
e2991ea7 AJ |
5411 | |
5412 | /* The GNU C library defines this for functions which it implements | |
5413 | to always fail with ENOSYS. Some functions are actually named | |
5414 | something starting with __ and the normal name is an alias. */ | |
5415 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5416 | choke me | |
5417 | #else | |
5418 | $ac_func(); | |
5419 | #endif | |
5420 | ||
5421 | ; return 0; } | |
5422 | EOF | |
3d2f32dc | 5423 | if { (eval echo configure:5424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
e2991ea7 AJ |
5424 | rm -rf conftest* |
5425 | eval "ac_cv_func_$ac_func=yes" | |
5426 | else | |
da0cfb36 AJ |
5427 | echo "configure: failed program was:" >&5 |
5428 | cat conftest.$ac_ext >&5 | |
e2991ea7 AJ |
5429 | rm -rf conftest* |
5430 | eval "ac_cv_func_$ac_func=no" | |
5431 | fi | |
5432 | rm -f conftest* | |
e2991ea7 | 5433 | fi |
7e6ae4ba | 5434 | |
e2991ea7 AJ |
5435 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
5436 | echo "$ac_t""yes" 1>&6 | |
d7d4fdf8 | 5437 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
e2991ea7 AJ |
5438 | cat >> confdefs.h <<EOF |
5439 | #define $ac_tr_func 1 | |
5440 | EOF | |
5441 | ||
5442 | else | |
5443 | echo "$ac_t""no" 1>&6 | |
5444 | fi | |
5445 | done | |
5446 | ||
2487ccea AJ |
5447 | |
5448 | ||
5449 | for ac_hdr in \ | |
96336324 PS |
5450 | a.out.h \ |
5451 | a_out.h \ | |
5452 | arpa/inet.h \ | |
2487ccea | 5453 | arpa/nameser.h \ |
2487ccea AJ |
5454 | elf.h \ |
5455 | float.h \ | |
5456 | libio.h \ | |
01f78aaa | 5457 | libutil.h \ |
96336324 | 5458 | link.h \ |
2487ccea | 5459 | linux/cdrom.h \ |
028e9a17 | 5460 | linux/joystick.h \ |
2487ccea | 5461 | linux/ucdrom.h \ |
2487ccea AJ |
5462 | net/if.h \ |
5463 | netinet/in.h \ | |
96336324 | 5464 | netinet/tcp.h \ |
2d7be870 | 5465 | pty.h \ |
2487ccea | 5466 | resolv.h \ |
96336324 PS |
5467 | sched.h \ |
5468 | socket.h \ | |
2487ccea AJ |
5469 | strings.h \ |
5470 | sys/cdio.h \ | |
13277480 | 5471 | sys/errno.h \ |
2487ccea AJ |
5472 | sys/file.h \ |
5473 | sys/filio.h \ | |
96336324 | 5474 | sys/ipc.h \ |
2487ccea | 5475 | sys/lwp.h \ |
13277480 | 5476 | sys/mman.h \ |
2487ccea AJ |
5477 | sys/modem.h \ |
5478 | sys/mount.h \ | |
96336324 | 5479 | sys/msg.h \ |
2487ccea | 5480 | sys/param.h \ |
8a1bdb30 | 5481 | sys/reg.h \ |
13277480 | 5482 | sys/signal.h \ |
96336324 PS |
5483 | sys/shm.h \ |
5484 | sys/socket.h \ | |
2487ccea AJ |
5485 | sys/sockio.h \ |
5486 | sys/statfs.h \ | |
5487 | sys/strtio.h \ | |
5488 | sys/syscall.h \ | |
96336324 PS |
5489 | sys/wait.h \ |
5490 | sys/v86.h \ | |
5491 | sys/v86intr.h \ | |
2487ccea | 5492 | sys/vfs.h \ |
96336324 | 5493 | sys/vm86.h \ |
2487ccea | 5494 | syscall.h \ |
c97bb4c5 | 5495 | ucontext.h |
2487ccea | 5496 | |
02e90087 AJ |
5497 | do |
5498 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5499 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3d2f32dc | 5500 | echo "configure:5501: checking for $ac_hdr" >&5 |
02e90087 AJ |
5501 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5503 | else | |
5504 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5505 | #line 5506 "configure" |
02e90087 AJ |
5506 | #include "confdefs.h" |
5507 | #include <$ac_hdr> | |
5508 | EOF | |
5509 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3d2f32dc | 5510 | { (eval echo configure:5511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 5511 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
02e90087 AJ |
5512 | if test -z "$ac_err"; then |
5513 | rm -rf conftest* | |
5514 | eval "ac_cv_header_$ac_safe=yes" | |
5515 | else | |
5516 | echo "$ac_err" >&5 | |
5517 | echo "configure: failed program was:" >&5 | |
5518 | cat conftest.$ac_ext >&5 | |
5519 | rm -rf conftest* | |
5520 | eval "ac_cv_header_$ac_safe=no" | |
5521 | fi | |
5522 | rm -f conftest* | |
5523 | fi | |
5524 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5525 | echo "$ac_t""yes" 1>&6 | |
5526 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5527 | cat >> confdefs.h <<EOF | |
5528 | #define $ac_tr_hdr 1 | |
5529 | EOF | |
5530 | ||
5531 | else | |
5532 | echo "$ac_t""no" 1>&6 | |
5533 | fi | |
5534 | done | |
5535 | ||
e2991ea7 | 5536 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
3d2f32dc | 5537 | echo "configure:5538: checking whether stat file-mode macros are broken" >&5 |
e2991ea7 AJ |
5538 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
5539 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5540 | else | |
5541 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5542 | #line 5543 "configure" |
e2991ea7 AJ |
5543 | #include "confdefs.h" |
5544 | #include <sys/types.h> | |
5545 | #include <sys/stat.h> | |
5546 | ||
5547 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
5548 | # if S_ISBLK (S_IFDIR) | |
5549 | You lose. | |
5550 | # endif | |
5551 | #endif | |
5552 | ||
5553 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
5554 | # if S_ISBLK (S_IFCHR) | |
5555 | You lose. | |
5556 | # endif | |
5557 | #endif | |
5558 | ||
5559 | #if defined(S_ISLNK) && defined(S_IFREG) | |
5560 | # if S_ISLNK (S_IFREG) | |
5561 | You lose. | |
5562 | # endif | |
5563 | #endif | |
5564 | ||
5565 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
5566 | # if S_ISSOCK (S_IFREG) | |
5567 | You lose. | |
5568 | # endif | |
5569 | #endif | |
5570 | ||
5571 | EOF | |
5572 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5573 | egrep "You lose" >/dev/null 2>&1; then | |
5574 | rm -rf conftest* | |
5575 | ac_cv_header_stat_broken=yes | |
5576 | else | |
5577 | rm -rf conftest* | |
5578 | ac_cv_header_stat_broken=no | |
5579 | fi | |
5580 | rm -f conftest* | |
5581 | ||
5582 | fi | |
d7d4fdf8 | 5583 | |
e2991ea7 AJ |
5584 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
5585 | if test $ac_cv_header_stat_broken = yes; then | |
5586 | cat >> confdefs.h <<\EOF | |
5587 | #define STAT_MACROS_BROKEN 1 | |
5588 | EOF | |
5589 | ||
5590 | fi | |
5591 | ||
2487ccea AJ |
5592 | |
5593 | ||
e2991ea7 | 5594 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
3d2f32dc | 5595 | echo "configure:5596: checking for working const" >&5 |
e2991ea7 AJ |
5596 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
5597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5598 | else | |
5599 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5600 | #line 5601 "configure" |
e2991ea7 AJ |
5601 | #include "confdefs.h" |
5602 | ||
da0cfb36 | 5603 | int main() { |
e2991ea7 AJ |
5604 | |
5605 | /* Ultrix mips cc rejects this. */ | |
18ad24a7 | 5606 | typedef int charset[2]; const charset x = {0,0}; |
e2991ea7 AJ |
5607 | /* SunOS 4.1.1 cc rejects this. */ |
5608 | char const *const *ccp; | |
5609 | char **p; | |
5610 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5611 | struct point {int x, y;}; | |
d7d4fdf8 | 5612 | static struct point const zero = {0,0}; |
e2991ea7 AJ |
5613 | /* AIX XL C 1.02.0.0 rejects this. |
5614 | It does not let you subtract one const X* pointer from another in an arm | |
5615 | of an if-expression whose if-part is not a constant expression */ | |
5616 | const char *g = "string"; | |
5617 | ccp = &g + (g ? g-g : 0); | |
5618 | /* HPUX 7.0 cc rejects these. */ | |
5619 | ++ccp; | |
5620 | p = (char**) ccp; | |
5621 | ccp = (char const *const *) p; | |
5622 | { /* SCO 3.2v4 cc rejects this. */ | |
5623 | char *t; | |
5624 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5625 | ||
5626 | *t++ = 0; | |
5627 | } | |
5628 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5629 | int x[] = {25, 17}; | |
5630 | const int *foo = &x[0]; | |
5631 | ++foo; | |
5632 | } | |
5633 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5634 | typedef const int *iptr; | |
5635 | iptr p = 0; | |
5636 | ++p; | |
5637 | } | |
5638 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5639 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5640 | struct s { int j; const int *ap[3]; }; | |
5641 | struct s *b; b->j = 5; | |
5642 | } | |
5643 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5644 | const int foo = 10; | |
5645 | } | |
5646 | ||
5647 | ; return 0; } | |
5648 | EOF | |
3d2f32dc | 5649 | if { (eval echo configure:5650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
e2991ea7 AJ |
5650 | rm -rf conftest* |
5651 | ac_cv_c_const=yes | |
5652 | else | |
da0cfb36 AJ |
5653 | echo "configure: failed program was:" >&5 |
5654 | cat conftest.$ac_ext >&5 | |
e2991ea7 AJ |
5655 | rm -rf conftest* |
5656 | ac_cv_c_const=no | |
5657 | fi | |
5658 | rm -f conftest* | |
e2991ea7 | 5659 | fi |
d7d4fdf8 | 5660 | |
e2991ea7 AJ |
5661 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
5662 | if test $ac_cv_c_const = no; then | |
5663 | cat >> confdefs.h <<\EOF | |
5664 | #define const | |
5665 | EOF | |
5666 | ||
5667 | fi | |
5668 | ||
1a8bbd7c | 5669 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
3d2f32dc | 5670 | echo "configure:5671: checking for inline" >&5 |
1a8bbd7c MM |
5671 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
5672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5673 | else | |
5674 | ac_cv_c_inline=no | |
5675 | for ac_kw in inline __inline__ __inline; do | |
5676 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5677 | #line 5678 "configure" |
1a8bbd7c MM |
5678 | #include "confdefs.h" |
5679 | ||
5680 | int main() { | |
18ad24a7 | 5681 | } int $ac_kw foo() { |
1a8bbd7c MM |
5682 | ; return 0; } |
5683 | EOF | |
3d2f32dc | 5684 | if { (eval echo configure:5685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1a8bbd7c MM |
5685 | rm -rf conftest* |
5686 | ac_cv_c_inline=$ac_kw; break | |
5687 | else | |
5688 | echo "configure: failed program was:" >&5 | |
5689 | cat conftest.$ac_ext >&5 | |
5690 | fi | |
5691 | rm -f conftest* | |
5692 | done | |
5693 | ||
5694 | fi | |
5695 | ||
5696 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
5697 | case "$ac_cv_c_inline" in | |
5698 | inline | yes) ;; | |
5699 | no) cat >> confdefs.h <<\EOF | |
5700 | #define inline | |
5701 | EOF | |
5702 | ;; | |
5703 | *) cat >> confdefs.h <<EOF | |
5704 | #define inline $ac_cv_c_inline | |
5705 | EOF | |
5706 | ;; | |
5707 | esac | |
5708 | ||
e2991ea7 | 5709 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
3d2f32dc | 5710 | echo "configure:5711: checking for ANSI C header files" >&5 |
e2991ea7 AJ |
5711 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
5712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5713 | else | |
5714 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5715 | #line 5716 "configure" |
e2991ea7 AJ |
5716 | #include "confdefs.h" |
5717 | #include <stdlib.h> | |
5718 | #include <stdarg.h> | |
5719 | #include <string.h> | |
5720 | #include <float.h> | |
5721 | EOF | |
b817f4fb | 5722 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3d2f32dc | 5723 | { (eval echo configure:5724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
18ad24a7 | 5724 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
e2991ea7 AJ |
5725 | if test -z "$ac_err"; then |
5726 | rm -rf conftest* | |
5727 | ac_cv_header_stdc=yes | |
5728 | else | |
5729 | echo "$ac_err" >&5 | |
da0cfb36 AJ |
5730 | echo "configure: failed program was:" >&5 |
5731 | cat conftest.$ac_ext >&5 | |
e2991ea7 AJ |
5732 | rm -rf conftest* |
5733 | ac_cv_header_stdc=no | |
5734 | fi | |
5735 | rm -f conftest* | |
5736 | ||
5737 | if test $ac_cv_header_stdc = yes; then | |
5738 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5739 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5740 | #line 5741 "configure" |
e2991ea7 AJ |
5741 | #include "confdefs.h" |
5742 | #include <string.h> | |
5743 | EOF | |
5744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5745 | egrep "memchr" >/dev/null 2>&1; then | |
5746 | : | |
5747 | else | |
5748 | rm -rf conftest* | |
5749 | ac_cv_header_stdc=no | |
5750 | fi | |
5751 | rm -f conftest* | |
5752 | ||
5753 | fi | |
5754 | ||
5755 | if test $ac_cv_header_stdc = yes; then | |
5756 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5757 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5758 | #line 5759 "configure" |
e2991ea7 AJ |
5759 | #include "confdefs.h" |
5760 | #include <stdlib.h> | |
5761 | EOF | |
5762 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5763 | egrep "free" >/dev/null 2>&1; then | |
5764 | : | |
5765 | else | |
5766 | rm -rf conftest* | |
5767 | ac_cv_header_stdc=no | |
5768 | fi | |
5769 | rm -f conftest* | |
5770 | ||
5771 | fi | |
5772 | ||
5773 | if test $ac_cv_header_stdc = yes; then | |
5774 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5775 | if test "$cross_compiling" = yes; then | |
d7d4fdf8 | 5776 | : |
e2991ea7 | 5777 | else |
da0cfb36 | 5778 | cat > conftest.$ac_ext <<EOF |
3d2f32dc | 5779 | #line 5780 "configure" |
e2991ea7 AJ |
5780 | #include "confdefs.h" |
5781 | #include <ctype.h> | |
5782 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5783 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5784 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5785 | int main () { int i; for (i = 0; i < 256; i++) | |
5786 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
5787 | exit (0); } | |
5788 | ||
5789 | EOF | |
3d2f32dc | 5790 | if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7e6ae4ba | 5791 | then |
e2991ea7 AJ |
5792 | : |
5793 | else | |
da0cfb36 AJ |
5794 | echo "configure: failed program was:" >&5 |
5795 | cat conftest.$ac_ext >&5 | |
5796 | rm -fr conftest* | |
e2991ea7 AJ |
5797 | ac_cv_header_stdc=no |
5798 | fi | |
e2991ea7 | 5799 | rm -fr conftest* |
da0cfb36 AJ |
5800 | fi |
5801 | ||
e2991ea7 AJ |
5802 | fi |
5803 | fi | |
d7d4fdf8 | 5804 | |
e2991ea7 AJ |
5805 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
5806 | if test $ac_cv_header_stdc = yes; then | |
5807 | cat >> confdefs.h <<\EOF | |
5808 | #define STDC_HEADERS 1 | |
5809 | EOF | |
5810 | ||
5811 | fi | |
5812 | ||
5813 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
3d2f32dc | 5814 | echo "configure:5815: checking for size_t" >&5 |
e2991ea7 AJ |
5815 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
5816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5817 | else | |
5818 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5819 | #line 5820 "configure" |
e2991ea7 AJ |
5820 | #include "confdefs.h" |
5821 | #include <sys/types.h> | |
5822 | #if STDC_HEADERS | |
5823 | #include <stdlib.h> | |
da0cfb36 | 5824 | #include <stddef.h> |
e2991ea7 AJ |
5825 | #endif |
5826 | EOF | |
5827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
18ad24a7 | 5828 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
e2991ea7 AJ |
5829 | rm -rf conftest* |
5830 | ac_cv_type_size_t=yes | |
5831 | else | |
5832 | rm -rf conftest* | |
5833 | ac_cv_type_size_t=no | |
5834 | fi | |
5835 | rm -f conftest* | |
5836 | ||
5837 | fi | |
5838 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
5839 | if test $ac_cv_type_size_t = no; then | |
5840 | cat >> confdefs.h <<\EOF | |
5841 | #define size_t unsigned | |
5842 | EOF | |
5843 | ||
5844 | fi | |
5845 | ||
c7c217b3 | 5846 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
3d2f32dc | 5847 | echo "configure:5848: checking size of long long" >&5 |
c7c217b3 AJ |
5848 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
5849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5850 | else | |
5851 | if test "$cross_compiling" = yes; then | |
5852 | ac_cv_sizeof_long_long=0 | |
5853 | else | |
5854 | cat > conftest.$ac_ext <<EOF | |
3d2f32dc | 5855 | #line 5856 "configure" |
c7c217b3 AJ |
5856 | #include "confdefs.h" |
5857 | #include <stdio.h> | |
5858 | main() | |
5859 | { | |
5860 | FILE *f=fopen("conftestval", "w"); | |
5861 | if (!f) exit(1); | |
5862 | fprintf(f, "%d\n", sizeof(long long)); | |
5863 | exit(0); | |
5864 | } | |
5865 | EOF | |
3d2f32dc | 5866 | if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
c7c217b3 AJ |
5867 | then |
5868 | ac_cv_sizeof_long_long=`cat conftestval` | |
5869 | else | |
5870 | echo "configure: failed program was:" >&5 | |
5871 | cat conftest.$ac_ext >&5 | |
5872 | rm -fr conftest* | |
5873 | ac_cv_sizeof_long_long=0 | |
5874 | fi | |
5875 | rm -fr conftest* | |
5876 | fi | |
5877 | ||
5878 | fi | |
5879 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
5880 | cat >> confdefs.h <<EOF | |
5881 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5882 | EOF | |
5883 | ||
5884 | ||
5885 | ||
ff7a61f8 RK |
5886 | |
5887 | echo $ac_n "checking "whether we can use re-entrant gethostbyname_r Linux style"""... $ac_c" 1>&6 | |
5888 | echo "configure:5889: checking "whether we can use re-entrant gethostbyname_r Linux style"" >&5 | |
5889 | if eval "test \"`echo '$''{'wine_cv_linux_gethostbyname_r_6'+set}'`\" = set"; then | |
5890 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5891 | else | |
5892 | cat > conftest.$ac_ext <<EOF | |
5893 | #line 5894 "configure" | |
5894 | #include "confdefs.h" | |
5895 | ||
5896 | #include <netdb.h> | |
5897 | ||
5898 | int main() { | |
5899 | ||
5900 | char *name=NULL; | |
5901 | struct hostent he; | |
5902 | struct hostent *result; | |
5903 | char *buf=NULL; | |
5904 | int bufsize=0; | |
5905 | int res,errnr; | |
5906 | char *addr=NULL; | |
5907 | int addrlen=0; | |
5908 | int addrtype=0; | |
5909 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); | |
5910 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); | |
5911 | ||
5912 | ; return 0; } | |
5913 | EOF | |
5914 | if { (eval echo configure:5915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5915 | rm -rf conftest* | |
5916 | wine_cv_linux_gethostbyname_r_6=yes | |
5917 | else | |
5918 | echo "configure: failed program was:" >&5 | |
5919 | cat conftest.$ac_ext >&5 | |
5920 | rm -rf conftest* | |
5921 | wine_cv_linux_gethostbyname_r_6=no | |
5922 | ||
5923 | fi | |
5924 | rm -f conftest* | |
5925 | ||
5926 | fi | |
5927 | ||
5928 | echo "$ac_t""$wine_cv_linux_gethostbyname_r_6" 1>&6 | |
5929 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" | |
5930 | then | |
5931 | cat >> confdefs.h <<\EOF | |
5932 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 | |
5933 | EOF | |
5934 | ||
5935 | fi | |
5936 | ||
028e9a17 MM |
5937 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
5938 | then | |
5939 | echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6 | |
ff7a61f8 | 5940 | echo "configure:5941: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5 |
028e9a17 MM |
5941 | if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then |
5942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5943 | else | |
5944 | cat > conftest.$ac_ext <<EOF | |
ff7a61f8 | 5945 | #line 5946 "configure" |
028e9a17 MM |
5946 | #include "confdefs.h" |
5947 | ||
5948 | #include <sys/ioctl.h> | |
5949 | #include <linux/joystick.h> | |
5950 | ||
5951 | struct js_event blub; | |
605a9c39 MM |
5952 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
5953 | #error "no 2.2 header" | |
5954 | #endif | |
028e9a17 MM |
5955 | |
5956 | int main() { | |
5957 | /*empty*/ | |
5958 | ; return 0; } | |
5959 | EOF | |
ff7a61f8 | 5960 | if { (eval echo configure:5961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
028e9a17 MM |
5961 | rm -rf conftest* |
5962 | wine_cv_linux_joystick_22_api=yes | |
5963 | else | |
5964 | echo "configure: failed program was:" >&5 | |
5965 | cat conftest.$ac_ext >&5 | |
5966 | rm -rf conftest* | |
5967 | wine_cv_linux_joystick_22_api=no | |
5968 | fi | |
5969 | rm -f conftest* | |
5970 | ||
5971 | fi | |
5972 | ||
5973 | echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6 | |
87d224ac | 5974 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
028e9a17 MM |
5975 | then |
5976 | cat >> confdefs.h <<\EOF | |
5977 | #define HAVE_LINUX_22_JOYSTICK_API 1 | |
5978 | EOF | |
5979 | ||
5980 | fi | |
5981 | fi | |
5982 | ||
dadf78ff AJ |
5983 | |
5984 | if test "$ac_cv_header_sys_vfs_h" = "yes" | |
5985 | then | |
5986 | echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6 | |
ff7a61f8 | 5987 | echo "configure:5988: checking "whether sys/vfs.h defines statfs"" >&5 |
dadf78ff | 5988 | if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then |
c7c217b3 AJ |
5989 | echo $ac_n "(cached) $ac_c" 1>&6 |
5990 | else | |
dadf78ff | 5991 | cat > conftest.$ac_ext <<EOF |
ff7a61f8 | 5992 | #line 5993 "configure" |
c7c217b3 AJ |
5993 | #include "confdefs.h" |
5994 | ||
46ea8b3f | 5995 | #include <sys/types.h> |
c7c217b3 AJ |
5996 | #ifdef HAVE_SYS_PARAM_H |
5997 | # include <sys/param.h> | |
5998 | #endif | |
dadf78ff | 5999 | #include <sys/vfs.h> |
c7c217b3 AJ |
6000 | |
6001 | int main() { | |
6002 | ||
6003 | struct statfs stfs; | |
6004 | ||
dadf78ff | 6005 | memset(&stfs,0,sizeof(stfs)); |
c7c217b3 AJ |
6006 | |
6007 | ; return 0; } | |
6008 | EOF | |
ff7a61f8 | 6009 | if { (eval echo configure:6010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c7c217b3 | 6010 | rm -rf conftest* |
dadf78ff | 6011 | wine_cv_sys_vfs_has_statfs=yes |
c7c217b3 AJ |
6012 | else |
6013 | echo "configure: failed program was:" >&5 | |
6014 | cat conftest.$ac_ext >&5 | |
6015 | rm -rf conftest* | |
dadf78ff | 6016 | wine_cv_sys_vfs_has_statfs=no |
c7c217b3 AJ |
6017 | |
6018 | fi | |
6019 | rm -f conftest* | |
dadf78ff | 6020 | |
c7c217b3 AJ |
6021 | fi |
6022 | ||
dadf78ff AJ |
6023 | echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6 |
6024 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" | |
6025 | then | |
6026 | cat >> confdefs.h <<\EOF | |
6027 | #define STATFS_DEFINED_BY_SYS_VFS 1 | |
6028 | EOF | |
6029 | ||
6030 | fi | |
6031 | fi | |
6032 | ||
6033 | if test "$ac_cv_header_sys_statfs_h" = "yes" | |
c7c217b3 | 6034 | then |
dadf78ff | 6035 | echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6 |
ff7a61f8 | 6036 | echo "configure:6037: checking "whether sys/statfs.h defines statfs"" >&5 |
dadf78ff AJ |
6037 | if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then |
6038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6039 | else | |
6040 | cat > conftest.$ac_ext <<EOF | |
ff7a61f8 | 6041 | #line 6042 "configure" |
dadf78ff AJ |
6042 | #include "confdefs.h" |
6043 | ||
6044 | #include <sys/types.h> | |
6045 | #ifdef HAVE_SYS_PARAM_H | |
6046 | # include <sys/param.h> | |
6047 | #endif | |
6048 | #include <sys/statfs.h> | |
6049 | ||
6050 | int main() { | |
6051 | ||
6052 | struct statfs stfs; | |
6053 | ||
6054 | ; return 0; } | |
6055 | EOF | |
ff7a61f8 | 6056 | if { (eval echo configure:6057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
dadf78ff AJ |
6057 | rm -rf conftest* |
6058 | wine_cv_sys_statfs_has_statfs=yes | |
6059 | else | |
6060 | echo "configure: failed program was:" >&5 | |
6061 | cat conftest.$ac_ext >&5 | |
6062 | rm -rf conftest* | |
6063 | wine_cv_sys_statfs_has_statfs=no | |
6064 | ||
6065 | fi | |
6066 | rm -f conftest* | |
6067 | ||
6068 | fi | |
6069 | ||
6070 | echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6 | |
6071 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" | |
6072 | then | |
6073 | cat >> confdefs.h <<\EOF | |
6074 | #define STATFS_DEFINED_BY_SYS_STATFS 1 | |
6075 | EOF | |
6076 | ||
6077 | fi | |
6078 | fi | |
6079 | ||
6080 | if test "$ac_cv_header_sys_mount_h" = "yes" | |
6081 | then | |
6082 | echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6 | |
ff7a61f8 | 6083 | echo "configure:6084: checking "whether sys/mount.h defines statfs"" >&5 |
dadf78ff AJ |
6084 | if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then |
6085 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6086 | else | |
6087 | cat > conftest.$ac_ext <<EOF | |
ff7a61f8 | 6088 | #line 6089 "configure" |
dadf78ff AJ |
6089 | #include "confdefs.h" |
6090 | ||
6091 | #include <sys/types.h> | |
6092 | #ifdef HAVE_SYS_PARAM_H | |
6093 | # include <sys/param.h> | |
6094 | #endif | |
6095 | #include <sys/mount.h> | |
6096 | ||
6097 | int main() { | |
6098 | ||
6099 | struct statfs stfs; | |
6100 | ||
6101 | ; return 0; } | |
6102 | EOF | |
ff7a61f8 | 6103 | if { (eval echo configure:6104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
dadf78ff AJ |
6104 | rm -rf conftest* |
6105 | wine_cv_sys_mount_has_statfs=yes | |
6106 | else | |
6107 | echo "configure: failed program was:" >&5 | |
6108 | cat conftest.$ac_ext >&5 | |
6109 | rm -rf conftest* | |
6110 | wine_cv_sys_mount_has_statfs=no | |
6111 | ||
6112 | fi | |
6113 | rm -f conftest* | |
6114 | ||
6115 | fi | |
6116 | ||
6117 | echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6 | |
6118 | if test "$wine_cv_sys_mount_has_statfs" = "yes" | |
6119 | then | |
6120 | cat >> confdefs.h <<\EOF | |
6121 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 | |
c7c217b3 AJ |
6122 | EOF |
6123 | ||
dadf78ff | 6124 | fi |
c7c217b3 AJ |
6125 | fi |
6126 | ||
dadf78ff | 6127 | |
c7c217b3 | 6128 | echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6 |
ff7a61f8 | 6129 | echo "configure:6130: checking "for statfs.f_bfree"" >&5 |
c7c217b3 AJ |
6130 | if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then |
6131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6132 | else | |
6133 | if test "x$statfs_bfree" = "xno" | |
6134 | then | |
6135 | wine_cv_statfs_bfree=no | |
6136 | else | |
6137 | cat > conftest.$ac_ext <<EOF | |
ff7a61f8 | 6138 | #line 6139 "configure" |
c7c217b3 AJ |
6139 | #include "confdefs.h" |
6140 | ||
46ea8b3f | 6141 | #include <sys/types.h> |
c7c217b3 AJ |
6142 | #ifdef HAVE_SYS_PARAM_H |
6143 | # include <sys/param.h> | |
6144 | #endif | |
dadf78ff | 6145 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
c7c217b3 | 6146 | # include <sys/mount.h> |
dadf78ff AJ |
6147 | #else |
6148 | # ifdef STATFS_DEFINED_BY_SYS_VFS | |
6149 | # include <sys/vfs.h> | |
6150 | # else | |
6151 | # ifdef STATFS_DEFINED_BY_SYS_STATFS | |
6152 | # include <sys/statfs.h> | |
6153 | # endif | |
6154 | # endif | |
c7c217b3 AJ |
6155 | #endif |
6156 | ||
6157 | int main() { | |
6158 | ||
6159 | struct statfs stfs; | |
6160 | ||
6161 | stfs.f_bfree++; | |
6162 | ||
6163 | ; return 0; } | |
6164 | EOF | |
ff7a61f8 | 6165 | if { (eval echo configure:6166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c7c217b3 AJ |
6166 | rm -rf conftest* |
6167 | wine_cv_statfs_bfree=yes | |
6168 | else | |
6169 | echo "configure: failed program was:" >&5 | |
6170 | cat conftest.$ac_ext >&5 | |
6171 | rm -rf conftest* | |
6172 | wine_cv_statfs_bfree=no | |
6173 | ||
6174 | fi | |
6175 | rm -f conftest* | |
6176 | fi | |
6177 | fi | |
6178 | ||
6179 | echo "$ac_t""$wine_cv_statfs_bfree" 1>&6 | |
6180 | if test "$wine_cv_statfs_bfree" = "yes" | |
6181 | then | |
6182 | cat >> confdefs.h <<\EOF | |
6183 | #define STATFS_HAS_BFREE 1 | |
6184 | EOF | |
6185 | ||
6186 | fi | |
6187 | ||
dadf78ff | 6188 | echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6 |
ff7a61f8 | 6189 | echo "configure:6190: checking "for statfs.f_bavail"" >&5 |
dadf78ff AJ |
6190 | if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then |
6191 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6192 | else | |
6193 | if test "x$statfs_bavail" = "xno" | |
6194 | then | |
6195 | wine_cv_statfs_bavail=no | |
6196 | else | |
6197 | cat > conftest.$ac_ext <<EOF | |
ff7a61f8 | 6198 | #line 6199 "configure" |
dadf78ff AJ |
6199 | #include "confdefs.h" |
6200 | ||
6201 | #include <sys/types.h> | |
6202 | #ifdef HAVE_SYS_PARAM_H | |
6203 | # include <sys/param.h> | |
6204 | #endif | |
6205 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT | |
6206 | # include <sys/mount.h> | |
6207 | #else | |
6208 | # ifdef STATFS_DEFINED_BY_SYS_VFS | |
6209 | # include <sys/vfs.h> | |
6210 | # else | |
6211 | # ifdef STATFS_DEFINED_BY_SYS_STATFS | |
6212 | # include <sys/statfs.h> | |
6213 | # endif | |
6214 | # endif | |
6215 | #endif | |
6216 | ||
6217 | int main() { | |
6218 | ||
6219 | struct statfs stfs; | |
6220 | ||
6221 | stfs.f_bavail++; | |
6222 | ||
6223 | ; return 0; } | |
6224 | EOF | |
ff7a61f8 | 6225 | if { (eval echo configure:6226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
dadf78ff AJ |
6226 | rm -rf conftest* |
6227 | wine_cv_statfs_bavail=yes | |
6228 | else | |
6229 | echo "configure: failed program was:" >&5 | |
6230 | cat conftest.$ac_ext >&5 | |
6231 | rm -rf conftest* | |
6232 | wine_cv_statfs_bavail=no | |
6233 | ||
6234 | fi | |
6235 | rm -f conftest* | |
6236 | fi | |
6237 | fi | |
6238 | ||
6239 | echo "$ac_t""$wine_cv_statfs_bavail" 1>&6 | |
6240 | if test "$wine_cv_statfs_bavail" = "yes" | |
6241 | then | |
6242 | cat >> confdefs.h <<\EOF | |
6243 | #define STATFS_HAS_BAVAIL 1 | |
6244 | EOF | |
6245 | ||
6246 | fi | |
6247 | ||
6248 | ||
829fe323 | 6249 | echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6 |
ff7a61f8 | 6250 | echo "configure:6251: checking "for msg_accrights in struct msghdr"" >&5 |
829fe323 AJ |
6251 | if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then |
6252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6253 | else | |
6254 | cat > conftest.$ac_ext <<EOF | |
ff7a61f8 | 6255 | #line 6256 "configure" |
829fe323 AJ |
6256 | #include "confdefs.h" |
6257 | #include <sys/types.h> | |
6258 | #include <sys/socket.h> | |
6259 | int main() { | |
6260 | struct msghdr hdr; hdr.msg_accrights=0 | |
6261 | ; return 0; } | |
6262 | EOF | |
ff7a61f8 | 6263 | if { (eval echo configure:6264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
829fe323 AJ |
6264 | rm -rf conftest* |
6265 | ac_cv_c_msg_accrights="yes" | |
6266 | else | |
6267 | echo "configure: failed program was:" >&5 | |
6268 | cat conftest.$ac_ext >&5 | |
6269 | rm -rf conftest* | |
6270 | ac_cv_c_msg_accrights="no" | |
6271 | fi | |
6272 | rm -f conftest* | |
6273 | fi | |
6274 | ||
6275 | echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6 | |
6276 | if test "$ac_cv_c_msg_accrights" = "yes" | |
6277 | then | |
6278 | cat >> confdefs.h <<\EOF | |
6279 | #define HAVE_MSGHDR_ACCRIGHTS 1 | |
6280 | EOF | |
6281 | ||
6282 | fi | |
6283 | ||
51d46ba9 | 6284 | |
2d33ab91 | 6285 | echo $ac_n "checking "for sun_len in struct sockaddr_un"""... $ac_c" 1>&6 |
ff7a61f8 | 6286 | echo "configure:6287: checking "for sun_len in struct sockaddr_un"" >&5 |
2d33ab91 JL |
6287 | if eval "test \"`echo '$''{'ac_cv_c_sun_len'+set}'`\" = set"; then |
6288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6289 | else | |
6290 | cat > conftest.$ac_ext <<EOF | |
ff7a61f8 | 6291 | #line 6292 "configure" |
2d33ab91 JL |
6292 | #include "confdefs.h" |
6293 | #include <sys/types.h> | |
6294 | #include <sys/socket.h> | |
6295 | #include <sys/un.h> | |
6296 | int main() { | |
6297 | static struct sockaddr_un addr; addr.sun_len = 1 | |
6298 | ; return 0; } | |
6299 | EOF | |
ff7a61f8 | 6300 | if { (eval echo configure:6301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2d33ab91 JL |
6301 | rm -rf conftest* |
6302 | ac_cv_c_sun_len="yes" | |
6303 | else | |
6304 | echo "configure: failed program was:" >&5 | |
6305 | cat conftest.$ac_ext >&5 | |
6306 | rm -rf conftest* | |
6307 | ac_cv_c_sun_len="no" | |
6308 | fi | |
6309 | rm -f conftest* | |
6310 | fi | |
6311 | ||
6312 | echo "$ac_t""$ac_cv_c_sun_len" 1>&6 | |
6313 | if test "$ac_cv_c_sun_len" = "yes" | |
6314 | then | |
6315 | cat >> confdefs.h <<\EOF | |
6316 | #define HAVE_SOCKADDR_SUN_LEN 1 | |
6317 | EOF | |
6318 | ||
6319 | fi | |
6320 | ||
6321 | ||
51d46ba9 | 6322 | echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6 |
ff7a61f8 | 6323 | echo "configure:6324: checking "whether we need to define __i386__"" >&5 |
51d46ba9 AJ |
6324 | if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then |
6325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6326 | else | |
6327 | cat > conftest.$ac_ext <<EOF | |
ff7a61f8 | 6328 | #line 6329 "configure" |
51d46ba9 AJ |
6329 | #include "confdefs.h" |
6330 | #if (defined(i386) || defined(__i386)) && !defined(__i386__) | |
6331 | yes | |
6332 | #endif | |
6333 | EOF | |
6334 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6335 | egrep "yes" >/dev/null 2>&1; then | |
6336 | rm -rf conftest* | |
6337 | ac_cv_cpp_def_i386="yes" | |
6338 | else | |
6339 | rm -rf conftest* | |
6340 | ac_cv_cpp_def_i386="no" | |
6341 | fi | |
6342 | rm -f conftest* | |
6343 | ||
6344 | fi | |
6345 | ||
6346 | echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6 | |
6347 | if test "$ac_cv_cpp_def_i386" = "yes" | |
6348 | then | |
6349 | CFLAGS="$CFLAGS -D__i386__" | |
a9be64e2 | 6350 | LINTFLAGS="$LINTFLAGS -D__i386__" |
51d46ba9 AJ |
6351 | fi |
6352 | ||
a7f5cb5b MM |
6353 | GCC_NO_BUILTIN="" |
6354 | if test "$GCC" = "yes" | |
6355 | then | |
6356 | GCC_NO_BUILTIN="-fno-builtin" | |
6357 | fi | |
6358 | ||
6359 | ||
829fe323 | 6360 | |
87a2f8df AJ |
6361 | |
6362 | ||
d7d4fdf8 | 6363 | MAKE_RULES=Make.rules |
e2991ea7 AJ |
6364 | |
6365 | ||
d0edc5fe AJ |
6366 | MAKE_DLL_RULES=dlls/Makedll.rules |
6367 | ||
6368 | ||
e2991ea7 AJ |
6369 | trap '' 1 2 15 |
6370 | cat > confcache <<\EOF | |
6371 | # This file is a shell script that caches the results of configure | |
6372 | # tests run on this system so they can be shared between configure | |
6373 | # scripts and configure runs. It is not useful on other systems. | |
6374 | # If it contains results you don't want to keep, you may remove or edit it. | |
6375 | # | |
6376 | # By default, configure uses ./config.cache as the cache file, | |
6377 | # creating it if it does not exist already. You can give configure | |
6378 | # the --cache-file=FILE option to use a different cache file; that is | |
6379 | # what configure does when it calls configure scripts in | |
6380 | # subdirectories, so they share the cache. | |
6381 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6382 | # config.status only pays attention to the cache file if you give it the | |
6383 | # --recheck option to rerun configure. | |
6384 | # | |
6385 | EOF | |
7e6ae4ba AJ |
6386 | # The following way of writing the cache mishandles newlines in values, |
6387 | # but we know of no workaround that is simple, portable, and efficient. | |
6388 | # So, don't put newlines in cache variables' values. | |
e2991ea7 AJ |
6389 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6390 | # and sets the high bit in the cache file unless we assign to the vars. | |
6391 | (set) 2>&1 | | |
18ad24a7 | 6392 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
7e6ae4ba AJ |
6393 | *ac_space=\ *) |
6394 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6395 | # turns \\\\ into \\, and sed turns \\ into \). | |
6396 | sed -n \ | |
6397 | -e "s/'/'\\\\''/g" \ | |
6398 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6399 | ;; | |
6400 | *) | |
6401 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6402 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6403 | ;; | |
6404 | esac >> confcache | |
e2991ea7 AJ |
6405 | if cmp -s $cache_file confcache; then |
6406 | : | |
6407 | else | |
6408 | if test -w $cache_file; then | |
6409 | echo "updating cache $cache_file" | |
6410 | cat confcache > $cache_file | |
6411 | else | |
6412 | echo "not updating unwritable cache $cache_file" | |
6413 | fi | |
6414 | fi | |
6415 | rm -f confcache | |
6416 | ||
6417 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
6418 | ||
6419 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6420 | # Let make expand exec_prefix. | |
6421 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6422 | ||
6423 | # Any assignment to VPATH causes Sun make to only execute | |
6424 | # the first set of double-colon rules, so remove it if not needed. | |
6425 | # If there is a colon in the path, we need to keep it. | |
6426 | if test "x$srcdir" = x.; then | |
6427 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
6428 | fi | |
6429 | ||
6430 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
6431 | ||
18f92e76 | 6432 | DEFS=-DHAVE_CONFIG_H |
e2991ea7 AJ |
6433 | |
6434 | # Without the "./", some shells look in PATH for config.status. | |
6435 | : ${CONFIG_STATUS=./config.status} | |
6436 | ||
6437 | echo creating $CONFIG_STATUS | |
6438 | rm -f $CONFIG_STATUS | |
6439 | cat > $CONFIG_STATUS <<EOF | |
6440 | #! /bin/sh | |
6441 | # Generated automatically by configure. | |
6442 | # Run this file to recreate the current configuration. | |
6443 | # This directory was configured as follows, | |
6444 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
6445 | # | |
6446 | # $0 $ac_configure_args | |
6447 | # | |
6448 | # Compiler output produced by configure, useful for debugging | |
6449 | # configure, is in ./config.log if it exists. | |
6450 | ||
6451 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
6452 | for ac_option | |
6453 | do | |
6454 | case "\$ac_option" in | |
6455 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6456 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
6457 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
6458 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18ad24a7 | 6459 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
e2991ea7 AJ |
6460 | exit 0 ;; |
6461 | -help | --help | --hel | --he | --h) | |
6462 | echo "\$ac_cs_usage"; exit 0 ;; | |
6463 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
6464 | esac | |
6465 | done | |
6466 | ||
6467 | ac_given_srcdir=$srcdir | |
d7d4fdf8 AJ |
6468 | ac_given_INSTALL="$INSTALL" |
6469 | ||
6470 | trap 'rm -fr `echo " | |
6471 | Make.rules | |
6472 | Makefile | |
791cd6a3 | 6473 | console/Makefile |
d7d4fdf8 AJ |
6474 | controls/Makefile |
6475 | debugger/Makefile | |
d0edc5fe | 6476 | dlls/Makedll.rules |
85ed45e3 | 6477 | dlls/Makefile |
f7b0de3f | 6478 | dlls/advapi32/Makefile |
b3d1a22a | 6479 | dlls/avifil32/Makefile |
a0d77315 | 6480 | dlls/comctl32/Makefile |
c912749b | 6481 | dlls/commdlg/Makefile |
6c6da674 UW |
6482 | dlls/crtdll/Makefile |
6483 | dlls/dciman32/Makefile | |
ddce652c AJ |
6484 | dlls/ddraw/Makefile |
6485 | dlls/dinput/Makefile | |
c607532a | 6486 | dlls/dplay/Makefile |
22b861c1 | 6487 | dlls/dplayx/Makefile |
68944c20 | 6488 | dlls/dsound/Makefile |
1dac57f0 | 6489 | dlls/gdi/Makefile |
edf3e434 | 6490 | dlls/icmp/Makefile |
8295c862 | 6491 | dlls/imagehlp/Makefile |
6c6da674 | 6492 | dlls/imm32/Makefile |
36b5b6b9 | 6493 | dlls/kernel/Makefile |
6c6da674 | 6494 | dlls/lzexpand/Makefile |
bb1984e6 | 6495 | dlls/mpr/Makefile |
8295c862 | 6496 | dlls/msacm/Makefile |
6c6da674 UW |
6497 | dlls/msnet32/Makefile |
6498 | dlls/msvideo/Makefile | |
51505b12 | 6499 | dlls/ntdll/Makefile |
8551f8ca | 6500 | dlls/odbc32/Makefile |
2a722f49 UW |
6501 | dlls/ole32/Makefile |
6502 | dlls/oleaut32/Makefile | |
6503 | dlls/olecli/Makefile | |
6504 | dlls/oledlg/Makefile | |
58c71d4f | 6505 | dlls/olepro32/Makefile |
2a722f49 | 6506 | dlls/olesvr/Makefile |
bedf40b5 | 6507 | dlls/opengl32/Makefile |
d30dfd24 | 6508 | dlls/psapi/Makefile |
30ef8778 | 6509 | dlls/rasapi32/Makefile |
e75f9fb8 | 6510 | dlls/richedit/Makefile |
10b1b23d | 6511 | dlls/rpcrt4/Makefile |
dc2461e8 | 6512 | dlls/serialui/Makefile |
df5e5792 | 6513 | dlls/setupapi/Makefile |
85ed45e3 | 6514 | dlls/shell32/Makefile |
c607532a AJ |
6515 | dlls/shfolder/Makefile |
6516 | dlls/shlwapi/Makefile | |
5aa96c19 | 6517 | dlls/tapi32/Makefile |
1dac57f0 | 6518 | dlls/ttydrv/Makefile |
819fa8ce | 6519 | dlls/urlmon/Makefile |
1dac57f0 | 6520 | dlls/user/Makefile |
d43a46a4 | 6521 | dlls/version/Makefile |
6c6da674 | 6522 | dlls/win32s/Makefile |
d30dfd24 | 6523 | dlls/winaspi/Makefile |
84bde6a4 | 6524 | dlls/wineps/Makefile |
819fa8ce | 6525 | dlls/wininet/Makefile |
6fea55f1 | 6526 | dlls/winmm/Makefile |
2a3b0a1d | 6527 | dlls/winmm/joystick/Makefile |
68944c20 EP |
6528 | dlls/winmm/mcianim/Makefile |
6529 | dlls/winmm/mciavi/Makefile | |
6530 | dlls/winmm/mcicda/Makefile | |
6531 | dlls/winmm/mciseq/Makefile | |
6532 | dlls/winmm/mciwave/Makefile | |
abe72277 EP |
6533 | dlls/winmm/midimap/Makefile |
6534 | dlls/winmm/wavemap/Makefile | |
6fea55f1 | 6535 | dlls/winmm/wineoss/Makefile |
de078696 | 6536 | dlls/winsock/Makefile |
e39b676a | 6537 | dlls/winspool/Makefile |
c607532a AJ |
6538 | dlls/wow32/Makefile |
6539 | dlls/wsock32/Makefile | |
1dac57f0 | 6540 | dlls/x11drv/Makefile |
d37eb365 | 6541 | documentation/Makefile |
d6baf1bb | 6542 | documentation/wine.conf.man |
5a70c97a | 6543 | documentation/wine.man |
4f8c37b4 | 6544 | files/Makefile |
0e270f45 | 6545 | graphics/Makefile |
3a24f3f9 | 6546 | graphics/enhmetafiledrv/Makefile |
bf9130af | 6547 | graphics/metafiledrv/Makefile |
0e270f45 AJ |
6548 | graphics/win16drv/Makefile |
6549 | graphics/x11drv/Makefile | |
d7d4fdf8 | 6550 | if1632/Makefile |
c70dc833 | 6551 | include/Makefile |
d7d4fdf8 AJ |
6552 | library/Makefile |
6553 | libtest/Makefile | |
6554 | loader/Makefile | |
767e6f6f | 6555 | loader/dos/Makefile |
4eefb96d | 6556 | loader/ne/Makefile |
d7d4fdf8 AJ |
6557 | memory/Makefile |
6558 | misc/Makefile | |
6559 | miscemu/Makefile | |
9ea19e54 | 6560 | msdos/Makefile |
d7d4fdf8 | 6561 | objects/Makefile |
e658d820 | 6562 | ole/Makefile |
02ed4c23 | 6563 | programs/Makefile |
4eefb96d | 6564 | programs/avitools/Makefile |
a11d7b1a | 6565 | programs/clock/Makefile |
30008a00 | 6566 | programs/cmdlgtst/Makefile |
d30dfd24 | 6567 | programs/control/Makefile |
44ed71f5 | 6568 | programs/notepad/Makefile |
4eefb96d | 6569 | programs/osversioncheck/Makefile |
02ed4c23 | 6570 | programs/progman/Makefile |
1bb0e66f | 6571 | programs/regapi/Makefile |
4eefb96d AM |
6572 | programs/regtest/Makefile |
6573 | programs/uninstaller/Makefile | |
a11d7b1a | 6574 | programs/view/Makefile |
74f440ea | 6575 | programs/wcmd/Makefile |
a3f2380f | 6576 | programs/winemine/Makefile |
1285c2f9 | 6577 | programs/winhelp/Makefile |
e658d820 | 6578 | programs/winver/Makefile |
44ed71f5 | 6579 | relay32/Makefile |
d7d4fdf8 | 6580 | resources/Makefile |
9ea19e54 | 6581 | scheduler/Makefile |
642d3136 | 6582 | server/Makefile |
d7d4fdf8 | 6583 | tools/Makefile |
e61d33bf | 6584 | tools/cvdump/Makefile |
e482eebf | 6585 | tools/winebuild/Makefile |
30855917 | 6586 | tools/wmc/Makefile |
4eefb96d | 6587 | tools/wrc/Makefile |
60ce85c9 | 6588 | tsx11/Makefile |
fb270ddc | 6589 | unicode/Makefile |
d7d4fdf8 | 6590 | win32/Makefile |
ea584724 PS |
6591 | windows/Makefile |
6592 | windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
d7d4fdf8 AJ |
6593 | EOF |
6594 | cat >> $CONFIG_STATUS <<EOF | |
e2991ea7 | 6595 | |
d7d4fdf8 AJ |
6596 | # Protect against being on the right side of a sed subst in config.status. |
6597 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
6598 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
e2991ea7 AJ |
6599 | $ac_vpsub |
6600 | $extrasub | |
18ad24a7 | 6601 | s%@SHELL@%$SHELL%g |
e2991ea7 AJ |
6602 | s%@CFLAGS@%$CFLAGS%g |
6603 | s%@CPPFLAGS@%$CPPFLAGS%g | |
6604 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18ad24a7 | 6605 | s%@FFLAGS@%$FFLAGS%g |
e2991ea7 AJ |
6606 | s%@DEFS@%$DEFS%g |
6607 | s%@LDFLAGS@%$LDFLAGS%g | |
6608 | s%@LIBS@%$LIBS%g | |
6609 | s%@exec_prefix@%$exec_prefix%g | |
6610 | s%@prefix@%$prefix%g | |
6611 | s%@program_transform_name@%$program_transform_name%g | |
d7d4fdf8 AJ |
6612 | s%@bindir@%$bindir%g |
6613 | s%@sbindir@%$sbindir%g | |
6614 | s%@libexecdir@%$libexecdir%g | |
6615 | s%@datadir@%$datadir%g | |
6616 | s%@sysconfdir@%$sysconfdir%g | |
6617 | s%@sharedstatedir@%$sharedstatedir%g | |
6618 | s%@localstatedir@%$localstatedir%g | |
6619 | s%@libdir@%$libdir%g | |
6620 | s%@includedir@%$includedir%g | |
6621 | s%@oldincludedir@%$oldincludedir%g | |
6622 | s%@infodir@%$infodir%g | |
6623 | s%@mandir@%$mandir%g | |
18f92e76 | 6624 | s%@OPTIONS@%$OPTIONS%g |
e2991ea7 AJ |
6625 | s%@SET_MAKE@%$SET_MAKE%g |
6626 | s%@CC@%$CC%g | |
6627 | s%@CPP@%$CPP%g | |
ff8331ea AJ |
6628 | s%@X_CFLAGS@%$X_CFLAGS%g |
6629 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
6630 | s%@X_LIBS@%$X_LIBS%g | |
6631 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
e2991ea7 AJ |
6632 | s%@YACC@%$YACC%g |
6633 | s%@LEX@%$LEX%g | |
6634 | s%@LEXLIB@%$LEXLIB%g | |
b53bb419 MM |
6635 | s%@XLEX@%$XLEX%g |
6636 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g | |
ff8331ea | 6637 | s%@RANLIB@%$RANLIB%g |
d7d4fdf8 | 6638 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
18ad24a7 | 6639 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
d7d4fdf8 | 6640 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
641ee76a | 6641 | s%@LN_S@%$LN_S%g |
c7c217b3 | 6642 | s%@C2MAN@%$C2MAN%g |
ffe6b767 | 6643 | s%@LDCONFIG@%$LDCONFIG%g |
a9be64e2 PS |
6644 | s%@LINT@%$LINT%g |
6645 | s%@LINTFLAGS@%$LINTFLAGS%g | |
ea584724 | 6646 | s%@XLIB@%$XLIB%g |
2941a212 PS |
6647 | s%@X_DLLS@%$X_DLLS%g |
6648 | s%@XFILES@%$XFILES%g | |
bedf40b5 | 6649 | s%@OPENGLFILES@%$OPENGLFILES%g |
4615e29c | 6650 | s%@OPENGL32_DLL@%$OPENGL32_DLL%g |
10ad97c8 | 6651 | s%@DGA_SRCS@%$DGA_SRCS%g |
51177f96 | 6652 | s%@DGA2_SRCS@%$DGA2_SRCS%g |
10ad97c8 | 6653 | s%@MESA_SRCS@%$MESA_SRCS%g |
318f4cef | 6654 | s%@DLL_LINK@%$DLL_LINK%g |
a0b2b1d0 | 6655 | s%@DLLFLAGS@%$DLLFLAGS%g |
4b992b0f | 6656 | s%@LDSHARED@%$LDSHARED%g |
0adad95d | 6657 | s%@LIBEXT@%$LIBEXT%g |
1bb94039 | 6658 | s%@ALLOCA@%$ALLOCA%g |
a7f5cb5b | 6659 | s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g |
ff8331ea AJ |
6660 | /@MAKE_RULES@/r $MAKE_RULES |
6661 | s%@MAKE_RULES@%%g | |
d0edc5fe AJ |
6662 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
6663 | s%@MAKE_DLL_RULES@%%g | |
e2991ea7 AJ |
6664 | |
6665 | CEOF | |
6666 | EOF | |
da0cfb36 AJ |
6667 | |
6668 | cat >> $CONFIG_STATUS <<\EOF | |
6669 | ||
6670 | # Split the substitutions into bite-sized pieces for seds with | |
6671 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6672 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
6673 | ac_file=1 # Number of current file. | |
6674 | ac_beg=1 # First line for current file. | |
6675 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
6676 | ac_more_lines=: | |
6677 | ac_sed_cmds="" | |
6678 | while $ac_more_lines; do | |
6679 | if test $ac_beg -gt 1; then | |
6680 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
6681 | else | |
6682 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
6683 | fi | |
6684 | if test ! -s conftest.s$ac_file; then | |
6685 | ac_more_lines=false | |
6686 | rm -f conftest.s$ac_file | |
6687 | else | |
6688 | if test -z "$ac_sed_cmds"; then | |
6689 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
6690 | else | |
6691 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
6692 | fi | |
6693 | ac_file=`expr $ac_file + 1` | |
6694 | ac_beg=$ac_end | |
6695 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
6696 | fi | |
6697 | done | |
6698 | if test -z "$ac_sed_cmds"; then | |
6699 | ac_sed_cmds=cat | |
6700 | fi | |
6701 | EOF | |
6702 | ||
e2991ea7 AJ |
6703 | cat >> $CONFIG_STATUS <<EOF |
6704 | ||
d7d4fdf8 AJ |
6705 | CONFIG_FILES=\${CONFIG_FILES-"Make.rules |
6706 | Makefile | |
791cd6a3 | 6707 | console/Makefile |
d7d4fdf8 AJ |
6708 | controls/Makefile |
6709 | debugger/Makefile | |
d0edc5fe | 6710 | dlls/Makedll.rules |
85ed45e3 | 6711 | dlls/Makefile |
f7b0de3f | 6712 | dlls/advapi32/Makefile |
b3d1a22a | 6713 | dlls/avifil32/Makefile |
a0d77315 | 6714 | dlls/comctl32/Makefile |
c912749b | 6715 | dlls/commdlg/Makefile |
6c6da674 UW |
6716 | dlls/crtdll/Makefile |
6717 | dlls/dciman32/Makefile | |
ddce652c AJ |
6718 | dlls/ddraw/Makefile |
6719 | dlls/dinput/Makefile | |
c607532a | 6720 | dlls/dplay/Makefile |
22b861c1 | 6721 | dlls/dplayx/Makefile |
68944c20 | 6722 | dlls/dsound/Makefile |
1dac57f0 | 6723 | dlls/gdi/Makefile |
edf3e434 | 6724 | dlls/icmp/Makefile |
8295c862 | 6725 | dlls/imagehlp/Makefile |
6c6da674 | 6726 | dlls/imm32/Makefile |
36b5b6b9 | 6727 | dlls/kernel/Makefile |
6c6da674 | 6728 | dlls/lzexpand/Makefile |
bb1984e6 | 6729 | dlls/mpr/Makefile |
8295c862 | 6730 | dlls/msacm/Makefile |
6c6da674 UW |
6731 | dlls/msnet32/Makefile |
6732 | dlls/msvideo/Makefile | |
51505b12 | 6733 | dlls/ntdll/Makefile |
8551f8ca | 6734 | dlls/odbc32/Makefile |
2a722f49 UW |
6735 | dlls/ole32/Makefile |
6736 | dlls/oleaut32/Makefile | |
6737 | dlls/olecli/Makefile | |
6738 | dlls/oledlg/Makefile | |
58c71d4f | 6739 | dlls/olepro32/Makefile |
2a722f49 | 6740 | dlls/olesvr/Makefile |
bedf40b5 | 6741 | dlls/opengl32/Makefile |
d30dfd24 | 6742 | dlls/psapi/Makefile |
30ef8778 | 6743 | dlls/rasapi32/Makefile |
e75f9fb8 | 6744 | dlls/richedit/Makefile |
10b1b23d | 6745 | dlls/rpcrt4/Makefile |
dc2461e8 | 6746 | dlls/serialui/Makefile |
df5e5792 | 6747 | dlls/setupapi/Makefile |
85ed45e3 | 6748 | dlls/shell32/Makefile |
c607532a AJ |
6749 | dlls/shfolder/Makefile |
6750 | dlls/shlwapi/Makefile | |
5aa96c19 | 6751 | dlls/tapi32/Makefile |
1dac57f0 | 6752 | dlls/ttydrv/Makefile |
819fa8ce | 6753 | dlls/urlmon/Makefile |
1dac57f0 | 6754 | dlls/user/Makefile |
d43a46a4 | 6755 | dlls/version/Makefile |
6c6da674 | 6756 | dlls/win32s/Makefile |
d30dfd24 | 6757 | dlls/winaspi/Makefile |
84bde6a4 | 6758 | dlls/wineps/Makefile |
819fa8ce | 6759 | dlls/wininet/Makefile |
6fea55f1 | 6760 | dlls/winmm/Makefile |
2a3b0a1d | 6761 | dlls/winmm/joystick/Makefile |
68944c20 EP |
6762 | dlls/winmm/mcianim/Makefile |
6763 | dlls/winmm/mciavi/Makefile | |
6764 | dlls/winmm/mcicda/Makefile | |
6765 | dlls/winmm/mciseq/Makefile | |
6766 | dlls/winmm/mciwave/Makefile | |
abe72277 EP |
6767 | dlls/winmm/midimap/Makefile |
6768 | dlls/winmm/wavemap/Makefile | |
6fea55f1 | 6769 | dlls/winmm/wineoss/Makefile |
de078696 | 6770 | dlls/winsock/Makefile |
e39b676a | 6771 | dlls/winspool/Makefile |
c607532a AJ |
6772 | dlls/wow32/Makefile |
6773 | dlls/wsock32/Makefile | |
1dac57f0 | 6774 | dlls/x11drv/Makefile |
d37eb365 | 6775 | documentation/Makefile |
d6baf1bb | 6776 | documentation/wine.conf.man |
5a70c97a | 6777 | documentation/wine.man |
4f8c37b4 | 6778 | files/Makefile |
0e270f45 | 6779 | graphics/Makefile |
3a24f3f9 | 6780 | graphics/enhmetafiledrv/Makefile |
bf9130af | 6781 | graphics/metafiledrv/Makefile |
0e270f45 AJ |
6782 | graphics/win16drv/Makefile |
6783 | graphics/x11drv/Makefile | |
d7d4fdf8 | 6784 | if1632/Makefile |
c70dc833 | 6785 | include/Makefile |
d7d4fdf8 AJ |
6786 | library/Makefile |
6787 | libtest/Makefile | |
6788 | loader/Makefile | |
767e6f6f | 6789 | loader/dos/Makefile |
4eefb96d | 6790 | loader/ne/Makefile |
d7d4fdf8 AJ |
6791 | memory/Makefile |
6792 | misc/Makefile | |
6793 | miscemu/Makefile | |
9ea19e54 | 6794 | msdos/Makefile |
d7d4fdf8 | 6795 | objects/Makefile |
e658d820 | 6796 | ole/Makefile |
02ed4c23 | 6797 | programs/Makefile |
4eefb96d | 6798 | programs/avitools/Makefile |
a11d7b1a | 6799 | programs/clock/Makefile |
30008a00 | 6800 | programs/cmdlgtst/Makefile |
d30dfd24 | 6801 | programs/control/Makefile |
44ed71f5 | 6802 | programs/notepad/Makefile |
4eefb96d | 6803 | programs/osversioncheck/Makefile |
02ed4c23 | 6804 | programs/progman/Makefile |
1bb0e66f | 6805 | programs/regapi/Makefile |
4eefb96d AM |
6806 | programs/regtest/Makefile |
6807 | programs/uninstaller/Makefile | |
a11d7b1a | 6808 | programs/view/Makefile |
74f440ea | 6809 | programs/wcmd/Makefile |
a3f2380f | 6810 | programs/winemine/Makefile |
1285c2f9 | 6811 | programs/winhelp/Makefile |
e658d820 | 6812 | programs/winver/Makefile |
44ed71f5 | 6813 | relay32/Makefile |
d7d4fdf8 | 6814 | resources/Makefile |
9ea19e54 | 6815 | scheduler/Makefile |
642d3136 | 6816 | server/Makefile |
d7d4fdf8 | 6817 | tools/Makefile |
e61d33bf | 6818 | tools/cvdump/Makefile |
e482eebf | 6819 | tools/winebuild/Makefile |
30855917 | 6820 | tools/wmc/Makefile |
4eefb96d | 6821 | tools/wrc/Makefile |
60ce85c9 | 6822 | tsx11/Makefile |
fb270ddc | 6823 | unicode/Makefile |
d7d4fdf8 | 6824 | win32/Makefile |
ea584724 PS |
6825 | windows/Makefile |
6826 | windows/x11drv/Makefile "} | |
e2991ea7 AJ |
6827 | EOF |
6828 | cat >> $CONFIG_STATUS <<\EOF | |
6829 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
7e6ae4ba | 6830 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e2991ea7 | 6831 | case "$ac_file" in |
7e6ae4ba | 6832 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
e2991ea7 AJ |
6833 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
6834 | *) ac_file_in="${ac_file}.in" ;; | |
6835 | esac | |
6836 | ||
da0cfb36 | 6837 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
e2991ea7 AJ |
6838 | |
6839 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6840 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6841 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6842 | # The file is in a subdirectory. | |
6843 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6844 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
6845 | # A "../" for each directory in $ac_dir_suffix. | |
6846 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
6847 | else | |
6848 | ac_dir_suffix= ac_dots= | |
6849 | fi | |
6850 | ||
6851 | case "$ac_given_srcdir" in | |
6852 | .) srcdir=. | |
6853 | if test -z "$ac_dots"; then top_srcdir=. | |
6854 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
6855 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
6856 | *) # Relative path. | |
6857 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
6858 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
6859 | esac | |
6860 | ||
d7d4fdf8 AJ |
6861 | case "$ac_given_INSTALL" in |
6862 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
6863 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
6864 | esac | |
da0cfb36 | 6865 | |
e2991ea7 AJ |
6866 | echo creating "$ac_file" |
6867 | rm -f "$ac_file" | |
6868 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
6869 | case "$ac_file" in | |
6870 | *Makefile*) ac_comsub="1i\\ | |
6871 | # $configure_input" ;; | |
6872 | *) ac_comsub= ;; | |
6873 | esac | |
7e6ae4ba AJ |
6874 | |
6875 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
e2991ea7 AJ |
6876 | sed -e "$ac_comsub |
6877 | s%@configure_input@%$configure_input%g | |
6878 | s%@srcdir@%$srcdir%g | |
6879 | s%@top_srcdir@%$top_srcdir%g | |
d7d4fdf8 | 6880 | s%@INSTALL@%$INSTALL%g |
7e6ae4ba | 6881 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
e2991ea7 | 6882 | fi; done |
da0cfb36 | 6883 | rm -f conftest.s* |
e2991ea7 | 6884 | |
18f92e76 AJ |
6885 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
6886 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6887 | # | |
6888 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6889 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
6890 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
6891 | ac_dC='\3' | |
6892 | ac_dD='%g' | |
6893 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
6894 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6895 | ac_uB='\([ ]\)%\1#\2define\3' | |
6896 | ac_uC=' ' | |
6897 | ac_uD='\4%g' | |
6898 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6899 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6900 | ac_eB='$%\1#\2define\3' | |
6901 | ac_eC=' ' | |
6902 | ac_eD='%g' | |
6903 | ||
7e6ae4ba | 6904 | if test "${CONFIG_HEADERS+set}" != set; then |
da0cfb36 AJ |
6905 | EOF |
6906 | cat >> $CONFIG_STATUS <<EOF | |
6907 | CONFIG_HEADERS="include/config.h" | |
6908 | EOF | |
6909 | cat >> $CONFIG_STATUS <<\EOF | |
6910 | fi | |
18f92e76 | 6911 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
7e6ae4ba | 6912 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
18f92e76 | 6913 | case "$ac_file" in |
7e6ae4ba | 6914 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
18f92e76 AJ |
6915 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
6916 | *) ac_file_in="${ac_file}.in" ;; | |
6917 | esac | |
6918 | ||
6919 | echo creating $ac_file | |
6920 | ||
6921 | rm -f conftest.frag conftest.in conftest.out | |
7e6ae4ba AJ |
6922 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
6923 | cat $ac_file_inputs > conftest.in | |
18f92e76 AJ |
6924 | |
6925 | EOF | |
6926 | ||
6927 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
6928 | # the proper values into config.h.in to produce config.h. And first: | |
6929 | # Protect against being on the right side of a sed subst in config.status. | |
6930 | # Protect against being in an unquoted here document in config.status. | |
6931 | rm -f conftest.vals | |
6932 | cat > conftest.hdr <<\EOF | |
6933 | s/[\\&%]/\\&/g | |
6934 | s%[\\$`]%\\&%g | |
6935 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
6936 | s%ac_d%ac_u%gp | |
6937 | s%ac_u%ac_e%gp | |
6938 | EOF | |
6939 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
6940 | rm -f conftest.hdr | |
6941 | ||
6942 | # This sed command replaces #undef with comments. This is necessary, for | |
6943 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6944 | # on some systems where configure will not decide to define it. | |
6945 | cat >> conftest.vals <<\EOF | |
6946 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
6947 | EOF | |
6948 | ||
6949 | # Break up conftest.vals because some shells have a limit on | |
6950 | # the size of here documents, and old seds have small limits too. | |
18f92e76 AJ |
6951 | |
6952 | rm -f conftest.tail | |
6953 | while : | |
6954 | do | |
6955 | ac_lines=`grep -c . conftest.vals` | |
6956 | # grep -c gives empty output for an empty file on some AIX systems. | |
6957 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
6958 | # Write a limited-size here document to conftest.frag. | |
6959 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
6960 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
6961 | echo 'CEOF | |
6962 | sed -f conftest.frag conftest.in > conftest.out | |
6963 | rm -f conftest.in | |
6964 | mv conftest.out conftest.in | |
6965 | ' >> $CONFIG_STATUS | |
6966 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
6967 | rm -f conftest.vals | |
6968 | mv conftest.tail conftest.vals | |
6969 | done | |
6970 | rm -f conftest.vals | |
6971 | ||
6972 | cat >> $CONFIG_STATUS <<\EOF | |
6973 | rm -f conftest.frag conftest.h | |
6974 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
6975 | cat conftest.in >> conftest.h | |
6976 | rm -f conftest.in | |
6977 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
6978 | echo "$ac_file is unchanged" | |
6979 | rm -f conftest.h | |
6980 | else | |
6981 | # Remove last slash and all that follows it. Not all systems have dirname. | |
6982 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
6983 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
6984 | # The file is in a subdirectory. | |
6985 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
6986 | fi | |
6987 | rm -f $ac_file | |
6988 | mv conftest.h $ac_file | |
6989 | fi | |
6990 | fi; done | |
6991 | ||
7e6ae4ba AJ |
6992 | EOF |
6993 | cat >> $CONFIG_STATUS <<EOF | |
e2991ea7 | 6994 | |
87a2f8df | 6995 | |
7e6ae4ba AJ |
6996 | EOF |
6997 | cat >> $CONFIG_STATUS <<\EOF | |
e2991ea7 | 6998 | |
87a2f8df AJ |
6999 | extra_subdirs="\ |
7000 | dlls/ddraw/d3ddevice \ | |
7001 | dlls/ddraw/dclipper \ | |
7002 | dlls/ddraw/ddraw \ | |
7003 | dlls/ddraw/direct3d \ | |
7004 | dlls/ddraw/dpalette \ | |
7005 | dlls/ddraw/dsurface \ | |
d1d09051 | 7006 | dlls/kernel/messages \ |
87a2f8df AJ |
7007 | " |
7008 | for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done | |
7009 | ||
e2991ea7 AJ |
7010 | exit 0 |
7011 | EOF | |
7012 | chmod +x $CONFIG_STATUS | |
7013 | rm -fr confdefs* $ac_clean_files | |
7014 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
7015 | ||
7016 | ||
8b4431f1 OK |
7017 | if test "$have_x" = "no" |
7018 | then | |
7019 | echo | |
7020 | echo "*** Warning: X development files not found. Wine will be built without" | |
7021 | echo "*** X support, which currently does not work, and would probably not be" | |
7022 | echo "*** what you want anyway. You will need to install devel packages of" | |
7023 | echo "*** Xlib/Xfree86 and Xpm at the very least." | |
1eb593cb OK |
7024 | elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no" |
7025 | then | |
7026 | echo | |
7027 | echo "*** Warning: Xpm development files not found. Wine will be built without" | |
7028 | echo "*** Xpm support, which currently does not work. You will need to install" | |
7029 | echo "*** devel packages of Xpm." | |
8b4431f1 OK |
7030 | fi |
7031 | ||
638f169b AJ |
7032 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
7033 | then | |
7034 | echo | |
7035 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" | |
7036 | echo "*** terminal resize support. Consider upgrading ncurses." | |
638f169b AJ |
7037 | fi |
7038 | ||
d30dfd24 AJ |
7039 | if test "$wine_cv_libc_reentrant" = "no" |
7040 | then | |
7041 | echo | |
7042 | echo "*** Warning: non-reentrant libc detected. Wine will be build without" | |
7043 | echo "*** thread support. Consider upgrading libc to a more recent" | |
7044 | echo "*** reentrant version of libc." | |
d30dfd24 AJ |
7045 | fi |
7046 | ||
bedf40b5 | 7047 | if test "$wine_cv_opengl_version_OK" = "no" |
5c085704 LU |
7048 | then |
7049 | echo | |
7050 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" | |
5eee0bff LU |
7051 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
7052 | fi | |
7053 | ||
bedf40b5 | 7054 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal" |
5eee0bff LU |
7055 | then |
7056 | echo | |
7057 | echo "*** Warning: the OpenGL version you have installed relies on libpthread for" | |
fbc15b17 LU |
7058 | echo "*** thread-safety. To prevent crashes, OpenGL support has been removed." |
7059 | echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine," | |
7060 | echo "*** start configure with '--enable-opengl' to force OpenGL support." | |
7061 | fi | |
7062 | ||
bedf40b5 | 7063 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes" |
fbc15b17 LU |
7064 | then |
7065 | echo | |
7066 | echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you" | |
7067 | echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL" | |
7068 | echo "*** support before reporting bugs." | |
5c085704 LU |
7069 | fi |
7070 | ||
fbc15b17 | 7071 | |
e2991ea7 | 7072 | echo |
1511bae7 | 7073 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
e2991ea7 AJ |
7074 | echo |
7075 |