]> arthur.barton.de Git - netatalk.git/commitdiff
MFH: 1.4
authorjmarcus <jmarcus>
Fri, 8 Feb 2002 16:43:26 +0000 (16:43 +0000)
committerjmarcus <jmarcus>
Fri, 8 Feb 2002 16:43:26 +0000 (16:43 +0000)
Another fix for SLP detection.

macros/srvloc.m4

index e7e84acbc799e7245af6c5b0b4c91ce9c473848b..27a0886b7843a89313d27b397bf6a8db35ed7239 100644 (file)
@@ -1,6 +1,6 @@
 dnl Check for optional server location protocol support (used by MacOS X)
 
-dnl $Id: srvloc.m4,v 1.2.2.2 2002-02-07 23:40:20 srittau Exp $
+dnl $Id: srvloc.m4,v 1.2.2.3 2002-02-08 16:43:26 jmarcus Exp $
 
 AC_DEFUN([NETATALK_SRVLOC], [
 
@@ -29,10 +29,11 @@ AC_DEFUN([NETATALK_SRVLOC], [
                                AC_MSG_ERROR([SLP installation not found])
                        ]
                )
-               AC_CHECK_LIB(slp, SLPOpen, , AC_MSG_ERROR([SLP installation not found]))
+               AC_CHECK_LIB(slp, SLPOpen, [
+                       SLP_LIBS="-L$srvloc/lib -lslp"
+                       SLP_CFLAGS="-I$srvloc/include"
+               ], AC_MSG_ERROR([SLP installation not found]))
 
-               SLP_LIBS="-L$srvloc/lib -lslp"
-               SLP_CFLAGS="-I$srvloc/include"
                AC_DEFINE(USE_SRVLOC, 1)
 
                CPPFLAGS="$savedcppflags"