Ignore:
Timestamp:
Jan 3, 2005, 10:48:54 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • use OpenCV rather than Imlib2 if both are available.
  • cleaned up the slashdot code.
  • decode phpBB captchas.
  • added filter_contrast.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pwntcha/trunk/configure.ac

    r381 r389  
    1919AC_TYPE_SIZE_T
    2020
     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
    2134# Use Imlib2?
    2235ac_cv_my_have_imlib2="no"
     
    3245AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")
    3346
    34 # Use Imlib2?
    35 ac_cv_my_have_opencv="no"
    36 save_CPPFLAGS="${CPPFLAGS}"
    37 AC_PATH_PROG(OPENCV_CONFIG, opencv-config, no)
    38 if test "${OPENCV_CONFIG}" != "no"; then
    39   CPPFLAGS="${CPPFLAGS} `opencv-config --cflags`"
    40 fi
    41 AC_CHECK_HEADERS(cv.h,
    42  [ac_cv_my_have_opencv="yes"],
    43  [ac_cv_my_have_opencv="no"])
    44 CPPFLAGS="${save_CPPFLAGS}"
    45 AM_CONDITIONAL(USE_OPENCV, test "${ac_cv_my_have_opencv}" = "yes")
    46 
    4747if test "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
    4848  AC_MSG_ERROR([[cannot find Imlib2 or OpenCV, please install one of them]])
Note: See TracChangeset for help on using the changeset viewer.