mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
b11d79f2b2
2009-09-07 Tristan Gingold <gingold@adacore.com> * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER, BFD_HAVE_SYS_STAT_TYPE_MEMBER): Moved to gas/acinclude.m4 * configure.in: Move tests for tm_gmtoff, st_mtim.tv_sec and st_mtim.tv_nsec to gas/configure.in (bfd_elf64_ia64_vms_vec): Remove vmsutil.lo * configure: Regenerate. * config.in: Regenerate. * vmsutil.c: Moved to gas/config/te-vms.c * vmsutil.h: Removed. * Makefile.am (BFD32_BACKENDS_CFILES): Remove vmsutil.c (BFD32_BACKENDS): Remove vmsutil.lo * Makefile.in: Regenerate. gas/: 2009-09-07 Tristan Gingold <gingold@adacore.com> * Makefile.am (TARG_ENV_CFILES): New variable. Set to te-vms.c (POTFILES): Add $(TARG_ENV_CFILES) in definition. (EXTRA_as_new_SOURCES): Ditto. * Makefile: Regenerate. * acinclude.m4 (BFD_HAVE_TIME_TYPE_MEMBER, BFD_HAVE_SYS_STAT_TYPE_MEMBER): New macro created from bfd/bfd.m4. * configure.in: Add Tests for tm_gmtoff, st_mtim.tv_sec and st_mtim.tv_nsec (from bfd/configure.in). Check for time.h and sys/stat.h headers. Add te-vms.o in extra_objects if te_file is vms. * configure: Regenerate. * config.in: Regenerate. * config/te-vms.c: New file, from bfd/vmsutil.c (vms_dwarf2_file_time_name, vms_dwarf2_file_size_name) (vms_dwarf2_file_name): New functions. (vms_file_stats_name): Make it static, add a dirname parameter to locally create the full pathname. * config/te-vms.h: Add a copyright header. Declare the above functions. (DWARF2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILE_NAME): Use the above functions in the definition. * makefile.vms (OBJS): Add te-vms.obj. (te-vms.obj): Create a specific target. * configure.com: Create targ-env.h using a per target value. Compile te-vms.c for ia64.
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
dnl This file was derived from acinclude.m4.
|
|
|
|
|
|
dnl Check for existence of a type $1 in sys/procfs.h
|
|
|
|
AC_DEFUN([BFD_HAVE_SYS_PROCFS_TYPE],
|
|
[AC_MSG_CHECKING([for $1 in sys/procfs.h])
|
|
AC_CACHE_VAL(bfd_cv_have_sys_procfs_type_$1,
|
|
[AC_TRY_COMPILE([
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>],
|
|
[$1 avar],
|
|
bfd_cv_have_sys_procfs_type_$1=yes,
|
|
bfd_cv_have_sys_procfs_type_$1=no
|
|
)])
|
|
if test $bfd_cv_have_sys_procfs_type_$1 = yes; then
|
|
AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1,
|
|
[Define if <sys/procfs.h> has $1.])
|
|
fi
|
|
AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_$1)
|
|
])
|
|
|
|
dnl Check for existence of member $2 in type $1 in sys/procfs.h
|
|
|
|
AC_DEFUN([BFD_HAVE_SYS_PROCFS_TYPE_MEMBER],
|
|
[AC_MSG_CHECKING([for $1.$2 in sys/procfs.h])
|
|
AC_CACHE_VAL(bfd_cv_have_sys_procfs_type_member_$1_$2,
|
|
[AC_TRY_COMPILE([
|
|
#define _SYSCALL32
|
|
#include <sys/procfs.h>],
|
|
[$1 avar; void* aref = (void*) &avar.$2],
|
|
bfd_cv_have_sys_procfs_type_member_$1_$2=yes,
|
|
bfd_cv_have_sys_procfs_type_member_$1_$2=no
|
|
)])
|
|
if test $bfd_cv_have_sys_procfs_type_member_$1_$2 = yes; then
|
|
AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z])[_]translit($2, [a-z], [A-Z]), 1,
|
|
[Define if <sys/procfs.h> has $1.$2.])
|
|
fi
|
|
AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_member_$1_$2)
|
|
])
|
|
|