From 2ae2fb48f0e4dae4f520aafbb058961fdb8f78dd Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 24 Sep 2009 00:13:15 -0700 Subject: [PATCH] add --with-cross-tools=dir to allow to special where cross tools are if they are not in path --- configure.in | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index ecba71648..f19a3d301 100644 --- a/configure.in +++ b/configure.in @@ -66,17 +66,30 @@ dnl dnl Helper bits for cross compiling dnl + + AM_CONDITIONAL(CROSS_COMPILE, test "${cross_compiling}" = yes) +AC_ARG_WITH(cross-tools, + AS_HELP_STRING([--with-cross-tools=dir], [use cross tools in dir]), + [if test "$withval" = "yes"; then + AC_MSG_ERROR([Need path to cross tools]) + fi + with_cross_tools="${with_cross_tools}/" + ]) + +echo "with_cross_tools: ${with_cross_tools}" + if test "${cross_compiling}" != yes ; then + ASN1_COMPILE="\$(top_builddir)/lib/asn1/asn1_compile\$(EXEEXT)" SLC="\$(top_builddir)/lib/sl/slc" ASN1_COMPILE_DEP="\$(ASN1_COMPILE)" SLC_DEP="\$(SLC)" else - ASN1_COMPILE="asn1_compile" - SLC="slc" + ASN1_COMPILE="${with_cross_tools}asn1_compile" + SLC="${with_cross_tools}slc" ASN1_COMPILE_DEP= SLC_DEP=