make sure it compiles

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2668 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-09-12 22:11:47 +00:00
parent 057eb31fd5
commit 8c41b90906
4 changed files with 1802 additions and 1201 deletions

View File

@ -7,11 +7,13 @@ CFLAGS += `$(PCFG) --includes` -g3 -fno-strict-aliasing
MDIR += `$(PCFG) --extension-dir`
PHPMOD=freeswitch
PHPLDFLAGS = `$(PCFG) --ldflags` -lcrypt -lresolv -lm -ldl -lnsl -lxml2 -lz -lphp5
MOD_CFLAGS += -fPIC
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PHPMOD).$(DYNAMIC_LIB_EXTEN)
depends:
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install php-5.1.6.tar.gz --prefix=$(PREFIX) --enable-embed=shared --enable-shared --with-pic --with-mysql --with-curl --enable-maintainer-zts --with-tsrm-pthreads --enable-debug
MOD_CFLAGS="$(MOD_CFLAGS)" MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install zlib-1.2.3.tar.gz --prefix=$(PREFIX)
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install curl-7.15.2.tar.gz --prefix=$(PREFIX)
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install php-5.1.6.tar.gz --prefix=$(PREFIX) --enable-embed=shared --enable-shared --with-pic --with-zlib=$(PREFIX) --with-curl --enable-maintainer-zts --with-tsrm-pthreads --enable-debug
%.o: %.c
$(CC) $(LCFLAGS) $(CFLAGS) -c $< -o $@

View File

@ -2,7 +2,7 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.21
* Version 1.3.29
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
@ -16,7 +16,7 @@ $FREESWITCH_LOADED__ = true;
/* if our extension has not been loaded, do what we can */
if (!extension_loaded("php_freeswitch")) {
if (!dl("php_freeswitch.so")) return;
if (!dl("php_freeswitch.so")) return;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.21
* Version 1.3.29
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
@ -40,6 +40,10 @@ extern zend_module_entry freeswitch_module_entry;
# define PHP_FREESWITCH_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
PHP_MINIT_FUNCTION(freeswitch);
PHP_MSHUTDOWN_FUNCTION(freeswitch);
PHP_RINIT_FUNCTION(freeswitch);
@ -72,24 +76,4 @@ ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_session_transfer);
ZEND_NAMED_FUNCTION(_wrap_fs_switch_ivr_speak_text);
ZEND_NAMED_FUNCTION(_wrap_fs_switch_channel_get_variable);
ZEND_NAMED_FUNCTION(_wrap_fs_switch_channel_set_variable);
/*If you declare any globals in php_freeswitch.h uncomment this:
ZEND_BEGIN_MODULE_GLOBALS(freeswitch)
ZEND_END_MODULE_GLOBALS(freeswitch)
*/
#ifdef ZTS
#define FREESWITCH_D zend_freeswitch_globals *freeswitch_globals
#define FREESWITCH_DC , FREESWITCH_D
#define FREESWITCH_C freeswitch_globals
#define FREESWITCH_CC , FREESWITCH_C
#define FREESWITCH_SG(v) (freeswitch_globals->v)
#define FREESWITCH_FETCH() zend_freeswitch_globals *freeswitch_globals = ts_resource(freeswitch_globals_id)
#else
#define FREESWITCH_D
#define FREESWITCH_DC
#define FREESWITCH_C
#define FREESWITCH_CC
#define FREESWITCH_SG(v) (freeswitch_globals.v)
#define FREESWITCH_FETCH()
#endif
#endif /* PHP_FREESWITCH_H */

File diff suppressed because it is too large Load Diff