加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
configure.ac 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
xuhengbing 提交于 2021-12-15 14:58 . init
AC_INIT([redir], [3.3], [https://github.com/troglobit/redir/issues])
AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
AC_CONFIG_SRCDIR([redir.c])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([Makefile])
AC_PROG_CC
AC_PROG_INSTALL
AC_HEADER_STDC
AC_ARG_ENABLE(compat,
AS_HELP_STRING([--enable-compat], [Enable limited v2.x command line syntax]))
AC_ARG_ENABLE(shaping,
AS_HELP_STRING([--disable-shaping], [Disable traffic shaping support]))
AC_ARG_ENABLE(ftp,
AS_HELP_STRING([--disable-ftp], [Disable FTP redirection support]))
AC_ARG_WITH(libwrap,
AS_HELP_STRING([--with-libwrap=DIR], [use libwrap (rooted in DIR), default: yes]),
[with_libwrap=$withval], [with_libwrap=yes])
AS_IF([test "x$with_libwrap" != "xno"],[
AS_IF([test -d "$with_libwrap"],[
CPPFLAGS="$CPPFLAGS -I${with_libwrap}/include"
LDFLAGS="$LDFLAGS -L${with_libwrap}/"
])
AC_CHECK_LIB(wrap, request_init,, with_libwrap=no)
AC_CHECK_HEADER([tcpd.h],, with_libwrap=no)
])
AS_IF([test "x$enable_compat" = "xyes"], [
AC_DEFINE(COMPAT_OPTIONS, 1, [Enable v2.x command line syntax])])
AS_IF([test "x$enable_shaping" != "xno"], enable_shaping="yes", [
AC_DEFINE(NO_SHAPER, 1, [Disable traffic shaping])])
AS_IF([test "x$enable_ftp" != "xno"], enable_ftp="yes", [
AC_DEFINE(NO_FTP, 1, [Disable FTP support])])
AC_OUTPUT
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化