Author: Helmut Grohne Description: libpam-x2go FTCBFS: abuses AC_CHECK_FILES Abstract: libpam-x2go fails to cross build from source, because m4/gtest.m4 abuses AC_CHECK_FILES. It uses the macro to check for files on the build system, while it is meant for checking files on the host system. --- a/m4/gtest.m4 +++ b/m4/gtest.m4 @@ -49,8 +49,7 @@ AC_LANG_POP - AC_CHECK_FILES([$GTEST_SOURCE/src/gtest-all.cc] - [$GTEST_SOURCE/src/gtest_main.cc], + AS_IF([test -e "$GTEST_SOURCE/src/gtest-all.cc" || test -e "$GTEST_SOURCE/src/gtest_main.cc"], [have_gtest_source=yes], [have_gtest_source=no])