source: OGRE/trunk/ogrenew/configure.in @ 692

Revision 692, 6.9 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1AC_PREREQ(2.50)
2
3AC_INIT([OGRE], [1.2.0])
4
5AC_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])
9AM_INIT_AUTOMAKE([OGRE], 1.2.0)
10AC_CONFIG_HEADERS([OgreMain/include/config.h])
11
12dnl Check for programs
13AC_PROG_CC
14AC_PROG_CXX
15AM_PROG_CC_C_O
16AC_PROG_INSTALL
17AC_PROG_YACC
18AM_PROG_LEX
19
20dnl Setup target-specific parameters
21OGRE_SETUP_FOR_TARGET
22
23AC_DISABLE_STATIC
24AC_PROG_LIBTOOL
25
26dnl GCC version check
27if 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
36fi
37
38dnl Other stuff we need
39OGRE_USE_STLPORT
40#AM_PATH_SDL(1.2.0)
41AC_CHECK_FT2(9.0.0)
42
43AC_CHECK_LIB(dl, dlopen)
44AC_CHECK_LIB(m, pow)
45AC_CHECK_LIB(z, gzopen)
46AC_CHECK_LIB(pthread, pthread_create)
47AC_CHECK_FUNC(snprintf, AC_DEFINE(HAVE_SNPRINTF,,snprintf))
48AC_CHECK_FUNC(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF,,vsnprintf))
49
50OGRE_CHECK_CPPUNIT
51
52PKG_CHECK_MODULES(ZZIPLIB, zziplib)
53AC_SUBST(ZZIPLIB_CFLAGS)
54AC_SUBST(ZZIPLIB_LIBS)
55
56OGRE_GET_CONFIG_TOOLKIT
57OGRE_GET_PLATFORM
58OGRE_GET_GLSUPPORT
59
60dnl Find the optional components we should build
61OGRE_CHECK_DOUBLE
62OGRE_CHECK_THREADING
63OGRE_CHECK_DEVIL
64OGRE_CHECK_CG
65OGRE_CHECK_OPENEXR
66OGRE_CHECK_DX9
67
68dnl Detect endianness
69OGRE_DETECT_ENDIAN
70
71dnl Check to see if -fPIC is required.
72OGRE_CHECK_PIC
73
74dnl Check to see if CEGUI is installed.
75OGRE_CHECK_CEGUI
76
77CFLAGS="$CFLAGS $SDL_CFLAGS"
78CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
79LIBS="$LIBS $SDL_LIBS"
80
81dnl versioning info for libtool
82dnl Note this is the ABI version which is not the same as our actual library version
83OGREMAIN_CURRENT=11
84OGREMAIN_REVISION=0
85OGREMAIN_AGE=0
86OGREMAIN_VERSION_INFO=$OGREMAIN_CURRENT:$OGREMAIN_REVISION:$OGREMAIN_AGE
87AC_SUBST(OGREMAIN_VERSION_INFO)
88
89
90dnl Create the makefiles
91AC_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
230AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.