changeset 67:419761c8d9b9

Add configure option to build scn2kdump.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 23 Feb 2011 01:48:51 +0100
parents d112357a0ec1
children 043d5db57474
files README configure.ac scn2k/Makefile.am
diffstat 3 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/README
+++ b/README
@@ -32,7 +32,7 @@ How to build:
 
 Just type './configure' followed by 'make'.
 If you want to build nwatowav (an utility to convert background musics to wav files), add '--enable-nwatowav' to the './configure' call.
-Same with visarc (an utility to extract some data, such as the graphics files).
+Same with visarc (an utility to extract some data, such as the graphics files) and scn2kdump (an utility to dump all data from a scenario file).
 
 Type 'make install' to install OtakuNoRaifu.
 
--- a/configure.ac
+++ b/configure.ac
@@ -140,6 +140,12 @@ if test X$enable_nwatowav = X"yes"; then
     AC_SUBST(NWATOWAV, ['nwatowav${EXEEXT}'])
 fi
 
+AC_ARG_ENABLE(scn2kdump,
+    AS_HELP_STRING([--enable-scn2kdump], [Build the scn2kdump utility (default no)]))
+if test X$enable_scn2kdump = X"yes"; then
+    AC_SUBST(SCN2KDUMP, ['scn2kdump${EXEEXT}'])
+fi
+
 AC_ARG_ENABLE(visarc,
     AS_HELP_STRING([--enable-visarc], [Build the visarc utility (default no)]))
 if test X$enable_visarc = X"yes"; then
--- a/scn2k/Makefile.am
+++ b/scn2k/Makefile.am
@@ -6,6 +6,7 @@ libscn2k_a_SOURCES = scn2k_cmd.cc scn2k_
                      command_handler.cc \
                      scn2k.h scn2k_impl.h
 
+bin_PROGRAMS = $(SCN2KDUMP)
 EXTRA_PROGRAMS = scn2kdump
 
 scn2kdump_SOURCES = scn2kdump.cc