summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorjelmer <jelmer@samba.org>2007-11-06 02:35:46 +0000
committerStefan Metzmacher <metze@samba.org>2007-11-06 09:38:58 +0100
commita2cf98daf039d3836a5d58404c536e6a111b4aad (patch)
treedb5a59cb775248ad51b5c2ab8226eede08331a27 /source3/lib
parentb8fdd9e38388199478c9b9e6a4de11efec7959ea (diff)
downloadsamba-a2cf98daf039d3836a5d58404c536e6a111b4aad.tar.gz
samba-a2cf98daf039d3836a5d58404c536e6a111b4aad.tar.bz2
samba-a2cf98daf039d3836a5d58404c536e6a111b4aad.zip
Move SHLIBEXT determination into a test as well.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25852 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 322cf8002bab1e449616d9fcea0bd4c9535cfe6a)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/replace/libreplace_ld.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/lib/replace/libreplace_ld.m4 b/source3/lib/replace/libreplace_ld.m4
index 07dd2db231..7f85fb4ccc 100644
--- a/source3/lib/replace/libreplace_ld.m4
+++ b/source3/lib/replace/libreplace_ld.m4
@@ -101,3 +101,21 @@ AC_DEFUN([AC_LD_SHLDFLAGS],
AC_SUBST(SHLD_FLAGS)
])
+
+AC_DEFUN([AC_LD_SHLIBEXT],
+[
+ SHLIBEXT="so"
+ case "$host_os" in
+ *hpux*)
+ if test "$host_cpu" = "ia64"; then
+ SHLIBEXT="so"
+ else
+ SHLIBEXT="sl"
+ fi
+ ;;
+ *darwin*)
+ SHLIBEXT="dylib"
+ ;;
+ esac
+ AC_SUBST(SHLIBEXT)
+])