From ab38b966e20ecfc5ea0fd6ea1576eb8925071a62 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Tue, 1 Jan 2013 14:46:14 +0100 Subject: [EMBK] autoconf: use more safe with_package variables in recently added defaults Signed-off-by: Abdoulaye Walsimou Gaye --- autoconf/configure.ac | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'autoconf/configure.ac') diff --git a/autoconf/configure.ac b/autoconf/configure.ac index b46fca5648..709fbb5ba3 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -415,10 +415,10 @@ dnl Default cpu (-mcpu=cpu) to use to all compiler invocations AC_ARG_WITH(default-cpu, AS_HELP_STRING([--with-default-cpu], [Add by default -mcpu=cpu to all compiler invocations.]),, - withval="Unknown") + with_default_cpu="Unknown") -if test "$withval" != "Unknown" ; then - AC_DEFINE_UNQUOTED(DEFAULT_TARGET_MCPU,"$withval", +if test "$with_default_cpu" != "Unknown" ; then + AC_DEFINE_UNQUOTED(DEFAULT_TARGET_MCPU,"$with_default_cpu", [Default cpu (-mcpu=cpu) to use to all compiler invocations.]) fi @@ -426,21 +426,21 @@ dnl Default float abi to use to all compiler invocations AC_ARG_WITH(default-float, AS_HELP_STRING([--with-default-float], [Default float abi to use to all compiler invocations.]),, - withval="Unknown") + with_default_float="Unknown") -if test "$withval" != "Unknown" ; then - AC_DEFINE_UNQUOTED(DEFAULT_TARGET_FLOAT,"$withval", +if test "$with_default_float" != "Unknown" ; then + AC_DEFINE_UNQUOTED(DEFAULT_TARGET_FLOAT,"$with_default_float", [Default float abi to use to all compiler invocations.]) fi dnl Default FPU to use to all compiler invocations, in case of hard float -AC_ARG_WITH(default-float, +AC_ARG_WITH(default-fpu, AS_HELP_STRING([--with-default-fpu], [Default FPU to use to all compiler invocations, in case of hard float.]),, - withval="Unknown") + with_default_fpu="Unknown") -if test "$withval" != "Unknown" ; then - AC_DEFINE_UNQUOTED(DEFAULT_TARGET_FPU,"$withval", +if test "$with_default_fpu" != "Unknown" ; then + AC_DEFINE_UNQUOTED(DEFAULT_TARGET_FPU,"$with_default_fpu", [Default FPU to use to all compiler invocations, in case of hard float.]) fi @@ -448,17 +448,17 @@ dnl Default hash-style to use to all linker invocations. AC_ARG_WITH(default-hash-style, AS_HELP_STRING([--with-default-hash-style], [Default hash-style to use to all linker invocations: gnu, sysv or both.]),, - withval="Unknown") + with_default_hash_style="Unknown") -if test "$withval" != "Unknown" ; then - case "$withval" in +if test "$with_default_hash_style" != "Unknown" ; then + case "$with_default_hash_style" in gnu);; sysv);; both);; *) AC_MSG_ERROR([Invalid --with-default-hash-style. Use "sysv", "gnu" or "both"]);; esac - AC_DEFINE_UNQUOTED(DEFAULT_TARGET_HASHSTYLE,"$withval", + AC_DEFINE_UNQUOTED(DEFAULT_TARGET_HASHSTYLE,"$with_default_hash_style", [Default hash-style to use to all linker invocations.]) fi -- cgit v1.2.3