From 971f0f0fb4c2cb48fd428d8f474834997da3f006 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sun, 27 Apr 2003 04:00:01 +0000 Subject: [PATCH] detect_modules(): On Redhat 9, building the ssl stuff eventually includes krb5.h. Copy the krb5_h stanza from Python 2.3's setup.py which seems to fix the problem. --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 243481c73afd..b18349875d4b 100644 --- a/setup.py +++ b/setup.py @@ -372,8 +372,12 @@ class PyBuildExt(build_ext): '/usr/contrib/ssl/lib/' ] ) - if (ssl_incs is not None and - ssl_libs is not None): + krb5_h = find_file('krb5.h', inc_dirs, + ['/usr/kerberos/include']) + if krb5_h: + ssl_incs += krb5_h + + if ssl_incs is not None and ssl_libs is not None: rtlibs = None if platform.startswith('sunos'): rtlibs = ssl_libs -- 2.47.3