Fixed some difficulties with the font on vertical tabs. Also plugged a
[wine.git] / configure.in
blobfeb84a9cbdd8bca2223ed3f96fc58e7e56e97471
1 dnl Process this file with autoconf to produce a configure script.
2 dnl Author: Michael Patra   <micky@marie.physik.tu-berlin.de>
3 dnl                         <patra@itp1.physik.tu-berlin.de>
4 AC_REVISION([configure.in 1.00])
5 AC_INIT(controls/edit.c)                
6 AC_CONFIG_HEADER(include/config.h)
7 AC_CONFIG_AUX_DIR(tools)
9 dnl **** Command-line arguments ****
11 dnl Default values
12 LIBEXT=so       # library type .so or .a
13 TRACE_MSGS=yes  # the TRACE() macro
14 DEBUG_MSGS=yes  # the TRACE(), WARN(), and FIXME() macros.
15 CURSES=yes
16 OPENGL=normal
18 AC_ARG_ENABLE(debug,
19 [  --disable-debug         compile out all debugging messages],
20 [if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi])
22 AC_ARG_ENABLE(opengl,
23 [  --enable-opengl         force usage of OpenGL even if the latter is thread-safe],
24 [if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi])
26 AC_ARG_ENABLE(trace,
27 [  --disable-trace         compile out TRACE messages],
28 [if test "$enableval" = "no"; then TRACE_MSGS="no"; fi])
30 AC_ARG_WITH(curses,
31 [  --without-curses        do not use curses],
32 [if test "$withval" = "no"; then CURSES="no"; fi])
34 AC_ARG_WITH(reentrant-x,
35 [  --without-reentrant-x   compile for use with non-reentrant X libraries])
37 AC_SUBST(OPTIONS)
39 if test "$DEBUG_MSGS" = "no"
40 then
41     AC_DEFINE(NO_DEBUG_MSGS)
42     AC_DEFINE(NO_TRACE_MSGS)
43 else
44     if test "$TRACE_MSGS" = "no"
45     then
46         AC_DEFINE(NO_TRACE_MSGS)
47     fi
50 dnl **** Check for some programs ****
52 AC_PROG_MAKE_SET
53 AC_PROG_CC
54 AC_PROG_CPP
55 AC_PATH_XTRA
56 AC_PROG_YACC
57 AC_PROG_LEX
58 AC_CHECK_PROGS(XLEX,$LEX flex lex,none)
59 if test "$XLEX" = "none"
60 then
61         echo "*** Error: No suitable lex found. ***"
62         echo "    Please install the 'flex' package."
63         exit 1
65 AC_DECL_YYTEXT
66 AC_PROG_RANLIB
67 AC_PROG_INSTALL
68 AC_PROG_LN_S
69 AC_CHECK_PROG(C2MAN,c2man,c2man,\$(TOPSRCDIR)/tools/c2man.pl)
70 AC_PATH_PROG(LDCONFIG, ldconfig, true, /sbin:/usr/sbin:$PATH)
71 AC_CYGWIN
73 dnl Check for lint
74 AC_CHECK_PROGS(LINT, lclint lint)
75 if test "$LINT" = "lint"
76 then
77   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
78   dnl LINTFLAGS='-D_SIZE_T "-Dsize_t=unsigned long" -errchk=longptr64'
80 AC_SUBST(LINT)
81 AC_SUBST(LINTFLAGS)
83 if test "$CYGWIN" = "yes"
84 then
85     LDCOMBINE="ld -r --enable-stdcall-fixup"
86 else
87     LDCOMBINE="ld -r"
89 AC_SUBST(LDCOMBINE)
91 dnl **** Check for some libraries ****
93 dnl Check for -lm for BeOS
94 AC_CHECK_LIB(m,sqrt)
95 dnl Check for -li386 for NetBSD and OpenBSD
96 AC_CHECK_LIB(i386,i386_set_ldt)
97 dnl Check for -lossaudio for NetBSD
98 AC_CHECK_LIB(ossaudio,_oss_ioctl)
99 dnl Check for -lw for Solaris
100 AC_CHECK_LIB(w,iswalnum)
101 dnl Check for -lnsl for Solaris
102 AC_CHECK_FUNCS(gethostbyname,, AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl", AC_CHECK_LIB(socket, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl", , -lnsl), -lsocket))
103 dnl Check for -lsocket for Solaris
104 AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect))
105 dnl Check for -lxpg4 for FreeBSD
106 AC_CHECK_LIB(xpg4,setrunelocale)
107 dnl Check for -lmmap for OS/2
108 AC_CHECK_LIB(mmap,mmap)
109 dnl Check for openpty
110 AC_CHECK_FUNCS(openpty,,
111         AC_CHECK_LIB(util,openpty,
112                 AC_DEFINE(HAVE_OPENPTY)
113                 LIBS="$LIBS -lutil"
114         ))
116 AC_CHECK_HEADERS(dlfcn.h,
117         AC_CHECK_FUNCS(dlopen,
118                 AC_DEFINE(HAVE_DL_API),
119                 AC_CHECK_LIB(dl,dlopen,
120                         AC_DEFINE(HAVE_DL_API)
121                         LIBS="$LIBS -ldl",
122                         LIBEXT="a"
123                 )
124         ),
125         LIBEXT="a"
127 AC_SUBST(XLIB)
128 AC_SUBST(X_DLLS)
129 X_DLLS=""
130 AC_SUBST(XFILES)
131 XFILES=""
132 AC_SUBST(OPENGLFILES)
133 OPENGLFILES=""
134 AC_SUBST(OPENGL32_DLL)
135 OPENGL32_DLL=""
136 AC_SUBST(DGA_SRCS)
137 DGA_SRCS=""
138 AC_SUBST(DGA2_SRCS)
139 DGA2_SRCS=""
140 AC_SUBST(MESA_SRCS)
141 MESA_SRCS=""
142 if test "$have_x" = "yes"
143 then
144     XLIB="-lXext -lX11"
145     ac_save_CPPFLAGS="$CPPFLAGS"
146     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
148     dnl *** Check for -lXpm
149     AC_CHECK_HEADERS(X11/xpm.h,
150       [ dnl *** If X11/xpm.h exists...
151         AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData,
152           [ AC_DEFINE(HAVE_LIBXXPM) X_PRE_LIBS="$X_PRE_LIBS -lXpm"],,
153           $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
154         )
155       ],
156       [ dnl *** If X11/xpm.h does not exist...
157         dnl NOTE: autoconf does not allow commas inside the third 
158         dnl       parameter to AC_CHECK_HEADERS, due to some quoting
159         dnl       magic it does.
160         echo "Redhat            :       xpm xpm-devel"
161         echo "Caldera OpenLinux :       xpm xpm-devel xpm-devel-static"
162         echo "SuSE              :       xpm"
163         echo "Debian/Corel Linux:       xpm4g xpm4g-dev"
164         echo
165         echo "Or get the sources from ftp.x.org and all its mirror sites from "
166         echo "the directory /contrib/libraries."
167         echo
168         exit 1
169       ]
170     )
172     dnl *** All three of the following tests require X11/Xlib.h
173     AC_CHECK_HEADERS(X11/Xlib.h,
174       [
175         dnl *** Check for X Shm extension
176         AC_CHECK_HEADERS(X11/extensions/XShm.h,
177             [ dnl *** If X11/extensions/XShm.h exists...
178               AC_CHECK_LIB(Xext, XShmQueryExtension,
179               AC_DEFINE(HAVE_LIBXXSHM),,
180               $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
181             ],
182             AC_MSG_WARN([Xshm extension not found!!])
183         )
185         dnl *** Check for X shape extension
186         AC_CHECK_HEADERS(X11/Xlib.h X11/extensions/shape.h,
187             [ dnl *** If X11/extensions/shape.h exists...
188               AC_CHECK_LIB(Xext,XShapeQueryExtension,
189               AC_DEFINE(HAVE_LIBXSHAPE),,
190               $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
191             ],
192             AC_MSG_WARN([XShape extension found!!])
193         )
194         
195         dnl *** Check for XFree86 DGA / DGA 2.0 extension
196         AC_CHECK_HEADERS(X11/extensions/xf86dga.h,
197             [ dnl *** If X11/extensions/xf86dga.h exists, check 
198               dnl *** for XDGAQueryExtension()...
199               AC_CHECK_LIB(Xxf86dga, XDGAQueryExtension,
200                 [ dnl *** If found...
201                   AC_DEFINE(HAVE_LIBXXF86DGA2)
202                   AC_DEFINE(HAVE_LIBXXF86DGA)
203                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
204                   DGA_SRCS='$(DGA_SRCS)'
205                   DGA2_SRCS='$(DGA2_SRCS)'
206                ],
207                 [ dnl *** If not found, look for XF86DGAQueryExtension()
208                   dnl *** instead (DGA 2.0 not found)...
209                   AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
210                     [ AC_DEFINE(HAVE_LIBXXF86DGA)
211                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
212                       DGA_SRCS='$(DGA_SRCS)'
213                     ],,
214                     $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
215                   )
216                 ],
217                 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
218               )
219             ],
220             AC_MSG_WARN([DGA extension not found!!])
221         )
223         dnl *** Check for XFree86 VMODE extension
224         AC_CHECK_HEADERS(X11/extensions/xf86vmode.h,
225             [ dnl *** If X11/extensions/xf86vmode.h exists...
226                 AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
227                   [ AC_DEFINE(HAVE_LIBXXF86VM)
228                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
229                   ],,
230                   $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
231                 )
232             ],
233             AC_MSG_WARN([XFree86 VMODE extension not found!!])
234         )
236         dnl *** Check for XVideo extension supporting XvImages
237         AC_CHECK_HEADERS(X11/extensions/Xvlib.h,
238             [ dnl *** If X11/extensions/Xvlib.h exists...
239                 AC_CHECK_LIB(Xv, XvShmCreateImage,
240                   [ AC_DEFINE(HAVE_XVIDEO)
241                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
242                   ],,
243                   $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
244                 )
245             ],
246             AC_MSG_WARN([XVideo extension not found !!])
247         )
249       ]
250     ) dnl *** End of X11/Xlib.h check
252     dnl Check for the presence of OpenGL
253     if test $OPENGL = "yes" -o $OPENGL = "normal"
254     then
255         AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h)
256         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
257         then
258             dnl Check for some problems due to old Mesa versions
259             AC_CACHE_CHECK("for up-to-date OpenGL version", wine_cv_opengl_version_OK,
260               AC_TRY_COMPILE(
261                 [#include <GL/gl.h>],
262                 [GLenum test = GL_UNSIGNED_SHORT_5_6_5;],
263                 [wine_cv_opengl_version_OK="yes"],
264                 [wine_cv_opengl_version_OK="no"]
265               )
266             )
268             dnl Check for the thread-safety of the OpenGL library
269             AC_CACHE_CHECK("for thread-safe OpenGL version", 
270                            wine_cv_opengl_version_threadsafe,
271               [saved_libs=$LIBS
272                LIBS="$X_LIBS -lGL"
273                AC_TRY_LINK([],[pthread_getspecific();],
274                               [wine_cv_opengl_version_threadsafe="yes"],
275                               [wine_cv_opengl_version_threadsafe="no"])
276                LIBS=$saved_libs]
277             )
279             if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
280             then
281                 dnl Check for the presence of the library
282                 AC_CHECK_LIB(GL,glXCreateContext,
283                              X_PRE_LIBS="$X_PRE_LIBS -lGL"
284                              MESA_SRCS='$(MESA_SRCS)'
285                              ,,
286                              $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
288                 if test $ac_cv_lib_GL_glXCreateContext = "yes"
289                 then
291                         OPENGLFILES='$(OPENGLFILES)'
292                         AC_DEFINE(HAVE_OPENGL)
294                         AC_CHECK_LIB(GL,glXGetProcAddressARB,AC_DEFINE(HAVE_GLX_GETPROCADDRESS),,$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
296                         if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
297                         then
298                                AC_CACHE_CHECK("for OpenGL extension functions prototypes", wine_cv_extension_prototypes,
299                                   AC_TRY_COMPILE([#include <GL/gl.h>
300                                                   #ifdef HAVE_GL_GLEXT_H
301                                                   # include <GL/glext.h>
302                                                   #endif
303                                                   ],
304                                                  [PFNGLCOLORTABLEEXTPROC test_proc;],
305                                                  [wine_cv_extension_prototypes="yes"],
306                                                  [wine_cv_extension_prototypes="no"]
307                                   )
308                                 )
309                                 if test $wine_cv_extension_prototypes = "yes"
310                                 then
311                                         AC_DEFINE(HAVE_GLEXT_PROTOTYPES)
312                                 fi
314                                 OPENGL32_DLL=opengl32
315                         fi
316                 fi
317              fi
318          fi
319     fi
321     CPPFLAGS="$ac_save_CPPFLAGS"
322     X_DLLS='$(X_DLLS)'
323     XFILES='$(XFILES)'
324 else
325     XLIB=""
326     X_CFLAGS=""
327     X_LIBS=""
330 dnl **** Check which curses lib to use ***
331 if test "$CURSES" = "yes"
332 then
333     AC_CHECK_HEADERS(ncurses.h)
334     if test "$ac_cv_header_ncurses_h" = "yes"
335     then 
336         AC_CHECK_LIB(ncurses,waddch)
337     fi
338     if test "$ac_cv_lib_ncurses_waddch" = "yes"
339     then
340         AC_CHECK_LIB(ncurses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
341         AC_CHECK_LIB(ncurses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
342     else
343         AC_CHECK_HEADERS(curses.h)
344         if test "$ac_cv_header_curses_h" = "yes"
345         then    
346             AC_CHECK_LIB(curses,waddch)
347             if test "$ac_cv_lib_curses_waddch" = "yes"
348             then
349                 AC_CHECK_LIB(curses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
350                 AC_CHECK_LIB(curses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
351             fi
352         fi
353     fi
356 dnl **** Check for IPX (currently Linux only) ****
357 AC_CACHE_CHECK("for GNU style IPX support", ac_cv_c_ipx_gnu,
358  AC_TRY_COMPILE(
359    [#include <sys/socket.h>
360     #include <netipx/ipx.h>],
361    [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
362    [ac_cv_c_ipx_gnu="yes"],
363    [ac_cv_c_ipx_gnu="no"])
365 if test "$ac_cv_c_ipx_gnu" = "yes"
366 then
367     AC_DEFINE(HAVE_IPX_GNU)
370 if test "$ac_cv_c_ipx_gnu" = "no"
371 then
372  AC_CACHE_CHECK("for linux style IPX support", ac_cv_c_ipx_linux,
373   AC_TRY_COMPILE(
374     [#include <sys/socket.h>
375      #include <asm/types.h>
376      #include <linux/ipx.h>],
377     [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
378     [ac_cv_c_ipx_linux="yes"],
379     [ac_cv_c_ipx_linux="no"])
380   )
381   if test "$ac_cv_c_ipx_linux" = "yes"
382   then
383       AC_DEFINE(HAVE_IPX_LINUX)
384   fi
387 dnl **** Check for Open Sound System ****
388 AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h soundcard.h, break)
390 AC_CACHE_CHECK("for Open Sound System",
391         ac_cv_c_opensoundsystem,
392         AC_TRY_COMPILE([
393         #if defined(HAVE_SYS_SOUNDCARD_H)
394                 #include <sys/soundcard.h>
395         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
396                 #include <machine/soundcard.h>
397         #elif defined(HAVE_SOUNDCARD_H)
398                 #include <soundcard.h>
399         #endif
400         ],[
402 /* check for one of the Open Sound System specific SNDCTL_ defines */
403 #if !defined(SNDCTL_DSP_STEREO)
404 #error No open sound system
405 #endif
406 ],ac_cv_c_opensoundsystem="yes",ac_cv_c_opensoundsystem="no"))
408 if test "$ac_cv_c_opensoundsystem" = "yes"
409 then
410     AC_DEFINE(HAVE_OSS)
413 AC_CACHE_CHECK("for Open Sound System/MIDI interface",
414         ac_cv_c_opensoundsystem_midi,
415         AC_TRY_COMPILE([
416         #if defined(HAVE_SYS_SOUNDCARD_H)
417                 #include <sys/soundcard.h>
418         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
419                 #include <machine/soundcard.h>
420         #elif defined(HAVE_SOUNDCARD_H)
421                 #include <soundcard.h>
422         #endif
423         ],[
425 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
426 #if !defined(SNDCTL_SEQ_SYNC)
427 #error No open sound system MIDI interface
428 #endif
429 ],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no"))
431 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
432 then
433     AC_DEFINE(HAVE_OSS_MIDI)
436 dnl **** If ln -s doesn't work, use cp instead ****
437 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
439 dnl **** Check for gcc strength-reduce bug ****
441 if test "x${GCC}" = "xyes"
442 then
443   CFLAGS="$CFLAGS -Wall"
444   AC_CACHE_CHECK( "for gcc strength-reduce bug", ac_cv_c_gcc_strength_bug,
445                   AC_TRY_RUN([
446 int     L[[4]] = {0,1,2,3};
447 int main(void) {
448   static int Array[[3]];
449   unsigned int B = 3;
450   int i;
451   for(i=0; i<B; i++) Array[[i]] = i - 3;
452   for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
453   L[[i]] = 4;
454   
455   exit( Array[[1]] != -2 || L[[2]] != 3);
457     ac_cv_c_gcc_strength_bug="no",
458     ac_cv_c_gcc_strength_bug="yes",
459     ac_cv_c_gcc_strength_bug="yes") )
460   if test "$ac_cv_c_gcc_strength_bug" = "yes"
461   then
462     CFLAGS="$CFLAGS -fno-strength-reduce"
463   fi
465   dnl Check for -mpreferred-stack-boundary
466   AC_CACHE_CHECK("for gcc -mpreferred-stack-boundary=2 support",
467                  ac_cv_c_gcc_stack_boundary,
468   [saved_cflags=$CFLAGS
469   CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
470   AC_TRY_COMPILE(,[return 0],ac_cv_c_gcc_stack_boundary="yes",ac_cv_c_gcc_stack_boundary="no")
471   CFLAGS=$saved_cflags
472   ])
473   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
474   then
475     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
476   fi
479 dnl **** Check if we need to place .type inside a .def directive ****
481 AC_CACHE_CHECK("whether .type must sit inside a .def directive",
482                ac_cv_c_type_in_def,
483 [saved_libs=$LIBS
484 LIBS="conftest_asm.s $LIBS"
485 cat > conftest_asm.s <<EOF
486         .globl _ac_test
487         .def _ac_test; .scl 2; .type 32; .endef
488 _ac_test:
489         .long 0
491 AC_TRY_LINK(,,ac_cv_c_type_in_def="yes",ac_cv_c_type_in_def="no")
492 LIBS=$saved_libs])
493 if test "$ac_cv_c_type_in_def" = "yes"
494 then
495   AC_DEFINE(NEED_TYPE_IN_DEF)
498 dnl **** Check for underscore on external symbols ****
500 AC_CACHE_CHECK("whether external symbols need an underscore prefix",
501                ac_cv_c_extern_prefix,
502 [saved_libs=$LIBS
503 LIBS="conftest_asm.s $LIBS"
504 cat > conftest_asm.s <<EOF
505         .globl _ac_test
506 _ac_test:
507         .long 0
509 AC_TRY_LINK([extern int ac_test;],[if (ac_test) return 1],
510             ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no")
511 LIBS=$saved_libs])
512 if test "$ac_cv_c_extern_prefix" = "yes"
513 then
514   AC_DEFINE(NEED_UNDERSCORE_PREFIX)
517 dnl **** Check for .string in assembler ****
519 AC_CACHE_CHECK("whether assembler accepts .string",
520                ac_cv_c_asm_string,
521 [saved_libs=$LIBS
522 LIBS="conftest_asm.s $LIBS"
523 cat > conftest_asm.s <<EOF
524         .string "test"
526 AC_TRY_LINK(,,ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no")
527 LIBS=$saved_libs])
528 if test "$ac_cv_c_asm_string" = "yes"
529 then
530   AC_DEFINE(HAVE_ASM_STRING)
533 dnl **** Check for working dll ****
535 LDSHARED=""
536 LDDLLFLAGS=""
537 if test "$LIBEXT" = "so"
538 then
539   AC_CACHE_CHECK("whether we can build a Linux dll",
540                  ac_cv_c_dll_linux,
541   [saved_cflags=$CFLAGS
542   CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
543   AC_TRY_LINK(,[return 1],ac_cv_c_dll_linux="yes",ac_cv_c_dll_linux="no")
544   CFLAGS=$saved_cflags
545   ])
546   if test "$ac_cv_c_dll_linux" = "yes"
547   then
548     LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
549     LDDLLFLAGS="-Wl,-Bsymbolic"
550   else
551     AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll,
552                  ac_cv_c_dll_unixware,
553     [saved_cflags=$CFLAGS
554     CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
555     AC_TRY_LINK(,[return 1],ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")
556     CFLAGS=$saved_cflags
557     ])
558     if test "$ac_cv_c_dll_unixware" = "yes"
559     then
560       LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,h,\$(libdir)/%)"
561       LDDLLFLAGS="-Wl,-B,symbolic"
562     else
563       AC_CACHE_CHECK("whether we can build a NetBSD dll",
564                    ac_cv_c_dll_netbsd,
565       [saved_cflags=$CFLAGS
566       CFLAGS="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
567       AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no")
568       CFLAGS=$saved_cflags
569       ])
570       if test "$ac_cv_c_dll_netbsd" = "yes"
571       then
572         LDSHARED="\$(CC) -Wl,-Bshareable,-Bforcearchive"
573         LDDLLFLAGS="" #FIXME
574       fi
575     fi
576   fi
577   if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
578   then
579     echo "*** It is currently not possible to build WINE without shared"
580     echo "*** library (.so) support to allow transparent switch between .so"
581     echo "*** and .dll files."
582     echo "*** If you are using Linux, you will need a newer binutils."
583     exit 1
584   fi
587 DLLFLAGS=""
589 if test "$LIBEXT" = "so"; then
590     DLLFLAGS="-fPIC"
591     DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
592 else
593     DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
594     AC_CACHE_CHECK([whether the linker supports --[[no]]-whole-archive (Linux)],
595                    ac_cv_c_whole_archive,
596             [saved_cflags=$CFLAGS
597             CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
598             AC_TRY_LINK(,[return 1],ac_cv_c_whole_archive="yes",ac_cv_c_whole_archive="no")
599             CFLAGS=$saved_cflags
600             ])
601     if test "$ac_cv_c_whole_archive" = "yes"
602     then
603         DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
604     else
605         AC_CACHE_CHECK([whether the linker supports -z {all,default}extract (Linux)],
606                        ac_cv_c_allextract,
607                 [saved_cflags=$CFLAGS
608                 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
609                 AC_TRY_LINK(,[return 1],ac_cv_c_allextract="yes",ac_cv_c_allextract="no")
610                 CFLAGS=$saved_cflags
611                 ])
612         if test "$ac_cv_c_allextract" = "yes"
613         then
614             DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
615         fi
616     fi
619 AC_SUBST(DLL_LINK)
620 AC_SUBST(DLLFLAGS)
621 AC_SUBST(LDSHARED)
622 AC_SUBST(LDDLLFLAGS)
623 AC_SUBST(LIBEXT)
625 dnl **** Check for reentrant libc ****
627 dnl For cross-compiling we blindly assume that libc is reentrant. This is
628 dnl ok since non-reentrant libc is quite rare (mostly old libc5 versions).
630 wine_cv_libc_reentrant=no 
631 dnl 
632 dnl Linux style errno location
633 dnl 
634 AC_CACHE_CHECK("for reentrant libc: __errno_location", wine_cv_libc_r__errno_location,
635   [AC_TRY_RUN([int myerrno = 0;
636 char buf[256];
637 int *__errno_location(){return &myerrno;}
638 main(){connect(0,buf,255); exit(!myerrno);}],
639   wine_cv_libc_r__errno_location=yes, wine_cv_libc_r__errno_location=no,
640   wine_cv_libc_r__errno_location=yes )
642 if test "$wine_cv_libc_r__errno_location" = "yes"
643 then
644     AC_DEFINE(HAVE__ERRNO_LOCATION)
645     wine_cv_libc_reentrant=__errno_location 
648 dnl FreeBSD style errno location
649 dnl 
650 AC_CACHE_CHECK("for reentrant libc: __error", wine_cv_libc_r__error,
651   [AC_TRY_RUN([int myerrno = 0;
652 char buf[256];
653 int *__error(){return &myerrno;}
654 main(){connect(0,buf,255); exit(!myerrno);}],
655     wine_cv_libc_r__error=yes, wine_cv_libc_r__error=no,
656     wine_cv_libc_r__error=yes )
658 if test "$wine_cv_libc_r__error" = "yes"
659 then
660     AC_DEFINE(HAVE__ERROR)
661     wine_cv_libc_reentrant=__error 
664 dnl Solaris style errno location
665 dnl 
666 AC_CACHE_CHECK("for reentrant libc: ___errno", wine_cv_libc_r___errno,
667   [AC_TRY_RUN([int myerrno = 0;
668 char buf[256];
669 int *___errno(){return &myerrno;}
670 main(){connect(0,buf,255); exit(!myerrno);}],
671     wine_cv_libc_r___errno=yes, wine_cv_libc_r___errno=no,
672     wine_cv_libc_r___errno=yes )
674 if test "$wine_cv_libc_r___errno" = "yes"
675 then
676     AC_DEFINE(HAVE___ERRNO)
677     wine_cv_libc_reentrant=___errno 
680 dnl UnixWare style errno location
681 dnl 
682 AC_CACHE_CHECK("for reentrant libc: __thr_errno", wine_cv_libc_r__thr_errno,
683   [AC_TRY_RUN([int myerrno = 0;
684 char buf[256];
685 int *__thr_errno(){return &myerrno;}
686 main(){connect(0,buf,255); exit(!myerrno);}],
687     wine_cv_libc_r__thr_errno=yes, wine_cv_libc_r__thr_errno=no,
688     wine_cv_libc_r__thr_errno=yes )
690 if test "$wine_cv_libc_r__thr_errno" = "yes"
691 then
692     AC_DEFINE(HAVE__THR_ERRNO)
693     wine_cv_libc_reentrant=__thr_errno 
695 if test "$wine_cv_libc_reentrant" = "no" 
696 then
697   AC_DEFINE(NO_REENTRANT_LIBC)
700 dnl **** Check for reentrant X libraries ****
702 dnl This may fail to determine whether X libraries are reentrant if
703 dnl AC_PATH_XTRA does not set x_libraries. In this case manual configuration
704 dnl is possible with the --without-reentrant-x option.
706 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
707 then
708 AC_CACHE_CHECK( "for reentrant X libraries", wine_cv_x_reentrant,
709   [ if test "x$with_reentrant_x" = "xno" 
710     then
711         wine_cv_x_reentrant=no
712     else
713         libX11_check=none
714         for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
715             if test -r $dir/libX11.so; then
716                 libX11_check="-D $dir/libX11.so"
717                 break 1
718             fi
719             if test -r $dir/libX11.a; then
720                 libX11_check="$dir/libX11.a"
721                 break 1
722             fi
723         done
724         if test "$libX11_check" != "none"; then
725             if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
726             then
727                 wine_cv_x_reentrant=yes
728             else
729                 wine_cv_x_reentrant=no
730             fi
731         else
732             wine_cv_x_reentrant=unknown
733         fi
734     fi ] )
735 else
736     wine_cv_x_reentrant=no
738 if test "$wine_cv_x_reentrant" = "no"
739 then
740   AC_DEFINE(NO_REENTRANT_X11)
743 dnl **** Check for endianness ****
745 AC_C_BIGENDIAN
747 dnl **** Check for functions ****
749 AC_FUNC_ALLOCA()
750 AC_CHECK_FUNCS(\
751         __libc_fork \
752         _lwp_create \
753         clone \
754         finite \
755         fpclass \
756         getnetbyaddr \
757         getnetbyname \
758         getpagesize \
759         getprotobyname \
760         getprotobynumber \
761         getrlimit \
762         getservbyport \
763         getsockopt \
764         inet_network \
765         lstat \
766         memmove \
767         mmap \
768         rfork \
769         select \
770         sendmsg \
771         settimeofday \
772         sigaltstack \
773         statfs \
774         strcasecmp \
775         strerror \
776         strncasecmp \
777         tcgetattr \
778         timegm \
779         usleep \
780         vfscanf \
781         wait4 \
782         waitpid \
785 dnl **** Check for header files ****
787 AC_CHECK_HEADERS(\
788         arpa/inet.h \
789         arpa/nameser.h \
790         elf.h \
791         float.h \
792         libio.h \
793         libutil.h \
794         link.h \
795         linux/cdrom.h \
796         linux/input.h \
797         linux/joystick.h \
798         linux/ucdrom.h \
799         net/if.h \
800         netdb.h \
801         netinet/in.h \
802         netinet/in_systm.h \
803         netinet/ip.h \
804         netinet/tcp.h \
805         pty.h \
806         resolv.h \
807         sched.h \
808         socket.h \
809         strings.h \
810         sys/cdio.h \
811         sys/errno.h \
812         sys/file.h \
813         sys/filio.h \
814         sys/ipc.h \
815         sys/lwp.h \
816         sys/mman.h \
817         sys/modem.h \
818         sys/mount.h \
819         sys/msg.h \
820         sys/param.h \
821         sys/ptrace.h \
822         sys/reg.h \
823         sys/signal.h \
824         sys/shm.h \
825         sys/socket.h \
826         sys/sockio.h \
827         sys/statfs.h \
828         sys/strtio.h \
829         sys/syscall.h \
830         sys/user.h \
831         sys/wait.h \
832         sys/v86.h \
833         sys/v86intr.h \
834         sys/vfs.h \
835         sys/vm86.h \
836         syscall.h \
837         ucontext.h \
839 AC_HEADER_STAT()
841 dnl **** Check for types ****
843 AC_C_CONST()
844 AC_C_INLINE()
845 AC_TYPE_SIZE_T()
846 AC_CHECK_SIZEOF(long long,0)
848    
849 AC_CACHE_CHECK("whether we can use re-entrant gethostbyname_r Linux style",
850         wine_cv_linux_gethostbyname_r_6,
851         AC_TRY_COMPILE([
852 #include <netdb.h>
853         ], [
854     char *name=NULL;
855     struct hostent he;
856     struct hostent *result;
857     char *buf=NULL;
858     int bufsize=0;
859     int res,errnr;
860     char *addr=NULL;
861     int addrlen=0;
862     int addrtype=0;
863     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
864     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
865     ],
866         wine_cv_linux_gethostbyname_r_6=yes,
867         wine_cv_linux_gethostbyname_r_6=no
868         )
869    )
870    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
871    then
872       AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6)
873    fi
875 if test "$ac_cv_header_linux_joystick_h" = "yes"
876 then
877    AC_CACHE_CHECK("whether linux/joystick.h uses the Linux 2.2+ API",
878         wine_cv_linux_joystick_22_api,
879         AC_TRY_COMPILE([
880         #include <sys/ioctl.h>
881         #include <linux/joystick.h>
883         struct js_event blub;
884         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
885         #error "no 2.2 header"
886         #endif
887         ],/*empty*/,
888         wine_cv_linux_joystick_22_api=yes,
889         wine_cv_linux_joystick_22_api=no,
890         wine_cv_linux_joystick_22_api=no
891         )
892    )
893    if test "$wine_cv_linux_joystick_22_api" = "yes"
894    then
895       AC_DEFINE(HAVE_LINUX_22_JOYSTICK_API)
896    fi
899 dnl **** statfs checks ****
901 if test "$ac_cv_header_sys_vfs_h" = "yes"
902 then
903     AC_CACHE_CHECK( "whether sys/vfs.h defines statfs",
904                     wine_cv_sys_vfs_has_statfs,
905         AC_TRY_COMPILE([
906         #include <sys/types.h>
907         #ifdef HAVE_SYS_PARAM_H
908         # include <sys/param.h>
909         #endif
910         #include <sys/vfs.h>
911         ],[
912                 struct statfs stfs;
914                 memset(&stfs,0,sizeof(stfs));
915         ],wine_cv_sys_vfs_has_statfs=yes,wine_cv_sys_vfs_has_statfs=no
916         )
917     )
918     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
919     then
920       AC_DEFINE(STATFS_DEFINED_BY_SYS_VFS)
921     fi
924 if test "$ac_cv_header_sys_statfs_h" = "yes"
925 then
926     AC_CACHE_CHECK( "whether sys/statfs.h defines statfs",
927                     wine_cv_sys_statfs_has_statfs,
928         AC_TRY_COMPILE([
929         #include <sys/types.h>
930         #ifdef HAVE_SYS_PARAM_H
931         # include <sys/param.h>
932         #endif
933         #include <sys/statfs.h>
934         ],[
935                 struct statfs stfs;
936         ],wine_cv_sys_statfs_has_statfs=yes,wine_cv_sys_statfs_has_statfs=no
937         )
938     )
939     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
940     then
941       AC_DEFINE(STATFS_DEFINED_BY_SYS_STATFS)
942     fi
945 if test "$ac_cv_header_sys_mount_h" = "yes"
946 then
947     AC_CACHE_CHECK( "whether sys/mount.h defines statfs",
948                     wine_cv_sys_mount_has_statfs,
949         AC_TRY_COMPILE([
950         #include <sys/types.h>
951         #ifdef HAVE_SYS_PARAM_H
952         # include <sys/param.h>
953         #endif
954         #include <sys/mount.h>
955         ],[
956                 struct statfs stfs;
957         ],wine_cv_sys_mount_has_statfs=yes,wine_cv_sys_mount_has_statfs=no
958         )
959     )
960     if test "$wine_cv_sys_mount_has_statfs" = "yes"
961     then
962       AC_DEFINE(STATFS_DEFINED_BY_SYS_MOUNT)
963     fi
966 dnl **** FIXME: what about mixed cases, where we need two of them? ***
968 AC_CACHE_CHECK( "for statfs.f_bfree", wine_cv_statfs_bfree,
969   [ if test "x$statfs_bfree" = "xno"
970     then
971         wine_cv_statfs_bfree=no
972     else
973         AC_TRY_COMPILE([
974         #include <sys/types.h>
975         #ifdef HAVE_SYS_PARAM_H
976         # include <sys/param.h>
977         #endif
978         #ifdef STATFS_DEFINED_BY_SYS_MOUNT
979         # include <sys/mount.h>
980         #else
981         # ifdef STATFS_DEFINED_BY_SYS_VFS
982         #  include <sys/vfs.h>
983         # else
984         #  ifdef STATFS_DEFINED_BY_SYS_STATFS
985         #   include <sys/statfs.h>
986         #  endif
987         # endif
988         #endif
989         ],[
990                 struct statfs stfs;
992                 stfs.f_bfree++;
993         ],wine_cv_statfs_bfree=yes,wine_cv_statfs_bfree=no
994         )
995     fi ] )
996 if test "$wine_cv_statfs_bfree" = "yes"
997 then
998   AC_DEFINE(STATFS_HAS_BFREE)
1001 AC_CACHE_CHECK( "for statfs.f_bavail", wine_cv_statfs_bavail,
1002   [ if test "x$statfs_bavail" = "xno"
1003     then
1004         wine_cv_statfs_bavail=no
1005     else
1006         AC_TRY_COMPILE([
1007         #include <sys/types.h>
1008         #ifdef HAVE_SYS_PARAM_H
1009         # include <sys/param.h>
1010         #endif
1011         #ifdef STATFS_DEFINED_BY_SYS_MOUNT
1012         # include <sys/mount.h>
1013         #else
1014         # ifdef STATFS_DEFINED_BY_SYS_VFS
1015         #  include <sys/vfs.h>
1016         # else
1017         #  ifdef STATFS_DEFINED_BY_SYS_STATFS
1018         #   include <sys/statfs.h>
1019         #  endif
1020         # endif
1021         #endif
1022         ],[
1023                 struct statfs stfs;
1025                 stfs.f_bavail++;
1026         ],wine_cv_statfs_bavail=yes,wine_cv_statfs_bavail=no
1027         )
1028     fi ] )
1029 if test "$wine_cv_statfs_bavail" = "yes"
1030 then
1031   AC_DEFINE(STATFS_HAS_BAVAIL)
1034 dnl *** check for file descriptor passing with msg_accrights
1036 AC_CACHE_CHECK("for msg_accrights in struct msghdr", ac_cv_c_msg_accrights,
1037  AC_TRY_COMPILE([#include <sys/types.h>
1038 #include <sys/socket.h>],[struct msghdr hdr; hdr.msg_accrights=0],
1039                 ac_cv_c_msg_accrights="yes", ac_cv_c_msg_accrights="no"))
1040 if test "$ac_cv_c_msg_accrights" = "yes"
1041 then
1042     AC_DEFINE(HAVE_MSGHDR_ACCRIGHTS)
1045 dnl *** Check for the sun_len member in struct sockaddr_un
1047 AC_CACHE_CHECK("for sun_len in struct sockaddr_un", ac_cv_c_sun_len,
1048  AC_TRY_COMPILE([#include <sys/types.h>
1049 #include <sys/socket.h>
1050 #include <sys/un.h>], [static struct sockaddr_un addr; addr.sun_len = 1],
1051                 ac_cv_c_sun_len="yes", ac_cv_c_sun_len="no"))
1052 if test "$ac_cv_c_sun_len" = "yes"
1053 then
1054     AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)
1057 dnl *** check for the need to define __i386__
1059 AC_CACHE_CHECK("whether we need to define __i386__",ac_cv_cpp_def_i386,
1060  AC_EGREP_CPP(yes,[#if (defined(i386) || defined(__i386)) && !defined(__i386__)
1062 #endif],
1063  ac_cv_cpp_def_i386="yes", ac_cv_cpp_def_i386="no"))
1064 if test "$ac_cv_cpp_def_i386" = "yes"
1065 then
1066     CFLAGS="$CFLAGS -D__i386__"
1067     LINTFLAGS="$LINTFLAGS -D__i386__"
1070 dnl $GCC is set by autoconf
1071 GCC_NO_BUILTIN=""
1072 if test "$GCC" = "yes"
1073 then
1074     GCC_NO_BUILTIN="-fno-builtin"
1076 AC_SUBST(GCC_NO_BUILTIN)
1078 dnl **** Generate output files ****
1080 AC_OUTPUT_COMMANDS([
1081 extra_subdirs="\
1082 dlls/ddraw/d3ddevice \
1083 dlls/ddraw/dclipper \
1084 dlls/ddraw/ddraw \
1085 dlls/ddraw/direct3d \
1086 dlls/ddraw/dpalette \
1087 dlls/ddraw/dsurface \
1088 dlls/dinput/joystick \
1089 dlls/dinput/keyboard \
1090 dlls/dinput/mouse \
1091 dlls/kernel/messages \
1092 dlls/user/resources \
1094 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done ])
1096 MAKE_RULES=Make.rules
1097 AC_SUBST_FILE(MAKE_RULES)
1099 MAKE_DLL_RULES=dlls/Makedll.rules
1100 AC_SUBST_FILE(MAKE_DLL_RULES)
1102 MAKE_PROG_RULES=programs/Makeprog.rules
1103 AC_SUBST_FILE(MAKE_PROG_RULES)
1105 AC_OUTPUT([
1106 Make.rules
1107 dlls/Makedll.rules
1108 programs/Makeprog.rules
1109 Makefile
1110 console/Makefile
1111 controls/Makefile
1112 debugger/Makefile
1113 dlls/Makefile
1114 dlls/advapi32/Makefile
1115 dlls/avifil32/Makefile
1116 dlls/comctl32/Makefile
1117 dlls/commdlg/Makefile
1118 dlls/crtdll/Makefile
1119 dlls/dciman32/Makefile
1120 dlls/ddraw/Makefile
1121 dlls/dinput/Makefile
1122 dlls/dplay/Makefile
1123 dlls/dplayx/Makefile
1124 dlls/dsound/Makefile
1125 dlls/gdi/Makefile
1126 dlls/icmp/Makefile
1127 dlls/imagehlp/Makefile
1128 dlls/imm32/Makefile
1129 dlls/kernel/Makefile
1130 dlls/lzexpand/Makefile
1131 dlls/mpr/Makefile
1132 dlls/msacm/Makefile
1133 dlls/msnet32/Makefile
1134 dlls/msvideo/Makefile
1135 dlls/ntdll/Makefile
1136 dlls/odbc32/Makefile
1137 dlls/ole32/Makefile
1138 dlls/oleaut32/Makefile
1139 dlls/olecli/Makefile
1140 dlls/oledlg/Makefile
1141 dlls/olepro32/Makefile
1142 dlls/olesvr/Makefile
1143 dlls/opengl32/Makefile
1144 dlls/psapi/Makefile
1145 dlls/rasapi32/Makefile
1146 dlls/richedit/Makefile
1147 dlls/rpcrt4/Makefile
1148 dlls/serialui/Makefile
1149 dlls/setupapi/Makefile
1150 dlls/shell32/Makefile
1151 dlls/shfolder/Makefile
1152 dlls/shlwapi/Makefile
1153 dlls/tapi32/Makefile
1154 dlls/ttydrv/Makefile
1155 dlls/urlmon/Makefile
1156 dlls/user/Makefile
1157 dlls/version/Makefile
1158 dlls/win32s/Makefile
1159 dlls/winaspi/Makefile
1160 dlls/wineps/Makefile
1161 dlls/wininet/Makefile
1162 dlls/winmm/Makefile
1163 dlls/winmm/joystick/Makefile
1164 dlls/winmm/mcianim/Makefile
1165 dlls/winmm/mciavi/Makefile
1166 dlls/winmm/mcicda/Makefile
1167 dlls/winmm/mciseq/Makefile
1168 dlls/winmm/mciwave/Makefile
1169 dlls/winmm/midimap/Makefile
1170 dlls/winmm/wavemap/Makefile
1171 dlls/winmm/wineoss/Makefile
1172 dlls/winnls/Makefile
1173 dlls/winsock/Makefile
1174 dlls/winspool/Makefile
1175 dlls/wow32/Makefile
1176 dlls/wsock32/Makefile
1177 dlls/x11drv/Makefile
1178 documentation/Makefile
1179 documentation/wine.conf.man
1180 documentation/wine.man
1181 files/Makefile
1182 graphics/Makefile
1183 graphics/enhmetafiledrv/Makefile
1184 graphics/metafiledrv/Makefile
1185 graphics/win16drv/Makefile
1186 graphics/x11drv/Makefile
1187 if1632/Makefile
1188 include/Makefile
1189 library/Makefile
1190 libtest/Makefile
1191 loader/Makefile
1192 loader/dos/Makefile
1193 loader/ne/Makefile
1194 memory/Makefile
1195 misc/Makefile
1196 miscemu/Makefile
1197 msdos/Makefile
1198 objects/Makefile
1199 ole/Makefile
1200 programs/Makefile
1201 programs/avitools/Makefile
1202 programs/clock/Makefile
1203 programs/cmdlgtst/Makefile
1204 programs/control/Makefile
1205 programs/notepad/Makefile
1206 programs/osversioncheck/Makefile
1207 programs/progman/Makefile
1208 programs/regapi/Makefile
1209 programs/regtest/Makefile
1210 programs/uninstaller/Makefile
1211 programs/view/Makefile
1212 programs/wcmd/Makefile
1213 programs/winemine/Makefile
1214 programs/winhelp/Makefile
1215 programs/winver/Makefile
1216 relay32/Makefile
1217 scheduler/Makefile
1218 server/Makefile
1219 tools/Makefile
1220 tools/cvdump/Makefile
1221 tools/winebuild/Makefile
1222 tools/winelauncher
1223 tools/wmc/Makefile
1224 tools/wrc/Makefile
1225 tsx11/Makefile
1226 unicode/Makefile
1227 win32/Makefile
1228 windows/Makefile
1229 windows/x11drv/Makefile ])
1231 if test "$have_x" = "no"
1232 then
1233   echo
1234   echo "*** Warning: X development files not found. Wine will be built without"
1235   echo "*** X support, which currently does not work, and would probably not be"
1236   echo "*** what you want anyway. You will need to install devel packages of"
1237   echo "*** Xlib/Xfree86 and Xpm at the very least."
1238 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
1239 then
1240   echo
1241   echo "*** Warning: Xpm development files not found. Wine will be built without"
1242   echo "*** Xpm support, which currently does not work. You will need to install"
1243   echo "*** devel packages of Xpm."
1246 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
1247 then
1248   echo
1249   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
1250   echo "*** terminal resize support. Consider upgrading ncurses."
1253 if test "$wine_cv_libc_reentrant" = "no" 
1254 then
1255   echo
1256   echo "*** Warning: non-reentrant libc detected. Wine will be build without"
1257   echo "*** thread support. Consider upgrading libc to a more recent"
1258   echo "*** reentrant version of libc."
1261 if test "$wine_cv_opengl_version_OK" = "no"
1262 then
1263   echo
1264   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
1265   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
1268 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
1269 then
1270   echo
1271   echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
1272   echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
1273   echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
1274   echo "*** start configure with '--enable-opengl' to force OpenGL support."
1277 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
1278 then
1279   echo
1280   echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
1281   echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
1282   echo "*** support before reporting bugs."
1286 echo
1287 echo "Configure finished.  Do 'make depend && make' to compile Wine."
1288 echo
1290 dnl Local Variables:
1291 dnl comment-start: "dnl "
1292 dnl comment-end: ""
1293 dnl comment-start-skip: "\\bdnl\\b\\s *"
1294 dnl compile-command: "autoconf"
1295 dnl End: