php (468:bd697a3f8562) php (612:217e48a3b091)
1
2# Copyright (C) Max Romanov
3# Copyright (C) Igor Sysoev
4# Copyright (C) NGINX, Inc.
5
6
7shift
8

--- 59 unchanged lines hidden (view full) ---

68
69NXT_PHP_LDFLAGS=
70
71if /bin/sh -c "${NXT_PHP_CONFIG} --version" >> $NXT_AUTOCONF_ERR 2>&1; then
72
73 $echo " found"
74
75 NXT_PHP_VERSION="`${NXT_PHP_CONFIG} --version`"
1
2# Copyright (C) Max Romanov
3# Copyright (C) Igor Sysoev
4# Copyright (C) NGINX, Inc.
5
6
7shift
8

--- 59 unchanged lines hidden (view full) ---

68
69NXT_PHP_LDFLAGS=
70
71if /bin/sh -c "${NXT_PHP_CONFIG} --version" >> $NXT_AUTOCONF_ERR 2>&1; then
72
73 $echo " found"
74
75 NXT_PHP_VERSION="`${NXT_PHP_CONFIG} --version`"
76 $echo " + PHP version: ${NXT_PHP_VERSION}"
77 $echo " + PHP SAPI: [`${NXT_PHP_CONFIG} --php-sapis`]"
78
79 NXT_PHP_INCLUDE="`${NXT_PHP_CONFIG} --includes`"
80
81 if [ $NXT_PHP_LIB_STATIC = yes ]; then
82
83 if [ "$NXT_PHP_LIB_PATH" = "" ]; then
84 $echo

--- 40 unchanged lines hidden (view full) ---

125
126else
127 $echo
128 $echo $0: error: no PHP found.
129 $echo
130 exit 1;
131fi
132
76 $echo " + PHP SAPI: [`${NXT_PHP_CONFIG} --php-sapis`]"
77
78 NXT_PHP_INCLUDE="`${NXT_PHP_CONFIG} --includes`"
79
80 if [ $NXT_PHP_LIB_STATIC = yes ]; then
81
82 if [ "$NXT_PHP_LIB_PATH" = "" ]; then
83 $echo

--- 40 unchanged lines hidden (view full) ---

124
125else
126 $echo
127 $echo $0: error: no PHP found.
128 $echo
129 exit 1;
130fi
131
132
133nxt_feature="PHP version"
134nxt_feature_name=""
135nxt_feature_run=value
136nxt_feature_incs="${NXT_PHP_INCLUDE}"
137nxt_feature_libs="${NXT_PHP_LIB} ${NXT_PHP_LDFLAGS}"
138nxt_feature_test="
139 #include <php.h>
140
141 int main() {
142 printf(\"%s\", PHP_VERSION);
143 return 0;
144 }"
145
146. auto/feature
147
148
133if grep ^$NXT_PHP_MODULE: $NXT_MAKEFILE 2>&1 > /dev/null; then
134 $echo
135 $echo $0: error: duplicate \"$NXT_PHP_MODULE\" module configured.
136 $echo
137 exit 1;
138fi
139
140$echo " + PHP module: ${NXT_PHP_MODULE}.unit.so"

--- 63 unchanged lines hidden ---
149if grep ^$NXT_PHP_MODULE: $NXT_MAKEFILE 2>&1 > /dev/null; then
150 $echo
151 $echo $0: error: duplicate \"$NXT_PHP_MODULE\" module configured.
152 $echo
153 exit 1;
154fi
155
156$echo " + PHP module: ${NXT_PHP_MODULE}.unit.so"

--- 63 unchanged lines hidden ---