-dnl $Id: configure.in,v 1.179.2.3.2.30 2004-06-09 01:43:08 bfernhomberg Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.33 2004-07-12 00:15:18 didg Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
AC_CHECK_FUNCS(setlocale nl_langinfo)
AC_CHECK_FUNCS(waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64)
AC_CHECK_FUNCS(strlcpy strlcat)
+AC_CHECK_FUNCS(setlinebuf)
AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,, [#include <time.h>])
AC_CACHE_SAVE
AC_DEFINE(HAVE_BROKEN_DBTOB, 1, [Define if dbtob is broken])
netatalk_cv_linux_sendfile=no
- AC_ARG_ENABLE(sendfile,
- [ --enable-sendfile use sendfile syscall default (no) ],[
- if test "$enableval" = "yes"; then
- netatalk_cv_linux_sendfile=yes
- fi
- AC_MSG_RESULT([enabling sendfile syscall])
- ]
- )
+dnl disable this for now, code doesn't use sendfile anyway
+dnl AC_ARG_ENABLE(sendfile,
+dnl [ --enable-sendfile use sendfile syscall default (no) ],[
+dnl if test "$enableval" = "yes"; then
+dnl netatalk_cv_linux_sendfile=yes
+dnl fi
+dnl AC_MSG_RESULT([enabling sendfile syscall])
+dnl ]
+dnl )
if test x"$netatalk_cv_linux_sendfile" = "xyes"; then
AC_CACHE_CHECK([for linux sendfile support],netatalk_cv_HAVE_SENDFILE,[
AC_MSG_RESULT([$COMPILE_64BIT_KMODULE])
-
if test "${GCC}" = yes; then
COMPILE_KERNEL_GCC=yes
if test "$COMPILE_64BIT_KMODULE" = yes; then
- # use for 64 bit
- KCFLAGS="-m64"
- #KLDFLAGS="-melf64_sparc"
- KLDFLAGS="-64"
+
+ AC_MSG_CHECKING([if we can build a 64bit kernel module])
+
+ case `$CC --version 2>/dev/null` in
+ [[12]].* | 3.0.*)
+ COMPILE_64BIT_KMODULE=no
+ COMPILE_KERNEL_GCC=no
+ solaris_module=no;;
+ *)
+ # use for 64 bit
+ KCFLAGS="-m64"
+ #KLDFLAGS="-melf64_sparc"
+ KLDFLAGS="-64";;
+ esac
+
+ AC_MSG_RESULT([$COMPILE_64BIT_KMODULE])
+
else
KCFLAGS=""
KLDFLAGS=""