|
Lines 49-54
Link Here
|
| 49 |
AC_ARG_ENABLE([extras], |
49 |
AC_ARG_ENABLE([extras], |
| 50 |
AS_HELP_STRING([--disable-extras], [disable extras with external dependencies]), |
50 |
AS_HELP_STRING([--disable-extras], [disable extras with external dependencies]), |
| 51 |
[], [enable_extras=yes]) |
51 |
[], [enable_extras=yes]) |
|
|
52 |
AC_ARG_ENABLE([acl], |
| 53 |
AS_HELP_STRING([--enable-acl], [enable libacl dependencies]), |
| 54 |
[], [enable_acl=no]) |
| 52 |
if test "x$enable_extras" = xyes; then |
55 |
if test "x$enable_extras" = xyes; then |
| 53 |
AC_PATH_PROG([GPERF], [gperf]) |
56 |
AC_PATH_PROG([GPERF], [gperf]) |
| 54 |
if test -z "$GPERF"; then |
57 |
if test -z "$GPERF"; then |
|
Lines 58-67
Link Here
|
| 58 |
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.7.0 gobject-2.0 >= 2.7.0]) |
61 |
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.7.0 gobject-2.0 >= 2.7.0]) |
| 59 |
AC_SUBST([GLIB_CFLAGS]) |
62 |
AC_SUBST([GLIB_CFLAGS]) |
| 60 |
AC_SUBST([GLIB_LIBS]) |
63 |
AC_SUBST([GLIB_LIBS]) |
| 61 |
|
64 |
if test "x$enable_acl" = xyes; then |
| 62 |
AC_CHECK_LIB([acl], [acl_init], [:], AC_MSG_ERROR([libacl not found])) |
65 |
AC_CHECK_LIB([acl], [acl_init], [:], AC_MSG_ERROR([libacl not found])) |
| 63 |
AC_CHECK_HEADER([acl/libacl.h], [:], AC_MSG_ERROR([libacl header not found])) |
66 |
AC_CHECK_HEADER([acl/libacl.h], [:], AC_MSG_ERROR([libacl header not found])) |
| 64 |
|
67 |
fi |
| 65 |
PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.12) |
68 |
PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.12) |
| 66 |
AC_SUBST(LIBUSB_CFLAGS) |
69 |
AC_SUBST(LIBUSB_CFLAGS) |
| 67 |
AC_SUBST(LIBUSB_LIBS) |
70 |
AC_SUBST(LIBUSB_LIBS) |
|
Lines 83-88
Link Here
|
| 83 |
AC_SUBST(PCI_DATABASE) |
86 |
AC_SUBST(PCI_DATABASE) |
| 84 |
fi |
87 |
fi |
| 85 |
AM_CONDITIONAL([ENABLE_EXTRAS], [test "x$enable_extras" = xyes]) |
88 |
AM_CONDITIONAL([ENABLE_EXTRAS], [test "x$enable_extras" = xyes]) |
|
|
89 |
AM_CONDITIONAL([ENABLE_ACL], [test "x$enable_acl" = xyes]) |
| 86 |
|
90 |
|
| 87 |
AC_ARG_ENABLE([introspection], |
91 |
AC_ARG_ENABLE([introspection], |
| 88 |
AS_HELP_STRING([--disable-introspection], [disable GObject introspection]), |
92 |
AS_HELP_STRING([--disable-introspection], [disable GObject introspection]), |