aboutsummaryrefslogtreecommitdiff
path: root/m4/libunistring.m4
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2021-11-11 00:56:30 +0100
committerAlessio Vanni <vannilla@firemail.cc>2021-11-21 18:42:34 +0100
commit20ffa0aa543853fb0d395167fb0a090c0e369db0 (patch)
tree0f6b0ae7414790cf6fc525c8b8e62446e37efc6d /m4/libunistring.m4
parentd744d49e13fa6175016e8dcfc0f9506b9f170759 (diff)
downloadgnunet-20ffa0aa543853fb0d395167fb0a090c0e369db0.tar.gz
gnunet-20ffa0aa543853fb0d395167fb0a090c0e369db0.zip
Update configure.ac and a few macros used by it
The changes done to configure.ac are essentially divided in two categories: the first is made of changes to improve existing checks, even if it's merely in the message being printed during the check; the second category is made of updates aimed at bringing this file closer to Autoconf 2.71, which deprecated or even removed some stuff that was otherwise present either directly in configure.ac or in one of the macros it includes, which have been updated in this commit too. Actually, the generated configure script was created by Autoconf 2.71 during deveopment, so in a way it's already compatible with the latest version.
Diffstat (limited to 'm4/libunistring.m4')
-rw-r--r--m4/libunistring.m421
1 files changed, 7 insertions, 14 deletions
diff --git a/m4/libunistring.m4 b/m4/libunistring.m4
index c1bf4d553..e3d944793 100644
--- a/m4/libunistring.m4
+++ b/m4/libunistring.m4
@@ -1,9 +1,11 @@
1# libunistring.m4 serial 11 1# libunistring.m4 serial 12
2dnl Copyright (C) 2009-2012 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
6 6
7AC_PREREQ([2.64])
8
7dnl gl_LIBUNISTRING 9dnl gl_LIBUNISTRING
8dnl Searches for an installed libunistring. 10dnl Searches for an installed libunistring.
9dnl If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING 11dnl If found, it sets and AC_SUBSTs HAVE_LIBUNISTRING=yes and the LIBUNISTRING
@@ -12,8 +14,8 @@ dnl augments the CPPFLAGS variable, and #defines HAVE_LIBUNISTRING to 1.
12dnl Otherwise, it sets and AC_SUBSTs HAVE_LIBUNISTRING=no and LIBUNISTRING and 14dnl Otherwise, it sets and AC_SUBSTs HAVE_LIBUNISTRING=no and LIBUNISTRING and
13dnl LTLIBUNISTRING to empty. 15dnl LTLIBUNISTRING to empty.
14 16
15dnl Define gl_LIBUNISTRING using AC_DEFUN_ONCE for Autoconf >= 2.64, in order 17dnl Define gl_LIBUNISTRING using AC_DEFUN_ONCE, in order dnl to avoid warnings
16dnl to avoid warnings like 18dnl like
17dnl "warning: AC_REQUIRE: `gl_LIBUNISTRING' was expanded before it was required". 19dnl "warning: AC_REQUIRE: `gl_LIBUNISTRING' was expanded before it was required".
18dnl This is tricky because of the way 'aclocal' is implemented: 20dnl This is tricky because of the way 'aclocal' is implemented:
19dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. 21dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
@@ -21,16 +23,7 @@ dnl Otherwise aclocal's initial scan pass would miss the macro definition.
21dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. 23dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
22dnl Otherwise aclocal would emit many "Use of uninitialized value $1" 24dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
23dnl warnings. 25dnl warnings.
24m4_define([gl_libunistring_AC_DEFUN], 26AC_DEFUN_ONCE([gl_LIBUNISTRING],
25 m4_version_prereq([2.64],
26 [[AC_DEFUN_ONCE(
27 [$1], [$2])]],
28 [m4_ifdef([gl_00GNULIB],
29 [[AC_DEFUN_ONCE(
30 [$1], [$2])]],
31 [[AC_DEFUN(
32 [$1], [$2])]])]))
33gl_libunistring_AC_DEFUN([gl_LIBUNISTRING],
34[ 27[
35 AC_BEFORE([$0], [gl_LIBUNISTRING_MODULE]) 28 AC_BEFORE([$0], [gl_LIBUNISTRING_MODULE])
36 AC_BEFORE([$0], [gl_LIBUNISTRING_LIBHEADER]) 29 AC_BEFORE([$0], [gl_LIBUNISTRING_LIBHEADER])