Source: motif Version: 2.3.8-2 Tags: patch upstream User: [email protected] Usertags: rebootstrap
motif fails to cross build from source, because its configure.ac abuses AC_CHECK_FILE. The macro is meant for checking files on the host system while motif uses it to check for development headers on the build system. Please use simple "test -f" for the latter. The attached patch does not make motif cross buildable, because there are more problems after configuring succeeds. Please close this bug anyway if you fix the abuse of AC_CHECK_FILE. Helmut
--- motif-2.3.8.orig/configure.ac +++ motif-2.3.8/configure.ac @@ -8,10 +8,10 @@ AM_INIT_AUTOMAKE([foreign no-define]) dnl AM_MAINTAINER_MODE -AC_CHECK_FILE(/usr/X/include/X11/X.h, +AS_IF([test -f "/usr/X/include/X11/X.h"], AC_PREFIX_DEFAULT(/usr/X), AC_PREFIX_DEFAULT(/usr)) -AC_CHECK_FILE(/usr/X11R6/include/X11/X.h, +AS_IF([test -f "/usr/X11R6/include/X11/X.h"], AC_PREFIX_DEFAULT(/usr/X11R6), AC_PREFIX_DEFAULT(/usr))

