Skip to content

Commit 2df2dba

Browse files
committed
Leave GDB_COMMAND undefined if it's undefined
This way we can use the preprocessor to check when it's undefined, not just the compiler.
1 parent 04b6280 commit 2df2dba

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

m4/libmesh_core_features.m4

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ AC_ARG_WITH([gdb-command],
1919
[gdb_command="$withval"],
2020
[gdb_command="no"])
2121
22-
AC_DEFINE_UNQUOTED(GDB_COMMAND, "$gdb_command", [command to invoke gdb])
23-
AC_MSG_RESULT([configuring gdb command... "$gdb_command"])
22+
AS_IF([test "$gdb_command" != no],
23+
[
24+
AC_DEFINE_UNQUOTED(GDB_COMMAND, "$gdb_command", [command to invoke gdb])
25+
AC_MSG_RESULT([configuring gdb command... "$gdb_command"])
26+
],
27+
[
28+
AC_MSG_RESULT([configuring with no gdb"])
29+
])
2430
# -------------------------------------------------------------
2531
2632

0 commit comments

Comments
 (0)