[PATCH] 641595 - Add configure option for default GDB path



I am embarrassed by this patch because Romain Tartière has filed it to
bugzilla a year ago and it somehow felt below my radar.  Apparently
bugzilla stopped forwarding me bugmails for a reason that is beyond
me.

The patch installs a configure option to chose the /default/ path to
GDB used by Nemiver.

Tested and applied it to master after tweaking it a little tiny bit.

I am really sorry for the delay in dealing with such an obvious patch.

commit c82866a02f68f87e307497e3629d09b29eaf9177
Author: Romain Tartière <romain blogreen org>
Date:   Sun Feb 19 11:29:14 2012 +0100

    641595 - Add configure option for default GDB path
    
    	* configure.ac: Add --with-default-gdb=/path/to/default/gdb/binary
    	configure option.

diff --git a/configure.ac b/configure.ac
index cc19a0d..1d45c0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,7 +87,11 @@ LT_INIT
 AC_LANG([C++])
 AC_LANG_COMPILER_REQUIRE
 
-AC_PATH_PROG(GDB_PROG,gdb)
+AC_ARG_WITH(default-gdb, AC_HELP_STRING([--with-default-gdb=filename], [Path to the default GDB binary]), GDB_PROG=${withval})
+
+if test x$GDB_PROG = x ; then
+    AC_PATH_PROG(GDB_PROG,gdb)
+fi
 
 if test x$GDB_PROG = x ; then
     AC_MSG_ERROR([didn't find the gdb debugger. please, install it.])



-- 
		Dodji


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]