source: pwntcha/trunk/configure.ac @ 389

Last change on this file since 389 was 389, checked in by Sam Hocevar, 15 years ago
  • use OpenCV rather than Imlib2 if both are available.
  • cleaned up the slashdot code.
  • decode phpBB captchas.
  • added filter_contrast.
File size: 1.3 KB
Line 
1# $Id: configure.ac 253 2004-08-09 20:08:52Z sam $
2
3AC_INIT(src/main.c)
4
5AC_PREREQ(2.50)
6AC_CONFIG_AUX_DIR(autotools)
7AC_CANONICAL_SYSTEM
8
9AM_INIT_AUTOMAKE(pwntcha, 0.0)
10AM_CONFIG_HEADER(config.h)
11
12AC_PROG_CC
13AM_PROG_CC_C_O
14AC_PROG_CXX
15AC_STDC_HEADERS
16
17AC_C_CONST
18AC_C_INLINE
19AC_TYPE_SIZE_T
20
21# Use OpenCV?
22ac_cv_my_have_opencv="no"
23save_CPPFLAGS="${CPPFLAGS}"
24AC_PATH_PROG(OPENCV_CONFIG, opencv-config, no)
25if test "${OPENCV_CONFIG}" != "no"; then
26  CPPFLAGS="${CPPFLAGS} `opencv-config --cflags`"
27fi
28AC_CHECK_HEADERS(cv.h,
29 [ac_cv_my_have_opencv="yes"],
30 [ac_cv_my_have_opencv="no"])
31CPPFLAGS="${save_CPPFLAGS}"
32AM_CONDITIONAL(USE_OPENCV, test "${ac_cv_my_have_opencv}" = "yes")
33
34# Use Imlib2?
35ac_cv_my_have_imlib2="no"
36save_CPPFLAGS="${CPPFLAGS}"
37AC_PATH_PROG(IMLIB2_CONFIG, imlib2-config, no)
38if test "${IMLIB2_CONFIG}" != "no"; then
39  CPPFLAGS="${CPPFLAGS} `imlib2-config --cflags` -DX_DISPLAY_MISSING=1"
40fi
41AC_CHECK_HEADERS(Imlib2.h,
42 [ac_cv_my_have_imlib2="yes"],
43 [ac_cv_my_have_imlib2="no"])
44CPPFLAGS="${save_CPPFLAGS}"
45AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")
46
47if test "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
48  AC_MSG_ERROR([[cannot find Imlib2 or OpenCV, please install one of them]])
49fi
50
51AC_OUTPUT([
52  Makefile
53  src/Makefile
54])
55
Note: See TracBrowser for help on using the repository browser.