aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-05-12 23:13:24 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-05-12 23:34:33 -0400
commit183c73b02615acc33fc22e89b8cc7fdc5f22ee0e (patch)
tree80f7307317cf2bcbd515558223f60f455b8a0a09 /configure.in
parente366e42392d3bc762a71e038081960adfdc9d587 (diff)
downloade2fsprogs-183c73b02615acc33fc22e89b8cc7fdc5f22ee0e.tar.gz
e2fsprogs-183c73b02615acc33fc22e89b8cc7fdc5f22ee0e.tar.xz
e2fsprogs-183c73b02615acc33fc22e89b8cc7fdc5f22ee0e.zip
Teach build system to install relative symlinks if requested
Add a configure option, --enable-relative-symlinks, which will use relative symlinks for the ELF shared library files. Addresses-Sourceforge-Bug: #3520767 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in24
1 files changed, 21 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index e15a77a6..83a6a1d0 100644
--- a/configure.in
+++ b/configure.in
@@ -164,10 +164,28 @@ else
fi
,
LINK_INSTALL_FLAGS=-f
-AC_MSG_RESULT([Disabling symlinks for install])
+AC_MSG_RESULT([Disabling symlinks for install by default])
)
AC_SUBST(LINK_INSTALL_FLAGS)
dnl
+dnl handle --enable-relative-symlinks
+dnl
+AC_ARG_ENABLE([symlink-relative-symlinks],
+[ --enable-relative-symlinks use relative symlinks when installing],
+if test "$enableval" = "no"
+then
+ SYMLINK_RELATIVE=
+ AC_MSG_RESULT([Disabling relative symlinks for install])
+else
+ SYMLINK_RELATIVE=--relative
+ AC_MSG_RESULT([Enabling symlinks for install])
+fi
+,
+ SYMLINK_RELATIVE=
+AC_MSG_RESULT([Disabling relative symlinks for install by default])
+)
+AC_SUBST(SYMLINK_RELATIVE)
+dnl
dnl handle --enable-symlink-build
dnl
AC_ARG_ENABLE([symlink-build],
@@ -182,7 +200,7 @@ else
fi
,
LINK_BUILD_FLAGS=
-AC_MSG_RESULT([Disabling symlinks for build])
+AC_MSG_RESULT([Disabling symlinks for build by default])
)
AC_SUBST(LINK_BUILD_FLAGS)
dnl
@@ -1230,7 +1248,7 @@ test -d include || mkdir include
test -d include/linux || mkdir include/linux
test -d include/asm || mkdir include/asm
for i in MCONFIG Makefile e2fsprogs.spec \
- util/Makefile util/subst.conf util/gen-tarball \
+ util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
lib/uuid/Makefile lib/uuid/uuid_types.h \