summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2020-02-06 18:07:56 +0100
committerJens Axboe <axboe@kernel.dk>2020-02-06 12:11:08 -0700
commitb57dbc2d308a849bdd532c4b7348bbbfdbf381f4 (patch)
tree6320c486f0ae7851293a5d361e501386c6cad090 /configure
parentad428769bc85b2d02fac6e385baa58d2afe6effe (diff)
downloadliburing-b57dbc2d308a849bdd532c4b7348bbbfdbf381f4.tar.gz
liburing-b57dbc2d308a849bdd532c4b7348bbbfdbf381f4.tar.bz2
configure/Makefile: introduce libdevdir defaults to $(libdir)
This makes it possible to install runtime libraries to /lib/* and developement libraries to /usr/lib/* Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 54cf5f6..9fb43b3 100755
--- a/configure
+++ b/configure
@@ -22,6 +22,8 @@ for opt do
;;
--libdir=*) libdir="$optarg"
;;
+ --libdevdir=*) libdevdir="$optarg"
+ ;;
--mandir=*) mandir="$optarg"
;;
--datadir=*) datadir="$optarg"
@@ -45,6 +47,9 @@ fi
if test -z "$libdir"; then
libdir="$prefix/lib"
fi
+if test -z "$libdevdir"; then
+ libdevdir="$libdir"
+fi
if test -z "$mandir"; then
mandir="$prefix/man"
fi
@@ -61,7 +66,8 @@ Options: [defaults in brackets after descriptions]
--help print this message
--prefix=PATH install in PATH [$prefix]
--includedir=PATH install headers in PATH [$includedir]
- --libdir=PATH install libraries in PATH [$libdir]
+ --libdir=PATH install runtime libraries in PATH [$libdir]
+ --libdevdir=PATH install developement libraries in PATH [$libdevdir]
--mandir=PATH install man pages in PATH [$mandir]
--datadir=PATH install shared data in PATH [$datadir]
EOF
@@ -171,6 +177,7 @@ print_and_output_mak() {
print_and_output_mak "prefix" "$prefix"
print_and_output_mak "includedir" "$includedir"
print_and_output_mak "libdir" "$libdir"
+print_and_output_mak "libdevdir" "$libdevdir"
print_and_output_mak "mandir" "$mandir"
print_and_output_mak "datadir" "$datadir"