configure.in
来自「非常好的dns解析软件」· IN 代码 · 共 2,640 行 · 第 1/5 页
IN
2,640 行
AC_CHECK_FUNC(getgrgid_r,,AC_DEFINE(NEED_GETGRGID_R))AC_CHECK_FUNC(getgrent_r,AC_TRY_COMPILE([#include <grp.h>struct group *getgrent_r(struct group *grp, char *buffer, int buflen) {}] ,[return (0);],[GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"GROUP_R_BAD="#define GROUP_R_BAD NULL"GROUP_R_OK="#define GROUP_R_OK gptr"GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"],),GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen"GROUP_R_BAD="#define GROUP_R_BAD NULL"GROUP_R_OK="#define GROUP_R_OK gptr"GROUP_R_RETURN="#define GROUP_R_RETURN struct group *"AC_DEFINE(NEED_GETGRENT_R))AC_SUBST(GROUP_R_ARGS)AC_SUBST(GROUP_R_BAD)AC_SUBST(GROUP_R_OK)AC_SUBST(GROUP_R_RETURN)AC_CHECK_FUNC(endgrent_r,,GROUP_R_END_RESULT="#define GROUP_R_END_RESULT(x) /*empty*/"GROUP_R_END_RETURN="#define GROUP_R_END_RETURN void"GROUP_R_ENT_ARGS="#define GROUP_R_ENT_ARGS void"AC_DEFINE(NEED_ENDGRENT_R))AC_SUBST(GROUP_R_END_RESULT)AC_SUBST(GROUP_R_END_RETURN)AC_SUBST(GROUP_R_ENT_ARGS)AC_CHECK_FUNC(setgrent_r,,GROUP_R_SET_RESULT="#undef GROUP_R_SET_RESULT /*empty*/"GROUP_R_SET_RETURN="#define GROUP_R_SET_RETURN void"AC_DEFINE(NEED_SETGRENT_R))AC_SUBST(GROUP_R_SET_RESULT)AC_SUBST(GROUP_R_SET_RETURN)case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(gethostbyname_r,AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>struct hostent *gethostbyname_r(const char *name, struct hostent *hp, char *buf, int len, int *h_errnop) {}],[return (0);],[HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"HOST_R_BAD="#define HOST_R_BAD NULL"HOST_R_COPY="#define HOST_R_COPY buf, buflen"HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"HOST_R_OK="#define HOST_R_OK hptr"HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"HOST_R_SETANSWER="#undef HOST_R_SETANSWER"HOSTENT_DATA="#undef HOSTENT_DATA"],AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>int gethostbyname_r(const char *name, struct hostent *result, struct hostent_data *hdptr);],,[HOST_R_ARGS="#define HOST_R_ARGS struct hostent_data *hdptr"HOST_R_BAD="#define HOST_R_BAD (-1)"HOST_R_COPY="#define HOST_R_COPY hdptr"HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS HOST_R_ARGS"HOST_R_ERRNO="#undef HOST_R_ERRNO"HOST_R_OK="#define HOST_R_OK 0"HOST_R_RETURN="#define HOST_R_RETURN int"HOST_R_SETANSWER="#undef HOST_R_SETANSWER"HOSTENT_DATA="#define HOSTENT_DATA 1"],AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>extern int gethostbyname_r (const char *, struct hostent *, char *, size_t, struct hostent **, int *);],,[HOST_R_ARGS="#define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop"HOST_R_BAD="#define HOST_R_BAD ERANGE"HOST_R_COPY="#define HOST_R_COPY buf, buflen"HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"HOST_R_OK="#define HOST_R_OK 0"HOST_R_RETURN="#define HOST_R_RETURN int"HOST_R_SETANSWER="#define HOST_R_SETANSWER 1"HOSTENT_DATA="#undef HOSTENT_DATA"],))),HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop"HOST_R_BAD="#define HOST_R_BAD NULL"HOST_R_COPY="#define HOST_R_COPY buf, buflen"HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen"HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno"HOST_R_OK="#define HOST_R_OK hptr"HOST_R_RETURN="#define HOST_R_RETURN struct hostent *"HOST_R_SETANSWER="#undef HOST_R_SETANSWER"HOSTENT_DATA="#undef HOSTENT_DATA")esacAC_SUBST(HOST_R_ARGS)AC_SUBST(HOST_R_BAD)AC_SUBST(HOST_R_COPY)AC_SUBST(HOST_R_COPY_ARGS)AC_SUBST(HOST_R_ERRNO)AC_SUBST(HOST_R_OK)AC_SUBST(HOST_R_RETURN)AC_SUBST(HOST_R_SETANSWER)AC_SUBST(HOSTENT_DATA)case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(endhostent_r,AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>int endhostent_r(struct hostent_data *buffer);], ,HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) return (x)"HOST_R_END_RETURN="#define HOST_R_END_RETURN int"HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr",AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>extern void endhostent_r(struct hostent_data *ht_data);],[],[HOST_R_END_RESULT="#define HOST_R_END_RESULT(x)"HOST_R_END_RETURN="#define HOST_R_END_RETURN void"HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>extern void endhostent_r(void);],[],[HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"HOST_R_END_RETURN="#define HOST_R_END_RETURN void"HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/"],))),HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/"HOST_R_END_RETURN="#define HOST_R_END_RETURN void"HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/")esac;AC_SUBST(HOST_R_END_RESULT)AC_SUBST(HOST_R_END_RETURN)AC_SUBST(HOST_R_ENT_ARGS)case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(sethostent_r,AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>extern void sethostent_r(int flag, struct hostent_data *ht_data);],[],[HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT /*empty*/"HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>extern int sethostent_r(int flag, struct hostent_data *ht_data);],[],[HOST_R_SET_RESULT="#define HOST_R_SET_RESULT 0"HOST_R_SET_RETURN="#define HOST_R_SET_RETURN int"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>void sethostent_r (int);],[],[HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void"],))),HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT"HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void")esacAC_SUBST(HOST_R_SET_RESULT)AC_SUBST(HOST_R_SET_RETURN)AC_MSG_CHECKING(struct passwd element pw_class)AC_TRY_COMPILE([#include <sys/types.h>#include <pwd.h>],[struct passwd *pw; pw->pw_class = "";],AC_MSG_RESULT(yes)AC_DEFINE(HAS_PW_CLASS), AC_MSG_RESULT(no))AC_TRY_COMPILE([#include <sys/types.h>#include <pwd.h>voidsetpwent(void) {}],[return (0);],SETPWENT_VOID="#define SETPWENT_VOID 1",SETPWENT_VOID="#undef SETPWENT_VOID")AC_SUBST(SETPWENT_VOID)AC_TRY_COMPILE([#include <sys/types.h>#include <grp.h>voidsetgrent(void) {}],[return (0);],SETGRENT_VOID="#define SETGRENT_VOID 1",SETGRENT_VOID="#undef SETGRENT_VOID")AC_SUBST(SETGRENT_VOID)case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(getnetgrent_r,AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>int getnetgrent_r(char **m, char **u, char **d, char *b, int l) {}],[return (0);],[NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"NGR_R_BAD="#define NGR_R_BAD (0)"NGR_R_COPY="#define NGR_R_COPY buf, buflen"NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"NGR_R_OK="#define NGR_R_OK 1"NGR_R_RETURN="#define NGR_R_RETURN int"],AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>int getnetgrent_r(char **m, char **u, char **d, char *b, size_t l) {}],[return (0);],[NGR_R_ARGS="#define NGR_R_ARGS char *buf, size_t buflen"NGR_R_BAD="#define NGR_R_BAD (0)"NGR_R_COPY="#define NGR_R_COPY buf, buflen"NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"NGR_R_OK="#define NGR_R_OK 1"NGR_R_RETURN="#define NGR_R_RETURN int"],AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>extern int getnetgrent_r( char **, char **, char **, void **);],[return (0);],[NGR_R_ARGS="#define NGR_R_ARGS void **buf"NGR_R_BAD="#define NGR_R_BAD (0)"NGR_R_COPY="#define NGR_R_COPY buf"NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"NGR_R_OK="#define NGR_R_OK 1"NGR_R_RETURN="#define NGR_R_RETURN int"NGR_R_PRIVATE="#define NGR_R_PRIVATE 1"],))),NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen"NGR_R_BAD="#define NGR_R_BAD (0)"NGR_R_COPY="#define NGR_R_COPY buf, buflen"NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS"NGR_R_OK="#define NGR_R_OK 1"NGR_R_RETURN="#define NGR_R_RETURN int")esacAC_SUBST(NGR_R_ARGS)AC_SUBST(NGR_R_BAD)AC_SUBST(NGR_R_COPY)AC_SUBST(NGR_R_COPY_ARGS)AC_SUBST(NGR_R_OK)AC_SUBST(NGR_R_RETURN)AC_SUBST(NGR_R_PRIVATE)AC_CHECK_FUNC(endnetgrent_r,AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>void endnetgrent_r(void **ptr);],[return (0);],[NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /* empty */"NGR_R_END_RETURN="#define NGR_R_END_RETURN void"NGR_R_ENT_ARGS="#define NGR_R_ENT_ARGS NGR_R_ARGS"],[NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) return (x)"NGR_R_END_RETURN="#define NGR_R_END_RETURN int"NGR_R_ENT_ARGS="#define NGR_R_ENT_ARGS NGR_R_ARGS"]),NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /*empty*/"NGR_R_END_RETURN="#define NGR_R_END_RETURN void"NGR_R_ENT_ARGS="#undef NGR_R_ENT_ARGS /*empty*/"AC_DEFINE(NEED_ENDNETGRENT_R))AC_SUBST(NGR_R_END_RESULT)AC_SUBST(NGR_R_END_RETURN)AC_SUBST(NGR_R_ENT_ARGS)AC_CHECK_FUNC(setnetgrent_r,[case "$host" in*bsdi*) NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/" NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void" ;;*) NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK" NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int" ;;esac],NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/"NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void")AC_SUBST(NGR_R_SET_RESULT)AC_SUBST(NGR_R_SET_RETURN)AC_CHECK_FUNC(innetgr_r,,AC_DEFINE(NEED_INNETGR_R))case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(getprotoent_r,AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>struct protoent *getprotoent_r(struct protoent *result, char *buffer, int buflen) {}],[return (0);],[PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"PROTO_R_BAD="#define PROTO_R_BAD NULL"PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"PROTO_R_OK="#define PROTO_R_OK pptr"PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"PROTOENT_DATA="#undef PROTOENT_DATA"],AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>int getprotoent_r (struct protoent *, char *, size_t, struct protoent **);],[return (0);],[PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp"PROTO_R_BAD="#define PROTO_R_BAD ERANGE"PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS char *buf, size_t buflen"PROTO_R_OK="#define PROTO_R_OK 0"PROTO_R_SETANSWER="#define PROTO_R_SETANSWER 1"PROTO_R_RETURN="#define PROTO_R_RETURN int"PROTOENT_DATA="#undef PROTOENT_DATA"],AC_TRY_COMPILE([#undef __USE_MISC#define __USE_MISC#include <netdb.h>int getprotoent_r (struct protoent *, struct protoent_data *prot_data);],[return (0);],[PROTO_R_ARGS="#define PROTO_R_ARGS struct protoent_data *prot_data"PROTO_R_BAD="#define PROTO_R_BAD (-1)"PROTO_R_COPY="#define PROTO_R_COPY prot_data"PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS struct protoent_data *pdptr"PROTO_R_OK="#define PROTO_R_OK 0"PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"PROTO_R_RETURN="#define PROTO_R_RETURN int"PROTOENT_DATA="#define PROTOENT_DATA 1"],))),PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen"PROTO_R_BAD="#define PROTO_R_BAD NULL"PROTO_R_COPY="#define PROTO_R_COPY buf, buflen"PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS"PROTO_R_OK="#define PROTO_R_OK pptr"PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER"PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *"PROTOENT_DATA="#undef PROTOENT_DATA");;esacAC_SUBST(PROTO_R_ARGS)AC_SUBST(PROTO_R_BAD)AC_SUBST(PROTO_R_COPY)AC_SUBST(PROTO_R_COPY_ARGS)AC_SUBST(PROTO_R_OK)AC_SUBST(PROTO_R_SETANSWER)AC_SUBST(PROTO_R_RETURN)AC_SUBST(PROTOENT_DATA)case $host inia64-hp-hpux11.*);;*)AC_CHECK_FUNC(endprotoent_r,AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC#include <netdb.h>void endprotoent_r(void);],,[PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/"PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void"PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS"PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED"],AC_TRY_COMPILE([#undef _REENTRANT#define _REENTRANT#undef __USE_MISC#define __USE_MISC
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?