* Add TARGET_ATOMIC_ASSIGN_EXPAND_FENV hook for sh.
[official-gcc.git] / gotools / configure.ac
blobddc26fbcbe5ab3ee6770d0fc1c4554476fa74d35
1 # Configure script for gotools.
2 #   Copyright 2015 Free Software Foundation, Inc.
4 # This file is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; see the file COPYING3.  If not see
16 # <http://www.gnu.org/licenses/>.
18 AC_INIT(package-unused, version-unused,, gotools)
19 AC_PREREQ(2.64)
20 AC_CONFIG_SRCDIR(Makefile.am)
22 m4_include([config/go.m4])
24 # Determine the noncanonical names used for directories.
25 ACX_NONCANONICAL_BUILD
26 ACX_NONCANONICAL_HOST
27 ACX_NONCANONICAL_TARGET
29 dnl Autoconf 2.5x and later will set a default program prefix if
30 dnl --target was used, even if it was the same as --host.  Disable
31 dnl that behavior.  This must be done before AC_CANONICAL_SYSTEM
32 dnl to take effect.
33 test "$host_noncanonical" = "$target_noncanonical" &&
34   test "$program_prefix$program_suffix$program_transform_name" = \
35     NONENONEs,x,x, &&
36   program_transform_name=s,y,y,
38 AC_CANONICAL_SYSTEM
39 AC_ARG_PROGRAM
41 AM_INIT_AUTOMAKE([1.9.3 no-define foreign no-dist -Wall -Wno-portability])
42 AM_MAINTAINER_MODE
44 AC_PROG_INSTALL
46 AC_PROG_CC
47 AC_PROG_GO
49 AM_CONDITIONAL(NATIVE, test "$cross_compiling" = no)
51 AC_CONFIG_FILES(Makefile)
53 AC_OUTPUT