libnfc 1.3.4 has an ATR bug, libnfc 1.3.9 is mandatory.

This commit is contained in:
Romuald Conty 2010-07-19 17:29:19 +00:00
parent dc51631393
commit 1894b72fb7
2 changed files with 7 additions and 8 deletions

View File

@ -58,13 +58,12 @@ then
fi
AC_SUBST([DEBUG_CFLAGS])
PKG_CHECK_MODULES(LIBNFC, libnfc, [WITH_NFC=1], [WITH_NFC=0])
# Checks for pkg-config modules.
LIBNFC_REQUIRED_VERSION=1.3.9
PKG_CHECK_MODULES([libnfc], [libnfc >= $LIBNFC_REQUIRED_VERSION], [], [AC_MSG_ERROR([libnfc >= $LIBNFC_REQUIRED_VERSION is mandatory.])])
if test x"$WITH_NFC" = "x0"; then
AC_MSG_ERROR([libnfc is mandatory.])
fi
AC_SUBST(LIBNFC_LIBS)
AC_SUBST(LIBNFC_CFLAGS)
AC_SUBST(libnfc_LIBS)
AC_SUBST(libnfc_CFLAGS)
# Set C standard to C99
CFLAGS="$CFLAGS -std=c99"

View File

@ -1,6 +1,6 @@
INCLUDES = $(all_includes)
AM_CFLAGS = @LIBNFC_CFLAGS@
AM_LDFLAGS = @LIBNFC_LIBS@
AM_CFLAGS = @libnfc_CFLAGS@
AM_LDFLAGS = @libnfc_LIBS@
bin_PROGRAMS = lsnfc