aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/configure.ac
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-04-12 11:11:01 +0000
committerYao Qi <yao@codesourcery.com>2012-04-12 11:11:01 +0000
commitc9a1864ab2c53c0a4b7454a67db515631610fd72 (patch)
tree89a562f3468fb6f2de2bff066bbc9eddad2d932b /gdb/gdbserver/configure.ac
parent15add3f5e46f265033c3c03c375559682e4ea268 (diff)
downloadgdb-c9a1864ab2c53c0a4b7454a67db515631610fd72.zip
gdb-c9a1864ab2c53c0a4b7454a67db515631610fd72.tar.gz
gdb-c9a1864ab2c53c0a4b7454a67db515631610fd72.tar.bz2
gdb/gdbserver/
* Makefile.in: Define abs_top_srcdir and abs_srcdir. (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR. (install-only, install-info, clean): Handle sub dir gnulib. (all-lib, am--refresh): New targets. (memmem.o): Remove target. * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR. Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make. (AC_REPLACE_FUNCS): Remove memmem. Invoke gl_INIT and AM_INIT_AUTOMAKE. (AC_OUTPUT): Generate Makefile in gnulib/. * aclocal.m4, config.in, configure: Regenerated.
Diffstat (limited to 'gdb/gdbserver/configure.ac')
-rw-r--r--gdb/gdbserver/configure.ac23
1 files changed, 20 insertions, 3 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac
index 9ac4232..5e989fa 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdb/gdbserver/configure.ac
@@ -22,9 +22,11 @@ AC_PREREQ(2.59)dnl
AC_INIT(server.c)
AC_CONFIG_HEADER(config.h:config.in)
-AC_CONFIG_LIBOBJ_DIR(../gnulib)
+
+AM_MAINTAINER_MODE
AC_PROG_CC
+gl_EARLY
AC_GNU_SOURCE
AC_CANONICAL_SYSTEM
@@ -37,6 +39,10 @@ AC_HEADER_STDC
AC_HEADER_DIRENT
AC_FUNC_ALLOCA
+
+# Check for the 'make' the user wants to use.
+AC_CHECK_PROGS(MAKE, make)
+
AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl
proc_service.h sys/procfs.h thread_db.h linux/elf.h dnl
stdlib.h unistd.h dnl
@@ -44,7 +50,7 @@ AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl
sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl
netinet/tcp.h arpa/inet.h sys/wait.h sys/un.h)
AC_CHECK_FUNCS(pread pwrite pread64 readlink)
-AC_REPLACE_FUNCS(memmem vasprintf vsnprintf)
+AC_REPLACE_FUNCS(vasprintf vsnprintf)
# Check for UST
ustlibs=""
@@ -423,7 +429,18 @@ AC_SUBST(srv_xmlfiles)
AC_SUBST(IPA_DEPFILES)
AC_SUBST(extra_libraries)
-AC_OUTPUT(Makefile,
+gl_INIT
+# GDBserver does not use automake, but gnulib does. This line lets
+# us generate its Makefile.in.
+AM_INIT_AUTOMAKE(gdbserver, UNUSED-VERSION, [no-define])
+
+GNULIB_STDINT_H=
+if test x"$STDINT_H" != x; then
+ GNULIB_STDINT_H=gnulib/$STDINT_H
+fi
+AC_SUBST(GNULIB_STDINT_H)
+
+AC_OUTPUT(Makefile gnulib/Makefile:${srcdir}/../gnulib/Makefile.in,
[case x$CONFIG_HEADERS in
xconfig.h:config.in)
echo > stamp-h ;;