FORCE the compiler to use out libltdl, rather than the system
one. This gets rid of the _lt__PROGRAM__LTX_preloaded_symbols
nonsense.
MAKE = @MAKE@
CC = @CC@
RANLIB = @RANLIB@
-INCLUDE =
+INCLUDE = -I${top_srcdir} -I${top_srcdir}/src
CFLAGS = $(INCLUDE) @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LIBPREFIX = @LIBPREFIX@
if test "${with_system_libltdl+set}" = set; then
withval=$with_system_libltdl;
LIBLTDL="-lltdl"
-INCLTDL=
+INCLTDL=-DWITH_SYSTEM_LTDL
LTDL_SUBDIRS=
else
[ --with-system-libltdl Use the libltdl installed in your system (default=use our own)],
[
LIBLTDL="-lltdl"
-INCLTDL=
+INCLTDL=-DWITH_SYSTEM_LTDL
LTDL_SUBDIRS=
],
[
#include <freeradius-devel/modules.h>
#ifndef WITHOUT_LIBLTDL
-#include "ltdl.h"
+#ifdef WITH_SYSTEM_LTDL
+#include <ltdl.h>
+#else
+#include "libltdl/ltdl.h"
+#endif
#endif
#ifdef __cplusplus