corrected configure output

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@98 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-05-07 21:27:20 +00:00
parent 1dcb95b3c3
commit 62d58a6168

View File

@@ -37,8 +37,8 @@ AC_ARG_ENABLE(ccid,
AS_HELP_STRING([--disable-ccid], [Disable USB CCID emulator]),
[enable_ccid="${enableval}"], [enable_ccid=yes])
if test "x$enable_ccid" != xno ; then
AC_CHECK_HEADERS(linux/usb/gadgetfs.h, [],
[ AC_MSG_ERROR([linux/usb/gadgetfs.h not found]) ])
AC_CHECK_HEADERS(linux/usb/gadgetfs.h,,
[ AC_MSG_ERROR([linux/usb/gadgetfs.h not found, maybe you want to disable ccid]) ])
ACX_PTHREAD
@@ -48,10 +48,10 @@ if test "x$enable_ccid" != xno ; then
LIBS="$LDFLAGS $PTHREAD_LIBS"
AC_CHECK_HEADERS(pthread.h, [],
[ AC_MSG_ERROR([pthread.h not found, use ./configure PTHREAD_CFLAGS=...]) ])
AC_MSG_CHECKING([for parse_ef_card_access])
[ AC_MSG_ERROR([pthread.h not found, use ./configure PTHREAD_CFLAGS=... or disable ccid]) ])
AC_MSG_CHECKING([for pthread_create])
AC_TRY_LINK_FUNC(pthread_create, [ AC_MSG_RESULT([yes]) ],
[ AC_MSG_ERROR([pthread not found, use ./configure PTHREAD_LIBS=...]) ])
[ AC_MSG_ERROR([pthread not found, use ./configure PTHREAD_LIBS=... or disable ccid]) ])
CPPFLAGS="$saved_CPPFLAGS"
LIBS="$saved_LIBS"