summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-06 02:35:46 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:44:27 +0100
commit26c3cad60f4c04231efb7ff67ce77c5e3d701b58 (patch)
tree9d27b33e26a4f5700195061b361f54e670dc48b1 /source4/build/m4
parentdd66e34d416a95c1a1d36b032c72f781b14a13b7 (diff)
downloadsamba-26c3cad60f4c04231efb7ff67ce77c5e3d701b58.tar.gz
samba-26c3cad60f4c04231efb7ff67ce77c5e3d701b58.tar.bz2
samba-26c3cad60f4c04231efb7ff67ce77c5e3d701b58.zip
r25852: Move SHLIBEXT determination into a test as well.
(This used to be commit aaaed5edc06f3055794e55a8038dbbdac47ce5b6)
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/check_ld.m48
1 files changed, 1 insertions, 7 deletions
diff --git a/source4/build/m4/check_ld.m4 b/source4/build/m4/check_ld.m4
index 77c22bcfd6..460cb15621 100644
--- a/source4/build/m4/check_ld.m4
+++ b/source4/build/m4/check_ld.m4
@@ -18,11 +18,8 @@ AC_SUBST(BLDSHARED)
AC_SUBST(LD)
AC_SUBST(LDFLAGS)
AC_SUBST(SHLD)
-AC_SUBST(SHLD_FLAGS)
AC_SUBST(SHLD_UNDEF_FLAGS)
-AC_SUBST(SHLIBEXT)
AC_SUBST(SONAMEFLAG)
-AC_SUBST(PICFLAG)
# Assume non-shared by default and override below
# these are the defaults, good for lots of systems
@@ -31,7 +28,6 @@ STLD_FLAGS="-rcs"
BLDSHARED="false"
LD="${CC}"
SHLD="${CC}"
-SHLIBEXT="so"
SONAMEFLAG=""
PICFLAG=""
@@ -101,10 +97,8 @@ case "$host_os" in
BLDSHARED="true" # I hope this is correct
fi
if test "$host_cpu" = "ia64"; then
- SHLIBEXT="so"
LDFLAGS="$LDFLAGS -Wl,-E,+b/usr/local/lib/hpux32:/usr/lib/hpux32"
else
- SHLIBEXT="sl"
LDFLAGS="$LDFLAGS -Wl,-E,+b/usr/local/lib:/usr/lib"
fi
;;
@@ -119,7 +113,6 @@ case "$host_os" in
;;
*darwin*)
BLDSHARED="true"
- SHLIBEXT="dylib"
;;
esac
@@ -140,6 +133,7 @@ AC_MSG_RESULT([$STLD_FLAGS])
AC_LD_PICFLAG
AC_LD_EXPORT_DYNAMIC
AC_LD_SHLDFLAGS
+AC_LD_SHLIBEXT
AC_ARG_ENABLE(shared,
[ --disable-shared Disable testing for building shared libraries],