]> Dogcows Code - chaz/tint2/blobdiff - configure.ac
patch by Christian Ruppert, configure option for battery
[chaz/tint2] / configure.ac
index 226e8cb338cb5a2c3883bc4a2eb82bb79c5b3e84..644c98a7c02f4152401dbbf97fbbd461d12affb0 100644 (file)
@@ -60,6 +60,15 @@ AC_FUNC_FORK
 AC_FUNC_MALLOC
 AC_CHECK_FUNCS([gettimeofday memset select setlocale strcasecmp strchr strdup])
 
+AC_ARG_ENABLE([battery],
+                         [AS_HELP_STRING([--enable-battery=no], [Disable battery status, only useful for notebooks [default=yes]])],
+                         [case "${enableval}" in
+                          yes) battery=true ;;
+                          no) battery=false ;;
+                          *) AC_MSG_ERROR([bad value ${enableval} for --enable-battery]) ;;
+                  esac], [battery=true])
+AM_CONDITIONAL([ENABLE_BATTERY], [test x$battery = xtrue])
+
 AC_ARG_ENABLE([examples],
                          [AS_HELP_STRING([--enable-examples], [Install additional $(PACKAGE_NAME)rc examples])],
                          [case "${enableval}" in
This page took 0.021812 seconds and 4 git commands to generate.