Allow Spike to build on NetBSD
[riscv-isa-sim.git] / spike_main / spike_main.ac
index f8d63cee07c5ac5500d3cddd065741be65fa84c1..b913c35288422273d4009b86835293da95badbe4 100644 (file)
@@ -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])
+])