-dnl $Id: configure.in,v 1.195 2003-12-15 05:05:19 srittau Exp $
+dnl $Id: configure.in,v 1.196 2003-12-15 05:27:24 srittau Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
AM_INIT_AUTOMAKE(netatalk, ${NETATALK_VERSION})
AM_CONFIG_HEADER(config.h)
+dnl
dnl Checks for programs.
+dnl
+
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_DVIPS
AC_PROG_TROFF2PS
+dnl
+dnl Checks for libraries.
+dnl
+
dnl *********************************************************************
dnl FIXME! FIXME! These should be selectable properly, and should produce
dnl the proper flags and defines...
dnl *********************************************************************
-dnl Checks for libraries.
dnl Replace `main' with a function in -labs:
AC_CHECK_LIB(abs, main)
dnl Replace `main' with a function in -laudit:
dnl Replace `main' with a function in -lubik:
AC_CHECK_LIB(ubik, main)
-#
-# Check presence of some functions
-#
-# Check for XPG4 access() function
-# Be sure to test before adding AFS libs in LIBS path as AFS lib
-# has such a function that works only on AFS filesystems.
+dnl
+dnl Checks for presence of some functions.
+dnl
+
+dnl Check for XPG4 access() function
+dnl Be sure to test before adding AFS libs in LIBS path as AFS lib
+dnl has such a function that works only on AFS filesystems.
AC_CHECK_FUNCS(access)
-#
AC_CHECK_FUNCS(pread pwrite)
+dnl
dnl Checks for header files.
+dnl
+
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
)
+dnl
dnl Checks for typedefs, structures, and compiler characteristics.
+dnl
+
AC_C_CONST
AC_TYPE_UID_T
AC_C_INLINE
AC_STRUCT_ST_RDEV
AC_HEADER_TIME
AC_STRUCT_TM
+AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,, [#include <time.h>])
+dnl
dnl Checks for library functions.
+dnl
+
AC_TYPE_GETGROUPS
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strcasestr strstr strtoul setpgrp strchr memcpy)
AC_FUNC_SETPGRP
+dnl
dnl Checks for (v)snprintf
+dnl
+
NETATALK_SNPRINTF_CHECK
dnl --------------------------------------------------------------------------
dnl ----- AIX specific -----
if test x"$this_os" = "xaix"; then
AC_MSG_RESULT([ * AIX specific configuration])
- AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
dnl This is probably a lie; AIX 4.3 supports a 64-bit long
dnl compilation environment. It's enough to get things defined
AC_MSG_RESULT([ * HP-UX 11 specific configuration])
AC_DEFINE(_ISOC9X_SOURCE, 1, [Compatibility macro])
- AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
-fi
-
-dnl ----- IRIX specific -----
-if test x"$this_os" = "xirix"; then
- AC_MSG_RESULT([ * IRIX specific configuration])
-
- AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
fi
dnl ----- Linux specific -----
AC_MSG_RESULT([ * Solaris specific configuration])
AC_DEFINE(__svr4__, 1, [Solaris compatibility macro])
AC_DEFINE(_ISOC9X_SOURCE, 1, [Compatibility macro])
- AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
AC_DEFINE(SOLARIS, 1, [Solaris compatibility macro])
CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
need_dash_r=yes
# Solaris specific defines, passed to subdirectories.
# To use Sun CC, uncomment the CC and KFLAGS variables.
#
-# $Id: Makefile.kernel.in,v 1.4 2003-06-17 06:39:37 srittau Exp $
+# $Id: Makefile.kernel.in,v 1.5 2003-12-15 05:27:24 srittau Exp $
# uncomment for 64-bit sparc kernel
# -D_ISOC9X_SOURCE is handled by OSVERSION. basically, it's not needed
# with 2.5.1.
# add -DHAVE_IFNAMEINDEX if you're using solaris 8.
-DEFS= -DNO_STRUCT_TM_GMTOFF -DHAVE_IFNAMEINDEX -D__svr4__ -DSOLARIS -I../../sys/generic \
+DEFS= -DHAVE_IFNAMEINDEX -D__svr4__ -DSOLARIS -I../../sys/generic \
-I.. ${OSDEFS} ${MACHINEDEFS}
AFPLIBS=
ADDLIBS= -lsocket -lnsl