diff mbox

[PATCHv7,1/3] configure.ac: add sdk-install-path variable

Message ID 1406636024-5348-2-git-send-email-anders.roxell@linaro.org
State Accepted
Commit b8d16ef019afdd2371eca3645e61704098d19220
Headers show

Commit Message

Anders Roxell July 29, 2014, 12:13 p.m. UTC
Makes it easier for external libs and headers if they aren't in the
default path.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-and-Tested-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
---
 configure.ac | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index 97089e9..3791802 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,15 @@  AC_ARG_WITH([platform],
 
 AC_SUBST([with_platform])
 
+AC_ARG_WITH([sdk-install-path],
+AC_HELP_STRING([--with-sdk-install-path=DIR Path to external libs and headers],
+               [(or in the default path if not specified).]),
+[SDK_INSTALL_PATH=$withval SDK_INSTALL_PATH_=1],[SDK_INSTALL_PATH_=])
+
+AC_SUBST(SDK_INSTALL_PATH)
+
+AM_CONDITIONAL([SDK_INSTALL_PATH_], [test "x${SDK_INSTALL_PATH_}" = "x1"])
+
 ##########################################################################
 # Enable/disable netmap support
 ##########################################################################