config.h.in 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /* src/config.h.in. Generated from configure.ac by autoheader. */
  2. #ifndef GPERFTOOLS_CONFIG_H_
  3. #define GPERFTOOLS_CONFIG_H_
  4. /* Build runtime detection for sized delete */
  5. #undef ENABLE_DYNAMIC_SIZED_DELETE
  6. /* Build sized deletion operators */
  7. #undef ENABLE_SIZED_DELETE
  8. /* Define to 1 if compiler supports __builtin_expect */
  9. #undef HAVE_BUILTIN_EXPECT
  10. /* Define to 1 if compiler supports __builtin_stack_pointer */
  11. #undef HAVE_BUILTIN_STACK_POINTER
  12. /* Define to 1 if you have the <conflict-signal.h> header file. */
  13. #undef HAVE_CONFLICT_SIGNAL_H
  14. /* Define to 1 if you have the <cygwin/signal.h> header file. */
  15. #undef HAVE_CYGWIN_SIGNAL_H
  16. /* Define to 1 if you have the declaration of `backtrace', and to 0 if you
  17. don't. */
  18. #undef HAVE_DECL_BACKTRACE
  19. /* Define to 1 if you have the declaration of `cfree', and to 0 if you don't.
  20. */
  21. #undef HAVE_DECL_CFREE
  22. /* Define to 1 if you have the declaration of `memalign', and to 0 if you
  23. don't. */
  24. #undef HAVE_DECL_MEMALIGN
  25. /* Define to 1 if you have the declaration of `nanosleep', and to 0 if you
  26. don't. */
  27. #undef HAVE_DECL_NANOSLEEP
  28. /* Define to 1 if you have the declaration of `posix_memalign', and to 0 if
  29. you don't. */
  30. #undef HAVE_DECL_POSIX_MEMALIGN
  31. /* Define to 1 if you have the declaration of `pvalloc', and to 0 if you
  32. don't. */
  33. #undef HAVE_DECL_PVALLOC
  34. /* Define to 1 if you have the declaration of `sleep', and to 0 if you don't.
  35. */
  36. #undef HAVE_DECL_SLEEP
  37. /* Define to 1 if you have the declaration of `uname', and to 0 if you don't.
  38. */
  39. #undef HAVE_DECL_UNAME
  40. /* Define to 1 if you have the declaration of `valloc', and to 0 if you don't.
  41. */
  42. #undef HAVE_DECL_VALLOC
  43. /* Define to 1 if you have the <dlfcn.h> header file. */
  44. #undef HAVE_DLFCN_H
  45. /* Define to 1 if the system has the type `Elf32_Versym'. */
  46. #undef HAVE_ELF32_VERSYM
  47. /* Define to 1 if you have the <execinfo.h> header file. */
  48. #undef HAVE_EXECINFO_H
  49. /* Define to 1 if you have the <fcntl.h> header file. */
  50. #undef HAVE_FCNTL_H
  51. /* Define to 1 if you have the <features.h> header file. */
  52. #undef HAVE_FEATURES_H
  53. /* Define to 1 if you have the `fork' function. */
  54. #undef HAVE_FORK
  55. /* Define to 1 if you have the `geteuid' function. */
  56. #undef HAVE_GETEUID
  57. /* Define to 1 if you have the `getpagesize' function. */
  58. #undef HAVE_GETPAGESIZE
  59. /* Define to 1 if you have the <glob.h> header file. */
  60. #undef HAVE_GLOB_H
  61. /* Define to 1 if you have the <grp.h> header file. */
  62. #undef HAVE_GRP_H
  63. /* Define to 1 if you have the <inttypes.h> header file. */
  64. #undef HAVE_INTTYPES_H
  65. /* Define to 1 if you have the <libunwind.h> header file. */
  66. #undef HAVE_LIBUNWIND_H
  67. /* Define to 1 if you have the <linux/ptrace.h> header file. */
  68. #undef HAVE_LINUX_PTRACE_H
  69. /* Define if this is Linux that has SIGEV_THREAD_ID */
  70. #undef HAVE_LINUX_SIGEV_THREAD_ID
  71. /* Define to 1 if you have the <malloc.h> header file. */
  72. #undef HAVE_MALLOC_H
  73. /* Define to 1 if you have the <memory.h> header file. */
  74. #undef HAVE_MEMORY_H
  75. /* Define to 1 if you have a working `mmap' system call. */
  76. #undef HAVE_MMAP
  77. /* define if the compiler implements namespaces */
  78. #undef HAVE_NAMESPACES
  79. /* Define to 1 if you have the <poll.h> header file. */
  80. #undef HAVE_POLL_H
  81. /* define if libc has program_invocation_name */
  82. #undef HAVE_PROGRAM_INVOCATION_NAME
  83. /* Define if you have POSIX threads libraries and header files. */
  84. #undef HAVE_PTHREAD
  85. /* defined to 1 if pthread symbols are exposed even without include pthread.h
  86. */
  87. #undef HAVE_PTHREAD_DESPITE_ASKING_FOR
  88. /* Define to 1 if you have the <pwd.h> header file. */
  89. #undef HAVE_PWD_H
  90. /* Define to 1 if you have the `sbrk' function. */
  91. #undef HAVE_SBRK
  92. /* Define to 1 if you have the <sched.h> header file. */
  93. #undef HAVE_SCHED_H
  94. /* Define to 1 if you have the <stdint.h> header file. */
  95. #undef HAVE_STDINT_H
  96. /* Define to 1 if you have the <stdlib.h> header file. */
  97. #undef HAVE_STDLIB_H
  98. /* Define to 1 if you have the <strings.h> header file. */
  99. #undef HAVE_STRINGS_H
  100. /* Define to 1 if you have the <string.h> header file. */
  101. #undef HAVE_STRING_H
  102. /* Define to 1 if the system has the type `struct mallinfo'. */
  103. #undef HAVE_STRUCT_MALLINFO
  104. /* Define to 1 if you have the <sys/cdefs.h> header file. */
  105. #undef HAVE_SYS_CDEFS_H
  106. /* Define to 1 if you have the <sys/param.h> header file. */
  107. #undef HAVE_SYS_PARAM_H
  108. /* Define to 1 if you have the <sys/prctl.h> header file. */
  109. #undef HAVE_SYS_PRCTL_H
  110. /* Define to 1 if you have the <sys/resource.h> header file. */
  111. #undef HAVE_SYS_RESOURCE_H
  112. /* Define to 1 if you have the <sys/socket.h> header file. */
  113. #undef HAVE_SYS_SOCKET_H
  114. /* Define to 1 if you have the <sys/stat.h> header file. */
  115. #undef HAVE_SYS_STAT_H
  116. /* Define to 1 if you have the <sys/syscall.h> header file. */
  117. #undef HAVE_SYS_SYSCALL_H
  118. /* Define to 1 if you have the <sys/types.h> header file. */
  119. #undef HAVE_SYS_TYPES_H
  120. /* Define to 1 if you have the <sys/ucontext.h> header file. */
  121. #undef HAVE_SYS_UCONTEXT_H
  122. /* Define to 1 if you have the <sys/wait.h> header file. */
  123. #undef HAVE_SYS_WAIT_H
  124. /* Define to 1 if compiler supports __thread */
  125. #undef HAVE_TLS
  126. /* Define to 1 if you have the <ucontext.h> header file. */
  127. #undef HAVE_UCONTEXT_H
  128. /* Define to 1 if you have the <unistd.h> header file. */
  129. #undef HAVE_UNISTD_H
  130. /* Whether <unwind.h> contains _Unwind_Backtrace */
  131. #undef HAVE_UNWIND_BACKTRACE
  132. /* Define to 1 if you have the <unwind.h> header file. */
  133. #undef HAVE_UNWIND_H
  134. /* Define to 1 if you have the <valgrind.h> header file. */
  135. #undef HAVE_VALGRIND_H
  136. /* define if your compiler has __attribute__ */
  137. #undef HAVE___ATTRIBUTE__
  138. /* Define to 1 if compiler supports __environ */
  139. #undef HAVE___ENVIRON
  140. /* Define to 1 if the system has the type `__int64'. */
  141. #undef HAVE___INT64
  142. /* prefix where we look for installed files */
  143. #undef INSTALL_PREFIX
  144. /* Define to 1 if int32_t is equivalent to intptr_t */
  145. #undef INT32_EQUALS_INTPTR
  146. /* Define to the sub-directory where libtool stores uninstalled libraries. */
  147. #undef LT_OBJDIR
  148. /* Define to 'volatile' if __malloc_hook is declared volatile */
  149. #undef MALLOC_HOOK_MAYBE_VOLATILE
  150. /* Name of package */
  151. #undef PACKAGE
  152. /* Define to the address where bug reports for this package should be sent. */
  153. #undef PACKAGE_BUGREPORT
  154. /* Define to the full name of this package. */
  155. #undef PACKAGE_NAME
  156. /* Define to the full name and version of this package. */
  157. #undef PACKAGE_STRING
  158. /* Define to the one symbol short name of this package. */
  159. #undef PACKAGE_TARNAME
  160. /* Define to the home page for this package. */
  161. #undef PACKAGE_URL
  162. /* Define to the version of this package. */
  163. #undef PACKAGE_VERSION
  164. /* How to access the PC from a struct ucontext */
  165. #undef PC_FROM_UCONTEXT
  166. /* Always the empty-string on non-windows systems. On windows, should be
  167. "__declspec(dllexport)". This way, when we compile the dll, we export our
  168. functions/classes. It's safe to define this here because config.h is only
  169. used internally, to compile the DLL, and every DLL source file #includes
  170. "config.h" before anything else. */
  171. #undef PERFTOOLS_DLL_DECL
  172. /* printf format code for printing a size_t and ssize_t */
  173. #undef PRIdS
  174. /* printf format code for printing a size_t and ssize_t */
  175. #undef PRIuS
  176. /* printf format code for printing a size_t and ssize_t */
  177. #undef PRIxS
  178. /* Mark the systems where we know it's bad if pthreads runs too
  179. early before main (before threads are initialized, presumably). */
  180. #ifdef __FreeBSD__
  181. #define PTHREADS_CRASHES_IF_RUN_TOO_EARLY 1
  182. #endif
  183. /* Define to necessary symbol if this constant uses a non-standard name on
  184. your system. */
  185. #undef PTHREAD_CREATE_JOINABLE
  186. /* Define to 1 if you have the ANSI C header files. */
  187. #undef STDC_HEADERS
  188. /* the namespace where STL code like vector<> is defined */
  189. #undef STL_NAMESPACE
  190. /* Define 32K of internal pages size for tcmalloc */
  191. #undef TCMALLOC_32K_PAGES
  192. /* Define 64K of internal pages size for tcmalloc */
  193. #undef TCMALLOC_64K_PAGES
  194. /* Define 8 bytes of allocation alignment for tcmalloc */
  195. #undef TCMALLOC_ALIGN_8BYTES
  196. /* Version number of package */
  197. #undef VERSION
  198. /* C99 says: define this to get the PRI... macros from stdint.h */
  199. #ifndef __STDC_FORMAT_MACROS
  200. # define __STDC_FORMAT_MACROS 1
  201. #endif
  202. /* Define to `__inline__' or `__inline' if that's what the C compiler
  203. calls it, or to nothing if 'inline' is not supported under any name. */
  204. #ifndef __cplusplus
  205. #undef inline
  206. #endif
  207. #ifdef __MINGW32__
  208. #include "windows/mingw.h"
  209. #endif
  210. #ifdef TCMALLOC_SGX
  211. #include <sgx_trts.h>
  212. #include <sgx_thread.h>
  213. #include <sgx_spinlock.h>
  214. enum {PTHREAD_ONCE_INIT = 0};
  215. #define pthread_once_t long
  216. #define pthread_key_t sgx_thread_t
  217. #define pthread_t sgx_thread_t
  218. #define pthread_self sgx_thread_self
  219. /*SGX special, implemented in sgx_utils.cc*/
  220. extern "C" char *getenv(const char *name);
  221. extern "C" int GetSystemCPUsCount();
  222. enum { STDIN_FILENO = 0, STDOUT_FILENO = 1, STDERR_FILENO = 2 };
  223. extern "C" size_t write(int fd, const void *buf, size_t count);
  224. extern "C" int getpagesize(); //it didn't delare include enclave's <unistd.h>
  225. #endif
  226. #endif /* #ifndef GPERFTOOLS_CONFIG_H_ */