source: pwntcha/trunk/configure.ac @ 2317

Last change on this file since 2317 was 2317, checked in by Sam Hocevar, 13 years ago
  • Preparing a huge PWNtcha reorganisation. First step: put each decoder in its own subdirectory.
File size: 2.5 KB
Line 
1# $Id: configure.ac 253 2004-08-09 20:08:52Z sam $
2
3AC_INIT(pwntcha, 0.6)
4AC_CONFIG_AUX_DIR(.auto)
5AM_INIT_AUTOMAKE([no-define tar-ustar])
6
7AM_CONFIG_HEADER(config.h)
8
9AC_PREREQ(2.50)
10dnl AC_CANONICAL_SYSTEM
11
12AC_PROG_CC
13AM_PROG_CC_C_O
14AC_PROG_CXX
15AC_PROG_RANLIB
16AC_STDC_HEADERS
17
18AC_C_CONST
19AC_C_INLINE
20AC_TYPE_SIZE_T
21
22AC_CHECK_FUNCS(getopt_long)
23
24# Use DevIL?
25#AC_CHECK_HEADERS(IL/il.h,
26# [ac_cv_my_have_il="yes"],
27# [ac_cv_my_have_il="no"])
28#CPPFLAGS="${save_CPPFLAGS}"
29#AM_CONDITIONAL(USE_IL, test "${ac_cv_my_have_il}" = "yes")
30
31# Use Windows?
32#AC_CHECK_HEADERS(olectl.h,
33# [ac_cv_my_have_ole="yes"],
34# [ac_cv_my_have_ole="no"])
35#CPPFLAGS="${save_CPPFLAGS}"
36#AM_CONDITIONAL(USE_OLE, test "${ac_cv_my_have_ole}" = "yes")
37
38# Use SDL?
39ac_cv_my_have_sdl="no"
40save_CPPFLAGS="${CPPFLAGS}"
41AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
42if test "${SDL_CONFIG}" != "no"; then
43  CPPFLAGS="${CPPFLAGS} `sdl-config --cflags`"
44fi
45AC_CHECK_HEADERS(SDL_image.h,
46 [ac_cv_my_have_sdl="yes"],
47 [ac_cv_my_have_sdl="no"])
48CPPFLAGS="${save_CPPFLAGS}"
49AM_CONDITIONAL(USE_SDL, test "${ac_cv_my_have_sdl}" = "yes")
50
51# Use OpenCV?
52ac_cv_my_have_opencv="no"
53save_CPPFLAGS="${CPPFLAGS}"
54AC_PATH_PROG(OPENCV_CONFIG, opencv-config, no)
55if test "${OPENCV_CONFIG}" != "no"; then
56  CPPFLAGS="${CPPFLAGS} `opencv-config --cflags`"
57fi
58AC_CHECK_HEADERS(cv.h,
59 [ac_cv_my_have_opencv="yes"],
60 [ac_cv_my_have_opencv="no"])
61CPPFLAGS="${save_CPPFLAGS}"
62AM_CONDITIONAL(USE_OPENCV, test "${ac_cv_my_have_opencv}" = "yes")
63
64# Use Imlib2?
65ac_cv_my_have_imlib2="no"
66save_CPPFLAGS="${CPPFLAGS}"
67AC_PATH_PROG(IMLIB2_CONFIG, imlib2-config, no)
68if test "${IMLIB2_CONFIG}" != "no"; then
69  CPPFLAGS="${CPPFLAGS} `imlib2-config --cflags` -DX_DISPLAY_MISSING=1"
70fi
71AC_CHECK_HEADERS(Imlib2.h,
72 [ac_cv_my_have_imlib2="yes"],
73 [ac_cv_my_have_imlib2="no"])
74CPPFLAGS="${save_CPPFLAGS}"
75AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")
76
77if test "${ac_cv_my_have_il}" = "no" -a "${ac_cv_my_have_ole}" = "no" -a "${ac_cv_my_have_sdl}" = "no" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
78  AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2 or OpenCV, please install one of them]])
79fi
80
81AC_OUTPUT([
82  Makefile
83  src/Makefile
84  src/authimage/Makefile
85  src/clubic/Makefile
86  src/java/Makefile
87  src/linuxfr/Makefile
88  src/livejournal/Makefile
89  src/lmt/Makefile
90  src/paypal/Makefile
91  src/phpbb/Makefile
92  src/scode/Makefile
93  src/slashdot/Makefile
94  src/ticketmaster/Makefile
95  src/tickets/Makefile
96  src/vbulletin/Makefile
97  src/xanga/Makefile
98  extras/Makefile
99  share/Makefile
100])
101
Note: See TracBrowser for help on using the repository browser.