mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-11 18:38:45 +00:00
small configure changes
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@632 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
98f3aa9208
commit
f0b0fd7a7e
20
configure.in
20
configure.in
@ -1,6 +1,6 @@
|
|||||||
AC_INIT([Conky],[1.4.1],[brenden1@users.sourceforge.net])
|
AC_INIT([Conky],[1.4.2],[brenden1@users.sourceforge.net])
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE(conky, 1.4.1)
|
AM_INIT_AUTOMAKE(conky, 1.4.2)
|
||||||
AM_CONFIG_HEADER(src/config.h)
|
AM_CONFIG_HEADER(src/config.h)
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
PKG_PROG_PKG_CONFIG([0.17.2])
|
PKG_PROG_PKG_CONFIG([0.17.2])
|
||||||
@ -356,19 +356,9 @@ dnl
|
|||||||
dnl ICONV
|
dnl ICONV
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
want_iconv=yes
|
AM_ICONV
|
||||||
AC_ARG_ENABLE(iconv,
|
if test "$am_cv_func_iconv" != yes; then
|
||||||
[ --enable-iconv enable if you want iconv support [[default=yes]]],
|
AC_MSG_WARN([Could not find libiconv])
|
||||||
[want_iconv="$enableval"])
|
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_ICONV, test x$want_iconv = xyes)
|
|
||||||
if test x$want_iconv = xyes; then
|
|
||||||
AM_ICONV
|
|
||||||
if test "$am_cv_func_iconv" != yes; then
|
|
||||||
AC_MSG_ERROR([Could not find libiconv (required for uim)])
|
|
||||||
else
|
|
||||||
AC_DEFINE(ICONV, 1, [Define if you want iconv support])
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
16
src/conky.c
16
src/conky.c
@ -33,7 +33,7 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef ICONV
|
#ifdef HAVE_ICONV
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -258,7 +258,7 @@ static int maximum_width;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef ICONV
|
#ifdef HAVE_ICONV
|
||||||
#define CODEPAGE_LENGTH 20
|
#define CODEPAGE_LENGTH 20
|
||||||
long iconv_selected;
|
long iconv_selected;
|
||||||
long iconv_count;
|
long iconv_count;
|
||||||
@ -1018,7 +1018,7 @@ enum text_object_type {
|
|||||||
OBJ_tcp_portmon,
|
OBJ_tcp_portmon,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ICONV
|
#ifdef HAVE_ICONV
|
||||||
OBJ_iconv_start,
|
OBJ_iconv_start,
|
||||||
OBJ_iconv_stop,
|
OBJ_iconv_stop,
|
||||||
#endif
|
#endif
|
||||||
@ -1731,7 +1731,7 @@ static void free_text_objects(unsigned int count, struct text_object *objs)
|
|||||||
case OBJ_execigraph:
|
case OBJ_execigraph:
|
||||||
free(objs[i].data.s);
|
free(objs[i].data.s);
|
||||||
break;*/
|
break;*/
|
||||||
#ifdef ICONV
|
#ifdef HAVE_ICONV
|
||||||
case OBJ_iconv_start:
|
case OBJ_iconv_start:
|
||||||
free_iconv();
|
free_iconv();
|
||||||
break;
|
break;
|
||||||
@ -2549,7 +2549,7 @@ static struct text_object *construct_text_object(const char *s, const char *arg,
|
|||||||
obj->data.i2c.devtype);
|
obj->data.i2c.devtype);
|
||||||
END OBJ(time, 0) obj->data.s = strdup(arg ? arg : "%F %T");
|
END OBJ(time, 0) obj->data.s = strdup(arg ? arg : "%F %T");
|
||||||
END OBJ(utime, 0) obj->data.s = strdup(arg ? arg : "%F %T");
|
END OBJ(utime, 0) obj->data.s = strdup(arg ? arg : "%F %T");
|
||||||
#ifdef ICONV
|
#ifdef HAVE_ICONV
|
||||||
END OBJ(iconv_start, 0)
|
END OBJ(iconv_start, 0)
|
||||||
if (iconv_converting) {
|
if (iconv_converting) {
|
||||||
CRIT_ERR("You must stop your last iconv conversion before starting another");
|
CRIT_ERR("You must stop your last iconv conversion before starting another");
|
||||||
@ -3020,7 +3020,7 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object *
|
|||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
#ifdef ICONV
|
#ifdef HAVE_ICONV
|
||||||
char buff_in[P_MAX_SIZE] = {0};
|
char buff_in[P_MAX_SIZE] = {0};
|
||||||
iconv_converting = 0;
|
iconv_converting = 0;
|
||||||
#endif
|
#endif
|
||||||
@ -4446,7 +4446,7 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object *
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ICONV
|
#ifdef HAVE_ICONV
|
||||||
OBJ(iconv_start)
|
OBJ(iconv_start)
|
||||||
{
|
{
|
||||||
iconv_converting = 1;
|
iconv_converting = 1;
|
||||||
@ -4466,7 +4466,7 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object *
|
|||||||
{
|
{
|
||||||
unsigned int a = strlen(p);
|
unsigned int a = strlen(p);
|
||||||
|
|
||||||
#ifdef ICONV
|
#ifdef HAVE_ICONV
|
||||||
if (a > 0 && iconv_converting && iconv_selected > 0 && (iconv_cd[iconv_selected - 1] != (iconv_t)(-1))) {
|
if (a > 0 && iconv_converting && iconv_selected > 0 && (iconv_cd[iconv_selected - 1] != (iconv_t)(-1))) {
|
||||||
int bytes;
|
int bytes;
|
||||||
size_t dummy1, dummy2;
|
size_t dummy1, dummy2;
|
||||||
|
Loading…
Reference in New Issue
Block a user