Source: onak
Version: 0.5.0-1
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap

onak fails to cross build from source, because the upstream configure.ac
abuses AC_CHECK_FILE. The macro is meant to check for files on the host,
but it uses it to examine the build tree. A simple test -f is better in
this case. Please consider applying the attached patch. It makes onak
cross buildable.

Helmut
--- onak-0.5.0.orig/configure.ac
+++ onak-0.5.0/configure.ac
@@ -62,7 +62,7 @@
 
 AC_MSG_CHECKING([which key database backend to use])
 AC_MSG_RESULT([$enable_backend])
-AC_CHECK_FILE([$srcdir/keydb_$enable_backend.c], ,AC_MSG_ERROR([non existent key database backend $enable_backend]))
+AS_IF([test -f "$srcdir/keydb_$enable_backend.c"], ,AC_MSG_ERROR([non existent key database backend $enable_backend]))
 
 if test "x$enable_backend" = "xdb4"
 then

Reply via email to