- fix: include correct ltdl.h for system & convenience libltdl

This commit is contained in:
Thomas Ries
2010-06-19 20:39:11 +00:00
parent 2f562a6138
commit 878bcdff8b
3 changed files with 13 additions and 3 deletions

View File

@@ -19,7 +19,11 @@
#
AM_CFLAGS = -Wall -D_GNU_SOURCE \
if use_convenience_ltdl
LTDLDEF = -DLTDL_CONVLIB
endif
AM_CFLAGS = -Wall -D_GNU_SOURCE $(LTDLDEF) \
-DBUILDSTR="\"`cat .buildno`\""
#

View File

@@ -20,8 +20,13 @@
/* $Id$ */
/* fetch local version of ltdl */
#include "../libltdl/ltdl.h"
#ifdef LTDL_CONVLIB
/* fetch local version of ltdl */
#include "../libltdl/ltdl.h"
#else
/* fetch system version of libltdl */
#include <ltdl.h>
#endif
/* Plugins must return STS_SUCCESS / SUCCESS_FAILURE */