Build system: Search Test fon file with "find" command before using default.
@@ -786,7 +786,7 @@ AS_IF([test x"$with_php" = "xyes"], [
AC_ARG_WITH([test-font-path],
[AS_HELP_STRING([--with-test-font-path=value], [Set path to font used for tests (default: /usr/share/fonts/dejavu/DejaVuSans.ttf).])],
[with_test_font_path="$withval"],
- [with_test_font_path="/usr/share/fonts/dejavu/DejaVuSans.ttf"]
+ [with_test_font_path=`find /usr/share/fonts -name DejaVuSans.ttf || echo /usr/share/fonts/dejavu/DejaVuSans.ttf`]
)
AC_CHECK_FILE("$with_test_font_path", [], [
AC_MSG_ERROR([Requested font file is missing. Please install a package providing it.])
