Skip to content

Commit 0a1c40b

Browse files
committed
Don't allow --enable-selftest with empty file
It probably won't compile anyway.
1 parent 2ef096a commit 0a1c40b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6602,6 +6602,9 @@ AS_CASE([$ENABLED_SELFTEST],
66026602
SELFTEST_VERSION="v1"
66036603
])
66046604
6605+
AS_IF([test "x$ENABLED_SELFTEST" = "xyes" && test ! -s "${srcdir}/wolfcrypt/src/selftest.c"],
6606+
[AC_MSG_ERROR([selftest.c is missing, --enable-selftest requires the CAVP selftest source])])
6607+
66056608
AS_CASE([$SELFTEST_VERSION],
66066609
["v2"],[
66076610
AM_CFLAGS="$AM_CFLAGS -DHAVE_SELFTEST -DHAVE_SELFTEST_VERSION=2 -DHAVE_PUBLIC_FFDHE"

0 commit comments

Comments
 (0)