aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-09-06 23:01:14 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-09-07 00:09:19 -0400
commit91d11da1430b801476f6d5f71ad8669b232731af (patch)
tree5d92d6737a226586c47e7008d8122f77c8623169 /configure.in
parent993c455552a218f34cc9a16e0b099868d2834ea5 (diff)
downloade2fsprogs-91d11da1430b801476f6d5f71ad8669b232731af.tar.gz
e2fsprogs-91d11da1430b801476f6d5f71ad8669b232731af.tar.xz
e2fsprogs-91d11da1430b801476f6d5f71ad8669b232731af.zip
configure: fix --enable-relative-symlink
The configure option --enable-relative-symlinks was incorrectly specified in configure.in, as --enable-symlink-relative-symlinks. Fix the configure script so that --enable-relative-symlinks works, as well as previous incorrect command line option. We will keep the older, incorrect --enable-symlink-relative-symlinks for at least two years before removing it. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in19
1 files changed, 17 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 7373e8e9..72da1a29 100644
--- a/configure.in
+++ b/configure.in
@@ -170,19 +170,34 @@ AC_SUBST(LINK_INSTALL_FLAGS)
dnl
dnl handle --enable-relative-symlinks
dnl
-AC_ARG_ENABLE([symlink-relative-symlinks],
+relative_symlink_defined=
+AC_ARG_ENABLE([relative-symlinks],
[ --enable-relative-symlinks use relative symlinks when installing],
if test "$enableval" = "no"
then
SYMLINK_RELATIVE=
+ relative_symlink_defined=yes
AC_MSG_RESULT([Disabling relative symlinks for install])
else
SYMLINK_RELATIVE=--relative
- AC_MSG_RESULT([Enabling symlinks for install])
+ relative_symlink_defined=yes
+ AC_MSG_RESULT([Enabling relative symlinks for install])
+fi)
+AC_ARG_ENABLE([symlink-relative-symlinks],,
+if test "$enableval" = "no"
+then
+ SYMLINK_RELATIVE=yes
+ AC_MSG_RESULT([Disabling relative symlinks for install])
+else
+ SYMLINK_RELATIVE=--relative
+ AC_MSG_RESULT([Enabling relative symlinks for install])
fi
,
+if test -z "$relative_symlink_defined"
+then
SYMLINK_RELATIVE=
AC_MSG_RESULT([Disabling relative symlinks for install by default])
+fi
)
AC_SUBST(SYMLINK_RELATIVE)
dnl