Changeset 1742:4fbe8cb28680 in roaraudio for plugins/audacious


Ignore:
Timestamp:
05/17/09 22:47:42 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

moved a lot things to the common configure file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/audacious/configure

    r1740 r1742  
    4242} 
    4343 
    44 echo -n 'testing for C compiler... ' 
    45 CC=$(which gcc cc 2> /dev/null | head -n 1) 
    46 if [ -x "$CC" ] 
    47 then 
    48  echo $CC 
    49 else 
    50  echo no. 
    51  on_error; 
    52 fi 
    53  
    54 echo -n "checking for pkg-config... " 
    55 if [ "$PKG_CONFIG" = '' ] 
    56 then 
    57  PKG_CONFIG=$(which pkg-config false 2> /dev/null | grep ^/ | head -n 1) 
    58  if $PKG_CONFIG --help > /dev/null 2> /dev/null 
    59  then 
    60   echo $PKG_CONFIG 
    61  else 
    62   PKG_CONFIG='' 
    63   echo no 
    64   on_error; 
    65  fi 
    66 else 
    67   echo $PKG_CONFIG '(forced)' 
    68 fi 
     44check_cc; 
     45check_pkg_config; 
    6946 
    7047echo -n 'testing for gtk... ' 
     
    124101fi 
    125102 
    126 echo -n 'testing for libroar... ' 
    127 if $HAVE_ROAR 
    128 then 
    129  echo 'yes (forced)' 
    130 else 
    131  cat > tests.c << EOF 
    132 #include <roaraudio.h> 
    133 int main (void) { return 0; } 
    134 EOF 
     103check_libroar; 
    135104 
    136  $CC -o tests tests.c -lroar 2> /dev/null 
    137  ./tests 2> /dev/null 
    138  
    139  if [ "$?" = '0' ] 
    140  then 
    141   echo yes 
    142  else 
    143   echo no. 
    144   on_error 
    145  fi 
    146 fi 
    147105rm -f tests tests.c 
    148106 
Note: See TracChangeset for help on using the changeset viewer.