Mercurial > otakunoraifu
annotate configure.ac @ 23:f94d28dcf7bc
No need for music2/config.h (which doesn't exist anymore)
author | thib |
---|---|
date | Sun, 02 Nov 2008 13:58:59 +0000 |
parents | 759202cf1756 |
children | 2110e0cf64ac |
rev | line source |
---|---|
0 | 1 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
2 dnl | |
3 dnl First definition | |
4 AC_INIT(scn2k) | |
5 | |
6 dnl Software version | |
7 PACKAGE=xclannad | |
22 | 8 VERSION=0.07hb |
0 | 9 |
22 | 10 AM_INIT_AUTOMAKE($PACKAGE, $VERSION) |
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 | |
81 AC_ARG_ENABLE(tremor, | |
82 [ --enable-tremor enable tremor (integer-only implementation for vorbisfile) [ default no]]) | |
83 AC_CHECK_LIB(ogg, ogg_stream_init) | |
84 AC_CHECK_LIB(vorbis, vorbis_book_decode,,,-logg) | |
85 if test X$enable_tremor = X"yes"; then | |
86 AC_CHECK_LIB(vorbisidec, ov_read,,,-logg -lvorbis) | |
87 else | |
88 AC_CHECK_LIB(vorbisfile, ov_read,,,-logg -lvorbis) | |
89 fi | |
90 | |
91 dnl SDL config | |
92 AM_PATH_SDL() | |
93 AC_SUBST(SDL_CFLAGS) | |
94 AC_SUBST(SDL_LIBS) | |
95 | |
96 dnl SMPEG & MAD config | |
97 AM_PATH_SMPEG() | |
98 AC_SUBST(SMPEG_CFLAGS) | |
99 AC_SUBST(SMPEG_LIBS) | |
100 if test X"$SMPEG_LIBS" = X ; then | |
101 USE_SMPEG=0 | |
102 else | |
103 USE_SMPEG=1 | |
104 fi | |
105 AC_ARG_ENABLE(mad, | |
106 [ --disable-mad disable mad (integer-only implementation for mpeg decoding) [ default yes]]) | |
107 if test X$enable_mad != X"no"; then | |
108 AC_CHECK_LIB(mad, mad_decoder_run) | |
109 fi | |
110 | |
111 AC_DEFINE_UNQUOTED(USE_SMPEG,$USE_SMPEG, [smpeg library is used]) | |
112 | |
113 dnl FreeType2 | |
114 AC_CHECK_FT2() | |
115 AC_SUBST(FT2_CFLAGS) | |
116 AC_SUBST(FT2_LIBS) | |
117 | |
118 | |
119 dnl >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
120 dnl | |
121 dnl Check option ... Zaurus or embed machines | |
122 USE_X11=1 | |
123 DISPSIZE="no" | |
124 | |
125 AC_ARG_ENABLE(zaurus, | |
126 [ --enable-zaurus compile for zaurus environment [ default no]]) | |
127 if test X$enable_zaurus = X"yes"; then | |
128 USE_X11=0 | |
129 DISPSIZE="320x240" | |
130 fi | |
131 | |
132 AC_ARG_ENABLE(x11, | |
133 [ --disable-x11 turn off using X11 library [default enable]]) | |
134 if test X$x11 = X"no"; then | |
135 USE_X11=0 | |
136 else | |
137 AC_PATH_X | |
138 AC_PATH_XTRA | |
139 X_LIBS="$X_LIBS -lX11 -lXext -L/usr/X11R6/lib" | |
140 LIBS="$LIBS $X_LIBS" | |
141 fi | |
142 | |
143 AC_ARG_ENABLE(displaysize, | |
144 [ --enable-displaysize=SIZE change default display size, for example --enable-displaysize=320x240], | |
145 displaysize=$enableval) | |
146 if test X$displaysize != X; then | |
147 DISPSIZE=$displaysize | |
148 fi | |
149 | |
150 AC_DEFINE_UNQUOTED(USE_X11,$USE_X11, [X11 library is used]) | |
151 AC_DEFINE_UNQUOTED(DISPSIZE, "$DISPSIZE", [default display size]) | |
152 | |
153 AC_OUTPUT(Makefile system/Makefile font/Makefile window/Makefile music2/Makefile scn2k/Makefile) |