summaryrefslogtreecommitdiffstats
path: root/llvm/projects/sample/configure
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-02-03 00:59:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-02-03 00:59:30 +0000
commitec217f6ad66e681b29186f95b8f971d59adf3cbb (patch)
treed7bbb31975dd1ebac21d697ce8f4bf1395228fd4 /llvm/projects/sample/configure
parent1df8cdc58876ac3beb14bfa3b3736ecbe87b8b59 (diff)
downloadbcm5719-llvm-ec217f6ad66e681b29186f95b8f971d59adf3cbb.tar.gz
bcm5719-llvm-ec217f6ad66e681b29186f95b8f971d59adf3cbb.zip
Replace the old --with-cxx-* configure options with a single --with-gcc-toolchain
that just uses the new toolchain probing logic. This fixes linking with -m32 on 64 bit systems (the /32 dir was not being added to the search). llvm-svn: 149651
Diffstat (limited to 'llvm/projects/sample/configure')
-rwxr-xr-xllvm/projects/sample/configure62
1 files changed, 9 insertions, 53 deletions
diff --git a/llvm/projects/sample/configure b/llvm/projects/sample/configure
index 418f2ead2f4..dab1dc5d5a6 100755
--- a/llvm/projects/sample/configure
+++ b/llvm/projects/sample/configure
@@ -1426,12 +1426,7 @@ Optional Packages:
resource files
--with-c-include-dirs Colon separated list of directories clang will
search for headers
- --with-cxx-include-root Directory with the libstdc++ headers.
- --with-cxx-include-arch Architecture of the libstdc++ headers.
- --with-cxx-include-32bit-dir
- 32 bit multilib dir.
- --with-cxx-include-64bit-dir
- 64 bit multilib directory.
+ --with-gcc-toolchain Directory where gcc is installed.
--with-binutils-include Specify path to binutils/include/ containing
plugin-api.h file for gold plugin.
--with-bug-report-url Specify the URL where bug reports should be
@@ -5493,59 +5488,20 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+# Clang normally uses the system c++ headers and libraries. With this option,
+# clang will use the ones provided by a gcc installation instead. This option should
+# be passed the same value that was used with --prefix when configuring gcc.
-# Check whether --with-cxx-include-root was given.
-if test "${with_cxx_include_root+set}" = set; then
- withval=$with_cxx_include_root;
+# Check whether --with-gcc-toolchain was given.
+if test "${with_gcc_toolchain+set}" = set; then
+ withval=$with_gcc_toolchain;
else
withval=""
fi
cat >>confdefs.h <<_ACEOF
-#define CXX_INCLUDE_ROOT "$withval"
-_ACEOF
-
-
-
-# Check whether --with-cxx-include-arch was given.
-if test "${with_cxx_include_arch+set}" = set; then
- withval=$with_cxx_include_arch;
-else
- withval=""
-fi
-
-
-cat >>confdefs.h <<_ACEOF
-#define CXX_INCLUDE_ARCH "$withval"
-_ACEOF
-
-
-
-# Check whether --with-cxx-include-32bit-dir was given.
-if test "${with_cxx_include_32bit_dir+set}" = set; then
- withval=$with_cxx_include_32bit_dir;
-else
- withval=""
-fi
-
-
-cat >>confdefs.h <<_ACEOF
-#define CXX_INCLUDE_32BIT_DIR "$withval"
-_ACEOF
-
-
-
-# Check whether --with-cxx-include-64bit-dir was given.
-if test "${with_cxx_include_64bit_dir+set}" = set; then
- withval=$with_cxx_include_64bit_dir;
-else
- withval=""
-fi
-
-
-cat >>confdefs.h <<_ACEOF
-#define CXX_INCLUDE_64BIT_DIR "$withval"
+#define GCC_INSTALL_PREFIX "$withval"
_ACEOF
@@ -10409,7 +10365,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10412 "configure"
+#line 10368 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
OpenPOWER on IntegriCloud