Two patches which fix issues on cross compiling/building
authorNathaniel McCallum <nathaniel@natemccallum.com>
Mon, 22 Jun 2009 13:26:33 +0000 (15:26 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 29 Jun 2009 03:39:52 +0000 (13:39 +1000)
lib/util/time.m4
source4/build/m4/check_cc.m4

index f61ae4cd25c8bb3b2b0252adf12d9a64882b1a90..675e20129fc292c1e1094364f783a45a9818d182 100644 (file)
@@ -3,7 +3,7 @@ AC_TRY_RUN([
 #include <sys/time.h>
 #include <unistd.h>
 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
-           samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=cross)])
+           samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=yes)])
 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
     AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
 fi
index 55802850b096ae3035a0e261f17b5e806b36edd4..32e4b5083ddddce13a03c3658e5955bd7adf721f 100644 (file)
@@ -45,7 +45,9 @@ AC_CACHE_CHECK([that the C compiler understands negative enum values],samba_cv_C
                return 0;
        }
 ],
-       samba_cv_CC_NEGATIVE_ENUM_VALUES=yes,samba_cv_CC_NEGATIVE_ENUM_VALUES=no)])
+       samba_cv_CC_NEGATIVE_ENUM_VALUES=yes,
+       samba_cv_CC_NEGATIVE_ENUM_VALUES=no,
+       samba_cv_CC_NEGATIVE_ENUM_VALUES=yes)])
 if test x"$samba_cv_CC_NEGATIVE_ENUM_VALUES" != x"yes"; then
        AC_DEFINE(USE_UINT_ENUMS, 1, [Whether the compiler has uint enum support])
 fi