summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-05 22:36:20 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-05 22:36:20 +0000
commita69997260ceef1d88869c26771c943c15a509bb6 (patch)
tree6b9184a6f03c187e551072810eb7ece7af014a90 /configure.ac
parent6222f4a828548c0188ede626ded81d1f307803cc (diff)
downloadgcc-a69997260ceef1d88869c26771c943c15a509bb6.tar.gz
PR go/55969
* configure.ac: Disable libgo on some systems where it does not work. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195768 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 739cdc786cc..f2be8abcc19 100644
--- a/configure.ac
+++ b/configure.ac
@@ -752,6 +752,23 @@ case "${target}" in
;;
esac
+# Disable libgo for some systems where it is known to not work.
+# For testing, you can easily override this with --enable-libgo.
+if test x$enable_libgo = x; then
+ case "${target}" in
+ *-*-darwin*)
+ # PR 46986
+ noconfigdirs="$noconfigdirs target-libgo"
+ ;;
+ *-*-cygwin* | *-*-mingw*)
+ noconfigdirs="$noconfigdirs target-libgo"
+ ;;
+ *-*-aix*)
+ noconfigdirs="$noconfigdirs target-libgo"
+ ;;
+ esac
+fi
+
# Default libgloss CPU subdirectory.
libgloss_dir="$target_cpu"