mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
Add function in libtclenvmodules to implement `initStateUsergroups` as a Tcl command, which provides a more efficient way to retrieve current groups of running process, rather forking to execute `id` external binary. Note that if current system does not support the `getgroups` system call, only the primary group name of current user will be returned.
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.63])
|
|
AC_INIT([Envmodules], [1.0.1], [modules-interest@lists.sourceforge.net], , http://modules.sf.net)
|
|
AC_CONFIG_SRCDIR([envmodules.c])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
# Setup TEA_ macros.
|
|
TEA_INIT([3.13])
|
|
|
|
# Load the tclConfig.sh file.
|
|
TEA_PATH_TCLCONFIG
|
|
TEA_LOAD_TCLCONFIG
|
|
|
|
# Checks for programs.
|
|
|
|
# Checks for libraries.
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([fcntl.h unistd.h errno.h limits.h sys/types.h pwd.h grp.h dirent.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_TYPE_SSIZE_T
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_GETGROUPS
|
|
AC_CHECK_FUNC(sysconf, AC_DEFINE(HAVE_SYSCONF, 1, [Define to 1 if you have the sysconf function]))
|
|
|
|
# TEA-specific setup
|
|
TEA_SETUP_COMPILER
|
|
TEA_PUBLIC_TCL_HEADERS
|
|
TEA_CONFIG_CFLAGS
|
|
TEA_ENABLE_SYMBOLS
|
|
TEA_MAKE_LIB
|
|
TEA_ENABLE_SHARED
|
|
|
|
# Perform substitutions from the Tcl configuration
|
|
AC_SUBST(TCL_CC)
|
|
AC_SUBST(TCL_INCLUDE_SPEC)
|
|
AC_SUBST(TCL_SHLIB_CFLAGS)
|
|
AC_SUBST(TCL_SHLIB_LD)
|
|
AC_SUBST(TCL_SHLIB_SUFFIX)
|
|
AC_SUBST(TCL_STUB_LIB_SPEC)
|
|
AC_SUBST(SHLIB_SUFFIX)
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|