3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- /dev/null 2003-09-23 18:19:32.000000000 -0400
7 +++ openjade-1.3.2/config/acinclude.m4 2004-01-20 14:39:20.000000000 -0500
10 +dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
12 +AC_DEFUN(OJ_SIZE_T_IS_UINT,[
13 + AC_REQUIRE([AC_TYPE_SIZE_T])
14 + AC_MSG_CHECKING(whether size_t is unsigned int)
15 + ac_cv_size_t_is_uint=no
18 + AC_TRY_COMPILE([#include <unistd.h>
20 + template<class T> class foo { };
24 + foo<unsigned int> y;
26 + ],ac_cv_size_t_is_uint=yes)
28 + AC_MSG_RESULT($ac_cv_size_t_is_uint)
29 + test "$ac_cv_size_t_is_uint" = "yes" && AC_DEFINE(SIZE_T_IS_UINT)
32 +dnl Configure-time switch with default
34 +dnl Each switch defines an --enable-FOO and --disable-FOO option in
35 +dnl the resulting configure script.
38 +dnl smr_SWITCH(name, description, default, pos-def, neg-def)
42 +dnl name name of switch; generates --enable-name & --disable-name
44 +dnl description help string is set to this prefixed by "enable" or
45 +dnl "disable", whichever is the non-default value
46 +dnl default either "on" or "off"; specifies default if neither
47 +dnl --enable-name nor --disable-name is specified
48 +dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
49 +dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
51 +AC_DEFUN(smr_SWITCH, [
52 + AC_MSG_CHECKING(whether to enable $2)
56 + [ --disable-[$1] disable [$2]],
57 + [ --enable-[$1] enable [$2]]),
58 + [ if test "$enableval" = yes; then
60 + ifelse($4, , , AC_DEFINE($4))
63 + ifelse($5, , , AC_DEFINE($5))
66 + [ AC_MSG_RESULT(yes)
67 + ifelse($4, , , AC_DEFINE($4)) ],
69 + ifelse($5, , , AC_DEFINE($5))]))])