aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2019-09-28 22:53:51 +0800
committerGitHub <noreply@github.com>2019-09-28 22:53:51 +0800
commit44316f6eb133f164c6bb1670c1eaff7ef2a31a70 (patch)
tree4949913ef43c56c084893dfbade6712b6d10ec9f /configure
parent8352a043099034cfce734a20bdaf521f3dc4e61c (diff)
parente708c776877aba27c9a3b659ac539a7e38553a27 (diff)
downloadriscv-gnu-toolchain-44316f6eb133f164c6bb1670c1eaff7ef2a31a70.zip
riscv-gnu-toolchain-44316f6eb133f164c6bb1670c1eaff7ef2a31a70.tar.gz
riscv-gnu-toolchain-44316f6eb133f164c6bb1670c1eaff7ef2a31a70.tar.bz2
Merge pull request #513 from riscv/with-src
Add option to specify source tree of each component
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure160
1 files changed, 160 insertions, 0 deletions
diff --git a/configure b/configure
index d30dfde..b6c9279 100755
--- a/configure
+++ b/configure
@@ -584,6 +584,13 @@ PACKAGE_URL=''
ac_subst_vars='LTLIBOBJS
LIBOBJS
+with_linux_headers_src
+with_gdb_src
+with_musl_src
+with_glibc_src
+with_newlib_src
+with_binutils_src
+with_gcc_src
enable_gdb
with_guile
with_system_zlib
@@ -667,6 +674,13 @@ with_host
with_system_zlib
with_guile
enable_gdb
+with_gcc_src
+with_binutils_src
+with_newlib_src
+with_glibc_src
+with_musl_src
+with_gdb_src
+with_linux_headers_src
'
ac_precious_vars='build_alias
host_alias
@@ -1318,6 +1332,17 @@ Optional Packages:
nothing
--without-system-zlib use the builtin copy of zlib from GCC
--with-guile Set which guile to use, if any
+ --with-gcc-src Set gcc source path, use builtin source by default
+ --with-binutils-src Set binutils source path, use builtin source by
+ default
+ --with-newlib-src Set newlib source path, use builtin source by
+ default
+ --with-glibc-src Set glibc source path, use builtin source by default
+ --with-musl-src Set musl source path, use builtin source by default
+ --with-gdb-src Set gdb source path, use builtin source by default
+ --with-linux-headers-src
+ Set linux-headers source path, use builtin source by
+ default
Some influential environment variables:
CC C compiler command
@@ -3434,6 +3459,141 @@ else
fi
+
+
+{
+
+# Check whether --with-gcc-src was given.
+if test "${with_gcc_src+set}" = set; then :
+ withval=$with_gcc_src;
+else
+ with_gcc_src=default
+
+fi
+
+ if test "x$with_gcc_src" != xdefault; then :
+ with_gcc_src=$with_gcc_src
+
+else
+ with_gcc_src="\$(srcdir)/riscv-gcc"
+
+fi
+
+ }
+{
+
+# Check whether --with-binutils-src was given.
+if test "${with_binutils_src+set}" = set; then :
+ withval=$with_binutils_src;
+else
+ with_binutils_src=default
+
+fi
+
+ if test "x$with_binutils_src" != xdefault; then :
+ with_binutils_src=$with_binutils_src
+
+else
+ with_binutils_src="\$(srcdir)/riscv-binutils"
+
+fi
+
+ }
+{
+
+# Check whether --with-newlib-src was given.
+if test "${with_newlib_src+set}" = set; then :
+ withval=$with_newlib_src;
+else
+ with_newlib_src=default
+
+fi
+
+ if test "x$with_newlib_src" != xdefault; then :
+ with_newlib_src=$with_newlib_src
+
+else
+ with_newlib_src="\$(srcdir)/riscv-newlib"
+
+fi
+
+ }
+{
+
+# Check whether --with-glibc-src was given.
+if test "${with_glibc_src+set}" = set; then :
+ withval=$with_glibc_src;
+else
+ with_glibc_src=default
+
+fi
+
+ if test "x$with_glibc_src" != xdefault; then :
+ with_glibc_src=$with_glibc_src
+
+else
+ with_glibc_src="\$(srcdir)/riscv-glibc"
+
+fi
+
+ }
+{
+
+# Check whether --with-musl-src was given.
+if test "${with_musl_src+set}" = set; then :
+ withval=$with_musl_src;
+else
+ with_musl_src=default
+
+fi
+
+ if test "x$with_musl_src" != xdefault; then :
+ with_musl_src=$with_musl_src
+
+else
+ with_musl_src="\$(srcdir)/riscv-musl"
+
+fi
+
+ }
+{
+
+# Check whether --with-gdb-src was given.
+if test "${with_gdb_src+set}" = set; then :
+ withval=$with_gdb_src;
+else
+ with_gdb_src=default
+
+fi
+
+ if test "x$with_gdb_src" != xdefault; then :
+ with_gdb_src=$with_gdb_src
+
+else
+ with_gdb_src="\$(srcdir)/riscv-gdb"
+
+fi
+
+ }
+
+
+# Check whether --with-linux-headers-src was given.
+if test "${with_linux_headers_src+set}" = set; then :
+ withval=$with_linux_headers_src;
+else
+ with_linux_headers_src=default
+
+fi
+
+
+if test "x$with_linux_headers_src" != xdefault; then :
+ with_linux_headers_src=$with_linux_headers_src
+
+else
+ with_linux_headers_src="\$(srcdir)/linux-headers"
+
+fi
+
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure