annotate configure.ac @ 70:281dcd7217df

Add all Air, Clannad and Kanon function names in scn2kdump, based on rldev’s names.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 01 Apr 2011 22:54:40 +0200
parents 419761c8d9b9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
223b71206888 Initial import
thib
parents:
diff changeset
1 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
223b71206888 Initial import
thib
parents:
diff changeset
2 dnl
223b71206888 Initial import
thib
parents:
diff changeset
3 dnl First definition
41
4c832144b3f2 OtakuNoRaifu is born! (Changed 'xclannad' to 'OtakuNoRaifu')
thib
parents: 37
diff changeset
4 AC_INIT(otakunoraifu, 0.1)
0
223b71206888 Initial import
thib
parents:
diff changeset
5
223b71206888 Initial import
thib
parents:
diff changeset
6 dnl Software version
37
f88d47a4bf87 * Modernize configure.ac
thib
parents: 34
diff changeset
7 PACKAGE=$AC_PACKAGE_NAME
f88d47a4bf87 * Modernize configure.ac
thib
parents: 34
diff changeset
8 VERSION=$AC_PACKAGE_VERSION
0
223b71206888 Initial import
thib
parents:
diff changeset
9
37
f88d47a4bf87 * Modernize configure.ac
thib
parents: 34
diff changeset
10 AM_INIT_AUTOMAKE
0
223b71206888 Initial import
thib
parents:
diff changeset
11
223b71206888 Initial import
thib
parents:
diff changeset
12 dnl Specify a configuretion file
20
824b89018ea8 * CG completion percentage (maybe not working properly?)
thib
parents: 0
diff changeset
13 AC_CONFIG_HEADER(config.h)
0
223b71206888 Initial import
thib
parents:
diff changeset
14
223b71206888 Initial import
thib
parents:
diff changeset
15 dnl Checks for programs.
223b71206888 Initial import
thib
parents:
diff changeset
16 AC_PROG_CC
223b71206888 Initial import
thib
parents:
diff changeset
17 AC_PROG_CXX
223b71206888 Initial import
thib
parents:
diff changeset
18 AC_PROG_LN_S
223b71206888 Initial import
thib
parents:
diff changeset
19 AC_PROG_RANLIB
223b71206888 Initial import
thib
parents:
diff changeset
20 dnl AC_PROG_INSTALL
223b71206888 Initial import
thib
parents:
diff changeset
21 AC_PROG_MAKE_SET
223b71206888 Initial import
thib
parents:
diff changeset
22
223b71206888 Initial import
thib
parents:
diff changeset
23 dnl dnl On FreeBSD 3.0 (and perhaps some other systems) GNU m4 is
223b71206888 Initial import
thib
parents:
diff changeset
24 dnl dnl called `gm4' where `m4' is the system's own m4.
223b71206888 Initial import
thib
parents:
diff changeset
25 dnl AC_CHECK_PROGS(M4, gm4 m4, m4)
223b71206888 Initial import
thib
parents:
diff changeset
26 dnl
223b71206888 Initial import
thib
parents:
diff changeset
27 dnl if test "$M4" = "m4"; then
223b71206888 Initial import
thib
parents:
diff changeset
28 dnl AC_MSG_CHECKING(whether m4 is GNU m4)
223b71206888 Initial import
thib
parents:
diff changeset
29 dnl if $M4 --version < /dev/null 2>/dev/null | grep '^GNU m4 ' >/dev/null ; then
223b71206888 Initial import
thib
parents:
diff changeset
30 dnl AC_MSG_RESULT(yes)
223b71206888 Initial import
thib
parents:
diff changeset
31 dnl else
223b71206888 Initial import
thib
parents:
diff changeset
32 dnl AC_MSG_RESULT(no)
223b71206888 Initial import
thib
parents:
diff changeset
33 dnl if test "$host_vendor" = "sun"; then
223b71206888 Initial import
thib
parents:
diff changeset
34 dnl AC_MSG_ERROR("SUN m4 does not work for building Gtk--. Please install GNU m4")
223b71206888 Initial import
thib
parents:
diff changeset
35 dnl fi
223b71206888 Initial import
thib
parents:
diff changeset
36 dnl fi
223b71206888 Initial import
thib
parents:
diff changeset
37 dnl fi
223b71206888 Initial import
thib
parents:
diff changeset
38 dnl
223b71206888 Initial import
thib
parents:
diff changeset
39 dnl dnl Check that this is GNU m4 - if not, exit with error if this is a SUN
223b71206888 Initial import
thib
parents:
diff changeset
40 dnl dnl
223b71206888 Initial import
thib
parents:
diff changeset
41
223b71206888 Initial import
thib
parents:
diff changeset
42 dnl Checks for header files.
223b71206888 Initial import
thib
parents:
diff changeset
43 AC_HEADER_DIRENT
223b71206888 Initial import
thib
parents:
diff changeset
44 AC_HEADER_STDC
223b71206888 Initial import
thib
parents:
diff changeset
45 AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h)
223b71206888 Initial import
thib
parents:
diff changeset
46
223b71206888 Initial import
thib
parents:
diff changeset
47 dnl Checks for typedefs, structures, and compiler characteristics.
223b71206888 Initial import
thib
parents:
diff changeset
48 AC_C_CONST
223b71206888 Initial import
thib
parents:
diff changeset
49 AC_TYPE_SIZE_T
223b71206888 Initial import
thib
parents:
diff changeset
50 AC_HEADER_TIME
223b71206888 Initial import
thib
parents:
diff changeset
51 AC_STRUCT_TM
223b71206888 Initial import
thib
parents:
diff changeset
52 #X_LIBS="$X_LIBS -lX11 -lXext -L/usr/X11R6/lib"
223b71206888 Initial import
thib
parents:
diff changeset
53
223b71206888 Initial import
thib
parents:
diff changeset
54
223b71206888 Initial import
thib
parents:
diff changeset
55
223b71206888 Initial import
thib
parents:
diff changeset
56 dnl Checks for library functions.
223b71206888 Initial import
thib
parents:
diff changeset
57 AC_PROG_GCC_TRADITIONAL
223b71206888 Initial import
thib
parents:
diff changeset
58 AC_FUNC_MEMCMP
223b71206888 Initial import
thib
parents:
diff changeset
59 AC_FUNC_MMAP
223b71206888 Initial import
thib
parents:
diff changeset
60 AC_TYPE_SIGNAL
223b71206888 Initial import
thib
parents:
diff changeset
61 AC_CHECK_FUNCS(gettimeofday mkdir snprintf)
223b71206888 Initial import
thib
parents:
diff changeset
62 #ac_save_LIBS="$LIBS"
223b71206888 Initial import
thib
parents:
diff changeset
63 #LIBS="$LIBS -pthread"
223b71206888 Initial import
thib
parents:
diff changeset
64 #AC_CHECK_FUNCS(_thread_sys_sigaltstack)
223b71206888 Initial import
thib
parents:
diff changeset
65 #LIBS="$ac_save_LIBS"
223b71206888 Initial import
thib
parents:
diff changeset
66 AC_C_BIGENDIAN
223b71206888 Initial import
thib
parents:
diff changeset
67
223b71206888 Initial import
thib
parents:
diff changeset
68 dnl for gettext
223b71206888 Initial import
thib
parents:
diff changeset
69 dnl ALL_LINGUAS="ja"
223b71206888 Initial import
thib
parents:
diff changeset
70 dnl AM_GNU_GETTEXT
223b71206888 Initial import
thib
parents:
diff changeset
71 AC_CHECK_FUNC(gettext,,AC_CHECK_LIB(intl, gettext))
223b71206888 Initial import
thib
parents:
diff changeset
72
223b71206888 Initial import
thib
parents:
diff changeset
73 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
223b71206888 Initial import
thib
parents:
diff changeset
74 dnl
223b71206888 Initial import
thib
parents:
diff changeset
75 dnl Check libraries
223b71206888 Initial import
thib
parents:
diff changeset
76
223b71206888 Initial import
thib
parents:
diff changeset
77 AC_CHECK_LIB(z, zlibVersion)
223b71206888 Initial import
thib
parents:
diff changeset
78 AC_CHECK_LIB(png, png_write_end)
223b71206888 Initial import
thib
parents:
diff changeset
79 AC_CHECK_LIB(jpeg, jpeg_start_decompress)
223b71206888 Initial import
thib
parents:
diff changeset
80 dnl ogg vobis
49
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
81 AC_ARG_ENABLE(vorbis,
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
82 AS_HELP_STRING([--disable-vorbis], [Build with vorbis and ogg (default yes)]))
49
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
83 if test X$enable_vorbis != X"no"; then
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
84 AC_ARG_WITH(tremor, AS_HELP_STRING([--with-tremor],
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
85 [use the tremor (integer-only implementation of vorbisfile) library (default no)]))
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
86 AC_CHECK_LIB(ogg, ogg_stream_init)
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
87 AC_CHECK_LIB(vorbis, vorbis_book_decode,,,-logg)
49
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
88 if test X$with_tremor = X"yes"; then
44
a85cdca1980a * fixed itoa_ws
thib
parents: 41
diff changeset
89 AC_CHECK_LIB(vorbisidec, ov_read,,
a85cdca1980a * fixed itoa_ws
thib
parents: 41
diff changeset
90 AC_MSG_ERROR(vorbisidec (tremor) not found),-logg -lvorbis)
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
91 else
44
a85cdca1980a * fixed itoa_ws
thib
parents: 41
diff changeset
92 AC_CHECK_LIB(vorbisfile, ov_read,,
a85cdca1980a * fixed itoa_ws
thib
parents: 41
diff changeset
93 AC_MSG_ERROR(vorbisfile not found),-logg -lvorbis)
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
94 fi
0
223b71206888 Initial import
thib
parents:
diff changeset
95 fi
223b71206888 Initial import
thib
parents:
diff changeset
96
223b71206888 Initial import
thib
parents:
diff changeset
97 dnl SDL config
223b71206888 Initial import
thib
parents:
diff changeset
98 AM_PATH_SDL()
223b71206888 Initial import
thib
parents:
diff changeset
99 AC_SUBST(SDL_CFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
100 AC_SUBST(SDL_LIBS)
223b71206888 Initial import
thib
parents:
diff changeset
101
34
b76a8da75ec3 * Check for SDL_mixer and SDL_gfx
thib
parents: 26
diff changeset
102 dnl check for sdl_gfx and sdl_mixer
b76a8da75ec3 * Check for SDL_mixer and SDL_gfx
thib
parents: 26
diff changeset
103
b76a8da75ec3 * Check for SDL_mixer and SDL_gfx
thib
parents: 26
diff changeset
104 AC_CHECK_LIB(SDL_gfx, rotozoomSurfaceXY,,
b76a8da75ec3 * Check for SDL_mixer and SDL_gfx
thib
parents: 26
diff changeset
105 AC_MSG_ERROR(This program cannot be build without SDL_gfx))
b76a8da75ec3 * Check for SDL_mixer and SDL_gfx
thib
parents: 26
diff changeset
106 AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio,,
b76a8da75ec3 * Check for SDL_mixer and SDL_gfx
thib
parents: 26
diff changeset
107 AC_MSG_ERROR(This program cannot be build without SDL_mixer))
b76a8da75ec3 * Check for SDL_mixer and SDL_gfx
thib
parents: 26
diff changeset
108
0
223b71206888 Initial import
thib
parents:
diff changeset
109 dnl SMPEG & MAD config
223b71206888 Initial import
thib
parents:
diff changeset
110 AM_PATH_SMPEG()
223b71206888 Initial import
thib
parents:
diff changeset
111 AC_SUBST(SMPEG_CFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
112 AC_SUBST(SMPEG_LIBS)
223b71206888 Initial import
thib
parents:
diff changeset
113 if test X"$SMPEG_LIBS" = X ; then
223b71206888 Initial import
thib
parents:
diff changeset
114 USE_SMPEG=0
223b71206888 Initial import
thib
parents:
diff changeset
115 else
223b71206888 Initial import
thib
parents:
diff changeset
116 USE_SMPEG=1
223b71206888 Initial import
thib
parents:
diff changeset
117 fi
49
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
118 AC_ARG_WITH(mad,
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
119 [ --without-mad use mad (integer-only implementation for mpeg decoding) [ default yes]])
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
120 if test X$without_mad != X"no"; then
0
223b71206888 Initial import
thib
parents:
diff changeset
121 AC_CHECK_LIB(mad, mad_decoder_run)
223b71206888 Initial import
thib
parents:
diff changeset
122 fi
223b71206888 Initial import
thib
parents:
diff changeset
123
223b71206888 Initial import
thib
parents:
diff changeset
124 AC_DEFINE_UNQUOTED(USE_SMPEG,$USE_SMPEG, [smpeg library is used])
223b71206888 Initial import
thib
parents:
diff changeset
125
223b71206888 Initial import
thib
parents:
diff changeset
126 dnl FreeType2
223b71206888 Initial import
thib
parents:
diff changeset
127 AC_CHECK_FT2()
223b71206888 Initial import
thib
parents:
diff changeset
128 AC_SUBST(FT2_CFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
129 AC_SUBST(FT2_LIBS)
223b71206888 Initial import
thib
parents:
diff changeset
130
223b71206888 Initial import
thib
parents:
diff changeset
131
223b71206888 Initial import
thib
parents:
diff changeset
132 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
223b71206888 Initial import
thib
parents:
diff changeset
133 dnl
223b71206888 Initial import
thib
parents:
diff changeset
134 dnl Check option ... Zaurus or embed machines
223b71206888 Initial import
thib
parents:
diff changeset
135 USE_X11=1
223b71206888 Initial import
thib
parents:
diff changeset
136
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
137 AC_ARG_ENABLE(nwatowav,
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
138 AS_HELP_STRING([--enable-nwatowav], [Build the nwatowav utility (default no)]))
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
139 if test X$enable_nwatowav = X"yes"; then
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
140 AC_SUBST(NWATOWAV, ['nwatowav${EXEEXT}'])
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
141 fi
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
142
67
419761c8d9b9 Add configure option to build scn2kdump.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 64
diff changeset
143 AC_ARG_ENABLE(scn2kdump,
419761c8d9b9 Add configure option to build scn2kdump.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 64
diff changeset
144 AS_HELP_STRING([--enable-scn2kdump], [Build the scn2kdump utility (default no)]))
419761c8d9b9 Add configure option to build scn2kdump.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 64
diff changeset
145 if test X$enable_scn2kdump = X"yes"; then
419761c8d9b9 Add configure option to build scn2kdump.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 64
diff changeset
146 AC_SUBST(SCN2KDUMP, ['scn2kdump${EXEEXT}'])
419761c8d9b9 Add configure option to build scn2kdump.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 64
diff changeset
147 fi
419761c8d9b9 Add configure option to build scn2kdump.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents: 64
diff changeset
148
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
149 AC_ARG_ENABLE(visarc,
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
150 AS_HELP_STRING([--enable-visarc], [Build the visarc utility (default no)]))
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
151 if test X$enable_visarc = X"yes"; then
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
152 AC_SUBST(VISARC, ['visarc${EXEEXT}'])
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
153 fi
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
154
0
223b71206888 Initial import
thib
parents:
diff changeset
155 AC_ARG_ENABLE(zaurus,
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
156 AS_HELP_STRING([--enable-zaurus], [Compile for zaurus environment (default no)]))
0
223b71206888 Initial import
thib
parents:
diff changeset
157 if test X$enable_zaurus = X"yes"; then
223b71206888 Initial import
thib
parents:
diff changeset
158 USE_X11=0
223b71206888 Initial import
thib
parents:
diff changeset
159 fi
223b71206888 Initial import
thib
parents:
diff changeset
160
49
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
161 AC_ARG_WITH(x11,
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
162 AS_HELP_STRING([--without-x11], [Use the X11 library (default yes)]))
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
163 if test X$with_x11 = X"no"; then
0
223b71206888 Initial import
thib
parents:
diff changeset
164 USE_X11=0
223b71206888 Initial import
thib
parents:
diff changeset
165 else
223b71206888 Initial import
thib
parents:
diff changeset
166 AC_PATH_X
223b71206888 Initial import
thib
parents:
diff changeset
167 AC_PATH_XTRA
64
045ca45f9610 Remove --displaysize, as it was not used.
Thibaut GIRKA <thib@sitedethib.com>
parents: 49
diff changeset
168 X_LIBS="$X_LIBS -lX11 -lXext"
0
223b71206888 Initial import
thib
parents:
diff changeset
169 LIBS="$LIBS $X_LIBS"
223b71206888 Initial import
thib
parents:
diff changeset
170 fi
223b71206888 Initial import
thib
parents:
diff changeset
171
223b71206888 Initial import
thib
parents:
diff changeset
172 AC_DEFINE_UNQUOTED(USE_X11,$USE_X11, [X11 library is used])
223b71206888 Initial import
thib
parents:
diff changeset
173
223b71206888 Initial import
thib
parents:
diff changeset
174 AC_OUTPUT(Makefile system/Makefile font/Makefile window/Makefile music2/Makefile scn2k/Makefile)