for lalib_p_l in 1 2 3 4
do
read lalib_p_line
- case "$lalib_p_line" in
+ case $lalib_p_line in
\#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
esac
done
# store the result into func_replace_sysroot_result.
func_replace_sysroot ()
{
- case "$lt_sysroot:$1" in
+ case $lt_sysroot:$1 in
?*:"$lt_sysroot"*)
func_stripname "$lt_sysroot" '' "$1"
func_replace_sysroot_result="=$func_stripname_result"
if (STREQ (argv[i], dumpscript_opt))
{
EOF
- case "$host" in
+ case $host in
*mingw* | *cygwin* )
# make stdout use "unix" line endings
echo " setmode(1,_O_BINARY);"
if test -z "$libdir" && test "$linkmode" = prog; then
func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
fi
- case "$host" in
+ case $host in
# special handling for platforms with PE-DLLs.
*cygwin* | *mingw* | *cegcc* )
# Linker will automatically link against shared library if both
# We need to hardcode the library path
if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
# Make sure the rpath contains only unique directories.
- case "$temp_rpath:" in
+ case $temp_rpath: in
*"$absdir:"*) ;;
*) func_append temp_rpath "$absdir:" ;;
esac
done
test -n "$old_library" && func_append rmfiles " $odir/$old_library"
- case "$opt_mode" in
+ case $opt_mode in
clean)
case " $library_names " in
*" $dlname "*) ;;
halt='found trailing blank(s)' \
$(_sc_search_regexp)
+# Avoid useless quotes around case arguments such as:
+# case "$foo" in ...
+exclude_file_name_regexp--sc_useless_quotes_in_case = ^cfg.mk$$
+sc_useless_quotes_in_case:
+ @prohibit='case "[^ "]*"[ ][ ]*in' \
+ halt='found spurious quotes around case argument' \
+ $(_sc_search_regexp)
+
# List syntax-check exempted files.
exclude_file_name_regexp--sc_bindtextdomain = ^tests/.*demo[0-9]*/.*\.c$$
exclude_file_name_regexp--sc_error_message_uppercase = \
$ECHO "$*"
}
-case "$ECHO" in
+case $ECHO in
printf*) AC_MSG_RESULT([printf]) ;;
print*) AC_MSG_RESULT([print -r]) ;;
*) AC_MSG_RESULT([cat]) ;;
AT_SETUP([bindir basic lib test])
bindirneeded=:
-case "$host_os" in
+case $host_os in
cygwin*|mingw*|cegcc*)
;;
*)
AT_SETUP([bindir install tests])
bindirneeded=:
-case "$host_os" in
+case $host_os in
cygwin*|mingw*|cegcc*)
;;
*)
AT_BANNER([Mac OS X tests])
AT_SETUP([darwin fat compile])
noskip=:
-case "$host_os" in
+case $host_os in
darwin*) ;;
*) noskip=false ;;
esac
# How verbose should we be? Default is test output in log file.
# Setting VERBOSE=debug puts the shell in debug mode.
debug_cmd=:
-case "$VERBOSE" in
+case $VERBOSE in
DEBUG | debug )
debug_cmd='set -x'
$debug_cmd
echo "= Searching for hardcoded library directories in each program"
for file in hc-*; do
- case "$file" in
+ case $file in
hc-direct) expected="$hardcode_direct" ;;
hc-libpath) expected="$hardcode_shlibpath_var" ;;
hc-minusL) expected="$hardcode_minus_L" ;;
fi
# Check the result.
- case "$hardcoded" in
+ case $hardcoded in
yes)
if test $expected = yes; then
echo "$objdir was hardcoded in \`$file', as libtool expected"
. tests/defs || exit 1
-case "$host" in
+case $host in
hppa*|x86_64*|s390*)
func_skip "$host doesn't like non-PIC shared libs"
;;
if test "$build" = "$host" && test -d "/etc/selinux"; then
_selinux=`getenforce 2>/dev/null || echo "Disabled"`
- case "${_selinux}" in
+ case ${_selinux} in
*Enforcing)
_sebool_allow_execmod=`getsebool allow_execmod 2>/dev/null`
- case "${_sebool_allow_execmod}" in
+ case ${_sebool_allow_execmod} in
*off)
func_skip "SELinux policy disallows"
;;
test $res -eq 0 || exit $EXIT_FAILURE
echo "$linkresult"
-case "$linkresult" in
+case $linkresult in
*".lo "*)
func_fail "$progname: .lo files should not be linked into programs"
;;
# try metacharacters in the options it needs to pass to other programs.
# preargs and postargs need to go through libtool unmodified.
- case "$mode" in
+ case $mode in
compile)
preargs="$CC -c"
preflag=
# may modify them. For example, on Cygwin, ``libtool --mode=link gcc -o
# foo foo.o'' becomes ``gcc -o foo.exe foo.o''.
match="${match_preflag}${flag}test "
- case "$result" in
+ case $result in
*"$match"*)
$ECHO "= passed: $result"
;;
result=`$LIBTOOL -n --mode=$mode $preargs ${preflag}"${flag}${mchar}test${mchar}" $postargs` || status=$EXIT_FAILURE
match="${match_preflag}${flag}\\${mchar}test\\${mchar} "
alt_match="${match_preflag}\"${flag}\\${mchar}test\\${mchar}\" "
- case "$result" in
+ case $result in
*"$match"*)
$ECHO "= passed: $result"
;;
$ECHO "= trying: \"$mchar\" quoting"
result=`$LIBTOOL -n --mode=$mode $preargs ${preflag}"${flag}${mchar}test${mchar}" $postargs` || status=$EXIT_FAILURE
match="${match_preflag}\"${flag}${mchar}test${mchar}\" "
- case "$result" in
+ case $result in
*"$match"*)
$ECHO "= passed: $result"
;;
for i in crt0.o crt1.o crt2.o crti.o; do
j=`$CC --print-file-name $i 2> /dev/null`
test $? = 0 || continue
- case "$j" in
+ case $j in
$gcc_sysroot*/lib/$i)
prefix=`echo "$j" | sed "s,^$gcc_sysroot\\(.*\\)/lib/$i\$,\\1,"`
break ;;