2004-08-13 00:03:09 +08:00
|
|
|
AC_DEFUN([AC_PROG_CC_PIE], [
|
|
|
|
AC_CACHE_CHECK([whether ${CC-cc} accepts -fPIE], ac_cv_prog_cc_pie, [
|
|
|
|
echo 'void f(){}' > conftest.c
|
|
|
|
if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
|
|
|
|
ac_cv_prog_cc_pie=yes
|
|
|
|
else
|
|
|
|
ac_cv_prog_cc_pie=no
|
|
|
|
fi
|
|
|
|
rm -rf conftest*
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
2006-08-16 18:54:06 +08:00
|
|
|
AC_DEFUN([AC_FUNC_PPOLL], [
|
|
|
|
AC_CHECK_FUNC(ppoll, dummy=yes, AC_DEFINE(NEED_PPOLL, 1, [Define to 1 if you need the ppoll() function.]))
|
|
|
|
])
|
|
|
|
|
2004-08-13 00:03:09 +08:00
|
|
|
AC_DEFUN([AC_INIT_BLUEZ], [
|
2005-10-30 06:36:31 +08:00
|
|
|
AC_PREFIX_DEFAULT(/usr/local)
|
2004-04-03 14:20:54 +08:00
|
|
|
|
2004-08-13 20:35:22 +08:00
|
|
|
if (test "${CFLAGS}" = ""); then
|
|
|
|
CFLAGS="-Wall -O2"
|
|
|
|
fi
|
2004-08-13 00:03:09 +08:00
|
|
|
|
2004-07-22 00:19:39 +08:00
|
|
|
if (test "${prefix}" = "NONE"); then
|
2004-04-03 14:20:54 +08:00
|
|
|
dnl no prefix and no sysconfdir, so default to /etc
|
2004-08-09 15:57:44 +08:00
|
|
|
if (test "$sysconfdir" = '${prefix}/etc'); then
|
2004-04-03 14:20:54 +08:00
|
|
|
AC_SUBST([sysconfdir], ['/etc'])
|
|
|
|
fi
|
|
|
|
|
2005-04-22 04:18:09 +08:00
|
|
|
dnl no prefix and no localstatedir, so default to /var
|
|
|
|
if (test "$localstatedir" = '${prefix}/var'); then
|
|
|
|
AC_SUBST([localstatedir], ['/var'])
|
|
|
|
fi
|
|
|
|
|
2006-08-10 19:08:49 +08:00
|
|
|
dnl no prefix and no libexecdir, so default to /lib
|
2006-08-10 19:22:12 +08:00
|
|
|
if (test "$libexecdir" = '${exec_prefix}/libexec'); then
|
2006-08-10 19:08:49 +08:00
|
|
|
AC_SUBST([libexecdir], ['/lib'])
|
|
|
|
fi
|
|
|
|
|
2004-04-03 14:20:54 +08:00
|
|
|
dnl no prefix and no mandir, so use ${prefix}/share/man as default
|
2004-08-09 15:57:44 +08:00
|
|
|
if (test "$mandir" = '${prefix}/man'); then
|
2004-04-03 14:20:54 +08:00
|
|
|
AC_SUBST([mandir], ['${prefix}/share/man'])
|
|
|
|
fi
|
2004-05-02 11:36:18 +08:00
|
|
|
|
2004-07-21 23:24:22 +08:00
|
|
|
prefix="${ac_default_prefix}"
|
2004-04-03 14:20:54 +08:00
|
|
|
fi
|
2004-07-23 02:20:30 +08:00
|
|
|
|
2004-08-09 15:57:44 +08:00
|
|
|
if (test "${libdir}" = '${exec_prefix}/lib'); then
|
2004-07-23 02:20:30 +08:00
|
|
|
libdir="${prefix}/lib"
|
|
|
|
fi
|
2004-08-09 15:57:44 +08:00
|
|
|
|
|
|
|
if (test "$sysconfdir" = '${prefix}/etc'); then
|
|
|
|
configdir="${prefix}/etc/bluetooth"
|
|
|
|
else
|
|
|
|
configdir="${sysconfdir}/bluetooth"
|
|
|
|
fi
|
|
|
|
|
2005-04-22 04:18:09 +08:00
|
|
|
if (test "$localstatedir" = '${prefix}/var'); then
|
|
|
|
storagedir="${prefix}/var/lib/bluetooth"
|
|
|
|
else
|
|
|
|
storagedir="${localstatedir}/lib/bluetooth"
|
|
|
|
fi
|
|
|
|
|
2007-01-20 06:04:38 +08:00
|
|
|
servicedir="${libdir}/bluetooth"
|
|
|
|
|
2004-08-09 15:57:44 +08:00
|
|
|
AC_DEFINE_UNQUOTED(CONFIGDIR, "${configdir}", [Directory for the configuration files])
|
2005-04-22 04:18:09 +08:00
|
|
|
AC_DEFINE_UNQUOTED(STORAGEDIR, "${storagedir}", [Directory for the storage files])
|
2007-01-20 06:04:38 +08:00
|
|
|
AC_DEFINE_UNQUOTED(SERVICEDIR, "${servicedir}", [Directory for the service programs])
|
2004-04-03 14:20:54 +08:00
|
|
|
])
|
|
|
|
|
2004-07-15 00:52:07 +08:00
|
|
|
AC_DEFUN([AC_PATH_BLUEZ], [
|
2006-06-06 08:01:47 +08:00
|
|
|
PKG_CHECK_MODULES(BLUEZ, bluez, dummy=yes, AC_MSG_ERROR(Bluetooth library is required))
|
2004-07-21 23:24:22 +08:00
|
|
|
AC_SUBST(BLUEZ_CFLAGS)
|
2004-04-03 14:04:35 +08:00
|
|
|
AC_SUBST(BLUEZ_LIBS)
|
2002-03-09 05:12:35 +08:00
|
|
|
])
|
2004-04-03 16:01:04 +08:00
|
|
|
|
2007-01-18 07:26:05 +08:00
|
|
|
AC_DEFUN([AC_PATH_GLIB], [
|
|
|
|
PKG_CHECK_MODULES(GLIB, glib-2.0, glib_found=yes, glib_found=no)
|
|
|
|
AC_SUBST(GLIB_CFLAGS)
|
|
|
|
AC_SUBST(GLIB_LIBS)
|
|
|
|
])
|
|
|
|
|
2005-09-10 09:23:19 +08:00
|
|
|
AC_DEFUN([AC_PATH_DBUS], [
|
2006-06-20 16:32:27 +08:00
|
|
|
PKG_CHECK_MODULES(DBUS, dbus-1 > 0.35, dummy=yes, AC_MSG_ERROR(dbus > 0.35 is required))
|
2007-01-23 15:47:57 +08:00
|
|
|
m4_ifdef([PKG_CHECK_EXISTS], [
|
|
|
|
PKG_CHECK_EXISTS(dbus-1 < 0.95, DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE")
|
|
|
|
if (test "${glib_found}" = "yes"); then
|
|
|
|
PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 > 0.60, dbus_glib_found=yes, dbus_glib_found=no)
|
|
|
|
else
|
|
|
|
dbus_glib_found=no
|
|
|
|
fi
|
|
|
|
], [
|
|
|
|
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
|
2007-01-18 07:26:05 +08:00
|
|
|
dbus_glib_found=no
|
2007-01-23 15:47:57 +08:00
|
|
|
])
|
2005-09-10 09:23:19 +08:00
|
|
|
AC_SUBST(DBUS_CFLAGS)
|
|
|
|
AC_SUBST(DBUS_LIBS)
|
|
|
|
])
|
|
|
|
|
2006-04-28 23:11:18 +08:00
|
|
|
AC_DEFUN([AC_PATH_OPENOBEX], [
|
2007-01-15 18:47:30 +08:00
|
|
|
PKG_CHECK_MODULES(OPENOBEX, openobex > 1.1, openobex_found=yes, openobex_found=no)
|
2006-04-28 23:11:18 +08:00
|
|
|
AC_SUBST(OPENOBEX_CFLAGS)
|
|
|
|
AC_SUBST(OPENOBEX_LIBS)
|
|
|
|
])
|
|
|
|
|
2006-11-08 02:42:40 +08:00
|
|
|
AC_DEFUN([AC_PATH_OPENSYNC], [
|
2007-01-15 18:47:30 +08:00
|
|
|
PKG_CHECK_MODULES(OPENSYNC, glib-2.0 opensync-1.0 osengine-1.0, opensync_found=yes, opensync_found=no)
|
2006-11-08 02:42:40 +08:00
|
|
|
AC_SUBST(OPENSYNC_CFLAGS)
|
|
|
|
AC_SUBST(OPENSYNC_LIBS)
|
|
|
|
])
|
|
|
|
|
2006-11-10 04:12:45 +08:00
|
|
|
AC_DEFUN([AC_PATH_GSTREAMER], [
|
2007-01-15 18:47:30 +08:00
|
|
|
PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10, gstreamer_found=yes, gstreamer_found=no)
|
2006-11-10 04:12:45 +08:00
|
|
|
AC_SUBST(GSTREAMER_CFLAGS)
|
|
|
|
AC_SUBST(GSTREAMER_LIBS)
|
2007-08-22 22:09:24 +08:00
|
|
|
GSTREAMER_PLUGINSDIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-0.10`
|
|
|
|
AC_SUBST(GSTREAMER_PLUGINSDIR)
|
2006-11-10 04:12:45 +08:00
|
|
|
])
|
|
|
|
|
2004-11-12 02:22:27 +08:00
|
|
|
AC_DEFUN([AC_PATH_ALSA], [
|
2007-01-15 18:47:30 +08:00
|
|
|
PKG_CHECK_MODULES(ALSA, alsa, alsa_found=yes, alsa_found=no)
|
2004-11-12 02:22:27 +08:00
|
|
|
AC_SUBST(ALSA_CFLAGS)
|
|
|
|
AC_SUBST(ALSA_LIBS)
|
|
|
|
])
|
|
|
|
|
2007-03-20 03:27:28 +08:00
|
|
|
AC_DEFUN([AC_PATH_HAL], [
|
|
|
|
PKG_CHECK_MODULES(HAL, hal >= 0.5.8, hal_found=yes, hal_found=no)
|
|
|
|
AC_SUBST(HAL_CFLAGS)
|
|
|
|
AC_SUBST(HAL_LIBS)
|
|
|
|
])
|
|
|
|
|
2004-07-20 23:35:20 +08:00
|
|
|
AC_DEFUN([AC_PATH_USB], [
|
2007-01-15 18:47:30 +08:00
|
|
|
PKG_CHECK_MODULES(USB, libusb, usb_found=yes, usb_found=no)
|
2004-07-21 23:24:22 +08:00
|
|
|
AC_SUBST(USB_CFLAGS)
|
2004-07-16 02:29:31 +08:00
|
|
|
AC_SUBST(USB_LIBS)
|
2006-11-13 15:17:40 +08:00
|
|
|
AC_CHECK_LIB(usb, usb_get_busses, dummy=yes,
|
|
|
|
AC_DEFINE(NEED_USB_GET_BUSSES, 1, [Define to 1 if you need the usb_get_busses() function.]))
|
|
|
|
AC_CHECK_LIB(usb, usb_interrupt_read, dummy=yes,
|
|
|
|
AC_DEFINE(NEED_USB_INTERRUPT_READ, 1, [Define to 1 if you need the usb_interrupt_read() function.]))
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([AC_PATH_EXPAT], [
|
|
|
|
AC_CHECK_LIB(expat, XML_ParserCreate_MM, expat_found=yes, expat_found=no)
|
|
|
|
AC_CHECK_HEADERS(expat.h, dummy=yes, expat_found=no)
|
2004-07-16 02:29:31 +08:00
|
|
|
])
|
|
|
|
|
2007-01-14 03:42:51 +08:00
|
|
|
AC_DEFUN([AC_PATH_INOTIFY], [
|
|
|
|
AC_CHECK_LIB(c ,inotify_init, inotify_found=yes, inotify_found=no)
|
|
|
|
AC_CHECK_HEADERS(sys/inotify.h, dummy=yes, inotify_found=no)
|
|
|
|
])
|
|
|
|
|
2004-08-13 00:03:09 +08:00
|
|
|
AC_DEFUN([AC_ARG_BLUEZ], [
|
2005-10-10 06:45:43 +08:00
|
|
|
fortify_enable=yes
|
2004-08-13 00:03:09 +08:00
|
|
|
debug_enable=no
|
2004-08-27 21:40:46 +08:00
|
|
|
pie_enable=no
|
2007-01-14 03:42:51 +08:00
|
|
|
inotify_enable=${inotify_found}
|
2006-11-13 15:17:40 +08:00
|
|
|
expat_enable=${expat_found}
|
2007-03-20 22:48:00 +08:00
|
|
|
hal_enable=${hal_found}
|
2007-01-23 15:29:27 +08:00
|
|
|
usb_enable=${usb_found}
|
2007-04-04 17:39:23 +08:00
|
|
|
alsa_enable=${alsa_found}
|
2007-08-22 21:19:41 +08:00
|
|
|
obex_enable=${openobex_found}
|
|
|
|
glib_enable=no
|
|
|
|
gstreamer_enable=${gstreamer_found}
|
2007-03-09 23:33:38 +08:00
|
|
|
network_enable=no
|
2007-05-08 20:52:54 +08:00
|
|
|
serial_enable=no
|
2007-01-23 15:18:07 +08:00
|
|
|
input_enable=no
|
2007-04-09 03:56:52 +08:00
|
|
|
audio_enable=no
|
2007-01-23 15:18:07 +08:00
|
|
|
sync_enable=no
|
|
|
|
echo_enable=no
|
2007-01-14 07:53:00 +08:00
|
|
|
hcid_enable=yes
|
2007-01-20 08:54:10 +08:00
|
|
|
sdpd_enable=yes
|
2007-01-24 19:02:52 +08:00
|
|
|
hidd_enable=yes
|
2007-03-22 05:33:12 +08:00
|
|
|
pand_enable=yes
|
2004-07-29 00:31:26 +08:00
|
|
|
test_enable=no
|
|
|
|
cups_enable=no
|
2007-05-14 18:47:49 +08:00
|
|
|
manpages_enable=yes
|
2006-09-01 08:20:45 +08:00
|
|
|
configfiles_enable=yes
|
2004-08-12 20:47:37 +08:00
|
|
|
initscripts_enable=no
|
2006-08-20 10:02:20 +08:00
|
|
|
pcmciarules_enable=no
|
2005-11-07 05:00:58 +08:00
|
|
|
bccmd_enable=no
|
|
|
|
avctrl_enable=no
|
2004-07-29 00:31:26 +08:00
|
|
|
hid2hci_enable=${usb_found}
|
2005-04-22 05:53:11 +08:00
|
|
|
dfutool_enable=no
|
2004-07-29 00:31:26 +08:00
|
|
|
|
2005-10-10 06:45:43 +08:00
|
|
|
AC_ARG_ENABLE(fortify, AC_HELP_STRING([--disable-fortify], [disable compile time buffer checks]), [
|
|
|
|
fortify_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2004-08-13 00:18:45 +08:00
|
|
|
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [enable compiling with debugging information]), [
|
2004-08-13 00:03:09 +08:00
|
|
|
debug_enable=${enableval}
|
2004-08-13 00:18:45 +08:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie], [enable position independent executables flag]), [
|
|
|
|
pie_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(all, AC_HELP_STRING([--enable-all], [enable all extra options below]), [
|
2005-09-10 18:25:38 +08:00
|
|
|
dbus_enable=${enableval}
|
2004-08-29 19:09:56 +08:00
|
|
|
obex_enable=${enableval}
|
2007-04-04 17:39:23 +08:00
|
|
|
alsa_enable=${enableval}
|
2007-01-14 07:53:00 +08:00
|
|
|
hcid_enable=${enableval}
|
|
|
|
sdpd_enable=${enableval}
|
2007-01-24 19:02:52 +08:00
|
|
|
hidd_enable=${enableval}
|
2007-03-22 05:33:12 +08:00
|
|
|
pand_enalbe=${enableval}
|
2004-07-27 22:08:43 +08:00
|
|
|
test_enable=${enableval}
|
|
|
|
cups_enable=${enableval}
|
2007-05-14 18:47:49 +08:00
|
|
|
manpages_enable=${enableval}
|
2006-09-01 08:20:45 +08:00
|
|
|
configfiles_enable=${enableval}
|
2004-08-12 20:47:37 +08:00
|
|
|
initscripts_enable=${enableval}
|
2006-08-20 10:02:20 +08:00
|
|
|
pcmciarules_enable=${enableval}
|
2005-11-07 05:00:58 +08:00
|
|
|
bccmd_enable=${enableval}
|
2005-07-03 18:42:56 +08:00
|
|
|
avctrl_enable=${enableval}
|
2004-07-27 22:08:43 +08:00
|
|
|
hid2hci_enable=${enableval}
|
2005-04-22 05:53:11 +08:00
|
|
|
dfutool_enable=${enableval}
|
2004-07-27 22:08:43 +08:00
|
|
|
])
|
|
|
|
|
2007-01-14 03:42:51 +08:00
|
|
|
AC_ARG_ENABLE(inotify, AC_HELP_STRING([--enable-inotify], [enable inotify support]), [
|
|
|
|
inotify_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2006-11-13 15:17:40 +08:00
|
|
|
AC_ARG_ENABLE(expat, AC_HELP_STRING([--enable-expat], [enable Expat support]), [
|
|
|
|
expat_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-03-20 22:48:00 +08:00
|
|
|
AC_ARG_ENABLE(hal, AC_HELP_STRING([--enable-hal], [enable HAL support]), [
|
|
|
|
hal_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-01-23 15:29:27 +08:00
|
|
|
AC_ARG_ENABLE(usb, AC_HELP_STRING([--enable-usb], [enable USB support]), [
|
|
|
|
usb_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-08-22 21:19:41 +08:00
|
|
|
AC_ARG_ENABLE(alsa, AC_HELP_STRING([--enable-alsa], [enable ALSA support]), [
|
|
|
|
alsa_enable=${enableval}
|
2006-08-21 08:55:17 +08:00
|
|
|
])
|
|
|
|
|
2004-08-29 19:09:56 +08:00
|
|
|
AC_ARG_ENABLE(obex, AC_HELP_STRING([--enable-obex], [enable OBEX support]), [
|
|
|
|
obex_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-08-22 21:19:41 +08:00
|
|
|
AC_ARG_ENABLE(glib, AC_HELP_STRING([--enable-glib], [enable GLib support]), [
|
|
|
|
glib_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(gstreamer, AC_HELP_STRING([--enable-gstreamer], [enable GStreamer support]), [
|
|
|
|
gstreamer_enable=${enableval}
|
2007-04-04 17:39:23 +08:00
|
|
|
])
|
|
|
|
|
2007-03-09 23:33:38 +08:00
|
|
|
AC_ARG_ENABLE(network, AC_HELP_STRING([--enable-network], [enable network service]), [
|
|
|
|
network_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-05-08 20:52:54 +08:00
|
|
|
AC_ARG_ENABLE(serial, AC_HELP_STRING([--enable-serial], [enable serial service]), [
|
|
|
|
serial_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-01-23 15:18:07 +08:00
|
|
|
AC_ARG_ENABLE(input, AC_HELP_STRING([--enable-input], [enable input service]), [
|
|
|
|
input_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-04-09 03:56:52 +08:00
|
|
|
AC_ARG_ENABLE(audio, AC_HELP_STRING([--enable-audio], [enable audio service]), [
|
|
|
|
audio_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-01-23 15:18:07 +08:00
|
|
|
AC_ARG_ENABLE(sync, AC_HELP_STRING([--enable-sync], [enable synchronization service]), [
|
2006-11-08 03:52:37 +08:00
|
|
|
sync_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-01-23 15:18:07 +08:00
|
|
|
AC_ARG_ENABLE(echo, AC_HELP_STRING([--enable-echo], [enable echo example service]), [
|
|
|
|
echo_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-01-14 07:53:00 +08:00
|
|
|
AC_ARG_ENABLE(hcid, AC_HELP_STRING([--enable-hcid], [install HCI daemon]), [
|
|
|
|
hcid_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(sdpd, AC_HELP_STRING([--enable-sdpd], [install SDP daemon]), [
|
|
|
|
sdpd_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-01-24 19:02:52 +08:00
|
|
|
AC_ARG_ENABLE(hidd, AC_HELP_STRING([--enable-hidd], [install HID daemon]), [
|
|
|
|
hidd_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2007-03-22 05:33:12 +08:00
|
|
|
AC_ARG_ENABLE(pand, AC_HELP_STRING([--enable-pand], [install PAN daemon]), [
|
|
|
|
pand_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2004-07-27 21:01:42 +08:00
|
|
|
AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test], [install test programs]), [
|
|
|
|
test_enable=${enableval}
|
2004-05-02 11:36:18 +08:00
|
|
|
])
|
|
|
|
|
2004-07-27 21:01:42 +08:00
|
|
|
AC_ARG_ENABLE(cups, AC_HELP_STRING([--enable-cups], [install CUPS backend support]), [
|
|
|
|
cups_enable=${enableval}
|
|
|
|
])
|
2004-11-12 02:22:27 +08:00
|
|
|
|
2007-05-14 18:47:49 +08:00
|
|
|
AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages], [install Bluetooth manual pages]), [
|
|
|
|
manpages_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2006-09-01 08:20:45 +08:00
|
|
|
AC_ARG_ENABLE(configfiles, AC_HELP_STRING([--enable-configfiles], [install Bluetooth config files]), [
|
|
|
|
configfiles_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2004-08-12 20:47:37 +08:00
|
|
|
AC_ARG_ENABLE(initscripts, AC_HELP_STRING([--enable-initscripts], [install Bluetooth boot scripts]), [
|
|
|
|
initscripts_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2006-08-20 10:02:20 +08:00
|
|
|
AC_ARG_ENABLE(pcmciarules, AC_HELP_STRING([--enable-pcmciarules], [install PCMCIA udev rules]), [
|
|
|
|
pcmciarules_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2005-11-07 05:00:58 +08:00
|
|
|
AC_ARG_ENABLE(bccmd, AC_HELP_STRING([--enable-bccmd], [install BCCMD interface utility]), [
|
|
|
|
bccmd_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2005-07-03 18:42:56 +08:00
|
|
|
AC_ARG_ENABLE(avctrl, AC_HELP_STRING([--enable-avctrl], [install Audio/Video control utility]), [
|
|
|
|
avctrl_enable=${enableval}
|
2004-08-12 20:47:37 +08:00
|
|
|
])
|
|
|
|
|
2004-07-27 21:01:42 +08:00
|
|
|
AC_ARG_ENABLE(hid2hci, AC_HELP_STRING([--enable-hid2hci], [install HID mode switching utility]), [
|
|
|
|
hid2hci_enable=${enableval}
|
|
|
|
])
|
2004-05-02 11:36:18 +08:00
|
|
|
|
2005-04-22 05:53:11 +08:00
|
|
|
AC_ARG_ENABLE(dfutool, AC_HELP_STRING([--enable-dfutool], [install DFU firmware upgrade utility]), [
|
|
|
|
dfutool_enable=${enableval}
|
|
|
|
])
|
|
|
|
|
2005-10-10 06:45:43 +08:00
|
|
|
if (test "${fortify_enable}" = "yes"); then
|
|
|
|
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
|
|
|
|
fi
|
|
|
|
|
2004-08-13 00:18:45 +08:00
|
|
|
if (test "${debug_enable}" = "yes" && test "${ac_cv_prog_cc_g}" = "yes"); then
|
|
|
|
CFLAGS="$CFLAGS -g"
|
|
|
|
fi
|
|
|
|
|
2004-08-13 00:03:09 +08:00
|
|
|
if (test "${pie_enable}" = "yes" && test "${ac_cv_prog_cc_pie}" = "yes"); then
|
|
|
|
CFLAGS="$CFLAGS -fPIE"
|
|
|
|
LDFLAGS="$LDFLAGS -pie"
|
|
|
|
fi
|
|
|
|
|
2007-01-23 15:29:27 +08:00
|
|
|
if (test "${usb_enable}" = "yes" && test "${usb_found}" = "yes"); then
|
|
|
|
AC_DEFINE(HAVE_LIBUSB, 1, [Define to 1 if you have USB library.])
|
|
|
|
fi
|
|
|
|
|
2007-01-12 08:01:20 +08:00
|
|
|
if (test "${glib_enable}" = "yes" && test "${glib_found}" = "yes"); then
|
2007-01-21 02:54:48 +08:00
|
|
|
if (test "${dbus_glib_found}" = "dummy"); then
|
2007-01-18 07:26:05 +08:00
|
|
|
AC_DEFINE(HAVE_DBUS_GLIB, 1, [Define to 1 if you have D-Bus GLib bindings.])
|
|
|
|
DBUS_CFLAGS="$DBUS_CFLAGS $DBUS_GLIB_CFLAGS"
|
|
|
|
DBUS_LIBS="$DBUS_GLIB_LIBS"
|
|
|
|
fi
|
2007-01-21 00:31:12 +08:00
|
|
|
AM_CONDITIONAL(GLIB, true)
|
|
|
|
AM_CONDITIONAL(EXPAT, false)
|
2007-01-20 13:35:38 +08:00
|
|
|
else
|
|
|
|
AC_SUBST([GLIB_CFLAGS], ['-I$(top_srcdir)/eglib'])
|
2007-01-22 07:45:26 +08:00
|
|
|
AC_SUBST([GLIB_LIBS], ['$(top_builddir)/eglib/libeglib.la'])
|
2007-01-21 00:31:12 +08:00
|
|
|
AM_CONDITIONAL(GLIB, false)
|
|
|
|
AM_CONDITIONAL(EXPAT, test "${expat_enable}" = "yes" && test "${expat_found}" = "yes")
|
2007-01-12 08:01:20 +08:00
|
|
|
fi
|
|
|
|
|
2007-01-31 16:52:52 +08:00
|
|
|
AC_SUBST([SBC_CFLAGS], ['-I$(top_srcdir)/sbc'])
|
|
|
|
AC_SUBST([SBC_LIBS], ['$(top_builddir)/sbc/libsbc.la'])
|
|
|
|
|
2007-01-14 03:42:51 +08:00
|
|
|
AM_CONDITIONAL(INOTIFY, test "${inotify_enable}" = "yes" && test "${inotify_found}" = "yes")
|
2007-03-20 22:48:00 +08:00
|
|
|
AM_CONDITIONAL(HAL, test "${hal_enable}" = "yes" && test "${hal_found}" = "yes")
|
2007-01-23 15:29:27 +08:00
|
|
|
AM_CONDITIONAL(USB, test "${usb_enable}" = "yes" && test "${usb_found}" = "yes")
|
2007-08-22 22:51:54 +08:00
|
|
|
AM_CONDITIONAL(SBC, test "${alsa_enable}" = "yes" || test "${gstreamer_enable}" = "yes")
|
2007-04-04 17:39:23 +08:00
|
|
|
AM_CONDITIONAL(ALSA, test "${alsa_enable}" = "yes" && test "${alsa_found}" = "yes")
|
2007-08-22 21:19:41 +08:00
|
|
|
AM_CONDITIONAL(OBEX, test "${obex_enable}" = "yes" && test "${openobex_found}" = "yes")
|
|
|
|
AM_CONDITIONAL(GSTREAMER, test "${gstreamer_enable}" = "yes" && test "${gstreamer_found}" = "yes")
|
2007-03-09 23:33:38 +08:00
|
|
|
AM_CONDITIONAL(NETWORKSERVICE, test "${network_enable}" = "yes")
|
2007-05-08 20:52:54 +08:00
|
|
|
AM_CONDITIONAL(SERIALSERVICE, test "${serial_enable}" = "yes")
|
2007-01-23 15:18:07 +08:00
|
|
|
AM_CONDITIONAL(INPUTSERVICE, test "${input_enable}" = "yes")
|
2007-04-09 03:56:52 +08:00
|
|
|
AM_CONDITIONAL(AUDIOSERVICE, test "${audio_enable}" = "yes")
|
2007-01-23 15:18:07 +08:00
|
|
|
AM_CONDITIONAL(SYNCSERVICE, test "${sync_enable}" = "yes" && test "${opensync_found}" = "yes")
|
|
|
|
AM_CONDITIONAL(ECHOSERVICE, test "${echo_enable}" = "yes")
|
2007-01-14 07:53:00 +08:00
|
|
|
AM_CONDITIONAL(HCID, test "${hcid_enable}" = "yes")
|
|
|
|
AM_CONDITIONAL(SDPD, test "${sdpd_enable}" = "yes")
|
2007-01-24 19:21:31 +08:00
|
|
|
AM_CONDITIONAL(HIDD, test "${hidd_enable}" = "yes")
|
2007-03-22 05:33:12 +08:00
|
|
|
AM_CONDITIONAL(PAND, test "${pand_enable}" = "yes")
|
2004-07-27 21:01:42 +08:00
|
|
|
AM_CONDITIONAL(TEST, test "${test_enable}" = "yes")
|
2004-07-21 23:24:22 +08:00
|
|
|
AM_CONDITIONAL(CUPS, test "${cups_enable}" = "yes")
|
2007-05-14 18:47:49 +08:00
|
|
|
AM_CONDITIONAL(MANPAGES, test "${manpages_enable}" = "yes")
|
2006-09-01 08:20:45 +08:00
|
|
|
AM_CONDITIONAL(CONFIGFILES, test "${configfiles_enable}" = "yes")
|
2004-08-12 20:47:37 +08:00
|
|
|
AM_CONDITIONAL(INITSCRIPTS, test "${initscripts_enable}" = "yes")
|
2006-08-20 10:02:20 +08:00
|
|
|
AM_CONDITIONAL(PCMCIARULES, test "${pcmciarules_enable}" = "yes")
|
2007-01-23 15:29:27 +08:00
|
|
|
AM_CONDITIONAL(BCCMD, test "${bccmd_enable}" = "yes")
|
2005-07-03 18:42:56 +08:00
|
|
|
AM_CONDITIONAL(AVCTRL, test "${avctrl_enable}" = "yes" && test "${usb_found}" = "yes")
|
2004-07-27 22:23:55 +08:00
|
|
|
AM_CONDITIONAL(HID2HCI, test "${hid2hci_enable}" = "yes" && test "${usb_found}" = "yes")
|
2005-04-22 05:53:11 +08:00
|
|
|
AM_CONDITIONAL(DFUTOOL, test "${dfutool_enable}" = "yes" && test "${usb_found}" = "yes")
|
2004-05-02 11:36:18 +08:00
|
|
|
])
|