Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check for a dlfunc() function to get handle if present
[simgrid.git] / tools / cmake / src / internal_config.h.in
index 20aefcf..b5c7fdc 100644 (file)
@@ -8,6 +8,8 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
+#include "simgrid_config.h"       /* what was compiled in? */
+
 /* Non-standard header files */
 #define HAVE_EXECINFO_H @HAVE_EXECINFO_H@ /* <execinfo.h> */
 #define HAVE_FUTEX_H    @HAVE_FUTEX_H@ /* <linux/futex.h> */
@@ -33,9 +35,8 @@
 #define HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@ /* If __thread is available */
 
 /* Variables for the raw contexts (to select the right assembly code) */
-#cmakedefine PROCESSOR_i686         @PROCESSOR_i686@
-#cmakedefine PROCESSOR_x86_64       @PROCESSOR_x86_64@
-#cmakedefine CMAKE_SYSTEM_PROCESSOR @CMAKE_SYSTEM_PROCESSOR@
+#define SIMGRID_PROCESSOR_i686         @PROCESSOR_i686@
+#define SIMGRID_PROCESSOR_x86_64       @PROCESSOR_x86_64@
 
 /* Variables for the SysV contexts */
 @sg_makecontext_stack_addr@
 #define HAVE_SMPI          @HAVE_SMPI@
 #define SMPI_FORTRAN       @SMPI_FORTRAN@
 #define HAVE_PRIVATIZATION @HAVE_PRIVATIZATION@ /* We have mmap and objdump to handle privatization */
+#define HAVE_PAPI          @HAVE_PAPI@ /* We have PAPI to fine-grain trace execution time */
 
 /* Other function checks */
+#define HAVE_BACKTRACE @HAVE_BACKTRACE@ /* Function backtrace */
+#define HAVE_DLFUNC    @HAVE_DLFUNC@ /* Function dlfunc */
 #define HAVE_MMAP      @HAVE_MMAP@ /* Function mmap */
+#define HAVE_MREMAP    @HAVE_MREMAP@ /* Function mremap */
 #define HAVE_SEM_INIT  @HAVE_SEM_INIT@ /* Function sem_init (part of XPG6 standard only) */
 #define HAVE_POPEN     @HAVE_POPEN@ /* Function popen */
 #define HAVE_SYSCONF   @HAVE_SYSCONF@ /* Function sysconf */
@@ -65,3 +70,4 @@
 /* Other checks */
 #cmakedefine ADDR2LINE       "@ADDR2LINE@" /* Path to the addr2line tool */
 #define HAVE_GRAPHVIZ   @HAVE_GRAPHVIZ@ /* The graphviz library */
+#define HAVE_LIBUNWIND  @HAVE_LIBUNWIND@ /* The lib unwind library (for MC and backtrace display) */