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