minor tweak for a slightly smaller configure script

This commit is contained in:
Ozkan Sezer 2021-11-16 23:33:32 +03:00
parent 68ffd24c58
commit 29b79313a0
2 changed files with 21 additions and 14 deletions

21
configure vendored
View File

@ -21517,7 +21517,8 @@ fi
if test x$have_xfixes_h_hdr = xyes; then if test x$have_xfixes_h_hdr = xyes; then
if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
echo "-- dynamic libXfixes -> $xfixes_lib" echo "-- dynamic libXfixes -> $xfixes_lib"
cat >>confdefs.h <<_ACEOF
cat >>confdefs.h <<_ACEOF
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib" #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES "$xfixes_lib"
_ACEOF _ACEOF
@ -21571,7 +21572,8 @@ fi
fi fi
fi fi
if test x$definitely_enable_video_x11_xfixes = xyes; then if test x$definitely_enable_video_x11_xfixes = xyes; then
$as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
$as_echo "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
SUMMARY_video_x11="${SUMMARY_video_x11} xfixes" SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
fi fi
@ -24225,7 +24227,8 @@ fi
CheckDLOPEN() CheckDLOPEN()
{ {
$as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
$as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
@ -24325,10 +24328,12 @@ $as_echo_n "checking for dlopen... " >&6; }
$as_echo "$have_dlopen" >&6; } $as_echo "$have_dlopen" >&6; }
if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
if test x$enable_loadso = xyes; then if test x$enable_loadso = xyes; then
$as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
$as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c" SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
have_loadso=yes have_loadso=yes
@ -24777,7 +24782,8 @@ $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic li
if test x$libusb_lib = x; then if test x$libusb_lib = x; then
libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'` libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
fi fi
cat >>confdefs.h <<_ACEOF
cat >>confdefs.h <<_ACEOF
#define SDL_LIBUSB_DYNAMIC "$libusb_lib" #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
_ACEOF _ACEOF
@ -24792,7 +24798,8 @@ $as_echo "$hidapi_support" >&6; }
fi fi
if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
$as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
$as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c" SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
fi fi

View File

@ -1984,7 +1984,7 @@ XITouchClassInfo *t;
if test x$have_xfixes_h_hdr = xyes; then if test x$have_xfixes_h_hdr = xyes; then
if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
echo "-- dynamic libXfixes -> $xfixes_lib" echo "-- dynamic libXfixes -> $xfixes_lib"
AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES, "$xfixes_lib", []) AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES, "$xfixes_lib", [ ])
definitely_enable_video_x11_xfixes=yes definitely_enable_video_x11_xfixes=yes
else else
AC_CHECK_LIB(Xfixes, XFixesCreatePointerBarrier, have_xfixes_lib=yes) AC_CHECK_LIB(Xfixes, XFixesCreatePointerBarrier, have_xfixes_lib=yes)
@ -1996,7 +1996,7 @@ XITouchClassInfo *t;
fi fi
fi fi
if test x$definitely_enable_video_x11_xfixes = xyes; then if test x$definitely_enable_video_x11_xfixes = xyes; then
AC_DEFINE(SDL_VIDEO_DRIVER_X11_XFIXES, 1, []) AC_DEFINE(SDL_VIDEO_DRIVER_X11_XFIXES, 1, [ ])
SUMMARY_video_x11="${SUMMARY_video_x11} xfixes" SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
fi fi
AC_ARG_ENABLE(video-x11-xrandr, AC_ARG_ENABLE(video-x11-xrandr,
@ -3264,7 +3264,7 @@ dnl Check for the dlfcn.h interface for dynamically loading objects
dnl NOTE: CheckDLOPEN is called only for relevant platforms dnl NOTE: CheckDLOPEN is called only for relevant platforms
CheckDLOPEN() CheckDLOPEN()
{ {
AC_DEFINE(DYNAPI_NEEDS_DLOPEN,1,[]) AC_DEFINE(DYNAPI_NEEDS_DLOPEN, 1, [ ])
AC_CHECK_HEADER(dlfcn.h,have_dlfcn_h=yes,have_dlfcn_h=no) AC_CHECK_HEADER(dlfcn.h,have_dlfcn_h=yes,have_dlfcn_h=no)
@ -3275,9 +3275,9 @@ CheckDLOPEN()
AC_MSG_RESULT($have_dlopen) AC_MSG_RESULT($have_dlopen)
if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
AC_DEFINE(HAVE_DLOPEN,1,[]) AC_DEFINE(HAVE_DLOPEN, 1, [ ])
if test x$enable_loadso = xyes; then if test x$enable_loadso = xyes; then
AC_DEFINE(SDL_LOADSO_DLOPEN,1,[]) AC_DEFINE(SDL_LOADSO_DLOPEN, 1, [ ])
SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c" SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
have_loadso=yes have_loadso=yes
fi fi
@ -3475,7 +3475,7 @@ CheckHIDAPI()
if test x$libusb_lib = x; then if test x$libusb_lib = x; then
libusb_lib=[`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`] libusb_lib=[`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`]
fi fi
AC_DEFINE_UNQUOTED(SDL_LIBUSB_DYNAMIC, "$libusb_lib", []) AC_DEFINE_UNQUOTED(SDL_LIBUSB_DYNAMIC, "$libusb_lib", [ ])
fi fi
fi fi
fi fi
@ -3485,7 +3485,7 @@ CheckHIDAPI()
fi fi
if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, []) AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, [ ])
SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c" SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
fi fi
} }