Add convenient SysV init /etc/rc.local compat

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-07-15 13:17:09 +02:00
parent 8f9ea0ae57
commit 48e2cbd183
3 changed files with 31 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# From https://github.com/kakaroto/e17/blob/master/BINDINGS/javascript/elixir/m4/ac_expand_dir.m4
# By Alexandre Oliva <oliva@dcc.unicamp.br>
# AC_EXPAND_DIR(VARNAME, DIR)
# ------------------------------------------------------------
# Expands occurrences of ${prefix} and ${exec_prefix} in the
# given DIR, and assigns the resulting string to VARNAME
#
# Example: AC_DEFINE_DIR(DATADIR, "$datadir")
AC_DEFUN([AC_EXPAND_DIR], [
$1=$2
$1=`(
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
eval echo \""[$]$1"\"
)`
])