CONFIGURE: Update libunity detection by adding a call to one of unity functions in the cc_check test

Some older compilers might not error out on missing headers and will compile (with warnings) unless a symbol is missing
This commit is contained in:
Littleboy 2011-04-29 11:33:18 -04:00 committed by Julien
parent f843b3f280
commit 0ae3e4f289

5
configure vendored
View file

@ -2946,7 +2946,10 @@ if test "$_unity" = auto ; then
_unity=no
cat > $TMPC << EOF
#include <unity.h>
int main(void) { return 0; }
int main(void) {
unity_launcher_entry_get_for_desktop_id("scummvm.desktop");
return 0;
}
EOF
cc_check $UNITY_CFLAGS $UNITY_LIBS -lunity && _unity=yes
fi