diff options
Diffstat (limited to 'meta/recipes-devtools/openjade/openjade-1.3.2/configure.patch')
-rw-r--r-- | meta/recipes-devtools/openjade/openjade-1.3.2/configure.patch | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/meta/recipes-devtools/openjade/openjade-1.3.2/configure.patch b/meta/recipes-devtools/openjade/openjade-1.3.2/configure.patch new file mode 100644 index 0000000000..2dcaa4d9e6 --- /dev/null +++ b/meta/recipes-devtools/openjade/openjade-1.3.2/configure.patch | |||
@@ -0,0 +1,68 @@ | |||
1 | Patch obtained from OpenEmbedded. | ||
2 | |||
3 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | ||
4 | --- /dev/null 2003-09-23 18:19:32.000000000 -0400 | ||
5 | +++ openjade-1.3.2/config/acinclude.m4 2004-01-20 14:39:20.000000000 -0500 | ||
6 | @@ -0,0 +1,62 @@ | ||
7 | +dnl | ||
8 | +dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int | ||
9 | +dnl | ||
10 | +AC_DEFUN(OJ_SIZE_T_IS_UINT,[ | ||
11 | + AC_REQUIRE([AC_TYPE_SIZE_T]) | ||
12 | + AC_MSG_CHECKING(whether size_t is unsigned int) | ||
13 | + ac_cv_size_t_is_uint=no | ||
14 | + AC_LANG_SAVE | ||
15 | + AC_LANG_CPLUSPLUS | ||
16 | + AC_TRY_COMPILE([#include <unistd.h> | ||
17 | + | ||
18 | + template<class T> class foo { }; | ||
19 | + | ||
20 | + ], [ | ||
21 | + foo<size_t> x; | ||
22 | + foo<unsigned int> y; | ||
23 | + x = y; | ||
24 | + ],ac_cv_size_t_is_uint=yes) | ||
25 | + AC_LANG_RESTORE | ||
26 | + AC_MSG_RESULT($ac_cv_size_t_is_uint) | ||
27 | + test "$ac_cv_size_t_is_uint" = "yes" && AC_DEFINE(SIZE_T_IS_UINT) | ||
28 | +]) | ||
29 | + | ||
30 | +dnl Configure-time switch with default | ||
31 | +dnl | ||
32 | +dnl Each switch defines an --enable-FOO and --disable-FOO option in | ||
33 | +dnl the resulting configure script. | ||
34 | +dnl | ||
35 | +dnl Usage: | ||
36 | +dnl smr_SWITCH(name, description, default, pos-def, neg-def) | ||
37 | +dnl | ||
38 | +dnl where: | ||
39 | +dnl | ||
40 | +dnl name name of switch; generates --enable-name & --disable-name | ||
41 | +dnl options | ||
42 | +dnl description help string is set to this prefixed by "enable" or | ||
43 | +dnl "disable", whichever is the non-default value | ||
44 | +dnl default either "on" or "off"; specifies default if neither | ||
45 | +dnl --enable-name nor --disable-name is specified | ||
46 | +dnl pos-def a symbol to AC_DEFINE if switch is on (optional) | ||
47 | +dnl neg-def a symbol to AC_DEFINE if switch is off (optional) | ||
48 | +dnl | ||
49 | +AC_DEFUN(smr_SWITCH, [ | ||
50 | + AC_MSG_CHECKING(whether to enable $2) | ||
51 | + AC_ARG_ENABLE( | ||
52 | + $1, | ||
53 | + ifelse($3, on, | ||
54 | + [ --disable-[$1] disable [$2]], | ||
55 | + [ --enable-[$1] enable [$2]]), | ||
56 | + [ if test "$enableval" = yes; then | ||
57 | + AC_MSG_RESULT(yes) | ||
58 | + ifelse($4, , , AC_DEFINE($4)) | ||
59 | + else | ||
60 | + AC_MSG_RESULT(no) | ||
61 | + ifelse($5, , , AC_DEFINE($5)) | ||
62 | + fi ], | ||
63 | + ifelse($3, on, | ||
64 | + [ AC_MSG_RESULT(yes) | ||
65 | + ifelse($4, , , AC_DEFINE($4)) ], | ||
66 | + [ AC_MSG_RESULT(no) | ||
67 | + ifelse($5, , , AC_DEFINE($5))]))]) | ||
68 | + | ||