aboutsummaryrefslogtreecommitdiff
path: root/gdb/acinclude.m4
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-01-04 00:34:43 +0000
committerMark Kettenis <kettenis@gnu.org>2003-01-04 00:34:43 +0000
commit14abd0fbf038d0e7cd2f76061538c309b5fd8ca9 (patch)
treeed1b374d006aba087e1ab1d756ff980b8935bd50 /gdb/acinclude.m4
parenta1ba22c71a9375846860ba4e47413bf7d339a644 (diff)
downloadgdb-14abd0fbf038d0e7cd2f76061538c309b5fd8ca9.zip
gdb-14abd0fbf038d0e7cd2f76061538c309b5fd8ca9.tar.gz
gdb-14abd0fbf038d0e7cd2f76061538c309b5fd8ca9.tar.bz2
* configure.in: Call AC_GNU_SOURCE. Check for pread64 using
AC_CHECK_FUNCS and remove the old check for pread64. * acinclude.m4 (AC_GNU_SOURCE): New macro. * acconfig.h (_GNU_SOURCE): Add. (HAVE_PREAD64): Remove. * configure, aclocal.m4, config.in: Regenerated.
Diffstat (limited to 'gdb/acinclude.m4')
-rw-r--r--gdb/acinclude.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4
index ef6876d..a215108 100644
--- a/gdb/acinclude.m4
+++ b/gdb/acinclude.m4
@@ -918,3 +918,12 @@ size_t iconv();
fi
AC_SUBST(LIBICONV)
])
+
+# AC_GNU_SOURCE
+# -------------
+# FIXME: Remove thise once we start using Autoconf 2.5x (x>=4).
+AC_DEFUN([AC_GNU_SOURCE],
+[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl
+AC_BEFORE([$0], [AC_TRY_RUN])dnl
+AC_DEFINE([_GNU_SOURCE])
+])