Re: How do I build debug versions?

2001-03-07 Thread Dean Hoover
Shameek Basu wrote: [snip HTML stuff] I am also a newbie at this. I've "solved" a small portion of your problem, with some help from others on this list. Here's what I'd do. in your top level Makefile.am file, add a target: debug: $(MAKE) all "CXXFLAGS=-g -DDEBUG" now, if you want to have

Re: How do I build debug versions?

2001-03-07 Thread Alexandre Duret-Lutz
>>> "Dean" == Dean Hoover <[EMAIL PROTECTED]> writes: [...] Dean> Another thing you could do is make multiple build directories Dean> and always make in a certain way in them. In other words, you Dean> could: Dean> mkdir debug-build opt-build Dean> cd debug-build; $top_srcdir/configure; ma

Re: How do I build debug versions?

2001-03-07 Thread Guido Draheim
Alexandre Duret-Lutz wrote: > > >>> "Dean" == Dean Hoover <[EMAIL PROTECTED]> writes: > > [...] > > Dean> Another thing you could do is make multiple build directories > Dean> and always make in a certain way in them. In other words, you > Dean> could: > > Dean> mkdir debug-build opt-build

config headers and #undefs

2001-03-07 Thread Kevin Ryde
I'm using AM_CONFIG_HEADER to insert a couple of configure-time defines into headers which will be installed. This works well, except that I want to have one literal #undef pass through, rather than be commented out like normally happens. Perhaps a special marker could stop selected #undef's fro

Detecting the need for -mwin32 in newer cygwin gcc's

2001-03-07 Thread Christopher Faylor
We've made a change in the newest version of cygwin that stops the Windows headers from being searched unless a -mwin32 option is specified on the gcc command line. This option also causes Windows options like "WIN32" to be defined automatically. We've done this to make porting easier for some p

Re: Rename atomicity

2001-03-07 Thread Mike Castle
On Tue, Mar 06, 2001 at 05:51:45PM +0100, Assar Westerlund wrote: > Mike Castle <[EMAIL PROTECTED]> writes: > > NT. (NT will happily rename() across disks, hardly an atomic operation). > > What rename() is that? It's not the one in their posix library I > assume? Is there a rename function in

Re: config headers and #undefs

2001-03-07 Thread Guido Draheim
Kevin Ryde wrote: > > #define __need_size_t > #include > #undef __need_size_t /*NOTATEMPLATE*/ #ifdef __undef_need_size_t #undef __need_size_t #endif BTW, if you want to install a config.h file, you may want to use this: http://pfe.sourceforge.net/autoconf/ac_prefix_

Re: config headers and #undefs

2001-03-07 Thread Kevin Ryde
Guido Draheim <[EMAIL PROTECTED]> writes: > > #ifdef __undef_need_size_t > #undef __need_size_t > #endif No, that still gets transformed to #ifdef __undef_need_size_t /* #undef __need_size_t */ #endif > BTW, if you want to install a config.h file, you may want to use th

Re: Detecting the need for -mwin32 in newer cygwin gcc's

2001-03-07 Thread Alexandre Oliva
On Mar 7, 2001, Christopher Faylor <[EMAIL PROTECTED]> wrote: > Basically, I think we need something like a AC_PROG_GCC_USES_MWIN32. I have mixed feelings about having this macro in autoconf. On one hand, it would be kind of promoting the use of proprietary software. On the other, I see it wou