16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 |
23 |
24 include $(WS_TOP)/make-rules/prep.mk |
24 include $(WS_TOP)/make-rules/prep.mk |
25 include $(WS_TOP)/make-rules/configure.mk |
25 include $(WS_TOP)/make-rules/configure.mk |
26 include $(WS_TOP)/make-rules/ips.mk |
26 include $(WS_TOP)/make-rules/ips.mk |
27 |
27 |
28 include ../common.mk |
28 include ../common.mk |
29 |
29 |
30 # NOTE: this phpize-proto comes from nsapi while |
30 # NOTE: this phpize-proto comes from nsapi while |
31 # php-config-proto comes from sapi |
31 # php-config-proto comes from sapi |
|
32 # |
|
33 # phpize-proto.zts runs autoconf |
|
34 # |
|
35 # Patching PHP_EXECUTABLE will enable extensions to run the test target |
|
36 # |
32 COMPONENT_PRE_CONFIGURE_ACTION = ( \ |
37 COMPONENT_PRE_CONFIGURE_ACTION = ( \ |
33 ($(CLONEY) $(SOURCE_DIR) $(@D)); \ |
38 ($(CLONEY) $(SOURCE_DIR) $(@D)); \ |
34 $(GSED) -e "s@^builddir=.*@builddir=$(BUILD_DIR_32)@" \ |
39 $(GSED) -e "s@^builddir=.*@builddir=$(BUILD_DIR_32)@" \ |
35 < $(COMPONENT_DIR)/../php-nsapi/phpize-proto.zts \ |
40 < $(COMPONENT_DIR)/../php-nsapi/phpize-proto.zts \ |
36 > $(COMPONENT_DIR)/phpize-proto.zts; \ |
41 > $(COMPONENT_DIR)/phpize-proto.zts; \ |
37 cd $(BUILD_DIR_32); \ |
42 cd $(BUILD_DIR_32); \ |
38 $(ENV) -i $(ZTS_ENVLINE) $(CONFIG_SHELL) \ |
43 $(ENV) -i $(ZTS_ENVLINE) $(CONFIG_SHELL) \ |
39 $(COMPONENT_DIR)/phpize-proto.zts) |
44 $(COMPONENT_DIR)/phpize-proto.zts; \ |
|
45 $(GSED) -i -e "s@^PHP_EXECUTABLE=.*@PHP_EXECUTABLE=$(COMPONENT_DIR)/../php-sapi/build/$(MACH32)/sapi/cli/php@" \ |
|
46 configure ) |
40 |
47 |
41 |
48 |
42 CONFIGURE_OPTIONS += \ |
49 CONFIGURE_OPTIONS += \ |
43 --with-php-config=$(COMPONENT_DIR)/../php-sapi/php-config-proto.zts |
50 --with-php-config=$(COMPONENT_DIR)/../php-sapi/php-config-proto.zts |
44 |
51 |