SF.net SVN: geany:[6010] trunk

colombanw at users.sourceforge.net colombanw at xxxxx
Thu Oct 6 00:46:09 UTC 2011


Revision: 6010
          http://geany.svn.sourceforge.net/geany/?rev=6010&view=rev
Author:   colombanw
Date:     2011-10-06 00:46:09 +0000 (Thu, 06 Oct 2011)
Log Message:
-----------
Move configure check for The Force to its own file

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/configure.ac

Added Paths:
-----------
    trunk/m4/geany-the-force.m4

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-10-06 00:45:49 UTC (rev 6009)
+++ trunk/ChangeLog	2011-10-06 00:46:09 UTC (rev 6010)
@@ -5,7 +5,7 @@
  * configure.ac, m4/geany-revision.m4, m4/geany-binreloc.m4,
    m4/geany-gnu-regex.m4, m4/geany-plugins.m4, m4/geany-i18n.m4,
    m4/geany-mingw.m4, m4/geany-socket.m4, m4/geany-vte.m4,
-   m4/geany-utils.m4, m4/geany-status.m4:
+   m4/geany-utils.m4, m4/geany-status.m4, m4/geany-the-force.m4:
    Extract some configure logic to separate files for better
    readability.
 

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2011-10-06 00:45:49 UTC (rev 6009)
+++ trunk/configure.ac	2011-10-06 00:46:09 UTC (rev 6010)
@@ -88,20 +88,8 @@
 
 GEANY_CHECK_SOCKET
 GEANY_CHECK_VTE
+GEANY_CHECK_THE_FORCE dnl hehe
 
-# just for a laugh (it has absolutely no effect)
-AC_ARG_ENABLE([the-force],
-		[AS_HELP_STRING([--enable-the-force],
-				[enable if you are Luke Skywalker and the force is with you [default=no]])],
-		[be_luke="$enableval"],
-		[be_luke="no"])
-AC_MSG_CHECKING([whether the force is with you])
-if test "x$be_luke" = "xyes"; then
-	AC_MSG_RESULT([yes])
-else
-	AC_MSG_RESULT([no])
-fi
-
 # i18n
 GEANY_I18N
 

Added: trunk/m4/geany-the-force.m4
===================================================================
--- trunk/m4/geany-the-force.m4	                        (rev 0)
+++ trunk/m4/geany-the-force.m4	2011-10-06 00:46:09 UTC (rev 6010)
@@ -0,0 +1,17 @@
+dnl GEANY_CHECK_THE_FORCE
+dnl just for a laugh (it has absolutely no effect)
+AC_DEFUN([GEANY_CHECK_THE_FORCE],
+[
+	AC_ARG_ENABLE([the-force],
+			[AS_HELP_STRING([--enable-the-force],
+					[enable if you are Luke Skywalker and the force is with you [default=no]])],
+			[be_luke="$enableval"],
+			[be_luke="no"])
+
+	AC_MSG_CHECKING([whether the force is with you])
+	if test "x$be_luke" = "xyes"; then
+		AC_MSG_RESULT([yes])
+	else
+		AC_MSG_RESULT([no])
+	fi
+])

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list