[AArch64][SVE 10/32] Move range check out of parse_aarch64_imm_float
[deliverable/binutils-gdb.git] / gas / configure.ac
index e2fc1b7cc64d8f0dd0835ad88541abc665586699..13f51073c0fcd355b337532fc1216f966bdd203d 100644 (file)
@@ -3,18 +3,18 @@ dnl
 dnl And be careful when changing it!  If you must add tests with square
 dnl brackets, be sure changequote invocations surround it.
 dnl
 dnl And be careful when changing it!  If you must add tests with square
 dnl brackets, be sure changequote invocations surround it.
 dnl
-dnl   Copyright (C) 2012-2014 Free Software Foundation, Inc.
+dnl   Copyright (C) 2012-2016 Free Software Foundation, Inc.
 dnl
 dnl This file is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
 dnl the Free Software Foundation; either version 3 of the License, or
 dnl (at your option) any later version.
 dnl
 dnl This file is free software; you can redistribute it and/or modify
 dnl it under the terms of the GNU General Public License as published by
 dnl the Free Software Foundation; either version 3 of the License, or
 dnl (at your option) any later version.
-dnl 
+dnl
 dnl This program is distributed in the hope that it will be useful,
 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
 dnl This program is distributed in the hope that it will be useful,
 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 dnl GNU General Public License for more details.
-dnl 
+dnl
 dnl You should have received a copy of the GNU General Public License
 dnl along with this program; see the file COPYING3.  If not see
 dnl <http://www.gnu.org/licenses/>.
 dnl You should have received a copy of the GNU General Public License
 dnl along with this program; see the file COPYING3.  If not see
 dnl <http://www.gnu.org/licenses/>.
@@ -64,6 +64,41 @@ if test x$ac_checking != x ; then
   AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
 fi
 
   AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
 fi
 
+# PR gas/19109
+# Decide the default method for compressing debug sections.
+ac_default_compressed_debug_sections=unset
+# Provide a configure time option to override our default.
+AC_ARG_ENABLE(compressed_debug_sections,
+             AS_HELP_STRING([--enable-compressed-debug-sections={all,gas,none}],
+             [compress debug sections by default]),
+[case ,"${enableval}", in
+  ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
+  ,no, | ,none,)  ac_default_compressed_debug_sections=no ;;
+  *)   ac_default_compressed_debug_sections=unset ;;
+esac])dnl
+
+# PR gas/19520
+# Decide if x86 assembler should generate relax relocations.
+ac_default_x86_relax_relocations=unset
+# Provide a configure time option to override our default.
+AC_ARG_ENABLE(x86_relax_relocations,
+             AS_HELP_STRING([--enable-x86-relax-relocations],
+             [generate x86 relax relocations by default]),
+[case "${enableval}" in
+  no)  ac_default_x86_relax_relocations=0 ;;
+esac])dnl
+
+# Decide if ELF assembler should generate common symbols with the
+# STT_COMMON type.
+ac_default_elf_stt_common=unset
+# Provide a configure time option to override our default.
+AC_ARG_ENABLE(elf_stt_common,
+             AS_HELP_STRING([--enable-elf-stt-common],
+             [generate ELF common symbols with STT_COMMON type by default]),
+[case "${enableval}" in
+  yes)  ac_default_elf_stt_common=1 ;;
+esac])dnl
+
 using_cgen=no
 
 AM_BINUTILS_WARNINGS
 using_cgen=no
 
 AM_BINUTILS_WARNINGS
@@ -71,6 +106,17 @@ AM_BINUTILS_WARNINGS
 # Generate a header file
 AC_CONFIG_HEADERS(config.h:config.in)
 
 # Generate a header file
 AC_CONFIG_HEADERS(config.h:config.in)
 
+dnl Option --with-cpu=TYPE allows configure type control of the default
+dnl cpu type within the assembler.  Currently only the ARC target
+dnl supports this feature, but others may be added in the future.
+AC_ARG_WITH(cpu,
+            AS_HELP_STRING([--with-cpu=CPU],
+            [default cpu variant is CPU (currently only supported on ARC)]),
+            [AC_DEFINE_UNQUOTED(TARGET_WITH_CPU,
+                                "${with_cpu}",
+                                [Target specific CPU.])],
+            [])
+
 # PR 14072
 AH_VERBATIM([00_CONFIG_H_CHECK],
 [/* Check that config.h is #included before system headers
 # PR 14072
 AH_VERBATIM([00_CONFIG_H_CHECK],
 [/* Check that config.h is #included before system headers
@@ -155,6 +201,17 @@ for this_target in $target $canon_targets ; do
        AC_DEFINE(STRICTCOFF, 1, [Using strict COFF?])
        ;;
 
        AC_DEFINE(STRICTCOFF, 1, [Using strict COFF?])
        ;;
 
+      i386-*-solaris2 \
+      | x86_64-*-solaris2 \
+      | i386-*-solaris2.[[0-9]] \
+      | i386-*-solaris2.1[[01]] \
+      | x86_64-*-solaris2.1[[01]])
+       if test ${this_target} = $target \
+          && test ${ac_default_x86_relax_relocations} = unset; then
+         ac_default_x86_relax_relocations=0
+       fi
+       ;;
+
       i860-*-*)
        AC_MSG_WARN(GAS support for ${generic_target} is preliminary and a work in progress)
        ;;
       i860-*-*)
        AC_MSG_WARN(GAS support for ${generic_target} is preliminary and a work in progress)
        ;;
@@ -217,6 +274,9 @@ changequote([,])dnl
          mipsisa32r5 | mipsisa32r5el)
            mips_cpu=mips32r5
            ;;
          mipsisa32r5 | mipsisa32r5el)
            mips_cpu=mips32r5
            ;;
+         mipsisa32r6 | mipsisa32r6el)
+           mips_cpu=mips32r6
+           ;;
          mipsisa64 | mipsisa64el)
            mips_cpu=mips64
            ;;
          mipsisa64 | mipsisa64el)
            mips_cpu=mips64
            ;;
@@ -229,6 +289,9 @@ changequote([,])dnl
          mipsisa64r5 | mipsisa64r5el)
            mips_cpu=mips64r5
            ;;
          mipsisa64r5 | mipsisa64r5el)
            mips_cpu=mips64r5
            ;;
+         mipsisa64r6 | mipsisa64r6el)
+           mips_cpu=mips64r6
+           ;;
          mipstx39 | mipstx39el)
            mips_cpu=r3900
            ;;
          mipstx39 | mipstx39el)
            mips_cpu=r3900
            ;;
@@ -238,6 +301,11 @@ changequote([,])dnl
          mipsisa32r2* | mipsisa64r2*)
 changequote(,)dnl
            mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
          mipsisa32r2* | mipsisa64r2*)
 changequote(,)dnl
            mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
+changequote([,])dnl
+           ;;
+         mipsisa32r6* | mipsisa64r6*)
+changequote(,)dnl
+           mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
 changequote([,])dnl
            ;;
          mips64* | mipsisa64* | mipsisa32*)
 changequote([,])dnl
            ;;
          mips64* | mipsisa64* | mipsisa32*)
@@ -392,7 +460,7 @@ changequote([,])dnl
 
         # Decide features one by one.
         AC_MSG_CHECKING(for default configuration of --enable-dx-regs)
 
         # Decide features one by one.
         AC_MSG_CHECKING(for default configuration of --enable-dx-regs)
-       if test "x${enable_dx_regs}" == xyes; then
+       if test "x${enable_dx_regs}" = xyes; then
          AC_DEFINE(NDS32_DEFAULT_DX_REGS, 1,
                    [Define value for nds32_dx_regs])
        else
          AC_DEFINE(NDS32_DEFAULT_DX_REGS, 1,
                    [Define value for nds32_dx_regs])
        else
@@ -402,7 +470,7 @@ changequote([,])dnl
        AC_MSG_RESULT($enable_dx_regs)
 
         AC_MSG_CHECKING(for default configuration of --enable-perf-ext)
        AC_MSG_RESULT($enable_dx_regs)
 
         AC_MSG_CHECKING(for default configuration of --enable-perf-ext)
-       if test "x${enable_perf_ext}" == xno; then
+       if test "x${enable_perf_ext}" = xno; then
          AC_DEFINE(NDS32_DEFAULT_PERF_EXT, 0,
                    [Define value for nds32_perf_ext])
        else
          AC_DEFINE(NDS32_DEFAULT_PERF_EXT, 0,
                    [Define value for nds32_perf_ext])
        else
@@ -412,7 +480,7 @@ changequote([,])dnl
        AC_MSG_RESULT($enable_perf_ext)
 
         AC_MSG_CHECKING(for default configuration of --enable-perf-ext2)
        AC_MSG_RESULT($enable_perf_ext)
 
         AC_MSG_CHECKING(for default configuration of --enable-perf-ext2)
-       if test "x${enable_perf_ext2}" == xno; then
+       if test "x${enable_perf_ext2}" = xno; then
          AC_DEFINE(NDS32_DEFAULT_PERF_EXT2, 0,
                    [Define value for nds32_perf_ext2])
        else
          AC_DEFINE(NDS32_DEFAULT_PERF_EXT2, 0,
                    [Define value for nds32_perf_ext2])
        else
@@ -422,7 +490,7 @@ changequote([,])dnl
        AC_MSG_RESULT($enable_perf_ext2)
 
         AC_MSG_CHECKING(for default configuration of --enable-string-ext)
        AC_MSG_RESULT($enable_perf_ext2)
 
         AC_MSG_CHECKING(for default configuration of --enable-string-ext)
-       if test "x${enable_string_ext}" == xno; then
+       if test "x${enable_string_ext}" = xno; then
          AC_DEFINE(NDS32_DEFAULT_STRING_EXT, 0,
                    [Define value for nds32_string_ext])
        else
          AC_DEFINE(NDS32_DEFAULT_STRING_EXT, 0,
                    [Define value for nds32_string_ext])
        else
@@ -432,7 +500,7 @@ changequote([,])dnl
        AC_MSG_RESULT($enable_string_ext)
 
         AC_MSG_CHECKING(for default configuration of --enable-audio-ext)
        AC_MSG_RESULT($enable_string_ext)
 
         AC_MSG_CHECKING(for default configuration of --enable-audio-ext)
-       if test "x${enable_audio_ext}" == xno; then
+       if test "x${enable_audio_ext}" = xno; then
          AC_DEFINE(NDS32_DEFAULT_AUDIO_EXT, 0,
                    [Define value for nds32_audio_ext])
        else
          AC_DEFINE(NDS32_DEFAULT_AUDIO_EXT, 0,
                    [Define value for nds32_audio_ext])
        else
@@ -525,6 +593,25 @@ changequote([,])dnl
 
 done
 
 
 done
 
+if test ${ac_default_x86_relax_relocations} = unset; then
+  ac_default_x86_relax_relocations=1
+fi
+AC_DEFINE_UNQUOTED(DEFAULT_GENERATE_X86_RELAX_RELOCATIONS,
+  $ac_default_x86_relax_relocations,
+  [Define to 1 if you want to generate x86 relax relocations by default.])
+
+if test ${ac_default_elf_stt_common} = unset; then
+  ac_default_elf_stt_common=0
+fi
+AC_DEFINE_UNQUOTED(DEFAULT_GENERATE_ELF_STT_COMMON,
+  $ac_default_elf_stt_common,
+  [Define to 1 if you want to generate ELF common symbols with the
+   STT_COMMON type by default.])
+
+if test x$ac_default_compressed_debug_sections = xyes ; then
+  AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1, [Define if you want compressed debug sections by default.])
+fi
+
 # Turn on all targets if possible
 if test ${all_targets} = "yes"; then
   case ${target_cpu_type} in
 # Turn on all targets if possible
 if test ${all_targets} = "yes"; then
   case ${target_cpu_type} in
@@ -708,7 +795,7 @@ AC_DEFINE_UNQUOTED(TARGET_OS,               "${target_os}",    [Target OS.])
 AC_PROG_YACC
 AM_PROG_LEX
 
 AC_PROG_YACC
 AM_PROG_LEX
 
-ALL_LINGUAS="fr tr es rw id ru fi ja"
+ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN"
 ZW_GNU_GETTEXT_SISTER_DIR
 AM_PO_SUBDIRS
 
 ZW_GNU_GETTEXT_SISTER_DIR
 AM_PO_SUBDIRS
 
@@ -801,7 +888,7 @@ GAS_CHECK_DECL_NEEDED(malloc, f, char *(*f)(), $gas_test_headers)
 GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers)
 GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers)
 
 GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers)
 GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers)
 
-AC_CHECK_DECLS([free, getenv, malloc, mempcpy, realloc, stpcpy, strstr, vsnprintf])
+AC_CHECK_DECLS([free, getenv, malloc, mempcpy, realloc, stpcpy, strstr, vsnprintf, asprintf])
 
 BFD_BINARY_FOPEN
 
 
 BFD_BINARY_FOPEN
 
This page took 0.031212 seconds and 4 git commands to generate.