The tests of cmaths function will be done only on request,

with configure flag --enable-cmathtests
This commit is contained in:
Holger Vogt 2020-08-13 22:42:35 +02:00
parent ca27319213
commit 1698004078
2 changed files with 8 additions and 0 deletions

View File

@ -185,6 +185,10 @@ AC_ARG_ENABLE([ndev],
AC_ARG_ENABLE([cluster],
[AS_HELP_STRING([--enable-cluster], [Enable cluster support, (experimental)])])
# --enable-cmathtests: run the ancient tests in src/math/cmaths
AC_ARG_ENABLE([cmathtests],
[AS_HELP_STRING([--enable-cmathtests], [Enable ancient tests in src/math/cmaths])])
# --enable-help: try to force --ansi option to the compiler
AC_ARG_ENABLE([help],
[AS_HELP_STRING([--enable-help], [Force building nghelp (deprecated)])])
@ -987,6 +991,8 @@ AX_PROG_BISON_VERSION([2.7], [],
AC_MSG_WARN([Bison is older than 2.7])])
AC_PROG_LEX
AM_CONDITIONAL([CMATHTESTS], [test "x$enable_cmathtests" = xyes])
################# XSPICE ##################################################
# Add new code models to the build by pointing to them here.

View File

@ -13,6 +13,7 @@ libcmaths_la_SOURCES = \
cmath4.c \
cmath4.h
if CMATHTESTS
if !TCL_MODULE
if !WINGUI
if !SHARED_MODULE
@ -56,6 +57,7 @@ TESTS = test_cx_mag test_cx_j test_cx_ph test_cx_cph
endif !SHARED_MODULE
endif !WINGUI
endif !TCL_MODULE
endif CMATHTESTS
AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(top_srcdir)/src/include -I$(top_srcdir)/src/maths/poly
AM_CFLAGS = $(STATIC)