summaryrefslogtreecommitdiff
path: root/ext/openssl/config0.m4
blob: 306f4bed9b208e3ae2b6f7aaa323c886e3149502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dnl
dnl $Id$
dnl

PHP_ARG_WITH(openssl, for OpenSSL support,
[  --with-openssl[=DIR]    Include OpenSSL support (requires OpenSSL >= 0.9.6)])

if test "$PHP_OPENSSL" != "no"; then
  PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, 
  [
    PHP_NEW_EXTENSION(openssl, openssl.c, $ext_shared)
    PHP_SUBST(OPENSSL_SHARED_LIBADD)

    if test "$ext_shared" = "yes"; then
      AC_DEFINE(HAVE_OPENSSL_SHARED_EXT,1,[ ])
    else
      AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ])
    fi

  ], [
    AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
  ])
fi