aboutsummaryrefslogtreecommitdiff
path: root/libgo/configure.ac
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-02-01 22:46:39 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-02-01 22:46:39 +0000
commitd9f0237f70ca25485576e3f8f32d7daee6ab1d50 (patch)
treed8b9c9233ef5de0788131a4778fc3aa15e8c5e4e /libgo/configure.ac
parent59ea40d0f2ea7a7b3606afb6617474915c7c80cf (diff)
downloadgcc-d9f0237f70ca25485576e3f8f32d7daee6ab1d50.zip
gcc-d9f0237f70ca25485576e3f8f32d7daee6ab1d50.tar.gz
gcc-d9f0237f70ca25485576e3f8f32d7daee6ab1d50.tar.bz2
libgo: add configury and sysinfo support for hurd
Patch by Svante Signell. Reviewed-on: https://go-review.googlesource.com/c/160824 From-SVN: r268461
Diffstat (limited to 'libgo/configure.ac')
-rw-r--r--libgo/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/configure.ac b/libgo/configure.ac
index 2b452ec..44b5948 100644
--- a/libgo/configure.ac
+++ b/libgo/configure.ac
@@ -165,6 +165,7 @@ is_dragonfly=no
is_rtems=no
is_solaris=no
is_aix=no
+is_hurd=no
GOOS=unknown
case ${host} in
*-*-darwin*) is_darwin=yes; GOOS=darwin ;;
@@ -177,6 +178,7 @@ case ${host} in
*-*-rtems*) is_rtems=yes; GOOS=rtems ;;
*-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
*-*-aix*) is_aix=yes; GOOS=aix ;;
+ *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
esac
AM_CONDITIONAL(LIBGO_IS_DARWIN, test $is_darwin = yes)
AM_CONDITIONAL(LIBGO_IS_FREEBSD, test $is_freebsd = yes)
@@ -188,6 +190,7 @@ AM_CONDITIONAL(LIBGO_IS_DRAGONFLY, test $is_dragonfly = yes)
AM_CONDITIONAL(LIBGO_IS_RTEMS, test $is_rtems = yes)
AM_CONDITIONAL(LIBGO_IS_SOLARIS, test $is_solaris = yes)
AM_CONDITIONAL(LIBGO_IS_AIX, test $is_aix = yes)
+AM_CONDITIONAL(LIBGO_IS_HURD, test $is_hurd = yes)
AM_CONDITIONAL(LIBGO_IS_BSD, test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes)
AC_SUBST(GOOS)
AC_SUBST(ALLGOOS)