File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Source/3rdParty/mupen64plus-input-raphnetraw/projects/unix Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,14 @@ ifeq ($(OS), OSX)
141141 endif
142142endif
143143
144+ # test for essential build dependencies
145+ ifeq ($(origin PKG_CONFIG ) , undefined)
146+ PKG_CONFIG = $(CROSS_COMPILE ) pkg-config
147+ ifeq ($(shell which $(PKG_CONFIG) 2>/dev/null),)
148+ $(error $(PKG_CONFIG) not found)
149+ endif
150+ endif
151+
144152ifeq ($(OS ) , LINUX)
145153 HIDAPI_NAME =hidapi-hidraw
146154else
@@ -149,9 +157,9 @@ endif
149157
150158# test for presence of HIDLIB
151159ifeq ($(origin HID_CFLAGS ) $(origin HID_LDLIBS ) , undefined undefined)
152- HIDAPI_CONFIG = $(CROSS_COMPILE ) pkg-config $(HIDAPI_NAME )
160+ HIDAPI_CONFIG = $(PKG_CONFIG ) $(HIDAPI_NAME )
153161 ifeq ($(shell which $(HIDAPI_CONFIG) 2>/dev/null),)
154- HIDAPI_CONFIG = $(CROSS_COMPILE ) pkg-config $(HIDAPI_NAME )
162+ HIDAPI_CONFIG = $(PKG_CONFIG ) $(HIDAPI_NAME )
155163 ifeq ($(shell which $(HIDAPI_CONFIG) 2>/dev/null),)
156164 $(error No HIDAPI development libraries found!)
157165 else
You can’t perform that action at this time.
0 commit comments