]> granicus.if.org Git - zziplib/commitdiff
ticket:2479788 - integrating libpcap host_cpu list for the cross_compiling case
authorGuido Draheim <guidod@gmx.de>
Thu, 21 May 2009 21:12:35 +0000 (21:12 +0000)
committerGuido Draheim <guidod@gmx.de>
Thu, 21 May 2009 21:12:35 +0000 (21:12 +0000)
TODO
m4/ax_check_aligned_access_required.m4

diff --git a/TODO b/TODO
index ab30ddcc0378fe7a92c4bc5ab2ee868323135c6d..fd60c6e53439b0c7091d0bf2d494a69bdc9af66c 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,14 +1,8 @@
 SHORTTERM
-- single-file documentation (a docbook?)
 - handle international filenames more gracefully (unicode API?)
 - most is multithreaded ... but zzip_dir_open (Thorsten Schöning)
 - rboerdijk@ does also report errors on overlapping reads, another
    one pointed to the usage of seek_set that may cause the problems
-- extend aligned-access check in the autoconf macro such that it can
-  cover the cross-compiling case - libpcap AC_LBL_UNALIGNED_ACCESS
-  uses         alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
-                ac_cv_lbl_unaligned_fail=yes
-  for that.
 
 WISHLIST
 
@@ -88,5 +82,8 @@ here or there - the code however should be prepared to get around any
 problems easily. Send patches! (especially Linux distributions makers
 are usually not sending their patches to upstream maintainers).
 
+Note: the latest cross platform tests are done indirectly by using
+the build.opensuse.org rpm packaging where one can run "make check"
+just before doing the "make install" of the compiled library.
 
 
index 28a9730ec0dcd553def52ee5f33a44ab03e1ecbd..a7d43ca66641cf8424acd82410a397eb520c5a3e 100644 (file)
@@ -14,12 +14,16 @@ dnl should be accessed per-byte in that case to avoid segfault type errors.
 dnl
 dnl @category C
 dnl @author Guido U. Draheim <guidod@gmx.de>
-dnl @version 2006-08-17
+dnl @version 2009-05-22
 dnl @license GPLWithACException
 
 AC_DEFUN([AX_CHECK_ALIGNED_ACCESS_REQUIRED],
 [AC_CACHE_CHECK([if pointers to integers require aligned access],
   [ax_cv_have_aligned_access_required],
+if test "$cross_compiling" = "yes"; then
+  case "$host_cpu" in alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
+    ax_cv_have_aligned_access_required="yes"
+  ;; *)
   [AC_TRY_RUN([
 #include <stdio.h>
 #include <stdlib.h>
@@ -43,6 +47,7 @@ int main()
      [ax_cv_have_aligned_access_required=no],
      [ax_cv_have_aligned_access_required=no])
   ])
+;; esac
 if test "$ax_cv_have_aligned_access_required" = yes ; then
   AC_DEFINE([HAVE_ALIGNED_ACCESS_REQUIRED], [1],
     [Define if pointers to integers require aligned access])