-dnl $Id: configure.in,v 1.179.2.3.2.37.2.5 2005-09-27 10:40:40 didg Exp $
+dnl $Id: configure.in,v 1.179.2.3.2.37.2.7 2006-09-07 05:02:20 didg Exp $
dnl configure.in for netatalk
AC_INIT(etc/afpd/main.c)
dnl Replace `main' with a function in -ld:
dnl AC_CHECK_LIB(d, main)
dnl Replace `main' with a function in -ldl:
-AC_CHECK_LIB(dl, dlopen)
+dnl AC_CHECK_LIB(dl, dlopen)
dnl Replace `main' with a function in -lkauth:
dnl AC_CHECK_LIB(kauth, main)
dnl Replace `main' with a function in -lkrb:
dnl AC_CHECK_LIB(lwp, main)
dnl Replace `main' with a function in -ln:
dnl AC_CHECK_LIB(n, main)
-dnl Replace `main' with a function in -lnsl:
-AC_CHECK_LIB(nsl, main)
+
+dnl not the right stuff but should be enough for now
+AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
+AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)])
+
dnl Replace `main' with a function in -lprot:
dnl AC_CHECK_LIB(prot, main)
dnl Replace `main' with a function in -lrx:
dnl AC_CHECK_LIB(rx, main)
dnl Replace `main' with a function in -lrxkad:
dnl AC_CHECK_LIB(rxkad, main)
-dnl Replace `main' with a function in -lsocket:
-AC_CHECK_LIB(socket, socket)
dnl Replace `main' with a function in -lsys:
dnl AC_CHECK_LIB(sys, main)
dnl Replace `main' with a function in -lubik:
# )
# For quotas on Linux XFS filesystems
- AC_CHECK_HEADERS(linux/xqm.h linux/xfs_fs.h)
- AC_CHECK_HEADERS(xfs/libxfs.h xfs/xqm.h xfs/xfs_fs.h)
+
# For linux > 2.5.56
- AC_CHECK_HEADERS(linux/dqblk_xfs.h)
+ AC_CHECK_HEADERS(linux/dqblk_xfs.h,,
+ [AC_CHECK_HEADERS(linux/xqm.h linux/xfs_fs.h)
+ AC_CHECK_HEADERS(xfs/libxfs.h xfs/xqm.h xfs/xfs_fs.h)]
+ )
dnl ----- as far as I can tell, dbtob always does the wrong thing