]> arthur.barton.de Git - netatalk.git/commitdiff
Back-port from trunk: Don't link to -lcom_err, -lresolv, and -l?
authorsrittau <srittau>
Wed, 5 Dec 2001 08:43:38 +0000 (08:43 +0000)
committersrittau <srittau>
Wed, 5 Dec 2001 08:43:38 +0000 (08:43 +0000)
by default.

configure.in
etc/afpd/Makefile.am
macros/Makefile.am
macros/quota-check.m4 [new file with mode: 0644]

index 98d00c130a8007f808c1c26d86ccf4543100109b..18470b22bf098f0bd5bd9e8783a3e345f2432fd7 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.126.2.4 2001-11-30 05:54:33 srittau Exp $
+dnl $Id: configure.in,v 1.126.2.5 2001-12-05 08:43:38 srittau Exp $
 dnl configure.in for netatalk
 
 AC_INIT(bin/adv1tov2/adv1tov2.c)
@@ -36,8 +36,6 @@ dnl Replace `main' with a function in -lauth:
 AC_CHECK_LIB(auth, main)
 dnl Replace `main' with a function in -lcmd:
 AC_CHECK_LIB(cmd, main)
-dnl Replace `main' with a function in -lcom_err:
-AC_CHECK_LIB(com_err, main)
 dnl Replace `main' with a function in -lcrypt:
 AC_CHECK_LIB(crypt, main)
 dnl Replace `main' with a function in -ld:
@@ -56,10 +54,6 @@ dnl Replace `main' with a function in -lnsl:
 AC_CHECK_LIB(nsl, main)
 dnl Replace `main' with a function in -lprot:
 AC_CHECK_LIB(prot, main)
-dnl Replace `main' with a function in -lresolv:
-AC_CHECK_LIB(resolv, main)
-dnl Replace `main' with a function in -lrpcsvc:
-AC_CHECK_LIB(rpcsvc, main)
 dnl Replace `main' with a function in -lrx:
 AC_CHECK_LIB(rx, main)
 dnl Replace `main' with a function in -lrxkad:
@@ -258,6 +252,9 @@ if test "x$db3_required" = "xyes"; then
        AC_PATH_DB3(, [AC_MSG_ERROR([Berkeley DB3 library not found!])])
 fi
 
+dnl Check for quota support
+AC_CHECK_QUOTA
+
 msg_dir=""
 AC_ARG_WITH(message-dir,
        [  --with-message-dir=PATH path to message files [[PKGCONF/msg]]],
index 17a2f060c28a44ad0a122714dc60efc1d0e0a50d..138c17e421839cfa4fe4966a433e7bdaeaaefdb5 100644 (file)
@@ -23,7 +23,7 @@ noinst_HEADERS = auth.h codepage.h afp_config.h desktop.h directory.h file.h \
         filedir.h fork.h globals.h icon.h misc.h status.h switch.h uam_auth.h \
         uid.h unix.h volume.h parse_mtab.h
 
-LIBS = @LIBS@ @AFPD_LIBS@
+LIBS = @LIBS@ @AFPD_LIBS@ @QUOTA_LIBS@
 
 CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/sys \
         @CFLAGS@ \
index 1346e3c883f0cd71d8fc04cedd6bc863b6c36ff5..f779ffdabb3683ab099b76d35a7bffcffd46f11b 100644 (file)
@@ -1,4 +1,5 @@
 EXTRA_DIST = \
        db3-check.m4            \
        pam-check.m4            \
+       quota-check.m4          \
        ssl-check.m4
diff --git a/macros/quota-check.m4 b/macros/quota-check.m4
new file mode 100644 (file)
index 0000000..d669700
--- /dev/null
@@ -0,0 +1,10 @@
+dnl $Id: quota-check.m4,v 1.1.2.1 2001-12-05 08:43:39 srittau Exp $
+dnl Autoconf macro to check for quota support
+dnl FIXME: This is in now way complete.
+
+AC_DEFUN([AC_CHECK_QUOTA], [
+       QUOTA_LIBS=
+       AC_CHECK_LIB(rpcsvc, main, [QUOTA_LIBS=-lrpcsvc])
+       AC_SUBST(QUOTA_LIBS)
+])
+