1 diff -ur samba-3.0.25a/source/configure.in samba-3.0.25a-patched/source/configure.in
2 --- samba-3.0.25a/source/configure.in 2007-06-19 11:40:49.000000000 -0500
3 +++ samba-3.0.25a-patched/source/configure.in 2007-06-19 11:45:04.000000000 -0500
5 AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile])
8 -############################################
9 -# check if the compiler can handle negative enum values
10 -# and don't truncate the values to INT_MAX
11 -# a runtime test is needed here
13 -AC_CACHE_CHECK([that the C compiler understands negative enum values],SMB_BUILD_CC_NEGATIVE_ENUM_VALUES, [
17 - enum negative_values { NEGATIVE_VALUE = 0xFFFFFFFF };
19 - enum negative_values v1 = NEGATIVE_VALUE;
20 - unsigned v2 = NEGATIVE_VALUE;
22 - if (v1 != 0xFFFFFFFF) {
23 - printf("%u != 0xFFFFFFFF\n", v1);
26 - if (v2 != 0xFFFFFFFF) {
27 - printf("%u != 0xFFFFFFFF\n", v2);
34 - SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes,SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=no)])
35 -if test x"$SMB_BUILD_CC_NEGATIVE_ENUM_VALUES" != x"yes"; then
36 - AC_MSG_WARN([using --unit-enums for pidl])
37 - PIDL_ARGS="$PIDL_ARGS --uint-enums"
39 +# Just hard code this for cross compile cases
40 +PIDL_ARGS="$PIDL_ARGS --uint-enums"
42 dnl Figure out the flags to support named structure initializers