diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 23 | ||||
-rw-r--r-- | config/acx.m4 | 2 | ||||
-rw-r--r-- | config/largefile.m4 | 34 | ||||
-rw-r--r-- | config/zlib.m4 | 18 |
4 files changed, 76 insertions, 1 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index ceea52ed7..9e524fc87 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,26 @@ +2009-11-30 Joseph Myers <joseph@codesourcery.com> + + * largefile.m4 (ACX_LARGEFILE): Require AC_CANONICAL_HOST and + AC_CANONICAL_TARGET. + +2009-11-24 Joel Brobecker <brobecker@adacore.com> + + * zlib.m4: New file. + +2009-11-09 Jan Kratochvil <jan.kratochvil@redhat.com> + + * largefile.m4 (ACX_LARGEFILE): Call AC_PLUGINS. + +2009-11-06 Jan Kratochvil <jan.kratochvil@redhat.com> + Joel Brobecker <brobecker@adacore.com> + Paolo Bonzini <bonzini@gnu.org> + + * largefile.m4: New file. + +2009-10-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * acx.m4 (ACX_CHECK_CYGWIN_CAT_WORKS): Use = with test. + 2009-09-09 Paolo Bonzini <bonzini@gnu.org> * stdint.m4 (GCC_HEADER_STDINT): Revert changes to this macro in diff --git a/config/acx.m4 b/config/acx.m4 index cea08b720..b559c03eb 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -605,7 +605,7 @@ dnl # See binutils PR 4334 for more details. AC_DEFUN([ACX_CHECK_CYGWIN_CAT_WORKS],[ AC_MSG_CHECKING([to see if cat works as expected]) echo a >cygwin-cat-check -if test `cat cygwin-cat-check` == a ; then +if test `cat cygwin-cat-check` = a ; then rm cygwin-cat-check AC_MSG_RESULT(yes) else diff --git a/config/largefile.m4 b/config/largefile.m4 new file mode 100644 index 000000000..4a88fd738 --- /dev/null +++ b/config/largefile.m4 @@ -0,0 +1,34 @@ +# This macro wraps AC_SYS_LARGEFILE with one exception for Solaris. +# PR 9992/binutils: We have to replicate everywhere the behaviour of +# bfd's configure script so that all the directories agree on the size +# of structures used to describe files. + +AC_DEFUN([ACX_LARGEFILE],[dnl + +# The tests for host and target for $enable_largefile require +# canonical names. +AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_CANONICAL_TARGET]) + +# As the $enable_largefile decision depends on --enable-plugins we must set it +# even in directories otherwise not depending on the $plugins option. + +AC_PLUGINS + +case "${host}" in +changequote(,)dnl + sparc-*-solaris*|i[3-7]86-*-solaris*) +changequote([,])dnl + # On native 32bit sparc and ia32 solaris, large-file and procfs support + # are mutually exclusive; and without procfs support, the bfd/ elf module + # cannot provide certain routines such as elfcore_write_prpsinfo + # or elfcore_write_prstatus. So unless the user explicitly requested + # large-file support through the --enable-largefile switch, disable + # large-file support in favor of procfs support. + test "${target}" = "${host}" -a "x$plugins" = xno \ + && : ${enable_largefile="no"} + ;; +esac + +AC_SYS_LARGEFILE +]) diff --git a/config/zlib.m4 b/config/zlib.m4 new file mode 100644 index 000000000..b0174994e --- /dev/null +++ b/config/zlib.m4 @@ -0,0 +1,18 @@ +dnl A function to check for zlib availability. zlib is used by default +dnl unless the user configured with --disable-nls. + +AC_DEFUN([AM_ZLIB], +[ + # See if the user specified whether he wants zlib support or not. + AC_ARG_WITH(zlib, + [ --with-zlib include zlib support (auto/yes/no) [default=auto]], + [], [with_zlib=auto]) + + if test "$with_zlib" != "no"; then + AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)]) + if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then + AC_MSG_ERROR([zlib (libz) library was explicitly requested but not found]) + fi + fi +]) + |