[evolution-mapi] Bug #656321 - Build break



commit b3e69a6feb984d8152217474e99de778d836db7b
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 11 09:08:41 2011 +0200

    Bug #656321 - Build break

 configure.ac |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d1ccd81..37bcd40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -142,6 +142,23 @@ AC_SUBST(LIBMAPI_CFLAGS)
 AC_SUBST(LIBMAPI_LIBS)
 
 dnl ****************************
+dnl Check for struct StringArrayW_r function
+dnl ****************************
+AC_MSG_CHECKING([libmapi struct StringArrayW_r])
+save_cflags=$CFLAGS; CFLAGS=$LIBMAPI_CFLAGS
+save_libs=$LIBS; LIBS="$LIBMAPI_LIBS"
+AC_LINK_IFELSE([AC_LANG_PROGRAM(
+	[[#include <libmapi/libmapi.h>]],
+	[[struct StringArrayW_r str;]])],
+	[ac_cv_have_saw=yes],
+	[ac_cv_have_saw=no
+	 save_cflags="$save_cflags -DStringArrayW_r=WStringArray_r"
+	])
+CFLAGS=$save_cflags
+LIBS=$save_libs
+AC_MSG_RESULT([$ac_cv_have_saw])
+
+dnl ****************************
 dnl Expose version information
 dnl ****************************
 API_VERSION=$EDS_PACKAGE



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]