Source: nfdump
Version: 1.7.1-1
User: debian-cr...@lists.debian.org
Usertags: ftcbfs
Tags: patch upstream

nfdump fails to cross build from source, because its configure.ac has
gained a couple of AC_RUN_IFELSE. A number of them are used in a way
where running the compiled program doesn't gain any actual information
beyond just compiling. Hence those can be easily downgraded to
AC_COMPILE_IFELSE. The one AC_RUN_IFELSE about %z has a cross
compilation default and is only relevant for testing anyway. So with the
attached patch, nfdump cross builds again. Please consider applying it.

Helmut
--- nfdump-1.7.3.orig/configure.ac
+++ nfdump-1.7.3/configure.ac
@@ -172,7 +172,7 @@
 	else
 		AC_MSG_ERROR(Required rrd.h header file not found!)
 	fi
-	AC_RUN_IFELSE(
+	AC_COMPILE_IFELSE(
 		[ AC_LANG_PROGRAM(
 			[[
 				#include <stdio.h>
@@ -227,7 +227,7 @@
 	else
 		AC_MSG_ERROR(Required rrd.h header file not found!)
 	fi
-	AC_RUN_IFELSE(
+	AC_COMPILE_IFELSE(
 		[ AC_LANG_PROGRAM(
 			[[
 				#include <stdio.h>
@@ -269,7 +269,7 @@
 	else
 		AC_MSG_ERROR(Required pcap.h header file not found!)
 	fi
-	AC_RUN_IFELSE(
+	AC_COMPILE_IFELSE(
 		[ AC_LANG_PROGRAM(
 			[[
 				#include <stdio.h>

Reply via email to