[Box Backup-commit] COMMIT r2485 - box/trunk/infrastructure/m4

boxbackup-dev at boxbackup.org boxbackup-dev at boxbackup.org
Tue Mar 31 13:13:35 BST 2009


Author: chris
Date: 2009-03-31 13:13:34 +0100 (Tue, 31 Mar 2009)
New Revision: 2485

Modified:
   box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4
Log:
Assume that we have no way to determine whether struct dirent has a
valid d_type when cross-compiling, as this should be the safest option.


Modified: box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4
===================================================================
--- box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4	2009-03-31 12:12:35 UTC (rev 2484)
+++ box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4	2009-03-31 12:13:34 UTC (rev 2485)
@@ -16,7 +16,7 @@
   AC_CHECK_MEMBERS([struct dirent.d_type],,, [[#include <dirent.h>]])
   if test "x$ac_cv_member_struct_dirent_d_type" = "xyes"; then
     AC_CACHE_CHECK([[whether struct dirent.d_type is valid]], [box_cv_have_valid_dirent_d_type],
-      [AC_RUN_IFELSE(
+      [AC_TRY_RUN(
         [AC_LANG_PROGRAM([[
           $ac_includes_default
           #include <dirent.h>
@@ -26,7 +26,9 @@
           if(dir) res = readdir(dir);
           return res ? (res->d_type != DT_FILE && res->d_type != DT_DIR) : 1;
         ]])],
-        [box_cv_have_valid_dirent_d_type=yes], [box_cv_have_valid_dirent_d_type=no]
+        [box_cv_have_valid_dirent_d_type=yes],
+	[box_cv_have_valid_dirent_d_type=no],
+	[box_cv_have_valid_dirent_d_type=cross]
       )])
     if test "x$box_cv_have_valid_dirent_d_type" = "xyes"; then
       AC_DEFINE([HAVE_VALID_DIRENT_D_TYPE], 1, [Define to 1 if struct dirent.d_type is valid])




More information about the Boxbackup-commit mailing list