diff mbox

[PATCHv2,06/10] configure: move test_helper to its own m4 file

Message ID 1459275814-19876-7-git-send-email-anders.roxell@linaro.org
State Accepted
Commit bdb67e61b83f334fdda25604ccae170e9dc249fa
Headers show

Commit Message

Anders Roxell March 29, 2016, 6:23 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 configure.ac           | 13 ++-----------
 helper/m4/configure.m4 |  9 +++++++++
 2 files changed, 11 insertions(+), 11 deletions(-)
 create mode 100644 helper/m4/configure.m4
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index 0a9918b..8ba0538 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,6 +84,7 @@  AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"])
 ##########################################################################
 # Include m4 files
 ##########################################################################
+m4_include([./helper/m4/configure.m4])
 m4_include([./test/m4/configure.m4])
 
 ##########################################################################
@@ -140,6 +141,7 @@  AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"])
 AM_CONDITIONAL([test_installdir], [test "$testdir" != ""])
 AM_CONDITIONAL([test_perf], [test x$test_perf = xyes ])
 AM_CONDITIONAL([test_cpp], [test x$test_cpp = xyes ])
+AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ])
 
 ##########################################################################
 # Setup doxygen documentation
@@ -162,17 +164,6 @@  AC_ARG_ENABLE([test_vald],
 AM_CONDITIONAL([test_vald], [test x$test_vald = xyes ])
 
 ##########################################################################
-# Enable/disable test-helper
-##########################################################################
-test_helper=no
-AC_ARG_ENABLE([test-helper],
-    [  --enable-test-helper      run test in helper/test],
-    [if test "x$enableval" = "xyes"; then
-        test_helper=yes
-    fi])
-
-AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ])
-##########################################################################
 # Set optional CUnit path
 ##########################################################################
 AC_ARG_WITH([cunit-path],
diff --git a/helper/m4/configure.m4 b/helper/m4/configure.m4
new file mode 100644
index 0000000..480f79b
--- /dev/null
+++ b/helper/m4/configure.m4
@@ -0,0 +1,9 @@ 
+##########################################################################
+# Enable/disable test-helper
+##########################################################################
+test_helper=no
+AC_ARG_ENABLE([test-helper],
+    [  --enable-test-helper      run test in helper/test],
+    [if test "x$enableval" = "xyes"; then
+        test_helper=yes
+    fi])