Skip to content

Commit 94d2a57

Browse files
Thomas ApplencourtTApplencourt
authored andcommitted
fix mpi
1 parent 8a95331 commit 94d2a57

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

configure.ac

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.69])
5-
AC_INIT([thapi], [0.0.11], [[email protected]])
5+
AC_INIT([thapi],[0.0.11],[[email protected]])
66
AC_CONFIG_SRCDIR([opencl/tracer_opencl_helpers.include.c])
77
AC_CONFIG_HEADERS([utils/config.h])
88

@@ -62,12 +62,14 @@ AS_IF([test "x$using_demangle" != xyes],
6262
AC_ARG_ENABLE([strict], AS_HELP_STRING([--enable-strict], [Enable -Werror]), [], [enable_strict=yes])
6363
AM_CONDITIONAL([STRICT], [test "x$enable_strict" = xyes])
6464

65-
AC_ARG_ENABLE([mpi],
66-
AS_HELP_STRING([--disable-mpi], [Disable mpi sync daemon]), [found_mpi=yes], [found_mpi=no])
65+
# By default `--enable-mpi`, will set the "enable_mpi" variable
66+
AC_ARG_ENABLE([mpi], AS_HELP_STRING([--disable-mpi], [Disable mpi sync daemon]))
67+
6768
AS_IF([test "x$enable_mpi" != xno], [
68-
AX_MPI([found_mpi=yes], [found_mpi=no])
69-
])
70-
AM_CONDITIONAL([FOUND_MPI], [test "x$found_mpi" = xyes])
69+
AX_MPI([enable_mpi=yes], [enable_mpi=no])
70+
])
71+
72+
AM_CONDITIONAL([FOUND_MPI], [test "x$enable_mpi" != "xno"])
7173

7274
PKG_CHECK_MODULES([LIBFFI], [libffi >= 3.2])
7375
PKG_CHECK_MODULES([BABELTRACE2], [babeltrace2 >= 2.0])

0 commit comments

Comments
 (0)