aboutsummaryrefslogtreecommitdiff
path: root/libgo/configure
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
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')
-rwxr-xr-xlibgo/configure20
1 files changed, 18 insertions, 2 deletions
diff --git a/libgo/configure b/libgo/configure
index 138a9c6..0b8ebce 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -669,6 +669,8 @@ ALLGOOS
GOOS
LIBGO_IS_BSD_FALSE
LIBGO_IS_BSD_TRUE
+LIBGO_IS_HURD_FALSE
+LIBGO_IS_HURD_TRUE
LIBGO_IS_AIX_FALSE
LIBGO_IS_AIX_TRUE
LIBGO_IS_SOLARIS_FALSE
@@ -11341,7 +11343,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11344 "configure"
+#line 11346 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11447,7 +11449,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11450 "configure"
+#line 11452 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13756,6 +13758,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 ;;
@@ -13768,6 +13771,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
if test $is_darwin = yes; then
LIBGO_IS_DARWIN_TRUE=
@@ -13849,6 +13853,14 @@ else
LIBGO_IS_AIX_FALSE=
fi
+ if test $is_hurd = yes; then
+ LIBGO_IS_HURD_TRUE=
+ LIBGO_IS_HURD_FALSE='#'
+else
+ LIBGO_IS_HURD_TRUE='#'
+ LIBGO_IS_HURD_FALSE=
+fi
+
if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
LIBGO_IS_BSD_TRUE=
LIBGO_IS_BSD_FALSE='#'
@@ -15852,6 +15864,10 @@ if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
+ as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5