Changeset 750:cd3a83df2083 in roaraudio


Ignore:
Timestamp:
09/05/08 01:41:26 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added --runtime-detect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r748 r750  
    2121SHARED_CF='' 
    2222PKG_CONFIG=false 
     23RUNTIME_DETECT=false 
    2324 
    2425echo -n "checking for C compiler... " 
     
    5556   echo '--addpath DIR' 
    5657   echo '--no-LIB' 
     58   echo '--runtime-detect' 
    5759   exit 0; 
    5860  ;; 
     
    7375   lib=$(echo "$1" | sed 's/^--no-//') 
    7476   eval no_lib_$lib=true 
     77  ;; 
     78  '--runtime-detect') 
     79  RUNTIME_DETECT=true 
    7580  ;; 
    7681 esac; 
     
    173178 echo -n "checking for $NAME... " 
    174179 
    175  LIST=$(which "$@" 2> /dev/null | grep ^/ | head -n 1) 
    176  
    177  if [ "$LIST" = '' ] 
    178  then 
    179   echo 'no' 
     180 if $RUNTIME_DETECT 
     181 then 
     182  echo "$1 (runtime detect)" 
     183 echo "#define $DEF "\""$1"\" >&3 
    180184 else 
    181   echo $LIST 
    182   echo "#define $DEF "\""$LIST"\" >&3 
     185 
     186  LIST=$(which "$@" 2> /dev/null | grep ^/ | head -n 1) 
     187 
     188  if [ "$LIST" = '' ] 
     189  then 
     190   echo 'no' 
     191  else 
     192   echo $LIST 
     193   echo "#define $DEF "\""$LIST"\" >&3 
     194  fi 
    183195 fi 
    184196} 
Note: See TracChangeset for help on using the changeset viewer.