diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-06-16 18:11:37 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-06-16 18:11:37 +0000 |
commit | 7e671e48c7a2cfc4f9cae4fd8f909111ded24c60 (patch) | |
tree | 2641e9182cf80d8c080299ff2992d314e2929be0 /configure.in | |
parent | d90a5a5fcfd899f32eae6fd3ce87b082ff221df8 (diff) | |
parent | f00b82b6f9114694e3c05e2bb3a5395ce59c85de (diff) | |
download | libcg-7e671e48c7a2cfc4f9cae4fd8f909111ded24c60.tar.gz libcg-7e671e48c7a2cfc4f9cae4fd8f909111ded24c60.tar.xz libcg-7e671e48c7a2cfc4f9cae4fd8f909111ded24c60.zip |
libcg: Add a new trunk
Setting trunk to v0.1c. This is the branch against which
all development should take place.
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@79 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..6943029 --- /dev/null +++ b/configure.in @@ -0,0 +1,59 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. +# +# Copyright International Business Machines Corp. 2008 +# +# Authors: Balbir Singh <balbir@linux.vnet.ibm.com> +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2.1 of the GNU Lesser General Public License +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +AC_PREREQ(2.61) +AC_INIT([control groups library and utilities], 0.1c, + [http://sourceforge.net/tracker/?group_id=218421&atid=1043649]) +AC_CONFIG_SRCDIR([wrapper.c]) +AC_CONFIG_HEADER([config.h]) + +# Checks for programs. +AC_PROG_CXX +AC_PROG_CC +AC_PROG_YACC +if test "$YACC" != byacc; then + YACC="$SHELL $missing_dir/missing byacc" + AC_SUBST(YACC, "byacc") +fi +AC_PROG_LEX + +# Checks for libraries. +# FIXME: Replace `main' with a function in `-lcgroup': +AC_CHECK_LIB([cgroup], [cgroup_create_cgroup]) + +# Checks for header files. +AC_HEADER_DIRENT +AC_HEADER_STDC +AC_CHECK_HEADERS([limits.h mntent.h stdlib.h string.h sys/mount.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_CONST +AC_TYPE_UID_T +AC_C_INLINE +AC_TYPE_INT64_T +AC_TYPE_PID_T + +# Checks for library functions. +AC_FUNC_CHOWN +AC_FUNC_GETMNTENT +AC_FUNC_MALLOC +AC_FUNC_REALLOC +AC_FUNC_STAT +AC_CHECK_FUNCS([getmntent hasmntopt memset mkdir rmdir strdup]) + +AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([libcgroup.spec:libcgroup.spec.in]) +AC_CONFIG_FILES([mktarball:mktarball.in]) +AC_OUTPUT |