From 6f0c3c98e0336f1aecce491f141498bc69bdaacf Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Mon, 20 Jan 2020 14:59:38 +0100 Subject: Use AC_PROG_SED and ${SED} for sed Use shell variable syntax here, not Makefile syntax. --- gphoto-m4/gp-camlibs.m4 | 7 ++++--- 1 file 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 -- cgit v1.2.1