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-21 03:17:42 +0100
commit6f0c3c98e0336f1aecce491f141498bc69bdaacf (patch)
tree6a52782e99240b7b24a4909f343c9472661c0c7c
parent08c4e066ba4b1502074827bf7329bfac3f8cc66a (diff)
downloadlibgphoto2-6f0c3c98e0336f1aecce491f141498bc69bdaacf.tar.gz
Use AC_PROG_SED and ${SED} for sed
Use shell variable syntax here, not Makefile syntax.
-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 c96536284..885901dac 100644
--- a/gphoto-m4/gp-camlibs.m4
+++ b/gphoto-m4/gp-camlibs.m4
@@ -49,6 +49,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
@@ -137,14 +138,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