annotate mcabber/macros/timezone.m4 @ 1461:8fa24a6d1a93

Improve Remote Controlling Clients The XEP recommends adding the node to the IQ response. Some clients seem not to understand the answer when it is omitted. Problem reported by Rhaamo and js (thanks to js for spotting the node issue!).
author Mikael Berthe <mikael@lilotux.net>
date Sat, 12 Apr 2008 13:35:03 +0200
parents 103764a87777
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
800
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
1 dnl ac_var_timeszone_externals.m4
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
2
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
3 # Define 'timezone', 'altzone' and 'daylight'
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
4 # http://www.gnu.org/software/ac-archive/Miscellaneous/ac_var_timezone_externals.html
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
5 # Use instead of 'AC_STRUCT_TIMEZONE' to determine whether the
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
6 # the external timezone variables 'timezone', 'altzone' and 'daylight' exist,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
7 # defining 'HAVE_TIMEZONE', 'HAVE_ALTZONE' and 'HAVE_DAYLIGHT' respectively
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
8 # (as well as gaining the macros defined by 'AC_STRUCT_TIMEZONE').
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
9 # Mark R.Bannister <markb@freedomware.co.uk>
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
10 AC_DEFUN([AC_VAR_TIMEZONE_EXTERNALS],
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
11 [ AC_REQUIRE([AC_STRUCT_TIMEZONE])dnl
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
12 AC_CACHE_CHECK(for timezone external, mb_cv_var_timezone,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
13 [ AC_TRY_LINK([#include <time.h>], [return (int)timezone;],
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
14 mb_cv_var_timezone=yes,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
15 mb_cv_var_timezone=no)
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
16 ])
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
17 AC_CACHE_CHECK(for altzone external, mb_cv_var_altzone,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
18 [ AC_TRY_LINK([#include <time.h>], [return (int)altzone;],
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
19 mb_cv_var_altzone=yes,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
20 mb_cv_var_altzone=no)
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
21 ])
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
22 AC_CACHE_CHECK(for daylight external, mb_cv_var_daylight,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
23 [ AC_TRY_LINK([#include <time.h>], [return (int)daylight;],
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
24 mb_cv_var_daylight=yes,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
25 mb_cv_var_daylight=no)
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
26 ])
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
27 if test $mb_cv_var_timezone = yes; then
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
28 AC_DEFINE([HAVE_TIMEZONE], 1,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
29 [Define if you have the external 'timezone' variable.])
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
30 fi
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
31 if test $mb_cv_var_altzone = yes; then
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
32 AC_DEFINE([HAVE_ALTZONE], 1,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
33 [Define if you have the external 'altzone' variable.])
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
34 fi
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
35 if test $mb_cv_var_daylight = yes; then
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
36 AC_DEFINE([HAVE_DAYLIGHT], 1,
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
37 [Define if you have the external 'daylight' variable.])
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
38 fi
103764a87777 Improve autoconf
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
39 ])