diff options
author | Simon Howard | 2007-05-02 02:03:44 +0000 |
---|---|---|
committer | Simon Howard | 2007-05-02 02:03:44 +0000 |
commit | 85a709203c997834db1cbd8b4d6a979197306111 (patch) | |
tree | 2890a3f24f004d5cf6979a780d647ba72e759944 /configure.in | |
parent | d3d5b27ce6830ee2c41256bef2c9b7fc041cfa04 (diff) | |
download | chocolate-doom-85a709203c997834db1cbd8b4d6a979197306111.tar.gz chocolate-doom-85a709203c997834db1cbd8b4d6a979197306111.tar.bz2 chocolate-doom-85a709203c997834db1cbd8b4d6a979197306111.zip |
Check in autoconf if python is installed; if not, don't run python
scripts.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 873
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in index ca9dffe6..9ed01939 100644 --- a/configure.in +++ b/configure.in @@ -1,10 +1,12 @@ AC_INIT(Chocolate Doom, 0.2.0, fraggle@gmail.com, chocolate-doom) + AC_CONFIG_AUX_DIR(autotools) orig_CFLAGS="$CFLAGS" AC_PROG_CC AC_PROG_RANLIB +AC_CHECK_PROG(HAVE_PYTHON, python, true, false) OPT_LEVEL=2 @@ -44,6 +46,7 @@ AC_CHECK_LIB(SDL_net,SDLNet_UDP_Send,[ AC_CHECK_TOOL(WINDRES, windres, ) AM_CONDITIONAL(HAVE_WINDRES, test "$WINDRES" != "") +AM_CONDITIONAL(HAVE_PYTHON, $HAVE_PYTHON) AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME,AC_PACKAGE_VERSION) |