summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2020-01-20 14:59:38 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2020-01-20 19:57:51 +0100
commit49740208d5ee8efcc056016ec8fd7d837a7f7998 (patch)
tree84646abd168aa5cd1065778f6bc99a09557dda38
parent0ecabc3090a30eacf5df1b12ac895fad293b1524 (diff)
downloadlibgphoto2-49740208d5ee8efcc056016ec8fd7d837a7f7998.tar.gz
Use AC_PROG_SED and $(SED) for sed
-rw-r--r--gphoto-m4/gp-camlibs.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/gphoto-m4/gp-camlibs.m4 b/gphoto-m4/gp-camlibs.m4
index 7227e36ad..dd112068a 100644
--- a/gphoto-m4/gp-camlibs.m4
+++ b/gphoto-m4/gp-camlibs.m4
@@ -51,6 +51,7 @@ dnl ####################################################################
dnl
AC_DEFUN([GP_CAMLIBS_INIT],[dnl
AC_BEFORE([$0],[GP_CAMLIB])dnl
+AC_PROG_SED
GP_PROG_CMP
GP_PROG_DIFF
GP_PROG_SORT
@@ -151,14 +152,14 @@ else
# and add the explicitly defined ones later
if echo "$camlibs" | grep "^all," > /dev/null; then
INSTALL_THESE_CAMLIBS_BASE="$ALL_DEFAULT_CAMLIBS"
- camlibs="$(echo "$camlibs" | sed 's/^all,//')"
+ camlibs="$(echo "$camlibs" | $(SED) 's/^all,//')"
fi
if echo "$camlibs" | grep "outdated" > /dev/null; then
INSTALL_THESE_CAMLIBS_BASE="$INSTALL_THESE_CAMLIBS_BASE m4_strip(gp_camlibs_outdated)"
- camlibs="$(echo "$camlibs" | sed 's/outdated[,]*//')"
+ camlibs="$(echo "$camlibs" | $(SED) 's/outdated[,]*//')"
fi
- # camlibs=$(echo $camlibs | sed 's/,/ /g')
+ # camlibs=$(echo $camlibs | $(SED) 's/,/ /g')
IFS_save="$IFS"
IFS=",$IFS"
# Walk through enumeration of camlibs given by user and add them to list