Revert last change in window activation on mouse click.
[wine/multimedia.git] / configure
blob6e5fdd479f4562f2aaebf59e5bc8f6c21ec57ecd
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
590 # Check whether --enable-debug or --disable-debug was given.
591 if test "${enable_debug+set}" = set; then
592 enableval="$enable_debug"
593 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
597 # Check whether --enable-trace or --disable-trace was given.
598 if test "${enable_trace+set}" = set; then
599 enableval="$enable_trace"
600 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
604 # Check whether --with-reentrant-x or --without-reentrant-x was given.
605 if test "${with_reentrant_x+set}" = set; then
606 withval="$with_reentrant_x"
616 if test "$DEBUG_MSGS" = "no"
617 then
618 cat >> confdefs.h <<\EOF
619 #define NO_DEBUG_MSGS 1
622 cat >> confdefs.h <<\EOF
623 #define NO_TRACE_MSGS 1
626 else
627 if test "$TRACE_MSGS" = "no"
628 then
629 cat >> confdefs.h <<\EOF
630 #define NO_TRACE_MSGS 1
637 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
638 echo "configure:639: checking whether ${MAKE-make} sets \${MAKE}" >&5
639 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
640 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
642 else
643 cat > conftestmake <<\EOF
644 all:
645 @echo 'ac_maketemp="${MAKE}"'
647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
648 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
649 if test -n "$ac_maketemp"; then
650 eval ac_cv_prog_make_${ac_make}_set=yes
651 else
652 eval ac_cv_prog_make_${ac_make}_set=no
654 rm -f conftestmake
656 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
657 echo "$ac_t""yes" 1>&6
658 SET_MAKE=
659 else
660 echo "$ac_t""no" 1>&6
661 SET_MAKE="MAKE=${MAKE-make}"
664 # Extract the first word of "gcc", so it can be a program name with args.
665 set dummy gcc; ac_word=$2
666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
667 echo "configure:668: checking for $ac_word" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
670 else
671 if test -n "$CC"; then
672 ac_cv_prog_CC="$CC" # Let the user override the test.
673 else
674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
675 for ac_dir in $PATH; do
676 test -z "$ac_dir" && ac_dir=.
677 if test -f $ac_dir/$ac_word; then
678 ac_cv_prog_CC="gcc"
679 break
681 done
682 IFS="$ac_save_ifs"
685 CC="$ac_cv_prog_CC"
686 if test -n "$CC"; then
687 echo "$ac_t""$CC" 1>&6
688 else
689 echo "$ac_t""no" 1>&6
692 if test -z "$CC"; then
693 # Extract the first word of "cc", so it can be a program name with args.
694 set dummy cc; ac_word=$2
695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
696 echo "configure:697: checking for $ac_word" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699 else
700 if test -n "$CC"; then
701 ac_cv_prog_CC="$CC" # Let the user override the test.
702 else
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
704 ac_prog_rejected=no
705 for ac_dir in $PATH; do
706 test -z "$ac_dir" && ac_dir=.
707 if test -f $ac_dir/$ac_word; then
708 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
709 ac_prog_rejected=yes
710 continue
712 ac_cv_prog_CC="cc"
713 break
715 done
716 IFS="$ac_save_ifs"
717 if test $ac_prog_rejected = yes; then
718 # We found a bogon in the path, so make sure we never use it.
719 set dummy $ac_cv_prog_CC
720 shift
721 if test $# -gt 0; then
722 # We chose a different compiler from the bogus one.
723 # However, it has the same basename, so the bogon will be chosen
724 # first if we set CC to just the basename; use the full file name.
725 shift
726 set dummy "$ac_dir/$ac_word" "$@"
727 shift
728 ac_cv_prog_CC="$@"
733 CC="$ac_cv_prog_CC"
734 if test -n "$CC"; then
735 echo "$ac_t""$CC" 1>&6
736 else
737 echo "$ac_t""no" 1>&6
740 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
744 echo "configure:745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
746 ac_ext=c
747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
748 ac_cpp='$CPP $CPPFLAGS'
749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
750 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
751 cross_compiling=$ac_cv_prog_cc_cross
753 cat > conftest.$ac_ext <<EOF
754 #line 755 "configure"
755 #include "confdefs.h"
756 main(){return(0);}
758 if { (eval echo configure:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
759 ac_cv_prog_cc_works=yes
760 # If we can't run a trivial program, we are probably using a cross compiler.
761 if (./conftest; exit) 2>/dev/null; then
762 ac_cv_prog_cc_cross=no
763 else
764 ac_cv_prog_cc_cross=yes
766 else
767 echo "configure: failed program was:" >&5
768 cat conftest.$ac_ext >&5
769 ac_cv_prog_cc_works=no
771 rm -fr conftest*
773 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
774 if test $ac_cv_prog_cc_works = no; then
775 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
777 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
778 echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
779 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
780 cross_compiling=$ac_cv_prog_cc_cross
782 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
783 echo "configure:784: checking whether we are using GNU C" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786 else
787 cat > conftest.c <<EOF
788 #ifdef __GNUC__
789 yes;
790 #endif
792 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
793 ac_cv_prog_gcc=yes
794 else
795 ac_cv_prog_gcc=no
799 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
801 if test $ac_cv_prog_gcc = yes; then
802 GCC=yes
803 ac_test_CFLAGS="${CFLAGS+set}"
804 ac_save_CFLAGS="$CFLAGS"
805 CFLAGS=
806 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
807 echo "configure:808: checking whether ${CC-cc} accepts -g" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810 else
811 echo 'void f(){}' > conftest.c
812 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
813 ac_cv_prog_cc_g=yes
814 else
815 ac_cv_prog_cc_g=no
817 rm -f conftest*
821 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
822 if test "$ac_test_CFLAGS" = set; then
823 CFLAGS="$ac_save_CFLAGS"
824 elif test $ac_cv_prog_cc_g = yes; then
825 CFLAGS="-g -O2"
826 else
827 CFLAGS="-O2"
829 else
830 GCC=
831 test "${CFLAGS+set}" = set || CFLAGS="-g"
834 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
835 echo "configure:836: checking how to run the C preprocessor" >&5
836 # On Suns, sometimes $CPP names a directory.
837 if test -n "$CPP" && test -d "$CPP"; then
838 CPP=
840 if test -z "$CPP"; then
841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
843 else
844 # This must be in double quotes, not single quotes, because CPP may get
845 # substituted into the Makefile and "${CC-cc}" will confuse make.
846 CPP="${CC-cc} -E"
847 # On the NeXT, cc -E runs the code through the compiler's parser,
848 # not just through cpp.
849 cat > conftest.$ac_ext <<EOF
850 #line 851 "configure"
851 #include "confdefs.h"
852 #include <assert.h>
853 Syntax Error
855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
856 { (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
857 ac_err=`grep -v '^ *+' conftest.out`
858 if test -z "$ac_err"; then
860 else
861 echo "$ac_err" >&5
862 echo "configure: failed program was:" >&5
863 cat conftest.$ac_ext >&5
864 rm -rf conftest*
865 CPP="${CC-cc} -E -traditional-cpp"
866 cat > conftest.$ac_ext <<EOF
867 #line 868 "configure"
868 #include "confdefs.h"
869 #include <assert.h>
870 Syntax Error
872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873 { (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874 ac_err=`grep -v '^ *+' conftest.out`
875 if test -z "$ac_err"; then
877 else
878 echo "$ac_err" >&5
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
881 rm -rf conftest*
882 CPP=/lib/cpp
884 rm -f conftest*
886 rm -f conftest*
887 ac_cv_prog_CPP="$CPP"
889 CPP="$ac_cv_prog_CPP"
890 else
891 ac_cv_prog_CPP="$CPP"
893 echo "$ac_t""$CPP" 1>&6
895 # If we find X, set shell vars x_includes and x_libraries to the
896 # paths, otherwise set no_x=yes.
897 # Uses ac_ vars as temps to allow command line to override cache and checks.
898 # --without-x overrides everything else, but does not touch the cache.
899 echo $ac_n "checking for X""... $ac_c" 1>&6
900 echo "configure:901: checking for X" >&5
902 # Check whether --with-x or --without-x was given.
903 if test "${with_x+set}" = set; then
904 withval="$with_x"
908 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
909 if test "x$with_x" = xno; then
910 # The user explicitly disabled X.
911 have_x=disabled
912 else
913 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
914 # Both variables are already set.
915 have_x=yes
916 else
917 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
919 else
920 # One or both of the vars are not set, and there is no cached value.
921 ac_x_includes=NO ac_x_libraries=NO
922 rm -fr conftestdir
923 if mkdir conftestdir; then
924 cd conftestdir
925 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
926 cat > Imakefile <<'EOF'
927 acfindx:
928 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
930 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
932 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
933 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
934 for ac_extension in a so sl; do
935 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
936 test -f $ac_im_libdir/libX11.$ac_extension; then
937 ac_im_usrlibdir=$ac_im_libdir; break
939 done
940 # Screen out bogus values from the imake configuration. They are
941 # bogus both because they are the default anyway, and because
942 # using them would break gcc on systems where it needs fixed includes.
943 case "$ac_im_incroot" in
944 /usr/include) ;;
945 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
946 esac
947 case "$ac_im_usrlibdir" in
948 /usr/lib | /lib) ;;
949 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
950 esac
952 cd ..
953 rm -fr conftestdir
956 if test "$ac_x_includes" = NO; then
957 # Guess where to find include files, by looking for this one X11 .h file.
958 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
960 # First, try using that file with no special directory specified.
961 cat > conftest.$ac_ext <<EOF
962 #line 963 "configure"
963 #include "confdefs.h"
964 #include <$x_direct_test_include>
966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
967 { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
968 ac_err=`grep -v '^ *+' conftest.out`
969 if test -z "$ac_err"; then
970 rm -rf conftest*
971 # We can compile using X headers with no special include directory.
972 ac_x_includes=
973 else
974 echo "$ac_err" >&5
975 echo "configure: failed program was:" >&5
976 cat conftest.$ac_ext >&5
977 rm -rf conftest*
978 # Look for the header file in a standard set of common directories.
979 # Check X11 before X11Rn because it is often a symlink to the current release.
980 for ac_dir in \
981 /usr/X11/include \
982 /usr/X11R6/include \
983 /usr/X11R5/include \
984 /usr/X11R4/include \
986 /usr/include/X11 \
987 /usr/include/X11R6 \
988 /usr/include/X11R5 \
989 /usr/include/X11R4 \
991 /usr/local/X11/include \
992 /usr/local/X11R6/include \
993 /usr/local/X11R5/include \
994 /usr/local/X11R4/include \
996 /usr/local/include/X11 \
997 /usr/local/include/X11R6 \
998 /usr/local/include/X11R5 \
999 /usr/local/include/X11R4 \
1001 /usr/X386/include \
1002 /usr/x386/include \
1003 /usr/XFree86/include/X11 \
1005 /usr/include \
1006 /usr/local/include \
1007 /usr/unsupported/include \
1008 /usr/athena/include \
1009 /usr/local/x11r5/include \
1010 /usr/lpp/Xamples/include \
1012 /usr/openwin/include \
1013 /usr/openwin/share/include \
1016 if test -r "$ac_dir/$x_direct_test_include"; then
1017 ac_x_includes=$ac_dir
1018 break
1020 done
1022 rm -f conftest*
1023 fi # $ac_x_includes = NO
1025 if test "$ac_x_libraries" = NO; then
1026 # Check for the libraries.
1028 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1029 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1031 # See if we find them without any special options.
1032 # Don't add to $LIBS permanently.
1033 ac_save_LIBS="$LIBS"
1034 LIBS="-l$x_direct_test_library $LIBS"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1039 int main() {
1040 ${x_direct_test_function}()
1041 ; return 0; }
1043 if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1044 rm -rf conftest*
1045 LIBS="$ac_save_LIBS"
1046 # We can link X programs with no special library path.
1047 ac_x_libraries=
1048 else
1049 echo "configure: failed program was:" >&5
1050 cat conftest.$ac_ext >&5
1051 rm -rf conftest*
1052 LIBS="$ac_save_LIBS"
1053 # First see if replacing the include by lib works.
1054 # Check X11 before X11Rn because it is often a symlink to the current release.
1055 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1056 /usr/X11/lib \
1057 /usr/X11R6/lib \
1058 /usr/X11R5/lib \
1059 /usr/X11R4/lib \
1061 /usr/lib/X11 \
1062 /usr/lib/X11R6 \
1063 /usr/lib/X11R5 \
1064 /usr/lib/X11R4 \
1066 /usr/local/X11/lib \
1067 /usr/local/X11R6/lib \
1068 /usr/local/X11R5/lib \
1069 /usr/local/X11R4/lib \
1071 /usr/local/lib/X11 \
1072 /usr/local/lib/X11R6 \
1073 /usr/local/lib/X11R5 \
1074 /usr/local/lib/X11R4 \
1076 /usr/X386/lib \
1077 /usr/x386/lib \
1078 /usr/XFree86/lib/X11 \
1080 /usr/lib \
1081 /usr/local/lib \
1082 /usr/unsupported/lib \
1083 /usr/athena/lib \
1084 /usr/local/x11r5/lib \
1085 /usr/lpp/Xamples/lib \
1086 /lib/usr/lib/X11 \
1088 /usr/openwin/lib \
1089 /usr/openwin/share/lib \
1092 for ac_extension in a so sl; do
1093 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1094 ac_x_libraries=$ac_dir
1095 break 2
1097 done
1098 done
1100 rm -f conftest*
1101 fi # $ac_x_libraries = NO
1103 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1104 # Didn't find X anywhere. Cache the known absence of X.
1105 ac_cv_have_x="have_x=no"
1106 else
1107 # Record where we found X for the cache.
1108 ac_cv_have_x="have_x=yes \
1109 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1113 eval "$ac_cv_have_x"
1114 fi # $with_x != no
1116 if test "$have_x" != yes; then
1117 echo "$ac_t""$have_x" 1>&6
1118 no_x=yes
1119 else
1120 # If each of the values was on the command line, it overrides each guess.
1121 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1122 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1123 # Update the cache value to reflect the command line values.
1124 ac_cv_have_x="have_x=yes \
1125 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1126 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1129 if test "$no_x" = yes; then
1130 # Not all programs may use this symbol, but it does not hurt to define it.
1131 cat >> confdefs.h <<\EOF
1132 #define X_DISPLAY_MISSING 1
1135 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1136 else
1137 if test -n "$x_includes"; then
1138 X_CFLAGS="$X_CFLAGS -I$x_includes"
1141 # It would also be nice to do this for all -L options, not just this one.
1142 if test -n "$x_libraries"; then
1143 X_LIBS="$X_LIBS -L$x_libraries"
1144 # For Solaris; some versions of Sun CC require a space after -R and
1145 # others require no space. Words are not sufficient . . . .
1146 case "`(uname -sr) 2>/dev/null`" in
1147 "SunOS 5"*)
1148 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether -R must be followed by a space" >&5
1150 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1155 int main() {
1157 ; return 0; }
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1160 rm -rf conftest*
1161 ac_R_nospace=yes
1162 else
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1165 rm -rf conftest*
1166 ac_R_nospace=no
1168 rm -f conftest*
1169 if test $ac_R_nospace = yes; then
1170 echo "$ac_t""no" 1>&6
1171 X_LIBS="$X_LIBS -R$x_libraries"
1172 else
1173 LIBS="$ac_xsave_LIBS -R $x_libraries"
1174 cat > conftest.$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1178 int main() {
1180 ; return 0; }
1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1183 rm -rf conftest*
1184 ac_R_space=yes
1185 else
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 ac_R_space=no
1191 rm -f conftest*
1192 if test $ac_R_space = yes; then
1193 echo "$ac_t""yes" 1>&6
1194 X_LIBS="$X_LIBS -R $x_libraries"
1195 else
1196 echo "$ac_t""neither works" 1>&6
1199 LIBS="$ac_xsave_LIBS"
1200 esac
1203 # Check for system-dependent libraries X programs must link with.
1204 # Do this before checking for the system-independent R6 libraries
1205 # (-lICE), since we may need -lsocket or whatever for X linking.
1207 if test "$ISC" = yes; then
1208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1209 else
1210 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1211 # libraries were built with DECnet support. And karl@cs.umb.edu says
1212 # the Alpha needs dnet_stub (dnet does not exist).
1213 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1214 echo "configure:1215: checking for dnet_ntoa in -ldnet" >&5
1215 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1218 else
1219 ac_save_LIBS="$LIBS"
1220 LIBS="-ldnet $LIBS"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 /* Override any gcc2 internal prototype to avoid an error. */
1225 /* We use char because int might match the return type of a gcc2
1226 builtin and then its argument prototype would still apply. */
1227 char dnet_ntoa();
1229 int main() {
1230 dnet_ntoa()
1231 ; return 0; }
1233 if { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1234 rm -rf conftest*
1235 eval "ac_cv_lib_$ac_lib_var=yes"
1236 else
1237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
1239 rm -rf conftest*
1240 eval "ac_cv_lib_$ac_lib_var=no"
1242 rm -f conftest*
1243 LIBS="$ac_save_LIBS"
1246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1248 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1249 else
1250 echo "$ac_t""no" 1>&6
1253 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1254 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1255 echo "configure:1256: checking for dnet_ntoa in -ldnet_stub" >&5
1256 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1259 else
1260 ac_save_LIBS="$LIBS"
1261 LIBS="-ldnet_stub $LIBS"
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 /* Override any gcc2 internal prototype to avoid an error. */
1266 /* We use char because int might match the return type of a gcc2
1267 builtin and then its argument prototype would still apply. */
1268 char dnet_ntoa();
1270 int main() {
1271 dnet_ntoa()
1272 ; return 0; }
1274 if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1275 rm -rf conftest*
1276 eval "ac_cv_lib_$ac_lib_var=yes"
1277 else
1278 echo "configure: failed program was:" >&5
1279 cat conftest.$ac_ext >&5
1280 rm -rf conftest*
1281 eval "ac_cv_lib_$ac_lib_var=no"
1283 rm -f conftest*
1284 LIBS="$ac_save_LIBS"
1287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1289 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1290 else
1291 echo "$ac_t""no" 1>&6
1296 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1297 # to get the SysV transport functions.
1298 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1299 # needs -lnsl.
1300 # The nsl library prevents programs from opening the X display
1301 # on Irix 5.2, according to dickey@clark.net.
1302 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1303 echo "configure:1304: checking for gethostbyname" >&5
1304 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1306 else
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 /* System header to define __stub macros and hopefully few prototypes,
1311 which can conflict with char gethostbyname(); below. */
1312 #include <assert.h>
1313 /* Override any gcc2 internal prototype to avoid an error. */
1314 /* We use char because int might match the return type of a gcc2
1315 builtin and then its argument prototype would still apply. */
1316 char gethostbyname();
1318 int main() {
1320 /* The GNU C library defines this for functions which it implements
1321 to always fail with ENOSYS. Some functions are actually named
1322 something starting with __ and the normal name is an alias. */
1323 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1324 choke me
1325 #else
1326 gethostbyname();
1327 #endif
1329 ; return 0; }
1331 if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1332 rm -rf conftest*
1333 eval "ac_cv_func_gethostbyname=yes"
1334 else
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 rm -rf conftest*
1338 eval "ac_cv_func_gethostbyname=no"
1340 rm -f conftest*
1343 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1346 else
1347 echo "$ac_t""no" 1>&6
1350 if test $ac_cv_func_gethostbyname = no; then
1351 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1352 echo "configure:1353: checking for gethostbyname in -lnsl" >&5
1353 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1356 else
1357 ac_save_LIBS="$LIBS"
1358 LIBS="-lnsl $LIBS"
1359 cat > conftest.$ac_ext <<EOF
1360 #line 1361 "configure"
1361 #include "confdefs.h"
1362 /* Override any gcc2 internal prototype to avoid an error. */
1363 /* We use char because int might match the return type of a gcc2
1364 builtin and then its argument prototype would still apply. */
1365 char gethostbyname();
1367 int main() {
1368 gethostbyname()
1369 ; return 0; }
1371 if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1372 rm -rf conftest*
1373 eval "ac_cv_lib_$ac_lib_var=yes"
1374 else
1375 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5
1377 rm -rf conftest*
1378 eval "ac_cv_lib_$ac_lib_var=no"
1380 rm -f conftest*
1381 LIBS="$ac_save_LIBS"
1384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1385 echo "$ac_t""yes" 1>&6
1386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1387 else
1388 echo "$ac_t""no" 1>&6
1393 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1394 # socket/setsockopt and other routines are undefined under SCO ODT
1395 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1396 # on later versions), says simon@lia.di.epfl.ch: it contains
1397 # gethostby* variants that don't use the nameserver (or something).
1398 # -lsocket must be given before -lnsl if both are needed.
1399 # We assume that if connect needs -lnsl, so does gethostbyname.
1400 echo $ac_n "checking for connect""... $ac_c" 1>&6
1401 echo "configure:1402: checking for connect" >&5
1402 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1404 else
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 /* System header to define __stub macros and hopefully few prototypes,
1409 which can conflict with char connect(); below. */
1410 #include <assert.h>
1411 /* Override any gcc2 internal prototype to avoid an error. */
1412 /* We use char because int might match the return type of a gcc2
1413 builtin and then its argument prototype would still apply. */
1414 char connect();
1416 int main() {
1418 /* The GNU C library defines this for functions which it implements
1419 to always fail with ENOSYS. Some functions are actually named
1420 something starting with __ and the normal name is an alias. */
1421 #if defined (__stub_connect) || defined (__stub___connect)
1422 choke me
1423 #else
1424 connect();
1425 #endif
1427 ; return 0; }
1429 if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1430 rm -rf conftest*
1431 eval "ac_cv_func_connect=yes"
1432 else
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1435 rm -rf conftest*
1436 eval "ac_cv_func_connect=no"
1438 rm -f conftest*
1441 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1444 else
1445 echo "$ac_t""no" 1>&6
1448 if test $ac_cv_func_connect = no; then
1449 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1450 echo "configure:1451: checking for connect in -lsocket" >&5
1451 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1454 else
1455 ac_save_LIBS="$LIBS"
1456 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 /* Override any gcc2 internal prototype to avoid an error. */
1461 /* We use char because int might match the return type of a gcc2
1462 builtin and then its argument prototype would still apply. */
1463 char connect();
1465 int main() {
1466 connect()
1467 ; return 0; }
1469 if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1470 rm -rf conftest*
1471 eval "ac_cv_lib_$ac_lib_var=yes"
1472 else
1473 echo "configure: failed program was:" >&5
1474 cat conftest.$ac_ext >&5
1475 rm -rf conftest*
1476 eval "ac_cv_lib_$ac_lib_var=no"
1478 rm -f conftest*
1479 LIBS="$ac_save_LIBS"
1482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1484 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1485 else
1486 echo "$ac_t""no" 1>&6
1491 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1492 echo $ac_n "checking for remove""... $ac_c" 1>&6
1493 echo "configure:1494: checking for remove" >&5
1494 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1496 else
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 /* System header to define __stub macros and hopefully few prototypes,
1501 which can conflict with char remove(); below. */
1502 #include <assert.h>
1503 /* Override any gcc2 internal prototype to avoid an error. */
1504 /* We use char because int might match the return type of a gcc2
1505 builtin and then its argument prototype would still apply. */
1506 char remove();
1508 int main() {
1510 /* The GNU C library defines this for functions which it implements
1511 to always fail with ENOSYS. Some functions are actually named
1512 something starting with __ and the normal name is an alias. */
1513 #if defined (__stub_remove) || defined (__stub___remove)
1514 choke me
1515 #else
1516 remove();
1517 #endif
1519 ; return 0; }
1521 if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1522 rm -rf conftest*
1523 eval "ac_cv_func_remove=yes"
1524 else
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1527 rm -rf conftest*
1528 eval "ac_cv_func_remove=no"
1530 rm -f conftest*
1533 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1534 echo "$ac_t""yes" 1>&6
1536 else
1537 echo "$ac_t""no" 1>&6
1540 if test $ac_cv_func_remove = no; then
1541 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1542 echo "configure:1543: checking for remove in -lposix" >&5
1543 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1546 else
1547 ac_save_LIBS="$LIBS"
1548 LIBS="-lposix $LIBS"
1549 cat > conftest.$ac_ext <<EOF
1550 #line 1551 "configure"
1551 #include "confdefs.h"
1552 /* Override any gcc2 internal prototype to avoid an error. */
1553 /* We use char because int might match the return type of a gcc2
1554 builtin and then its argument prototype would still apply. */
1555 char remove();
1557 int main() {
1558 remove()
1559 ; return 0; }
1561 if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1562 rm -rf conftest*
1563 eval "ac_cv_lib_$ac_lib_var=yes"
1564 else
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1567 rm -rf conftest*
1568 eval "ac_cv_lib_$ac_lib_var=no"
1570 rm -f conftest*
1571 LIBS="$ac_save_LIBS"
1574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1577 else
1578 echo "$ac_t""no" 1>&6
1583 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1584 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1585 echo "configure:1586: checking for shmat" >&5
1586 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1592 /* System header to define __stub macros and hopefully few prototypes,
1593 which can conflict with char shmat(); below. */
1594 #include <assert.h>
1595 /* Override any gcc2 internal prototype to avoid an error. */
1596 /* We use char because int might match the return type of a gcc2
1597 builtin and then its argument prototype would still apply. */
1598 char shmat();
1600 int main() {
1602 /* The GNU C library defines this for functions which it implements
1603 to always fail with ENOSYS. Some functions are actually named
1604 something starting with __ and the normal name is an alias. */
1605 #if defined (__stub_shmat) || defined (__stub___shmat)
1606 choke me
1607 #else
1608 shmat();
1609 #endif
1611 ; return 0; }
1613 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1614 rm -rf conftest*
1615 eval "ac_cv_func_shmat=yes"
1616 else
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 rm -rf conftest*
1620 eval "ac_cv_func_shmat=no"
1622 rm -f conftest*
1625 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1626 echo "$ac_t""yes" 1>&6
1628 else
1629 echo "$ac_t""no" 1>&6
1632 if test $ac_cv_func_shmat = no; then
1633 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1634 echo "configure:1635: checking for shmat in -lipc" >&5
1635 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1638 else
1639 ac_save_LIBS="$LIBS"
1640 LIBS="-lipc $LIBS"
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1644 /* Override any gcc2 internal prototype to avoid an error. */
1645 /* We use char because int might match the return type of a gcc2
1646 builtin and then its argument prototype would still apply. */
1647 char shmat();
1649 int main() {
1650 shmat()
1651 ; return 0; }
1653 if { (eval echo configure:1654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1654 rm -rf conftest*
1655 eval "ac_cv_lib_$ac_lib_var=yes"
1656 else
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1659 rm -rf conftest*
1660 eval "ac_cv_lib_$ac_lib_var=no"
1662 rm -f conftest*
1663 LIBS="$ac_save_LIBS"
1666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1667 echo "$ac_t""yes" 1>&6
1668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1669 else
1670 echo "$ac_t""no" 1>&6
1676 # Check for libraries that X11R6 Xt/Xaw programs need.
1677 ac_save_LDFLAGS="$LDFLAGS"
1678 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1679 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1680 # check for ICE first), but we must link in the order -lSM -lICE or
1681 # we get undefined symbols. So assume we have SM if we have ICE.
1682 # These have to be linked with before -lX11, unlike the other
1683 # libraries we check for below, so use a different variable.
1684 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1685 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1686 echo "configure:1687: checking for IceConnectionNumber in -lICE" >&5
1687 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691 ac_save_LIBS="$LIBS"
1692 LIBS="-lICE $LIBS"
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 /* Override any gcc2 internal prototype to avoid an error. */
1697 /* We use char because int might match the return type of a gcc2
1698 builtin and then its argument prototype would still apply. */
1699 char IceConnectionNumber();
1701 int main() {
1702 IceConnectionNumber()
1703 ; return 0; }
1705 if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1706 rm -rf conftest*
1707 eval "ac_cv_lib_$ac_lib_var=yes"
1708 else
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 rm -rf conftest*
1712 eval "ac_cv_lib_$ac_lib_var=no"
1714 rm -f conftest*
1715 LIBS="$ac_save_LIBS"
1718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1721 else
1722 echo "$ac_t""no" 1>&6
1725 LDFLAGS="$ac_save_LDFLAGS"
1729 for ac_prog in 'bison -y' byacc
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_word" >&5
1735 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1737 else
1738 if test -n "$YACC"; then
1739 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1740 else
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1742 for ac_dir in $PATH; do
1743 test -z "$ac_dir" && ac_dir=.
1744 if test -f $ac_dir/$ac_word; then
1745 ac_cv_prog_YACC="$ac_prog"
1746 break
1748 done
1749 IFS="$ac_save_ifs"
1752 YACC="$ac_cv_prog_YACC"
1753 if test -n "$YACC"; then
1754 echo "$ac_t""$YACC" 1>&6
1755 else
1756 echo "$ac_t""no" 1>&6
1759 test -n "$YACC" && break
1760 done
1761 test -n "$YACC" || YACC="yacc"
1763 # Extract the first word of "flex", so it can be a program name with args.
1764 set dummy flex; ac_word=$2
1765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1766 echo "configure:1767: checking for $ac_word" >&5
1767 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1769 else
1770 if test -n "$LEX"; then
1771 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1772 else
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1774 for ac_dir in $PATH; do
1775 test -z "$ac_dir" && ac_dir=.
1776 if test -f $ac_dir/$ac_word; then
1777 ac_cv_prog_LEX="flex"
1778 break
1780 done
1781 IFS="$ac_save_ifs"
1782 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1785 LEX="$ac_cv_prog_LEX"
1786 if test -n "$LEX"; then
1787 echo "$ac_t""$LEX" 1>&6
1788 else
1789 echo "$ac_t""no" 1>&6
1792 if test -z "$LEXLIB"
1793 then
1794 case "$LEX" in
1795 flex*) ac_lib=fl ;;
1796 *) ac_lib=l ;;
1797 esac
1798 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1799 echo "configure:1800: checking for yywrap in -l$ac_lib" >&5
1800 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804 ac_save_LIBS="$LIBS"
1805 LIBS="-l$ac_lib $LIBS"
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 /* Override any gcc2 internal prototype to avoid an error. */
1810 /* We use char because int might match the return type of a gcc2
1811 builtin and then its argument prototype would still apply. */
1812 char yywrap();
1814 int main() {
1815 yywrap()
1816 ; return 0; }
1818 if { (eval echo configure:1819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1819 rm -rf conftest*
1820 eval "ac_cv_lib_$ac_lib_var=yes"
1821 else
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1824 rm -rf conftest*
1825 eval "ac_cv_lib_$ac_lib_var=no"
1827 rm -f conftest*
1828 LIBS="$ac_save_LIBS"
1831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1832 echo "$ac_t""yes" 1>&6
1833 LEXLIB="-l$ac_lib"
1834 else
1835 echo "$ac_t""no" 1>&6
1840 # Extract the first word of "ranlib", so it can be a program name with args.
1841 set dummy ranlib; ac_word=$2
1842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843 echo "configure:1844: checking for $ac_word" >&5
1844 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846 else
1847 if test -n "$RANLIB"; then
1848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1849 else
1850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1851 for ac_dir in $PATH; do
1852 test -z "$ac_dir" && ac_dir=.
1853 if test -f $ac_dir/$ac_word; then
1854 ac_cv_prog_RANLIB="ranlib"
1855 break
1857 done
1858 IFS="$ac_save_ifs"
1859 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1862 RANLIB="$ac_cv_prog_RANLIB"
1863 if test -n "$RANLIB"; then
1864 echo "$ac_t""$RANLIB" 1>&6
1865 else
1866 echo "$ac_t""no" 1>&6
1869 # Find a good install program. We prefer a C program (faster),
1870 # so one script is as good as another. But avoid the broken or
1871 # incompatible versions:
1872 # SysV /etc/install, /usr/sbin/install
1873 # SunOS /usr/etc/install
1874 # IRIX /sbin/install
1875 # AIX /bin/install
1876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1878 # ./install, which can be erroneously created by make from ./install.sh.
1879 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1880 echo "configure:1881: checking for a BSD compatible install" >&5
1881 if test -z "$INSTALL"; then
1882 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1884 else
1885 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1886 for ac_dir in $PATH; do
1887 # Account for people who put trailing slashes in PATH elements.
1888 case "$ac_dir/" in
1889 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1891 # OSF1 and SCO ODT 3.0 have their own names for install.
1892 for ac_prog in ginstall installbsd scoinst install; do
1893 if test -f $ac_dir/$ac_prog; then
1894 if test $ac_prog = install &&
1895 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1896 # AIX install. It has an incompatible calling convention.
1897 # OSF/1 installbsd also uses dspmsg, but is usable.
1899 else
1900 ac_cv_path_install="$ac_dir/$ac_prog -c"
1901 break 2
1904 done
1906 esac
1907 done
1908 IFS="$ac_save_IFS"
1911 if test "${ac_cv_path_install+set}" = set; then
1912 INSTALL="$ac_cv_path_install"
1913 else
1914 # As a last resort, use the slow shell script. We don't cache a
1915 # path for INSTALL within a source directory, because that will
1916 # break other packages using the cache if that directory is
1917 # removed, or if the path is relative.
1918 INSTALL="$ac_install_sh"
1921 echo "$ac_t""$INSTALL" 1>&6
1923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1924 # It thinks the first close brace ends the variable substitution.
1925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1927 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1929 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether ln -s works" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1933 else
1934 rm -f conftestdata
1935 if ln -s X conftestdata 2>/dev/null
1936 then
1937 rm -f conftestdata
1938 ac_cv_prog_LN_S="ln -s"
1939 else
1940 ac_cv_prog_LN_S=ln
1943 LN_S="$ac_cv_prog_LN_S"
1944 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1945 echo "$ac_t""yes" 1>&6
1946 else
1947 echo "$ac_t""no" 1>&6
1950 # Extract the first word of "c2man", so it can be a program name with args.
1951 set dummy c2man; ac_word=$2
1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_word" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957 if test -n "$C2MAN"; then
1958 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
1959 else
1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1961 for ac_dir in $PATH; do
1962 test -z "$ac_dir" && ac_dir=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_C2MAN="c2man"
1965 break
1967 done
1968 IFS="$ac_save_ifs"
1969 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
1972 C2MAN="$ac_cv_prog_C2MAN"
1973 if test -n "$C2MAN"; then
1974 echo "$ac_t""$C2MAN" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1979 # Extract the first word of "ldconfig", so it can be a program name with args.
1980 set dummy ldconfig; ac_word=$2
1981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_word" >&5
1983 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1985 else
1986 case "$LDCONFIG" in
1988 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
1991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1992 for ac_dir in /sbin:/usr/sbin:$PATH$ac_dummy; do
1993 test -z "$ac_dir" && ac_dir=.
1994 if test -f $ac_dir/$ac_word; then
1995 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
1996 break
1998 done
1999 IFS="$ac_save_ifs"
2000 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="false"
2002 esac
2004 LDCONFIG="$ac_cv_path_LDCONFIG"
2005 if test -n "$LDCONFIG"; then
2006 echo "$ac_t""$LDCONFIG" 1>&6
2007 else
2008 echo "$ac_t""no" 1>&6
2013 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2014 echo "configure:2015: checking for sqrt in -lm" >&5
2015 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2018 else
2019 ac_save_LIBS="$LIBS"
2020 LIBS="-lm $LIBS"
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 /* Override any gcc2 internal prototype to avoid an error. */
2025 /* We use char because int might match the return type of a gcc2
2026 builtin and then its argument prototype would still apply. */
2027 char sqrt();
2029 int main() {
2030 sqrt()
2031 ; return 0; }
2033 if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2034 rm -rf conftest*
2035 eval "ac_cv_lib_$ac_lib_var=yes"
2036 else
2037 echo "configure: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2039 rm -rf conftest*
2040 eval "ac_cv_lib_$ac_lib_var=no"
2042 rm -f conftest*
2043 LIBS="$ac_save_LIBS"
2046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2047 echo "$ac_t""yes" 1>&6
2048 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2049 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2050 cat >> confdefs.h <<EOF
2051 #define $ac_tr_lib 1
2054 LIBS="-lm $LIBS"
2056 else
2057 echo "$ac_t""no" 1>&6
2060 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2061 echo "configure:2062: checking for i386_set_ldt in -li386" >&5
2062 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2065 else
2066 ac_save_LIBS="$LIBS"
2067 LIBS="-li386 $LIBS"
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 /* Override any gcc2 internal prototype to avoid an error. */
2072 /* We use char because int might match the return type of a gcc2
2073 builtin and then its argument prototype would still apply. */
2074 char i386_set_ldt();
2076 int main() {
2077 i386_set_ldt()
2078 ; return 0; }
2080 if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2081 rm -rf conftest*
2082 eval "ac_cv_lib_$ac_lib_var=yes"
2083 else
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2086 rm -rf conftest*
2087 eval "ac_cv_lib_$ac_lib_var=no"
2089 rm -f conftest*
2090 LIBS="$ac_save_LIBS"
2093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2097 cat >> confdefs.h <<EOF
2098 #define $ac_tr_lib 1
2101 LIBS="-li386 $LIBS"
2103 else
2104 echo "$ac_t""no" 1>&6
2107 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2108 echo "configure:2109: checking for _oss_ioctl in -lossaudio" >&5
2109 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2112 else
2113 ac_save_LIBS="$LIBS"
2114 LIBS="-lossaudio $LIBS"
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2118 /* Override any gcc2 internal prototype to avoid an error. */
2119 /* We use char because int might match the return type of a gcc2
2120 builtin and then its argument prototype would still apply. */
2121 char _oss_ioctl();
2123 int main() {
2124 _oss_ioctl()
2125 ; return 0; }
2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2128 rm -rf conftest*
2129 eval "ac_cv_lib_$ac_lib_var=yes"
2130 else
2131 echo "configure: failed program was:" >&5
2132 cat conftest.$ac_ext >&5
2133 rm -rf conftest*
2134 eval "ac_cv_lib_$ac_lib_var=no"
2136 rm -f conftest*
2137 LIBS="$ac_save_LIBS"
2140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2141 echo "$ac_t""yes" 1>&6
2142 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2144 cat >> confdefs.h <<EOF
2145 #define $ac_tr_lib 1
2148 LIBS="-lossaudio $LIBS"
2150 else
2151 echo "$ac_t""no" 1>&6
2154 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2155 echo "configure:2156: checking for iswalnum in -lw" >&5
2156 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2159 else
2160 ac_save_LIBS="$LIBS"
2161 LIBS="-lw $LIBS"
2162 cat > conftest.$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 /* Override any gcc2 internal prototype to avoid an error. */
2166 /* We use char because int might match the return type of a gcc2
2167 builtin and then its argument prototype would still apply. */
2168 char iswalnum();
2170 int main() {
2171 iswalnum()
2172 ; return 0; }
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2175 rm -rf conftest*
2176 eval "ac_cv_lib_$ac_lib_var=yes"
2177 else
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2180 rm -rf conftest*
2181 eval "ac_cv_lib_$ac_lib_var=no"
2183 rm -f conftest*
2184 LIBS="$ac_save_LIBS"
2187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2189 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2191 cat >> confdefs.h <<EOF
2192 #define $ac_tr_lib 1
2195 LIBS="-lw $LIBS"
2197 else
2198 echo "$ac_t""no" 1>&6
2201 for ac_func in gethostbyname
2203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2204 echo "configure:2205: checking for $ac_func" >&5
2205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2207 else
2208 cat > conftest.$ac_ext <<EOF
2209 #line 2210 "configure"
2210 #include "confdefs.h"
2211 /* System header to define __stub macros and hopefully few prototypes,
2212 which can conflict with char $ac_func(); below. */
2213 #include <assert.h>
2214 /* Override any gcc2 internal prototype to avoid an error. */
2215 /* We use char because int might match the return type of a gcc2
2216 builtin and then its argument prototype would still apply. */
2217 char $ac_func();
2219 int main() {
2221 /* The GNU C library defines this for functions which it implements
2222 to always fail with ENOSYS. Some functions are actually named
2223 something starting with __ and the normal name is an alias. */
2224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2225 choke me
2226 #else
2227 $ac_func();
2228 #endif
2230 ; return 0; }
2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2233 rm -rf conftest*
2234 eval "ac_cv_func_$ac_func=yes"
2235 else
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2238 rm -rf conftest*
2239 eval "ac_cv_func_$ac_func=no"
2241 rm -f conftest*
2244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2246 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2247 cat >> confdefs.h <<EOF
2248 #define $ac_tr_func 1
2251 else
2252 echo "$ac_t""no" 1>&6
2253 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2254 echo "configure:2255: checking for gethostbyname in -lnsl" >&5
2255 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 ac_save_LIBS="$LIBS"
2260 LIBS="-lnsl $LIBS"
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 /* Override any gcc2 internal prototype to avoid an error. */
2265 /* We use char because int might match the return type of a gcc2
2266 builtin and then its argument prototype would still apply. */
2267 char gethostbyname();
2269 int main() {
2270 gethostbyname()
2271 ; return 0; }
2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2274 rm -rf conftest*
2275 eval "ac_cv_lib_$ac_lib_var=yes"
2276 else
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 rm -rf conftest*
2280 eval "ac_cv_lib_$ac_lib_var=no"
2282 rm -f conftest*
2283 LIBS="$ac_save_LIBS"
2286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2287 echo "$ac_t""yes" 1>&6
2288 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2290 cat >> confdefs.h <<EOF
2291 #define $ac_tr_lib 1
2294 LIBS="-lnsl $LIBS"
2296 else
2297 echo "$ac_t""no" 1>&6
2301 done
2303 for ac_func in connect
2305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2306 echo "configure:2307: checking for $ac_func" >&5
2307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2309 else
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 /* System header to define __stub macros and hopefully few prototypes,
2314 which can conflict with char $ac_func(); below. */
2315 #include <assert.h>
2316 /* Override any gcc2 internal prototype to avoid an error. */
2317 /* We use char because int might match the return type of a gcc2
2318 builtin and then its argument prototype would still apply. */
2319 char $ac_func();
2321 int main() {
2323 /* The GNU C library defines this for functions which it implements
2324 to always fail with ENOSYS. Some functions are actually named
2325 something starting with __ and the normal name is an alias. */
2326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2327 choke me
2328 #else
2329 $ac_func();
2330 #endif
2332 ; return 0; }
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2335 rm -rf conftest*
2336 eval "ac_cv_func_$ac_func=yes"
2337 else
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 rm -rf conftest*
2341 eval "ac_cv_func_$ac_func=no"
2343 rm -f conftest*
2346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2349 cat >> confdefs.h <<EOF
2350 #define $ac_tr_func 1
2353 else
2354 echo "$ac_t""no" 1>&6
2355 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2356 echo "configure:2357: checking for connect in -lsocket" >&5
2357 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2360 else
2361 ac_save_LIBS="$LIBS"
2362 LIBS="-lsocket $LIBS"
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 /* Override any gcc2 internal prototype to avoid an error. */
2367 /* We use char because int might match the return type of a gcc2
2368 builtin and then its argument prototype would still apply. */
2369 char connect();
2371 int main() {
2372 connect()
2373 ; return 0; }
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2376 rm -rf conftest*
2377 eval "ac_cv_lib_$ac_lib_var=yes"
2378 else
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2381 rm -rf conftest*
2382 eval "ac_cv_lib_$ac_lib_var=no"
2384 rm -f conftest*
2385 LIBS="$ac_save_LIBS"
2388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2389 echo "$ac_t""yes" 1>&6
2390 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2391 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2392 cat >> confdefs.h <<EOF
2393 #define $ac_tr_lib 1
2396 LIBS="-lsocket $LIBS"
2398 else
2399 echo "$ac_t""no" 1>&6
2403 done
2405 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2406 echo "configure:2407: checking for setrunelocale in -lxpg4" >&5
2407 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2410 else
2411 ac_save_LIBS="$LIBS"
2412 LIBS="-lxpg4 $LIBS"
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 /* Override any gcc2 internal prototype to avoid an error. */
2417 /* We use char because int might match the return type of a gcc2
2418 builtin and then its argument prototype would still apply. */
2419 char setrunelocale();
2421 int main() {
2422 setrunelocale()
2423 ; return 0; }
2425 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2426 rm -rf conftest*
2427 eval "ac_cv_lib_$ac_lib_var=yes"
2428 else
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2431 rm -rf conftest*
2432 eval "ac_cv_lib_$ac_lib_var=no"
2434 rm -f conftest*
2435 LIBS="$ac_save_LIBS"
2438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2439 echo "$ac_t""yes" 1>&6
2440 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2441 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2442 cat >> confdefs.h <<EOF
2443 #define $ac_tr_lib 1
2446 LIBS="-lxpg4 $LIBS"
2448 else
2449 echo "$ac_t""no" 1>&6
2452 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2453 echo "configure:2454: checking for mmap in -lmmap" >&5
2454 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2457 else
2458 ac_save_LIBS="$LIBS"
2459 LIBS="-lmmap $LIBS"
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 /* Override any gcc2 internal prototype to avoid an error. */
2464 /* We use char because int might match the return type of a gcc2
2465 builtin and then its argument prototype would still apply. */
2466 char mmap();
2468 int main() {
2469 mmap()
2470 ; return 0; }
2472 if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2473 rm -rf conftest*
2474 eval "ac_cv_lib_$ac_lib_var=yes"
2475 else
2476 echo "configure: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2478 rm -rf conftest*
2479 eval "ac_cv_lib_$ac_lib_var=no"
2481 rm -f conftest*
2482 LIBS="$ac_save_LIBS"
2485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2488 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2489 cat >> confdefs.h <<EOF
2490 #define $ac_tr_lib 1
2493 LIBS="-lmmap $LIBS"
2495 else
2496 echo "$ac_t""no" 1>&6
2500 for ac_hdr in dlfcn.h
2502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2507 else
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <$ac_hdr>
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out`
2516 if test -z "$ac_err"; then
2517 rm -rf conftest*
2518 eval "ac_cv_header_$ac_safe=yes"
2519 else
2520 echo "$ac_err" >&5
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 rm -rf conftest*
2524 eval "ac_cv_header_$ac_safe=no"
2526 rm -f conftest*
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h <<EOF
2532 #define $ac_tr_hdr 1
2534 for ac_func in dlopen
2536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2537 echo "configure:2538: checking for $ac_func" >&5
2538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2540 else
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 /* System header to define __stub macros and hopefully few prototypes,
2545 which can conflict with char $ac_func(); below. */
2546 #include <assert.h>
2547 /* Override any gcc2 internal prototype to avoid an error. */
2548 /* We use char because int might match the return type of a gcc2
2549 builtin and then its argument prototype would still apply. */
2550 char $ac_func();
2552 int main() {
2554 /* The GNU C library defines this for functions which it implements
2555 to always fail with ENOSYS. Some functions are actually named
2556 something starting with __ and the normal name is an alias. */
2557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2558 choke me
2559 #else
2560 $ac_func();
2561 #endif
2563 ; return 0; }
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2566 rm -rf conftest*
2567 eval "ac_cv_func_$ac_func=yes"
2568 else
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2571 rm -rf conftest*
2572 eval "ac_cv_func_$ac_func=no"
2574 rm -f conftest*
2577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2578 echo "$ac_t""yes" 1>&6
2579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2580 cat >> confdefs.h <<EOF
2581 #define $ac_tr_func 1
2583 cat >> confdefs.h <<\EOF
2584 #define HAVE_DL_API 1
2587 else
2588 echo "$ac_t""no" 1>&6
2589 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2590 echo "configure:2591: checking for dlopen in -ldl" >&5
2591 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2594 else
2595 ac_save_LIBS="$LIBS"
2596 LIBS="-ldl $LIBS"
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 /* Override any gcc2 internal prototype to avoid an error. */
2601 /* We use char because int might match the return type of a gcc2
2602 builtin and then its argument prototype would still apply. */
2603 char dlopen();
2605 int main() {
2606 dlopen()
2607 ; return 0; }
2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2610 rm -rf conftest*
2611 eval "ac_cv_lib_$ac_lib_var=yes"
2612 else
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 rm -rf conftest*
2616 eval "ac_cv_lib_$ac_lib_var=no"
2618 rm -f conftest*
2619 LIBS="$ac_save_LIBS"
2622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2623 echo "$ac_t""yes" 1>&6
2624 cat >> confdefs.h <<\EOF
2625 #define HAVE_DL_API 1
2628 LIBS="$LIBS -ldl"
2630 else
2631 echo "$ac_t""no" 1>&6
2636 done
2639 else
2640 echo "$ac_t""no" 1>&6
2642 done
2645 if test "$have_x" = "yes"
2646 then
2647 XLIB="-lXext -lX11"
2648 ac_save_CPPFLAGS="$CPPFLAGS"
2649 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2651 for ac_hdr in X11/xpm.h
2653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_hdr" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2658 else
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <$ac_hdr>
2664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err=`grep -v '^ *+' conftest.out`
2667 if test -z "$ac_err"; then
2668 rm -rf conftest*
2669 eval "ac_cv_header_$ac_safe=yes"
2670 else
2671 echo "$ac_err" >&5
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2674 rm -rf conftest*
2675 eval "ac_cv_header_$ac_safe=no"
2677 rm -f conftest*
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2682 cat >> confdefs.h <<EOF
2683 #define $ac_tr_hdr 1
2686 else
2687 echo "$ac_t""no" 1>&6
2689 done
2691 if test "$ac_cv_header_X11_xpm_h" = "yes"
2692 then
2693 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2694 echo "configure:2695: checking for XpmCreatePixmapFromData in -lXpm" >&5
2695 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2698 else
2699 ac_save_LIBS="$LIBS"
2700 LIBS="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2704 /* Override any gcc2 internal prototype to avoid an error. */
2705 /* We use char because int might match the return type of a gcc2
2706 builtin and then its argument prototype would still apply. */
2707 char XpmCreatePixmapFromData();
2709 int main() {
2710 XpmCreatePixmapFromData()
2711 ; return 0; }
2713 if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2714 rm -rf conftest*
2715 eval "ac_cv_lib_$ac_lib_var=yes"
2716 else
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2719 rm -rf conftest*
2720 eval "ac_cv_lib_$ac_lib_var=no"
2722 rm -f conftest*
2723 LIBS="$ac_save_LIBS"
2726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2727 echo "$ac_t""yes" 1>&6
2728 cat >> confdefs.h <<\EOF
2729 #define HAVE_LIBXXPM 1
2731 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2732 else
2733 echo "$ac_t""no" 1>&6
2738 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
2740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_hdr" >&5
2743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2745 else
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 #include <$ac_hdr>
2751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2752 { (eval echo configure:2753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2753 ac_err=`grep -v '^ *+' conftest.out`
2754 if test -z "$ac_err"; then
2755 rm -rf conftest*
2756 eval "ac_cv_header_$ac_safe=yes"
2757 else
2758 echo "$ac_err" >&5
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2761 rm -rf conftest*
2762 eval "ac_cv_header_$ac_safe=no"
2764 rm -f conftest*
2766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2769 cat >> confdefs.h <<EOF
2770 #define $ac_tr_hdr 1
2773 else
2774 echo "$ac_t""no" 1>&6
2776 done
2778 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2779 then
2780 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2781 echo "configure:2782: checking for XShmQueryExtension in -lXext" >&5
2782 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2785 else
2786 ac_save_LIBS="$LIBS"
2787 LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS"
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791 /* Override any gcc2 internal prototype to avoid an error. */
2792 /* We use char because int might match the return type of a gcc2
2793 builtin and then its argument prototype would still apply. */
2794 char XShmQueryExtension();
2796 int main() {
2797 XShmQueryExtension()
2798 ; return 0; }
2800 if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2801 rm -rf conftest*
2802 eval "ac_cv_lib_$ac_lib_var=yes"
2803 else
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2806 rm -rf conftest*
2807 eval "ac_cv_lib_$ac_lib_var=no"
2809 rm -f conftest*
2810 LIBS="$ac_save_LIBS"
2813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2814 echo "$ac_t""yes" 1>&6
2815 cat >> confdefs.h <<\EOF
2816 #define HAVE_LIBXXSHM 1
2819 else
2820 echo "$ac_t""no" 1>&6
2824 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
2826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_hdr" >&5
2829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2831 else
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 #include <$ac_hdr>
2837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2838 { (eval echo configure:2839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2839 ac_err=`grep -v '^ *+' conftest.out`
2840 if test -z "$ac_err"; then
2841 rm -rf conftest*
2842 eval "ac_cv_header_$ac_safe=yes"
2843 else
2844 echo "$ac_err" >&5
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 rm -rf conftest*
2848 eval "ac_cv_header_$ac_safe=no"
2850 rm -f conftest*
2852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2855 cat >> confdefs.h <<EOF
2856 #define $ac_tr_hdr 1
2859 else
2860 echo "$ac_t""no" 1>&6
2862 done
2864 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2865 then
2866 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2867 echo "configure:2868: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2868 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2871 else
2872 ac_save_LIBS="$LIBS"
2873 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2874 cat > conftest.$ac_ext <<EOF
2875 #line 2876 "configure"
2876 #include "confdefs.h"
2877 /* Override any gcc2 internal prototype to avoid an error. */
2878 /* We use char because int might match the return type of a gcc2
2879 builtin and then its argument prototype would still apply. */
2880 char XF86DGAQueryExtension();
2882 int main() {
2883 XF86DGAQueryExtension()
2884 ; return 0; }
2886 if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2887 rm -rf conftest*
2888 eval "ac_cv_lib_$ac_lib_var=yes"
2889 else
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 rm -rf conftest*
2893 eval "ac_cv_lib_$ac_lib_var=no"
2895 rm -f conftest*
2896 LIBS="$ac_save_LIBS"
2899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2900 echo "$ac_t""yes" 1>&6
2901 cat >> confdefs.h <<\EOF
2902 #define HAVE_LIBXXF86DGA 1
2904 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2905 else
2906 echo "$ac_t""no" 1>&6
2911 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
2913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2915 echo "configure:2916: checking for $ac_hdr" >&5
2916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2918 else
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922 #include <$ac_hdr>
2924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2925 { (eval echo configure:2926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2926 ac_err=`grep -v '^ *+' conftest.out`
2927 if test -z "$ac_err"; then
2928 rm -rf conftest*
2929 eval "ac_cv_header_$ac_safe=yes"
2930 else
2931 echo "$ac_err" >&5
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 rm -rf conftest*
2935 eval "ac_cv_header_$ac_safe=no"
2937 rm -f conftest*
2939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2940 echo "$ac_t""yes" 1>&6
2941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2942 cat >> confdefs.h <<EOF
2943 #define $ac_tr_hdr 1
2946 else
2947 echo "$ac_t""no" 1>&6
2949 done
2951 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
2952 then
2953 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2954 echo "configure:2955: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2955 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2958 else
2959 ac_save_LIBS="$LIBS"
2960 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 /* Override any gcc2 internal prototype to avoid an error. */
2965 /* We use char because int might match the return type of a gcc2
2966 builtin and then its argument prototype would still apply. */
2967 char XF86VidModeQueryExtension();
2969 int main() {
2970 XF86VidModeQueryExtension()
2971 ; return 0; }
2973 if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2974 rm -rf conftest*
2975 eval "ac_cv_lib_$ac_lib_var=yes"
2976 else
2977 echo "configure: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2979 rm -rf conftest*
2980 eval "ac_cv_lib_$ac_lib_var=no"
2982 rm -f conftest*
2983 LIBS="$ac_save_LIBS"
2986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2988 cat >> confdefs.h <<\EOF
2989 #define HAVE_LIBXXF86VM 1
2991 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
2992 else
2993 echo "$ac_t""no" 1>&6
2998 for ac_hdr in GL/gl.h GL/osmesa.h
3000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_hdr" >&5
3003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3005 else
3006 cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3009 #include <$ac_hdr>
3011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3012 { (eval echo configure:3013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3013 ac_err=`grep -v '^ *+' conftest.out`
3014 if test -z "$ac_err"; then
3015 rm -rf conftest*
3016 eval "ac_cv_header_$ac_safe=yes"
3017 else
3018 echo "$ac_err" >&5
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3021 rm -rf conftest*
3022 eval "ac_cv_header_$ac_safe=no"
3024 rm -f conftest*
3026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3027 echo "$ac_t""yes" 1>&6
3028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3029 cat >> confdefs.h <<EOF
3030 #define $ac_tr_hdr 1
3033 else
3034 echo "$ac_t""no" 1>&6
3036 done
3038 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_osmesa_h" = "yes"
3039 then
3040 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
3041 echo "configure:3042: checking "for up-to-date Mesa version"" >&5
3042 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3044 else
3045 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048 #include <GL/gl.h>
3049 int main() {
3050 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3051 ; return 0; }
3053 if { (eval echo configure:3054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3054 rm -rf conftest*
3055 wine_cv_mesa_version_OK="yes"
3056 else
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 rm -rf conftest*
3060 wine_cv_mesa_version_OK="no"
3063 rm -f conftest*
3067 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3069 if test "$wine_cv_mesa_version_OK" = "yes"
3070 then
3071 echo $ac_n "checking for OSMesaCreateContext in -lMesaGL""... $ac_c" 1>&6
3072 echo "configure:3073: checking for OSMesaCreateContext in -lMesaGL" >&5
3073 ac_lib_var=`echo MesaGL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
3074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3076 else
3077 ac_save_LIBS="$LIBS"
3078 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 /* Override any gcc2 internal prototype to avoid an error. */
3083 /* We use char because int might match the return type of a gcc2
3084 builtin and then its argument prototype would still apply. */
3085 char OSMesaCreateContext();
3087 int main() {
3088 OSMesaCreateContext()
3089 ; return 0; }
3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3092 rm -rf conftest*
3093 eval "ac_cv_lib_$ac_lib_var=yes"
3094 else
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 rm -rf conftest*
3098 eval "ac_cv_lib_$ac_lib_var=no"
3100 rm -f conftest*
3101 LIBS="$ac_save_LIBS"
3104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3106 cat >> confdefs.h <<\EOF
3107 #define HAVE_LIBMESAGL 1
3109 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3110 else
3111 echo "$ac_t""no" 1>&6
3117 CPPFLAGS="$ac_save_CPPFLAGS"
3118 else
3119 XLIB=""
3120 X_CFLAGS=""
3121 X_LIBS=""
3124 for ac_hdr in ncurses.h
3126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3128 echo "configure:3129: checking for $ac_hdr" >&5
3129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3130 echo $ac_n "(cached) $ac_c" 1>&6
3131 else
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3135 #include <$ac_hdr>
3137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3138 { (eval echo configure:3139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3139 ac_err=`grep -v '^ *+' conftest.out`
3140 if test -z "$ac_err"; then
3141 rm -rf conftest*
3142 eval "ac_cv_header_$ac_safe=yes"
3143 else
3144 echo "$ac_err" >&5
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3147 rm -rf conftest*
3148 eval "ac_cv_header_$ac_safe=no"
3150 rm -f conftest*
3152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3153 echo "$ac_t""yes" 1>&6
3154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3155 cat >> confdefs.h <<EOF
3156 #define $ac_tr_hdr 1
3159 else
3160 echo "$ac_t""no" 1>&6
3162 done
3164 if test "$ac_cv_header_ncurses_h" = "yes"
3165 then
3166 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3167 echo "configure:3168: checking for waddch in -lncurses" >&5
3168 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3171 else
3172 ac_save_LIBS="$LIBS"
3173 LIBS="-lncurses $LIBS"
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 /* Override any gcc2 internal prototype to avoid an error. */
3178 /* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3180 char waddch();
3182 int main() {
3183 waddch()
3184 ; return 0; }
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3187 rm -rf conftest*
3188 eval "ac_cv_lib_$ac_lib_var=yes"
3189 else
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3192 rm -rf conftest*
3193 eval "ac_cv_lib_$ac_lib_var=no"
3195 rm -f conftest*
3196 LIBS="$ac_save_LIBS"
3199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3200 echo "$ac_t""yes" 1>&6
3201 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3203 cat >> confdefs.h <<EOF
3204 #define $ac_tr_lib 1
3207 LIBS="-lncurses $LIBS"
3209 else
3210 echo "$ac_t""no" 1>&6
3214 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3215 then
3216 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3217 echo "configure:3218: checking for resizeterm in -lncurses" >&5
3218 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3221 else
3222 ac_save_LIBS="$LIBS"
3223 LIBS="-lncurses $LIBS"
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 /* Override any gcc2 internal prototype to avoid an error. */
3228 /* We use char because int might match the return type of a gcc2
3229 builtin and then its argument prototype would still apply. */
3230 char resizeterm();
3232 int main() {
3233 resizeterm()
3234 ; return 0; }
3236 if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3237 rm -rf conftest*
3238 eval "ac_cv_lib_$ac_lib_var=yes"
3239 else
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 rm -rf conftest*
3243 eval "ac_cv_lib_$ac_lib_var=no"
3245 rm -f conftest*
3246 LIBS="$ac_save_LIBS"
3249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3251 cat >> confdefs.h <<\EOF
3252 #define HAVE_RESIZETERM 1
3255 else
3256 echo "$ac_t""no" 1>&6
3259 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3260 echo "configure:3261: checking for getbkgd in -lncurses" >&5
3261 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3264 else
3265 ac_save_LIBS="$LIBS"
3266 LIBS="-lncurses $LIBS"
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 /* Override any gcc2 internal prototype to avoid an error. */
3271 /* We use char because int might match the return type of a gcc2
3272 builtin and then its argument prototype would still apply. */
3273 char getbkgd();
3275 int main() {
3276 getbkgd()
3277 ; return 0; }
3279 if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3280 rm -rf conftest*
3281 eval "ac_cv_lib_$ac_lib_var=yes"
3282 else
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3285 rm -rf conftest*
3286 eval "ac_cv_lib_$ac_lib_var=no"
3288 rm -f conftest*
3289 LIBS="$ac_save_LIBS"
3292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3293 echo "$ac_t""yes" 1>&6
3294 cat >> confdefs.h <<\EOF
3295 #define HAVE_GETBKGD 1
3298 else
3299 echo "$ac_t""no" 1>&6
3302 else
3303 for ac_hdr in curses.h
3305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_hdr" >&5
3308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3310 else
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 #include <$ac_hdr>
3316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3317 { (eval echo configure:3318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3318 ac_err=`grep -v '^ *+' conftest.out`
3319 if test -z "$ac_err"; then
3320 rm -rf conftest*
3321 eval "ac_cv_header_$ac_safe=yes"
3322 else
3323 echo "$ac_err" >&5
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3326 rm -rf conftest*
3327 eval "ac_cv_header_$ac_safe=no"
3329 rm -f conftest*
3331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3334 cat >> confdefs.h <<EOF
3335 #define $ac_tr_hdr 1
3338 else
3339 echo "$ac_t""no" 1>&6
3341 done
3343 if test "$ac_cv_header_curses_h" = "yes"
3344 then
3345 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3346 echo "configure:3347: checking for waddch in -lcurses" >&5
3347 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3350 else
3351 ac_save_LIBS="$LIBS"
3352 LIBS="-lcurses $LIBS"
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 /* Override any gcc2 internal prototype to avoid an error. */
3357 /* We use char because int might match the return type of a gcc2
3358 builtin and then its argument prototype would still apply. */
3359 char waddch();
3361 int main() {
3362 waddch()
3363 ; return 0; }
3365 if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3366 rm -rf conftest*
3367 eval "ac_cv_lib_$ac_lib_var=yes"
3368 else
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3371 rm -rf conftest*
3372 eval "ac_cv_lib_$ac_lib_var=no"
3374 rm -f conftest*
3375 LIBS="$ac_save_LIBS"
3378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3379 echo "$ac_t""yes" 1>&6
3380 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3382 cat >> confdefs.h <<EOF
3383 #define $ac_tr_lib 1
3386 LIBS="-lcurses $LIBS"
3388 else
3389 echo "$ac_t""no" 1>&6
3392 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3393 echo "configure:3394: checking for resizeterm in -lcurses" >&5
3394 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397 else
3398 ac_save_LIBS="$LIBS"
3399 LIBS="-lcurses $LIBS"
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406 char resizeterm();
3408 int main() {
3409 resizeterm()
3410 ; return 0; }
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3413 rm -rf conftest*
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3415 else
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3418 rm -rf conftest*
3419 eval "ac_cv_lib_$ac_lib_var=no"
3421 rm -f conftest*
3422 LIBS="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 cat >> confdefs.h <<\EOF
3428 #define HAVE_RESIZETERM 1
3431 else
3432 echo "$ac_t""no" 1>&6
3435 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3436 echo "configure:3437: checking for getbkgd in -lcurses" >&5
3437 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3440 else
3441 ac_save_LIBS="$LIBS"
3442 LIBS="-lcurses $LIBS"
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 /* Override any gcc2 internal prototype to avoid an error. */
3447 /* We use char because int might match the return type of a gcc2
3448 builtin and then its argument prototype would still apply. */
3449 char getbkgd();
3451 int main() {
3452 getbkgd()
3453 ; return 0; }
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3456 rm -rf conftest*
3457 eval "ac_cv_lib_$ac_lib_var=yes"
3458 else
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 rm -rf conftest*
3462 eval "ac_cv_lib_$ac_lib_var=no"
3464 rm -f conftest*
3465 LIBS="$ac_save_LIBS"
3468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3469 echo "$ac_t""yes" 1>&6
3470 cat >> confdefs.h <<\EOF
3471 #define HAVE_GETBKGD 1
3474 else
3475 echo "$ac_t""no" 1>&6
3481 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
3482 echo "configure:3483: checking "for GNU style IPX support"" >&5
3483 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3485 else
3486 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include <sys/socket.h>
3490 #include <netipx/ipx.h>
3491 int main() {
3492 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3493 ; return 0; }
3495 if { (eval echo configure:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3496 rm -rf conftest*
3497 cat >> confdefs.h <<\EOF
3498 #define HAVE_IPX_GNU 1
3501 ac_cv_c_ipx_gnu="yes"
3502 else
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 rm -rf conftest*
3506 ac_cv_c_ipx_gnu="no"
3508 rm -f conftest*
3512 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3514 if test "$ac_cv_c_ipx_gnu" = "no"
3515 then
3516 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
3517 echo "configure:3518: checking "for linux style IPX support"" >&5
3518 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3520 else
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3524 #include <sys/socket.h>
3525 #include <asm/types.h>
3526 #include <linux/ipx.h>
3527 int main() {
3528 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3529 ; return 0; }
3531 if { (eval echo configure:3532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3532 rm -rf conftest*
3533 cat >> confdefs.h <<\EOF
3534 #define HAVE_IPX_LINUX 1
3537 ac_cv_c_ipx_linux="yes"
3538 else
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3541 rm -rf conftest*
3542 ac_cv_c_ipx_linux="no"
3544 rm -f conftest*
3548 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3551 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
3553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_hdr" >&5
3556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3558 else
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 #include <$ac_hdr>
3564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3565 { (eval echo configure:3566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3566 ac_err=`grep -v '^ *+' conftest.out`
3567 if test -z "$ac_err"; then
3568 rm -rf conftest*
3569 eval "ac_cv_header_$ac_safe=yes"
3570 else
3571 echo "$ac_err" >&5
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574 rm -rf conftest*
3575 eval "ac_cv_header_$ac_safe=no"
3577 rm -f conftest*
3579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3582 cat >> confdefs.h <<EOF
3583 #define $ac_tr_hdr 1
3585 break
3586 else
3587 echo "$ac_t""no" 1>&6
3589 done
3592 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
3593 echo "configure:3594: checking "for Open Sound System"" >&5
3594 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3596 else
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3601 #if defined(HAVE_SYS_SOUNDCARD_H)
3602 #include <sys/soundcard.h>
3603 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3604 #include <machine/soundcard.h>
3605 #elif defined(HAVE_SOUNDCARD_H)
3606 #include <soundcard.h>
3607 #endif
3609 int main() {
3612 /* check for one of the Open Sound System specific SNDCTL_ defines */
3613 #if !defined(SNDCTL_DSP_STEREO)
3614 #error No open sound system
3615 #endif
3617 ; return 0; }
3619 if { (eval echo configure:3620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3620 rm -rf conftest*
3621 ac_cv_c_opensoundsystem="yes"
3622 else
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3625 rm -rf conftest*
3626 ac_cv_c_opensoundsystem="no"
3628 rm -f conftest*
3631 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3633 if test "$ac_cv_c_opensoundsystem" = "yes"
3634 then
3635 cat >> confdefs.h <<\EOF
3636 #define HAVE_OSS 1
3641 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
3642 echo "configure:3643: checking "for Open Sound System/MIDI interface"" >&5
3643 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3645 else
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3650 #if defined(HAVE_SYS_SOUNDCARD_H)
3651 #include <sys/soundcard.h>
3652 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3653 #include <machine/soundcard.h>
3654 #elif defined(HAVE_SOUNDCARD_H)
3655 #include <soundcard.h>
3656 #endif
3658 int main() {
3661 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
3662 #if !defined(SNDCTL_SEQ_SYNC)
3663 #error No open sound system MIDI interface
3664 #endif
3666 ; return 0; }
3668 if { (eval echo configure:3669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3669 rm -rf conftest*
3670 ac_cv_c_opensoundsystem_midi="yes"
3671 else
3672 echo "configure: failed program was:" >&5
3673 cat conftest.$ac_ext >&5
3674 rm -rf conftest*
3675 ac_cv_c_opensoundsystem_midi="no"
3677 rm -f conftest*
3680 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
3682 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
3683 then
3684 cat >> confdefs.h <<\EOF
3685 #define HAVE_OSS_MIDI 1
3690 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
3693 if test "x${GCC}" = "xyes"
3694 then
3695 CFLAGS="$CFLAGS -Wall"
3696 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
3697 echo "configure:3698: checking "for gcc strength-reduce bug"" >&5
3698 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3700 else
3701 if test "$cross_compiling" = yes; then
3702 ac_cv_c_gcc_strength_bug="yes"
3703 else
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3708 int main(void) {
3709 static int Array[3];
3710 unsigned int B = 3;
3711 int i;
3712 for(i=0; i<B; i++) Array[i] = i - 3;
3713 exit( Array[1] != -2 );
3716 if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3717 then
3718 ac_cv_c_gcc_strength_bug="no"
3719 else
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3722 rm -fr conftest*
3723 ac_cv_c_gcc_strength_bug="yes"
3725 rm -fr conftest*
3730 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3731 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3732 then
3733 CFLAGS="$CFLAGS -fno-strength-reduce"
3738 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
3739 echo "configure:3740: checking "whether external symbols need an underscore prefix"" >&5
3740 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3742 else
3743 saved_libs=$LIBS
3744 LIBS="conftest_asm.s $LIBS"
3745 cat > conftest_asm.s <<EOF
3746 .globl _ac_test
3747 _ac_test:
3748 .long 0
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 extern int ac_test;
3754 int main() {
3755 if (ac_test) return 1
3756 ; return 0; }
3758 if { (eval echo configure:3759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3759 rm -rf conftest*
3760 ac_cv_c_extern_prefix="yes"
3761 else
3762 echo "configure: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3764 rm -rf conftest*
3765 ac_cv_c_extern_prefix="no"
3767 rm -f conftest*
3768 LIBS=$saved_libs
3771 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3772 if test "$ac_cv_c_extern_prefix" = "yes"
3773 then
3774 cat >> confdefs.h <<\EOF
3775 #define NEED_UNDERSCORE_PREFIX 1
3781 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
3782 echo "configure:3783: checking "whether assembler accepts .string"" >&5
3783 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3785 else
3786 saved_libs=$LIBS
3787 LIBS="conftest_asm.s $LIBS"
3788 cat > conftest_asm.s <<EOF
3789 .string "test"
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3795 int main() {
3797 ; return 0; }
3799 if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3800 rm -rf conftest*
3801 ac_cv_c_asm_string="yes"
3802 else
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 rm -rf conftest*
3806 ac_cv_c_asm_string="no"
3808 rm -f conftest*
3809 LIBS=$saved_libs
3812 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3813 if test "$ac_cv_c_asm_string" = "yes"
3814 then
3815 cat >> confdefs.h <<\EOF
3816 #define HAVE_ASM_STRING 1
3822 DLLFLAGS=""
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 DLLFLAGS="-fPIC"
3859 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
3860 else
3861 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
3862 echo "configure:3863: checking "whether we can build a NetBSD dll"" >&5
3863 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3865 else
3866 saved_cflags=$CFLAGS
3867 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3872 int main() {
3873 return 1
3874 ; return 0; }
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3877 rm -rf conftest*
3878 ac_cv_c_dll_netbsd="yes"
3879 else
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 rm -rf conftest*
3883 ac_cv_c_dll_netbsd="no"
3885 rm -f conftest*
3886 CFLAGS=$saved_cflags
3890 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
3891 if test "$ac_cv_c_dll_netbsd" = "yes"
3892 then
3893 DLLFLAGS="-fPIC"
3894 LDSHARED="ld -Bshareable -Bforcearchive"
3897 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
3898 then
3899 LIB_TARGET="libwine.a"
3906 wine_cv_libc_reentrant=no
3907 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
3908 echo "configure:3909: checking "for reentrant libc: __errno_location"" >&5
3909 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3911 else
3912 if test "$cross_compiling" = yes; then
3913 wine_cv_libc_r__errno_location=yes
3914 else
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 int myerrno = 0;
3919 char buf[256];
3920 int *__errno_location(){return &myerrno;}
3921 main(){connect(0,buf,255); exit(!myerrno);}
3923 if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3924 then
3925 wine_cv_libc_r__errno_location=yes
3926 else
3927 echo "configure: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3929 rm -fr conftest*
3930 wine_cv_libc_r__errno_location=no
3932 rm -fr conftest*
3938 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
3939 if test "$wine_cv_libc_r__errno_location" = "yes"
3940 then
3941 cat >> confdefs.h <<\EOF
3942 #define HAVE__ERRNO_LOCATION 1
3945 wine_cv_libc_reentrant=__errno_location
3947 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
3948 echo "configure:3949: checking "for reentrant libc: __error"" >&5
3949 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3951 else
3952 if test "$cross_compiling" = yes; then
3953 wine_cv_libc_r__error=yes
3954 else
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 int myerrno = 0;
3959 char buf[256];
3960 int *__error(){return &myerrno;}
3961 main(){connect(0,buf,255); exit(!myerrno);}
3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3964 then
3965 wine_cv_libc_r__error=yes
3966 else
3967 echo "configure: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3969 rm -fr conftest*
3970 wine_cv_libc_r__error=no
3972 rm -fr conftest*
3978 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
3979 if test "$wine_cv_libc_r__error" = "yes"
3980 then
3981 cat >> confdefs.h <<\EOF
3982 #define HAVE__ERROR 1
3985 wine_cv_libc_reentrant=__error
3987 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
3988 echo "configure:3989: checking "for reentrant libc: ___errno"" >&5
3989 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3991 else
3992 if test "$cross_compiling" = yes; then
3993 wine_cv_libc_r___errno=yes
3994 else
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998 int myerrno = 0;
3999 char buf[256];
4000 int *___errno(){return &myerrno;}
4001 main(){connect(0,buf,255); exit(!myerrno);}
4003 if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4004 then
4005 wine_cv_libc_r___errno=yes
4006 else
4007 echo "configure: failed program was:" >&5
4008 cat conftest.$ac_ext >&5
4009 rm -fr conftest*
4010 wine_cv_libc_r___errno=no
4012 rm -fr conftest*
4018 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4019 if test "$wine_cv_libc_r___errno" = "yes"
4020 then
4021 cat >> confdefs.h <<\EOF
4022 #define HAVE___ERRNO 1
4025 wine_cv_libc_reentrant=___errno
4027 if test "$wine_cv_libc_reentrant" = "no"
4028 then
4029 cat >> confdefs.h <<\EOF
4030 #define NO_REENTRANT_LIBC 1
4036 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4037 then
4038 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4039 echo "configure:4040: checking "for reentrant X libraries"" >&5
4040 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4042 else
4043 if test "x$with_reentrant_x" = "xno"
4044 then
4045 wine_cv_x_reentrant=no
4046 else
4047 libX11_check=none
4048 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4049 if test -r $dir/libX11.so; then
4050 libX11_check="-D $dir/libX11.so"
4051 break 1
4053 if test -r $dir/libX11.a; then
4054 libX11_check="$dir/libX11.a"
4055 break 1
4057 done
4058 if test "$libX11_check" != "none"; then
4059 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4060 then
4061 wine_cv_x_reentrant=yes
4062 else
4063 wine_cv_x_reentrant=no
4065 else
4066 wine_cv_x_reentrant=unknown
4071 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4072 else
4073 wine_cv_x_reentrant=no
4075 if test "$wine_cv_x_reentrant" = "no"
4076 then
4077 cat >> confdefs.h <<\EOF
4078 #define NO_REENTRANT_X11 1
4084 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4085 # for constant arguments. Useless!
4086 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4087 echo "configure:4088: checking for working alloca.h" >&5
4088 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 #include <alloca.h>
4095 int main() {
4096 char *p = alloca(2 * sizeof(int));
4097 ; return 0; }
4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4100 rm -rf conftest*
4101 ac_cv_header_alloca_h=yes
4102 else
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4105 rm -rf conftest*
4106 ac_cv_header_alloca_h=no
4108 rm -f conftest*
4111 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4112 if test $ac_cv_header_alloca_h = yes; then
4113 cat >> confdefs.h <<\EOF
4114 #define HAVE_ALLOCA_H 1
4119 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4120 echo "configure:4121: checking for alloca" >&5
4121 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4123 else
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4128 #ifdef __GNUC__
4129 # define alloca __builtin_alloca
4130 #else
4131 # if HAVE_ALLOCA_H
4132 # include <alloca.h>
4133 # else
4134 # ifdef _AIX
4135 #pragma alloca
4136 # else
4137 # ifndef alloca /* predefined by HP cc +Olibcalls */
4138 char *alloca ();
4139 # endif
4140 # endif
4141 # endif
4142 #endif
4144 int main() {
4145 char *p = (char *) alloca(1);
4146 ; return 0; }
4148 if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4149 rm -rf conftest*
4150 ac_cv_func_alloca_works=yes
4151 else
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4154 rm -rf conftest*
4155 ac_cv_func_alloca_works=no
4157 rm -f conftest*
4160 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4161 if test $ac_cv_func_alloca_works = yes; then
4162 cat >> confdefs.h <<\EOF
4163 #define HAVE_ALLOCA 1
4168 if test $ac_cv_func_alloca_works = no; then
4169 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4170 # that cause trouble. Some versions do not even contain alloca or
4171 # contain a buggy version. If you still want to use their alloca,
4172 # use ar to extract alloca.o from them instead of compiling alloca.c.
4173 ALLOCA=alloca.o
4174 cat >> confdefs.h <<\EOF
4175 #define C_ALLOCA 1
4179 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4180 echo "configure:4181: checking whether alloca needs Cray hooks" >&5
4181 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4183 else
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 #if defined(CRAY) && ! defined(CRAY2)
4188 webecray
4189 #else
4190 wenotbecray
4191 #endif
4194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195 egrep "webecray" >/dev/null 2>&1; then
4196 rm -rf conftest*
4197 ac_cv_os_cray=yes
4198 else
4199 rm -rf conftest*
4200 ac_cv_os_cray=no
4202 rm -f conftest*
4206 echo "$ac_t""$ac_cv_os_cray" 1>&6
4207 if test $ac_cv_os_cray = yes; then
4208 for ac_func in _getb67 GETB67 getb67; do
4209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4210 echo "configure:4211: checking for $ac_func" >&5
4211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4213 else
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 /* System header to define __stub macros and hopefully few prototypes,
4218 which can conflict with char $ac_func(); below. */
4219 #include <assert.h>
4220 /* Override any gcc2 internal prototype to avoid an error. */
4221 /* We use char because int might match the return type of a gcc2
4222 builtin and then its argument prototype would still apply. */
4223 char $ac_func();
4225 int main() {
4227 /* The GNU C library defines this for functions which it implements
4228 to always fail with ENOSYS. Some functions are actually named
4229 something starting with __ and the normal name is an alias. */
4230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4231 choke me
4232 #else
4233 $ac_func();
4234 #endif
4236 ; return 0; }
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4239 rm -rf conftest*
4240 eval "ac_cv_func_$ac_func=yes"
4241 else
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4244 rm -rf conftest*
4245 eval "ac_cv_func_$ac_func=no"
4247 rm -f conftest*
4250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4252 cat >> confdefs.h <<EOF
4253 #define CRAY_STACKSEG_END $ac_func
4256 break
4257 else
4258 echo "$ac_t""no" 1>&6
4261 done
4264 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4265 echo "configure:4266: checking stack direction for C alloca" >&5
4266 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4268 else
4269 if test "$cross_compiling" = yes; then
4270 ac_cv_c_stack_direction=0
4271 else
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 find_stack_direction ()
4277 static char *addr = 0;
4278 auto char dummy;
4279 if (addr == 0)
4281 addr = &dummy;
4282 return find_stack_direction ();
4284 else
4285 return (&dummy > addr) ? 1 : -1;
4287 main ()
4289 exit (find_stack_direction() < 0);
4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4293 then
4294 ac_cv_c_stack_direction=1
4295 else
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4298 rm -fr conftest*
4299 ac_cv_c_stack_direction=-1
4301 rm -fr conftest*
4306 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4307 cat >> confdefs.h <<EOF
4308 #define STACK_DIRECTION $ac_cv_c_stack_direction
4313 for ac_func in \
4314 _lwp_create \
4315 clone \
4316 getpagesize \
4317 memmove \
4318 rfork \
4319 sendmsg \
4320 sigaltstack \
4321 strerror \
4322 stricmp \
4323 tcgetattr \
4324 timegm \
4325 usleep \
4326 vfscanf \
4327 wait4 \
4328 waitpid \
4331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4332 echo "configure:4333: checking for $ac_func" >&5
4333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4335 else
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4339 /* System header to define __stub macros and hopefully few prototypes,
4340 which can conflict with char $ac_func(); below. */
4341 #include <assert.h>
4342 /* Override any gcc2 internal prototype to avoid an error. */
4343 /* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4345 char $ac_func();
4347 int main() {
4349 /* The GNU C library defines this for functions which it implements
4350 to always fail with ENOSYS. Some functions are actually named
4351 something starting with __ and the normal name is an alias. */
4352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4353 choke me
4354 #else
4355 $ac_func();
4356 #endif
4358 ; return 0; }
4360 if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4361 rm -rf conftest*
4362 eval "ac_cv_func_$ac_func=yes"
4363 else
4364 echo "configure: failed program was:" >&5
4365 cat conftest.$ac_ext >&5
4366 rm -rf conftest*
4367 eval "ac_cv_func_$ac_func=no"
4369 rm -f conftest*
4372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4375 cat >> confdefs.h <<EOF
4376 #define $ac_tr_func 1
4379 else
4380 echo "$ac_t""no" 1>&6
4382 done
4386 for ac_hdr in \
4387 arpa/nameser.h \
4388 curses.h \
4389 elf.h \
4390 float.h \
4391 libio.h \
4392 linux/cdrom.h \
4393 linux/ucdrom.h \
4394 ncurses.h \
4395 net/if.h \
4396 netinet/in.h \
4397 resolv.h \
4398 strings.h \
4399 sys/cdio.h \
4400 sys/errno.h \
4401 sys/file.h \
4402 sys/filio.h \
4403 sys/lwp.h \
4404 sys/mman.h \
4405 sys/modem.h \
4406 sys/mount.h \
4407 sys/param.h \
4408 sys/signal.h \
4409 sys/sockio.h \
4410 sys/statfs.h \
4411 sys/strtio.h \
4412 sys/syscall.h \
4413 sys/vfs.h \
4414 syscall.h \
4415 ucontext.h \
4416 unistd.h \
4417 wctype.h \
4420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4422 echo "configure:4423: checking for $ac_hdr" >&5
4423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4425 else
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 #include <$ac_hdr>
4431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4432 { (eval echo configure:4433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4433 ac_err=`grep -v '^ *+' conftest.out`
4434 if test -z "$ac_err"; then
4435 rm -rf conftest*
4436 eval "ac_cv_header_$ac_safe=yes"
4437 else
4438 echo "$ac_err" >&5
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4441 rm -rf conftest*
4442 eval "ac_cv_header_$ac_safe=no"
4444 rm -f conftest*
4446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4447 echo "$ac_t""yes" 1>&6
4448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4449 cat >> confdefs.h <<EOF
4450 #define $ac_tr_hdr 1
4453 else
4454 echo "$ac_t""no" 1>&6
4456 done
4458 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4459 echo "configure:4460: checking whether stat file-mode macros are broken" >&5
4460 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4462 else
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 #include <sys/types.h>
4467 #include <sys/stat.h>
4469 #if defined(S_ISBLK) && defined(S_IFDIR)
4470 # if S_ISBLK (S_IFDIR)
4471 You lose.
4472 # endif
4473 #endif
4475 #if defined(S_ISBLK) && defined(S_IFCHR)
4476 # if S_ISBLK (S_IFCHR)
4477 You lose.
4478 # endif
4479 #endif
4481 #if defined(S_ISLNK) && defined(S_IFREG)
4482 # if S_ISLNK (S_IFREG)
4483 You lose.
4484 # endif
4485 #endif
4487 #if defined(S_ISSOCK) && defined(S_IFREG)
4488 # if S_ISSOCK (S_IFREG)
4489 You lose.
4490 # endif
4491 #endif
4494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 egrep "You lose" >/dev/null 2>&1; then
4496 rm -rf conftest*
4497 ac_cv_header_stat_broken=yes
4498 else
4499 rm -rf conftest*
4500 ac_cv_header_stat_broken=no
4502 rm -f conftest*
4506 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4507 if test $ac_cv_header_stat_broken = yes; then
4508 cat >> confdefs.h <<\EOF
4509 #define STAT_MACROS_BROKEN 1
4516 echo $ac_n "checking for working const""... $ac_c" 1>&6
4517 echo "configure:4518: checking for working const" >&5
4518 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4520 else
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4525 int main() {
4527 /* Ultrix mips cc rejects this. */
4528 typedef int charset[2]; const charset x;
4529 /* SunOS 4.1.1 cc rejects this. */
4530 char const *const *ccp;
4531 char **p;
4532 /* NEC SVR4.0.2 mips cc rejects this. */
4533 struct point {int x, y;};
4534 static struct point const zero = {0,0};
4535 /* AIX XL C 1.02.0.0 rejects this.
4536 It does not let you subtract one const X* pointer from another in an arm
4537 of an if-expression whose if-part is not a constant expression */
4538 const char *g = "string";
4539 ccp = &g + (g ? g-g : 0);
4540 /* HPUX 7.0 cc rejects these. */
4541 ++ccp;
4542 p = (char**) ccp;
4543 ccp = (char const *const *) p;
4544 { /* SCO 3.2v4 cc rejects this. */
4545 char *t;
4546 char const *s = 0 ? (char *) 0 : (char const *) 0;
4548 *t++ = 0;
4550 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4551 int x[] = {25, 17};
4552 const int *foo = &x[0];
4553 ++foo;
4555 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4556 typedef const int *iptr;
4557 iptr p = 0;
4558 ++p;
4560 { /* AIX XL C 1.02.0.0 rejects this saying
4561 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4562 struct s { int j; const int *ap[3]; };
4563 struct s *b; b->j = 5;
4565 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4566 const int foo = 10;
4569 ; return 0; }
4571 if { (eval echo configure:4572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4572 rm -rf conftest*
4573 ac_cv_c_const=yes
4574 else
4575 echo "configure: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4577 rm -rf conftest*
4578 ac_cv_c_const=no
4580 rm -f conftest*
4583 echo "$ac_t""$ac_cv_c_const" 1>&6
4584 if test $ac_cv_c_const = no; then
4585 cat >> confdefs.h <<\EOF
4586 #define const
4591 echo $ac_n "checking for inline""... $ac_c" 1>&6
4592 echo "configure:4593: checking for inline" >&5
4593 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4595 else
4596 ac_cv_c_inline=no
4597 for ac_kw in inline __inline__ __inline; do
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4602 int main() {
4603 } $ac_kw foo() {
4604 ; return 0; }
4606 if { (eval echo configure:4607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4607 rm -rf conftest*
4608 ac_cv_c_inline=$ac_kw; break
4609 else
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 rm -f conftest*
4614 done
4618 echo "$ac_t""$ac_cv_c_inline" 1>&6
4619 case "$ac_cv_c_inline" in
4620 inline | yes) ;;
4621 no) cat >> confdefs.h <<\EOF
4622 #define inline
4625 *) cat >> confdefs.h <<EOF
4626 #define inline $ac_cv_c_inline
4629 esac
4631 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4632 echo "configure:4633: checking for ANSI C header files" >&5
4633 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4635 else
4636 cat > conftest.$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4639 #include <stdlib.h>
4640 #include <stdarg.h>
4641 #include <string.h>
4642 #include <float.h>
4644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4645 { (eval echo configure:4646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4646 ac_err=`grep -v '^ *+' conftest.out`
4647 if test -z "$ac_err"; then
4648 rm -rf conftest*
4649 ac_cv_header_stdc=yes
4650 else
4651 echo "$ac_err" >&5
4652 echo "configure: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4654 rm -rf conftest*
4655 ac_cv_header_stdc=no
4657 rm -f conftest*
4659 if test $ac_cv_header_stdc = yes; then
4660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4661 cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4664 #include <string.h>
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 egrep "memchr" >/dev/null 2>&1; then
4669 else
4670 rm -rf conftest*
4671 ac_cv_header_stdc=no
4673 rm -f conftest*
4677 if test $ac_cv_header_stdc = yes; then
4678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 #include <stdlib.h>
4684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4685 egrep "free" >/dev/null 2>&1; then
4687 else
4688 rm -rf conftest*
4689 ac_cv_header_stdc=no
4691 rm -f conftest*
4695 if test $ac_cv_header_stdc = yes; then
4696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4697 if test "$cross_compiling" = yes; then
4699 else
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 #include <ctype.h>
4704 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4705 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4707 int main () { int i; for (i = 0; i < 256; i++)
4708 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4709 exit (0); }
4712 if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4713 then
4715 else
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4718 rm -fr conftest*
4719 ac_cv_header_stdc=no
4721 rm -fr conftest*
4727 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4728 if test $ac_cv_header_stdc = yes; then
4729 cat >> confdefs.h <<\EOF
4730 #define STDC_HEADERS 1
4735 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4736 echo "configure:4737: checking for size_t" >&5
4737 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4739 else
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 #include <sys/types.h>
4744 #if STDC_HEADERS
4745 #include <stdlib.h>
4746 #include <stddef.h>
4747 #endif
4749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4750 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4751 rm -rf conftest*
4752 ac_cv_type_size_t=yes
4753 else
4754 rm -rf conftest*
4755 ac_cv_type_size_t=no
4757 rm -f conftest*
4760 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4761 if test $ac_cv_type_size_t = no; then
4762 cat >> confdefs.h <<\EOF
4763 #define size_t unsigned
4768 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4769 echo "configure:4770: checking size of long long" >&5
4770 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4772 else
4773 if test "$cross_compiling" = yes; then
4774 ac_cv_sizeof_long_long=0
4775 else
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 #include <stdio.h>
4780 main()
4782 FILE *f=fopen("conftestval", "w");
4783 if (!f) exit(1);
4784 fprintf(f, "%d\n", sizeof(long long));
4785 exit(0);
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4789 then
4790 ac_cv_sizeof_long_long=`cat conftestval`
4791 else
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 rm -fr conftest*
4795 ac_cv_sizeof_long_long=0
4797 rm -fr conftest*
4801 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4802 cat >> confdefs.h <<EOF
4803 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4809 if test "$ac_cv_header_sys_vfs_h" = "yes"
4810 then
4811 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
4812 echo "configure:4813: checking "whether sys/vfs.h defines statfs"" >&5
4813 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4815 else
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4820 #include <sys/types.h>
4821 #ifdef HAVE_SYS_PARAM_H
4822 # include <sys/param.h>
4823 #endif
4824 #include <sys/vfs.h>
4826 int main() {
4828 struct statfs stfs;
4830 memset(&stfs,0,sizeof(stfs));
4832 ; return 0; }
4834 if { (eval echo configure:4835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4835 rm -rf conftest*
4836 wine_cv_sys_vfs_has_statfs=yes
4837 else
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4840 rm -rf conftest*
4841 wine_cv_sys_vfs_has_statfs=no
4844 rm -f conftest*
4848 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
4849 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
4850 then
4851 cat >> confdefs.h <<\EOF
4852 #define STATFS_DEFINED_BY_SYS_VFS 1
4858 if test "$ac_cv_header_sys_statfs_h" = "yes"
4859 then
4860 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
4861 echo "configure:4862: checking "whether sys/statfs.h defines statfs"" >&5
4862 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4864 else
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4869 #include <sys/types.h>
4870 #ifdef HAVE_SYS_PARAM_H
4871 # include <sys/param.h>
4872 #endif
4873 #include <sys/statfs.h>
4875 int main() {
4877 struct statfs stfs;
4879 ; return 0; }
4881 if { (eval echo configure:4882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4882 rm -rf conftest*
4883 wine_cv_sys_statfs_has_statfs=yes
4884 else
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4887 rm -rf conftest*
4888 wine_cv_sys_statfs_has_statfs=no
4891 rm -f conftest*
4895 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
4896 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
4897 then
4898 cat >> confdefs.h <<\EOF
4899 #define STATFS_DEFINED_BY_SYS_STATFS 1
4905 if test "$ac_cv_header_sys_mount_h" = "yes"
4906 then
4907 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
4908 echo "configure:4909: checking "whether sys/mount.h defines statfs"" >&5
4909 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4911 else
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4916 #include <sys/types.h>
4917 #ifdef HAVE_SYS_PARAM_H
4918 # include <sys/param.h>
4919 #endif
4920 #include <sys/mount.h>
4922 int main() {
4924 struct statfs stfs;
4926 ; return 0; }
4928 if { (eval echo configure:4929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4929 rm -rf conftest*
4930 wine_cv_sys_mount_has_statfs=yes
4931 else
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4934 rm -rf conftest*
4935 wine_cv_sys_mount_has_statfs=no
4938 rm -f conftest*
4942 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
4943 if test "$wine_cv_sys_mount_has_statfs" = "yes"
4944 then
4945 cat >> confdefs.h <<\EOF
4946 #define STATFS_DEFINED_BY_SYS_MOUNT 1
4953 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
4954 echo "configure:4955: checking "for statfs.f_bfree"" >&5
4955 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4957 else
4958 if test "x$statfs_bfree" = "xno"
4959 then
4960 wine_cv_statfs_bfree=no
4961 else
4962 cat > conftest.$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4966 #include <sys/types.h>
4967 #ifdef HAVE_SYS_PARAM_H
4968 # include <sys/param.h>
4969 #endif
4970 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4971 # include <sys/mount.h>
4972 #else
4973 # ifdef STATFS_DEFINED_BY_SYS_VFS
4974 # include <sys/vfs.h>
4975 # else
4976 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4977 # include <sys/statfs.h>
4978 # endif
4979 # endif
4980 #endif
4982 int main() {
4984 struct statfs stfs;
4986 stfs.f_bfree++;
4988 ; return 0; }
4990 if { (eval echo configure:4991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4991 rm -rf conftest*
4992 wine_cv_statfs_bfree=yes
4993 else
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 rm -rf conftest*
4997 wine_cv_statfs_bfree=no
5000 rm -f conftest*
5004 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5005 if test "$wine_cv_statfs_bfree" = "yes"
5006 then
5007 cat >> confdefs.h <<\EOF
5008 #define STATFS_HAS_BFREE 1
5013 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5014 echo "configure:5015: checking "for statfs.f_bavail"" >&5
5015 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5017 else
5018 if test "x$statfs_bavail" = "xno"
5019 then
5020 wine_cv_statfs_bavail=no
5021 else
5022 cat > conftest.$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5026 #include <sys/types.h>
5027 #ifdef HAVE_SYS_PARAM_H
5028 # include <sys/param.h>
5029 #endif
5030 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5031 # include <sys/mount.h>
5032 #else
5033 # ifdef STATFS_DEFINED_BY_SYS_VFS
5034 # include <sys/vfs.h>
5035 # else
5036 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5037 # include <sys/statfs.h>
5038 # endif
5039 # endif
5040 #endif
5042 int main() {
5044 struct statfs stfs;
5046 stfs.f_bavail++;
5048 ; return 0; }
5050 if { (eval echo configure:5051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5051 rm -rf conftest*
5052 wine_cv_statfs_bavail=yes
5053 else
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5056 rm -rf conftest*
5057 wine_cv_statfs_bavail=no
5060 rm -f conftest*
5064 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5065 if test "$wine_cv_statfs_bavail" = "yes"
5066 then
5067 cat >> confdefs.h <<\EOF
5068 #define STATFS_HAS_BAVAIL 1
5074 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
5075 echo "configure:5076: checking "for working sigaltstack"" >&5
5076 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5078 else
5079 if test "$cross_compiling" = yes; then
5080 ac_cv_c_working_sigaltstack="no"
5082 else
5083 cat > conftest.$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5087 #include <stdio.h>
5088 #include <time.h> /* <sys/time.h> ? bad magic without end */
5089 #include <sys/types.h>
5090 #include <sys/signal.h>
5091 #ifdef HAVE_SYS_PARAM_H
5092 # include <sys/param.h>
5093 #endif
5094 #ifdef HAVE_SYSCALL_H
5095 # include <syscall.h>
5096 #else
5097 # ifdef HAVE_SYS_SYSCALL_H
5098 # include <sys/syscall.h>
5099 # endif
5100 #endif
5102 unsigned char *xaltstack;
5105 main(int argc,char **argv) {
5106 struct sigaltstack ss;
5108 xaltstack = malloc(16384);
5109 ss.ss_sp = xaltstack;
5110 ss.ss_size = 16384;
5111 ss.ss_flags = 0;
5112 if (sigaltstack(&ss, NULL) < 0) {
5113 /* this catches the glibc case */
5114 perror("sigaltstack");
5115 return (1); /* aka exit(1) aka fail */
5117 /* assume it works. */
5118 return 0; /* OK */
5122 if { (eval echo configure:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5123 then
5124 ac_cv_c_working_sigaltstack="yes"
5125 else
5126 echo "configure: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5128 rm -fr conftest*
5129 ac_cv_c_working_sigaltstack="no"
5131 rm -fr conftest*
5136 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5138 if test "$ac_cv_c_working_sigaltstack" = "yes"
5139 then
5140 cat >> confdefs.h <<\EOF
5141 #define HAVE_WORKING_SIGALTSTACK 1
5148 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5149 echo "configure:5150: checking "for msg_accrights in struct msghdr"" >&5
5150 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5152 else
5153 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5156 #include <sys/types.h>
5157 #include <sys/socket.h>
5158 int main() {
5159 struct msghdr hdr; hdr.msg_accrights=0
5160 ; return 0; }
5162 if { (eval echo configure:5163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5163 rm -rf conftest*
5164 ac_cv_c_msg_accrights="yes"
5165 else
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5168 rm -rf conftest*
5169 ac_cv_c_msg_accrights="no"
5171 rm -f conftest*
5174 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5175 if test "$ac_cv_c_msg_accrights" = "yes"
5176 then
5177 cat >> confdefs.h <<\EOF
5178 #define HAVE_MSGHDR_ACCRIGHTS 1
5184 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
5185 echo "configure:5186: checking "whether we need to define __i386__"" >&5
5186 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5187 echo $ac_n "(cached) $ac_c" 1>&6
5188 else
5189 cat > conftest.$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5192 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5194 #endif
5196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5197 egrep "yes" >/dev/null 2>&1; then
5198 rm -rf conftest*
5199 ac_cv_cpp_def_i386="yes"
5200 else
5201 rm -rf conftest*
5202 ac_cv_cpp_def_i386="no"
5204 rm -f conftest*
5208 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5209 if test "$ac_cv_cpp_def_i386" = "yes"
5210 then
5211 CFLAGS="$CFLAGS -D__i386__"
5214 GCC_NO_BUILTIN=""
5215 if test "$GCC" = "yes"
5216 then
5217 GCC_NO_BUILTIN="-fno-builtin"
5222 MAKE_RULES=Make.rules
5225 trap '' 1 2 15
5226 cat > confcache <<\EOF
5227 # This file is a shell script that caches the results of configure
5228 # tests run on this system so they can be shared between configure
5229 # scripts and configure runs. It is not useful on other systems.
5230 # If it contains results you don't want to keep, you may remove or edit it.
5232 # By default, configure uses ./config.cache as the cache file,
5233 # creating it if it does not exist already. You can give configure
5234 # the --cache-file=FILE option to use a different cache file; that is
5235 # what configure does when it calls configure scripts in
5236 # subdirectories, so they share the cache.
5237 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5238 # config.status only pays attention to the cache file if you give it the
5239 # --recheck option to rerun configure.
5242 # The following way of writing the cache mishandles newlines in values,
5243 # but we know of no workaround that is simple, portable, and efficient.
5244 # So, don't put newlines in cache variables' values.
5245 # Ultrix sh set writes to stderr and can't be redirected directly,
5246 # and sets the high bit in the cache file unless we assign to the vars.
5247 (set) 2>&1 |
5248 case `(ac_space=' '; set) 2>&1` in
5249 *ac_space=\ *)
5250 # `set' does not quote correctly, so add quotes (double-quote substitution
5251 # turns \\\\ into \\, and sed turns \\ into \).
5252 sed -n \
5253 -e "s/'/'\\\\''/g" \
5254 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5257 # `set' quotes correctly as required by POSIX, so do not add quotes.
5258 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5260 esac >> confcache
5261 if cmp -s $cache_file confcache; then
5263 else
5264 if test -w $cache_file; then
5265 echo "updating cache $cache_file"
5266 cat confcache > $cache_file
5267 else
5268 echo "not updating unwritable cache $cache_file"
5271 rm -f confcache
5273 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5276 # Let make expand exec_prefix.
5277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5279 # Any assignment to VPATH causes Sun make to only execute
5280 # the first set of double-colon rules, so remove it if not needed.
5281 # If there is a colon in the path, we need to keep it.
5282 if test "x$srcdir" = x.; then
5283 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5286 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5288 DEFS=-DHAVE_CONFIG_H
5290 # Without the "./", some shells look in PATH for config.status.
5291 : ${CONFIG_STATUS=./config.status}
5293 echo creating $CONFIG_STATUS
5294 rm -f $CONFIG_STATUS
5295 cat > $CONFIG_STATUS <<EOF
5296 #! /bin/sh
5297 # Generated automatically by configure.
5298 # Run this file to recreate the current configuration.
5299 # This directory was configured as follows,
5300 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5302 # $0 $ac_configure_args
5304 # Compiler output produced by configure, useful for debugging
5305 # configure, is in ./config.log if it exists.
5307 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5308 for ac_option
5310 case "\$ac_option" in
5311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5312 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5313 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5314 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5315 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5316 exit 0 ;;
5317 -help | --help | --hel | --he | --h)
5318 echo "\$ac_cs_usage"; exit 0 ;;
5319 *) echo "\$ac_cs_usage"; exit 1 ;;
5320 esac
5321 done
5323 ac_given_srcdir=$srcdir
5324 ac_given_INSTALL="$INSTALL"
5326 trap 'rm -fr `echo "
5327 Make.rules
5328 Makefile
5329 console/Makefile
5330 controls/Makefile
5331 debugger/Makefile
5332 dlls/Makefile
5333 dlls/advapi32/Makefile
5334 dlls/avifil32/Makefile
5335 dlls/comctl32/Makefile
5336 dlls/commdlg/Makefile
5337 dlls/imagehlp/Makefile
5338 dlls/msacm/Makefile
5339 dlls/msacm32/Makefile
5340 dlls/ntdll/Makefile
5341 dlls/psapi/Makefile
5342 dlls/rasapi32/Makefile
5343 dlls/shell32/Makefile
5344 dlls/tapi32/Makefile
5345 dlls/ver/Makefile
5346 dlls/version/Makefile
5347 dlls/winaspi/Makefile
5348 dlls/winspool/Makefile
5349 dlls/wnaspi32/Makefile
5350 documentation/Makefile
5351 documentation/wine.man
5352 files/Makefile
5353 graphics/Makefile
5354 graphics/enhmetafiledrv/Makefile
5355 graphics/metafiledrv/Makefile
5356 graphics/psdrv/Makefile
5357 graphics/ttydrv/Makefile
5358 graphics/win16drv/Makefile
5359 graphics/x11drv/Makefile
5360 if1632/Makefile
5361 include/Makefile
5362 ipc/Makefile
5363 library/Makefile
5364 libtest/Makefile
5365 loader/Makefile
5366 loader/ne/Makefile
5367 loader/dos/Makefile
5368 memory/Makefile
5369 misc/Makefile
5370 miscemu/Makefile
5371 msdos/Makefile
5372 multimedia/Makefile
5373 objects/Makefile
5374 ole/Makefile
5375 programs/Makefile
5376 programs/clock/Makefile
5377 programs/cmdlgtst/Makefile
5378 programs/control/Makefile
5379 programs/avitools/Makefile
5380 programs/notepad/Makefile
5381 programs/progman/Makefile
5382 programs/regtest/Makefile
5383 programs/regapi/Makefile
5384 programs/view/Makefile
5385 programs/wcmd/Makefile
5386 programs/winhelp/Makefile
5387 programs/winver/Makefile
5388 rc/Makefile
5389 relay32/Makefile
5390 resources/Makefile
5391 scheduler/Makefile
5392 server/Makefile
5393 tools/Makefile
5394 tools/wrc/Makefile
5395 tsx11/Makefile
5396 win32/Makefile
5397 windows/Makefile
5398 windows/ttydrv/Makefile
5399 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5401 cat >> $CONFIG_STATUS <<EOF
5403 # Protect against being on the right side of a sed subst in config.status.
5404 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5405 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5406 $ac_vpsub
5407 $extrasub
5408 s%@CFLAGS@%$CFLAGS%g
5409 s%@CPPFLAGS@%$CPPFLAGS%g
5410 s%@CXXFLAGS@%$CXXFLAGS%g
5411 s%@DEFS@%$DEFS%g
5412 s%@LDFLAGS@%$LDFLAGS%g
5413 s%@LIBS@%$LIBS%g
5414 s%@exec_prefix@%$exec_prefix%g
5415 s%@prefix@%$prefix%g
5416 s%@program_transform_name@%$program_transform_name%g
5417 s%@bindir@%$bindir%g
5418 s%@sbindir@%$sbindir%g
5419 s%@libexecdir@%$libexecdir%g
5420 s%@datadir@%$datadir%g
5421 s%@sysconfdir@%$sysconfdir%g
5422 s%@sharedstatedir@%$sharedstatedir%g
5423 s%@localstatedir@%$localstatedir%g
5424 s%@libdir@%$libdir%g
5425 s%@includedir@%$includedir%g
5426 s%@oldincludedir@%$oldincludedir%g
5427 s%@infodir@%$infodir%g
5428 s%@mandir@%$mandir%g
5429 s%@PROGEXT@%$PROGEXT%g
5430 s%@MAIN_TARGET@%$MAIN_TARGET%g
5431 s%@LIB_TARGET@%$LIB_TARGET%g
5432 s%@ALT_LINK@%$ALT_LINK%g
5433 s%@OPTIONS@%$OPTIONS%g
5434 s%@SET_MAKE@%$SET_MAKE%g
5435 s%@CC@%$CC%g
5436 s%@CPP@%$CPP%g
5437 s%@X_CFLAGS@%$X_CFLAGS%g
5438 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5439 s%@X_LIBS@%$X_LIBS%g
5440 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5441 s%@YACC@%$YACC%g
5442 s%@LEX@%$LEX%g
5443 s%@LEXLIB@%$LEXLIB%g
5444 s%@RANLIB@%$RANLIB%g
5445 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5446 s%@INSTALL_DATA@%$INSTALL_DATA%g
5447 s%@LN_S@%$LN_S%g
5448 s%@C2MAN@%$C2MAN%g
5449 s%@LDCONFIG@%$LDCONFIG%g
5450 s%@XLIB@%$XLIB%g
5451 s%@DLLFLAGS@%$DLLFLAGS%g
5452 s%@LDSHARED@%$LDSHARED%g
5453 s%@ALLOCA@%$ALLOCA%g
5454 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
5455 /@MAKE_RULES@/r $MAKE_RULES
5456 s%@MAKE_RULES@%%g
5458 CEOF
5461 cat >> $CONFIG_STATUS <<\EOF
5463 # Split the substitutions into bite-sized pieces for seds with
5464 # small command number limits, like on Digital OSF/1 and HP-UX.
5465 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5466 ac_file=1 # Number of current file.
5467 ac_beg=1 # First line for current file.
5468 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5469 ac_more_lines=:
5470 ac_sed_cmds=""
5471 while $ac_more_lines; do
5472 if test $ac_beg -gt 1; then
5473 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5474 else
5475 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5477 if test ! -s conftest.s$ac_file; then
5478 ac_more_lines=false
5479 rm -f conftest.s$ac_file
5480 else
5481 if test -z "$ac_sed_cmds"; then
5482 ac_sed_cmds="sed -f conftest.s$ac_file"
5483 else
5484 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5486 ac_file=`expr $ac_file + 1`
5487 ac_beg=$ac_end
5488 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5490 done
5491 if test -z "$ac_sed_cmds"; then
5492 ac_sed_cmds=cat
5496 cat >> $CONFIG_STATUS <<EOF
5498 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
5499 Makefile
5500 console/Makefile
5501 controls/Makefile
5502 debugger/Makefile
5503 dlls/Makefile
5504 dlls/advapi32/Makefile
5505 dlls/avifil32/Makefile
5506 dlls/comctl32/Makefile
5507 dlls/commdlg/Makefile
5508 dlls/imagehlp/Makefile
5509 dlls/msacm/Makefile
5510 dlls/msacm32/Makefile
5511 dlls/ntdll/Makefile
5512 dlls/psapi/Makefile
5513 dlls/rasapi32/Makefile
5514 dlls/shell32/Makefile
5515 dlls/tapi32/Makefile
5516 dlls/ver/Makefile
5517 dlls/version/Makefile
5518 dlls/winaspi/Makefile
5519 dlls/winspool/Makefile
5520 dlls/wnaspi32/Makefile
5521 documentation/Makefile
5522 documentation/wine.man
5523 files/Makefile
5524 graphics/Makefile
5525 graphics/enhmetafiledrv/Makefile
5526 graphics/metafiledrv/Makefile
5527 graphics/psdrv/Makefile
5528 graphics/ttydrv/Makefile
5529 graphics/win16drv/Makefile
5530 graphics/x11drv/Makefile
5531 if1632/Makefile
5532 include/Makefile
5533 ipc/Makefile
5534 library/Makefile
5535 libtest/Makefile
5536 loader/Makefile
5537 loader/ne/Makefile
5538 loader/dos/Makefile
5539 memory/Makefile
5540 misc/Makefile
5541 miscemu/Makefile
5542 msdos/Makefile
5543 multimedia/Makefile
5544 objects/Makefile
5545 ole/Makefile
5546 programs/Makefile
5547 programs/clock/Makefile
5548 programs/cmdlgtst/Makefile
5549 programs/control/Makefile
5550 programs/avitools/Makefile
5551 programs/notepad/Makefile
5552 programs/progman/Makefile
5553 programs/regtest/Makefile
5554 programs/regapi/Makefile
5555 programs/view/Makefile
5556 programs/wcmd/Makefile
5557 programs/winhelp/Makefile
5558 programs/winver/Makefile
5559 rc/Makefile
5560 relay32/Makefile
5561 resources/Makefile
5562 scheduler/Makefile
5563 server/Makefile
5564 tools/Makefile
5565 tools/wrc/Makefile
5566 tsx11/Makefile
5567 win32/Makefile
5568 windows/Makefile
5569 windows/ttydrv/Makefile
5570 windows/x11drv/Makefile "}
5572 cat >> $CONFIG_STATUS <<\EOF
5573 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5574 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5575 case "$ac_file" in
5576 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5577 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5578 *) ac_file_in="${ac_file}.in" ;;
5579 esac
5581 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5583 # Remove last slash and all that follows it. Not all systems have dirname.
5584 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5585 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5586 # The file is in a subdirectory.
5587 test ! -d "$ac_dir" && mkdir "$ac_dir"
5588 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5589 # A "../" for each directory in $ac_dir_suffix.
5590 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5591 else
5592 ac_dir_suffix= ac_dots=
5595 case "$ac_given_srcdir" in
5596 .) srcdir=.
5597 if test -z "$ac_dots"; then top_srcdir=.
5598 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5599 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5600 *) # Relative path.
5601 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5602 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5603 esac
5605 case "$ac_given_INSTALL" in
5606 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5607 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5608 esac
5610 echo creating "$ac_file"
5611 rm -f "$ac_file"
5612 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5613 case "$ac_file" in
5614 *Makefile*) ac_comsub="1i\\
5615 # $configure_input" ;;
5616 *) ac_comsub= ;;
5617 esac
5619 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5620 sed -e "$ac_comsub
5621 s%@configure_input@%$configure_input%g
5622 s%@srcdir@%$srcdir%g
5623 s%@top_srcdir@%$top_srcdir%g
5624 s%@INSTALL@%$INSTALL%g
5625 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5626 fi; done
5627 rm -f conftest.s*
5629 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5630 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5632 # ac_d sets the value in "#define NAME VALUE" lines.
5633 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5634 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5635 ac_dC='\3'
5636 ac_dD='%g'
5637 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5638 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5639 ac_uB='\([ ]\)%\1#\2define\3'
5640 ac_uC=' '
5641 ac_uD='\4%g'
5642 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5643 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5644 ac_eB='$%\1#\2define\3'
5645 ac_eC=' '
5646 ac_eD='%g'
5648 if test "${CONFIG_HEADERS+set}" != set; then
5650 cat >> $CONFIG_STATUS <<EOF
5651 CONFIG_HEADERS="include/config.h"
5653 cat >> $CONFIG_STATUS <<\EOF
5655 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5657 case "$ac_file" in
5658 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5659 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5660 *) ac_file_in="${ac_file}.in" ;;
5661 esac
5663 echo creating $ac_file
5665 rm -f conftest.frag conftest.in conftest.out
5666 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5667 cat $ac_file_inputs > conftest.in
5671 # Transform confdefs.h into a sed script conftest.vals that substitutes
5672 # the proper values into config.h.in to produce config.h. And first:
5673 # Protect against being on the right side of a sed subst in config.status.
5674 # Protect against being in an unquoted here document in config.status.
5675 rm -f conftest.vals
5676 cat > conftest.hdr <<\EOF
5677 s/[\\&%]/\\&/g
5678 s%[\\$`]%\\&%g
5679 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5680 s%ac_d%ac_u%gp
5681 s%ac_u%ac_e%gp
5683 sed -n -f conftest.hdr confdefs.h > conftest.vals
5684 rm -f conftest.hdr
5686 # This sed command replaces #undef with comments. This is necessary, for
5687 # example, in the case of _POSIX_SOURCE, which is predefined and required
5688 # on some systems where configure will not decide to define it.
5689 cat >> conftest.vals <<\EOF
5690 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5693 # Break up conftest.vals because some shells have a limit on
5694 # the size of here documents, and old seds have small limits too.
5696 rm -f conftest.tail
5697 while :
5699 ac_lines=`grep -c . conftest.vals`
5700 # grep -c gives empty output for an empty file on some AIX systems.
5701 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5702 # Write a limited-size here document to conftest.frag.
5703 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5704 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5705 echo 'CEOF
5706 sed -f conftest.frag conftest.in > conftest.out
5707 rm -f conftest.in
5708 mv conftest.out conftest.in
5709 ' >> $CONFIG_STATUS
5710 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5711 rm -f conftest.vals
5712 mv conftest.tail conftest.vals
5713 done
5714 rm -f conftest.vals
5716 cat >> $CONFIG_STATUS <<\EOF
5717 rm -f conftest.frag conftest.h
5718 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5719 cat conftest.in >> conftest.h
5720 rm -f conftest.in
5721 if cmp -s $ac_file conftest.h 2>/dev/null; then
5722 echo "$ac_file is unchanged"
5723 rm -f conftest.h
5724 else
5725 # Remove last slash and all that follows it. Not all systems have dirname.
5726 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5727 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5728 # The file is in a subdirectory.
5729 test ! -d "$ac_dir" && mkdir "$ac_dir"
5731 rm -f $ac_file
5732 mv conftest.h $ac_file
5734 fi; done
5737 cat >> $CONFIG_STATUS <<EOF
5740 cat >> $CONFIG_STATUS <<\EOF
5742 exit 0
5744 chmod +x $CONFIG_STATUS
5745 rm -fr confdefs* $ac_clean_files
5746 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5749 if test "$have_x" = "no"
5750 then
5751 echo
5752 echo "*** Warning: X development files not found. Wine will be built without"
5753 echo "*** X support, which currently does not work, and would probably not be"
5754 echo "*** what you want anyway. You will need to install devel packages of"
5755 echo "*** Xlib/Xfree86 and Xpm at the very least."
5756 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
5757 then
5758 echo
5759 echo "*** Warning: Xpm development files not found. Wine will be built without"
5760 echo "*** Xpm support, which currently does not work. You will need to install"
5761 echo "*** devel packages of Xpm."
5764 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
5765 then
5766 echo
5767 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
5768 echo "*** terminal resize support. Consider upgrading ncurses."
5771 if test "$wine_cv_libc_reentrant" = "no"
5772 then
5773 echo
5774 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
5775 echo "*** thread support. Consider upgrading libc to a more recent"
5776 echo "*** reentrant version of libc."
5779 if test "$wine_cv_mesa_version_OK" = "no"
5780 then
5781 echo
5782 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5783 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
5786 echo
5787 echo "Configure finished. Do 'make depend && make' to compile Wine."
5788 echo