From: Barry Warsaw Date: Sun, 27 Apr 2003 04:00:01 +0000 (+0000) Subject: detect_modules(): On Redhat 9, building the ssl stuff eventually X-Git-Tag: v2.2.3c1~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=971f0f0fb4c2cb48fd428d8f474834997da3f006;p=thirdparty%2FPython%2Fcpython.git 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. --- 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