~peter-pearse/ubuntu/oneiric/upower/prop001

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-05 14:31:17 UTC
  • mfrom: (15.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20110505143117-9clyzsrw45vt5g6y
Tags: 0.9.10-1
* New upstream release:
  - Fix "unknown" battery status guessing to not be recursive. (LP: #384304)
* debian/control: Drop obsolete devicekit-power-* Conflicts/Replaces.

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], [9])
 
5
m4_define([up_micro_version], [10])
6
6
m4_define([up_version],
7
7
          [up_major_version.up_minor_version.up_micro_version])
8
8
 
126
126
#       WARNINGFLAGS_C="$WARNINGFLAGS_C -Wignored-qualifiers"
127
127
        WARNINGFLAGS_C="$WARNINGFLAGS_C -Wsign-compare"
128
128
#       WARNINGFLAGS_C="$WARNINGFLAGS_C -Wtype-limits"
129
 
        WARNINGFLAGS_C="$WARNINGFLAGS_C -Wuninitialized"
 
129
        WARNINGFLAGS_C="$WARNINGFLAGS_C -O -Wuninitialized"
130
130
        WARNINGFLAGS_C="$WARNINGFLAGS_C -Waggregate-return"
131
131
        WARNINGFLAGS_C="$WARNINGFLAGS_C -Wdeclaration-after-statement"
132
132
#       WARNINGFLAGS_C="$WARNINGFLAGS_C -Wshadow"
174
174
dnl ---------------------------------------------------------------------------
175
175
AC_ARG_WITH([backend],
176
176
            AS_HELP_STRING([--with-backend=<option>],
177
 
                           [Default backend to use linux, freebsd, dummy (dummy)]))
 
177
                           [Default backend to use linux, freebsd, openbsd, dummy (dummy)]))
178
178
# default to a sane option
179
179
if test x$with_backend = x; then
180
180
        if test -e /usr/include/gudev-1.0/gudev/gudev.h ; then
181
181
                with_backend=linux
182
182
        elif test -e /usr/include/dev/acpica/acpiio.h ; then
183
183
                with_backend=freebsd
 
184
        elif test -e /usr/include/machine/apmvar.h ; then
 
185
                with_backend=openbsd
184
186
        else
185
187
                with_backend=dummy
186
188
        fi
208
210
AM_CONDITIONAL(BACKEND_TYPE_DUMMY, [test x$with_backend = xdummy])
209
211
AM_CONDITIONAL(BACKEND_TYPE_LINUX, [test x$with_backend = xlinux])
210
212
AM_CONDITIONAL(BACKEND_TYPE_FREEBSD, [test x$with_backend = xfreebsd])
 
213
AM_CONDITIONAL(BACKEND_TYPE_OPENBSD, [test x$with_backend = xopenbsd])
211
214
 
212
215
dnl ---------------------------------------------------------------------------
213
216
dnl - Build self tests
233
236
src/Makefile
234
237
src/dummy/Makefile
235
238
src/freebsd/Makefile
 
239
src/openbsd/Makefile
236
240
src/linux/Makefile
237
241
tools/Makefile
238
242
doc/Makefile