Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

configure checkiing for ssl-engine

From: Zvi Har'El <>
Date: Thu, 3 Oct 2002 18:19:14 +0300


I have a problem with the way configure for the existence of openssl-engine. I
have a machine with two versions of openssl installed: One is OpenSSL 0.9.6b
[engine] 9 Jul 2001 (which originate at the Red Hat package openssl-0.9.6b-28)
in /usr/lib and /usr/include, and another one, OpenSSL 0.9.6g 9 Aug 2002 (which
I compiled from openssl-0.9.6g.tar.gz), in /usr/local/ssl/lib and
/usr/local/ssl/include. I wish to build curl with the latter version openssl
and to put it in /usr/local/bin (with RedHat's supplied curl, curl-7.9.7-2, in
/usr/bin). I ran configure with the option --with-ssl=/usr/local/ssl. However
there was a problem: /usr/local/ssl doesn't have an engine, and the configure
check for engine is done by looking for the file openssl/engine.h. The check
should have failed, but it succeeded, since this file does exist in the compiler
search path: It does not exist in /usr/local/ssl/include, but it does exist in
/usr/include! I had to fix the problem by editing lib/config.h manually to
remove the line #define HAVE_OPENSSL_ENGINE_H, but I hope a better way to
check for engine can be found, e.g., compiling and linking a small function
which invokes an entry in libcrypto which exists only in the engine version,
e.g. ENGINE_init. This may be done by the following patch:

--- Tue Sep 3 10:29:39 2002
+++ Thu Oct 3 18:06:50 2002
@@ -484,7 +484,7 @@
     dnl Check for the OpenSSL engine header, it is kind of "separated"
     dnl from the main SSL check
- AC_CHECK_HEADERS(openssl/engine.h)
+ AC_CHECK_FUNC(ENGINE_init, AC_CHECK_HEADERS(openssl/engine.h), )

I regret to say that I didn't check this patch since my RedHat machine has
autoconf 2.13, and curl requires at least 2.50.



Dr. Zvi Har'El     Department of Mathematics
tel:+972-54-227607                   Technion - Israel Institute of Technology
fax:+972-4-8324654     Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                            Thursday, 27 Tishri 5763,  3 October 2002,  5:16PM
This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2002-10-03

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET