From: jmarcus Date: Fri, 8 Feb 2002 16:43:26 +0000 (+0000) Subject: MFH: 1.4 X-Git-Tag: netatalk-1-5-2~13 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b8b98eee8e98419e6b4fdf7f6e1a7114ce2232b;hp=1467c7c586ce887c99cf214bd399953204389ec9;p=netatalk.git MFH: 1.4 Another fix for SLP detection. --- diff --git a/macros/srvloc.m4 b/macros/srvloc.m4 index e7e84acb..27a0886b 100644 --- a/macros/srvloc.m4 +++ b/macros/srvloc.m4 @@ -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"