Check better that handles are actual handles to a region.
[wine.git] / configure
blob4960c44004d25a0b7e0e150e02e864fbc1cda00e
1 #! /bin/sh
3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --disable-emulator build only the Wine library, not the emulator"
17 ac_help="$ac_help
18 --enable-dll build the Wine library as a DLL"
19 ac_help="$ac_help
20 --disable-lib build the Wine without building libwine.a"
21 ac_help="$ac_help
22 --disable-debug compile out all debugging messages"
23 ac_help="$ac_help
24 --disable-trace compile out TRACE messages"
25 ac_help="$ac_help
26 --without-reentrant-x compile for use with non-reentrant X libraries"
27 ac_help="$ac_help
28 --with-x use the X Window System"
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
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'
64 # Initialize some other variables.
65 subdirs=
66 MFLAGS= MAKEFLAGS=
67 # Maximum number of lines to put in a shell here document.
68 ac_max_here_lines=12
70 ac_prev=
71 for ac_option
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
77 ac_prev=
78 continue
81 case "$ac_option" in
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
83 *) ac_optarg= ;;
84 esac
86 # Accept the important Cygnus configure options, so we can diagnose typos.
88 case "$ac_option" in
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 ac_prev=bindir ;;
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
96 ac_prev=build ;;
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 build="$ac_optarg" ;;
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 ac_prev=datadir ;;
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 | --da=*)
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 case "$ac_option" in
130 *=*) ;;
131 *) ac_optarg=yes ;;
132 esac
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
146 with_gas=yes ;;
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
151 cat << EOF
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
154 Configuration:
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
162 [$ac_default_prefix]
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 [same as prefix]
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
169 [PREFIX/share]
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 [PREFIX/com]
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
185 cat << EOF
186 Host type:
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
201 exit 0 ;;
203 -host | --host | --hos | --ho)
204 ac_prev=host ;;
205 -host=* | --host=* | --hos=* | --ho=*)
206 host="$ac_optarg" ;;
208 -includedir | --includedir | --includedi | --included | --include \
209 | --includ | --inclu | --incl | --inc)
210 ac_prev=includedir ;;
211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
212 | --includ=* | --inclu=* | --incl=* | --inc=*)
213 includedir="$ac_optarg" ;;
215 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 ac_prev=infodir ;;
217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
218 infodir="$ac_optarg" ;;
220 -libdir | --libdir | --libdi | --libd)
221 ac_prev=libdir ;;
222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
223 libdir="$ac_optarg" ;;
225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
226 | --libexe | --libex | --libe)
227 ac_prev=libexecdir ;;
228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
229 | --libexe=* | --libex=* | --libe=*)
230 libexecdir="$ac_optarg" ;;
232 -localstatedir | --localstatedir | --localstatedi | --localstated \
233 | --localstate | --localstat | --localsta | --localst \
234 | --locals | --local | --loca | --loc | --lo)
235 ac_prev=localstatedir ;;
236 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
237 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
238 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
239 localstatedir="$ac_optarg" ;;
241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 ac_prev=mandir ;;
243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
244 mandir="$ac_optarg" ;;
246 -nfp | --nfp | --nf)
247 # Obsolete; use --without-fp.
248 with_fp=no ;;
250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
251 | --no-cr | --no-c)
252 no_create=yes ;;
254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 no_recursion=yes ;;
258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
260 | --oldin | --oldi | --old | --ol | --o)
261 ac_prev=oldincludedir ;;
262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
265 oldincludedir="$ac_optarg" ;;
267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 ac_prev=prefix ;;
269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
270 prefix="$ac_optarg" ;;
272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
273 | --program-pre | --program-pr | --program-p)
274 ac_prev=program_prefix ;;
275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
277 program_prefix="$ac_optarg" ;;
279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
280 | --program-suf | --program-su | --program-s)
281 ac_prev=program_suffix ;;
282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
284 program_suffix="$ac_optarg" ;;
286 -program-transform-name | --program-transform-name \
287 | --program-transform-nam | --program-transform-na \
288 | --program-transform-n | --program-transform- \
289 | --program-transform | --program-transfor \
290 | --program-transfo | --program-transf \
291 | --program-trans | --program-tran \
292 | --progr-tra | --program-tr | --program-t)
293 ac_prev=program_transform_name ;;
294 -program-transform-name=* | --program-transform-name=* \
295 | --program-transform-nam=* | --program-transform-na=* \
296 | --program-transform-n=* | --program-transform-=* \
297 | --program-transform=* | --program-transfor=* \
298 | --program-transfo=* | --program-transf=* \
299 | --program-trans=* | --program-tran=* \
300 | --progr-tra=* | --program-tr=* | --program-t=*)
301 program_transform_name="$ac_optarg" ;;
303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
304 | -silent | --silent | --silen | --sile | --sil)
305 silent=yes ;;
307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 ac_prev=sbindir ;;
309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 | --sbi=* | --sb=*)
311 sbindir="$ac_optarg" ;;
313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
315 | --sharedst | --shareds | --shared | --share | --shar \
316 | --sha | --sh)
317 ac_prev=sharedstatedir ;;
318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 | --sha=* | --sh=*)
322 sharedstatedir="$ac_optarg" ;;
324 -site | --site | --sit)
325 ac_prev=site ;;
326 -site=* | --site=* | --sit=*)
327 site="$ac_optarg" ;;
329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 ac_prev=srcdir ;;
331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
332 srcdir="$ac_optarg" ;;
334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
335 | --syscon | --sysco | --sysc | --sys | --sy)
336 ac_prev=sysconfdir ;;
337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
339 sysconfdir="$ac_optarg" ;;
341 -target | --target | --targe | --targ | --tar | --ta | --t)
342 ac_prev=target ;;
343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
344 target="$ac_optarg" ;;
346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 verbose=yes ;;
349 -version | --version | --versio | --versi | --vers)
350 echo "configure generated by autoconf version 2.12"
351 exit 0 ;;
353 -with-* | --with-*)
354 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 case "$ac_option" in
361 *=*) ;;
362 *) ac_optarg=yes ;;
363 esac
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* | --without-*)
367 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
375 --x)
376 # Obsolete; use --with-x.
377 with_x=yes ;;
379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
380 | --x-incl | --x-inc | --x-in | --x-i)
381 ac_prev=x_includes ;;
382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
384 x_includes="$ac_optarg" ;;
386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
388 ac_prev=x_libraries ;;
389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
391 x_libraries="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 nonopt="$ac_option"
406 esac
407 done
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
416 # 0 standard input
417 # 1 file creation
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
424 exec 6>/dev/null
425 else
426 exec 6>&1
428 exec 5>./config.log
430 echo "\
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
433 " 1>&5
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
437 ac_configure_args=
438 for ac_arg
440 case "$ac_arg" in
441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442 | --no-cr | --no-c) ;;
443 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
444 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 esac
449 done
451 # NLS nuisances.
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 echo > confdefs.h
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
468 ac_unique_file=controls/edit.c
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted=yes
473 # Try the directory containing this script, then its parent.
474 ac_prog=$0
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 srcdir=$ac_confdir
478 if test ! -r $srcdir/$ac_unique_file; then
479 srcdir=..
481 else
482 ac_srcdir_defaulted=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 else
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE; then
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 else
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
504 . "$ac_site_file"
506 done
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
510 . $cache_file
511 else
512 echo "creating cache $cache_file"
513 > $cache_file
516 ac_ext=c
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp='$CPP $CPPFLAGS'
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526 ac_n= ac_c='
527 ' ac_t=' '
528 else
529 ac_n=-n ac_c= ac_t=
531 else
532 ac_n= ac_c='\c' ac_t=
537 ac_aux_dir=
538 for ac_dir in tools $srcdir/tools; do
539 if test -f $ac_dir/install-sh; then
540 ac_aux_dir=$ac_dir
541 ac_install_sh="$ac_aux_dir/install-sh -c"
542 break
543 elif test -f $ac_dir/install.sh; then
544 ac_aux_dir=$ac_dir
545 ac_install_sh="$ac_aux_dir/install.sh -c"
546 break
548 done
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
557 # We want these before the checks, so the checks can modify their values.
559 test -z "$PROGEXT" && PROGEXT=""
562 MAIN_TARGET=emu
563 LIB_TARGET=libwine.a
564 ALT_LINK="-L\$(TOPOBJDIR) -lwine"
565 TRACE_MSGS=yes # the TRACE() macro
566 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
568 # Check whether --enable-emulator or --disable-emulator was given.
569 if test "${enable_emulator+set}" = set; then
570 enableval="$enable_emulator"
571 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
575 # Check whether --enable-dll or --disable-dll was given.
576 if test "${enable_dll+set}" = set; then
577 enableval="$enable_dll"
578 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
582 # Check whether --enable-lib or --disable-lib was given.
583 if test "${enable_lib+set}" = set; then
584 enableval="$enable_lib"
585 if test "$enableval" = "no"; then ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET=""; fi
589 # Check whether --enable-debug or --disable-debug was given.
590 if test "${enable_debug+set}" = set; then
591 enableval="$enable_debug"
592 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
596 # Check whether --enable-trace or --disable-trace was given.
597 if test "${enable_trace+set}" = set; then
598 enableval="$enable_trace"
599 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
603 # Check whether --with-reentrant-x or --without-reentrant-x was given.
604 if test "${with_reentrant_x+set}" = set; then
605 withval="$with_reentrant_x"
615 if test "$DEBUG_MSGS" = "no"
616 then
617 cat >> confdefs.h <<\EOF
618 #define NO_DEBUG_MSGS 1
621 cat >> confdefs.h <<\EOF
622 #define NO_TRACE_MSGS 1
625 else
626 if test "$TRACE_MSGS" = "no"
627 then
628 cat >> confdefs.h <<\EOF
629 #define NO_TRACE_MSGS 1
636 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
637 echo "configure:638: checking whether ${MAKE-make} sets \${MAKE}" >&5
638 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
639 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
641 else
642 cat > conftestmake <<\EOF
643 all:
644 @echo 'ac_maketemp="${MAKE}"'
646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
647 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
648 if test -n "$ac_maketemp"; then
649 eval ac_cv_prog_make_${ac_make}_set=yes
650 else
651 eval ac_cv_prog_make_${ac_make}_set=no
653 rm -f conftestmake
655 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
656 echo "$ac_t""yes" 1>&6
657 SET_MAKE=
658 else
659 echo "$ac_t""no" 1>&6
660 SET_MAKE="MAKE=${MAKE-make}"
663 # Extract the first word of "gcc", so it can be a program name with args.
664 set dummy gcc; ac_word=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
669 else
670 if test -n "$CC"; then
671 ac_cv_prog_CC="$CC" # Let the user override the test.
672 else
673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
674 for ac_dir in $PATH; do
675 test -z "$ac_dir" && ac_dir=.
676 if test -f $ac_dir/$ac_word; then
677 ac_cv_prog_CC="gcc"
678 break
680 done
681 IFS="$ac_save_ifs"
684 CC="$ac_cv_prog_CC"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
687 else
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
692 # Extract the first word of "cc", so it can be a program name with args.
693 set dummy cc; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
698 else
699 if test -n "$CC"; then
700 ac_cv_prog_CC="$CC" # Let the user override the test.
701 else
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
703 ac_prog_rejected=no
704 for ac_dir in $PATH; do
705 test -z "$ac_dir" && ac_dir=.
706 if test -f $ac_dir/$ac_word; then
707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
708 ac_prog_rejected=yes
709 continue
711 ac_cv_prog_CC="cc"
712 break
714 done
715 IFS="$ac_save_ifs"
716 if test $ac_prog_rejected = yes; then
717 # We found a bogon in the path, so make sure we never use it.
718 set dummy $ac_cv_prog_CC
719 shift
720 if test $# -gt 0; then
721 # We chose a different compiler from the bogus one.
722 # However, it has the same basename, so the bogon will be chosen
723 # first if we set CC to just the basename; use the full file name.
724 shift
725 set dummy "$ac_dir/$ac_word" "$@"
726 shift
727 ac_cv_prog_CC="$@"
732 CC="$ac_cv_prog_CC"
733 if test -n "$CC"; then
734 echo "$ac_t""$CC" 1>&6
735 else
736 echo "$ac_t""no" 1>&6
739 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
743 echo "configure:744: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
745 ac_ext=c
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp='$CPP $CPPFLAGS'
748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling=$ac_cv_prog_cc_cross
752 cat > conftest.$ac_ext <<EOF
753 #line 754 "configure"
754 #include "confdefs.h"
755 main(){return(0);}
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
758 ac_cv_prog_cc_works=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (./conftest; exit) 2>/dev/null; then
761 ac_cv_prog_cc_cross=no
762 else
763 ac_cv_prog_cc_cross=yes
765 else
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 ac_cv_prog_cc_works=no
770 rm -fr conftest*
772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
773 if test $ac_cv_prog_cc_works = no; then
774 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
779 cross_compiling=$ac_cv_prog_cc_cross
781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
782 echo "configure:783: checking whether we are using GNU C" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
785 else
786 cat > conftest.c <<EOF
787 #ifdef __GNUC__
788 yes;
789 #endif
791 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
792 ac_cv_prog_gcc=yes
793 else
794 ac_cv_prog_gcc=no
798 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
800 if test $ac_cv_prog_gcc = yes; then
801 GCC=yes
802 ac_test_CFLAGS="${CFLAGS+set}"
803 ac_save_CFLAGS="$CFLAGS"
804 CFLAGS=
805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809 else
810 echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
812 ac_cv_prog_cc_g=yes
813 else
814 ac_cv_prog_cc_g=no
816 rm -f conftest*
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821 if test "$ac_test_CFLAGS" = set; then
822 CFLAGS="$ac_save_CFLAGS"
823 elif test $ac_cv_prog_cc_g = yes; then
824 CFLAGS="-g -O2"
825 else
826 CFLAGS="-O2"
828 else
829 GCC=
830 test "${CFLAGS+set}" = set || CFLAGS="-g"
833 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
834 echo "configure:835: checking how to run the C preprocessor" >&5
835 # On Suns, sometimes $CPP names a directory.
836 if test -n "$CPP" && test -d "$CPP"; then
837 CPP=
839 if test -z "$CPP"; then
840 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842 else
843 # This must be in double quotes, not single quotes, because CPP may get
844 # substituted into the Makefile and "${CC-cc}" will confuse make.
845 CPP="${CC-cc} -E"
846 # On the NeXT, cc -E runs the code through the compiler's parser,
847 # not just through cpp.
848 cat > conftest.$ac_ext <<EOF
849 #line 850 "configure"
850 #include "confdefs.h"
851 #include <assert.h>
852 Syntax Error
854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
855 { (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
856 ac_err=`grep -v '^ *+' conftest.out`
857 if test -z "$ac_err"; then
859 else
860 echo "$ac_err" >&5
861 echo "configure: failed program was:" >&5
862 cat conftest.$ac_ext >&5
863 rm -rf conftest*
864 CPP="${CC-cc} -E -traditional-cpp"
865 cat > conftest.$ac_ext <<EOF
866 #line 867 "configure"
867 #include "confdefs.h"
868 #include <assert.h>
869 Syntax Error
871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
872 { (eval echo configure:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
873 ac_err=`grep -v '^ *+' conftest.out`
874 if test -z "$ac_err"; then
876 else
877 echo "$ac_err" >&5
878 echo "configure: failed program was:" >&5
879 cat conftest.$ac_ext >&5
880 rm -rf conftest*
881 CPP=/lib/cpp
883 rm -f conftest*
885 rm -f conftest*
886 ac_cv_prog_CPP="$CPP"
888 CPP="$ac_cv_prog_CPP"
889 else
890 ac_cv_prog_CPP="$CPP"
892 echo "$ac_t""$CPP" 1>&6
894 # If we find X, set shell vars x_includes and x_libraries to the
895 # paths, otherwise set no_x=yes.
896 # Uses ac_ vars as temps to allow command line to override cache and checks.
897 # --without-x overrides everything else, but does not touch the cache.
898 echo $ac_n "checking for X""... $ac_c" 1>&6
899 echo "configure:900: checking for X" >&5
901 # Check whether --with-x or --without-x was given.
902 if test "${with_x+set}" = set; then
903 withval="$with_x"
907 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
908 if test "x$with_x" = xno; then
909 # The user explicitly disabled X.
910 have_x=disabled
911 else
912 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
913 # Both variables are already set.
914 have_x=yes
915 else
916 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
918 else
919 # One or both of the vars are not set, and there is no cached value.
920 ac_x_includes=NO ac_x_libraries=NO
921 rm -fr conftestdir
922 if mkdir conftestdir; then
923 cd conftestdir
924 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
925 cat > Imakefile <<'EOF'
926 acfindx:
927 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
929 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
931 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
932 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
933 for ac_extension in a so sl; do
934 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
935 test -f $ac_im_libdir/libX11.$ac_extension; then
936 ac_im_usrlibdir=$ac_im_libdir; break
938 done
939 # Screen out bogus values from the imake configuration. They are
940 # bogus both because they are the default anyway, and because
941 # using them would break gcc on systems where it needs fixed includes.
942 case "$ac_im_incroot" in
943 /usr/include) ;;
944 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
945 esac
946 case "$ac_im_usrlibdir" in
947 /usr/lib | /lib) ;;
948 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
949 esac
951 cd ..
952 rm -fr conftestdir
955 if test "$ac_x_includes" = NO; then
956 # Guess where to find include files, by looking for this one X11 .h file.
957 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
959 # First, try using that file with no special directory specified.
960 cat > conftest.$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
963 #include <$x_direct_test_include>
965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966 { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967 ac_err=`grep -v '^ *+' conftest.out`
968 if test -z "$ac_err"; then
969 rm -rf conftest*
970 # We can compile using X headers with no special include directory.
971 ac_x_includes=
972 else
973 echo "$ac_err" >&5
974 echo "configure: failed program was:" >&5
975 cat conftest.$ac_ext >&5
976 rm -rf conftest*
977 # Look for the header file in a standard set of common directories.
978 # Check X11 before X11Rn because it is often a symlink to the current release.
979 for ac_dir in \
980 /usr/X11/include \
981 /usr/X11R6/include \
982 /usr/X11R5/include \
983 /usr/X11R4/include \
985 /usr/include/X11 \
986 /usr/include/X11R6 \
987 /usr/include/X11R5 \
988 /usr/include/X11R4 \
990 /usr/local/X11/include \
991 /usr/local/X11R6/include \
992 /usr/local/X11R5/include \
993 /usr/local/X11R4/include \
995 /usr/local/include/X11 \
996 /usr/local/include/X11R6 \
997 /usr/local/include/X11R5 \
998 /usr/local/include/X11R4 \
1000 /usr/X386/include \
1001 /usr/x386/include \
1002 /usr/XFree86/include/X11 \
1004 /usr/include \
1005 /usr/local/include \
1006 /usr/unsupported/include \
1007 /usr/athena/include \
1008 /usr/local/x11r5/include \
1009 /usr/lpp/Xamples/include \
1011 /usr/openwin/include \
1012 /usr/openwin/share/include \
1015 if test -r "$ac_dir/$x_direct_test_include"; then
1016 ac_x_includes=$ac_dir
1017 break
1019 done
1021 rm -f conftest*
1022 fi # $ac_x_includes = NO
1024 if test "$ac_x_libraries" = NO; then
1025 # Check for the libraries.
1027 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1028 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1030 # See if we find them without any special options.
1031 # Don't add to $LIBS permanently.
1032 ac_save_LIBS="$LIBS"
1033 LIBS="-l$x_direct_test_library $LIBS"
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1038 int main() {
1039 ${x_direct_test_function}()
1040 ; return 0; }
1042 if { (eval echo configure:1043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1043 rm -rf conftest*
1044 LIBS="$ac_save_LIBS"
1045 # We can link X programs with no special library path.
1046 ac_x_libraries=
1047 else
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1050 rm -rf conftest*
1051 LIBS="$ac_save_LIBS"
1052 # First see if replacing the include by lib works.
1053 # Check X11 before X11Rn because it is often a symlink to the current release.
1054 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1055 /usr/X11/lib \
1056 /usr/X11R6/lib \
1057 /usr/X11R5/lib \
1058 /usr/X11R4/lib \
1060 /usr/lib/X11 \
1061 /usr/lib/X11R6 \
1062 /usr/lib/X11R5 \
1063 /usr/lib/X11R4 \
1065 /usr/local/X11/lib \
1066 /usr/local/X11R6/lib \
1067 /usr/local/X11R5/lib \
1068 /usr/local/X11R4/lib \
1070 /usr/local/lib/X11 \
1071 /usr/local/lib/X11R6 \
1072 /usr/local/lib/X11R5 \
1073 /usr/local/lib/X11R4 \
1075 /usr/X386/lib \
1076 /usr/x386/lib \
1077 /usr/XFree86/lib/X11 \
1079 /usr/lib \
1080 /usr/local/lib \
1081 /usr/unsupported/lib \
1082 /usr/athena/lib \
1083 /usr/local/x11r5/lib \
1084 /usr/lpp/Xamples/lib \
1085 /lib/usr/lib/X11 \
1087 /usr/openwin/lib \
1088 /usr/openwin/share/lib \
1091 for ac_extension in a so sl; do
1092 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1093 ac_x_libraries=$ac_dir
1094 break 2
1096 done
1097 done
1099 rm -f conftest*
1100 fi # $ac_x_libraries = NO
1102 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1103 # Didn't find X anywhere. Cache the known absence of X.
1104 ac_cv_have_x="have_x=no"
1105 else
1106 # Record where we found X for the cache.
1107 ac_cv_have_x="have_x=yes \
1108 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1112 eval "$ac_cv_have_x"
1113 fi # $with_x != no
1115 if test "$have_x" != yes; then
1116 echo "$ac_t""$have_x" 1>&6
1117 no_x=yes
1118 else
1119 # If each of the values was on the command line, it overrides each guess.
1120 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1121 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1122 # Update the cache value to reflect the command line values.
1123 ac_cv_have_x="have_x=yes \
1124 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1125 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1128 if test "$no_x" = yes; then
1129 # Not all programs may use this symbol, but it does not hurt to define it.
1130 cat >> confdefs.h <<\EOF
1131 #define X_DISPLAY_MISSING 1
1134 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1135 else
1136 if test -n "$x_includes"; then
1137 X_CFLAGS="$X_CFLAGS -I$x_includes"
1140 # It would also be nice to do this for all -L options, not just this one.
1141 if test -n "$x_libraries"; then
1142 X_LIBS="$X_LIBS -L$x_libraries"
1143 # For Solaris; some versions of Sun CC require a space after -R and
1144 # others require no space. Words are not sufficient . . . .
1145 case "`(uname -sr) 2>/dev/null`" in
1146 "SunOS 5"*)
1147 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether -R must be followed by a space" >&5
1149 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1150 cat > conftest.$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1154 int main() {
1156 ; return 0; }
1158 if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1159 rm -rf conftest*
1160 ac_R_nospace=yes
1161 else
1162 echo "configure: failed program was:" >&5
1163 cat conftest.$ac_ext >&5
1164 rm -rf conftest*
1165 ac_R_nospace=no
1167 rm -f conftest*
1168 if test $ac_R_nospace = yes; then
1169 echo "$ac_t""no" 1>&6
1170 X_LIBS="$X_LIBS -R$x_libraries"
1171 else
1172 LIBS="$ac_xsave_LIBS -R $x_libraries"
1173 cat > conftest.$ac_ext <<EOF
1174 #line 1175 "configure"
1175 #include "confdefs.h"
1177 int main() {
1179 ; return 0; }
1181 if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1182 rm -rf conftest*
1183 ac_R_space=yes
1184 else
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1187 rm -rf conftest*
1188 ac_R_space=no
1190 rm -f conftest*
1191 if test $ac_R_space = yes; then
1192 echo "$ac_t""yes" 1>&6
1193 X_LIBS="$X_LIBS -R $x_libraries"
1194 else
1195 echo "$ac_t""neither works" 1>&6
1198 LIBS="$ac_xsave_LIBS"
1199 esac
1202 # Check for system-dependent libraries X programs must link with.
1203 # Do this before checking for the system-independent R6 libraries
1204 # (-lICE), since we may need -lsocket or whatever for X linking.
1206 if test "$ISC" = yes; then
1207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1208 else
1209 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1210 # libraries were built with DECnet support. And karl@cs.umb.edu says
1211 # the Alpha needs dnet_stub (dnet does not exist).
1212 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1213 echo "configure:1214: checking for dnet_ntoa in -ldnet" >&5
1214 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 ac_save_LIBS="$LIBS"
1219 LIBS="-ldnet $LIBS"
1220 cat > conftest.$ac_ext <<EOF
1221 #line 1222 "configure"
1222 #include "confdefs.h"
1223 /* Override any gcc2 internal prototype to avoid an error. */
1224 /* We use char because int might match the return type of a gcc2
1225 builtin and then its argument prototype would still apply. */
1226 char dnet_ntoa();
1228 int main() {
1229 dnet_ntoa()
1230 ; return 0; }
1232 if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1233 rm -rf conftest*
1234 eval "ac_cv_lib_$ac_lib_var=yes"
1235 else
1236 echo "configure: failed program was:" >&5
1237 cat conftest.$ac_ext >&5
1238 rm -rf conftest*
1239 eval "ac_cv_lib_$ac_lib_var=no"
1241 rm -f conftest*
1242 LIBS="$ac_save_LIBS"
1245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1247 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1248 else
1249 echo "$ac_t""no" 1>&6
1252 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1253 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1254 echo "configure:1255: checking for dnet_ntoa in -ldnet_stub" >&5
1255 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1258 else
1259 ac_save_LIBS="$LIBS"
1260 LIBS="-ldnet_stub $LIBS"
1261 cat > conftest.$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1264 /* Override any gcc2 internal prototype to avoid an error. */
1265 /* We use char because int might match the return type of a gcc2
1266 builtin and then its argument prototype would still apply. */
1267 char dnet_ntoa();
1269 int main() {
1270 dnet_ntoa()
1271 ; return 0; }
1273 if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1274 rm -rf conftest*
1275 eval "ac_cv_lib_$ac_lib_var=yes"
1276 else
1277 echo "configure: failed program was:" >&5
1278 cat conftest.$ac_ext >&5
1279 rm -rf conftest*
1280 eval "ac_cv_lib_$ac_lib_var=no"
1282 rm -f conftest*
1283 LIBS="$ac_save_LIBS"
1286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1287 echo "$ac_t""yes" 1>&6
1288 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1289 else
1290 echo "$ac_t""no" 1>&6
1295 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1296 # to get the SysV transport functions.
1297 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1298 # needs -lnsl.
1299 # The nsl library prevents programs from opening the X display
1300 # on Irix 5.2, according to dickey@clark.net.
1301 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1302 echo "configure:1303: checking for gethostbyname" >&5
1303 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306 cat > conftest.$ac_ext <<EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1309 /* System header to define __stub macros and hopefully few prototypes,
1310 which can conflict with char gethostbyname(); below. */
1311 #include <assert.h>
1312 /* Override any gcc2 internal prototype to avoid an error. */
1313 /* We use char because int might match the return type of a gcc2
1314 builtin and then its argument prototype would still apply. */
1315 char gethostbyname();
1317 int main() {
1319 /* The GNU C library defines this for functions which it implements
1320 to always fail with ENOSYS. Some functions are actually named
1321 something starting with __ and the normal name is an alias. */
1322 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1323 choke me
1324 #else
1325 gethostbyname();
1326 #endif
1328 ; return 0; }
1330 if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1331 rm -rf conftest*
1332 eval "ac_cv_func_gethostbyname=yes"
1333 else
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1336 rm -rf conftest*
1337 eval "ac_cv_func_gethostbyname=no"
1339 rm -f conftest*
1342 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1343 echo "$ac_t""yes" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1349 if test $ac_cv_func_gethostbyname = no; then
1350 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1351 echo "configure:1352: checking for gethostbyname in -lnsl" >&5
1352 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1355 else
1356 ac_save_LIBS="$LIBS"
1357 LIBS="-lnsl $LIBS"
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1361 /* Override any gcc2 internal prototype to avoid an error. */
1362 /* We use char because int might match the return type of a gcc2
1363 builtin and then its argument prototype would still apply. */
1364 char gethostbyname();
1366 int main() {
1367 gethostbyname()
1368 ; return 0; }
1370 if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1371 rm -rf conftest*
1372 eval "ac_cv_lib_$ac_lib_var=yes"
1373 else
1374 echo "configure: failed program was:" >&5
1375 cat conftest.$ac_ext >&5
1376 rm -rf conftest*
1377 eval "ac_cv_lib_$ac_lib_var=no"
1379 rm -f conftest*
1380 LIBS="$ac_save_LIBS"
1383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1385 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1386 else
1387 echo "$ac_t""no" 1>&6
1392 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1393 # socket/setsockopt and other routines are undefined under SCO ODT
1394 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1395 # on later versions), says simon@lia.di.epfl.ch: it contains
1396 # gethostby* variants that don't use the nameserver (or something).
1397 # -lsocket must be given before -lnsl if both are needed.
1398 # We assume that if connect needs -lnsl, so does gethostbyname.
1399 echo $ac_n "checking for connect""... $ac_c" 1>&6
1400 echo "configure:1401: checking for connect" >&5
1401 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403 else
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 /* System header to define __stub macros and hopefully few prototypes,
1408 which can conflict with char connect(); below. */
1409 #include <assert.h>
1410 /* Override any gcc2 internal prototype to avoid an error. */
1411 /* We use char because int might match the return type of a gcc2
1412 builtin and then its argument prototype would still apply. */
1413 char connect();
1415 int main() {
1417 /* The GNU C library defines this for functions which it implements
1418 to always fail with ENOSYS. Some functions are actually named
1419 something starting with __ and the normal name is an alias. */
1420 #if defined (__stub_connect) || defined (__stub___connect)
1421 choke me
1422 #else
1423 connect();
1424 #endif
1426 ; return 0; }
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1429 rm -rf conftest*
1430 eval "ac_cv_func_connect=yes"
1431 else
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1434 rm -rf conftest*
1435 eval "ac_cv_func_connect=no"
1437 rm -f conftest*
1440 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1443 else
1444 echo "$ac_t""no" 1>&6
1447 if test $ac_cv_func_connect = no; then
1448 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1449 echo "configure:1450: checking for connect in -lsocket" >&5
1450 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454 ac_save_LIBS="$LIBS"
1455 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 /* Override any gcc2 internal prototype to avoid an error. */
1460 /* We use char because int might match the return type of a gcc2
1461 builtin and then its argument prototype would still apply. */
1462 char connect();
1464 int main() {
1465 connect()
1466 ; return 0; }
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1469 rm -rf conftest*
1470 eval "ac_cv_lib_$ac_lib_var=yes"
1471 else
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1474 rm -rf conftest*
1475 eval "ac_cv_lib_$ac_lib_var=no"
1477 rm -f conftest*
1478 LIBS="$ac_save_LIBS"
1481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1484 else
1485 echo "$ac_t""no" 1>&6
1490 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1491 echo $ac_n "checking for remove""... $ac_c" 1>&6
1492 echo "configure:1493: checking for remove" >&5
1493 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1495 else
1496 cat > conftest.$ac_ext <<EOF
1497 #line 1498 "configure"
1498 #include "confdefs.h"
1499 /* System header to define __stub macros and hopefully few prototypes,
1500 which can conflict with char remove(); below. */
1501 #include <assert.h>
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1505 char remove();
1507 int main() {
1509 /* The GNU C library defines this for functions which it implements
1510 to always fail with ENOSYS. Some functions are actually named
1511 something starting with __ and the normal name is an alias. */
1512 #if defined (__stub_remove) || defined (__stub___remove)
1513 choke me
1514 #else
1515 remove();
1516 #endif
1518 ; return 0; }
1520 if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1521 rm -rf conftest*
1522 eval "ac_cv_func_remove=yes"
1523 else
1524 echo "configure: failed program was:" >&5
1525 cat conftest.$ac_ext >&5
1526 rm -rf conftest*
1527 eval "ac_cv_func_remove=no"
1529 rm -f conftest*
1532 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1533 echo "$ac_t""yes" 1>&6
1535 else
1536 echo "$ac_t""no" 1>&6
1539 if test $ac_cv_func_remove = no; then
1540 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1541 echo "configure:1542: checking for remove in -lposix" >&5
1542 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546 ac_save_LIBS="$LIBS"
1547 LIBS="-lposix $LIBS"
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 /* Override any gcc2 internal prototype to avoid an error. */
1552 /* We use char because int might match the return type of a gcc2
1553 builtin and then its argument prototype would still apply. */
1554 char remove();
1556 int main() {
1557 remove()
1558 ; return 0; }
1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1561 rm -rf conftest*
1562 eval "ac_cv_lib_$ac_lib_var=yes"
1563 else
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1566 rm -rf conftest*
1567 eval "ac_cv_lib_$ac_lib_var=no"
1569 rm -f conftest*
1570 LIBS="$ac_save_LIBS"
1573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1574 echo "$ac_t""yes" 1>&6
1575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1576 else
1577 echo "$ac_t""no" 1>&6
1582 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1583 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1584 echo "configure:1585: checking for shmat" >&5
1585 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 /* System header to define __stub macros and hopefully few prototypes,
1592 which can conflict with char shmat(); below. */
1593 #include <assert.h>
1594 /* Override any gcc2 internal prototype to avoid an error. */
1595 /* We use char because int might match the return type of a gcc2
1596 builtin and then its argument prototype would still apply. */
1597 char shmat();
1599 int main() {
1601 /* The GNU C library defines this for functions which it implements
1602 to always fail with ENOSYS. Some functions are actually named
1603 something starting with __ and the normal name is an alias. */
1604 #if defined (__stub_shmat) || defined (__stub___shmat)
1605 choke me
1606 #else
1607 shmat();
1608 #endif
1610 ; return 0; }
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1613 rm -rf conftest*
1614 eval "ac_cv_func_shmat=yes"
1615 else
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1618 rm -rf conftest*
1619 eval "ac_cv_func_shmat=no"
1621 rm -f conftest*
1624 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1625 echo "$ac_t""yes" 1>&6
1627 else
1628 echo "$ac_t""no" 1>&6
1631 if test $ac_cv_func_shmat = no; then
1632 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1633 echo "configure:1634: checking for shmat in -lipc" >&5
1634 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1637 else
1638 ac_save_LIBS="$LIBS"
1639 LIBS="-lipc $LIBS"
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 /* Override any gcc2 internal prototype to avoid an error. */
1644 /* We use char because int might match the return type of a gcc2
1645 builtin and then its argument prototype would still apply. */
1646 char shmat();
1648 int main() {
1649 shmat()
1650 ; return 0; }
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1653 rm -rf conftest*
1654 eval "ac_cv_lib_$ac_lib_var=yes"
1655 else
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1658 rm -rf conftest*
1659 eval "ac_cv_lib_$ac_lib_var=no"
1661 rm -f conftest*
1662 LIBS="$ac_save_LIBS"
1665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1666 echo "$ac_t""yes" 1>&6
1667 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1668 else
1669 echo "$ac_t""no" 1>&6
1675 # Check for libraries that X11R6 Xt/Xaw programs need.
1676 ac_save_LDFLAGS="$LDFLAGS"
1677 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1678 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1679 # check for ICE first), but we must link in the order -lSM -lICE or
1680 # we get undefined symbols. So assume we have SM if we have ICE.
1681 # These have to be linked with before -lX11, unlike the other
1682 # libraries we check for below, so use a different variable.
1683 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1684 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1685 echo "configure:1686: checking for IceConnectionNumber in -lICE" >&5
1686 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1689 else
1690 ac_save_LIBS="$LIBS"
1691 LIBS="-lICE $LIBS"
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1698 char IceConnectionNumber();
1700 int main() {
1701 IceConnectionNumber()
1702 ; return 0; }
1704 if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1705 rm -rf conftest*
1706 eval "ac_cv_lib_$ac_lib_var=yes"
1707 else
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1710 rm -rf conftest*
1711 eval "ac_cv_lib_$ac_lib_var=no"
1713 rm -f conftest*
1714 LIBS="$ac_save_LIBS"
1717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1718 echo "$ac_t""yes" 1>&6
1719 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1720 else
1721 echo "$ac_t""no" 1>&6
1724 LDFLAGS="$ac_save_LDFLAGS"
1728 for ac_prog in 'bison -y' byacc
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_word" >&5
1734 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1736 else
1737 if test -n "$YACC"; then
1738 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1739 else
1740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1741 for ac_dir in $PATH; do
1742 test -z "$ac_dir" && ac_dir=.
1743 if test -f $ac_dir/$ac_word; then
1744 ac_cv_prog_YACC="$ac_prog"
1745 break
1747 done
1748 IFS="$ac_save_ifs"
1751 YACC="$ac_cv_prog_YACC"
1752 if test -n "$YACC"; then
1753 echo "$ac_t""$YACC" 1>&6
1754 else
1755 echo "$ac_t""no" 1>&6
1758 test -n "$YACC" && break
1759 done
1760 test -n "$YACC" || YACC="yacc"
1762 # Extract the first word of "flex", so it can be a program name with args.
1763 set dummy flex; ac_word=$2
1764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1765 echo "configure:1766: checking for $ac_word" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1768 else
1769 if test -n "$LEX"; then
1770 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1771 else
1772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1773 for ac_dir in $PATH; do
1774 test -z "$ac_dir" && ac_dir=.
1775 if test -f $ac_dir/$ac_word; then
1776 ac_cv_prog_LEX="flex"
1777 break
1779 done
1780 IFS="$ac_save_ifs"
1781 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1784 LEX="$ac_cv_prog_LEX"
1785 if test -n "$LEX"; then
1786 echo "$ac_t""$LEX" 1>&6
1787 else
1788 echo "$ac_t""no" 1>&6
1791 if test -z "$LEXLIB"
1792 then
1793 case "$LEX" in
1794 flex*) ac_lib=fl ;;
1795 *) ac_lib=l ;;
1796 esac
1797 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1798 echo "configure:1799: checking for yywrap in -l$ac_lib" >&5
1799 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 ac_save_LIBS="$LIBS"
1804 LIBS="-l$ac_lib $LIBS"
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 /* Override any gcc2 internal prototype to avoid an error. */
1809 /* We use char because int might match the return type of a gcc2
1810 builtin and then its argument prototype would still apply. */
1811 char yywrap();
1813 int main() {
1814 yywrap()
1815 ; return 0; }
1817 if { (eval echo configure:1818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1818 rm -rf conftest*
1819 eval "ac_cv_lib_$ac_lib_var=yes"
1820 else
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1823 rm -rf conftest*
1824 eval "ac_cv_lib_$ac_lib_var=no"
1826 rm -f conftest*
1827 LIBS="$ac_save_LIBS"
1830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1832 LEXLIB="-l$ac_lib"
1833 else
1834 echo "$ac_t""no" 1>&6
1839 # Extract the first word of "ranlib", so it can be a program name with args.
1840 set dummy ranlib; ac_word=$2
1841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1842 echo "configure:1843: checking for $ac_word" >&5
1843 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1845 else
1846 if test -n "$RANLIB"; then
1847 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1848 else
1849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1850 for ac_dir in $PATH; do
1851 test -z "$ac_dir" && ac_dir=.
1852 if test -f $ac_dir/$ac_word; then
1853 ac_cv_prog_RANLIB="ranlib"
1854 break
1856 done
1857 IFS="$ac_save_ifs"
1858 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1861 RANLIB="$ac_cv_prog_RANLIB"
1862 if test -n "$RANLIB"; then
1863 echo "$ac_t""$RANLIB" 1>&6
1864 else
1865 echo "$ac_t""no" 1>&6
1868 # Find a good install program. We prefer a C program (faster),
1869 # so one script is as good as another. But avoid the broken or
1870 # incompatible versions:
1871 # SysV /etc/install, /usr/sbin/install
1872 # SunOS /usr/etc/install
1873 # IRIX /sbin/install
1874 # AIX /bin/install
1875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1877 # ./install, which can be erroneously created by make from ./install.sh.
1878 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1879 echo "configure:1880: checking for a BSD compatible install" >&5
1880 if test -z "$INSTALL"; then
1881 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1885 for ac_dir in $PATH; do
1886 # Account for people who put trailing slashes in PATH elements.
1887 case "$ac_dir/" in
1888 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1890 # OSF1 and SCO ODT 3.0 have their own names for install.
1891 for ac_prog in ginstall installbsd scoinst install; do
1892 if test -f $ac_dir/$ac_prog; then
1893 if test $ac_prog = install &&
1894 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1895 # AIX install. It has an incompatible calling convention.
1896 # OSF/1 installbsd also uses dspmsg, but is usable.
1898 else
1899 ac_cv_path_install="$ac_dir/$ac_prog -c"
1900 break 2
1903 done
1905 esac
1906 done
1907 IFS="$ac_save_IFS"
1910 if test "${ac_cv_path_install+set}" = set; then
1911 INSTALL="$ac_cv_path_install"
1912 else
1913 # As a last resort, use the slow shell script. We don't cache a
1914 # path for INSTALL within a source directory, because that will
1915 # break other packages using the cache if that directory is
1916 # removed, or if the path is relative.
1917 INSTALL="$ac_install_sh"
1920 echo "$ac_t""$INSTALL" 1>&6
1922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1923 # It thinks the first close brace ends the variable substitution.
1924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1926 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1928 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1929 echo "configure:1930: checking whether ln -s works" >&5
1930 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933 rm -f conftestdata
1934 if ln -s X conftestdata 2>/dev/null
1935 then
1936 rm -f conftestdata
1937 ac_cv_prog_LN_S="ln -s"
1938 else
1939 ac_cv_prog_LN_S=ln
1942 LN_S="$ac_cv_prog_LN_S"
1943 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1944 echo "$ac_t""yes" 1>&6
1945 else
1946 echo "$ac_t""no" 1>&6
1949 # Extract the first word of "c2man", so it can be a program name with args.
1950 set dummy c2man; ac_word=$2
1951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_word" >&5
1953 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1955 else
1956 if test -n "$C2MAN"; then
1957 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1958 else
1959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1960 for ac_dir in $PATH; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_C2MAN="c2man"
1964 break
1966 done
1967 IFS="$ac_save_ifs"
1968 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1971 C2MAN="$ac_cv_prog_C2MAN"
1972 if test -n "$C2MAN"; then
1973 echo "$ac_t""$C2MAN" 1>&6
1974 else
1975 echo "$ac_t""no" 1>&6
1978 # Extract the first word of "ldconfig", so it can be a program name with args.
1979 set dummy ldconfig; ac_word=$2
1980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_word" >&5
1982 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985 case "$LDCONFIG" in
1987 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
1990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1991 for ac_dir in /sbin:/usr/sbin:$PATH$ac_dummy; do
1992 test -z "$ac_dir" && ac_dir=.
1993 if test -f $ac_dir/$ac_word; then
1994 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
1995 break
1997 done
1998 IFS="$ac_save_ifs"
1999 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="false"
2001 esac
2003 LDCONFIG="$ac_cv_path_LDCONFIG"
2004 if test -n "$LDCONFIG"; then
2005 echo "$ac_t""$LDCONFIG" 1>&6
2006 else
2007 echo "$ac_t""no" 1>&6
2012 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2013 echo "configure:2014: checking for sqrt in -lm" >&5
2014 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2017 else
2018 ac_save_LIBS="$LIBS"
2019 LIBS="-lm $LIBS"
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2023 /* Override any gcc2 internal prototype to avoid an error. */
2024 /* We use char because int might match the return type of a gcc2
2025 builtin and then its argument prototype would still apply. */
2026 char sqrt();
2028 int main() {
2029 sqrt()
2030 ; return 0; }
2032 if { (eval echo configure:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2033 rm -rf conftest*
2034 eval "ac_cv_lib_$ac_lib_var=yes"
2035 else
2036 echo "configure: failed program was:" >&5
2037 cat conftest.$ac_ext >&5
2038 rm -rf conftest*
2039 eval "ac_cv_lib_$ac_lib_var=no"
2041 rm -f conftest*
2042 LIBS="$ac_save_LIBS"
2045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2046 echo "$ac_t""yes" 1>&6
2047 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2048 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2049 cat >> confdefs.h <<EOF
2050 #define $ac_tr_lib 1
2053 LIBS="-lm $LIBS"
2055 else
2056 echo "$ac_t""no" 1>&6
2059 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2060 echo "configure:2061: checking for i386_set_ldt in -li386" >&5
2061 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2064 else
2065 ac_save_LIBS="$LIBS"
2066 LIBS="-li386 $LIBS"
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 /* Override any gcc2 internal prototype to avoid an error. */
2071 /* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2073 char i386_set_ldt();
2075 int main() {
2076 i386_set_ldt()
2077 ; return 0; }
2079 if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2080 rm -rf conftest*
2081 eval "ac_cv_lib_$ac_lib_var=yes"
2082 else
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2085 rm -rf conftest*
2086 eval "ac_cv_lib_$ac_lib_var=no"
2088 rm -f conftest*
2089 LIBS="$ac_save_LIBS"
2092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2094 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2095 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2096 cat >> confdefs.h <<EOF
2097 #define $ac_tr_lib 1
2100 LIBS="-li386 $LIBS"
2102 else
2103 echo "$ac_t""no" 1>&6
2106 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2107 echo "configure:2108: checking for _oss_ioctl in -lossaudio" >&5
2108 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2111 else
2112 ac_save_LIBS="$LIBS"
2113 LIBS="-lossaudio $LIBS"
2114 cat > conftest.$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2117 /* Override any gcc2 internal prototype to avoid an error. */
2118 /* We use char because int might match the return type of a gcc2
2119 builtin and then its argument prototype would still apply. */
2120 char _oss_ioctl();
2122 int main() {
2123 _oss_ioctl()
2124 ; return 0; }
2126 if { (eval echo configure:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2127 rm -rf conftest*
2128 eval "ac_cv_lib_$ac_lib_var=yes"
2129 else
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 rm -rf conftest*
2133 eval "ac_cv_lib_$ac_lib_var=no"
2135 rm -f conftest*
2136 LIBS="$ac_save_LIBS"
2139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2140 echo "$ac_t""yes" 1>&6
2141 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2143 cat >> confdefs.h <<EOF
2144 #define $ac_tr_lib 1
2147 LIBS="-lossaudio $LIBS"
2149 else
2150 echo "$ac_t""no" 1>&6
2153 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2154 echo "configure:2155: checking for iswalnum in -lw" >&5
2155 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2158 else
2159 ac_save_LIBS="$LIBS"
2160 LIBS="-lw $LIBS"
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2164 /* Override any gcc2 internal prototype to avoid an error. */
2165 /* We use char because int might match the return type of a gcc2
2166 builtin and then its argument prototype would still apply. */
2167 char iswalnum();
2169 int main() {
2170 iswalnum()
2171 ; return 0; }
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2174 rm -rf conftest*
2175 eval "ac_cv_lib_$ac_lib_var=yes"
2176 else
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2179 rm -rf conftest*
2180 eval "ac_cv_lib_$ac_lib_var=no"
2182 rm -f conftest*
2183 LIBS="$ac_save_LIBS"
2186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2188 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2189 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2190 cat >> confdefs.h <<EOF
2191 #define $ac_tr_lib 1
2194 LIBS="-lw $LIBS"
2196 else
2197 echo "$ac_t""no" 1>&6
2200 for ac_func in gethostbyname
2202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_func" >&5
2204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2206 else
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2210 /* System header to define __stub macros and hopefully few prototypes,
2211 which can conflict with char $ac_func(); below. */
2212 #include <assert.h>
2213 /* Override any gcc2 internal prototype to avoid an error. */
2214 /* We use char because int might match the return type of a gcc2
2215 builtin and then its argument prototype would still apply. */
2216 char $ac_func();
2218 int main() {
2220 /* The GNU C library defines this for functions which it implements
2221 to always fail with ENOSYS. Some functions are actually named
2222 something starting with __ and the normal name is an alias. */
2223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2224 choke me
2225 #else
2226 $ac_func();
2227 #endif
2229 ; return 0; }
2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2232 rm -rf conftest*
2233 eval "ac_cv_func_$ac_func=yes"
2234 else
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2237 rm -rf conftest*
2238 eval "ac_cv_func_$ac_func=no"
2240 rm -f conftest*
2243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2244 echo "$ac_t""yes" 1>&6
2245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2246 cat >> confdefs.h <<EOF
2247 #define $ac_tr_func 1
2250 else
2251 echo "$ac_t""no" 1>&6
2252 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2253 echo "configure:2254: checking for gethostbyname in -lnsl" >&5
2254 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258 ac_save_LIBS="$LIBS"
2259 LIBS="-lnsl $LIBS"
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2263 /* Override any gcc2 internal prototype to avoid an error. */
2264 /* We use char because int might match the return type of a gcc2
2265 builtin and then its argument prototype would still apply. */
2266 char gethostbyname();
2268 int main() {
2269 gethostbyname()
2270 ; return 0; }
2272 if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2273 rm -rf conftest*
2274 eval "ac_cv_lib_$ac_lib_var=yes"
2275 else
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 rm -rf conftest*
2279 eval "ac_cv_lib_$ac_lib_var=no"
2281 rm -f conftest*
2282 LIBS="$ac_save_LIBS"
2285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2286 echo "$ac_t""yes" 1>&6
2287 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2288 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2289 cat >> confdefs.h <<EOF
2290 #define $ac_tr_lib 1
2293 LIBS="-lnsl $LIBS"
2295 else
2296 echo "$ac_t""no" 1>&6
2300 done
2302 for ac_func in connect
2304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2305 echo "configure:2306: checking for $ac_func" >&5
2306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2308 else
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char $ac_func(); below. */
2314 #include <assert.h>
2315 /* Override any gcc2 internal prototype to avoid an error. */
2316 /* We use char because int might match the return type of a gcc2
2317 builtin and then its argument prototype would still apply. */
2318 char $ac_func();
2320 int main() {
2322 /* The GNU C library defines this for functions which it implements
2323 to always fail with ENOSYS. Some functions are actually named
2324 something starting with __ and the normal name is an alias. */
2325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2326 choke me
2327 #else
2328 $ac_func();
2329 #endif
2331 ; return 0; }
2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2334 rm -rf conftest*
2335 eval "ac_cv_func_$ac_func=yes"
2336 else
2337 echo "configure: failed program was:" >&5
2338 cat conftest.$ac_ext >&5
2339 rm -rf conftest*
2340 eval "ac_cv_func_$ac_func=no"
2342 rm -f conftest*
2345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2346 echo "$ac_t""yes" 1>&6
2347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2348 cat >> confdefs.h <<EOF
2349 #define $ac_tr_func 1
2352 else
2353 echo "$ac_t""no" 1>&6
2354 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2355 echo "configure:2356: checking for connect in -lsocket" >&5
2356 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2359 else
2360 ac_save_LIBS="$LIBS"
2361 LIBS="-lsocket $LIBS"
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 /* Override any gcc2 internal prototype to avoid an error. */
2366 /* We use char because int might match the return type of a gcc2
2367 builtin and then its argument prototype would still apply. */
2368 char connect();
2370 int main() {
2371 connect()
2372 ; return 0; }
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2375 rm -rf conftest*
2376 eval "ac_cv_lib_$ac_lib_var=yes"
2377 else
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2380 rm -rf conftest*
2381 eval "ac_cv_lib_$ac_lib_var=no"
2383 rm -f conftest*
2384 LIBS="$ac_save_LIBS"
2387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2388 echo "$ac_t""yes" 1>&6
2389 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2391 cat >> confdefs.h <<EOF
2392 #define $ac_tr_lib 1
2395 LIBS="-lsocket $LIBS"
2397 else
2398 echo "$ac_t""no" 1>&6
2402 done
2404 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2405 echo "configure:2406: checking for setrunelocale in -lxpg4" >&5
2406 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2409 else
2410 ac_save_LIBS="$LIBS"
2411 LIBS="-lxpg4 $LIBS"
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 /* Override any gcc2 internal prototype to avoid an error. */
2416 /* We use char because int might match the return type of a gcc2
2417 builtin and then its argument prototype would still apply. */
2418 char setrunelocale();
2420 int main() {
2421 setrunelocale()
2422 ; return 0; }
2424 if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2425 rm -rf conftest*
2426 eval "ac_cv_lib_$ac_lib_var=yes"
2427 else
2428 echo "configure: failed program was:" >&5
2429 cat conftest.$ac_ext >&5
2430 rm -rf conftest*
2431 eval "ac_cv_lib_$ac_lib_var=no"
2433 rm -f conftest*
2434 LIBS="$ac_save_LIBS"
2437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2439 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2441 cat >> confdefs.h <<EOF
2442 #define $ac_tr_lib 1
2445 LIBS="-lxpg4 $LIBS"
2447 else
2448 echo "$ac_t""no" 1>&6
2451 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2452 echo "configure:2453: checking for mmap in -lmmap" >&5
2453 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2456 else
2457 ac_save_LIBS="$LIBS"
2458 LIBS="-lmmap $LIBS"
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 /* Override any gcc2 internal prototype to avoid an error. */
2463 /* We use char because int might match the return type of a gcc2
2464 builtin and then its argument prototype would still apply. */
2465 char mmap();
2467 int main() {
2468 mmap()
2469 ; return 0; }
2471 if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2472 rm -rf conftest*
2473 eval "ac_cv_lib_$ac_lib_var=yes"
2474 else
2475 echo "configure: failed program was:" >&5
2476 cat conftest.$ac_ext >&5
2477 rm -rf conftest*
2478 eval "ac_cv_lib_$ac_lib_var=no"
2480 rm -f conftest*
2481 LIBS="$ac_save_LIBS"
2484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2485 echo "$ac_t""yes" 1>&6
2486 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2488 cat >> confdefs.h <<EOF
2489 #define $ac_tr_lib 1
2492 LIBS="-lmmap $LIBS"
2494 else
2495 echo "$ac_t""no" 1>&6
2499 for ac_hdr in dlfcn.h
2501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2506 else
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 #include <$ac_hdr>
2512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err=`grep -v '^ *+' conftest.out`
2515 if test -z "$ac_err"; then
2516 rm -rf conftest*
2517 eval "ac_cv_header_$ac_safe=yes"
2518 else
2519 echo "$ac_err" >&5
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 rm -rf conftest*
2523 eval "ac_cv_header_$ac_safe=no"
2525 rm -f conftest*
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h <<EOF
2531 #define $ac_tr_hdr 1
2533 for ac_func in dlopen
2535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2536 echo "configure:2537: checking for $ac_func" >&5
2537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2539 else
2540 cat > conftest.$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2543 /* System header to define __stub macros and hopefully few prototypes,
2544 which can conflict with char $ac_func(); below. */
2545 #include <assert.h>
2546 /* Override any gcc2 internal prototype to avoid an error. */
2547 /* We use char because int might match the return type of a gcc2
2548 builtin and then its argument prototype would still apply. */
2549 char $ac_func();
2551 int main() {
2553 /* The GNU C library defines this for functions which it implements
2554 to always fail with ENOSYS. Some functions are actually named
2555 something starting with __ and the normal name is an alias. */
2556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2557 choke me
2558 #else
2559 $ac_func();
2560 #endif
2562 ; return 0; }
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2565 rm -rf conftest*
2566 eval "ac_cv_func_$ac_func=yes"
2567 else
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2570 rm -rf conftest*
2571 eval "ac_cv_func_$ac_func=no"
2573 rm -f conftest*
2576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2577 echo "$ac_t""yes" 1>&6
2578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2579 cat >> confdefs.h <<EOF
2580 #define $ac_tr_func 1
2582 cat >> confdefs.h <<\EOF
2583 #define HAVE_DL_API 1
2586 else
2587 echo "$ac_t""no" 1>&6
2588 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2589 echo "configure:2590: checking for dlopen in -ldl" >&5
2590 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2593 else
2594 ac_save_LIBS="$LIBS"
2595 LIBS="-ldl $LIBS"
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 /* Override any gcc2 internal prototype to avoid an error. */
2600 /* We use char because int might match the return type of a gcc2
2601 builtin and then its argument prototype would still apply. */
2602 char dlopen();
2604 int main() {
2605 dlopen()
2606 ; return 0; }
2608 if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2609 rm -rf conftest*
2610 eval "ac_cv_lib_$ac_lib_var=yes"
2611 else
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2614 rm -rf conftest*
2615 eval "ac_cv_lib_$ac_lib_var=no"
2617 rm -f conftest*
2618 LIBS="$ac_save_LIBS"
2621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2622 echo "$ac_t""yes" 1>&6
2623 cat >> confdefs.h <<\EOF
2624 #define HAVE_DL_API 1
2627 LIBS="$LIBS -ldl"
2629 else
2630 echo "$ac_t""no" 1>&6
2635 done
2638 else
2639 echo "$ac_t""no" 1>&6
2641 done
2644 if test "$have_x" = "yes"
2645 then
2646 XLIB="-lXext -lX11"
2647 ac_save_CPPFLAGS="$CPPFLAGS"
2648 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2650 for ac_hdr in X11/xpm.h
2652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_hdr" >&5
2655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2657 else
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2661 #include <$ac_hdr>
2663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err=`grep -v '^ *+' conftest.out`
2666 if test -z "$ac_err"; then
2667 rm -rf conftest*
2668 eval "ac_cv_header_$ac_safe=yes"
2669 else
2670 echo "$ac_err" >&5
2671 echo "configure: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2673 rm -rf conftest*
2674 eval "ac_cv_header_$ac_safe=no"
2676 rm -f conftest*
2678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2681 cat >> confdefs.h <<EOF
2682 #define $ac_tr_hdr 1
2685 else
2686 echo "$ac_t""no" 1>&6
2688 done
2690 if test "$ac_cv_header_X11_xpm_h" = "yes"
2691 then
2692 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2693 echo "configure:2694: checking for XpmCreatePixmapFromData in -lXpm" >&5
2694 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2697 else
2698 ac_save_LIBS="$LIBS"
2699 LIBS="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* Override any gcc2 internal prototype to avoid an error. */
2704 /* We use char because int might match the return type of a gcc2
2705 builtin and then its argument prototype would still apply. */
2706 char XpmCreatePixmapFromData();
2708 int main() {
2709 XpmCreatePixmapFromData()
2710 ; return 0; }
2712 if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2713 rm -rf conftest*
2714 eval "ac_cv_lib_$ac_lib_var=yes"
2715 else
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 rm -rf conftest*
2719 eval "ac_cv_lib_$ac_lib_var=no"
2721 rm -f conftest*
2722 LIBS="$ac_save_LIBS"
2725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 cat >> confdefs.h <<\EOF
2728 #define HAVE_LIBXXPM 1
2730 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2731 else
2732 echo "$ac_t""no" 1>&6
2737 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
2739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_hdr" >&5
2742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 #include <$ac_hdr>
2750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err=`grep -v '^ *+' conftest.out`
2753 if test -z "$ac_err"; then
2754 rm -rf conftest*
2755 eval "ac_cv_header_$ac_safe=yes"
2756 else
2757 echo "$ac_err" >&5
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2760 rm -rf conftest*
2761 eval "ac_cv_header_$ac_safe=no"
2763 rm -f conftest*
2765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2768 cat >> confdefs.h <<EOF
2769 #define $ac_tr_hdr 1
2772 else
2773 echo "$ac_t""no" 1>&6
2775 done
2777 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2778 then
2779 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2780 echo "configure:2781: checking for XShmQueryExtension in -lXext" >&5
2781 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2784 else
2785 ac_save_LIBS="$LIBS"
2786 LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS"
2787 cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2790 /* Override any gcc2 internal prototype to avoid an error. */
2791 /* We use char because int might match the return type of a gcc2
2792 builtin and then its argument prototype would still apply. */
2793 char XShmQueryExtension();
2795 int main() {
2796 XShmQueryExtension()
2797 ; return 0; }
2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2800 rm -rf conftest*
2801 eval "ac_cv_lib_$ac_lib_var=yes"
2802 else
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2805 rm -rf conftest*
2806 eval "ac_cv_lib_$ac_lib_var=no"
2808 rm -f conftest*
2809 LIBS="$ac_save_LIBS"
2812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 cat >> confdefs.h <<\EOF
2815 #define HAVE_LIBXXSHM 1
2818 else
2819 echo "$ac_t""no" 1>&6
2823 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
2825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_hdr" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <$ac_hdr>
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out`
2839 if test -z "$ac_err"; then
2840 rm -rf conftest*
2841 eval "ac_cv_header_$ac_safe=yes"
2842 else
2843 echo "$ac_err" >&5
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 rm -rf conftest*
2847 eval "ac_cv_header_$ac_safe=no"
2849 rm -f conftest*
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854 cat >> confdefs.h <<EOF
2855 #define $ac_tr_hdr 1
2858 else
2859 echo "$ac_t""no" 1>&6
2861 done
2863 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2864 then
2865 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2866 echo "configure:2867: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2867 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871 ac_save_LIBS="$LIBS"
2872 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* Override any gcc2 internal prototype to avoid an error. */
2877 /* We use char because int might match the return type of a gcc2
2878 builtin and then its argument prototype would still apply. */
2879 char XF86DGAQueryExtension();
2881 int main() {
2882 XF86DGAQueryExtension()
2883 ; return 0; }
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2886 rm -rf conftest*
2887 eval "ac_cv_lib_$ac_lib_var=yes"
2888 else
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2891 rm -rf conftest*
2892 eval "ac_cv_lib_$ac_lib_var=no"
2894 rm -f conftest*
2895 LIBS="$ac_save_LIBS"
2898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 cat >> confdefs.h <<\EOF
2901 #define HAVE_LIBXXF86DGA 1
2903 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2904 else
2905 echo "$ac_t""no" 1>&6
2910 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
2912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2917 else
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 #include <$ac_hdr>
2923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err=`grep -v '^ *+' conftest.out`
2926 if test -z "$ac_err"; then
2927 rm -rf conftest*
2928 eval "ac_cv_header_$ac_safe=yes"
2929 else
2930 echo "$ac_err" >&5
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -rf conftest*
2934 eval "ac_cv_header_$ac_safe=no"
2936 rm -f conftest*
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h <<EOF
2942 #define $ac_tr_hdr 1
2945 else
2946 echo "$ac_t""no" 1>&6
2948 done
2950 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
2951 then
2952 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2953 echo "configure:2954: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2954 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957 else
2958 ac_save_LIBS="$LIBS"
2959 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 /* We use char because int might match the return type of a gcc2
2965 builtin and then its argument prototype would still apply. */
2966 char XF86VidModeQueryExtension();
2968 int main() {
2969 XF86VidModeQueryExtension()
2970 ; return 0; }
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2973 rm -rf conftest*
2974 eval "ac_cv_lib_$ac_lib_var=yes"
2975 else
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2978 rm -rf conftest*
2979 eval "ac_cv_lib_$ac_lib_var=no"
2981 rm -f conftest*
2982 LIBS="$ac_save_LIBS"
2985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2986 echo "$ac_t""yes" 1>&6
2987 cat >> confdefs.h <<\EOF
2988 #define HAVE_LIBXXF86VM 1
2990 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
2991 else
2992 echo "$ac_t""no" 1>&6
2997 for ac_hdr in GL/gl.h GL/osmesa.h
2999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_hdr" >&5
3002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3004 else
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <$ac_hdr>
3010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3011 { (eval echo configure:3012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3012 ac_err=`grep -v '^ *+' conftest.out`
3013 if test -z "$ac_err"; then
3014 rm -rf conftest*
3015 eval "ac_cv_header_$ac_safe=yes"
3016 else
3017 echo "$ac_err" >&5
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3020 rm -rf conftest*
3021 eval "ac_cv_header_$ac_safe=no"
3023 rm -f conftest*
3025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3026 echo "$ac_t""yes" 1>&6
3027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3028 cat >> confdefs.h <<EOF
3029 #define $ac_tr_hdr 1
3032 else
3033 echo "$ac_t""no" 1>&6
3035 done
3037 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_osmesa_h" = "yes"
3038 then
3039 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
3040 echo "configure:3041: checking "for up-to-date Mesa version"" >&5
3041 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3043 else
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 #include <GL/gl.h>
3048 int main() {
3049 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3050 ; return 0; }
3052 if { (eval echo configure:3053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3053 rm -rf conftest*
3054 wine_cv_mesa_version_OK="yes"
3055 else
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3058 rm -rf conftest*
3059 wine_cv_mesa_version_OK="no"
3062 rm -f conftest*
3066 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3068 if test "$wine_cv_mesa_version_OK" = "yes"
3069 then
3070 echo $ac_n "checking for OSMesaCreateContext in -lMesaGL""... $ac_c" 1>&6
3071 echo "configure:3072: checking for OSMesaCreateContext in -lMesaGL" >&5
3072 ac_lib_var=`echo MesaGL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
3073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3075 else
3076 ac_save_LIBS="$LIBS"
3077 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
3078 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 /* Override any gcc2 internal prototype to avoid an error. */
3082 /* We use char because int might match the return type of a gcc2
3083 builtin and then its argument prototype would still apply. */
3084 char OSMesaCreateContext();
3086 int main() {
3087 OSMesaCreateContext()
3088 ; return 0; }
3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3091 rm -rf conftest*
3092 eval "ac_cv_lib_$ac_lib_var=yes"
3093 else
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3096 rm -rf conftest*
3097 eval "ac_cv_lib_$ac_lib_var=no"
3099 rm -f conftest*
3100 LIBS="$ac_save_LIBS"
3103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3104 echo "$ac_t""yes" 1>&6
3105 cat >> confdefs.h <<\EOF
3106 #define HAVE_LIBMESAGL 1
3108 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3109 else
3110 echo "$ac_t""no" 1>&6
3116 CPPFLAGS="$ac_save_CPPFLAGS"
3117 else
3118 XLIB=""
3119 X_CFLAGS=""
3120 X_LIBS=""
3123 for ac_hdr in ncurses.h
3125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3127 echo "configure:3128: checking for $ac_hdr" >&5
3128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3130 else
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #include <$ac_hdr>
3136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3137 { (eval echo configure:3138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3138 ac_err=`grep -v '^ *+' conftest.out`
3139 if test -z "$ac_err"; then
3140 rm -rf conftest*
3141 eval "ac_cv_header_$ac_safe=yes"
3142 else
3143 echo "$ac_err" >&5
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3146 rm -rf conftest*
3147 eval "ac_cv_header_$ac_safe=no"
3149 rm -f conftest*
3151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3152 echo "$ac_t""yes" 1>&6
3153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3154 cat >> confdefs.h <<EOF
3155 #define $ac_tr_hdr 1
3158 else
3159 echo "$ac_t""no" 1>&6
3161 done
3163 if test "$ac_cv_header_ncurses_h" = "yes"
3164 then
3165 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3166 echo "configure:3167: checking for waddch in -lncurses" >&5
3167 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3170 else
3171 ac_save_LIBS="$LIBS"
3172 LIBS="-lncurses $LIBS"
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 /* Override any gcc2 internal prototype to avoid an error. */
3177 /* We use char because int might match the return type of a gcc2
3178 builtin and then its argument prototype would still apply. */
3179 char waddch();
3181 int main() {
3182 waddch()
3183 ; return 0; }
3185 if { (eval echo configure:3186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3186 rm -rf conftest*
3187 eval "ac_cv_lib_$ac_lib_var=yes"
3188 else
3189 echo "configure: failed program was:" >&5
3190 cat conftest.$ac_ext >&5
3191 rm -rf conftest*
3192 eval "ac_cv_lib_$ac_lib_var=no"
3194 rm -f conftest*
3195 LIBS="$ac_save_LIBS"
3198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3199 echo "$ac_t""yes" 1>&6
3200 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3202 cat >> confdefs.h <<EOF
3203 #define $ac_tr_lib 1
3206 LIBS="-lncurses $LIBS"
3208 else
3209 echo "$ac_t""no" 1>&6
3213 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3214 then
3215 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3216 echo "configure:3217: checking for resizeterm in -lncurses" >&5
3217 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3220 else
3221 ac_save_LIBS="$LIBS"
3222 LIBS="-lncurses $LIBS"
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 /* Override any gcc2 internal prototype to avoid an error. */
3227 /* We use char because int might match the return type of a gcc2
3228 builtin and then its argument prototype would still apply. */
3229 char resizeterm();
3231 int main() {
3232 resizeterm()
3233 ; return 0; }
3235 if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3236 rm -rf conftest*
3237 eval "ac_cv_lib_$ac_lib_var=yes"
3238 else
3239 echo "configure: failed program was:" >&5
3240 cat conftest.$ac_ext >&5
3241 rm -rf conftest*
3242 eval "ac_cv_lib_$ac_lib_var=no"
3244 rm -f conftest*
3245 LIBS="$ac_save_LIBS"
3248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3249 echo "$ac_t""yes" 1>&6
3250 cat >> confdefs.h <<\EOF
3251 #define HAVE_RESIZETERM 1
3254 else
3255 echo "$ac_t""no" 1>&6
3258 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3259 echo "configure:3260: checking for getbkgd in -lncurses" >&5
3260 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3263 else
3264 ac_save_LIBS="$LIBS"
3265 LIBS="-lncurses $LIBS"
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 /* Override any gcc2 internal prototype to avoid an error. */
3270 /* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
3272 char getbkgd();
3274 int main() {
3275 getbkgd()
3276 ; return 0; }
3278 if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3279 rm -rf conftest*
3280 eval "ac_cv_lib_$ac_lib_var=yes"
3281 else
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3284 rm -rf conftest*
3285 eval "ac_cv_lib_$ac_lib_var=no"
3287 rm -f conftest*
3288 LIBS="$ac_save_LIBS"
3291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3293 cat >> confdefs.h <<\EOF
3294 #define HAVE_GETBKGD 1
3297 else
3298 echo "$ac_t""no" 1>&6
3301 else
3302 for ac_hdr in curses.h
3304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3306 echo "configure:3307: checking for $ac_hdr" >&5
3307 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3309 else
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #include <$ac_hdr>
3315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3316 { (eval echo configure:3317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3317 ac_err=`grep -v '^ *+' conftest.out`
3318 if test -z "$ac_err"; then
3319 rm -rf conftest*
3320 eval "ac_cv_header_$ac_safe=yes"
3321 else
3322 echo "$ac_err" >&5
3323 echo "configure: failed program was:" >&5
3324 cat conftest.$ac_ext >&5
3325 rm -rf conftest*
3326 eval "ac_cv_header_$ac_safe=no"
3328 rm -f conftest*
3330 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3333 cat >> confdefs.h <<EOF
3334 #define $ac_tr_hdr 1
3337 else
3338 echo "$ac_t""no" 1>&6
3340 done
3342 if test "$ac_cv_header_curses_h" = "yes"
3343 then
3344 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3345 echo "configure:3346: checking for waddch in -lcurses" >&5
3346 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3349 else
3350 ac_save_LIBS="$LIBS"
3351 LIBS="-lcurses $LIBS"
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 /* We use char because int might match the return type of a gcc2
3357 builtin and then its argument prototype would still apply. */
3358 char waddch();
3360 int main() {
3361 waddch()
3362 ; return 0; }
3364 if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3365 rm -rf conftest*
3366 eval "ac_cv_lib_$ac_lib_var=yes"
3367 else
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3370 rm -rf conftest*
3371 eval "ac_cv_lib_$ac_lib_var=no"
3373 rm -f conftest*
3374 LIBS="$ac_save_LIBS"
3377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3378 echo "$ac_t""yes" 1>&6
3379 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3381 cat >> confdefs.h <<EOF
3382 #define $ac_tr_lib 1
3385 LIBS="-lcurses $LIBS"
3387 else
3388 echo "$ac_t""no" 1>&6
3391 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3392 echo "configure:3393: checking for resizeterm in -lcurses" >&5
3393 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3396 else
3397 ac_save_LIBS="$LIBS"
3398 LIBS="-lcurses $LIBS"
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 /* Override any gcc2 internal prototype to avoid an error. */
3403 /* We use char because int might match the return type of a gcc2
3404 builtin and then its argument prototype would still apply. */
3405 char resizeterm();
3407 int main() {
3408 resizeterm()
3409 ; return 0; }
3411 if { (eval echo configure:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3412 rm -rf conftest*
3413 eval "ac_cv_lib_$ac_lib_var=yes"
3414 else
3415 echo "configure: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3417 rm -rf conftest*
3418 eval "ac_cv_lib_$ac_lib_var=no"
3420 rm -f conftest*
3421 LIBS="$ac_save_LIBS"
3424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3425 echo "$ac_t""yes" 1>&6
3426 cat >> confdefs.h <<\EOF
3427 #define HAVE_RESIZETERM 1
3430 else
3431 echo "$ac_t""no" 1>&6
3434 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3435 echo "configure:3436: checking for getbkgd in -lcurses" >&5
3436 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3439 else
3440 ac_save_LIBS="$LIBS"
3441 LIBS="-lcurses $LIBS"
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3448 char getbkgd();
3450 int main() {
3451 getbkgd()
3452 ; return 0; }
3454 if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3455 rm -rf conftest*
3456 eval "ac_cv_lib_$ac_lib_var=yes"
3457 else
3458 echo "configure: failed program was:" >&5
3459 cat conftest.$ac_ext >&5
3460 rm -rf conftest*
3461 eval "ac_cv_lib_$ac_lib_var=no"
3463 rm -f conftest*
3464 LIBS="$ac_save_LIBS"
3467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 cat >> confdefs.h <<\EOF
3470 #define HAVE_GETBKGD 1
3473 else
3474 echo "$ac_t""no" 1>&6
3480 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
3481 echo "configure:3482: checking "for GNU style IPX support"" >&5
3482 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3484 else
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 #include <sys/socket.h>
3489 #include <netipx/ipx.h>
3490 int main() {
3491 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3492 ; return 0; }
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495 rm -rf conftest*
3496 cat >> confdefs.h <<\EOF
3497 #define HAVE_IPX_GNU 1
3500 ac_cv_c_ipx_gnu="yes"
3501 else
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 rm -rf conftest*
3505 ac_cv_c_ipx_gnu="no"
3507 rm -f conftest*
3511 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3513 if test "$ac_cv_c_ipx_gnu" = "no"
3514 then
3515 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
3516 echo "configure:3517: checking "for linux style IPX support"" >&5
3517 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3519 else
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <sys/socket.h>
3524 #include <asm/types.h>
3525 #include <linux/ipx.h>
3526 int main() {
3527 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3528 ; return 0; }
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3531 rm -rf conftest*
3532 cat >> confdefs.h <<\EOF
3533 #define HAVE_IPX_LINUX 1
3536 ac_cv_c_ipx_linux="yes"
3537 else
3538 echo "configure: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3540 rm -rf conftest*
3541 ac_cv_c_ipx_linux="no"
3543 rm -f conftest*
3547 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3550 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
3552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3554 echo "configure:3555: checking for $ac_hdr" >&5
3555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3557 else
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <$ac_hdr>
3563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3564 { (eval echo configure:3565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3565 ac_err=`grep -v '^ *+' conftest.out`
3566 if test -z "$ac_err"; then
3567 rm -rf conftest*
3568 eval "ac_cv_header_$ac_safe=yes"
3569 else
3570 echo "$ac_err" >&5
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 rm -rf conftest*
3574 eval "ac_cv_header_$ac_safe=no"
3576 rm -f conftest*
3578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3579 echo "$ac_t""yes" 1>&6
3580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3581 cat >> confdefs.h <<EOF
3582 #define $ac_tr_hdr 1
3584 break
3585 else
3586 echo "$ac_t""no" 1>&6
3588 done
3591 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
3592 echo "configure:3593: checking "for Open Sound System"" >&5
3593 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3595 else
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3600 #if defined(HAVE_SYS_SOUNDCARD_H)
3601 #include <sys/soundcard.h>
3602 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3603 #include <machine/soundcard.h>
3604 #elif defined(HAVE_SOUNDCARD_H)
3605 #include <soundcard.h>
3606 #endif
3608 int main() {
3611 /* check for one of the Open Sound System specific SNDCTL_ defines */
3612 #if !defined(SNDCTL_DSP_STEREO)
3613 #error No open sound system
3614 #endif
3616 ; return 0; }
3618 if { (eval echo configure:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3619 rm -rf conftest*
3620 ac_cv_c_opensoundsystem="yes"
3621 else
3622 echo "configure: failed program was:" >&5
3623 cat conftest.$ac_ext >&5
3624 rm -rf conftest*
3625 ac_cv_c_opensoundsystem="no"
3627 rm -f conftest*
3630 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3632 if test "$ac_cv_c_opensoundsystem" = "yes"
3633 then
3634 cat >> confdefs.h <<\EOF
3635 #define HAVE_OSS 1
3640 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
3641 echo "configure:3642: checking "for Open Sound System/MIDI interface"" >&5
3642 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3644 else
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3649 #if defined(HAVE_SYS_SOUNDCARD_H)
3650 #include <sys/soundcard.h>
3651 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3652 #include <machine/soundcard.h>
3653 #elif defined(HAVE_SOUNDCARD_H)
3654 #include <soundcard.h>
3655 #endif
3657 int main() {
3660 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
3661 #if !defined(SNDCTL_SEQ_SYNC)
3662 #error No open sound system MIDI interface
3663 #endif
3665 ; return 0; }
3667 if { (eval echo configure:3668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668 rm -rf conftest*
3669 ac_cv_c_opensoundsystem_midi="yes"
3670 else
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 rm -rf conftest*
3674 ac_cv_c_opensoundsystem_midi="no"
3676 rm -f conftest*
3679 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
3681 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
3682 then
3683 cat >> confdefs.h <<\EOF
3684 #define HAVE_OSS_MIDI 1
3689 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
3692 if test "x${GCC}" = "xyes"
3693 then
3694 CFLAGS="$CFLAGS -Wall"
3695 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
3696 echo "configure:3697: checking "for gcc strength-reduce bug"" >&5
3697 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3699 else
3700 if test "$cross_compiling" = yes; then
3701 ac_cv_c_gcc_strength_bug="yes"
3702 else
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3707 int main(void) {
3708 static int Array[3];
3709 unsigned int B = 3;
3710 int i;
3711 for(i=0; i<B; i++) Array[i] = i - 3;
3712 exit( Array[1] != -2 );
3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3716 then
3717 ac_cv_c_gcc_strength_bug="no"
3718 else
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 rm -fr conftest*
3722 ac_cv_c_gcc_strength_bug="yes"
3724 rm -fr conftest*
3729 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3730 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3731 then
3732 CFLAGS="$CFLAGS -fno-strength-reduce"
3737 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
3738 echo "configure:3739: checking "whether external symbols need an underscore prefix"" >&5
3739 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3741 else
3742 saved_libs=$LIBS
3743 LIBS="conftest_asm.s $LIBS"
3744 cat > conftest_asm.s <<EOF
3745 .globl _ac_test
3746 _ac_test:
3747 .long 0
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 extern int ac_test;
3753 int main() {
3754 if (ac_test) return 1
3755 ; return 0; }
3757 if { (eval echo configure:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3758 rm -rf conftest*
3759 ac_cv_c_extern_prefix="yes"
3760 else
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3763 rm -rf conftest*
3764 ac_cv_c_extern_prefix="no"
3766 rm -f conftest*
3767 LIBS=$saved_libs
3770 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3771 if test "$ac_cv_c_extern_prefix" = "yes"
3772 then
3773 cat >> confdefs.h <<\EOF
3774 #define NEED_UNDERSCORE_PREFIX 1
3780 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
3781 echo "configure:3782: checking "whether assembler accepts .string"" >&5
3782 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3784 else
3785 saved_libs=$LIBS
3786 LIBS="conftest_asm.s $LIBS"
3787 cat > conftest_asm.s <<EOF
3788 .string "test"
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3794 int main() {
3796 ; return 0; }
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3799 rm -rf conftest*
3800 ac_cv_c_asm_string="yes"
3801 else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -rf conftest*
3805 ac_cv_c_asm_string="no"
3807 rm -f conftest*
3808 LIBS=$saved_libs
3811 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3812 if test "$ac_cv_c_asm_string" = "yes"
3813 then
3814 cat >> confdefs.h <<\EOF
3815 #define HAVE_ASM_STRING 1
3821 DLLFLAGS=""
3822 BUILDFLAGS=""
3823 LDSHARED=""
3824 if test "$LIB_TARGET" = "libwine.so.1.0"
3825 then
3826 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
3827 echo "configure:3828: checking "whether we can build a Linux dll"" >&5
3828 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3830 else
3831 saved_cflags=$CFLAGS
3832 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3837 int main() {
3838 return 1
3839 ; return 0; }
3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3842 rm -rf conftest*
3843 ac_cv_c_dll_linux="yes"
3844 else
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 rm -rf conftest*
3848 ac_cv_c_dll_linux="no"
3850 rm -f conftest*
3851 CFLAGS=$saved_cflags
3855 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
3856 if test "$ac_cv_c_dll_linux" = "yes"
3857 then
3858 BUILDFLAGS="-pic"
3859 DLLFLAGS="-fPIC"
3860 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
3861 else
3862 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
3863 echo "configure:3864: checking "whether we can build a NetBSD dll"" >&5
3864 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3866 else
3867 saved_cflags=$CFLAGS
3868 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3873 int main() {
3874 return 1
3875 ; return 0; }
3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3878 rm -rf conftest*
3879 ac_cv_c_dll_netbsd="yes"
3880 else
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 rm -rf conftest*
3884 ac_cv_c_dll_netbsd="no"
3886 rm -f conftest*
3887 CFLAGS=$saved_cflags
3891 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
3892 if test "$ac_cv_c_dll_netbsd" = "yes"
3893 then
3894 BUILDFLAGS="-pic"
3895 DLLFLAGS="-fPIC"
3896 LDSHARED="ld -Bshareable -Bforcearchive"
3899 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
3900 then
3901 LIB_TARGET="libwine.a"
3909 wine_cv_libc_reentrant=no
3910 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
3911 echo "configure:3912: checking "for reentrant libc: __errno_location"" >&5
3912 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3914 else
3915 if test "$cross_compiling" = yes; then
3916 wine_cv_libc_r__errno_location=yes
3917 else
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3921 int myerrno = 0;
3922 char buf[256];
3923 int *__errno_location(){return &myerrno;}
3924 main(){connect(0,buf,255); exit(!myerrno);}
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3927 then
3928 wine_cv_libc_r__errno_location=yes
3929 else
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3932 rm -fr conftest*
3933 wine_cv_libc_r__errno_location=no
3935 rm -fr conftest*
3941 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
3942 if test "$wine_cv_libc_r__errno_location" = "yes"
3943 then
3944 cat >> confdefs.h <<\EOF
3945 #define HAVE__ERRNO_LOCATION 1
3948 wine_cv_libc_reentrant=__errno_location
3950 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
3951 echo "configure:3952: checking "for reentrant libc: __error"" >&5
3952 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954 else
3955 if test "$cross_compiling" = yes; then
3956 wine_cv_libc_r__error=yes
3957 else
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 int myerrno = 0;
3962 char buf[256];
3963 int *__error(){return &myerrno;}
3964 main(){connect(0,buf,255); exit(!myerrno);}
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3967 then
3968 wine_cv_libc_r__error=yes
3969 else
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3972 rm -fr conftest*
3973 wine_cv_libc_r__error=no
3975 rm -fr conftest*
3981 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
3982 if test "$wine_cv_libc_r__error" = "yes"
3983 then
3984 cat >> confdefs.h <<\EOF
3985 #define HAVE__ERROR 1
3988 wine_cv_libc_reentrant=__error
3990 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
3991 echo "configure:3992: checking "for reentrant libc: ___errno"" >&5
3992 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3994 else
3995 if test "$cross_compiling" = yes; then
3996 wine_cv_libc_r___errno=yes
3997 else
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 int myerrno = 0;
4002 char buf[256];
4003 int *___errno(){return &myerrno;}
4004 main(){connect(0,buf,255); exit(!myerrno);}
4006 if { (eval echo configure:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4007 then
4008 wine_cv_libc_r___errno=yes
4009 else
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4012 rm -fr conftest*
4013 wine_cv_libc_r___errno=no
4015 rm -fr conftest*
4021 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4022 if test "$wine_cv_libc_r___errno" = "yes"
4023 then
4024 cat >> confdefs.h <<\EOF
4025 #define HAVE___ERRNO 1
4028 wine_cv_libc_reentrant=___errno
4030 if test "$wine_cv_libc_reentrant" = "no"
4031 then
4032 cat >> confdefs.h <<\EOF
4033 #define NO_REENTRANT_LIBC 1
4039 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4040 then
4041 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4042 echo "configure:4043: checking "for reentrant X libraries"" >&5
4043 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4045 else
4046 if test "x$with_reentrant_x" = "xno"
4047 then
4048 wine_cv_x_reentrant=no
4049 else
4050 libX11_check=none
4051 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4052 if test -r $dir/libX11.so; then
4053 libX11_check="-D $dir/libX11.so"
4054 break 1
4056 if test -r $dir/libX11.a; then
4057 libX11_check="$dir/libX11.a"
4058 break 1
4060 done
4061 if test "$libX11_check" != "none"; then
4062 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4063 then
4064 wine_cv_x_reentrant=yes
4065 else
4066 wine_cv_x_reentrant=no
4068 else
4069 wine_cv_x_reentrant=unknown
4074 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4075 else
4076 wine_cv_x_reentrant=no
4078 if test "$wine_cv_x_reentrant" = "no"
4079 then
4080 cat >> confdefs.h <<\EOF
4081 #define NO_REENTRANT_X11 1
4087 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4088 # for constant arguments. Useless!
4089 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4090 echo "configure:4091: checking for working alloca.h" >&5
4091 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4093 else
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4097 #include <alloca.h>
4098 int main() {
4099 char *p = alloca(2 * sizeof(int));
4100 ; return 0; }
4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4103 rm -rf conftest*
4104 ac_cv_header_alloca_h=yes
4105 else
4106 echo "configure: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4108 rm -rf conftest*
4109 ac_cv_header_alloca_h=no
4111 rm -f conftest*
4114 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4115 if test $ac_cv_header_alloca_h = yes; then
4116 cat >> confdefs.h <<\EOF
4117 #define HAVE_ALLOCA_H 1
4122 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4123 echo "configure:4124: checking for alloca" >&5
4124 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4126 else
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4131 #ifdef __GNUC__
4132 # define alloca __builtin_alloca
4133 #else
4134 # if HAVE_ALLOCA_H
4135 # include <alloca.h>
4136 # else
4137 # ifdef _AIX
4138 #pragma alloca
4139 # else
4140 # ifndef alloca /* predefined by HP cc +Olibcalls */
4141 char *alloca ();
4142 # endif
4143 # endif
4144 # endif
4145 #endif
4147 int main() {
4148 char *p = (char *) alloca(1);
4149 ; return 0; }
4151 if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4152 rm -rf conftest*
4153 ac_cv_func_alloca_works=yes
4154 else
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4157 rm -rf conftest*
4158 ac_cv_func_alloca_works=no
4160 rm -f conftest*
4163 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4164 if test $ac_cv_func_alloca_works = yes; then
4165 cat >> confdefs.h <<\EOF
4166 #define HAVE_ALLOCA 1
4171 if test $ac_cv_func_alloca_works = no; then
4172 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4173 # that cause trouble. Some versions do not even contain alloca or
4174 # contain a buggy version. If you still want to use their alloca,
4175 # use ar to extract alloca.o from them instead of compiling alloca.c.
4176 ALLOCA=alloca.o
4177 cat >> confdefs.h <<\EOF
4178 #define C_ALLOCA 1
4182 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4183 echo "configure:4184: checking whether alloca needs Cray hooks" >&5
4184 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4186 else
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 #if defined(CRAY) && ! defined(CRAY2)
4191 webecray
4192 #else
4193 wenotbecray
4194 #endif
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198 egrep "webecray" >/dev/null 2>&1; then
4199 rm -rf conftest*
4200 ac_cv_os_cray=yes
4201 else
4202 rm -rf conftest*
4203 ac_cv_os_cray=no
4205 rm -f conftest*
4209 echo "$ac_t""$ac_cv_os_cray" 1>&6
4210 if test $ac_cv_os_cray = yes; then
4211 for ac_func in _getb67 GETB67 getb67; do
4212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4213 echo "configure:4214: checking for $ac_func" >&5
4214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4216 else
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4220 /* System header to define __stub macros and hopefully few prototypes,
4221 which can conflict with char $ac_func(); below. */
4222 #include <assert.h>
4223 /* Override any gcc2 internal prototype to avoid an error. */
4224 /* We use char because int might match the return type of a gcc2
4225 builtin and then its argument prototype would still apply. */
4226 char $ac_func();
4228 int main() {
4230 /* The GNU C library defines this for functions which it implements
4231 to always fail with ENOSYS. Some functions are actually named
4232 something starting with __ and the normal name is an alias. */
4233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4234 choke me
4235 #else
4236 $ac_func();
4237 #endif
4239 ; return 0; }
4241 if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4242 rm -rf conftest*
4243 eval "ac_cv_func_$ac_func=yes"
4244 else
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 rm -rf conftest*
4248 eval "ac_cv_func_$ac_func=no"
4250 rm -f conftest*
4253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4255 cat >> confdefs.h <<EOF
4256 #define CRAY_STACKSEG_END $ac_func
4259 break
4260 else
4261 echo "$ac_t""no" 1>&6
4264 done
4267 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4268 echo "configure:4269: checking stack direction for C alloca" >&5
4269 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4271 else
4272 if test "$cross_compiling" = yes; then
4273 ac_cv_c_stack_direction=0
4274 else
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4278 find_stack_direction ()
4280 static char *addr = 0;
4281 auto char dummy;
4282 if (addr == 0)
4284 addr = &dummy;
4285 return find_stack_direction ();
4287 else
4288 return (&dummy > addr) ? 1 : -1;
4290 main ()
4292 exit (find_stack_direction() < 0);
4295 if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4296 then
4297 ac_cv_c_stack_direction=1
4298 else
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 rm -fr conftest*
4302 ac_cv_c_stack_direction=-1
4304 rm -fr conftest*
4309 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4310 cat >> confdefs.h <<EOF
4311 #define STACK_DIRECTION $ac_cv_c_stack_direction
4316 for ac_func in \
4317 _lwp_create \
4318 clone \
4319 getpagesize \
4320 memmove \
4321 rfork \
4322 sendmsg \
4323 sigaltstack \
4324 strerror \
4325 stricmp \
4326 tcgetattr \
4327 timegm \
4328 usleep \
4329 vfscanf \
4330 wait4 \
4331 waitpid \
4334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4335 echo "configure:4336: checking for $ac_func" >&5
4336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4338 else
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 /* System header to define __stub macros and hopefully few prototypes,
4343 which can conflict with char $ac_func(); below. */
4344 #include <assert.h>
4345 /* Override any gcc2 internal prototype to avoid an error. */
4346 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */
4348 char $ac_func();
4350 int main() {
4352 /* The GNU C library defines this for functions which it implements
4353 to always fail with ENOSYS. Some functions are actually named
4354 something starting with __ and the normal name is an alias. */
4355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4356 choke me
4357 #else
4358 $ac_func();
4359 #endif
4361 ; return 0; }
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4364 rm -rf conftest*
4365 eval "ac_cv_func_$ac_func=yes"
4366 else
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4369 rm -rf conftest*
4370 eval "ac_cv_func_$ac_func=no"
4372 rm -f conftest*
4375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4378 cat >> confdefs.h <<EOF
4379 #define $ac_tr_func 1
4382 else
4383 echo "$ac_t""no" 1>&6
4385 done
4389 for ac_hdr in \
4390 arpa/nameser.h \
4391 curses.h \
4392 elf.h \
4393 float.h \
4394 libio.h \
4395 linux/cdrom.h \
4396 linux/ucdrom.h \
4397 ncurses.h \
4398 net/if.h \
4399 netinet/in.h \
4400 resolv.h \
4401 strings.h \
4402 sys/cdio.h \
4403 sys/errno.h \
4404 sys/file.h \
4405 sys/filio.h \
4406 sys/lwp.h \
4407 sys/mman.h \
4408 sys/modem.h \
4409 sys/mount.h \
4410 sys/param.h \
4411 sys/signal.h \
4412 sys/sockio.h \
4413 sys/statfs.h \
4414 sys/strtio.h \
4415 sys/syscall.h \
4416 sys/vfs.h \
4417 syscall.h \
4418 ucontext.h \
4419 unistd.h \
4420 wctype.h \
4423 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4424 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4425 echo "configure:4426: checking for $ac_hdr" >&5
4426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4427 echo $ac_n "(cached) $ac_c" 1>&6
4428 else
4429 cat > conftest.$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4432 #include <$ac_hdr>
4434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4435 { (eval echo configure:4436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4436 ac_err=`grep -v '^ *+' conftest.out`
4437 if test -z "$ac_err"; then
4438 rm -rf conftest*
4439 eval "ac_cv_header_$ac_safe=yes"
4440 else
4441 echo "$ac_err" >&5
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4444 rm -rf conftest*
4445 eval "ac_cv_header_$ac_safe=no"
4447 rm -f conftest*
4449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4450 echo "$ac_t""yes" 1>&6
4451 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4452 cat >> confdefs.h <<EOF
4453 #define $ac_tr_hdr 1
4456 else
4457 echo "$ac_t""no" 1>&6
4459 done
4461 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4462 echo "configure:4463: checking whether stat file-mode macros are broken" >&5
4463 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4465 else
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4469 #include <sys/types.h>
4470 #include <sys/stat.h>
4472 #if defined(S_ISBLK) && defined(S_IFDIR)
4473 # if S_ISBLK (S_IFDIR)
4474 You lose.
4475 # endif
4476 #endif
4478 #if defined(S_ISBLK) && defined(S_IFCHR)
4479 # if S_ISBLK (S_IFCHR)
4480 You lose.
4481 # endif
4482 #endif
4484 #if defined(S_ISLNK) && defined(S_IFREG)
4485 # if S_ISLNK (S_IFREG)
4486 You lose.
4487 # endif
4488 #endif
4490 #if defined(S_ISSOCK) && defined(S_IFREG)
4491 # if S_ISSOCK (S_IFREG)
4492 You lose.
4493 # endif
4494 #endif
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 egrep "You lose" >/dev/null 2>&1; then
4499 rm -rf conftest*
4500 ac_cv_header_stat_broken=yes
4501 else
4502 rm -rf conftest*
4503 ac_cv_header_stat_broken=no
4505 rm -f conftest*
4509 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4510 if test $ac_cv_header_stat_broken = yes; then
4511 cat >> confdefs.h <<\EOF
4512 #define STAT_MACROS_BROKEN 1
4519 echo $ac_n "checking for working const""... $ac_c" 1>&6
4520 echo "configure:4521: checking for working const" >&5
4521 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4523 else
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4528 int main() {
4530 /* Ultrix mips cc rejects this. */
4531 typedef int charset[2]; const charset x;
4532 /* SunOS 4.1.1 cc rejects this. */
4533 char const *const *ccp;
4534 char **p;
4535 /* NEC SVR4.0.2 mips cc rejects this. */
4536 struct point {int x, y;};
4537 static struct point const zero = {0,0};
4538 /* AIX XL C 1.02.0.0 rejects this.
4539 It does not let you subtract one const X* pointer from another in an arm
4540 of an if-expression whose if-part is not a constant expression */
4541 const char *g = "string";
4542 ccp = &g + (g ? g-g : 0);
4543 /* HPUX 7.0 cc rejects these. */
4544 ++ccp;
4545 p = (char**) ccp;
4546 ccp = (char const *const *) p;
4547 { /* SCO 3.2v4 cc rejects this. */
4548 char *t;
4549 char const *s = 0 ? (char *) 0 : (char const *) 0;
4551 *t++ = 0;
4553 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4554 int x[] = {25, 17};
4555 const int *foo = &x[0];
4556 ++foo;
4558 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4559 typedef const int *iptr;
4560 iptr p = 0;
4561 ++p;
4563 { /* AIX XL C 1.02.0.0 rejects this saying
4564 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4565 struct s { int j; const int *ap[3]; };
4566 struct s *b; b->j = 5;
4568 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4569 const int foo = 10;
4572 ; return 0; }
4574 if { (eval echo configure:4575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4575 rm -rf conftest*
4576 ac_cv_c_const=yes
4577 else
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4580 rm -rf conftest*
4581 ac_cv_c_const=no
4583 rm -f conftest*
4586 echo "$ac_t""$ac_cv_c_const" 1>&6
4587 if test $ac_cv_c_const = no; then
4588 cat >> confdefs.h <<\EOF
4589 #define const
4594 echo $ac_n "checking for inline""... $ac_c" 1>&6
4595 echo "configure:4596: checking for inline" >&5
4596 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4598 else
4599 ac_cv_c_inline=no
4600 for ac_kw in inline __inline__ __inline; do
4601 cat > conftest.$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4605 int main() {
4606 } $ac_kw foo() {
4607 ; return 0; }
4609 if { (eval echo configure:4610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4610 rm -rf conftest*
4611 ac_cv_c_inline=$ac_kw; break
4612 else
4613 echo "configure: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4616 rm -f conftest*
4617 done
4621 echo "$ac_t""$ac_cv_c_inline" 1>&6
4622 case "$ac_cv_c_inline" in
4623 inline | yes) ;;
4624 no) cat >> confdefs.h <<\EOF
4625 #define inline
4628 *) cat >> confdefs.h <<EOF
4629 #define inline $ac_cv_c_inline
4632 esac
4634 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4635 echo "configure:4636: checking for ANSI C header files" >&5
4636 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4638 else
4639 cat > conftest.$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 #include <stdlib.h>
4643 #include <stdarg.h>
4644 #include <string.h>
4645 #include <float.h>
4647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4648 { (eval echo configure:4649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4649 ac_err=`grep -v '^ *+' conftest.out`
4650 if test -z "$ac_err"; then
4651 rm -rf conftest*
4652 ac_cv_header_stdc=yes
4653 else
4654 echo "$ac_err" >&5
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4657 rm -rf conftest*
4658 ac_cv_header_stdc=no
4660 rm -f conftest*
4662 if test $ac_cv_header_stdc = yes; then
4663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 #include <string.h>
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 egrep "memchr" >/dev/null 2>&1; then
4672 else
4673 rm -rf conftest*
4674 ac_cv_header_stdc=no
4676 rm -f conftest*
4680 if test $ac_cv_header_stdc = yes; then
4681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <stdlib.h>
4687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4688 egrep "free" >/dev/null 2>&1; then
4690 else
4691 rm -rf conftest*
4692 ac_cv_header_stdc=no
4694 rm -f conftest*
4698 if test $ac_cv_header_stdc = yes; then
4699 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4700 if test "$cross_compiling" = yes; then
4702 else
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 #include <ctype.h>
4707 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4708 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4709 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4710 int main () { int i; for (i = 0; i < 256; i++)
4711 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4712 exit (0); }
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4716 then
4718 else
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 rm -fr conftest*
4722 ac_cv_header_stdc=no
4724 rm -fr conftest*
4730 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4731 if test $ac_cv_header_stdc = yes; then
4732 cat >> confdefs.h <<\EOF
4733 #define STDC_HEADERS 1
4738 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4739 echo "configure:4740: checking for size_t" >&5
4740 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4742 else
4743 cat > conftest.$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 #include <sys/types.h>
4747 #if STDC_HEADERS
4748 #include <stdlib.h>
4749 #include <stddef.h>
4750 #endif
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4754 rm -rf conftest*
4755 ac_cv_type_size_t=yes
4756 else
4757 rm -rf conftest*
4758 ac_cv_type_size_t=no
4760 rm -f conftest*
4763 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4764 if test $ac_cv_type_size_t = no; then
4765 cat >> confdefs.h <<\EOF
4766 #define size_t unsigned
4771 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4772 echo "configure:4773: checking size of long long" >&5
4773 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4775 else
4776 if test "$cross_compiling" = yes; then
4777 ac_cv_sizeof_long_long=0
4778 else
4779 cat > conftest.$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4782 #include <stdio.h>
4783 main()
4785 FILE *f=fopen("conftestval", "w");
4786 if (!f) exit(1);
4787 fprintf(f, "%d\n", sizeof(long long));
4788 exit(0);
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4792 then
4793 ac_cv_sizeof_long_long=`cat conftestval`
4794 else
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4797 rm -fr conftest*
4798 ac_cv_sizeof_long_long=0
4800 rm -fr conftest*
4804 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4805 cat >> confdefs.h <<EOF
4806 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4812 if test "$ac_cv_header_sys_vfs_h" = "yes"
4813 then
4814 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
4815 echo "configure:4816: checking "whether sys/vfs.h defines statfs"" >&5
4816 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4818 else
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4823 #include <sys/types.h>
4824 #ifdef HAVE_SYS_PARAM_H
4825 # include <sys/param.h>
4826 #endif
4827 #include <sys/vfs.h>
4829 int main() {
4831 struct statfs stfs;
4833 memset(&stfs,0,sizeof(stfs));
4835 ; return 0; }
4837 if { (eval echo configure:4838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4838 rm -rf conftest*
4839 wine_cv_sys_vfs_has_statfs=yes
4840 else
4841 echo "configure: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4843 rm -rf conftest*
4844 wine_cv_sys_vfs_has_statfs=no
4847 rm -f conftest*
4851 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
4852 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
4853 then
4854 cat >> confdefs.h <<\EOF
4855 #define STATFS_DEFINED_BY_SYS_VFS 1
4861 if test "$ac_cv_header_sys_statfs_h" = "yes"
4862 then
4863 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
4864 echo "configure:4865: checking "whether sys/statfs.h defines statfs"" >&5
4865 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4867 else
4868 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4872 #include <sys/types.h>
4873 #ifdef HAVE_SYS_PARAM_H
4874 # include <sys/param.h>
4875 #endif
4876 #include <sys/statfs.h>
4878 int main() {
4880 struct statfs stfs;
4882 ; return 0; }
4884 if { (eval echo configure:4885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4885 rm -rf conftest*
4886 wine_cv_sys_statfs_has_statfs=yes
4887 else
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4890 rm -rf conftest*
4891 wine_cv_sys_statfs_has_statfs=no
4894 rm -f conftest*
4898 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
4899 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
4900 then
4901 cat >> confdefs.h <<\EOF
4902 #define STATFS_DEFINED_BY_SYS_STATFS 1
4908 if test "$ac_cv_header_sys_mount_h" = "yes"
4909 then
4910 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
4911 echo "configure:4912: checking "whether sys/mount.h defines statfs"" >&5
4912 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4914 else
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4919 #include <sys/types.h>
4920 #ifdef HAVE_SYS_PARAM_H
4921 # include <sys/param.h>
4922 #endif
4923 #include <sys/mount.h>
4925 int main() {
4927 struct statfs stfs;
4929 ; return 0; }
4931 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4932 rm -rf conftest*
4933 wine_cv_sys_mount_has_statfs=yes
4934 else
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4937 rm -rf conftest*
4938 wine_cv_sys_mount_has_statfs=no
4941 rm -f conftest*
4945 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
4946 if test "$wine_cv_sys_mount_has_statfs" = "yes"
4947 then
4948 cat >> confdefs.h <<\EOF
4949 #define STATFS_DEFINED_BY_SYS_MOUNT 1
4956 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
4957 echo "configure:4958: checking "for statfs.f_bfree"" >&5
4958 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4960 else
4961 if test "x$statfs_bfree" = "xno"
4962 then
4963 wine_cv_statfs_bfree=no
4964 else
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4969 #include <sys/types.h>
4970 #ifdef HAVE_SYS_PARAM_H
4971 # include <sys/param.h>
4972 #endif
4973 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4974 # include <sys/mount.h>
4975 #else
4976 # ifdef STATFS_DEFINED_BY_SYS_VFS
4977 # include <sys/vfs.h>
4978 # else
4979 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4980 # include <sys/statfs.h>
4981 # endif
4982 # endif
4983 #endif
4985 int main() {
4987 struct statfs stfs;
4989 stfs.f_bfree++;
4991 ; return 0; }
4993 if { (eval echo configure:4994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4994 rm -rf conftest*
4995 wine_cv_statfs_bfree=yes
4996 else
4997 echo "configure: failed program was:" >&5
4998 cat conftest.$ac_ext >&5
4999 rm -rf conftest*
5000 wine_cv_statfs_bfree=no
5003 rm -f conftest*
5007 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5008 if test "$wine_cv_statfs_bfree" = "yes"
5009 then
5010 cat >> confdefs.h <<\EOF
5011 #define STATFS_HAS_BFREE 1
5016 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5017 echo "configure:5018: checking "for statfs.f_bavail"" >&5
5018 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5020 else
5021 if test "x$statfs_bavail" = "xno"
5022 then
5023 wine_cv_statfs_bavail=no
5024 else
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5029 #include <sys/types.h>
5030 #ifdef HAVE_SYS_PARAM_H
5031 # include <sys/param.h>
5032 #endif
5033 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5034 # include <sys/mount.h>
5035 #else
5036 # ifdef STATFS_DEFINED_BY_SYS_VFS
5037 # include <sys/vfs.h>
5038 # else
5039 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5040 # include <sys/statfs.h>
5041 # endif
5042 # endif
5043 #endif
5045 int main() {
5047 struct statfs stfs;
5049 stfs.f_bavail++;
5051 ; return 0; }
5053 if { (eval echo configure:5054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5054 rm -rf conftest*
5055 wine_cv_statfs_bavail=yes
5056 else
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5059 rm -rf conftest*
5060 wine_cv_statfs_bavail=no
5063 rm -f conftest*
5067 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5068 if test "$wine_cv_statfs_bavail" = "yes"
5069 then
5070 cat >> confdefs.h <<\EOF
5071 #define STATFS_HAS_BAVAIL 1
5077 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
5078 echo "configure:5079: checking "for working sigaltstack"" >&5
5079 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5081 else
5082 if test "$cross_compiling" = yes; then
5083 ac_cv_c_working_sigaltstack="no"
5085 else
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5090 #include <stdio.h>
5091 #include <time.h> /* <sys/time.h> ? bad magic without end */
5092 #include <sys/types.h>
5093 #include <sys/signal.h>
5094 #ifdef HAVE_SYS_PARAM_H
5095 # include <sys/param.h>
5096 #endif
5097 #ifdef HAVE_SYSCALL_H
5098 # include <syscall.h>
5099 #else
5100 # ifdef HAVE_SYS_SYSCALL_H
5101 # include <sys/syscall.h>
5102 # endif
5103 #endif
5105 unsigned char *xaltstack;
5108 main(int argc,char **argv) {
5109 struct sigaltstack ss;
5111 xaltstack = malloc(16384);
5112 ss.ss_sp = xaltstack;
5113 ss.ss_size = 16384;
5114 ss.ss_flags = 0;
5115 if (sigaltstack(&ss, NULL) < 0) {
5116 /* this catches the glibc case */
5117 perror("sigaltstack");
5118 return (1); /* aka exit(1) aka fail */
5120 /* assume it works. */
5121 return 0; /* OK */
5125 if { (eval echo configure:5126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5126 then
5127 ac_cv_c_working_sigaltstack="yes"
5128 else
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5131 rm -fr conftest*
5132 ac_cv_c_working_sigaltstack="no"
5134 rm -fr conftest*
5139 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5141 if test "$ac_cv_c_working_sigaltstack" = "yes"
5142 then
5143 cat >> confdefs.h <<\EOF
5144 #define HAVE_WORKING_SIGALTSTACK 1
5151 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5152 echo "configure:5153: checking "for msg_accrights in struct msghdr"" >&5
5153 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5155 else
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5159 #include <sys/types.h>
5160 #include <sys/socket.h>
5161 int main() {
5162 struct msghdr hdr; hdr.msg_accrights=0
5163 ; return 0; }
5165 if { (eval echo configure:5166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5166 rm -rf conftest*
5167 ac_cv_c_msg_accrights="yes"
5168 else
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5171 rm -rf conftest*
5172 ac_cv_c_msg_accrights="no"
5174 rm -f conftest*
5177 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5178 if test "$ac_cv_c_msg_accrights" = "yes"
5179 then
5180 cat >> confdefs.h <<\EOF
5181 #define HAVE_MSGHDR_ACCRIGHTS 1
5187 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
5188 echo "configure:5189: checking "whether we need to define __i386__"" >&5
5189 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5191 else
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5197 #endif
5199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200 egrep "yes" >/dev/null 2>&1; then
5201 rm -rf conftest*
5202 ac_cv_cpp_def_i386="yes"
5203 else
5204 rm -rf conftest*
5205 ac_cv_cpp_def_i386="no"
5207 rm -f conftest*
5211 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5212 if test "$ac_cv_cpp_def_i386" = "yes"
5213 then
5214 CFLAGS="$CFLAGS -D__i386__"
5217 GCC_NO_BUILTIN=""
5218 if test "$GCC" = "yes"
5219 then
5220 GCC_NO_BUILTIN="-fno-builtin"
5225 MAKE_RULES=Make.rules
5228 trap '' 1 2 15
5229 cat > confcache <<\EOF
5230 # This file is a shell script that caches the results of configure
5231 # tests run on this system so they can be shared between configure
5232 # scripts and configure runs. It is not useful on other systems.
5233 # If it contains results you don't want to keep, you may remove or edit it.
5235 # By default, configure uses ./config.cache as the cache file,
5236 # creating it if it does not exist already. You can give configure
5237 # the --cache-file=FILE option to use a different cache file; that is
5238 # what configure does when it calls configure scripts in
5239 # subdirectories, so they share the cache.
5240 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5241 # config.status only pays attention to the cache file if you give it the
5242 # --recheck option to rerun configure.
5245 # The following way of writing the cache mishandles newlines in values,
5246 # but we know of no workaround that is simple, portable, and efficient.
5247 # So, don't put newlines in cache variables' values.
5248 # Ultrix sh set writes to stderr and can't be redirected directly,
5249 # and sets the high bit in the cache file unless we assign to the vars.
5250 (set) 2>&1 |
5251 case `(ac_space=' '; set) 2>&1` in
5252 *ac_space=\ *)
5253 # `set' does not quote correctly, so add quotes (double-quote substitution
5254 # turns \\\\ into \\, and sed turns \\ into \).
5255 sed -n \
5256 -e "s/'/'\\\\''/g" \
5257 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5260 # `set' quotes correctly as required by POSIX, so do not add quotes.
5261 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5263 esac >> confcache
5264 if cmp -s $cache_file confcache; then
5266 else
5267 if test -w $cache_file; then
5268 echo "updating cache $cache_file"
5269 cat confcache > $cache_file
5270 else
5271 echo "not updating unwritable cache $cache_file"
5274 rm -f confcache
5276 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5279 # Let make expand exec_prefix.
5280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5282 # Any assignment to VPATH causes Sun make to only execute
5283 # the first set of double-colon rules, so remove it if not needed.
5284 # If there is a colon in the path, we need to keep it.
5285 if test "x$srcdir" = x.; then
5286 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5289 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5291 DEFS=-DHAVE_CONFIG_H
5293 # Without the "./", some shells look in PATH for config.status.
5294 : ${CONFIG_STATUS=./config.status}
5296 echo creating $CONFIG_STATUS
5297 rm -f $CONFIG_STATUS
5298 cat > $CONFIG_STATUS <<EOF
5299 #! /bin/sh
5300 # Generated automatically by configure.
5301 # Run this file to recreate the current configuration.
5302 # This directory was configured as follows,
5303 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5305 # $0 $ac_configure_args
5307 # Compiler output produced by configure, useful for debugging
5308 # configure, is in ./config.log if it exists.
5310 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5311 for ac_option
5313 case "\$ac_option" in
5314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5315 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5316 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5317 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5318 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5319 exit 0 ;;
5320 -help | --help | --hel | --he | --h)
5321 echo "\$ac_cs_usage"; exit 0 ;;
5322 *) echo "\$ac_cs_usage"; exit 1 ;;
5323 esac
5324 done
5326 ac_given_srcdir=$srcdir
5327 ac_given_INSTALL="$INSTALL"
5329 trap 'rm -fr `echo "
5330 Make.rules
5331 Makefile
5332 console/Makefile
5333 controls/Makefile
5334 debugger/Makefile
5335 dlls/Makefile
5336 dlls/advapi32/Makefile
5337 dlls/avifil32/Makefile
5338 dlls/comctl32/Makefile
5339 dlls/commdlg/Makefile
5340 dlls/imagehlp/Makefile
5341 dlls/msacm/Makefile
5342 dlls/msacm32/Makefile
5343 dlls/ntdll/Makefile
5344 dlls/psapi/Makefile
5345 dlls/rasapi32/Makefile
5346 dlls/shell32/Makefile
5347 dlls/tapi32/Makefile
5348 dlls/ver/Makefile
5349 dlls/version/Makefile
5350 dlls/win87em/Makefile
5351 dlls/winaspi/Makefile
5352 dlls/winspool/Makefile
5353 dlls/wnaspi32/Makefile
5354 documentation/Makefile
5355 documentation/wine.conf.man
5356 documentation/wine.man
5357 files/Makefile
5358 graphics/Makefile
5359 graphics/enhmetafiledrv/Makefile
5360 graphics/metafiledrv/Makefile
5361 graphics/psdrv/Makefile
5362 graphics/ttydrv/Makefile
5363 graphics/win16drv/Makefile
5364 graphics/x11drv/Makefile
5365 if1632/Makefile
5366 include/Makefile
5367 library/Makefile
5368 libtest/Makefile
5369 loader/Makefile
5370 loader/ne/Makefile
5371 loader/dos/Makefile
5372 memory/Makefile
5373 misc/Makefile
5374 miscemu/Makefile
5375 msdos/Makefile
5376 multimedia/Makefile
5377 objects/Makefile
5378 ole/Makefile
5379 programs/Makefile
5380 programs/clock/Makefile
5381 programs/cmdlgtst/Makefile
5382 programs/control/Makefile
5383 programs/avitools/Makefile
5384 programs/notepad/Makefile
5385 programs/progman/Makefile
5386 programs/regtest/Makefile
5387 programs/regapi/Makefile
5388 programs/view/Makefile
5389 programs/wcmd/Makefile
5390 programs/winhelp/Makefile
5391 programs/winver/Makefile
5392 rc/Makefile
5393 relay32/Makefile
5394 resources/Makefile
5395 scheduler/Makefile
5396 server/Makefile
5397 tools/Makefile
5398 tools/wrc/Makefile
5399 tsx11/Makefile
5400 win32/Makefile
5401 windows/Makefile
5402 windows/ttydrv/Makefile
5403 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5405 cat >> $CONFIG_STATUS <<EOF
5407 # Protect against being on the right side of a sed subst in config.status.
5408 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5409 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5410 $ac_vpsub
5411 $extrasub
5412 s%@CFLAGS@%$CFLAGS%g
5413 s%@CPPFLAGS@%$CPPFLAGS%g
5414 s%@CXXFLAGS@%$CXXFLAGS%g
5415 s%@DEFS@%$DEFS%g
5416 s%@LDFLAGS@%$LDFLAGS%g
5417 s%@LIBS@%$LIBS%g
5418 s%@exec_prefix@%$exec_prefix%g
5419 s%@prefix@%$prefix%g
5420 s%@program_transform_name@%$program_transform_name%g
5421 s%@bindir@%$bindir%g
5422 s%@sbindir@%$sbindir%g
5423 s%@libexecdir@%$libexecdir%g
5424 s%@datadir@%$datadir%g
5425 s%@sysconfdir@%$sysconfdir%g
5426 s%@sharedstatedir@%$sharedstatedir%g
5427 s%@localstatedir@%$localstatedir%g
5428 s%@libdir@%$libdir%g
5429 s%@includedir@%$includedir%g
5430 s%@oldincludedir@%$oldincludedir%g
5431 s%@infodir@%$infodir%g
5432 s%@mandir@%$mandir%g
5433 s%@PROGEXT@%$PROGEXT%g
5434 s%@MAIN_TARGET@%$MAIN_TARGET%g
5435 s%@LIB_TARGET@%$LIB_TARGET%g
5436 s%@ALT_LINK@%$ALT_LINK%g
5437 s%@OPTIONS@%$OPTIONS%g
5438 s%@SET_MAKE@%$SET_MAKE%g
5439 s%@CC@%$CC%g
5440 s%@CPP@%$CPP%g
5441 s%@X_CFLAGS@%$X_CFLAGS%g
5442 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5443 s%@X_LIBS@%$X_LIBS%g
5444 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5445 s%@YACC@%$YACC%g
5446 s%@LEX@%$LEX%g
5447 s%@LEXLIB@%$LEXLIB%g
5448 s%@RANLIB@%$RANLIB%g
5449 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5450 s%@INSTALL_DATA@%$INSTALL_DATA%g
5451 s%@LN_S@%$LN_S%g
5452 s%@C2MAN@%$C2MAN%g
5453 s%@LDCONFIG@%$LDCONFIG%g
5454 s%@XLIB@%$XLIB%g
5455 s%@BUILDFLAGS@%$BUILDFLAGS%g
5456 s%@DLLFLAGS@%$DLLFLAGS%g
5457 s%@LDSHARED@%$LDSHARED%g
5458 s%@ALLOCA@%$ALLOCA%g
5459 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
5460 /@MAKE_RULES@/r $MAKE_RULES
5461 s%@MAKE_RULES@%%g
5463 CEOF
5466 cat >> $CONFIG_STATUS <<\EOF
5468 # Split the substitutions into bite-sized pieces for seds with
5469 # small command number limits, like on Digital OSF/1 and HP-UX.
5470 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5471 ac_file=1 # Number of current file.
5472 ac_beg=1 # First line for current file.
5473 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5474 ac_more_lines=:
5475 ac_sed_cmds=""
5476 while $ac_more_lines; do
5477 if test $ac_beg -gt 1; then
5478 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5479 else
5480 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5482 if test ! -s conftest.s$ac_file; then
5483 ac_more_lines=false
5484 rm -f conftest.s$ac_file
5485 else
5486 if test -z "$ac_sed_cmds"; then
5487 ac_sed_cmds="sed -f conftest.s$ac_file"
5488 else
5489 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5491 ac_file=`expr $ac_file + 1`
5492 ac_beg=$ac_end
5493 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5495 done
5496 if test -z "$ac_sed_cmds"; then
5497 ac_sed_cmds=cat
5501 cat >> $CONFIG_STATUS <<EOF
5503 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
5504 Makefile
5505 console/Makefile
5506 controls/Makefile
5507 debugger/Makefile
5508 dlls/Makefile
5509 dlls/advapi32/Makefile
5510 dlls/avifil32/Makefile
5511 dlls/comctl32/Makefile
5512 dlls/commdlg/Makefile
5513 dlls/imagehlp/Makefile
5514 dlls/msacm/Makefile
5515 dlls/msacm32/Makefile
5516 dlls/ntdll/Makefile
5517 dlls/psapi/Makefile
5518 dlls/rasapi32/Makefile
5519 dlls/shell32/Makefile
5520 dlls/tapi32/Makefile
5521 dlls/ver/Makefile
5522 dlls/version/Makefile
5523 dlls/win87em/Makefile
5524 dlls/winaspi/Makefile
5525 dlls/winspool/Makefile
5526 dlls/wnaspi32/Makefile
5527 documentation/Makefile
5528 documentation/wine.conf.man
5529 documentation/wine.man
5530 files/Makefile
5531 graphics/Makefile
5532 graphics/enhmetafiledrv/Makefile
5533 graphics/metafiledrv/Makefile
5534 graphics/psdrv/Makefile
5535 graphics/ttydrv/Makefile
5536 graphics/win16drv/Makefile
5537 graphics/x11drv/Makefile
5538 if1632/Makefile
5539 include/Makefile
5540 library/Makefile
5541 libtest/Makefile
5542 loader/Makefile
5543 loader/ne/Makefile
5544 loader/dos/Makefile
5545 memory/Makefile
5546 misc/Makefile
5547 miscemu/Makefile
5548 msdos/Makefile
5549 multimedia/Makefile
5550 objects/Makefile
5551 ole/Makefile
5552 programs/Makefile
5553 programs/clock/Makefile
5554 programs/cmdlgtst/Makefile
5555 programs/control/Makefile
5556 programs/avitools/Makefile
5557 programs/notepad/Makefile
5558 programs/progman/Makefile
5559 programs/regtest/Makefile
5560 programs/regapi/Makefile
5561 programs/view/Makefile
5562 programs/wcmd/Makefile
5563 programs/winhelp/Makefile
5564 programs/winver/Makefile
5565 rc/Makefile
5566 relay32/Makefile
5567 resources/Makefile
5568 scheduler/Makefile
5569 server/Makefile
5570 tools/Makefile
5571 tools/wrc/Makefile
5572 tsx11/Makefile
5573 win32/Makefile
5574 windows/Makefile
5575 windows/ttydrv/Makefile
5576 windows/x11drv/Makefile "}
5578 cat >> $CONFIG_STATUS <<\EOF
5579 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5580 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5581 case "$ac_file" in
5582 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5583 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5584 *) ac_file_in="${ac_file}.in" ;;
5585 esac
5587 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5589 # Remove last slash and all that follows it. Not all systems have dirname.
5590 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5591 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5592 # The file is in a subdirectory.
5593 test ! -d "$ac_dir" && mkdir "$ac_dir"
5594 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5595 # A "../" for each directory in $ac_dir_suffix.
5596 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5597 else
5598 ac_dir_suffix= ac_dots=
5601 case "$ac_given_srcdir" in
5602 .) srcdir=.
5603 if test -z "$ac_dots"; then top_srcdir=.
5604 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5605 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5606 *) # Relative path.
5607 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5608 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5609 esac
5611 case "$ac_given_INSTALL" in
5612 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5613 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5614 esac
5616 echo creating "$ac_file"
5617 rm -f "$ac_file"
5618 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5619 case "$ac_file" in
5620 *Makefile*) ac_comsub="1i\\
5621 # $configure_input" ;;
5622 *) ac_comsub= ;;
5623 esac
5625 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5626 sed -e "$ac_comsub
5627 s%@configure_input@%$configure_input%g
5628 s%@srcdir@%$srcdir%g
5629 s%@top_srcdir@%$top_srcdir%g
5630 s%@INSTALL@%$INSTALL%g
5631 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5632 fi; done
5633 rm -f conftest.s*
5635 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5636 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5638 # ac_d sets the value in "#define NAME VALUE" lines.
5639 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5640 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5641 ac_dC='\3'
5642 ac_dD='%g'
5643 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5644 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5645 ac_uB='\([ ]\)%\1#\2define\3'
5646 ac_uC=' '
5647 ac_uD='\4%g'
5648 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5649 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5650 ac_eB='$%\1#\2define\3'
5651 ac_eC=' '
5652 ac_eD='%g'
5654 if test "${CONFIG_HEADERS+set}" != set; then
5656 cat >> $CONFIG_STATUS <<EOF
5657 CONFIG_HEADERS="include/config.h"
5659 cat >> $CONFIG_STATUS <<\EOF
5661 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5663 case "$ac_file" in
5664 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5665 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5666 *) ac_file_in="${ac_file}.in" ;;
5667 esac
5669 echo creating $ac_file
5671 rm -f conftest.frag conftest.in conftest.out
5672 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5673 cat $ac_file_inputs > conftest.in
5677 # Transform confdefs.h into a sed script conftest.vals that substitutes
5678 # the proper values into config.h.in to produce config.h. And first:
5679 # Protect against being on the right side of a sed subst in config.status.
5680 # Protect against being in an unquoted here document in config.status.
5681 rm -f conftest.vals
5682 cat > conftest.hdr <<\EOF
5683 s/[\\&%]/\\&/g
5684 s%[\\$`]%\\&%g
5685 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5686 s%ac_d%ac_u%gp
5687 s%ac_u%ac_e%gp
5689 sed -n -f conftest.hdr confdefs.h > conftest.vals
5690 rm -f conftest.hdr
5692 # This sed command replaces #undef with comments. This is necessary, for
5693 # example, in the case of _POSIX_SOURCE, which is predefined and required
5694 # on some systems where configure will not decide to define it.
5695 cat >> conftest.vals <<\EOF
5696 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5699 # Break up conftest.vals because some shells have a limit on
5700 # the size of here documents, and old seds have small limits too.
5702 rm -f conftest.tail
5703 while :
5705 ac_lines=`grep -c . conftest.vals`
5706 # grep -c gives empty output for an empty file on some AIX systems.
5707 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5708 # Write a limited-size here document to conftest.frag.
5709 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5710 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5711 echo 'CEOF
5712 sed -f conftest.frag conftest.in > conftest.out
5713 rm -f conftest.in
5714 mv conftest.out conftest.in
5715 ' >> $CONFIG_STATUS
5716 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5717 rm -f conftest.vals
5718 mv conftest.tail conftest.vals
5719 done
5720 rm -f conftest.vals
5722 cat >> $CONFIG_STATUS <<\EOF
5723 rm -f conftest.frag conftest.h
5724 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5725 cat conftest.in >> conftest.h
5726 rm -f conftest.in
5727 if cmp -s $ac_file conftest.h 2>/dev/null; then
5728 echo "$ac_file is unchanged"
5729 rm -f conftest.h
5730 else
5731 # Remove last slash and all that follows it. Not all systems have dirname.
5732 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5733 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5734 # The file is in a subdirectory.
5735 test ! -d "$ac_dir" && mkdir "$ac_dir"
5737 rm -f $ac_file
5738 mv conftest.h $ac_file
5740 fi; done
5743 cat >> $CONFIG_STATUS <<EOF
5746 cat >> $CONFIG_STATUS <<\EOF
5748 exit 0
5750 chmod +x $CONFIG_STATUS
5751 rm -fr confdefs* $ac_clean_files
5752 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5755 if test "$have_x" = "no"
5756 then
5757 echo
5758 echo "*** Warning: X development files not found. Wine will be built without"
5759 echo "*** X support, which currently does not work, and would probably not be"
5760 echo "*** what you want anyway. You will need to install devel packages of"
5761 echo "*** Xlib/Xfree86 and Xpm at the very least."
5762 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
5763 then
5764 echo
5765 echo "*** Warning: Xpm development files not found. Wine will be built without"
5766 echo "*** Xpm support, which currently does not work. You will need to install"
5767 echo "*** devel packages of Xpm."
5770 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
5771 then
5772 echo
5773 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
5774 echo "*** terminal resize support. Consider upgrading ncurses."
5777 if test "$wine_cv_libc_reentrant" = "no"
5778 then
5779 echo
5780 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
5781 echo "*** thread support. Consider upgrading libc to a more recent"
5782 echo "*** reentrant version of libc."
5785 if test "$wine_cv_mesa_version_OK" = "no"
5786 then
5787 echo
5788 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5789 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
5792 echo
5793 echo "Configure finished. Do 'make depend && make' to compile Wine."
5794 echo