svn commit: samba r17696 - in branches/SAMBA_4_0/source/lib/ldb: .

tridge at samba.org tridge at samba.org
Tue Aug 22 05:27:33 GMT 2006


Author: tridge
Date: 2006-08-22 05:27:33 +0000 (Tue, 22 Aug 2006)
New Revision: 17696

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17696

Log:

attempt to allow ldb to use an external popt directory, so we can
point it at the popt sources in the samba source tree when building in
the build farm

Added:
   branches/SAMBA_4_0/source/lib/ldb/popt.m4
Modified:
   branches/SAMBA_4_0/source/lib/ldb/Makefile.in


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/Makefile.in
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/Makefile.in	2006-08-22 04:34:06 UTC (rev 17695)
+++ branches/SAMBA_4_0/source/lib/ldb/Makefile.in	2006-08-22 05:27:33 UTC (rev 17696)
@@ -8,13 +8,14 @@
 libdir = @libdir@
 bindir = @bindir@
 mandir = @mandir@
-VPATH = @srcdir@:@srcdir@/..
+VPATH = @srcdir@:@srcdir@/..:@POPTDIR@
 srcdir = @srcdir@
 builddir = @builddir@
 WITH_GCOV = @WITH_GCOV@
 WITH_LDAP = @WITH_LDAP@
 SLAPD = @SLAPD@
 WITH_SQLITE3 = @WITH_SQLITE3@
+POPTOBJ = @POPTOBJ@
 
 ifeq ($(WITH_LDAP),yes)
 OPENLDAP_PREFIX=/usr
@@ -71,7 +72,7 @@
 	   $(MODDIR)/objectclass.o \
 	   $(MODDIR)/paged_results.o $(MODDIR)/sort.o $(MODDIR)/asq.o
 
-OBJS =  $(MODULES_OBJ) $(COMMON_OBJ) $(LDB_TDB_OBJ) $(TDB_OBJ) $(TALLOC_OBJ) $(LDB_LDAP_OBJ) $(LDB_SQLITE3_OBJ)
+OBJS =  $(MODULES_OBJ) $(COMMON_OBJ) $(LDB_TDB_OBJ) $(TDB_OBJ) $(TALLOC_OBJ) $(LDB_LDAP_OBJ) $(LDB_SQLITE3_OBJ) $(POPTOBJ)
 
 LDB_LIB = lib/libldb.a
 

Added: branches/SAMBA_4_0/source/lib/ldb/popt.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/popt.m4	2006-08-22 04:34:06 UTC (rev 17695)
+++ branches/SAMBA_4_0/source/lib/ldb/popt.m4	2006-08-22 05:27:33 UTC (rev 17696)
@@ -0,0 +1,29 @@
+#################################################
+# Check to see if we should use an external src dir
+
+POPTDIR=""
+AC_ARG_WITH(popt-src,
+[  --with-popt-src    set location of popt source],
+[
+case "$withval" in
+        yes|no)
+		AC_MSG_ERROR([--with-popt-src called without argument])
+                ;;
+        *)
+                POPTDIR="$withval"
+                ;;
+esac ],
+)
+
+if test x"$POPTDIR" = x; then
+        AC_CHECK_HEADERS(popt.h)
+        AC_CHECK_LIB(popt, poptGetContext)
+else
+	POPTOBJ="findme.o popt.o poptconfig.o popthelp.o poptparse.o"
+	CFLAGS="$CFLAGS -I$POPTDIR"
+fi
+
+AC_CHECK_HEADERS([float.h alloca.h])
+AC_CHECK_FUNCS(strerror)
+AC_SUBST(POPTOBJ)
+AC_SUBST(POPTDIR)



More information about the samba-cvs mailing list