summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac10
2 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 71876b7..edea43b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,7 +7,7 @@ librtclient_la_SOURCES = \
search.c
librtclient_la_CPPFLAGS = -I${prefix}/include
librtclient_la_LDFLAGS = -L${prefix}/lib
-if EMSCRIPTEN
+if WASM
librtclient_la_LDFLAGS += -static
else
librtclient_la_CPPFLAGS += $(CURL_CFLAGS)
diff --git a/configure.ac b/configure.ac
index 0edd8a3..da76e45 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,11 +4,12 @@ AC_PROG_CC
AM_PROG_AR
LT_INIT
AC_CANONICAL_HOST
-case $host_os in
- *emscripten* ) emscripten=true;;
- *) emscripten=false;;
+case $host_cpu in
+ *wasm* ) wasm=true;;
+ *) wasm=false;;
esac
-if test "x$emscripten" = "xfalse"; then
+AM_CONDITIONAL([WASM], [test x$wasm = xtrue])
+if test "x$wasm" = "xfalse"; then
PKG_CHECK_MODULES([CURL], [libcurl])
fi
AC_CHECK_HEADERS([stddef.h])
@@ -19,7 +20,6 @@ AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
-AM_CONDITIONAL([EMSCRIPTEN], [test x$emscripten = xtrue])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT