Changeset 4555:304dd9501edb in roaraudio
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r4554 r4555 16 16 * Implemented atomic flag toggling and flag protection. 17 17 * Started porting to OpenVMS (See #24) 18 * Escape user input to configure script correctly (Closes: #28) 18 19 19 20 v. 0.4beta0 - Fri Oct 01 2010 13:36 CEST -
configure
r4554 r4555 123 123 124 124 _CARGS="$@"; 125 126 # some very basic string functions: 127 to_upper() { 128 tr 'a-z' 'A-Z' 129 } 130 131 to_escaped() { 132 tr 'A-Z/.+-' 'a-z____' 133 } 125 134 126 135 echo -n "checking for version of this package... " … … 308 317 ;; 309 318 '--no-'*) 310 lib=$(echo "$1" | sed 's/^--no-//' )319 lib=$(echo "$1" | sed 's/^--no-//' | to_escaped) 311 320 eval no_lib_$lib=true 312 321 ;; 313 322 '--maybe-'*) 314 lib=$(echo "$1" | sed 's/^--maybe-//' )323 lib=$(echo "$1" | sed 's/^--maybe-//' | to_escaped) 315 324 eval unset no_lib_$lib 316 325 ;; … … 624 633 [ "$subdir" = '%' ] && subdir='' 625 634 626 envlib=`echo "$lib" | cut -d/ -f1 | t r A-Z/.+- a-z____`627 envname=`echo "$name" | cut -d/ -f1 | t r A-Z/.+- a-z____`635 envlib=`echo "$lib" | cut -d/ -f1 | to_escaped` 636 envname=`echo "$name" | cut -d/ -f1 | to_escaped` 628 637 629 638 if [ "$lib" != '--' ] … … 685 694 if test_lib "$name" $LIBS "$@" 686 695 then 687 subdir_var='subdir_'"`echo $subdir | t r / _`"696 subdir_var='subdir_'"`echo $subdir | to_escaped`" 688 697 echo "#define $def" >&3 689 698 [ "$subdir" != '' ] && \ … … 807 816 echo $_ver 808 817 809 _ver_def=$(echo $_ver | t r .a-z- _A-Z_)818 _ver_def=$(echo $_ver | to_escaped | to_upper) 810 819 echo "#define ${DEF}_$_ver_def" >&3 811 820 … … 837 846 for _h in $HEADERS 838 847 do 839 envname=`echo "$_h" | cut -d/ -f1 | t r A-Z/.+- a-z____`848 envname=`echo "$_h" | cut -d/ -f1 | to_escaped` 840 849 eval "_t=\$libname_$envname" 841 850 if [ "$_t" = 'false' ] … … 1144 1153 for i in $WITHOUT_CF 1145 1154 do 1146 i=$(echo $i | t r /a-z/ /A-Z/);1155 i=$(echo $i | to_upper); 1147 1156 echo '#define ROAR_WITHOUT_CF_'$i 1148 1157 done … … 1150 1159 for i in $WITHOUT_VIO 1151 1160 do 1152 i=$(echo $i | t r /a-z/ /A-Z/);1161 i=$(echo $i | to_upper); 1153 1162 echo '#define ROAR_WITHOUT_VIO_'$i 1154 1163 done … … 1156 1165 for i in $WITHOUT_DCOMP 1157 1166 do 1158 i=$(echo $i | t r /a-z/ /A-Z/);1167 i=$(echo $i | to_upper); 1159 1168 echo '#define ROAR_WITHOUT_DCOMP_'$i 1160 1169 done … … 1164 1173 $TARGET_WIN32 && echo '#define ROAR_TARGET_WIN32' 1165 1174 $TARGET_CYGWIN && echo '#define ROAR_TARGET_CYGWIN' 1166 echo '#define ROAR_OS_'$(echo $SYSNAME | t r a-z-. A-Z__)1175 echo '#define ROAR_OS_'$(echo $SYSNAME | to_escaped | to_upper) 1167 1176 echo 1168 1177 } >&3
Note: See TracChangeset
for help on using the changeset viewer.