summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-12 12:11:00 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-12 12:11:00 +0200
commit0824091315296ab3da27856b76e7422348d3850d (patch)
tree02c5b7d136d8fc306739d9ff03b9b5e640403f7e
parent2dde0d30145d774df263b13cbd142eddda15cc10 (diff)
downloadllvm-0824091315296ab3da27856b76e7422348d3850d.tar.gz
llvm-0824091315296ab3da27856b76e7422348d3850d.tar.bz2
llvm-0824091315296ab3da27856b76e7422348d3850d.tar.xz
[Embtk] autoconf: fix build error when no hash-style configured
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--autoconf/configure.ac4
-rwxr-xr-xconfigure2
2 files changed, 3 insertions, 3 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index a5276a59e3..9792ae407d 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -481,9 +481,9 @@ if test "x$with_default_hash_style" != "x" ; then
*)
AC_MSG_ERROR([Invalid --with-default-hash-style. Use "sysv", "gnu" or "both"]);;
esac
- AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_HASHSTYLE],"$with_default_hash_style",
- [Default hash-style to use to all linker invocations.])
fi
+AC_DEFINE_UNQUOTED([LLVM_DEFAULT_TARGET_HASHSTYLE],"$with_default_hash_style",
+ [Default hash-style to use to all linker invocations.])
dnl Default cpu (-mabi=abi) to use to all compiler invocations
AC_ARG_WITH(default-abi,
diff --git a/configure b/configure
index 8b4ed65855..878f81886b 100755
--- a/configure
+++ b/configure
@@ -4143,12 +4143,12 @@ if test "x$with_default_hash_style" != "x" ; then
echo "$as_me: error: Invalid --with-default-hash-style. Use \"sysv\", \"gnu\" or \"both\"" >&2;}
{ (exit 1); exit 1; }; };;
esac
+fi
cat >>confdefs.h <<_ACEOF
#define LLVM_DEFAULT_TARGET_HASHSTYLE "$with_default_hash_style"
_ACEOF
-fi
# Check whether --with-default-abi was given.