Wed, 18 Jan 2006 18:21:59 +0000
[gaim-migrate @ 15279]
SF Patch #1403656 from Nick Hebner
"This patch makes plugin unloading take into account
plugins that depend on the plugin being unloaded. All
plugins dependent on the plugin in question are
unloaded before this plugin is, so there are not
problems with missing dependencies."
committer: Richard Laager <rlaager@pidgin.im>
| 12023 | 1 | |
| 2 | # Define 'timezone', 'altzone' and 'daylight' | |
| 3 | # http://www.gnu.org/software/ac-archive/Miscellaneous/ac_var_timezone_externals.html | |
| 4 | # Use instead of 'AC_STRUCT_TIMEZONE' to determine whether the | |
| 5 | # the external timezone variables 'timezone', 'altzone' and 'daylight' exist, | |
| 6 | # defining 'HAVE_TIMEZONE', 'HAVE_ALTZONE' and 'HAVE_DAYLIGHT' respectively | |
| 7 | # (as well as gaining the macros defined by 'AC_STRUCT_TIMEZONE'). | |
| 8 | # Mark R.Bannister <markb@freedomware.co.uk> | |
| 9 | AC_DEFUN([AC_VAR_TIMEZONE_EXTERNALS], | |
| 10 | [ AC_REQUIRE([AC_STRUCT_TIMEZONE])dnl | |
| 11 | AC_CACHE_CHECK(for timezone external, mb_cv_var_timezone, | |
| 12 | [ AC_TRY_LINK([#include <time.h>], [return (int)timezone;], | |
| 13 | mb_cv_var_timezone=yes, | |
| 14 | mb_cv_var_timezone=no) | |
| 15 | ]) | |
| 16 | AC_CACHE_CHECK(for altzone external, mb_cv_var_altzone, | |
| 17 | [ AC_TRY_LINK([#include <time.h>], [return (int)altzone;], | |
| 18 | mb_cv_var_altzone=yes, | |
| 19 | mb_cv_var_altzone=no) | |
| 20 | ]) | |
| 21 | AC_CACHE_CHECK(for daylight external, mb_cv_var_daylight, | |
| 22 | [ AC_TRY_LINK([#include <time.h>], [return (int)daylight;], | |
| 23 | mb_cv_var_daylight=yes, | |
| 24 | mb_cv_var_daylight=no) | |
| 25 | ]) | |
| 26 | if test $mb_cv_var_timezone = yes; then | |
| 27 | AC_DEFINE([HAVE_TIMEZONE], 1, | |
| 28 | [Define if you have the external 'timezone' variable.]) | |
| 29 | fi | |
| 30 | if test $mb_cv_var_altzone = yes; then | |
| 31 | AC_DEFINE([HAVE_ALTZONE], 1, | |
| 32 | [Define if you have the external 'altzone' variable.]) | |
| 33 | fi | |
| 34 | if test $mb_cv_var_daylight = yes; then | |
| 35 | AC_DEFINE([HAVE_DAYLIGHT], 1, | |
| 36 | [Define if you have the external 'daylight' variable.]) | |
| 37 | fi | |
| 38 | ]) |