add mng option to configure script

This commit is contained in:
nehalmistry 2004-07-14 23:32:48 +00:00
parent 1458e3db5d
commit 96bc4431ff
2 changed files with 21 additions and 4 deletions

View file

@ -34,8 +34,9 @@ TOOLLIBS=$(XLDFLAGS) -lpng -lz -lm @EXTRA_LIBS@ @THREAD_LIBS@ -L/usr/local/lib \
STRATAGUS_LIBS= -lpng -lz -lm \
@EXTRA_LIBS@ @VIDEO_LIBS@ @THREAD_LIBS@ $(CCLLIB) $(COMP_LIBS) \
@FLAC_LIBS@ @OGG_LIBS@ @MAD_LIBS@ @MIKMOD_LIBS@ @CDAUDIO_LIBS@ \
@LUA_LIBS@ @STATIC_LDFLAGS@ -lz -lm -L/usr/local/lib
@FLAC_LIBS@ @OGG_LIBS@ @MNG_LIBS@ @MAD_LIBS@ @MIKMOD_LIBS@ \
@CDAUDIO_LIBS@ @LUA_LIBS@ @STATIC_LDFLAGS@ \
-lz -lm -L/usr/local/lib
DISTLIST=$(TOPDIR)/distlist
TAGS=$(TOPDIR)/src/tags
@ -52,8 +53,8 @@ IFLAGS= -I$(TOPDIR)/src/include $(XIFLAGS) -I$(TOPDIR)/src/movie/vp31/include
CFLAGS=@EXTRA_CFLAGS@ @PROFILE_CFLAGS@ @DEBUG_CFLAGS@ $(IFLAGS) \
-DUSE_HP_FOR_XP -DMAP_REGIONS \
@PROFILE_CFLAGS@ @DEBUG_CFLAGS@ @VIDEO_CFLAGS@ @BZ2_CFLAGS@ \
@OGG_CFLAGS@ @MAD_CFLAGS@ @FLAC_CFLAGS@ @CDAUDIO_CFLAGS@ \
@MIKMOD_CFLAGS@ @LUA_CFLAGS@ $(CCL) \
@OGG_CFLAGS@ @MNG_CFLAGS@ @MAD_CFLAGS@ @FLAC_CFLAGS@ \
@CDAUDIO_CFLAGS@ @MIKMOD_CFLAGS@ @LUA_CFLAGS@ $(CCL) \
$(COMP_CFLAGS) @PLATFORM@ \
-I/usr/local/include -I/usr/X11R6/include

View file

@ -190,6 +190,22 @@ AC_SUBST(MIKMOD_CFLAGS)
AC_SUBST(MIKMOD_LIBS)
dnl ----------------------------
dnl --- CHECK FOR MNG LIB ------
AC_ARG_WITH(mng,
[ --with-mng [Use mng (default: no)]], MAD="$with_mng")
MNG_CFLAGS=
MNG_LIBS=
if test "$MNG" != "yes"; then
MNG_CFLAGS=""
MNG_LIBS=""
else
MNG_CFLAGS="-DUSE_MNG"
MNG_LIBS="-lmng"
fi
AC_SUBST(MNG_CFLAGS)
AC_SUBST(MNG_LIBS)
dnl ----------------------------
dnl --- CHECK FOR MAD LIB ------
AC_ARG_WITH(mad,
[ --with-mad [Use mad mp3 (default: no)]], MAD="$with_mad")