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



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.

 configure.ac |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
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.])



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