From c96b1ca343bc0f66f733dcd3bd41ef0c7a45b506 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Thu, 10 Jul 2014 03:33:18 +0200 Subject: [PATCH] build: use symlinks for nmtui Make /usr/bin/nmtui-* symbolic links to /usr/bin/nmtui. https://bugzilla.gnome.org/show_bug.cgi?id=759824 (cherry picked from commit 39fc73eed9a2f63638f8736b3f9f9d4e816207db) --- clients/tui/Makefile.am | 2 +- configure.ac | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/tui/Makefile.am b/clients/tui/Makefile.am index a84fcdffe3..3eb1756ea9 100644 --- a/clients/tui/Makefile.am +++ b/clients/tui/Makefile.am @@ -27,7 +27,7 @@ links = nmtui-edit nmtui-connect nmtui-hostname install-exec-hook: for link in $(links); do \ - ln -f $(DESTDIR)$(bindir)/nmtui $(DESTDIR)$(bindir)/$$link; \ + cd $(DESTDIR)$(bindir) && $(LN_S) -f nmtui $$link; \ done uninstall-hook: diff --git a/configure.ac b/configure.ac index 1ed693543a..2c23a1cd2c 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,8 @@ AM_PROG_CC_C_O # C++ only required if --enable-qt=yes AC_PROG_CXX +AC_PROG_LN_S + dnl Initialize libtool LT_PREREQ([2.2]) LT_INIT([disable-static])