Improve MacOSX portability: many thanks to Daniel Macks <dmacks@netspace.org> from #fink irc channel.
This commit is contained in:
parent
d5b1ccea6d
commit
658f24ba3e
2 changed files with 12 additions and 0 deletions
|
@ -60,10 +60,18 @@ AC_SUBST(LIBUSB_CFLAGS)
|
||||||
## libpcsclite
|
## libpcsclite
|
||||||
if test "x$enable_pcsc_lite" = "xyes"
|
if test "x$enable_pcsc_lite" = "xyes"
|
||||||
then
|
then
|
||||||
|
case "$host" in
|
||||||
|
*darwin*)
|
||||||
|
AC_MSG_WARN(Using darwin PCSC Framework)
|
||||||
|
LIBPCSCLITE_LIBS=-Wl,-framework,PCSC
|
||||||
|
;;
|
||||||
|
*)
|
||||||
PKG_CHECK_MODULES(LIBPCSCLITE, libpcsclite, [WITH_PCSC=1], [WITH_PCSC=0])
|
PKG_CHECK_MODULES(LIBPCSCLITE, libpcsclite, [WITH_PCSC=1], [WITH_PCSC=0])
|
||||||
if test "$WITH_PCSC" = "0" ; then
|
if test "$WITH_PCSC" = "0" ; then
|
||||||
AC_MSG_ERROR([libpcsclite is mandatory.])
|
AC_MSG_ERROR([libpcsclite is mandatory.])
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
AC_SUBST(LIBPCSCLITE_LIBS)
|
AC_SUBST(LIBPCSCLITE_LIBS)
|
||||||
AC_SUBST(LIBPCSCLITE_CFLAGS)
|
AC_SUBST(LIBPCSCLITE_CFLAGS)
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -25,7 +25,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifndef __APPLE__
|
||||||
#include <winscard.h>
|
#include <winscard.h>
|
||||||
|
#else
|
||||||
|
#include <PCSC/winscard.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
#include "bitutils.h"
|
#include "bitutils.h"
|
||||||
|
|
Loading…
Add table
Reference in a new issue