Use the prefixed pkg-config command

This commit is contained in:
Nobuyoshi Nakada 2022-01-26 15:56:22 +09:00
parent 16e7585557
commit 4010cbfe35
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -1262,12 +1262,12 @@ AC_CHECK_LIB(crypt, crypt) # glibc (GNU/Linux, GNU/Hurd, GNU/kFreeBSD)
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
AC_CHECK_LIB(socket, shutdown) # SunOS/Solaris
if pkg-config --exists capstone; then
CAPSTONE_CFLAGS=`pkg-config --cflags capstone`
CAPSTONE_LIB_L=`pkg-config --libs-only-L capstone`
AS_IF([test -n "${PKG_CONFIG}" && ${PKG_CONFIG} --exists capstone], [
CAPSTONE_CFLAGS=`${PKG_CONFIG} --cflags capstone`
CAPSTONE_LIB_L=`${PKG_CONFIG} --libs-only-L capstone`
LDFLAGS="$LDFLAGS $CAPSTONE_LIB_L"
CFLAGS="$CFLAGS $CAPSTONE_CFLAGS"
fi
])
AC_CHECK_LIB(capstone, cs_open) # Capstone disassembler for debugging YJIT