From 65ba70071d11cc19b3dc85c047c5fea6d4d7bc0d Mon Sep 17 00:00:00 2001 From: Reinoud Zandijk Date: Mon, 29 Dec 2014 13:06:09 -0800 Subject: [PATCH] Allow Spike to build on NetBSD Under NetBSD, dlopen() is in libc so no extra libs are needed. --- spike_main/spike_main.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spike_main/spike_main.ac b/spike_main/spike_main.ac index f8d63ce..b913c35 100644 --- a/spike_main/spike_main.ac +++ b/spike_main/spike_main.ac @@ -1 +1,3 @@ -AC_CHECK_LIB(dl, dlopen, [], [AC_MSG_ERROR([libdl is required])]) +AC_SEARCH_LIBS([dlopen], [dl dld], [], [ + AC_MSG_ERROR([unable to find the dlopen() function]) +]) -- 2.30.2