aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAl Poole <netstar@gmail.com>2016-12-09 11:00:50 -0600
committerStephen 'Okra' Houston <smhouston88@gmail.com>2016-12-09 11:02:43 -0600
commitb4f3a8da0a592e19d8a460a600508421f46bbc92 (patch)
treefa514455f6a4d44e12d3dff825961ae74166b3d5 /configure.ac
parentdon't track gadget drop handler objects for deletion (diff)
downloadenlightenment-b4f3a8da0a592e19d8a460a600508421f46bbc92.tar.gz
Enlightenment: Factor all sysctl battery code for bsd into e_mod_sysctl.c
This commit should now allow battery to support OpenBSD, FreeBSD, Dragonfly BSD, and NetBSD
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 533633cce..df69b29e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -597,6 +597,8 @@ AC_DEFINE(E_INTERNAL, 1, "This define can be used to wrap internal E stuff, as c
have_openbsd="no"
have_freebsd="no"
+have_dragonfly="no"
+have_netbsd="no"
BATTERY_LDFLAGS=
case "$host_os" in
darwin*)
@@ -606,15 +608,23 @@ case "$host_os" in
openbsd*)
have_openbsd="yes"
;;
+ netbsd*)
+ have_netbsd="yes"
+ ;;
freebsd*)
have_freebsd="yes"
;;
+ dragonfly*)
+ have_dragonfly="yes"
+ ;;
esac
AC_SUBST([BATTERY_CFLAGS])
AC_SUBST([BATTERY_LDFLAGS])
AM_CONDITIONAL([HAVE_OPENBSD], [test "x${have_openbsd}" = "xyes"])
+AM_CONDITIONAL([HAVE_NETBSD], [test "x${have_netbsd}" = "xyes"])
AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"])
+AM_CONDITIONAL([HAVE_DRAGONFLY], [test "x${have_dragonfly}" = "xyes"])
##have_exchange=no
##AC_ARG_ENABLE(exchange,