Skip to content

Commit 8840d0e

Browse files
configure.ac, src/Makefile.am: Follow GNU coding standards regarding directory variables
Closes: <#1229> Reported-by: Chris Hofstaedtler <[email protected]> Cc: Sam James <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
1 parent 77eb67d commit 8840d0e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

configure.ac

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ AC_SUBST([LIBSUBID_ABI_MINOR], [libsubid_abi_minor])
1616
AC_SUBST([LIBSUBID_ABI_MICRO], [libsubid_abi_micro])
1717
AC_SUBST([LIBSUBID_ABI], [libsubid_abi])
1818

19-
dnl Some hacks...
20-
test "$prefix" = "NONE" && prefix="/usr"
21-
test "$prefix" = "/usr" && exec_prefix=""
22-
2319
AC_USE_SYSTEM_EXTENSIONS
2420

2521
AC_ENABLE_STATIC

src/Makefile.am

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
EXTRA_DIST = \
33
.indent.pro
44

5-
ubindir = ${prefix}/bin
6-
usbindir = ${prefix}/sbin
5+
prefix = /usr/local
6+
exec_prefix = ${prefix}
7+
ubindir = ${exec_prefix}/bin
8+
usbindir = ${exec_prefix}/sbin
79
suidperms = 4755
810
sgidperms = 2755
911

@@ -24,7 +26,7 @@ AM_CFLAGS = $(LIBBSD_CFLAGS)
2426
#
2527
# also /lib/libshadow.so.x.xx (if any) could be moved to /usr/lib
2628
# and installation would be much simpler (just two directories,
27-
# $prefix/bin and $prefix/sbin, no install-data hacks...)
29+
# $exec_prefix/bin and $exec_prefix/sbin, no install-data hacks...)
2830

2931
bin_PROGRAMS = login
3032
sbin_PROGRAMS = nologin

0 commit comments

Comments
 (0)