annotate m4/ac_var_timezone_externals.m4 @ 4064:b188b93ebf48

[gaim-migrate @ 4274] (23:01:14) LSchiere: okay, this patch fixes at least some of the problems saving sound, away, and font preferences. it makes spin buttons and entry widgets save prefs on loss of focus or dialog close instead of on change. (23:01:17) LSchiere: anything else it does? (23:01:44) faceprint: it makes nothing save unless you hit close. however, everything saves when you hit close. (23:02:06) LSchiere: they still apply before close? (23:02:09) faceprint: it should right most of the wrongs of prefs (23:02:25) faceprint: they apply before close, but aren't written to disk every time you check or uncheck a checkbox or something (23:02:27) Paco-Paco: it looks OK committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 12 Dec 2002 04:03:53 +0000
parents 75912ec1a1cb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3194
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
1
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
2 # Define 'timezone', 'altzone' and 'daylight'
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
3 # http://www.gnu.org/software/ac-archive/Miscellaneous/ac_var_timezone_externals.html
3207
75912ec1a1cb [gaim-migrate @ 3224]
Jim Seymour <jseymour>
parents: 3194
diff changeset
4 # Use instead of 'AC_STRUCT_TIMEZONE' to determine whether the
75912ec1a1cb [gaim-migrate @ 3224]
Jim Seymour <jseymour>
parents: 3194
diff changeset
5 # the external timezone variables 'timezone', 'altzone' and 'daylight' exist,
75912ec1a1cb [gaim-migrate @ 3224]
Jim Seymour <jseymour>
parents: 3194
diff changeset
6 # defining 'HAVE_TIMEZONE', 'HAVE_ALTZONE' and 'HAVE_DAYLIGHT' respectively
75912ec1a1cb [gaim-migrate @ 3224]
Jim Seymour <jseymour>
parents: 3194
diff changeset
7 # (as well as gaining the macros defined by 'AC_STRUCT_TIMEZONE').
3194
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
8 # Mark R.Bannister <markb@freedomware.co.uk>
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
9 AC_DEFUN([AC_VAR_TIMEZONE_EXTERNALS],
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
10 [ AC_REQUIRE([AC_STRUCT_TIMEZONE])dnl
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
11 AC_CACHE_CHECK(for timezone external, mb_cv_var_timezone,
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
12 [ AC_TRY_LINK([#include <time.h>], [return (int)timezone;],
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
13 mb_cv_var_timezone=yes,
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
14 mb_cv_var_timezone=no)
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
15 ])
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
16 AC_CACHE_CHECK(for altzone external, mb_cv_var_altzone,
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
17 [ AC_TRY_LINK([#include <time.h>], [return (int)altzone;],
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
18 mb_cv_var_altzone=yes,
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
19 mb_cv_var_altzone=no)
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
20 ])
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
21 AC_CACHE_CHECK(for daylight external, mb_cv_var_daylight,
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
22 [ AC_TRY_LINK([#include <time.h>], [return (int)daylight;],
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
23 mb_cv_var_daylight=yes,
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
24 mb_cv_var_daylight=no)
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
25 ])
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
26 if test $mb_cv_var_timezone = yes; then
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
27 AC_DEFINE([HAVE_TIMEZONE], 1,
3207
75912ec1a1cb [gaim-migrate @ 3224]
Jim Seymour <jseymour>
parents: 3194
diff changeset
28 [Define if you have the external 'timezone' variable.])
3194
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
29 fi
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
30 if test $mb_cv_var_altzone = yes; then
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
31 AC_DEFINE([HAVE_ALTZONE], 1,
3207
75912ec1a1cb [gaim-migrate @ 3224]
Jim Seymour <jseymour>
parents: 3194
diff changeset
32 [Define if you have the external 'altzone' variable.])
3194
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
33 fi
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
34 if test $mb_cv_var_daylight = yes; then
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
35 AC_DEFINE([HAVE_DAYLIGHT], 1,
3207
75912ec1a1cb [gaim-migrate @ 3224]
Jim Seymour <jseymour>
parents: 3194
diff changeset
36 [Define if you have the external 'daylight' variable.])
3194
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
37 fi
fdd20785e1e1 [gaim-migrate @ 3211]
Jim Seymour <jseymour>
parents:
diff changeset
38 ])