AM_CONDITIONAL(BUILD_WLAN, test x$want_wlan = xyes)
if test x$want_wlan = xyes; then
AC_CHECK_HEADERS([iwlib.h], [], AC_MSG_ERROR([iwlib.h header not found]))
- AC_CHECK_LIB([iw], [iw_sockets_open], [conky_LIBS="$conky_LIBS -liw"], AC_MSG_ERROR([iw_sockets_open not found]))
- AC_DEFINE(HAVE_IWLIB, 1, [Define if you want wireless support])
+ AC_CHECK_LIB([iw], [iw_sockets_open], [conky_LIBS="-liw $conky_LIBS"],
+ AC_MSG_ERROR([iw_sockets_open not found]), [$conky_LIBS])
+ AC_DEFINE(HAVE_IWLIB, 1, [Define if you want wireless support])
fi
dnl
}
#ifdef X11
-void setalignment(int* text_alignment, unsigned int windowtype, const char* value, const char *f, int line, char setbyconffile) {
+void setalignment(int* ltext_alignment, unsigned int windowtype, const char* value, const char *f, int line, char setbyconffile) {
#ifdef OWN_WINDOW
if (windowtype == TYPE_DOCK) {
NORM_ERR("alignment is disabled when own_window_type is dock");
CONF_ERR;
} else NORM_ERR("'%s' is not a alignment setting", value);
} else {
- *text_alignment = a;
+ *ltext_alignment = a;
}
} else if(setbyconffile == true) {
CONF_ERR;
{ 0, 0, 0, 0 }
};
-void set_current_config() {
+void set_current_config(void);
+void set_current_config(void)
+{
/* check if specified config file is valid */
if (current_config) {
struct stat sb;