Converted to the new debug interface, using script written by Patrik
[wine/multimedia.git] / configure
blobfedabaf63948a71f1ddf5cb6dfdce8d0d3474d4f
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.
558 LIBS="$LIBS -lm"
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 i386_set_ldt in -li386""... $ac_c" 1>&6
2014 echo "configure:2015: checking for i386_set_ldt in -li386" >&5
2015 ac_lib_var=`echo i386'_'i386_set_ldt | 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="-li386 $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 i386_set_ldt();
2029 int main() {
2030 i386_set_ldt()
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 i386 | 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="-li386 $LIBS"
2056 else
2057 echo "$ac_t""no" 1>&6
2060 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2061 echo "configure:2062: checking for _oss_ioctl in -lossaudio" >&5
2062 ac_lib_var=`echo ossaudio'_'_oss_ioctl | 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="-lossaudio $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 _oss_ioctl();
2076 int main() {
2077 _oss_ioctl()
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 ossaudio | 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="-lossaudio $LIBS"
2103 else
2104 echo "$ac_t""no" 1>&6
2107 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2108 echo "configure:2109: checking for iswalnum in -lw" >&5
2109 ac_lib_var=`echo w'_'iswalnum | 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="-lw $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 iswalnum();
2123 int main() {
2124 iswalnum()
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 w | 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="-lw $LIBS"
2150 else
2151 echo "$ac_t""no" 1>&6
2154 for ac_func in gethostbyname
2156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2157 echo "configure:2158: checking for $ac_func" >&5
2158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2160 else
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2164 /* System header to define __stub macros and hopefully few prototypes,
2165 which can conflict with char $ac_func(); below. */
2166 #include <assert.h>
2167 /* Override any gcc2 internal prototype to avoid an error. */
2168 /* We use char because int might match the return type of a gcc2
2169 builtin and then its argument prototype would still apply. */
2170 char $ac_func();
2172 int main() {
2174 /* The GNU C library defines this for functions which it implements
2175 to always fail with ENOSYS. Some functions are actually named
2176 something starting with __ and the normal name is an alias. */
2177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2178 choke me
2179 #else
2180 $ac_func();
2181 #endif
2183 ; return 0; }
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2186 rm -rf conftest*
2187 eval "ac_cv_func_$ac_func=yes"
2188 else
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 rm -rf conftest*
2192 eval "ac_cv_func_$ac_func=no"
2194 rm -f conftest*
2197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2198 echo "$ac_t""yes" 1>&6
2199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2200 cat >> confdefs.h <<EOF
2201 #define $ac_tr_func 1
2204 else
2205 echo "$ac_t""no" 1>&6
2206 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2207 echo "configure:2208: checking for gethostbyname in -lnsl" >&5
2208 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2211 else
2212 ac_save_LIBS="$LIBS"
2213 LIBS="-lnsl $LIBS"
2214 cat > conftest.$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2217 /* Override any gcc2 internal prototype to avoid an error. */
2218 /* We use char because int might match the return type of a gcc2
2219 builtin and then its argument prototype would still apply. */
2220 char gethostbyname();
2222 int main() {
2223 gethostbyname()
2224 ; return 0; }
2226 if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2227 rm -rf conftest*
2228 eval "ac_cv_lib_$ac_lib_var=yes"
2229 else
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2232 rm -rf conftest*
2233 eval "ac_cv_lib_$ac_lib_var=no"
2235 rm -f conftest*
2236 LIBS="$ac_save_LIBS"
2239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2240 echo "$ac_t""yes" 1>&6
2241 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2243 cat >> confdefs.h <<EOF
2244 #define $ac_tr_lib 1
2247 LIBS="-lnsl $LIBS"
2249 else
2250 echo "$ac_t""no" 1>&6
2254 done
2256 for ac_func in connect
2258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_func" >&5
2260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2262 else
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 /* System header to define __stub macros and hopefully few prototypes,
2267 which can conflict with char $ac_func(); below. */
2268 #include <assert.h>
2269 /* Override any gcc2 internal prototype to avoid an error. */
2270 /* We use char because int might match the return type of a gcc2
2271 builtin and then its argument prototype would still apply. */
2272 char $ac_func();
2274 int main() {
2276 /* The GNU C library defines this for functions which it implements
2277 to always fail with ENOSYS. Some functions are actually named
2278 something starting with __ and the normal name is an alias. */
2279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2280 choke me
2281 #else
2282 $ac_func();
2283 #endif
2285 ; return 0; }
2287 if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2288 rm -rf conftest*
2289 eval "ac_cv_func_$ac_func=yes"
2290 else
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 eval "ac_cv_func_$ac_func=no"
2296 rm -f conftest*
2299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2302 cat >> confdefs.h <<EOF
2303 #define $ac_tr_func 1
2306 else
2307 echo "$ac_t""no" 1>&6
2308 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2309 echo "configure:2310: checking for connect in -lsocket" >&5
2310 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2313 else
2314 ac_save_LIBS="$LIBS"
2315 LIBS="-lsocket $LIBS"
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 /* Override any gcc2 internal prototype to avoid an error. */
2320 /* We use char because int might match the return type of a gcc2
2321 builtin and then its argument prototype would still apply. */
2322 char connect();
2324 int main() {
2325 connect()
2326 ; return 0; }
2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2329 rm -rf conftest*
2330 eval "ac_cv_lib_$ac_lib_var=yes"
2331 else
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2334 rm -rf conftest*
2335 eval "ac_cv_lib_$ac_lib_var=no"
2337 rm -f conftest*
2338 LIBS="$ac_save_LIBS"
2341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2342 echo "$ac_t""yes" 1>&6
2343 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2345 cat >> confdefs.h <<EOF
2346 #define $ac_tr_lib 1
2349 LIBS="-lsocket $LIBS"
2351 else
2352 echo "$ac_t""no" 1>&6
2356 done
2358 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2359 echo "configure:2360: checking for setrunelocale in -lxpg4" >&5
2360 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2363 else
2364 ac_save_LIBS="$LIBS"
2365 LIBS="-lxpg4 $LIBS"
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 /* Override any gcc2 internal prototype to avoid an error. */
2370 /* We use char because int might match the return type of a gcc2
2371 builtin and then its argument prototype would still apply. */
2372 char setrunelocale();
2374 int main() {
2375 setrunelocale()
2376 ; return 0; }
2378 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2379 rm -rf conftest*
2380 eval "ac_cv_lib_$ac_lib_var=yes"
2381 else
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2384 rm -rf conftest*
2385 eval "ac_cv_lib_$ac_lib_var=no"
2387 rm -f conftest*
2388 LIBS="$ac_save_LIBS"
2391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2393 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2395 cat >> confdefs.h <<EOF
2396 #define $ac_tr_lib 1
2399 LIBS="-lxpg4 $LIBS"
2401 else
2402 echo "$ac_t""no" 1>&6
2405 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2406 echo "configure:2407: checking for mmap in -lmmap" >&5
2407 ac_lib_var=`echo mmap'_'mmap | 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="-lmmap $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 mmap();
2421 int main() {
2422 mmap()
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 mmap | 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="-lmmap $LIBS"
2448 else
2449 echo "$ac_t""no" 1>&6
2453 for ac_hdr in dlfcn.h
2455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2457 echo "configure:2458: checking for $ac_hdr" >&5
2458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2459 echo $ac_n "(cached) $ac_c" 1>&6
2460 else
2461 cat > conftest.$ac_ext <<EOF
2462 #line 2463 "configure"
2463 #include "confdefs.h"
2464 #include <$ac_hdr>
2466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2467 { (eval echo configure:2468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2468 ac_err=`grep -v '^ *+' conftest.out`
2469 if test -z "$ac_err"; then
2470 rm -rf conftest*
2471 eval "ac_cv_header_$ac_safe=yes"
2472 else
2473 echo "$ac_err" >&5
2474 echo "configure: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2476 rm -rf conftest*
2477 eval "ac_cv_header_$ac_safe=no"
2479 rm -f conftest*
2481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2482 echo "$ac_t""yes" 1>&6
2483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2484 cat >> confdefs.h <<EOF
2485 #define $ac_tr_hdr 1
2487 for ac_func in dlopen
2489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_func" >&5
2491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493 else
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 /* System header to define __stub macros and hopefully few prototypes,
2498 which can conflict with char $ac_func(); below. */
2499 #include <assert.h>
2500 /* Override any gcc2 internal prototype to avoid an error. */
2501 /* We use char because int might match the return type of a gcc2
2502 builtin and then its argument prototype would still apply. */
2503 char $ac_func();
2505 int main() {
2507 /* The GNU C library defines this for functions which it implements
2508 to always fail with ENOSYS. Some functions are actually named
2509 something starting with __ and the normal name is an alias. */
2510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2511 choke me
2512 #else
2513 $ac_func();
2514 #endif
2516 ; return 0; }
2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2519 rm -rf conftest*
2520 eval "ac_cv_func_$ac_func=yes"
2521 else
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 rm -rf conftest*
2525 eval "ac_cv_func_$ac_func=no"
2527 rm -f conftest*
2530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2533 cat >> confdefs.h <<EOF
2534 #define $ac_tr_func 1
2536 cat >> confdefs.h <<\EOF
2537 #define HAVE_DL_API 1
2540 else
2541 echo "$ac_t""no" 1>&6
2542 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2543 echo "configure:2544: checking for dlopen in -ldl" >&5
2544 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2547 else
2548 ac_save_LIBS="$LIBS"
2549 LIBS="-ldl $LIBS"
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2556 char dlopen();
2558 int main() {
2559 dlopen()
2560 ; return 0; }
2562 if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2563 rm -rf conftest*
2564 eval "ac_cv_lib_$ac_lib_var=yes"
2565 else
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2568 rm -rf conftest*
2569 eval "ac_cv_lib_$ac_lib_var=no"
2571 rm -f conftest*
2572 LIBS="$ac_save_LIBS"
2575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2576 echo "$ac_t""yes" 1>&6
2577 cat >> confdefs.h <<\EOF
2578 #define HAVE_DL_API 1
2581 LIBS="$LIBS -ldl"
2583 else
2584 echo "$ac_t""no" 1>&6
2589 done
2592 else
2593 echo "$ac_t""no" 1>&6
2595 done
2598 if test "$have_x" = "yes"
2599 then
2600 XLIB="-lXext -lX11"
2601 ac_save_CPPFLAGS="$CPPFLAGS"
2602 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2604 for ac_hdr in X11/xpm.h
2606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_hdr" >&5
2609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2611 else
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 #include <$ac_hdr>
2617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2618 { (eval echo configure:2619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2619 ac_err=`grep -v '^ *+' conftest.out`
2620 if test -z "$ac_err"; then
2621 rm -rf conftest*
2622 eval "ac_cv_header_$ac_safe=yes"
2623 else
2624 echo "$ac_err" >&5
2625 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2627 rm -rf conftest*
2628 eval "ac_cv_header_$ac_safe=no"
2630 rm -f conftest*
2632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2635 cat >> confdefs.h <<EOF
2636 #define $ac_tr_hdr 1
2639 else
2640 echo "$ac_t""no" 1>&6
2642 done
2644 if test "$ac_cv_header_X11_xpm_h" = "yes"
2645 then
2646 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2647 echo "configure:2648: checking for XpmCreatePixmapFromData in -lXpm" >&5
2648 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2651 else
2652 ac_save_LIBS="$LIBS"
2653 LIBS="-lXpm $X_LIBS -lXext -lX11 $LIBS"
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2657 /* Override any gcc2 internal prototype to avoid an error. */
2658 /* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2660 char XpmCreatePixmapFromData();
2662 int main() {
2663 XpmCreatePixmapFromData()
2664 ; return 0; }
2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2667 rm -rf conftest*
2668 eval "ac_cv_lib_$ac_lib_var=yes"
2669 else
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2672 rm -rf conftest*
2673 eval "ac_cv_lib_$ac_lib_var=no"
2675 rm -f conftest*
2676 LIBS="$ac_save_LIBS"
2679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 cat >> confdefs.h <<\EOF
2682 #define HAVE_LIBXXPM 1
2684 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2685 else
2686 echo "$ac_t""no" 1>&6
2691 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
2693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2698 else
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 #include <$ac_hdr>
2704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err=`grep -v '^ *+' conftest.out`
2707 if test -z "$ac_err"; then
2708 rm -rf conftest*
2709 eval "ac_cv_header_$ac_safe=yes"
2710 else
2711 echo "$ac_err" >&5
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -rf conftest*
2715 eval "ac_cv_header_$ac_safe=no"
2717 rm -f conftest*
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2722 cat >> confdefs.h <<EOF
2723 #define $ac_tr_hdr 1
2726 else
2727 echo "$ac_t""no" 1>&6
2729 done
2731 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
2732 then
2733 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
2734 echo "configure:2735: checking for XShmQueryExtension in -lXext" >&5
2735 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
2736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 ac_save_LIBS="$LIBS"
2740 LIBS="-lXext $X_LIBS -lXext -lX11 $LIBS"
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 /* Override any gcc2 internal prototype to avoid an error. */
2745 /* We use char because int might match the return type of a gcc2
2746 builtin and then its argument prototype would still apply. */
2747 char XShmQueryExtension();
2749 int main() {
2750 XShmQueryExtension()
2751 ; return 0; }
2753 if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2754 rm -rf conftest*
2755 eval "ac_cv_lib_$ac_lib_var=yes"
2756 else
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2759 rm -rf conftest*
2760 eval "ac_cv_lib_$ac_lib_var=no"
2762 rm -f conftest*
2763 LIBS="$ac_save_LIBS"
2766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2768 cat >> confdefs.h <<\EOF
2769 #define HAVE_LIBXXSHM 1
2772 else
2773 echo "$ac_t""no" 1>&6
2777 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
2779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_hdr" >&5
2782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2784 else
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2788 #include <$ac_hdr>
2790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2791 { (eval echo configure:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2792 ac_err=`grep -v '^ *+' conftest.out`
2793 if test -z "$ac_err"; then
2794 rm -rf conftest*
2795 eval "ac_cv_header_$ac_safe=yes"
2796 else
2797 echo "$ac_err" >&5
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2800 rm -rf conftest*
2801 eval "ac_cv_header_$ac_safe=no"
2803 rm -f conftest*
2805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2806 echo "$ac_t""yes" 1>&6
2807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2808 cat >> confdefs.h <<EOF
2809 #define $ac_tr_hdr 1
2812 else
2813 echo "$ac_t""no" 1>&6
2815 done
2817 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
2818 then
2819 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2820 echo "configure:2821: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2821 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2824 else
2825 ac_save_LIBS="$LIBS"
2826 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2830 /* Override any gcc2 internal prototype to avoid an error. */
2831 /* We use char because int might match the return type of a gcc2
2832 builtin and then its argument prototype would still apply. */
2833 char XF86DGAQueryExtension();
2835 int main() {
2836 XF86DGAQueryExtension()
2837 ; return 0; }
2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2840 rm -rf conftest*
2841 eval "ac_cv_lib_$ac_lib_var=yes"
2842 else
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2845 rm -rf conftest*
2846 eval "ac_cv_lib_$ac_lib_var=no"
2848 rm -f conftest*
2849 LIBS="$ac_save_LIBS"
2852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 cat >> confdefs.h <<\EOF
2855 #define HAVE_LIBXXF86DGA 1
2857 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2858 else
2859 echo "$ac_t""no" 1>&6
2864 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
2866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2868 echo "configure:2869: checking for $ac_hdr" >&5
2869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2871 else
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 #include <$ac_hdr>
2877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2878 { (eval echo configure:2879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2879 ac_err=`grep -v '^ *+' conftest.out`
2880 if test -z "$ac_err"; then
2881 rm -rf conftest*
2882 eval "ac_cv_header_$ac_safe=yes"
2883 else
2884 echo "$ac_err" >&5
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 rm -rf conftest*
2888 eval "ac_cv_header_$ac_safe=no"
2890 rm -f conftest*
2892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2893 echo "$ac_t""yes" 1>&6
2894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2895 cat >> confdefs.h <<EOF
2896 #define $ac_tr_hdr 1
2899 else
2900 echo "$ac_t""no" 1>&6
2902 done
2904 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
2905 then
2906 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
2907 echo "configure:2908: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
2908 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
2909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2911 else
2912 ac_save_LIBS="$LIBS"
2913 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $LIBS"
2914 cat > conftest.$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 /* Override any gcc2 internal prototype to avoid an error. */
2918 /* We use char because int might match the return type of a gcc2
2919 builtin and then its argument prototype would still apply. */
2920 char XF86VidModeQueryExtension();
2922 int main() {
2923 XF86VidModeQueryExtension()
2924 ; return 0; }
2926 if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2927 rm -rf conftest*
2928 eval "ac_cv_lib_$ac_lib_var=yes"
2929 else
2930 echo "configure: failed program was:" >&5
2931 cat conftest.$ac_ext >&5
2932 rm -rf conftest*
2933 eval "ac_cv_lib_$ac_lib_var=no"
2935 rm -f conftest*
2936 LIBS="$ac_save_LIBS"
2939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2940 echo "$ac_t""yes" 1>&6
2941 cat >> confdefs.h <<\EOF
2942 #define HAVE_LIBXXF86VM 1
2944 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
2945 else
2946 echo "$ac_t""no" 1>&6
2951 for ac_hdr in GL/gl.h GL/osmesa.h
2953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2955 echo "configure:2956: checking for $ac_hdr" >&5
2956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2958 else
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure"
2961 #include "confdefs.h"
2962 #include <$ac_hdr>
2964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2965 { (eval echo configure:2966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2966 ac_err=`grep -v '^ *+' conftest.out`
2967 if test -z "$ac_err"; then
2968 rm -rf conftest*
2969 eval "ac_cv_header_$ac_safe=yes"
2970 else
2971 echo "$ac_err" >&5
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2974 rm -rf conftest*
2975 eval "ac_cv_header_$ac_safe=no"
2977 rm -f conftest*
2979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2980 echo "$ac_t""yes" 1>&6
2981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2982 cat >> confdefs.h <<EOF
2983 #define $ac_tr_hdr 1
2986 else
2987 echo "$ac_t""no" 1>&6
2989 done
2991 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_osmesa_h" = "yes"
2992 then
2993 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
2994 echo "configure:2995: checking "for up-to-date Mesa version"" >&5
2995 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2997 else
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 #include <GL/gl.h>
3002 int main() {
3003 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3004 ; return 0; }
3006 if { (eval echo configure:3007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3007 rm -rf conftest*
3008 wine_cv_mesa_version_OK="yes"
3009 else
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3012 rm -rf conftest*
3013 wine_cv_mesa_version_OK="no"
3016 rm -f conftest*
3020 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3022 if test "$wine_cv_mesa_version_OK" = "yes"
3023 then
3024 echo $ac_n "checking for OSMesaCreateContext in -lMesaGL""... $ac_c" 1>&6
3025 echo "configure:3026: checking for OSMesaCreateContext in -lMesaGL" >&5
3026 ac_lib_var=`echo MesaGL'_'OSMesaCreateContext | sed 'y%./+-%__p_%'`
3027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3029 else
3030 ac_save_LIBS="$LIBS"
3031 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $LIBS"
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3038 char OSMesaCreateContext();
3040 int main() {
3041 OSMesaCreateContext()
3042 ; return 0; }
3044 if { (eval echo configure:3045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3045 rm -rf conftest*
3046 eval "ac_cv_lib_$ac_lib_var=yes"
3047 else
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3050 rm -rf conftest*
3051 eval "ac_cv_lib_$ac_lib_var=no"
3053 rm -f conftest*
3054 LIBS="$ac_save_LIBS"
3057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3058 echo "$ac_t""yes" 1>&6
3059 cat >> confdefs.h <<\EOF
3060 #define HAVE_LIBMESAGL 1
3062 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3063 else
3064 echo "$ac_t""no" 1>&6
3070 CPPFLAGS="$ac_save_CPPFLAGS"
3071 else
3072 XLIB=""
3073 X_CFLAGS=""
3074 X_LIBS=""
3077 for ac_hdr in ncurses.h
3079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3081 echo "configure:3082: checking for $ac_hdr" >&5
3082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3084 else
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3088 #include <$ac_hdr>
3090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3091 { (eval echo configure:3092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3092 ac_err=`grep -v '^ *+' conftest.out`
3093 if test -z "$ac_err"; then
3094 rm -rf conftest*
3095 eval "ac_cv_header_$ac_safe=yes"
3096 else
3097 echo "$ac_err" >&5
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3100 rm -rf conftest*
3101 eval "ac_cv_header_$ac_safe=no"
3103 rm -f conftest*
3105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3108 cat >> confdefs.h <<EOF
3109 #define $ac_tr_hdr 1
3112 else
3113 echo "$ac_t""no" 1>&6
3115 done
3117 if test "$ac_cv_header_ncurses_h" = "yes"
3118 then
3119 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3120 echo "configure:3121: checking for waddch in -lncurses" >&5
3121 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3124 else
3125 ac_save_LIBS="$LIBS"
3126 LIBS="-lncurses $LIBS"
3127 cat > conftest.$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3130 /* Override any gcc2 internal prototype to avoid an error. */
3131 /* We use char because int might match the return type of a gcc2
3132 builtin and then its argument prototype would still apply. */
3133 char waddch();
3135 int main() {
3136 waddch()
3137 ; return 0; }
3139 if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3140 rm -rf conftest*
3141 eval "ac_cv_lib_$ac_lib_var=yes"
3142 else
3143 echo "configure: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3145 rm -rf conftest*
3146 eval "ac_cv_lib_$ac_lib_var=no"
3148 rm -f conftest*
3149 LIBS="$ac_save_LIBS"
3152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3153 echo "$ac_t""yes" 1>&6
3154 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3155 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3156 cat >> confdefs.h <<EOF
3157 #define $ac_tr_lib 1
3160 LIBS="-lncurses $LIBS"
3162 else
3163 echo "$ac_t""no" 1>&6
3167 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3168 then
3169 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3170 echo "configure:3171: checking for resizeterm in -lncurses" >&5
3171 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3174 else
3175 ac_save_LIBS="$LIBS"
3176 LIBS="-lncurses $LIBS"
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 /* Override any gcc2 internal prototype to avoid an error. */
3181 /* We use char because int might match the return type of a gcc2
3182 builtin and then its argument prototype would still apply. */
3183 char resizeterm();
3185 int main() {
3186 resizeterm()
3187 ; return 0; }
3189 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3190 rm -rf conftest*
3191 eval "ac_cv_lib_$ac_lib_var=yes"
3192 else
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3195 rm -rf conftest*
3196 eval "ac_cv_lib_$ac_lib_var=no"
3198 rm -f conftest*
3199 LIBS="$ac_save_LIBS"
3202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3203 echo "$ac_t""yes" 1>&6
3204 cat >> confdefs.h <<\EOF
3205 #define HAVE_RESIZETERM 1
3208 else
3209 echo "$ac_t""no" 1>&6
3212 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3213 echo "configure:3214: checking for getbkgd in -lncurses" >&5
3214 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3217 else
3218 ac_save_LIBS="$LIBS"
3219 LIBS="-lncurses $LIBS"
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226 char getbkgd();
3228 int main() {
3229 getbkgd()
3230 ; return 0; }
3232 if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3233 rm -rf conftest*
3234 eval "ac_cv_lib_$ac_lib_var=yes"
3235 else
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3238 rm -rf conftest*
3239 eval "ac_cv_lib_$ac_lib_var=no"
3241 rm -f conftest*
3242 LIBS="$ac_save_LIBS"
3245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3246 echo "$ac_t""yes" 1>&6
3247 cat >> confdefs.h <<\EOF
3248 #define HAVE_GETBKGD 1
3251 else
3252 echo "$ac_t""no" 1>&6
3255 else
3256 for ac_hdr in curses.h
3258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3260 echo "configure:3261: checking for $ac_hdr" >&5
3261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3263 else
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 #include <$ac_hdr>
3269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3270 { (eval echo configure:3271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3271 ac_err=`grep -v '^ *+' conftest.out`
3272 if test -z "$ac_err"; then
3273 rm -rf conftest*
3274 eval "ac_cv_header_$ac_safe=yes"
3275 else
3276 echo "$ac_err" >&5
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3279 rm -rf conftest*
3280 eval "ac_cv_header_$ac_safe=no"
3282 rm -f conftest*
3284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3285 echo "$ac_t""yes" 1>&6
3286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3287 cat >> confdefs.h <<EOF
3288 #define $ac_tr_hdr 1
3291 else
3292 echo "$ac_t""no" 1>&6
3294 done
3296 if test "$ac_cv_header_curses_h" = "yes"
3297 then
3298 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3299 echo "configure:3300: checking for waddch in -lcurses" >&5
3300 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3303 else
3304 ac_save_LIBS="$LIBS"
3305 LIBS="-lcurses $LIBS"
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 /* Override any gcc2 internal prototype to avoid an error. */
3310 /* We use char because int might match the return type of a gcc2
3311 builtin and then its argument prototype would still apply. */
3312 char waddch();
3314 int main() {
3315 waddch()
3316 ; return 0; }
3318 if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3319 rm -rf conftest*
3320 eval "ac_cv_lib_$ac_lib_var=yes"
3321 else
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 rm -rf conftest*
3325 eval "ac_cv_lib_$ac_lib_var=no"
3327 rm -f conftest*
3328 LIBS="$ac_save_LIBS"
3331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3335 cat >> confdefs.h <<EOF
3336 #define $ac_tr_lib 1
3339 LIBS="-lcurses $LIBS"
3341 else
3342 echo "$ac_t""no" 1>&6
3345 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3346 echo "configure:3347: checking for resizeterm in -lcurses" >&5
3347 ac_lib_var=`echo curses'_'resizeterm | 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 resizeterm();
3361 int main() {
3362 resizeterm()
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 cat >> confdefs.h <<\EOF
3381 #define HAVE_RESIZETERM 1
3384 else
3385 echo "$ac_t""no" 1>&6
3388 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3389 echo "configure:3390: checking for getbkgd in -lcurses" >&5
3390 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3393 else
3394 ac_save_LIBS="$LIBS"
3395 LIBS="-lcurses $LIBS"
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* Override any gcc2 internal prototype to avoid an error. */
3400 /* We use char because int might match the return type of a gcc2
3401 builtin and then its argument prototype would still apply. */
3402 char getbkgd();
3404 int main() {
3405 getbkgd()
3406 ; return 0; }
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3409 rm -rf conftest*
3410 eval "ac_cv_lib_$ac_lib_var=yes"
3411 else
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3414 rm -rf conftest*
3415 eval "ac_cv_lib_$ac_lib_var=no"
3417 rm -f conftest*
3418 LIBS="$ac_save_LIBS"
3421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3422 echo "$ac_t""yes" 1>&6
3423 cat >> confdefs.h <<\EOF
3424 #define HAVE_GETBKGD 1
3427 else
3428 echo "$ac_t""no" 1>&6
3434 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
3435 echo "configure:3436: checking "for GNU style IPX support"" >&5
3436 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3438 else
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <sys/socket.h>
3443 #include <netipx/ipx.h>
3444 int main() {
3445 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3446 ; return 0; }
3448 if { (eval echo configure:3449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 rm -rf conftest*
3450 cat >> confdefs.h <<\EOF
3451 #define HAVE_IPX_GNU 1
3454 ac_cv_c_ipx_gnu="yes"
3455 else
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3458 rm -rf conftest*
3459 ac_cv_c_ipx_gnu="no"
3461 rm -f conftest*
3465 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3467 if test "$ac_cv_c_ipx_gnu" = "no"
3468 then
3469 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
3470 echo "configure:3471: checking "for linux style IPX support"" >&5
3471 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3473 else
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 #include <sys/socket.h>
3478 #include <asm/types.h>
3479 #include <linux/ipx.h>
3480 int main() {
3481 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3482 ; return 0; }
3484 if { (eval echo configure:3485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3485 rm -rf conftest*
3486 cat >> confdefs.h <<\EOF
3487 #define HAVE_IPX_LINUX 1
3490 ac_cv_c_ipx_linux="yes"
3491 else
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3494 rm -rf conftest*
3495 ac_cv_c_ipx_linux="no"
3497 rm -f conftest*
3501 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
3504 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
3506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3508 echo "configure:3509: checking for $ac_hdr" >&5
3509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3511 else
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 #include <$ac_hdr>
3517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3518 { (eval echo configure:3519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3519 ac_err=`grep -v '^ *+' conftest.out`
3520 if test -z "$ac_err"; then
3521 rm -rf conftest*
3522 eval "ac_cv_header_$ac_safe=yes"
3523 else
3524 echo "$ac_err" >&5
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3527 rm -rf conftest*
3528 eval "ac_cv_header_$ac_safe=no"
3530 rm -f conftest*
3532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3533 echo "$ac_t""yes" 1>&6
3534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3535 cat >> confdefs.h <<EOF
3536 #define $ac_tr_hdr 1
3538 break
3539 else
3540 echo "$ac_t""no" 1>&6
3542 done
3545 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
3546 echo "configure:3547: checking "for Open Sound System"" >&5
3547 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3549 else
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3554 #if defined(HAVE_SYS_SOUNDCARD_H)
3555 #include <sys/soundcard.h>
3556 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3557 #include <machine/soundcard.h>
3558 #elif defined(HAVE_SOUNDCARD_H)
3559 #include <soundcard.h>
3560 #endif
3562 int main() {
3565 /* check for one of the Open Sound System specific SNDCTL_ defines */
3566 #if !defined(SNDCTL_DSP_STEREO)
3567 #error No open sound system
3568 #endif
3570 ; return 0; }
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3573 rm -rf conftest*
3574 ac_cv_c_opensoundsystem="yes"
3575 else
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3578 rm -rf conftest*
3579 ac_cv_c_opensoundsystem="no"
3581 rm -f conftest*
3584 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
3586 if test "$ac_cv_c_opensoundsystem" = "yes"
3587 then
3588 cat >> confdefs.h <<\EOF
3589 #define HAVE_OSS 1
3594 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
3595 echo "configure:3596: checking "for Open Sound System/MIDI interface"" >&5
3596 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3598 else
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3603 #if defined(HAVE_SYS_SOUNDCARD_H)
3604 #include <sys/soundcard.h>
3605 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
3606 #include <machine/soundcard.h>
3607 #elif defined(HAVE_SOUNDCARD_H)
3608 #include <soundcard.h>
3609 #endif
3611 int main() {
3614 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
3615 #if !defined(SNDCTL_SEQ_SYNC)
3616 #error No open sound system MIDI interface
3617 #endif
3619 ; return 0; }
3621 if { (eval echo configure:3622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622 rm -rf conftest*
3623 ac_cv_c_opensoundsystem_midi="yes"
3624 else
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 rm -rf conftest*
3628 ac_cv_c_opensoundsystem_midi="no"
3630 rm -f conftest*
3633 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
3635 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
3636 then
3637 cat >> confdefs.h <<\EOF
3638 #define HAVE_OSS_MIDI 1
3643 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
3646 if test "x${GCC}" = "xyes"
3647 then
3648 CFLAGS="$CFLAGS -Wall"
3649 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
3650 echo "configure:3651: checking "for gcc strength-reduce bug"" >&5
3651 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3653 else
3654 if test "$cross_compiling" = yes; then
3655 ac_cv_c_gcc_strength_bug="yes"
3656 else
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3661 int main(void) {
3662 static int Array[3];
3663 unsigned int B = 3;
3664 int i;
3665 for(i=0; i<B; i++) Array[i] = i - 3;
3666 exit( Array[1] != -2 );
3669 if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3670 then
3671 ac_cv_c_gcc_strength_bug="no"
3672 else
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3675 rm -fr conftest*
3676 ac_cv_c_gcc_strength_bug="yes"
3678 rm -fr conftest*
3683 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
3684 if test "$ac_cv_c_gcc_strength_bug" = "yes"
3685 then
3686 CFLAGS="$CFLAGS -fno-strength-reduce"
3691 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
3692 echo "configure:3693: checking "whether external symbols need an underscore prefix"" >&5
3693 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3695 else
3696 saved_libs=$LIBS
3697 LIBS="conftest_asm.s $LIBS"
3698 cat > conftest_asm.s <<EOF
3699 .globl _ac_test
3700 _ac_test:
3701 .long 0
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 extern int ac_test;
3707 int main() {
3708 if (ac_test) return 1
3709 ; return 0; }
3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3712 rm -rf conftest*
3713 ac_cv_c_extern_prefix="yes"
3714 else
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3717 rm -rf conftest*
3718 ac_cv_c_extern_prefix="no"
3720 rm -f conftest*
3721 LIBS=$saved_libs
3724 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
3725 if test "$ac_cv_c_extern_prefix" = "yes"
3726 then
3727 cat >> confdefs.h <<\EOF
3728 #define NEED_UNDERSCORE_PREFIX 1
3734 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
3735 echo "configure:3736: checking "whether assembler accepts .string"" >&5
3736 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3738 else
3739 saved_libs=$LIBS
3740 LIBS="conftest_asm.s $LIBS"
3741 cat > conftest_asm.s <<EOF
3742 .string "test"
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3748 int main() {
3750 ; return 0; }
3752 if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3753 rm -rf conftest*
3754 ac_cv_c_asm_string="yes"
3755 else
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3758 rm -rf conftest*
3759 ac_cv_c_asm_string="no"
3761 rm -f conftest*
3762 LIBS=$saved_libs
3765 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
3766 if test "$ac_cv_c_asm_string" = "yes"
3767 then
3768 cat >> confdefs.h <<\EOF
3769 #define HAVE_ASM_STRING 1
3775 DLLFLAGS=""
3776 LDSHARED=""
3777 if test "$LIB_TARGET" = "libwine.so.1.0"
3778 then
3779 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
3780 echo "configure:3781: checking "whether we can build a Linux dll"" >&5
3781 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3783 else
3784 saved_cflags=$CFLAGS
3785 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
3786 cat > conftest.$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3790 int main() {
3791 return 1
3792 ; return 0; }
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3795 rm -rf conftest*
3796 ac_cv_c_dll_linux="yes"
3797 else
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3800 rm -rf conftest*
3801 ac_cv_c_dll_linux="no"
3803 rm -f conftest*
3804 CFLAGS=$saved_cflags
3808 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
3809 if test "$ac_cv_c_dll_linux" = "yes"
3810 then
3811 DLLFLAGS="-fPIC"
3812 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so"
3813 else
3814 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
3815 echo "configure:3816: checking "whether we can build a NetBSD dll"" >&5
3816 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3818 else
3819 saved_cflags=$CFLAGS
3820 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
3821 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3825 int main() {
3826 return 1
3827 ; return 0; }
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3830 rm -rf conftest*
3831 ac_cv_c_dll_netbsd="yes"
3832 else
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3835 rm -rf conftest*
3836 ac_cv_c_dll_netbsd="no"
3838 rm -f conftest*
3839 CFLAGS=$saved_cflags
3843 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
3844 if test "$ac_cv_c_dll_netbsd" = "yes"
3845 then
3846 DLLFLAGS="-fPIC"
3847 LDSHARED="ld -Bshareable -Bforcearchive"
3850 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
3851 then
3852 LIB_TARGET="libwine.a"
3859 wine_cv_libc_reentrant=no
3860 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
3861 echo "configure:3862: checking "for reentrant libc: __errno_location"" >&5
3862 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3864 else
3865 if test "$cross_compiling" = yes; then
3866 wine_cv_libc_r__errno_location=yes
3867 else
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 int myerrno = 0;
3872 char buf[256];
3873 int *__errno_location(){return &myerrno;}
3874 main(){connect(0,buf,255); exit(!myerrno);}
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3877 then
3878 wine_cv_libc_r__errno_location=yes
3879 else
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 rm -fr conftest*
3883 wine_cv_libc_r__errno_location=no
3885 rm -fr conftest*
3891 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
3892 if test "$wine_cv_libc_r__errno_location" = "yes"
3893 then
3894 cat >> confdefs.h <<\EOF
3895 #define HAVE__ERRNO_LOCATION 1
3898 wine_cv_libc_reentrant=__errno_location
3900 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
3901 echo "configure:3902: checking "for reentrant libc: __error"" >&5
3902 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3904 else
3905 if test "$cross_compiling" = yes; then
3906 wine_cv_libc_r__error=yes
3907 else
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3911 int myerrno = 0;
3912 char buf[256];
3913 int *__error(){return &myerrno;}
3914 main(){connect(0,buf,255); exit(!myerrno);}
3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3917 then
3918 wine_cv_libc_r__error=yes
3919 else
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3922 rm -fr conftest*
3923 wine_cv_libc_r__error=no
3925 rm -fr conftest*
3931 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
3932 if test "$wine_cv_libc_r__error" = "yes"
3933 then
3934 cat >> confdefs.h <<\EOF
3935 #define HAVE__ERROR 1
3938 wine_cv_libc_reentrant=__error
3940 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
3941 echo "configure:3942: checking "for reentrant libc: ___errno"" >&5
3942 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3944 else
3945 if test "$cross_compiling" = yes; then
3946 wine_cv_libc_r___errno=yes
3947 else
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 int myerrno = 0;
3952 char buf[256];
3953 int *___errno(){return &myerrno;}
3954 main(){connect(0,buf,255); exit(!myerrno);}
3956 if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3957 then
3958 wine_cv_libc_r___errno=yes
3959 else
3960 echo "configure: failed program was:" >&5
3961 cat conftest.$ac_ext >&5
3962 rm -fr conftest*
3963 wine_cv_libc_r___errno=no
3965 rm -fr conftest*
3971 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
3972 if test "$wine_cv_libc_r___errno" = "yes"
3973 then
3974 cat >> confdefs.h <<\EOF
3975 #define HAVE___ERRNO 1
3978 wine_cv_libc_reentrant=___errno
3980 if test "$wine_cv_libc_reentrant" = "no"
3981 then
3982 cat >> confdefs.h <<\EOF
3983 #define NO_REENTRANT_LIBC 1
3989 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
3990 then
3991 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
3992 echo "configure:3993: checking "for reentrant X libraries"" >&5
3993 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3995 else
3996 if test "x$with_reentrant_x" = "xno"
3997 then
3998 wine_cv_x_reentrant=no
3999 else
4000 libX11_check=none
4001 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4002 if test -r $dir/libX11.so; then
4003 libX11_check="-D $dir/libX11.so"
4004 break 1
4006 if test -r $dir/libX11.a; then
4007 libX11_check="$dir/libX11.a"
4008 break 1
4010 done
4011 if test "$libX11_check" != "none"; then
4012 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4013 then
4014 wine_cv_x_reentrant=yes
4015 else
4016 wine_cv_x_reentrant=no
4018 else
4019 wine_cv_x_reentrant=unknown
4024 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4025 else
4026 wine_cv_x_reentrant=no
4028 if test "$wine_cv_x_reentrant" = "no"
4029 then
4030 cat >> confdefs.h <<\EOF
4031 #define NO_REENTRANT_X11 1
4037 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4038 # for constant arguments. Useless!
4039 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4040 echo "configure:4041: checking for working alloca.h" >&5
4041 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4043 else
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 #include <alloca.h>
4048 int main() {
4049 char *p = alloca(2 * sizeof(int));
4050 ; return 0; }
4052 if { (eval echo configure:4053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4053 rm -rf conftest*
4054 ac_cv_header_alloca_h=yes
4055 else
4056 echo "configure: failed program was:" >&5
4057 cat conftest.$ac_ext >&5
4058 rm -rf conftest*
4059 ac_cv_header_alloca_h=no
4061 rm -f conftest*
4064 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4065 if test $ac_cv_header_alloca_h = yes; then
4066 cat >> confdefs.h <<\EOF
4067 #define HAVE_ALLOCA_H 1
4072 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4073 echo "configure:4074: checking for alloca" >&5
4074 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4076 else
4077 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4081 #ifdef __GNUC__
4082 # define alloca __builtin_alloca
4083 #else
4084 # if HAVE_ALLOCA_H
4085 # include <alloca.h>
4086 # else
4087 # ifdef _AIX
4088 #pragma alloca
4089 # else
4090 # ifndef alloca /* predefined by HP cc +Olibcalls */
4091 char *alloca ();
4092 # endif
4093 # endif
4094 # endif
4095 #endif
4097 int main() {
4098 char *p = (char *) alloca(1);
4099 ; return 0; }
4101 if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4102 rm -rf conftest*
4103 ac_cv_func_alloca_works=yes
4104 else
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4107 rm -rf conftest*
4108 ac_cv_func_alloca_works=no
4110 rm -f conftest*
4113 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4114 if test $ac_cv_func_alloca_works = yes; then
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_ALLOCA 1
4121 if test $ac_cv_func_alloca_works = no; then
4122 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4123 # that cause trouble. Some versions do not even contain alloca or
4124 # contain a buggy version. If you still want to use their alloca,
4125 # use ar to extract alloca.o from them instead of compiling alloca.c.
4126 ALLOCA=alloca.o
4127 cat >> confdefs.h <<\EOF
4128 #define C_ALLOCA 1
4132 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4133 echo "configure:4134: checking whether alloca needs Cray hooks" >&5
4134 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136 else
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #if defined(CRAY) && ! defined(CRAY2)
4141 webecray
4142 #else
4143 wenotbecray
4144 #endif
4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148 egrep "webecray" >/dev/null 2>&1; then
4149 rm -rf conftest*
4150 ac_cv_os_cray=yes
4151 else
4152 rm -rf conftest*
4153 ac_cv_os_cray=no
4155 rm -f conftest*
4159 echo "$ac_t""$ac_cv_os_cray" 1>&6
4160 if test $ac_cv_os_cray = yes; then
4161 for ac_func in _getb67 GETB67 getb67; do
4162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4163 echo "configure:4164: checking for $ac_func" >&5
4164 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4165 echo $ac_n "(cached) $ac_c" 1>&6
4166 else
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4170 /* System header to define __stub macros and hopefully few prototypes,
4171 which can conflict with char $ac_func(); below. */
4172 #include <assert.h>
4173 /* Override any gcc2 internal prototype to avoid an error. */
4174 /* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4176 char $ac_func();
4178 int main() {
4180 /* The GNU C library defines this for functions which it implements
4181 to always fail with ENOSYS. Some functions are actually named
4182 something starting with __ and the normal name is an alias. */
4183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4184 choke me
4185 #else
4186 $ac_func();
4187 #endif
4189 ; return 0; }
4191 if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4192 rm -rf conftest*
4193 eval "ac_cv_func_$ac_func=yes"
4194 else
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 rm -rf conftest*
4198 eval "ac_cv_func_$ac_func=no"
4200 rm -f conftest*
4203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4204 echo "$ac_t""yes" 1>&6
4205 cat >> confdefs.h <<EOF
4206 #define CRAY_STACKSEG_END $ac_func
4209 break
4210 else
4211 echo "$ac_t""no" 1>&6
4214 done
4217 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4218 echo "configure:4219: checking stack direction for C alloca" >&5
4219 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4221 else
4222 if test "$cross_compiling" = yes; then
4223 ac_cv_c_stack_direction=0
4224 else
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 find_stack_direction ()
4230 static char *addr = 0;
4231 auto char dummy;
4232 if (addr == 0)
4234 addr = &dummy;
4235 return find_stack_direction ();
4237 else
4238 return (&dummy > addr) ? 1 : -1;
4240 main ()
4242 exit (find_stack_direction() < 0);
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4246 then
4247 ac_cv_c_stack_direction=1
4248 else
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4251 rm -fr conftest*
4252 ac_cv_c_stack_direction=-1
4254 rm -fr conftest*
4259 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4260 cat >> confdefs.h <<EOF
4261 #define STACK_DIRECTION $ac_cv_c_stack_direction
4266 for ac_func in \
4267 _lwp_create \
4268 clone \
4269 getpagesize \
4270 memmove \
4271 rfork \
4272 sendmsg \
4273 sigaltstack \
4274 strerror \
4275 stricmp \
4276 tcgetattr \
4277 timegm \
4278 usleep \
4279 vfscanf \
4280 wait4 \
4281 waitpid \
4284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4285 echo "configure:4286: checking for $ac_func" >&5
4286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4288 else
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 /* System header to define __stub macros and hopefully few prototypes,
4293 which can conflict with char $ac_func(); below. */
4294 #include <assert.h>
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4298 char $ac_func();
4300 int main() {
4302 /* The GNU C library defines this for functions which it implements
4303 to always fail with ENOSYS. Some functions are actually named
4304 something starting with __ and the normal name is an alias. */
4305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4306 choke me
4307 #else
4308 $ac_func();
4309 #endif
4311 ; return 0; }
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4314 rm -rf conftest*
4315 eval "ac_cv_func_$ac_func=yes"
4316 else
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4319 rm -rf conftest*
4320 eval "ac_cv_func_$ac_func=no"
4322 rm -f conftest*
4325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4326 echo "$ac_t""yes" 1>&6
4327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4328 cat >> confdefs.h <<EOF
4329 #define $ac_tr_func 1
4332 else
4333 echo "$ac_t""no" 1>&6
4335 done
4339 for ac_hdr in \
4340 arpa/nameser.h \
4341 curses.h \
4342 elf.h \
4343 float.h \
4344 libio.h \
4345 linux/cdrom.h \
4346 linux/ucdrom.h \
4347 ncurses.h \
4348 net/if.h \
4349 netinet/in.h \
4350 resolv.h \
4351 strings.h \
4352 sys/cdio.h \
4353 sys/file.h \
4354 sys/filio.h \
4355 sys/lwp.h \
4356 sys/modem.h \
4357 sys/mount.h \
4358 sys/param.h \
4359 sys/sockio.h \
4360 sys/statfs.h \
4361 sys/strtio.h \
4362 sys/syscall.h \
4363 sys/vfs.h \
4364 syscall.h \
4365 ucontext.h \
4366 unistd.h \
4367 wctype.h \
4370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4372 echo "configure:4373: checking for $ac_hdr" >&5
4373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4375 else
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 #include <$ac_hdr>
4381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4382 { (eval echo configure:4383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4383 ac_err=`grep -v '^ *+' conftest.out`
4384 if test -z "$ac_err"; then
4385 rm -rf conftest*
4386 eval "ac_cv_header_$ac_safe=yes"
4387 else
4388 echo "$ac_err" >&5
4389 echo "configure: failed program was:" >&5
4390 cat conftest.$ac_ext >&5
4391 rm -rf conftest*
4392 eval "ac_cv_header_$ac_safe=no"
4394 rm -f conftest*
4396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4399 cat >> confdefs.h <<EOF
4400 #define $ac_tr_hdr 1
4403 else
4404 echo "$ac_t""no" 1>&6
4406 done
4408 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
4409 echo "configure:4410: checking whether stat file-mode macros are broken" >&5
4410 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4412 else
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 #include <sys/types.h>
4417 #include <sys/stat.h>
4419 #if defined(S_ISBLK) && defined(S_IFDIR)
4420 # if S_ISBLK (S_IFDIR)
4421 You lose.
4422 # endif
4423 #endif
4425 #if defined(S_ISBLK) && defined(S_IFCHR)
4426 # if S_ISBLK (S_IFCHR)
4427 You lose.
4428 # endif
4429 #endif
4431 #if defined(S_ISLNK) && defined(S_IFREG)
4432 # if S_ISLNK (S_IFREG)
4433 You lose.
4434 # endif
4435 #endif
4437 #if defined(S_ISSOCK) && defined(S_IFREG)
4438 # if S_ISSOCK (S_IFREG)
4439 You lose.
4440 # endif
4441 #endif
4444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4445 egrep "You lose" >/dev/null 2>&1; then
4446 rm -rf conftest*
4447 ac_cv_header_stat_broken=yes
4448 else
4449 rm -rf conftest*
4450 ac_cv_header_stat_broken=no
4452 rm -f conftest*
4456 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
4457 if test $ac_cv_header_stat_broken = yes; then
4458 cat >> confdefs.h <<\EOF
4459 #define STAT_MACROS_BROKEN 1
4466 echo $ac_n "checking for working const""... $ac_c" 1>&6
4467 echo "configure:4468: checking for working const" >&5
4468 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4469 echo $ac_n "(cached) $ac_c" 1>&6
4470 else
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4475 int main() {
4477 /* Ultrix mips cc rejects this. */
4478 typedef int charset[2]; const charset x;
4479 /* SunOS 4.1.1 cc rejects this. */
4480 char const *const *ccp;
4481 char **p;
4482 /* NEC SVR4.0.2 mips cc rejects this. */
4483 struct point {int x, y;};
4484 static struct point const zero = {0,0};
4485 /* AIX XL C 1.02.0.0 rejects this.
4486 It does not let you subtract one const X* pointer from another in an arm
4487 of an if-expression whose if-part is not a constant expression */
4488 const char *g = "string";
4489 ccp = &g + (g ? g-g : 0);
4490 /* HPUX 7.0 cc rejects these. */
4491 ++ccp;
4492 p = (char**) ccp;
4493 ccp = (char const *const *) p;
4494 { /* SCO 3.2v4 cc rejects this. */
4495 char *t;
4496 char const *s = 0 ? (char *) 0 : (char const *) 0;
4498 *t++ = 0;
4500 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4501 int x[] = {25, 17};
4502 const int *foo = &x[0];
4503 ++foo;
4505 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4506 typedef const int *iptr;
4507 iptr p = 0;
4508 ++p;
4510 { /* AIX XL C 1.02.0.0 rejects this saying
4511 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4512 struct s { int j; const int *ap[3]; };
4513 struct s *b; b->j = 5;
4515 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4516 const int foo = 10;
4519 ; return 0; }
4521 if { (eval echo configure:4522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4522 rm -rf conftest*
4523 ac_cv_c_const=yes
4524 else
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4527 rm -rf conftest*
4528 ac_cv_c_const=no
4530 rm -f conftest*
4533 echo "$ac_t""$ac_cv_c_const" 1>&6
4534 if test $ac_cv_c_const = no; then
4535 cat >> confdefs.h <<\EOF
4536 #define const
4541 echo $ac_n "checking for inline""... $ac_c" 1>&6
4542 echo "configure:4543: checking for inline" >&5
4543 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4544 echo $ac_n "(cached) $ac_c" 1>&6
4545 else
4546 ac_cv_c_inline=no
4547 for ac_kw in inline __inline__ __inline; do
4548 cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4552 int main() {
4553 } $ac_kw foo() {
4554 ; return 0; }
4556 if { (eval echo configure:4557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4557 rm -rf conftest*
4558 ac_cv_c_inline=$ac_kw; break
4559 else
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4563 rm -f conftest*
4564 done
4568 echo "$ac_t""$ac_cv_c_inline" 1>&6
4569 case "$ac_cv_c_inline" in
4570 inline | yes) ;;
4571 no) cat >> confdefs.h <<\EOF
4572 #define inline
4575 *) cat >> confdefs.h <<EOF
4576 #define inline $ac_cv_c_inline
4579 esac
4581 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4582 echo "configure:4583: checking for ANSI C header files" >&5
4583 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4585 else
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4589 #include <stdlib.h>
4590 #include <stdarg.h>
4591 #include <string.h>
4592 #include <float.h>
4594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4595 { (eval echo configure:4596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4596 ac_err=`grep -v '^ *+' conftest.out`
4597 if test -z "$ac_err"; then
4598 rm -rf conftest*
4599 ac_cv_header_stdc=yes
4600 else
4601 echo "$ac_err" >&5
4602 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5
4604 rm -rf conftest*
4605 ac_cv_header_stdc=no
4607 rm -f conftest*
4609 if test $ac_cv_header_stdc = yes; then
4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 #include <string.h>
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 egrep "memchr" >/dev/null 2>&1; then
4619 else
4620 rm -rf conftest*
4621 ac_cv_header_stdc=no
4623 rm -f conftest*
4627 if test $ac_cv_header_stdc = yes; then
4628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 #include <stdlib.h>
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 egrep "free" >/dev/null 2>&1; then
4637 else
4638 rm -rf conftest*
4639 ac_cv_header_stdc=no
4641 rm -f conftest*
4645 if test $ac_cv_header_stdc = yes; then
4646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4647 if test "$cross_compiling" = yes; then
4649 else
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 #include <ctype.h>
4654 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4655 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4657 int main () { int i; for (i = 0; i < 256; i++)
4658 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4659 exit (0); }
4662 if { (eval echo configure:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4663 then
4665 else
4666 echo "configure: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4668 rm -fr conftest*
4669 ac_cv_header_stdc=no
4671 rm -fr conftest*
4677 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4678 if test $ac_cv_header_stdc = yes; then
4679 cat >> confdefs.h <<\EOF
4680 #define STDC_HEADERS 1
4685 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4686 echo "configure:4687: checking for size_t" >&5
4687 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4689 else
4690 cat > conftest.$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4693 #include <sys/types.h>
4694 #if STDC_HEADERS
4695 #include <stdlib.h>
4696 #include <stddef.h>
4697 #endif
4699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4700 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4701 rm -rf conftest*
4702 ac_cv_type_size_t=yes
4703 else
4704 rm -rf conftest*
4705 ac_cv_type_size_t=no
4707 rm -f conftest*
4710 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4711 if test $ac_cv_type_size_t = no; then
4712 cat >> confdefs.h <<\EOF
4713 #define size_t unsigned
4718 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4719 echo "configure:4720: checking size of long long" >&5
4720 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4722 else
4723 if test "$cross_compiling" = yes; then
4724 ac_cv_sizeof_long_long=0
4725 else
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 #include <stdio.h>
4730 main()
4732 FILE *f=fopen("conftestval", "w");
4733 if (!f) exit(1);
4734 fprintf(f, "%d\n", sizeof(long long));
4735 exit(0);
4738 if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4739 then
4740 ac_cv_sizeof_long_long=`cat conftestval`
4741 else
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4744 rm -fr conftest*
4745 ac_cv_sizeof_long_long=0
4747 rm -fr conftest*
4751 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4752 cat >> confdefs.h <<EOF
4753 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4759 if test "$ac_cv_header_sys_vfs_h" = "yes"
4760 then
4761 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
4762 echo "configure:4763: checking "whether sys/vfs.h defines statfs"" >&5
4763 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4765 else
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4770 #include <sys/types.h>
4771 #ifdef HAVE_SYS_PARAM_H
4772 # include <sys/param.h>
4773 #endif
4774 #include <sys/vfs.h>
4776 int main() {
4778 struct statfs stfs;
4780 memset(&stfs,0,sizeof(stfs));
4782 ; return 0; }
4784 if { (eval echo configure:4785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4785 rm -rf conftest*
4786 wine_cv_sys_vfs_has_statfs=yes
4787 else
4788 echo "configure: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4790 rm -rf conftest*
4791 wine_cv_sys_vfs_has_statfs=no
4794 rm -f conftest*
4798 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
4799 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
4800 then
4801 cat >> confdefs.h <<\EOF
4802 #define STATFS_DEFINED_BY_SYS_VFS 1
4808 if test "$ac_cv_header_sys_statfs_h" = "yes"
4809 then
4810 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
4811 echo "configure:4812: checking "whether sys/statfs.h defines statfs"" >&5
4812 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4814 else
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4819 #include <sys/types.h>
4820 #ifdef HAVE_SYS_PARAM_H
4821 # include <sys/param.h>
4822 #endif
4823 #include <sys/statfs.h>
4825 int main() {
4827 struct statfs stfs;
4829 ; return 0; }
4831 if { (eval echo configure:4832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4832 rm -rf conftest*
4833 wine_cv_sys_statfs_has_statfs=yes
4834 else
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4837 rm -rf conftest*
4838 wine_cv_sys_statfs_has_statfs=no
4841 rm -f conftest*
4845 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
4846 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
4847 then
4848 cat >> confdefs.h <<\EOF
4849 #define STATFS_DEFINED_BY_SYS_STATFS 1
4855 if test "$ac_cv_header_sys_mount_h" = "yes"
4856 then
4857 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
4858 echo "configure:4859: checking "whether sys/mount.h defines statfs"" >&5
4859 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
4860 echo $ac_n "(cached) $ac_c" 1>&6
4861 else
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4866 #include <sys/types.h>
4867 #ifdef HAVE_SYS_PARAM_H
4868 # include <sys/param.h>
4869 #endif
4870 #include <sys/mount.h>
4872 int main() {
4874 struct statfs stfs;
4876 ; return 0; }
4878 if { (eval echo configure:4879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4879 rm -rf conftest*
4880 wine_cv_sys_mount_has_statfs=yes
4881 else
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4884 rm -rf conftest*
4885 wine_cv_sys_mount_has_statfs=no
4888 rm -f conftest*
4892 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
4893 if test "$wine_cv_sys_mount_has_statfs" = "yes"
4894 then
4895 cat >> confdefs.h <<\EOF
4896 #define STATFS_DEFINED_BY_SYS_MOUNT 1
4903 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
4904 echo "configure:4905: checking "for statfs.f_bfree"" >&5
4905 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4907 else
4908 if test "x$statfs_bfree" = "xno"
4909 then
4910 wine_cv_statfs_bfree=no
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 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4921 # include <sys/mount.h>
4922 #else
4923 # ifdef STATFS_DEFINED_BY_SYS_VFS
4924 # include <sys/vfs.h>
4925 # else
4926 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4927 # include <sys/statfs.h>
4928 # endif
4929 # endif
4930 #endif
4932 int main() {
4934 struct statfs stfs;
4936 stfs.f_bfree++;
4938 ; return 0; }
4940 if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4941 rm -rf conftest*
4942 wine_cv_statfs_bfree=yes
4943 else
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 rm -rf conftest*
4947 wine_cv_statfs_bfree=no
4950 rm -f conftest*
4954 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
4955 if test "$wine_cv_statfs_bfree" = "yes"
4956 then
4957 cat >> confdefs.h <<\EOF
4958 #define STATFS_HAS_BFREE 1
4963 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
4964 echo "configure:4965: checking "for statfs.f_bavail"" >&5
4965 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
4966 echo $ac_n "(cached) $ac_c" 1>&6
4967 else
4968 if test "x$statfs_bavail" = "xno"
4969 then
4970 wine_cv_statfs_bavail=no
4971 else
4972 cat > conftest.$ac_ext <<EOF
4973 #line 4974 "configure"
4974 #include "confdefs.h"
4976 #include <sys/types.h>
4977 #ifdef HAVE_SYS_PARAM_H
4978 # include <sys/param.h>
4979 #endif
4980 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
4981 # include <sys/mount.h>
4982 #else
4983 # ifdef STATFS_DEFINED_BY_SYS_VFS
4984 # include <sys/vfs.h>
4985 # else
4986 # ifdef STATFS_DEFINED_BY_SYS_STATFS
4987 # include <sys/statfs.h>
4988 # endif
4989 # endif
4990 #endif
4992 int main() {
4994 struct statfs stfs;
4996 stfs.f_bavail++;
4998 ; return 0; }
5000 if { (eval echo configure:5001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5001 rm -rf conftest*
5002 wine_cv_statfs_bavail=yes
5003 else
5004 echo "configure: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5006 rm -rf conftest*
5007 wine_cv_statfs_bavail=no
5010 rm -f conftest*
5014 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5015 if test "$wine_cv_statfs_bavail" = "yes"
5016 then
5017 cat >> confdefs.h <<\EOF
5018 #define STATFS_HAS_BAVAIL 1
5024 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
5025 echo "configure:5026: checking "for working sigaltstack"" >&5
5026 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5027 echo $ac_n "(cached) $ac_c" 1>&6
5028 else
5029 if test "$cross_compiling" = yes; then
5030 ac_cv_c_working_sigaltstack="no"
5032 else
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5037 #include <stdio.h>
5038 #include <time.h> /* <sys/time.h> ? bad magic without end */
5039 #include <sys/types.h>
5040 #include <sys/signal.h>
5041 #ifdef HAVE_SYS_PARAM_H
5042 # include <sys/param.h>
5043 #endif
5044 #ifdef HAVE_SYSCALL_H
5045 # include <syscall.h>
5046 #else
5047 # ifdef HAVE_SYS_SYSCALL_H
5048 # include <sys/syscall.h>
5049 # endif
5050 #endif
5052 unsigned char *xaltstack;
5055 main(int argc,char **argv) {
5056 struct sigaltstack ss;
5058 xaltstack = malloc(16384);
5059 ss.ss_sp = xaltstack;
5060 ss.ss_size = 16384;
5061 ss.ss_flags = 0;
5062 if (sigaltstack(&ss, NULL) < 0) {
5063 /* this catches the glibc case */
5064 perror("sigaltstack");
5065 return (1); /* aka exit(1) aka fail */
5067 /* assume it works. */
5068 return 0; /* OK */
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5073 then
5074 ac_cv_c_working_sigaltstack="yes"
5075 else
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5078 rm -fr conftest*
5079 ac_cv_c_working_sigaltstack="no"
5081 rm -fr conftest*
5086 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5088 if test "$ac_cv_c_working_sigaltstack" = "yes"
5089 then
5090 cat >> confdefs.h <<\EOF
5091 #define HAVE_WORKING_SIGALTSTACK 1
5098 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5099 echo "configure:5100: checking "for msg_accrights in struct msghdr"" >&5
5100 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5102 else
5103 cat > conftest.$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5106 #include <sys/types.h>
5107 #include <sys/socket.h>
5108 int main() {
5109 struct msghdr hdr; hdr.msg_accrights=0
5110 ; return 0; }
5112 if { (eval echo configure:5113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5113 rm -rf conftest*
5114 ac_cv_c_msg_accrights="yes"
5115 else
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5118 rm -rf conftest*
5119 ac_cv_c_msg_accrights="no"
5121 rm -f conftest*
5124 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5125 if test "$ac_cv_c_msg_accrights" = "yes"
5126 then
5127 cat >> confdefs.h <<\EOF
5128 #define HAVE_MSGHDR_ACCRIGHTS 1
5134 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
5135 echo "configure:5136: checking "whether we need to define __i386__"" >&5
5136 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5138 else
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5144 #endif
5146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5147 egrep "yes" >/dev/null 2>&1; then
5148 rm -rf conftest*
5149 ac_cv_cpp_def_i386="yes"
5150 else
5151 rm -rf conftest*
5152 ac_cv_cpp_def_i386="no"
5154 rm -f conftest*
5158 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5159 if test "$ac_cv_cpp_def_i386" = "yes"
5160 then
5161 CFLAGS="$CFLAGS -D__i386__"
5164 GCC_NO_BUILTIN=""
5165 if test "$GCC" = "yes"
5166 then
5167 GCC_NO_BUILTIN="-fno-builtin"
5172 MAKE_RULES=Make.rules
5175 trap '' 1 2 15
5176 cat > confcache <<\EOF
5177 # This file is a shell script that caches the results of configure
5178 # tests run on this system so they can be shared between configure
5179 # scripts and configure runs. It is not useful on other systems.
5180 # If it contains results you don't want to keep, you may remove or edit it.
5182 # By default, configure uses ./config.cache as the cache file,
5183 # creating it if it does not exist already. You can give configure
5184 # the --cache-file=FILE option to use a different cache file; that is
5185 # what configure does when it calls configure scripts in
5186 # subdirectories, so they share the cache.
5187 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5188 # config.status only pays attention to the cache file if you give it the
5189 # --recheck option to rerun configure.
5192 # The following way of writing the cache mishandles newlines in values,
5193 # but we know of no workaround that is simple, portable, and efficient.
5194 # So, don't put newlines in cache variables' values.
5195 # Ultrix sh set writes to stderr and can't be redirected directly,
5196 # and sets the high bit in the cache file unless we assign to the vars.
5197 (set) 2>&1 |
5198 case `(ac_space=' '; set) 2>&1` in
5199 *ac_space=\ *)
5200 # `set' does not quote correctly, so add quotes (double-quote substitution
5201 # turns \\\\ into \\, and sed turns \\ into \).
5202 sed -n \
5203 -e "s/'/'\\\\''/g" \
5204 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5207 # `set' quotes correctly as required by POSIX, so do not add quotes.
5208 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5210 esac >> confcache
5211 if cmp -s $cache_file confcache; then
5213 else
5214 if test -w $cache_file; then
5215 echo "updating cache $cache_file"
5216 cat confcache > $cache_file
5217 else
5218 echo "not updating unwritable cache $cache_file"
5221 rm -f confcache
5223 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5226 # Let make expand exec_prefix.
5227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5229 # Any assignment to VPATH causes Sun make to only execute
5230 # the first set of double-colon rules, so remove it if not needed.
5231 # If there is a colon in the path, we need to keep it.
5232 if test "x$srcdir" = x.; then
5233 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5236 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5238 DEFS=-DHAVE_CONFIG_H
5240 # Without the "./", some shells look in PATH for config.status.
5241 : ${CONFIG_STATUS=./config.status}
5243 echo creating $CONFIG_STATUS
5244 rm -f $CONFIG_STATUS
5245 cat > $CONFIG_STATUS <<EOF
5246 #! /bin/sh
5247 # Generated automatically by configure.
5248 # Run this file to recreate the current configuration.
5249 # This directory was configured as follows,
5250 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5252 # $0 $ac_configure_args
5254 # Compiler output produced by configure, useful for debugging
5255 # configure, is in ./config.log if it exists.
5257 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5258 for ac_option
5260 case "\$ac_option" in
5261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5262 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5263 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5264 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5265 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5266 exit 0 ;;
5267 -help | --help | --hel | --he | --h)
5268 echo "\$ac_cs_usage"; exit 0 ;;
5269 *) echo "\$ac_cs_usage"; exit 1 ;;
5270 esac
5271 done
5273 ac_given_srcdir=$srcdir
5274 ac_given_INSTALL="$INSTALL"
5276 trap 'rm -fr `echo "
5277 Make.rules
5278 Makefile
5279 console/Makefile
5280 controls/Makefile
5281 debugger/Makefile
5282 dlls/Makefile
5283 dlls/advapi32/Makefile
5284 dlls/avifil32/Makefile
5285 dlls/comctl32/Makefile
5286 dlls/commdlg/Makefile
5287 dlls/imagehlp/Makefile
5288 dlls/msacm/Makefile
5289 dlls/msacm32/Makefile
5290 dlls/ntdll/Makefile
5291 dlls/psapi/Makefile
5292 dlls/rasapi32/Makefile
5293 dlls/shell32/Makefile
5294 dlls/tapi32/Makefile
5295 dlls/ver/Makefile
5296 dlls/version/Makefile
5297 dlls/winaspi/Makefile
5298 dlls/winspool/Makefile
5299 dlls/wnaspi32/Makefile
5300 documentation/Makefile
5301 documentation/wine.man
5302 files/Makefile
5303 graphics/Makefile
5304 graphics/enhmetafiledrv/Makefile
5305 graphics/metafiledrv/Makefile
5306 graphics/psdrv/Makefile
5307 graphics/ttydrv/Makefile
5308 graphics/win16drv/Makefile
5309 graphics/x11drv/Makefile
5310 if1632/Makefile
5311 include/Makefile
5312 ipc/Makefile
5313 library/Makefile
5314 libtest/Makefile
5315 loader/Makefile
5316 loader/ne/Makefile
5317 loader/dos/Makefile
5318 memory/Makefile
5319 misc/Makefile
5320 miscemu/Makefile
5321 msdos/Makefile
5322 multimedia/Makefile
5323 objects/Makefile
5324 ole/Makefile
5325 programs/Makefile
5326 programs/clock/Makefile
5327 programs/cmdlgtst/Makefile
5328 programs/control/Makefile
5329 programs/avitools/Makefile
5330 programs/notepad/Makefile
5331 programs/progman/Makefile
5332 programs/regtest/Makefile
5333 programs/regapi/Makefile
5334 programs/view/Makefile
5335 programs/wcmd/Makefile
5336 programs/winhelp/Makefile
5337 programs/winver/Makefile
5338 rc/Makefile
5339 relay32/Makefile
5340 resources/Makefile
5341 scheduler/Makefile
5342 server/Makefile
5343 tools/Makefile
5344 tools/wrc/Makefile
5345 tsx11/Makefile
5346 win32/Makefile
5347 windows/Makefile
5348 windows/ttydrv/Makefile
5349 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5351 cat >> $CONFIG_STATUS <<EOF
5353 # Protect against being on the right side of a sed subst in config.status.
5354 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5355 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5356 $ac_vpsub
5357 $extrasub
5358 s%@CFLAGS@%$CFLAGS%g
5359 s%@CPPFLAGS@%$CPPFLAGS%g
5360 s%@CXXFLAGS@%$CXXFLAGS%g
5361 s%@DEFS@%$DEFS%g
5362 s%@LDFLAGS@%$LDFLAGS%g
5363 s%@LIBS@%$LIBS%g
5364 s%@exec_prefix@%$exec_prefix%g
5365 s%@prefix@%$prefix%g
5366 s%@program_transform_name@%$program_transform_name%g
5367 s%@bindir@%$bindir%g
5368 s%@sbindir@%$sbindir%g
5369 s%@libexecdir@%$libexecdir%g
5370 s%@datadir@%$datadir%g
5371 s%@sysconfdir@%$sysconfdir%g
5372 s%@sharedstatedir@%$sharedstatedir%g
5373 s%@localstatedir@%$localstatedir%g
5374 s%@libdir@%$libdir%g
5375 s%@includedir@%$includedir%g
5376 s%@oldincludedir@%$oldincludedir%g
5377 s%@infodir@%$infodir%g
5378 s%@mandir@%$mandir%g
5379 s%@PROGEXT@%$PROGEXT%g
5380 s%@MAIN_TARGET@%$MAIN_TARGET%g
5381 s%@LIB_TARGET@%$LIB_TARGET%g
5382 s%@ALT_LINK@%$ALT_LINK%g
5383 s%@OPTIONS@%$OPTIONS%g
5384 s%@SET_MAKE@%$SET_MAKE%g
5385 s%@CC@%$CC%g
5386 s%@CPP@%$CPP%g
5387 s%@X_CFLAGS@%$X_CFLAGS%g
5388 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5389 s%@X_LIBS@%$X_LIBS%g
5390 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5391 s%@YACC@%$YACC%g
5392 s%@LEX@%$LEX%g
5393 s%@LEXLIB@%$LEXLIB%g
5394 s%@RANLIB@%$RANLIB%g
5395 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5396 s%@INSTALL_DATA@%$INSTALL_DATA%g
5397 s%@LN_S@%$LN_S%g
5398 s%@C2MAN@%$C2MAN%g
5399 s%@LDCONFIG@%$LDCONFIG%g
5400 s%@XLIB@%$XLIB%g
5401 s%@DLLFLAGS@%$DLLFLAGS%g
5402 s%@LDSHARED@%$LDSHARED%g
5403 s%@ALLOCA@%$ALLOCA%g
5404 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
5405 /@MAKE_RULES@/r $MAKE_RULES
5406 s%@MAKE_RULES@%%g
5408 CEOF
5411 cat >> $CONFIG_STATUS <<\EOF
5413 # Split the substitutions into bite-sized pieces for seds with
5414 # small command number limits, like on Digital OSF/1 and HP-UX.
5415 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5416 ac_file=1 # Number of current file.
5417 ac_beg=1 # First line for current file.
5418 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5419 ac_more_lines=:
5420 ac_sed_cmds=""
5421 while $ac_more_lines; do
5422 if test $ac_beg -gt 1; then
5423 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5424 else
5425 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5427 if test ! -s conftest.s$ac_file; then
5428 ac_more_lines=false
5429 rm -f conftest.s$ac_file
5430 else
5431 if test -z "$ac_sed_cmds"; then
5432 ac_sed_cmds="sed -f conftest.s$ac_file"
5433 else
5434 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5436 ac_file=`expr $ac_file + 1`
5437 ac_beg=$ac_end
5438 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5440 done
5441 if test -z "$ac_sed_cmds"; then
5442 ac_sed_cmds=cat
5446 cat >> $CONFIG_STATUS <<EOF
5448 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
5449 Makefile
5450 console/Makefile
5451 controls/Makefile
5452 debugger/Makefile
5453 dlls/Makefile
5454 dlls/advapi32/Makefile
5455 dlls/avifil32/Makefile
5456 dlls/comctl32/Makefile
5457 dlls/commdlg/Makefile
5458 dlls/imagehlp/Makefile
5459 dlls/msacm/Makefile
5460 dlls/msacm32/Makefile
5461 dlls/ntdll/Makefile
5462 dlls/psapi/Makefile
5463 dlls/rasapi32/Makefile
5464 dlls/shell32/Makefile
5465 dlls/tapi32/Makefile
5466 dlls/ver/Makefile
5467 dlls/version/Makefile
5468 dlls/winaspi/Makefile
5469 dlls/winspool/Makefile
5470 dlls/wnaspi32/Makefile
5471 documentation/Makefile
5472 documentation/wine.man
5473 files/Makefile
5474 graphics/Makefile
5475 graphics/enhmetafiledrv/Makefile
5476 graphics/metafiledrv/Makefile
5477 graphics/psdrv/Makefile
5478 graphics/ttydrv/Makefile
5479 graphics/win16drv/Makefile
5480 graphics/x11drv/Makefile
5481 if1632/Makefile
5482 include/Makefile
5483 ipc/Makefile
5484 library/Makefile
5485 libtest/Makefile
5486 loader/Makefile
5487 loader/ne/Makefile
5488 loader/dos/Makefile
5489 memory/Makefile
5490 misc/Makefile
5491 miscemu/Makefile
5492 msdos/Makefile
5493 multimedia/Makefile
5494 objects/Makefile
5495 ole/Makefile
5496 programs/Makefile
5497 programs/clock/Makefile
5498 programs/cmdlgtst/Makefile
5499 programs/control/Makefile
5500 programs/avitools/Makefile
5501 programs/notepad/Makefile
5502 programs/progman/Makefile
5503 programs/regtest/Makefile
5504 programs/regapi/Makefile
5505 programs/view/Makefile
5506 programs/wcmd/Makefile
5507 programs/winhelp/Makefile
5508 programs/winver/Makefile
5509 rc/Makefile
5510 relay32/Makefile
5511 resources/Makefile
5512 scheduler/Makefile
5513 server/Makefile
5514 tools/Makefile
5515 tools/wrc/Makefile
5516 tsx11/Makefile
5517 win32/Makefile
5518 windows/Makefile
5519 windows/ttydrv/Makefile
5520 windows/x11drv/Makefile "}
5522 cat >> $CONFIG_STATUS <<\EOF
5523 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5525 case "$ac_file" in
5526 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5527 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5528 *) ac_file_in="${ac_file}.in" ;;
5529 esac
5531 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5533 # Remove last slash and all that follows it. Not all systems have dirname.
5534 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5535 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5536 # The file is in a subdirectory.
5537 test ! -d "$ac_dir" && mkdir "$ac_dir"
5538 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5539 # A "../" for each directory in $ac_dir_suffix.
5540 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5541 else
5542 ac_dir_suffix= ac_dots=
5545 case "$ac_given_srcdir" in
5546 .) srcdir=.
5547 if test -z "$ac_dots"; then top_srcdir=.
5548 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5549 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5550 *) # Relative path.
5551 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5552 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5553 esac
5555 case "$ac_given_INSTALL" in
5556 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5557 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5558 esac
5560 echo creating "$ac_file"
5561 rm -f "$ac_file"
5562 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5563 case "$ac_file" in
5564 *Makefile*) ac_comsub="1i\\
5565 # $configure_input" ;;
5566 *) ac_comsub= ;;
5567 esac
5569 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5570 sed -e "$ac_comsub
5571 s%@configure_input@%$configure_input%g
5572 s%@srcdir@%$srcdir%g
5573 s%@top_srcdir@%$top_srcdir%g
5574 s%@INSTALL@%$INSTALL%g
5575 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5576 fi; done
5577 rm -f conftest.s*
5579 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5580 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5582 # ac_d sets the value in "#define NAME VALUE" lines.
5583 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5584 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5585 ac_dC='\3'
5586 ac_dD='%g'
5587 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5588 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5589 ac_uB='\([ ]\)%\1#\2define\3'
5590 ac_uC=' '
5591 ac_uD='\4%g'
5592 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5593 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5594 ac_eB='$%\1#\2define\3'
5595 ac_eC=' '
5596 ac_eD='%g'
5598 if test "${CONFIG_HEADERS+set}" != set; then
5600 cat >> $CONFIG_STATUS <<EOF
5601 CONFIG_HEADERS="include/config.h"
5603 cat >> $CONFIG_STATUS <<\EOF
5605 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5607 case "$ac_file" in
5608 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5609 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5610 *) ac_file_in="${ac_file}.in" ;;
5611 esac
5613 echo creating $ac_file
5615 rm -f conftest.frag conftest.in conftest.out
5616 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5617 cat $ac_file_inputs > conftest.in
5621 # Transform confdefs.h into a sed script conftest.vals that substitutes
5622 # the proper values into config.h.in to produce config.h. And first:
5623 # Protect against being on the right side of a sed subst in config.status.
5624 # Protect against being in an unquoted here document in config.status.
5625 rm -f conftest.vals
5626 cat > conftest.hdr <<\EOF
5627 s/[\\&%]/\\&/g
5628 s%[\\$`]%\\&%g
5629 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5630 s%ac_d%ac_u%gp
5631 s%ac_u%ac_e%gp
5633 sed -n -f conftest.hdr confdefs.h > conftest.vals
5634 rm -f conftest.hdr
5636 # This sed command replaces #undef with comments. This is necessary, for
5637 # example, in the case of _POSIX_SOURCE, which is predefined and required
5638 # on some systems where configure will not decide to define it.
5639 cat >> conftest.vals <<\EOF
5640 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5643 # Break up conftest.vals because some shells have a limit on
5644 # the size of here documents, and old seds have small limits too.
5646 rm -f conftest.tail
5647 while :
5649 ac_lines=`grep -c . conftest.vals`
5650 # grep -c gives empty output for an empty file on some AIX systems.
5651 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5652 # Write a limited-size here document to conftest.frag.
5653 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5654 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5655 echo 'CEOF
5656 sed -f conftest.frag conftest.in > conftest.out
5657 rm -f conftest.in
5658 mv conftest.out conftest.in
5659 ' >> $CONFIG_STATUS
5660 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5661 rm -f conftest.vals
5662 mv conftest.tail conftest.vals
5663 done
5664 rm -f conftest.vals
5666 cat >> $CONFIG_STATUS <<\EOF
5667 rm -f conftest.frag conftest.h
5668 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5669 cat conftest.in >> conftest.h
5670 rm -f conftest.in
5671 if cmp -s $ac_file conftest.h 2>/dev/null; then
5672 echo "$ac_file is unchanged"
5673 rm -f conftest.h
5674 else
5675 # Remove last slash and all that follows it. Not all systems have dirname.
5676 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5677 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5678 # The file is in a subdirectory.
5679 test ! -d "$ac_dir" && mkdir "$ac_dir"
5681 rm -f $ac_file
5682 mv conftest.h $ac_file
5684 fi; done
5687 cat >> $CONFIG_STATUS <<EOF
5690 cat >> $CONFIG_STATUS <<\EOF
5692 exit 0
5694 chmod +x $CONFIG_STATUS
5695 rm -fr confdefs* $ac_clean_files
5696 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5699 if test "$have_x" = "no"
5700 then
5701 echo
5702 echo "*** Warning: X development files not found. Wine will be built without"
5703 echo "*** X support, which currently does not work, and would probably not be"
5704 echo "*** what you want anyway. You will need to install devel packages of"
5705 echo "*** Xlib/Xfree86 and Xpm at the very least."
5706 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
5707 then
5708 echo
5709 echo "*** Warning: Xpm development files not found. Wine will be built without"
5710 echo "*** Xpm support, which currently does not work. You will need to install"
5711 echo "*** devel packages of Xpm."
5714 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
5715 then
5716 echo
5717 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
5718 echo "*** terminal resize support. Consider upgrading ncurses."
5721 if test "$wine_cv_libc_reentrant" = "no"
5722 then
5723 echo
5724 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
5725 echo "*** thread support. Consider upgrading libc to a more recent"
5726 echo "*** reentrant version of libc."
5729 if test "$wine_cv_mesa_version_OK" = "no"
5730 then
5731 echo
5732 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5733 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
5736 echo
5737 echo "Configure finished. Do 'make depend && make' to compile Wine."
5738 echo