From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>
---
/** Email created from pull request 235 (lumag:plat-def-2)
 ** https://github.com/Linaro/odp/pull/235
 ** Patch: https://github.com/Linaro/odp/pull/235.patch
 ** Base sha: ec0c3145fcafa09ae3a79875e7e07dd4794583cc
 ** Merge commit sha: c7d08f738718f049cece37227820be39f1274875
 **/
 configure.ac                             | 3 ---
 platform/linux-generic/m4/configure.m4   | 4 ++++
 platform/linux-generic/m4/odp_netmap.m4  | 2 ++
 platform/linux-generic/m4/odp_pcap.m4    | 4 +++-
 platform/linux-generic/m4/performance.m4 | 2 ++
 5 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 80bc3122a..fbf8fe2dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,9 +162,6 @@ AC_ARG_WITH([platform],
 
 AC_SUBST([with_platform])
 
-AM_CONDITIONAL([PLATFORM_IS_LINUX_GENERIC],
-              [test "x$with_platform" = "xlinux-generic"])
-
 ##########################################################################
 # Run platform specific checks and settings
 ##########################################################################
diff --git a/platform/linux-generic/m4/configure.m4 
b/platform/linux-generic/m4/configure.m4
index 7dc83bf87..68a270d89 100644
--- a/platform/linux-generic/m4/configure.m4
+++ b/platform/linux-generic/m4/configure.m4
@@ -11,6 +11,9 @@ m4_include([platform/linux-generic/m4/odp_schedule.m4])
 
 m4_include([platform/linux-generic/m4/performance.m4])
 
+AC_CONFIG_COMMANDS_PRE([dnl
+AM_CONDITIONAL([PLATFORM_IS_LINUX_GENERIC],
+              [test "${with_platform}" = "linux-generic"])
 AC_CONFIG_FILES([platform/linux-generic/Makefile
                 platform/linux-generic/libodp-linux.pc
                 platform/linux-generic/include/odp/api/plat/static_inline.h
@@ -21,3 +24,4 @@ AC_CONFIG_FILES([platform/linux-generic/Makefile
                 platform/linux-generic/test/pktio_ipc/Makefile
                 platform/linux-generic/test/ring/Makefile
                 platform/linux-generic/test/performance/Makefile])
+])
diff --git a/platform/linux-generic/m4/odp_netmap.m4 
b/platform/linux-generic/m4/odp_netmap.m4
index bd04824bb..e14a027f9 100644
--- a/platform/linux-generic/m4/odp_netmap.m4
+++ b/platform/linux-generic/m4/odp_netmap.m4
@@ -43,4 +43,6 @@ fi
 ##########################################################################
 CPPFLAGS=$OLD_CPPFLAGS
 
+AC_CONFIG_COMMANDS_PRE([dnl
 AM_CONDITIONAL([netmap_support], [test x$netmap_support = xyes ])
+])
diff --git a/platform/linux-generic/m4/odp_pcap.m4 
b/platform/linux-generic/m4/odp_pcap.m4
index 0b5b8a2e2..0a8f35186 100644
--- a/platform/linux-generic/m4/odp_pcap.m4
+++ b/platform/linux-generic/m4/odp_pcap.m4
@@ -15,4 +15,6 @@ fi
 
 AC_SUBST([PCAP_LIBS])
 
-AM_CONDITIONAL([HAVE_PCAP], [test $have_pcap = yes])
+AC_CONFIG_COMMANDS_PRE([dnl
+AM_CONDITIONAL([HAVE_PCAP], [test x$have_pcap = xyes])
+])
diff --git a/platform/linux-generic/m4/performance.m4 
b/platform/linux-generic/m4/performance.m4
index 05b3a9905..f2e7107c0 100644
--- a/platform/linux-generic/m4/performance.m4
+++ b/platform/linux-generic/m4/performance.m4
@@ -5,4 +5,6 @@ AC_ARG_ENABLE([test-perf-proc],
     [AS_HELP_STRING([--enable-test-perf-proc], [run test in test/performance 
in process mode])],
     [test_perf_proc=$enableval],
     [test_perf_proc=yes])
+AC_CONFIG_COMMANDS_PRE([dnl
 AM_CONDITIONAL([test_perf_proc], [test x$test_perf_proc = xyes ])
+])

Reply via email to