If you're having problems compiling on Linux like this:
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.
... then try adding: "--with-openssl" to your switches.
Not quite sure why but here's where I found the idea:
http://bugs.php.net/bug.php?id=29783
HTH,
J
Instalación
Para que estas funciones funcionen, tiene que compilar PHP con --with-imap[=DIR] , donde DIR es el prefijo de instalación de c-client. De nuestro ejemplo anterior, se usaría --with-imap=/usr/local/imap-2000b . Esta ubicación depende de dónde creó este directorio según la descripción de arriba. Los usuarios de Windows pueden incluir la DLL php_imap.dll en php.ini.
IMAP no está soportado en sistemas anteriores a Windows 2000. Esto es porque usa funciones de encriptación para habilitar conexiones SSL a los servidores de correo.
Nota: Dependiendo de cómo se configuró c-client, también podría necesitar añadir --with-imap-ssl=/path/to/openssl/ y/o --with-kerberos=/path/to/kerberos a la línea de configure de PHP.
