1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-10 16:43:33 +02:00

Fall back to check for -lexpat when there is not pkg-config file.

This commit is contained in:
benjamin.drung@gmail.com
2013-11-21 15:47:01 +00:00
parent 7647b1f452
commit c7c15e09d8
2 changed files with 75 additions and 0 deletions

View File

@@ -18,6 +18,22 @@ AC_DEFUN([AUDACITY_CHECKLIB_EXPAT], [
EXPAT_SYSTEM_AVAILABLE="yes",
EXPAT_SYSTEM_AVAILABLE="no")
dnl Fall back to check for -lexpat when there is not pkg-config file.
if test "$EXPAT_SYSTEM_AVAILABLE" = "no"; then
AC_CHECK_LIB(expat, XML_ParserCreate,
libexpat_found="yes",
libexpat_found="no")
AC_CHECK_HEADER(expat.h,
expat_h_found="yes",
expat_h_found="no")
if test "$libexpat_found" = "yes" -a "$expat_h_found" = "yes"; then
EXPAT_SYSTEM_AVAILABLE="yes"
EXPAT_LIBS="-lexpat"
fi
fi
if test "$EXPAT_SYSTEM_AVAILABLE" = "yes"; then
AC_MSG_NOTICE([Expat libraries are available as system libraries])
else