📄 configure.in
字号:
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
dnl Make sure that we're in the right directory by looking for ipgrab.c
AC_INIT(../main/ipgrab.c)
dnl check for install program
AC_PROG_INSTALL
dnl get host name and system
AC_CANONICAL_SYSTEM
dnl Checks for C compiler and make
AC_PROG_CC
dnl check for all libpcap stuff
AC_CHECK_HEADER(net/bpf.h,, AC_MSG_ERROR(Header file net/bpf.h not found.))
AC_CHECK_HEADER(pcap.h,, AC_MSG_ERROR(Header file pcap.h not found.))
AC_CHECK_LIB(pcap, main,,AC_MSG_ERROR(libpcap not found))
dnl check for socket libraries
AC_CHECK_LIB(nsl, main)
AC_CHECK_LIB(socket, main)
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/types.h ctype.h stdlib.h unistd.h getopt.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_BIGENDIAN dnl You'll get a warning from autoconf
AC_TYPE_SIZE_T
AC_CHECK_TYPE(u_int8_t, unsigned char)
AC_CHECK_TYPE(int16_t, short)
AC_CHECK_TYPE(u_int16_t, unsigned short)
AC_CHECK_TYPE(int32_t, int)
AC_CHECK_TYPE(u_int32_t, unsigned int)
dnl Checks for library functions.
AC_CHECK_FUNCS(strdup strerror setlinebuf)
AC_CHECK_FUNC(getopt_long, [GETOPT=""], [GETOPT="../obj/getopt.o ../obj/getopt_internal.o"])
AC_SUBST(GETOPT)
dnl Define DEBUG for debugging. Comment this out to turn it off
dnl AC_DEFINE(DEBUG)
dnl set up config.h
AC_CONFIG_HEADER(config.h)
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
dnl Create Makefile from Makefile.in
AC_OUTPUT(Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -