@matheusbsbs / matheus-bagliano / commits / eb0f255d61
Fork 0

autoconf: Checks for typedefs, structures, and compiler characteristics.

./configure script checks now for existence of the following types, structures, and structure members: * dirent.d_ino in <dirent.h> (NO_D_INO_IN_DIRENT) * dirent.d_type in <dirent.h> (NO_D_TYPE_IN_DIRENT) * 'struct sockaddr_storage' in <netinet/in.h> (NO_SOCKADDR_STORAGE) Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Jul 8, 2006 at 23:07 UTC eb0f255d6144af26361b12cb38aae9c23581a955
1 file changed +13 -2
configure.ac
+13 -2
@@ -48,13 +48,24 @@ AC_DEFUN([GIT_CONF_APPEND_LINE],
48
49
50 ## Checks for typedefs, structures, and compiler characteristics.
51 +AC_MSG_NOTICE([CHECKS for typedefs, structures, and compiler characteristics])
52 +
53 # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent.
52 -#
54 +AC_CHECK_MEMBER(struct dirent.d_ino,[],
55 +GIT_CONF_APPEND_LINE(NO_D_INO_IN_DIRENT=YesPlease),
56 +[#include <dirent.h>])
57 +
58 # Define NO_D_TYPE_IN_DIRENT if your platform defines DT_UNKNOWN but lacks
59 # d_type in struct dirent (latest Cygwin -- will be fixed soonish).
55 -#
60 +AC_CHECK_MEMBER(struct dirent.d_type,[],
61 +GIT_CONF_APPEND_LINE(NO_D_TYPE_IN_DIRENT=YesPlease),
62 +[#include <dirent.h>])
63 +
64 # Define NO_SOCKADDR_STORAGE if your platform does not have struct
65 # sockaddr_storage.
66 +AC_CHECK_TYPE(struct sockaddr_storage,[],
67 +GIT_CONF_APPEND_LINE(NO_SOCKADDR_STORAGE=YesPlease),
68 +[#include <netinet/in.h>])
69
70
71 ## Checks for library functions.