1 | AC_PREREQ(2.50) |
---|
2 | |
---|
3 | AC_INIT([OGRE], [1.2.0]) |
---|
4 | |
---|
5 | AC_CANONICAL_TARGET |
---|
6 | |
---|
7 | # New syntax, but this is still buggy; PACKAGE gets defined as 'ogre' not 'OGRE' |
---|
8 | #AM_INIT_AUTOMAKE([1.7.0 foreign no-installinfo no-installman subdir-objects]) |
---|
9 | AM_INIT_AUTOMAKE([OGRE], 1.2.0) |
---|
10 | AC_CONFIG_HEADERS([OgreMain/include/config.h]) |
---|
11 | |
---|
12 | dnl Check for programs |
---|
13 | AC_PROG_CC |
---|
14 | AC_PROG_CXX |
---|
15 | AM_PROG_CC_C_O |
---|
16 | AC_PROG_INSTALL |
---|
17 | AC_PROG_YACC |
---|
18 | AM_PROG_LEX |
---|
19 | |
---|
20 | dnl Setup target-specific parameters |
---|
21 | OGRE_SETUP_FOR_TARGET |
---|
22 | |
---|
23 | AC_DISABLE_STATIC |
---|
24 | AC_PROG_LIBTOOL |
---|
25 | |
---|
26 | dnl GCC version check |
---|
27 | if test x$GCC = xyes; then |
---|
28 | AC_MSG_CHECKING([version 3.1 or above of gcc]) |
---|
29 | if test -n "`$CC --version 2>&1|grep ' [[34]].'`"; then |
---|
30 | AC_DEFINE(EXT_HASH,, Use old STL hash options) |
---|
31 | AC_SUBST(OGRE_CFLAGS, "-DEXT_HASH") |
---|
32 | AC_MSG_RESULT(yes); |
---|
33 | else |
---|
34 | AC_MSG_RESULT(no)! |
---|
35 | fi |
---|
36 | fi |
---|
37 | |
---|
38 | dnl Other stuff we need |
---|
39 | OGRE_USE_STLPORT |
---|
40 | #AM_PATH_SDL(1.2.0) |
---|
41 | AC_CHECK_FT2(9.0.0) |
---|
42 | |
---|
43 | AC_CHECK_LIB(dl, dlopen) |
---|
44 | AC_CHECK_LIB(m, pow) |
---|
45 | AC_CHECK_LIB(z, gzopen) |
---|
46 | AC_CHECK_LIB(pthread, pthread_create) |
---|
47 | AC_CHECK_FUNC(snprintf, AC_DEFINE(HAVE_SNPRINTF,,snprintf)) |
---|
48 | AC_CHECK_FUNC(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF,,vsnprintf)) |
---|
49 | |
---|
50 | OGRE_CHECK_CPPUNIT |
---|
51 | |
---|
52 | PKG_CHECK_MODULES(ZZIPLIB, zziplib) |
---|
53 | AC_SUBST(ZZIPLIB_CFLAGS) |
---|
54 | AC_SUBST(ZZIPLIB_LIBS) |
---|
55 | |
---|
56 | OGRE_GET_CONFIG_TOOLKIT |
---|
57 | OGRE_GET_PLATFORM |
---|
58 | OGRE_GET_GLSUPPORT |
---|
59 | |
---|
60 | dnl Find the optional components we should build |
---|
61 | OGRE_CHECK_DOUBLE |
---|
62 | OGRE_CHECK_THREADING |
---|
63 | OGRE_CHECK_DEVIL |
---|
64 | OGRE_CHECK_CG |
---|
65 | OGRE_CHECK_OPENEXR |
---|
66 | OGRE_CHECK_DX9 |
---|
67 | |
---|
68 | dnl Detect endianness |
---|
69 | OGRE_DETECT_ENDIAN |
---|
70 | |
---|
71 | dnl Check to see if -fPIC is required. |
---|
72 | OGRE_CHECK_PIC |
---|
73 | |
---|
74 | dnl Check to see if CEGUI is installed. |
---|
75 | OGRE_CHECK_CEGUI |
---|
76 | |
---|
77 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
78 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
79 | LIBS="$LIBS $SDL_LIBS" |
---|
80 | |
---|
81 | dnl versioning info for libtool |
---|
82 | dnl Note this is the ABI version which is not the same as our actual library version |
---|
83 | OGREMAIN_CURRENT=11 |
---|
84 | OGREMAIN_REVISION=0 |
---|
85 | OGREMAIN_AGE=0 |
---|
86 | OGREMAIN_VERSION_INFO=$OGREMAIN_CURRENT:$OGREMAIN_REVISION:$OGREMAIN_AGE |
---|
87 | AC_SUBST(OGREMAIN_VERSION_INFO) |
---|
88 | |
---|
89 | |
---|
90 | dnl Create the makefiles |
---|
91 | AC_CONFIG_FILES([Makefile \ |
---|
92 | OgreMain/Makefile \ |
---|
93 | OgreMain/src/Makefile \ |
---|
94 | OgreMain/include/Makefile \ |
---|
95 | PlatformManagers/Makefile \ |
---|
96 | PlatformManagers/SDL/Makefile \ |
---|
97 | PlatformManagers/SDL/src/Makefile |
---|
98 | PlatformManagers/SDL/include/Makefile |
---|
99 | PlatformManagers/gtk/Makefile \ |
---|
100 | PlatformManagers/gtk/src/Makefile \ |
---|
101 | PlatformManagers/gtk/include/Makefile \ |
---|
102 | PlatformManagers/GLX/Makefile \ |
---|
103 | PlatformManagers/GLX/src/Makefile \ |
---|
104 | PlatformManagers/GLX/include/Makefile \ |
---|
105 | PlatformManagers/Win32/Makefile \ |
---|
106 | PlatformManagers/Win32/src/Makefile \ |
---|
107 | PlatformManagers/Win32/include/Makefile \ |
---|
108 | PlugIns/Makefile \ |
---|
109 | PlugIns/BSPSceneManager/Makefile \ |
---|
110 | PlugIns/BSPSceneManager/src/Makefile \ |
---|
111 | PlugIns/BSPSceneManager/include/Makefile \ |
---|
112 | PlugIns/CgProgramManager/Makefile \ |
---|
113 | PlugIns/CgProgramManager/src/Makefile \ |
---|
114 | PlugIns/CgProgramManager/include/Makefile \ |
---|
115 | PlugIns/OctreeSceneManager/Makefile \ |
---|
116 | PlugIns/OctreeSceneManager/src/Makefile \ |
---|
117 | PlugIns/OctreeSceneManager/include/Makefile \ |
---|
118 | PlugIns/ParticleFX/Makefile \ |
---|
119 | PlugIns/ParticleFX/src/Makefile \ |
---|
120 | PlugIns/ParticleFX/include/Makefile \ |
---|
121 | RenderSystems/Makefile \ |
---|
122 | RenderSystems/GL/Makefile \ |
---|
123 | RenderSystems/GL/src/Makefile \ |
---|
124 | RenderSystems/GL/include/Makefile \ |
---|
125 | RenderSystems/GL/src/atifs/Makefile \ |
---|
126 | RenderSystems/GL/src/atifs/include/Makefile \ |
---|
127 | RenderSystems/GL/src/atifs/src/Makefile \ |
---|
128 | RenderSystems/GL/src/GLSL/Makefile \ |
---|
129 | RenderSystems/GL/src/GLSL/include/Makefile \ |
---|
130 | RenderSystems/GL/src/GLSL/src/Makefile \ |
---|
131 | RenderSystems/GL/src/nvparse/Makefile \ |
---|
132 | RenderSystems/Direct3D9/Makefile \ |
---|
133 | RenderSystems/Direct3D9/src/Makefile \ |
---|
134 | RenderSystems/Direct3D9/include/Makefile \ |
---|
135 | Samples/Makefile \ |
---|
136 | Samples/Common/Makefile \ |
---|
137 | Samples/Common/include/Makefile \ |
---|
138 | Samples/Common/bin/Makefile \ |
---|
139 | Samples/BezierPatch/Makefile \ |
---|
140 | Samples/BezierPatch/src/Makefile \ |
---|
141 | Samples/BezierPatch/include/Makefile \ |
---|
142 | Samples/CameraTrack/Makefile \ |
---|
143 | Samples/CameraTrack/src/Makefile \ |
---|
144 | Samples/CelShading/Makefile \ |
---|
145 | Samples/CelShading/src/Makefile \ |
---|
146 | Samples/Compositor/Makefile \ |
---|
147 | Samples/Compositor/src/Makefile \ |
---|
148 | Samples/CubeMapping/Makefile \ |
---|
149 | Samples/CubeMapping/src/Makefile \ |
---|
150 | Samples/CubeMapping/include/Makefile \ |
---|
151 | Samples/DeferredShading/Makefile \ |
---|
152 | Samples/DeferredShading/src/Makefile \ |
---|
153 | Samples/DeferredShading/include/Makefile \ |
---|
154 | Samples/Dot3Bump/Makefile \ |
---|
155 | Samples/Dot3Bump/src/Makefile \ |
---|
156 | Samples/EnvMapping/Makefile \ |
---|
157 | Samples/EnvMapping/src/Makefile \ |
---|
158 | Samples/EnvMapping/include/Makefile \ |
---|
159 | Samples/FacialAnimation/Makefile \ |
---|
160 | Samples/FacialAnimation/src/Makefile \ |
---|
161 | Samples/Fresnel/Makefile \ |
---|
162 | Samples/Fresnel/src/Makefile \ |
---|
163 | Samples/Grass/Makefile \ |
---|
164 | Samples/Grass/src/Makefile \ |
---|
165 | Samples/Transpacency/Makefile \ |
---|
166 | Samples/Transpacency/src/Makefile \ |
---|
167 | Samples/Transpacency/include/Makefile \ |
---|
168 | Samples/Lighting/Makefile \ |
---|
169 | Samples/Lighting/src/Makefile \ |
---|
170 | Samples/Lighting/include/Makefile \ |
---|
171 | Samples/OceanDemo/Makefile \ |
---|
172 | Samples/OceanDemo/src/Makefile \ |
---|
173 | Samples/OceanDemo/include/Makefile \ |
---|
174 | Samples/ParticleFX/Makefile \ |
---|
175 | Samples/ParticleFX/src/Makefile \ |
---|
176 | Samples/ParticleFX/include/Makefile \ |
---|
177 | Samples/RenderToTexture/Makefile \ |
---|
178 | Samples/RenderToTexture/src/Makefile \ |
---|
179 | Samples/TextureFX/Makefile \ |
---|
180 | Samples/TextureFX/src/Makefile \ |
---|
181 | Samples/TextureFX/include/Makefile \ |
---|
182 | Samples/Shadows/Makefile \ |
---|
183 | Samples/Shadows/src/Makefile \ |
---|
184 | Samples/SkyBox/Makefile \ |
---|
185 | Samples/SkyBox/src/Makefile \ |
---|
186 | Samples/SkyBox/include/Makefile \ |
---|
187 | Samples/SkyDome/Makefile \ |
---|
188 | Samples/SkyDome/src/Makefile \ |
---|
189 | Samples/SkyDome/include/Makefile \ |
---|
190 | Samples/SkyPlane/Makefile \ |
---|
191 | Samples/SkyPlane/src/Makefile \ |
---|
192 | Samples/SkyPlane/include/Makefile \ |
---|
193 | Samples/Smoke/Makefile \ |
---|
194 | Samples/Smoke/src/Makefile \ |
---|
195 | Samples/Smoke/include/Makefile \ |
---|
196 | Samples/BSP/Makefile \ |
---|
197 | Samples/BSP/src/Makefile \ |
---|
198 | Samples/SkeletalAnimation/Makefile \ |
---|
199 | Samples/SkeletalAnimation/src/Makefile \ |
---|
200 | Samples/SkeletalAnimation/include/Makefile \ |
---|
201 | Samples/Terrain/Makefile \ |
---|
202 | Samples/Terrain/src/Makefile \ |
---|
203 | Samples/Terrain/include/Makefile \ |
---|
204 | Samples/Water/Makefile \ |
---|
205 | Samples/Water/src/Makefile \ |
---|
206 | Samples/Water/include/Makefile \ |
---|
207 | Samples/DynTex/Makefile \ |
---|
208 | Samples/DynTex/src/Makefile \ |
---|
209 | Samples/DynTex/include/Makefile \ |
---|
210 | Samples/VolumeTex/Makefile \ |
---|
211 | Samples/VolumeTex/src/Makefile \ |
---|
212 | Samples/VolumeTex/include/Makefile \ |
---|
213 | Tests/Makefile \ |
---|
214 | Tests/src/Makefile \ |
---|
215 | Tools/Makefile \ |
---|
216 | Tools/MaterialUpgrader/Makefile \ |
---|
217 | Tools/MaterialUpgrader/src/Makefile \ |
---|
218 | Tools/MaterialUpgrader/include/Makefile \ |
---|
219 | Tools/MeshUpgrader/Makefile \ |
---|
220 | Tools/MeshUpgrader/src/Makefile \ |
---|
221 | Tools/XMLConverter/Makefile \ |
---|
222 | Tools/XMLConverter/src/Makefile \ |
---|
223 | Tools/XMLConverter/include/Makefile \ |
---|
224 | Tools/LightwaveConverter/Makefile \ |
---|
225 | Tools/LightwaveConverter/src/Makefile \ |
---|
226 | Tools/LightwaveConverter/include/Makefile \ |
---|
227 | OGRE.pc |
---|
228 | ]) |
---|
229 | |
---|
230 | AC_OUTPUT |
---|