options (86:3b77edf46701) options (87:ae678814949f)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) Valentin V. Bartenev
4# Copyright (C) NGINX, Inc.
5
6
7CC=${CC:-cc}
8

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

42NXT_LIB_UNIT_TEST=NO
43
44NXT_PYTHON=python
45NXT_PYTHON_MODULE=NO
46
47NXT_PHP=php
48NXT_PHP_MODULE=NO
49
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) Valentin V. Bartenev
4# Copyright (C) NGINX, Inc.
5
6
7CC=${CC:-cc}
8

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

42NXT_LIB_UNIT_TEST=NO
43
44NXT_PYTHON=python
45NXT_PYTHON_MODULE=NO
46
47NXT_PHP=php
48NXT_PHP_MODULE=NO
49
50NXT_GO=go
51NXT_GO_MODULE=NO
52
50for nxt_option
51do
52 case "$nxt_option" in
53 -*=*) value=`$echo "$nxt_option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
54 *) value="" ;;
55 esac
56
57 case "$nxt_option" in

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

93 --with-lib-unit-tests) NXT_LIB_UNIT_TEST=YES ;;
94
95 --with-python=*) NXT_PYTHON="$value" ;;
96 --with-python_module) NXT_PYTHON_MODULE=YES ;;
97
98 --with-php=*) NXT_PHP="$value" ;;
99 --with-php_module) NXT_PHP_MODULE=YES ;;
100
53for nxt_option
54do
55 case "$nxt_option" in
56 -*=*) value=`$echo "$nxt_option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
57 *) value="" ;;
58 esac
59
60 case "$nxt_option" in

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

96 --with-lib-unit-tests) NXT_LIB_UNIT_TEST=YES ;;
97
98 --with-python=*) NXT_PYTHON="$value" ;;
99 --with-python_module) NXT_PYTHON_MODULE=YES ;;
100
101 --with-php=*) NXT_PHP="$value" ;;
102 --with-php_module) NXT_PHP_MODULE=YES ;;
103
104 --with-go=*) NXT_GO="$value" ;;
105 --with-go_module) NXT_GO_MODULE=YES ;;
106
101 *)
102 $echo
103 $echo "$0: error: invalid option \"$nxt_option\"".
104 $echo
105 exit 1
106 ;;
107 esac
108
109 nxt_opt=`$echo $nxt_option | sed -e "s/\(--[^=]*=\)\(.* .*\)/\1'\2'/"`
110
111 NXT_CONFIGURE_OPTIONS="$NXT_CONFIGURE_OPTIONS $nxt_opt"
112
113done
107 *)
108 $echo
109 $echo "$0: error: invalid option \"$nxt_option\"".
110 $echo
111 exit 1
112 ;;
113 esac
114
115 nxt_opt=`$echo $nxt_option | sed -e "s/\(--[^=]*=\)\(.* .*\)/\1'\2'/"`
116
117 NXT_CONFIGURE_OPTIONS="$NXT_CONFIGURE_OPTIONS $nxt_opt"
118
119done