summaryrefslogtreecommitdiffstats
path: root/common/elapi/conf_macros.m4
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-08-07 15:50:34 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-08-12 12:24:27 -0400
commit1771d32e945b758326951384f0e17121042ad74e (patch)
tree070df00bcb1e049a1bdf794922b9b970479942a8 /common/elapi/conf_macros.m4
parentd59ba3139bba2d28c1209f62c01a7017c26dd635 (diff)
downloadsssd-1771d32e945b758326951384f0e17121042ad74e.tar.gz
sssd-1771d32e945b758326951384f0e17121042ad74e.tar.xz
sssd-1771d32e945b758326951384f0e17121042ad74e.zip
ELAPI Next round of functionality - logging part of the interface
a) Added the main logging interface which allows creating dispatcher and logging messages or events. Can't actully log anything yet since the sinks are stubbed out. b) Made default template be a part of the default dispatcher. c) Updated UNIT test. d) Some of the calls are stubbed out but they are there to indicate where next round of work will be.
Diffstat (limited to 'common/elapi/conf_macros.m4')
-rw-r--r--common/elapi/conf_macros.m456
1 files changed, 56 insertions, 0 deletions
diff --git a/common/elapi/conf_macros.m4 b/common/elapi/conf_macros.m4
new file mode 100644
index 000000000..e20dfdbaf
--- /dev/null
+++ b/common/elapi/conf_macros.m4
@@ -0,0 +1,56 @@
+
+AC_DEFUN([WITH_CONFIG_DIR],
+ [ AC_ARG_WITH([config-dir],
+ [AC_HELP_STRING([--with-config-dir=DIR],
+ [The name of the default ELAPI config directory [SYSCONFDIR/elapi]]
+ )
+ ]
+ )
+ elapiconfdir="$sysconfdir/elapi"
+ if test x"$with_config_dir" != x; then
+ elapiconfdir=$with_config_dir
+ fi
+ AC_SUBST(elapiconfdir)
+ ])
+
+AC_DEFUN([WITH_CONFIG_APP_DIR],
+ [ AC_ARG_WITH([config-app-dir],
+ [AC_HELP_STRING([--with-config-app-dir=DIR],
+ [The name of the ELAPI application config directory [SYSCONFDIR/elapi/apps.d]]
+ )
+ ]
+ )
+ elapiconfappdir="$sysconfdir/elapi/apps.d"
+ if test x"$with_config_app_dir" != x; then
+ elapiconfappdir=$with_config_app_dir
+ fi
+ AC_SUBST(elapiconfappdir)
+ ])
+
+AC_DEFUN([WITH_APP_NAME],
+ [ AC_ARG_WITH([app-name],
+ [AC_HELP_STRING([--with-app-name=<name>],
+ [The name of the default ELAPI application [default]]
+ )
+ ]
+ )
+ appname="default"
+ if test x"$with_app_name" != x; then
+ appname=$with_app_name
+ fi
+ AC_SUBST(appname)
+ ])
+
+AC_DEFUN([WITH_APP_NAME_SIZE],
+ [ AC_ARG_WITH([app-name-size],
+ [AC_HELP_STRING([--with-app-name-size=<size>],
+ [The maximum size of the name for an ELAPI application [127]]
+ )
+ ]
+ )
+ appnamesize="127"
+ if test x"$with_app_name_size" != x; then
+ appnamesize=$with_app_name_size
+ fi
+ AC_SUBST(appnamesize)
+ ])