From: Paul Eggert Date: Sun, 26 Jul 2020 00:42:18 +0000 (-0700) Subject: libgmp: remove HAVE_GMP, LIB_GMP X-Git-Tag: v1.0~3852 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=6e9f94e9b4478b6f32f2da10891239187aed5ea2;p=gnulib.git libgmp: remove HAVE_GMP, LIB_GMP * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as they’re redundant. I’ll adjust GNU Coreutils accordingly. --- diff --git a/ChangeLog b/ChangeLog index 0db10799c2..44ce5301bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-07-26 Paul Eggert + + libgmp: remove HAVE_GMP, LIB_GMP + * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as + they’re redundant. I’ll adjust GNU Coreutils accordingly. + 2020-07-26 Bruno Haible inttypes: Remove support for AIX 4. diff --git a/m4/libgmp.m4 b/m4/libgmp.m4 index 7a8742e0c4..e48b5c2c2b 100644 --- a/m4/libgmp.m4 +++ b/m4/libgmp.m4 @@ -1,4 +1,4 @@ -# libgmp.m4 serial 2 +# libgmp.m4 serial 3 # Configure the GMP library or a replacement. dnl Copyright 2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation @@ -8,8 +8,7 @@ dnl with or without modifications, as long as this notice is preserved. dnl gl_LIBGMP dnl Searches for an installed libgmp. dnl If found, it sets and AC_SUBSTs HAVE_LIBGMP=yes and the LIBGMP and LTLIBGMP -dnl variables, and augments the CPPFLAGS variable, and #defines HAVE_LIBGMP -dnl and HAVE_GMP to 1. +dnl variables, and augments the CPPFLAGS variable, and #defines HAVE_LIBGMP. dnl Otherwise, it sets and AC_SUBSTs HAVE_LIBGMP=no and LIBGMP and LTLIBGMP to dnl empty. @@ -44,17 +43,9 @@ AC_DEFUN([gl_LIBGMP], esac if test $HAVE_LIBGMP = yes; then GMP_H= - dnl This is redundant, as HAVE_LIBGMP is also defined to 1. - AC_DEFINE([HAVE_GMP], [1], - [Define to 1 if you have the GMP library instead of just the - mini-gmp replacement.]) else GMP_H=gmp.h fi AC_SUBST([GMP_H]) AM_CONDITIONAL([GL_GENERATE_GMP_H], [test -n "$GMP_H"]) - - dnl For backward compatibility. - LIB_GMP="$LIBGMP" - AC_SUBST([LIB_GMP]) ])