The new $ECHO allows for this simplification, pushed.
Cheers,
Ralf
No need to prepend $progname with './'.
* libltdl/config/general.m4sh (func_dirname_and_basename): $ECHO
copes with leading hyphens now, so do not mangle $progname any
more.
diff --git a/libltdl/config/general.m4sh b/libltdl/config/general.m4sh
index ce80241..59e6b27 100644
--- a/libltdl/config/general.m4sh
+++ b/libltdl/config/general.m4sh
@@ -101,13 +101,8 @@ func_dirname_and_basename ()
# Generated shell functions inserted here.
# The name of this program:
-# In the unlikely event $progname began with a '-', it would play havoc with
-# func_echo (imagine progname=-n), so we prepend ./ in that case:
func_dirname_and_basename "$progpath"
progname=$func_basename_result
-case $progname in
- -*) progname=./$progname ;;
-esac
# Make sure we have an absolute path for reexecution:
case $progpath in