Portability: config/amanda/libs.m4
[email protected] (Eric Schnoebelen)
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Message-ID | <[email protected]> |
Issue: bash-ism's in the autoconf macros. autoconf should be
written in POSIX sh.
$NetBSD$
Remove a bash-ism in the tests for libcurl and friends.
--- config/amanda/libs.m4.orig 2016-11-23 16:11:15.000000000 +0000
+++ config/amanda/libs.m4
@@ -396,22 +396,22 @@ x=CURLOPT_VERBOSE;
LIBCURL_USE_OPENSSL=yes
_libcurl_configures=`$_libcurl_config --configure`
for _libcurl_configure in $_libcurl_configures ; do
- if [[[ $_libcurl_configure = \'--with-nss* ]]]; then
+ if [[ $_libcurl_configure = \'--with-nss* ]]; then
LIBCURL_USE_NSS=yes
fi
- if [[[ $_libcurl_configure = \'--without-nss* ]]]; then
+ if [[ $_libcurl_configure = \'--without-nss* ]]; then
LIBCURL_USE_NSS=no
fi
- if [[[ $_libcurl_configure = \'--with-gnutls* ]]]; then
+ if [[ $_libcurl_configure = \'--with-gnutls* ]]; then
LIBCURL_USE_GNUTLS=yes
fi
- if [[[ $_libcurl_configure = \'--without-gnutls* ]]]; then
+ if [[ $_libcurl_configure = \'--without-gnutls* ]]; then
LIBCURL_USE_GNUTLS=no
fi
- if [[[ $_libcurl_configure = \'--with-ssl* ]]]; then
+ if [[ $_libcurl_configure = \'--with-ssl* ]]; then
LIBCURL_USE_OPENSSL=yes
fi
- if [[[ $_libcurl_configure = \'--without-ssl* ]]]; then
+ if [[ $_libcurl_configure = \'--without-ssl* ]]; then
LIBCURL_USE_OPENSSL=no
fi
done
config_amanda_libs.m4.patch
(text/plain, 1.2 KB)
$NetBSD$
Remove a bash-ism in the tests for libcurl and friends.
--- config/amanda/libs.m4.orig 2016-11-23 16:11:15.000000000 +0000
+++ config/amanda/libs.m4
@@ -396,22 +396,22 @@ x=CURLOPT_VERBOSE;
LIBCURL_USE_OPENSSL=yes
_libcurl_configures=`$_libcurl_config --configure`
for _libcurl_configure in $_libcurl_configures ; do
- if [[[ $_libcurl_configure = \'--with-nss* ]]]; then
+ if [[ $_libcurl_configure = \'--with-nss* ]]; then
LIBCURL_USE_NSS=yes
fi
- if [[[ $_libcurl_configure = \'--without-nss* ]]]; then
+ if [[ $_libcurl_configure = \'--without-nss* ]]; then
LIBCURL_USE_NSS=no
fi
- if [[[ $_libcurl_configure = \'--with-gnutls* ]]]; then
+ if [[ $_libcurl_configure = \'--with-gnutls* ]]; then
LIBCURL_USE_GNUTLS=yes
fi
- if [[[ $_libcurl_configure = \'--without-gnutls* ]]]; then
+ if [[ $_libcurl_configure = \'--without-gnutls* ]]; then
LIBCURL_USE_GNUTLS=no
fi
- if [[[ $_libcurl_configure = \'--with-ssl* ]]]; then
+ if [[ $_libcurl_configure = \'--with-ssl* ]]; then
LIBCURL_USE_OPENSSL=yes
fi
- if [[[ $_libcurl_configure = \'--without-ssl* ]]]; then
+ if [[ $_libcurl_configure = \'--without-ssl* ]]; then
LIBCURL_USE_OPENSSL=no
fi
done