Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 371941 | Differences between
and this patch

Collapse All | Expand All

(-)licq-1.3.9/plugins/console/configure.ac (-1 / +14 lines)
Lines 66-78 to compile this plugin. Sorry. Link Here
66
]))
66
]))
67
67
68
dnl check for cdk
68
dnl check for cdk
69
AC_CHECK_LIB(cdk, initCDKScreen,,
69
AC_CHECK_TOOL(CDK5_CONFIG, cdk5-config, none)
70
AS_IF([test "x$CDK5_CONFIG" = xnone],[
71
AC_SEARCH_LIBS(initCDKScreen, [cdkw cdk],,
70
  AC_MSG_ERROR([
72
  AC_MSG_ERROR([
71
73
72
I can't find the cdk library. This is needed if you want
74
I can't find the cdk library. This is needed if you want
73
to compile this plugin. Sorry. Try to get it from here:
75
to compile this plugin. Sorry. Try to get it from here:
74
http://freshmeat.net/projects/libcdk/
76
http://freshmeat.net/projects/libcdk/
75
]))
77
]))
78
],[
79
AC_MSG_CHECKING([cdk5 libs])
80
CDK5_LIBS="`$CDK5_CONFIG --libs`"
81
AC_MSG_RESULT([$CDK5_LIBS])
82
LIBS="$CDK5_LIBS LIBS"
83
AC_MSG_CHECKING([cdk5 cpp flags])
84
dnl cdk5-config returns its -I flags for --cflags, and has no --cppflags
85
CDK5_CFLAGS="`$CDK5_CONFIG --cflags`"
86
AC_MSG_RESULT([$CDK5_CFLAGS])
87
CPPFLAGS="$CDK5_CFLAGS $CPPFLAGS"
88
])
76
89
77
AC_OUTPUT(
90
AC_OUTPUT(
78
  src/Makefile \
91
  src/Makefile \
(-)licq-1.3.9/acinclude.m4.in (-8 / +8 lines)
Lines 113-119 AC_DEFUN([AC_CHECK_SOCKS5], Link Here
113
113
114
dnl Check if struct tm contains long int tm_gmtoff
114
dnl Check if struct tm contains long int tm_gmtoff
115
AC_DEFUN([LICQ_CHECK_GMTOFF],
115
AC_DEFUN([LICQ_CHECK_GMTOFF],
116
[AC_CACHE_CHECK(for tm_gmtoff, licq_tm_gmtoff,
116
[AC_CACHE_CHECK(for tm_gmtoff, licq_cv_member_tm_gmtoff,
117
  [ AC_TRY_COMPILE([
117
  [ AC_TRY_COMPILE([
118
#include <time.h>
118
#include <time.h>
119
], [
119
], [
Lines 121-151 long int foo; Link Here
121
struct tm bar;
121
struct tm bar;
122
foo = bar.tm_gmtoff;
122
foo = bar.tm_gmtoff;
123
], [
123
], [
124
  licq_tm_gmtoff=yes
124
  licq_cv_member_tm_gmtoff=yes
125
], [
125
], [
126
  licq_tm_gmtoff=no
126
  licq_cv_member_tm_gmtoff=no
127
])
127
])
128
])
128
])
129
if test $licq_tm_gmtoff = yes; then
129
if test $licq_cv_member_tm_gmtoff = yes; then
130
  AC_DEFINE(USE_GMTOFF, 1, [Define if struct tm has gmtoff])
130
  AC_DEFINE(USE_GMTOFF, 1, [Define if struct tm has gmtoff])
131
fi
131
fi
132
])
132
])
133
133
134
dnl Check if long timezone is somewhere defined (i.e. AIX)
134
dnl Check if long timezone is somewhere defined (i.e. AIX)
135
AC_DEFUN([LICQ_CHECK_TIMEZONE],
135
AC_DEFUN([LICQ_CHECK_TIMEZONE],
136
  [AC_CACHE_CHECK(for extern long timezone, licq_extern_timezone,
136
  [AC_CACHE_CHECK(for extern long timezone, licq_cv_var_timezone,
137
    [ AC_TRY_LINK([
137
    [ AC_TRY_LINK([
138
#include <time.h>
138
#include <time.h>
139
], [
139
], [
140
  long foo;
140
  long foo;
141
  foo = timezone;
141
  foo = timezone;
142
], [
142
], [
143
  licq_extern_timezone=yes
143
  licq_cv_var_timezone=yes
144
], [
144
], [
145
  licq_extern_timezone=no
145
  licq_cv_var_timezone=no
146
])
146
])
147
])
147
])
148
if test $licq_extern_timezone = yes; then
148
if test $licq_cv_var_timezone = yes; then
149
  AC_DEFINE(USE_TIMEZONE, 1, [Define if global variable timezone exists])
149
  AC_DEFINE(USE_TIMEZONE, 1, [Define if global variable timezone exists])
150
fi
150
fi
151
])
151
])

Return to bug 371941