mirror of
https://github.com/wine-mirror/wine
synced 2024-06-29 06:14:34 +00:00
configure: Define HAVE_WINE_PRELOADER when the preloader is being built.
This commit is contained in:
parent
266e95a21b
commit
5da03c7a60
3
configure
vendored
3
configure
vendored
|
@ -20457,6 +20457,9 @@ if test "$wine_use_preloader" = "yes"
|
|||
then
|
||||
test "$wine_binary" = wine || as_fn_append CONFIGURE_TARGETS " loader/wine-preloader"
|
||||
WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
|
||||
|
||||
printf "%s\n" "#define HAVE_WINE_PRELOADER 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
@ -2042,6 +2042,7 @@ if test "$wine_use_preloader" = "yes"
|
|||
then
|
||||
test "$wine_binary" = wine || WINE_IGNORE_FILE(loader/wine-preloader)
|
||||
WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
|
||||
AC_DEFINE(HAVE_WINE_PRELOADER, 1, [Define to 1 if the Wine preloader is being used.])
|
||||
fi
|
||||
|
||||
dnl **** Check for functions ****
|
||||
|
|
|
@ -147,7 +147,7 @@ SYSTEM_SERVICE_TABLE KeServiceDescriptorTable[4] =
|
|||
static void fatal_error( const char *err, ... ) __attribute__((noreturn, format(printf,1,2)));
|
||||
#endif
|
||||
|
||||
#if defined(linux) || defined(__APPLE__)
|
||||
#ifdef HAVE_WINE_PRELOADER
|
||||
static const BOOL use_preloader = TRUE;
|
||||
#else
|
||||
static const BOOL use_preloader = FALSE;
|
||||
|
@ -2074,7 +2074,7 @@ static int pre_exec(void)
|
|||
return 1; /* we have a preloader on x86-64/arm64 */
|
||||
}
|
||||
|
||||
#elif defined(__APPLE__) && (defined(__i386__) || defined(__x86_64__))
|
||||
#elif defined(__APPLE__) && defined(HAVE_WINE_PRELOADER)
|
||||
|
||||
static int pre_exec(void)
|
||||
{
|
||||
|
|
|
@ -642,6 +642,9 @@
|
|||
/* Define to 1 if you have the <valgrind/valgrind.h> header file. */
|
||||
#undef HAVE_VALGRIND_VALGRIND_H
|
||||
|
||||
/* Define to 1 if the Wine preloader is being used. */
|
||||
#undef HAVE_WINE_PRELOADER
|
||||
|
||||
/* Define to 1 if you have the <X11/extensions/shape.h> header file. */
|
||||
#undef HAVE_X11_EXTENSIONS_SHAPE_H
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user