Changeset 1742:4fbe8cb28680 in roaraudio for plugins/ao


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/ao/configure

    r1740 r1742  
    4545} 
    4646 
    47 echo -n 'testing for C compiler... ' 
    48 CC=$(which gcc cc 2> /dev/null | head -n 1) 
    49 if [ -x "$CC" ] 
    50 then 
    51  echo $CC 
    52 else 
    53  echo no. 
    54  on_error; 
    55 fi 
    56  
    57 echo -n "checking for pkg-config... " 
    58 if [ "$PKG_CONFIG" = '' ] 
    59 then 
    60  PKG_CONFIG=$(which pkg-config false 2> /dev/null | grep ^/ | head -n 1) 
    61  if $PKG_CONFIG --help > /dev/null 2> /dev/null 
    62  then 
    63   echo $PKG_CONFIG 
    64  else 
    65   PKG_CONFIG='' 
    66   echo no 
    67   on_error; 
    68  fi 
    69 else 
    70   echo $PKG_CONFIG '(forced)' 
    71 fi 
     47check_cc; 
     48check_pkg_config; 
    7249 
    7350echo -n 'testing for libao... ' 
     
    10380fi 
    10481 
    105 echo -n 'testing for libroar... ' 
    106 if $HAVE_ROAR 
    107 then 
    108  echo 'yes (forced)' 
    109 else 
    110  cat > tests.c << EOF 
    111 #include <roaraudio.h> 
    112 int main (void) { return 0; } 
    113 EOF 
     82check_libroar; 
    11483 
    115  $CC -o tests tests.c -lroar 2> /dev/null 
    116  ./tests 2> /dev/null 
    117  
    118  if [ "$?" = '0' ] 
    119  then 
    120   echo yes 
    121  else 
    122   echo no. 
    123   on_error 
    124  fi 
    125 fi 
    12684rm -f tests tests.c 
    12785 
Note: See TracChangeset for help on using the changeset viewer.