]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/configure: realign the AC_ARG_ENABLE(sim, ....) block
authorAndrew Burgess <aburgess@redhat.com>
Mon, 8 Apr 2024 09:56:51 +0000 (10:56 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 8 Apr 2024 09:56:51 +0000 (10:56 +0100)
Following the suggestion in this review comment:

  https://inbox.sourceware.org/gdb-patches/9420bbb0-2614-4847-9157-8562f8a62d03@simark.ca

this commit realigns the AC_ARG_ENABLE(sim, ....) block.  I've added
additional [...] quoting in a couple of places, which is inline with
how other AC_ARG_ENABLE blocks are formatted within GDB's configure.ac
file.

There should be no change in how GDB configures or builds after this
commit.

gdb/configure
gdb/configure.ac

index ffbc14493e260453d85435cedf909571fc4f45d7..a77e3e27332855c2b520bb8cada5658e970ee7ae 100755 (executable)
 if test "${enable_sim+set}" = set; then :
   enableval=$enable_sim; { $as_echo "$as_me:${as_lineno-$LINENO}: enable_sim = $enable_sim" >&5
 $as_echo "$as_me: enable_sim = $enable_sim" >&6;};
- { $as_echo "$as_me:${as_lineno-$LINENO}: enableval = ${enableval}" >&5
             { $as_echo "$as_me:${as_lineno-$LINENO}: enableval = ${enableval}" >&5
 $as_echo "$as_me: enableval = ${enableval}" >&6;};
- case "${enableval}" in
-  yes) ignore_sim=false ;;
-  no)  ignore_sim=true ;;
-  *)   ignore_sim=false ;;
- esac
             case "${enableval}" in
+                yes) ignore_sim=false ;;
+                no)  ignore_sim=true ;;
+                *)   ignore_sim=false ;;
             esac
 else
   ignore_sim=false
 fi
index 28e750b6b435182124f47afd7717fdf3a32e62dd..62ff09cea204360bda1573b6c12faeb98854fa3c 100644 (file)
@@ -2030,16 +2030,16 @@ AC_PATH_X
 # are when --disable-sim is specified, or if the simulator directory is
 # not part of the source tree.
 #
-AC_ARG_ENABLE(sim,
-AS_HELP_STRING([--enable-sim], [link gdb with simulator]),
-[AC_MSG_NOTICE([enable_sim = $enable_sim]);
- AC_MSG_NOTICE([enableval = ${enableval}]);
- case "${enableval}" in
-  yes) ignore_sim=false ;;
-  no)  ignore_sim=true ;;
-  *)   ignore_sim=false ;;
- esac],
-[ignore_sim=false])
+AC_ARG_ENABLE([sim],
+             [AS_HELP_STRING([--enable-sim], [link gdb with simulator])],
+             [AC_MSG_NOTICE([enable_sim = $enable_sim]);
             AC_MSG_NOTICE([enableval = ${enableval}]);
             case "${enableval}" in
+                yes) ignore_sim=false ;;
+                no)  ignore_sim=true ;;
+                *)   ignore_sim=false ;;
             esac],
+              [ignore_sim=false])
 
 if test ! -d "${srcdir}/../sim"; then
   ignore_sim=true