]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/openjade/openjade-1.3.2/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / openjade / openjade-1.3.2 / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
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
8 @@ -0,0 +1,62 @@
9 +dnl
10 +dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
11 +dnl
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
16 +       AC_LANG_SAVE
17 +       AC_LANG_CPLUSPLUS
18 +       AC_TRY_COMPILE([#include <unistd.h>
19 +
20 +                       template<class T> class foo { };
21 +
22 +                        ], [
23 +                       foo<size_t> x;
24 +                       foo<unsigned int> y;
25 +                       x = y;
26 +               ],ac_cv_size_t_is_uint=yes)
27 +       AC_LANG_RESTORE
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)
30 +])
31 +
32 +dnl Configure-time switch with default
33 +dnl
34 +dnl Each switch defines an --enable-FOO and --disable-FOO option in
35 +dnl the resulting configure script.
36 +dnl
37 +dnl Usage:
38 +dnl smr_SWITCH(name, description, default, pos-def, neg-def)
39 +dnl
40 +dnl where:
41 +dnl
42 +dnl name        name of switch; generates --enable-name & --disable-name
43 +dnl             options
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)
50 +dnl
51 +AC_DEFUN(smr_SWITCH, [
52 +    AC_MSG_CHECKING(whether to enable $2)
53 +    AC_ARG_ENABLE(
54 +        $1,
55 +        ifelse($3, on,
56 +            [  --disable-[$1]    disable [$2]],
57 +            [  --enable-[$1]     enable [$2]]),
58 +        [ if test "$enableval" = yes; then
59 +            AC_MSG_RESULT(yes)
60 +            ifelse($4, , , AC_DEFINE($4))
61 +        else
62 +            AC_MSG_RESULT(no)
63 +            ifelse($5, , , AC_DEFINE($5))
64 +        fi ],
65 +        ifelse($3, on,
66 +           [ AC_MSG_RESULT(yes)
67 +             ifelse($4, , , AC_DEFINE($4)) ],
68 +           [ AC_MSG_RESULT(no)
69 +            ifelse($5, , , AC_DEFINE($5))]))])
70 +