Samba 3.3.4 aclocal.m4 change for detecting
DMAPI on AIX
William Jojo
w.jojo at hvcc.edu
Thu Jun 4 02:35:43 GMT 2009
If there is no objection, I'd like to recommend a minor change to the way DMAPI support is detected. This is based on some pain felt when building 32-bit and 64-bit Clustered Samba on AIX with GPFS support.
Part of the problem lies in AIX only providing 32-bit shared object in libxdsm.a(shr.o). So without libdmapi.a from gpfs.base, you get no DMAPI support under 64-bit. :-(
The other part of the problem is the inconsistency with which we could detect the proper DMAPI support for the clustered build.
Under 32-bit we'd pass the test on libxdsm.a and ignore the more proper libdmapi.a from GPFS which is what you really want.
Under 64-bit we'd fail the test on libxdsm.a due to missing 64-bit shared object and use the correct one out of, well, luck.
This patch checks for libdmapi.a first regardless of the object mode size.
<snip>
--- ./m4/aclocal.m4.orig 2009-06-03 19:50:11.000000000 -0400
+++ ./m4/aclocal.m4 2009-06-03 19:52:15.000000000 -0400
@@ -681,13 +681,13 @@
fi
if test x"$samba_dmapi_libs" = x"" ; then
- AC_CHECK_LIB(xdsm, dm_get_eventlist,
- [samba_dmapi_libs="-lxdsm"], [])
+ AC_CHECK_LIB(dmapi, dm_get_eventlist,
+ [samba_dmapi_libs="-ldmapi"], [])
fi
if test x"$samba_dmapi_libs" = x"" ; then
- AC_CHECK_LIB(dmapi, dm_get_eventlist,
- [samba_dmapi_libs="-ldmapi"], [])
+ AC_CHECK_LIB(xdsm, dm_get_eventlist,
+ [samba_dmapi_libs="-lxdsm"], [])
fi
</snip>
Cheers,
Bill
More information about the samba-technical
mailing list