diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-24 16:28:34 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-24 16:28:34 +0200 |
commit | 740d5bdd5fb9e126d28f95941bfb035f3c01e6a2 (patch) | |
tree | d5e870092f59156970e19f8289d08edba9afe97c | |
parent | 98c94596f5928840177b6bd3c7b0f0dd03a431af (diff) | |
download | curl-bagder/configure-wolfssl-pkgconfig.tar.gz |
configure: fix pkg-config detecting wolfsslbagder/configure-wolfssl-pkgconfig
When amending the include path with "/wolfssl", this now properly strips
off all whitespace from the path variable! Previously this would lead to
pkg-config builds creating bad command lines.
-rwxr-xr-x | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 9c738d12d..918003e02 100755 --- a/configure.ac +++ b/configure.ac @@ -2474,8 +2474,12 @@ if test -z "$ssl_backends" -o "x$OPT_WOLFSSL" != xno; then AC_DEFINE(HAVE_WOLFSSL_DES_ECB_ENCRYPT, 1, [if you have wolfSSL_DES_ecb_encrypt]) if test -n "$addcflags"; then - CPPFLAGS="$addcflags/wolfssl $CPPFLAGS" - AC_MSG_NOTICE([Add $addcflags/wolfssl to CPPFLAGS]) + dnl use a for loop to strip off whitespace + for f in $addcflags; do + CPPFLAGS="$f/wolfssl $CPPFLAGS" + AC_MSG_NOTICE([Add $f/wolfssl to CPPFLAGS]) + break + done else dnl user didn't give a path, so guess/hope they installed wolfssl dnl headers to system default location |