Skip to content

Commit

Permalink
configure: Do not check for xpmem if disabled
Browse files Browse the repository at this point in the history
If --disable-xpmem is passed to configure, skip checking. Fixes a build
issue when xpmem is located in the default system directories.

Signed-off-by: Ken Raffenetti <[email protected]>
  • Loading branch information
raffenet authored and j-xiong committed Mar 7, 2024
1 parent 2b0a66f commit 8c95e30
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,16 @@ AC_ARG_ENABLE([xpmem],
PATH: enable xpmem and use xpmem installed under PATH)])],
)

FI_CHECK_PACKAGE([xpmem],
[xpmem.h],
[xpmem],
[xpmem_make],
[],
[$enable_xpmem],
[$enable_xpmem/lib64],
[xpmem_happy=1])
AS_IF([test x"$enable_xpmem" != x"no"],
[FI_CHECK_PACKAGE([xpmem],
[xpmem.h],
[xpmem],
[xpmem_make],
[],
[$enable_xpmem],
[],
[xpmem_happy=1])
])

AS_IF([test x"$enable_xpmem" != x"no" && test -n "$enable_xpmem" && test "$xpmem_happy" = "0" ],
[AC_MSG_ERROR([XPMEM support requested but XPMEM runtime not available.])])
Expand Down

0 comments on commit 8c95e30

Please sign in to comment.