summaryrefslogtreecommitdiffhomepage
path: root/auto/modules/php
diff options
context:
space:
mode:
Diffstat (limited to 'auto/modules/php')
-rw-r--r--auto/modules/php25
1 files changed, 17 insertions, 8 deletions
diff --git a/auto/modules/php b/auto/modules/php
index c9fff12f..cf4f3837 100644
--- a/auto/modules/php
+++ b/auto/modules/php
@@ -9,7 +9,7 @@ shift
for nxt_option; do
case "$nxt_option" in
- -*=*) value=`$echo "$nxt_option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
+ -*=*) value=`echo "$nxt_option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
*) value="" ;;
esac
@@ -21,27 +21,36 @@ for nxt_option; do
--help)
cat << END
- --config=NAME set php-config name
- --module=NAME set php module name
- --lib-path=PATH set path to libphp.so library
+ --config=FILE set php-config filename
+ --module=NAME set unit php module name
+ --lib-path=DIRECTORY set directory path to libphp.so library
END
exit 0
;;
*)
- $echo
- $echo $0: error: invalid PHP option \"$nxt_option\"
- $echo
+ echo
+ echo $0: error: invalid PHP option \"$nxt_option\"
+ echo
exit 1
;;
esac
-
done
+if [ ! -f $NXT_AUTOCONF_DATA ]; then
+ echo
+ echo Please run common $0 before configuring module \"$nxt_module\".
+ echo
+ exit 1
+fi
+
+. $NXT_AUTOCONF_DATA
+
+
NXT_PHP_CONFIG=${NXT_PHP_CONFIG=php-config}
NXT_PHP=${NXT_PHP_CONFIG%-config*}
NXT_PHP_MODULE=${NXT_PHP_MODULE=${NXT_PHP##*/}}