configure: put swat-part of config into m4-include file of its own.
authorMichael Adam <obnox@samba.org>
Mon, 25 Feb 2008 16:42:12 +0000 (17:42 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 26 Feb 2008 12:56:12 +0000 (13:56 +0100)
Michael
(This used to be commit 622667c0790c0092bfceced8dc6fb05e781ac5e7)

source3/configure.in
source3/m4/swat.m4 [new file with mode: 0644]

index 1c326a8ea23dff4f662def3bfde8d1c189d24180..4fadfd7ae0389454d1a07dce1e21f4a0244d8268 100644 (file)
@@ -145,22 +145,7 @@ CFLAGS="${CFLAGS} -D_SAMBA_BUILD_=3"
 m4_include(lib/socket_wrapper/config.m4)
 m4_include(lib/nss_wrapper/config.m4)
 
-SWAT_SBIN_TARGETS='bin/swat$(EXEEXT)'
-SWAT_INSTALL_TARGETS=installswat
-
-AC_ARG_ENABLE(swat,
-[AS_HELP_STRING([--enable-swat], [Build the SWAT tool (default=yes)])],
-[
-    case "$enable_swat" in
-       no)
-           SWAT_SBIN_TARGETS=''
-           SWAT_INSTALL_TARGETS=''
-           ;;
-    esac
-])
-
-AC_SUBST(SWAT_SBIN_TARGETS)
-AC_SUBST(SWAT_INSTALL_TARGETS)
+m4_include(m4/swat.m4)
 
 # Probe the gcc version for extra CFLAGS. We always stash these in
 # DEVELOPER_CFLAGS, so that you can turn them on and off with a simple
diff --git a/source3/m4/swat.m4 b/source3/m4/swat.m4
new file mode 100644 (file)
index 0000000..2fdd82e
--- /dev/null
@@ -0,0 +1,27 @@
+dnl
+dnl Samba3 build environment SWAT configuration
+dnl
+dnl Copyright (C) Michael Adam 2008
+dnl
+dnl Released under the GNU General Public License
+dnl http://www.gnu.org/licenses/
+dnl
+
+
+SWAT_SBIN_TARGETS='bin/swat$(EXEEXT)'
+SWAT_INSTALL_TARGETS=installswat
+
+AC_ARG_ENABLE(swat,
+[AS_HELP_STRING([--enable-swat], [Build the SWAT tool (default=yes)])],
+[
+    case "$enable_swat" in
+       no)
+           SWAT_SBIN_TARGETS=''
+           SWAT_INSTALL_TARGETS=''
+           ;;
+    esac
+])
+
+AC_SUBST(SWAT_SBIN_TARGETS)
+AC_SUBST(SWAT_INSTALL_TARGETS)
+