Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 14 additions & 20 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# You should have received a copy of the GNU General Public License
# along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
#
# Last modified: 27/03/2025
# Last modified: 2025-07-21
#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Expand All @@ -53,16 +53,6 @@ AC_SUBST(DATE2, "$date2")
AC_SUBST(DATE3, "$date3")
AM_CFLAGS="$AM_CFLAGS -Wall"

# Include macros
sinclude(acx_atlas.m4)
sinclude(acx_openblas.m4)
sinclude(acx_fftw.m4)
sinclude(acx_mkl.m4)
sinclude(acx_cfitsio.m4)
sinclude(acx_prog_cc_optim.m4)
sinclude(acx_pthread.m4)
sinclude(acx_urbi_resolve_dir.m4)

# Provide a special option for setting the package release number
AC_ARG_WITH(release,
[AS_HELP_STRING([--with-release=<release number>],
Expand Down Expand Up @@ -310,23 +300,27 @@ if test "$enable_model_fitting" != "no"; then

if test "x$enable_openblas" = "xyes"; then
######## Handle the OpenBLAS library (linear algebra: BLAS + LAPACKe) ########
ACX_OPENBLAS($with_openblas_libdir, $with_openblas_incdir, $use_pthreads, no,
AC_MSG_NOTICE("checking openblas + lapacke")
AX_BLAS(
[
LIBS="$BLAS_LIBS $LIBS"
],
AC_MSG_ERROR([blas error... Exiting.])
)
AX_LAPACK($with_openblas_libdir, $with_openblas_incdir,
[
AM_CFLAGS="$AM_CFLAGS $OPENBLAS_CFLAGS "
AM_LDFLAGS="$AM_LDFLAGS $OPENBLAS_LDFLAGS "
LIBS="$OPENBLAS_LIBS $LIBS"
if test "$OPENBLAS_WARN" != ""; then
AC_MSG_WARN([$OPENBLAS_WARN])
fi
AM_CFLAGS="$AM_CFLAGS $LAPACK_CFLAGS "
AM_LDFLAGS="$AM_LDFLAGS $LAPACK_LDFLAGS "
LIBS="$LAPACK_LIBS $LIBS"
],
AC_MSG_ERROR([$OPENBLAS_ERROR Exiting.])
AC_MSG_ERROR([$LAPACK_ERROR Exiting.])
)
else
######### handle the ATLAS library (linear algebra: BLAS + cLAPACK) ##########
ACX_ATLAS($with_atlas_libdir, $with_atlas_incdir, $use_pthreads,
[
[LIBS="$ATLAS_LIBS $LIBS"]
if test "$ATLAS_WARN" != ""; then
if test -n $ATLAS_WARN ; then
AC_MSG_WARN([$ATLAS_WARN])
fi
],
Expand Down
2 changes: 1 addition & 1 deletion m4/acx_atlas.m4
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if test x$2 = x; then
)
fi

if test x$ATLAS_ERROR = x; then
if test "x$ATLAS_ERROR" = "x"; then
AC_DEFINE_UNQUOTED(ATLAS_BLAS_H, "${acx_atlas_incdir}cblas.h", [BLAS header filename.])
AC_DEFINE_UNQUOTED(ATLAS_LAPACK_H, "${acx_atlas_incdir}clapack.h", [CLAPACK header filename.])

Expand Down
140 changes: 0 additions & 140 deletions m4/acx_openblas.m4

This file was deleted.

Loading