Fixed race between Win16 parent and child for first rescheduling
[wine/multimedia.git] / configure
blob2b527460dd8de546d1e513f03c6d9d04b4946420
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.13
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 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
69 ac_max_here_lines=12
71 ac_prev=
72 for ac_option
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
78 ac_prev=
79 continue
82 case "$ac_option" in
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 *) ac_optarg= ;;
85 esac
87 # Accept the important Cygnus configure options, so we can diagnose typos.
89 case "$ac_option" in
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 ac_prev=bindir ;;
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
97 ac_prev=build ;;
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 build="$ac_optarg" ;;
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 ac_prev=datadir ;;
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 | --da=*)
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 case "$ac_option" in
131 *=*) ;;
132 *) ac_optarg=yes ;;
133 esac
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
147 with_gas=yes ;;
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
152 cat << EOF
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
155 Configuration:
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
163 [$ac_default_prefix]
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 [same as prefix]
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
170 [PREFIX/share]
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
186 cat << EOF
187 Host type:
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
202 exit 0 ;;
204 -host | --host | --hos | --ho)
205 ac_prev=host ;;
206 -host=* | --host=* | --hos=* | --ho=*)
207 host="$ac_optarg" ;;
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 ac_prev=infodir ;;
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
222 ac_prev=libdir ;;
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 ac_prev=mandir ;;
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
247 -nfp | --nfp | --nf)
248 # Obsolete; use --without-fp.
249 with_fp=no ;;
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 | --no-cr | --no-c)
253 no_create=yes ;;
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 no_recursion=yes ;;
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 ac_prev=prefix ;;
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
306 silent=yes ;;
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 ac_prev=sbindir ;;
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 | --sbi=* | --sb=*)
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
317 | --sha | --sh)
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 | --sha=* | --sh=*)
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
326 ac_prev=site ;;
327 -site=* | --site=* | --sit=*)
328 site="$ac_optarg" ;;
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 ac_prev=srcdir ;;
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
343 ac_prev=target ;;
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 verbose=yes ;;
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
352 exit 0 ;;
354 -with-* | --with-*)
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 case "$ac_option" in
362 *=*) ;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
376 --x)
377 # Obsolete; use --with-x.
378 with_x=yes ;;
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 nonopt="$ac_option"
407 esac
408 done
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
417 # 0 standard input
418 # 1 file creation
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
425 exec 6>/dev/null
426 else
427 exec 6>&1
429 exec 5>./config.log
431 echo "\
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
434 " 1>&5
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
438 ac_configure_args=
439 for ac_arg
441 case "$ac_arg" in
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 esac
450 done
452 # NLS nuisances.
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 echo > confdefs.h
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=controls/edit.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
475 ac_prog=$0
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 srcdir=$ac_confdir
479 if test ! -r $srcdir/$ac_unique_file; then
480 srcdir=..
482 else
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 else
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 else
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
505 . "$ac_site_file"
507 done
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
511 . $cache_file
512 else
513 echo "creating cache $cache_file"
514 > $cache_file
517 ac_ext=c
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
524 ac_exeext=
525 ac_objext=o
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='
530 ' ac_t=' '
531 else
532 ac_n=-n ac_c= ac_t=
534 else
535 ac_n= ac_c='\c' ac_t=
540 ac_aux_dir=
541 for ac_dir in tools $srcdir/tools; do
542 if test -f $ac_dir/install-sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install-sh -c"
545 break
546 elif test -f $ac_dir/install.sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install.sh -c"
549 break
551 done
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560 # We want these before the checks, so the checks can modify their values.
562 test -z "$PROGEXT" && PROGEXT=""
565 MAIN_TARGET=emu
566 LIB_TARGET=libwine.a
567 ALT_LINK="-Wl,--whole-archive -L\$(TOPOBJDIR) -lwine -Wl,--no-whole-archive"
568 TRACE_MSGS=yes # the TRACE() macro
569 DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
571 # Check whether --enable-emulator or --disable-emulator was given.
572 if test "${enable_emulator+set}" = set; then
573 enableval="$enable_emulator"
574 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
578 # Check whether --enable-dll or --disable-dll was given.
579 if test "${enable_dll+set}" = set; then
580 enableval="$enable_dll"
581 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
585 # Check whether --enable-lib or --disable-lib was given.
586 if test "${enable_lib+set}" = set; then
587 enableval="$enable_lib"
588 if test "$enableval" = "no"; then ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET=""; fi
592 # Check whether --enable-debug or --disable-debug was given.
593 if test "${enable_debug+set}" = set; then
594 enableval="$enable_debug"
595 if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi
599 # Check whether --enable-trace or --disable-trace was given.
600 if test "${enable_trace+set}" = set; then
601 enableval="$enable_trace"
602 if test "$enableval" = "no"; then TRACE_MSGS="no"; fi
606 # Check whether --with-reentrant-x or --without-reentrant-x was given.
607 if test "${with_reentrant_x+set}" = set; then
608 withval="$with_reentrant_x"
618 if test "$DEBUG_MSGS" = "no"
619 then
620 cat >> confdefs.h <<\EOF
621 #define NO_DEBUG_MSGS 1
624 cat >> confdefs.h <<\EOF
625 #define NO_TRACE_MSGS 1
628 else
629 if test "$TRACE_MSGS" = "no"
630 then
631 cat >> confdefs.h <<\EOF
632 #define NO_TRACE_MSGS 1
639 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
640 echo "configure:641: checking whether ${MAKE-make} sets \${MAKE}" >&5
641 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
642 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
644 else
645 cat > conftestmake <<\EOF
646 all:
647 @echo 'ac_maketemp="${MAKE}"'
649 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
650 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
651 if test -n "$ac_maketemp"; then
652 eval ac_cv_prog_make_${ac_make}_set=yes
653 else
654 eval ac_cv_prog_make_${ac_make}_set=no
656 rm -f conftestmake
658 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
659 echo "$ac_t""yes" 1>&6
660 SET_MAKE=
661 else
662 echo "$ac_t""no" 1>&6
663 SET_MAKE="MAKE=${MAKE-make}"
666 # Extract the first word of "gcc", so it can be a program name with args.
667 set dummy gcc; ac_word=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672 else
673 if test -n "$CC"; then
674 ac_cv_prog_CC="$CC" # Let the user override the test.
675 else
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 ac_dummy="$PATH"
678 for ac_dir in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir=.
680 if test -f $ac_dir/$ac_word; then
681 ac_cv_prog_CC="gcc"
682 break
684 done
685 IFS="$ac_save_ifs"
688 CC="$ac_cv_prog_CC"
689 if test -n "$CC"; then
690 echo "$ac_t""$CC" 1>&6
691 else
692 echo "$ac_t""no" 1>&6
695 if test -z "$CC"; then
696 # Extract the first word of "cc", so it can be a program name with args.
697 set dummy cc; ac_word=$2
698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
699 echo "configure:700: checking for $ac_word" >&5
700 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
702 else
703 if test -n "$CC"; then
704 ac_cv_prog_CC="$CC" # Let the user override the test.
705 else
706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
707 ac_prog_rejected=no
708 ac_dummy="$PATH"
709 for ac_dir in $ac_dummy; do
710 test -z "$ac_dir" && ac_dir=.
711 if test -f $ac_dir/$ac_word; then
712 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
713 ac_prog_rejected=yes
714 continue
716 ac_cv_prog_CC="cc"
717 break
719 done
720 IFS="$ac_save_ifs"
721 if test $ac_prog_rejected = yes; then
722 # We found a bogon in the path, so make sure we never use it.
723 set dummy $ac_cv_prog_CC
724 shift
725 if test $# -gt 0; then
726 # We chose a different compiler from the bogus one.
727 # However, it has the same basename, so the bogon will be chosen
728 # first if we set CC to just the basename; use the full file name.
729 shift
730 set dummy "$ac_dir/$ac_word" "$@"
731 shift
732 ac_cv_prog_CC="$@"
737 CC="$ac_cv_prog_CC"
738 if test -n "$CC"; then
739 echo "$ac_t""$CC" 1>&6
740 else
741 echo "$ac_t""no" 1>&6
744 if test -z "$CC"; then
745 case "`uname -s`" in
746 *win32* | *WIN32*)
747 # Extract the first word of "cl", so it can be a program name with args.
748 set dummy cl; ac_word=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 if test -n "$CC"; then
755 ac_cv_prog_CC="$CC" # Let the user override the test.
756 else
757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
758 ac_dummy="$PATH"
759 for ac_dir in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir=.
761 if test -f $ac_dir/$ac_word; then
762 ac_cv_prog_CC="cl"
763 break
765 done
766 IFS="$ac_save_ifs"
769 CC="$ac_cv_prog_CC"
770 if test -n "$CC"; then
771 echo "$ac_t""$CC" 1>&6
772 else
773 echo "$ac_t""no" 1>&6
776 esac
778 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
784 ac_ext=c
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
791 cat > conftest.$ac_ext << EOF
793 #line 794 "configure"
794 #include "confdefs.h"
796 main(){return(0);}
798 if { (eval echo configure:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
799 ac_cv_prog_cc_works=yes
800 # If we can't run a trivial program, we are probably using a cross compiler.
801 if (./conftest; exit) 2>/dev/null; then
802 ac_cv_prog_cc_cross=no
803 else
804 ac_cv_prog_cc_cross=yes
806 else
807 echo "configure: failed program was:" >&5
808 cat conftest.$ac_ext >&5
809 ac_cv_prog_cc_works=no
811 rm -fr conftest*
812 ac_ext=c
813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
814 ac_cpp='$CPP $CPPFLAGS'
815 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
816 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
817 cross_compiling=$ac_cv_prog_cc_cross
819 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
820 if test $ac_cv_prog_cc_works = no; then
821 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
823 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
824 echo "configure:825: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
825 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
826 cross_compiling=$ac_cv_prog_cc_cross
828 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
829 echo "configure:830: checking whether we are using GNU C" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
832 else
833 cat > conftest.c <<EOF
834 #ifdef __GNUC__
835 yes;
836 #endif
838 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
839 ac_cv_prog_gcc=yes
840 else
841 ac_cv_prog_gcc=no
845 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
847 if test $ac_cv_prog_gcc = yes; then
848 GCC=yes
849 else
850 GCC=
853 ac_test_CFLAGS="${CFLAGS+set}"
854 ac_save_CFLAGS="$CFLAGS"
855 CFLAGS=
856 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
857 echo "configure:858: checking whether ${CC-cc} accepts -g" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
860 else
861 echo 'void f(){}' > conftest.c
862 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
863 ac_cv_prog_cc_g=yes
864 else
865 ac_cv_prog_cc_g=no
867 rm -f conftest*
871 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
872 if test "$ac_test_CFLAGS" = set; then
873 CFLAGS="$ac_save_CFLAGS"
874 elif test $ac_cv_prog_cc_g = yes; then
875 if test "$GCC" = yes; then
876 CFLAGS="-g -O2"
877 else
878 CFLAGS="-g"
880 else
881 if test "$GCC" = yes; then
882 CFLAGS="-O2"
883 else
884 CFLAGS=
888 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
889 echo "configure:890: checking how to run the C preprocessor" >&5
890 # On Suns, sometimes $CPP names a directory.
891 if test -n "$CPP" && test -d "$CPP"; then
892 CPP=
894 if test -z "$CPP"; then
895 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
897 else
898 # This must be in double quotes, not single quotes, because CPP may get
899 # substituted into the Makefile and "${CC-cc}" will confuse make.
900 CPP="${CC-cc} -E"
901 # On the NeXT, cc -E runs the code through the compiler's parser,
902 # not just through cpp.
903 cat > conftest.$ac_ext <<EOF
904 #line 905 "configure"
905 #include "confdefs.h"
906 #include <assert.h>
907 Syntax Error
909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
910 { (eval echo configure:911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
912 if test -z "$ac_err"; then
914 else
915 echo "$ac_err" >&5
916 echo "configure: failed program was:" >&5
917 cat conftest.$ac_ext >&5
918 rm -rf conftest*
919 CPP="${CC-cc} -E -traditional-cpp"
920 cat > conftest.$ac_ext <<EOF
921 #line 922 "configure"
922 #include "confdefs.h"
923 #include <assert.h>
924 Syntax Error
926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
927 { (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
929 if test -z "$ac_err"; then
931 else
932 echo "$ac_err" >&5
933 echo "configure: failed program was:" >&5
934 cat conftest.$ac_ext >&5
935 rm -rf conftest*
936 CPP="${CC-cc} -nologo -E"
937 cat > conftest.$ac_ext <<EOF
938 #line 939 "configure"
939 #include "confdefs.h"
940 #include <assert.h>
941 Syntax Error
943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
944 { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
946 if test -z "$ac_err"; then
948 else
949 echo "$ac_err" >&5
950 echo "configure: failed program was:" >&5
951 cat conftest.$ac_ext >&5
952 rm -rf conftest*
953 CPP=/lib/cpp
955 rm -f conftest*
957 rm -f conftest*
959 rm -f conftest*
960 ac_cv_prog_CPP="$CPP"
962 CPP="$ac_cv_prog_CPP"
963 else
964 ac_cv_prog_CPP="$CPP"
966 echo "$ac_t""$CPP" 1>&6
968 # If we find X, set shell vars x_includes and x_libraries to the
969 # paths, otherwise set no_x=yes.
970 # Uses ac_ vars as temps to allow command line to override cache and checks.
971 # --without-x overrides everything else, but does not touch the cache.
972 echo $ac_n "checking for X""... $ac_c" 1>&6
973 echo "configure:974: checking for X" >&5
975 # Check whether --with-x or --without-x was given.
976 if test "${with_x+set}" = set; then
977 withval="$with_x"
981 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
982 if test "x$with_x" = xno; then
983 # The user explicitly disabled X.
984 have_x=disabled
985 else
986 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
987 # Both variables are already set.
988 have_x=yes
989 else
990 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
992 else
993 # One or both of the vars are not set, and there is no cached value.
994 ac_x_includes=NO ac_x_libraries=NO
995 rm -fr conftestdir
996 if mkdir conftestdir; then
997 cd conftestdir
998 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
999 cat > Imakefile <<'EOF'
1000 acfindx:
1001 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1003 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1005 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1006 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1007 for ac_extension in a so sl; do
1008 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1009 test -f $ac_im_libdir/libX11.$ac_extension; then
1010 ac_im_usrlibdir=$ac_im_libdir; break
1012 done
1013 # Screen out bogus values from the imake configuration. They are
1014 # bogus both because they are the default anyway, and because
1015 # using them would break gcc on systems where it needs fixed includes.
1016 case "$ac_im_incroot" in
1017 /usr/include) ;;
1018 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1019 esac
1020 case "$ac_im_usrlibdir" in
1021 /usr/lib | /lib) ;;
1022 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1023 esac
1025 cd ..
1026 rm -fr conftestdir
1029 if test "$ac_x_includes" = NO; then
1030 # Guess where to find include files, by looking for this one X11 .h file.
1031 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1033 # First, try using that file with no special directory specified.
1034 cat > conftest.$ac_ext <<EOF
1035 #line 1036 "configure"
1036 #include "confdefs.h"
1037 #include <$x_direct_test_include>
1039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1040 { (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1042 if test -z "$ac_err"; then
1043 rm -rf conftest*
1044 # We can compile using X headers with no special include directory.
1045 ac_x_includes=
1046 else
1047 echo "$ac_err" >&5
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1050 rm -rf conftest*
1051 # Look for the header file in a standard set of common directories.
1052 # Check X11 before X11Rn because it is often a symlink to the current release.
1053 for ac_dir in \
1054 /usr/X11/include \
1055 /usr/X11R6/include \
1056 /usr/X11R5/include \
1057 /usr/X11R4/include \
1059 /usr/include/X11 \
1060 /usr/include/X11R6 \
1061 /usr/include/X11R5 \
1062 /usr/include/X11R4 \
1064 /usr/local/X11/include \
1065 /usr/local/X11R6/include \
1066 /usr/local/X11R5/include \
1067 /usr/local/X11R4/include \
1069 /usr/local/include/X11 \
1070 /usr/local/include/X11R6 \
1071 /usr/local/include/X11R5 \
1072 /usr/local/include/X11R4 \
1074 /usr/X386/include \
1075 /usr/x386/include \
1076 /usr/XFree86/include/X11 \
1078 /usr/include \
1079 /usr/local/include \
1080 /usr/unsupported/include \
1081 /usr/athena/include \
1082 /usr/local/x11r5/include \
1083 /usr/lpp/Xamples/include \
1085 /usr/openwin/include \
1086 /usr/openwin/share/include \
1089 if test -r "$ac_dir/$x_direct_test_include"; then
1090 ac_x_includes=$ac_dir
1091 break
1093 done
1095 rm -f conftest*
1096 fi # $ac_x_includes = NO
1098 if test "$ac_x_libraries" = NO; then
1099 # Check for the libraries.
1101 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1102 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1104 # See if we find them without any special options.
1105 # Don't add to $LIBS permanently.
1106 ac_save_LIBS="$LIBS"
1107 LIBS="-l$x_direct_test_library $LIBS"
1108 cat > conftest.$ac_ext <<EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1112 int main() {
1113 ${x_direct_test_function}()
1114 ; return 0; }
1116 if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1117 rm -rf conftest*
1118 LIBS="$ac_save_LIBS"
1119 # We can link X programs with no special library path.
1120 ac_x_libraries=
1121 else
1122 echo "configure: failed program was:" >&5
1123 cat conftest.$ac_ext >&5
1124 rm -rf conftest*
1125 LIBS="$ac_save_LIBS"
1126 # First see if replacing the include by lib works.
1127 # Check X11 before X11Rn because it is often a symlink to the current release.
1128 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1129 /usr/X11/lib \
1130 /usr/X11R6/lib \
1131 /usr/X11R5/lib \
1132 /usr/X11R4/lib \
1134 /usr/lib/X11 \
1135 /usr/lib/X11R6 \
1136 /usr/lib/X11R5 \
1137 /usr/lib/X11R4 \
1139 /usr/local/X11/lib \
1140 /usr/local/X11R6/lib \
1141 /usr/local/X11R5/lib \
1142 /usr/local/X11R4/lib \
1144 /usr/local/lib/X11 \
1145 /usr/local/lib/X11R6 \
1146 /usr/local/lib/X11R5 \
1147 /usr/local/lib/X11R4 \
1149 /usr/X386/lib \
1150 /usr/x386/lib \
1151 /usr/XFree86/lib/X11 \
1153 /usr/lib \
1154 /usr/local/lib \
1155 /usr/unsupported/lib \
1156 /usr/athena/lib \
1157 /usr/local/x11r5/lib \
1158 /usr/lpp/Xamples/lib \
1159 /lib/usr/lib/X11 \
1161 /usr/openwin/lib \
1162 /usr/openwin/share/lib \
1165 for ac_extension in a so sl; do
1166 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1167 ac_x_libraries=$ac_dir
1168 break 2
1170 done
1171 done
1173 rm -f conftest*
1174 fi # $ac_x_libraries = NO
1176 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1177 # Didn't find X anywhere. Cache the known absence of X.
1178 ac_cv_have_x="have_x=no"
1179 else
1180 # Record where we found X for the cache.
1181 ac_cv_have_x="have_x=yes \
1182 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1186 eval "$ac_cv_have_x"
1187 fi # $with_x != no
1189 if test "$have_x" != yes; then
1190 echo "$ac_t""$have_x" 1>&6
1191 no_x=yes
1192 else
1193 # If each of the values was on the command line, it overrides each guess.
1194 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1195 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1196 # Update the cache value to reflect the command line values.
1197 ac_cv_have_x="have_x=yes \
1198 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1199 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1202 if test "$no_x" = yes; then
1203 # Not all programs may use this symbol, but it does not hurt to define it.
1204 cat >> confdefs.h <<\EOF
1205 #define X_DISPLAY_MISSING 1
1208 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1209 else
1210 if test -n "$x_includes"; then
1211 X_CFLAGS="$X_CFLAGS -I$x_includes"
1214 # It would also be nice to do this for all -L options, not just this one.
1215 if test -n "$x_libraries"; then
1216 X_LIBS="$X_LIBS -L$x_libraries"
1217 # For Solaris; some versions of Sun CC require a space after -R and
1218 # others require no space. Words are not sufficient . . . .
1219 case "`(uname -sr) 2>/dev/null`" in
1220 "SunOS 5"*)
1221 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether -R must be followed by a space" >&5
1223 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1224 cat > conftest.$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1228 int main() {
1230 ; return 0; }
1232 if { (eval echo configure:1233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1233 rm -rf conftest*
1234 ac_R_nospace=yes
1235 else
1236 echo "configure: failed program was:" >&5
1237 cat conftest.$ac_ext >&5
1238 rm -rf conftest*
1239 ac_R_nospace=no
1241 rm -f conftest*
1242 if test $ac_R_nospace = yes; then
1243 echo "$ac_t""no" 1>&6
1244 X_LIBS="$X_LIBS -R$x_libraries"
1245 else
1246 LIBS="$ac_xsave_LIBS -R $x_libraries"
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1251 int main() {
1253 ; return 0; }
1255 if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1256 rm -rf conftest*
1257 ac_R_space=yes
1258 else
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
1261 rm -rf conftest*
1262 ac_R_space=no
1264 rm -f conftest*
1265 if test $ac_R_space = yes; then
1266 echo "$ac_t""yes" 1>&6
1267 X_LIBS="$X_LIBS -R $x_libraries"
1268 else
1269 echo "$ac_t""neither works" 1>&6
1272 LIBS="$ac_xsave_LIBS"
1273 esac
1276 # Check for system-dependent libraries X programs must link with.
1277 # Do this before checking for the system-independent R6 libraries
1278 # (-lICE), since we may need -lsocket or whatever for X linking.
1280 if test "$ISC" = yes; then
1281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1282 else
1283 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1284 # libraries were built with DECnet support. And karl@cs.umb.edu says
1285 # the Alpha needs dnet_stub (dnet does not exist).
1286 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1287 echo "configure:1288: checking for dnet_ntoa in -ldnet" >&5
1288 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1291 else
1292 ac_save_LIBS="$LIBS"
1293 LIBS="-ldnet $LIBS"
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1297 /* Override any gcc2 internal prototype to avoid an error. */
1298 /* We use char because int might match the return type of a gcc2
1299 builtin and then its argument prototype would still apply. */
1300 char dnet_ntoa();
1302 int main() {
1303 dnet_ntoa()
1304 ; return 0; }
1306 if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1307 rm -rf conftest*
1308 eval "ac_cv_lib_$ac_lib_var=yes"
1309 else
1310 echo "configure: failed program was:" >&5
1311 cat conftest.$ac_ext >&5
1312 rm -rf conftest*
1313 eval "ac_cv_lib_$ac_lib_var=no"
1315 rm -f conftest*
1316 LIBS="$ac_save_LIBS"
1319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1320 echo "$ac_t""yes" 1>&6
1321 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1322 else
1323 echo "$ac_t""no" 1>&6
1326 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1327 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1328 echo "configure:1329: checking for dnet_ntoa in -ldnet_stub" >&5
1329 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 ac_save_LIBS="$LIBS"
1334 LIBS="-ldnet_stub $LIBS"
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1338 /* Override any gcc2 internal prototype to avoid an error. */
1339 /* We use char because int might match the return type of a gcc2
1340 builtin and then its argument prototype would still apply. */
1341 char dnet_ntoa();
1343 int main() {
1344 dnet_ntoa()
1345 ; return 0; }
1347 if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1348 rm -rf conftest*
1349 eval "ac_cv_lib_$ac_lib_var=yes"
1350 else
1351 echo "configure: failed program was:" >&5
1352 cat conftest.$ac_ext >&5
1353 rm -rf conftest*
1354 eval "ac_cv_lib_$ac_lib_var=no"
1356 rm -f conftest*
1357 LIBS="$ac_save_LIBS"
1360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1361 echo "$ac_t""yes" 1>&6
1362 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1363 else
1364 echo "$ac_t""no" 1>&6
1369 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1370 # to get the SysV transport functions.
1371 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1372 # needs -lnsl.
1373 # The nsl library prevents programs from opening the X display
1374 # on Irix 5.2, according to dickey@clark.net.
1375 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1376 echo "configure:1377: checking for gethostbyname" >&5
1377 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380 cat > conftest.$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1383 /* System header to define __stub macros and hopefully few prototypes,
1384 which can conflict with char gethostbyname(); below. */
1385 #include <assert.h>
1386 /* Override any gcc2 internal prototype to avoid an error. */
1387 /* We use char because int might match the return type of a gcc2
1388 builtin and then its argument prototype would still apply. */
1389 char gethostbyname();
1391 int main() {
1393 /* The GNU C library defines this for functions which it implements
1394 to always fail with ENOSYS. Some functions are actually named
1395 something starting with __ and the normal name is an alias. */
1396 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1397 choke me
1398 #else
1399 gethostbyname();
1400 #endif
1402 ; return 0; }
1404 if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1405 rm -rf conftest*
1406 eval "ac_cv_func_gethostbyname=yes"
1407 else
1408 echo "configure: failed program was:" >&5
1409 cat conftest.$ac_ext >&5
1410 rm -rf conftest*
1411 eval "ac_cv_func_gethostbyname=no"
1413 rm -f conftest*
1416 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1417 echo "$ac_t""yes" 1>&6
1419 else
1420 echo "$ac_t""no" 1>&6
1423 if test $ac_cv_func_gethostbyname = no; then
1424 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1425 echo "configure:1426: checking for gethostbyname in -lnsl" >&5
1426 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1429 else
1430 ac_save_LIBS="$LIBS"
1431 LIBS="-lnsl $LIBS"
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 /* Override any gcc2 internal prototype to avoid an error. */
1436 /* We use char because int might match the return type of a gcc2
1437 builtin and then its argument prototype would still apply. */
1438 char gethostbyname();
1440 int main() {
1441 gethostbyname()
1442 ; return 0; }
1444 if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1445 rm -rf conftest*
1446 eval "ac_cv_lib_$ac_lib_var=yes"
1447 else
1448 echo "configure: failed program was:" >&5
1449 cat conftest.$ac_ext >&5
1450 rm -rf conftest*
1451 eval "ac_cv_lib_$ac_lib_var=no"
1453 rm -f conftest*
1454 LIBS="$ac_save_LIBS"
1457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1460 else
1461 echo "$ac_t""no" 1>&6
1466 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1467 # socket/setsockopt and other routines are undefined under SCO ODT
1468 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1469 # on later versions), says simon@lia.di.epfl.ch: it contains
1470 # gethostby* variants that don't use the nameserver (or something).
1471 # -lsocket must be given before -lnsl if both are needed.
1472 # We assume that if connect needs -lnsl, so does gethostbyname.
1473 echo $ac_n "checking for connect""... $ac_c" 1>&6
1474 echo "configure:1475: checking for connect" >&5
1475 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1477 else
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 /* System header to define __stub macros and hopefully few prototypes,
1482 which can conflict with char connect(); below. */
1483 #include <assert.h>
1484 /* Override any gcc2 internal prototype to avoid an error. */
1485 /* We use char because int might match the return type of a gcc2
1486 builtin and then its argument prototype would still apply. */
1487 char connect();
1489 int main() {
1491 /* The GNU C library defines this for functions which it implements
1492 to always fail with ENOSYS. Some functions are actually named
1493 something starting with __ and the normal name is an alias. */
1494 #if defined (__stub_connect) || defined (__stub___connect)
1495 choke me
1496 #else
1497 connect();
1498 #endif
1500 ; return 0; }
1502 if { (eval echo configure:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1503 rm -rf conftest*
1504 eval "ac_cv_func_connect=yes"
1505 else
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1508 rm -rf conftest*
1509 eval "ac_cv_func_connect=no"
1511 rm -f conftest*
1514 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1515 echo "$ac_t""yes" 1>&6
1517 else
1518 echo "$ac_t""no" 1>&6
1521 if test $ac_cv_func_connect = no; then
1522 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1523 echo "configure:1524: checking for connect in -lsocket" >&5
1524 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1527 else
1528 ac_save_LIBS="$LIBS"
1529 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1533 /* Override any gcc2 internal prototype to avoid an error. */
1534 /* We use char because int might match the return type of a gcc2
1535 builtin and then its argument prototype would still apply. */
1536 char connect();
1538 int main() {
1539 connect()
1540 ; return 0; }
1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1543 rm -rf conftest*
1544 eval "ac_cv_lib_$ac_lib_var=yes"
1545 else
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1548 rm -rf conftest*
1549 eval "ac_cv_lib_$ac_lib_var=no"
1551 rm -f conftest*
1552 LIBS="$ac_save_LIBS"
1555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1556 echo "$ac_t""yes" 1>&6
1557 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1558 else
1559 echo "$ac_t""no" 1>&6
1564 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1565 echo $ac_n "checking for remove""... $ac_c" 1>&6
1566 echo "configure:1567: checking for remove" >&5
1567 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1569 else
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 /* System header to define __stub macros and hopefully few prototypes,
1574 which can conflict with char remove(); below. */
1575 #include <assert.h>
1576 /* Override any gcc2 internal prototype to avoid an error. */
1577 /* We use char because int might match the return type of a gcc2
1578 builtin and then its argument prototype would still apply. */
1579 char remove();
1581 int main() {
1583 /* The GNU C library defines this for functions which it implements
1584 to always fail with ENOSYS. Some functions are actually named
1585 something starting with __ and the normal name is an alias. */
1586 #if defined (__stub_remove) || defined (__stub___remove)
1587 choke me
1588 #else
1589 remove();
1590 #endif
1592 ; return 0; }
1594 if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1595 rm -rf conftest*
1596 eval "ac_cv_func_remove=yes"
1597 else
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1600 rm -rf conftest*
1601 eval "ac_cv_func_remove=no"
1603 rm -f conftest*
1606 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1609 else
1610 echo "$ac_t""no" 1>&6
1613 if test $ac_cv_func_remove = no; then
1614 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1615 echo "configure:1616: checking for remove in -lposix" >&5
1616 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1619 else
1620 ac_save_LIBS="$LIBS"
1621 LIBS="-lposix $LIBS"
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 /* Override any gcc2 internal prototype to avoid an error. */
1626 /* We use char because int might match the return type of a gcc2
1627 builtin and then its argument prototype would still apply. */
1628 char remove();
1630 int main() {
1631 remove()
1632 ; return 0; }
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1635 rm -rf conftest*
1636 eval "ac_cv_lib_$ac_lib_var=yes"
1637 else
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1640 rm -rf conftest*
1641 eval "ac_cv_lib_$ac_lib_var=no"
1643 rm -f conftest*
1644 LIBS="$ac_save_LIBS"
1647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1648 echo "$ac_t""yes" 1>&6
1649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1650 else
1651 echo "$ac_t""no" 1>&6
1656 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1657 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1658 echo "configure:1659: checking for shmat" >&5
1659 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1661 else
1662 cat > conftest.$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1665 /* System header to define __stub macros and hopefully few prototypes,
1666 which can conflict with char shmat(); below. */
1667 #include <assert.h>
1668 /* Override any gcc2 internal prototype to avoid an error. */
1669 /* We use char because int might match the return type of a gcc2
1670 builtin and then its argument prototype would still apply. */
1671 char shmat();
1673 int main() {
1675 /* The GNU C library defines this for functions which it implements
1676 to always fail with ENOSYS. Some functions are actually named
1677 something starting with __ and the normal name is an alias. */
1678 #if defined (__stub_shmat) || defined (__stub___shmat)
1679 choke me
1680 #else
1681 shmat();
1682 #endif
1684 ; return 0; }
1686 if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1687 rm -rf conftest*
1688 eval "ac_cv_func_shmat=yes"
1689 else
1690 echo "configure: failed program was:" >&5
1691 cat conftest.$ac_ext >&5
1692 rm -rf conftest*
1693 eval "ac_cv_func_shmat=no"
1695 rm -f conftest*
1698 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1699 echo "$ac_t""yes" 1>&6
1701 else
1702 echo "$ac_t""no" 1>&6
1705 if test $ac_cv_func_shmat = no; then
1706 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1707 echo "configure:1708: checking for shmat in -lipc" >&5
1708 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1711 else
1712 ac_save_LIBS="$LIBS"
1713 LIBS="-lipc $LIBS"
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 /* Override any gcc2 internal prototype to avoid an error. */
1718 /* We use char because int might match the return type of a gcc2
1719 builtin and then its argument prototype would still apply. */
1720 char shmat();
1722 int main() {
1723 shmat()
1724 ; return 0; }
1726 if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1727 rm -rf conftest*
1728 eval "ac_cv_lib_$ac_lib_var=yes"
1729 else
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1732 rm -rf conftest*
1733 eval "ac_cv_lib_$ac_lib_var=no"
1735 rm -f conftest*
1736 LIBS="$ac_save_LIBS"
1739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1740 echo "$ac_t""yes" 1>&6
1741 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1742 else
1743 echo "$ac_t""no" 1>&6
1749 # Check for libraries that X11R6 Xt/Xaw programs need.
1750 ac_save_LDFLAGS="$LDFLAGS"
1751 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1752 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1753 # check for ICE first), but we must link in the order -lSM -lICE or
1754 # we get undefined symbols. So assume we have SM if we have ICE.
1755 # These have to be linked with before -lX11, unlike the other
1756 # libraries we check for below, so use a different variable.
1757 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1758 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1759 echo "configure:1760: checking for IceConnectionNumber in -lICE" >&5
1760 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 ac_save_LIBS="$LIBS"
1765 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1772 char IceConnectionNumber();
1774 int main() {
1775 IceConnectionNumber()
1776 ; return 0; }
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1779 rm -rf conftest*
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1781 else
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1784 rm -rf conftest*
1785 eval "ac_cv_lib_$ac_lib_var=no"
1787 rm -f conftest*
1788 LIBS="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1793 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1794 else
1795 echo "$ac_t""no" 1>&6
1798 LDFLAGS="$ac_save_LDFLAGS"
1802 for ac_prog in 'bison -y' byacc
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5
1808 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1810 else
1811 if test -n "$YACC"; then
1812 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1813 else
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1815 ac_dummy="$PATH"
1816 for ac_dir in $ac_dummy; do
1817 test -z "$ac_dir" && ac_dir=.
1818 if test -f $ac_dir/$ac_word; then
1819 ac_cv_prog_YACC="$ac_prog"
1820 break
1822 done
1823 IFS="$ac_save_ifs"
1826 YACC="$ac_cv_prog_YACC"
1827 if test -n "$YACC"; then
1828 echo "$ac_t""$YACC" 1>&6
1829 else
1830 echo "$ac_t""no" 1>&6
1833 test -n "$YACC" && break
1834 done
1835 test -n "$YACC" || YACC="yacc"
1837 # Extract the first word of "flex", so it can be a program name with args.
1838 set dummy flex; ac_word=$2
1839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1840 echo "configure:1841: checking for $ac_word" >&5
1841 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1843 else
1844 if test -n "$LEX"; then
1845 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1846 else
1847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1848 ac_dummy="$PATH"
1849 for ac_dir in $ac_dummy; do
1850 test -z "$ac_dir" && ac_dir=.
1851 if test -f $ac_dir/$ac_word; then
1852 ac_cv_prog_LEX="flex"
1853 break
1855 done
1856 IFS="$ac_save_ifs"
1857 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1860 LEX="$ac_cv_prog_LEX"
1861 if test -n "$LEX"; then
1862 echo "$ac_t""$LEX" 1>&6
1863 else
1864 echo "$ac_t""no" 1>&6
1867 if test -z "$LEXLIB"
1868 then
1869 case "$LEX" in
1870 flex*) ac_lib=fl ;;
1871 *) ac_lib=l ;;
1872 esac
1873 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1874 echo "configure:1875: checking for yywrap in -l$ac_lib" >&5
1875 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 ac_save_LIBS="$LIBS"
1880 LIBS="-l$ac_lib $LIBS"
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 /* Override any gcc2 internal prototype to avoid an error. */
1885 /* We use char because int might match the return type of a gcc2
1886 builtin and then its argument prototype would still apply. */
1887 char yywrap();
1889 int main() {
1890 yywrap()
1891 ; return 0; }
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1894 rm -rf conftest*
1895 eval "ac_cv_lib_$ac_lib_var=yes"
1896 else
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 rm -rf conftest*
1900 eval "ac_cv_lib_$ac_lib_var=no"
1902 rm -f conftest*
1903 LIBS="$ac_save_LIBS"
1906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1908 LEXLIB="-l$ac_lib"
1909 else
1910 echo "$ac_t""no" 1>&6
1915 # Extract the first word of "ranlib", so it can be a program name with args.
1916 set dummy ranlib; ac_word=$2
1917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1918 echo "configure:1919: checking for $ac_word" >&5
1919 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1921 else
1922 if test -n "$RANLIB"; then
1923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1924 else
1925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1926 ac_dummy="$PATH"
1927 for ac_dir in $ac_dummy; do
1928 test -z "$ac_dir" && ac_dir=.
1929 if test -f $ac_dir/$ac_word; then
1930 ac_cv_prog_RANLIB="ranlib"
1931 break
1933 done
1934 IFS="$ac_save_ifs"
1935 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1938 RANLIB="$ac_cv_prog_RANLIB"
1939 if test -n "$RANLIB"; then
1940 echo "$ac_t""$RANLIB" 1>&6
1941 else
1942 echo "$ac_t""no" 1>&6
1945 # Find a good install program. We prefer a C program (faster),
1946 # so one script is as good as another. But avoid the broken or
1947 # incompatible versions:
1948 # SysV /etc/install, /usr/sbin/install
1949 # SunOS /usr/etc/install
1950 # IRIX /sbin/install
1951 # AIX /bin/install
1952 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1953 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1954 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1955 # ./install, which can be erroneously created by make from ./install.sh.
1956 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1957 echo "configure:1958: checking for a BSD compatible install" >&5
1958 if test -z "$INSTALL"; then
1959 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1961 else
1962 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1963 for ac_dir in $PATH; do
1964 # Account for people who put trailing slashes in PATH elements.
1965 case "$ac_dir/" in
1966 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1968 # OSF1 and SCO ODT 3.0 have their own names for install.
1969 # Don't use installbsd from OSF since it installs stuff as root
1970 # by default.
1971 for ac_prog in ginstall scoinst install; do
1972 if test -f $ac_dir/$ac_prog; then
1973 if test $ac_prog = install &&
1974 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1975 # AIX install. It has an incompatible calling convention.
1977 else
1978 ac_cv_path_install="$ac_dir/$ac_prog -c"
1979 break 2
1982 done
1984 esac
1985 done
1986 IFS="$ac_save_IFS"
1989 if test "${ac_cv_path_install+set}" = set; then
1990 INSTALL="$ac_cv_path_install"
1991 else
1992 # As a last resort, use the slow shell script. We don't cache a
1993 # path for INSTALL within a source directory, because that will
1994 # break other packages using the cache if that directory is
1995 # removed, or if the path is relative.
1996 INSTALL="$ac_install_sh"
1999 echo "$ac_t""$INSTALL" 1>&6
2001 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2002 # It thinks the first close brace ends the variable substitution.
2003 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2005 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2007 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2009 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether ln -s works" >&5
2011 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2013 else
2014 rm -f conftestdata
2015 if ln -s X conftestdata 2>/dev/null
2016 then
2017 rm -f conftestdata
2018 ac_cv_prog_LN_S="ln -s"
2019 else
2020 ac_cv_prog_LN_S=ln
2023 LN_S="$ac_cv_prog_LN_S"
2024 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2025 echo "$ac_t""yes" 1>&6
2026 else
2027 echo "$ac_t""no" 1>&6
2030 # Extract the first word of "c2man", so it can be a program name with args.
2031 set dummy c2man; ac_word=$2
2032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2033 echo "configure:2034: checking for $ac_word" >&5
2034 if eval "test \"`echo '$''{'ac_cv_prog_C2MAN'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036 else
2037 if test -n "$C2MAN"; then
2038 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
2039 else
2040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2041 ac_dummy="$PATH"
2042 for ac_dir in $ac_dummy; do
2043 test -z "$ac_dir" && ac_dir=.
2044 if test -f $ac_dir/$ac_word; then
2045 ac_cv_prog_C2MAN="c2man"
2046 break
2048 done
2049 IFS="$ac_save_ifs"
2050 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="true"
2053 C2MAN="$ac_cv_prog_C2MAN"
2054 if test -n "$C2MAN"; then
2055 echo "$ac_t""$C2MAN" 1>&6
2056 else
2057 echo "$ac_t""no" 1>&6
2060 # Extract the first word of "ldconfig", so it can be a program name with args.
2061 set dummy ldconfig; ac_word=$2
2062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2063 echo "configure:2064: checking for $ac_word" >&5
2064 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 case "$LDCONFIG" in
2069 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2071 ?:/*)
2072 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
2075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2076 ac_dummy="/sbin:/usr/sbin:$PATH"
2077 for ac_dir in $ac_dummy; do
2078 test -z "$ac_dir" && ac_dir=.
2079 if test -f $ac_dir/$ac_word; then
2080 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2081 break
2083 done
2084 IFS="$ac_save_ifs"
2085 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="false"
2087 esac
2089 LDCONFIG="$ac_cv_path_LDCONFIG"
2090 if test -n "$LDCONFIG"; then
2091 echo "$ac_t""$LDCONFIG" 1>&6
2092 else
2093 echo "$ac_t""no" 1>&6
2097 for ac_prog in lclint lint
2099 # Extract the first word of "$ac_prog", so it can be a program name with args.
2100 set dummy $ac_prog; ac_word=$2
2101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_word" >&5
2103 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106 if test -n "$LINT"; then
2107 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2108 else
2109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2110 ac_dummy="$PATH"
2111 for ac_dir in $ac_dummy; do
2112 test -z "$ac_dir" && ac_dir=.
2113 if test -f $ac_dir/$ac_word; then
2114 ac_cv_prog_LINT="$ac_prog"
2115 break
2117 done
2118 IFS="$ac_save_ifs"
2121 LINT="$ac_cv_prog_LINT"
2122 if test -n "$LINT"; then
2123 echo "$ac_t""$LINT" 1>&6
2124 else
2125 echo "$ac_t""no" 1>&6
2128 test -n "$LINT" && break
2129 done
2131 if test "$LINT" = "lint"
2132 then
2133 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
2139 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
2140 echo "configure:2141: checking for sqrt in -lm" >&5
2141 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
2142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2144 else
2145 ac_save_LIBS="$LIBS"
2146 LIBS="-lm $LIBS"
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 /* Override any gcc2 internal prototype to avoid an error. */
2151 /* We use char because int might match the return type of a gcc2
2152 builtin and then its argument prototype would still apply. */
2153 char sqrt();
2155 int main() {
2156 sqrt()
2157 ; return 0; }
2159 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2160 rm -rf conftest*
2161 eval "ac_cv_lib_$ac_lib_var=yes"
2162 else
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2165 rm -rf conftest*
2166 eval "ac_cv_lib_$ac_lib_var=no"
2168 rm -f conftest*
2169 LIBS="$ac_save_LIBS"
2172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2176 cat >> confdefs.h <<EOF
2177 #define $ac_tr_lib 1
2180 LIBS="-lm $LIBS"
2182 else
2183 echo "$ac_t""no" 1>&6
2186 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
2187 echo "configure:2188: checking for i386_set_ldt in -li386" >&5
2188 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
2189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2191 else
2192 ac_save_LIBS="$LIBS"
2193 LIBS="-li386 $LIBS"
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 /* Override any gcc2 internal prototype to avoid an error. */
2198 /* We use char because int might match the return type of a gcc2
2199 builtin and then its argument prototype would still apply. */
2200 char i386_set_ldt();
2202 int main() {
2203 i386_set_ldt()
2204 ; return 0; }
2206 if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2207 rm -rf conftest*
2208 eval "ac_cv_lib_$ac_lib_var=yes"
2209 else
2210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2212 rm -rf conftest*
2213 eval "ac_cv_lib_$ac_lib_var=no"
2215 rm -f conftest*
2216 LIBS="$ac_save_LIBS"
2219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2220 echo "$ac_t""yes" 1>&6
2221 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2222 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2223 cat >> confdefs.h <<EOF
2224 #define $ac_tr_lib 1
2227 LIBS="-li386 $LIBS"
2229 else
2230 echo "$ac_t""no" 1>&6
2233 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2234 echo "configure:2235: checking for _oss_ioctl in -lossaudio" >&5
2235 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2238 else
2239 ac_save_LIBS="$LIBS"
2240 LIBS="-lossaudio $LIBS"
2241 cat > conftest.$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2244 /* Override any gcc2 internal prototype to avoid an error. */
2245 /* We use char because int might match the return type of a gcc2
2246 builtin and then its argument prototype would still apply. */
2247 char _oss_ioctl();
2249 int main() {
2250 _oss_ioctl()
2251 ; return 0; }
2253 if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2254 rm -rf conftest*
2255 eval "ac_cv_lib_$ac_lib_var=yes"
2256 else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 rm -rf conftest*
2260 eval "ac_cv_lib_$ac_lib_var=no"
2262 rm -f conftest*
2263 LIBS="$ac_save_LIBS"
2266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2267 echo "$ac_t""yes" 1>&6
2268 ac_tr_lib=HAVE_LIB`echo ossaudio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2269 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2270 cat >> confdefs.h <<EOF
2271 #define $ac_tr_lib 1
2274 LIBS="-lossaudio $LIBS"
2276 else
2277 echo "$ac_t""no" 1>&6
2280 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
2281 echo "configure:2282: checking for iswalnum in -lw" >&5
2282 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
2283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2285 else
2286 ac_save_LIBS="$LIBS"
2287 LIBS="-lw $LIBS"
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* Override any gcc2 internal prototype to avoid an error. */
2292 /* We use char because int might match the return type of a gcc2
2293 builtin and then its argument prototype would still apply. */
2294 char iswalnum();
2296 int main() {
2297 iswalnum()
2298 ; return 0; }
2300 if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301 rm -rf conftest*
2302 eval "ac_cv_lib_$ac_lib_var=yes"
2303 else
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2306 rm -rf conftest*
2307 eval "ac_cv_lib_$ac_lib_var=no"
2309 rm -f conftest*
2310 LIBS="$ac_save_LIBS"
2313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2316 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2317 cat >> confdefs.h <<EOF
2318 #define $ac_tr_lib 1
2321 LIBS="-lw $LIBS"
2323 else
2324 echo "$ac_t""no" 1>&6
2327 for ac_func in gethostbyname
2329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_func" >&5
2331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2333 else
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 /* System header to define __stub macros and hopefully few prototypes,
2338 which can conflict with char $ac_func(); below. */
2339 #include <assert.h>
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2343 char $ac_func();
2345 int main() {
2347 /* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2351 choke me
2352 #else
2353 $ac_func();
2354 #endif
2356 ; return 0; }
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2359 rm -rf conftest*
2360 eval "ac_cv_func_$ac_func=yes"
2361 else
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 rm -rf conftest*
2365 eval "ac_cv_func_$ac_func=no"
2367 rm -f conftest*
2370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2373 cat >> confdefs.h <<EOF
2374 #define $ac_tr_func 1
2377 else
2378 echo "$ac_t""no" 1>&6
2379 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2380 echo "configure:2381: checking for gethostbyname in -lnsl" >&5
2381 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385 ac_save_LIBS="$LIBS"
2386 LIBS="-lnsl -lsocket $LIBS"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2393 char gethostbyname();
2395 int main() {
2396 gethostbyname()
2397 ; return 0; }
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400 rm -rf conftest*
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2402 else
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2405 rm -rf conftest*
2406 eval "ac_cv_lib_$ac_lib_var=no"
2408 rm -f conftest*
2409 LIBS="$ac_save_LIBS"
2412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2415 else
2416 echo "$ac_t""no" 1>&6
2417 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
2418 echo "configure:2419: checking for gethostbyname in -lsocket" >&5
2419 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
2420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2422 else
2423 ac_save_LIBS="$LIBS"
2424 LIBS="-lsocket -lnsl $LIBS"
2425 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 /* Override any gcc2 internal prototype to avoid an error. */
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2431 char gethostbyname();
2433 int main() {
2434 gethostbyname()
2435 ; return 0; }
2437 if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2438 rm -rf conftest*
2439 eval "ac_cv_lib_$ac_lib_var=yes"
2440 else
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 rm -rf conftest*
2444 eval "ac_cv_lib_$ac_lib_var=no"
2446 rm -f conftest*
2447 LIBS="$ac_save_LIBS"
2450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2453 else
2454 echo "$ac_t""no" 1>&6
2460 done
2462 for ac_func in connect
2464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2465 echo "configure:2466: checking for $ac_func" >&5
2466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2468 else
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2472 /* System header to define __stub macros and hopefully few prototypes,
2473 which can conflict with char $ac_func(); below. */
2474 #include <assert.h>
2475 /* Override any gcc2 internal prototype to avoid an error. */
2476 /* We use char because int might match the return type of a gcc2
2477 builtin and then its argument prototype would still apply. */
2478 char $ac_func();
2480 int main() {
2482 /* The GNU C library defines this for functions which it implements
2483 to always fail with ENOSYS. Some functions are actually named
2484 something starting with __ and the normal name is an alias. */
2485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2486 choke me
2487 #else
2488 $ac_func();
2489 #endif
2491 ; return 0; }
2493 if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2494 rm -rf conftest*
2495 eval "ac_cv_func_$ac_func=yes"
2496 else
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2499 rm -rf conftest*
2500 eval "ac_cv_func_$ac_func=no"
2502 rm -f conftest*
2505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2506 echo "$ac_t""yes" 1>&6
2507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2508 cat >> confdefs.h <<EOF
2509 #define $ac_tr_func 1
2512 else
2513 echo "$ac_t""no" 1>&6
2514 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2515 echo "configure:2516: checking for connect in -lsocket" >&5
2516 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2519 else
2520 ac_save_LIBS="$LIBS"
2521 LIBS="-lsocket $LIBS"
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 /* Override any gcc2 internal prototype to avoid an error. */
2526 /* We use char because int might match the return type of a gcc2
2527 builtin and then its argument prototype would still apply. */
2528 char connect();
2530 int main() {
2531 connect()
2532 ; return 0; }
2534 if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2535 rm -rf conftest*
2536 eval "ac_cv_lib_$ac_lib_var=yes"
2537 else
2538 echo "configure: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2540 rm -rf conftest*
2541 eval "ac_cv_lib_$ac_lib_var=no"
2543 rm -f conftest*
2544 LIBS="$ac_save_LIBS"
2547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2548 echo "$ac_t""yes" 1>&6
2549 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2551 cat >> confdefs.h <<EOF
2552 #define $ac_tr_lib 1
2555 LIBS="-lsocket $LIBS"
2557 else
2558 echo "$ac_t""no" 1>&6
2562 done
2564 echo $ac_n "checking for setrunelocale in -lxpg4""... $ac_c" 1>&6
2565 echo "configure:2566: checking for setrunelocale in -lxpg4" >&5
2566 ac_lib_var=`echo xpg4'_'setrunelocale | sed 'y%./+-%__p_%'`
2567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2569 else
2570 ac_save_LIBS="$LIBS"
2571 LIBS="-lxpg4 $LIBS"
2572 cat > conftest.$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 /* Override any gcc2 internal prototype to avoid an error. */
2576 /* We use char because int might match the return type of a gcc2
2577 builtin and then its argument prototype would still apply. */
2578 char setrunelocale();
2580 int main() {
2581 setrunelocale()
2582 ; return 0; }
2584 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2585 rm -rf conftest*
2586 eval "ac_cv_lib_$ac_lib_var=yes"
2587 else
2588 echo "configure: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2590 rm -rf conftest*
2591 eval "ac_cv_lib_$ac_lib_var=no"
2593 rm -f conftest*
2594 LIBS="$ac_save_LIBS"
2597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2598 echo "$ac_t""yes" 1>&6
2599 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2600 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2601 cat >> confdefs.h <<EOF
2602 #define $ac_tr_lib 1
2605 LIBS="-lxpg4 $LIBS"
2607 else
2608 echo "$ac_t""no" 1>&6
2611 echo $ac_n "checking for mmap in -lmmap""... $ac_c" 1>&6
2612 echo "configure:2613: checking for mmap in -lmmap" >&5
2613 ac_lib_var=`echo mmap'_'mmap | sed 'y%./+-%__p_%'`
2614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2616 else
2617 ac_save_LIBS="$LIBS"
2618 LIBS="-lmmap $LIBS"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 /* Override any gcc2 internal prototype to avoid an error. */
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625 char mmap();
2627 int main() {
2628 mmap()
2629 ; return 0; }
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2632 rm -rf conftest*
2633 eval "ac_cv_lib_$ac_lib_var=yes"
2634 else
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2637 rm -rf conftest*
2638 eval "ac_cv_lib_$ac_lib_var=no"
2640 rm -f conftest*
2641 LIBS="$ac_save_LIBS"
2644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2646 ac_tr_lib=HAVE_LIB`echo mmap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2648 cat >> confdefs.h <<EOF
2649 #define $ac_tr_lib 1
2652 LIBS="-lmmap $LIBS"
2654 else
2655 echo "$ac_t""no" 1>&6
2658 for ac_func in openpty
2660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_func" >&5
2662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2664 else
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 /* System header to define __stub macros and hopefully few prototypes,
2669 which can conflict with char $ac_func(); below. */
2670 #include <assert.h>
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 /* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2674 char $ac_func();
2676 int main() {
2678 /* The GNU C library defines this for functions which it implements
2679 to always fail with ENOSYS. Some functions are actually named
2680 something starting with __ and the normal name is an alias. */
2681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2682 choke me
2683 #else
2684 $ac_func();
2685 #endif
2687 ; return 0; }
2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2690 rm -rf conftest*
2691 eval "ac_cv_func_$ac_func=yes"
2692 else
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2695 rm -rf conftest*
2696 eval "ac_cv_func_$ac_func=no"
2698 rm -f conftest*
2701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2704 cat >> confdefs.h <<EOF
2705 #define $ac_tr_func 1
2708 else
2709 echo "$ac_t""no" 1>&6
2710 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
2711 echo "configure:2712: checking for openpty in -lutil" >&5
2712 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
2713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2715 else
2716 ac_save_LIBS="$LIBS"
2717 LIBS="-lutil $LIBS"
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2721 /* Override any gcc2 internal prototype to avoid an error. */
2722 /* We use char because int might match the return type of a gcc2
2723 builtin and then its argument prototype would still apply. */
2724 char openpty();
2726 int main() {
2727 openpty()
2728 ; return 0; }
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2731 rm -rf conftest*
2732 eval "ac_cv_lib_$ac_lib_var=yes"
2733 else
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2736 rm -rf conftest*
2737 eval "ac_cv_lib_$ac_lib_var=no"
2739 rm -f conftest*
2740 LIBS="$ac_save_LIBS"
2743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2744 echo "$ac_t""yes" 1>&6
2745 cat >> confdefs.h <<\EOF
2746 #define HAVE_OPENPTY 1
2749 LIBS="$LIBS -lutil"
2751 else
2752 echo "$ac_t""no" 1>&6
2756 done
2759 for ac_hdr in dlfcn.h
2761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2763 echo "configure:2764: checking for $ac_hdr" >&5
2764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2766 else
2767 cat > conftest.$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 #include <$ac_hdr>
2772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2773 { (eval echo configure:2774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2775 if test -z "$ac_err"; then
2776 rm -rf conftest*
2777 eval "ac_cv_header_$ac_safe=yes"
2778 else
2779 echo "$ac_err" >&5
2780 echo "configure: failed program was:" >&5
2781 cat conftest.$ac_ext >&5
2782 rm -rf conftest*
2783 eval "ac_cv_header_$ac_safe=no"
2785 rm -f conftest*
2787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2788 echo "$ac_t""yes" 1>&6
2789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2790 cat >> confdefs.h <<EOF
2791 #define $ac_tr_hdr 1
2793 for ac_func in dlopen
2795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2796 echo "configure:2797: checking for $ac_func" >&5
2797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2799 else
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 /* System header to define __stub macros and hopefully few prototypes,
2804 which can conflict with char $ac_func(); below. */
2805 #include <assert.h>
2806 /* Override any gcc2 internal prototype to avoid an error. */
2807 /* We use char because int might match the return type of a gcc2
2808 builtin and then its argument prototype would still apply. */
2809 char $ac_func();
2811 int main() {
2813 /* The GNU C library defines this for functions which it implements
2814 to always fail with ENOSYS. Some functions are actually named
2815 something starting with __ and the normal name is an alias. */
2816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2817 choke me
2818 #else
2819 $ac_func();
2820 #endif
2822 ; return 0; }
2824 if { (eval echo configure:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2825 rm -rf conftest*
2826 eval "ac_cv_func_$ac_func=yes"
2827 else
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2830 rm -rf conftest*
2831 eval "ac_cv_func_$ac_func=no"
2833 rm -f conftest*
2836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2837 echo "$ac_t""yes" 1>&6
2838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2839 cat >> confdefs.h <<EOF
2840 #define $ac_tr_func 1
2842 cat >> confdefs.h <<\EOF
2843 #define HAVE_DL_API 1
2846 else
2847 echo "$ac_t""no" 1>&6
2848 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2849 echo "configure:2850: checking for dlopen in -ldl" >&5
2850 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2853 else
2854 ac_save_LIBS="$LIBS"
2855 LIBS="-ldl $LIBS"
2856 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2859 /* Override any gcc2 internal prototype to avoid an error. */
2860 /* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2862 char dlopen();
2864 int main() {
2865 dlopen()
2866 ; return 0; }
2868 if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2869 rm -rf conftest*
2870 eval "ac_cv_lib_$ac_lib_var=yes"
2871 else
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2874 rm -rf conftest*
2875 eval "ac_cv_lib_$ac_lib_var=no"
2877 rm -f conftest*
2878 LIBS="$ac_save_LIBS"
2881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 cat >> confdefs.h <<\EOF
2884 #define HAVE_DL_API 1
2887 LIBS="$LIBS -ldl"
2889 else
2890 echo "$ac_t""no" 1>&6
2895 done
2898 else
2899 echo "$ac_t""no" 1>&6
2901 done
2904 if test "$have_x" = "yes"
2905 then
2906 XLIB="-lXext -lX11"
2907 ac_save_CPPFLAGS="$CPPFLAGS"
2908 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2910 for ac_hdr in X11/xpm.h
2912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2917 else
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 #include <$ac_hdr>
2923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2927 rm -rf conftest*
2928 eval "ac_cv_header_$ac_safe=yes"
2929 else
2930 echo "$ac_err" >&5
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -rf conftest*
2934 eval "ac_cv_header_$ac_safe=no"
2936 rm -f conftest*
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h <<EOF
2942 #define $ac_tr_hdr 1
2945 else
2946 echo "$ac_t""no" 1>&6
2948 done
2950 if test "$ac_cv_header_X11_xpm_h" = "yes"
2951 then
2952 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
2953 echo "configure:2954: checking for XpmCreatePixmapFromData in -lXpm" >&5
2954 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
2955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957 else
2958 ac_save_LIBS="$LIBS"
2959 LIBS="-lXpm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 /* We use char because int might match the return type of a gcc2
2965 builtin and then its argument prototype would still apply. */
2966 char XpmCreatePixmapFromData();
2968 int main() {
2969 XpmCreatePixmapFromData()
2970 ; return 0; }
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2973 rm -rf conftest*
2974 eval "ac_cv_lib_$ac_lib_var=yes"
2975 else
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2978 rm -rf conftest*
2979 eval "ac_cv_lib_$ac_lib_var=no"
2981 rm -f conftest*
2982 LIBS="$ac_save_LIBS"
2985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2986 echo "$ac_t""yes" 1>&6
2987 cat >> confdefs.h <<\EOF
2988 #define HAVE_LIBXXPM 1
2990 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
2991 else
2992 echo "$ac_t""no" 1>&6
2995 else
2996 echo "When compiling with X support, you need the Xpm library, or"
2997 echo "WINE will not work. This Xpm library is within the following RPM,"
2998 echo "which you need to install:"
2999 echo "Redhat : xpm, xpm-devel"
3000 echo "Caldera OpenLinux : xpm, xpm-devel, xpm-devel-static"
3001 echo "SuSE: xpm"
3002 echo
3003 echo "Or get the sources from ftp.x.org and all its mirror sites from "
3004 echo "the directory /contrib/libraries."
3005 echo
3006 exit 1
3010 for ac_hdr in X11/Xlib.h X11/extensions/XShm.h
3012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3014 echo "configure:3015: checking for $ac_hdr" >&5
3015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3017 else
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 #include <$ac_hdr>
3023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3024 { (eval echo configure:3025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3026 if test -z "$ac_err"; then
3027 rm -rf conftest*
3028 eval "ac_cv_header_$ac_safe=yes"
3029 else
3030 echo "$ac_err" >&5
3031 echo "configure: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3033 rm -rf conftest*
3034 eval "ac_cv_header_$ac_safe=no"
3036 rm -f conftest*
3038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3039 echo "$ac_t""yes" 1>&6
3040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3041 cat >> confdefs.h <<EOF
3042 #define $ac_tr_hdr 1
3045 else
3046 echo "$ac_t""no" 1>&6
3048 done
3050 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes"
3051 then
3052 echo $ac_n "checking for XShmQueryExtension in -lXext""... $ac_c" 1>&6
3053 echo "configure:3054: checking for XShmQueryExtension in -lXext" >&5
3054 ac_lib_var=`echo Xext'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 ac_save_LIBS="$LIBS"
3059 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* Override any gcc2 internal prototype to avoid an error. */
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3066 char XShmQueryExtension();
3068 int main() {
3069 XShmQueryExtension()
3070 ; return 0; }
3072 if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3073 rm -rf conftest*
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3075 else
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3078 rm -rf conftest*
3079 eval "ac_cv_lib_$ac_lib_var=no"
3081 rm -f conftest*
3082 LIBS="$ac_save_LIBS"
3085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 cat >> confdefs.h <<\EOF
3088 #define HAVE_LIBXXSHM 1
3091 else
3092 echo "$ac_t""no" 1>&6
3096 for ac_hdr in X11/Xlib.h X11/extensions/xf86dga.h
3098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3100 echo "configure:3101: checking for $ac_hdr" >&5
3101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3103 else
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3107 #include <$ac_hdr>
3109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3110 { (eval echo configure:3111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3112 if test -z "$ac_err"; then
3113 rm -rf conftest*
3114 eval "ac_cv_header_$ac_safe=yes"
3115 else
3116 echo "$ac_err" >&5
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 rm -rf conftest*
3120 eval "ac_cv_header_$ac_safe=no"
3122 rm -f conftest*
3124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3125 echo "$ac_t""yes" 1>&6
3126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3127 cat >> confdefs.h <<EOF
3128 #define $ac_tr_hdr 1
3131 else
3132 echo "$ac_t""no" 1>&6
3134 done
3136 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
3137 then
3138 echo $ac_n "checking for XDGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3139 echo "configure:3140: checking for XDGAQueryExtension in -lXxf86dga" >&5
3140 ac_lib_var=`echo Xxf86dga'_'XDGAQueryExtension | sed 'y%./+-%__p_%'`
3141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3143 else
3144 ac_save_LIBS="$LIBS"
3145 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 /* Override any gcc2 internal prototype to avoid an error. */
3150 /* We use char because int might match the return type of a gcc2
3151 builtin and then its argument prototype would still apply. */
3152 char XDGAQueryExtension();
3154 int main() {
3155 XDGAQueryExtension()
3156 ; return 0; }
3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3159 rm -rf conftest*
3160 eval "ac_cv_lib_$ac_lib_var=yes"
3161 else
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 rm -rf conftest*
3165 eval "ac_cv_lib_$ac_lib_var=no"
3167 rm -f conftest*
3168 LIBS="$ac_save_LIBS"
3171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 cat >> confdefs.h <<\EOF
3174 #define HAVE_LIBXXF86DGA2 1
3176 cat >> confdefs.h <<\EOF
3177 #define HAVE_LIBXXF86DGA 1
3179 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3180 else
3181 echo "$ac_t""no" 1>&6
3184 if test "$ac_cv_lib_Xxf86dga_XDGAQueryExtension" = "no"
3185 then
3186 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
3187 echo "configure:3188: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
3188 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
3189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3191 else
3192 ac_save_LIBS="$LIBS"
3193 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* Override any gcc2 internal prototype to avoid an error. */
3198 /* We use char because int might match the return type of a gcc2
3199 builtin and then its argument prototype would still apply. */
3200 char XF86DGAQueryExtension();
3202 int main() {
3203 XF86DGAQueryExtension()
3204 ; return 0; }
3206 if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3207 rm -rf conftest*
3208 eval "ac_cv_lib_$ac_lib_var=yes"
3209 else
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 rm -rf conftest*
3213 eval "ac_cv_lib_$ac_lib_var=no"
3215 rm -f conftest*
3216 LIBS="$ac_save_LIBS"
3219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3220 echo "$ac_t""yes" 1>&6
3221 cat >> confdefs.h <<\EOF
3222 #define HAVE_LIBXXF86DGA 1
3224 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
3225 else
3226 echo "$ac_t""no" 1>&6
3232 for ac_hdr in X11/Xlib.h X11/extensions/xf86vmode.h
3234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3236 echo "configure:3237: checking for $ac_hdr" >&5
3237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3239 else
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 #include <$ac_hdr>
3245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3246 { (eval echo configure:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3248 if test -z "$ac_err"; then
3249 rm -rf conftest*
3250 eval "ac_cv_header_$ac_safe=yes"
3251 else
3252 echo "$ac_err" >&5
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3255 rm -rf conftest*
3256 eval "ac_cv_header_$ac_safe=no"
3258 rm -f conftest*
3260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3263 cat >> confdefs.h <<EOF
3264 #define $ac_tr_hdr 1
3267 else
3268 echo "$ac_t""no" 1>&6
3270 done
3272 if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
3273 then
3274 echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
3275 echo "configure:3276: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
3276 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
3277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3279 else
3280 ac_save_LIBS="$LIBS"
3281 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
3282 cat > conftest.$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3285 /* Override any gcc2 internal prototype to avoid an error. */
3286 /* We use char because int might match the return type of a gcc2
3287 builtin and then its argument prototype would still apply. */
3288 char XF86VidModeQueryExtension();
3290 int main() {
3291 XF86VidModeQueryExtension()
3292 ; return 0; }
3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3295 rm -rf conftest*
3296 eval "ac_cv_lib_$ac_lib_var=yes"
3297 else
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3300 rm -rf conftest*
3301 eval "ac_cv_lib_$ac_lib_var=no"
3303 rm -f conftest*
3304 LIBS="$ac_save_LIBS"
3307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 cat >> confdefs.h <<\EOF
3310 #define HAVE_LIBXXF86VM 1
3312 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
3313 else
3314 echo "$ac_t""no" 1>&6
3319 for ac_hdr in GL/gl.h GL/glx.h GL/osmesa.h
3321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3323 echo "configure:3324: checking for $ac_hdr" >&5
3324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3326 else
3327 cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3330 #include <$ac_hdr>
3332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3333 { (eval echo configure:3334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3335 if test -z "$ac_err"; then
3336 rm -rf conftest*
3337 eval "ac_cv_header_$ac_safe=yes"
3338 else
3339 echo "$ac_err" >&5
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3342 rm -rf conftest*
3343 eval "ac_cv_header_$ac_safe=no"
3345 rm -f conftest*
3347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3350 cat >> confdefs.h <<EOF
3351 #define $ac_tr_hdr 1
3354 else
3355 echo "$ac_t""no" 1>&6
3357 done
3359 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
3360 then
3361 echo $ac_n "checking "for up-to-date Mesa version"""... $ac_c" 1>&6
3362 echo "configure:3363: checking "for up-to-date Mesa version"" >&5
3363 if eval "test \"`echo '$''{'wine_cv_mesa_version_OK'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3365 else
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 #include <GL/gl.h>
3370 int main() {
3371 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
3372 ; return 0; }
3374 if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3375 rm -rf conftest*
3376 wine_cv_mesa_version_OK="yes"
3377 else
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3380 rm -rf conftest*
3381 wine_cv_mesa_version_OK="no"
3384 rm -f conftest*
3388 echo "$ac_t""$wine_cv_mesa_version_OK" 1>&6
3390 if test "$wine_cv_mesa_version_OK" = "yes"
3391 then
3392 echo $ac_n "checking for glXCreateContext in -lGL""... $ac_c" 1>&6
3393 echo "configure:3394: checking for glXCreateContext in -lGL" >&5
3394 ac_lib_var=`echo GL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397 else
3398 ac_save_LIBS="$LIBS"
3399 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406 char glXCreateContext();
3408 int main() {
3409 glXCreateContext()
3410 ; return 0; }
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3413 rm -rf conftest*
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3415 else
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3418 rm -rf conftest*
3419 eval "ac_cv_lib_$ac_lib_var=no"
3421 rm -f conftest*
3422 LIBS="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 cat >> confdefs.h <<\EOF
3428 #define HAVE_LIBMESAGL 1
3430 X_PRE_LIBS="$X_PRE_LIBS -lGL"
3431 else
3432 echo "$ac_t""no" 1>&6
3435 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3436 then
3437 echo $ac_n "checking for glXCreateContext in -lMesaGL""... $ac_c" 1>&6
3438 echo "configure:3439: checking for glXCreateContext in -lMesaGL" >&5
3439 ac_lib_var=`echo MesaGL'_'glXCreateContext | sed 'y%./+-%__p_%'`
3440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3442 else
3443 ac_save_LIBS="$LIBS"
3444 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* Override any gcc2 internal prototype to avoid an error. */
3449 /* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3451 char glXCreateContext();
3453 int main() {
3454 glXCreateContext()
3455 ; return 0; }
3457 if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3458 rm -rf conftest*
3459 eval "ac_cv_lib_$ac_lib_var=yes"
3460 else
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3463 rm -rf conftest*
3464 eval "ac_cv_lib_$ac_lib_var=no"
3466 rm -f conftest*
3467 LIBS="$ac_save_LIBS"
3470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3471 echo "$ac_t""yes" 1>&6
3472 cat >> confdefs.h <<\EOF
3473 #define HAVE_LIBMESAGL 1
3475 X_PRE_LIBS="$X_PRE_LIBS -lMesaGL"
3476 else
3477 echo "$ac_t""no" 1>&6
3482 echo $ac_n "checking "for the OpenGL Color Index extension"""... $ac_c" 1>&6
3483 echo "configure:3484: checking "for the OpenGL Color Index extension"" >&5
3484 if eval "test \"`echo '$''{'dummy'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3486 else
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 #include <GL/gl.h>
3491 int main() {
3492 GLenum test = GL_COLOR_INDEX8_EXT;
3493 ; return 0; }
3495 if { (eval echo configure:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3496 rm -rf conftest*
3497 cat >> confdefs.h <<\EOF
3498 #define HAVE_GL_COLOR_TABLE 1
3501 else
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 rm -f conftest*
3509 echo "$ac_t""$dummy" 1>&6
3510 if test "$ac_cv_lib_GL_glXCreateContext" = "no"
3511 then
3512 echo $ac_n "checking for glColorTableEXT in -lMesaGL""... $ac_c" 1>&6
3513 echo "configure:3514: checking for glColorTableEXT in -lMesaGL" >&5
3514 ac_lib_var=`echo MesaGL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3517 else
3518 ac_save_LIBS="$LIBS"
3519 LIBS="-lMesaGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* Override any gcc2 internal prototype to avoid an error. */
3524 /* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
3526 char glColorTableEXT();
3528 int main() {
3529 glColorTableEXT()
3530 ; return 0; }
3532 if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 rm -rf conftest*
3534 eval "ac_cv_lib_$ac_lib_var=yes"
3535 else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 eval "ac_cv_lib_$ac_lib_var=no"
3541 rm -f conftest*
3542 LIBS="$ac_save_LIBS"
3545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 cat >> confdefs.h <<\EOF
3548 #define HAVE_GL_PALETTED_TEXTURE 1
3551 else
3552 echo "$ac_t""no" 1>&6
3555 else
3556 echo $ac_n "checking for glColorTableEXT in -lGL""... $ac_c" 1>&6
3557 echo "configure:3558: checking for glColorTableEXT in -lGL" >&5
3558 ac_lib_var=`echo GL'_'glColorTableEXT | sed 'y%./+-%__p_%'`
3559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3561 else
3562 ac_save_LIBS="$LIBS"
3563 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 /* Override any gcc2 internal prototype to avoid an error. */
3568 /* We use char because int might match the return type of a gcc2
3569 builtin and then its argument prototype would still apply. */
3570 char glColorTableEXT();
3572 int main() {
3573 glColorTableEXT()
3574 ; return 0; }
3576 if { (eval echo configure:3577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3577 rm -rf conftest*
3578 eval "ac_cv_lib_$ac_lib_var=yes"
3579 else
3580 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3582 rm -rf conftest*
3583 eval "ac_cv_lib_$ac_lib_var=no"
3585 rm -f conftest*
3586 LIBS="$ac_save_LIBS"
3589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3590 echo "$ac_t""yes" 1>&6
3591 cat >> confdefs.h <<\EOF
3592 #define HAVE_GL_PALETTED_TEXTURE 1
3595 else
3596 echo "$ac_t""no" 1>&6
3603 CPPFLAGS="$ac_save_CPPFLAGS"
3604 else
3605 XLIB=""
3606 X_CFLAGS=""
3607 X_LIBS=""
3610 for ac_hdr in ncurses.h
3612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_hdr" >&5
3615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3617 else
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 #include <$ac_hdr>
3623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3624 { (eval echo configure:3625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3626 if test -z "$ac_err"; then
3627 rm -rf conftest*
3628 eval "ac_cv_header_$ac_safe=yes"
3629 else
3630 echo "$ac_err" >&5
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 rm -rf conftest*
3634 eval "ac_cv_header_$ac_safe=no"
3636 rm -f conftest*
3638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3641 cat >> confdefs.h <<EOF
3642 #define $ac_tr_hdr 1
3645 else
3646 echo "$ac_t""no" 1>&6
3648 done
3650 if test "$ac_cv_header_ncurses_h" = "yes"
3651 then
3652 echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
3653 echo "configure:3654: checking for waddch in -lncurses" >&5
3654 ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
3655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657 else
3658 ac_save_LIBS="$LIBS"
3659 LIBS="-lncurses $LIBS"
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3666 char waddch();
3668 int main() {
3669 waddch()
3670 ; return 0; }
3672 if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3673 rm -rf conftest*
3674 eval "ac_cv_lib_$ac_lib_var=yes"
3675 else
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3678 rm -rf conftest*
3679 eval "ac_cv_lib_$ac_lib_var=no"
3681 rm -f conftest*
3682 LIBS="$ac_save_LIBS"
3685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3687 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3688 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3689 cat >> confdefs.h <<EOF
3690 #define $ac_tr_lib 1
3693 LIBS="-lncurses $LIBS"
3695 else
3696 echo "$ac_t""no" 1>&6
3700 if test "$ac_cv_lib_ncurses_waddch" = "yes"
3701 then
3702 echo $ac_n "checking for resizeterm in -lncurses""... $ac_c" 1>&6
3703 echo "configure:3704: checking for resizeterm in -lncurses" >&5
3704 ac_lib_var=`echo ncurses'_'resizeterm | sed 'y%./+-%__p_%'`
3705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3707 else
3708 ac_save_LIBS="$LIBS"
3709 LIBS="-lncurses $LIBS"
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3716 char resizeterm();
3718 int main() {
3719 resizeterm()
3720 ; return 0; }
3722 if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3723 rm -rf conftest*
3724 eval "ac_cv_lib_$ac_lib_var=yes"
3725 else
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 rm -rf conftest*
3729 eval "ac_cv_lib_$ac_lib_var=no"
3731 rm -f conftest*
3732 LIBS="$ac_save_LIBS"
3735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3736 echo "$ac_t""yes" 1>&6
3737 cat >> confdefs.h <<\EOF
3738 #define HAVE_RESIZETERM 1
3741 else
3742 echo "$ac_t""no" 1>&6
3745 echo $ac_n "checking for getbkgd in -lncurses""... $ac_c" 1>&6
3746 echo "configure:3747: checking for getbkgd in -lncurses" >&5
3747 ac_lib_var=`echo ncurses'_'getbkgd | sed 'y%./+-%__p_%'`
3748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3750 else
3751 ac_save_LIBS="$LIBS"
3752 LIBS="-lncurses $LIBS"
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 /* Override any gcc2 internal prototype to avoid an error. */
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3759 char getbkgd();
3761 int main() {
3762 getbkgd()
3763 ; return 0; }
3765 if { (eval echo configure:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3766 rm -rf conftest*
3767 eval "ac_cv_lib_$ac_lib_var=yes"
3768 else
3769 echo "configure: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3771 rm -rf conftest*
3772 eval "ac_cv_lib_$ac_lib_var=no"
3774 rm -f conftest*
3775 LIBS="$ac_save_LIBS"
3778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3779 echo "$ac_t""yes" 1>&6
3780 cat >> confdefs.h <<\EOF
3781 #define HAVE_GETBKGD 1
3784 else
3785 echo "$ac_t""no" 1>&6
3788 else
3789 for ac_hdr in curses.h
3791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3793 echo "configure:3794: checking for $ac_hdr" >&5
3794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3796 else
3797 cat > conftest.$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 #include <$ac_hdr>
3802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3803 { (eval echo configure:3804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3805 if test -z "$ac_err"; then
3806 rm -rf conftest*
3807 eval "ac_cv_header_$ac_safe=yes"
3808 else
3809 echo "$ac_err" >&5
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3812 rm -rf conftest*
3813 eval "ac_cv_header_$ac_safe=no"
3815 rm -f conftest*
3817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3818 echo "$ac_t""yes" 1>&6
3819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3820 cat >> confdefs.h <<EOF
3821 #define $ac_tr_hdr 1
3824 else
3825 echo "$ac_t""no" 1>&6
3827 done
3829 if test "$ac_cv_header_curses_h" = "yes"
3830 then
3831 echo $ac_n "checking for waddch in -lcurses""... $ac_c" 1>&6
3832 echo "configure:3833: checking for waddch in -lcurses" >&5
3833 ac_lib_var=`echo curses'_'waddch | sed 'y%./+-%__p_%'`
3834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3836 else
3837 ac_save_LIBS="$LIBS"
3838 LIBS="-lcurses $LIBS"
3839 cat > conftest.$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3842 /* Override any gcc2 internal prototype to avoid an error. */
3843 /* We use char because int might match the return type of a gcc2
3844 builtin and then its argument prototype would still apply. */
3845 char waddch();
3847 int main() {
3848 waddch()
3849 ; return 0; }
3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 rm -rf conftest*
3853 eval "ac_cv_lib_$ac_lib_var=yes"
3854 else
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3857 rm -rf conftest*
3858 eval "ac_cv_lib_$ac_lib_var=no"
3860 rm -f conftest*
3861 LIBS="$ac_save_LIBS"
3864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3867 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3868 cat >> confdefs.h <<EOF
3869 #define $ac_tr_lib 1
3872 LIBS="-lcurses $LIBS"
3874 else
3875 echo "$ac_t""no" 1>&6
3878 echo $ac_n "checking for resizeterm in -lcurses""... $ac_c" 1>&6
3879 echo "configure:3880: checking for resizeterm in -lcurses" >&5
3880 ac_lib_var=`echo curses'_'resizeterm | sed 'y%./+-%__p_%'`
3881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3883 else
3884 ac_save_LIBS="$LIBS"
3885 LIBS="-lcurses $LIBS"
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* Override any gcc2 internal prototype to avoid an error. */
3890 /* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3892 char resizeterm();
3894 int main() {
3895 resizeterm()
3896 ; return 0; }
3898 if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3899 rm -rf conftest*
3900 eval "ac_cv_lib_$ac_lib_var=yes"
3901 else
3902 echo "configure: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3904 rm -rf conftest*
3905 eval "ac_cv_lib_$ac_lib_var=no"
3907 rm -f conftest*
3908 LIBS="$ac_save_LIBS"
3911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3913 cat >> confdefs.h <<\EOF
3914 #define HAVE_RESIZETERM 1
3917 else
3918 echo "$ac_t""no" 1>&6
3921 echo $ac_n "checking for getbkgd in -lcurses""... $ac_c" 1>&6
3922 echo "configure:3923: checking for getbkgd in -lcurses" >&5
3923 ac_lib_var=`echo curses'_'getbkgd | sed 'y%./+-%__p_%'`
3924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3926 else
3927 ac_save_LIBS="$LIBS"
3928 LIBS="-lcurses $LIBS"
3929 cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932 /* Override any gcc2 internal prototype to avoid an error. */
3933 /* We use char because int might match the return type of a gcc2
3934 builtin and then its argument prototype would still apply. */
3935 char getbkgd();
3937 int main() {
3938 getbkgd()
3939 ; return 0; }
3941 if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3942 rm -rf conftest*
3943 eval "ac_cv_lib_$ac_lib_var=yes"
3944 else
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3947 rm -rf conftest*
3948 eval "ac_cv_lib_$ac_lib_var=no"
3950 rm -f conftest*
3951 LIBS="$ac_save_LIBS"
3954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3955 echo "$ac_t""yes" 1>&6
3956 cat >> confdefs.h <<\EOF
3957 #define HAVE_GETBKGD 1
3960 else
3961 echo "$ac_t""no" 1>&6
3967 echo $ac_n "checking "for GNU style IPX support"""... $ac_c" 1>&6
3968 echo "configure:3969: checking "for GNU style IPX support"" >&5
3969 if eval "test \"`echo '$''{'ac_cv_c_ipx_gnu'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3971 else
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 #include <sys/socket.h>
3976 #include <netipx/ipx.h>
3977 int main() {
3978 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
3979 ; return 0; }
3981 if { (eval echo configure:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3982 rm -rf conftest*
3983 ac_cv_c_ipx_gnu="yes"
3984 else
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3987 rm -rf conftest*
3988 ac_cv_c_ipx_gnu="no"
3990 rm -f conftest*
3994 echo "$ac_t""$ac_cv_c_ipx_gnu" 1>&6
3995 if test "$ac_cv_c_ipx_gnu" = "yes"
3996 then
3997 cat >> confdefs.h <<\EOF
3998 #define HAVE_IPX_GNU 1
4003 if test "$ac_cv_c_ipx_gnu" = "no"
4004 then
4005 echo $ac_n "checking "for linux style IPX support"""... $ac_c" 1>&6
4006 echo "configure:4007: checking "for linux style IPX support"" >&5
4007 if eval "test \"`echo '$''{'ac_cv_c_ipx_linux'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4009 else
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 #include <sys/socket.h>
4014 #include <asm/types.h>
4015 #include <linux/ipx.h>
4016 int main() {
4017 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
4018 ; return 0; }
4020 if { (eval echo configure:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4021 rm -rf conftest*
4022 ac_cv_c_ipx_linux="yes"
4023 else
4024 echo "configure: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4026 rm -rf conftest*
4027 ac_cv_c_ipx_linux="no"
4029 rm -f conftest*
4033 echo "$ac_t""$ac_cv_c_ipx_linux" 1>&6
4034 if test "$ac_cv_c_ipx_linux" = "yes"
4035 then
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_IPX_LINUX 1
4043 for ac_hdr in sys/soundcard.h machine/soundcard.h soundcard.h
4045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4047 echo "configure:4048: checking for $ac_hdr" >&5
4048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #include <$ac_hdr>
4056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4057 { (eval echo configure:4058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4059 if test -z "$ac_err"; then
4060 rm -rf conftest*
4061 eval "ac_cv_header_$ac_safe=yes"
4062 else
4063 echo "$ac_err" >&5
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4066 rm -rf conftest*
4067 eval "ac_cv_header_$ac_safe=no"
4069 rm -f conftest*
4071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4072 echo "$ac_t""yes" 1>&6
4073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4074 cat >> confdefs.h <<EOF
4075 #define $ac_tr_hdr 1
4077 break
4078 else
4079 echo "$ac_t""no" 1>&6
4081 done
4084 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
4085 echo "configure:4086: checking "for Open Sound System"" >&5
4086 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4088 else
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4093 #if defined(HAVE_SYS_SOUNDCARD_H)
4094 #include <sys/soundcard.h>
4095 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4096 #include <machine/soundcard.h>
4097 #elif defined(HAVE_SOUNDCARD_H)
4098 #include <soundcard.h>
4099 #endif
4101 int main() {
4104 /* check for one of the Open Sound System specific SNDCTL_ defines */
4105 #if !defined(SNDCTL_DSP_STEREO)
4106 #error No open sound system
4107 #endif
4109 ; return 0; }
4111 if { (eval echo configure:4112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4112 rm -rf conftest*
4113 ac_cv_c_opensoundsystem="yes"
4114 else
4115 echo "configure: failed program was:" >&5
4116 cat conftest.$ac_ext >&5
4117 rm -rf conftest*
4118 ac_cv_c_opensoundsystem="no"
4120 rm -f conftest*
4123 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
4125 if test "$ac_cv_c_opensoundsystem" = "yes"
4126 then
4127 cat >> confdefs.h <<\EOF
4128 #define HAVE_OSS 1
4133 echo $ac_n "checking "for Open Sound System/MIDI interface"""... $ac_c" 1>&6
4134 echo "configure:4135: checking "for Open Sound System/MIDI interface"" >&5
4135 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem_midi'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4137 else
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4142 #if defined(HAVE_SYS_SOUNDCARD_H)
4143 #include <sys/soundcard.h>
4144 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
4145 #include <machine/soundcard.h>
4146 #elif defined(HAVE_SOUNDCARD_H)
4147 #include <soundcard.h>
4148 #endif
4150 int main() {
4153 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
4154 #if !defined(SNDCTL_SEQ_SYNC)
4155 #error No open sound system MIDI interface
4156 #endif
4158 ; return 0; }
4160 if { (eval echo configure:4161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4161 rm -rf conftest*
4162 ac_cv_c_opensoundsystem_midi="yes"
4163 else
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4166 rm -rf conftest*
4167 ac_cv_c_opensoundsystem_midi="no"
4169 rm -f conftest*
4172 echo "$ac_t""$ac_cv_c_opensoundsystem_midi" 1>&6
4174 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
4175 then
4176 cat >> confdefs.h <<\EOF
4177 #define HAVE_OSS_MIDI 1
4182 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
4185 if test "x${GCC}" = "xyes"
4186 then
4187 CFLAGS="$CFLAGS -Wall"
4188 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
4189 echo "configure:4190: checking "for gcc strength-reduce bug"" >&5
4190 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192 else
4193 if test "$cross_compiling" = yes; then
4194 ac_cv_c_gcc_strength_bug="yes"
4195 else
4196 cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4200 int main(void) {
4201 static int Array[3];
4202 unsigned int B = 3;
4203 int i;
4204 for(i=0; i<B; i++) Array[i] = i - 3;
4205 exit( Array[1] != -2 );
4208 if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4209 then
4210 ac_cv_c_gcc_strength_bug="no"
4211 else
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4214 rm -fr conftest*
4215 ac_cv_c_gcc_strength_bug="yes"
4217 rm -fr conftest*
4222 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
4223 if test "$ac_cv_c_gcc_strength_bug" = "yes"
4224 then
4225 CFLAGS="$CFLAGS -fno-strength-reduce"
4230 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
4231 echo "configure:4232: checking "whether external symbols need an underscore prefix"" >&5
4232 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234 else
4235 saved_libs=$LIBS
4236 LIBS="conftest_asm.s $LIBS"
4237 cat > conftest_asm.s <<EOF
4238 .globl _ac_test
4239 _ac_test:
4240 .long 0
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 extern int ac_test;
4246 int main() {
4247 if (ac_test) return 1
4248 ; return 0; }
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4251 rm -rf conftest*
4252 ac_cv_c_extern_prefix="yes"
4253 else
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4256 rm -rf conftest*
4257 ac_cv_c_extern_prefix="no"
4259 rm -f conftest*
4260 LIBS=$saved_libs
4263 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
4264 if test "$ac_cv_c_extern_prefix" = "yes"
4265 then
4266 cat >> confdefs.h <<\EOF
4267 #define NEED_UNDERSCORE_PREFIX 1
4273 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
4274 echo "configure:4275: checking "whether assembler accepts .string"" >&5
4275 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4277 else
4278 saved_libs=$LIBS
4279 LIBS="conftest_asm.s $LIBS"
4280 cat > conftest_asm.s <<EOF
4281 .string "test"
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4287 int main() {
4289 ; return 0; }
4291 if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292 rm -rf conftest*
4293 ac_cv_c_asm_string="yes"
4294 else
4295 echo "configure: failed program was:" >&5
4296 cat conftest.$ac_ext >&5
4297 rm -rf conftest*
4298 ac_cv_c_asm_string="no"
4300 rm -f conftest*
4301 LIBS=$saved_libs
4304 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
4305 if test "$ac_cv_c_asm_string" = "yes"
4306 then
4307 cat >> confdefs.h <<\EOF
4308 #define HAVE_ASM_STRING 1
4314 DLLFLAGS=""
4315 BUILDFLAGS=""
4316 LDSHARED=""
4317 if test "$LIB_TARGET" = "libwine.so.1.0"
4318 then
4319 echo $ac_n "checking "whether we can build a Linux dll"""... $ac_c" 1>&6
4320 echo "configure:4321: checking "whether we can build a Linux dll"" >&5
4321 if eval "test \"`echo '$''{'ac_cv_c_dll_linux'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4323 else
4324 saved_cflags=$CFLAGS
4325 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4330 int main() {
4331 return 1
4332 ; return 0; }
4334 if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4335 rm -rf conftest*
4336 ac_cv_c_dll_linux="yes"
4337 else
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 rm -rf conftest*
4341 ac_cv_c_dll_linux="no"
4343 rm -f conftest*
4344 CFLAGS=$saved_cflags
4348 echo "$ac_t""$ac_cv_c_dll_linux" 1>&6
4349 if test "$ac_cv_c_dll_linux" = "yes"
4350 then
4351 BUILDFLAGS="-pic"
4352 DLLFLAGS="-fPIC"
4353 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so,-rpath,\$(libdir)"
4354 else
4355 echo $ac_n "checking "whether we can build a UnixWare dll"""... $ac_c" 1>&6
4356 echo "configure:4357: checking "whether we can build a UnixWare dll"" >&5
4357 if eval "test \"`echo '$''{'ac_cv_c_dll_unixware'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4359 else
4360 saved_cflags=$CFLAGS
4361 CFLAGS="$CFLAGS -fPIC -Wl,-G,conftest.so.1.0"
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4366 int main() {
4367 return 1
4368 ; return 0; }
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 rm -rf conftest*
4372 ac_cv_c_dll_unixware="yes"
4373 else
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4376 rm -rf conftest*
4377 ac_cv_c_dll_unixware="no"
4379 rm -f conftest*
4380 CFLAGS=$saved_cflags
4384 echo "$ac_t""$ac_cv_c_dll_unixware" 1>&6
4385 if test "$ac_cv_c_dll_unixware" = "yes"
4386 then
4387 BUILDFLAGS="-pic"
4388 DLLFLAGS="-fPIC"
4389 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/libwine.so"
4390 else
4391 echo $ac_n "checking "whether we can build a NetBSD dll"""... $ac_c" 1>&6
4392 echo "configure:4393: checking "whether we can build a NetBSD dll"" >&5
4393 if eval "test \"`echo '$''{'ac_cv_c_dll_netbsd'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4395 else
4396 saved_cflags=$CFLAGS
4397 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4402 int main() {
4403 return 1
4404 ; return 0; }
4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4407 rm -rf conftest*
4408 ac_cv_c_dll_netbsd="yes"
4409 else
4410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4412 rm -rf conftest*
4413 ac_cv_c_dll_netbsd="no"
4415 rm -f conftest*
4416 CFLAGS=$saved_cflags
4420 echo "$ac_t""$ac_cv_c_dll_netbsd" 1>&6
4421 if test "$ac_cv_c_dll_netbsd" = "yes"
4422 then
4423 BUILDFLAGS="-pic"
4424 DLLFLAGS="-fPIC"
4425 LDSHARED="ld -Bshareable -Bforcearchive"
4429 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
4430 then
4431 LIB_TARGET="libwine.a"
4439 wine_cv_libc_reentrant=no
4440 echo $ac_n "checking "for reentrant libc: __errno_location"""... $ac_c" 1>&6
4441 echo "configure:4442: checking "for reentrant libc: __errno_location"" >&5
4442 if eval "test \"`echo '$''{'wine_cv_libc_r__errno_location'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4444 else
4445 if test "$cross_compiling" = yes; then
4446 wine_cv_libc_r__errno_location=yes
4447 else
4448 cat > conftest.$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4451 int myerrno = 0;
4452 char buf[256];
4453 int *__errno_location(){return &myerrno;}
4454 main(){connect(0,buf,255); exit(!myerrno);}
4456 if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4457 then
4458 wine_cv_libc_r__errno_location=yes
4459 else
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4462 rm -fr conftest*
4463 wine_cv_libc_r__errno_location=no
4465 rm -fr conftest*
4471 echo "$ac_t""$wine_cv_libc_r__errno_location" 1>&6
4472 if test "$wine_cv_libc_r__errno_location" = "yes"
4473 then
4474 cat >> confdefs.h <<\EOF
4475 #define HAVE__ERRNO_LOCATION 1
4478 wine_cv_libc_reentrant=__errno_location
4480 echo $ac_n "checking "for reentrant libc: __error"""... $ac_c" 1>&6
4481 echo "configure:4482: checking "for reentrant libc: __error"" >&5
4482 if eval "test \"`echo '$''{'wine_cv_libc_r__error'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4484 else
4485 if test "$cross_compiling" = yes; then
4486 wine_cv_libc_r__error=yes
4487 else
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4491 int myerrno = 0;
4492 char buf[256];
4493 int *__error(){return &myerrno;}
4494 main(){connect(0,buf,255); exit(!myerrno);}
4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4497 then
4498 wine_cv_libc_r__error=yes
4499 else
4500 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4502 rm -fr conftest*
4503 wine_cv_libc_r__error=no
4505 rm -fr conftest*
4511 echo "$ac_t""$wine_cv_libc_r__error" 1>&6
4512 if test "$wine_cv_libc_r__error" = "yes"
4513 then
4514 cat >> confdefs.h <<\EOF
4515 #define HAVE__ERROR 1
4518 wine_cv_libc_reentrant=__error
4520 echo $ac_n "checking "for reentrant libc: ___errno"""... $ac_c" 1>&6
4521 echo "configure:4522: checking "for reentrant libc: ___errno"" >&5
4522 if eval "test \"`echo '$''{'wine_cv_libc_r___errno'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4524 else
4525 if test "$cross_compiling" = yes; then
4526 wine_cv_libc_r___errno=yes
4527 else
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4531 int myerrno = 0;
4532 char buf[256];
4533 int *___errno(){return &myerrno;}
4534 main(){connect(0,buf,255); exit(!myerrno);}
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4537 then
4538 wine_cv_libc_r___errno=yes
4539 else
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4542 rm -fr conftest*
4543 wine_cv_libc_r___errno=no
4545 rm -fr conftest*
4551 echo "$ac_t""$wine_cv_libc_r___errno" 1>&6
4552 if test "$wine_cv_libc_r___errno" = "yes"
4553 then
4554 cat >> confdefs.h <<\EOF
4555 #define HAVE___ERRNO 1
4558 wine_cv_libc_reentrant=___errno
4560 echo $ac_n "checking "for reentrant libc: __thr_errno"""... $ac_c" 1>&6
4561 echo "configure:4562: checking "for reentrant libc: __thr_errno"" >&5
4562 if eval "test \"`echo '$''{'wine_cv_libc_r__thr_errno'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4564 else
4565 if test "$cross_compiling" = yes; then
4566 wine_cv_libc_r__thr_errno=yes
4567 else
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 int myerrno = 0;
4572 char buf[256];
4573 int *__thr_errno(){return &myerrno;}
4574 main(){connect(0,buf,255); exit(!myerrno);}
4576 if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4577 then
4578 wine_cv_libc_r__thr_errno=yes
4579 else
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4582 rm -fr conftest*
4583 wine_cv_libc_r__thr_errno=no
4585 rm -fr conftest*
4591 echo "$ac_t""$wine_cv_libc_r__thr_errno" 1>&6
4592 if test "$wine_cv_libc_r__thr_errno" = "yes"
4593 then
4594 cat >> confdefs.h <<\EOF
4595 #define HAVE__THR_ERRNO 1
4598 wine_cv_libc_reentrant=__thr_errno
4600 if test "$wine_cv_libc_reentrant" = "no"
4601 then
4602 cat >> confdefs.h <<\EOF
4603 #define NO_REENTRANT_LIBC 1
4609 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
4610 then
4611 echo $ac_n "checking "for reentrant X libraries"""... $ac_c" 1>&6
4612 echo "configure:4613: checking "for reentrant X libraries"" >&5
4613 if eval "test \"`echo '$''{'wine_cv_x_reentrant'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4615 else
4616 if test "x$with_reentrant_x" = "xno"
4617 then
4618 wine_cv_x_reentrant=no
4619 else
4620 libX11_check=none
4621 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
4622 if test -r $dir/libX11.so; then
4623 libX11_check="-D $dir/libX11.so"
4624 break 1
4626 if test -r $dir/libX11.a; then
4627 libX11_check="$dir/libX11.a"
4628 break 1
4630 done
4631 if test "$libX11_check" != "none"; then
4632 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
4633 then
4634 wine_cv_x_reentrant=yes
4635 else
4636 wine_cv_x_reentrant=no
4638 else
4639 wine_cv_x_reentrant=unknown
4644 echo "$ac_t""$wine_cv_x_reentrant" 1>&6
4645 else
4646 wine_cv_x_reentrant=no
4648 if test "$wine_cv_x_reentrant" = "no"
4649 then
4650 cat >> confdefs.h <<\EOF
4651 #define NO_REENTRANT_X11 1
4657 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4658 echo "configure:4659: checking whether byte ordering is bigendian" >&5
4659 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4661 else
4662 ac_cv_c_bigendian=unknown
4663 # See if sys/param.h defines the BYTE_ORDER macro.
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 #include <sys/types.h>
4668 #include <sys/param.h>
4669 int main() {
4671 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4672 bogus endian macros
4673 #endif
4674 ; return 0; }
4676 if { (eval echo configure:4677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4677 rm -rf conftest*
4678 # It does; now see whether it defined to BIG_ENDIAN or not.
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 #include <sys/types.h>
4683 #include <sys/param.h>
4684 int main() {
4686 #if BYTE_ORDER != BIG_ENDIAN
4687 not big endian
4688 #endif
4689 ; return 0; }
4691 if { (eval echo configure:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4692 rm -rf conftest*
4693 ac_cv_c_bigendian=yes
4694 else
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4697 rm -rf conftest*
4698 ac_cv_c_bigendian=no
4700 rm -f conftest*
4701 else
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4705 rm -f conftest*
4706 if test $ac_cv_c_bigendian = unknown; then
4707 if test "$cross_compiling" = yes; then
4708 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4709 else
4710 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 main () {
4714 /* Are we little or big endian? From Harbison&Steele. */
4715 union
4717 long l;
4718 char c[sizeof (long)];
4719 } u;
4720 u.l = 1;
4721 exit (u.c[sizeof (long) - 1] == 1);
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4725 then
4726 ac_cv_c_bigendian=no
4727 else
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4730 rm -fr conftest*
4731 ac_cv_c_bigendian=yes
4733 rm -fr conftest*
4739 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4740 if test $ac_cv_c_bigendian = yes; then
4741 cat >> confdefs.h <<\EOF
4742 #define WORDS_BIGENDIAN 1
4749 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4750 # for constant arguments. Useless!
4751 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4752 echo "configure:4753: checking for working alloca.h" >&5
4753 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4755 else
4756 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4759 #include <alloca.h>
4760 int main() {
4761 void *p = alloca(2 * sizeof(int));
4762 ; return 0; }
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765 rm -rf conftest*
4766 ac_cv_header_alloca_h=yes
4767 else
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4770 rm -rf conftest*
4771 ac_cv_header_alloca_h=no
4773 rm -f conftest*
4776 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4777 if test $ac_cv_header_alloca_h = yes; then
4778 cat >> confdefs.h <<\EOF
4779 #define HAVE_ALLOCA_H 1
4784 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4785 echo "configure:4786: checking for alloca" >&5
4786 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4788 else
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4793 #ifdef __GNUC__
4794 # define alloca __builtin_alloca
4795 #else
4796 # ifdef _MSC_VER
4797 # include <malloc.h>
4798 # define alloca _alloca
4799 # else
4800 # if HAVE_ALLOCA_H
4801 # include <alloca.h>
4802 # else
4803 # ifdef _AIX
4804 #pragma alloca
4805 # else
4806 # ifndef alloca /* predefined by HP cc +Olibcalls */
4807 char *alloca ();
4808 # endif
4809 # endif
4810 # endif
4811 # endif
4812 #endif
4814 int main() {
4815 char *p = (char *) alloca(1);
4816 ; return 0; }
4818 if { (eval echo configure:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4819 rm -rf conftest*
4820 ac_cv_func_alloca_works=yes
4821 else
4822 echo "configure: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4824 rm -rf conftest*
4825 ac_cv_func_alloca_works=no
4827 rm -f conftest*
4830 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4831 if test $ac_cv_func_alloca_works = yes; then
4832 cat >> confdefs.h <<\EOF
4833 #define HAVE_ALLOCA 1
4838 if test $ac_cv_func_alloca_works = no; then
4839 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4840 # that cause trouble. Some versions do not even contain alloca or
4841 # contain a buggy version. If you still want to use their alloca,
4842 # use ar to extract alloca.o from them instead of compiling alloca.c.
4843 ALLOCA=alloca.${ac_objext}
4844 cat >> confdefs.h <<\EOF
4845 #define C_ALLOCA 1
4849 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4850 echo "configure:4851: checking whether alloca needs Cray hooks" >&5
4851 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4853 else
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 #if defined(CRAY) && ! defined(CRAY2)
4858 webecray
4859 #else
4860 wenotbecray
4861 #endif
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 egrep "webecray" >/dev/null 2>&1; then
4866 rm -rf conftest*
4867 ac_cv_os_cray=yes
4868 else
4869 rm -rf conftest*
4870 ac_cv_os_cray=no
4872 rm -f conftest*
4876 echo "$ac_t""$ac_cv_os_cray" 1>&6
4877 if test $ac_cv_os_cray = yes; then
4878 for ac_func in _getb67 GETB67 getb67; do
4879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4880 echo "configure:4881: checking for $ac_func" >&5
4881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4882 echo $ac_n "(cached) $ac_c" 1>&6
4883 else
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 /* System header to define __stub macros and hopefully few prototypes,
4888 which can conflict with char $ac_func(); below. */
4889 #include <assert.h>
4890 /* Override any gcc2 internal prototype to avoid an error. */
4891 /* We use char because int might match the return type of a gcc2
4892 builtin and then its argument prototype would still apply. */
4893 char $ac_func();
4895 int main() {
4897 /* The GNU C library defines this for functions which it implements
4898 to always fail with ENOSYS. Some functions are actually named
4899 something starting with __ and the normal name is an alias. */
4900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4901 choke me
4902 #else
4903 $ac_func();
4904 #endif
4906 ; return 0; }
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4909 rm -rf conftest*
4910 eval "ac_cv_func_$ac_func=yes"
4911 else
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4914 rm -rf conftest*
4915 eval "ac_cv_func_$ac_func=no"
4917 rm -f conftest*
4920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4921 echo "$ac_t""yes" 1>&6
4922 cat >> confdefs.h <<EOF
4923 #define CRAY_STACKSEG_END $ac_func
4926 break
4927 else
4928 echo "$ac_t""no" 1>&6
4931 done
4934 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4935 echo "configure:4936: checking stack direction for C alloca" >&5
4936 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4938 else
4939 if test "$cross_compiling" = yes; then
4940 ac_cv_c_stack_direction=0
4941 else
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 find_stack_direction ()
4947 static char *addr = 0;
4948 auto char dummy;
4949 if (addr == 0)
4951 addr = &dummy;
4952 return find_stack_direction ();
4954 else
4955 return (&dummy > addr) ? 1 : -1;
4957 main ()
4959 exit (find_stack_direction() < 0);
4962 if { (eval echo configure:4963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4963 then
4964 ac_cv_c_stack_direction=1
4965 else
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4968 rm -fr conftest*
4969 ac_cv_c_stack_direction=-1
4971 rm -fr conftest*
4976 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4977 cat >> confdefs.h <<EOF
4978 #define STACK_DIRECTION $ac_cv_c_stack_direction
4983 for ac_func in \
4984 _lwp_create \
4985 clone \
4986 getnetbyaddr \
4987 getnetbyname \
4988 getpagesize \
4989 getprotobyname \
4990 getprotobynumber \
4991 getservbyport \
4992 getsockopt \
4993 inet_network \
4994 memmove \
4995 rfork \
4996 select \
4997 sendmsg \
4998 settimeofday \
4999 sigaltstack \
5000 statfs \
5001 strcasecmp \
5002 strerror \
5003 strncasecmp \
5004 tcgetattr \
5005 timegm \
5006 usleep \
5007 vfscanf \
5008 wait4 \
5009 waitpid \
5012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5013 echo "configure:5014: checking for $ac_func" >&5
5014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5016 else
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 /* System header to define __stub macros and hopefully few prototypes,
5021 which can conflict with char $ac_func(); below. */
5022 #include <assert.h>
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5026 char $ac_func();
5028 int main() {
5030 /* The GNU C library defines this for functions which it implements
5031 to always fail with ENOSYS. Some functions are actually named
5032 something starting with __ and the normal name is an alias. */
5033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5034 choke me
5035 #else
5036 $ac_func();
5037 #endif
5039 ; return 0; }
5041 if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5042 rm -rf conftest*
5043 eval "ac_cv_func_$ac_func=yes"
5044 else
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5047 rm -rf conftest*
5048 eval "ac_cv_func_$ac_func=no"
5050 rm -f conftest*
5053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5054 echo "$ac_t""yes" 1>&6
5055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5056 cat >> confdefs.h <<EOF
5057 #define $ac_tr_func 1
5060 else
5061 echo "$ac_t""no" 1>&6
5063 done
5067 for ac_hdr in \
5068 a.out.h \
5069 a_out.h \
5070 arpa/inet.h \
5071 arpa/nameser.h \
5072 curses.h \
5073 elf.h \
5074 float.h \
5075 libio.h \
5076 link.h \
5077 linux/cdrom.h \
5078 linux/joystick.h \
5079 linux/ucdrom.h \
5080 ncurses.h \
5081 net/if.h \
5082 netinet/in.h \
5083 netinet/tcp.h \
5084 pty.h \
5085 resolv.h \
5086 sched.h \
5087 socket.h \
5088 strings.h \
5089 sys/cdio.h \
5090 sys/errno.h \
5091 sys/file.h \
5092 sys/filio.h \
5093 sys/ipc.h \
5094 sys/lwp.h \
5095 sys/mman.h \
5096 sys/modem.h \
5097 sys/mount.h \
5098 sys/msg.h \
5099 sys/param.h \
5100 sys/signal.h \
5101 sys/shm.h \
5102 sys/socket.h \
5103 sys/sockio.h \
5104 sys/statfs.h \
5105 sys/strtio.h \
5106 sys/syscall.h \
5107 sys/wait.h \
5108 sys/v86.h \
5109 sys/v86intr.h \
5110 sys/vfs.h \
5111 sys/vm86.h \
5112 syscall.h \
5113 ucontext.h \
5114 wctype.h \
5117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5119 echo "configure:5120: checking for $ac_hdr" >&5
5120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5122 else
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 #include <$ac_hdr>
5128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5129 { (eval echo configure:5130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5131 if test -z "$ac_err"; then
5132 rm -rf conftest*
5133 eval "ac_cv_header_$ac_safe=yes"
5134 else
5135 echo "$ac_err" >&5
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 rm -rf conftest*
5139 eval "ac_cv_header_$ac_safe=no"
5141 rm -f conftest*
5143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5144 echo "$ac_t""yes" 1>&6
5145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5146 cat >> confdefs.h <<EOF
5147 #define $ac_tr_hdr 1
5150 else
5151 echo "$ac_t""no" 1>&6
5153 done
5155 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
5156 echo "configure:5157: checking whether stat file-mode macros are broken" >&5
5157 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5159 else
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 #include <sys/types.h>
5164 #include <sys/stat.h>
5166 #if defined(S_ISBLK) && defined(S_IFDIR)
5167 # if S_ISBLK (S_IFDIR)
5168 You lose.
5169 # endif
5170 #endif
5172 #if defined(S_ISBLK) && defined(S_IFCHR)
5173 # if S_ISBLK (S_IFCHR)
5174 You lose.
5175 # endif
5176 #endif
5178 #if defined(S_ISLNK) && defined(S_IFREG)
5179 # if S_ISLNK (S_IFREG)
5180 You lose.
5181 # endif
5182 #endif
5184 #if defined(S_ISSOCK) && defined(S_IFREG)
5185 # if S_ISSOCK (S_IFREG)
5186 You lose.
5187 # endif
5188 #endif
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192 egrep "You lose" >/dev/null 2>&1; then
5193 rm -rf conftest*
5194 ac_cv_header_stat_broken=yes
5195 else
5196 rm -rf conftest*
5197 ac_cv_header_stat_broken=no
5199 rm -f conftest*
5203 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
5204 if test $ac_cv_header_stat_broken = yes; then
5205 cat >> confdefs.h <<\EOF
5206 #define STAT_MACROS_BROKEN 1
5213 echo $ac_n "checking for working const""... $ac_c" 1>&6
5214 echo "configure:5215: checking for working const" >&5
5215 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5217 else
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5222 int main() {
5224 /* Ultrix mips cc rejects this. */
5225 typedef int charset[2]; const charset x = {0,0};
5226 /* SunOS 4.1.1 cc rejects this. */
5227 char const *const *ccp;
5228 char **p;
5229 /* NEC SVR4.0.2 mips cc rejects this. */
5230 struct point {int x, y;};
5231 static struct point const zero = {0,0};
5232 /* AIX XL C 1.02.0.0 rejects this.
5233 It does not let you subtract one const X* pointer from another in an arm
5234 of an if-expression whose if-part is not a constant expression */
5235 const char *g = "string";
5236 ccp = &g + (g ? g-g : 0);
5237 /* HPUX 7.0 cc rejects these. */
5238 ++ccp;
5239 p = (char**) ccp;
5240 ccp = (char const *const *) p;
5241 { /* SCO 3.2v4 cc rejects this. */
5242 char *t;
5243 char const *s = 0 ? (char *) 0 : (char const *) 0;
5245 *t++ = 0;
5247 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5248 int x[] = {25, 17};
5249 const int *foo = &x[0];
5250 ++foo;
5252 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5253 typedef const int *iptr;
5254 iptr p = 0;
5255 ++p;
5257 { /* AIX XL C 1.02.0.0 rejects this saying
5258 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5259 struct s { int j; const int *ap[3]; };
5260 struct s *b; b->j = 5;
5262 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5263 const int foo = 10;
5266 ; return 0; }
5268 if { (eval echo configure:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5269 rm -rf conftest*
5270 ac_cv_c_const=yes
5271 else
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5274 rm -rf conftest*
5275 ac_cv_c_const=no
5277 rm -f conftest*
5280 echo "$ac_t""$ac_cv_c_const" 1>&6
5281 if test $ac_cv_c_const = no; then
5282 cat >> confdefs.h <<\EOF
5283 #define const
5288 echo $ac_n "checking for inline""... $ac_c" 1>&6
5289 echo "configure:5290: checking for inline" >&5
5290 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5292 else
5293 ac_cv_c_inline=no
5294 for ac_kw in inline __inline__ __inline; do
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5299 int main() {
5300 } int $ac_kw foo() {
5301 ; return 0; }
5303 if { (eval echo configure:5304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5304 rm -rf conftest*
5305 ac_cv_c_inline=$ac_kw; break
5306 else
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 rm -f conftest*
5311 done
5315 echo "$ac_t""$ac_cv_c_inline" 1>&6
5316 case "$ac_cv_c_inline" in
5317 inline | yes) ;;
5318 no) cat >> confdefs.h <<\EOF
5319 #define inline
5322 *) cat >> confdefs.h <<EOF
5323 #define inline $ac_cv_c_inline
5326 esac
5328 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5329 echo "configure:5330: checking for ANSI C header files" >&5
5330 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5332 else
5333 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5336 #include <stdlib.h>
5337 #include <stdarg.h>
5338 #include <string.h>
5339 #include <float.h>
5341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5342 { (eval echo configure:5343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5344 if test -z "$ac_err"; then
5345 rm -rf conftest*
5346 ac_cv_header_stdc=yes
5347 else
5348 echo "$ac_err" >&5
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5351 rm -rf conftest*
5352 ac_cv_header_stdc=no
5354 rm -f conftest*
5356 if test $ac_cv_header_stdc = yes; then
5357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5361 #include <string.h>
5363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5364 egrep "memchr" >/dev/null 2>&1; then
5366 else
5367 rm -rf conftest*
5368 ac_cv_header_stdc=no
5370 rm -f conftest*
5374 if test $ac_cv_header_stdc = yes; then
5375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5379 #include <stdlib.h>
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 egrep "free" >/dev/null 2>&1; then
5384 else
5385 rm -rf conftest*
5386 ac_cv_header_stdc=no
5388 rm -f conftest*
5392 if test $ac_cv_header_stdc = yes; then
5393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5394 if test "$cross_compiling" = yes; then
5396 else
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 #include <ctype.h>
5401 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5402 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5404 int main () { int i; for (i = 0; i < 256; i++)
5405 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5406 exit (0); }
5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5410 then
5412 else
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5415 rm -fr conftest*
5416 ac_cv_header_stdc=no
5418 rm -fr conftest*
5424 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5425 if test $ac_cv_header_stdc = yes; then
5426 cat >> confdefs.h <<\EOF
5427 #define STDC_HEADERS 1
5432 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5433 echo "configure:5434: checking for size_t" >&5
5434 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5436 else
5437 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 #include <sys/types.h>
5441 #if STDC_HEADERS
5442 #include <stdlib.h>
5443 #include <stddef.h>
5444 #endif
5446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5448 rm -rf conftest*
5449 ac_cv_type_size_t=yes
5450 else
5451 rm -rf conftest*
5452 ac_cv_type_size_t=no
5454 rm -f conftest*
5457 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5458 if test $ac_cv_type_size_t = no; then
5459 cat >> confdefs.h <<\EOF
5460 #define size_t unsigned
5465 echo $ac_n "checking size of long long""... $ac_c" 1>&6
5466 echo "configure:5467: checking size of long long" >&5
5467 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5469 else
5470 if test "$cross_compiling" = yes; then
5471 ac_cv_sizeof_long_long=0
5472 else
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 #include <stdio.h>
5477 main()
5479 FILE *f=fopen("conftestval", "w");
5480 if (!f) exit(1);
5481 fprintf(f, "%d\n", sizeof(long long));
5482 exit(0);
5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5486 then
5487 ac_cv_sizeof_long_long=`cat conftestval`
5488 else
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5491 rm -fr conftest*
5492 ac_cv_sizeof_long_long=0
5494 rm -fr conftest*
5498 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
5499 cat >> confdefs.h <<EOF
5500 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5505 if test "$ac_cv_header_linux_joystick_h" = "yes"
5506 then
5507 echo $ac_n "checking "whether linux/joystick.h uses the Linux 2.2+ API"""... $ac_c" 1>&6
5508 echo "configure:5509: checking "whether linux/joystick.h uses the Linux 2.2+ API"" >&5
5509 if eval "test \"`echo '$''{'wine_cv_linux_joystick_22_api'+set}'`\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5511 else
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5516 #include <sys/ioctl.h>
5517 #include <linux/joystick.h>
5519 struct js_event blub;
5520 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
5521 #error "no 2.2 header"
5522 #endif
5524 int main() {
5525 /*empty*/
5526 ; return 0; }
5528 if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5529 rm -rf conftest*
5530 wine_cv_linux_joystick_22_api=yes
5531 else
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5534 rm -rf conftest*
5535 wine_cv_linux_joystick_22_api=no
5537 rm -f conftest*
5541 echo "$ac_t""$wine_cv_linux_joystick_22_api" 1>&6
5542 if test "$wine_cv_linux_joystick_22_api"
5543 then
5544 cat >> confdefs.h <<\EOF
5545 #define HAVE_LINUX_22_JOYSTICK_API 1
5552 if test "$ac_cv_header_sys_vfs_h" = "yes"
5553 then
5554 echo $ac_n "checking "whether sys/vfs.h defines statfs"""... $ac_c" 1>&6
5555 echo "configure:5556: checking "whether sys/vfs.h defines statfs"" >&5
5556 if eval "test \"`echo '$''{'wine_cv_sys_vfs_has_statfs'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5558 else
5559 cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5563 #include <sys/types.h>
5564 #ifdef HAVE_SYS_PARAM_H
5565 # include <sys/param.h>
5566 #endif
5567 #include <sys/vfs.h>
5569 int main() {
5571 struct statfs stfs;
5573 memset(&stfs,0,sizeof(stfs));
5575 ; return 0; }
5577 if { (eval echo configure:5578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5578 rm -rf conftest*
5579 wine_cv_sys_vfs_has_statfs=yes
5580 else
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5583 rm -rf conftest*
5584 wine_cv_sys_vfs_has_statfs=no
5587 rm -f conftest*
5591 echo "$ac_t""$wine_cv_sys_vfs_has_statfs" 1>&6
5592 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
5593 then
5594 cat >> confdefs.h <<\EOF
5595 #define STATFS_DEFINED_BY_SYS_VFS 1
5601 if test "$ac_cv_header_sys_statfs_h" = "yes"
5602 then
5603 echo $ac_n "checking "whether sys/statfs.h defines statfs"""... $ac_c" 1>&6
5604 echo "configure:5605: checking "whether sys/statfs.h defines statfs"" >&5
5605 if eval "test \"`echo '$''{'wine_cv_sys_statfs_has_statfs'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5607 else
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5612 #include <sys/types.h>
5613 #ifdef HAVE_SYS_PARAM_H
5614 # include <sys/param.h>
5615 #endif
5616 #include <sys/statfs.h>
5618 int main() {
5620 struct statfs stfs;
5622 ; return 0; }
5624 if { (eval echo configure:5625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5625 rm -rf conftest*
5626 wine_cv_sys_statfs_has_statfs=yes
5627 else
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5630 rm -rf conftest*
5631 wine_cv_sys_statfs_has_statfs=no
5634 rm -f conftest*
5638 echo "$ac_t""$wine_cv_sys_statfs_has_statfs" 1>&6
5639 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
5640 then
5641 cat >> confdefs.h <<\EOF
5642 #define STATFS_DEFINED_BY_SYS_STATFS 1
5648 if test "$ac_cv_header_sys_mount_h" = "yes"
5649 then
5650 echo $ac_n "checking "whether sys/mount.h defines statfs"""... $ac_c" 1>&6
5651 echo "configure:5652: checking "whether sys/mount.h defines statfs"" >&5
5652 if eval "test \"`echo '$''{'wine_cv_sys_mount_has_statfs'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5654 else
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5659 #include <sys/types.h>
5660 #ifdef HAVE_SYS_PARAM_H
5661 # include <sys/param.h>
5662 #endif
5663 #include <sys/mount.h>
5665 int main() {
5667 struct statfs stfs;
5669 ; return 0; }
5671 if { (eval echo configure:5672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5672 rm -rf conftest*
5673 wine_cv_sys_mount_has_statfs=yes
5674 else
5675 echo "configure: failed program was:" >&5
5676 cat conftest.$ac_ext >&5
5677 rm -rf conftest*
5678 wine_cv_sys_mount_has_statfs=no
5681 rm -f conftest*
5685 echo "$ac_t""$wine_cv_sys_mount_has_statfs" 1>&6
5686 if test "$wine_cv_sys_mount_has_statfs" = "yes"
5687 then
5688 cat >> confdefs.h <<\EOF
5689 #define STATFS_DEFINED_BY_SYS_MOUNT 1
5696 echo $ac_n "checking "for statfs.f_bfree"""... $ac_c" 1>&6
5697 echo "configure:5698: checking "for statfs.f_bfree"" >&5
5698 if eval "test \"`echo '$''{'wine_cv_statfs_bfree'+set}'`\" = set"; then
5699 echo $ac_n "(cached) $ac_c" 1>&6
5700 else
5701 if test "x$statfs_bfree" = "xno"
5702 then
5703 wine_cv_statfs_bfree=no
5704 else
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5709 #include <sys/types.h>
5710 #ifdef HAVE_SYS_PARAM_H
5711 # include <sys/param.h>
5712 #endif
5713 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5714 # include <sys/mount.h>
5715 #else
5716 # ifdef STATFS_DEFINED_BY_SYS_VFS
5717 # include <sys/vfs.h>
5718 # else
5719 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5720 # include <sys/statfs.h>
5721 # endif
5722 # endif
5723 #endif
5725 int main() {
5727 struct statfs stfs;
5729 stfs.f_bfree++;
5731 ; return 0; }
5733 if { (eval echo configure:5734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5734 rm -rf conftest*
5735 wine_cv_statfs_bfree=yes
5736 else
5737 echo "configure: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5739 rm -rf conftest*
5740 wine_cv_statfs_bfree=no
5743 rm -f conftest*
5747 echo "$ac_t""$wine_cv_statfs_bfree" 1>&6
5748 if test "$wine_cv_statfs_bfree" = "yes"
5749 then
5750 cat >> confdefs.h <<\EOF
5751 #define STATFS_HAS_BFREE 1
5756 echo $ac_n "checking "for statfs.f_bavail"""... $ac_c" 1>&6
5757 echo "configure:5758: checking "for statfs.f_bavail"" >&5
5758 if eval "test \"`echo '$''{'wine_cv_statfs_bavail'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5760 else
5761 if test "x$statfs_bavail" = "xno"
5762 then
5763 wine_cv_statfs_bavail=no
5764 else
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5769 #include <sys/types.h>
5770 #ifdef HAVE_SYS_PARAM_H
5771 # include <sys/param.h>
5772 #endif
5773 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
5774 # include <sys/mount.h>
5775 #else
5776 # ifdef STATFS_DEFINED_BY_SYS_VFS
5777 # include <sys/vfs.h>
5778 # else
5779 # ifdef STATFS_DEFINED_BY_SYS_STATFS
5780 # include <sys/statfs.h>
5781 # endif
5782 # endif
5783 #endif
5785 int main() {
5787 struct statfs stfs;
5789 stfs.f_bavail++;
5791 ; return 0; }
5793 if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5794 rm -rf conftest*
5795 wine_cv_statfs_bavail=yes
5796 else
5797 echo "configure: failed program was:" >&5
5798 cat conftest.$ac_ext >&5
5799 rm -rf conftest*
5800 wine_cv_statfs_bavail=no
5803 rm -f conftest*
5807 echo "$ac_t""$wine_cv_statfs_bavail" 1>&6
5808 if test "$wine_cv_statfs_bavail" = "yes"
5809 then
5810 cat >> confdefs.h <<\EOF
5811 #define STATFS_HAS_BAVAIL 1
5817 echo $ac_n "checking "for working sigaltstack"""... $ac_c" 1>&6
5818 echo "configure:5819: checking "for working sigaltstack"" >&5
5819 if eval "test \"`echo '$''{'ac_cv_c_working_sigaltstack'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5821 else
5822 if test "$cross_compiling" = yes; then
5823 ac_cv_c_working_sigaltstack="no"
5825 else
5826 cat > conftest.$ac_ext <<EOF
5827 #line 5828 "configure"
5828 #include "confdefs.h"
5830 #include <stdio.h>
5831 #include <time.h> /* <sys/time.h> ? bad magic without end */
5832 #include <sys/types.h>
5833 #include <sys/signal.h>
5834 #ifdef HAVE_SYS_PARAM_H
5835 # include <sys/param.h>
5836 #endif
5837 #ifdef HAVE_SYSCALL_H
5838 # include <syscall.h>
5839 #else
5840 # ifdef HAVE_SYS_SYSCALL_H
5841 # include <sys/syscall.h>
5842 # endif
5843 #endif
5845 unsigned char *xaltstack;
5848 main(int argc,char **argv) {
5849 struct sigaltstack ss;
5851 xaltstack = malloc(16384);
5852 ss.ss_sp = xaltstack;
5853 ss.ss_size = 16384;
5854 ss.ss_flags = 0;
5855 if (sigaltstack(&ss, NULL) < 0) {
5856 /* this catches the glibc case */
5857 perror("sigaltstack");
5858 return (1); /* aka exit(1) aka fail */
5860 /* assume it works. */
5861 return 0; /* OK */
5865 if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5866 then
5867 ac_cv_c_working_sigaltstack="yes"
5868 else
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5871 rm -fr conftest*
5872 ac_cv_c_working_sigaltstack="no"
5874 rm -fr conftest*
5879 echo "$ac_t""$ac_cv_c_working_sigaltstack" 1>&6
5881 if test "$ac_cv_c_working_sigaltstack" = "yes"
5882 then
5883 cat >> confdefs.h <<\EOF
5884 #define HAVE_WORKING_SIGALTSTACK 1
5891 echo $ac_n "checking "for msg_accrights in struct msghdr"""... $ac_c" 1>&6
5892 echo "configure:5893: checking "for msg_accrights in struct msghdr"" >&5
5893 if eval "test \"`echo '$''{'ac_cv_c_msg_accrights'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5895 else
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 #include <sys/types.h>
5900 #include <sys/socket.h>
5901 int main() {
5902 struct msghdr hdr; hdr.msg_accrights=0
5903 ; return 0; }
5905 if { (eval echo configure:5906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5906 rm -rf conftest*
5907 ac_cv_c_msg_accrights="yes"
5908 else
5909 echo "configure: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 rm -rf conftest*
5912 ac_cv_c_msg_accrights="no"
5914 rm -f conftest*
5917 echo "$ac_t""$ac_cv_c_msg_accrights" 1>&6
5918 if test "$ac_cv_c_msg_accrights" = "yes"
5919 then
5920 cat >> confdefs.h <<\EOF
5921 #define HAVE_MSGHDR_ACCRIGHTS 1
5927 echo $ac_n "checking "whether we need to define __i386__"""... $ac_c" 1>&6
5928 echo "configure:5929: checking "whether we need to define __i386__"" >&5
5929 if eval "test \"`echo '$''{'ac_cv_cpp_def_i386'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5931 else
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5935 #if (defined(i386) || defined(__i386)) && !defined(__i386__)
5937 #endif
5939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5940 egrep "yes" >/dev/null 2>&1; then
5941 rm -rf conftest*
5942 ac_cv_cpp_def_i386="yes"
5943 else
5944 rm -rf conftest*
5945 ac_cv_cpp_def_i386="no"
5947 rm -f conftest*
5951 echo "$ac_t""$ac_cv_cpp_def_i386" 1>&6
5952 if test "$ac_cv_cpp_def_i386" = "yes"
5953 then
5954 CFLAGS="$CFLAGS -D__i386__"
5955 LINTFLAGS="$LINTFLAGS -D__i386__"
5958 GCC_NO_BUILTIN=""
5959 if test "$GCC" = "yes"
5960 then
5961 GCC_NO_BUILTIN="-fno-builtin"
5966 MAKE_RULES=Make.rules
5969 trap '' 1 2 15
5970 cat > confcache <<\EOF
5971 # This file is a shell script that caches the results of configure
5972 # tests run on this system so they can be shared between configure
5973 # scripts and configure runs. It is not useful on other systems.
5974 # If it contains results you don't want to keep, you may remove or edit it.
5976 # By default, configure uses ./config.cache as the cache file,
5977 # creating it if it does not exist already. You can give configure
5978 # the --cache-file=FILE option to use a different cache file; that is
5979 # what configure does when it calls configure scripts in
5980 # subdirectories, so they share the cache.
5981 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5982 # config.status only pays attention to the cache file if you give it the
5983 # --recheck option to rerun configure.
5986 # The following way of writing the cache mishandles newlines in values,
5987 # but we know of no workaround that is simple, portable, and efficient.
5988 # So, don't put newlines in cache variables' values.
5989 # Ultrix sh set writes to stderr and can't be redirected directly,
5990 # and sets the high bit in the cache file unless we assign to the vars.
5991 (set) 2>&1 |
5992 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5993 *ac_space=\ *)
5994 # `set' does not quote correctly, so add quotes (double-quote substitution
5995 # turns \\\\ into \\, and sed turns \\ into \).
5996 sed -n \
5997 -e "s/'/'\\\\''/g" \
5998 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6001 # `set' quotes correctly as required by POSIX, so do not add quotes.
6002 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6004 esac >> confcache
6005 if cmp -s $cache_file confcache; then
6007 else
6008 if test -w $cache_file; then
6009 echo "updating cache $cache_file"
6010 cat confcache > $cache_file
6011 else
6012 echo "not updating unwritable cache $cache_file"
6015 rm -f confcache
6017 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6020 # Let make expand exec_prefix.
6021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6023 # Any assignment to VPATH causes Sun make to only execute
6024 # the first set of double-colon rules, so remove it if not needed.
6025 # If there is a colon in the path, we need to keep it.
6026 if test "x$srcdir" = x.; then
6027 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6030 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6032 DEFS=-DHAVE_CONFIG_H
6034 # Without the "./", some shells look in PATH for config.status.
6035 : ${CONFIG_STATUS=./config.status}
6037 echo creating $CONFIG_STATUS
6038 rm -f $CONFIG_STATUS
6039 cat > $CONFIG_STATUS <<EOF
6040 #! /bin/sh
6041 # Generated automatically by configure.
6042 # Run this file to recreate the current configuration.
6043 # This directory was configured as follows,
6044 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6046 # $0 $ac_configure_args
6048 # Compiler output produced by configure, useful for debugging
6049 # configure, is in ./config.log if it exists.
6051 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6052 for ac_option
6054 case "\$ac_option" in
6055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6056 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6057 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6058 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6059 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6060 exit 0 ;;
6061 -help | --help | --hel | --he | --h)
6062 echo "\$ac_cs_usage"; exit 0 ;;
6063 *) echo "\$ac_cs_usage"; exit 1 ;;
6064 esac
6065 done
6067 ac_given_srcdir=$srcdir
6068 ac_given_INSTALL="$INSTALL"
6070 trap 'rm -fr `echo "
6071 Make.rules
6072 Makefile
6073 console/Makefile
6074 controls/Makefile
6075 debugger/Makefile
6076 dlls/Makefile
6077 dlls/advapi32/Makefile
6078 dlls/avifil32/Makefile
6079 dlls/comctl32/Makefile
6080 dlls/commdlg/Makefile
6081 dlls/crtdll/Makefile
6082 dlls/dciman32/Makefile
6083 dlls/display/Makefile
6084 dlls/dplayx/Makefile
6085 dlls/dsound/Makefile
6086 dlls/icmp/Makefile
6087 dlls/imagehlp/Makefile
6088 dlls/imm32/Makefile
6089 dlls/lzexpand/Makefile
6090 dlls/mouse/Makefile
6091 dlls/mpr/Makefile
6092 dlls/msacm/Makefile
6093 dlls/msacm32/Makefile
6094 dlls/msnet32/Makefile
6095 dlls/msvideo/Makefile
6096 dlls/ntdll/Makefile
6097 dlls/odbc32/Makefile
6098 dlls/ole32/Makefile
6099 dlls/oleaut32/Makefile
6100 dlls/olecli/Makefile
6101 dlls/oledlg/Makefile
6102 dlls/olesvr/Makefile
6103 dlls/psapi/Makefile
6104 dlls/rasapi32/Makefile
6105 dlls/shell32/Makefile
6106 dlls/sound/Makefile
6107 dlls/stress/Makefile
6108 dlls/tapi32/Makefile
6109 dlls/ver/Makefile
6110 dlls/version/Makefile
6111 dlls/win32s/Makefile
6112 dlls/win87em/Makefile
6113 dlls/winaspi/Makefile
6114 dlls/windebug/Makefile
6115 dlls/wing/Makefile
6116 dlls/winmm/Makefile
6117 dlls/winmm/mcianim/Makefile
6118 dlls/winmm/mciavi/Makefile
6119 dlls/winmm/mcicda/Makefile
6120 dlls/winmm/mciseq/Makefile
6121 dlls/winmm/mciwave/Makefile
6122 dlls/winmm/midimap/Makefile
6123 dlls/winmm/wavemap/Makefile
6124 dlls/winmm/wineoss/Makefile
6125 dlls/winspool/Makefile
6126 dlls/wnaspi32/Makefile
6127 documentation/Makefile
6128 documentation/wine.conf.man
6129 documentation/wine.man
6130 files/Makefile
6131 graphics/Makefile
6132 graphics/enhmetafiledrv/Makefile
6133 graphics/metafiledrv/Makefile
6134 graphics/psdrv/Makefile
6135 graphics/ttydrv/Makefile
6136 graphics/win16drv/Makefile
6137 graphics/x11drv/Makefile
6138 if1632/Makefile
6139 include/Makefile
6140 library/Makefile
6141 libtest/Makefile
6142 loader/Makefile
6143 loader/ne/Makefile
6144 loader/dos/Makefile
6145 memory/Makefile
6146 misc/Makefile
6147 miscemu/Makefile
6148 msdos/Makefile
6149 objects/Makefile
6150 ole/Makefile
6151 programs/Makefile
6152 programs/clock/Makefile
6153 programs/cmdlgtst/Makefile
6154 programs/control/Makefile
6155 programs/avitools/Makefile
6156 programs/osversioncheck/Makefile
6157 programs/notepad/Makefile
6158 programs/progman/Makefile
6159 programs/regtest/Makefile
6160 programs/regapi/Makefile
6161 programs/view/Makefile
6162 programs/wcmd/Makefile
6163 programs/winhelp/Makefile
6164 programs/winver/Makefile
6165 rc/Makefile
6166 relay32/Makefile
6167 resources/Makefile
6168 scheduler/Makefile
6169 server/Makefile
6170 tools/Makefile
6171 tools/wrc/Makefile
6172 tsx11/Makefile
6173 win32/Makefile
6174 windows/Makefile
6175 windows/ttydrv/Makefile
6176 windows/x11drv/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6178 cat >> $CONFIG_STATUS <<EOF
6180 # Protect against being on the right side of a sed subst in config.status.
6181 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6182 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6183 $ac_vpsub
6184 $extrasub
6185 s%@SHELL@%$SHELL%g
6186 s%@CFLAGS@%$CFLAGS%g
6187 s%@CPPFLAGS@%$CPPFLAGS%g
6188 s%@CXXFLAGS@%$CXXFLAGS%g
6189 s%@FFLAGS@%$FFLAGS%g
6190 s%@DEFS@%$DEFS%g
6191 s%@LDFLAGS@%$LDFLAGS%g
6192 s%@LIBS@%$LIBS%g
6193 s%@exec_prefix@%$exec_prefix%g
6194 s%@prefix@%$prefix%g
6195 s%@program_transform_name@%$program_transform_name%g
6196 s%@bindir@%$bindir%g
6197 s%@sbindir@%$sbindir%g
6198 s%@libexecdir@%$libexecdir%g
6199 s%@datadir@%$datadir%g
6200 s%@sysconfdir@%$sysconfdir%g
6201 s%@sharedstatedir@%$sharedstatedir%g
6202 s%@localstatedir@%$localstatedir%g
6203 s%@libdir@%$libdir%g
6204 s%@includedir@%$includedir%g
6205 s%@oldincludedir@%$oldincludedir%g
6206 s%@infodir@%$infodir%g
6207 s%@mandir@%$mandir%g
6208 s%@PROGEXT@%$PROGEXT%g
6209 s%@MAIN_TARGET@%$MAIN_TARGET%g
6210 s%@LIB_TARGET@%$LIB_TARGET%g
6211 s%@ALT_LINK@%$ALT_LINK%g
6212 s%@OPTIONS@%$OPTIONS%g
6213 s%@SET_MAKE@%$SET_MAKE%g
6214 s%@CC@%$CC%g
6215 s%@CPP@%$CPP%g
6216 s%@X_CFLAGS@%$X_CFLAGS%g
6217 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6218 s%@X_LIBS@%$X_LIBS%g
6219 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6220 s%@YACC@%$YACC%g
6221 s%@LEX@%$LEX%g
6222 s%@LEXLIB@%$LEXLIB%g
6223 s%@RANLIB@%$RANLIB%g
6224 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6225 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6226 s%@INSTALL_DATA@%$INSTALL_DATA%g
6227 s%@LN_S@%$LN_S%g
6228 s%@C2MAN@%$C2MAN%g
6229 s%@LDCONFIG@%$LDCONFIG%g
6230 s%@LINT@%$LINT%g
6231 s%@LINTFLAGS@%$LINTFLAGS%g
6232 s%@XLIB@%$XLIB%g
6233 s%@BUILDFLAGS@%$BUILDFLAGS%g
6234 s%@DLLFLAGS@%$DLLFLAGS%g
6235 s%@LDSHARED@%$LDSHARED%g
6236 s%@ALLOCA@%$ALLOCA%g
6237 s%@GCC_NO_BUILTIN@%$GCC_NO_BUILTIN%g
6238 /@MAKE_RULES@/r $MAKE_RULES
6239 s%@MAKE_RULES@%%g
6241 CEOF
6244 cat >> $CONFIG_STATUS <<\EOF
6246 # Split the substitutions into bite-sized pieces for seds with
6247 # small command number limits, like on Digital OSF/1 and HP-UX.
6248 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6249 ac_file=1 # Number of current file.
6250 ac_beg=1 # First line for current file.
6251 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6252 ac_more_lines=:
6253 ac_sed_cmds=""
6254 while $ac_more_lines; do
6255 if test $ac_beg -gt 1; then
6256 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6257 else
6258 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6260 if test ! -s conftest.s$ac_file; then
6261 ac_more_lines=false
6262 rm -f conftest.s$ac_file
6263 else
6264 if test -z "$ac_sed_cmds"; then
6265 ac_sed_cmds="sed -f conftest.s$ac_file"
6266 else
6267 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6269 ac_file=`expr $ac_file + 1`
6270 ac_beg=$ac_end
6271 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6273 done
6274 if test -z "$ac_sed_cmds"; then
6275 ac_sed_cmds=cat
6279 cat >> $CONFIG_STATUS <<EOF
6281 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
6282 Makefile
6283 console/Makefile
6284 controls/Makefile
6285 debugger/Makefile
6286 dlls/Makefile
6287 dlls/advapi32/Makefile
6288 dlls/avifil32/Makefile
6289 dlls/comctl32/Makefile
6290 dlls/commdlg/Makefile
6291 dlls/crtdll/Makefile
6292 dlls/dciman32/Makefile
6293 dlls/display/Makefile
6294 dlls/dplayx/Makefile
6295 dlls/dsound/Makefile
6296 dlls/icmp/Makefile
6297 dlls/imagehlp/Makefile
6298 dlls/imm32/Makefile
6299 dlls/lzexpand/Makefile
6300 dlls/mouse/Makefile
6301 dlls/mpr/Makefile
6302 dlls/msacm/Makefile
6303 dlls/msacm32/Makefile
6304 dlls/msnet32/Makefile
6305 dlls/msvideo/Makefile
6306 dlls/ntdll/Makefile
6307 dlls/odbc32/Makefile
6308 dlls/ole32/Makefile
6309 dlls/oleaut32/Makefile
6310 dlls/olecli/Makefile
6311 dlls/oledlg/Makefile
6312 dlls/olesvr/Makefile
6313 dlls/psapi/Makefile
6314 dlls/rasapi32/Makefile
6315 dlls/shell32/Makefile
6316 dlls/sound/Makefile
6317 dlls/stress/Makefile
6318 dlls/tapi32/Makefile
6319 dlls/ver/Makefile
6320 dlls/version/Makefile
6321 dlls/win32s/Makefile
6322 dlls/win87em/Makefile
6323 dlls/winaspi/Makefile
6324 dlls/windebug/Makefile
6325 dlls/wing/Makefile
6326 dlls/winmm/Makefile
6327 dlls/winmm/mcianim/Makefile
6328 dlls/winmm/mciavi/Makefile
6329 dlls/winmm/mcicda/Makefile
6330 dlls/winmm/mciseq/Makefile
6331 dlls/winmm/mciwave/Makefile
6332 dlls/winmm/midimap/Makefile
6333 dlls/winmm/wavemap/Makefile
6334 dlls/winmm/wineoss/Makefile
6335 dlls/winspool/Makefile
6336 dlls/wnaspi32/Makefile
6337 documentation/Makefile
6338 documentation/wine.conf.man
6339 documentation/wine.man
6340 files/Makefile
6341 graphics/Makefile
6342 graphics/enhmetafiledrv/Makefile
6343 graphics/metafiledrv/Makefile
6344 graphics/psdrv/Makefile
6345 graphics/ttydrv/Makefile
6346 graphics/win16drv/Makefile
6347 graphics/x11drv/Makefile
6348 if1632/Makefile
6349 include/Makefile
6350 library/Makefile
6351 libtest/Makefile
6352 loader/Makefile
6353 loader/ne/Makefile
6354 loader/dos/Makefile
6355 memory/Makefile
6356 misc/Makefile
6357 miscemu/Makefile
6358 msdos/Makefile
6359 objects/Makefile
6360 ole/Makefile
6361 programs/Makefile
6362 programs/clock/Makefile
6363 programs/cmdlgtst/Makefile
6364 programs/control/Makefile
6365 programs/avitools/Makefile
6366 programs/osversioncheck/Makefile
6367 programs/notepad/Makefile
6368 programs/progman/Makefile
6369 programs/regtest/Makefile
6370 programs/regapi/Makefile
6371 programs/view/Makefile
6372 programs/wcmd/Makefile
6373 programs/winhelp/Makefile
6374 programs/winver/Makefile
6375 rc/Makefile
6376 relay32/Makefile
6377 resources/Makefile
6378 scheduler/Makefile
6379 server/Makefile
6380 tools/Makefile
6381 tools/wrc/Makefile
6382 tsx11/Makefile
6383 win32/Makefile
6384 windows/Makefile
6385 windows/ttydrv/Makefile
6386 windows/x11drv/Makefile "}
6388 cat >> $CONFIG_STATUS <<\EOF
6389 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6390 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6391 case "$ac_file" in
6392 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6393 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6394 *) ac_file_in="${ac_file}.in" ;;
6395 esac
6397 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6399 # Remove last slash and all that follows it. Not all systems have dirname.
6400 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6401 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6402 # The file is in a subdirectory.
6403 test ! -d "$ac_dir" && mkdir "$ac_dir"
6404 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6405 # A "../" for each directory in $ac_dir_suffix.
6406 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6407 else
6408 ac_dir_suffix= ac_dots=
6411 case "$ac_given_srcdir" in
6412 .) srcdir=.
6413 if test -z "$ac_dots"; then top_srcdir=.
6414 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6415 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6416 *) # Relative path.
6417 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6418 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6419 esac
6421 case "$ac_given_INSTALL" in
6422 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6423 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6424 esac
6426 echo creating "$ac_file"
6427 rm -f "$ac_file"
6428 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6429 case "$ac_file" in
6430 *Makefile*) ac_comsub="1i\\
6431 # $configure_input" ;;
6432 *) ac_comsub= ;;
6433 esac
6435 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6436 sed -e "$ac_comsub
6437 s%@configure_input@%$configure_input%g
6438 s%@srcdir@%$srcdir%g
6439 s%@top_srcdir@%$top_srcdir%g
6440 s%@INSTALL@%$INSTALL%g
6441 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6442 fi; done
6443 rm -f conftest.s*
6445 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6446 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6448 # ac_d sets the value in "#define NAME VALUE" lines.
6449 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6450 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6451 ac_dC='\3'
6452 ac_dD='%g'
6453 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6454 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6455 ac_uB='\([ ]\)%\1#\2define\3'
6456 ac_uC=' '
6457 ac_uD='\4%g'
6458 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6459 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6460 ac_eB='$%\1#\2define\3'
6461 ac_eC=' '
6462 ac_eD='%g'
6464 if test "${CONFIG_HEADERS+set}" != set; then
6466 cat >> $CONFIG_STATUS <<EOF
6467 CONFIG_HEADERS="include/config.h"
6469 cat >> $CONFIG_STATUS <<\EOF
6471 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6473 case "$ac_file" in
6474 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6475 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6476 *) ac_file_in="${ac_file}.in" ;;
6477 esac
6479 echo creating $ac_file
6481 rm -f conftest.frag conftest.in conftest.out
6482 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6483 cat $ac_file_inputs > conftest.in
6487 # Transform confdefs.h into a sed script conftest.vals that substitutes
6488 # the proper values into config.h.in to produce config.h. And first:
6489 # Protect against being on the right side of a sed subst in config.status.
6490 # Protect against being in an unquoted here document in config.status.
6491 rm -f conftest.vals
6492 cat > conftest.hdr <<\EOF
6493 s/[\\&%]/\\&/g
6494 s%[\\$`]%\\&%g
6495 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6496 s%ac_d%ac_u%gp
6497 s%ac_u%ac_e%gp
6499 sed -n -f conftest.hdr confdefs.h > conftest.vals
6500 rm -f conftest.hdr
6502 # This sed command replaces #undef with comments. This is necessary, for
6503 # example, in the case of _POSIX_SOURCE, which is predefined and required
6504 # on some systems where configure will not decide to define it.
6505 cat >> conftest.vals <<\EOF
6506 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6509 # Break up conftest.vals because some shells have a limit on
6510 # the size of here documents, and old seds have small limits too.
6512 rm -f conftest.tail
6513 while :
6515 ac_lines=`grep -c . conftest.vals`
6516 # grep -c gives empty output for an empty file on some AIX systems.
6517 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6518 # Write a limited-size here document to conftest.frag.
6519 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6520 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6521 echo 'CEOF
6522 sed -f conftest.frag conftest.in > conftest.out
6523 rm -f conftest.in
6524 mv conftest.out conftest.in
6525 ' >> $CONFIG_STATUS
6526 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6527 rm -f conftest.vals
6528 mv conftest.tail conftest.vals
6529 done
6530 rm -f conftest.vals
6532 cat >> $CONFIG_STATUS <<\EOF
6533 rm -f conftest.frag conftest.h
6534 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6535 cat conftest.in >> conftest.h
6536 rm -f conftest.in
6537 if cmp -s $ac_file conftest.h 2>/dev/null; then
6538 echo "$ac_file is unchanged"
6539 rm -f conftest.h
6540 else
6541 # Remove last slash and all that follows it. Not all systems have dirname.
6542 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6543 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6544 # The file is in a subdirectory.
6545 test ! -d "$ac_dir" && mkdir "$ac_dir"
6547 rm -f $ac_file
6548 mv conftest.h $ac_file
6550 fi; done
6553 cat >> $CONFIG_STATUS <<EOF
6556 cat >> $CONFIG_STATUS <<\EOF
6558 exit 0
6560 chmod +x $CONFIG_STATUS
6561 rm -fr confdefs* $ac_clean_files
6562 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6565 if test "$have_x" = "no"
6566 then
6567 echo
6568 echo "*** Warning: X development files not found. Wine will be built without"
6569 echo "*** X support, which currently does not work, and would probably not be"
6570 echo "*** what you want anyway. You will need to install devel packages of"
6571 echo "*** Xlib/Xfree86 and Xpm at the very least."
6572 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
6573 then
6574 echo
6575 echo "*** Warning: Xpm development files not found. Wine will be built without"
6576 echo "*** Xpm support, which currently does not work. You will need to install"
6577 echo "*** devel packages of Xpm."
6580 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
6581 then
6582 echo
6583 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
6584 echo "*** terminal resize support. Consider upgrading ncurses."
6587 if test "$wine_cv_libc_reentrant" = "no"
6588 then
6589 echo
6590 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
6591 echo "*** thread support. Consider upgrading libc to a more recent"
6592 echo "*** reentrant version of libc."
6595 if test "$wine_cv_mesa_version_OK" = "no"
6596 then
6597 echo
6598 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
6599 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)"
6602 echo
6603 echo "Configure finished. Do 'make depend && make' to compile Wine."
6604 echo