diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 69 |
1 files changed, 32 insertions, 37 deletions
@@ -86,65 +86,60 @@ BLUE() { | |||
86 | 86 | ||
87 | show_help() { | 87 | show_help() { |
88 | cat <<EOF | 88 | cat <<EOF |
89 | Usage: ./configure [OPTION]... [VAR=VALUE]... | ||
89 | 90 | ||
90 | Configure the build process of LuaRocks. | 91 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
92 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
91 | 93 | ||
92 | --help This help. | 94 | Defaults for the options are specified in brackets. |
93 | 95 | ||
94 | Where to install LuaRocks: | 96 | Configuration: |
95 | -------------------------- | 97 | -h, --help display this help and exit |
96 | 98 | ||
97 | --prefix=PREFIX Directory where LuaRocks should be installed. | 99 | Installation directories: |
98 | - Default is $prefix | 100 | --prefix=PREFIX Directory where LuaRocks should be installed |
99 | --sysconfdir=SYSCONFDIR Where system config files should be installed. | 101 | [/usr/local] |
100 | - Default is $sysconfdir | ||
101 | (PREFIX/etc) | ||
102 | --luarocksconfdir=DIR Where the luarocks config file should be installed. | ||
103 | - Default is $luarocksconfdir | ||
104 | (SYSCONFDIR/luarocks) | ||
105 | 102 | ||
106 | Where to install files provided by rocks: | 103 | By default, \`make install' will install all the files in \`/usr/local', |
107 | ----------------------------------------- | 104 | \`/usr/local/lib' etc. You can specify an installation prefix other than |
105 | \`/usr/local/' using \`--prefix', for instance \`--prefix=\$HOME'. | ||
106 | |||
107 | For better control, use the options below. | ||
108 | |||
109 | Fine tuning of the installation directories: | ||
110 | --sysconfdir=SYSCONFDIR Directory for single-machine config [PREFIX/etc] | ||
111 | --luarocksconfdir=DIR Directory for luarocks config [SYSCONFDIR/luarocks] | ||
108 | 112 | ||
109 | --rocks-tree=ROCKS_DIR Root of the local tree of installed rocks. | 113 | Where to install files provided by rocks: |
114 | --rocks-tree=DIR Root of the local tree of installed rocks. | ||
110 | To make files installed in this location | 115 | To make files installed in this location |
111 | accessible to Lua and your \$PATH, see | 116 | accessible to Lua and your \$PATH, see |
112 | "luarocks path --help" after installation. | 117 | "luarocks path --help" after installation. |
113 | Avoid using paths controlled by your | 118 | Avoid using paths controlled by your |
114 | system's package manager, such as /usr. | 119 | system's package manager, such as /usr. |
115 | - Default is $prefix | 120 | - Default is [PREFIX] |
116 | (PREFIX) | ||
117 | 121 | ||
118 | Where is your Lua interpreter: | 122 | Where is your Lua interpreter: |
119 | ------------------------------ | 123 | --lua-version=VERSION Use specific Lua version: 5.1, 5.2, 5.3, or 5.4 |
120 | |||
121 | --lua-version=VERSION Use specific Lua version: 5.1, 5.2, 5.3, or 5.4 | ||
122 | - Default is auto-detected. | 124 | - Default is auto-detected. |
123 | --with-lua=LUA_DIR Use Lua from given directory. | 125 | --with-lua-bin=LUA_BINDIR Location of your Lua binar(y/ies). |
124 | - Default is auto-detected from your \$PATH | ||
125 | (or the parent directory of LUA_BINDIR | ||
126 | if --with-lua-bin is used). | ||
127 | --with-lua-bin=LUA_BINDIR You can also specify Lua's bin dir. | ||
128 | - Default is the directory of the | 126 | - Default is the directory of the |
129 | auto-detected Lua interpreter, | 127 | auto-detected Lua interpreter, |
130 | (or LUA_DIR/bin if --with-lua is used) | 128 | (or DIR/bin if --with-lua is used) |
131 | --with-lua-include=LUA_INCDIR Lua's includes dir. | 129 | --with-lua=LUA_DIR Use Lua from given directory. [LUA_BINDIR/..] |
132 | - Default is LUA_DIR/include | 130 | --with-lua-include=DIR Lua's includes dir. [LUA_DIR/include] |
133 | --with-lua-lib=LUA_LIBDIR Lua's libraries dir. | 131 | --with-lua-lib=DIR Lua's libraries dir. [LUA_DIR/lib] |
134 | - Default is LUA_DIR/lib | 132 | --with-lua-interpreter=NAME Lua interpreter name. |
135 | --with-lua-interpreter=NAME Lua interpreter name | ||
136 | - Default is to auto-detected | 133 | - Default is to auto-detected |
137 | 134 | ||
138 | For specialized uses of LuaRocks: | 135 | For specialized uses of LuaRocks: |
139 | --------------------------------- | 136 | --force-config Force using a single config location. |
140 | |||
141 | --force-config Force using a single config location. | ||
142 | Do not honor the \$LUAROCKS_CONFIG_5_x | 137 | Do not honor the \$LUAROCKS_CONFIG_5_x |
143 | or \$LUAROCKS_CONFIG environment | 138 | or \$LUAROCKS_CONFIG environment |
144 | variable or the user's local config. | 139 | variable or the user's local config. |
145 | Useful to avoid conflicts when LuaRocks | 140 | Useful to avoid conflicts when LuaRocks |
146 | is embedded within an application. | 141 | is embedded within an application. |
147 | --disable-incdir-check If you do not wish to use "luarocks build", | 142 | --disable-incdir-check If you do not wish to use "luarocks build", |
148 | (e.g. when only deploying binary packages) | 143 | (e.g. when only deploying binary packages) |
149 | you do not need lua.h installed. This flag | 144 | you do not need lua.h installed. This flag |
150 | skips the check for lua.h in "configure". | 145 | skips the check for lua.h in "configure". |
@@ -229,7 +224,7 @@ do | |||
229 | 224 | ||
230 | # Help | 225 | # Help |
231 | # ---- | 226 | # ---- |
232 | --help) | 227 | -h|--help) |
233 | show_help | 228 | show_help |
234 | exit 0 | 229 | exit 0 |
235 | ;; | 230 | ;; |