Changeset 484:f5f98f005601 in roaraudio
Legend:
- Unmodified
- Added
- Removed
-
configure
r475 r484 5 5 TF_C=testit.c 6 6 TF_E=./testit 7 CC=cc 8 9 CCTF="$CC -o $TF_E $TF_C" 7 LDPATH='' 8 9 echo -n "checking for C compiler... " 10 CC=$(which gcc cc 2> /dev/null | head -n 1) 11 if [ "$CC" = '' ] 12 then 13 echo 'none' 14 exit 1; 15 fi 16 echo $CC 17 18 #Makefile.conf not yet open, write it later 19 20 21 while [ "$1" != '' ] 22 do 23 case "$1" in 24 '--help') 25 echo '--help' 26 echo '--ldpath DIR' 27 exit 0; 28 ;; 29 '--ldpath') 30 LDPATH="$LDPATH -L$2" 31 shift; 32 ;; 33 esac; 34 35 shift; 36 done 37 38 39 CCTF="$CC $LDPATH -o $TF_E $TF_C" 10 40 11 41 test_lib () { … … 71 101 exec 3> config.h 4> Makefile.conf 72 102 103 # now write the cc name to Makefile.conf 104 echo "CC=$CC" >&4 105 echo "LDPATH=$LDPATH" >&4 106 73 107 cat >&3 << EOF 74 108 //config.h:
Note: See TracChangeset
for help on using the changeset viewer.