[PATCH] ksba-config: more portable, using grep -F over fgrep
Andreas Stieger
Andreas.Stieger at gmx.de
Tue Sep 1 21:19:37 CEST 2026
On 2026-09-01 02:18, Andreas Stieger via Gnupg-devel wrote:
> Fix at git at github.com:andreasstieger/libksba.git fgrep
> commit 19d5612ca192dcb132c75f1e4b04e086c06ff651
> and below
>
> ksba-config: more portable, using grep -F over fgrep (2026-09-01
> 02:05:10 +0200)
Looks like this was reported and fixed in libgcrypt 128121e.
Get b0042c2 from github.com:andreasstieger/libksba.git fgrep
diff --git a/configure.ac b/configure.ac
index 50ba112..26bcc54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -147,6 +147,7 @@ AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AM_SILENT_RULES
AC_PROG_AWK
+AC_PROG_FGREP
AC_PROG_CC
AC_PROG_CPP
AM_PROG_CC_C_O
diff --git a/src/ksba-config.in b/src/ksba-config.in
index 76d038d..27b187b 100644
--- a/src/ksba-config.in
+++ b/src/ksba-config.in
@@ -126,7 +126,7 @@ if test "$echo_cflags" = "yes"; then
fi
tmp=""
for i in $includes $cflags; do
- if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then
+ if echo "$tmp" | @FGREP@ -v -- "$i" >/dev/null; then
tmp="$tmp $i"
fi
done
@@ -140,7 +140,7 @@ if test "$echo_libs" = "yes"; then
fi
tmp=""
for i in $libdirs $libs; do
- if echo "$tmp" | fgrep -v -- "$i" >/dev/null; then
+ if echo "$tmp" | @FGREP@ -v -- "$i" >/dev/null; then
tmp="$tmp $i"
fi
done
More information about the Gnupg-devel
mailing list