Last change
on this file since 365 was
365,
checked in by Sam Hocevar, 17 years ago
|
- configure.ac:
+ No longer check for ncurses etc., we use caca-config.
- src/*:
+ Updated to new libcaca API, mainly caca_get_event() and caca_set_color()
calls.
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | # $Id: configure.ac 365 2004-02-17 13:53:14Z sam $ |
---|
2 | |
---|
3 | AC_INIT(ttyvaders,0.0cvs-20031110) |
---|
4 | |
---|
5 | AC_PREREQ(2.50) |
---|
6 | AC_CONFIG_SRCDIR(src/main.c) |
---|
7 | AC_CONFIG_AUX_DIR(autotools) |
---|
8 | AC_CANONICAL_SYSTEM |
---|
9 | |
---|
10 | AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20031110) |
---|
11 | AM_CONFIG_HEADER(config.h) |
---|
12 | |
---|
13 | AM_PROG_CC_C_O |
---|
14 | AC_PROG_CPP |
---|
15 | |
---|
16 | dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right |
---|
17 | dnl now otherwise it might be set in an obscure if statement. |
---|
18 | AC_EGREP_CPP(foo,foo) |
---|
19 | |
---|
20 | AC_MSG_CHECKING(for libcaca support) |
---|
21 | video_caca=no |
---|
22 | AC_TRY_COMPILE([ |
---|
23 | #include <caca.h> |
---|
24 | ],[ ],[video_caca=yes]) |
---|
25 | AC_MSG_RESULT($video_caca) |
---|
26 | if test "$video_caca" = "yes"; then |
---|
27 | CACA_CFLAGS="${CFLAGS} `caca-config --cflags`" |
---|
28 | CACA_LIBS="${LIBS} `caca-config --libs`" |
---|
29 | AC_SUBST(CACA_CFLAGS) |
---|
30 | AC_SUBST(CACA_LIBS) |
---|
31 | else |
---|
32 | AC_MSG_ERROR([cannot find libcaca]) |
---|
33 | fi |
---|
34 | |
---|
35 | # Optimizations |
---|
36 | CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer" |
---|
37 | # Code qui fait des warnings == code de porc == deux baffes dans ta gueule |
---|
38 | CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare" |
---|
39 | |
---|
40 | AC_OUTPUT([ |
---|
41 | Makefile |
---|
42 | src/Makefile |
---|
43 | autotools/Makefile |
---|
44 | data/Makefile |
---|
45 | debian/Makefile |
---|
46 | ]) |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.