Explorar o código

configure.ac: disable test for unistd.h, we need to find a less intrusive manner to test a proper inclusion of unistd.h, this test fails as unistd.h gets included by hwloc.h from starpu_worker.h

Nathalie Furmento %!s(int64=8) %!d(string=hai) anos
pai
achega
28f4b4fe61
Modificáronse 1 ficheiros con 11 adicións e 11 borrados
  1. 11 11
      configure.ac

+ 11 - 11
configure.ac

@@ -3252,17 +3252,17 @@ AC_SUBST(SOCL_VENDORS)
 AC_CONFIG_FILES(tests/regression/regression.sh tests/regression/profiles tests/regression/profiles.build.only)
 AC_CONFIG_FILES(tests/regression/regression.sh tests/regression/profiles tests/regression/profiles.build.only)
 AC_CONFIG_HEADER(src/common/config.h include/starpu_config.h gcc-plugin/include/starpu-gcc/config.h starpu-top/config.h)
 AC_CONFIG_HEADER(src/common/config.h include/starpu_config.h gcc-plugin/include/starpu-gcc/config.h starpu-top/config.h)
 
 
-AH_BOTTOM([
+#AH_BOTTOM([
-#if defined(STARPU_DEVEL) && defined(BUILDING_STARPU)
+##if defined(STARPU_DEVEL) && defined(BUILDING_STARPU)
-#  ifndef STARPU_CHECKED_UNISTD_H
+##  ifndef STARPU_CHECKED_UNISTD_H
-#    define STARPU_CHECKED_UNISTD_H
+##    define STARPU_CHECKED_UNISTD_H
-#    ifdef _UNISTD_H
+##    ifdef _UNISTD_H
-#      define _UNISTD_H PLEASE_DONT_INCLUDE_IT
+##      define _UNISTD_H PLEASE_DONT_INCLUDE_IT
-#      error Please do not unconditionally include unistd.h, it is not available on Windows, include config.h and test for HAVE_UNISTD_H
+##      error Please do not unconditionally include unistd.h, it is not available on Windows, include config.h and test for HAVE_UNISTD_H
-#    endif
+##    endif
-#  endif
+##  endif
-#endif
+##endif
-])
+#])
 
 
 SANITIZE=$(echo $CFLAGS | grep sanitize)
 SANITIZE=$(echo $CFLAGS | grep sanitize)
 AM_CONDITIONAL(STARPU_SANITIZE, test -n "$SANITIZE")
 AM_CONDITIONAL(STARPU_SANITIZE, test -n "$SANITIZE")