Overhaul build system and add support for disabling inetd support.

This patch adds support for a configure script and with it
support for disabling inetd support.  See the output from

    ./configure --help

* Add configure script
* Sprinkle #ifdef fairy dust on svc.c when inetd support is disabled
* Use GCC built-in autodep calculator (-MMD -MP)
* Fix name space issue with include files, use relative paths
* Disable username/group name to uid/gid functions in static builds
* Bug out (error) if a user tries to build the bootmisc plugin static

Possibly fixes GitHub issue #5 and issue #6.

NOTE: The static build has not received any testing at all!

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-03-10 10:25:46 +01:00
1 parent a74b640507
commit 32587d341c
25 files changed
+392 -118

No files matched your search

+3 -1
View File
@@ -48,7 +48,7 @@
#include "helpers.h"
#include "private.h"
#include "sig.h"
#include "lite.h"
#include "libite/lite.h"
#define NUM_ARGS 16
#define NUM_SCRIPTS 128 /* ought to be enough for anyone */
@@ -710,6 +710,7 @@ int run_parts(char *dir, char *cmd)
return 0;
}
#ifndef ENABLE_STATIC
int getuser(char *username)
{
struct passwd *usr;
@@ -729,6 +730,7 @@ int getgroup(char *group)
return grp->gr_gid;
}
#endif
/*
* Other convenience functions