aboutsummaryrefslogtreecommitdiff
path: root/libgo/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/configure')
-rwxr-xr-xlibgo/configure25
1 files changed, 23 insertions, 2 deletions
diff --git a/libgo/configure b/libgo/configure
index 23ef791..22f9352 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -676,6 +676,7 @@ LIBGO_IS_FREEBSD_TRUE
LIBGO_IS_DARWIN_FALSE
LIBGO_IS_DARWIN_TRUE
go_include
+LIBATOMIC
LIBFFIINCS
LIBFFI
nover_glibgo_toolexeclibdir
@@ -817,6 +818,7 @@ enable_libtool_lock
enable_werror
enable_version_specific_runtime_libs
with_libffi
+with_libatomic
with_system_libunwind
enable_sjlj_exceptions
'
@@ -1469,6 +1471,7 @@ Optional Packages:
--with-pic try to use only PIC/non-PIC objects [default=use
both]
--without-libffi don't use libffi
+ --without-libatomic don't use libatomic
--with-system-libunwind use installed libunwind
Some influential environment variables:
@@ -11115,7 +11118,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11118 "configure"
+#line 11121 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11221,7 +11224,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11224 "configure"
+#line 11227 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13483,6 +13486,24 @@ fi
+# See if the user wants to configure without libatomic. This is useful if we are
+# on an architecture for which libgo does not need an atomic support library and
+# libatomic does not support our C compiler.
+
+# Check whether --with-libatomic was given.
+if test "${with_libatomic+set}" = set; then :
+ withval=$with_libatomic; :
+else
+ with_libatomic=${with_libatomic_default-yes}
+fi
+
+
+LIBATOMIC=
+if test "$with_libatomic" != no; then
+ LIBATOMIC=../libatomic/libatomic_convenience.la
+fi
+
+
# Used to tell GNU make to include a file without telling automake to
# include it.
go_include="-include"