Ignore:
Timestamp:
Aug 28, 2010, 7:19:14 PM (9 years ago)
Author:
sam
Message:

Proper detection of libcaca and libpipi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r115 r178  
    6868fi
    6969
    70 if test "${enable_debug}" = "yes"; then
    71   AC_DEFINE(DEBUG, 1, Define to 1 to activate debug)
     70
     71# Use libcaca? (required for font generation)
     72ac_cv_my_have_caca="no"
     73PKG_CHECK_MODULES(CACA, caca >= 0.99.beta17, [ac_cv_my_have_caca="yes"], [:])
     74if test "${ac_cv_my_have_caca}" != "no"; then
     75  AC_DEFINE(USE_CACA, 1, Define to 1 to use libcaca)
    7276fi
     77AM_CONDITIONAL(USE_CACA, test "${ac_cv_my_have_caca}" != "no")
     78
     79
     80# Use libpipi? (required for video recording)
     81ac_cv_my_have_pipi="no"
     82PKG_CHECK_MODULES(PIPI, pipi, [ac_cv_my_have_pipi="yes"], [:])
     83if test "${ac_cv_my_have_pipi}" != "no"; then
     84  AC_DEFINE(USE_PIPI, 1, Define to 1 to use libpipi)
     85fi
     86AM_CONDITIONAL(USE_PIPI, test "${ac_cv_my_have_pipi}" != "no")
     87
    7388
    7489if test "${enable_release}" = "yes"; then
Note: See TracChangeset for help on using the changeset viewer.