Changeset 2494


Ignore:
Timestamp:
04/04/2009 15:02:57 (3 years ago)
Author:
chris
Message:

Blind fix for autoconf problems introduced by earlier attempt to support
cross-compiling.

Location:
box/trunk/infrastructure/m4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/m4/ax_check_dirent_d_type.m4

    r2485 r2494  
    1818    AC_CACHE_CHECK([[whether struct dirent.d_type is valid]], [box_cv_have_valid_dirent_d_type], 
    1919      [AC_TRY_RUN( 
    20         [AC_LANG_PROGRAM([[ 
     20        [ 
    2121          $ac_includes_default 
    2222          #include <dirent.h> 
    23           ]], [[ 
     23          int main() 
     24          { 
    2425          DIR* dir = opendir("."); 
    2526          struct dirent* res = NULL; 
    2627          if(dir) res = readdir(dir); 
    2728          return res ? (res->d_type != DT_FILE && res->d_type != DT_DIR) : 1; 
    28         ]])], 
     29          } 
     30        ], 
    2931        [box_cv_have_valid_dirent_d_type=yes], 
    3032        [box_cv_have_valid_dirent_d_type=no], 
  • box/trunk/infrastructure/m4/ax_check_syscall_lseek.m4

    r2484 r2494  
    1818    AC_CACHE_CHECK([[whether syscall lseek requires dummy parameter]], [box_cv_have_lseek_dummy_param], 
    1919      [AC_TRY_RUN( 
    20         [AC_LANG_PROGRAM([[ 
     20        [ 
    2121          $ac_includes_default 
    2222          #include <fcntl.h> 
     
    2929            #define syscall __syscall 
    3030          #endif 
    31           ]], [[ 
     31          int main() 
     32          { 
    3233          int fh = creat("lseektest", 0600); 
    3334          int res = 0; 
     
    5051          unlink("lseektest"); 
    5152          return res!=-1; 
    52         ]])], 
     53          } 
     54        ], 
    5355        [box_cv_have_lseek_dummy_param=yes], 
    5456        [box_cv_have_lseek_dummy_param=no], 
Note: See TracChangeset for help on using the changeset viewer.