~ubuntu-branches/ubuntu/trusty/xsensors/trusty

« back to all changes in this revision

Viewing changes to .pc/ftbfs_werror.patch/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Moog
  • Date: 2011-04-15 23:13:05 UTC
  • Revision ID: james.westby@ubuntu.com-20110415231305-d4vz7ifrp024w7go
Tags: 0.70-1.1ubuntu1
* debian/patches/ftbfs_werror.patch: Don't compile with -Werror 
* debian/patches/ftbfs_gtkfunction.patch: Don't use deprecated GtkFunction
  Both patches fix a FTBFS (LP: #755940) (Closes: #622005)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Process this file with autoconf to produce a configure script.
 
2
AC_INIT(src/main.c)
 
3
 
 
4
AM_CONFIG_HEADER(config.h)
 
5
 
 
6
AM_INIT_AUTOMAKE(xsensors, 0.70)
 
7
 
 
8
AC_PREREQ([2.50])
 
9
 
 
10
AM_MAINTAINER_MODE
 
11
 
 
12
AC_PROG_CC
 
13
AC_ISC_POSIX
 
14
AC_HEADER_STDC
 
15
 
 
16
dnl Checks for the sensors library.
 
17
AC_CHECK_LIB(sensors, sensors_init,[],
 
18
        AC_MSG_ERROR(You need the sensors library))
 
19
 
 
20
AC_CHECK_HEADERS([sensors/sensors.h sensors/error.h])
 
21
 
 
22
AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([
 
23
*** GLib 2.0 is required to build xsensors; please make sure you have the GLib
 
24
*** development headers installed. The latest version of GLib is
 
25
*** always available at http://www.gtk.org/.]))
 
26
AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([
 
27
*** GTK+ 2.0 is required to build xsensors; please make sure you have the GTK+
 
28
*** development headers installed. The latest version of GTK+ is
 
29
*** always available at http://www.gtk.org/.]))
 
30
 
 
31
XSENSORS_CFLAGS="`pkg-config --cflags gtk+-2.0` -Werror"
 
32
XSENSORS_LIBS="`pkg-config --libs gtk+-2.0`"
 
33
AC_SUBST(XSENSORS_CFLAGS)
 
34
AC_SUBST(XSENSORS_LIBS)
 
35
 
 
36
AC_DEFINE_UNQUOTED(XSENSORS_ICONDIR, "${prefix}/share/pixmaps/xsensors")
 
37
 
 
38
AC_SUBST(CFLAGS)
 
39
AC_SUBST(CPPFLAGS)
 
40
AC_SUBST(LDFLAGS)
 
41
 
 
42
AC_OUTPUT([
 
43
        Makefile
 
44
        pixmaps/Makefile
 
45
        src/Makefile
 
46
])