summaryrefslogtreecommitdiff
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
parent485f2508806b669e5c4b4b1ecc0f38973e291bbc (diff)
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 533633c..df69b29 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
597 597
598have_openbsd="no" 598have_openbsd="no"
599have_freebsd="no" 599have_freebsd="no"
600have_dragonfly="no"
601have_netbsd="no"
600BATTERY_LDFLAGS= 602BATTERY_LDFLAGS=
601case "$host_os" in 603case "$host_os" in
602 darwin*) 604 darwin*)
@@ -606,15 +608,23 @@ case "$host_os" in
606 openbsd*) 608 openbsd*)
607 have_openbsd="yes" 609 have_openbsd="yes"
608 ;; 610 ;;
611 netbsd*)
612 have_netbsd="yes"
613 ;;
609 freebsd*) 614 freebsd*)
610 have_freebsd="yes" 615 have_freebsd="yes"
611 ;; 616 ;;
617 dragonfly*)
618 have_dragonfly="yes"
619 ;;
612esac 620esac
613 621
614AC_SUBST([BATTERY_CFLAGS]) 622AC_SUBST([BATTERY_CFLAGS])
615AC_SUBST([BATTERY_LDFLAGS]) 623AC_SUBST([BATTERY_LDFLAGS])
616AM_CONDITIONAL([HAVE_OPENBSD], [test "x${have_openbsd}" = "xyes"]) 624AM_CONDITIONAL([HAVE_OPENBSD], [test "x${have_openbsd}" = "xyes"])
625AM_CONDITIONAL([HAVE_NETBSD], [test "x${have_netbsd}" = "xyes"])
617AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"]) 626AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"])
627AM_CONDITIONAL([HAVE_DRAGONFLY], [test "x${have_dragonfly}" = "xyes"])
618 628
619##have_exchange=no 629##have_exchange=no
620##AC_ARG_ENABLE(exchange, 630##AC_ARG_ENABLE(exchange,