how to detect if gdb has been compiled with python support?

Maurizio Vitale <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAAeLbQL3OofekF3cVLV3Fdbrcf9kDS4C=JjdV2eNUL7Rk_jyMg@mail.gmail.com>
in my gdbinitrc I source python extensions. In my organization we have also
gdbs compiled without python linked in and I'd like to give a clear message
about it.
Any programmatic way to check whether Python is compiled in?

Thanks,

  Maurizio
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.