mirror of https://github.com/nirenjan/libx52.git
Use autoconf macros for if-checks
parent
b45c9fd9a2
commit
e752be9805
|
@ -8,11 +8,11 @@ LT_INIT
|
|||
# Check for libusb-1.0
|
||||
AC_SEARCH_LIBS([libusb_init], [usb-1.0], [have_libusb=yes])
|
||||
|
||||
if test "x${have_libusb}" = xyes; then
|
||||
AS_IF([test "x${have_libusb}" = xyes], [
|
||||
AC_CHECK_HEADERS([libusb-1.0/libusb.h], [], [have_libusb=no])
|
||||
fi
|
||||
])
|
||||
|
||||
if test "x${have_libusb}" != xyes; then
|
||||
AS_IF([test "x${have_libusb}" != xyes], [
|
||||
AC_MSG_ERROR([
|
||||
-------------------------------------------------------
|
||||
The library libusb-1.0 and header file libusb.h
|
||||
|
@ -20,7 +20,7 @@ if test "x${have_libusb}" != xyes; then
|
|||
Check 'config.log' for more information.
|
||||
-------------------------------------------------------
|
||||
])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_SUBST([X52_PKG_VERSION], [0.1])
|
||||
AC_SUBST([X52_INCLUDE], ["-I \$(top_srcdir)/libx52"])
|
||||
|
|
Loading…
Reference in New Issue