Skip to content

Commit 3ba2699

Browse files
wm4Uoti Urpala
wm4
authored and
Uoti Urpala
committed
configure: change libcaca test to pkg-config
1 parent 71df95c commit 3ba2699

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

configure

+1-12
Original file line numberDiff line numberDiff line change
@@ -3565,21 +3565,10 @@ echores "$_xf86keysym"
35653565
echocheck "CACA"
35663566
if test "$_caca" = auto ; then
35673567
_caca=no
3568-
if ( caca-config --version ) >> "$TMPLOG" 2>&1 ; then
3569-
cat > $TMPC << EOF
3570-
#include <caca.h>
3571-
#ifdef CACA_API_VERSION_1
3572-
#include <caca0.h>
3573-
#endif
3574-
int main(void) { caca_init(); return 0; }
3575-
EOF
3576-
cc_check $(caca-config --libs) && _caca=yes
3577-
fi
3568+
pkg_config_add 'caca' && _caca=yes
35783569
fi
35793570
if test "$_caca" = yes ; then
35803571
def_caca='#define CONFIG_CACA 1'
3581-
extra_cflags="$extra_cflags $(caca-config --cflags)"
3582-
libs_mplayer="$libs_mplayer $(caca-config --libs)"
35833572
vomodules="caca $vomodules"
35843573
else
35853574
def_caca='#undef CONFIG_CACA'

0 commit comments

Comments
 (0)