1 dnl Process this file with autoconf to produce a configure script.
4 AC_INIT([Barry OpenSync Plugin], 0.01, [], barryplugin)
5 AM_INIT_AUTOMAKE(foreign)
6 AC_CONFIG_SRCDIR(src/barry_sync.cc)
7 AC_CONFIG_HEADER(config.h)
9 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:$prefix/lib/pkgconfig:/usr/local/lib/pkgconfig
10 pkg_modules="opensync-1.0 glib-2.0"
11 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
12 AC_SUBST(PACKAGE_CFLAGS)
13 AC_SUBST(PACKAGE_LIBS)
26 [ --with-barry=<path> root path of Barry installation],
27 [BARRY_LIB_PATH="$with_barry/lib"
28 BARRY_INC_PATH="$with_barry/include"],
29 [BARRY_LIB_PATH="../../src/install/lib"
30 BARRY_INC_PATH="../../src/install/include"])
33 [ --with-libusb=<path> root path of libusb installation],
34 [LIBUSB_LIB_PATH="$with_libusb/lib"
35 LIBUSB_INC_PATH="$with_libusb/include"],
36 [LIBUSB_LIB_PATH="/usr/lib"
37 LIBUSB_INC_PATH="/usr/include"])
39 OPENSYNC_CONFIGDIR=$(pkg-config --variable=configdir opensync-1.0)
40 OPENSYNC_PLUGINDIR=$(pkg-config --variable=plugindir opensync-1.0)
41 OPENSYNC_FORMATSDIR=$(pkg-config --variable=formatsdir opensync-1.0)
42 OPENSYNC_HEADERDIR=$(pkg-config --variable=headerdir opensync-1.0)
44 AC_SUBST(OPENSYNC_CONFIGDIR) ## This is the place where you can install the default configuration files of your plugin
45 AC_SUBST(OPENSYNC_PLUGINDIR) ## This is the dir where you plugin will be installed
46 AC_SUBST(OPENSYNC_FORMATSDIR) ## Here are format plugins installed (if any)
47 AC_SUBST(OPENSYNC_HEADERDIR) ## Here are the headers that a user interface may need (if any)
48 AC_SUBST(BARRY_LIB_PATH)
49 AC_SUBST(BARRY_INC_PATH)
50 AC_SUBST(LIBUSB_LIB_PATH)
51 AC_SUBST(LIBUSB_INC_PATH)