Skip to content

Commit

Permalink
Use the prefixed pkg-config command
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jan 26, 2022
1 parent 16e7585 commit 4010cbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Expand Up @@ -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

Expand Down

0 comments on commit 4010cbf

Please sign in to comment.