mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
major autoconf clean-up
fix problems in builds with srcdir!=builddir (This used to be commit 1ffc3b807a3f80644c974b454ff5e6f68e89b546)
This commit is contained in:
parent
81babe9b0d
commit
e649750cb4
@ -19,6 +19,8 @@ INSTALLCMD=@INSTALL@
|
|||||||
VPATH=@srcdir@
|
VPATH=@srcdir@
|
||||||
srcdir=@srcdir@
|
srcdir=@srcdir@
|
||||||
SHELL=/bin/sh
|
SHELL=/bin/sh
|
||||||
|
AUTOCONF=autoconf
|
||||||
|
AUTOHEADER=autoheader
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
@ -65,7 +67,7 @@ SMBRUN = $(BINDIR)/smbrun
|
|||||||
|
|
||||||
|
|
||||||
PASSWD_FLAGS = -DSMB_PASSWD=\"$(SMB_PASSWD)\" -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\"
|
PASSWD_FLAGS = -DSMB_PASSWD=\"$(SMB_PASSWD)\" -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\"
|
||||||
FLAGS1 = $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/ubiqx -DSMBLOGFILE=\"$(SMBLOGFILE)\" -DNMBLOGFILE=\"$(NMBLOGFILE)\"
|
FLAGS1 = $(CFLAGS) -Iinclude -I$(srcdir)/include -I$(srcdir)/ubiqx -DSMBLOGFILE=\"$(SMBLOGFILE)\" -DNMBLOGFILE=\"$(NMBLOGFILE)\"
|
||||||
FLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\"
|
FLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\"
|
||||||
FLAGS3 = -DSWATDIR=\"$(SWATDIR)\" -DSBINDIR=\"$(SBINDIR)\" -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\"
|
FLAGS3 = -DSWATDIR=\"$(SWATDIR)\" -DSBINDIR=\"$(SBINDIR)\" -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\" -DCODEPAGEDIR=\"$(CODEPAGEDIR)\"
|
||||||
FLAGS4 = -DDRIVERFILE=\"$(DRIVERFILE)\"
|
FLAGS4 = -DDRIVERFILE=\"$(DRIVERFILE)\"
|
||||||
@ -260,17 +262,21 @@ bin/smbtorture: $(SMBTORTURE_OBJ)
|
|||||||
|
|
||||||
install: installbin installman installscripts installcp installswat
|
install: installbin installman installscripts installcp installswat
|
||||||
|
|
||||||
installbin: all
|
installdirs:
|
||||||
|
$(SHELL) $(srcdir)/install-sh -d -m $(INSTALLPERMS) \
|
||||||
|
$(BASEDIR) $(SBINDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(CODEPAGEDIR)
|
||||||
|
|
||||||
|
installbin: all installdirs
|
||||||
@$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)
|
@$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(SPROGS)
|
||||||
@$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS)
|
@$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS)
|
||||||
|
|
||||||
installscripts:
|
installscripts: installdirs
|
||||||
@$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
|
@$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS) $(BINDIR) $(SCRIPTS)
|
||||||
|
|
||||||
installcp:
|
installcp: installdirs
|
||||||
@$(SHELL) $(srcdir)/script/installcp.sh $(LIBDIR) $(CODEPAGEDIR) $(BINDIR) $(CODEPAGELIST)
|
@$(SHELL) $(srcdir)/script/installcp.sh $(srcdir) $(LIBDIR) $(CODEPAGEDIR) $(BINDIR) $(CODEPAGELIST)
|
||||||
|
|
||||||
installswat:
|
installswat: installdirs
|
||||||
@$(SHELL) $(srcdir)/script/installswat.sh $(SWATDIR) $(srcdir)
|
@$(SHELL) $(srcdir)/script/installswat.sh $(SWATDIR) $(srcdir)
|
||||||
|
|
||||||
# revert to the previously installed version
|
# revert to the previously installed version
|
||||||
@ -297,7 +303,7 @@ uninstallcp:
|
|||||||
@$(SHELL) $(srcdir)/script/uninstallcp.sh $(CODEPAGEDIR) $(CODEPAGELIST)
|
@$(SHELL) $(srcdir)/script/uninstallcp.sh $(CODEPAGEDIR) $(CODEPAGELIST)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f core */*.o */*~ *~ config.cache $(PROGS) $(SPROGS)
|
-rm -f core */*~ *~ */*.o
|
||||||
|
|
||||||
proto:
|
proto:
|
||||||
@echo rebuilding include/proto.h
|
@echo rebuilding include/proto.h
|
||||||
@ -310,6 +316,11 @@ ctags:
|
|||||||
ctags `find . -name "*.[ch]"`
|
ctags `find . -name "*.[ch]"`
|
||||||
|
|
||||||
realclean: clean
|
realclean: clean
|
||||||
|
-rm -f config.log $(PROGS) $(SPROGS)
|
||||||
|
|
||||||
|
distclean: realclean
|
||||||
|
-rm -f include/config.h include/stamp-h */dummy Makefile
|
||||||
|
-rm -f config.status config.cache
|
||||||
|
|
||||||
# this target is really just for my use. It only works on a limited
|
# this target is really just for my use. It only works on a limited
|
||||||
# range of machines and is used to produce a list of potentially
|
# range of machines and is used to produce a list of potentially
|
||||||
@ -318,3 +329,24 @@ finddead:
|
|||||||
nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
|
nm */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
|
||||||
nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
|
nm */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
|
||||||
comm -13 nmused.txt nmfns.txt
|
comm -13 nmused.txt nmfns.txt
|
||||||
|
|
||||||
|
# when configure.in is updated, reconfigure
|
||||||
|
$(srcdir)/configure: $(srcdir)/configure.in
|
||||||
|
cd $(srcdir) && $(AUTOCONF)
|
||||||
|
config.status: $(srcdir)/configure
|
||||||
|
$(SHELL) ./config.status --recheck
|
||||||
|
Makefile: $(srcdir)/Makefile.in config.status
|
||||||
|
CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||||
|
|
||||||
|
# note that nothing depends on config.h, so will probably be rebuilt
|
||||||
|
# only when explicitly requested
|
||||||
|
include/config.h: include/stamp-h
|
||||||
|
@:
|
||||||
|
include/stamp-h: $(srcdir)/include/config.h.in config.status
|
||||||
|
CONFIG_FILES= CONFIG_HEADERS=include/config.h $(SHELL) ./config.status
|
||||||
|
@ls -l config.status $(srcdir)/include/config.h.in > include/stamp-h
|
||||||
|
$(srcdir)/include/config.h.in: $(srcdir)/include/stamp-h.in
|
||||||
|
@:
|
||||||
|
$(srcdir)/include/stamp-h.in: $(srcdir)/acconfig.h $(srcdir)/configure.in
|
||||||
|
cd $(srcdir) && $(AUTOHEADER)
|
||||||
|
@cd $(srcdir) && ls -l acconfig.h configure.in > include/stamp-h.in
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#undef HAVE_REMSH
|
#undef HAVE_REMSH
|
||||||
#undef HAVE_UNSIGNED_CHAR
|
#undef HAVE_UNSIGNED_CHAR
|
||||||
#undef HAVE_UTIMBUF
|
#undef HAVE_UTIMBUF
|
||||||
|
#undef ssize_t
|
||||||
#undef ino_t
|
#undef ino_t
|
||||||
#undef ssize_t
|
#undef ssize_t
|
||||||
#undef HAVE_CONNECT
|
#undef HAVE_CONNECT
|
||||||
@ -38,6 +39,7 @@
|
|||||||
#undef STAT_STATFS3_OSF1
|
#undef STAT_STATFS3_OSF1
|
||||||
#undef STAT_STATFS4
|
#undef STAT_STATFS4
|
||||||
#undef STAT_STATVFS
|
#undef STAT_STATVFS
|
||||||
|
#undef STAT_STATVFS64
|
||||||
#undef HAVE_NETMASK_IFREQ
|
#undef HAVE_NETMASK_IFREQ
|
||||||
#undef HAVE_NETMASK_AIX
|
#undef HAVE_NETMASK_AIX
|
||||||
#undef HAVE_CRYPT
|
#undef HAVE_CRYPT
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
1425
source3/configure
vendored
1425
source3/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -39,9 +39,9 @@ AC_CHECK_HEADERS(shadow.h netinet/tcp.h sys/security.h security/pam_appl.h)
|
|||||||
AC_CHECK_HEADERS(stropts.h poll.h readline.h history.h readline/readline.h)
|
AC_CHECK_HEADERS(stropts.h poll.h readline.h history.h readline/readline.h)
|
||||||
AC_CHECK_HEADERS(readline/history.h)
|
AC_CHECK_HEADERS(readline/history.h)
|
||||||
|
|
||||||
AC_CHECK_SIZEOF(int)
|
AC_CHECK_SIZEOF(int,cross)
|
||||||
AC_CHECK_SIZEOF(long)
|
AC_CHECK_SIZEOF(long,cross)
|
||||||
AC_CHECK_SIZEOF(short)
|
AC_CHECK_SIZEOF(short,cross)
|
||||||
|
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
@ -58,46 +58,39 @@ AC_STRUCT_ST_RDEV
|
|||||||
AC_CHECK_TYPE(ino_t,unsigned)
|
AC_CHECK_TYPE(ino_t,unsigned)
|
||||||
AC_CHECK_TYPE(ssize_t, int)
|
AC_CHECK_TYPE(ssize_t, int)
|
||||||
|
|
||||||
echo $ac_n "checking for errno in errno.h... $ac_c"
|
AC_CACHE_CHECK([for errno in errno.h],samba_cv_errno, [
|
||||||
AC_TRY_COMPILE([#include <errno.h>],[int i = errno],
|
AC_TRY_COMPILE([#include <errno.h>],[int i = errno],
|
||||||
echo yes; AC_DEFINE(HAVE_ERRNO_DECL),
|
samba_cv_errno=yes,samba_cv_have_errno_decl=no)])
|
||||||
echo no)
|
if test x"$samba_cv_errno" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_ERRNO_DECL)
|
||||||
|
fi
|
||||||
|
|
||||||
# stupid glibc has the functions but no declaration. grrrr.
|
# stupid glibc has the functions but no declaration. grrrr.
|
||||||
echo $ac_n "checking for setresuid declaration $ac_c"
|
AC_CACHE_CHECK([for setresuid declaration],samba_cv_have_setresuid_decl,[
|
||||||
AC_TRY_COMPILE([#include <unistd.h>],[int i = setresuid],
|
AC_TRY_COMPILE([#include <unistd.h>],[int i = setresuid],
|
||||||
echo yes; AC_DEFINE(HAVE_SETRESUID_DECL),
|
samba_cv_have_setresuid_decl=yes,samba_cv_have_setresuid_decl=no)])
|
||||||
echo no)
|
if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_SETRESUID_DECL)
|
||||||
|
fi
|
||||||
|
|
||||||
# and glibc has setresuid under linux but the function does
|
# and glibc has setresuid under linux but the function does
|
||||||
# nothing until kernel 2.1.44! very dumb.
|
# nothing until kernel 2.1.44! very dumb.
|
||||||
echo $ac_n "checking for real setresuid $ac_c"
|
AC_CACHE_CHECK([for real setresuid],samba_cv_have_setresuid,[
|
||||||
AC_TRY_RUN([#include <errno.h>
|
AC_TRY_RUN([#include <errno.h>
|
||||||
main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}],
|
main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}],
|
||||||
echo yes;AC_DEFINE(HAVE_SETRESUID),
|
samba_cv_have_setresuid=yes,samba_cv_have_setresuid=no,samba_cv_have_setresuid=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_have_setresuid" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_SETRESUID)
|
||||||
|
fi
|
||||||
|
|
||||||
AC_FUNC_MEMCMP
|
AC_FUNC_MEMCMP
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# test for where we get crypt() from
|
# test for where we get crypt() from
|
||||||
if test "$ac_cv_lib_crypt_crypt" = "yes"; then
|
AC_CHECK_FUNCS(crypt)
|
||||||
AC_CHECK_LIB(crypt, crypt)
|
if test x"$ac_cv_func_crypt" = x"no"; then
|
||||||
AC_DEFINE(HAVE_CRYPT)
|
AC_CHECK_LIB(crypt, crypt, [LIBS="$LIBS -lcrypt";
|
||||||
fi
|
AC_DEFINE(HAVE_CRYPT)])
|
||||||
if test "$ac_cv_lib_crypt_crypt" = "no" ||
|
|
||||||
test "$ac_cv_lib_crypt_crypt" = ""; then
|
|
||||||
# look for crypt
|
|
||||||
AC_CHECK_FUNC(crypt, AC_DEFINE(HAVE_CRYPT),
|
|
||||||
[case "$LIBS" in
|
|
||||||
*-lcrypt*) ;;
|
|
||||||
*) AC_CHECK_LIB(crypt, crypt) ;;
|
|
||||||
esac
|
|
||||||
if test "$ac_cv_lib_crypt_crypt" = "yes"; then
|
|
||||||
ac_cv_func_crypt=yes
|
|
||||||
AC_DEFINE(HAVE_CRYPT)
|
|
||||||
fi])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -105,26 +98,15 @@ fi
|
|||||||
# test for where we get pam_authenticate() from
|
# test for where we get pam_authenticate() from
|
||||||
# might need libdl for this to work
|
# might need libdl for this to work
|
||||||
if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
|
if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
|
||||||
AC_HAVE_LIBRARY(dl)
|
AC_CHECK_LIB(dl,main)
|
||||||
fi
|
fi
|
||||||
if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
|
AC_CHECK_FUNCS(pam_authenticate)
|
||||||
AC_CHECK_LIB(pam, pam_authenticate)
|
if test x"$ac_cv_func_pam_authenticate" = x"no"; then
|
||||||
AC_DEFINE(HAVE_PAM_AUTHENTICATE)
|
AC_CHECK_LIB(pam, pam_authenticate, [LIBS="$LIBS -lpam"
|
||||||
fi
|
AC_DEFINE(HAVE_PAM_AUTHENTICATE)])
|
||||||
if test "$ac_cv_lib_pam_pam_authenticate" = "no" ||
|
|
||||||
test "$ac_cv_lib_pam_pam_authenticate" = ""; then
|
|
||||||
# look for pam_authenticate
|
|
||||||
AC_CHECK_FUNC(pam_authenticate, AC_DEFINE(HAVE_PAM_AUTHENTICATE),
|
|
||||||
[case "$LIBS" in
|
|
||||||
*-lpam*) ;;
|
|
||||||
*) AC_CHECK_LIB(pam, pam_authenticate) ;;
|
|
||||||
esac
|
|
||||||
if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
|
|
||||||
ac_cv_func_pam_authenticate=yes
|
|
||||||
AC_DEFINE(HAVE_PAM_AUTHENTICATE)
|
|
||||||
fi])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
###############################################
|
###############################################
|
||||||
# test for where we get readline() from
|
# test for where we get readline() from
|
||||||
if test "$ac_cv_header_readline_h" = "yes" ||
|
if test "$ac_cv_header_readline_h" = "yes" ||
|
||||||
@ -132,36 +114,40 @@ if test "$ac_cv_header_readline_h" = "yes" ||
|
|||||||
AC_CHECK_LIB(readline,readline)
|
AC_CHECK_LIB(readline,readline)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# The following test taken from the cvs sources
|
# The following test taken from the cvs sources
|
||||||
# If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
|
# 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
|
# The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
|
||||||
# libsocket.so which has a bad implementation of gethostbyname (it
|
# libsocket.so which has a bad implementation of gethostbyname (it
|
||||||
# only looks in /etc/hosts), so we only look for -lsocket if we need
|
# only looks in /etc/hosts), so we only look for -lsocket if we need
|
||||||
# it.
|
# it.
|
||||||
AC_CHECK_FUNC(connect, :,
|
AC_CHECK_FUNCS(connect)
|
||||||
[case "$LIBS" in
|
if test x"$ac_cv_func_connect" = x"no"; then
|
||||||
*-lnsl*) ;;
|
case "$LIBS" in
|
||||||
*) AC_CHECK_LIB(nsl_s, printf) ;;
|
*-lnsl*) ;;
|
||||||
esac
|
*) AC_CHECK_LIB(nsl_s, printf) ;;
|
||||||
case "$LIBS" in
|
esac
|
||||||
*-lnsl*) ;;
|
case "$LIBS" in
|
||||||
*) AC_CHECK_LIB(nsl, printf) ;;
|
*-lnsl*) ;;
|
||||||
esac
|
*) AC_CHECK_LIB(nsl, printf) ;;
|
||||||
case "$LIBS" in
|
esac
|
||||||
*-lsocket*) ;;
|
case "$LIBS" in
|
||||||
*) AC_CHECK_LIB(socket, connect) ;;
|
*-lsocket*) ;;
|
||||||
esac
|
*) AC_CHECK_LIB(socket, connect) ;;
|
||||||
case "$LIBS" in
|
esac
|
||||||
*-linet*) ;;
|
case "$LIBS" in
|
||||||
*) AC_CHECK_LIB(inet, connect) ;;
|
*-linet*) ;;
|
||||||
esac
|
*) AC_CHECK_LIB(inet, connect) ;;
|
||||||
dnl We can't just call AC_CHECK_FUNCS(connect) here, because the value
|
esac
|
||||||
dnl has been cached.
|
dnl We can't just call AC_CHECK_FUNCS(connect) here, because the value
|
||||||
if test "$ac_cv_lib_socket_connect" = "yes" ||
|
dnl has been cached.
|
||||||
test "$ac_cv_lib_inet_connect" = "yes"; then
|
if test x"$ac_cv_lib_socket_connect" = x"yes" ||
|
||||||
ac_cv_func_connect=yes
|
test x"$ac_cv_lib_inet_connect" = x"yes"; then
|
||||||
AC_DEFINE(HAVE_CONNECT)
|
# ac_cv_func_connect=yes
|
||||||
fi])
|
# don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
|
||||||
|
AC_DEFINE(HAVE_CONNECT)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
AC_CHECK_FUNCS(waitpid getcwd strdup strerror chown chmod chroot)
|
AC_CHECK_FUNCS(waitpid getcwd strdup strerror chown chmod chroot)
|
||||||
@ -173,116 +159,147 @@ AC_CHECK_FUNCS(setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64)
|
|||||||
AC_CHECK_FUNCS(set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64)
|
AC_CHECK_FUNCS(set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64)
|
||||||
AC_CHECK_FUNCS(fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam)
|
AC_CHECK_FUNCS(fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam)
|
||||||
|
|
||||||
echo $ac_n "checking for long long ... $ac_c"
|
AC_CACHE_CHECK([for long long],samba_cv_have_longlong,[
|
||||||
AC_TRY_RUN([#include <stdio.h>
|
AC_TRY_RUN([#include <stdio.h>
|
||||||
main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }],
|
main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }],
|
||||||
echo yes;AC_DEFINE(HAVE_LONGLONG),
|
samba_cv_have_longlong=yes,samba_cv_have_longlong=no,samba_cv_have_longlong=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_have_longlong" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_LONGLONG)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for 64 bit off_t ... $ac_c"
|
AC_CACHE_CHECK([for 64 bit off_t],samba_cv_SIZEOF_OFF_T,[
|
||||||
AC_TRY_RUN([#include <stdio.h>
|
AC_TRY_RUN([#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
main() { exit((sizeof(off_t) == 8) ? 0 : 1); }],
|
main() { exit((sizeof(off_t) == 8) ? 0 : 1); }],
|
||||||
echo yes;AC_DEFINE(SIZEOF_OFF_T,8),
|
samba_cv_SIZEOF_OFF_T=yes,samba_cv_SIZEOF_OFF_T=no,samba_cv_SIZEOF_OFF_T=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
|
||||||
|
AC_DEFINE(SIZEOF_OFF_T,8)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for off64_t ... $ac_c"
|
AC_CACHE_CHECK([for off64_t],samba_cv_HAVE_OFF64_T,[
|
||||||
AC_TRY_RUN([#include <stdio.h>
|
AC_TRY_RUN([#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }],
|
main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }],
|
||||||
echo yes;AC_DEFINE(HAVE_OFF64_T),
|
samba_cv_HAVE_OFF64_T=yes,samba_cv_HAVE_OFF64_T=no,samba_cv_HAVE_OFF64_T=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_OFF64_T)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for 64 bit ino_t ... $ac_c"
|
AC_CACHE_CHECK([for 64 bit ino_t],samba_cv_SIZEOF_INO_T,[
|
||||||
AC_TRY_RUN([#include <stdio.h>
|
AC_TRY_RUN([#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }],
|
main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }],
|
||||||
echo yes;AC_DEFINE(SIZEOF_INO_T,8),
|
samba_cv_SIZEOF_INO_T=yes,samba_cv_SIZEOF_INO_T=no,samba_cv_SIZEOF_INO_T=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
|
||||||
|
AC_DEFINE(SIZEOF_INO_T,8)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for ino64_t ... $ac_c"
|
AC_CACHE_CHECK([for ino64_t],samba_cv_HAVE_INO64_T,[
|
||||||
AC_TRY_RUN([#include <stdio.h>
|
AC_TRY_RUN([#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }],
|
main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }],
|
||||||
echo yes;AC_DEFINE(HAVE_INO64_T),
|
samba_cv_HAVE_INO64_T=yes,samba_cv_HAVE_INO64_T=no,samba_cv_HAVE_INO64_T=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_INO64_T)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for union semun ... $ac_c"
|
AC_CACHE_CHECK([for union semun],samba_cv_HAVE_UNION_SEMUN,[
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ipc.h>
|
#include <sys/ipc.h>
|
||||||
#include <sys/sem.h>
|
#include <sys/sem.h>
|
||||||
main() { union semun ss; exit(0); }],
|
main() { union semun ss; exit(0); }],
|
||||||
echo yes;AC_DEFINE(HAVE_UNION_SEMUN),
|
samba_cv_HAVE_UNION_SEMUN=yes,samba_cv_HAVE_UNION_SEMUN=no,samba_cv_HAVE_UNION_SEMUN=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_UNION_SEMUN)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for unsigned char ... $ac_c"
|
AC_CACHE_CHECK([for unsigned char],samba_cv_HAVE_UNSIGNED_CHAR,[
|
||||||
AC_TRY_RUN([#include <stdio.h>
|
AC_TRY_RUN([#include <stdio.h>
|
||||||
main() { char c; c=250; exit((c > 0)?0:1); }],
|
main() { char c; c=250; exit((c > 0)?0:1); }],
|
||||||
echo yes;AC_DEFINE(HAVE_UNSIGNED_CHAR),
|
samba_cv_HAVE_UNSIGNED_CHAR=yes,samba_cv_HAVE_UNSIGNED_CHAR=no,samba_cv_HAVE_UNSIGNED_CHAR=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_UNSIGNED_CHAR)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for sin_len in sock ... $ac_c"
|
AC_CACHE_CHECK([for sin_len in sock],samba_cv_HAVE_SOCK_SIN_LEN,[
|
||||||
AC_TRY_COMPILE([#include <sys/types.h>
|
AC_TRY_COMPILE([#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>],
|
#include <netinet/in.h>],
|
||||||
[struct sockaddr_in sock; sock.sin_len = sizeof(sock);],
|
[struct sockaddr_in sock; sock.sin_len = sizeof(sock);],
|
||||||
echo yes;AC_DEFINE(HAVE_SOCK_SIN_LEN),
|
samba_cv_HAVE_SOCK_SIN_LEN=yes,samba_cv_HAVE_SOCK_SIN_LEN=no)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_SOCK_SIN_LEN)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for __FILE__ macro ... $ac_c"
|
AC_CACHE_CHECK([for __FILE__ macro],samba_cv_HAVE_FILE_MACRO,[
|
||||||
AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FILE__);],
|
AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FILE__);],
|
||||||
echo yes;AC_DEFINE(HAVE_FILE_MACRO),
|
samba_cv_HAVE_FILE_MACRO=yes,samba_cv_HAVE_FILE_MACRO=no)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_FILE_MACRO)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for __FUNCTION__ macro ... $ac_c"
|
AC_CACHE_CHECK([for __FUNCTION__ macro],samba_cv_HAVE_FUNCTION_MACRO,[
|
||||||
AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FUNCTION__);],
|
AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FUNCTION__);],
|
||||||
echo yes;AC_DEFINE(HAVE_FUNCTION_MACRO),
|
samba_cv_HAVE_FUNCTION_MACRO=yes,samba_cv_HAVE_FUNCTION_MACRO=no)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_FUNCTION_MACRO)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking if gettimeofday takes tz argument ... $ac_c"
|
AC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
|
main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
|
||||||
echo yes;AC_DEFINE(HAVE_GETTIMEOFDAY_TZ),
|
samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_GETTIMEOFDAY_TZ)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo $ac_n "checking for broken readdir ... $ac_c"
|
AC_CACHE_CHECK([for broken readdir],samba_cv_HAVE_BROKEN_READDIR,[
|
||||||
AC_TRY_RUN([#include <sys/types.h>
|
AC_TRY_RUN([#include <sys/types.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
|
main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
|
||||||
if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
|
if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
|
||||||
di->d_name[0] == 0) exit(0); exit(1);} ],
|
di->d_name[0] == 0) exit(0); exit(1);} ],
|
||||||
echo yes - you are using the broken /usr/ucb/cc;AC_DEFINE(HAVE_BROKEN_READDIR),
|
samba_cv_HAVE_BROKEN_READDIR=yes,samba_cv_HAVE_BROKEN_READDIR=no,samba_cv_HAVE_BROKEN_READDIR=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_BROKEN_READDIR)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for utimbuf ... $ac_c"
|
AC_CACHE_CHECK([for utimbuf],samba_cv_HAVE_UTIMBUF,[
|
||||||
AC_TRY_COMPILE([#include <sys/types.h>
|
AC_TRY_COMPILE([#include <sys/types.h>
|
||||||
#include <utime.h>],
|
#include <utime.h>],
|
||||||
[struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));],
|
[struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));],
|
||||||
echo yes;AC_DEFINE(HAVE_UTIMBUF),
|
samba_cv_HAVE_UTIMBUF=yes,samba_cv_HAVE_UTIMBUF=no,samba_cv_HAVE_UTIMBUF=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_UTIMBUF)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo $ac_n "checking for test routines ... $ac_c"
|
AC_MSG_CHECKING([for test routines])
|
||||||
AC_TRY_RUN([#include "tests/trivial.c"],
|
AC_TRY_RUN([#include "${srcdir-.}/tests/trivial.c"],
|
||||||
echo yes;,
|
AC_MSG_RESULT(yes),
|
||||||
echo ERROR - cant find test code. Aborting config; exit 1)
|
AC_MSG_ERROR([cant find test code. Aborting config]),
|
||||||
|
AC_MSG_WARN([cannot run when cross-compiling]))
|
||||||
|
|
||||||
echo $ac_n "checking for ftruncate extend ... $ac_c"
|
AC_CACHE_CHECK([for ftruncate extend],samba_cv_HAVE_FTRUNCATE_EXTEND,[
|
||||||
AC_TRY_RUN([#include "tests/ftruncate.c"],
|
AC_TRY_RUN([#include "${srcdir-.}/tests/ftruncate.c"],
|
||||||
echo yes;AC_DEFINE(HAVE_FTRUNCATE_EXTEND),
|
samba_cv_HAVE_FTRUNCATE_EXTEND=yes,samba_cv_HAVE_FTRUNCATE_EXTEND=no,samba_cv_HAVE_FTRUNCATE_EXTEND=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_FTRUNCATE_EXTEND)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for broken getgroups ... $ac_c"
|
AC_CACHE_CHECK([for broken getgroups],samba_cv_HAVE_BROKEN_GETGROUPS,[
|
||||||
AC_TRY_RUN([#include "tests/getgroups.c"],
|
AC_TRY_RUN([#include "${srcdir-.}/tests/getgroups.c"],
|
||||||
echo yes;AC_DEFINE(HAVE_BROKEN_GETGROUPS),
|
samba_cv_HAVE_BROKEN_GETGROUPS=yes,samba_cv_HAVE_BROKEN_GETGROUPS=no,samba_cv_HAVE_BROKEN_GETGROUPS=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_BROKEN_GETGROUPS)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo $ac_n "checking for broken inet_ntoa ... $ac_c"
|
AC_CACHE_CHECK([for broken inet_ntoa],samba_cv_REPLACE_INET_NTOA,[
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -292,59 +309,77 @@ main() { struct in_addr ip; ip.s_addr = 0x12345678;
|
|||||||
if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
|
if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
|
||||||
strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
|
strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
|
||||||
exit(1);}],
|
exit(1);}],
|
||||||
echo yes;AC_DEFINE(REPLACE_INET_NTOA),
|
samba_cv_REPLACE_INET_NTOA=yes,samba_cv_REPLACE_INET_NTOA=no,samba_cv_REPLACE_INET_NTOA=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
|
||||||
|
AC_DEFINE(REPLACE_INET_NTOA)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for root ... $ac_c"
|
AC_CACHE_CHECK([for root],samba_cv_HAVE_ROOT,[
|
||||||
AC_TRY_RUN([main() { exit(getuid() != 0); }],
|
AC_TRY_RUN([main() { exit(getuid() != 0); }],
|
||||||
echo yes;AC_DEFINE(HAVE_ROOT),
|
samba_cv_HAVE_ROOT=yes,samba_cv_HAVE_ROOT=no,samba_cv_HAVE_ROOT=cross)])
|
||||||
echo WARNING: running as non-root will disable some tests;)
|
if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_ROOT)
|
||||||
|
else
|
||||||
|
AC_MSG_WARN(running as non-root will disable some tests)
|
||||||
|
fi
|
||||||
|
|
||||||
netmask=no;
|
netmask=no;
|
||||||
echo $ac_n "checking for netmask ifconf ... $ac_c"
|
AC_CACHE_CHECK([for netmask ifconf],samba_cv_HAVE_NETMASK_IFCONF,[
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#define HAVE_NETMASK_IFCONF 1
|
#define HAVE_NETMASK_IFCONF 1
|
||||||
#define AUTOCONF 1
|
#define AUTOCONF 1
|
||||||
#include "lib/netmask.c"],
|
#include "${srcdir-.}/lib/netmask.c"],
|
||||||
echo yes;netmask=yes;AC_DEFINE(HAVE_NETMASK_IFCONF),
|
samba_cv_HAVE_NETMASK_IFCONF=yes,samba_cv_HAVE_NETMASK_IFCONF=no,samba_cv_HAVE_NETMASK_IFCONF=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
|
||||||
|
netmask=yes;AC_DEFINE(HAVE_NETMASK_IFCONF)
|
||||||
|
fi
|
||||||
|
|
||||||
if test $netmask = no; then
|
if test $netmask = no; then
|
||||||
echo $ac_n "checking for netmask ifreq ... $ac_c"
|
AC_CACHE_CHECK([for netmask ifreq],samba_cv_HAVE_NETMASK_IFREQ,[
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#define HAVE_NETMASK_IFREQ 1
|
#define HAVE_NETMASK_IFREQ 1
|
||||||
#define AUTOCONF 1
|
#define AUTOCONF 1
|
||||||
#include "lib/netmask.c"],
|
#include "${srcdir-.}/lib/netmask.c"],
|
||||||
echo yes;netmask=yes;AC_DEFINE(HAVE_NETMASK_IFREQ),
|
samba_cv_HAVE_NETMASK_IFREQ=yes,samba_cv_HAVE_NETMASK_IFREQ=no,samba_cv_HAVE_NETMASK_IFREQ=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
|
||||||
|
netmask=yes;AC_DEFINE(HAVE_NETMASK_IFREQ)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $netmask = no; then
|
if test $netmask = no; then
|
||||||
echo $ac_n "checking for netmask AIX ... $ac_c"
|
AC_CACHE_CHECK([for netmask AIX],samba_cv_HAVE_NETMASK_AIX,[
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#define HAVE_NETMASK_AIX 1
|
#define HAVE_NETMASK_AIX 1
|
||||||
#define AUTOCONF 1
|
#define AUTOCONF 1
|
||||||
#include "lib/netmask.c"],
|
#include "${srcdir-.}/lib/netmask.c"],
|
||||||
echo yes;netmask=yes;AC_DEFINE(HAVE_NETMASK_AIX),
|
samba_cv_HAVE_NETMASK_AIX=yes,samba_cv_HAVE_NETMASK_AIX=no,samba_cv_HAVE_NETMASK_AIX=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
|
||||||
|
netmask=yes;AC_DEFINE(HAVE_NETMASK_AIX)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for trapdoor seteuid ... $ac_c"
|
AC_CACHE_CHECK([for trapdoor seteuid],samba_cv_HAVE_TRAPDOOR_UID,[
|
||||||
AC_TRY_RUN([#include "tests/trapdoor.c"],
|
AC_TRY_RUN([#include "${srcdir-.}/tests/trapdoor.c"],
|
||||||
echo no,
|
samba_cv_HAVE_TRAPDOOR_UID=no,samba_cv_HAVE_TRAPDOOR_UID=yes,:)])
|
||||||
echo yes;AC_DEFINE(HAVE_TRAPDOOR_UID))
|
if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_TRAPDOOR_UID)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for shared mmap ... $ac_c"
|
AC_CACHE_CHECK([for shared mmap],samba_cv_HAVE_SHARED_MMAP,[
|
||||||
AC_TRY_RUN([#include "tests/shared_mmap.c"],
|
AC_TRY_RUN([#include "${srcdir-.}/tests/shared_mmap.c"],
|
||||||
echo yes;AC_DEFINE(HAVE_SHARED_MMAP),
|
samba_cv_HAVE_SHARED_MMAP=yes,samba_cv_HAVE_SHARED_MMAP=no,samba_cv_HAVE_SHARED_MMAP=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_SHARED_MMAP)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for fcntl locking ... $ac_c"
|
AC_CACHE_CHECK([for fcntl locking],samba_cv_HAVE_FCNTL_LOCK,[
|
||||||
AC_TRY_RUN([#include "tests/fcntl_lock.c"],
|
AC_TRY_RUN([#include "${srcdir-.}/tests/fcntl_lock.c"],
|
||||||
echo yes;AC_DEFINE(HAVE_FCNTL_LOCK),
|
samba_cv_HAVE_FCNTL_LOCK=yes,samba_cv_HAVE_FCNTL_LOCK=no,samba_cv_HAVE_FCNTL_LOCK=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_FCNTL_LOCK)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for 64 bit fcntl locking ... $ac_c"
|
AC_CACHE_CHECK([for 64 bit fcntl locking],samba_cv_HAVE_STRUCT_FLOCK64,[
|
||||||
AC_TRY_RUN([
|
AC_TRY_RUN([
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -363,13 +398,17 @@ exit(0);
|
|||||||
exit(1);
|
exit(1);
|
||||||
#endif
|
#endif
|
||||||
}],
|
}],
|
||||||
echo yes;AC_DEFINE(HAVE_STRUCT_FLOCK64),
|
samba_cv_HAVE_STRUCT_FLOCK64=yes,samba_cv_HAVE_STRUCT_FLOCK64=no,samba_cv_HAVE_STRUCT_FLOCK64=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_STRUCT_FLOCK64)
|
||||||
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for sysv ipc ... $ac_c"
|
AC_CACHE_CHECK([for sysv ipc],samba_cv_HAVE_SYSV_IPC,[
|
||||||
AC_TRY_RUN([#include "tests/sysv_ipc.c"],
|
AC_TRY_RUN([#include "${srcdir-.}/tests/sysv_ipc.c"],
|
||||||
echo yes;AC_DEFINE(HAVE_SYSV_IPC),
|
samba_cv_HAVE_SYSV_IPC=yes,samba_cv_HAVE_SYSV_IPC=no,samba_cv_HAVE_SYSV_IPC=cross)])
|
||||||
echo no)
|
if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_SYSV_IPC)
|
||||||
|
fi
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
# check for the AFS filesystem
|
# check for the AFS filesystem
|
||||||
@ -571,7 +610,8 @@ if test $space = no; then
|
|||||||
exit (statfs64 (".", &fsd));
|
exit (statfs64 (".", &fsd));
|
||||||
}],
|
}],
|
||||||
fu_cv_sys_stat_statvfs64=yes,
|
fu_cv_sys_stat_statvfs64=yes,
|
||||||
fu_cv_sys_stat_statvfs64=no)])
|
fu_cv_sys_stat_statvfs64=no,
|
||||||
|
fu_cv_sys_stat_statvfs64=cross)])
|
||||||
if test $fu_cv_sys_stat_statvfs64 = yes; then
|
if test $fu_cv_sys_stat_statvfs64 = yes; then
|
||||||
space=yes
|
space=yes
|
||||||
AC_DEFINE(STAT_STATVFS64)
|
AC_DEFINE(STAT_STATVFS64)
|
||||||
@ -734,12 +774,13 @@ if test $space = no; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "checking configure summary"
|
echo "checking configure summary"
|
||||||
AC_TRY_RUN([#include "tests/summary.c"],
|
AC_TRY_RUN([#include "${srcdir-.}/tests/summary.c"],
|
||||||
echo "configure OK";,
|
echo "configure OK";,
|
||||||
echo ERROR - summary failure. Aborting config; exit 1)
|
AC_MSG_ERROR([summary failure. Aborting config]),:)
|
||||||
|
|
||||||
|
|
||||||
AC_OUTPUT(Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy
|
AC_OUTPUT(Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy
|
||||||
web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy
|
web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy
|
||||||
rpc_parse/dummy script/dummy include/dummy codepages/dummy
|
rpc_client/dummy rpc_parse/dummy locking/dummy passdb/dummy
|
||||||
libsmb/dummy bin/dummy printing/dummy)
|
script/dummy include/dummy codepages/dummy libsmb/dummy bin/dummy
|
||||||
|
utils/dummy printing/dummy include/stamp-h)
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
#undef HAVE_REMSH
|
#undef HAVE_REMSH
|
||||||
#undef HAVE_UNSIGNED_CHAR
|
#undef HAVE_UNSIGNED_CHAR
|
||||||
#undef HAVE_UTIMBUF
|
#undef HAVE_UTIMBUF
|
||||||
|
#undef ssize_t
|
||||||
#undef ino_t
|
#undef ino_t
|
||||||
#undef ssize_t
|
#undef ssize_t
|
||||||
#undef HAVE_CONNECT
|
#undef HAVE_CONNECT
|
||||||
@ -95,6 +96,7 @@
|
|||||||
#undef STAT_STATFS3_OSF1
|
#undef STAT_STATFS3_OSF1
|
||||||
#undef STAT_STATFS4
|
#undef STAT_STATFS4
|
||||||
#undef STAT_STATVFS
|
#undef STAT_STATVFS
|
||||||
|
#undef STAT_STATVFS64
|
||||||
#undef HAVE_NETMASK_IFREQ
|
#undef HAVE_NETMASK_IFREQ
|
||||||
#undef HAVE_NETMASK_AIX
|
#undef HAVE_NETMASK_AIX
|
||||||
#undef HAVE_CRYPT
|
#undef HAVE_CRYPT
|
||||||
@ -147,6 +149,12 @@
|
|||||||
/* Define if you have the chroot function. */
|
/* Define if you have the chroot function. */
|
||||||
#undef HAVE_CHROOT
|
#undef HAVE_CHROOT
|
||||||
|
|
||||||
|
/* Define if you have the connect function. */
|
||||||
|
#undef HAVE_CONNECT
|
||||||
|
|
||||||
|
/* Define if you have the crypt function. */
|
||||||
|
#undef HAVE_CRYPT
|
||||||
|
|
||||||
/* Define if you have the crypt16 function. */
|
/* Define if you have the crypt16 function. */
|
||||||
#undef HAVE_CRYPT16
|
#undef HAVE_CRYPT16
|
||||||
|
|
||||||
@ -225,6 +233,9 @@
|
|||||||
/* Define if you have the mktime function. */
|
/* Define if you have the mktime function. */
|
||||||
#undef HAVE_MKTIME
|
#undef HAVE_MKTIME
|
||||||
|
|
||||||
|
/* Define if you have the pam_authenticate function. */
|
||||||
|
#undef HAVE_PAM_AUTHENTICATE
|
||||||
|
|
||||||
/* Define if you have the pathconf function. */
|
/* Define if you have the pathconf function. */
|
||||||
#undef HAVE_PATHCONF
|
#undef HAVE_PATHCONF
|
||||||
|
|
||||||
@ -462,9 +473,6 @@
|
|||||||
/* Define if you have the <utime.h> header file. */
|
/* Define if you have the <utime.h> header file. */
|
||||||
#undef HAVE_UTIME_H
|
#undef HAVE_UTIME_H
|
||||||
|
|
||||||
/* Define if you have the crypt library (-lcrypt). */
|
|
||||||
#undef HAVE_LIBCRYPT
|
|
||||||
|
|
||||||
/* Define if you have the dl library (-ldl). */
|
/* Define if you have the dl library (-ldl). */
|
||||||
#undef HAVE_LIBDL
|
#undef HAVE_LIBDL
|
||||||
|
|
||||||
@ -477,9 +485,6 @@
|
|||||||
/* Define if you have the nsl_s library (-lnsl_s). */
|
/* Define if you have the nsl_s library (-lnsl_s). */
|
||||||
#undef HAVE_LIBNSL_S
|
#undef HAVE_LIBNSL_S
|
||||||
|
|
||||||
/* Define if you have the pam library (-lpam). */
|
|
||||||
#undef HAVE_LIBPAM
|
|
||||||
|
|
||||||
/* Define if you have the readline library (-lreadline). */
|
/* Define if you have the readline library (-lreadline). */
|
||||||
#undef HAVE_LIBREADLINE
|
#undef HAVE_LIBREADLINE
|
||||||
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
|
2
source3/include/stamp-h.in
Normal file
2
source3/include/stamp-h.in
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
-rw-r--r-- 1 oliva pos 1371 Sep 19 00:48 acconfig.h
|
||||||
|
-rw-r--r-- 1 oliva pos 24197 Sep 20 07:11 configure.in
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -314,6 +314,7 @@ this one is for AIX
|
|||||||
}
|
}
|
||||||
|
|
||||||
#else /* a dummy version */
|
#else /* a dummy version */
|
||||||
|
struct in_addr; /* it may not have been declared before */
|
||||||
int get_netmask(struct in_addr *ipaddr, struct in_addr *nmask)
|
int get_netmask(struct in_addr *ipaddr, struct in_addr *nmask)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
|
1
source3/locking/dummy.in
Normal file
1
source3/locking/dummy.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
1
source3/passdb/dummy.in
Normal file
1
source3/passdb/dummy.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -1,11 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
LIBDIR=$1
|
srcdir=$1
|
||||||
CODEPAGEDIR=$2
|
LIBDIR=$2
|
||||||
BINDIR=$3
|
CODEPAGEDIR=$3
|
||||||
|
BINDIR=$4
|
||||||
|
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
|
shift
|
||||||
|
|
||||||
echo Installing codepage files in $CODEPAGEDIR
|
echo Installing codepage files in $CODEPAGEDIR
|
||||||
for d in $LIBDIR $CODEPAGEDIR; do
|
for d in $LIBDIR $CODEPAGEDIR; do
|
||||||
@ -20,7 +22,7 @@ done
|
|||||||
|
|
||||||
for p in $*; do
|
for p in $*; do
|
||||||
echo Creating codepage file $CODEPAGEDIR/codepage.$p
|
echo Creating codepage file $CODEPAGEDIR/codepage.$p
|
||||||
$BINDIR/make_smbcodepage c $p codepages/codepage_def.$p $CODEPAGEDIR/codepage.$p
|
$BINDIR/make_smbcodepage c $p ${srcdir}/codepages/codepage_def.$p $CODEPAGEDIR/codepage.$p
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
1
source3/utils/dummy.in
Normal file
1
source3/utils/dummy.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
|
Loading…
x
Reference in New Issue
Block a user