From 85974116f8fbd44bb18c97a7d46b99ed0dd25929 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 5 Jan 2009 18:19:32 +0000 Subject: Build against Python 2.5 as well as 2.3. Long term, should use python-config git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21700 dc483132-0cff-0310-8789-dd5450dbe970 --- src/plugins/locate/python/Makefile.in | 2 +- src/plugins/locate/python/py-locate.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/locate/python') diff --git a/src/plugins/locate/python/Makefile.in b/src/plugins/locate/python/Makefile.in index ab369919b9..9daeae0103 100644 --- a/src/plugins/locate/python/Makefile.in +++ b/src/plugins/locate/python/Makefile.in @@ -11,7 +11,7 @@ RELDIR=../plugins/locate/python MODULE_INSTALL_DIR = $(KRB5_LIBKRB5_MODULE_DIR) SHLIB_EXPDEPS= $(KRB5_DEPLIB) $(SUPPORT_DEPLIB) -SHLIB_EXPLIBS= -lpython2.3 $(KRB5_LIB) $(SUPPORT_LIB) +SHLIB_EXPLIBS= @PYTHON_LIB@ $(KRB5_LIB) $(SUPPORT_LIB) SHLIB_DIRS=-L$(TOPLIBD) SHLIB_RDIRS=$(KRB5_LIBDIR) diff --git a/src/plugins/locate/python/py-locate.c b/src/plugins/locate/python/py-locate.c index 36ddaedad4..5167230a00 100644 --- a/src/plugins/locate/python/py-locate.c +++ b/src/plugins/locate/python/py-locate.c @@ -66,6 +66,8 @@ #include #elif HAVE_PYTHON2_3_PYTHON_H #include +#elif HAVE_PYTHON2_5_PYTHON_H +#include #else #error "Where's the Python header file?" #endif -- cgit