diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-05-24 11:08:57 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-05-24 11:08:57 +0000 |
commit | 6b0384f40a1eb8ff70b27b6dfed3553883c9141f (patch) | |
tree | 95d650f507446f69071f3d0cd728392468027d5c /configure.in | |
parent | c74b7e334e27928cbfeee489adcc7c25d2efb369 (diff) | |
download | libcg-6b0384f40a1eb8ff70b27b6dfed3553883c9141f.tar.gz libcg-6b0384f40a1eb8ff70b27b6dfed3553883c9141f.tar.xz libcg-6b0384f40a1eb8ff70b27b6dfed3553883c9141f.zip |
Add v0.1b tag
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/tags/v0.1b@49 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..f9c37d3 --- /dev/null +++ b/configure.in @@ -0,0 +1,64 @@ +# -*- 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.1b, + [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 +AC_PROG_MKDIR_P +if test "$INSTALL" != install; then + AC_SUBST(INSTALL, "install") +fi +AC_PROG_INSTALL + +# 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 |