Fix for i686-w64-mingw32.
authorWerner Koch <wk@gnupg.org>
Mon, 29 Apr 2013 07:58:57 +0000 (09:58 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 29 Apr 2013 07:58:57 +0000 (09:58 +0200)
* configure.ac (NEED__FILE_OFFSET_BITS): Do not define under Windows.

configure.ac

index f096aa9..d7ce215 100644 (file)
@@ -270,12 +270,14 @@ AC_TYPE_UINTPTR_T
 # A simple compile time check in gpgme.h for GNU/Linux systems that
 # prevents a file offset bits mismatch between gpgme and the application.
 NEED__FILE_OFFSET_BITS=0
-case "$ac_cv_sys_file_offset_bits" in
-  "" | no | unknown) ;;
-  *)
-  NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
-  ;;
-esac
+if test "$have_w32_system" != yes; then
+  case "$ac_cv_sys_file_offset_bits" in
+    "" | no | unknown) ;;
+    *)
+    NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
+    ;;
+  esac
+fi
 AC_SUBST(NEED__FILE_OFFSET_BITS)
 
 # Figure out platform dependent typedefs for gpgme.h