annotate configure.ac @ 55:f1a27ee7e03c

* started the same changes on scn2k_text.cc * handle opcodes childObj*. In fact, it was handled (in a strange way, but it worked) before the previous changeset
author thib
date Wed, 22 Apr 2009 15:01:42 +0000
parents 6581f7eccd26
children 045ca45f9610
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 DISPSIZE="no"
223b71206888 Initial import
thib
parents:
diff changeset
137
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
138 AC_ARG_ENABLE(nwatowav,
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
139 AS_HELP_STRING([--enable-nwatowav], [Build the nwatowav utility (default no)]))
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
140 if test X$enable_nwatowav = X"yes"; then
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
141 AC_SUBST(NWATOWAV, ['nwatowav${EXEEXT}'])
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
142 fi
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
143
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
144 AC_ARG_ENABLE(visarc,
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
145 AS_HELP_STRING([--enable-visarc], [Build the visarc utility (default no)]))
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
146 if test X$enable_visarc = X"yes"; then
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
147 AC_SUBST(VISARC, ['visarc${EXEEXT}'])
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
148 fi
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
149
0
223b71206888 Initial import
thib
parents:
diff changeset
150 AC_ARG_ENABLE(zaurus,
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
151 AS_HELP_STRING([--enable-zaurus], [Compile for zaurus environment (default no)]))
0
223b71206888 Initial import
thib
parents:
diff changeset
152 if test X$enable_zaurus = X"yes"; then
223b71206888 Initial import
thib
parents:
diff changeset
153 USE_X11=0
223b71206888 Initial import
thib
parents:
diff changeset
154 DISPSIZE="320x240"
223b71206888 Initial import
thib
parents:
diff changeset
155 fi
223b71206888 Initial import
thib
parents:
diff changeset
156
49
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
157 AC_ARG_WITH(x11,
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
158 AS_HELP_STRING([--without-x11], [Use the X11 library (default yes)]))
6581f7eccd26 * Correct --disable-x11
thib
parents: 44
diff changeset
159 if test X$with_x11 = X"no"; then
0
223b71206888 Initial import
thib
parents:
diff changeset
160 USE_X11=0
223b71206888 Initial import
thib
parents:
diff changeset
161 else
223b71206888 Initial import
thib
parents:
diff changeset
162 AC_PATH_X
223b71206888 Initial import
thib
parents:
diff changeset
163 AC_PATH_XTRA
223b71206888 Initial import
thib
parents:
diff changeset
164 X_LIBS="$X_LIBS -lX11 -lXext -L/usr/X11R6/lib"
223b71206888 Initial import
thib
parents:
diff changeset
165 LIBS="$LIBS $X_LIBS"
223b71206888 Initial import
thib
parents:
diff changeset
166 fi
223b71206888 Initial import
thib
parents:
diff changeset
167
223b71206888 Initial import
thib
parents:
diff changeset
168 AC_ARG_ENABLE(displaysize,
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
169 AS_HELP_STRING([--enable-displaysize=SIZE],
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
170 [Change default display size, for example --enable-displaysize=320x240]),
0
223b71206888 Initial import
thib
parents:
diff changeset
171 displaysize=$enableval)
223b71206888 Initial import
thib
parents:
diff changeset
172 if test X$displaysize != X; then
223b71206888 Initial import
thib
parents:
diff changeset
173 DISPSIZE=$displaysize
223b71206888 Initial import
thib
parents:
diff changeset
174 fi
223b71206888 Initial import
thib
parents:
diff changeset
175
223b71206888 Initial import
thib
parents:
diff changeset
176 AC_DEFINE_UNQUOTED(USE_X11,$USE_X11, [X11 library is used])
223b71206888 Initial import
thib
parents:
diff changeset
177 AC_DEFINE_UNQUOTED(DISPSIZE, "$DISPSIZE", [default display size])
223b71206888 Initial import
thib
parents:
diff changeset
178
223b71206888 Initial import
thib
parents:
diff changeset
179 AC_OUTPUT(Makefile system/Makefile font/Makefile window/Makefile music2/Makefile scn2k/Makefile)