diff configure @ 12201:aff28f68dbc8

Make caca detection consistent with the others using *-config, also avoids an ugly error message when caca-config is not installed.
author diego
date Tue, 13 Apr 2004 21:40:04 +0000
parents 60a5e538baf9
children b854ffd26883
line wrap: on
line diff
--- a/configure	Tue Apr 13 20:08:45 2004 +0000
+++ b/configure	Tue Apr 13 21:40:04 2004 +0000
@@ -3313,14 +3313,17 @@
 fi
 echores "$_aa"
 
+
 echocheck "CACA"
 if test "$_caca" = auto ; then
+  _caca=no
+  if ( caca-config --version ) >> "$TMPLOG" 2>&1 ; then
   cat > $TMPC << EOF
 #include <caca.h>
 int main(void) { (void) caca_init(); return 0; }
 EOF
-  _caca=no
   cc_check `caca-config --libs` && _caca=yes
+  fi
 fi
 if test "$_caca" = yes ; then
   _def_caca='#define HAVE_CACA 1'