diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-31 20:46:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-10-31 20:46:17 +0000 |
commit | 73b6d7a990b6ac6d06213814adf9cbd074c46dd6 (patch) | |
tree | fee9a63129007d8624e6b52861e2f90e7290fbfa /libgo/config | |
parent | cdf0919d6de9594ca7711c5a03cf4c4068874805 (diff) | |
download | gcc-73b6d7a990b6ac6d06213814adf9cbd074c46dd6.tar.gz |
re PR bootstrap/82856 (--enable-maintainter-mode broken by incompatiblity of gcc's required automake and modern Perl)
PR bootstrap/82856
libgo: update to autoconf 2.69 and automake 1.15.1
Initial patch from Joseph Myers.
Reviewed-on: https://go-review.googlesource.com/c/146417
From-SVN: r265701
Diffstat (limited to 'libgo/config')
-rw-r--r-- | libgo/config/go.m4 | 92 | ||||
-rw-r--r-- | libgo/config/libtool.m4 | 4 |
2 files changed, 2 insertions, 94 deletions
diff --git a/libgo/config/go.m4 b/libgo/config/go.m4 deleted file mode 100644 index 65a27cbdf00..00000000000 --- a/libgo/config/go.m4 +++ /dev/null @@ -1,92 +0,0 @@ -dnl acinclude.m4 -- configure macros - -dnl Copyright 2009 The Go Authors. All rights reserved. -dnl Use of this source code is governed by a BSD-style -dnl license that can be found in the LICENSE file. - -dnl Go support--this could be in autoconf. -dnl This version is probably autoconf 2.64 specific. - -AC_LANG_DEFINE([Go], [go], [GO], [], -[ac_ext=go -ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&AS_MESSAGE_LOG_FD' -ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AS_MESSAGE_LOG_FD' -ac_compile_gnu=yes -]) - -AU_DEFUN([AC_LANG_GO], [AC_LANG(Go)]) - -m4_define([AC_LANG_PROGRAM(Go)], -[package main -$1 -func main() { -$2 -}]) - -m4_define([AC_LANG_IO_PROGRAM(Go)], -[AC_LANG_PROGRAM([import "os"], -[if f, err := os.Open("conftest.out", os.O_WRONLY), err != nil { - os.Exit(1); - } - if err := f.Close(); err != nil { - os.Exit(1); - } - os.Exit(0); -])]) - -m4_define([AC_LANG_CALL(Go)], -[AC_LANG_PROGRAM([$1 -m4_if([$2], [main], , -[func $2();])],[$2();])]) - -m4_define([AC_LANG_FUNC_LINK_TRY(Go)], -[AC_LANG_PROGRAM( -[func $1() int; -var f := $1; -], [return f();])]) - -m4_define([AC_LANG_BOOL_COMPILE_TRY(Go)], -[AC_LANG_PROGRAM([$1], [var test_array @<:@1 - 2 * !($2)@:>@; -test_array @<:@0@:>@ = 0 -])]) - -m4_define([AC_LANG_INT_SAVE(Go)], -[AC_LANG_PROGRAM([$1 -import os -func longval() long { return $2 } -func ulongval() ulong { return $2 }], -[panic("unimplemented")])]) - -AC_DEFUN([AC_LANG_COMPILER(Go)], -[AC_REQUIRE([AC_PROG_GO])]) - -AN_MAKEVAR([GOC], [AC_PROG_GO]) -AN_PROGRAM([gccgo], [AC_PROG_GO]) -AC_DEFUN([AC_PROG_GO], -[AC_LANG_PUSH(Go)dnl -AC_ARG_VAR([GOC], [Go compiler command])dnl -AC_ARG_VAR([GOCFLAGS], [Go compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -m4_ifval([$1], - [AC_CHECK_TOOLS(GOC, [$1])], -[AC_CHECK_TOOL(GOC, gccgo) -if test -z "$GOC"; then - if test -n "$ac_tool_prefix"; then - AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [$ac_tool_prefix}gccgo]) - fi -fi -if test -z "$GOC"; then - AC_CHECK_PROG(GOC, gccgo, gccgo, , , gccgo) -fi -]) - -# Provide some information about the compiler. -_AS_ECHO_LOG([checking for _AC_LANG compiler version]) -set X $ac_compile -ac_compiler=$[2] -_AC_DO_LIMIT([$ac_compiler --version >&AS_MESSAGE_LOG_FD]) -m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl -m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl -GOCFLAGS="-g -O2" -AC_LANG_POP(Go)dnl -])# AC_PROG_GO diff --git a/libgo/config/libtool.m4 b/libgo/config/libtool.m4 index f7005947454..e7447537353 100644 --- a/libgo/config/libtool.m4 +++ b/libgo/config/libtool.m4 @@ -1084,7 +1084,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], # to the aix ld manual. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +AC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM])],[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { @@ -4937,7 +4937,7 @@ _LT_EOF # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" - AC_LINK_IFELSE(int foo(void) {}, + AC_LINK_IFELSE([AC_LANG_SOURCE([int foo(void) {}])], _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ) LDFLAGS="$save_LDFLAGS" |