mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 12:33:36 +08:00
764f1408a3
2001-03-16 Frank Ch. Eigler <fche@redhat.com> Add support for mmap-based memory regions. * sim-memopt.c (mmap_next_fd): New global. (sim_memory_init): Reinitialize it. (OPTION_MEMORY_MAPFILE, memory_option_handler): Support new "--memory-mapfile FILE" option. Check for some errors. (do_memopt_add): Conditionally do mmap instead of malloc for backing store of simulated memory. Check for more errors. (do_simopt_delete, sim_memory_uninstall): Corresponding cleanup. * sim-memopt.h (munmap_length): New member of _sim_memopt. * configure.in: Look for mmap/fstat related functions and headers. * config.in, configure: Regenerated.
42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
AC_PREREQ(2.5)dnl
|
|
AC_INIT(Makefile.in)
|
|
|
|
# This is intended for use by the target specific directories, and by us.
|
|
SIM_AC_COMMON(cconfig.h)
|
|
|
|
# Put a useful copy of CPP_FOR_TARGET in Makefile.
|
|
# This is only used to build the target values header files. These files are
|
|
# shipped with distributions so CPP_FOR_TARGET only needs to work in
|
|
# developer's trees. This value is borrowed from ../../Makefile.in.
|
|
CPP_FOR_TARGET="\` \
|
|
if test -f \$\${rootme}/../../gcc/Makefile ; then \
|
|
if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
|
|
echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
|
|
else \
|
|
echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
|
|
fi; \
|
|
else \
|
|
if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
|
|
echo \$(CC); \
|
|
else \
|
|
t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
|
|
fi; \
|
|
fi\` -E"
|
|
AC_SUBST(CPP_FOR_TARGET)
|
|
|
|
# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
|
|
if test x"${host}" = x"${target}" ; then
|
|
TARGET_SUBDIR="."
|
|
else
|
|
TARGET_SUBDIR=${target_alias}
|
|
fi
|
|
AC_SUBST(TARGET_SUBDIR)
|
|
|
|
# These aren't all needed yet, but will be eventually.
|
|
AC_CHECK_HEADERS(stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h)
|
|
AC_CHECK_FUNCS(mmap munmap)
|
|
|
|
AC_OUTPUT(Makefile,
|
|
[case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac])
|