summaryrefslogtreecommitdiff
path: root/packages/libsigc++-1.2/libsigc++-1.2-1.2.7/autofoo.patch
blob: a5f7063af70efcd80215418531a57fd6790a243a (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- libsigc++-1.2.7/configure.in~autofoo.patch
+++ libsigc++-1.2.7/configure.in
@@ -35,9 +35,9 @@
 dnl AC_SUBST(SIGC_RELEASE, $SIGC_RELEASE)
 AC_SUBST(SIGC_VERSION)
 
-AC_DEFINE_UNQUOTED(SIGC_MAJOR_VERSION, $SIGC_MAJOR_VERSION)
-AC_DEFINE_UNQUOTED(SIGC_MINOR_VERSION, $SIGC_MINOR_VERSION)
-AC_DEFINE_UNQUOTED(SIGC_MICRO_VERSION, $SIGC_MICRO_VERSION)
+AC_DEFINE_UNQUOTED(SIGC_MAJOR_VERSION, $SIGC_MAJOR_VERSION, [library major version])
+AC_DEFINE_UNQUOTED(SIGC_MINOR_VERSION, $SIGC_MINOR_VERSION, [library minor version])
+AC_DEFINE_UNQUOTED(SIGC_MICRO_VERSION, $SIGC_MICRO_VERSION, [library micro version])
 
 AC_CONFIG_AUX_DIR(scripts)
 
@@ -50,7 +50,23 @@
 
 dnl Specify a configuration file
 AM_CONFIG_HEADER(sigc++/config/sigcconfig.h)
+AH_BOTTOM([
+// Window DLL declarations 
 
+#ifdef LIBSIGC_DLL
+ #if defined(LIBSIGC_COMPILATION) && defined(DLL_EXPORT)
+  #define LIBSIGC_API __declspec(dllexport)
+  #define LIBSIGC_TMPL 
+ #elif !defined(LIBSIGC_COMPILATION)
+  #define LIBSIGC_API __declspec(dllimport)
+  #define LIBSIGC_TMPL extern
+ #else
+  #define LIBSIGC_API
+ #endif /* LIBSIGC_COMPILATION - DLL_EXPORT */
+#else
+ #define LIBSIGC_API
+#endif /* LIBSIGC_DLL */
+])
 AM_MAINTAINER_MODE
 
 # echo $USE_MAINTAINER_MODE
@@ -288,7 +304,7 @@
   };
 ],[
 ],
-  AC_DEFINE(SIGC_CXX_EXPLICIT,explicit)
+  AC_DEFINE(SIGC_CXX_EXPLICIT,explicit,[if C++ compiler supports explicit])
   ac_cxx_explicit=yes
 ,
   AC_DEFINE(SIGC_CXX_EXPLICIT,)
@@ -305,7 +321,7 @@
   };
 ],[
 ],
-  AC_DEFINE(SIGC_CXX_EXPLICIT_COPY,explicit)
+  AC_DEFINE(SIGC_CXX_EXPLICIT_COPY,explicit,[if C++ compiler supports explicit copy ctor])
   ac_cxx_explicit_copy_ctor=yes
 ,
   AC_DEFINE(SIGC_CXX_EXPLICIT_COPY,)
@@ -413,7 +429,7 @@
   k<void,void> a;
 ],[
   ac_cxx_partial_specialization=yes
-  AC_DEFINE(SIGC_CXX_PARTIAL_SPEC)
+  AC_DEFINE(SIGC_CXX_PARTIAL_SPEC,[if C++ compiler supports partial specialization])
 ],[
 #  config_error=yes
   ac_cxx_partial_specialization=no
@@ -434,7 +450,7 @@
 ],[
   ac_cxx_namespaces=yes
   AC_MSG_RESULT([$ac_cxx_namespaces])
-  AC_DEFINE(SIGC_CXX_NAMESPACES)
+  AC_DEFINE(SIGC_CXX_NAMESPACES,,[if C++ compiler supports name spaces])
 ],[
   ac_cxx_namespaces=no
   AC_MSG_RESULT([$ac_cxx_namespaces])
@@ -474,7 +490,7 @@
 A<int> i;
 ],[
 ],[
-  AC_DEFINE(SIGC_CXX_INT_CTOR)
+  AC_DEFINE(SIGC_CXX_INT_CTOR,,[if C++ compiler has intrinsic constructors])
   ac_cxx_tmpl_intctor=yes
 ],[
   ac_cxx_tmpl_intctor=no
@@ -515,7 +531,7 @@
 ],[
 ],[
   ac_cxx_void_return=yes
-  AC_DEFINE(SIGC_CXX_VOID_RETURN)
+  AC_DEFINE(SIGC_CXX_VOID_RETURN,,[if C++ compiler allows void returns])
 ],[
   ac_cxx_void_return=no
 ])
@@ -530,7 +546,7 @@
 ],[
 ],[
   ac_cxx_void_cast_return=yes
-  AC_DEFINE(SIGC_CXX_VOID_CAST_RETURN)
+  AC_DEFINE(SIGC_CXX_VOID_CAST_RETURN,,[if C++ compiler supports void cast return])
 ],[
   ac_cxx_void_cast_return=no
 ])
@@ -565,7 +581,7 @@
     P<int&>::ptr q=b;
 ],[
   ac_cxx_specialize_references=yes
-  AC_DEFINE(SIGC_CXX_SPECIALIZE_REFERENCES)
+  AC_DEFINE(SIGC_CXX_SPECIALIZE_REFERENCES,,[if C++ compiler allows specialization of references])
 ],[
   ac_cxx_specialize_references=no
 ])
--- libsigc++-1.2.7/Makefile.am~autofoo.patch
+++ libsigc++-1.2.7/Makefile.am
@@ -1,6 +1,6 @@
 SUBDIRS = sigc++ tests doc MSVC_6 MSVC_Net2003 eVC4
 DIST_SUBDIRS = $(SUBDIRS) examples scripts
-ACLOCAL_AMFLAGS = -I $(srcdir)/scripts
+ACLOCAL_AMFLAGS = -I ./scripts
 
 EXTRA_DIST = \
 	FEATURES IDEAS			\