For most other configure options we are warning when some dependency
is not present, in particular when it's been explicitly requested.
Also do this for Samba NetAPI now.
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 07c9dd9bdf560f86598aa496a0ffaec6bb8479fa)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
On some systems <sys/sysinfo.h> may be present while the sysinfo
function may not, or at least not as part of standard libraries,
so check whether the function is actually available before using
it.
This fixes builds on FreeBSD with the devel/libsysinfo present.
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 59da79021a6e441e3b21b933c744aba922208ec1)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
res_init and res_query don't need lresolv on glibc 2.34.
Added another test for ns_initparse and friends.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51635
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit a3bbf5137707abb548ff642826992b7069bef1de)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Starting in Xcode 12, ld rounds page sizes and alignments up to 16KB
for all architectures. Passing '-segalign 0x1000' resets this back to
4KB.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 11fd7e8394b53b04b027d7c5b26c51b8b50242b9)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
On Apple Silicon, Rosetta allocates memory starting at 0x100000000
(the 4GB line) before the preloader runs.
The .NET 3.5 installer and DirectX Jun2010 redistributable both contain
non-relocatable EXEs with that base address, which fail to run.
The workaround is to create an empty linker section at that address,
which is mapped by the kernel before Rosetta runs and forces Rosetta's
allocations higher in memory.
The linker section runs from 0x100000000-0x114000000.
Rosetta's allocations are ~132MB, and should end below 0x120000000.
This is not an exact science: a non-relocatable EXE with base address
between 0x114000000-0x120000000 will fail to run. If one is discovered,
the section size will need to be changed.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 307f5d00f17d71fe0030acb6ba9f28c3c9d76615)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Check causes issues with newer Xcode versions. Xcode 3.x is unable to compile modern wine.
Signed-off-by: Dean M Greer <gcenx83@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
libunwind defines the same symbols as libgcc_s but may not be
compatible.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49312
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This fixes pkgconfig SDL2 detection when SDL2 is installed in a non-standard location.
Signed-off-by: Dean M Greer <gcenx83@gmail.com>
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>