Skip to content

Instantly share code, notes, and snippets.

@caioceccon
Created November 18, 2010 21:59
Show Gist options
  • Save caioceccon/705725 to your computer and use it in GitHub Desktop.
Save caioceccon/705725 to your computer and use it in GitHub Desktop.
PHP_ARG_ENABLE(authmail, whether to enable Auth Mail support,
[ --enable-authmail Enable Auth Mail support])
if test "$PHP_AUTHMAIL" = "yes"; then
AC_DEFINE(HAVE_AUTHMAIL, 1, [Whether you have Auth Mail])
PHP_ADD_LIBRARY_WITH_PATH(esmtp, /usr/lib, PHP_AUTHMAIL_SHARED_LIBADD) PHP_SUBST(PHP_AUTHMAIL_SHARED_LIBADD)
PHP_NEW_EXTENSION(authmail, authmail.c, $ext_shared)
AC_DEFINE(HAVE_LIBESMTP,1,[ ]) fi
#ifndef PHP_AUTHMAIL_H
#define PHP_AUTHMAIL_H 1
#ifdef ZTS
#include "TSRM.h"
#endif
#include "libesmtp.h"
#include "auth-client.h"
ZEND_BEGIN_MODULE_GLOBALS(authmail)
long counter;
zend_bool direction;
ZEND_END_MODULE_GLOBALS(authmail)
#ifdef ZTS
#define AUTHMAIL_G(v) TSRMG(authmail_globals_id, zend_authmail_globals *, v)
#else
#define AUTHMAIL_G(v) (authmail_globals.v)
#endif
#define PHP_AUTHMAIL_VERSION "1.0"
#define PHP_AUTHMAIL_EXTNAME "authmail"
PHP_MINIT_FUNCTION(authmail);
PHP_MSHUTDOWN_FUNCTION(authmail);
PHP_RINIT_FUNCTION(authmail);
PHP_FUNCTION(amail);
extern zend_module_entry authmail_module_entry;
#define phpext_authmail_ptr &authmail_module_entry
#endif
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment