mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Fix brew check for GitHub actions
Don't abort if a brew catalog file is missing. This is needed for the GitHub actions environment which provides brew also for Linux. Running cross builds then failed at AC_CHECK_FILE. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
a772571401
commit
e1f1f325f7
15
configure.ac
15
configure.ac
@ -440,15 +440,12 @@ if $have_asciidoc && $have_xsltproc; then
|
||||
if $have_brew; then
|
||||
brew_prefix=$(brew --prefix)
|
||||
catalog_file=$brew_prefix/etc/xml/catalog
|
||||
AC_CHECK_FILE($catalog_file,
|
||||
[
|
||||
AM_CONDITIONAL([HAVE_XML_CATALOG_FILES], true)
|
||||
XML_CATALOG_FILES=file:$catalog_file
|
||||
],
|
||||
[
|
||||
AC_MSG_ERROR([Missing file $catalog_file.])
|
||||
]
|
||||
)
|
||||
if test -f $catalog_file; then
|
||||
AM_CONDITIONAL([HAVE_XML_CATALOG_FILES], true)
|
||||
XML_CATALOG_FILES=file:$catalog_file
|
||||
else
|
||||
AC_MSG_WARN([Missing file $catalog_file.])
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([XML_CATALOG_FILES])
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user