diff --git a/configure b/configure index 6556275..bf6a548 100755 --- a/configure +++ b/configure @@ -26,8 +26,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then fi # Use pkg-config if available -PKGCONFIG=$(command -v pkg-config) -if [ "$PKGCONFIG" ]; then +if [ $(command -v pkg-config) ]; then PKGCONFIG_CFLAGS=$(pkg-config --cflags --silence-errors ${PKG_CONFIG_NAME}) PKGCONFIG_LIBS=$(pkg-config --libs ${PKG_CONFIG_NAME}) fi