]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Provide missing description for our FLEXIBLE_ARRAY_MEMBER defines
authorNick Mathewson <nickm@torproject.org>
Tue, 13 Sep 2011 23:51:37 +0000 (19:51 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Sep 2011 23:51:37 +0000 (19:51 -0400)
Apparently autoheader throws a tantrum if you say 'AC_DEFINE([a],
[b])'.  Instead you must say 'AC_DEFINE([a], [b], [description of
a])'.  We were running into this in our replacement definitions for
FLEXIBLE_ARRAY_MEMBER, which were only getting built on autoconf
versions before 2.61 -- and this made us stop working with those
autoconf versinos.

Fixes bug 2430; bugfix on 0.2.3.1-alpha.

changes/bug2430 [new file with mode: 0644]
configure.in

diff --git a/changes/bug2430 b/changes/bug2430
new file mode 100644 (file)
index 0000000..3908856
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Fix a bug in configure.in that kept it from building a configure
+      script with autoconf versions earlier than 2.61. Fixes bug 2430;
+      bugfix on 0.2.3.1-alpha.
index a449136f93035f69ed033527f08b271aed53ec2b..c6ee5899874f2cc8fbfeb22e6be01626e8cb4af8 100644 (file)
@@ -189,9 +189,9 @@ AC_C_FLEXIBLE_ARRAY_MEMBER
   [tor_cv_c_flexarray=yes],
   [tor_cv_c_flexarray=no])])
  if test $tor_cv_flexarray = yes ; then
-   AC_DEFINE([FLEXIBLE_ARRAY_MEMBER], [])
+   AC_DEFINE([FLEXIBLE_ARRAY_MEMBER], [], [Define to nothing if C supports flexible array members, and to 1 if it does not.])
  else
-   AC_DEFINE([FLEXIBLE_ARRAY_MEMBER], [1])
+   AC_DEFINE([FLEXIBLE_ARRAY_MEMBER], [1], [Define to nothing if C supports flexible array members, and to 1 if it does not.])
  fi
 ])