summaryrefslogtreecommitdiffabout
path: root/acinclude.m4
Side-by-side diff
Diffstat (limited to 'acinclude.m4') (more/less context) (show whitespace changes)
-rw-r--r--acinclude.m437
1 files changed, 37 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644
index 0000000..e16972c
--- a/dev/null
+++ b/acinclude.m4
@@ -0,0 +1,37 @@
+dnl SC_BUILD_CONF(FILE-NAME,DIRECTIVE,CONTENTS)
+AC_DEFUN([SC_BUILD_CONF],[
+ echo -n "$2" >>"$1"
+ oc=0
+ for o in $3 ; do
+ oc=`expr ${oc} + 1`
+ if test ${oc} -ge 16 ; then
+ (echo ; echo -n "$2") >>"$1"
+ oc=0;
+ fi
+ echo -n " ${o}" >>"$1"
+ done
+ echo >>"$1"
+])
+
+dnl SC_WEB_ROOT(V_SRC,V_RUN)
+AC_DEFUN([SC_WEB_ROOT],[
+ $2="${PWD}"
+ X="${PWD}"
+ cd ${srcdir}
+ $1="${PWD}"
+ cd "${X}"
+ AC_SUBST([$1])
+ AC_SUBST([$2])
+])
+
+dnl SC_USER(VARIABLE[,DEFAULT])
+AC_DEFUN([SC_USER],[
+ $1=ifelse([$2], , ["${USER}"],[$2])
+ AC_ARG_WITH([sitecing-user],
+ AC_HELP_STRING([--with-sitecing-user=user],[set the owner of sitecing process]),
+ [
+ $1="${withval}"
+ ]
+ )
+ AC_SUBST([$1])
+])