diff --git a/configure.ac b/configure.ac index 420ce5845d89c624114e363b2a2b7409136fdb78..a75bd5f5d83915c3d32ebec4ca2d2456655c000b 100644 --- a/configure.ac +++ b/configure.ac @@ -942,9 +942,11 @@ AC_ARG_VAR(PKG_CONFIG_PATH, PKG_PROG_PKG_CONFIG() dnl On some OS we need static linking -AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "darwin" ],[ - PKG_CONFIG="${PKG_CONFIG} --static" - ]) + AS_IF([test -n "${PKG_CONFIG}" ],[ + AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" -o "${SYS}" = "darwin" ],[ + PKG_CONFIG="${PKG_CONFIG} --static" + ]) + ]) dnl