svn commit: samba r8972 - in branches/SAMBA_4_0/source: .
build/smb_build lib/cmdline
jelmer at samba.org
jelmer at samba.org
Wed Aug 3 01:46:34 GMT 2005
Author: jelmer
Date: 2005-08-03 01:46:33 +0000 (Wed, 03 Aug 2005)
New Revision: 8972
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8972
Log:
More simplifications...
Modified:
branches/SAMBA_4_0/source/build/smb_build/makefile.pm
branches/SAMBA_4_0/source/configure.in
branches/SAMBA_4_0/source/lib/cmdline/config.m4
Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===================================================================
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2005-08-03 01:08:42 UTC (rev 8971)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2005-08-03 01:46:33 UTC (rev 8972)
@@ -3,6 +3,7 @@
### - create output for Makefile ###
### ###
### Copyright (C) Stefan (metze) Metzmacher 2004 ###
+### Copyright (C) Jelmer Vernooij 2005 ###
### Released under the GNU GPL ###
###########################################################
@@ -15,13 +16,13 @@
my $output;
$output = << '__EOD__';
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-VPATH=@srcdir@
-srcdir=@srcdir@
-builddir=@builddir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+VPATH = @srcdir@
+srcdir = @srcdir@
+builddir = @builddir@
-BASEDIR= @prefix@
+BASEDIR = @prefix@
BINDIR = @bindir@
SBINDIR = @sbindir@
LIBDIR = @libdir@
@@ -107,13 +108,11 @@
__EOD__
}
-sub _prepare_IDL($)
+sub _prepare_IDL()
{
- my $ctx = shift;
-
return << '__EOD__';
idl_full: build/pidl/Parse/Pidl/IDL.pm
- CPP="$(CPP)" PERL="$(PERL)" script/build_idl.sh FULL @PIDL_ARGS@
+ @CPP="$(CPP)" PERL="$(PERL)" script/build_idl.sh FULL @PIDL_ARGS@
idl: build/pidl/Parse/Pidl/IDL.pm
@CPP="$(CPP)" PERL="$(PERL)" script/build_idl.sh PARTIAL @PIDL_ARGS@
@@ -442,11 +441,10 @@
{
my $ctx = shift;
my $tmpdepend = array2oneperline($ctx->{DEPEND_LIST});
- my $output;
return "" unless $ctx->{TARGET};
- $output = "$ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST = $tmpdepend\n";
+ my $output = "$ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST = $tmpdepend\n";
$output .= "$ctx->{TARGET}: ";
$output .= "\$($ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST) \$($ctx->{TYPE}_$ctx->{NAME}_OBJS)\n";
$output .= "\t\@touch $ctx->{TARGET}\n";
@@ -516,16 +514,12 @@
sub _prepare_binary_rule($)
{
my $ctx = shift;
- my $tmpdepend;
- my $tmplink;
- my $tmpflag;
- my $output;
- $tmpdepend = array2oneperline($ctx->{DEPEND_LIST});
- $tmplink = array2oneperline($ctx->{LINK_LIST});
- $tmpflag = array2oneperline($ctx->{LINK_FLAGS});
+ my $tmpdepend = array2oneperline($ctx->{DEPEND_LIST});
+ my $tmplink = array2oneperline($ctx->{LINK_LIST});
+ my $tmpflag = array2oneperline($ctx->{LINK_FLAGS});
- $output = << "__EOD__";
+ my $output = << "__EOD__";
#
BINARY_$ctx->{NAME}_DEPEND_LIST =$tmpdepend
BINARY_$ctx->{NAME}_LINK_LIST =$tmplink
@@ -692,7 +686,7 @@
# DESTDIR is used here to prevent packagers wasting their time
# duplicating the Makefile. Remove it and you will have the privilege
-# of package each samba release for multiple versions of multiple
+# of packaging each samba release for multiple versions of multiple
# distributions and operating systems, or at least supplying patches
# to all the packaging files required for this, prior to committing
# the removal of DESTDIR. Do not remove it even though you think it
@@ -724,7 +718,6 @@
@$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(MANPAGES)
# Swig extensions
-
swig: scripting/swig/_tdb.so scripting/swig/_dcerpc.so
scripting/swig/tdb_wrap.c: scripting/swig/tdb.i
@@ -776,8 +769,7 @@
($output .= _prepare_custom_rule($key) ) if $key->{TYPE} eq "TARGET";
}
- my $idl_ctx;
- $output .= _prepare_IDL($idl_ctx);
+ $output .= _prepare_IDL();
$output .= _prepare_proto_rules();
$output .= _prepare_install_rules($depend);
@@ -807,8 +799,8 @@
$output .= _prepare_default_rule();
$output .= _prepare_SUFFIXES();
$output .= _prepare_dummy_MAKEDIR();
- $output .= _prepare_std_CC_rule("c","o",'@PICFLAG@',"Compiling","Rule for std objectfiles");
- $output .= _prepare_std_CC_rule("h","h.gch",'@PICFLAG@',"Precompiling","Rule for precompiled headerfiles");
+ $output .= _prepare_std_CC_rule("c","o",$config{PICFLAG},"Compiling","Rule for std objectfiles");
+ $output .= _prepare_std_CC_rule("h","h.gch",$config{PICFLAG},"Precompiling","Rule for precompiled headerfiles");
$output .= _prepare_lex_rule();
$output .= _prepare_yacc_rule();
$output .= _prepare_et_rule();
Modified: branches/SAMBA_4_0/source/configure.in
===================================================================
--- branches/SAMBA_4_0/source/configure.in 2005-08-03 01:08:42 UTC (rev 8971)
+++ branches/SAMBA_4_0/source/configure.in 2005-08-03 01:46:33 UTC (rev 8972)
@@ -40,19 +40,6 @@
sinclude(auth/config.m4)
sinclude(kdc/config.m4)
-ALLLIBS_LIBS="$LIBS"
-ALLLIBS_CFLAGS="$CFLAGS"
-ALLLIBS_CPPFLAGS="$CPPFLAGS"
-ALLLIBS_LDFLAGS="$LDFLAGS"
-
-SMB_EXT_LIB_ENABLE(ALLLIBS,YES)
-
-SMB_EXT_LIB(ALLLIBS,
- [${ALLLIBS_LIBS}],
- [${ALLLIBS_CFLAGS}],
- [${ALLLIBS_CPPFLAGS}],
- [${ALLLIBS_LDFLAGS}])
-
AC_DEFINE_UNQUOTED(STRING_STATIC_MODULES, "$string_static_modules", [String list of builtin modules])
#################################################
Modified: branches/SAMBA_4_0/source/lib/cmdline/config.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/cmdline/config.m4 2005-08-03 01:08:42 UTC (rev 8971)
+++ branches/SAMBA_4_0/source/lib/cmdline/config.m4 2005-08-03 01:46:33 UTC (rev 8972)
@@ -76,7 +76,7 @@
SMB_SUBSYSTEM(LIBCMDLINE,[],
[${TMP_LIBCMDLINE_OBJS}],
- [LIBPOPT EXT_LIB_READLINE EXT_LIB_ALLLIBS LIBCMDLINE_CREDENTIALS])
+ [LIBPOPT EXT_LIB_READLINE LIBCMDLINE_CREDENTIALS])
AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[
SAVE_CPPFLAGS="$CPPFLAGS"
More information about the samba-cvs
mailing list