cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problems with CURL_CHECK_OPENSSL_API_HEADERS on Solaris

From: Albert Chin <curl-library_at_mlists.thewrittenword.com>
Date: Mon, 26 Sep 2011 12:36:50 -0500

CURL_CHECK_OPENSSL_API_HEADERS in m4/curl-openssl.m4 doesn't work
correctly when using the Sun C compiler. The problem is that
curl_cv_have_def_OPENSSL_VERSION_NUMBER is " 0x1000005fL", not
"0x1000005fL". This causes problems with:
  tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
because the extra space makes tst_verlen=12, rather than
tst_verlen=11. So, we can either solve this by replacing the above
with:
  tst_verlen=`expr $curl_cv_def_OPENSSL_VERSION_NUMBER : '.*'`
to remove the whitespace in curl_cv_have_def_OPENSSL_VERSION_NUMBER or
eat the whitespace in CURL_CHECK_DEF in acinclude.m4:
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
      "$SED" 's/.*CURL_DEF_TOKEN[[ ]]//' 2>/dev/null | \
      "$SED" 's/[["]][[ ]]*[["]]//g' 2>/dev/null`
would become:
    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
      "$SED" 's/.*CURL_DEF_TOKEN[[ ]][[ ]]*//' 2>/dev/null | \
      "$SED" 's/[["]][[ ]]*[["]]//g' 2>/dev/null`

-- 
albert chin (china_at_thewrittenword.com)
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-26