aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure24
-rwxr-xr-xconfigure.ac16
2 files changed, 40 insertions, 0 deletions
diff --git a/configure b/configure
index 780c765..bd5ae81 100755
--- a/configure
+++ b/configure
@@ -687,6 +687,8 @@ with_jim_ext
with_out_jim_ext
with_jim_extmod
with_jim_shared
+enable_shared
+enable_static
'
ac_precious_vars='build_alias
host_alias
@@ -1316,6 +1318,8 @@ Optional Features:
--disable-fork do not use fork (no exec, etc.)
--enable-math include support for math functions
--enable-ipv6 include ipv6 support in the aio extension
+ --enable-shared build a shared library instead of a static library
+ --enable-static build a static library instead of a shared library
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -3698,6 +3702,26 @@ if test "${with_jim_shared+set}" = set; then :
fi
+# Check whether --enable-shared was given.
+if test "${enable_shared+set}" = set; then :
+ enableval=$enable_shared;
+ if test "x$enableval" = "xyes" ; then
+ JIM_LIBTYPE=shared
+ fi
+
+
+fi
+
+# Check whether --enable-static was given.
+if test "${enable_static+set}" = set; then :
+ enableval=$enable_static;
+ if test "x$enableval" = "xyes" ; then
+ JIM_LIBTYPE=static
+ fi
+
+
+fi
+
JIM_LIBTYPE=$JIM_LIBTYPE
diff --git a/configure.ac b/configure.ac
index 7554ecc..46d36c2 100755
--- a/configure.ac
+++ b/configure.ac
@@ -164,6 +164,22 @@ AC_ARG_WITH(jim-shared,
fi
]
)
+AC_ARG_ENABLE(shared,
+ [ --enable-shared build a shared library instead of a static library],
+ [
+ if test "x$enableval" = "xyes" ; then
+ JIM_LIBTYPE=shared
+ fi
+ ]
+)
+AC_ARG_ENABLE(static,
+ [ --enable-static build a static library instead of a shared library],
+ [
+ if test "x$enableval" = "xyes" ; then
+ JIM_LIBTYPE=static
+ fi
+ ]
+)
AC_SUBST(JIM_LIBTYPE,$JIM_LIBTYPE)
AC_CHECK_HEADERS([sys/un.h dlfcn.h])