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