wined3d: Check the wined3d resource type and usage instead of the GL target in textur...
[wine.git] / configure.ac
blob5a6594adbed9ab7ddcae30e53972a3dfebebb3ea
1 dnl Process this file with autoconf to produce a configure script.
2 dnl Original author: Michael Patra
3 dnl For detailed change history, see the git commit logs.
5 m4_define(WINE_VERSION,regexp(m4_include(VERSION),[version \([-.0-9A-Za-z]+\)],[\1]))
7 dnl autoconf versions before 2.63b don't have AS_VAR_APPEND or AS_VAR_IF
8 AC_PREREQ(2.63b)
9 AC_INIT([Wine],[WINE_VERSION],[wine-devel@winehq.org],[wine],[https://www.winehq.org])
10 AC_CONFIG_SRCDIR(server/atom.c)
11 AC_CONFIG_HEADERS(include/config.h)
12 AC_CONFIG_AUX_DIR(tools)
14 libwine_version="1.0"
16 dnl **** Command-line arguments ****
18 AC_ARG_ENABLE(archs, AS_HELP_STRING([--enable-archs={i386,x86_64,arm,aarch64}],[enable multiple architectures for PE compilation]))
19 AC_ARG_ENABLE(win16, AS_HELP_STRING([--disable-win16],[do not include Win16 support]))
20 AC_ARG_ENABLE(win64, AS_HELP_STRING([--enable-win64],[build a Win64 emulator on AMD64 (won't run Win32 binaries)]))
21 AC_ARG_ENABLE(tests, AS_HELP_STRING([--disable-tests],[do not build the regression tests]))
22 AC_ARG_ENABLE(build-id, AS_HELP_STRING([--enable-build-id],[include .buildid section in output objects]))
23 AC_ARG_ENABLE(maintainer-mode, AS_HELP_STRING([--enable-maintainer-mode],[enable maintainer-specific build rules]))
24 AC_ARG_ENABLE(silent-rules, AS_HELP_STRING([--enable-silent-rules],[use silent build rules (override: "make V=1")]))
25 AC_ARG_ENABLE(werror, AS_HELP_STRING([--enable-werror],[treat compilation warnings as errors]))
27 AC_ARG_WITH(alsa,      AS_HELP_STRING([--without-alsa],[do not use the Alsa sound support]))
28 AC_ARG_WITH(capi,      AS_HELP_STRING([--without-capi],[do not use CAPI (ISDN support)]))
29 AC_ARG_WITH(coreaudio, AS_HELP_STRING([--without-coreaudio],[do not use the CoreAudio sound support]))
30 AC_ARG_WITH(cups,      AS_HELP_STRING([--without-cups],[do not use CUPS]))
31 AC_ARG_WITH(dbus,      AS_HELP_STRING([--without-dbus],[do not use DBus (dynamic device support)]))
32 AC_ARG_WITH(float-abi, AS_HELP_STRING([--with-float-abi=abi],[specify the ABI (soft|softfp|hard) for ARM platforms]))
33 AC_ARG_WITH(fontconfig,AS_HELP_STRING([--without-fontconfig],[do not use fontconfig]))
34 AC_ARG_WITH(freetype,  AS_HELP_STRING([--without-freetype],[do not use the FreeType library]))
35 AC_ARG_WITH(gettext,   AS_HELP_STRING([--without-gettext],[do not use gettext]))
36 AC_ARG_WITH(gettextpo, AS_HELP_STRING([--with-gettextpo],[use the GetTextPO library to rebuild po files]),
37             [if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi])
38 AC_ARG_WITH(gphoto,    AS_HELP_STRING([--without-gphoto],[do not use gphoto (Digital Camera support)]))
39 AC_ARG_WITH(gnutls,    AS_HELP_STRING([--without-gnutls],[do not use GnuTLS (schannel support)]))
40 AC_ARG_WITH(gssapi,    AS_HELP_STRING([--without-gssapi],[do not use GSSAPI (Kerberos SSP support)]))
41 AC_ARG_WITH(gstreamer, AS_HELP_STRING([--without-gstreamer],[do not use GStreamer (codecs support)]))
42 AC_ARG_WITH(inotify,   AS_HELP_STRING([--without-inotify],[do not use inotify (filesystem change notifications)]))
43 AC_ARG_WITH(krb5,      AS_HELP_STRING([--without-krb5],[do not use krb5 (Kerberos)]))
44 AC_ARG_WITH(mingw,     AS_HELP_STRING([--without-mingw],[do not use the MinGW cross-compiler]))
45 AC_ARG_WITH(netapi,    AS_HELP_STRING([--without-netapi],[do not use the Samba NetAPI library]))
46 AC_ARG_WITH(opencl,    AS_HELP_STRING([--without-opencl],[do not use OpenCL]),
47             [if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi])
48 AC_ARG_WITH(opengl,    AS_HELP_STRING([--without-opengl],[do not use OpenGL]))
49 AC_ARG_WITH(osmesa,     AS_HELP_STRING([--without-osmesa],[do not use the OSMesa library]))
50 AC_ARG_WITH(oss,       AS_HELP_STRING([--without-oss],[do not use the OSS sound support]))
51 AC_ARG_WITH(pcap,      AS_HELP_STRING([--without-pcap],[do not use the Packet Capture library]),
52             [if test "x$withval" = "xno"; then ac_cv_header_pcap_pcap_h=no; fi])
53 AC_ARG_WITH(pcsclite,  AS_HELP_STRING([--without-pcsclite],[do not use PCSC lite]))
54 AC_ARG_WITH(pthread,   AS_HELP_STRING([--without-pthread],[do not use the pthread library]))
55 AC_ARG_WITH(pulse,     AS_HELP_STRING([--without-pulse],[do not use PulseAudio sound support]))
56 AC_ARG_WITH(sane,      AS_HELP_STRING([--without-sane],[do not use SANE (scanner support)]))
57 AC_ARG_WITH(sdl,       AS_HELP_STRING([--without-sdl],[do not use SDL]))
58 AC_ARG_WITH(udev,      AS_HELP_STRING([--without-udev],[do not use udev (plug and play support)]))
59 AC_ARG_WITH(unwind,    AS_HELP_STRING([--without-unwind],[do not use the libunwind library (exception handling)]))
60 AC_ARG_WITH(usb,       AS_HELP_STRING([--without-usb],[do not use the libusb library]))
61 AC_ARG_WITH(v4l2,      AS_HELP_STRING([--without-v4l2],[do not use v4l2 (video capture)]))
62 AC_ARG_WITH(vulkan,    AS_HELP_STRING([--without-vulkan],[do not use Vulkan]))
63 AC_ARG_WITH(wayland,   AS_HELP_STRING([--without-wayland],[do not build the Wayland driver]))
64 AC_ARG_WITH(xcomposite,AS_HELP_STRING([--without-xcomposite],[do not use the Xcomposite extension]),
65             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi])
66 AC_ARG_WITH(xcursor,   AS_HELP_STRING([--without-xcursor],[do not use the Xcursor extension]),
67             [if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi])
68 AC_ARG_WITH(xfixes,  AS_HELP_STRING([--without-xfixes],[do not use Xfixes for clipboard change notifications]),
69             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xfixes_h=no; fi])
70 AC_ARG_WITH(xinerama,  AS_HELP_STRING([--without-xinerama],[do not use Xinerama (legacy multi-monitor support)]),
71             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi])
72 AC_ARG_WITH(xinput,    AS_HELP_STRING([--without-xinput],[do not use the Xinput extension]),
73             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi])
74 AC_ARG_WITH(xinput2,   AS_HELP_STRING([--without-xinput2],[do not use the Xinput 2 extension]),
75             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi])
76 AC_ARG_WITH(xrandr,    AS_HELP_STRING([--without-xrandr],[do not use Xrandr (multi-monitor support)]),
77             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi])
78 AC_ARG_WITH(xrender,   AS_HELP_STRING([--without-xrender],[do not use the Xrender extension]),
79             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi])
80 AC_ARG_WITH(xshape,    AS_HELP_STRING([--without-xshape],[do not use the Xshape extension]),
81             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi])
82 AC_ARG_WITH(xshm,      AS_HELP_STRING([--without-xshm],[do not use XShm (shared memory extension)]),
83             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi])
84 AC_ARG_WITH(xxf86vm,   AS_HELP_STRING([--without-xxf86vm],[do not use XFree video mode extension]),
85             [if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi])
87 AC_ARG_WITH(system-dllpath,AS_HELP_STRING([--with-system-dllpath=PATH],[load external PE dependencies from colon-separated path PATH]),
88             AC_SUBST(system_dllpath,[$withval]))
89 AC_ARG_WITH(wine-tools,AS_HELP_STRING([--with-wine-tools=DIR],[use Wine tools from directory DIR]))
90 AC_ARG_WITH(wine64,    AS_HELP_STRING([--with-wine64=DIR],[use the 64-bit Wine in DIR for a Wow64 build]))
92 AC_CANONICAL_HOST
94 AC_SUBST(dlldir,[\${libdir}/wine])
95 AC_SUBST(fontdir,[\${datadir}/wine/fonts])
96 AC_SUBST(nlsdir,[\${datadir}/wine/nls])
97 AC_SUBST(srcdir)
99 dnl **** Check for some programs ****
101 AC_PROG_MAKE_SET
102 AC_PROG_CC
103 AC_PROG_CXX
104 dnl We can't use AC_PROG_CPP for winegcc, it uses by default $(CC) -E
105 AC_CHECK_TOOL(CPPBIN,cpp,cpp)
106 AC_DEFINE_UNQUOTED(EXEEXT,["$ac_exeext"],[Define to the file extension for executables.])
107 AC_CHECK_TOOL(LD,ld)
109 case $host in
110   *-darwin*)
111     with_fontconfig=${with_fontconfig:-no}
112     ;;
113   *-mingw32*|*-cygwin*)
114     enable_win16=${enable_win16:-no}
115     with_mingw=${with_mingw:-no}
116     ;;
117 esac
119 AC_SUBST(TARGETFLAGS)
120 case $host in
121   x86_64*|amd64*)
122     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes" -a x"$enable_archs" = x
123     then
124       CC="$CC -m32"
125       CXX="$CXX -m32"
126       AC_CACHE_CHECK([whether $CC works], wine_cv_cc_m32,
127           [AC_LINK_IFELSE([AC_LANG_PROGRAM()],[wine_cv_cc_m32=yes],[wine_cv_cc_m32=no])])
128       test $wine_cv_cc_m32 != no || AC_MSG_ERROR([Cannot build a 32-bit program, you need to install 32-bit development libraries.])
129       host_cpu="i386"
130       notice_platform="32-bit "
131       TARGETFLAGS="$TARGETFLAGS -m32"
132       PKG_CONFIG_LIBDIR=${PKG_CONFIG_LIBDIR:-/usr/lib/i386-linux-gnu/pkgconfig:/usr/lib32/pkgconfig:/usr/lib/pkgconfig}
133       export PKG_CONFIG_LIBDIR
134       with_unwind=${with_unwind:-no}
135     else
136       CC="$CC -m64"
137       CXX="$CXX -m64"
138       host_cpu="x86_64"
139       notice_platform="64-bit "
140       TARGETFLAGS="$TARGETFLAGS -m64"
141     fi
142     ;;
143   arm*)
144     AC_CACHE_CHECK([whether $CC supports Thumb-2],wine_cv_thumb2,
145         [WINE_TRY_ASM_LINK([".syntax unified\n\t.thumb\n\tldm r0,{r0-r8}"],,,
146                            [wine_cv_thumb2=yes],[wine_cv_thumb2=no])])
147     if test x"$wine_cv_thumb2" = xyes
148     then
149         CFLAGS="$CFLAGS -mthumb"
150         TARGETFLAGS="$TARGETFLAGS -mthumb"
151     else
152         CFLAGS="$CFLAGS -marm"
153         TARGETFLAGS="$TARGETFLAGS -marm"
154     fi
155     case $with_float_abi in
156       soft|softfp|hard)
157         float_abi=$with_float_abi ;;
158       *)
159         case $host_os in
160           *eabihf)
161             float_abi=hard ;;
162           *)
163             float_abi=softfp
164             saved_CFLAGS=$CFLAGS
165             CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
166             AC_CACHE_CHECK([whether $CC supports -mfloat-abi=$float_abi],wine_cv_float_abi,
167                 [WINE_TRY_ASM_LINK(["vmrs r2,fpscr"],,,[wine_cv_float_abi=yes],[wine_cv_float_abi=no])])
168             if test $wine_cv_float_abi = no
169             then
170                 float_abi=soft
171                 WINE_WARNING([Floating point is not supported for this target. The resulting build won't be compatible with Windows ARM binaries.])
172             fi
173             CFLAGS=$saved_CFLAGS
174         esac
175         ;;
176     esac
177     CFLAGS="$CFLAGS -mfloat-abi=$float_abi"
178     TARGETFLAGS="$TARGETFLAGS -mfloat-abi=$float_abi"
179     ;;
180   i[[3456789]]86*)
181     with_unwind=${with_unwind:-no}
182     ;;
183 esac
185 enable_win16=${enable_win16:-i386}
186 enable_win64=${enable_win64:-no}
187 enable_wow64=${enable_wow64:-aarch64,x86_64}
188 enable_wow64win=${enable_wow64win:-aarch64,x86_64}
189 enable_wow64cpu=${enable_wow64cpu:-x86_64}
190 enable_vcruntime140_1=${enable_vcruntime140_1:-x86_64}
192 dnl Disable winetest too if tests are disabled
193 enable_winetest=${enable_winetest:-$enable_tests}
195 dnl Some special cases for the 64-bit build
196 if test "x$enable_win64" = "xyes"
197 then
198     test -z "$with_wine64" || AC_MSG_ERROR([--enable-win64 and --with-wine64 are mutually exclusive.
199 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree.])
202 case $build_os in
203   cygwin*|mingw32*) AC_SUBST(toolsext,".exe") ;;
204   *) AC_SUBST(toolsext,"") ;;
205 esac
207 HOST_ARCH=unknown
208 case "$host_cpu" in
209   aarch64*)        HOST_ARCH=aarch64 ;;
210   arm*)            HOST_ARCH=arm ;;
211   i[[3456789]]86*) HOST_ARCH=i386 ;;
212   x86_64)          HOST_ARCH=x86_64 ;;
213 esac
214 m4_set_add_all([_AC_SUBST_VARS],[HOST_ARCH]m4_foreach([cpu],[aarch64,arm,i386,x86_64],
215                                 [m4_foreach([var],[CC,CFLAGS,EXTRACFLAGS,LDFLAGS,DEBUG,TARGET,DELAYLOADFLAG,DISABLED_SUBDIRS],[,cpu[_]var])]))
217 AC_CACHE_CHECK([for the directory containing the Wine tools], wine_cv_toolsdir,
218   [wine_cv_toolsdir="$with_wine_tools"
219    if test -z "$with_wine_tools"; then
220      if test "$cross_compiling" = "yes"; then
221        AC_MSG_ERROR([you must use the --with-wine-tools option when cross-compiling.])
222      elif test -n "$with_wine64"; then
223        wine_cv_toolsdir="$with_wine64"
224      fi
225    fi])
226 if test -z "$wine_cv_toolsdir"; then
227     wine_makedep=tools/makedep$toolsext
228 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
229     wine_makedep=$wine_cv_toolsdir/tools/makedep$toolsext
230     enable_tools=${enable_tools:-no}
231     test -f "$wine_makedep" || AC_MSG_ERROR([the Wine tools have not yet been built in $wine_cv_toolsdir])
232 else
233     AC_MSG_ERROR([could not find Wine tools in $wine_cv_toolsdir])
235 AC_SUBST(toolsdir,[$wine_cv_toolsdir])
236 AC_SUBST(MAKEDEP,[$wine_makedep])
237 AC_SUBST(RUNTESTFLAGS,["-q -P wine"])
238 AC_SUBST(SED_CMD,["LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@dlldir@,\${dlldir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"])
240 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
241 then
242     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
245 dnl Check for flex
246 AC_CHECK_PROGS(FLEX,flex,none)
247 if test "$FLEX" = "none"
248 then
249   AC_MSG_ERROR([no suitable flex found. Please install the 'flex' package.])
251 AC_CACHE_CHECK([whether flex is recent enough],wine_cv_recent_flex,
252     [cat >conftest.l <<EOF
253 %top{
254 #include "prediluvian.h"
258     if $FLEX -t conftest.l >/dev/null 2>&AS_MESSAGE_LOG_FD
259     then
260       wine_cv_recent_flex=yes
261     else
262       wine_cv_recent_flex=no
263     fi])
264 test $wine_cv_recent_flex != no || AC_MSG_ERROR([Your flex version is too old. Please install flex version 2.5.33 or newer.])
266 dnl Check for bison
267 AC_CHECK_PROGS(BISON,bison,none)
268 if test "$BISON" = "none"
269 then
270   AC_MSG_ERROR([no suitable bison found. Please install the 'bison' package.])
272 AC_CACHE_CHECK([whether bison is recent enough],wine_cv_recent_bison,
273     [cat >conftest.y <<EOF
274 %define parse.error verbose
276 empty: ;
278     if $BISON conftest.y >/dev/null 2>&AS_MESSAGE_LOG_FD
279     then
280       wine_cv_recent_bison=yes
281     else
282       wine_cv_recent_bison=no
283     fi])
284 test $wine_cv_recent_bison != no || AC_MSG_ERROR([Your bison version is too old. Please install bison version 3.0 or newer.])
286 AC_CHECK_TOOLS(AR,[ar gar],ar)
287 AC_CHECK_TOOL(STRIP,strip,strip)
288 AC_PROG_RANLIB
289 AC_PROG_LN_S
290 AC_PROG_EGREP
291 AC_PATH_PROG(LDCONFIG, ldconfig, true, [/sbin /usr/sbin $PATH])
292 AC_CHECK_PROGS(MSGFMT, msgfmt, false)
293 WINE_PATH_PKG_CONFIG
295 if test "x$enable_maintainer_mode" != "xyes"
296 then
297   FONTFORGE=""
298   RSVG=""
299   CONVERT=""
300   ICOTOOL=""
301 else
302   test "$srcdir" = . || AC_MSG_ERROR([Maintainer mode cannot work out of tree.])
303   AC_CHECK_PROGS(FONTFORGE, fontforge, false)
304   AC_CHECK_PROGS(RSVG, rsvg-convert rsvg, false)
305   AC_CHECK_PROGS(CONVERT, convert, false)
306   AC_CHECK_PROGS(ICOTOOL, icotool, false)
307   test "$FONTFORGE" != "false" || AC_MSG_ERROR([You need fontforge to rebuild fonts in maintainer mode.])
308   test "$RSVG" != "false" || AC_MSG_ERROR([You need rsvg to rebuild icons in maintainer mode.])
310   dnl Check the imagemagick version
311   if test "$CONVERT" = false
312   then
313     AC_MSG_ERROR([You need imagemagick to rebuild icons in maintainer mode.])
314   else
315     AC_MSG_CHECKING([for recent enough imagemagick])
316     convert_version=`convert --version | head -n1`
317     if test "x$convert_version" != "x"
318     then
319       convert_version_major=`expr "$convert_version" : '.* \([[0-9]]*\)\.[[0-9]]*'`
320       convert_version_minor=`expr "$convert_version" : '.* [[0-9]]*\.\([[0-9]]*\)'`
321       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
322       then
323         CONVERT=false
324       fi
325     fi
326     if test "$CONVERT" = false
327     then
328       AC_MSG_RESULT([no ($convert_version_major.$convert_version_minor)])
329       AC_MSG_ERROR([You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode.])
330     else
331       AC_MSG_RESULT([yes ($convert_version_major.$convert_version_minor)])
332     fi
333   fi
335   dnl Check the icotool version
336   if test "$ICOTOOL" = false
337   then
338     AC_MSG_ERROR([You need icotool to rebuild icons in maintainer mode.])
339   else
340     AC_MSG_CHECKING([for recent enough icotool])
341     icotool_version=`icotool --version | head -n1`
342     if test "x$icotool_version" != "x"
343     then
344       icotool_version_major=`expr "$icotool_version" : '.* \([[0-9]]*\)\.[[0-9]]*'`
345       icotool_version_minor=`expr "$icotool_version" : '.* [[0-9]]*\.\([[0-9]]*\)'`
346       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
347       then
348         ICOTOOL=false
349         WINE_WARNING([icotool version 0.29.0 or newer is needed to rebuild icons.])
350       fi
351     fi
352     if test "$ICOTOOL" = false
353     then
354       AC_MSG_RESULT([no ($icotool_version_major.$icotool_version_minor)])
355       AC_MSG_ERROR([You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode.])
356     else
357       AC_MSG_RESULT([yes ($icotool_version_major.$icotool_version_minor)])
358     fi
359   fi
361   dnl Maintainer mode requires gettext
362   with_gettext=yes
363   with_gettextpo=yes
365   dnl Maintainer mode wants -Werror
366   enable_werror=yes
369 test "x$with_gettext" != xno || MSGFMT=false
370 if test "$MSGFMT" != "false"
371 then
372   AC_CACHE_CHECK([whether msgfmt supports contexts],wine_cv_msgfmt_contexts,
373   [cat >conftest.po <<EOF
374 # comment
375 msgctxt "ctxt"
376 msgid "id"
377 msgstr "str"
379   if $MSGFMT -o /dev/null conftest.po 2>&AS_MESSAGE_LOG_FD
380   then
381     wine_cv_msgfmt_contexts=yes
382   else
383     wine_cv_msgfmt_contexts=no
384   fi])
385   test $wine_cv_msgfmt_contexts != no || MSGFMT=false
387 WINE_WARNING_WITH(gettext,[test "$MSGFMT" = false],
388                   [gettext tools not found (or too old), translations won't be built.],
389                   [enable_po])
391 dnl **** Check for some libraries ****
393 dnl Check for -li386 for NetBSD and OpenBSD
394 AC_CHECK_LIB(i386,i386_set_ldt,[AC_SUBST(I386_LIBS, "-li386")])
396 AC_SUBST(OPENGL_LIBS,"")
398 dnl **** Check for header files ****
400 AC_SYS_LARGEFILE()
402 AC_CHECK_HEADERS(\
403         CL/cl.h \
404         EGL/egl.h \
405         OpenCL/opencl.h \
406         arpa/inet.h \
407         arpa/nameser.h \
408         asm/types.h \
409         asm/user.h \
410         elf.h \
411         float.h \
412         gettext-po.h \
413         libproc.h \
414         link.h \
415         linux/cdrom.h \
416         linux/filter.h \
417         linux/hdreg.h \
418         linux/hidraw.h \
419         linux/input.h \
420         linux/ioctl.h \
421         linux/major.h \
422         linux/param.h \
423         linux/serial.h \
424         linux/types.h \
425         linux/ucdrom.h \
426         linux/wireless.h \
427         lwp.h \
428         mach-o/loader.h \
429         mach/mach.h \
430         machine/cpu.h \
431         machine/sysarch.h \
432         mntent.h \
433         netdb.h \
434         netinet/in.h \
435         netinet/in_systm.h \
436         netinet/tcp.h \
437         netinet/tcp_fsm.h \
438         pcap/pcap.h \
439         port.h \
440         pwd.h \
441         sched.h \
442         scsi/scsi.h \
443         scsi/scsi_ioctl.h \
444         scsi/sg.h \
445         stdint.h \
446         sys/attr.h \
447         sys/auxv.h \
448         sys/cdio.h \
449         sys/epoll.h \
450         sys/event.h \
451         sys/extattr.h \
452         sys/filio.h \
453         sys/ipc.h \
454         sys/link.h \
455         sys/modem.h \
456         sys/mtio.h \
457         sys/param.h \
458         sys/prctl.h \
459         sys/ptrace.h \
460         sys/queue.h \
461         sys/random.h \
462         sys/resource.h \
463         sys/scsiio.h \
464         sys/shm.h \
465         sys/signal.h \
466         sys/socketvar.h \
467         sys/sockio.h \
468         sys/statvfs.h \
469         sys/strtio.h \
470         sys/syscall.h \
471         sys/sysinfo.h \
472         sys/times.h \
473         sys/uio.h \
474         sys/user.h \
475         sys/utsname.h \
476         sys/vnode.h \
477         sys/xattr.h \
478         syscall.h \
479         utime.h \
480         valgrind/memcheck.h \
481         valgrind/valgrind.h
483 WINE_HEADER_MAJOR()
484 AC_HEADER_STAT()
486 dnl **** Checks for headers that depend on other ones ****
488 AC_CHECK_HEADERS([sys/conf.h sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,,
489     [#include <sys/types.h>
490      #ifdef HAVE_SYS_PARAM_H
491      # include <sys/param.h>
492      #endif])
494 dnl check for broken Linux sysctl.h that causes deprecation warnings
495 saved_sysctl_h_CFLAGS=$CFLAGS
496 test "x${GCC}" != xyes || CFLAGS="$CFLAGS -Werror"
497 AC_CHECK_HEADERS([sys/sysctl.h],,,
498     [#include <sys/types.h>
499      #ifdef HAVE_SYS_PARAM_H
500      # include <sys/param.h>
501      #endif])
502 CFLAGS=$saved_sysctl_h_CFLAGS
504 AC_CHECK_HEADERS(\
505         netinet/ip.h \
506         net/if.h \
507         net/if_arp.h \
508         net/if_dl.h \
509         net/if_types.h \
510         net/route.h \
511         netinet/if_ether.h \
512         netinet/in_pcb.h \
513         netinet/ip_icmp.h \
514         netinet/ip_var.h \
515         netinet/udp.h \
516         netinet6/ip6_var.h \
517         netipx/ipx.h \
518         sys/un.h \
519 ,,,[#include <sys/types.h>
520      #include <sys/socket.h>
521      #ifdef HAVE_SYS_SOCKETVAR_H
522      # include <sys/socketvar.h>
523      #endif
524      #ifdef HAVE_NET_ROUTE_H
525      # include <net/route.h>
526      #endif
527      #ifdef HAVE_NETINET_IN_H
528      # include <netinet/in.h>
529      #endif
530      #ifdef HAVE_NETINET_IN_SYSTM_H
531      # include <netinet/in_systm.h>
532      #endif
533      #ifdef HAVE_NET_IF_H
534      # include <net/if.h>
535      #endif
536      #ifdef HAVE_NETINET_IP_H
537      # include <netinet/ip.h>
538      #endif])
540 AC_CHECK_HEADERS([netinet/udp_var.h netinet/icmp_var.h netinet/icmp6.h netinet/tcp_var.h ],,,
541     [#include <sys/types.h>
542      #include <sys/socket.h>
543      #ifdef HAVE_SYS_SOCKETVAR_H
544      # include <sys/socketvar.h>
545      #endif
546      #ifdef HAVE_NETINET_IN_H
547      # include <netinet/in.h>
548      #endif
549      #ifdef HAVE_NETINET_IN_SYSTM_H
550      # include <netinet/in_systm.h>
551      #endif
552      #ifdef HAVE_NETINET_IP_H
553      # include <netinet/ip.h>
554      #endif
555      #ifdef HAVE_NETINET_IP_VAR_H
556      # include <netinet/ip_var.h>
557      #endif
558      #ifdef HAVE_NETINET_IP_ICMP_H
559      # include <netinet/ip_icmp.h>
560      #endif
561      #ifdef HAVE_NETINET_UDP_H
562      # include <netinet/udp.h>
563      #endif
564      #ifdef HAVE_NETINET_TCP_H
565      # include <netinet/tcp.h>
566      #endif])
568 AC_CHECK_HEADERS([linux/ipx.h linux/irda.h linux/rtnetlink.h],,,
569     [#include <sys/types.h>
570      #include <sys/socket.h>
571      #ifdef HAVE_ASM_TYPES_H
572      # include <asm/types.h>
573      #endif
574      #ifdef HAVE_LINUX_TYPES_H
575      # include <linux/types.h>
576      #endif])
578 AC_CHECK_HEADERS([resolv.h],,,
579     [#include <sys/types.h>
580      #include <sys/socket.h>
581      #ifdef HAVE_NETINET_IN_H
582      # include <netinet/in.h>
583      #endif
584      #ifdef HAVE_ARPA_NAMESER_H
585      # include <arpa/nameser.h>
586      #endif])
588 AC_CHECK_HEADERS([ifaddrs.h],,,[#include <sys/types.h>])
590 AC_CHECK_HEADERS(sys/ucontext.h,,,[#include <signal.h>])
592 AC_CHECK_HEADERS([sys/thr.h],,,
593 [#include <sys/types.h>
594 #ifdef HAVE_SYS_UCONTEXT_H
595 #include <sys/ucontext.h>
596 #endif])
598 AC_CHECK_HEADERS([pthread_np.h],,,[#include <pthread.h>])
600 AC_CHECK_HEADERS([linux/videodev2.h],,,
601 [#include <sys/time.h>
602 #include <sys/types.h>
603 #ifdef HAVE_ASM_TYPES_H
604 #include <asm/types.h>
605 #endif])
607 AC_CHECK_HEADERS([libprocstat.h],,,
608 [#ifdef HAVE_SYS_PARAM_H
609 #include <sys/param.h>
610 #endif
611 #include <sys/socket.h>
612 #ifdef HAVE_SYS_QUEUE_H
613 #include <sys/queue.h>
614 #endif])
616 if test "x$ac_cv_header_sys_xattr_h" = xyes
617 then
618     AC_CACHE_CHECK([whether getxattr takes additional arguments], wine_cv_xattr_extra_args,
619         [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/xattr.h>]], [[getxattr("", "", "", 0, 0, 0);]])],
620                            [wine_cv_xattr_extra_args=yes],[wine_cv_xattr_extra_args=no])])
621     test $wine_cv_xattr_extra_args != yes || AC_DEFINE(XATTR_ADDITIONAL_OPTIONS, 1, [Define if xattr functions take additional arguments (macOS)])
624 dnl **** Check for working dll ****
626 AC_SUBST(DLLFLAGS,"")
627 AC_SUBST(LDDLLFLAGS,"")
628 AC_SUBST(LDEXECFLAGS,"")
629 AC_SUBST(EXTRACFLAGS,"")
630 AC_SUBST(UNIXDLLFLAGS,"-fPIC")
631 AC_SUBST(UNIXLDFLAGS,["-shared -Wl,-Bsymbolic -Wl,-soname,\$(UNIXLIB)"])
632 AC_SUBST(TOP_INSTALL_LIB,"")
633 AC_SUBST(TOP_INSTALL_DEV,"")
634 AC_SUBST(WINELOADER_LDFLAGS,"")
635 AC_SUBST(WINEPRELOADER_LDFLAGS,"")
636 AC_SUBST(DLLEXT,".so")
637 LIBEXT="so"
638 WINE_PATH_SONAME_TOOLS
639 WINE_CONFIG_HELPERS
641 case $host_os in
642   cygwin*|mingw32*)
643     LIBEXT="dll"
644     DLLEXT=""
645     EXTRACFLAGS="-D__WINE_PE_BUILD"
646     dnl Disable stdcall fixups to catch prototype mismatches
647     AS_VAR_IF([HOST_ARCH],[i386],
648         [WINE_TRY_CFLAGS([-Wl,--disable-stdcall-fixup],
649                          [LDDLLFLAGS="-Wl,--disable-stdcall-fixup"])])
650     dnl Disable modules that can't be used on Windows
651     enable_loader=${enable_loader:-no}
652     enable_server=${enable_server:-no}
653     dnl Disable dependencies that are not useful on Windows
654     with_x=${with_x:-no}
655     with_pthread=${with_pthread:-no}
656     ;;
658   darwin*|macosx*)
659     LIBEXT="dylib"
660     DLLFLAGS="$DLLFLAGS -fPIC"
661     LDDLLFLAGS="-fPIC"
662     enable_winemac_drv=${enable_winemac_drv:-yes}
663     dnl declare needed frameworks
664     AC_SUBST(CARBON_LIBS,"-framework Carbon")
665     AC_SUBST(COREFOUNDATION_LIBS,"-framework CoreFoundation")
666     AC_SUBST(DISKARBITRATION_LIBS,"-framework DiskArbitration -framework CoreFoundation")
667     AC_SUBST(IOKIT_LIBS,"-framework IOKit -framework CoreFoundation")
668     AC_SUBST(METAL_LIBS,"-framework Metal")
669     AC_SUBST(APPLICATIONSERVICES_LIBS,"-framework ApplicationServices")
670     AC_SUBST(CORESERVICES_LIBS,"-framework CoreServices")
671     AC_SUBST(APPKIT_LIBS,"-framework AppKit")
672     AC_SUBST(SECURITY_LIBS,"-framework Security -framework CoreFoundation")
673     AC_SUBST(SYSTEMCONFIGURATION_LIBS,"-framework SystemConfiguration")
675     WINELOADER_LDFLAGS="-Wl,-pie,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
677     case $HOST_ARCH in
678       i386|x86_64) wine_can_build_preloader=yes ;;
679       *)           wine_can_build_preloader=no ;;
680     esac
682     if test "$wine_can_build_preloader" = "yes"
683     then
684         WINEPRELOADER_LDFLAGS="-nostartfiles -nodefaultlibs -e _start -ldylib1.o -mmacosx-version-min=10.7 -Wl,-no_new_main,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
685         WINE_TRY_CFLAGS([-Wl,-no_pie],
686                         [WINEPRELOADER_LDFLAGS="-Wl,-no_pie $WINEPRELOADER_LDFLAGS"])
687         case $HOST_ARCH in
688           i386)
689             WINEPRELOADER_LDFLAGS="-Wl,-image_base,0x7d400000 $WINEPRELOADER_LDFLAGS"
690             ;;
691           x86_64)
692             WINEPRELOADER_LDFLAGS="-Wl,-image_base,0x200000000,-segalign,0x1000,-segaddr,WINE_RESERVE,0x1000 $WINEPRELOADER_LDFLAGS"
693             ;;
694         esac
695         dnl If preloader is used, the loader needs to be an LC_UNIXTHREAD binary to avoid AppKit/Core Animation problems.
696         WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -mmacosx-version-min=10.7"
697     else
698         WINE_WARNING([can't build Wine preloader; many programs won't work])
699     fi
701     if test "x$with_coreaudio" != "xno";
702     then
703         AC_SUBST(COREAUDIO_LIBS,"-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI")
704         enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-yes}
705     fi
706     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
707     then
708         AC_SUBST(OPENCL_LIBS,"-framework OpenCL")
709         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
710     fi
712     dnl Check for MTLDevice registryID property
713     AC_MSG_CHECKING([whether MTLDevice protocol supports registryID property])
714     AC_LANG_PUSH([Objective C])
715     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <Metal/Metal.h>]], [[id<MTLDevice> device; device.registryID;]])],
716                           [AC_MSG_RESULT(yes)
717                            AC_DEFINE(HAVE_MTLDEVICE_REGISTRYID, 1, [Define if MTLDevice protocol has registryID property.])],
718                           [AC_MSG_RESULT(no)])
719     AC_LANG_POP([Objective C])
721     UNIXLDFLAGS="-dynamiclib -install_name @rpath/\$(UNIXLIB) -Wl,-rpath,@loader_path\/"
722     AC_SUBST(WINELOADER_DEPENDS,"wine_info.plist")
723     ;;
725   linux-android*)
726     AC_DEFINE(_GNU_SOURCE,1,[Define to 1 to enable GNU extensions on Linux])
727     DLLFLAGS="$DLLFLAGS -fPIC"
728     LDDLLFLAGS="-fPIC"
729     LDEXECFLAGS="-Wl,-pie"
730     enable_wineandroid_drv=${enable_wineandroid_drv:-yes}
731     WINE_TRY_CFLAGS([-Wl,-z,defs],[UNIXLDFLAGS="$UNIXLDFLAGS -Wl,-z,defs"])
732     WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],[WINELOADER_LDFLAGS="-Wl,--export-dynamic"])
733     WINEPRELOADER_LDFLAGS="-static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7d400000"
735     WINE_CHECK_SONAME(EGL,eglGetProcAddress)
736     WINE_CHECK_SONAME(GLESv2,glFlush)
738     if test "x$exec_prefix" = xNONE
739     then
740       case $HOST_ARCH in
741         i386)    exec_prefix='${prefix}/x86' ;;
742         x86_64)  exec_prefix='${prefix}/x86_64' ;;
743         arm)     exec_prefix='${prefix}/armeabi-v7a' ;;
744         aarch64) exec_prefix='${prefix}/arm64-v8a' ;;
745       esac
746     fi
747     ;;
749   *)
750     AC_DEFINE(_GNU_SOURCE,1,[Define to 1 to enable GNU extensions on Linux])
751     test "$ac_cv_sys_file_offset_bits" = 64 && AC_DEFINE(_TIME_BITS,64,[Define to 64 to enable 64-bit time_t on Linux])
752     if test $HOST_ARCH = i386
753     then
754         DLLFLAGS="$DLLFLAGS -fno-PIC"
755         LDDLLFLAGS="-fno-PIC"
756         WINE_TRY_CFLAGS([-fno-PIC -Wl,-z,notext],[LDDLLFLAGS="$LDDLLFLAGS -Wl,-z,notext"])
757     else
758         DLLFLAGS="$DLLFLAGS -fPIC"
759         LDDLLFLAGS="-fPIC"
760     fi
762     AC_CACHE_CHECK([whether -Wl,-z,defs works correctly], ac_cv_wl_z_defs,
763                    [ac_save_CFLAGS="$CFLAGS"
764                     CFLAGS="$CFLAGS $UNIXDLLFLAGS $UNIXLDFLAGS -Wl,-z,defs"
765                     dnl On FreeBSD, shared libraries using environ fail to link with -Wl,-z,defs
766                     AC_LINK_IFELSE([AC_LANG_SOURCE([[extern char **environ; char **envp; void myfunc(void) { envp = environ; }]])],
767                                                    [ac_cv_wl_z_defs=yes],[ac_cv_wl_z_defs=no])
768                     CFLAGS=$ac_save_CFLAGS])
769     test $ac_cv_wl_z_defs != yes || AS_VAR_APPEND([UNIXLDFLAGS],[" -Wl,-z,defs"])
771     WINE_TRY_CFLAGS([-Wl,--export-dynamic],[WINELOADER_LDFLAGS="-Wl,--export-dynamic"])
772     WINEPRELOADER_LDFLAGS="-nostartfiles -nodefaultlibs"
774     case $host_os in
775       linux*)
776         AS_VAR_APPEND([WINELOADER_LDFLAGS],[" -pie"])
777         case $HOST_ARCH in
778           i386|arm)
779             AS_VAR_APPEND([WINEPRELOADER_LDFLAGS],[" -static -Wl,-Ttext=0x7d400000"]) ;;
780           *)
781             WINE_TRY_CFLAGS([-static-pie],
782                             [AS_VAR_APPEND([WINEPRELOADER_LDFLAGS],[" -static-pie"])],
783                             [AS_VAR_APPEND([WINEPRELOADER_LDFLAGS],[" -static -Wl,-Ttext=0x7d7d00000000"])])
784             ;;
785         esac
786         ;;
787       *)
788         case $HOST_ARCH in
789           i386|arm)
790             WINE_TRY_CFLAGS([-Wl,-Ttext-segment=0x60000000],
791                             [AS_VAR_APPEND([WINELOADER_LDFLAGS],[" -Wl,-Ttext-segment=0x60000000"])],
792                             [WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x60000400],
793                                 [AS_VAR_APPEND([WINELOADER_LDFLAGS],[" -Wl,--section-start,.interp=0x60000400"])])])
794             ;;
795           *)
796             AS_VAR_APPEND([WINELOADER_LDFLAGS],[" -pie"])
797             ;;
798         esac
799         ;;
800     esac
801     ;;
802 esac
804 enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
805 enable_wineandroid_drv=${enable_wineandroid_drv:-no}
806 enable_winemac_drv=${enable_winemac_drv:-no}
808 dnl Check for cross compiler(s)
809 AC_SUBST(PE_ARCHS,"")
810 cross_archs=
811 AS_VAR_SET_IF([enable_archs],
812     [test "x$with_system_dllpath" = "x" || AC_MSG_ERROR("The --with-system-dllpath option is not compatible with --enable-archs")
813      ac_save_IFS=$IFS
814      IFS=' ,'
815      set x $enable_archs
816      IFS=$ac_save_IFS
817      shift
818      for arch
819      do
820          case $arch in
821            i386|x86_64|arm|aarch64) cross_archs="$cross_archs $arch" ;;
822            *) AC_MSG_ERROR([Unknown cross-compilation architecture '$arch']) ;;
823          esac
824      done],
825     [if test "x$with_mingw" != xno
826      then
827          test $HOST_ARCH = unknown || cross_archs=$HOST_ARCH
828      fi])
830 for wine_arch in $cross_archs
832     case "x$with_mingw" in
833       xclang|x*/clang) AS_VAR_SET(${wine_arch}_CC,$with_mingw) ;;
834     esac
835     AS_VAR_IF([${wine_arch}_CC],[],
836         [case $wine_arch in
837           aarch64)
838             AC_CHECK_PROGS(aarch64_CC,[aarch64-w64-mingw32-clang aarch64-w64-mingw32-gcc clang],[false])
839             ;;
840           arm)
841             AC_CHECK_PROGS(arm_CC,[armv7-w64-mingw32-clang armv7-w64-mingw32-gcc clang],[false])
842             ;;
843          i386)
844             ac_prefix_list="m4_foreach([cc],[gcc,clang],m4_foreach([cpu],[i686,i586,i486,i386],[cpu-w64-mingw32-cc ]))"
845             AC_CHECK_PROGS(i386_CC,[$ac_prefix_list clang],[false])
846             ;;
847          x86_64)
848             ac_prefix_list="m4_foreach([cc],[gcc,clang],m4_foreach([cpu],[x86_64,amd64],[cpu-w64-mingw32-cc ]))"
849             AC_CHECK_PROGS(x86_64_CC,[$ac_prefix_list clang],[false])
850             ;;
851         esac])
853     saved_CC=$CC
854     saved_CFLAGS=$CFLAGS
855     saved_LDFLAGS=$LDFLAGS
857     CFLAGS=${CROSSCFLAGS:-"-g -O2"}
858     LDFLAGS=$CROSSLDFLAGS
859     AS_VAR_COPY([CC],[${wine_arch}_CC])
860     AS_VAR_COPY([${wine_arch}_CFLAGS],[CFLAGS])
861     AS_VAR_COPY([${wine_arch}_LDFLAGS],[LDFLAGS])
862     AS_VAR_SET([${wine_arch}_EXTRACFLAGS],["-D__WINE_PE_BUILD -Wall"])
864     target=""
865     AS_VAR_PUSHDEF([wine_cv_crosscc],[ac_cv_${wine_arch}_crosscc])
866     AS_VAR_IF([${wine_arch}_CC],[false],[],
867         [AC_CACHE_CHECK([whether $CC works],[wine_cv_crosscc],
868             [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
869                 [AS_VAR_SET([wine_cv_crosscc],[yes])],[AS_VAR_SET([wine_cv_crosscc],[no])])])])
870     AS_VAR_IF([wine_cv_crosscc],[yes],
871        [set x $CC
872         shift
873         while test $# -ge 1
874         do
875             case "$1" in
876                 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
877                 *-clang) target=`expr "$1" : '\(.*\)-clang'` ;;
878             esac
879             shift
880         done
882         dnl Check if cross compiler supports -target argument
883         llvm_target=$target
884         if test -z "$llvm_target"
885         then
886             case $wine_arch in
887             i386) llvm_target=i686-windows ;;
888             arm)  llvm_target=armv7-windows ;;
889             *)    llvm_target=$wine_arch-windows ;;
890             esac
891         fi
892         llvm_extra_cflags="-target $llvm_target -fuse-ld=lld"
893         case $llvm_target in
894           *windows) llvm_cflags="-Wl,-subsystem:console -Wl,-WX" ;;
895         esac
896         WINE_TRY_PE_CFLAGS([$llvm_extra_cflags $llvm_cflags],
897                            [target=$llvm_target
898                             AS_VAR_SET([${wine_arch}_DELAYLOADFLAG],["-Wl,-delayload,"])
899                             AS_VAR_APPEND([${wine_arch}_EXTRACFLAGS],[" $llvm_extra_cflags"])
900                             CFLAGS="$llvm_extra_cflags $llvm_cflags"])
901         AS_VAR_SET([${wine_arch}_TARGET],[$target])])
902     AS_VAR_POPDEF([wine_cv_crosscc])
904     if test -z "$target"
905     then
906         AS_VAR_SET_IF([enable_archs],
907             [AC_MSG_ERROR([MinGW $wine_arch compiler not found.
908 This is an error since --enable-archs=$wine_arch was requested.])])
909         CC=$saved_CC
910         CFLAGS=$saved_CFLAGS
911         LDFLAGS=$saved_LDFLAGS
912         continue
913     fi
915     AS_VAR_PUSHDEF([wine_cv_crosscc_c99],[ac_cv_${wine_arch}_crosscc_c99])
916     AC_MSG_CHECKING([for $CC option to enable C99 features])
917     AC_CACHE_VAL([wine_cv_crosscc_c99],
918         [AS_VAR_SET([wine_cv_crosscc_c99],[no])
919          for arg in '' '-std=gnu99' '-D__STDC__'
920          do
921              test -z "$arg" || CC="$CC $arg"
922              AC_COMPILE_IFELSE([AC_LANG_SOURCE([$ac_c_conftest_c99_program])],
923                                [AS_VAR_SET([wine_cv_crosscc_c99],[$arg])],
924                                [AS_VAR_SET([wine_cv_crosscc_c99],[no])])
925              AS_VAR_COPY([CC],[${wine_arch}_CC])
926              AS_VAR_IF([wine_cv_crosscc_c99],[no],[],[break])
927          done])
928     AS_VAR_COPY([res],[wine_cv_crosscc_c99])
929     AS_VAR_POPDEF([wine_cv_crosscc_c99])
930     case "x$res" in
931       x) AC_MSG_RESULT([none needed]) ;;
932       xno) AC_MSG_RESULT([unsupported])
933            CC=$saved_CC
934            CFLAGS=$saved_CFLAGS
935            LDFLAGS=$saved_LDFLAGS
936            AS_VAR_SET_IF([enable_archs],
937                 [AC_MSG_ERROR([MinGW $wine_arch compiler supporting C99 not found.
938 This is an error since --enable-archs=$wine_arch was requested.])])
939            continue
940            ;;
941       x*) AC_MSG_RESULT([$res])
942           AS_VAR_APPEND([${wine_arch}_CC],[" $res"]) ;;
943     esac
945     AS_VAR_APPEND([PE_ARCHS],[" $wine_arch"])
946     WINE_TRY_PE_CFLAGS([-fno-strict-aliasing])
947     dnl clang needs to be told to fail on unknown options
948     WINE_TRY_PE_CFLAGS([-Werror=unknown-warning-option],[CFLAGS="$CFLAGS -Werror=unknown-warning-option"])
949     WINE_TRY_PE_CFLAGS([-Werror=ignored-optimization-argument],[CFLAGS="$CFLAGS -Werror=ignored-optimization-argument"])
950     WINE_TRY_PE_CFLAGS([-Wdeclaration-after-statement])
951     WINE_TRY_PE_CFLAGS([-Wempty-body])
952     WINE_TRY_PE_CFLAGS([-Wignored-qualifiers])
953     WINE_TRY_PE_CFLAGS([-Winit-self])
954     WINE_TRY_PE_CFLAGS([-Wpacked-not-aligned],[AS_VAR_APPEND(${wine_arch}_EXTRACFLAGS,[" -Wno-packed-not-aligned"])])
955     WINE_TRY_PE_CFLAGS([-Wpragma-pack],[AS_VAR_APPEND(${wine_arch}_EXTRACFLAGS,[" -Wno-pragma-pack"])])
956     WINE_TRY_PE_CFLAGS([-Wmicrosoft-enum-forward-reference],[AS_VAR_APPEND(${wine_arch}_EXTRACFLAGS,[" -Wno-microsoft-enum-forward-reference"])])
957     WINE_TRY_PE_CFLAGS([-Wshift-overflow=2])
958     WINE_TRY_PE_CFLAGS([-Wstrict-prototypes])
959     WINE_TRY_PE_CFLAGS([-Wtype-limits])
960     WINE_TRY_PE_CFLAGS([-Wunused-but-set-parameter])
961     WINE_TRY_PE_CFLAGS([-Wvla])
962     WINE_TRY_PE_CFLAGS([-Wwrite-strings])
963     WINE_TRY_PE_CFLAGS([-Wpointer-arith])
964     WINE_TRY_PE_CFLAGS([-Wlogical-op])
965     WINE_TRY_PE_CFLAGS([-Wabsolute-value])
967     case $wine_arch in
968       i386) WINE_TRY_PE_CFLAGS([-fno-omit-frame-pointer])
969             WINE_TRY_PE_CFLAGS([-Wl,--disable-stdcall-fixup],
970                                [AS_VAR_APPEND([${wine_arch}_LDFLAGS],[" -Wl,--disable-stdcall-fixup"])]) ;;
971       x86_64) WINE_TRY_PE_CFLAGS([-Wformat-overflow])
972               WINE_TRY_PE_CFLAGS([-Wnonnull])
973               WINE_TRY_PE_CFLAGS([-mcx16])
974               WINE_TRY_PE_CFLAGS([-mcmodel=small]) ;;
975     esac
977     dnl Determine debug info format
978     wine_crossdebug=$CROSSDEBUG
979     if test -z "$wine_crossdebug"
980     then
981       for ac_flag in $CFLAGS; do
982         case $ac_flag in
983          -gdwarf*)    wine_crossdebug=dwarf ;;
984          -gcodeview)  wine_crossdebug=pdb ;;
985          -g)          wine_crossdebug=${wine_crossdebug:-dwarf} ;;
986         esac
987       done
988     fi
990     ac_debug_format_seen=""
991     for ac_flag in $CFLAGS; do
992       case $ac_flag in
993        -gdwarf*|-gcodeview)  ac_debug_format_seen=$ac_flag ;;
994       esac
995     done
996     if test "x$ac_debug_format_seen" = x
997     then
998       case $wine_crossdebug in
999         *dwarf)  WINE_TRY_PE_CFLAGS([-gdwarf-4]) ;;
1000         pdb)     WINE_TRY_PE_CFLAGS([-gcodeview]) ;;
1001       esac
1002     fi
1003     AS_VAR_SET([${wine_arch}_DEBUG],[$wine_crossdebug])
1005     test "x$enable_werror" != xyes || WINE_TRY_PE_CFLAGS([-Werror])
1006     test "x$enable_build_id" != xyes || WINE_TRY_PE_CFLAGS([-Wl,--build-id],
1007                                          [AS_VAR_APPEND([${wine_arch}_CFLAGS],[" -Wl,--build-id"])
1008                                           AS_VAR_APPEND([${wine_arch}_LDFLAGS],[" -Wl,--build-id"])])
1010     CC=$saved_CC
1011     CFLAGS=$saved_CFLAGS
1012     LDFLAGS=$saved_LDFLAGS
1013 done
1015 if test $HOST_ARCH = aarch64
1016 then
1017     test "x$PE_ARCHS" != x || AC_MSG_ERROR([PE cross-compilation is required for ARM64, please install clang/llvm-dlltool/lld, or llvm-mingw.])
1018     DLLEXT=""
1021 dnl **** External libraries ****
1023 if test "x$with_system_dllpath" != "x" -a -n "$PE_ARCHS"
1024 then
1025     WINE_MINGW_PACKAGE_FLAGS(FAUDIO,[FAudio],[-lFAudio],
1026         [WINE_CHECK_MINGW_HEADER(FAudio.h,
1027             [WINE_CHECK_MINGW_LIB(FAudio,FAudio_CommitOperationSet,[:],[FAUDIO_PE_CFLAGS=""; FAUDIO_PE_LIBS=""],[$FAUDIO_PE_LIBS])],
1028             [FAUDIO_PE_CFLAGS=""; FAUDIO_PE_LIBS=""])])
1029     if test "x$FAUDIO_PE_LIBS" = "x"
1030     then
1031         WINE_NOTICE([FAudio ${notice_platform}MinGW development files not found (or too old); using bundled version.])
1032     fi
1034     WINE_MINGW_PACKAGE_FLAGS(FLUIDSYNTH,[fluidsynth],[-lfluidsynth],
1035         [WINE_CHECK_MINGW_HEADER(fluidsynth.h,
1036             [WINE_CHECK_MINGW_LIB(fluidsynth,new_fluid_synth,[:],[FLUIDSYNTH_PE_CFLAGS=""; FLUIDSYNTH_PE_LIBS=""],[$FLUIDSYNTH_PE_LIBS])],
1037             [FLUIDSYNTH_PE_CFLAGS=""; FLUIDSYNTH_PE_LIBS=""])])
1038     if test "x$FLUIDSYNTH_PE_LIBS" = "x"
1039     then
1040         WINE_NOTICE([Fluidsynth ${notice_platform}MinGW development files not found (or too old); using bundled version.])
1041     fi
1043     WINE_MINGW_PACKAGE_FLAGS(JPEG,[libjpeg],,
1044         [WINE_CHECK_MINGW_HEADER(jpeglib.h,
1045             [WINE_CHECK_MINGW_LIB(jpeg,jpeg_start_decompress,[:],[JPEG_PE_CFLAGS=""; JPEG_PE_LIBS=""],[$JPEG_PE_LIBS])],
1046             [JPEG_PE_CFLAGS=""; JPEG_PE_LIBS=""],
1047             [#include <stddef.h>
1048              #include <stdio.h>])])
1049     if test "x$JPEG_PE_LIBS" = "x"
1050     then
1051         WINE_NOTICE([libjpeg ${notice_platform}MinGW development files not found; using bundled version.])
1052     fi
1054     WINE_MINGW_PACKAGE_FLAGS(LCMS2,[lcms2],[-llcms2],
1055         [WINE_CHECK_MINGW_HEADER(lcms2.h,
1056             [WINE_CHECK_MINGW_LIB(lcms2,cmsOpenProfileFromFile,[:],[LCMS2_PE_CFLAGS=""; LCMS2_PE_LIBS=""],[$LCMS2_PE_LIBS])],
1057             [LCMS2_PE_CFLAGS=""; LCMS2_PE_LIBS=""])])
1058     if test "x$LCMS2_PE_LIBS" = "x"
1059     then
1060         WINE_NOTICE([liblcms2 ${notice_platform}MinGW development files not found; using bundled version.])
1061     fi
1063     WINE_MINGW_PACKAGE_FLAGS(MPG123,[libmpg123],[-lmpg123],
1064         [WINE_CHECK_MINGW_HEADER(mpg123.h,
1065             [WINE_CHECK_MINGW_LIB(mpg123,mpg123_feed,[:],[MPG123_PE_CFLAGS=""; MPG123_PE_LIBS=""],[$MPG123_PE_LIBS])],
1066             [MPG123_PE_CFLAGS=""; MPG123_PE_LIBS=""])])
1067     if test "x$MPG123_PE_LIBS" = "x"
1068     then
1069         WINE_NOTICE([libmpg123 ${notice_platform}MinGW development files not found (or too old); using bundled version.])
1070     fi
1072     WINE_MINGW_PACKAGE_FLAGS(PNG,[libpng],,
1073         [WINE_CHECK_MINGW_HEADER(png.h,
1074             [WINE_CHECK_MINGW_LIB(png,png_create_read_struct,[:],[PNG_PE_CFLAGS=""; PNG_PE_LIBS=""],[$PNG_PE_LIBS])],
1075             [PNG_PE_CFLAGS=""; PNG_PE_LIBS=""])])
1076     if test "x$PNG_PE_LIBS" = "x"
1077     then
1078         WINE_NOTICE([libpng ${notice_platform}MinGW development files not found; using bundled version.])
1079     fi
1081     WINE_MINGW_PACKAGE_FLAGS(TIFF,[libtiff-4],,
1082         [WINE_CHECK_MINGW_HEADER(tiffio.h,
1083             [WINE_CHECK_MINGW_LIB(tiff,TIFFClientOpen,[:],[TIFF_PE_CFLAGS=""; TIFF_PE_LIBS=""],[$TIFF_PE_LIBS])],
1084             [TIFF_PE_CFLAGS=""; TIFF_PE_LIBS=""])])
1085     if test "x$TIFF_PE_LIBS" = "x"
1086     then
1087         WINE_NOTICE([libtiff ${notice_platform}MinGW development files not found; using bundled version.])
1088     fi
1090     WINE_MINGW_PACKAGE_FLAGS(XML2,[libxml-2.0],[-lxml2],
1091         [WINE_CHECK_MINGW_HEADER(libxml/parser.h)
1092         WINE_CHECK_MINGW_HEADER(libxml/xmlsave.h)
1093         WINE_CHECK_MINGW_HEADER(libxml/SAX2.h)
1094         if test "$ac_cv_mingw_header_libxml_parser_h" = "yes" -a "$ac_cv_mingw_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_mingw_header_libxml_SAX2_h" = "yes"
1095         then
1096             WINE_CHECK_MINGW_LIB(xml2,xmlFirstElementChild,[:],[XML2_PE_CFLAGS=""; XML2_PE_LIBS=""],[$XML2_PE_LIBS])
1097         else
1098             XML2_PE_CFLAGS=""
1099             XML2_PE_LIBS=""
1100         fi])
1101     if test "x$XML2_PE_LIBS" = "x"
1102     then
1103         WINE_NOTICE([libxml2 ${notice_platform}MinGW development files not found (or too old); using bundled version.])
1104     fi
1106     WINE_MINGW_PACKAGE_FLAGS(XSLT,[libxslt],[-lxslt],
1107         [WINE_CHECK_MINGW_HEADER(libxslt/pattern.h)
1108         WINE_CHECK_MINGW_HEADER(libxslt/transform.h)
1109         if test "$ac_cv_mingw_header_libxslt_pattern_h" = "yes" -a "$ac_cv_mingw_header_libxslt_transform_h" = "yes"
1110         then
1111             WINE_CHECK_MINGW_LIB(xslt,xsltCompilePattern,[:],[XSLT_PE_CFLAGS=""; XSLT_PE_LIBS=""],[$XSLT_PE_LIBS])
1112         else
1113             XSLT_PE_CFLAGS=""
1114             XSLT_PE_LIBS=""
1115         fi])
1116     if test "x$XSLT_PE_LIBS" = "x"
1117     then
1118         WINE_NOTICE([libxslt ${notice_platform}MinGW development files not found; using bundled version.])
1119     fi
1121     WINE_MINGW_PACKAGE_FLAGS(VKD3D,[libvkd3d libvkd3d-shader],[-lvkd3d -lvkd3d-shader],
1122         [WINE_CHECK_MINGW_HEADER(vkd3d.h)
1123         WINE_CHECK_MINGW_HEADER(vkd3d_shader.h)
1124         if test "$ac_cv_mingw_header_vkd3d_h" = "yes" -a "$ac_cv_mingw_header_vkd3d_shader_h" = "yes"
1125         then
1126             WINE_CHECK_MINGW_LIB(vkd3d,vkd3d_set_log_callback,[:],[:],[$VKD3D_PE_LIBS])
1127             WINE_CHECK_MINGW_LIB(vkd3d-shader,vkd3d_shader_serialize_dxbc,[:],[:],[$VKD3D_PE_LIBS])
1128             if test "$ac_cv_mingw_lib_vkd3d" = "no" -o "$ac_cv_mingw_lib_vkd3d_shader" = "no"
1129             then
1130                 VKD3D_PE_CFLAGS=""
1131                 VKD3D_PE_LIBS=""
1132             fi
1133         else
1134             VKD3D_PE_CFLAGS=""
1135             VKD3D_PE_LIBS=""
1136         fi])
1137     if test "x$VKD3D_PE_LIBS" = "x"
1138     then
1139         WINE_NOTICE([libvkd3d ${notice_platform}MinGW development files not found (or too old); using bundled version.])
1140     fi
1142     WINE_MINGW_PACKAGE_FLAGS(ZLIB,[zlib],[-lz],
1143         [WINE_CHECK_MINGW_HEADER(zlib.h,
1144             [WINE_CHECK_MINGW_LIB(z,inflate,[:],[ZLIB_PE_CFLAGS=""; ZLIB_PE_LIBS=""],[$ZLIB_PE_LIBS])],
1145             [ZLIB_PE_CFLAGS=""; ZLIB_PE_LIBS=""])])
1146     if test "x$ZLIB_PE_LIBS" = "x"
1147     then
1148         WINE_NOTICE([zlib ${notice_platform}MinGW development files not found; using bundled version.])
1149     fi
1152 WINE_EXTLIB_FLAGS(FAUDIO, faudio, "faudio mfplat mfreadwrite mfuuid propsys", "-I\$(top_srcdir)/libs/faudio/include")
1153 WINE_EXTLIB_FLAGS(FLUIDSYNTH, fluidsynth, "fluidsynth", "-I\$(top_srcdir)/libs/fluidsynth/include")
1154 WINE_EXTLIB_FLAGS(GSM, gsm, gsm, "-I\$(top_srcdir)/libs/gsm/inc")
1155 WINE_EXTLIB_FLAGS(JPEG, jpeg, jpeg, "-I\$(top_srcdir)/libs/jpeg")
1156 WINE_EXTLIB_FLAGS(JXR, jxr, jxr, "-I\$(top_srcdir)/libs/jxr/jxrgluelib -I\$(top_srcdir)/libs/jxr/image/sys")
1157 WINE_EXTLIB_FLAGS(LCMS2, lcms2, lcms2, "-I\$(top_srcdir)/libs/lcms2/include")
1158 WINE_EXTLIB_FLAGS(LDAP, ldap, ldap, "-I\$(top_srcdir)/libs/ldap/include")
1159 WINE_EXTLIB_FLAGS(MPG123, mpg123, mpg123, "-I\$(top_srcdir)/libs/mpg123/src/libmpg123")
1160 WINE_EXTLIB_FLAGS(MUSL, musl, musl)
1161 WINE_EXTLIB_FLAGS(PNG, png, "png \$(ZLIB_PE_LIBS)", "-I\$(top_srcdir)/libs/png")
1162 WINE_EXTLIB_FLAGS(TIFF, tiff, "tiff \$(ZLIB_PE_LIBS)", "-I\$(top_srcdir)/libs/tiff/libtiff")
1163 WINE_EXTLIB_FLAGS(VKD3D, vkd3d, vkd3d, "-I\$(top_srcdir)/libs/vkd3d/include")
1164 WINE_EXTLIB_FLAGS(XML2, xml2, xml2, "-I\$(top_srcdir)/libs/xml2/include -DLIBXML_STATIC")
1165 WINE_EXTLIB_FLAGS(XSLT, xslt, xslt, "-I\$(top_srcdir)/libs/xslt/libxslt -I\$(top_srcdir)/libs/xslt -DLIBXSLT_STATIC")
1166 WINE_EXTLIB_FLAGS(ZLIB, zlib, z, "-I\$(top_srcdir)/libs/zlib -DFAR= -DZ_SOLO")
1167 WINE_EXTLIB_FLAGS(ZYDIS, zydis, zydis, "-I\$(top_srcdir)/libs/zydis/include")
1169 dnl **** Check for pthread ****
1171 AS_VAR_IF([with_pthread],[no],[],
1172           [AC_CHECK_FUNC(pthread_create,,[AC_CHECK_LIB(pthread,pthread_create,[AC_SUBST(PTHREAD_LIBS,"-lpthread")])])])
1173 WINE_ERROR_WITH(pthread,[test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x],
1174 [pthread ${notice_platform}development files not found.
1175 Wine cannot support threads without libpthread.])
1177 dnl **** Check for X11 ****
1179 AC_PATH_XTRA
1181 if test "$have_x" = "yes"
1182 then
1183     ac_save_CPPFLAGS="$CPPFLAGS"
1184     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1186     WINE_CHECK_SONAME(X11,XCreateWindow,,,[$X_LIBS $X_EXTRA_LIBS])
1187     WINE_CHECK_SONAME(Xext,XextCreateExtension,[X_LIBS="$X_LIBS -lXext"],,[$X_LIBS -lX11 $X_EXTRA_LIBS])
1188     X_LIBS="$X_LIBS -lX11"
1190     xlib_includes="#include <X11/Xlib.h>
1191 #include <X11/Xutil.h>"
1193     dnl *** All of the following tests require X11/Xlib.h
1194     AC_CHECK_HEADERS([X11/extensions/shape.h \
1195                       X11/extensions/XInput2.h \
1196                       X11/extensions/XShm.h \
1197                       X11/extensions/Xfixes.h \
1198                       X11/extensions/Xinerama.h \
1199                       X11/extensions/Xrandr.h \
1200                       X11/extensions/Xrender.h \
1201                       X11/extensions/xf86vmode.h \
1202                       X11/extensions/xf86vmproto.h],,,
1203                       [$xlib_includes])
1205         dnl *** Check for X cursor
1206         AC_CHECK_HEADER([X11/Xcursor/Xcursor.h],
1207                         [WINE_CHECK_SONAME(Xcursor,XcursorImageLoadCursor,,,[$X_LIBS $X_EXTRA_LIBS])],,
1208                         [$xlib_includes])
1209         WINE_NOTICE_WITH(xcursor,[test "x$ac_cv_lib_soname_Xcursor" = "x"],
1210                          [libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.])
1212         dnl *** Check for X input extension
1213         AC_CHECK_HEADER([X11/extensions/XInput.h],
1214                         [WINE_CHECK_SONAME(Xi,XOpenDevice,,,[$X_LIBS $X_EXTRA_LIBS])],,
1215                         [$xlib_includes])
1216         WINE_NOTICE_WITH(xinput,[test "x$ac_cv_lib_soname_Xi" = "x"],
1217                          [libxi ${notice_platform}development files not found, the Xinput extension won't be supported.])
1219         dnl *** Check for X input 2 extension
1220         if test "x$ac_cv_lib_soname_Xi" != x
1221         then
1222             WINE_NOTICE_WITH(xinput2,[test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"],
1223                              [XInput2 headers not found, the XInput 2 extension won't be supported.])
1224         fi
1226         dnl *** Check for X Shm extension
1227         if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
1228         then
1229               AC_CHECK_LIB(Xext, XShmQueryExtension,
1230               AC_DEFINE(HAVE_LIBXXSHM, 1, [Define if you have the X Shm extension]),,[$X_LIBS $X_EXTRA_LIBS])
1231         fi
1232         WINE_NOTICE_WITH(xshm,[test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"],
1233                          [XShm ${notice_platform}development files not found, X Shared Memory won't be supported.])
1235         dnl *** Check for X shape extension
1236         if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
1237         then
1238               AC_CHECK_LIB(Xext,XShapeQueryExtension,
1239               AC_DEFINE(HAVE_LIBXSHAPE, 1, [Define if you have the X Shape extension]),,[$X_LIBS $X_EXTRA_LIBS])
1240         fi
1241         WINE_NOTICE_WITH(xshape,[test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"],
1242                          [XShape ${notice_platform}development files not found, XShape won't be supported.])
1244         dnl *** Check for XFree86 VMODE extension
1245         if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
1246         then
1247             WINE_CHECK_SONAME(Xxf86vm,XF86VidModeQueryExtension,,,[$X_LIBS $X_EXTRA_LIBS])
1248         fi
1249         WINE_NOTICE_WITH(xxf86vm,[test "x$ac_cv_lib_soname_Xxf86vm" = "x"],
1250                          [libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.])
1252         dnl *** Check for Transform functions in Xrender
1253         if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x"
1254         then
1255             WINE_CHECK_SONAME(Xrender,XRenderQueryExtension,
1256               [AC_CHECK_LIB(Xrender,XRenderSetPictureTransform,
1257                 [AC_DEFINE(HAVE_XRENDERSETPICTURETRANSFORM, 1,
1258                  [Define if Xrender has the XRenderSetPictureTransform function])],,[$X_LIBS $X_EXTRA_LIBS])
1259                AC_CHECK_LIB(Xrender,XRenderCreateLinearGradient,
1260                 [AC_DEFINE(HAVE_XRENDERCREATELINEARGRADIENT, 1,
1261                  [Define if Xrender has the XRenderCreateLinearGradient function])],,[$X_LIBS $X_EXTRA_LIBS])],,[$X_LIBS $X_EXTRA_LIBS])
1263         fi
1264         WINE_WARNING_WITH(xrender,[test "x$ac_cv_lib_soname_Xrender" = "x"],
1265                          [libxrender ${notice_platform}development files not found, XRender won't be supported.])
1267         dnl *** Check for X RandR extension
1268         if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
1269         then
1270                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
1271 #include <X11/extensions/Xrandr.h>]], [[static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;]])],
1272                   [WINE_CHECK_SONAME(Xrandr,XRRQueryExtension,
1273                     [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
1274 #include <X11/extensions/Xrandr.h>]], [[static typeof(XRRGetProviderResources) *f; if (f) return 0;]])],
1275                       [AC_DEFINE(HAVE_XRRGETPROVIDERRESOURCES, 1,
1276                         [Define if Xrandr has the XRRGetProviderResources function])],
1277                       [WINE_NOTICE([libxrandr ${notice_platform}development files too old, XRandR display device handler won't be supported.])])],,[$X_LIBS $X_EXTRA_LIBS])])
1278         fi
1279         WINE_NOTICE_WITH(xrandr,[test "x$ac_cv_lib_soname_Xrandr" = "x"],
1280                          [libxrandr ${notice_platform}development files not found, XRandr won't be supported.])
1282         dnl *** Check for Xfixes extension
1283         if test "$ac_cv_header_X11_extensions_Xfixes_h" = "yes"
1284         then
1285                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
1286 #include <X11/extensions/Xfixes.h>]], [[static typeof(XFixesQueryVersion) * func; if (func) return 0;]])],
1287                   [WINE_CHECK_SONAME(Xfixes,XFixesQueryVersion,,,[$X_LIBS $X_EXTRA_LIBS])])
1288         fi
1289         WINE_NOTICE_WITH(xfixes,[test "x$ac_cv_lib_soname_Xfixes" = "x"],
1290                          [libxfixes ${notice_platform}development files not found, Xfixes won't be supported.])
1292         dnl *** Check for Xinerama extension
1293         if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
1294         then
1295                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
1296 #include <X11/extensions/Xinerama.h>]], [[static typeof(XineramaQueryScreens) * func; if (func) return 0;]])],
1297                   [WINE_CHECK_SONAME(Xinerama,XineramaQueryScreens,,,[$X_LIBS $X_EXTRA_LIBS])])
1298         fi
1299         WINE_NOTICE_WITH(xinerama,[test "x$ac_cv_lib_soname_Xinerama" = "x"],
1300                          [libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.])
1302         dnl *** Check for X Composite extension
1303         AC_CHECK_HEADER([X11/extensions/Xcomposite.h],
1304                         [WINE_CHECK_SONAME(Xcomposite,XCompositeRedirectWindow,,,[$X_LIBS $X_EXTRA_LIBS])],,
1305                         [$xlib_includes])
1306         WINE_NOTICE_WITH(xcomposite,[test "x$ac_cv_lib_soname_Xcomposite" = "x"],
1307                          [libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.])
1309         dnl *** Check for XICCallback struct
1310         AC_CHECK_MEMBERS([XICCallback.callback, XEvent.xcookie],,,[$xlib_includes])
1312     dnl *** End of X11/Xlib.h check
1314     dnl Check for the presence of OpenGL
1315     opengl_msg=""
1316     if test "x$with_opengl" != "xno"
1317     then
1318         WINE_CHECK_SONAME(GL,glXCreateContext,
1319                      [OPENGL_LIBS="-lGL"],
1320                      [WINE_CHECK_SONAME(GL,glXCreateContext,
1321                             [OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"],
1322                             [if test -f /usr/X11R6/lib/libGL.a
1323                             then
1324                                 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
1325 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
1326                             else
1327                                 opengl_msg="No OpenGL library found on this system."
1328                             fi],
1329                             $X_LIBS -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib)],
1330                      $X_LIBS -lm $X_EXTRA_LIBS)
1331         if test "x$with_osmesa" != "xno"
1332         then
1333             WINE_CHECK_SONAME(OSMesa,OSMesaGetProcAddress,,,[$X_LIBS -lm $X_EXTRA_LIBS])
1334             WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
1335                              [libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
1336         fi
1337     fi
1338     WINE_WARNING_WITH(opengl,[test -n "$opengl_msg"],[$opengl_msg
1339 OpenGL and Direct3D won't be supported.])
1341     CPPFLAGS="$ac_save_CPPFLAGS"
1342 else
1343     X_CFLAGS=""
1344     X_LIBS=""
1347 if test "$enable_wineandroid_drv$enable_winemac_drv" = "nono"
1348 then
1349     WINE_ERROR_WITH(x,[test "x$X_LIBS" = "x"],
1350 [X ${notice_platform}development files not found. Wine will be built
1351 without X support, which probably isn't what you want. You will need
1352 to install ${notice_platform}development packages of Xlib at the very least.],
1353                     [enable_winex11_drv])
1354 else
1355     WINE_NOTICE_WITH(x,[test "x$X_LIBS" = "x"],
1356                      [X ${notice_platform}development files not found, the X11 driver won't be supported.],
1357                      [enable_winex11_drv])
1360 if test "x$with_wayland" != "xno"
1361 then
1362     WINE_PACKAGE_FLAGS(WAYLAND_CLIENT,[wayland-client],,,,
1363         [AC_CHECK_HEADER([wayland-client.h],
1364            [AC_CHECK_LIB(wayland-client,wl_display_connect,
1365               [AC_PATH_PROG(WAYLAND_SCANNER,wayland-scanner,
1366                             [`test -n "$PKG_CONFIG" && $PKG_CONFIG --variable=wayland_scanner wayland-scanner 2>/dev/null`])],
1367               [WAYLAND_CLIENT_LIBS=""],[$WAYLAND_CLIENT_LIBS])])])
1369 WINE_NOTICE_WITH(wayland, [test -z "$WAYLAND_CLIENT_LIBS" -o -z "$WAYLAND_SCANNER" -o "$ac_cv_header_linux_input_h" = "no"],
1370                  [Wayland ${notice_platform}development files not found, the Wayland driver won't be supported.],
1371                  [enable_winewayland_drv])
1373 dnl **** Check for OpenCL ****
1374 if test "$ac_cv_header_CL_cl_h" = "yes"
1375 then
1376     AC_CHECK_LIB(OpenCL,clGetPlatformInfo,[AC_SUBST(OPENCL_LIBS,["-lOpenCL"])])
1378 WINE_NOTICE_WITH(opencl,[test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes],
1379                  [OpenCL ${notice_platform}development files not found, OpenCL won't be supported.],
1380                  [enable_opencl])
1382 dnl **** Check for libpcap ****
1383 if test "$ac_cv_header_pcap_pcap_h" = "yes"
1384 then
1385     AC_CHECK_LIB(pcap,pcap_init,[AC_SUBST(PCAP_LIBS,["-lpcap"])])
1387 WINE_NOTICE_WITH(pcap,[test "x$ac_cv_lib_pcap_pcap_init" != xyes],
1388                  [pcap ${notice_platform}development files not found, wpcap won't be supported.],
1389                  [enable_wpcap])
1391 dnl **** Check for libpcsclite ****
1392 if test "x$with_pcsclite" != "xno"
1393 then
1394     AC_CHECK_LIB(pcsclite,SCardEstablishContext,[AC_SUBST(PCSCLITE_LIBS,["-lpcsclite"])],
1395                  [case $host_os in
1396                     darwin*|macosx*) AC_SUBST(PCSCLITE_LIBS,"-framework PCSC") ;;
1397                   esac])
1399 WINE_NOTICE_WITH(pcsclite,[test "x$PCSCLITE_LIBS" = x],
1400                  [libpcsclite not found, smart cards won't be supported.],
1401                  [enable_winscard])
1403 dnl **** Check for inotify ****
1404 if test "x$with_inotify" != "xno"
1405 then
1406     WINE_PACKAGE_FLAGS(INOTIFY,[libinotify],,,,
1407         [AC_CHECK_HEADERS([sys/inotify.h])
1408          AC_CHECK_LIB(inotify,inotify_add_watch,[:],[INOTIFY_LIBS=""],[$INOTIFY_LIBS])])
1410 WINE_NOTICE_WITH(inotify,[test "$ac_cv_header_sys_inotify_h" != "yes"],
1411                  [libinotify ${notice_platform}development files not found (or too old), filesystem change notifications won't be supported.])
1413 dnl **** Check for libdbus ****
1414 if test "x$with_dbus" != "xno"
1415 then
1416     WINE_PACKAGE_FLAGS(DBUS,[dbus-1],,,,
1417         [AC_CHECK_HEADER([dbus/dbus.h],
1418             [WINE_CHECK_SONAME(dbus-1, dbus_connection_close,,[DBUS_CFLAGS=""],[$DBUS_LIBS])],
1419             [DBUS_CFLAGS=""])])
1421 case $host_os in
1422   darwin*|macosx*) ;;
1423   *) WINE_NOTICE_WITH(dbus,[test "x$ac_cv_lib_soname_dbus_1" = "x"],
1424                       [libdbus ${notice_platform}development files not found, no dynamic device support.]) ;;
1425 esac
1427 dnl **** Check for libgnutls ****
1428 if test "x$with_gnutls" != "xno"
1429 then
1430     WINE_PACKAGE_FLAGS(GNUTLS,[gnutls],[-lgnutls],,,
1431         [AC_CHECK_HEADER(gnutls/gnutls.h,
1432             [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>
1433 #include <gnutls/crypto.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],
1434                 [WINE_CHECK_SONAME(gnutls,gnutls_global_init,,[GNUTLS_CFLAGS=""],[$GNUTLS_LIBS],[[libgnutls\\(-deb0\\)\\{0,1\\}]])
1435                  WINE_CHECK_LIB_FUNCS(gnutls_cipher_init,[$GNUTLS_LIBS],,
1436                                       [WINE_NOTICE([libgnutls ${notice_platform}development files too old, bcrypt encryption won't be supported.])])])],
1437             [GNUTLS_CFLAGS=""])])
1439 WINE_WARNING_WITH(gnutls,[test "x$ac_cv_lib_soname_gnutls" = "x"],
1440                  [libgnutls ${notice_platform}development files not found, no schannel support.])
1442 dnl **** Check for SANE ****
1443 if test "x$with_sane" != "xno"
1444 then
1445     WINE_PACKAGE_FLAGS(SANE,[sane-backends],,[`${SANE_CONFIG:-sane-config} --cflags 2>/dev/null`],[`${SANE_CONFIG:-sane-config} --ldflags 2>/dev/null`],
1446         [AC_CHECK_HEADER(sane/sane.h,
1447             [AC_CHECK_LIB(sane,sane_init,[:],,[$SANE_LIBS])])])
1449 WINE_NOTICE_WITH(sane,[test "$ac_cv_lib_sane_sane_init" != "yes"],
1450                  [libsane ${notice_platform}development files not found, scanners won't be supported.],
1451                  [enable_sane_ds])
1453 dnl **** Check for libusb ****
1454 if test "x$with_usb" != "xno"
1455 then
1456     WINE_PACKAGE_FLAGS(USB,[libusb-1.0],[-lusb-1.0],,,
1457         [AC_CHECK_HEADER([libusb.h],
1458             [AC_CHECK_LIB(usb-1.0,libusb_interrupt_event_handler,[:],[USB_LIBS=""],[$USB_LIBS])],
1459             [USB_LIBS=""])])
1461 WINE_NOTICE_WITH(usb,[test "$ac_cv_lib_usb_1_0_libusb_interrupt_event_handler" != "yes"],
1462                  [libusb-1.0 ${notice_platform}development files not found (or too old), USB devices won't be supported.],
1463                  [enable_wineusb_sys])
1465 dnl **** Check for libv4l2 ****
1466 if test "x$with_v4l2" != "xno"
1467 then
1468     WINE_CHECK_SONAME(v4l2,v4l2_open)
1470 WINE_NOTICE_WITH(v4l2,[test "x$ac_cv_lib_soname_v4l2" = "x"],
1471                  [libv4l2 ${notice_platform}development files not found.])
1473 dnl **** Check for libgphoto2 ****
1474 if test "x$with_gphoto" != "xno"
1475 then
1476     WINE_PACKAGE_FLAGS(GPHOTO2,[libgphoto2],[-lgphoto2],
1477                        [`${GPHOTO2_CONFIG:-gphoto2-config} --cflags 2>/dev/null`],[`${GPHOTO2_CONFIG:-gphoto2-config} --libs 2>/dev/null`],
1478         [AC_CHECK_HEADER(gphoto2-camera.h,
1479                         [AC_CHECK_LIB(gphoto2,gp_camera_new,[:],,[$GPHOTO2_LIBS])])])
1480     WINE_PACKAGE_FLAGS(GPHOTO2_PORT,[libgphoto2_port],[-lgphoto2_port],
1481                        [`${GPHOTO2_PORT_CONFIG:-gphoto2-port-config} --cflags 2>/dev/null`],
1482                        [`${GPHOTO2_PORT_CONFIG:-gphoto2-port-config} --libs 2>/dev/null`],
1483         [AC_CHECK_HEADER(gphoto2-port.h,
1484                         [AC_CHECK_LIB(gphoto2_port,gp_port_info_list_new,
1485                                       [AC_DEFINE(HAVE_GPHOTO2_PORT, 1, [Define if we have the libgphoto2_port development environment])],
1486                                       [GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""],
1487                                       [$GPHOTO2_PORT_LIBS])],
1488                         [GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""])])
1490 WINE_NOTICE_WITH(gphoto,[test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"],
1491                  [libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.],
1492                  [enable_gphoto2_ds])
1493 WINE_NOTICE_WITH(gphoto,[test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"],
1494                  [libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.])
1497 dnl **** Check for resolver library ***
1498 if test "$ac_cv_header_resolv_h" = "yes"
1499 then
1500     AC_CACHE_CHECK([for resolver library], ac_cv_have_resolv,
1501       [ac_save_LIBS="$LIBS"
1502        for lib in '' -lresolv
1503        do
1504          LIBS="$lib $ac_save_LIBS"
1505          AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_NETINET_IN_H
1506 #include <netinet/in.h>
1507 #endif
1508 #include <resolv.h>]],[[if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0); ns_initparse(0,0,0)]])],
1509            [ac_cv_have_resolv=${lib:-"none required"}],[ac_cv_have_resolv="not found"])
1510          test "x$ac_cv_have_resolv" = "xnot found" || break
1511        done
1512        LIBS="$ac_save_LIBS"])
1514     case "$ac_cv_have_resolv" in
1515       "not found") ;;
1516       "none required")
1517         AC_DEFINE(HAVE_RESOLV, 1, [Define if you have the resolver library and header]) ;;
1518       *)
1519         AC_DEFINE(HAVE_RESOLV, 1)
1520         AC_SUBST(RESOLV_LIBS,$ac_cv_have_resolv) ;;
1521     esac
1523     if test "x$ac_cv_have_resolv" != "xnot found"
1524     then
1525         AC_CACHE_CHECK([for res_getservers], ac_cv_have_res_getservers,
1526                        [ac_save_LIBS="$LIBS"
1527                         LIBS="$RESOLV_LIBS $LIBS"
1528                         AC_LINK_IFELSE([AC_LANG_PROGRAM(
1529         [[#include <resolv.h>]],[[res_getservers(NULL, NULL, 0);]])],[ac_cv_have_res_getservers=yes],[ac_cv_have_res_getservers=no])
1530                          LIBS="$ac_save_LIBS"])
1531         if test "$ac_cv_have_res_getservers" = "yes"
1532         then
1533           AC_DEFINE(HAVE_RES_GETSERVERS, 1, [Define to 1 if you have the `res_getservers' function.])
1534         fi
1535     fi
1538 dnl **** Check for FreeType 2 ****
1539 if test "x$with_freetype" != "xno"
1540 then
1541     WINE_PACKAGE_FLAGS(FREETYPE,[freetype2],[-lfreetype],
1542                        [`(${FREETYPE_CONFIG:-freetype-config} --cflags || ${FREETYPE2_CONFIG:-freetype2-config} --cflags) 2>/dev/null`],
1543                        [`(${FREETYPE_CONFIG:-freetype-config} --libs || ${FREETYPE2_CONFIG:-freetype2-config} --libs) 2>/dev/null`],
1544         [AC_CHECK_HEADERS([ft2build.h])
1545         if test "$ac_cv_header_ft2build_h" = "yes"
1546         then
1547             WINE_CHECK_SONAME(freetype,FT_Init_FreeType,
1548                 [AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed])
1549                  AC_CHECK_TYPES(FT_TrueTypeEngineType,,,[#include <ft2build.h>
1550 #include FT_MODULE_H])],
1551                 [FREETYPE_LIBS=""],[$FREETYPE_LIBS])
1552         else
1553             FREETYPE_CFLAGS=""
1554             FREETYPE_LIBS=""
1555         fi])
1557 WINE_ERROR_WITH(freetype,[test "x$ac_cv_lib_soname_freetype" = x],
1558                 [FreeType ${notice_platform}development files not found. Fonts will not be built.],
1559                 [enable_fonts])
1561 dnl **** Check for pthread functions ****
1562 WINE_CHECK_LIB_FUNCS(\
1563         pthread_getthreadid_np,
1564         [$PTHREAD_LIBS])
1566 dnl **** Check for gettextpo ****
1567 if test "x$enable_tools" != xno -a "x$with_gettextpo" = xyes
1568 then
1569     if test "$ac_cv_header_gettext_po_h" = "yes"
1570     then
1571         AC_CHECK_LIB(gettextpo,po_message_msgctxt,
1572                      [AC_DEFINE(HAVE_LIBGETTEXTPO,1,[Define to 1 if you have the `gettextpo' library (-lgettextpo).])
1573                       AC_SUBST(GETTEXTPO_LIBS,"-lgettextpo")])
1574     fi
1575     WINE_NOTICE_WITH(gettextpo,[test "x$GETTEXTPO_LIBS" = "x"],
1576       [GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.])
1577     WINE_NOTICE_WITH(gettextpo,[test "$srcdir" != .],
1578       [Rebuilding po files is not supported for out of tree builds.])
1581 dnl **** Check for PulseAudio ****
1582 if test "x$with_pulse" != "xno";
1583 then
1584     WINE_PACKAGE_FLAGS(PULSE,[libpulse],,,,
1585         [AC_CHECK_HEADER([pulse/pulseaudio.h],
1586             [AC_CHECK_LIB(pulse, pa_stream_is_corked,[:],[PULSE_LIBS=""],[$PULSE_LIBS])],
1587             [PULSE_LIBS=""])])
1589 WINE_NOTICE_WITH(pulse, [test -z "$PULSE_LIBS"],
1590         [libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.],
1591         [enable_winepulse_drv])
1593 dnl **** Check for gstreamer ****
1594 if test "x$with_gstreamer" != "xno"
1595 then
1596     WINE_PACKAGE_FLAGS(GSTREAMER,[gstreamer-1.0 gstreamer-video-1.0 gstreamer-audio-1.0 gstreamer-tag-1.0],,,,
1597         [AC_CHECK_HEADER([gst/gst.h],
1598             [AC_MSG_CHECKING([whether gint64 defined by gst/gst.h is indeed 64-bit])
1599               AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gst/gst.h>]],
1600                                                  [[static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;]])],
1601                 [AC_MSG_RESULT([yes])
1602                  AC_CHECK_LIB(gstreamer-1.0,gst_pad_new,[:],,[$GSTREAMER_LIBS])],
1603                 [AC_MSG_RESULT([no])
1604                  ac_glib2_broken=yes
1605                  enable_winegstreamer=${enable_winegstreamer:-no}
1606                  WINE_NOTICE([glib-2.0 pkgconfig configuration is for the wrong architecture, winegstreamer won't be built.])])])])
1608 WINE_NOTICE_WITH(gstreamer,[test "x$ac_glib2_broken" != xyes -a "x$ac_cv_lib_gstreamer_1_0_gst_pad_new" != xyes],
1609                  [gstreamer-1.0 base plugins ${notice_platform}development files not found, GStreamer won't be supported.],
1610                  [enable_winegstreamer])
1612 dnl **** Check for ALSA 1.x ****
1613 AC_SUBST(ALSA_LIBS,"")
1614 if test "x$with_alsa" != "xno"
1615 then
1616     AC_CHECK_LIB(asound,snd_pcm_hw_params_get_access_mask,
1617         [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <alsa/asoundlib.h>]], [[snd_pcm_hw_params_get_access_mask(NULL, NULL)]])],
1618                         [ALSA_LIBS="-lasound"])])
1620 test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
1622 dnl **** Check for OSSv4 ****
1623 if test "x$with_oss" != xno
1624 then
1625     ac_save_CPPFLAGS="$CPPFLAGS"
1626     if test -f /etc/oss.conf
1627     then
1628         . /etc/oss.conf
1629     fi
1630     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
1631     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
1632     AC_CHECK_HEADER([sys/soundcard.h],
1633         [AC_CHECK_MEMBERS([oss_sysinfo.numaudioengines],
1634             [AC_SUBST(OSS4_CFLAGS,"$ac_oss_incl")
1635              AC_CHECK_LIB(ossaudio,_oss_ioctl,
1636                  [AC_SUBST(OSS4_LIBS,"-lossaudio")])],,
1637             [#include <sys/soundcard.h>])])
1638     CPPFLAGS="$ac_save_CPPFLAGS"
1640 WINE_NOTICE_WITH(oss,[test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes],
1641                  [OSS sound system found but too old (OSSv4 needed), OSS won't be supported.],
1642                  [enable_wineoss_drv])
1644 dnl **** Check for libudev ****
1645 if test "x$with_udev" != "xno"
1646 then
1647     WINE_PACKAGE_FLAGS(UDEV,[libudev],[-ludev],,,
1648         [AC_CHECK_HEADERS(libudev.h,
1649             [AC_CHECK_LIB(udev,udev_new,
1650                 AC_DEFINE(HAVE_UDEV,1,[Define to 1 if you have the `udev' library (-ludev).]),
1651                 [UDEV_LIBS=""],[$UDEV_LIBS])],
1652             [UDEV_LIBS=""])])
1654 WINE_NOTICE_WITH(udev,[test "x$UDEV_LIBS" = "x"],
1655                  [libudev ${notice_platform}development files not found, plug and play won't be supported.])
1657 dnl **** Check for libunwind ****
1658 if test "x$with_unwind" != xno
1659 then
1660     WINE_PACKAGE_FLAGS(UNWIND,[libunwind],[-lunwind],,,
1661        [AC_CACHE_CHECK([for unw_step],wine_cv_have_unw_step,
1662            [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
1663 #include <libunwind.h>]],
1664                 [[unw_cursor_t cursor; unw_step( &cursor );]])],
1665                 [wine_cv_have_unw_step="yes"],[wine_cv_have_unw_step="no"])])
1666         if test "$wine_cv_have_unw_step" = no -a -n "$UNWIND_LIBS"
1667         then
1668             save_libs=$LIBS
1669             dnl Force static libgcc, libunwind breaks libgcc_s unwinding
1670             UNWIND_LIBS="-static-libgcc $UNWIND_LIBS"
1671             LIBS="$UNWIND_LIBS $LIBS"
1672             AC_CACHE_CHECK([for unw_step in libunwind],wine_cv_have_libunwind_unw_step,
1673                [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define UNW_LOCAL_ONLY
1674 #include <libunwind.h>]],
1675                     [[unw_cursor_t cursor; unw_step( &cursor );]])],
1676                     [wine_cv_have_libunwind_unw_step="yes"],
1677                     [wine_cv_have_libunwind_unw_step="no"])])
1678             LIBS=$save_libs
1679         fi
1680         test "$wine_cv_have_libunwind_unw_step" = yes || UNWIND_LIBS=""
1681         if test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" != xnono
1682         then
1683             AC_DEFINE(HAVE_LIBUNWIND,1,[Define to 1 if you have the `unwind' library (-lunwind).])
1684         fi])
1686 case $host in
1687   aarch64*|*-darwin*)
1688     WINE_NOTICE_WITH(unwind,[test "x$wine_cv_have_unw_step$wine_cv_have_libunwind_unw_step" = xnono],
1689                      [libunwind ${notice_platform}development files not found, stack unwinding won't work.]) ;;
1690 esac
1692 dnl **** Check for libSDL2 ****
1693 if test "x$with_sdl" != "xno"
1694 then
1695     WINE_PACKAGE_FLAGS(SDL2,[sdl2],[-lSDL2],,,
1696         [AC_CHECK_HEADERS([SDL.h],
1697             [WINE_CHECK_SONAME(SDL2,SDL_Init,,,[$SDL2_LIBS],[[libSDL2-2.0*]])])])
1699 WINE_NOTICE_WITH(sdl,[test "x$ac_cv_lib_soname_SDL2" = "x"],
1700                  [libSDL2 ${notice_platform}development files not found, SDL2 won't be supported.])
1702 dnl **** Check for capi4linux ****
1703 if test "x$with_capi" != "xno"
1704 then
1705     WINE_PACKAGE_FLAGS(CAPI20,[capi20],,,,
1706      dnl Check for broken kernel header that doesn't define __user
1707     [AC_CHECK_HEADERS([capi20.h linux/capi.h],,,[#define __user])
1708     if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
1709     then
1710         AC_CHECK_LIB(capi20,capi20_register,[:],[CAPI20_LIBS=""],[$CAPI20_LIBS])
1711     fi])
1713 WINE_NOTICE_WITH(capi,[test "x$ac_cv_lib_capi20_capi20_register" != xyes],
1714                  [libcapi20 ${notice_platform}development files not found, ISDN won't be supported.],
1715                  [enable_capi2032])
1717 dnl **** Check for cups ****
1718 if test "x$with_cups" != "xno"
1719 then
1720     WINE_PACKAGE_FLAGS(CUPS,[cups],[-lcups],
1721                        [`${CUPS_CONFIG:-cups-config} --cflags 2>/dev/null`],
1722                        [`${CUPS_CONFIG:-cups-config} --libs 2>/dev/null`],
1723                        [AC_CHECK_HEADERS(cups/cups.h cups/ppd.h)
1724                         if test "$ac_cv_header_cups_cups_h" = "yes"
1725                         then
1726                             WINE_CHECK_SONAME(cups,cupsGetDefault,,[CUPS_LIBS=""],[$CUPS_LIBS])
1727                         else
1728                             CUPS_CFLAGS=""
1729                             CUPS_LIBS=""
1730                         fi])
1732 WINE_NOTICE_WITH(cups,[test "x$ac_cv_lib_soname_cups" = "x"],
1733                  [libcups ${notice_platform}development files not found, CUPS won't be supported.])
1735 dnl **** Check for fontconfig ****
1736 if test "x$with_fontconfig" != "xno"
1737 then
1738     WINE_PACKAGE_FLAGS(FONTCONFIG,[fontconfig],,[$X_CFLAGS],[$X_LIBS],
1739         [AC_CHECK_HEADER([fontconfig/fontconfig.h],
1740                          [WINE_CHECK_SONAME(fontconfig,FcInit,,[FONTCONFIG_CFLAGS=""],[$FONTCONFIG_LIBS])],
1741                          [FONTCONFIG_CFLAGS=""])])
1743 WINE_NOTICE_WITH(fontconfig,[test "x$ac_cv_lib_soname_fontconfig" = "x"],
1744                  [fontconfig ${notice_platform}development files not found, fontconfig won't be supported.])
1746 dnl **** Check for krb5 ****
1747 if test "x$with_krb5" != "xno"
1748 then
1749     WINE_PACKAGE_FLAGS(KRB5,[krb5],,
1750                        [`${KRB5_CONFIG:-krb5-config} --cflags 2>/dev/null`],
1751                        [`${KRB5_CONFIG:-krb5-config} --libs 2>/dev/null`],
1752         [AC_CHECK_HEADERS([krb5/krb5.h])
1753          if test "$ac_cv_header_krb5_krb5_h" = "yes"
1754          then
1755              WINE_CHECK_SONAME(krb5,krb5_is_config_principal,,[KRB5_CFLAGS=""],[$KRB5_LIBS])
1756          else
1757              KRB5_CFLAGS=""
1758          fi])
1760 WINE_NOTICE_WITH(krb5,[test "x$ac_cv_lib_soname_krb5" = "x"],
1761                  [libkrb5 ${notice_platform}development files not found (or too old), Kerberos won't be supported.])
1762 test "x$ac_cv_lib_soname_krb5" != "x" || with_gssapi=${with_gssapi:-no}
1764 dnl **** Check for gssapi ****
1765 if test "x$with_gssapi" != "xno"
1766 then
1767     WINE_PACKAGE_FLAGS(GSSAPI,[krb5-gssapi],,
1768                        [`${KRB5_CONFIG:-krb5-config} --cflags gssapi 2>/dev/null`],
1769                        [`${KRB5_CONFIG:-krb5-config} --libs gssapi 2>/dev/null`],
1770         [AC_CHECK_HEADERS([gssapi/gssapi.h gssapi/gssapi_ext.h])
1771         if test "$ac_cv_header_gssapi_gssapi_h" = "yes" -a "$ac_cv_header_gssapi_gssapi_ext_h" = "yes"
1772         then
1773             WINE_CHECK_SONAME(gssapi_krb5, gss_init_sec_context,,[GSSAPI_CFLAGS=""],[$GSSAPI_LIBS])
1774         else
1775             GSSAPI_CFLAGS=""
1776         fi])
1778 WINE_NOTICE_WITH(gssapi,[test "x$ac_cv_lib_soname_gssapi_krb5" = "x"],
1779                  [libgssapi_krb5 ${notice_platform}development files not found (or too old), no Kerberos SSP support.])
1781 dnl **** Check for libprocstat ****
1782 if test "$ac_cv_header_libprocstat_h" = "yes"
1783 then
1784     AC_CHECK_LIB(procstat,procstat_open_sysctl,
1785                  [AC_DEFINE(HAVE_LIBPROCSTAT, 1, [Define to 1 if you have the `procstat' library (-lprocstat).])
1786                   AC_SUBST(PROCSTAT_LIBS,"-lprocstat")])
1789 dnl **** Check for libodbc ****
1790 WINE_CHECK_SONAME(odbc,SQLConnect,,[AC_DEFINE_UNQUOTED(SONAME_LIBODBC,["libodbc.$LIBEXT"])])
1792 dnl **** Check for libnetapi ****
1793 if test "x$with_netapi" != "xno"
1794 then
1795     WINE_PACKAGE_FLAGS(NETAPI,[netapi],,,,
1796       [WINE_CHECK_SONAME(netapi,libnetapi_init,,[AC_DEFINE_UNQUOTED(SONAME_LIBNETAPI,["libnetapi.$LIBEXT"])],[$NETAPI_LIBS])])
1798 WINE_NOTICE_WITH(netapi,[test "x$ac_cv_lib_soname_netapi" = "x"],
1799                  [libnetapi not found, Samba NetAPI won't be supported.],
1800                  [enable_netapi])
1803 dnl **** Check for any sound system ****
1804 if test "x$enable_winealsa_drv$enable_winecoreaudio_drv$enable_winepulse_drv$enable_wineoss_drv$enable_wineandroid_drv" = xnonononono -a \
1805         "x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono
1806 then
1807     WINE_WARNING([No sound system was found. Windows applications will be silent.])
1810 dnl *** Check for Vulkan ***
1811 if test "x$with_vulkan" != "xno"
1812 then
1813     WINE_CHECK_SONAME(vulkan, vkGetInstanceProcAddr)
1814     if test "x$ac_cv_lib_soname_vulkan" = "x"
1815     then
1816         WINE_CHECK_SONAME(MoltenVK, vkGetInstanceProcAddr)
1817     fi
1819 WINE_NOTICE_WITH(vulkan,[test "x$ac_cv_lib_soname_vulkan" = "x" -a "x$ac_cv_lib_soname_MoltenVK" = "x"],
1820                  [libvulkan and libMoltenVK ${notice_platform}development files not found, Vulkan won't be supported.])
1822 dnl **** Check for gcc specific options ****
1824 if test "x${GCC}" = "xyes"
1825 then
1826   EXTRACFLAGS="$EXTRACFLAGS -Wall -pipe"
1828   dnl Check for some compiler flags
1829   dnl clang needs to be told to fail on unknown options
1830   saved_CFLAGS=$CFLAGS
1831   WINE_TRY_CFLAGS([-Werror=unknown-warning-option],[CFLAGS="$CFLAGS -Werror=unknown-warning-option"])
1832   WINE_TRY_CFLAGS([-Werror=unused-command-line-argument],[CFLAGS="$CFLAGS -Werror=unused-command-line-argument"])
1833   WINE_TRY_CFLAGS([-Werror=ignored-optimization-argument],[CFLAGS="$CFLAGS -Werror=ignored-optimization-argument"])
1834   WINE_TRY_CFLAGS([-fcf-protection=none])
1835   WINE_TRY_CFLAGS([-fvisibility=hidden])
1836   WINE_TRY_CFLAGS([-fno-stack-protector])
1837   WINE_TRY_CFLAGS([-fno-strict-aliasing])
1838   WINE_TRY_CFLAGS([-Wdeclaration-after-statement])
1839   WINE_TRY_CFLAGS([-Wempty-body])
1840   WINE_TRY_CFLAGS([-Wignored-qualifiers])
1841   WINE_TRY_CFLAGS([-Winit-self])
1842   WINE_TRY_CFLAGS([-Wpacked-not-aligned],[EXTRACFLAGS="$EXTRACFLAGS -Wno-packed-not-aligned"])
1843   WINE_TRY_CFLAGS([-Wpragma-pack],[EXTRACFLAGS="$EXTRACFLAGS -Wno-pragma-pack"])
1844   WINE_TRY_CFLAGS([-Wshift-overflow=2])
1845   WINE_TRY_CFLAGS([-Wstrict-prototypes])
1846   WINE_TRY_CFLAGS([-Wtype-limits])
1847   WINE_TRY_CFLAGS([-Wunused-but-set-parameter])
1848   WINE_TRY_CFLAGS([-Wvla])
1849   WINE_TRY_CFLAGS([-Wwrite-strings])
1851   dnl Check for noisy string.h
1852   WINE_TRY_CFLAGS([-Wpointer-arith],
1853      [saved_string_h_CFLAGS=$CFLAGS
1854       CFLAGS="$CFLAGS -Wpointer-arith -Werror"
1855       AC_CACHE_CHECK([for broken string.h that generates warnings with -Wpointer-arith], ac_cv_c_string_h_warnings,
1856           AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]])],[ac_cv_c_string_h_warnings=no],[ac_cv_c_string_h_warnings=yes]))
1857       test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
1858       CFLAGS=$saved_string_h_CFLAGS])
1860   dnl Check for noisy string.h on logical ops
1861   WINE_TRY_CFLAGS([-Wlogical-op],
1862      [saved_string_h_CFLAGS=$CFLAGS
1863       CFLAGS="$CFLAGS -Wlogical-op -Werror"
1864       AC_CACHE_CHECK([for broken string.h that generates warnings with -Wlogical-op], ac_cv_c_logicalop_noisy,
1865           AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>
1866 char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=no],[ac_cv_c_logicalop_noisy=yes]))
1867       CFLAGS=$saved_string_h_CFLAGS
1868       test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"])
1870   dnl Check for 64-bit compare-and-swap
1871   AC_CACHE_CHECK([for flags needed for 64-bit compare-and-swap support], wine_cv_64bit_compare_swap,
1872       [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
1873 #error no
1874 #endif]])],
1875           [wine_cv_64bit_compare_swap="none needed"],
1876           [case $HOST_ARCH in
1877             i386) wine_cv_64bit_compare_swap="-march=i586" ;;
1878             arm)  wine_cv_64bit_compare_swap="-march=armv7-a" ;;
1879             *)    wine_cv_64bit_compare_swap="unknown" ;;
1880            esac
1881            if test "x$wine_cv_64bit_compare_swap" != xunknown
1882            then
1883                dnl try with the new flags
1884                CFLAGS="$CFLAGS $wine_cv_64bit_compare_swap"
1885                AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
1886 #error no
1887 #endif]])],,[wine_cv_64bit_compare_swap="unknown"])
1888                CFLAGS=$saved_CFLAGS
1889            fi])])
1890   case "$wine_cv_64bit_compare_swap" in
1891       unknown) AC_MSG_ERROR([gcc doesn't support 64-bit compare-and-swap on this platform]) ;;
1892       "none needed") ;;
1893       *) EXTRACFLAGS="$EXTRACFLAGS $wine_cv_64bit_compare_swap" ;;
1894   esac
1896   dnl Determine debug info format
1897   ac_debug_format_seen=""
1898   for ac_flag in $CFLAGS; do
1899     case $ac_flag in
1900       -gdwarf*)    ac_debug_format_seen=yes ;;
1901       -g)          ac_debug_format_seen=${ac_debug_format_seen:-default} ;;
1902     esac
1903   done
1904   if test "x$ac_debug_format_seen" = xdefault
1905   then
1906     WINE_TRY_CFLAGS([-gdwarf-4])
1907   fi
1909   dnl Disable gcc builtins except for Mingw
1910   AC_SUBST(MSVCRTFLAGS,"")
1911   case $host_os in
1912     mingw32*)  dnl Check for delayload linker support
1913        WINE_TRY_CFLAGS([-Wl,-delayload,autoconftest.dll],[AC_SUBST(DELAYLOADFLAG,["-Wl,-delayload,"])]) ;;
1914     *) MSVCRTFLAGS="-D_WIN32"
1915        WINE_TRY_CFLAGS([-fno-builtin],[MSVCRTFLAGS="$MSVCRTFLAGS -fno-builtin"])
1916        WINE_TRY_CFLAGS([-fshort-wchar],[MSVCRTFLAGS="$MSVCRTFLAGS -fshort-wchar"])
1917        WINE_TRY_CFLAGS([-Wno-format],[MSVCRTFLAGS="$MSVCRTFLAGS -Wno-format"]) ;;
1918   esac
1920   case $HOST_ARCH in
1921     dnl gcc-4.6+ omits frame pointers by default, breaking some copy protections
1922     i386) WINE_TRY_CFLAGS([-fno-omit-frame-pointer],[MSVCRTFLAGS="$MSVCRTFLAGS -fno-omit-frame-pointer"]) ;;
1923     x86_64)
1924       case $host_os in
1925         dnl Mingw uses Windows 64-bit types, not Unix ones
1926         cygwin*|mingw32*) WINE_TRY_CFLAGS([-Wno-format]) ;;
1927         dnl Default to ms_abi on 64-bit
1928         *) if test -z "$PE_ARCHS"
1929            then
1930                AC_CACHE_CHECK([for working -mabi=ms], ac_cv_mabi_ms,
1931                    [CFLAGS="$CFLAGS -mabi=ms"
1932                     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
1933 int a(int b, ...) { __builtin_ms_va_list list; __builtin_ms_va_start(list,b); }]])],
1934                        [ac_cv_mabi_ms=yes],[ac_cv_mabi_ms=no])
1935                     CFLAGS=$saved_CFLAGS])
1936                test $ac_cv_mabi_ms = yes || AC_MSG_ERROR([The compiler doesn't support -mabi=ms. Use gcc instead of clang, or install mingw-w64.])
1937            fi
1938            MSVCRTFLAGS="$MSVCRTFLAGS -mabi=ms" ;;
1939       esac ;;
1940     arm)
1941       WINE_TRY_CFLAGS([-Wincompatible-function-pointer-types],[EXTRACFLAGS="$EXTRACFLAGS -Wno-error=incompatible-function-pointer-types"]) ;;
1942   esac
1944   CFLAGS=$saved_CFLAGS
1946   dnl Enable -Werror
1947   if test "x$enable_werror" = "xyes"
1948   then
1949       WINE_TRY_CFLAGS([-Werror])
1950   fi
1951   if test "x$enable_build_id" = "xyes"
1952   then
1953       WINE_TRY_CFLAGS([-Wl,--build-id], [CFLAGS="$CFLAGS -Wl,--build-id"
1954                       LDFLAGS="$LDFLAGS -Wl,--build-id"])
1955   fi
1958 dnl **** Disable Fortify, it has too many false positives
1960 AC_CACHE_CHECK([for the need to disable Fortify], ac_cv_c_fortify_enabled,
1961     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]],
1962 [[#if (defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0) || (defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0)
1963 #error Fortify enabled
1964 #endif]])],
1965         [ac_cv_c_fortify_enabled=no],[ac_cv_c_fortify_enabled=yes]))
1966 if test "$ac_cv_c_fortify_enabled" = yes
1967 then
1968     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
1971 dnl **** Check for CFI directives support ****
1973 AC_CACHE_CHECK([whether CFI directives are supported in assembly code], ac_cv_c_cfi_support,
1974     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");]])],
1975                       ac_cv_c_cfi_support="yes",ac_cv_c_cfi_support="no"))
1976 if test "$ac_cv_c_cfi_support" = "yes"
1977 then
1978    DLLFLAGS="$DLLFLAGS -fasynchronous-unwind-tables"
1979    LDDLLFLAGS="$LDDLLFLAGS -fasynchronous-unwind-tables"
1980    UNIXDLLFLAGS="$UNIXDLLFLAGS -fasynchronous-unwind-tables"
1981 elif test $HOST_ARCH = x86_64
1982 then
1983    WINE_WARNING([building 64-bit Wine without support for CFI directives; exception handling will not work properly.])
1986 dnl **** Platform-specific checks ****
1988 case "$HOST_ARCH,$PE_ARCHS" in
1989   x86_64,*i386*) wine_binary="wine" ;;
1990   x86_64,*) wine_binary="wine64" ;;
1991   *) wine_binary="wine" ;;
1992 esac
1993 AC_SUBST(WINELOADER_PROGRAMS,"$wine_binary")
1995 case $host_os in
1996   linux*)
1997     if test $HOST_ARCH != unknown
1998     then
1999         test "$wine_binary" = wine || WINE_IGNORE_FILE(loader/wine-preloader)
2000         WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
2001     fi
2002     ;;
2003   darwin*|macosx*)
2004     if test "$wine_can_build_preloader" = "yes"
2005     then
2006         test "$wine_binary" = wine || WINE_IGNORE_FILE(loader/wine-preloader)
2007         WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
2008     fi
2009     ;;
2010 esac
2012 dnl **** Check for functions ****
2014 dnl Check for -ldl
2015 AC_SEARCH_LIBS(dlopen, dl)
2017 dnl Check for -lnsl for Solaris
2018 AC_SEARCH_LIBS(gethostbyname, nsl)
2020 dnl Check for -lsocket for Solaris
2021 AC_SEARCH_LIBS(connect, socket)
2023 dnl Check for -lresolv for Solaris
2024 AC_SEARCH_LIBS(inet_aton, resolv)
2026 ac_save_CFLAGS="$CFLAGS"
2027 CFLAGS="$CFLAGS $BUILTINFLAG"
2028 AC_CHECK_FUNCS(\
2029         dladdr1 \
2030         dlinfo \
2031         epoll_create \
2032         fstatfs \
2033         futimens \
2034         futimes \
2035         futimesat \
2036         getaddrinfo \
2037         getattrlist \
2038         getauxval \
2039         getifaddrs \
2040         getrandom \
2041         kqueue \
2042         mach_continuous_time \
2043         pipe2 \
2044         port_create \
2045         posix_fadvise \
2046         posix_fallocate \
2047         prctl \
2048         proc_pidinfo \
2049         sched_yield \
2050         setproctitle \
2051         setprogname \
2052         sigprocmask \
2053         sysinfo \
2054         tcdrain \
2055         thr_kill2
2057 CFLAGS="$ac_save_CFLAGS"
2059 dnl Check for clock_gettime which may be in -lrt
2060 case $host_os in
2061     darwin*|macosx*) ;;
2062     *) ac_save_LIBS=$LIBS
2063         AC_SEARCH_LIBS(clock_gettime, rt,
2064             [AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define to 1 if you have the `clock_gettime' function.])
2065                 test "$ac_res" = "none required" || AC_SUBST(RT_LIBS,"$ac_res")])
2066     LIBS=$ac_save_LIBS
2067     ;;
2068 esac
2070 AC_CACHE_CHECK([for sched_setaffinity],wine_cv_have_sched_setaffinity,
2071                 AC_LINK_IFELSE([AC_LANG_PROGRAM(
2072 [[#include <sched.h>]], [[sched_setaffinity(0, 0, 0);]])],[wine_cv_have_sched_setaffinity=yes],[wine_cv_have_sched_setaffinity=no]))
2073 if test "$wine_cv_have_sched_setaffinity" = "yes"
2074 then
2075   AC_DEFINE(HAVE_SCHED_SETAFFINITY, 1, [Define to 1 if you have the `sched_setaffinity' function.])
2078 dnl **** Check for types ****
2080 AC_C_INLINE
2081 AC_CHECK_TYPES([request_sense],,,[#include <linux/cdrom.h>])
2083 AC_CHECK_TYPES([struct xinpgen],,,
2084 [#include <sys/types.h>
2085 #include <sys/socket.h>
2086 #ifdef HAVE_SYS_SOCKETVAR_H
2087 #include <sys/socketvar.h>
2088 #endif
2089 #ifdef HAVE_NET_ROUTE_H
2090 #include <net/route.h>
2091 #endif
2092 #ifdef HAVE_NETINET_IN_H
2093 #include <netinet/in.h>
2094 #endif
2095 #ifdef HAVE_NETINET_IN_SYSTM_H
2096 #include <netinet/in_systm.h>
2097 #endif
2098 #ifdef HAVE_NETINET_IP_H
2099 #include <netinet/ip.h>
2100 #endif
2101 #ifdef HAVE_NETINET_IN_PCB_H
2102 #include <netinet/in_pcb.h>
2103 #endif])
2105 AC_CACHE_CHECK([whether we can use re-entrant gethostbyname_r Linux style],
2106         wine_cv_linux_gethostbyname_r_6,
2107         AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]],[[
2108     char *name=0;
2109     struct hostent he;
2110     struct hostent *result;
2111     char *buf=0;
2112     int bufsize=0;
2113     int errnr;
2114     char *addr=0;
2115     int addrlen=0;
2116     int addrtype=0;
2117     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
2118     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
2119     ]])],[wine_cv_linux_gethostbyname_r_6=yes],[wine_cv_linux_gethostbyname_r_6=no
2120         ])
2121    )
2122    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
2123    then
2124       AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6, 1,
2125                 [Define if Linux-style gethostbyname_r and gethostbyaddr_r are available])
2126    fi
2128 dnl Check for socket structure members
2129 AC_CHECK_MEMBERS([struct msghdr.msg_accrights, struct sockaddr_un.sun_len],,,
2130 [#include <sys/types.h>
2131 #include <sys/socket.h>
2132 #ifdef HAVE_SYS_UN_H
2133 # include <sys/un.h>
2134 #endif])
2136 dnl Check for scsireq_t and sg_io_hdr_t members
2137 AC_CHECK_MEMBERS([scsireq_t.cmd, sg_io_hdr_t.interface_id],,,
2138 [#include <sys/types.h>
2139 #ifdef HAVE_SCSI_SG_H
2140 #include <scsi/sg.h>
2141 #endif])
2143 dnl Check for siginfo_t members
2144 AC_CHECK_MEMBERS([siginfo_t.si_fd],,,[#include <signal.h>])
2146 dnl Check for struct mtget members
2147 AC_CHECK_MEMBERS([struct mtget.mt_blksiz, struct mtget.mt_gstat, struct mtget.mt_blkno],,,
2148 [#include <sys/types.h>
2149 #ifdef HAVE_SYS_MTIO_H
2150 #include <sys/mtio.h>
2151 #endif])
2153 dnl Check for stat.st_blocks and ns-resolved times
2154 AC_CHECK_MEMBERS([
2155         struct stat.st_mtim,
2156         struct stat.st_mtimespec,
2157         struct stat.st_ctim,
2158         struct stat.st_ctimespec,
2159         struct stat.st_atim,
2160         struct stat.st_atimespec,
2161         struct stat.st_birthtime,
2162         struct stat.st_birthtim,
2163         struct stat.st_birthtimespec,
2164         struct stat.__st_birthtime,
2165         struct stat.__st_birthtim])
2167 dnl Check for sin6_scope_id
2168 AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,,
2169 [#include <sys/types.h>
2170 #ifdef HAVE_NETINET_IN_H
2171 #include <netinet/in.h>
2172 #endif])
2174 dnl Check for struct __res_state._u._ext.nscount6
2175 AC_CHECK_MEMBERS([struct __res_state._u._ext.nscount6],,,
2176 [#ifdef HAVE_RESOLV_H
2177 #include <resolv.h>
2178 #endif])
2180 dnl Check for struct in6_pktinfo
2181 AC_CHECK_MEMBERS([struct in6_pktinfo.ipi6_addr],,,
2182 [#ifdef HAVE_NETINET_IN_H
2183 #include <netinet/in.h>
2184 #endif])
2186 dnl Check for struct ipstat
2187 AC_CHECK_MEMBERS([struct ipstat.ips_total],,,
2188 [#include <sys/types.h>
2189 #ifdef HAVE_SYS_SOCKETVAR_H
2190 #include <sys/socketvar.h>
2191 #endif
2192 #ifdef HAVE_NETINET_IN_H
2193 #include <netinet/in.h>
2194 #endif
2195 #ifdef HAVE_NETINET_IP_VAR_H
2196 #include <netinet/ip_var.h>
2197 #endif])
2199 dnl Check for struct ip_stats
2200 AC_CHECK_MEMBERS([struct ip_stats.ips_total],,,
2201 [#ifdef HAVE_NETINET_IP_VAR_H
2202 #include <netinet/ip_var.h>
2203 #endif])
2205 dnl Check for struct ip6stat
2206 AC_CHECK_MEMBERS([struct ip6stat.ip6s_total],,,
2207 [#include <sys/types.h>
2208 #ifdef HAVE_SYS_SOCKETVAR_H
2209 #include <sys/socketvar.h>
2210 #endif
2211 #ifdef HAVE_NETINET_IN_H
2212 #include <netinet/in.h>
2213 #endif
2214 #ifdef HAVE_NETINET6_IP6_VAR_H
2215 #include <netinet6/ip6_var.h>
2216 #endif])
2218 dnl Check for struct icmpstat
2219 AC_CHECK_MEMBERS([struct icmpstat.icps_error],,,
2220 [#include <sys/types.h>
2221 #ifdef HAVE_SYS_SOCKETVAR_H
2222 #include <sys/socketvar.h>
2223 #endif
2224 #ifdef HAVE_NETINET_IN_H
2225 #include <netinet/in.h>
2226 #endif
2227 #ifdef HAVE_NETINET_IP_H
2228 #include <netinet/ip.h>
2229 #endif
2230 #ifdef HAVE_NETINET_IP_ICMP_H
2231 #include <netinet/ip_icmp.h>
2232 #endif
2233 #ifdef HAVE_NETINET_ICMP_VAR_H
2234 #include <netinet/icmp_var.h>
2235 #endif])
2237 dnl Check for struct icmp6stat
2238 AC_CHECK_MEMBERS([struct icmp6stat.icp6s_error],,,
2239 [#include <sys/types.h>
2240 #ifdef HAVE_SYS_SOCKETVAR_H
2241 #include <sys/socketvar.h>
2242 #endif
2243 #ifdef HAVE_NETINET_IN_H
2244 #include <netinet/in.h>
2245 #endif
2246 #ifdef HAVE_NETINET_ICMP6_H
2247 #include <netinet/icmp6.h>
2248 #endif])
2250 dnl Check for struct tcpstat
2251 AC_CHECK_MEMBERS([struct tcpstat.tcps_connattempt],,,
2252 [#include <sys/types.h>
2253 #ifdef HAVE_SYS_SOCKETVAR_H
2254 #include <sys/socketvar.h>
2255 #endif
2256 #ifdef HAVE_NETINET_IN_H
2257 #include <netinet/in.h>
2258 #endif
2259 #ifdef HAVE_NETINET_TCP_H
2260 #include <netinet/tcp.h>
2261 #endif
2262 #ifdef HAVE_NETINET_TCP_VAR_H
2263 #include <netinet/tcp_var.h>
2264 #endif])
2266 dnl Check for struct tcp_stats
2267 AC_CHECK_MEMBERS([struct tcp_stats.tcps_connattempt],,,
2268 [#ifdef HAVE_NETINET_TCP_VAR_H
2269 #include <netinet/tcp_var.h>
2270 #endif])
2272 dnl Check for struct udpstat
2273 AC_CHECK_MEMBERS([struct udpstat.udps_ipackets],,,
2274 [#include <sys/types.h>
2275 #ifdef HAVE_NETINET_IN_H
2276 #include <netinet/in.h>
2277 #endif
2278 #ifdef HAVE_NETINET_IP_VAR_H
2279 #include <netinet/ip_var.h>
2280 #endif
2281 #ifdef HAVE_NETINET_UDP_H
2282 #include <netinet/udp.h>
2283 #endif
2284 #ifdef HAVE_NETINET_UDP_VAR_H
2285 #include <netinet/udp_var.h>
2286 #endif])
2288 dnl Check for struct ifreq.ifr_hwaddr
2289 AC_CHECK_MEMBERS([struct ifreq.ifr_hwaddr],,,
2290 [#include <sys/types.h>
2291 #ifdef HAVE_NET_IF_H
2292 # include <net/if.h>
2293 #endif])
2295 dnl Check for struct sysinfo members totalram and mem_unit
2296 AC_CHECK_MEMBERS([struct sysinfo.totalram, struct sysinfo.mem_unit],,,
2297 [#ifdef HAVE_SYS_SYSINFO_H
2298 # include <sys/sysinfo.h>
2299 #endif])
2301 LIBS="$ac_save_LIBS"
2303 dnl Check for __builtin_popcount
2304 AC_CACHE_CHECK([for __builtin_popcount], ac_cv_have___builtin_popcount,
2305                AC_LINK_IFELSE([AC_LANG_PROGRAM(,[[return __builtin_popcount(1)]])],
2306                [ac_cv_have___builtin_popcount="yes"], [ac_cv_have___builtin_popcount="no"]))
2307 if test "$ac_cv_have___builtin_popcount" = "yes"
2308 then
2309     AC_DEFINE(HAVE___BUILTIN_POPCOUNT, 1, [Define to 1 if you have the `__builtin_popcount' built-in function.])
2312 AC_CACHE_CHECK([for __clear_cache], ac_cv_have___clear_cache,
2313                AC_LINK_IFELSE([AC_LANG_PROGRAM(,[[__clear_cache((void*)0, (void*)0); return 0;]])],
2314                [ac_cv_have___clear_cache="yes"], [ac_cv_have___clear_cache="no"]))
2315 if test "$ac_cv_have___clear_cache" = "yes"
2316 then
2317     AC_DEFINE(HAVE___CLEAR_CACHE, 1, [Define to 1 if you have the `__clear_cache' (potentially built-in) function.])
2320 dnl *** check for the need to define platform-specific symbols
2322 case $host_cpu in
2323   *i[[3456789]]86*) WINE_CHECK_DEFINE([__i386__]) ;;
2324   *x86_64*)         WINE_CHECK_DEFINE([__x86_64__]) ;;
2325   *sparc64*)        WINE_CHECK_DEFINE([__sparc64__]) ;;
2326   *sparc*)          WINE_CHECK_DEFINE([__sparc__]) ;;
2327   *powerpc64*)      WINE_CHECK_DEFINE([__powerpc64__]) ;;
2328   *powerpc*)        WINE_CHECK_DEFINE([__powerpc__]) ;;
2329   *aarch64*)        WINE_CHECK_DEFINE([__aarch64__]) ;;
2330   *arm*)            WINE_CHECK_DEFINE([__arm__]) ;;
2331 esac
2333 case $host_vendor in
2334   *sun*) WINE_CHECK_DEFINE([__sun__]) ;;
2335 esac
2337 dnl **** Generate output files ****
2339 AH_TOP([#ifndef __WINE_CONFIG_H
2340 #define __WINE_CONFIG_H])
2341 AH_BOTTOM([#endif /* __WINE_CONFIG_H */])
2343 AC_CONFIG_COMMANDS([include/stamp-h], [echo timestamp > include/stamp-h])
2344 AS_ECHO_N("creating Makefile rules...") >&AS_MESSAGE_FD
2346 makedep_flags=""
2347 test "x$enable_silent_rules" = xyes && makedep_flags="$makedep_flags -S"
2349 wine_srcdir=
2350 test "$srcdir" = . || wine_srcdir="$srcdir/"
2352 WINE_CONFIG_SYMLINK(wine,tools/winewrapper)
2353 WINE_CONFIG_SYMLINK(wine64,tools/winewrapper,["$wine_binary" = wine64 -o -n "$with_wine64"])
2355 WINE_CONFIG_MAKEFILE(dlls/acledit)
2356 WINE_CONFIG_MAKEFILE(dlls/aclui)
2357 WINE_CONFIG_MAKEFILE(dlls/activeds.tlb)
2358 WINE_CONFIG_MAKEFILE(dlls/activeds)
2359 WINE_CONFIG_MAKEFILE(dlls/activeds/tests)
2360 WINE_CONFIG_MAKEFILE(dlls/actxprxy)
2361 WINE_CONFIG_MAKEFILE(dlls/adsldp)
2362 WINE_CONFIG_MAKEFILE(dlls/adsldp/tests)
2363 WINE_CONFIG_MAKEFILE(dlls/adsldpc)
2364 WINE_CONFIG_MAKEFILE(dlls/advapi32)
2365 WINE_CONFIG_MAKEFILE(dlls/advapi32/tests)
2366 WINE_CONFIG_MAKEFILE(dlls/advpack)
2367 WINE_CONFIG_MAKEFILE(dlls/advpack/tests)
2368 WINE_CONFIG_MAKEFILE(dlls/amsi)
2369 WINE_CONFIG_MAKEFILE(dlls/amstream)
2370 WINE_CONFIG_MAKEFILE(dlls/amstream/tests)
2371 WINE_CONFIG_MAKEFILE(dlls/apisetschema)
2372 WINE_CONFIG_MAKEFILE(dlls/apphelp)
2373 WINE_CONFIG_MAKEFILE(dlls/apphelp/tests)
2374 WINE_CONFIG_MAKEFILE(dlls/appwiz.cpl)
2375 WINE_CONFIG_MAKEFILE(dlls/appxdeploymentclient)
2376 WINE_CONFIG_MAKEFILE(dlls/atl)
2377 WINE_CONFIG_MAKEFILE(dlls/atl/tests)
2378 WINE_CONFIG_MAKEFILE(dlls/atl100)
2379 WINE_CONFIG_MAKEFILE(dlls/atl100/tests)
2380 WINE_CONFIG_MAKEFILE(dlls/atl110)
2381 WINE_CONFIG_MAKEFILE(dlls/atl110/tests)
2382 WINE_CONFIG_MAKEFILE(dlls/atl80)
2383 WINE_CONFIG_MAKEFILE(dlls/atl80/tests)
2384 WINE_CONFIG_MAKEFILE(dlls/atl90)
2385 WINE_CONFIG_MAKEFILE(dlls/atlthunk)
2386 WINE_CONFIG_MAKEFILE(dlls/atlthunk/tests)
2387 WINE_CONFIG_MAKEFILE(dlls/atmlib)
2388 WINE_CONFIG_MAKEFILE(dlls/authz)
2389 WINE_CONFIG_MAKEFILE(dlls/avicap32)
2390 WINE_CONFIG_MAKEFILE(dlls/avifil32)
2391 WINE_CONFIG_MAKEFILE(dlls/avifil32/tests)
2392 WINE_CONFIG_MAKEFILE(dlls/avifile.dll16,enable_win16)
2393 WINE_CONFIG_MAKEFILE(dlls/avrt)
2394 WINE_CONFIG_MAKEFILE(dlls/bcrypt)
2395 WINE_CONFIG_MAKEFILE(dlls/bcrypt/tests)
2396 WINE_CONFIG_MAKEFILE(dlls/bcryptprimitives)
2397 WINE_CONFIG_MAKEFILE(dlls/bluetoothapis)
2398 WINE_CONFIG_MAKEFILE(dlls/browseui)
2399 WINE_CONFIG_MAKEFILE(dlls/browseui/tests)
2400 WINE_CONFIG_MAKEFILE(dlls/bthprops.cpl)
2401 WINE_CONFIG_MAKEFILE(dlls/cabinet)
2402 WINE_CONFIG_MAKEFILE(dlls/cabinet/tests)
2403 WINE_CONFIG_MAKEFILE(dlls/capi2032)
2404 WINE_CONFIG_MAKEFILE(dlls/cards)
2405 WINE_CONFIG_MAKEFILE(dlls/cdosys)
2406 WINE_CONFIG_MAKEFILE(dlls/cfgmgr32)
2407 WINE_CONFIG_MAKEFILE(dlls/cfgmgr32/tests)
2408 WINE_CONFIG_MAKEFILE(dlls/clusapi)
2409 WINE_CONFIG_MAKEFILE(dlls/cng.sys)
2410 WINE_CONFIG_MAKEFILE(dlls/combase)
2411 WINE_CONFIG_MAKEFILE(dlls/combase/tests)
2412 WINE_CONFIG_MAKEFILE(dlls/comcat)
2413 WINE_CONFIG_MAKEFILE(dlls/comcat/tests)
2414 WINE_CONFIG_MAKEFILE(dlls/comctl32)
2415 WINE_CONFIG_MAKEFILE(dlls/comctl32/tests)
2416 WINE_CONFIG_MAKEFILE(dlls/comdlg32)
2417 WINE_CONFIG_MAKEFILE(dlls/comdlg32/tests)
2418 WINE_CONFIG_MAKEFILE(dlls/comm.drv16,enable_win16)
2419 WINE_CONFIG_MAKEFILE(dlls/commdlg.dll16,enable_win16)
2420 WINE_CONFIG_MAKEFILE(dlls/compobj.dll16,enable_win16)
2421 WINE_CONFIG_MAKEFILE(dlls/compstui)
2422 WINE_CONFIG_MAKEFILE(dlls/compstui/tests)
2423 WINE_CONFIG_MAKEFILE(dlls/comsvcs)
2424 WINE_CONFIG_MAKEFILE(dlls/comsvcs/tests)
2425 WINE_CONFIG_MAKEFILE(dlls/concrt140)
2426 WINE_CONFIG_MAKEFILE(dlls/concrt140/tests)
2427 WINE_CONFIG_MAKEFILE(dlls/connect)
2428 WINE_CONFIG_MAKEFILE(dlls/credui)
2429 WINE_CONFIG_MAKEFILE(dlls/credui/tests)
2430 WINE_CONFIG_MAKEFILE(dlls/crtdll)
2431 WINE_CONFIG_MAKEFILE(dlls/crypt32)
2432 WINE_CONFIG_MAKEFILE(dlls/crypt32/tests)
2433 WINE_CONFIG_MAKEFILE(dlls/cryptdlg)
2434 WINE_CONFIG_MAKEFILE(dlls/cryptdll)
2435 WINE_CONFIG_MAKEFILE(dlls/cryptext)
2436 WINE_CONFIG_MAKEFILE(dlls/cryptnet)
2437 WINE_CONFIG_MAKEFILE(dlls/cryptnet/tests)
2438 WINE_CONFIG_MAKEFILE(dlls/cryptowinrt)
2439 WINE_CONFIG_MAKEFILE(dlls/cryptowinrt/tests)
2440 WINE_CONFIG_MAKEFILE(dlls/cryptsp)
2441 WINE_CONFIG_MAKEFILE(dlls/cryptui)
2442 WINE_CONFIG_MAKEFILE(dlls/cryptui/tests)
2443 WINE_CONFIG_MAKEFILE(dlls/ctapi32)
2444 WINE_CONFIG_MAKEFILE(dlls/ctl3d.dll16,enable_win16)
2445 WINE_CONFIG_MAKEFILE(dlls/ctl3d32)
2446 WINE_CONFIG_MAKEFILE(dlls/ctl3dv2.dll16,enable_win16)
2447 WINE_CONFIG_MAKEFILE(dlls/d2d1)
2448 WINE_CONFIG_MAKEFILE(dlls/d2d1/tests)
2449 WINE_CONFIG_MAKEFILE(dlls/d3d10)
2450 WINE_CONFIG_MAKEFILE(dlls/d3d10/tests)
2451 WINE_CONFIG_MAKEFILE(dlls/d3d10_1)
2452 WINE_CONFIG_MAKEFILE(dlls/d3d10_1/tests)
2453 WINE_CONFIG_MAKEFILE(dlls/d3d10core)
2454 WINE_CONFIG_MAKEFILE(dlls/d3d10core/tests)
2455 WINE_CONFIG_MAKEFILE(dlls/d3d11)
2456 WINE_CONFIG_MAKEFILE(dlls/d3d11/tests)
2457 WINE_CONFIG_MAKEFILE(dlls/d3d12)
2458 WINE_CONFIG_MAKEFILE(dlls/d3d12/tests)
2459 WINE_CONFIG_MAKEFILE(dlls/d3d12core)
2460 WINE_CONFIG_MAKEFILE(dlls/d3d8)
2461 WINE_CONFIG_MAKEFILE(dlls/d3d8/tests)
2462 WINE_CONFIG_MAKEFILE(dlls/d3d8thk)
2463 WINE_CONFIG_MAKEFILE(dlls/d3d9)
2464 WINE_CONFIG_MAKEFILE(dlls/d3d9/tests)
2465 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_33)
2466 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_34)
2467 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_35)
2468 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_36)
2469 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_37)
2470 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_38)
2471 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_39)
2472 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_40)
2473 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_41)
2474 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_42)
2475 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_43)
2476 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_43/tests)
2477 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_46)
2478 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_46/tests)
2479 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47)
2480 WINE_CONFIG_MAKEFILE(dlls/d3dcompiler_47/tests)
2481 WINE_CONFIG_MAKEFILE(dlls/d3dim)
2482 WINE_CONFIG_MAKEFILE(dlls/d3dim700)
2483 WINE_CONFIG_MAKEFILE(dlls/d3drm)
2484 WINE_CONFIG_MAKEFILE(dlls/d3drm/tests)
2485 WINE_CONFIG_MAKEFILE(dlls/d3dx10_33)
2486 WINE_CONFIG_MAKEFILE(dlls/d3dx10_34)
2487 WINE_CONFIG_MAKEFILE(dlls/d3dx10_34/tests)
2488 WINE_CONFIG_MAKEFILE(dlls/d3dx10_35)
2489 WINE_CONFIG_MAKEFILE(dlls/d3dx10_35/tests)
2490 WINE_CONFIG_MAKEFILE(dlls/d3dx10_36)
2491 WINE_CONFIG_MAKEFILE(dlls/d3dx10_36/tests)
2492 WINE_CONFIG_MAKEFILE(dlls/d3dx10_37)
2493 WINE_CONFIG_MAKEFILE(dlls/d3dx10_37/tests)
2494 WINE_CONFIG_MAKEFILE(dlls/d3dx10_38)
2495 WINE_CONFIG_MAKEFILE(dlls/d3dx10_38/tests)
2496 WINE_CONFIG_MAKEFILE(dlls/d3dx10_39)
2497 WINE_CONFIG_MAKEFILE(dlls/d3dx10_39/tests)
2498 WINE_CONFIG_MAKEFILE(dlls/d3dx10_40)
2499 WINE_CONFIG_MAKEFILE(dlls/d3dx10_40/tests)
2500 WINE_CONFIG_MAKEFILE(dlls/d3dx10_41)
2501 WINE_CONFIG_MAKEFILE(dlls/d3dx10_41/tests)
2502 WINE_CONFIG_MAKEFILE(dlls/d3dx10_42)
2503 WINE_CONFIG_MAKEFILE(dlls/d3dx10_42/tests)
2504 WINE_CONFIG_MAKEFILE(dlls/d3dx10_43)
2505 WINE_CONFIG_MAKEFILE(dlls/d3dx10_43/tests)
2506 WINE_CONFIG_MAKEFILE(dlls/d3dx11_42)
2507 WINE_CONFIG_MAKEFILE(dlls/d3dx11_42/tests)
2508 WINE_CONFIG_MAKEFILE(dlls/d3dx11_43)
2509 WINE_CONFIG_MAKEFILE(dlls/d3dx11_43/tests)
2510 WINE_CONFIG_MAKEFILE(dlls/d3dx9_24)
2511 WINE_CONFIG_MAKEFILE(dlls/d3dx9_25)
2512 WINE_CONFIG_MAKEFILE(dlls/d3dx9_26)
2513 WINE_CONFIG_MAKEFILE(dlls/d3dx9_27)
2514 WINE_CONFIG_MAKEFILE(dlls/d3dx9_28)
2515 WINE_CONFIG_MAKEFILE(dlls/d3dx9_29)
2516 WINE_CONFIG_MAKEFILE(dlls/d3dx9_30)
2517 WINE_CONFIG_MAKEFILE(dlls/d3dx9_31)
2518 WINE_CONFIG_MAKEFILE(dlls/d3dx9_32)
2519 WINE_CONFIG_MAKEFILE(dlls/d3dx9_33)
2520 WINE_CONFIG_MAKEFILE(dlls/d3dx9_34)
2521 WINE_CONFIG_MAKEFILE(dlls/d3dx9_35)
2522 WINE_CONFIG_MAKEFILE(dlls/d3dx9_36)
2523 WINE_CONFIG_MAKEFILE(dlls/d3dx9_36/tests)
2524 WINE_CONFIG_MAKEFILE(dlls/d3dx9_37)
2525 WINE_CONFIG_MAKEFILE(dlls/d3dx9_38)
2526 WINE_CONFIG_MAKEFILE(dlls/d3dx9_39)
2527 WINE_CONFIG_MAKEFILE(dlls/d3dx9_40)
2528 WINE_CONFIG_MAKEFILE(dlls/d3dx9_41)
2529 WINE_CONFIG_MAKEFILE(dlls/d3dx9_42)
2530 WINE_CONFIG_MAKEFILE(dlls/d3dx9_43)
2531 WINE_CONFIG_MAKEFILE(dlls/d3dxof)
2532 WINE_CONFIG_MAKEFILE(dlls/d3dxof/tests)
2533 WINE_CONFIG_MAKEFILE(dlls/davclnt)
2534 WINE_CONFIG_MAKEFILE(dlls/dbgeng)
2535 WINE_CONFIG_MAKEFILE(dlls/dbgeng/tests)
2536 WINE_CONFIG_MAKEFILE(dlls/dbghelp)
2537 WINE_CONFIG_MAKEFILE(dlls/dbghelp/tests)
2538 WINE_CONFIG_MAKEFILE(dlls/dciman32)
2539 WINE_CONFIG_MAKEFILE(dlls/dcomp)
2540 WINE_CONFIG_MAKEFILE(dlls/ddeml.dll16,enable_win16)
2541 WINE_CONFIG_MAKEFILE(dlls/ddraw)
2542 WINE_CONFIG_MAKEFILE(dlls/ddraw/tests)
2543 WINE_CONFIG_MAKEFILE(dlls/ddrawex)
2544 WINE_CONFIG_MAKEFILE(dlls/ddrawex/tests)
2545 WINE_CONFIG_MAKEFILE(dlls/devenum)
2546 WINE_CONFIG_MAKEFILE(dlls/devenum/tests)
2547 WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc)
2548 WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc/tests)
2549 WINE_CONFIG_MAKEFILE(dlls/dhcpcsvc6)
2550 WINE_CONFIG_MAKEFILE(dlls/dhtmled.ocx)
2551 WINE_CONFIG_MAKEFILE(dlls/diasymreader)
2552 WINE_CONFIG_MAKEFILE(dlls/difxapi)
2553 WINE_CONFIG_MAKEFILE(dlls/dinput)
2554 WINE_CONFIG_MAKEFILE(dlls/dinput/tests)
2555 WINE_CONFIG_MAKEFILE(dlls/dinput8)
2556 WINE_CONFIG_MAKEFILE(dlls/directmanipulation)
2557 WINE_CONFIG_MAKEFILE(dlls/directmanipulation/tests)
2558 WINE_CONFIG_MAKEFILE(dlls/dispdib.dll16,enable_win16)
2559 WINE_CONFIG_MAKEFILE(dlls/dispex)
2560 WINE_CONFIG_MAKEFILE(dlls/dispex/tests)
2561 WINE_CONFIG_MAKEFILE(dlls/display.drv16,enable_win16)
2562 WINE_CONFIG_MAKEFILE(dlls/dmband)
2563 WINE_CONFIG_MAKEFILE(dlls/dmband/tests)
2564 WINE_CONFIG_MAKEFILE(dlls/dmcompos)
2565 WINE_CONFIG_MAKEFILE(dlls/dmcompos/tests)
2566 WINE_CONFIG_MAKEFILE(dlls/dmime)
2567 WINE_CONFIG_MAKEFILE(dlls/dmime/tests)
2568 WINE_CONFIG_MAKEFILE(dlls/dmloader)
2569 WINE_CONFIG_MAKEFILE(dlls/dmloader/tests)
2570 WINE_CONFIG_MAKEFILE(dlls/dmscript)
2571 WINE_CONFIG_MAKEFILE(dlls/dmscript/tests)
2572 WINE_CONFIG_MAKEFILE(dlls/dmstyle)
2573 WINE_CONFIG_MAKEFILE(dlls/dmstyle/tests)
2574 WINE_CONFIG_MAKEFILE(dlls/dmsynth)
2575 WINE_CONFIG_MAKEFILE(dlls/dmsynth/tests)
2576 WINE_CONFIG_MAKEFILE(dlls/dmusic)
2577 WINE_CONFIG_MAKEFILE(dlls/dmusic/tests)
2578 WINE_CONFIG_MAKEFILE(dlls/dmusic32)
2579 WINE_CONFIG_MAKEFILE(dlls/dnsapi)
2580 WINE_CONFIG_MAKEFILE(dlls/dnsapi/tests)
2581 WINE_CONFIG_MAKEFILE(dlls/dplay)
2582 WINE_CONFIG_MAKEFILE(dlls/dplayx)
2583 WINE_CONFIG_MAKEFILE(dlls/dplayx/tests)
2584 WINE_CONFIG_MAKEFILE(dlls/dpnaddr)
2585 WINE_CONFIG_MAKEFILE(dlls/dpnet)
2586 WINE_CONFIG_MAKEFILE(dlls/dpnet/tests)
2587 WINE_CONFIG_MAKEFILE(dlls/dpnhpast)
2588 WINE_CONFIG_MAKEFILE(dlls/dpnhupnp)
2589 WINE_CONFIG_MAKEFILE(dlls/dpnlobby)
2590 WINE_CONFIG_MAKEFILE(dlls/dpvoice)
2591 WINE_CONFIG_MAKEFILE(dlls/dpvoice/tests)
2592 WINE_CONFIG_MAKEFILE(dlls/dpwsockx)
2593 WINE_CONFIG_MAKEFILE(dlls/drmclien)
2594 WINE_CONFIG_MAKEFILE(dlls/dsdmo)
2595 WINE_CONFIG_MAKEFILE(dlls/dsdmo/tests)
2596 WINE_CONFIG_MAKEFILE(dlls/dsound)
2597 WINE_CONFIG_MAKEFILE(dlls/dsound/tests)
2598 WINE_CONFIG_MAKEFILE(dlls/dsquery)
2599 WINE_CONFIG_MAKEFILE(dlls/dssenh)
2600 WINE_CONFIG_MAKEFILE(dlls/dssenh/tests)
2601 WINE_CONFIG_MAKEFILE(dlls/dsuiext)
2602 WINE_CONFIG_MAKEFILE(dlls/dswave)
2603 WINE_CONFIG_MAKEFILE(dlls/dswave/tests)
2604 WINE_CONFIG_MAKEFILE(dlls/dwmapi)
2605 WINE_CONFIG_MAKEFILE(dlls/dwmapi/tests)
2606 WINE_CONFIG_MAKEFILE(dlls/dwrite)
2607 WINE_CONFIG_MAKEFILE(dlls/dwrite/tests)
2608 WINE_CONFIG_MAKEFILE(dlls/dx8vb)
2609 WINE_CONFIG_MAKEFILE(dlls/dxcore)
2610 WINE_CONFIG_MAKEFILE(dlls/dxdiagn)
2611 WINE_CONFIG_MAKEFILE(dlls/dxdiagn/tests)
2612 WINE_CONFIG_MAKEFILE(dlls/dxgi)
2613 WINE_CONFIG_MAKEFILE(dlls/dxgi/tests)
2614 WINE_CONFIG_MAKEFILE(dlls/dxtrans)
2615 WINE_CONFIG_MAKEFILE(dlls/dxva2)
2616 WINE_CONFIG_MAKEFILE(dlls/dxva2/tests)
2617 WINE_CONFIG_MAKEFILE(dlls/esent)
2618 WINE_CONFIG_MAKEFILE(dlls/evr)
2619 WINE_CONFIG_MAKEFILE(dlls/evr/tests)
2620 WINE_CONFIG_MAKEFILE(dlls/explorerframe)
2621 WINE_CONFIG_MAKEFILE(dlls/explorerframe/tests)
2622 WINE_CONFIG_MAKEFILE(dlls/faultrep)
2623 WINE_CONFIG_MAKEFILE(dlls/faultrep/tests)
2624 WINE_CONFIG_MAKEFILE(dlls/feclient)
2625 WINE_CONFIG_MAKEFILE(dlls/fltlib)
2626 WINE_CONFIG_MAKEFILE(dlls/fltmgr.sys)
2627 WINE_CONFIG_MAKEFILE(dlls/fntcache)
2628 WINE_CONFIG_MAKEFILE(dlls/fontsub)
2629 WINE_CONFIG_MAKEFILE(dlls/fusion)
2630 WINE_CONFIG_MAKEFILE(dlls/fusion/tests)
2631 WINE_CONFIG_MAKEFILE(dlls/fwpuclnt)
2632 WINE_CONFIG_MAKEFILE(dlls/gameux)
2633 WINE_CONFIG_MAKEFILE(dlls/gameux/tests)
2634 WINE_CONFIG_MAKEFILE(dlls/gamingtcui)
2635 WINE_CONFIG_MAKEFILE(dlls/gdi.exe16,enable_win16)
2636 WINE_CONFIG_MAKEFILE(dlls/gdi32)
2637 WINE_CONFIG_MAKEFILE(dlls/gdi32/tests)
2638 WINE_CONFIG_MAKEFILE(dlls/gdiplus)
2639 WINE_CONFIG_MAKEFILE(dlls/gdiplus/tests)
2640 WINE_CONFIG_MAKEFILE(dlls/geolocation)
2641 WINE_CONFIG_MAKEFILE(dlls/geolocation/tests)
2642 WINE_CONFIG_MAKEFILE(dlls/glu32)
2643 WINE_CONFIG_MAKEFILE(dlls/gphoto2.ds)
2644 WINE_CONFIG_MAKEFILE(dlls/gpkcsp)
2645 WINE_CONFIG_MAKEFILE(dlls/graphicscapture)
2646 WINE_CONFIG_MAKEFILE(dlls/graphicscapture/tests)
2647 WINE_CONFIG_MAKEFILE(dlls/hal)
2648 WINE_CONFIG_MAKEFILE(dlls/hhctrl.ocx)
2649 WINE_CONFIG_MAKEFILE(dlls/hid)
2650 WINE_CONFIG_MAKEFILE(dlls/hid/tests)
2651 WINE_CONFIG_MAKEFILE(dlls/hidclass.sys)
2652 WINE_CONFIG_MAKEFILE(dlls/hidparse.sys)
2653 WINE_CONFIG_MAKEFILE(dlls/hlink)
2654 WINE_CONFIG_MAKEFILE(dlls/hlink/tests)
2655 WINE_CONFIG_MAKEFILE(dlls/hnetcfg)
2656 WINE_CONFIG_MAKEFILE(dlls/hnetcfg/tests)
2657 WINE_CONFIG_MAKEFILE(dlls/hrtfapo)
2658 WINE_CONFIG_MAKEFILE(dlls/http.sys)
2659 WINE_CONFIG_MAKEFILE(dlls/httpapi)
2660 WINE_CONFIG_MAKEFILE(dlls/httpapi/tests)
2661 WINE_CONFIG_MAKEFILE(dlls/hvsimanagementapi)
2662 WINE_CONFIG_MAKEFILE(dlls/hvsimanagementapi/tests)
2663 WINE_CONFIG_MAKEFILE(dlls/ia2comproxy)
2664 WINE_CONFIG_MAKEFILE(dlls/iccvid)
2665 WINE_CONFIG_MAKEFILE(dlls/icmp)
2666 WINE_CONFIG_MAKEFILE(dlls/ieframe)
2667 WINE_CONFIG_MAKEFILE(dlls/ieframe/tests)
2668 WINE_CONFIG_MAKEFILE(dlls/ieproxy)
2669 WINE_CONFIG_MAKEFILE(dlls/ifsmgr.vxd,enable_win16)
2670 WINE_CONFIG_MAKEFILE(dlls/imaadp32.acm)
2671 WINE_CONFIG_MAKEFILE(dlls/imagehlp)
2672 WINE_CONFIG_MAKEFILE(dlls/imagehlp/tests)
2673 WINE_CONFIG_MAKEFILE(dlls/imm.dll16,enable_win16)
2674 WINE_CONFIG_MAKEFILE(dlls/imm32)
2675 WINE_CONFIG_MAKEFILE(dlls/imm32/tests)
2676 WINE_CONFIG_MAKEFILE(dlls/inetcomm)
2677 WINE_CONFIG_MAKEFILE(dlls/inetcomm/tests)
2678 WINE_CONFIG_MAKEFILE(dlls/inetcpl.cpl)
2679 WINE_CONFIG_MAKEFILE(dlls/inetmib1)
2680 WINE_CONFIG_MAKEFILE(dlls/inetmib1/tests)
2681 WINE_CONFIG_MAKEFILE(dlls/infosoft)
2682 WINE_CONFIG_MAKEFILE(dlls/infosoft/tests)
2683 WINE_CONFIG_MAKEFILE(dlls/initpki)
2684 WINE_CONFIG_MAKEFILE(dlls/inkobj)
2685 WINE_CONFIG_MAKEFILE(dlls/inseng)
2686 WINE_CONFIG_MAKEFILE(dlls/iphlpapi)
2687 WINE_CONFIG_MAKEFILE(dlls/iphlpapi/tests)
2688 WINE_CONFIG_MAKEFILE(dlls/iprop)
2689 WINE_CONFIG_MAKEFILE(dlls/ir50_32)
2690 WINE_CONFIG_MAKEFILE(dlls/irprops.cpl)
2691 WINE_CONFIG_MAKEFILE(dlls/itircl)
2692 WINE_CONFIG_MAKEFILE(dlls/itss)
2693 WINE_CONFIG_MAKEFILE(dlls/itss/tests)
2694 WINE_CONFIG_MAKEFILE(dlls/joy.cpl)
2695 WINE_CONFIG_MAKEFILE(dlls/jscript)
2696 WINE_CONFIG_MAKEFILE(dlls/jscript/tests)
2697 WINE_CONFIG_MAKEFILE(dlls/jsproxy)
2698 WINE_CONFIG_MAKEFILE(dlls/jsproxy/tests)
2699 WINE_CONFIG_MAKEFILE(dlls/kerberos)
2700 WINE_CONFIG_MAKEFILE(dlls/kernel32)
2701 WINE_CONFIG_MAKEFILE(dlls/kernel32/tests)
2702 WINE_CONFIG_MAKEFILE(dlls/kernelbase)
2703 WINE_CONFIG_MAKEFILE(dlls/kernelbase/tests)
2704 WINE_CONFIG_MAKEFILE(dlls/keyboard.drv16,enable_win16)
2705 WINE_CONFIG_MAKEFILE(dlls/krnl386.exe16,enable_win16)
2706 WINE_CONFIG_MAKEFILE(dlls/ksecdd.sys)
2707 WINE_CONFIG_MAKEFILE(dlls/ksproxy.ax)
2708 WINE_CONFIG_MAKEFILE(dlls/ksuser)
2709 WINE_CONFIG_MAKEFILE(dlls/ktmw32)
2710 WINE_CONFIG_MAKEFILE(dlls/l3codeca.acm)
2711 WINE_CONFIG_MAKEFILE(dlls/light.msstyles)
2712 WINE_CONFIG_MAKEFILE(dlls/loadperf)
2713 WINE_CONFIG_MAKEFILE(dlls/localspl)
2714 WINE_CONFIG_MAKEFILE(dlls/localspl/tests)
2715 WINE_CONFIG_MAKEFILE(dlls/localui)
2716 WINE_CONFIG_MAKEFILE(dlls/localui/tests)
2717 WINE_CONFIG_MAKEFILE(dlls/lz32)
2718 WINE_CONFIG_MAKEFILE(dlls/lz32/tests)
2719 WINE_CONFIG_MAKEFILE(dlls/lzexpand.dll16,enable_win16)
2720 WINE_CONFIG_MAKEFILE(dlls/magnification)
2721 WINE_CONFIG_MAKEFILE(dlls/mapi32)
2722 WINE_CONFIG_MAKEFILE(dlls/mapi32/tests)
2723 WINE_CONFIG_MAKEFILE(dlls/mapistub)
2724 WINE_CONFIG_MAKEFILE(dlls/mciavi32)
2725 WINE_CONFIG_MAKEFILE(dlls/mcicda)
2726 WINE_CONFIG_MAKEFILE(dlls/mciqtz32)
2727 WINE_CONFIG_MAKEFILE(dlls/mciseq)
2728 WINE_CONFIG_MAKEFILE(dlls/mciwave)
2729 WINE_CONFIG_MAKEFILE(dlls/mf)
2730 WINE_CONFIG_MAKEFILE(dlls/mf/tests)
2731 WINE_CONFIG_MAKEFILE(dlls/mf3216)
2732 WINE_CONFIG_MAKEFILE(dlls/mferror)
2733 WINE_CONFIG_MAKEFILE(dlls/mfmediaengine)
2734 WINE_CONFIG_MAKEFILE(dlls/mfmediaengine/tests)
2735 WINE_CONFIG_MAKEFILE(dlls/mfplat)
2736 WINE_CONFIG_MAKEFILE(dlls/mfplat/tests)
2737 WINE_CONFIG_MAKEFILE(dlls/mfplay)
2738 WINE_CONFIG_MAKEFILE(dlls/mfplay/tests)
2739 WINE_CONFIG_MAKEFILE(dlls/mfreadwrite)
2740 WINE_CONFIG_MAKEFILE(dlls/mfreadwrite/tests)
2741 WINE_CONFIG_MAKEFILE(dlls/mfsrcsnk)
2742 WINE_CONFIG_MAKEFILE(dlls/mfsrcsnk/tests)
2743 WINE_CONFIG_MAKEFILE(dlls/mgmtapi)
2744 WINE_CONFIG_MAKEFILE(dlls/midimap)
2745 WINE_CONFIG_MAKEFILE(dlls/mlang)
2746 WINE_CONFIG_MAKEFILE(dlls/mlang/tests)
2747 WINE_CONFIG_MAKEFILE(dlls/mmcndmgr)
2748 WINE_CONFIG_MAKEFILE(dlls/mmcndmgr/tests)
2749 WINE_CONFIG_MAKEFILE(dlls/mmdevapi)
2750 WINE_CONFIG_MAKEFILE(dlls/mmdevapi/tests)
2751 WINE_CONFIG_MAKEFILE(dlls/mmdevldr.vxd,enable_win16)
2752 WINE_CONFIG_MAKEFILE(dlls/mmsystem.dll16,enable_win16)
2753 WINE_CONFIG_MAKEFILE(dlls/monodebg.vxd,enable_win16)
2754 WINE_CONFIG_MAKEFILE(dlls/mountmgr.sys)
2755 WINE_CONFIG_MAKEFILE(dlls/mouse.drv16,enable_win16)
2756 WINE_CONFIG_MAKEFILE(dlls/mp3dmod)
2757 WINE_CONFIG_MAKEFILE(dlls/mp3dmod/tests)
2758 WINE_CONFIG_MAKEFILE(dlls/mpr)
2759 WINE_CONFIG_MAKEFILE(dlls/mpr/tests)
2760 WINE_CONFIG_MAKEFILE(dlls/mprapi)
2761 WINE_CONFIG_MAKEFILE(dlls/msacm.dll16,enable_win16)
2762 WINE_CONFIG_MAKEFILE(dlls/msacm32.drv)
2763 WINE_CONFIG_MAKEFILE(dlls/msacm32)
2764 WINE_CONFIG_MAKEFILE(dlls/msacm32/tests)
2765 WINE_CONFIG_MAKEFILE(dlls/msado15)
2766 WINE_CONFIG_MAKEFILE(dlls/msado15/tests)
2767 WINE_CONFIG_MAKEFILE(dlls/msadp32.acm)
2768 WINE_CONFIG_MAKEFILE(dlls/msasn1)
2769 WINE_CONFIG_MAKEFILE(dlls/msasn1/tests)
2770 WINE_CONFIG_MAKEFILE(dlls/msauddecmft)
2771 WINE_CONFIG_MAKEFILE(dlls/mscat32)
2772 WINE_CONFIG_MAKEFILE(dlls/mscms)
2773 WINE_CONFIG_MAKEFILE(dlls/mscms/tests)
2774 WINE_CONFIG_MAKEFILE(dlls/mscoree)
2775 WINE_CONFIG_MAKEFILE(dlls/mscoree/tests)
2776 WINE_CONFIG_MAKEFILE(dlls/mscorwks)
2777 WINE_CONFIG_MAKEFILE(dlls/msctf)
2778 WINE_CONFIG_MAKEFILE(dlls/msctf/tests)
2779 WINE_CONFIG_MAKEFILE(dlls/msctfmonitor)
2780 WINE_CONFIG_MAKEFILE(dlls/msctfp)
2781 WINE_CONFIG_MAKEFILE(dlls/msdaps)
2782 WINE_CONFIG_MAKEFILE(dlls/msdasql)
2783 WINE_CONFIG_MAKEFILE(dlls/msdasql/tests)
2784 WINE_CONFIG_MAKEFILE(dlls/msdelta)
2785 WINE_CONFIG_MAKEFILE(dlls/msdmo)
2786 WINE_CONFIG_MAKEFILE(dlls/msdmo/tests)
2787 WINE_CONFIG_MAKEFILE(dlls/msdrm)
2788 WINE_CONFIG_MAKEFILE(dlls/msftedit)
2789 WINE_CONFIG_MAKEFILE(dlls/msftedit/tests)
2790 WINE_CONFIG_MAKEFILE(dlls/msg711.acm)
2791 WINE_CONFIG_MAKEFILE(dlls/msgsm32.acm)
2792 WINE_CONFIG_MAKEFILE(dlls/mshtml.tlb)
2793 WINE_CONFIG_MAKEFILE(dlls/mshtml)
2794 WINE_CONFIG_MAKEFILE(dlls/mshtml/tests)
2795 WINE_CONFIG_MAKEFILE(dlls/msi)
2796 WINE_CONFIG_MAKEFILE(dlls/msi/tests)
2797 WINE_CONFIG_MAKEFILE(dlls/msident)
2798 WINE_CONFIG_MAKEFILE(dlls/msimg32)
2799 WINE_CONFIG_MAKEFILE(dlls/msimsg)
2800 WINE_CONFIG_MAKEFILE(dlls/msimtf)
2801 WINE_CONFIG_MAKEFILE(dlls/msisip)
2802 WINE_CONFIG_MAKEFILE(dlls/msisys.ocx)
2803 WINE_CONFIG_MAKEFILE(dlls/msls31)
2804 WINE_CONFIG_MAKEFILE(dlls/msmpeg2vdec)
2805 WINE_CONFIG_MAKEFILE(dlls/msnet32)
2806 WINE_CONFIG_MAKEFILE(dlls/mspatcha)
2807 WINE_CONFIG_MAKEFILE(dlls/mspatcha/tests)
2808 WINE_CONFIG_MAKEFILE(dlls/msports)
2809 WINE_CONFIG_MAKEFILE(dlls/msrle32)
2810 WINE_CONFIG_MAKEFILE(dlls/msrle32/tests)
2811 WINE_CONFIG_MAKEFILE(dlls/msscript.ocx)
2812 WINE_CONFIG_MAKEFILE(dlls/msscript.ocx/tests)
2813 WINE_CONFIG_MAKEFILE(dlls/mssign32)
2814 WINE_CONFIG_MAKEFILE(dlls/mssip32)
2815 WINE_CONFIG_MAKEFILE(dlls/mstask)
2816 WINE_CONFIG_MAKEFILE(dlls/mstask/tests)
2817 WINE_CONFIG_MAKEFILE(dlls/msttsengine)
2818 WINE_CONFIG_MAKEFILE(dlls/msv1_0)
2819 WINE_CONFIG_MAKEFILE(dlls/msvcirt)
2820 WINE_CONFIG_MAKEFILE(dlls/msvcirt/tests)
2821 WINE_CONFIG_MAKEFILE(dlls/msvcm80)
2822 WINE_CONFIG_MAKEFILE(dlls/msvcm90)
2823 WINE_CONFIG_MAKEFILE(dlls/msvcp100)
2824 WINE_CONFIG_MAKEFILE(dlls/msvcp100/tests)
2825 WINE_CONFIG_MAKEFILE(dlls/msvcp110)
2826 WINE_CONFIG_MAKEFILE(dlls/msvcp110/tests)
2827 WINE_CONFIG_MAKEFILE(dlls/msvcp120)
2828 WINE_CONFIG_MAKEFILE(dlls/msvcp120/tests)
2829 WINE_CONFIG_MAKEFILE(dlls/msvcp120_app)
2830 WINE_CONFIG_MAKEFILE(dlls/msvcp140)
2831 WINE_CONFIG_MAKEFILE(dlls/msvcp140/tests)
2832 WINE_CONFIG_MAKEFILE(dlls/msvcp140_1)
2833 WINE_CONFIG_MAKEFILE(dlls/msvcp140_1/tests)
2834 WINE_CONFIG_MAKEFILE(dlls/msvcp140_2)
2835 WINE_CONFIG_MAKEFILE(dlls/msvcp140_atomic_wait)
2836 WINE_CONFIG_MAKEFILE(dlls/msvcp140_atomic_wait/tests)
2837 WINE_CONFIG_MAKEFILE(dlls/msvcp140_codecvt_ids)
2838 WINE_CONFIG_MAKEFILE(dlls/msvcp60)
2839 WINE_CONFIG_MAKEFILE(dlls/msvcp60/tests)
2840 WINE_CONFIG_MAKEFILE(dlls/msvcp70)
2841 WINE_CONFIG_MAKEFILE(dlls/msvcp71)
2842 WINE_CONFIG_MAKEFILE(dlls/msvcp80)
2843 WINE_CONFIG_MAKEFILE(dlls/msvcp90)
2844 WINE_CONFIG_MAKEFILE(dlls/msvcp90/tests)
2845 WINE_CONFIG_MAKEFILE(dlls/msvcp_win)
2846 WINE_CONFIG_MAKEFILE(dlls/msvcr100)
2847 WINE_CONFIG_MAKEFILE(dlls/msvcr100/tests)
2848 WINE_CONFIG_MAKEFILE(dlls/msvcr110)
2849 WINE_CONFIG_MAKEFILE(dlls/msvcr110/tests)
2850 WINE_CONFIG_MAKEFILE(dlls/msvcr120)
2851 WINE_CONFIG_MAKEFILE(dlls/msvcr120/tests)
2852 WINE_CONFIG_MAKEFILE(dlls/msvcr120_app)
2853 WINE_CONFIG_MAKEFILE(dlls/msvcr70)
2854 WINE_CONFIG_MAKEFILE(dlls/msvcr70/tests)
2855 WINE_CONFIG_MAKEFILE(dlls/msvcr71)
2856 WINE_CONFIG_MAKEFILE(dlls/msvcr71/tests)
2857 WINE_CONFIG_MAKEFILE(dlls/msvcr80)
2858 WINE_CONFIG_MAKEFILE(dlls/msvcr80/tests)
2859 WINE_CONFIG_MAKEFILE(dlls/msvcr90)
2860 WINE_CONFIG_MAKEFILE(dlls/msvcr90/tests)
2861 WINE_CONFIG_MAKEFILE(dlls/msvcrt)
2862 WINE_CONFIG_MAKEFILE(dlls/msvcrt/tests)
2863 WINE_CONFIG_MAKEFILE(dlls/msvcrt20)
2864 WINE_CONFIG_MAKEFILE(dlls/msvcrt40)
2865 WINE_CONFIG_MAKEFILE(dlls/msvcrtd)
2866 WINE_CONFIG_MAKEFILE(dlls/msvcrtd/tests)
2867 WINE_CONFIG_MAKEFILE(dlls/msvfw32)
2868 WINE_CONFIG_MAKEFILE(dlls/msvfw32/tests)
2869 WINE_CONFIG_MAKEFILE(dlls/msvidc32)
2870 WINE_CONFIG_MAKEFILE(dlls/msvideo.dll16,enable_win16)
2871 WINE_CONFIG_MAKEFILE(dlls/mswsock)
2872 WINE_CONFIG_MAKEFILE(dlls/msxml)
2873 WINE_CONFIG_MAKEFILE(dlls/msxml2)
2874 WINE_CONFIG_MAKEFILE(dlls/msxml3)
2875 WINE_CONFIG_MAKEFILE(dlls/msxml3/tests)
2876 WINE_CONFIG_MAKEFILE(dlls/msxml4)
2877 WINE_CONFIG_MAKEFILE(dlls/msxml4/tests)
2878 WINE_CONFIG_MAKEFILE(dlls/msxml6)
2879 WINE_CONFIG_MAKEFILE(dlls/msxml6/tests)
2880 WINE_CONFIG_MAKEFILE(dlls/mtxdm)
2881 WINE_CONFIG_MAKEFILE(dlls/ncrypt)
2882 WINE_CONFIG_MAKEFILE(dlls/ncrypt/tests)
2883 WINE_CONFIG_MAKEFILE(dlls/nddeapi)
2884 WINE_CONFIG_MAKEFILE(dlls/ndis.sys)
2885 WINE_CONFIG_MAKEFILE(dlls/ndis.sys/tests)
2886 WINE_CONFIG_MAKEFILE(dlls/netapi32)
2887 WINE_CONFIG_MAKEFILE(dlls/netapi32/tests)
2888 WINE_CONFIG_MAKEFILE(dlls/netcfgx)
2889 WINE_CONFIG_MAKEFILE(dlls/netcfgx/tests)
2890 WINE_CONFIG_MAKEFILE(dlls/netio.sys)
2891 WINE_CONFIG_MAKEFILE(dlls/netprofm)
2892 WINE_CONFIG_MAKEFILE(dlls/netprofm/tests)
2893 WINE_CONFIG_MAKEFILE(dlls/netutils)
2894 WINE_CONFIG_MAKEFILE(dlls/newdev)
2895 WINE_CONFIG_MAKEFILE(dlls/ninput)
2896 WINE_CONFIG_MAKEFILE(dlls/ninput/tests)
2897 WINE_CONFIG_MAKEFILE(dlls/normaliz)
2898 WINE_CONFIG_MAKEFILE(dlls/npmshtml)
2899 WINE_CONFIG_MAKEFILE(dlls/npptools)
2900 WINE_CONFIG_MAKEFILE(dlls/nsi)
2901 WINE_CONFIG_MAKEFILE(dlls/nsi/tests)
2902 WINE_CONFIG_MAKEFILE(dlls/nsiproxy.sys)
2903 WINE_CONFIG_MAKEFILE(dlls/ntdll)
2904 WINE_CONFIG_MAKEFILE(dlls/ntdll/tests)
2905 WINE_CONFIG_MAKEFILE(dlls/ntdsapi)
2906 WINE_CONFIG_MAKEFILE(dlls/ntdsapi/tests)
2907 WINE_CONFIG_MAKEFILE(dlls/ntoskrnl.exe)
2908 WINE_CONFIG_MAKEFILE(dlls/ntoskrnl.exe/tests)
2909 WINE_CONFIG_MAKEFILE(dlls/ntprint)
2910 WINE_CONFIG_MAKEFILE(dlls/ntprint/tests)
2911 WINE_CONFIG_MAKEFILE(dlls/objsel)
2912 WINE_CONFIG_MAKEFILE(dlls/odbc32)
2913 WINE_CONFIG_MAKEFILE(dlls/odbcbcp)
2914 WINE_CONFIG_MAKEFILE(dlls/odbccp32)
2915 WINE_CONFIG_MAKEFILE(dlls/odbccp32/tests)
2916 WINE_CONFIG_MAKEFILE(dlls/odbccu32)
2917 WINE_CONFIG_MAKEFILE(dlls/ole2.dll16,enable_win16)
2918 WINE_CONFIG_MAKEFILE(dlls/ole2conv.dll16,enable_win16)
2919 WINE_CONFIG_MAKEFILE(dlls/ole2disp.dll16,enable_win16)
2920 WINE_CONFIG_MAKEFILE(dlls/ole2nls.dll16,enable_win16)
2921 WINE_CONFIG_MAKEFILE(dlls/ole2prox.dll16,enable_win16)
2922 WINE_CONFIG_MAKEFILE(dlls/ole2thk.dll16,enable_win16)
2923 WINE_CONFIG_MAKEFILE(dlls/ole32)
2924 WINE_CONFIG_MAKEFILE(dlls/ole32/tests)
2925 WINE_CONFIG_MAKEFILE(dlls/oleacc)
2926 WINE_CONFIG_MAKEFILE(dlls/oleacc/tests)
2927 WINE_CONFIG_MAKEFILE(dlls/oleaut32)
2928 WINE_CONFIG_MAKEFILE(dlls/oleaut32/tests)
2929 WINE_CONFIG_MAKEFILE(dlls/olecli.dll16,enable_win16)
2930 WINE_CONFIG_MAKEFILE(dlls/olecli32)
2931 WINE_CONFIG_MAKEFILE(dlls/oledb32)
2932 WINE_CONFIG_MAKEFILE(dlls/oledb32/tests)
2933 WINE_CONFIG_MAKEFILE(dlls/oledlg)
2934 WINE_CONFIG_MAKEFILE(dlls/oledlg/tests)
2935 WINE_CONFIG_MAKEFILE(dlls/olepro32)
2936 WINE_CONFIG_MAKEFILE(dlls/olesvr.dll16,enable_win16)
2937 WINE_CONFIG_MAKEFILE(dlls/olesvr32)
2938 WINE_CONFIG_MAKEFILE(dlls/olethk32)
2939 WINE_CONFIG_MAKEFILE(dlls/opcservices)
2940 WINE_CONFIG_MAKEFILE(dlls/opcservices/tests)
2941 WINE_CONFIG_MAKEFILE(dlls/opencl)
2942 WINE_CONFIG_MAKEFILE(dlls/opengl32)
2943 WINE_CONFIG_MAKEFILE(dlls/opengl32/tests)
2944 WINE_CONFIG_MAKEFILE(dlls/packager)
2945 WINE_CONFIG_MAKEFILE(dlls/packager/tests)
2946 WINE_CONFIG_MAKEFILE(dlls/pdh)
2947 WINE_CONFIG_MAKEFILE(dlls/pdh/tests)
2948 WINE_CONFIG_MAKEFILE(dlls/photometadatahandler)
2949 WINE_CONFIG_MAKEFILE(dlls/pidgen)
2950 WINE_CONFIG_MAKEFILE(dlls/powrprof)
2951 WINE_CONFIG_MAKEFILE(dlls/printui)
2952 WINE_CONFIG_MAKEFILE(dlls/prntvpt)
2953 WINE_CONFIG_MAKEFILE(dlls/prntvpt/tests)
2954 WINE_CONFIG_MAKEFILE(dlls/propsys)
2955 WINE_CONFIG_MAKEFILE(dlls/propsys/tests)
2956 WINE_CONFIG_MAKEFILE(dlls/psapi)
2957 WINE_CONFIG_MAKEFILE(dlls/psapi/tests)
2958 WINE_CONFIG_MAKEFILE(dlls/pstorec)
2959 WINE_CONFIG_MAKEFILE(dlls/pstorec/tests)
2960 WINE_CONFIG_MAKEFILE(dlls/pwrshplugin)
2961 WINE_CONFIG_MAKEFILE(dlls/qasf)
2962 WINE_CONFIG_MAKEFILE(dlls/qasf/tests)
2963 WINE_CONFIG_MAKEFILE(dlls/qcap)
2964 WINE_CONFIG_MAKEFILE(dlls/qcap/tests)
2965 WINE_CONFIG_MAKEFILE(dlls/qdvd)
2966 WINE_CONFIG_MAKEFILE(dlls/qdvd/tests)
2967 WINE_CONFIG_MAKEFILE(dlls/qedit)
2968 WINE_CONFIG_MAKEFILE(dlls/qedit/tests)
2969 WINE_CONFIG_MAKEFILE(dlls/qmgr)
2970 WINE_CONFIG_MAKEFILE(dlls/qmgr/tests)
2971 WINE_CONFIG_MAKEFILE(dlls/qmgrprxy)
2972 WINE_CONFIG_MAKEFILE(dlls/quartz)
2973 WINE_CONFIG_MAKEFILE(dlls/quartz/tests)
2974 WINE_CONFIG_MAKEFILE(dlls/query)
2975 WINE_CONFIG_MAKEFILE(dlls/qwave)
2976 WINE_CONFIG_MAKEFILE(dlls/qwave/tests)
2977 WINE_CONFIG_MAKEFILE(dlls/rasapi16.dll16,enable_win16)
2978 WINE_CONFIG_MAKEFILE(dlls/rasapi32)
2979 WINE_CONFIG_MAKEFILE(dlls/rasapi32/tests)
2980 WINE_CONFIG_MAKEFILE(dlls/rasdlg)
2981 WINE_CONFIG_MAKEFILE(dlls/regapi)
2982 WINE_CONFIG_MAKEFILE(dlls/resutils)
2983 WINE_CONFIG_MAKEFILE(dlls/riched20)
2984 WINE_CONFIG_MAKEFILE(dlls/riched20/tests)
2985 WINE_CONFIG_MAKEFILE(dlls/riched32)
2986 WINE_CONFIG_MAKEFILE(dlls/riched32/tests)
2987 WINE_CONFIG_MAKEFILE(dlls/rpcrt4)
2988 WINE_CONFIG_MAKEFILE(dlls/rpcrt4/tests)
2989 WINE_CONFIG_MAKEFILE(dlls/rsabase)
2990 WINE_CONFIG_MAKEFILE(dlls/rsaenh)
2991 WINE_CONFIG_MAKEFILE(dlls/rsaenh/tests)
2992 WINE_CONFIG_MAKEFILE(dlls/rstrtmgr)
2993 WINE_CONFIG_MAKEFILE(dlls/rtutils)
2994 WINE_CONFIG_MAKEFILE(dlls/rtworkq)
2995 WINE_CONFIG_MAKEFILE(dlls/rtworkq/tests)
2996 WINE_CONFIG_MAKEFILE(dlls/samlib)
2997 WINE_CONFIG_MAKEFILE(dlls/sane.ds)
2998 WINE_CONFIG_MAKEFILE(dlls/sapi)
2999 WINE_CONFIG_MAKEFILE(dlls/sapi/tests)
3000 WINE_CONFIG_MAKEFILE(dlls/sas)
3001 WINE_CONFIG_MAKEFILE(dlls/scarddlg)
3002 WINE_CONFIG_MAKEFILE(dlls/scardsvr)
3003 WINE_CONFIG_MAKEFILE(dlls/sccbase)
3004 WINE_CONFIG_MAKEFILE(dlls/schannel)
3005 WINE_CONFIG_MAKEFILE(dlls/schannel/tests)
3006 WINE_CONFIG_MAKEFILE(dlls/schedsvc)
3007 WINE_CONFIG_MAKEFILE(dlls/schedsvc/tests)
3008 WINE_CONFIG_MAKEFILE(dlls/scrobj)
3009 WINE_CONFIG_MAKEFILE(dlls/scrobj/tests)
3010 WINE_CONFIG_MAKEFILE(dlls/scrrun)
3011 WINE_CONFIG_MAKEFILE(dlls/scrrun/tests)
3012 WINE_CONFIG_MAKEFILE(dlls/scsiport.sys)
3013 WINE_CONFIG_MAKEFILE(dlls/sechost)
3014 WINE_CONFIG_MAKEFILE(dlls/secur32)
3015 WINE_CONFIG_MAKEFILE(dlls/secur32/tests)
3016 WINE_CONFIG_MAKEFILE(dlls/security)
3017 WINE_CONFIG_MAKEFILE(dlls/sensapi)
3018 WINE_CONFIG_MAKEFILE(dlls/serialui)
3019 WINE_CONFIG_MAKEFILE(dlls/serialui/tests)
3020 WINE_CONFIG_MAKEFILE(dlls/setupapi)
3021 WINE_CONFIG_MAKEFILE(dlls/setupapi/tests)
3022 WINE_CONFIG_MAKEFILE(dlls/setupx.dll16,enable_win16)
3023 WINE_CONFIG_MAKEFILE(dlls/sfc)
3024 WINE_CONFIG_MAKEFILE(dlls/sfc_os)
3025 WINE_CONFIG_MAKEFILE(dlls/shcore)
3026 WINE_CONFIG_MAKEFILE(dlls/shcore/tests)
3027 WINE_CONFIG_MAKEFILE(dlls/shdoclc)
3028 WINE_CONFIG_MAKEFILE(dlls/shdocvw)
3029 WINE_CONFIG_MAKEFILE(dlls/shdocvw/tests)
3030 WINE_CONFIG_MAKEFILE(dlls/shell.dll16,enable_win16)
3031 WINE_CONFIG_MAKEFILE(dlls/shell32)
3032 WINE_CONFIG_MAKEFILE(dlls/shell32/tests)
3033 WINE_CONFIG_MAKEFILE(dlls/shfolder)
3034 WINE_CONFIG_MAKEFILE(dlls/shlwapi)
3035 WINE_CONFIG_MAKEFILE(dlls/shlwapi/tests)
3036 WINE_CONFIG_MAKEFILE(dlls/slbcsp)
3037 WINE_CONFIG_MAKEFILE(dlls/slc)
3038 WINE_CONFIG_MAKEFILE(dlls/slc/tests)
3039 WINE_CONFIG_MAKEFILE(dlls/snmpapi)
3040 WINE_CONFIG_MAKEFILE(dlls/snmpapi/tests)
3041 WINE_CONFIG_MAKEFILE(dlls/softpub)
3042 WINE_CONFIG_MAKEFILE(dlls/sound.drv16,enable_win16)
3043 WINE_CONFIG_MAKEFILE(dlls/spoolss)
3044 WINE_CONFIG_MAKEFILE(dlls/spoolss/tests)
3045 WINE_CONFIG_MAKEFILE(dlls/sppc)
3046 WINE_CONFIG_MAKEFILE(dlls/srclient)
3047 WINE_CONFIG_MAKEFILE(dlls/srvcli)
3048 WINE_CONFIG_MAKEFILE(dlls/srvsvc)
3049 WINE_CONFIG_MAKEFILE(dlls/sspicli)
3050 WINE_CONFIG_MAKEFILE(dlls/stdole2.tlb)
3051 WINE_CONFIG_MAKEFILE(dlls/stdole32.tlb)
3052 WINE_CONFIG_MAKEFILE(dlls/sti)
3053 WINE_CONFIG_MAKEFILE(dlls/sti/tests)
3054 WINE_CONFIG_MAKEFILE(dlls/storage.dll16,enable_win16)
3055 WINE_CONFIG_MAKEFILE(dlls/stress.dll16,enable_win16)
3056 WINE_CONFIG_MAKEFILE(dlls/strmdll)
3057 WINE_CONFIG_MAKEFILE(dlls/svrapi)
3058 WINE_CONFIG_MAKEFILE(dlls/sxs)
3059 WINE_CONFIG_MAKEFILE(dlls/sxs/tests)
3060 WINE_CONFIG_MAKEFILE(dlls/system.drv16,enable_win16)
3061 WINE_CONFIG_MAKEFILE(dlls/t2embed)
3062 WINE_CONFIG_MAKEFILE(dlls/t2embed/tests)
3063 WINE_CONFIG_MAKEFILE(dlls/tapi32)
3064 WINE_CONFIG_MAKEFILE(dlls/tapi32/tests)
3065 WINE_CONFIG_MAKEFILE(dlls/taskschd)
3066 WINE_CONFIG_MAKEFILE(dlls/taskschd/tests)
3067 WINE_CONFIG_MAKEFILE(dlls/tbs)
3068 WINE_CONFIG_MAKEFILE(dlls/tdh)
3069 WINE_CONFIG_MAKEFILE(dlls/tdi.sys)
3070 WINE_CONFIG_MAKEFILE(dlls/threadpoolwinrt)
3071 WINE_CONFIG_MAKEFILE(dlls/threadpoolwinrt/tests)
3072 WINE_CONFIG_MAKEFILE(dlls/toolhelp.dll16,enable_win16)
3073 WINE_CONFIG_MAKEFILE(dlls/traffic)
3074 WINE_CONFIG_MAKEFILE(dlls/twain.dll16,enable_win16)
3075 WINE_CONFIG_MAKEFILE(dlls/twain_32)
3076 WINE_CONFIG_MAKEFILE(dlls/twain_32/tests)
3077 WINE_CONFIG_MAKEFILE(dlls/twinapi.appcore)
3078 WINE_CONFIG_MAKEFILE(dlls/typelib.dll16,enable_win16)
3079 WINE_CONFIG_MAKEFILE(dlls/tzres)
3080 WINE_CONFIG_MAKEFILE(dlls/ucrtbase)
3081 WINE_CONFIG_MAKEFILE(dlls/ucrtbase/tests)
3082 WINE_CONFIG_MAKEFILE(dlls/uianimation)
3083 WINE_CONFIG_MAKEFILE(dlls/uianimation/tests)
3084 WINE_CONFIG_MAKEFILE(dlls/uiautomationcore)
3085 WINE_CONFIG_MAKEFILE(dlls/uiautomationcore/tests)
3086 WINE_CONFIG_MAKEFILE(dlls/uiribbon)
3087 WINE_CONFIG_MAKEFILE(dlls/unicows)
3088 WINE_CONFIG_MAKEFILE(dlls/updspapi)
3089 WINE_CONFIG_MAKEFILE(dlls/url)
3090 WINE_CONFIG_MAKEFILE(dlls/urlmon)
3091 WINE_CONFIG_MAKEFILE(dlls/urlmon/tests)
3092 WINE_CONFIG_MAKEFILE(dlls/usbd.sys)
3093 WINE_CONFIG_MAKEFILE(dlls/user.exe16,enable_win16)
3094 WINE_CONFIG_MAKEFILE(dlls/user32)
3095 WINE_CONFIG_MAKEFILE(dlls/user32/tests)
3096 WINE_CONFIG_MAKEFILE(dlls/userenv)
3097 WINE_CONFIG_MAKEFILE(dlls/userenv/tests)
3098 WINE_CONFIG_MAKEFILE(dlls/usp10)
3099 WINE_CONFIG_MAKEFILE(dlls/usp10/tests)
3100 WINE_CONFIG_MAKEFILE(dlls/utildll)
3101 WINE_CONFIG_MAKEFILE(dlls/uxtheme)
3102 WINE_CONFIG_MAKEFILE(dlls/uxtheme/tests)
3103 WINE_CONFIG_MAKEFILE(dlls/vbscript)
3104 WINE_CONFIG_MAKEFILE(dlls/vbscript/tests)
3105 WINE_CONFIG_MAKEFILE(dlls/vcomp)
3106 WINE_CONFIG_MAKEFILE(dlls/vcomp/tests)
3107 WINE_CONFIG_MAKEFILE(dlls/vcomp100)
3108 WINE_CONFIG_MAKEFILE(dlls/vcomp110)
3109 WINE_CONFIG_MAKEFILE(dlls/vcomp110/tests)
3110 WINE_CONFIG_MAKEFILE(dlls/vcomp120)
3111 WINE_CONFIG_MAKEFILE(dlls/vcomp140)
3112 WINE_CONFIG_MAKEFILE(dlls/vcomp90)
3113 WINE_CONFIG_MAKEFILE(dlls/vcruntime140)
3114 WINE_CONFIG_MAKEFILE(dlls/vcruntime140_1)
3115 WINE_CONFIG_MAKEFILE(dlls/vdhcp.vxd,enable_win16)
3116 WINE_CONFIG_MAKEFILE(dlls/vdmdbg)
3117 WINE_CONFIG_MAKEFILE(dlls/ver.dll16,enable_win16)
3118 WINE_CONFIG_MAKEFILE(dlls/version)
3119 WINE_CONFIG_MAKEFILE(dlls/version/tests)
3120 WINE_CONFIG_MAKEFILE(dlls/vga)
3121 WINE_CONFIG_MAKEFILE(dlls/virtdisk)
3122 WINE_CONFIG_MAKEFILE(dlls/virtdisk/tests)
3123 WINE_CONFIG_MAKEFILE(dlls/vmm.vxd,enable_win16)
3124 WINE_CONFIG_MAKEFILE(dlls/vnbt.vxd,enable_win16)
3125 WINE_CONFIG_MAKEFILE(dlls/vnetbios.vxd,enable_win16)
3126 WINE_CONFIG_MAKEFILE(dlls/vssapi)
3127 WINE_CONFIG_MAKEFILE(dlls/vtdapi.vxd,enable_win16)
3128 WINE_CONFIG_MAKEFILE(dlls/vulkan-1)
3129 WINE_CONFIG_MAKEFILE(dlls/vulkan-1/tests)
3130 WINE_CONFIG_MAKEFILE(dlls/vwin32.vxd,enable_win16)
3131 WINE_CONFIG_MAKEFILE(dlls/w32skrnl,enable_win16)
3132 WINE_CONFIG_MAKEFILE(dlls/w32sys.dll16,enable_win16)
3133 WINE_CONFIG_MAKEFILE(dlls/wbemdisp)
3134 WINE_CONFIG_MAKEFILE(dlls/wbemdisp/tests)
3135 WINE_CONFIG_MAKEFILE(dlls/wbemprox)
3136 WINE_CONFIG_MAKEFILE(dlls/wbemprox/tests)
3137 WINE_CONFIG_MAKEFILE(dlls/wdscore)
3138 WINE_CONFIG_MAKEFILE(dlls/webservices)
3139 WINE_CONFIG_MAKEFILE(dlls/webservices/tests)
3140 WINE_CONFIG_MAKEFILE(dlls/websocket)
3141 WINE_CONFIG_MAKEFILE(dlls/wer)
3142 WINE_CONFIG_MAKEFILE(dlls/wer/tests)
3143 WINE_CONFIG_MAKEFILE(dlls/wevtapi)
3144 WINE_CONFIG_MAKEFILE(dlls/wevtapi/tests)
3145 WINE_CONFIG_MAKEFILE(dlls/wevtsvc)
3146 WINE_CONFIG_MAKEFILE(dlls/wiaservc)
3147 WINE_CONFIG_MAKEFILE(dlls/wiaservc/tests)
3148 WINE_CONFIG_MAKEFILE(dlls/wimgapi)
3149 WINE_CONFIG_MAKEFILE(dlls/win32s16.dll16,enable_win16)
3150 WINE_CONFIG_MAKEFILE(dlls/win32u)
3151 WINE_CONFIG_MAKEFILE(dlls/win32u/tests)
3152 WINE_CONFIG_MAKEFILE(dlls/win87em.dll16,enable_win16)
3153 WINE_CONFIG_MAKEFILE(dlls/winaspi.dll16,enable_win16)
3154 WINE_CONFIG_MAKEFILE(dlls/windebug.dll16,enable_win16)
3155 WINE_CONFIG_MAKEFILE(dlls/windows.applicationmodel)
3156 WINE_CONFIG_MAKEFILE(dlls/windows.applicationmodel/tests)
3157 WINE_CONFIG_MAKEFILE(dlls/windows.devices.bluetooth)
3158 WINE_CONFIG_MAKEFILE(dlls/windows.devices.bluetooth/tests)
3159 WINE_CONFIG_MAKEFILE(dlls/windows.devices.enumeration)
3160 WINE_CONFIG_MAKEFILE(dlls/windows.devices.enumeration/tests)
3161 WINE_CONFIG_MAKEFILE(dlls/windows.devices.usb)
3162 WINE_CONFIG_MAKEFILE(dlls/windows.devices.usb/tests)
3163 WINE_CONFIG_MAKEFILE(dlls/windows.gaming.input)
3164 WINE_CONFIG_MAKEFILE(dlls/windows.gaming.input/tests)
3165 WINE_CONFIG_MAKEFILE(dlls/windows.gaming.ui.gamebar)
3166 WINE_CONFIG_MAKEFILE(dlls/windows.gaming.ui.gamebar/tests)
3167 WINE_CONFIG_MAKEFILE(dlls/windows.globalization)
3168 WINE_CONFIG_MAKEFILE(dlls/windows.globalization/tests)
3169 WINE_CONFIG_MAKEFILE(dlls/windows.media.devices)
3170 WINE_CONFIG_MAKEFILE(dlls/windows.media.devices/tests)
3171 WINE_CONFIG_MAKEFILE(dlls/windows.media.mediacontrol)
3172 WINE_CONFIG_MAKEFILE(dlls/windows.media.mediacontrol/tests)
3173 WINE_CONFIG_MAKEFILE(dlls/windows.media.speech)
3174 WINE_CONFIG_MAKEFILE(dlls/windows.media.speech/tests)
3175 WINE_CONFIG_MAKEFILE(dlls/windows.media)
3176 WINE_CONFIG_MAKEFILE(dlls/windows.media/tests)
3177 WINE_CONFIG_MAKEFILE(dlls/windows.networking.hostname)
3178 WINE_CONFIG_MAKEFILE(dlls/windows.networking.hostname/tests)
3179 WINE_CONFIG_MAKEFILE(dlls/windows.networking)
3180 WINE_CONFIG_MAKEFILE(dlls/windows.perception.stub)
3181 WINE_CONFIG_MAKEFILE(dlls/windows.perception.stub/tests)
3182 WINE_CONFIG_MAKEFILE(dlls/windows.security.credentials.ui.userconsentverifier)
3183 WINE_CONFIG_MAKEFILE(dlls/windows.security.credentials.ui.userconsentverifier/tests)
3184 WINE_CONFIG_MAKEFILE(dlls/windows.storage.applicationdata)
3185 WINE_CONFIG_MAKEFILE(dlls/windows.storage.applicationdata/tests)
3186 WINE_CONFIG_MAKEFILE(dlls/windows.system.profile.systemmanufacturers)
3187 WINE_CONFIG_MAKEFILE(dlls/windows.system.profile.systemmanufacturers/tests)
3188 WINE_CONFIG_MAKEFILE(dlls/windows.ui)
3189 WINE_CONFIG_MAKEFILE(dlls/windows.ui/tests)
3190 WINE_CONFIG_MAKEFILE(dlls/windowscodecs)
3191 WINE_CONFIG_MAKEFILE(dlls/windowscodecs/tests)
3192 WINE_CONFIG_MAKEFILE(dlls/windowscodecsext)
3193 WINE_CONFIG_MAKEFILE(dlls/windowscodecsext/tests)
3194 WINE_CONFIG_MAKEFILE(dlls/winealsa.drv)
3195 WINE_CONFIG_MAKEFILE(dlls/wineandroid.drv)
3196 WINE_CONFIG_MAKEFILE(dlls/winebus.sys)
3197 WINE_CONFIG_MAKEFILE(dlls/winecoreaudio.drv)
3198 WINE_CONFIG_MAKEFILE(dlls/winecrt0)
3199 WINE_CONFIG_MAKEFILE(dlls/wined3d)
3200 WINE_CONFIG_MAKEFILE(dlls/winegstreamer)
3201 WINE_CONFIG_MAKEFILE(dlls/winehid.sys)
3202 WINE_CONFIG_MAKEFILE(dlls/winemac.drv)
3203 WINE_CONFIG_MAKEFILE(dlls/winemapi)
3204 WINE_CONFIG_MAKEFILE(dlls/wineoss.drv)
3205 WINE_CONFIG_MAKEFILE(dlls/wineps.drv)
3206 WINE_CONFIG_MAKEFILE(dlls/wineps16.drv16,enable_win16)
3207 WINE_CONFIG_MAKEFILE(dlls/winepulse.drv)
3208 WINE_CONFIG_MAKEFILE(dlls/wineusb.sys)
3209 WINE_CONFIG_MAKEFILE(dlls/winevulkan)
3210 WINE_CONFIG_MAKEFILE(dlls/winewayland.drv)
3211 WINE_CONFIG_MAKEFILE(dlls/winex11.drv)
3212 WINE_CONFIG_MAKEFILE(dlls/winexinput.sys)
3213 WINE_CONFIG_MAKEFILE(dlls/wing.dll16,enable_win16)
3214 WINE_CONFIG_MAKEFILE(dlls/wing32)
3215 WINE_CONFIG_MAKEFILE(dlls/winhttp)
3216 WINE_CONFIG_MAKEFILE(dlls/winhttp/tests)
3217 WINE_CONFIG_MAKEFILE(dlls/wininet)
3218 WINE_CONFIG_MAKEFILE(dlls/wininet/tests)
3219 WINE_CONFIG_MAKEFILE(dlls/winmm)
3220 WINE_CONFIG_MAKEFILE(dlls/winmm/tests)
3221 WINE_CONFIG_MAKEFILE(dlls/winnls.dll16,enable_win16)
3222 WINE_CONFIG_MAKEFILE(dlls/winnls32)
3223 WINE_CONFIG_MAKEFILE(dlls/winprint)
3224 WINE_CONFIG_MAKEFILE(dlls/winscard)
3225 WINE_CONFIG_MAKEFILE(dlls/winscard/tests)
3226 WINE_CONFIG_MAKEFILE(dlls/winsock.dll16,enable_win16)
3227 WINE_CONFIG_MAKEFILE(dlls/winspool.drv)
3228 WINE_CONFIG_MAKEFILE(dlls/winspool.drv/tests)
3229 WINE_CONFIG_MAKEFILE(dlls/winsta)
3230 WINE_CONFIG_MAKEFILE(dlls/wintab.dll16,enable_win16)
3231 WINE_CONFIG_MAKEFILE(dlls/wintab32)
3232 WINE_CONFIG_MAKEFILE(dlls/wintab32/tests)
3233 WINE_CONFIG_MAKEFILE(dlls/wintrust)
3234 WINE_CONFIG_MAKEFILE(dlls/wintrust/tests)
3235 WINE_CONFIG_MAKEFILE(dlls/wintypes)
3236 WINE_CONFIG_MAKEFILE(dlls/wintypes/tests)
3237 WINE_CONFIG_MAKEFILE(dlls/winusb)
3238 WINE_CONFIG_MAKEFILE(dlls/wlanapi)
3239 WINE_CONFIG_MAKEFILE(dlls/wlanapi/tests)
3240 WINE_CONFIG_MAKEFILE(dlls/wlanui)
3241 WINE_CONFIG_MAKEFILE(dlls/wldap32)
3242 WINE_CONFIG_MAKEFILE(dlls/wldap32/tests)
3243 WINE_CONFIG_MAKEFILE(dlls/wldp)
3244 WINE_CONFIG_MAKEFILE(dlls/wmasf)
3245 WINE_CONFIG_MAKEFILE(dlls/wmi)
3246 WINE_CONFIG_MAKEFILE(dlls/wmiutils)
3247 WINE_CONFIG_MAKEFILE(dlls/wmiutils/tests)
3248 WINE_CONFIG_MAKEFILE(dlls/wmp)
3249 WINE_CONFIG_MAKEFILE(dlls/wmp/tests)
3250 WINE_CONFIG_MAKEFILE(dlls/wmphoto)
3251 WINE_CONFIG_MAKEFILE(dlls/wmvcore)
3252 WINE_CONFIG_MAKEFILE(dlls/wmvcore/tests)
3253 WINE_CONFIG_MAKEFILE(dlls/wnaspi32)
3254 WINE_CONFIG_MAKEFILE(dlls/wofutil)
3255 WINE_CONFIG_MAKEFILE(dlls/wow32,enable_win16)
3256 WINE_CONFIG_MAKEFILE(dlls/wow64)
3257 WINE_CONFIG_MAKEFILE(dlls/wow64cpu)
3258 WINE_CONFIG_MAKEFILE(dlls/wow64win)
3259 WINE_CONFIG_MAKEFILE(dlls/wpc)
3260 WINE_CONFIG_MAKEFILE(dlls/wpc/tests)
3261 WINE_CONFIG_MAKEFILE(dlls/wpcap)
3262 WINE_CONFIG_MAKEFILE(dlls/wpcap/tests)
3263 WINE_CONFIG_MAKEFILE(dlls/ws2_32)
3264 WINE_CONFIG_MAKEFILE(dlls/ws2_32/tests)
3265 WINE_CONFIG_MAKEFILE(dlls/wsdapi)
3266 WINE_CONFIG_MAKEFILE(dlls/wsdapi/tests)
3267 WINE_CONFIG_MAKEFILE(dlls/wshom.ocx)
3268 WINE_CONFIG_MAKEFILE(dlls/wshom.ocx/tests)
3269 WINE_CONFIG_MAKEFILE(dlls/wsnmp32)
3270 WINE_CONFIG_MAKEFILE(dlls/wsnmp32/tests)
3271 WINE_CONFIG_MAKEFILE(dlls/wsock32)
3272 WINE_CONFIG_MAKEFILE(dlls/wtsapi32)
3273 WINE_CONFIG_MAKEFILE(dlls/wtsapi32/tests)
3274 WINE_CONFIG_MAKEFILE(dlls/wuapi)
3275 WINE_CONFIG_MAKEFILE(dlls/wuaueng)
3276 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_0)
3277 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_1)
3278 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_2)
3279 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_3)
3280 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_4)
3281 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_5)
3282 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_6)
3283 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_7)
3284 WINE_CONFIG_MAKEFILE(dlls/xactengine2_0)
3285 WINE_CONFIG_MAKEFILE(dlls/xactengine2_4)
3286 WINE_CONFIG_MAKEFILE(dlls/xactengine2_7)
3287 WINE_CONFIG_MAKEFILE(dlls/xactengine2_9)
3288 WINE_CONFIG_MAKEFILE(dlls/xactengine3_0)
3289 WINE_CONFIG_MAKEFILE(dlls/xactengine3_1)
3290 WINE_CONFIG_MAKEFILE(dlls/xactengine3_2)
3291 WINE_CONFIG_MAKEFILE(dlls/xactengine3_3)
3292 WINE_CONFIG_MAKEFILE(dlls/xactengine3_4)
3293 WINE_CONFIG_MAKEFILE(dlls/xactengine3_5)
3294 WINE_CONFIG_MAKEFILE(dlls/xactengine3_6)
3295 WINE_CONFIG_MAKEFILE(dlls/xactengine3_7)
3296 WINE_CONFIG_MAKEFILE(dlls/xactengine3_7/tests)
3297 WINE_CONFIG_MAKEFILE(dlls/xapofx1_1)
3298 WINE_CONFIG_MAKEFILE(dlls/xapofx1_2)
3299 WINE_CONFIG_MAKEFILE(dlls/xapofx1_3)
3300 WINE_CONFIG_MAKEFILE(dlls/xapofx1_4)
3301 WINE_CONFIG_MAKEFILE(dlls/xapofx1_5)
3302 WINE_CONFIG_MAKEFILE(dlls/xaudio2_0)
3303 WINE_CONFIG_MAKEFILE(dlls/xaudio2_1)
3304 WINE_CONFIG_MAKEFILE(dlls/xaudio2_2)
3305 WINE_CONFIG_MAKEFILE(dlls/xaudio2_3)
3306 WINE_CONFIG_MAKEFILE(dlls/xaudio2_4)
3307 WINE_CONFIG_MAKEFILE(dlls/xaudio2_5)
3308 WINE_CONFIG_MAKEFILE(dlls/xaudio2_6)
3309 WINE_CONFIG_MAKEFILE(dlls/xaudio2_7)
3310 WINE_CONFIG_MAKEFILE(dlls/xaudio2_7/tests)
3311 WINE_CONFIG_MAKEFILE(dlls/xaudio2_8)
3312 WINE_CONFIG_MAKEFILE(dlls/xaudio2_8/tests)
3313 WINE_CONFIG_MAKEFILE(dlls/xaudio2_9)
3314 WINE_CONFIG_MAKEFILE(dlls/xinput1_1)
3315 WINE_CONFIG_MAKEFILE(dlls/xinput1_2)
3316 WINE_CONFIG_MAKEFILE(dlls/xinput1_3)
3317 WINE_CONFIG_MAKEFILE(dlls/xinput1_3/tests)
3318 WINE_CONFIG_MAKEFILE(dlls/xinput1_4)
3319 WINE_CONFIG_MAKEFILE(dlls/xinput9_1_0)
3320 WINE_CONFIG_MAKEFILE(dlls/xinputuap)
3321 WINE_CONFIG_MAKEFILE(dlls/xmllite)
3322 WINE_CONFIG_MAKEFILE(dlls/xmllite/tests)
3323 WINE_CONFIG_MAKEFILE(dlls/xolehlp)
3324 WINE_CONFIG_MAKEFILE(dlls/xpsprint)
3325 WINE_CONFIG_MAKEFILE(dlls/xpssvcs)
3326 WINE_CONFIG_MAKEFILE(fonts)
3327 WINE_CONFIG_MAKEFILE(include)
3328 WINE_CONFIG_MAKEFILE(libs/adsiid)
3329 WINE_CONFIG_MAKEFILE(libs/dmoguids)
3330 WINE_CONFIG_MAKEFILE(libs/dxerr8)
3331 WINE_CONFIG_MAKEFILE(libs/dxerr9)
3332 WINE_CONFIG_MAKEFILE(libs/dxguid)
3333 WINE_CONFIG_MAKEFILE(libs/faudio)
3334 WINE_CONFIG_MAKEFILE(libs/fluidsynth)
3335 WINE_CONFIG_MAKEFILE(libs/gsm)
3336 WINE_CONFIG_MAKEFILE(libs/jpeg)
3337 WINE_CONFIG_MAKEFILE(libs/jxr)
3338 WINE_CONFIG_MAKEFILE(libs/lcms2)
3339 WINE_CONFIG_MAKEFILE(libs/ldap)
3340 WINE_CONFIG_MAKEFILE(libs/mfuuid)
3341 WINE_CONFIG_MAKEFILE(libs/mpg123)
3342 WINE_CONFIG_MAKEFILE(libs/musl)
3343 WINE_CONFIG_MAKEFILE(libs/png)
3344 WINE_CONFIG_MAKEFILE(libs/strmbase)
3345 WINE_CONFIG_MAKEFILE(libs/strmiids)
3346 WINE_CONFIG_MAKEFILE(libs/tiff)
3347 WINE_CONFIG_MAKEFILE(libs/uuid)
3348 WINE_CONFIG_MAKEFILE(libs/vkd3d)
3349 WINE_CONFIG_MAKEFILE(libs/wbemuuid)
3350 WINE_CONFIG_MAKEFILE(libs/wmcodecdspuuid)
3351 WINE_CONFIG_MAKEFILE(libs/xml2)
3352 WINE_CONFIG_MAKEFILE(libs/xslt)
3353 WINE_CONFIG_MAKEFILE(libs/zlib)
3354 WINE_CONFIG_MAKEFILE(libs/zydis)
3355 WINE_CONFIG_MAKEFILE(loader)
3356 WINE_CONFIG_MAKEFILE(nls)
3357 WINE_CONFIG_MAKEFILE(po)
3358 WINE_CONFIG_MAKEFILE(programs/arp)
3359 WINE_CONFIG_MAKEFILE(programs/aspnet_regiis)
3360 WINE_CONFIG_MAKEFILE(programs/attrib)
3361 WINE_CONFIG_MAKEFILE(programs/cabarc)
3362 WINE_CONFIG_MAKEFILE(programs/cacls)
3363 WINE_CONFIG_MAKEFILE(programs/certutil)
3364 WINE_CONFIG_MAKEFILE(programs/chcp.com)
3365 WINE_CONFIG_MAKEFILE(programs/clock)
3366 WINE_CONFIG_MAKEFILE(programs/cmd)
3367 WINE_CONFIG_MAKEFILE(programs/cmd/tests)
3368 WINE_CONFIG_MAKEFILE(programs/conhost)
3369 WINE_CONFIG_MAKEFILE(programs/conhost/tests)
3370 WINE_CONFIG_MAKEFILE(programs/control)
3371 WINE_CONFIG_MAKEFILE(programs/cscript)
3372 WINE_CONFIG_MAKEFILE(programs/dism)
3373 WINE_CONFIG_MAKEFILE(programs/dllhost)
3374 WINE_CONFIG_MAKEFILE(programs/dplaysvr)
3375 WINE_CONFIG_MAKEFILE(programs/dpnsvr)
3376 WINE_CONFIG_MAKEFILE(programs/dpvsetup)
3377 WINE_CONFIG_MAKEFILE(programs/dxdiag)
3378 WINE_CONFIG_MAKEFILE(programs/eject)
3379 WINE_CONFIG_MAKEFILE(programs/expand)
3380 WINE_CONFIG_MAKEFILE(programs/explorer)
3381 WINE_CONFIG_MAKEFILE(programs/explorer/tests)
3382 WINE_CONFIG_MAKEFILE(programs/extrac32)
3383 WINE_CONFIG_MAKEFILE(programs/fc)
3384 WINE_CONFIG_MAKEFILE(programs/find)
3385 WINE_CONFIG_MAKEFILE(programs/find/tests)
3386 WINE_CONFIG_MAKEFILE(programs/findstr)
3387 WINE_CONFIG_MAKEFILE(programs/findstr/tests)
3388 WINE_CONFIG_MAKEFILE(programs/fsutil)
3389 WINE_CONFIG_MAKEFILE(programs/fsutil/tests)
3390 WINE_CONFIG_MAKEFILE(programs/hh)
3391 WINE_CONFIG_MAKEFILE(programs/hostname)
3392 WINE_CONFIG_MAKEFILE(programs/icacls)
3393 WINE_CONFIG_MAKEFILE(programs/icinfo)
3394 WINE_CONFIG_MAKEFILE(programs/iexplore)
3395 WINE_CONFIG_MAKEFILE(programs/ipconfig)
3396 WINE_CONFIG_MAKEFILE(programs/klist)
3397 WINE_CONFIG_MAKEFILE(programs/lodctr)
3398 WINE_CONFIG_MAKEFILE(programs/mofcomp)
3399 WINE_CONFIG_MAKEFILE(programs/mshta)
3400 WINE_CONFIG_MAKEFILE(programs/msidb)
3401 WINE_CONFIG_MAKEFILE(programs/msiexec)
3402 WINE_CONFIG_MAKEFILE(programs/msinfo32)
3403 WINE_CONFIG_MAKEFILE(programs/net)
3404 WINE_CONFIG_MAKEFILE(programs/netsh)
3405 WINE_CONFIG_MAKEFILE(programs/netstat)
3406 WINE_CONFIG_MAKEFILE(programs/ngen)
3407 WINE_CONFIG_MAKEFILE(programs/notepad)
3408 WINE_CONFIG_MAKEFILE(programs/oleview)
3409 WINE_CONFIG_MAKEFILE(programs/ping)
3410 WINE_CONFIG_MAKEFILE(programs/plugplay)
3411 WINE_CONFIG_MAKEFILE(programs/pnputil)
3412 WINE_CONFIG_MAKEFILE(programs/powershell)
3413 WINE_CONFIG_MAKEFILE(programs/presentationfontcache)
3414 WINE_CONFIG_MAKEFILE(programs/progman)
3415 WINE_CONFIG_MAKEFILE(programs/reg)
3416 WINE_CONFIG_MAKEFILE(programs/reg/tests)
3417 WINE_CONFIG_MAKEFILE(programs/regasm)
3418 WINE_CONFIG_MAKEFILE(programs/regedit)
3419 WINE_CONFIG_MAKEFILE(programs/regedit/tests)
3420 WINE_CONFIG_MAKEFILE(programs/regini)
3421 WINE_CONFIG_MAKEFILE(programs/regsvcs)
3422 WINE_CONFIG_MAKEFILE(programs/regsvr32)
3423 WINE_CONFIG_MAKEFILE(programs/robocopy)
3424 WINE_CONFIG_MAKEFILE(programs/rpcss)
3425 WINE_CONFIG_MAKEFILE(programs/rundll.exe16,enable_win16)
3426 WINE_CONFIG_MAKEFILE(programs/rundll32)
3427 WINE_CONFIG_MAKEFILE(programs/sc)
3428 WINE_CONFIG_MAKEFILE(programs/sc/tests)
3429 WINE_CONFIG_MAKEFILE(programs/schtasks)
3430 WINE_CONFIG_MAKEFILE(programs/schtasks/tests)
3431 WINE_CONFIG_MAKEFILE(programs/sdbinst)
3432 WINE_CONFIG_MAKEFILE(programs/secedit)
3433 WINE_CONFIG_MAKEFILE(programs/servicemodelreg)
3434 WINE_CONFIG_MAKEFILE(programs/services)
3435 WINE_CONFIG_MAKEFILE(programs/services/tests)
3436 WINE_CONFIG_MAKEFILE(programs/setx)
3437 WINE_CONFIG_MAKEFILE(programs/shutdown)
3438 WINE_CONFIG_MAKEFILE(programs/spoolsv)
3439 WINE_CONFIG_MAKEFILE(programs/start)
3440 WINE_CONFIG_MAKEFILE(programs/subst)
3441 WINE_CONFIG_MAKEFILE(programs/svchost)
3442 WINE_CONFIG_MAKEFILE(programs/systeminfo)
3443 WINE_CONFIG_MAKEFILE(programs/taskkill)
3444 WINE_CONFIG_MAKEFILE(programs/tasklist)
3445 WINE_CONFIG_MAKEFILE(programs/tasklist/tests)
3446 WINE_CONFIG_MAKEFILE(programs/taskmgr)
3447 WINE_CONFIG_MAKEFILE(programs/termsv)
3448 WINE_CONFIG_MAKEFILE(programs/uninstaller)
3449 WINE_CONFIG_MAKEFILE(programs/unlodctr)
3450 WINE_CONFIG_MAKEFILE(programs/view)
3451 WINE_CONFIG_MAKEFILE(programs/wevtutil)
3452 WINE_CONFIG_MAKEFILE(programs/where)
3453 WINE_CONFIG_MAKEFILE(programs/whoami)
3454 WINE_CONFIG_MAKEFILE(programs/wineboot)
3455 WINE_CONFIG_MAKEFILE(programs/winebrowser)
3456 WINE_CONFIG_MAKEFILE(programs/winecfg)
3457 WINE_CONFIG_MAKEFILE(programs/wineconsole)
3458 WINE_CONFIG_MAKEFILE(programs/winedbg)
3459 WINE_CONFIG_MAKEFILE(programs/winedevice)
3460 WINE_CONFIG_MAKEFILE(programs/winefile)
3461 WINE_CONFIG_MAKEFILE(programs/winemenubuilder)
3462 WINE_CONFIG_MAKEFILE(programs/winemine)
3463 WINE_CONFIG_MAKEFILE(programs/winemsibuilder)
3464 WINE_CONFIG_MAKEFILE(programs/winepath)
3465 WINE_CONFIG_MAKEFILE(programs/winetest)
3466 WINE_CONFIG_MAKEFILE(programs/winevdm,enable_win16)
3467 WINE_CONFIG_MAKEFILE(programs/winhelp.exe16,enable_win16)
3468 WINE_CONFIG_MAKEFILE(programs/winhlp32)
3469 WINE_CONFIG_MAKEFILE(programs/winmgmt)
3470 WINE_CONFIG_MAKEFILE(programs/winoldap.mod16,enable_win16)
3471 WINE_CONFIG_MAKEFILE(programs/winver)
3472 WINE_CONFIG_MAKEFILE(programs/wmic)
3473 WINE_CONFIG_MAKEFILE(programs/wmplayer)
3474 WINE_CONFIG_MAKEFILE(programs/wordpad)
3475 WINE_CONFIG_MAKEFILE(programs/write)
3476 WINE_CONFIG_MAKEFILE(programs/wscript)
3477 WINE_CONFIG_MAKEFILE(programs/wscript/tests)
3478 WINE_CONFIG_MAKEFILE(programs/wuauserv)
3479 WINE_CONFIG_MAKEFILE(programs/wusa)
3480 WINE_CONFIG_MAKEFILE(programs/xcopy)
3481 WINE_CONFIG_MAKEFILE(programs/xcopy/tests)
3482 WINE_CONFIG_MAKEFILE(server)
3483 WINE_CONFIG_MAKEFILE(tools,,[test "x$enable_tools" = xno])
3484 WINE_CONFIG_MAKEFILE(tools/sfnt2fon,,[test "x$enable_tools" = xno])
3485 WINE_CONFIG_MAKEFILE(tools/widl,,[test "x$enable_tools" = xno])
3486 WINE_CONFIG_MAKEFILE(tools/winebuild,,[test "x$enable_tools" = xno])
3487 WINE_CONFIG_MAKEFILE(tools/winedump,,[test "x$enable_tools" = xno])
3488 WINE_CONFIG_MAKEFILE(tools/winegcc,,[test "x$enable_tools" = xno])
3489 WINE_CONFIG_MAKEFILE(tools/winemaker,,[test "x$enable_tools" = xno])
3490 WINE_CONFIG_MAKEFILE(tools/wmc,,[test "x$enable_tools" = xno])
3491 WINE_CONFIG_MAKEFILE(tools/wrc,,[test "x$enable_tools" = xno])
3492 dnl End of auto-generated output commands
3494 dnl Main ignore file
3496 WINE_IGNORE_FILE(TAGS)
3497 WINE_IGNORE_FILE(tags)
3498 WINE_IGNORE_FILE(autom4te.cache)
3499 WINE_IGNORE_FILE(config.log)
3500 WINE_IGNORE_FILE(config.status)
3501 WINE_IGNORE_FILE(include/config.h)
3502 WINE_IGNORE_FILE(include/stamp-h)
3503 test "$wine_binary" = wine || WINE_IGNORE_FILE(loader/wine)
3505 if test "x$enable_tools" != xno
3506 then
3507     WINE_IGNORE_FILE(tools/makedep$ac_exeext)
3508     AC_CONFIG_COMMANDS([tools/makedep],[wine_fn_output_makedep || AS_EXIT],
3509 [wine_fn_output_makedep ()
3511     AS_MKDIR_P(tools)
3512     $CC -I${wine_srcdir}tools -Iinclude -I${wine_srcdir}include -D__WINESRC__ -DWINE_UNIX_LIB $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext ${wine_srcdir}tools/makedep.c $LDFLAGS
3516 AC_CONFIG_COMMANDS([Makefile], [wine_fn_output_makefile Makefile],
3517 [wine_fn_output_makefile ()
3519     cat <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$[]1 && "$wine_makedep"$makedep_flags && return
3520 # This Makefile understands the following targets:
3522 # all (default):   build wine
3523 # clean:           remove all intermediate files
3524 # distclean:       also remove all files created by configure
3525 # test:            run tests
3526 # testclean:       clean test results to force running all tests again
3527 # install-lib:     install libraries needed to run applications
3528 # install-dev:     install development environment
3529 # install:         install everything
3530 # uninstall:       uninstall everything
3531 # ctags:           create a tags file for vim and others.
3532 # etags:           create a TAGS file for Emacs.
3534 m4_set_foreach([_AC_SUBST_VARS],[var],[var = $var
3535 ])$SET_MAKE
3536 $wine_rules
3537 _WINE_EOF
3538     AS_ERROR([could not create Makefile])
3541 dnl Main makefile
3543 AC_SUBST(SHELL,[/bin/sh])
3545 WINE_APPEND_RULE(
3546 [all: wine
3547         @echo \"Wine build complete.\"
3548 .INIT: Makefile
3549 .MAKEFILEDEPS:
3550 all: Makefile
3551 Makefile: config.status \$(MAKEDEP)
3552         @./config.status Makefile
3553 depend: \$(MAKEDEP)
3554         \$(MAKEDEP)$makedep_flags])
3556 dnl Rules for re-running configure
3558 WINE_APPEND_RULE(
3559 [config.status: ${wine_srcdir}configure
3560         @./config.status --recheck
3561 include/config.h: include/stamp-h
3562 include/stamp-h: ${wine_srcdir}include/config.h.in config.status
3563         @./config.status include/config.h include/stamp-h])
3565 if test "x$enable_maintainer_mode" = xyes
3566 then
3567     WINE_APPEND_RULE(
3568 [configure: configure.ac aclocal.m4
3569         autoconf --warnings=all
3570 include/config.h.in: include/stamp-h.in
3571 include/stamp-h.in: configure.ac aclocal.m4
3572         autoheader --warnings=all
3573         @echo timestamp > \$[@]])
3576 if test "x$enable_tools" != xno
3577 then
3578     WINE_APPEND_RULE(
3579 [tools/makedep$ac_exeext: ${wine_srcdir}tools/makedep.c include/config.h config.status
3580         @./config.status tools/makedep
3581 Makefile: tools/makedep$ac_exeext])
3582 else
3583     WINE_APPEND_RULE(
3584 [\$(MAKEDEP):
3585         @echo \"You need to run make in $toolsdir first\" && false])
3588 dnl Rules for wineloader
3590 if test -n "$with_wine64"
3591 then
3592     case "$with_wine64" in
3593       /*) reldir="" ;;
3594       *)  reldir="../" ;;
3595     esac
3596     dnl Get rid of old symlinks
3597     rm -f fonts server 2>/dev/null
3598     WINE_APPEND_RULE(
3599 [all: loader/wine64 loader/wine64-preloader $with_wine64/loader/wine $with_wine64/loader/wine-preloader
3600 loader/wine64 loader/wine64-preloader:
3601         rm -f \$[@] && \$(LN_S) $reldir$with_wine64/\$[@] \$[@]
3602 $with_wine64/loader/wine:
3603         rm -f \$[@] && \$(LN_S) $ac_pwd/loader/wine \$[@]
3604 $with_wine64/loader/wine-preloader:
3605         rm -f \$[@] && \$(LN_S) $ac_pwd/loader/wine-preloader \$[@]
3606 clean::
3607         rm -f loader/wine64 loader/wine64-preloader $with_wine64/loader/wine $with_wine64/loader/wine-preloader])
3608 else
3609     TOP_INSTALL_DEV="$TOP_INSTALL_DEV include"
3610     TOP_INSTALL_LIB="$TOP_INSTALL_LIB \
3611 fonts \
3612 loader/wine.inf \
3613 nls \
3614 programs/msidb/msidb \
3615 programs/msiexec/msiexec \
3616 programs/notepad/notepad \
3617 programs/regedit/regedit \
3618 programs/regsvr32/regsvr32 \
3619 programs/wineboot/wineboot \
3620 programs/winecfg/winecfg \
3621 programs/wineconsole/wineconsole \
3622 programs/winedbg/winedbg \
3623 programs/winefile/winefile \
3624 programs/winemine/winemine \
3625 programs/winepath/winepath \
3626 server/wineserver"
3628     case $host_os in
3629       cygwin*|mingw32*|darwin*|macosx*|linux-android*) ;;
3630       *) TOP_INSTALL_LIB="$TOP_INSTALL_LIB loader/wine.desktop" ;;
3631     esac
3634 dnl Rules for cleaning
3636 WINE_APPEND_RULE(
3637 [distclean:: clean
3638         rm -rf autom4te.cache
3639 maintainer-clean::
3640         rm -f configure include/config.h.in])
3642 dnl Rules for generated source files
3644 WINE_APPEND_RULE(
3645 [dlls/ntdll/unix/version.c: dummy
3646         @version=\`(GIT_DIR=${wine_srcdir}.git git describe HEAD 2>/dev/null || echo \"wine-\$(PACKAGE_VERSION)\") | sed -n -e '\$\$s/\(.*\)/const char wine_build[[]] = \"\\1\";/p'\` && (echo \$\$version | cmp -s - \$[@]) || echo \$\$version >\$[@] || (rm -f \$[@] && exit 1)
3647 programs/winetest/build.rc: dummy
3648         @build=\"STRINGTABLE { 1 \\\"\`GIT_DIR=${wine_srcdir}.git git rev-parse HEAD 2>/dev/null\`\\\" }\" && (echo \$\$build | cmp -s - \$[@]) || echo \$\$build >\$[@] || (rm -f \$[@] && exit 1)
3649 programs/winetest/build.nfo:
3650         @-\$(CC) -v 2>\$[@]
3651 dlls/wineandroid.drv/wine-debug.apk: dlls/wineandroid.drv/build.gradle ${wine_srcdir}dlls/wineandroid.drv/AndroidManifest.xml ${wine_srcdir}dlls/wineandroid.drv/WineActivity.java ${wine_srcdir}dlls/wineandroid.drv/wine.svg
3652         cd dlls/wineandroid.drv && gradle -q -Psrcdir=$srcdir assembleDebug
3653         mv dlls/wineandroid.drv/build/outputs/apk/wine-debug.apk \$[@]])
3655 dnl Misc rules
3657 AC_SUBST(TAGSFLAGS,["--langmap='c:+.idl.l.rh,make:(Make*.in)'"])
3658 WINE_APPEND_RULE(
3659 [TAGS etags:
3660         rm -f TAGS
3661         (test -d .git && git ls-files || find -L $srcdir -name '*.[[ch]]' -print) | xargs etags -a \$(TAGSFLAGS)
3662 tags ctags:
3663         rm -f tags
3664         (test -d .git && git ls-files || find -L $srcdir -name '*.[[ch]]' -print) | xargs ctags -a \$(TAGSFLAGS)
3665 dummy:
3666 .PHONY: depend dummy install-manpages])
3668 AS_ECHO(" done") >&AS_MESSAGE_FD
3669 AC_OUTPUT
3671 if test "$no_create" = "yes"
3672 then
3673   exit 0
3676 WINE_PRINT_MESSAGES
3678 AS_ECHO("
3679 $as_me: Finished.  Do '${ac_make}' to compile Wine.
3680 ") >&AS_MESSAGE_FD
3682 dnl Local Variables:
3683 dnl comment-start: "dnl "
3684 dnl comment-end: ""
3685 dnl comment-start-skip: "\\bdnl\\b\\s *"
3686 dnl compile-command: "autoreconf --warnings=all"
3687 dnl End: