/
githubmirror
/
which
Обзор
Документация
Войти
/
githubmirror
/
which
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
configure.ac
57 строк
1 KB
Mitch Capper
fix xmalloc var test
13 авг 2023, 00:07
13 авг 2023, 00:07
0f6e322
Код
Авторство
О чём код?
# Process this file with autoconf to produce a configure script. AC_INIT([which],[2.40]) AC_CONFIG_SRCDIR(which.c) AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE AC_CONFIG_HEADERS(config.h) AM_MAINTAINER_MODE # Because we use cwautomacros. CW_AUTOMACROS which_cv_iberty=yes AC_ARG_ENABLE(iberty, [ --disable-iberty do not try to find and use the iberty library], which_cv_iberty=$enableval) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_LANG([C]) AC_USE_SYSTEM_EXTENSIONS # Checks for libraries. if test "$which_cv_iberty" = yes ; then AC_CHECK_LIB(iberty, xmalloc) fi # Checks for header files. AC_CHECK_INCLUDES_DEFAULT AC_PROG_EGREP AC_CHECK_HEADERS(unistd.h string.h libiberty.h) AC_HEADER_STAT # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T # Checks for library functions. AC_TYPE_GETGROUPS AC_CHECK_FUNCS(strchr memcpy getopt_long getcwd getwd sysconf getgroups eaccess) if test "$ac_cv_lib_iberty_xmalloc" = no \ -o "$which_cv_iberty" = no ; then AC_DEFINE([NEED_XMALLOC], 1, [Define if you need xmalloc().]) fi # Additional stuff needed for the tilde directory AC_CHECK_PROG(AR, ar, ar, ar) AC_PROG_RANLIB AC_CHECK_HEADERS(stdlib.h memory.h pwd.h strings.h) AC_CHECK_FUNCS(getpwent getpwnam getpwuid) BASH_CHECK_GETPW_FUNCS # Generate output files. AC_CONFIG_FILES([Makefile maintMakefile tilde/Makefile]) AC_OUTPUT