[Python-Dev] Directions for reproducing the coredump
Eric S. Raymond
esr@thyrsus.com
Sat, 12 Aug 2000 07:50:57 -0400
M.-A. Lemburg <mal@lemburg.com>:
> > But this reminds me. There's way too much hand-hacking in the Setup
> > mechanism. It wouldn't be hard to enhance the Setup format to support
> > #if/#endif so that config.c generation could take advantage of
> > configure tests. That way, Setup could have constructs in it like
> > this:
> >
> > #if defined(CURSES)
> > #if defined(linux)
> > _curses _cursesmodule.c -lncurses
> > #else
> > _curses _cursesmodule.c -lcurses -ltermcap
> > #endif
> > #endif
> >
> > I'm willing to do and test this.
>
> This would be a *cool* thing to have :-)
>
> Definitely +1 from me if it's done in a portable way.
>
> (Not sure how you would get this to run without the C preprocessor
> though -- and Python's Makefile doesn't provide any information
> on how to call it in a platform independent way. It's probably
> cpp on most platforms, but you never know...)
Ah. The Makefile may not provide this information -- but I believe
configure can be made to!
--
<a href="http://www.tuxedo.org/~esr">Eric S. Raymond</a>
Ideology, politics and journalism, which luxuriate in failure, are
impotent in the face of hope and joy.
-- P. J. O'Rourke