[ --enable-force2GB enable force 2GB max reported volume size],
if test "x$enableval" = "xyes"; then
AC_DEFINE(FORCE_2GB, 1)
- AC_MSG_RESULT([enable forge 2GB])
+ AC_MSG_RESULT([enable force 2GB])
fi
)
)
)
+AC_ARG_ENABLE(redhat,
+ [ --enable-redhat use redhat-style sysv configuration ],
+ if test "$enableval" = "yes"; then
+ sysv_style=redhat
+ fi
+ AC_MSG_RESULT([enabling redhat-style sysv support])
+)
+
+AC_ARG_ENABLE(cobalt,
+ [ --enable-cobalt use cobalt-style sysv configuration ],
+ if test "$enableval" = "yes"; then
+ sysv_style=cobalt
+ fi
+ AC_MSG_RESULT([enabling cobalt-style sysv support])
+)
+
AC_ARG_WITH(uams-path,
[ --with-uams-path=path path to UAMs [default=/etc/atalk/uams]],
uams_path="$withval",
AC_SUBST(CFLAGS)
AM_CONDITIONAL(USE_DHX, test x$compile_dhx = xyes)
AM_CONDITIONAL(USE_PAM, test x$compile_pam = xyes)
+AM_CONDITIONAL(USE_COBALT, test x$sysv_style = xcobalt)
+AM_CONDITIONAL(USE_REDHAT, test x$sysv_style = xredhat)
dnl --------------------- generate files
-e s@:ETCDIR:@${CONFIG_DIR}@ \
<$^ >$@
-sysvdir = /etc/rc.d/init.d/
-sysv_SCRIPTS = rc.atalk.redhat
+sysvdir = /etc/rc.d/init.d
-CLEANFILES = rc.atalk.redhat
+CLEANFILES = rc.atalk.redhat atalk
+#
+# checking for "redhat" style sysv scripts:
+#
+
+if USE_REDHAT
+
+sysv_SCRIPTS = atalk
+
+atalk: rc.atalk.redhat
+ cp -f rc.atalk.redhat atalk
+ chmod a+x atalk
+
+endif
+
+#
+# checking for "cobalt" style sysv scripts:
+#
+
+if USE_COBALT
+
+sysv_SCRIPTS = atalk
+
+atalk: rc.atalk.cobalt
+ cp -f rc.atalk.cobalt atalk
+ chmod a+x atalk
+
+endif