title: OpenSSL not listed under PHP modules but shows up in the configure command
body: <p>PHP 5.2.12<br>
  OS X 10.5.8</p>
  
  <p>If I compile PHP from source with the following configure command</p>
  
  <pre><code>./configure --disable-all --with-openssl=shared,/opt/local
  </code></pre>
  
  <p>it succeeds. However, after a <code>make</code> and <code>make install</code>,</p>
  
  <pre><code>php -m
  </code></pre>
  
  <p>does <em>not</em> list the openssl module.</p>
  
  <p>Based on what I've read, I <em>think</em> it may be due to multiple installs of the openssl library. Installing the latest version of openssl from source and trying to specify the path in the configure command, <code>--with-openssl=/usr/local</code>, always results in the following error:</p>
  
  <pre><code>Undefined symbols:
    "_EVP_CIPHER_CTX_block_size", referenced from:
        _zif_openssl_seal in openssl.o
  ld: symbol(s) not found
  collect2: ld returned 1 exit status
  make: *** [sapi/cgi/php-cgi] Error 1
  </code></pre>
  
  <p>I've tried a few different variations on the path with no luck.</p>
  
  <p>Based on
  <a href="http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/" rel="nofollow noreferrer">http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-compiling-php-528/</a>, I've also tried editing the Makefile so that MH_BUNDLE_FLAGS comes later in the compilation line.</p>
  
  <p>After spending a good portion of the day on this issue, I'm at a loss.</p>
  
  <p>Any suggestions?</p>
  
  <p>Ideally, I'd like to be using the compiled and most recent version of OpenSSL. But at this point, I'm willing to accept whatever works.</p>