~ubuntu-branches/ubuntu/natty/upower/natty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-07-12 14:43:12 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100712144312-mk9w8zlsw2cztdb7
Tags: 0.9.5-1
* New upstream release:
  - Dynamic testing for enough hibernate swap. (LP: #599352)
  - Port UPower to libusb1 to avoid unfixable crashes. (LP: #522827)
* debian/rules: Build a PO template during package build, for translation
  systems. (LP: #538321)
* debian/control: Switch libusb-dev build dependency to libusb-1.0-0-dev,
  and add libimobiledevice-dev to support the new backend.
* debian/control: Bump Standards-Version to 3.9.0; no changes necessary.
* Drop transitional devicekit-power-doc package. It's been in testing long
  enough, and we do not want to carry it into the squeeze release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
m4_define([up_major_version], [0])
4
4
m4_define([up_minor_version], [9])
5
 
m4_define([up_micro_version], [4])
 
5
m4_define([up_micro_version], [5])
6
6
m4_define([up_version],
7
7
          [up_major_version.up_minor_version.up_micro_version])
8
8
 
9
 
AC_PREREQ(2.65)
 
9
AC_PREREQ(2.63)
10
10
AC_INIT([upower],[up_version],[richard@hughsie.com],[upower])
11
11
AC_CONFIG_SRCDIR(src)
12
12
AM_INIT_AUTOMAKE([1.9 tar-ustar dist-bzip2])
178
178
AC_SUBST(BACKEND, "$with_backend")
179
179
 
180
180
# only need GUdev on linux
 
181
with_idevice=no
181
182
if test x$with_backend = xlinux; then
182
183
        PKG_CHECK_MODULES(GUDEV, [gudev-1.0 >= 001])
183
 
        AC_SUBST(GUDEV_CFLAGS)
184
 
        AC_SUBST(GUDEV_LIBS)
185
 
 
186
 
        dnl Check libusb also
187
 
        AC_CHECK_HEADERS(usb.h, , [AC_MSG_ERROR([Can't find usb.h. Please install libusb.])])
188
 
        AC_CHECK_LIB([usb], [usb_find_devices], [], [AC_MSG_ERROR([Can't use libusb.])])
 
184
        PKG_CHECK_MODULES(USB, [libusb-1.0 >= 1.0.0])
 
185
        PKG_CHECK_MODULES(IDEVICE, libimobiledevice-1.0 >= 0.9.7, with_idevice=yes, with_idevice=no)
 
186
        if test x$with_idevice = xyes; then
 
187
                AC_DEFINE(HAVE_IDEVICE, 1, [Define to 1 if AFC is going to be built])
 
188
        fi
189
189
fi
190
190
 
 
191
AM_CONDITIONAL(HAVE_IDEVICE, [test x$with_idevice = xyes])
 
192
 
191
193
# export to Makefile.am
192
194
AM_CONDITIONAL(BACKEND_TYPE_DUMMY, [test x$with_backend = xdummy])
193
195
AM_CONDITIONAL(BACKEND_TYPE_LINUX, [test x$with_backend = xlinux])
198
200
dnl ---------------------------------------------------------------------------
199
201
AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests],[enable unit test code]),
200
202
              enable_tests=$enableval,enable_tests=yes)
201
 
AM_CONDITIONAL(EGG_BUILD_TESTS, test x$enable_tests = xyes)
202
 
if test x$enable_tests = xyes; then
203
 
        AC_DEFINE(EGG_BUILD_TESTS,1,[Build test code])
204
 
fi
 
203
AM_CONDITIONAL(UP_BUILD_TESTS, test x$enable_tests = xyes)
205
204
 
206
205
if test "x$GCC" = "xyes"; then
207
206
  LDFLAGS="-Wl,--as-needed $LDFLAGS"
258
257
        xsltproc:                   ${XSLTPROC}
259
258
 
260
259
        Backend:                    ${with_backend}
 
260
        libimobiledevice support:   ${with_idevice}
261
261
        Maintainer mode:            ${USE_MAINTAINER_MODE}
262
262
        Building api docs:          ${enable_gtk_doc}
263
263
        Building man pages:         ${enable_man_pages}