forked from FFTW/fftw3
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When configure'd with --enable-sve, try to build a sample SVE program and abort on failure, otherwise configure successes but make will fail.
- Loading branch information
1 parent
8cb2fbd
commit ff3dfb0
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
dnl @synopsis ACX_SVE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) | ||
dnl @summary figure out whether a simple SVE program can be compiled | ||
dnl @category InstalledPackages | ||
dnl | ||
dnl This macro tries to compile a simple SVE program that uses | ||
dnl the ACLE SVE extensions. | ||
dnl | ||
dnl ACTION-IF-FOUND is a list of shell commands to run if a SVE | ||
dnl program can be compiled, and ACTION-IF-NOT-FOUND is a list of commands | ||
dnl to run it cannot. | ||
dnl | ||
dnl @version 2024-04-15 | ||
dnl @license GPLWithACException | ||
dnl @author Gilles Gouaillardet <[email protected]> | ||
|
||
AC_DEFUN([ACX_SVE], [ | ||
AC_MSG_CHECKING([whether a SVE program can be compiled]) | ||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <arm_sve.h>]], | ||
[[#if defined(__GNUC__) && !defined(__ARM_FEATURE_SVE) | ||
#error compiling without SVE support | ||
#endif]])],[AC_MSG_RESULT([yes]) | ||
$1], | ||
[AC_MSG_RESULT([no]) | ||
$2]) | ||
])dnl ACX_SVE |