aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-22 03:30:31 +0300
committerCem Keylan <cem@ckyln.com>2021-07-22 03:30:31 +0300
commitf01d9ba5d42e9a8d0b148bc7fc14c34ba6dc4bb9 (patch)
treedb1afee3448df3e7f7be7d7e79b67d45bbb23916
parentb5609d30640cd16a143c5ae60cfb5daac15ac04c (diff)
downloadotools-f01d9ba5d42e9a8d0b148bc7fc14c34ba6dc4bb9.tar.gz
update configure script
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 6e879d8..36895a2 100755
--- a/configure
+++ b/configure
@@ -10,6 +10,17 @@ die() {
out() { printf '%s\n' "$@" ;}
+usage() {
+ out "usage: $0 [options]" \
+ "Options:" \
+ " --prefix=dir Set prefix directory" \
+ " --bindir=dir Set directory where executables will be installed" \
+ " --manprefix=dir Set directory where manual pages will be installed" \
+ " --with-fts=option One of glibc, musl-fts, none, auto (default: auto)" \
+ " --with-system-zlib Use system zlib"
+ exit 1
+}
+
prefix=/usr/local
# We don't want expansion
# shellcheck disable=2016
@@ -22,8 +33,10 @@ host=
for arg; do
case $arg in
+ --help) usage ;;
--prefix=*) prefix=${arg#*=} ;;
--bindir=*) bindir=${arg#*=} ;;
+ --manprefix=*) manprefix=${arg#*=} ;;
--with-fts=*) fts=${arg#*=} ;;
--with-system-zlib) zlib=1 ;;
-*) die "Unknown flag: '$arg'" ;;