diff options
author | Tobia Tesan | 2014-09-21 19:25:15 +0200 |
---|---|---|
committer | Tobia Tesan | 2014-09-21 20:23:49 +0200 |
commit | ba9401864ccc9b2aada36db12ab3a931a18b787c (patch) | |
tree | 01a938f60fb967a192b2ea332f0cdd82298b0a16 | |
parent | 651b271f6102fc349c679172e069354049a6626b (diff) | |
download | scummvm-rg350-ba9401864ccc9b2aada36db12ab3a931a18b787c.tar.gz scummvm-rg350-ba9401864ccc9b2aada36db12ab3a931a18b787c.tar.bz2 scummvm-rg350-ba9401864ccc9b2aada36db12ab3a931a18b787c.zip |
CONFIGURE: Use pkgconfig to get CFLAGS for Unity if not supplied
This is not necessary if we got --with-libunity-prefix= (line
1447).
That's not always the case though.
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3863,6 +3863,10 @@ EOF esac fi if test "$_libunity" = yes ; then + if test "$LIBUNITY_CFLAGS" = "" || test "$LIBUNITY_LIBS" = ""; then + LIBUNITY_LIBS="$LIBUNITY_LIBS `pkg-config --libs 'unity > 3.8.1' 2>> "$TMPLOG"`" + LIBUNITY_CFLAGS="$LIBUNITY_CFLAGS `pkg-config --cflags 'unity > 3.8.1' 2>> "$TMPLOG"`" + fi LIBS="$LIBS $LIBUNITY_LIBS" INCLUDES="$INCLUDES $LIBUNITY_CFLAGS" fi |