Changeset 1742:4fbe8cb28680 in roaraudio for plugins/xmms/configure


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/xmms/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  fi 
    65 else 
    66   echo $PKG_CONFIG '(forced)' 
    67 fi 
     44check_cc; 
     45check_pkg_config; 
    6846 
    6947echo -n 'testing for gtk... ' 
     
    11593fi 
    11694 
    117 echo -n 'testing for libroar... ' 
    118 if $HAVE_ROAR 
    119 then 
    120  echo 'yes (forced)' 
    121 else 
    122  cat > tests.c << EOF 
    123 #include <roaraudio.h> 
    124 int main (void) { return 0; } 
    125 EOF 
     95check_libroar; 
    12696 
    127  $CC -o tests tests.c -lroar 2> /dev/null 
    128  ./tests 2> /dev/null 
    129  
    130  if [ "$?" = '0' ] 
    131  then 
    132   echo yes 
    133  else 
    134   echo no. 
    135   on_error 
    136  fi 
    137 fi 
    13897rm -f tests tests.c 
    13998 
Note: See TracChangeset for help on using the changeset viewer.