[21] | 1 | # Modified the 06/23/2006 by |
---|
| 2 | # Martin Pieuchot (Aer) <t1tamar (at) gmail.com> |
---|
| 3 | |
---|
| 4 | AC_PREREQ(2.59) |
---|
| 5 | AC_INIT([OgreOde_Core], [0.7.10]) |
---|
| 6 | AM_INIT_AUTOMAKE([OgreOde_Core], [0.7.10]) |
---|
| 7 | AM_CONFIG_HEADER([config.h]) |
---|
| 8 | |
---|
| 9 | AM_INIT_AUTOMAKE([foreign dist-bzip2]) |
---|
| 10 | |
---|
| 11 | dnl Checks for programs |
---|
| 12 | AC_PROG_CXX |
---|
| 13 | AC_PROG_LIBTOOL |
---|
| 14 | |
---|
| 15 | PKG_CHECK_MODULES(OGRE, [OGRE >= 1.2.0],, |
---|
| 16 | AC_MSG_ERROR([OGRE is required to compile Ogre-Ode])) |
---|
| 17 | AC_SUBST(OGRE_CFLAGS) |
---|
| 18 | AC_SUBST(OGRE_LIBS) |
---|
| 19 | |
---|
| 20 | PKG_CHECK_MODULES(ois, [OIS >= 0.5.0],, |
---|
| 21 | AC_MSG_ERROR([OIS is required to compile Ogre-Ode samples])) |
---|
| 22 | AC_SUBST(ois_CFLAGS) |
---|
| 23 | AC_SUBST(ois_LIBS) |
---|
| 24 | |
---|
| 25 | AC_CHECK_HEADERS([ode/ode.h],, |
---|
| 26 | AC_MSG_ERROR([ODE is required to compile Ogre-Ode])) |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | AC_ARG_WITH([samples],AC_HELP_STRING([--with-samples=[PATH]], |
---|
| 30 | [look for the ogre samples in PATH, default is |
---|
| 31 | ../../../../../ogrenew/Samples/]), |
---|
| 32 | [samples=$withval],[samples=no]) |
---|
| 33 | |
---|
| 34 | SAMPLES="../../../../../ogrenew/Samples" |
---|
| 35 | if test "x$samples" != "xno" |
---|
| 36 | then |
---|
| 37 | SAMPLES="${samples}" |
---|
| 38 | fi |
---|
| 39 | SAMPLES_CFLAGS="${SAMPLES}/Common/include" |
---|
| 40 | AC_SUBST(SAMPLES) |
---|
| 41 | AC_SUBST(SAMPLES_CFLAGS) |
---|
| 42 | AC_CONFIG_FILES([Makefile |
---|
| 43 | src/Makefile |
---|
| 44 | include/Makefile |
---|
| 45 | OgreOde_Core.pc |
---|
| 46 | prefab/Makefile |
---|
| 47 | prefab/include/Makefile |
---|
| 48 | prefab/src/Makefile |
---|
| 49 | OgreOde_Prefab.pc |
---|
| 50 | OgreOde_Loader.pc |
---|
| 51 | loader/Makefile |
---|
| 52 | loader/src/Makefile |
---|
| 53 | loader/include/Makefile |
---|
| 54 | demos/Makefile |
---|
| 55 | demos/SimpleScenes/Makefile |
---|
| 56 | demos/SimpleScenes/src/Makefile |
---|
| 57 | demos/GranTurismOgre/Makefile |
---|
| 58 | demos/GranTurismOgre/src/Makefile |
---|
| 59 | demos/Landscape/Makefile |
---|
| 60 | demos/Landscape/src/Makefile |
---|
| 61 | ]) |
---|
| 62 | |
---|
| 63 | AC_OUTPUT |
---|