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

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

adding ogre 1.2 and dependencies

Line 
1AC_PREREQ(2.50)
2
3AC_INIT(OGRE_REFAPP, 0.10.0)
4AM_INIT_AUTOMAKE([1.6.1 foreign no-installinfo no-installman subdir-objects])
5AM_CONFIG_HEADER(ReferenceAppLayer/include/config.h)
6
7AC_CANONICAL_TARGET
8
9dnl Check for programs
10AC_PROG_CC
11AC_PROG_CXX
12AC_PROG_INSTALL
13
14AM_PROG_LIBTOOL
15
16dnl GCC ersion check
17if test x$GCC = xyes; then
18    AC_MSG_CHECKING([version 3.x of gcc])
19    if test -n "`$CC --version 2>&1|grep '3.'`"; then
20        AC_DEFINE(EXT_HASH,, Use old STL hash options)
21        AC_MSG_RESULT(yes);
22    else
23        AC_MSG_RESULT(no)!
24    fi
25fi
26
27dnl Other stuff we need
28PKG_CHECK_MODULES(OGRE, OGRE)
29AC_LANG_PUSH([C++])
30AC_CHECK_LIB([ode], [main], [], AC_MSG_ERROR([Can't find libode]))
31AC_LANG_POP([C++])
32AC_CHECK_LIB(m, pow)
33AC_CHECK_LIB(z, gzopen)
34AC_CHECK_FUNC(snprintf, AC_DEFINE(HAVE_SNPRINTF,,snprintf))
35AC_CHECK_FUNC(vsnprintf, AC_DEFINE(HAVE_VSNPRINTF,,vsnprintf))
36
37dnl Create the makefiles
38AC_CONFIG_FILES([Makefile \
39    ReferenceAppLayer/Makefile \
40    ReferenceAppLayer/src/Makefile \
41    ReferenceAppLayer/include/Makefile \
42        BspCollision/Makefile \
43        BspCollision/src/Makefile
44       
45    ])
46
47AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.