⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 MC Linux/Unix 终端下文件管理器
💻 IN
📖 第 1 页 / 共 2 页
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(include/includes.h)AC_PREREQ(2.52)AC_CONFIG_HEADER(include/config.h)AC_CONFIG_AUX_DIR(../../config)# we want to be compatibe with older versions of SambaAC_PREFIX_DEFAULT(/usr/local/samba)AC_SYS_LARGEFILEdnl Unique-to-Samba variables we'll be playing with.AC_SUBST(SHELL)AC_SUBST(MPROGS)AC_SUBST(LDSHFLAGS)AC_SUBST(HOST_OS)AC_SUBST(WRAP)AC_SUBST(WRAP32)# compile with optimisation and without debugging by defaultCFLAGS=${CFLAGS-"-O"}dnl Checks for programs.AC_PROG_CCAC_PROG_INSTALLAC_PROG_AWKAC_CHECK_TOOL(AR, ar, ar)dnl Check if C compiler understands -c and -o at the same timeAC_PROG_CC_C_Oif eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then      BROKEN_CC=else      BROKEN_CC=#fiAC_SUBST(BROKEN_CC)AC_CANONICAL_HOSTAC_VALIDATE_CACHE_SYSTEM_TYPESAMBA_MAINTAINER_MODEAC_INLINEAC_HEADER_STDCAC_HEADER_DIRENTAC_HEADER_TIMEAC_HEADER_SYS_WAITAC_CHECK_HEADERS(arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h)AC_CHECK_HEADERS(unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h)AC_CHECK_HEADERS(compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h)AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h)AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h)AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)AC_CHECK_HEADERS(sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)AC_CHECK_HEADERS(netinet/tcp.h netinet/in_systm.h netinet/in_ip.h)AC_CHECK_HEADERS(sys/security.h security/pam_appl.h)AC_CHECK_HEADERS(stropts.h poll.h sys/capability.h syscall.h sys/syscall.h)AC_CHECK_HEADERS(sys/acl.h sys/cdefs.h glob.h)AC_CHECK_SIZEOF(int)AC_CHECK_SIZEOF(long)AC_CHECK_SIZEOF(short)AC_CHECK_SIZEOF(off_t)AC_CHECK_SIZEOF(ino_t)AC_C_CONSTAC_C_INLINEAC_C_BIGENDIANAC_C_CHAR_UNSIGNEDAC_TYPE_SIGNALAC_TYPE_UID_TAC_TYPE_MODE_TAC_TYPE_OFF_TAC_TYPE_SIZE_TAC_TYPE_PID_TAC_STRUCT_ST_RDEVAC_CHECK_TYPE(ino_t,unsigned)AC_CHECK_TYPE(loff_t,off_t)AC_CHECK_TYPE(offset_t,off_t)AC_CHECK_TYPE(ssize_t, int)# we need libdl for PAM and the new VFS codeAC_CHECK_LIB(dl,main)AC_CACHE_CHECK([for errno in errno.h],samba_cv_errno, [    AC_TRY_COMPILE([#include <errno.h>],[int i = errno],	samba_cv_errno=yes,samba_cv_have_errno=no)])if test x"$samba_cv_errno" = x"yes"; then   AC_DEFINE(HAVE_ERRNO_DECL, 1, [Define if errno is declared])fi# stupid glibc has the functions but no declaration. grrrr.AC_CACHE_CHECK([for crypt declaration],samba_cv_have_crypt_decl,[    AC_TRY_COMPILE([#include <unistd.h>],[int i = (int)crypt],        samba_cv_have_crypt_decl=yes,samba_cv_have_crypt_decl=no)])if test x"$samba_cv_have_crypt_decl" = x"yes"; then    AC_DEFINE(HAVE_CRYPT_DECL, 1, [Define if crypt() is declared])fiAC_FUNC_MEMCMP################################################ test for where we get crypt() fromAC_CHECK_FUNCS(crypt)if test x"$ac_cv_func_crypt" = x"no"; then    AC_CHECK_LIB(crypt, crypt, [LIBS="$LIBS -lcrypt";	AC_DEFINE(HAVE_CRYPT)])fi# The following test taken from the cvs sources# If we can't find connect, try looking in -lsocket, -lnsl, and -linet.# The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has# libsocket.so which has a bad implementation of gethostbyname (it# only looks in /etc/hosts), so we only look for -lsocket if we need# it.AC_CHECK_FUNCS(connect)if test x"$ac_cv_func_connect" = x"no"; then    case "$LIBS" in    *-lnsl*) ;;    *) AC_CHECK_LIB(nsl_s, printf) ;;    esac    case "$LIBS" in    *-lnsl*) ;;    *) AC_CHECK_LIB(nsl, printf) ;;    esac    case "$LIBS" in    *-lsocket*) ;;    *) AC_CHECK_LIB(socket, connect) ;;    esac    case "$LIBS" in    *-linet*) ;;    *) AC_CHECK_LIB(inet, connect) ;;    esac    dnl We can't just call AC_CHECK_FUNCS(connect) here, because the value    dnl has been cached.    if test x"$ac_cv_lib_socket_connect" = x"yes" ||        test x"$ac_cv_lib_inet_connect" = x"yes"; then        # ac_cv_func_connect=yes        # don't!  it would cause AC_CHECK_FUNC to succeed next time configure is run        AC_DEFINE(HAVE_CONNECT)    fifiAC_CHECK_FUNCS(waitpid getcwd strdup strtoul strerror chown chmod)AC_CHECK_FUNCS(fstat strchr utime utimes getrlimit fsync bzero memset)AC_CHECK_FUNCS(memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid)AC_CHECK_FUNCS(strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent)AC_CHECK_FUNCS(initgroups select rdchk getgrnam pathconf)AC_CHECK_FUNCS(setpriv setgidx setuidx setgroups mktime rename ftruncate)AC_CHECK_FUNCS(grantpt dup2 yp_get_default_domain getpwanam)AC_CHECK_FUNCS(srandom random srand rand setenv usleep strcasecmp)AC_CHECK_FUNCS(getdents)AC_CHECK_FUNCS(llseek)## If no strcasecmp, check for it in some known places# It is in -lresolv on ReliantUNIX and UnixWare#   -lresolve *must* follow -lnsl for name resolution to work properly#if test x$ac_cv_func_strcasecmp = xno ; then	AC_CHECK_LIB(resolv,strcasecmp,[LIBS="$LIBS -lresolv"]		AC_DEFINE(HAVE_STRCASECMP))fi## Check for the functions putprpwnam, set_auth_parameters,# getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity# Needed for OSF1 and HPUX.#AC_LIBTESTFUNC(security, putprpwnam)AC_LIBTESTFUNC(sec, putprpwnam)AC_LIBTESTFUNC(security, set_auth_parameters)AC_LIBTESTFUNC(sec, set_auth_parameters)AC_LIBTESTFUNC(security, getspnam)AC_LIBTESTFUNC(sec, getspnam)AC_LIBTESTFUNC(security, bigcrypt)AC_LIBTESTFUNC(sec, bigcrypt)AC_LIBTESTFUNC(security, getprpwnam)AC_LIBTESTFUNC(sec, getprpwnam)# this bit needs to be modified for each OS that is suported by# smbwrapper. You need to specify how to created a shared library and# how to compile C code to produce PIC object files# these are the defaults, good for lots of systemsHOST_OS="$host_os"LDSHFLAGS="-shared"# and these are for particular systemscase "$host_os" in		*linux*)   AC_DEFINE(LINUX, 1, [Define on Linux]);;		*solaris*) AC_DEFINE(SUNOS5, 1, [Define on SunOS 5 (Solaris)])					LDSHFLAGS="-G"		;;		*sunos*) AC_DEFINE(SUNOS4, 1, [Define on SunOS 4])					LDSHFLAGS=""		;;		*bsd*) LDSHFLAGS="-shared -Bshareable"		;;		*irix*) AC_DEFINE(IRIX, 1, [Define on IRIX])			case "$host_os" in			*irix6*) AC_DEFINE(IRIX6, 1, [Define on IRIX 6])			;;			esac			ATTEMPT_WRAP32_BUILD=yes		;;		*aix*) AC_DEFINE(AIX, 1, [Define on AIX]);;		*hpux*) AC_DEFINE(HPUX, 1, [Define on HP-UX]);;		*qnx*) AC_DEFINE(QNX, 1, [Define on QNX]);;		*osf*) AC_DEFINE(OSF1, 1, [Define on OSF1]);;		*sco*) AC_DEFINE(SCO, 1, [Define on SCO]);;		*next2*) AC_DEFINE(NEXT2, 1, [Define on NeXT 2]);;		*dgux*) AC_CHECK_PROG( ROFF, groff, [groff -etpsR -Tascii -man]);;		*sysv4*)			case "$host" in				*-univel-*)     if [ test "$GCC" != yes ]; then									AC_DEFINE(HAVE_MEMSET)								fi								LDSHFLAGS="-G"				;;			esac			;;		*sysv5*)			if [ test "$GCC" != yes ]; then				AC_DEFINE(HAVE_MEMSET)			fi			LDSHFLAGS="-G"			;;esac################AC_CACHE_CHECK([for long long],samba_cv_have_longlong,[AC_TRY_RUN([#include <stdio.h>main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }],samba_cv_have_longlong=yes,samba_cv_have_longlong=no,samba_cv_have_longlong=cross)])if test x"$samba_cv_have_longlong" = x"yes"; then    AC_DEFINE(HAVE_LONGLONG, 1, [Define if long long is usable])fiAC_CACHE_CHECK([for sin_len in sock],samba_cv_HAVE_SOCK_SIN_LEN,[AC_TRY_COMPILE([#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>],[struct sockaddr_in sock; sock.sin_len = sizeof(sock);],samba_cv_HAVE_SOCK_SIN_LEN=yes,samba_cv_HAVE_SOCK_SIN_LEN=no)])if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then    AC_DEFINE(HAVE_SOCK_SIN_LEN, 1, [Define if struct sockaddr_in has sin_len field])fiAC_CACHE_CHECK([for __FILE__ macro],samba_cv_HAVE_FILE_MACRO,[AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FILE__);],samba_cv_HAVE_FILE_MACRO=yes,samba_cv_HAVE_FILE_MACRO=no)])if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then    AC_DEFINE(HAVE_FILE_MACRO, 1, [Define if __FILE__ macro is supported])fiAC_CACHE_CHECK([for __FUNCTION__ macro],samba_cv_HAVE_FUNCTION_MACRO,[AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FUNCTION__);],samba_cv_HAVE_FUNCTION_MACRO=yes,samba_cv_HAVE_FUNCTION_MACRO=no)])if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then    AC_DEFINE(HAVE_FUNCTION_MACRO, 1, [Define if __FUNCTION__ macro is supported])fiAC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[AC_TRY_RUN([#include <sys/time.h>#include <unistd.h>main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],           samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=cross)])if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then    AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define if gettimeofday takes tz argument])fiAC_CACHE_CHECK([for broken readdir],samba_cv_HAVE_BROKEN_READDIR,[AC_TRY_RUN([#include <sys/types.h>#include <dirent.h>main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&di->d_name[0] == 0) exit(0); exit(1);} ],samba_cv_HAVE_BROKEN_READDIR=yes,samba_cv_HAVE_BROKEN_READDIR=no,samba_cv_HAVE_BROKEN_READDIR=cross)])if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then    AC_DEFINE(HAVE_BROKEN_READDIR, 1, [Define if readdir() is broken])fiAC_CACHE_CHECK([for kernel oplock type definitions],samba_cv_HAVE_KERNEL_OPLOCKS,[AC_TRY_COMPILE([#include <sys/types.h>#include <fcntl.h>],[oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;],samba_cv_HAVE_KERNEL_OPLOCKS=yes,samba_cv_HAVE_KERNEL_OPLOCKS=no)])if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then    AC_DEFINE(HAVE_KERNEL_OPLOCKS, 1, [Define to use kernel oplock capabilities])fiAC_CACHE_CHECK([for irix specific capabilities],samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES,[AC_TRY_RUN([#include <sys/types.h>#include <sys/capability.h>main() { cap_t cap;

⌨️ 快捷键说明

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