From 4e14c2437ff775fe232392623628625b6a4c070d Mon Sep 17 00:00:00 2001 From: imaginos Date: Wed, 11 May 2005 20:33:55 +0000 Subject: [PATCH] added HAVE_PERL to PERLCC so needless dependencies are not created git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@266 726aef4b-f618-498e-8847-2d620e286838 --- modules/Makefile.in | 2 +- modules/modperl.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/Makefile.in b/modules/Makefile.in index 55c69d18..84cffb56 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -5,7 +5,7 @@ INCLUDES=@INCLUDES@ -I.. LIBS=@LIBS@ PERL=@PERL@ ifneq "$(PERL)" "" -PERLCC=`$(PERL) -MExtUtils::Embed -e ccopts` +PERLCC=-DHAVE_PERL `$(PERL) -MExtUtils::Embed -e ccopts` PERLLD=`$(PERL) -MExtUtils::Embed -e ccopts -e ldopts` endif VPATH=.:.. diff --git a/modules/modperl.cpp b/modules/modperl.cpp index ae56c7cc..01ad026f 100644 --- a/modules/modperl.cpp +++ b/modules/modperl.cpp @@ -1,3 +1,4 @@ +#ifdef HAVE_PERL #include "main.h" #include "User.h" #include "Nick.h" @@ -148,3 +149,5 @@ bool CModPerl::OnLoad( const CString & sArgs ) return( true ); } +#endif /* HAVE_PERL */ +