2001-09-19 14:45:33 +04:00
/*
Unix SMB / Netbios implementation .
Version 2.2
Build Options for Samba Suite
Copyright ( C ) Vance Lankhaar < vlankhaar @ hotmail . com > 2001
Copyright ( C ) Andrew Bartlett < abartlet @ samba . org > 2001
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
# include "includes.h"
# include "build_env.h"
2001-11-19 05:49:53 +03:00
# include "dynconfig.h"
2001-09-19 14:45:33 +04:00
2001-10-21 10:04:46 +04:00
static void output ( BOOL screen , char * format , . . . ) PRINTF_ATTRIBUTE ( 2 , 3 ) ;
/*
# define OUTPUT(x) snprintf(outstring,sizeof(outstring),x); output(screen,outstring);
*/
2001-09-19 14:45:33 +04:00
/****************************************************************************
helper function for build_options
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2001-10-21 10:04:46 +04:00
static void output ( BOOL screen , char * format , . . . )
2001-09-19 14:45:33 +04:00
{
2001-10-21 10:04:46 +04:00
char * ptr ;
va_list ap ;
va_start ( ap , format ) ;
vasprintf ( & ptr , format , ap ) ;
va_end ( ap ) ;
2001-09-19 14:45:33 +04:00
if ( screen ) {
2001-10-21 10:04:46 +04:00
d_printf ( " %s " , ptr ) ;
2001-09-19 14:45:33 +04:00
} else {
2001-10-21 10:04:46 +04:00
DEBUG ( 4 , ( " %s " , ptr ) ) ;
2001-09-19 14:45:33 +04:00
}
2001-10-21 10:04:46 +04:00
SAFE_FREE ( ptr ) ;
2001-09-19 14:45:33 +04:00
}
2001-10-21 10:04:46 +04:00
2001-09-19 14:45:33 +04:00
/****************************************************************************
options set at build time for the samba suite
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
void build_options ( BOOL screen )
{
if ( ( DEBUGLEVEL < 4 ) & & ( ! screen ) ) {
return ;
}
# ifdef _BUILD_ENV_H
/* Output information about the build environment */
2001-10-21 10:04:46 +04:00
output ( screen , " Build environment: \n " ) ;
output ( screen , " Built by: %s@%s \n " , BUILD_ENV_USER , BUILD_ENV_HOST ) ;
output ( screen , " Built on: %s \n " , BUILD_ENV_DATE ) ;
output ( screen , " Built using: %s \n " , BUILD_ENV_COMPILER ) ;
output ( screen , " Build host: %s \n " , BUILD_ENV_UNAME ) ;
output ( screen , " SRCDIR: %s \n " , BUILD_ENV_SRCDIR ) ;
output ( screen , " BUILDDIR: %s \n " , BUILD_ENV_BUILDDIR ) ;
2001-09-19 14:45:33 +04:00
# endif
/* Output various options (most correspond to --with options) */
2001-10-21 10:04:46 +04:00
output ( screen , " \n Build options: \n " ) ;
2001-09-19 14:45:33 +04:00
# ifdef WITH_SMBWRAPPER
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_SMBWRAPPER \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_AFS
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_AFS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_DFS
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_DFS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
2001-10-21 10:04:46 +04:00
# ifdef KRB4_AUTH
output ( screen , " KRB4_AUTH " ) ;
2001-09-19 14:45:33 +04:00
# endif
2001-10-21 10:04:46 +04:00
# ifdef HAVE_KRB5
2001-10-20 04:48:28 +04:00
output ( screen , " HAVE_KRB5 " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_AUTOMOUNT
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_AUTOMOUNT \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_SMBMOUNT
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_SMBMOUNT \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_PAM
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_PAM \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
2001-09-26 06:30:55 +04:00
# ifdef WITH_TDB_SAM
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_TDB_SAM \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
2001-09-26 06:30:55 +04:00
# ifdef WITH_LDAP_SAM
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_LDAP_SAM \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
2001-09-26 06:30:55 +04:00
# ifdef WITH_SMBPASSWD_SAM
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_SMBPASSWD_SAM \n " ) ;
2001-09-26 06:30:55 +04:00
# endif
# ifdef WITH_NISPLUS_SAM
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_NISPLUS_SAM \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_NISPLUS_HOME
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_NISPLUS_HOME \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_SSL
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_SSL \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef SSL_DIR
2001-10-21 10:04:46 +04:00
output ( screen , " SSL_DIR: %s \n " , SSL_DIR ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_SYSLOG
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_SYSLOG \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_PROFILE
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_PROFILE \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_QUOTAS
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_QUOTAS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_VFS
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_VFS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef USE_SPINLOCKS
2001-10-21 10:04:46 +04:00
output ( screen , " USE_SPINLOCKS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef SPARC_SPINLOCKS
2001-10-21 10:04:46 +04:00
output ( screen , " SPARC_SPINLOCKS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef INTEL_SPINLOCKS
2001-10-21 10:04:46 +04:00
output ( screen , " INTEL_SPINLOCKS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef MIPS_SPINLOCKS
2001-10-21 10:04:46 +04:00
output ( screen , " MIPS_SPINLOCKS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef POWERPC_SPINLOCKS
2001-10-21 10:04:46 +04:00
output ( screen , " POWERPC_SPINLOCKS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UNIXWARE_ACLS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UNIXWARE_ACLS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_SOLARIS_ACLS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_SOLARIS_ACLS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_IRIX_ACLS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_IRIX_ACLS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_AIX_ACLS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_AIX_ACLS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_POSIX_ACLS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_POSIX_ACLS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_TRU64_ACLS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_TRU64_ACLS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_ACL_GET_PERM_NP
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_ACL_GET_PERM_NP \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_NO_ACLS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_NO_ACLS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_LIBREADLINE
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_LIBREADLINE \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_LIBICONV
2001-10-21 10:04:46 +04:00
output ( screen , " WITH_LIBICONV: %s \n " , WITH_LIBICONV ) ;
2001-09-19 14:45:33 +04:00
# endif
/* Output various paths to files and directories */
2001-10-21 10:04:46 +04:00
output ( screen , " \n Paths: \n " ) ;
2001-11-19 05:49:53 +03:00
output ( screen , " CONFIGFILE: %s \n " , dyn_CONFIGFILE ) ;
2001-09-19 14:45:33 +04:00
# ifdef PRIVATE_DIR
2001-10-21 10:04:46 +04:00
output ( screen , " PRIVATE_DIR: %s \n " , PRIVATE_DIR ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef LMHOSTSFILE
2001-10-21 10:04:46 +04:00
output ( screen , " LMHOSTSFILE: %s \n " , LMHOSTSFILE ) ;
2001-09-19 14:45:33 +04:00
# endif
2001-11-19 05:49:53 +03:00
output ( screen , " SBINDIR: %s \n " , dyn_SBINDIR ) ;
output ( screen , " BINDIR: %s \n " , dyn_BINDIR ) ;
2001-11-19 06:35:27 +03:00
output ( screen , " LOCKDIR: %s \n " , dyn_LOCKDIR ) ;
2001-11-19 08:49:20 +03:00
output ( screen , " DRIVERFILE: %s \n " , dyn_DRIVERFILE ) ;
2001-11-19 05:49:53 +03:00
output ( screen , " LOGFILEBASE: %s \n " , dyn_LOGFILEBASE ) ;
2001-09-19 14:45:33 +04:00
/*Output various other options (most map to defines in the configure script*/
2001-10-21 10:04:46 +04:00
output ( screen , " \n Other Build Options: \n " ) ;
2001-09-19 14:45:33 +04:00
# ifdef HAVE_VOLATILE
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_VOLATILE \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_SHADOW_H
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_SHADOW_H \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_CRYPT
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_CRYPT \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef USE_BOTH_CRYPT_CALLS
2001-10-21 10:04:46 +04:00
output ( screen , " USE_BOTH_CRYPT_CALLS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_TRUNCATED_SALT
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_TRUNCATED_SALT \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_CUPS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_CUPS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_CUPS_CUPS_H
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_CUPS_CUPS_H \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_CUPS_LANGUAGE_H
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_CUPS_LANGUAGE_H \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_LIBDL
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_LIBDL \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UNIXSOCKET
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UNIXSOCKET \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_SOCKLEN_T_TYPE
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_SOCKLEN_T_TYPE \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_SIG_ATOMIC_T_TYPE
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_SIG_ATOMIC_T_TYPE \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_SETRESUID
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_SETRESUID \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_SETRESGID
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_SETRESGID \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_CONNECT
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_CONNECT \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_YP_GET_DEFAULT_DOMAIN
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_YP_GET_DEFAULT_DOMAIN \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_STAT64
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_STAT64 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_LSTAT64
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_LSTAT64 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_FSTAT64
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_FSTAT64 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_STRCASECMP
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_STRCASECMP \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_MEMSET
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_MEMSET \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_LONGLONG
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_LONGLONG \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef COMPILER_SUPPORTS_LL
2001-10-21 10:04:46 +04:00
output ( screen , " COMPILER_SUPPORTS_LL \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef SIZEOF_OFF_T
2001-10-21 10:04:46 +04:00
output ( screen , " SIZEOF_OFF_T: %d \n " , SIZEOF_OFF_T ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_OFF64_T
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_OFF64_T \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef SIZEOF_INO_T
2001-10-21 10:04:46 +04:00
output ( screen , " SIZEOF_INO_T: %d \n " , SIZEOF_INO_T ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_INO64_T
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_INO64_T \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_STRUCT_DIRENT64
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_STRUCT_DIRENT64 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UNSIGNED_CHAR
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UNSIGNED_CHAR \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_SOCK_SIN_LEN
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_SOCK_SIN_LEN \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef SEEKDIR_RETURNS_VOID
2001-10-21 10:04:46 +04:00
output ( screen , " SEEKDIR_RETURNS_VOID \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_FILE_MACRO
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_FILE_MACRO \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_FUNCTION_MACRO
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_FUNCTION_MACRO \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_GETTIMEOFDAY
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_GETTIMEOFDAY \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_C99_VSNPRINTF
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_C99_VSNPRINTF \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_BROKEN_READDIR
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_BROKEN_READDIR \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_NATIVE_ICONV
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_NATIVE_ICONV \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_KERNEL_OPLOCKS_LINUX
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_KERNEL_OPLOCKS_LINUX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_KERNEL_CHANGE_NOTIFY
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_KERNEL_CHANGE_NOTIFY \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_KERNEL_SHARE_MODES
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_KERNEL_SHARE_MODES \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_KERNEL_OPLOCKS_IRIX
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_KERNEL_OPLOCKS_IRIX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_IRIX_SPECIFIC_CAPABILITIES
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_IRIX_SPECIFIC_CAPABILITIES \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_INT16_FROM_RPC_RPC_H
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_INT16_FROM_RPC_RPC_H \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UINT16_FROM_RPC_RPC_H
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UINT16_FROM_RPC_RPC_H \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_INT32_FROM_RPC_RPC_H
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_INT16_FROM_RPC_RPC_H \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UINT32_FROM_RPC_RPC_H
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UINT32_FROM_RPC_RPC_H \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_RPC_AUTH_ERROR_CONFLICT
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_RPC_AUTH_ERROR_CONFLICT \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_FTRUNCATE_EXTEND
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_FTRUNCATE_EXTEND \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_WORKING_AF_LOCAL
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_WORKING_AF_LOCAL \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_BROKEN_GETGROUPS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_BROKEN_GETGROUPS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef REPLACE_GETPASS
2001-10-21 10:04:46 +04:00
output ( screen , " REPLACE_GETPASS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef REPLACE_INET_NTOA
2001-10-21 10:04:46 +04:00
output ( screen , " REPLACE_INET_NTOA \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_SECURE_MKSTEMP
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_SECURE_MKSTEMP \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef SYSCONF_SC_NGROUPS_MAX
2001-10-21 10:04:46 +04:00
output ( screen , " SYSCONF_SC_NGROUPS_MAX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_IFACE_AIX
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_IFACE_AIX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_IFACE_IFCONF
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_IFACE_IFCONF \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_IFACE_IFREQ
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_IFACE_IFREQ \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef USE_SETRESUID
2001-10-21 10:04:46 +04:00
output ( screen , " USE_SETRESUID \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef USE_SETRESGID
2001-10-21 10:04:46 +04:00
output ( screen , " USE_SETREUID \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef USE_SETEUID
2001-10-21 10:04:46 +04:00
output ( screen , " USE_SETEUID \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef USE_SETUIDX
2001-10-21 10:04:46 +04:00
output ( screen , " USE_SETUIDX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_MMAP
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_MMAP \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef MMAP_BLACKLIST
2001-10-21 10:04:46 +04:00
output ( screen , " MMAP_BLACKLIST \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef FTRUNCATE_NEEDS_ROOT
2001-10-21 10:04:46 +04:00
output ( screen , " FTRUNCATE_NEEDS_ROOT \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_FCNTL_LOCK
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_FCNTL_LOCK \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_BROKEN_FCNTL64_LOCKS
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_BROKEN_FCNTL64_LOCKS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_STRUCT_FLOCK64
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_STRUCT_FLOCK64 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef BROKEN_NISPLUS_INCLUDE_FILES
2001-10-21 10:04:46 +04:00
output ( screen , " BROKEN_NISPLUS_INCLUDE_FILES \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_LIBPAM
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_LIBPAM \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef STAT_STATVFS64
2001-10-21 10:04:46 +04:00
output ( screen , " STAT_STATVFS64 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef STAT_STATVFS
2001-10-21 10:04:46 +04:00
output ( screen , " STAT_STATVFS \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef STAT_STATFS3_OSF1
2001-10-21 10:04:46 +04:00
output ( screen , " STAT_STATFS3_OSF1 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef STAT_STATFS2_BSIZE
2001-10-21 10:04:46 +04:00
output ( screen , " STAT_STATFS2_BSIZE \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef STAT_STATFS4
2001-10-21 10:04:46 +04:00
output ( screen , " STAT_STATFS4 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef STAT_STATFS2_FSIZE
2001-10-21 10:04:46 +04:00
output ( screen , " STAT_STATFS2_FSIZE \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef STAT_STATFS2_FS_DATA
2001-10-21 10:04:46 +04:00
output ( screen , " STAT_STATFS2_FS_DATA \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_EXPLICIT_LARGEFILE_SUPPORT
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_EXPLICIT_LARGEFILE_SUPPORT \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef WITH_UTMP
/* Output UTMP Stuff */
2001-10-21 10:04:46 +04:00
output ( screen , " \n UTMP Related: \n " ) ;
output ( screen , " WITH_UTMP \n " ) ;
2001-09-19 14:45:33 +04:00
# ifdef HAVE_UTIMBUF
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UTIMBUF \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_NAME
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_NAME \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_USER
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_USER \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_ID
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_ID \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_HOST
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_HOST \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_TIME
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_TIME \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_TV
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_TV \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_TYPE
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_TYPE \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_PID
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_PID \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_EXIT
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_EXIT \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UT_UT_ADDR
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UT_UT_ADDR \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef PUTUTLINE_RETURNS_UTMP
2001-10-21 10:04:46 +04:00
output ( screen , " PUTUTLINE_RETURNS_UTMP \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HAVE_UX_UT_SYSLEN
2001-10-21 10:04:46 +04:00
output ( screen , " HAVE_UX_UT_SYSLEN \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
2001-10-21 10:04:46 +04:00
# endif /* WITH_UTMP */
2001-09-19 14:45:33 +04:00
/* Output Build OS */
2001-10-21 10:04:46 +04:00
output ( screen , " \n Built for host os: \n " ) ;
2001-09-19 14:45:33 +04:00
# ifdef LINUX
2001-10-21 10:04:46 +04:00
output ( screen , " LINUX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef SUNOS5
2001-10-21 10:04:46 +04:00
output ( screen , " SUNOS5 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef SUNOS4
2001-10-21 10:04:46 +04:00
output ( screen , " SUNOS4 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
/* BSD Isn't Defined in the configure script, but there is something about it in include/config.h.in (and I guess acconfig.h) */
# ifdef BSD
2001-10-21 10:04:46 +04:00
output ( screen , " BSD \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef IRIX
2001-10-21 10:04:46 +04:00
output ( screen , " IRIX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef IRIX6
2001-10-21 10:04:46 +04:00
output ( screen , " IRIX6 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef AIX
2001-10-21 10:04:46 +04:00
output ( screen , " AIX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef HPUX
2001-10-21 10:04:46 +04:00
output ( screen , " HPUX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef QNX
2001-10-21 10:04:46 +04:00
output ( screen , " QNX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef OSF1
2001-10-21 10:04:46 +04:00
output ( screen , " OSF1 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef SCO
2001-10-21 10:04:46 +04:00
output ( screen , " SCO \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef UNIXWARE
2001-10-21 10:04:46 +04:00
output ( screen , " UNIXWARE \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef NEXT2
2001-10-21 10:04:46 +04:00
output ( screen , " NEXT2 \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
# ifdef RELIANTUNIX
2001-10-21 10:04:46 +04:00
output ( screen , " RELIANTUNIX \n " ) ;
2001-09-19 14:45:33 +04:00
# endif
/* Output the sizes of the various types */
2001-10-21 10:04:46 +04:00
output ( screen , " \n Type sizes: \n " ) ;
output ( screen , " sizeof(char): %d \n " , sizeof ( char ) ) ;
output ( screen , " sizeof(int): %d \n " , sizeof ( int ) ) ;
output ( screen , " sizeof(long): %d \n " , sizeof ( long ) ) ;
output ( screen , " sizeof(uint8): %d \n " , sizeof ( uint8 ) ) ;
output ( screen , " sizeof(uint16): %d \n " , sizeof ( uint16 ) ) ;
output ( screen , " sizeof(uint32): %d \n " , sizeof ( uint32 ) ) ;
output ( screen , " sizeof(short): %d \n " , sizeof ( short ) ) ;
output ( screen , " sizeof(void*): %d \n " , sizeof ( void * ) ) ;
2001-09-19 14:45:33 +04:00
}