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