Permalink
Browse files

Fix problems with autoheader

  • Loading branch information...
tdudziak committed Jun 19, 2012
1 parent e8feb8e commit 9e3757c3a93ab51e81dda7d4c5c28ad321bb9cf9
Showing with 13 additions and 25 deletions.
  1. +10 −0 README
  2. +0 −25 config.h.in
  3. +3 −0 configure.ac
View
10 README
@@ -10,6 +10,16 @@ tool for running a program with restricted set so I wrote one.
Building & Installing
=====================
+When installing from the git repo, you should start with generating the
+configuration script using Autoconf and Automake:
+
+$ aclocal
+$ autoheader
+$ automake --foreign --add-missing
+$ autoconf
+
+Then configure, build, and install using:
+
$ ./configure
$ make
$ sudo make install
View
@@ -1,25 +0,0 @@
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* Version number of package */
-#undef VERSION
-
-#define DEFAULT_CAPABILITIES "CAP_SYS_MODULE,CAP_SYS_RAWIO"
View
@@ -23,5 +23,8 @@ AC_CHECK_HEADERS([stdlib.h unistd.h getopt.h sys/capability.h sys/prctl.h])
AC_CHECK_FUNC(getopt_long, , AC_MSG_ERROR(getopt_long() is missing))
AC_CHECK_FUNC(prctl, , AC_MSG_ERROR(No prctl(). Is this a Linux system?))
+AC_DEFINE([DEFAULT_CAPABILITIES], ["CAP_SYS_MODULE,CAP_SYS_RAWIO"],
+ [Default capabilities to drop])
+
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

0 comments on commit 9e3757c

Please sign in to comment.