Luis Mu?oz wrote:>
> Dear folks:
>
> First of all, thanks for a great product and please do keep up your fine
> job with samba.
>
> As a humble contribution to your project, below is a patch to configure.in
> that allows libsmbclient.so to be correctly built in my system (Mac with
> Mac OS X). I hope this to be useful.
Yes, it looks useful, but see below...
> I also noted that the generated Makefile, did not correctly install the
> library as the 'install' command lacks a target directory. Seeing
that some
> other things seem to ignore the --with-prefix, I prefer to just report this
> instead of producing patches.
>
> Regards.
>
> -lem
>
> lem@dC8541540 source> uname -a
> Darwin dC8541540.dslam-06-2-1-03-01-02.tdd.dsl.cantv.net 5.5 Darwin Kernel
> Version 5.5: Thu May 30 14:51:26 PDT 2002;
> root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC Power Macintosh powerpc
>
> *** configure.in-orig Fri Oct 25 23:50:47 2002
> --- configure.in Sat Oct 26 01:04:43 2002
> ***************
> *** 855,860 ****
> --- 855,868 ----
> SONAMEFLAG="-Wl,-soname="
> AC_DEFINE(STAT_ST_BLOCKSIZE,512)
> ;;
> + *darwin*) AC_DEFINE(DARWIN)
> + BLDSHARED="true"
> + LDSHFLAGS="-dynamic"
> + PICFLAG="-fPIC"
> + SHLD="libtool"
I was about to apply this, but why do we need to involve libtool here?
(Yes, there is a long history to this issue... )
> + LIBS="${LIBS} -lc -lcc_dynamic"
> + CFLAGS="-dynamic -fno-common ${CFLAGS}"
> + ;;
> *solaris*) AC_DEFINE(SUNOS5)
> BLDSHARED="true"
> LDSHFLAGS="-G"
>
Andrew Bartlett
--
Andrew Bartlett abartlet@pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet@samba.org
Student Network Administrator, Hawker College abartlet@hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net