Source: mit-scheme
Version: 12.1-14
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
mit-scheme fails to cross build from source as it uses the build
architecture pkg-config (hard coded via the relevant configure.ac) to
locate the PostgreSQL library. I'm attaching a patch to make it use the
correct pkg-config.
Note that this does not fully fix the build. In the end, I am faced with
an illegal instruction. Please consider that out of scope for this
report and close it when just addressing the pkg-config usage.
Helmut
--- mit-scheme-12.1.orig/src/pgsql/configure.ac
+++ mit-scheme-12.1/src/pgsql/configure.ac
@@ -101,9 +101,9 @@
[AC_MSG_RESULT([no])])
fi
-AC_CHECK_PROG([PKG_CONFIG], [pkg-config], [yes])
+PKG_PROG_PKG_CONFIG
-if ! pkg-config --exists libpq 2>/dev/null; then
+if ! "$PKG_CONFIG" --exists libpq 2>/dev/null; then
AC_MSG_ERROR([PostgreSQL not found.])
fi