Regarding 2a5e626aa6e08d894e74af053236947cced8ff87
Am Freitag, den 24.07.2009, 22:00 -0400 schrieb Jeff Garzik:
Quoted 23 lines
Quoted 22 lines · Fabian Deutsch
Am Donnerstag, den 23.07.2009, 14:10 -0400 schrieb Jeff Garzik:
Quoted 20 lines
Quoted 8 lines · Fabian Deutsch
Quoted 8 lines
Quoted 8 lines
Regarding the aboved mentioned commit, I'd suggest using
#define
CLD_DEF_DATADIR"/tmp/cld/lib"instead of
#define
CLD_DEF_DATADIR"/spare/tmp/cld/lib"Quoted 7 lines
Quoted 4 lines
Quoted 1 line
as /tmp seems to be more present than /spare.
True, though ideally someone should go through Fedora and autotools, and figure out the proper location -- most likely somewhere in /var. You never want permanent data in /tmp, either. :)
Yeah, reboots might have surprising effects :)
Maybe something like the attached patch: Using autools vars to determin some paths ..Your patch is heading in the right direction, but I have a few comments...
* IIRC,
AC_DEFINE()macro in configure.ac is the right place to define this sort of thing
Quoted 6 lines
Quoted 4 lines
I've followed the recommended way mentioned here:
http://www.gnu.org/software/autoconf/manual/html_node/Installation-Directory-Variables.html#Installation-Directory-Variables
AC_DEFINEshall not be used per se ...Well, I disagree [with GNU], but it's a standard, so we'll go this way...
So, you two pence, why AC_DEFINE would be a betterw ay?
- fabian
Quoted 19 lines · Fabian Deutsch
Am Freitag, den 24.07.2009, 22:00 -0400 schrieb Jeff Garzik:
Quoted 18 lines
Quoted 17 lines · Fabian Deutsch
Am Donnerstag, den 23.07.2009, 14:10 -0400 schrieb Jeff Garzik:
Quoted 16 lines
Quoted 6 lines · Fabian Deutsch
Quoted 6 lines
Quoted 6 lines
Regarding the aboved mentioned commit, I'd suggest using
#define
CLD_DEF_DATADIR"/tmp/cld/lib"instead of
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
#define
CLD_DEF_DATADIR"/spare/tmp/cld/lib"as /tmp seems to be more present than /spare.
True, though ideally someone should go through Fedora and autotools, and figure out the proper location -- most likely somewhere in /var. You never want permanent data in /tmp, either. :)
Yeah, reboots might have surprising effects :)
Maybe something like the attached patch: Using autools vars to determin some paths ..Your patch is heading in the right direction, but I have a few comments...
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
* IIRC,
AC_DEFINE()macro in configure.ac is the right place to define this sort of thingI've followed the recommended way mentioned here:
http://www.gnu.org/software/autoconf/manual/html_node/Installation-Directory-Variables.html#Installation-Directory-Variables
AC_DEFINEshall not be used per se ...Well, I disagree [with GNU], but it's a standard, so we'll go this way...
So, you two pence, why
AC_DEFINEwould be a betterw ay?
Not necessarily better, but more consistent.
*-config.h serves as the home for most configure-generated/set C pre-processor defines and macros.
It seems inconsistent that one or two special case CPP macros are found in the Makefile.am INCLUDES statements, rather than with the rest of the settings in *-config.h.
Or IOW, I like my C code [and C pre-processor code] in .c and .h files, not in Makefiles ;-) Putting C defines or code in Makefiles violates the Principle of Least Surprise, in my opinion.
Jeff