annotate configure.ac @ 30:3fe3e5f184b5

* Added CLANNAD Full Voice's key
author thib
date Fri, 06 Mar 2009 21:25:42 +0000
parents f45da03ca631
children b76a8da75ec3
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
223b71206888 Initial import
thib
parents:
diff changeset
4 AC_INIT(scn2k)
223b71206888 Initial import
thib
parents:
diff changeset
5
223b71206888 Initial import
thib
parents:
diff changeset
6 dnl Software version
223b71206888 Initial import
thib
parents:
diff changeset
7 PACKAGE=xclannad
22
759202cf1756 Use automake
thib
parents: 20
diff changeset
8 VERSION=0.07hb
0
223b71206888 Initial import
thib
parents:
diff changeset
9
22
759202cf1756 Use automake
thib
parents: 20
diff changeset
10 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
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
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
81 AC_ARG_WITH(vorbis,
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)]))
26
f45da03ca631 * Corrected --disable-vorbis in configure.ac
thib
parents: 25
diff changeset
83 if test X$with_vorbis != X"no"; then
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
84 AC_ARG_ENABLE(tremor, AS_HELP_STRING([--enable-tremor],
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
85 [enable tremor (integer-only implementation of vorbisfile) (default no)]))
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)
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
88 if test X$enable_tremor = X"yes"; then
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
89 AC_CHECK_LIB(vorbisidec, ov_read,,,-logg -lvorbis)
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
90 else
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
91 AC_CHECK_LIB(vorbisfile, ov_read,,,-logg -lvorbis)
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
92 fi
0
223b71206888 Initial import
thib
parents:
diff changeset
93 fi
223b71206888 Initial import
thib
parents:
diff changeset
94
223b71206888 Initial import
thib
parents:
diff changeset
95 dnl SDL config
223b71206888 Initial import
thib
parents:
diff changeset
96 AM_PATH_SDL()
223b71206888 Initial import
thib
parents:
diff changeset
97 AC_SUBST(SDL_CFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
98 AC_SUBST(SDL_LIBS)
223b71206888 Initial import
thib
parents:
diff changeset
99
223b71206888 Initial import
thib
parents:
diff changeset
100 dnl SMPEG & MAD config
223b71206888 Initial import
thib
parents:
diff changeset
101 AM_PATH_SMPEG()
223b71206888 Initial import
thib
parents:
diff changeset
102 AC_SUBST(SMPEG_CFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
103 AC_SUBST(SMPEG_LIBS)
223b71206888 Initial import
thib
parents:
diff changeset
104 if test X"$SMPEG_LIBS" = X ; then
223b71206888 Initial import
thib
parents:
diff changeset
105 USE_SMPEG=0
223b71206888 Initial import
thib
parents:
diff changeset
106 else
223b71206888 Initial import
thib
parents:
diff changeset
107 USE_SMPEG=1
223b71206888 Initial import
thib
parents:
diff changeset
108 fi
223b71206888 Initial import
thib
parents:
diff changeset
109 AC_ARG_ENABLE(mad,
223b71206888 Initial import
thib
parents:
diff changeset
110 [ --disable-mad disable mad (integer-only implementation for mpeg decoding) [ default yes]])
223b71206888 Initial import
thib
parents:
diff changeset
111 if test X$enable_mad != X"no"; then
223b71206888 Initial import
thib
parents:
diff changeset
112 AC_CHECK_LIB(mad, mad_decoder_run)
223b71206888 Initial import
thib
parents:
diff changeset
113 fi
223b71206888 Initial import
thib
parents:
diff changeset
114
223b71206888 Initial import
thib
parents:
diff changeset
115 AC_DEFINE_UNQUOTED(USE_SMPEG,$USE_SMPEG, [smpeg library is used])
223b71206888 Initial import
thib
parents:
diff changeset
116
223b71206888 Initial import
thib
parents:
diff changeset
117 dnl FreeType2
223b71206888 Initial import
thib
parents:
diff changeset
118 AC_CHECK_FT2()
223b71206888 Initial import
thib
parents:
diff changeset
119 AC_SUBST(FT2_CFLAGS)
223b71206888 Initial import
thib
parents:
diff changeset
120 AC_SUBST(FT2_LIBS)
223b71206888 Initial import
thib
parents:
diff changeset
121
223b71206888 Initial import
thib
parents:
diff changeset
122
223b71206888 Initial import
thib
parents:
diff changeset
123 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
223b71206888 Initial import
thib
parents:
diff changeset
124 dnl
223b71206888 Initial import
thib
parents:
diff changeset
125 dnl Check option ... Zaurus or embed machines
223b71206888 Initial import
thib
parents:
diff changeset
126 USE_X11=1
223b71206888 Initial import
thib
parents:
diff changeset
127 DISPSIZE="no"
223b71206888 Initial import
thib
parents:
diff changeset
128
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
129 AC_ARG_ENABLE(nwatowav,
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
130 AS_HELP_STRING([--enable-nwatowav], [Build the nwatowav utility (default no)]))
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
131 if test X$enable_nwatowav = X"yes"; then
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
132 AC_SUBST(NWATOWAV, ['nwatowav${EXEEXT}'])
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
133 fi
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
134
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
135 AC_ARG_ENABLE(visarc,
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
136 AS_HELP_STRING([--enable-visarc], [Build the visarc utility (default no)]))
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
137 if test X$enable_visarc = X"yes"; then
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
138 AC_SUBST(VISARC, ['visarc${EXEEXT}'])
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
139 fi
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
140
0
223b71206888 Initial import
thib
parents:
diff changeset
141 AC_ARG_ENABLE(zaurus,
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
142 AS_HELP_STRING([--enable-zaurus], [Compile for zaurus environment (default no)]))
0
223b71206888 Initial import
thib
parents:
diff changeset
143 if test X$enable_zaurus = X"yes"; then
223b71206888 Initial import
thib
parents:
diff changeset
144 USE_X11=0
223b71206888 Initial import
thib
parents:
diff changeset
145 DISPSIZE="320x240"
223b71206888 Initial import
thib
parents:
diff changeset
146 fi
223b71206888 Initial import
thib
parents:
diff changeset
147
223b71206888 Initial import
thib
parents:
diff changeset
148 AC_ARG_ENABLE(x11,
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
149 AS_HELP_STRING([--disable-x11], [Use the X11 library (default yes)]))
0
223b71206888 Initial import
thib
parents:
diff changeset
150 if test X$x11 = X"no"; then
223b71206888 Initial import
thib
parents:
diff changeset
151 USE_X11=0
223b71206888 Initial import
thib
parents:
diff changeset
152 else
223b71206888 Initial import
thib
parents:
diff changeset
153 AC_PATH_X
223b71206888 Initial import
thib
parents:
diff changeset
154 AC_PATH_XTRA
223b71206888 Initial import
thib
parents:
diff changeset
155 X_LIBS="$X_LIBS -lX11 -lXext -L/usr/X11R6/lib"
223b71206888 Initial import
thib
parents:
diff changeset
156 LIBS="$LIBS $X_LIBS"
223b71206888 Initial import
thib
parents:
diff changeset
157 fi
223b71206888 Initial import
thib
parents:
diff changeset
158
223b71206888 Initial import
thib
parents:
diff changeset
159 AC_ARG_ENABLE(displaysize,
25
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
160 AS_HELP_STRING([--enable-displaysize=SIZE],
2110e0cf64ac * clean littles things in configure.ac
thib
parents: 22
diff changeset
161 [Change default display size, for example --enable-displaysize=320x240]),
0
223b71206888 Initial import
thib
parents:
diff changeset
162 displaysize=$enableval)
223b71206888 Initial import
thib
parents:
diff changeset
163 if test X$displaysize != X; then
223b71206888 Initial import
thib
parents:
diff changeset
164 DISPSIZE=$displaysize
223b71206888 Initial import
thib
parents:
diff changeset
165 fi
223b71206888 Initial import
thib
parents:
diff changeset
166
223b71206888 Initial import
thib
parents:
diff changeset
167 AC_DEFINE_UNQUOTED(USE_X11,$USE_X11, [X11 library is used])
223b71206888 Initial import
thib
parents:
diff changeset
168 AC_DEFINE_UNQUOTED(DISPSIZE, "$DISPSIZE", [default display size])
223b71206888 Initial import
thib
parents:
diff changeset
169
223b71206888 Initial import
thib
parents:
diff changeset
170 AC_OUTPUT(Makefile system/Makefile font/Makefile window/Makefile music2/Makefile scn2k/Makefile)