@@ -136,19 +136,8 @@ build_package() {
136136
137137build_package_standard () {
138138 local package_name=" $1 "
139- local argv
140-
141- # Add `--libexecdir`,` --with-config-file-path`, `--with-config-file-scan-dir`
142- # as well as the prefix configure options
143- #
144- # This is set as the default configure options
145- argv=" --prefix=$PREFIX_PATH \
146- --libexecdir=$PREFIX_PATH /libexec \
147- --with-config-file-path=$PREFIX_PATH /etc \
148- --with-config-file-scan-dir=$PREFIX_PATH /etc/conf.d \
149- $CONFIGURE_OPTS "
150139
151- { ./configure " $argv "
140+ { ./configure --prefix= " $PREFIX_PATH " $CONFIGURE_OPTS
152141 make -j 2
153142 make install
154143 } >&4 2>&1
@@ -210,6 +199,9 @@ list_definitions() {
210199
211200# Set the default php.ini to use
212201PHP_BUILD_DEFAULT_INI=" php.ini-recommended"
202+ if [ ! -e " $PHP_BUILD_DEFAULT_INI " ]; then
203+ PHP_BUILD_DEFAULT_INI=" php.ini-production"
204+ fi
213205
214206
215207
@@ -264,6 +256,13 @@ if [ ! -d "$PREFIX_PATH/libexec" ] || [ ! -d "$PREFIX_PATH/etc/conf.d" ]; then
264256 mkdir -p " $PREFIX_PATH /" {libexec,etc/conf.d}
265257fi
266258
259+ # Add `--libexecdir`, `--with-config-file-path`, `--with-config-file-scan-dir`
260+ # aswell as the prefix to the configure options.
261+ CONFIGURE_OPTS=" --libexecdir=$PREFIX_PATH /libexec \
262+ --with-config-file-path=$PREFIX_PATH /etc \
263+ --with-config-file-scan-dir=$PREFIX_PATH /etc/conf.d \
264+ $CONFIGURE_OPTS "
265+
267266if [ -z " $TMPDIR " ]; then
268267 TMP=" /tmp"
269268else
0 commit comments