mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-28 14:30:48 +00:00
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.
This commit is contained in:
parent
15add3f5e4
commit
c9a1864ab2
@ -1,3 +1,17 @@
|
||||
2012-04-12 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
|
||||
|
||||
* linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
|
||||
|
@ -47,12 +47,15 @@ EXEEXT = @EXEEXT@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
RANLIB = @RANLIB@
|
||||
|
||||
CC = @CC@
|
||||
|
||||
# Directory containing source files. Don't clean up the spacing,
|
||||
# this exact string is matched for by the "configure" script.
|
||||
srcdir = @srcdir@
|
||||
abs_top_srcdir=@abs_top_srcdir@
|
||||
abs_srcdir=@abs_srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
# It is also possible that you will need to add -I/usr/include/sys to the
|
||||
@ -72,12 +75,21 @@ INCLUDE_DEP = $$(INCLUDE_DIR)
|
||||
ustlibs = @ustlibs@
|
||||
ustinc = @ustinc@
|
||||
|
||||
# gnulib
|
||||
GNULIB_INCLUDE_DIR = $(srcdir)/../gnulib
|
||||
GNULIB_LIB = gnulib/libgnu.a
|
||||
|
||||
# Generated headers in the gnulib directory. These must be listed
|
||||
# so that they are generated before other files are compiled.
|
||||
GNULIB_H = gnulib/string.h @GNULIB_STDINT_H@
|
||||
|
||||
# All the includes used for CFLAGS and for lint.
|
||||
# -I. for config files.
|
||||
# -I${srcdir} for our headers.
|
||||
# -I$(srcdir)/../regformats for regdef.h.
|
||||
INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \
|
||||
-I$(srcdir)/../regformats -I$(INCLUDE_DIR)
|
||||
-I$(srcdir)/../regformats -I$(INCLUDE_DIR) \
|
||||
-I$(GNULIB_INCLUDE_DIR)
|
||||
|
||||
# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
|
||||
# from the config/ directory.
|
||||
@ -157,6 +169,8 @@ extra_libraries = @extra_libraries@
|
||||
FLAGS_TO_PASS = \
|
||||
"prefix=$(prefix)" \
|
||||
"exec_prefix=$(exec_prefix)" \
|
||||
"top_srcdir=$(abs_top_srcdir)/.." "srcdir=$(abs_srcdir)/../gnulib" \
|
||||
"VPATH=$(abs_top_srcdir)/../gnulib:$(abs_top_srcdir)" \
|
||||
"infodir=$(infodir)" \
|
||||
"datarootdir=$(datarootdir)" \
|
||||
"docdir=$(docdir)" \
|
||||
@ -192,6 +206,7 @@ FLAGS_TO_PASS = \
|
||||
${CC} -c ${INTERNAL_CFLAGS} $<
|
||||
|
||||
all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries)
|
||||
@cd gnulib; $(MAKE) $(FLAGS_TO_PASS) all
|
||||
|
||||
# Traditionally "install" depends on "all". But it may be useful
|
||||
# not to; for example, if the user has made some trivial change to a
|
||||
@ -212,11 +227,13 @@ install-only:
|
||||
$(INSTALL_PROGRAM) gdbserver$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT); \
|
||||
$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(man1dir); \
|
||||
$(INSTALL_DATA) $(srcdir)/gdbserver.1 $(DESTDIR)$(man1dir)/$$n.1
|
||||
@cd gnulib; $(MAKE) $(FLAGS_TO_PASS) install
|
||||
|
||||
uninstall: force
|
||||
n=`echo gdbserver | sed '$(program_transform_name)'`; \
|
||||
if [ x$$n = x ]; then n=gdbserver; else true; fi; \
|
||||
rm -f $(DESTDIR)/$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(man1dir)/$$n.1
|
||||
@cd gnulib; $(MAKE) $(FLAGS_TO_PASS) uninstall
|
||||
|
||||
installcheck:
|
||||
check:
|
||||
@ -225,12 +242,19 @@ install-info:
|
||||
install-pdf:
|
||||
html:
|
||||
install-html:
|
||||
clean-info:
|
||||
clean-info: force
|
||||
@cd gnulib; $(MAKE) $(FLAGS_TO_PASS) $@
|
||||
|
||||
gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS}
|
||||
gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} $(GNULIB_LIB)
|
||||
rm -f gdbserver$(EXEEXT)
|
||||
${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \
|
||||
$(GDBSERVER_LIBS) $(XM_CLIBS)
|
||||
$(GNULIB_LIB) $(GDBSERVER_LIBS) $(XM_CLIBS)
|
||||
|
||||
$(GNULIB_LIB) $(GNULIB_H): all-lib
|
||||
all-lib: gnulib/Makefile
|
||||
@cd gnulib; $(MAKE) $(FLAGS_TO_PASS) all
|
||||
|
||||
.PHONY: all-lib
|
||||
|
||||
gdbreplay$(EXEEXT): $(GDBREPLAY_OBS)
|
||||
rm -f gdbreplay$(EXEEXT)
|
||||
@ -284,10 +308,12 @@ clean:
|
||||
rm -f i386-avx.c i386-avx-linux.c
|
||||
rm -f amd64-avx.c amd64-avx-linux.c
|
||||
rm -f i386-mmx.c i386-mmx-linux.c
|
||||
@cd gnulib; $(MAKE) $(FLAGS_TO_PASS) clean
|
||||
|
||||
maintainer-clean realclean distclean: clean
|
||||
rm -f nm.h tm.h xm.h config.status config.h stamp-h config.log
|
||||
rm -f Makefile
|
||||
@cd gnulib; $(MAKE) $(FLAGS_TO_PASS) $@
|
||||
|
||||
config.h: stamp-h ; @true
|
||||
stamp-h: config.in config.status
|
||||
@ -296,9 +322,22 @@ stamp-h: config.in config.status
|
||||
Makefile: Makefile.in config.status
|
||||
CONFIG_HEADERS="" $(SHELL) ./config.status
|
||||
|
||||
gnulib/Makefile: $(srcdir)/../gnulib/Makefile.in config.status
|
||||
CONFIG_COMMANDS="depfiles" \
|
||||
CONFIG_HEADERS= \
|
||||
CONFIG_LINKS= \
|
||||
$(SHELL) config.status "gnulib/Makefile"
|
||||
|
||||
config.status: configure configure.srv
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
# automatic rebuilding in automake-generated Makefiles requires
|
||||
# this rule in the toplevel Makefile, which, with GNU make, causes
|
||||
# the desired updates through the implicit regeneration of the Makefile
|
||||
# and all of its prerequisites.
|
||||
am--refresh:
|
||||
@:
|
||||
|
||||
force:
|
||||
|
||||
version.c: Makefile $(srcdir)/../version.in
|
||||
@ -436,14 +475,6 @@ buffer.o: ../common/buffer.c $(server_h)
|
||||
agent.o: ../common/agent.c $(server_h) $(agent_h)
|
||||
$(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< -DGDBSERVER
|
||||
|
||||
# We build memmem.c without -Werror because this file is not under
|
||||
# our control. On LynxOS, the compiler generates some warnings
|
||||
# because str-two-way.h uses a constant (MAX_SIZE) whose definition
|
||||
# makes it ambiguous whether it is signed or unsigned ("warning: this
|
||||
# decimal constant is unsigned only in ISO C90").
|
||||
memmem.o: ../gnulib/memmem.c
|
||||
$(CC) -o memmem.o -c $(CPPFLAGS) $(INTERNAL_WARN_CFLAGS) $<
|
||||
|
||||
# We build vasprintf with -DHAVE_CONFIG_H because we want that unit to
|
||||
# include our config.h file. Otherwise, some system headers do not get
|
||||
# included, and the compiler emits a warning about implicitly defined
|
||||
|
996
gdb/gdbserver/aclocal.m4
vendored
996
gdb/gdbserver/aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,24 @@
|
||||
/* config.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define if the compiler is building for multiple architectures of Apple
|
||||
platforms at once. */
|
||||
#undef AA_APPLE_UNIVERSAL_BUILD
|
||||
|
||||
/* Define to the number of bits in type 'ptrdiff_t'. */
|
||||
#undef BITSIZEOF_PTRDIFF_T
|
||||
|
||||
/* Define to the number of bits in type 'sig_atomic_t'. */
|
||||
#undef BITSIZEOF_SIG_ATOMIC_T
|
||||
|
||||
/* Define to the number of bits in type 'size_t'. */
|
||||
#undef BITSIZEOF_SIZE_T
|
||||
|
||||
/* Define to the number of bits in type 'wchar_t'. */
|
||||
#undef BITSIZEOF_WCHAR_T
|
||||
|
||||
/* Define to the number of bits in type 'wint_t'. */
|
||||
#undef BITSIZEOF_WINT_T
|
||||
|
||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
||||
systems. This function is required for `alloca.c' support on those systems.
|
||||
*/
|
||||
@ -8,6 +27,12 @@
|
||||
/* Define to 1 if using `alloca.c'. */
|
||||
#undef C_ALLOCA
|
||||
|
||||
/* Define to 1 when the gnulib module memchr should be tested. */
|
||||
#undef GNULIB_TEST_MEMCHR
|
||||
|
||||
/* Define to 1 when the gnulib module memmem should be tested. */
|
||||
#undef GNULIB_TEST_MEMMEM
|
||||
|
||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
||||
#undef HAVE_ALLOCA
|
||||
|
||||
@ -18,6 +43,9 @@
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||
#undef HAVE_ARPA_INET_H
|
||||
|
||||
/* Define to 1 if you have the <bp-sym.h> header file. */
|
||||
#undef HAVE_BP_SYM_H
|
||||
|
||||
/* Define to 1 if you have the declaration of `ADDR_NO_RANDOMIZE', and to 0 if
|
||||
you don't. */
|
||||
#undef HAVE_DECL_ADDR_NO_RANDOMIZE
|
||||
@ -82,18 +110,31 @@
|
||||
/* Define if the target supports PTRACE_PEEKUSR for register access. */
|
||||
#undef HAVE_LINUX_USRREGS
|
||||
|
||||
/* Define to 1 if the system has the type `long long int'. */
|
||||
#undef HAVE_LONG_LONG_INT
|
||||
|
||||
/* Define if <sys/procfs.h> has lwpid_t. */
|
||||
#undef HAVE_LWPID_T
|
||||
|
||||
/* Define to 1 if you have the <malloc.h> header file. */
|
||||
#undef HAVE_MALLOC_H
|
||||
|
||||
/* Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including
|
||||
config.h and <sys/mman.h>. */
|
||||
#undef HAVE_MAP_ANONYMOUS
|
||||
|
||||
/* Define to 1 if you have the `memchr' function. */
|
||||
#undef HAVE_MEMCHR
|
||||
|
||||
/* Define to 1 if you have the `memmem' function. */
|
||||
#undef HAVE_MEMMEM
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the `mprotect' function. */
|
||||
#undef HAVE_MPROTECT
|
||||
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
#undef HAVE_NDIR_H
|
||||
|
||||
@ -134,6 +175,90 @@
|
||||
/* Define to 1 if you have the `pwrite' function. */
|
||||
#undef HAVE_PWRITE
|
||||
|
||||
/* Define to 1 if btowc is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_BTOWC
|
||||
|
||||
/* Define to 1 if mbrlen is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MBRLEN
|
||||
|
||||
/* Define to 1 if mbrtowc is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MBRTOWC
|
||||
|
||||
/* Define to 1 if mbsinit is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MBSINIT
|
||||
|
||||
/* Define to 1 if mbsnrtowcs is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MBSNRTOWCS
|
||||
|
||||
/* Define to 1 if mbsrtowcs is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MBSRTOWCS
|
||||
|
||||
/* Define to 1 if memmem is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MEMMEM
|
||||
|
||||
/* Define to 1 if mempcpy is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MEMPCPY
|
||||
|
||||
/* Define to 1 if memrchr is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_MEMRCHR
|
||||
|
||||
/* Define to 1 if rawmemchr is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_RAWMEMCHR
|
||||
|
||||
/* Define to 1 if stpcpy is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STPCPY
|
||||
|
||||
/* Define to 1 if stpncpy is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STPNCPY
|
||||
|
||||
/* Define to 1 if strcasestr is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRCASESTR
|
||||
|
||||
/* Define to 1 if strchrnul is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRCHRNUL
|
||||
|
||||
/* Define to 1 if strdup is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRDUP
|
||||
|
||||
/* Define to 1 if strncat is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRNCAT
|
||||
|
||||
/* Define to 1 if strndup is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRNDUP
|
||||
|
||||
/* Define to 1 if strnlen is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRNLEN
|
||||
|
||||
/* Define to 1 if strpbrk is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRPBRK
|
||||
|
||||
/* Define to 1 if strsep is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRSEP
|
||||
|
||||
/* Define to 1 if strsignal is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRSIGNAL
|
||||
|
||||
/* Define to 1 if strtok_r is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRTOK_R
|
||||
|
||||
/* Define to 1 if strverscmp is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_STRVERSCMP
|
||||
|
||||
/* Define to 1 if wcrtomb is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_WCRTOMB
|
||||
|
||||
/* Define to 1 if wcsnrtombs is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_WCSNRTOMBS
|
||||
|
||||
/* Define to 1 if wcsrtombs is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_WCSRTOMBS
|
||||
|
||||
/* Define to 1 if wctob is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_WCTOB
|
||||
|
||||
/* Define to 1 if wcwidth is declared even after undefining macros. */
|
||||
#undef HAVE_RAW_DECL_WCWIDTH
|
||||
|
||||
/* Define to 1 if you have the `readlink' function. */
|
||||
#undef HAVE_READLINK
|
||||
|
||||
@ -143,9 +268,21 @@
|
||||
/* Define to 1 if you have the <signal.h> header file. */
|
||||
#undef HAVE_SIGNAL_H
|
||||
|
||||
/* Define to 1 if 'sig_atomic_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_SIG_ATOMIC_T
|
||||
|
||||
/* Define to 1 if 'wchar_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_WCHAR_T
|
||||
|
||||
/* Define to 1 if 'wint_t' is a signed integer type. */
|
||||
#undef HAVE_SIGNED_WINT_T
|
||||
|
||||
/* Define to 1 if the system has the type `socklen_t'. */
|
||||
#undef HAVE_SOCKLEN_T
|
||||
|
||||
/* Define to 1 if you have the <stddef.h> header file. */
|
||||
#undef HAVE_STDDEF_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
@ -161,6 +298,9 @@
|
||||
/* Define to 1 if the target supports __sync_*_compare_and_swap */
|
||||
#undef HAVE_SYNC_BUILTINS
|
||||
|
||||
/* Define to 1 if you have the <sys/bitypes.h> header file. */
|
||||
#undef HAVE_SYS_BITYPES_H
|
||||
|
||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#undef HAVE_SYS_DIR_H
|
||||
@ -168,9 +308,15 @@
|
||||
/* Define to 1 if you have the <sys/file.h> header file. */
|
||||
#undef HAVE_SYS_FILE_H
|
||||
|
||||
/* Define to 1 if you have the <sys/inttypes.h> header file. */
|
||||
#undef HAVE_SYS_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
||||
#undef HAVE_SYS_IOCTL_H
|
||||
|
||||
/* Define to 1 if you have the <sys/mman.h> header file. */
|
||||
#undef HAVE_SYS_MMAN_H
|
||||
|
||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#undef HAVE_SYS_NDIR_H
|
||||
@ -211,6 +357,9 @@
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define to 1 if the system has the type `unsigned long long int'. */
|
||||
#undef HAVE_UNSIGNED_LONG_LONG_INT
|
||||
|
||||
/* Define if UST is available */
|
||||
#undef HAVE_UST
|
||||
|
||||
@ -220,6 +369,18 @@
|
||||
/* Define to 1 if you have the `vsnprintf' function. */
|
||||
#undef HAVE_VSNPRINTF
|
||||
|
||||
/* Define to 1 if you have the <wchar.h> header file. */
|
||||
#undef HAVE_WCHAR_H
|
||||
|
||||
/* Define if you have the 'wchar_t' type. */
|
||||
#undef HAVE_WCHAR_T
|
||||
|
||||
/* Define if you have the 'wint_t' type. */
|
||||
#undef HAVE_WINT_T
|
||||
|
||||
/* Define to a substitute value for mmap()'s MAP_ANONYMOUS flag. */
|
||||
#undef MAP_ANONYMOUS
|
||||
|
||||
/* Checking if errno must be defined */
|
||||
#undef MUST_DEFINE_ERRNO
|
||||
|
||||
@ -244,9 +405,21 @@
|
||||
/* Additional package description */
|
||||
#undef PKGVERSION
|
||||
|
||||
/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
|
||||
'ptrdiff_t'. */
|
||||
#undef PTRDIFF_T_SUFFIX
|
||||
|
||||
/* Bug reporting address */
|
||||
#undef REPORT_BUGS_TO
|
||||
|
||||
/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
|
||||
'sig_atomic_t'. */
|
||||
#undef SIG_ATOMIC_T_SUFFIX
|
||||
|
||||
/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
|
||||
'size_t'. */
|
||||
#undef SIZE_T_SUFFIX
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at runtime.
|
||||
@ -261,6 +434,35 @@
|
||||
/* Define if we should use libthread_db directly. */
|
||||
#undef USE_LIBTHREAD_DB_DIRECTLY
|
||||
|
||||
/* Define if we should use the Windows API, instead of the POSIX API. On
|
||||
Windows, we use the Windows API when building for MinGW, but the POSIX API
|
||||
when building for Cygwin. */
|
||||
#undef USE_WIN32API
|
||||
|
||||
/* Define if an XML target description is available. */
|
||||
#undef USE_XML
|
||||
|
||||
/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
|
||||
'wchar_t'. */
|
||||
#undef WCHAR_T_SUFFIX
|
||||
|
||||
/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
|
||||
'wint_t'. */
|
||||
#undef WINT_T_SUFFIX
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
#undef _POSIX_1_SOURCE
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Define to 500 only on HP-UX. */
|
||||
#undef _XOPEN_SOURCE
|
||||
|
||||
/* Enable extensions on AIX 3, Interix. */
|
||||
#ifndef _ALL_SOURCE
|
||||
# undef _ALL_SOURCE
|
||||
@ -283,20 +485,39 @@
|
||||
#endif
|
||||
|
||||
|
||||
/* Define if we should use the Windows API, instead of the POSIX API. On
|
||||
Windows, we use the Windows API when building for MinGW, but the POSIX API
|
||||
when building for Cygwin. */
|
||||
#undef USE_WIN32API
|
||||
/* Work around a bug in Apple GCC 4.0.1 build 5465: In C99 mode, it supports
|
||||
the ISO C 99 semantics of 'extern inline' (unlike the GNU C semantics of
|
||||
earlier versions), but does not display it by setting __GNUC_STDC_INLINE__.
|
||||
__APPLE__ && __MACH__ test for MacOS X.
|
||||
__APPLE_CC__ tests for the Apple compiler and its version.
|
||||
__STDC_VERSION__ tests for the C99 mode. */
|
||||
#if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
|
||||
# define __GNUC_STDC_INLINE__ 1
|
||||
#endif
|
||||
|
||||
/* Define if an XML target description is available. */
|
||||
#undef USE_XML
|
||||
/* Define to the equivalent of the C99 'restrict' keyword, or to
|
||||
nothing if this is not supported. Do not define if restrict is
|
||||
supported directly. */
|
||||
#undef restrict
|
||||
/* Work around a bug in Sun C++: it does not support _Restrict or
|
||||
__restrict__, even though the corresponding Sun C compiler ends up with
|
||||
"#define restrict _Restrict" or "#define restrict __restrict__" in the
|
||||
previous line. Perhaps some future version of Sun C++ will work with
|
||||
restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
|
||||
#if defined __SUNPRO_CC && !defined __RESTRICT
|
||||
# define _Restrict
|
||||
# define __restrict__
|
||||
#endif
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#undef _MINIX
|
||||
/* Define as a marker that can be attached to declarations that might not
|
||||
be used. This helps to reduce warnings, such as from
|
||||
GCC -Wunused-parameter. */
|
||||
#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
|
||||
# define _GL_UNUSED __attribute__ ((__unused__))
|
||||
#else
|
||||
# define _GL_UNUSED
|
||||
#endif
|
||||
/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name
|
||||
is a misnomer outside of parameter lists. */
|
||||
#define _UNUSED_PARAMETER_ _GL_UNUSED
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
#undef _POSIX_1_SOURCE
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
3693
gdb/gdbserver/configure
vendored
3693
gdb/gdbserver/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -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 ;;
|
||||
|
Loading…
Reference in New Issue
Block a user