void-packages/srcpkgs/vala/patches/fix-cross.patch
2017-10-06 09:54:21 +02:00

23 lines
514 B
Diff

--- configure.ac.orig 2017-10-06 09:45:08.321772985 +0200
+++ configure.ac 2017-10-06 09:46:58.900866875 +0200
@@ -104,16 +104,15 @@ cgraph_tmp_LIBADD="$LIBADD"
cgraph_tmp_CFLAGS="$CFLAGS"
LIBADD="$LIBADD $LIBGVC_LIBS"
CFLAGS="$CFLAGS $LIBGVC_CFLAGS"
-AC_RUN_IFELSE(
+AC_COMPILE_IFELSE(
[AC_LANG_SOURCE([
#include <gvc.h>
int main(void) {
- #ifdef WITH_CGRAPH
- return 0;
- #else
- return -1;
+ #ifndef WITH_CGRAPH
+ #error
#endif
+ return 0;
}
])], [
AC_MSG_RESULT([yes])