~ubuntu-branches/debian/sid/hal/sid

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-10-23 12:33:58 UTC
  • Revision ID: james.westby@ubuntu.com-20071023123358-xaf8mjc5n84d5gtz
Tags: upstream-0.5.10
ImportĀ upstreamĀ versionĀ 0.5.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#
8
8
 
9
9
AC_PREREQ(2.59c)
10
 
AC_INIT(hal, 0.5.9.1, david@fubar.dk)
11
 
AM_INIT_AUTOMAKE(hal, 0.5.9.1)
12
 
AM_CONFIG_HEADER(config.h)
 
10
AC_INIT(hal, 0.5.10, david@fubar.dk)
 
11
AM_INIT_AUTOMAKE([gnu 1.9])
13
12
AM_MAINTAINER_MODE
14
13
 
15
14
glib_module="glib-2.0 >= 2.6.0 gobject-2.0 > 2.6.0 dbus-glib-1 >= 0.61"
16
15
dbus_module="dbus-1 >= 0.61"
17
 
volume_id_module="libvolume_id >= 0.61"
18
 
polkit_module="polkit >= 0.2"
 
16
volume_id_module="libvolume_id >= 0.77"
 
17
polkit_module="polkit >= 0.5"
19
18
 
20
19
# libtool versioning - this applies to libhal and libhal-storage
21
20
#
30
29
 
31
30
AC_ISC_POSIX
32
31
AC_PROG_CC
33
 
AM_PROG_CC_STDC
34
32
AM_PROG_CC_C_O
35
33
AC_HEADER_STDC
36
 
AM_PROG_LIBTOOL
 
34
AC_PROG_LIBTOOL
37
35
AC_PROG_MAKE_SET
38
36
AC_PROG_LN_S
39
37
AC_SYS_LARGEFILE
40
38
PKG_PROG_PKG_CONFIG
41
39
 
42
 
AM_PATH_PYTHON(, have_python=yes,
43
 
  [have_python=no
44
 
  AC_WARN([No python found. Skipping device-manager.])])
45
 
AM_CONDITIONAL(HAVE_PYTHON, test x$have_python = xyes)
46
 
 
47
40
AC_CHECK_HEADERS([sys/ioccom.h sys/inotify.h])
48
41
 
49
 
AC_ARG_WITH(os-type,     [  --with-os-type=<os>     Distribution or OS (redhat)])
50
 
AC_ARG_WITH(pid-file,    [  --with-pid-file=<file>  PID file for HAL daemon])
51
 
 
52
 
AC_ARG_WITH(hwdata, AC_HELP_STRING([--with-hwdata=<dir>], [Where PCI and USB IDs are found]))
53
 
AC_ARG_WITH(pci-ids, AC_HELP_STRING([--with-pci-ids=<dir>], [Where PCI IDs are found (overrides --with-hwdata)]))
54
 
AC_ARG_WITH(usb-ids, AC_HELP_STRING([--with-usb-ids=<dir>], [Where USB IDs are found (overrides --with-hwdata)]))
55
 
AC_ARG_ENABLE([pci-ids], AC_HELP_STRING([--disable-pci-ids], [Do not build with PCI IDs support]), [enable_pci_ids=$enableval], [enable_pci_ids=yes])
56
 
AC_ARG_ENABLE([usb-ids], AC_HELP_STRING([--disable-usb-ids], [Do not build with USB IDs support]), [enable_usb_ids=$enableval], [enable_usb_ids=yes])
57
 
AC_ARG_ENABLE([pnp-ids], AC_HELP_STRING([--disable-pnp-ids], [Do not build with PNP IDs support]), [enable_pnp_ids=$enableval], [enable_pnp_ids=yes])
58
 
 
59
 
AC_ARG_WITH(socket-dir,[  --with-socket-dir=<dir>  Location of the HAL D-BUS listening sockets (auto)])
60
 
AC_ARG_WITH(socket-dir,[  --with-socket-dir=<dir>  Location of the HAL D-BUS listening sockets (auto)])
 
42
AC_ARG_WITH([os-type],
 
43
            AS_HELP_STRING([--with-os-type=<os>],
 
44
                           [Distribution or OS (redhat)]))
 
45
AC_ARG_WITH([pid-file],
 
46
            AS_HELP_STRING([--with-pid-file=<file>],
 
47
                           [PID file for HAL daemon]))
 
48
 
 
49
AC_ARG_WITH([hwdata],
 
50
            AS_HELP_STRING([--with-hwdata=<dir>],
 
51
                           [Where PCI and USB IDs are found]))
 
52
AC_ARG_WITH([pci-ids],
 
53
            AS_HELP_STRING([--with-pci-ids=<dir>],
 
54
                           [Where PCI IDs are found (overrides --with-hwdata)]))
 
55
AC_ARG_WITH([usb-ids],
 
56
            AS_HELP_STRING([--with-usb-ids=<dir>],
 
57
                           [Where USB IDs are found (overrides --with-hwdata)]))
 
58
 
 
59
AC_ARG_ENABLE([pci-ids],
 
60
              AS_HELP_STRING([--disable-pci-ids],
 
61
                             [Do not build with PCI IDs support]),
 
62
              [enable_pci_ids=$enableval], [enable_pci_ids=yes])
 
63
AC_ARG_ENABLE([usb-ids],
 
64
              AS_HELP_STRING([--disable-usb-ids],
 
65
                             [Do not build with USB IDs support]),
 
66
              [enable_usb_ids=$enableval], [enable_usb_ids=yes])
 
67
AC_ARG_ENABLE([pnp-ids],
 
68
              AS_HELP_STRING([--disable-pnp-ids],
 
69
                             [Do not build with PNP IDs support]),
 
70
              [enable_pnp_ids=$enableval], [enable_pnp_ids=yes])
 
71
 
 
72
AC_ARG_WITH([socket-dir],
 
73
            AS_HELP_STRING([--with-socket-dir=<dir>],
 
74
                           [Location of the HAL D-BUS listening sockets (auto)]))
 
75
 
61
76
if ! test -z "$with_hwdata" ; then
62
77
  PCI_IDS_DIR="$with_hwdata"
63
78
  USB_IDS_DIR="$with_hwdata"
74
89
else
75
90
   if test -z "$PCI_IDS_DIR"; then
76
91
     for dir in /usr/share/hwdata /usr/share/misc /usr/share /var/lib/misc; do
77
 
       AC_CHECK_FILE($dir/pci.ids,PCI_IDS_DIR=$dir)
 
92
       AC_CHECK_FILE([$dir/pci.ids], [PCI_IDS_DIR=$dir])
78
93
     done
79
94
     if test -z "$PCI_IDS_DIR"; then
80
 
       AC_ERROR([cannot find pci.ids. Use --with-pci-ids to specify location])
 
95
       AC_MSG_ERROR([cannot find pci.ids. Use --with-pci-ids to specify location])
81
96
     else
82
 
       AC_WARN([Autodetected pci.ids in $PCI_IDS_DIR])
 
97
       AC_MSG_WARN([autodetected pci.ids in $PCI_IDS_DIR])
83
98
     fi
84
99
   fi
85
100
   USE_PCI_IDS=yes
86
 
   AC_DEFINE(USE_PCI_IDS,1,[Whether pci.ids is to be used])
 
101
   AC_DEFINE([USE_PCI_IDS], [1], [Whether pci.ids is to be used])
87
102
fi
88
103
 
89
104
if test "x$enable_usb_ids" = "xno" ; then
91
106
else 
92
107
   if test -z "$USB_IDS_DIR"; then
93
108
     for dir in /usr/share/hwdata /usr/share/misc /usr/share /var/lib/misc; do
94
 
       AC_CHECK_FILE($dir/usb.ids,USB_IDS_DIR=$dir)
 
109
       AC_CHECK_FILE([$dir/usb.ids], [USB_IDS_DIR=$dir])
95
110
     done
96
111
     if test -z "$USB_IDS_DIR"; then
97
 
       AC_ERROR([cannot find usb.ids. Use --with-usb-ids to specify location])
 
112
       AC_MSG_ERROR([cannot find usb.ids. Use --with-usb-ids to specify location])
98
113
     else
99
 
       AC_WARN([Autodetected usb.ids in $USB_IDS_DIR])
 
114
       AC_MSG_WARN([autodetected usb.ids in $USB_IDS_DIR])
100
115
     fi
101
116
   fi
102
117
   USE_USB_IDS=yes
103
 
   AC_DEFINE(USE_USB_IDS,1,[Whether usb.ids is to be used])
 
118
   AC_DEFINE([USE_USB_IDS], [1], [Whether usb.ids is to be used])
104
119
fi
105
120
 
106
121
if test "x$enable_pnp_ids" = "xno" ; then
107
122
  USE_PNP_IDS=no
108
123
else
109
124
  USE_PNP_IDS=yes
110
 
  AC_DEFINE(USE_PNP_IDS,1,[Whether builtin PNP IDs are to be used])
 
125
  AC_DEFINE([USE_PNP_IDS], [1], [Whether builtin PNP IDs are to be used])
111
126
fi
112
127
 
113
128
AC_SUBST(PCI_IDS_DIR)
117
132
AC_SUBST(USE_PNP_IDS)
118
133
 
119
134
 
120
 
AC_ARG_WITH(hal_user,[  --with-hal-user=<user>  User for running the HAL daemon (haldaemon)])
 
135
AC_ARG_WITH([hal_user],
 
136
            AS_HELP_STRING([--with-hal-user=<user>],
 
137
                           [User for running the HAL daemon (haldaemon)]))
121
138
if test -z "$with_hal_user" ; then
122
139
    HAL_USER=haldaemon
123
140
else
126
143
AC_SUBST(HAL_USER)
127
144
AC_DEFINE_UNQUOTED(HAL_USER,"$HAL_USER", [User for running the HAL daemon])
128
145
 
129
 
AC_ARG_WITH(hal_group,[  --with-hal-group=<grp>  Group for HAL (haldaemon)])
 
146
AC_ARG_WITH([hal_group],
 
147
            AS_HELP_STRING([--with-hal-group=<grp>],
 
148
                           [Group for HAL (haldaemon)]))
130
149
if test -z "$with_hal_group" ; then
131
150
    HAL_GROUP=haldaemon
132
151
else
137
156
 
138
157
 
139
158
# Taken from dbus
140
 
AC_ARG_ENABLE(ansi,             [  --enable-ansi           enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no)
141
 
AC_ARG_ENABLE(verbose-mode,     [  --enable-verbose-mode   support verbose debug mode],enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE)
142
 
AC_ARG_ENABLE(docbook-docs,     [  --enable-docbook-docs   build documentation (requires xmlto)],enable_docbook_docs=$enableval,enable_docbook_docs=no)
143
 
AC_ARG_ENABLE(man-pages,        [  --enable-man-pages      build manual pages],enable_man_pages=$enableval,enable_man_pages=yes)
144
 
AM_CONDITIONAL(MAN_PAGES_ENABLED, test x$enable_man_pages = xyes)
 
159
AC_ARG_ENABLE([ansi],
 
160
              AS_HELP_STRING([--enable-ansi],
 
161
                             [enable -ansi -pedantic gcc flags]),
 
162
              [enable_ansi=$enableval], [enable_ansi=no])
 
163
AC_ARG_ENABLE([verbose-mode],
 
164
              AS_HELP_STRING([--enable-verbose-mode],
 
165
                             [support verbose debug mode]),
 
166
              [enable_verbose_mode=$enableval],
 
167
              [enable_verbose_mode=$USE_MAINTAINER_MODE])
 
168
AC_ARG_ENABLE([docbook-docs],
 
169
              AS_HELP_STRING([--enable-docbook-docs],
 
170
                             [build documentation (requires xmlto)]),
 
171
              [enable_docbook_docs=$enableval], [enable_docbook_docs=no])
 
172
AC_ARG_ENABLE([man-pages],
 
173
              AS_HELP_STRING([--enable-man-pages],
 
174
                             [build manual pages]),
 
175
              [enable_man_pages=$enableval], [enable_man_pages=yes])
 
176
AM_CONDITIONAL(MAN_PAGES_ENABLED, [test x$enable_man_pages = xyes])
145
177
AC_SUBST(MAN_PAGES_ENABLED)
146
178
 
147
179
## eject 
148
 
AC_ARG_WITH(eject,              [  --with-eject=<path>     Specify eject program. (default /usr/bin/eject)])
 
180
AC_ARG_WITH([eject],
 
181
            AS_HELP_STRING([--with-eject=<path>],
 
182
                           [Specify eject program. (default /usr/bin/eject)]))
149
183
if test -z "$with_eject"; then
150
184
  EJECT_PROGRAM=/usr/bin/eject
151
185
else
157
191
GTK_DOC_CHECK([1.3])
158
192
 
159
193
# ACPI event source
160
 
AC_ARG_ENABLE([acpi-acpid], AC_HELP_STRING([--disable-acpi-acpid], [Do not use ACPI daemon event source]), [acpi_acpid=$enableval], [acpi_acpid=yes])
 
194
AC_ARG_ENABLE([acpi-acpid],
 
195
              AS_HELP_STRING([--disable-acpi-acpid],
 
196
                             [Do not use ACPI daemon event source]),
 
197
              [acpi_acpid=$enableval], [acpi_acpid=yes])
161
198
if test "x$acpi_acpid" = "xyes" ; then
162
199
   AC_DEFINE(ACPI_ACPID,1,[Common event source of ACPI events])
163
200
fi
164
201
AC_SUBST(ACPI_ACPID)
165
 
AM_CONDITIONAL(ACPI_ACPID, test x$acpi_acpid != xyes)
 
202
AM_CONDITIONAL(ACPI_ACPID, [test x$acpi_acpid != xyes])
166
203
 
167
 
AC_ARG_ENABLE([acpi-proc], AC_HELP_STRING([--disable-acpi-proc], [Do not use ACPI kernel-interface directly]), [acpi_proc=$enableval], [acpi_proc=yes])
 
204
AC_ARG_ENABLE([acpi-proc],
 
205
              AS_HELP_STRING([--disable-acpi-proc],
 
206
                             [Do not use ACPI kernel-interface directly]),
 
207
              [acpi_proc=$enableval], [acpi_proc=yes])
168
208
if test "x$acpi_proc" = "xyes" ; then
169
209
   AC_DEFINE(ACPI_PROC,1,[Direct kernel connection for ACPI events, the kernel interface is exclusive to one user only])
170
210
fi
171
211
AC_SUBST(ACPI_PROC)
172
 
AM_CONDITIONAL(ACPI_PROC, test x$acpi_proc = xyes)
 
212
AM_CONDITIONAL(ACPI_PROC, [test x$acpi_proc = xyes])
173
213
 
174
 
AC_ARG_ENABLE([acpi-ibm], AC_HELP_STRING([--enable-acpi-ibm], [Forward IBM ACPI events]), [acpi_ibm=$enableval], [acpi_ibm=no])
 
214
AC_ARG_ENABLE([acpi-ibm],
 
215
              AS_HELP_STRING([--enable-acpi-ibm], [Forward IBM ACPI events]),
 
216
              [acpi_ibm=$enableval], [acpi_ibm=no])
175
217
BUILD_ACPI_IBM=no
176
218
if test "x$acpi_ibm" = "xyes" ; then
177
219
  AC_DEFINE(BUILD_ACPI_IBM,1,[catch and forward IBM ACPI hotkey and button events])
178
220
  BUILD_ACPI_IBM=yes
179
221
fi
180
222
AC_SUBST(BUILD_ACPI_IBM)
181
 
AM_CONDITIONAL(BUILD_ACPI_IBM, test x$acpi_ibm = xyes)
 
223
AM_CONDITIONAL(BUILD_ACPI_IBM, [test x$acpi_ibm = xyes])
182
224
 
183
 
AC_ARG_ENABLE([acpi-toshiba], AC_HELP_STRING([--enable-acpi-toshiba], [Forward Toshiba ACPI events]), [acpi_toshiba=$enableval], [acpi_toshiba=no])
 
225
AC_ARG_ENABLE([acpi-toshiba],
 
226
              AS_HELP_STRING([--enable-acpi-toshiba],
 
227
                             [Forward Toshiba ACPI events]),
 
228
              [acpi_toshiba=$enableval], [acpi_toshiba=no])
184
229
BUILD_ACPI_TOSHIBA=no
185
230
if test "x$acpi_toshiba" = "xyes" ; then
186
231
  AC_DEFINE(BUILD_ACPI_TOSHIBA,1,[catch and forward Toshiba ACPI hotkey and button events])
187
232
  BUILD_ACPI_TOSHIBA=yes
188
233
fi
189
234
AC_SUBST(BUILD_ACPI_TOSHIBA)
190
 
AM_CONDITIONAL(BUILD_ACPI_TOSHIBA, test x$acpi_toshiba = xyes)
 
235
AM_CONDITIONAL(BUILD_ACPI_TOSHIBA, [test x$acpi_toshiba = xyes])
191
236
 
192
237
 
193
238
dnl libparted
194
 
AC_ARG_ENABLE([parted], AC_HELP_STRING([--enable-parted], [Use libparted]), [use_parted=$enableval], [use_parted=no])
 
239
AC_ARG_ENABLE([parted],
 
240
              AS_HELP_STRING([--enable-parted], [Use libparted]),
 
241
              [use_parted=$enableval], [use_parted=no])
195
242
if test "x$use_parted" = "xyes" ; then
196
243
   USE_PARTED=yes
197
244
   AC_DEFINE(USE_PARTED,1,[Whether libparted is to be used])
198
245
   AC_CHECK_LIB(uuid, uuid_generate, [], AC_MSG_ERROR([*** uuid library (libuuid) not found]))
199
246
   AC_CHECK_LIB(dl, dlopen,          [], AC_MSG_ERROR([*** dl library (libdl) not found]))
200
 
   AC_MSG_CHECKING([for libparted == 1.7.1, 1.8.0, 1.8.1, 1.8.2, 1.8.6])
 
247
   AC_MSG_CHECKING([for libparted == 1.7.1, 1.8.0, 1.8.1, 1.8.2, 1.8.6, 1.8.7])
201
248
   LDFLAGS=-lparted
202
 
   AC_TRY_RUN(
 
249
   AC_RUN_IFELSE([AC_LANG_SOURCE([[
203
250
   #include <stdio.h>
204
251
   #include <parted/parted.h>
205
252
   int main ()
215
262
            (major == 1 && minor == 8 && micro == 0) ||
216
263
            (major == 1 && minor == 8 && micro == 1) ||
217
264
            (major == 1 && minor == 8 && micro == 2) ||
218
 
            (major == 1 && minor == 8 && micro == 6))
 
265
            (major == 1 && minor == 8 && micro == 6) ||
 
266
            (major == 1 && minor == 8 && micro == 7))
219
267
           return 0;
220
268
 
221
269
        return 1;
222
270
    }
223
 
        ,AC_MSG_RESULT( ),AC_MSG_ERROR([*** Requires libparted == 1.7.1/1.8.0/1.8.1/1.8.2 or 1.8.6]) )
 
271
    ]])], AC_MSG_RESULT([]),
 
272
       AC_MSG_ERROR([*** Requires libparted == 1.7.1/1.8.0/1.8.1/1.8.2/1.8.6 or 1.8.7]))
224
273
    PARTED_LIBS=-lparted
225
274
    AC_SUBST(PARTED_LIBS)
226
275
    LDFLAGS=
228
277
   USE_PARTED=no
229
278
fi
230
279
AC_SUBST(USE_PARTED)
231
 
AM_CONDITIONAL(USE_PARTED, test x$use_parted == xyes)
 
280
AM_CONDITIONAL(USE_PARTED, [test x$use_parted == xyes])
232
281
 
233
282
 
234
283
#### gcc linker flags
317
366
  fi
318
367
fi
319
368
 
320
 
AM_CONDITIONAL(GCOV, test x$enable_gcov = xyes)
 
369
AM_CONDITIONAL(GCOV, [test x$enable_gcov = xyes])
321
370
 
322
371
 
323
372
EXPAT_LIB=""
324
 
AC_ARG_WITH(expat, [  --with-expat=<dir>      Use expat from here],
325
 
                      [
326
 
                      expat=$withval
327
 
                      CPPFLAGS="$CPPFLAGS -I$withval/include"
328
 
                      LDFLAGS="$LDFLAGS -L$withval/lib"
329
 
                      ]
330
 
                      )
331
 
AC_CHECK_HEADERS(expat.h, [AC_DEFINE(HAVE_EXPAT_H)], 
 
373
AC_ARG_WITH([expat],
 
374
            AS_HELP_STRING([--with-expat=<dir>],
 
375
                           [Use expat from here]),
 
376
            [expat=$withval
 
377
             CPPFLAGS="$CPPFLAGS -I$withval/include"
 
378
             LDFLAGS="$LDFLAGS -L$withval/lib"])
 
379
AC_CHECK_HEADERS([expat.h], [AC_DEFINE(HAVE_EXPAT_H)],
332
380
                 [AC_MSG_ERROR([Can't find expat.h. Please install expat.])])
333
 
AC_CHECK_LIB(expat,XML_ParserCreate,[EXPAT_LIB="-lexpat"],
 
381
AC_CHECK_LIB([expat], [XML_ParserCreate], [EXPAT_LIB="-lexpat"],
334
382
             [AC_MSG_ERROR([Can't find expat library. Please install expat.])])
335
383
AC_SUBST(EXPAT_LIB)
336
384
 
337
385
dnl Check libusb
338
 
AC_PATH_PROG(LIBUSB_CONFIG, libusb-config)
339
 
if test -n "${LIBUSB_CONFIG}"; then
340
 
        USE_LIBUSB=yes
341
 
        AM_CONDITIONAL(HAVE_LIBUSB,true)
342
 
else
343
 
        USE_LIBUSB=no
344
 
        AM_CONDITIONAL(HAVE_LIBUSB,false)
 
386
AC_CHECK_HEADERS([usb.h], [USE_LIBUSB=yes], [USE_LIBUSB=no])
 
387
if test "x$USE_LIBUSB" = "xyes"; then
 
388
        AC_CHECK_LIB([usb], [usb_find_devices], [], [USE_LIBUSB=no])
345
389
fi
 
390
AM_CONDITIONAL([HAVE_LIBUSB],[test "x$USE_LIBUSB" = "xyes"])
346
391
 
347
392
dnl Check for libsmbios
348
393
AC_LANG_PUSH([C++])
349
 
AC_CHECK_LIB(smbios, SMBIOSFreeMemory, LIB_SMBIOS=yes , LIB_SMBIOS=no )
 
394
AC_CHECK_LIB([smbios], [SMBIOSFreeMemory], [LIB_SMBIOS=yes], [LIB_SMBIOS=no])
350
395
AC_LANG_POP([C++])
351
396
if test "$LIB_SMBIOS" = "yes" ; then
352
397
   AC_MSG_CHECKING([for libsmbios >= 0.13.4])
353
 
   AC_TRY_RUN(
 
398
   AC_RUN_IFELSE([AC_LANG_SOURCE([[
354
399
   #include <smbios/version.h>
355
400
   int main ()
356
401
   {
365
410
            }
366
411
        }
367
412
        return 1;
368
 
   } , [USE_SMBIOS=yes; AC_MSG_RESULT(yes); AM_CONDITIONAL(HAVE_SMBIOS,true)],
 
413
   }]])], [USE_SMBIOS=yes; AC_MSG_RESULT(yes); AM_CONDITIONAL(HAVE_SMBIOS,true)],
369
414
       [USE_SMBIOS=no; AC_MSG_RESULT(failed); AM_CONDITIONAL(HAVE_SMBIOS,false)])
370
415
else
371
416
  USE_SMBIOS=no
372
 
  AM_CONDITIONAL(HAVE_SMBIOS,false)
 
417
  AM_CONDITIONAL(HAVE_SMBIOS, [false])
373
418
fi
374
419
 
375
420
AC_ARG_WITH([libpci],
376
 
  [AS_HELP_STRING([--without-libpci],
377
 
    [Compile without pci support])],
378
 
  [],
379
 
  [with_libpci=yes])
 
421
            AS_HELP_STRING([--without-libpci], [Compile without pci support]),
 
422
            [], [with_libpci=yes])
380
423
 
381
424
USE_LIBPCI="no"
382
425
if test "x$with_libpci" != xno ; then
383
426
  dnl check for libpci
384
 
  AC_CHECK_HEADERS([pci/pci.h], [AC_CHECK_LIB([pci], [pci_init], [USE_LIBPCI="yes"], , [-lz ]) ])
 
427
  AC_CHECK_HEADERS([pci/pci.h],
 
428
                   [AC_CHECK_LIB([pci], [pci_init], [USE_LIBPCI="yes"], [], [-lz])])
385
429
fi 
386
430
AM_CONDITIONAL([HAVE_LIBPCI], [test "x$USE_LIBPCI" = "xyes"])
387
431
 
388
 
AC_ARG_WITH(backend, [  --with-backend=<name>   backend to use (linux/solaris/freebsd/dummy)], [ backend=$withval ])
 
432
AC_ARG_WITH([backend],
 
433
            AS_HELP_STRING([--with-backend=<name>],
 
434
                           [backend to use (linux/solaris/freebsd/dummy)]),
 
435
            [backend=$withval])
389
436
if ! test -z "$with_backend" ; then
390
437
    HALD_BACKEND="$with_backend"
391
438
else
404
451
                   ;;
405
452
    esac
406
453
fi
407
 
AM_CONDITIONAL(HALD_COMPILE_DUMMY, test x$HALD_BACKEND = xdummy, [Compiling for Dummy backend])
408
 
AM_CONDITIONAL(HALD_COMPILE_LINUX, test x$HALD_BACKEND = xlinux, [Compiling for Linux])
409
 
AM_CONDITIONAL(HALD_COMPILE_FREEBSD, test x$HALD_BACKEND = xfreebsd, [Compiling for FreeBSD])
410
 
AM_CONDITIONAL(HALD_COMPILE_SOLARIS, test x$HALD_BACKEND = xsolaris, [Compiling for Solaris])
 
454
AM_CONDITIONAL(HALD_COMPILE_DUMMY, [test x$HALD_BACKEND = xdummy], [Compiling for Dummy backend])
 
455
AM_CONDITIONAL(HALD_COMPILE_LINUX, [test x$HALD_BACKEND = xlinux], [Compiling for Linux])
 
456
AM_CONDITIONAL(HALD_COMPILE_FREEBSD, [test x$HALD_BACKEND = xfreebsd], [Compiling for FreeBSD])
 
457
AM_CONDITIONAL(HALD_COMPILE_SOLARIS, [test x$HALD_BACKEND = xsolaris], [Compiling for Solaris])
411
458
AC_SUBST(HALD_BACKEND)
412
459
 
413
460
dnl DBUS API is subject to changes
414
 
AC_DEFINE_UNQUOTED(DBUS_API_SUBJECT_TO_CHANGE, ,DBUS API is subject to change)
415
 
 
416
 
# check for PolicyKit
417
 
AM_CONDITIONAL(HAVE_POLKIT, false)
418
 
AC_ARG_ENABLE(policy-kit, [  --enable-policy-kit     Use PolicyKit],enable_policy_kit=$enableval,enable_policy_kit=no)
419
 
msg_polkit=no
420
 
if test "x$enable_policy_kit" != "xno"; then
421
 
        PKG_CHECK_MODULES(POLKIT, polkit >= 0.2,
422
 
                        [AM_CONDITIONAL(HAVE_POLKIT, true)
423
 
                        AC_DEFINE(HAVE_POLKIT, [], [Set if we use PolicyKit])]
424
 
                        msg_polkit=yes,
425
 
                        [AM_CONDITIONAL(HAVE_POLKIT, false)])
426
 
        AC_SUBST(POLKIT_CFLAGS)
427
 
        AC_SUBST(POLKIT_LIBS)
428
 
        if test "x$msg_polkit" != "xyes"; then
429
 
           AC_MSG_ERROR([PolicyKit not explicitly disabled and no PolicyKit found])
430
 
        fi
431
 
fi
 
461
AC_DEFINE_UNQUOTED(DBUS_API_SUBJECT_TO_CHANGE, [], [DBUS API is subject to change])
432
462
 
433
463
# check for ConsoleKit
434
464
AM_CONDITIONAL(HAVE_CONKIT, false)
440
470
   msg_conkit=yes
441
471
fi
442
472
 
 
473
AC_PATH_PROG(GPERF, [gperf], [no])
 
474
AC_MSG_CHECKING([whether to rebuild gperf header files])
 
475
if test x$GPERF = xno ; then
 
476
    have_gperf=no
 
477
else
 
478
    have_gperf=yes
 
479
fi
 
480
AC_SUBST(HAVE_GPERF)
 
481
AM_CONDITIONAL(HAVE_GPERF, [test x$have_gperf = xyes])
 
482
 
 
483
AC_ARG_WITH([keymaps], AS_HELP_STRING([--with-keymaps], [Re-map multimedia keys (auto)]))
 
484
BUILD_KEYMAPS=no
 
485
if test "x$with_keymaps" = "xyes"; then
 
486
   if test "x$have_gperf" = "xyes"; then
 
487
      BUILD_KEYMAPS=yes
 
488
   else
 
489
      BUILD_KEYMAPS=no
 
490
   fi
 
491
elif test "x$with_keymaps" = "x" ; then
 
492
  case "${HALD_BACKEND}" in
 
493
    linux)
 
494
      if test "x$have_gperf" = "xyes"; then
 
495
        BUILD_KEYMAPS=yes
 
496
      else
 
497
        BUILD_KEYMAPS=no
 
498
      fi
 
499
      ;;
 
500
    *)
 
501
      ;;
 
502
  esac
 
503
fi
 
504
AM_CONDITIONAL(BUILD_KEYMAPS, [test x$BUILD_KEYMAPS = xyes])
 
505
 
 
506
# check for PolicyKit
 
507
AM_CONDITIONAL(HAVE_POLKIT, [false])
 
508
AC_ARG_ENABLE([policy-kit],
 
509
              AS_HELP_STRING([--enable-policy-kit], [Use PolicyKit]),
 
510
              [enable_policy_kit=$enableval], [enable_policy_kit=no])
 
511
msg_polkit=no
 
512
if test "x$enable_policy_kit" != "xno"; then
 
513
   if test "x$enable_console_kit" = "xno"; then
 
514
      AC_MSG_ERROR([PolicyKit support requires building with ConsoleKit support too])
 
515
   fi
 
516
   PKG_CHECK_MODULES([POLKIT], [$polkit_module],
 
517
                        [AM_CONDITIONAL(HAVE_POLKIT, [true])
 
518
                         AC_DEFINE(HAVE_POLKIT, [], [Set if we use PolicyKit])]
 
519
                        [msg_polkit=yes],
 
520
                        [AM_CONDITIONAL(HAVE_POLKIT, [false])])
 
521
   AC_SUBST(POLKIT_CFLAGS)
 
522
   AC_SUBST(POLKIT_LIBS)
 
523
   if test "x$msg_polkit" != "xyes"; then
 
524
      AC_MSG_ERROR([PolicyKit not explicitly disabled and no PolicyKit found])
 
525
   fi
 
526
 
 
527
   AC_CHECK_PROG([POLKIT_POLICY_FILE_VALIDATE],
 
528
                 [polkit-policy-file-validate], [polkit-policy-file-validate])
 
529
   if test -z "$POLKIT_POLICY_FILE_VALIDATE"; then
 
530
      AC_MSG_ERROR([polkit-policy-file-validate not found])
 
531
   fi
 
532
fi
 
533
 
443
534
# check for ACL handling
444
 
AM_CONDITIONAL(HAVE_ACLMGMT, false)
445
 
AC_ARG_ENABLE(acl-management, [  --enable-acl-management ACL management],enable_acl_management=$enableval,enable_acl_management=no)
 
535
AM_CONDITIONAL(HAVE_ACLMGMT, [false])
 
536
AC_ARG_ENABLE([acl-management],
 
537
              AS_HELP_STRING([--enable-acl-management], [ACL management]),
 
538
              [enable_acl_management=$enableval],
 
539
              [enable_acl_management=no])
446
540
msg_aclmgmt=no
447
541
if test "x$enable_acl_management" != "xno"; then
448
 
   AM_CONDITIONAL(HAVE_ACLMGMT, true)
 
542
   if test "x$enable_policy_kit" = "xno"; then
 
543
      AC_MSG_ERROR([ACL management support requires building with PolicyKit support])
 
544
   fi
 
545
   AM_CONDITIONAL(HAVE_ACLMGMT, [true])
449
546
   AC_DEFINE(HAVE_ACLMGMT, [], [Set if we manage ACL's])
450
547
   msg_aclmgmt=yes
451
548
fi
452
549
 
453
550
# check for umount.hal
454
 
AM_CONDITIONAL(HAVE_UMOUNT_HAL, false)
455
 
AC_ARG_ENABLE(umount-helper,  [  --enable-umount-helper  Provide umount.hal helper],enable_umount_hal=$enableval,enable_umount_hal=no)
 
551
AM_CONDITIONAL(HAVE_UMOUNT_HAL, [false])
 
552
AC_ARG_ENABLE([umount-helper],
 
553
              AS_HELP_STRING([--enable-umount-helper],
 
554
                             [Provide umount.hal helper]),
 
555
              [enable_umount_hal=$enableval], [enable_umount_hal=no])
456
556
msg_umount_hal=no
457
557
if test "x$enable_umount_hal" != "xno"; then
458
 
   AM_CONDITIONAL(HAVE_UMOUNT_HAL, true)
459
 
   AC_DEFINE(HAVE_UMOUNT_HAL, [], [Set if we should provide and use the /sbin/umount.hal helper ])
 
558
   AM_CONDITIONAL(HAVE_UMOUNT_HAL, [true])
 
559
   AC_DEFINE(HAVE_UMOUNT_HAL, [],
 
560
             [Set if we should provide and use the /sbin/umount.hal helper])
460
561
   msg_umount_hal=yes
461
562
fi
462
563
 
463
564
# what extra hotplug backends to use (ACPI, APM, PMU etc)
464
 
AC_ARG_ENABLE(have_acpi, [  --disable-acpi          Build without ACPI support])
 
565
AC_ARG_ENABLE([have_acpi],
 
566
              AS_HELP_STRING([--disable-acpi], [Build without ACPI support]))
465
567
msg_acpi=no
466
568
if test "x$enable_acpi" != "xno"; then
467
569
        msg_acpi=yes
468
570
        AC_DEFINE(HAVE_ACPI, [], [Set if we have ACPI support])
469
571
fi
470
 
AM_CONDITIONAL(HAVE_ACPI, test x$msg_acpi = xyes, [Compiling ACPI])
471
 
AC_ARG_ENABLE(have_apm, [  --disable-apm           Build without APM support])
 
572
AM_CONDITIONAL(HAVE_ACPI, [test x$msg_acpi = xyes], [Compiling ACPI])
 
573
AC_ARG_ENABLE([have_apm],
 
574
              AS_HELP_STRING([--disable-apm], [Build without APM support]))
472
575
msg_apm=no
473
576
if test "x$enable_apm" != "xno"; then
474
577
        msg_apm=yes
475
578
        AC_DEFINE(HAVE_APM, [], [Set if we have APM support])
476
579
fi
477
 
AM_CONDITIONAL(HAVE_APM, test x$msg_apm = xyes, [Compiling APM])
478
 
AC_ARG_ENABLE(have_pmu, [  --disable-pmu           Build without PMU support])
 
580
AM_CONDITIONAL(HAVE_APM, [test x$msg_apm = xyes], [Compiling APM])
 
581
AC_ARG_ENABLE([have_pmu],
 
582
              AS_HELP_STRING([--disable-pmu], [Build without PMU support]))
479
583
msg_pmu=no
480
584
if test "x$enable_pmu" != "xno"; then
481
585
        msg_pmu=yes
482
586
        AC_DEFINE(HAVE_PMU, [], [Set if we have PMU support])
483
587
fi
484
 
AM_CONDITIONAL(HAVE_PMU, test x$msg_pmu = xyes, [Compiling PMU])
 
588
AM_CONDITIONAL(HAVE_PMU, [test x$msg_pmu = xyes], [Compiling PMU])
485
589
 
486
 
AC_ARG_ENABLE(have_pci, [  --disable-pci           Build without PCI support])
 
590
AC_ARG_ENABLE([have_pci],
 
591
              AS_HELP_STRING([--disable-pci], [Build without PCI support]))
487
592
msg_pci=no
488
593
if test "x$enable_pci" != "xno"; then
489
594
        msg_pci=yes
519
624
esac
520
625
 
521
626
# Check for BLKGETSIZE64
522
 
AC_CHECK_TYPE(pgoff_t, ,
523
 
              [AC_DEFINE(pgoff_t, unsigned long, [Index into the pagecache])],
524
 
               /usr/include/sys/types.h)
 
627
AC_CHECK_TYPE([pgoff_t], [],
 
628
              [AC_DEFINE([pgoff_t], [unsigned long], [Index into the pagecache])],
 
629
              [/usr/include/sys/types.h])
525
630
AC_MSG_CHECKING([for BLKGETSIZE64])
526
 
AC_TRY_COMPILE(
527
 
[#include <sys/types.h>
 
631
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 
632
#include <sys/types.h>
528
633
#include <linux/ioctl.h>
529
 
#include <linux/fs.h>],
530
 
[int main(int argc, char *argv[])
 
634
#include <linux/fs.h>
 
635
]],
 
636
[[int main(int argc, char *argv[])
531
637
{
532
638
        int fd = 0;
533
639
        unsigned long long int n;
534
640
        ioctl (fd, BLKGETSIZE64, &n);
535
641
        return 0;
536
642
}
537
 
], have_size64=yes, have_size64=no)
538
 
AC_MSG_RESULT($have_size64)
 
643
]])], [have_size64=yes], [have_size64=no])
 
644
AC_MSG_RESULT([$have_size64])
539
645
if test x$have_size64 = xno; then
540
646
  case "$host" in
541
647
        *-*-linux*)
553
659
 
554
660
# DocBook Documentation
555
661
 
556
 
AC_PATH_PROG(XMLTO, xmlto, no)
 
662
AC_PATH_PROG(XMLTO, [xmlto], [no])
557
663
AC_MSG_CHECKING([whether to build DocBook documentation])
558
664
 
559
665
if test x$XMLTO = xno ; then
562
668
    have_xmlto=yes
563
669
fi
564
670
 
565
 
AC_PATH_PROG(XMLLINT, xmllint, no)
 
671
AC_PATH_PROG(XMLLINT, [xmllint], [no])
566
672
 
567
673
if test x$XMLLINT = xno ; then
568
674
    have_xmllint=no
587
693
    fi
588
694
fi
589
695
 
590
 
AM_CONDITIONAL(DOCBOOK_DOCS_ENABLED, test x$enable_docbook_docs = xyes)
 
696
AM_CONDITIONAL(DOCBOOK_DOCS_ENABLED, [test x$enable_docbook_docs = xyes])
591
697
AC_MSG_RESULT(yes)
592
698
 
593
699
 
594
 
AC_ARG_WITH(dbus-sys, [  --with-dbus-sys=<dir>   where D-BUS system.d directory is])
 
700
AC_ARG_WITH([dbus-sys],
 
701
            AS_HELP_STRING([--with-dbus-sys=<dir>],
 
702
                           [where D-BUS system.d directory is]))
595
703
 
596
704
if ! test -z "$with_dbus_sys" ; then
597
705
    DBUS_SYS_DIR="$with_dbus_sys"
617
725
fi
618
726
 
619
727
# (distro-tweaks required)
620
 
AM_CONDITIONAL(OS_TYPE_UNKNOWN, test x$with_os_type = xunknown, [Running on unknown OS])
621
 
AM_CONDITIONAL(OS_TYPE_RED_HAT, test x$with_os_type = xredhat, [Running on Red Hat OS'es])
 
728
AM_CONDITIONAL(OS_TYPE_UNKNOWN, [test x$with_os_type = xunknown], [Running on unknown OS])
 
729
AM_CONDITIONAL(OS_TYPE_RED_HAT, [test x$with_os_type = xredhat], [Running on Red Hat OS'es])
622
730
 
623
731
#### Set up the pid file (distro-tweaks required)
624
732
if ! test -z "$with_pid_file"; then
639
747
 
640
748
AC_SUBST(HALD_SOCKET_DIR)
641
749
 
642
 
 
643
 
ALL_LINGUAS="ca cs da de el es et eu fi fr hu it ja km ko lt nb nl pa pl pt_BR pt ru sl_SI sv tr uk zh_CN zh_TW"
644
 
AC_SUBST(ALL_LINGUAS)
645
 
 
646
 
GETTEXT_PACKAGE=AC_PACKAGE_NAME
647
 
AC_SUBST(GETTEXT_PACKAGE)
648
 
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext package])
649
 
 
650
 
AC_PROG_INTLTOOL([0.22])
651
 
AM_GLIB_GNU_GETTEXT
652
 
 
653
750
dnl
654
751
dnl SUBSETTING START
655
752
dnl
656
753
 
657
754
dnl macbookpro utils
658
 
AC_ARG_WITH(macbookpro,     [  --with-macbookpro       Whether to build Macbook Pro utils (auto)])
 
755
AC_ARG_WITH([macbookpro],
 
756
            AS_HELP_STRING([--with-macbookpro],
 
757
                           [Whether to build Macbook Pro utils (auto)]))
659
758
BUILD_MACBOOKPRO=no
660
759
if test "x$with_macbookpro" = "xyes" ; then
661
760
   BUILD_MACBOOKPRO=yes
664
763
    case "${HALD_BACKEND}" in
665
764
      linux)
666
765
        case "${host}" in
667
 
          i[[3456]]86-*-*)
 
766
          i[[3456]]86-*-*|x86_64-*-*)
668
767
            BUILD_MACBOOKPRO=yes
669
768
            ;;
670
769
          *)
676
775
    esac
677
776
   fi
678
777
fi
679
 
AM_CONDITIONAL(BUILD_MACBOOKPRO, test x$BUILD_MACBOOKPRO = xyes)
 
778
AM_CONDITIONAL(BUILD_MACBOOKPRO, [test x$BUILD_MACBOOKPRO = xyes])
680
779
 
681
780
dnl macbook backlight support
682
 
AC_ARG_WITH(macbook,     [  --with-macbook          Include support for Macbook backlight (auto)])
 
781
AC_ARG_WITH([macbook],
 
782
            AS_HELP_STRING([--with-macbook],
 
783
                           [Include support for Macbook backlight (auto)]))
683
784
BUILD_MACBOOK=no
684
785
if test "x$with_macbook" = "xyes" ; then
685
786
   BUILD_MACBOOK=yes
688
789
    case "${HALD_BACKEND}" in
689
790
      linux)
690
791
        case "${host}" in
691
 
          i[[3456]]86-*-*)
 
792
          i[[3456]]86-*-*|x86_64-*-*)
692
793
            BUILD_MACBOOK=yes
693
794
            ;;
694
795
          *)
700
801
    esac
701
802
   fi
702
803
fi
703
 
AM_CONDITIONAL(BUILD_MACBOOK, test x$BUILD_MACBOOK = xyes)
 
804
AM_CONDITIONAL(BUILD_MACBOOK, [test x$BUILD_MACBOOK = xyes])
704
805
 
705
806
AC_ARG_WITH([omap],
706
 
            [AS_HELP_STRING([--with-omap],
707
 
                            [Whether to build OMAP utils (auto)])])
 
807
            AS_HELP_STRING([--with-omap],
 
808
                           [Whether to build OMAP utils (auto)]))
708
809
BUILD_OMAP=no
709
810
if test "x$with_omap" = "xyes" ; then
710
811
    BUILD_OMAP=yes
726
827
AM_CONDITIONAL(BUILD_OMAP, [test x$BUILD_OMAP = xyes])
727
828
 
728
829
dnl cpufreq
729
 
AC_ARG_WITH(cpufreq,        [  --with-cpufreq          Whether to build cpufreq utils (auto)])
 
830
AC_ARG_WITH([cpufreq],
 
831
            AS_HELP_STRING([--with-cpufreq],
 
832
                           [Whether to build cpufreq utils (auto)]))
730
833
BUILD_CPUFREQ=no
731
834
if test "x$with_cpufreq" = "xyes" ; then
732
835
   BUILD_CPUFREQ=yes
739
842
      ;;
740
843
  esac
741
844
fi
742
 
AM_CONDITIONAL(BUILD_CPUFREQ, test x$BUILD_CPUFREQ = xyes)
 
845
AM_CONDITIONAL(BUILD_CPUFREQ, [test x$BUILD_CPUFREQ = xyes])
743
846
 
744
847
dnl USB CSR (for reading battery of USB wireless mice)
745
 
AC_ARG_WITH(usb-csr,        [  --with-usb-csr          Whether to build addon for wireless USB mice (auto)])
 
848
AC_ARG_WITH([usb-csr],
 
849
            AS_HELP_STRING([--with-usb-csr],
 
850
                           [Whether to build addon for wireless USB mice (auto)]))
746
851
BUILD_USBCSR=no
747
852
if test "x${USE_LIBUSB}" == "xyes" ; then
748
853
   if test "x$with_usb_csr" = "xyes" ; then
754
859
      fi
755
860
   fi
756
861
fi
757
 
AM_CONDITIONAL(BUILD_USBCSR, test x$BUILD_USBCSR = xyes)
 
862
AM_CONDITIONAL(BUILD_USBCSR, [test x$BUILD_USBCSR = xyes])
758
863
 
759
864
dnl Dell backlight 
760
 
AC_ARG_WITH(dell-backlight,     [  --with-dell-backlight   Whether to build Dell backlight support (auto)])
 
865
AC_ARG_WITH([dell-backlight],
 
866
            AS_HELP_STRING([--with-dell-backlight],
 
867
                           [Whether to build Dell backlight support (auto)]))
761
868
BUILD_DELL=no
762
869
if test "x$with_dell_backlight" = "xyes" ; then
763
870
   BUILD_DELL=yes
778
885
    esac
779
886
   fi
780
887
fi
781
 
AM_CONDITIONAL(BUILD_DELL, test x$BUILD_DELL = xyes)
 
888
AM_CONDITIONAL(BUILD_DELL, [test x$BUILD_DELL = xyes])
782
889
 
783
890
dnl Sony PIC support
784
891
AC_ARG_ENABLE(sonypic,
785
 
                AC_HELP_STRING([--enable-sonypic],[Build with Sony PIC support]),
786
 
                [case "${enableval}" in
787
 
                yes) ENABLE_SONYPIC=yes ;;
788
 
                no) ENABLE_SONYPIC=no ;;
789
 
                *) AC_MSG_ERROR(bad value ${enableval} for --enable-sonypic) ;;
790
 
                esac],
791
 
                [ENABLE_SONYPIC=auto]) dnl Default value
 
892
              AS_HELP_STRING([--enable-sonypic], [Build with Sony PIC support]),
 
893
              [case "${enableval}" in
 
894
               yes) ENABLE_SONYPIC=yes ;;
 
895
               no) ENABLE_SONYPIC=no ;;
 
896
               *) AC_MSG_ERROR([bad value ${enableval} for --enable-sonypic]) ;;
 
897
               esac
 
898
              ], [ENABLE_SONYPIC=auto]) dnl Default value
792
899
 
793
900
have_sonypic=no
794
901
if test x$ENABLE_SONYPIC != "xno" ; then
797
904
                int main(int argc,char **argv) {
798
905
                        return 0;
799
906
                }
800
 
        ],
801
 
        have_sonypic=yes
802
 
        )
 
907
        ], [have_sonypic=yes])
803
908
        AC_MSG_CHECKING([for Sony PIC headers])
804
909
        AC_MSG_RESULT([$have_sonypic])
805
910
 
811
916
        AC_DEFINE(HAVE_SONYPIC, 1, [Set if we have Sony PIC support])
812
917
fi
813
918
msg_sonypic=$have_sonypic
814
 
AM_CONDITIONAL(HAVE_SONYPIC, test x$msg_sonypic = xyes, [Compiling Sony PIC])
 
919
AM_CONDITIONAL(HAVE_SONYPIC, [test x$msg_sonypic = xyes], [Compiling Sony PIC])
815
920
 
816
921
dnl
817
922
dnl SUBSETTING END
818
923
dnl
819
924
 
 
925
AC_CONFIG_HEADERS([config.h])
820
926
 
821
 
AC_OUTPUT([
 
927
AC_CONFIG_FILES([
822
928
hal.pc
823
929
hal-storage.pc
824
930
hal.conf
841
947
tools/Makefile
842
948
tools/freebsd/Makefile
843
949
tools/linux/Makefile
844
 
tools/device-manager/Makefile
845
950
partutil/Makefile
846
 
privileges/Makefile
 
951
policy/Makefile
847
952
fdi/Makefile
848
953
fdi/information/Makefile
849
954
fdi/information/10freedesktop/Makefile
863
968
doc/spec/Makefile
864
969
doc/spec/hal-spec.xml.in
865
970
doc/man/Makefile
866
 
po/Makefile.in
867
971
])
868
972
 
 
973
AC_OUTPUT
 
974
 
869
975
dnl ==========================================================================
870
976
echo "
871
977
                    HAL $VERSION
903
1009
        use libusb:                  ${USE_LIBUSB}
904
1010
        use libpci:                  ${USE_LIBPCI}
905
1011
        use libparted:               ${USE_PARTED}
 
1012
        use gperf:                   ${have_gperf}
906
1013
        use PolicyKit:               ${msg_polkit}
907
1014
        use ConsoleKit:              ${msg_conkit}
908
1015
        use ACL management:          ${msg_aclmgmt}
912
1019
        use APM:                     ${msg_apm}
913
1020
        use Sony PIC:                ${msg_sonypic}
914
1021
 
915
 
        Device Manager:              ${have_python}
916
1022
        Macbook backlight support:   ${BUILD_MACBOOK} (Linux only, x86 only, requires libpci)
917
1023
        Macbook Pro utils:           ${BUILD_MACBOOKPRO} (Linux only, x86 only, requires libpci)
918
1024
        OMAP utils:                  ${BUILD_OMAP} (Linux only, arm only)
919
1025
        CPU frequency scaling:       ${BUILD_CPUFREQ} (Linux only)
 
1026
        Re-map multimedia keys:      ${BUILD_KEYMAPS} (Linux only, requires gperf)
920
1027
        Forward IBM ACPI events:     ${BUILD_ACPI_IBM} (Linux only)
921
1028
        Forward Toshiba ACPI events: ${BUILD_ACPI_TOSHIBA} (Linux only)
922
1029
        USB wireless mouse power:    ${BUILD_USBCSR} (Linux only, requires libusb)