From: Olly B. <ol...@su...> - 2003-04-18 12:26:20
|
On Wed, Apr 16, 2003 at 07:00:05PM +0000, Philippe Elie wrote: > Yes, it's a better way but the trivial: > > AC_PATH_PROG(GDB, gdb) > AC_DEFINE(GDB_PATH, @GDB@, "gdb path") > AC_SUBST(GDB) > > doesn't work cause configure don't do subsititution in > config.h.in when creating config.h, I don't think there is > any way to put it in config.h.in. There is - just use this: AC_PATH_PROG(GDB, gdb) AC_DEFINE_UNQUOTED(GDB_PATH, "$GDB", "gdb with path") Note that you must use AC_DEFINE_UNQUOTED instead of AC_DEFINE to get $GDB expanded before it is substituted - otherwise config.h will contain: #define GDB_PATH "$GDB" Cheers, Olly |