File: 06_autoheader-fixes.patch

package info (click to toggle)
mxml 2.12-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,080 kB
  • sloc: ansic: 11,174; sh: 3,115; makefile: 249; cpp: 178; xml: 28
file content (49 lines) | stat: -rw-r--r-- 1,893 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Index: mxml-2.12/configure.ac
===================================================================
--- mxml-2.12.orig/configure.ac
+++ mxml-2.12/configure.ac
@@ -18,7 +18,7 @@ AC_INIT([Mini-XML], [2.12], [https://git
 dnl This line is provided to ensure that you don't run the autoheader program
 dnl against this project.  Doing so is completely unsupported and WILL cause
 dnl problems!
-AH_TOP([#error "Somebody ran autoheader on this project which is unsupported and WILL cause problems."])
+dnl AH_TOP([#error "Somebody ran autoheader on this project which is unsupported and WILL cause problems."])
 
 dnl Get the build and host platforms and split the host_os value
 AC_CANONICAL_BUILD
@@ -33,7 +33,7 @@ AC_CONFIG_HEADER(config.h)
 dnl Version number...
 VERSION="AC_PACKAGE_VERSION"
 AC_SUBST(VERSION)
-AC_DEFINE_UNQUOTED(MXML_VERSION, "Mini-XML v$VERSION")
+AC_DEFINE_UNQUOTED(MXML_VERSION, "Mini-XML v$VERSION", "MXML VERSION")
 
 dnl Clear default debugging options and set normal optimization by
 dnl default unless the user asks for debugging specifically.
@@ -118,7 +118,7 @@ AC_CACHE_CHECK(for long long int, ac_cv_
 	fi])
 
 if test $ac_cv_c_long_long = yes; then
-	AC_DEFINE(HAVE_LONG_LONG)
+	AC_DEFINE(HAVE_LONG_LONG, 1, "long long int support")
 fi
 
 dnl EPUB support (via libz and zipc)
@@ -127,7 +127,7 @@ AC_SUBST(MXML_EPUB)
 ZIPC=""
 AC_SUBST(ZIPC)
 AC_SEARCH_LIBS(gzgets,z,[
-	AC_DEFINE(HAVE_ZLIB_H)
+	AC_DEFINE(HAVE_ZLIB_H, 1, "<zlib.h> present")
 	ZIPC="zipc.o"
 	MXML_EPUB="mxml.epub"
 	LIBS="-lz $LIBS"])
@@ -140,7 +140,7 @@ PTHREAD_FLAGS=""
 PTHREAD_LIBS=""
 
 if test "x$enable_threads" != xno; then
-	AC_CHECK_HEADER(pthread.h, AC_DEFINE(HAVE_PTHREAD_H))
+	AC_CHECK_HEADER(pthread.h, AC_DEFINE(HAVE_PTHREAD_H, 1, "pthreads headers available"))
 
 	if test x$ac_cv_header_pthread_h = xyes; then
 		dnl Check various threading options for the platforms we support