diff options
author | Cem Keylan <cem@ckyln.com> | 2021-07-22 03:30:31 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2021-07-22 03:30:31 +0300 |
commit | f01d9ba5d42e9a8d0b148bc7fc14c34ba6dc4bb9 (patch) | |
tree | db1afee3448df3e7f7be7d7e79b67d45bbb23916 /configure | |
parent | b5609d30640cd16a143c5ae60cfb5daac15ac04c (diff) | |
download | otools-f01d9ba5d42e9a8d0b148bc7fc14c34ba6dc4bb9.tar.gz |
update configure script
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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'" ;; |