aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorSteffen Sledz <sledz@dresearch-fe.de>2013-11-27 18:51:49 +0000
committerPedro Alves <palves@redhat.com>2013-11-27 18:51:49 +0000
commit92a021debf2a247a03477b3450fd8f889a651ab2 (patch)
tree18709be556eb82822fcff2bbdbd780cac86cacdd /gdb/configure.ac
parent908fa2aaede2b3d1c33d167116101c2152e30616 (diff)
downloadgdb-92a021debf2a247a03477b3450fd8f889a651ab2.zip
gdb-92a021debf2a247a03477b3450fd8f889a651ab2.tar.gz
gdb-92a021debf2a247a03477b3450fd8f889a651ab2.tar.bz2
gdb: fix cygwin check in configure script
Avoid false positives if the search pattern "lose" is found in path descriptions in comments generated by the preprocessor. See <https://sourceware.org/bugzilla/show_bug.cgi?id=16152>. gdb/ 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de> * configure.ac: Tighten Cygwin detection check. * configure: Rebuild.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 9b73887..2947293 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1877,7 +1877,7 @@ AC_SUBST(WERROR_CFLAGS)
# In the Cygwin environment, we need some additional flags.
AC_CACHE_CHECK([for cygwin], gdb_cv_os_cygwin,
-[AC_EGREP_CPP(lose, [
+[AC_EGREP_CPP(^lose$, [
#if defined (__CYGWIN__) || defined (__CYGWIN32__)
lose
#endif],[gdb_cv_os_cygwin=yes],[gdb_cv_os_cygwin=no])])