summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-24 09:28:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:50 -0500
commit938a0bc9ac657df7a1b530b9c2e9c7b2cdfaff6c (patch)
treebb0c9e6f93ae772cf6eae3b12185fa9cabb7fb60
parenta32b648ea133712cc496c0cb721967642634a4da (diff)
downloadsamba-938a0bc9ac657df7a1b530b9c2e9c7b2cdfaff6c.tar.gz
samba-938a0bc9ac657df7a1b530b9c2e9c7b2cdfaff6c.tar.bz2
samba-938a0bc9ac657df7a1b530b9c2e9c7b2cdfaff6c.zip
r23110: add --disable-shared option, very useful for the build-farm...
metze (This used to be commit 251d534a883efd384e0951c9af595203d962b972)
-rw-r--r--source4/build/m4/check_ld.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/source4/build/m4/check_ld.m4 b/source4/build/m4/check_ld.m4
index 8e0a709a3a..9bc96fb83f 100644
--- a/source4/build/m4/check_ld.m4
+++ b/source4/build/m4/check_ld.m4
@@ -47,7 +47,7 @@ else
fi
])
-AC_MSG_CHECKING([ability to build shared libraries])
+AC_MSG_CHECKING([whether to try to build shared libraries on $host_os])
# and these are for particular systems
case "$host_os" in
@@ -167,6 +167,14 @@ AC_MSG_RESULT([$STLD])
AC_MSG_CHECKING([STLD_FLAGS])
AC_MSG_RESULT([$STLD_FLAGS])
+AC_ARG_ENABLE(shared,
+[ --disable-shared Disable testing for building shared libraries],
+[],[enable_shared=yes])
+
+if test x"$enable_shared" = x"no" -o x"$enable_shared" = x"false"; then
+ BLDSHARED=false
+fi
+
#######################################################
# test whether building a shared library actually works
if test $BLDSHARED = true; then
@@ -231,7 +239,7 @@ USESHARED=false
AC_SUBST(USESHARED)
AC_ARG_ENABLE(dso,
-[ --enable-dso Enable using shared libraries internally (experimental)],
+[ --enable-dso Enable using shared libraries internally (experimental)],
[],[enable_dso=no])
if test x"$enable_dso" = x"yes" -a x"$BLDSHARED" != x"true"; then