Changeset 26824


Ignore:
Timestamp:
2011-05-04T20:27:36+02:00 (7 years ago)
Author:
mhei
Message:

[packages] php5: fix APC support

The APC patch adds the APC extension to the source tree. However,
when it was selected nothing happens since the extension wasn't
'registered'. This is what a 'buildconf' run usually does.
This however needs version 2.13 of autoconf. So instead of
requiring this (additional) autoconf version on the build system
the files changed are included in an additional patch.

Location:
packages/lang/php5
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • packages/lang/php5/Makefile

    r26823 r26824  
    3737 
    3838define Package/php5/config 
    39         config PHP5_APC 
    40                 bool "PHP5 APC support" 
    41                 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi 
    42  
    4339        config PHP5_FILTER 
    4440                bool "PHP5 Filter support" 
     
    5551  ifneq ($(CONFIG_PHP5_LIBXML),) 
    5652    DEPENDS+= +libxml2 
     53  endif 
     54  ifneq ($(CONFIG_PACKAGE_php5-mod-apc),) 
     55    DEPENDS+= +librt 
    5756  endif 
    5857  ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite3)$(CONFIG_PACKAGE_php5-mod-pdo-sqlite),) 
     
    138137endif 
    139138 
     139ifneq ($(CONFIG_PACKAGE_php5-mod-apc),) 
     140  PKG_CONFIGURE_OPTS+= --enable-apc=shared --disable-apc-mmap --disable-apc-pthreadmutex 
     141  PKG_CONFIGURE_LIBS+= -lrt 
     142else 
     143  PKG_CONFIGURE_OPTS+= --disable-apc 
     144endif 
     145 
    140146ifneq ($(CONFIG_PACKAGE_php5-mod-ctype),) 
    141147  PKG_CONFIGURE_OPTS+= --enable-ctype=shared 
     
    360366else 
    361367  PKG_CONFIGURE_OPTS+= --disable-xmlwriter 
    362 endif 
    363  
    364 ifneq ($(CONFIG_PHP5_APC),) 
    365   PKG_CONFIGURE_OPTS+= --enable-apc --disable-apc-mmap --disable-apc-pthreadmutex 
    366   PKG_CONFIGURE_LIBS+= -lrt 
    367 else 
    368   PKG_CONFIGURE_OPTS+= --disable-apc 
    369368endif 
    370369 
     
    485484$(eval $(call BuildPackage,php5-fastcgi)) 
    486485 
     486$(eval $(call BuildModule,apc,APC)) 
    487487$(eval $(call BuildModule,ctype,Ctype)) 
    488488$(eval $(call BuildModule,curl,cURL,php5 +libcurl)) 
  • packages/lang/php5/files/php.ini

    r19306 r26824  
    198198apc.enabled = 1 
    199199apc.shm_segments = 1    ;The number of shared memory segments to allocate for the compiler cache. 
    200 apc.shm_size = 4        ;The size of each shared memory segment in MB. 
     200apc.shm_size = 4M       ;The size of each shared memory segment. 
    201201 
    202202[Date] 
Note: See TracChangeset for help on using the changeset viewer.