diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-11-06 02:35:46 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:44:27 +0100 |
commit | 26c3cad60f4c04231efb7ff67ce77c5e3d701b58 (patch) | |
tree | 9d27b33e26a4f5700195061b361f54e670dc48b1 /source4/lib/replace | |
parent | dd66e34d416a95c1a1d36b032c72f781b14a13b7 (diff) | |
download | samba-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/lib/replace')
-rw-r--r-- | source4/lib/replace/libreplace_ld.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source4/lib/replace/libreplace_ld.m4 b/source4/lib/replace/libreplace_ld.m4 index 07dd2db231..7f85fb4ccc 100644 --- a/source4/lib/replace/libreplace_ld.m4 +++ b/source4/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) +]) |