Skip to content

Commit

Permalink
Issue #131: Update config.site
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Detwiler <mike@detwiler.io>
  • Loading branch information
detwiler committed Dec 17, 2022
1 parent 56875d7 commit 3bdb2c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions data/autoconf/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ config_site_sysvinit = config-site-sysvinit
# data/scripts generated by configure (source file automatically distributed)
conf_data = $(config_site)

$(config_site): $(config_site_systemd) $(config_site_sysvinit)

data_DATA = $(conf_data)

DISTCLEANFILES = $(data_DATA) \
Expand Down
1 change: 0 additions & 1 deletion data/autoconf/config-site-systemd.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# vim:ft=sh

test "$sysconfdir" = '${prefix}/etc' && sysconfdir=`@SYSTEMD_PATH@ user-configuration`
test "$libdir" = '${exec_prefix}/lib' && libdir=`@SYSTEMD_PATH@ user-library-arch`
1 change: 0 additions & 1 deletion data/autoconf/config-site-sysvinit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# vim:ft=sh

test "$sysconfdir" = '${prefix}/etc' && sysconfdir="${XDG_CONFIG_HOME:-$HOME/.config}"
test "$libdir" = '${exec_prefix}/lib' && libdir="$HOME/.local/lib/`uname -m`"
6 changes: 2 additions & 4 deletions data/autoconf/config.site.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
@XDG_BASEDIR_FILE@
# vim:ft=sh

test "$includedir" = '${prefix}/include' && includedir="$HOME/.local/include"
@XDG_BASEDIR_FILE@

# set FLAGS accordingly
test "x$CFLAGS" = x && CFLAGS='-march=native'
test "x$CPPFLAGS" = x && CPPFLAGS="-I$includedir"
test "x$LDFLAGS" = x && LDFLAGS="-L$libdir -Wl,-rpath,$libdir"

# vim:ft=sh

0 comments on commit 3bdb2c6

Please sign in to comment.