configure.in

来自「非常好的dns解析软件」· IN 代码 · 共 66 行

IN
66
字号
dnl Process this file with autoconf to produce a configure script.AC_RELEASE("$Id: configure.in,v 1.1.4.1 2005/04/01 06:17:37 marka Exp $")AC_INIT(query-loc.c)dnl Checks for programs.AC_PROG_CCif test "$GCC" = "yes"; then	CFLAGS="${CFLAGS} -Wall"fiAC_PROG_INSTALLdnl Checks for libraries.AC_CHECK_LIB(resolv, res_query)dnl Checks for header files.AC_HEADER_STDCAC_CONFIG_HEADER(config.h)AC_CHECK_HEADER(resolv.h, , AC_MSG_ERROR("No headers for name service applications"))AC_CHECK_HEADER(arpa/nameser.h, , AC_MSG_ERROR("No headers for name service applications"))AC_CHECK_HEADER(sys/time.h, , AC_MSG_ERROR("Mandatory header missing on your system"))AC_CHECK_HEADER(unistd.h, , AC_MSG_ERROR("Mandatory header missing on your system"))dnl This one is only useful for Solaris?AC_MSG_CHECKING(if libnsl is mandatory)AC_TRY_LINK([#include <sys/types.h>             #include <netinet/in.h>             #include <arpa/nameser.h>             #include <resolv.h>             union             {                HEADER hdr;	                u_char buf[4096]; /* With RFC 2671, otherwise 512 is enough */             }             response;             char *domain;             int requested_type;	], 	[res_query(domain,		  C_IN,				  requested_type,			  (u_char *) & response,			  sizeof (response)) ], dnl	[AC_MSG_RESULT(no)], dnl	[AC_MSG_RESULT(yes); LIBS="${LIBS} -lnsl"]) dnl Check for the loc_ntoa macro/functionAC_MSG_CHECKING(loc_ntoa)AC_TRY_LINK([#include <resolv.h>], dnl	[u_char *cp; char *result; loc_ntoa(cp, result)], dnl	[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_LOC_NTOA)], dnl	[AC_MSG_RESULT([no, using the alternative]); LOC_NTOA=loc_ntoa.o]) AC_SUBST(LOC_NTOA)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_CHECK_SIZEOF(long)AC_CHECK_SIZEOF(int)AC_CHECK_SIZEOF(short)AC_CHECK_SIZEOF(char)dnl Misc.AC_OUTPUT(Makefile)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?