config.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /* config.h. Generated from config.h.in by configure. */
  2. /* config.h.in. Generated from configure.ac by autoheader. */
  3. /* Debug messages. */
  4. /* #undef ENABLE_DEBUG */
  5. /* Experimental features. */
  6. /* #undef ENABLE_EXPERIMENTAL */
  7. /* System logging. */
  8. #define ENABLE_LOGGING 1
  9. /* Enable openssl for modinfo. */
  10. /* #undef ENABLE_OPENSSL */
  11. /* Enable Xz for modules. */
  12. /* #undef ENABLE_XZ */
  13. /* Enable zlib for modules. */
  14. /* #undef ENABLE_ZLIB */
  15. /* Define to 1 if you have the declaration of `be32toh', and to 0 if you
  16. don't. */
  17. #define HAVE_DECL_BE32TOH 1
  18. /* Define to 1 if you have the declaration of `strndupa', and to 0 if you
  19. don't. */
  20. /* #define HAVE_DECL_STRNDUPA */
  21. /* Define to 1 if you have the <dlfcn.h> header file. */
  22. #define HAVE_DLFCN_H 1
  23. /* Define to 1 if you have the `finit_module' function. */
  24. /* #undef HAVE_FINIT_MODULE */
  25. /* Define to 1 if you have the <inttypes.h> header file. */
  26. #define HAVE_INTTYPES_H 1
  27. /* Define to 1 if you have the <linux/module.h> header file. */
  28. /* #undef HAVE_LINUX_MODULE_H */
  29. /* Define to 1 if you have the <memory.h> header file. */
  30. #define HAVE_MEMORY_H 1
  31. /* Define if _Noreturn is available */
  32. #define HAVE_NORETURN 1
  33. /* Define to 1 if you have the `secure_getenv' function. */
  34. #define HAVE_SECURE_GETENV 1
  35. /* Define if _Static_assert() is available */
  36. #define HAVE_STATIC_ASSERT 1
  37. /* Define to 1 if you have the <stdint.h> header file. */
  38. #define HAVE_STDINT_H 1
  39. /* Define to 1 if you have the <stdlib.h> header file. */
  40. #define HAVE_STDLIB_H 1
  41. /* Define to 1 if you have the <strings.h> header file. */
  42. #define HAVE_STRINGS_H 1
  43. /* Define to 1 if you have the <string.h> header file. */
  44. #define HAVE_STRING_H 1
  45. /* Define to 1 if `st_mtim' is a member of `struct stat'. */
  46. /*#define HAVE_STRUCT_STAT_ST_MTIM 1*/
  47. /* Define to 1 if you have the <sys/stat.h> header file. */
  48. #define HAVE_SYS_STAT_H 1
  49. /* Define to 1 if you have the <sys/types.h> header file. */
  50. #define HAVE_SYS_TYPES_H 1
  51. /* Define to 1 if you have the <unistd.h> header file. */
  52. #define HAVE_UNISTD_H 1
  53. /* Define to 1 if compiler has __builtin_clz() builtin function */
  54. #define HAVE___BUILTIN_CLZ 1
  55. /* Define to 1 if compiler has __builtin_types_compatible_p() builtin function
  56. */
  57. #define HAVE___BUILTIN_TYPES_COMPATIBLE_P 1
  58. /* Define to 1 if compiler has __builtin_uaddll_overflow() builtin function */
  59. #define HAVE___BUILTIN_UADDLL_OVERFLOW 0
  60. /* Define to 1 if compiler has __builtin_uaddl_overflow() builtin function */
  61. #define HAVE___BUILTIN_UADDL_OVERFLOW 0
  62. /* Define to 1 if you have the `__secure_getenv' function. */
  63. /* #undef HAVE___SECURE_GETENV */
  64. /* Define to 1 if you have the `__xstat' function. */
  65. #define HAVE___XSTAT 1
  66. /* Features in this build */
  67. #define KMOD_FEATURES "-XZ -ZLIB -OPENSSL -EXPERIMENTAL"
  68. /* Define to the sub-directory where libtool stores uninstalled libraries. */
  69. #define LT_OBJDIR ".libs/"
  70. /* Name of package */
  71. #define PACKAGE "kmod"
  72. /* Define to the address where bug reports for this package should be sent. */
  73. #define PACKAGE_BUGREPORT "[email protected]"
  74. /* Define to the full name of this package. */
  75. #define PACKAGE_NAME "kmod"
  76. /* Define to the full name and version of this package. */
  77. #define PACKAGE_STRING "kmod 26"
  78. /* Define to the one symbol short name of this package. */
  79. #define PACKAGE_TARNAME "kmod"
  80. /* Define to the home page for this package. */
  81. #define PACKAGE_URL "http://git.kernel.org/?p=utils/kernel/kmod/kmod.git"
  82. /* Define to the version of this package. */
  83. #define PACKAGE_VERSION "26"
  84. /* Define to 1 if you have the ANSI C header files. */
  85. #define STDC_HEADERS 1
  86. /* Enable extensions on AIX 3, Interix. */
  87. #ifndef _ALL_SOURCE
  88. # define _ALL_SOURCE 1
  89. #endif
  90. /* Enable GNU extensions on systems that have them. */
  91. #ifndef _GNU_SOURCE
  92. # define _GNU_SOURCE 1
  93. #endif
  94. /* Enable threading extensions on Solaris. */
  95. #ifndef _POSIX_PTHREAD_SEMANTICS
  96. # define _POSIX_PTHREAD_SEMANTICS 1
  97. #endif
  98. /* Enable extensions on HP NonStop. */
  99. #ifndef _TANDEM_SOURCE
  100. # define _TANDEM_SOURCE 1
  101. #endif
  102. /* Enable general extensions on Solaris. */
  103. #ifndef __EXTENSIONS__
  104. # define __EXTENSIONS__ 1
  105. #endif
  106. /* Version number of package */
  107. #define VERSION "26"
  108. /* Enable large inode numbers on Mac OS X 10.5. */
  109. #ifndef _DARWIN_USE_64_BIT_INODE
  110. # define _DARWIN_USE_64_BIT_INODE 1
  111. #endif
  112. /* Number of bits in a file offset, on hosts where this is settable. */
  113. /* #undef _FILE_OFFSET_BITS */
  114. /* Define for large files, on AIX-style hosts. */
  115. /* #undef _LARGE_FILES */
  116. /* Define to 1 if on MINIX. */
  117. /* #undef _MINIX */
  118. /* Define to 2 if the system does not provide POSIX.1 features except with
  119. this defined. */
  120. /* #undef _POSIX_1_SOURCE */
  121. /* Define to 1 if you need to in order for `stat' and other things to work. */
  122. /* #undef _POSIX_SOURCE */
  123. #if defined(__APPLE__)
  124. #define get_current_dir_name() getwd(malloc(128))
  125. #define strndupa(_s,_l) strdup(_s)
  126. char* basename(const char*);
  127. #define init_module darwin_init_module
  128. #define delete_module darwin_delete_module
  129. #define program_invocation_short_name "depmod"
  130. #include <endian-darwin.h>
  131. #else
  132. #include <endian.h>
  133. #endif
  134. #if defined(__ANDROID__)
  135. #include <stdlib.h>
  136. #include <unistd.h>
  137. static inline char *get_current_dir_name(void)
  138. {
  139. return getcwd(malloc(PATH_MAX), PATH_MAX);
  140. }
  141. #endif