Re: [PATCH] Add support for nss_compat_ossl library (OpenSSL replacement).

Kalle Olavi Niemitalo <[email protected]> Sun, 07 Sep 2008 03:27:16 +0300
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
Kamil Dudka <[email protected]> writes:

> +AC_ARG_WITH(nss_compat_ossl, AC_HELP_STRING([--with-nss_compat_ossl[=DIR]],
> +	    [NSS compatibility SSL libraries/include files]))

I'm getting this in configure:

  --with-nss_compat_ossl=DIR
                          NSS compatibility SSL libraries/include files

So apparently there aren't enough brackets.  I think you should
add a pair around the whole AC_HELP_STRING call.

The same bug is in some preexisting options too.  If you want to
fix those, please post a separate patch.

> +if test "$with_nss_compat_ossl" != "no"; then
> +	if test -z "$with_nss_compat_ossl"; then
> +		if pkg-config nss; then
> +			CFLAGS="$CFLAGS_X `pkg-config --cflags nss`"
> +			LIBS="$LIBS_X `pkg-config --libs nss`"
> +		else
> +			with_nss_compat_ossl=no
> +		fi
> +	else
> +		# Without pkg-config, we'll kludge in some defaults
> +		CFLAGS="$CFLAGS_X -I$with_nss_compat_ossl/include -I/usr/include/nss3 -I/usr/include/nspr4"
> +		LIBS="$LIBS_X -L$with_nss_compat_ossl/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
> +	fi

Autoconf considers --with-nss_compat_ossl equivalent to
--with-nss_compat_ossl=yes.  Your code seems to treat that
"yes" as a directory name and skip pkg-config.

> +	# TODO: Mark this as non-warning when it becomes stable
> +	AC_MSG_WARN([Using nss_compat_ossl library for SSL.])

Because you don't consider the nss_compat_ossl support stable,
I think the configure script should select it only if the user
explicitly requests it or no other SSL library is available.

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIwx/tHm9IGt60eMgRAlUTAKDJ4J858Xbq0pEJE7lKq7ZvtUK6TwCg7nXG
5LkhSLwjETbCEkvqLYaQgss=
=xrq4
-----END PGP SIGNATURE-----