Re: How to enable/disable my debug code?

2011-07-27 Thread Gary V. Vaughan
On 27 Jul 2011, at 12:56, narke wrote: With a same set of autoconf/automake files, how to I distribute my program that allows user to build it with or without debug code enabled? In my code, there are something like below: #if (__MY_DEBUG__) ... #endif Thanks in advance. For debug

Re: How to enable/disable my debug code?

2011-07-27 Thread narke
Hi, Gary On 27 July 2011 14:36, Gary V. Vaughan g...@vaughan.pe wrote: On 27 Jul 2011, at 12:56, narke wrote: With a same set of autoconf/automake files, how to I distribute my program that allows user to build it with or without debug code enabled?  In my code, there are something like

Re: How to enable/disable my debug code?

2011-07-27 Thread Gary V. Vaughan
On 27 Jul 2011, at 19:22, narke wrote: Hi, Gary Howdy! On 27 July 2011 14:36, Gary V. Vaughan g...@vaughan.pe wrote: On 27 Jul 2011, at 12:56, narke wrote: With a same set of autoconf/automake files, how to I distribute my program that allows user to build it with or without debug code

autoreconf: -V is not an alias for --verbose

2011-07-27 Thread Křištof Želechovski
{ autoreconf -V; } autoreconf (GNU Autoconf) 2.68 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html, http://gnu.org/licenses/exceptions.html This is free software: you are free to change and redistribute it. There

Re: How to enable/disable my debug code?

2011-07-27 Thread Rhys Ulerich
With a same set of autoconf/automake files, how to I distribute my program that allows user to build it with or without debug code enabled? Of course you can write (or find and copy) some Autoconf M4 code to do some or all of the above automatically depending on the presence of configure

Conditionally set CXXFLAGS based on directory via 1 configure.ac?

2011-07-27 Thread Xochitl Lunde
I have a project like this: Top Dir (configure.ac, etc.) - Source Dir -- Lib 1 -- Lib 2 -- Main Application - Test Dir -- Lib 1 Tests -- Lib 2 Tests I need to set -fno-exceptions in everything under Source Dir. But I need to have -fexceptions in everything under Test

Re: Conditionally set CXXFLAGS based on directory via 1 configure.ac?

2011-07-27 Thread Eric Blake
On 07/27/2011 04:13 PM, Xochitl Lunde wrote: Is there a nice way to conditionally add -fno-exceptions to CXXFLAGS for the Source Dir from configure.ac or elsewhere? I am sure I can go to each library under Source Dir and put -fno-exceptions in AM_CXXFLAGS, but is there a correct way to do it

Re: How to enable/disable my debug code?

2011-07-27 Thread narke
On 27 July 2011 21:13, Gary V. Vaughan g...@gnu.org wrote: On 27 Jul 2011, at 19:22, narke wrote: Hi, Gary Howdy! On 27 July 2011 14:36, Gary V. Vaughan g...@vaughan.pe wrote: On 27 Jul 2011, at 12:56, narke wrote: With a same set of autoconf/automake files, how to I distribute my program

Re: autoreconf: -V is not an alias for --verbose

2011-07-27 Thread Eric Blake
On 07/27/2011 07:21 AM, Křištof Želechovski wrote: { autoreconf -V; } autoreconf (GNU Autoconf) 2.68 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html,http://gnu.org/licenses/exceptions.html This is free

Re: autoreconf: -V is not an alias for --verbose

2011-07-27 Thread Stefano Lattarini
Hello Křištof. On Wednesday 27 July 2011, Křištof Želechovski wrote: { autoreconf -V; } autoreconf (GNU Autoconf) 2.68 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html,

Re: autoreconf: -V is not an alias for --verbose

2011-07-27 Thread Stefano Lattarini
On Wednesday 27 July 2011, Stefano Lattarini wrote: Hello Křištof. On Wednesday 27 July 2011, Křištof Želechovski wrote: { autoreconf -V; } autoreconf (GNU Autoconf) 2.68 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later