mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
bfd:
* acinclude.m4, aclocal.m4: move gettext-related fragments from aclocal.m4 to acinclude.m4, so they don't get lost. * elfcore.h: rewrite for better corefile support. * elf.c (elfcore_*): new functions. * elf-bfd.h (elf_obj_tdata): new structure members. * acconfig.h, acinclude.m4, configure.in: add feature-tests for flavor of procfs. * aclocal.m4, config.in, configure, Makefile.in: regenerated. include: * common.h (NT_PSTATUS, NT_FPREGS, NT_PSINFO, NT_LWPSTATUS,NT_LWPSINFO): added. * internal.h (Elf_Internal_Note): new structure members.
This commit is contained in:
@ -1,3 +1,15 @@
|
|||||||
|
Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
|
||||||
|
|
||||||
|
* acinclude.m4, aclocal.m4: move gettext-related fragments from
|
||||||
|
aclocal.m4 to acinclude.m4, so they don't get lost.
|
||||||
|
|
||||||
|
* elfcore.h: rewrite for better corefile support.
|
||||||
|
* elf.c (elfcore_*): new functions.
|
||||||
|
* elf-bfd.h (elf_obj_tdata): new structure members.
|
||||||
|
* acconfig.h, acinclude.m4, configure.in: add feature-tests for
|
||||||
|
flavor of procfs.
|
||||||
|
* aclocal.m4, config.in, configure, Makefile.in: regenerated.
|
||||||
|
|
||||||
Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
|
Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
|
||||||
|
|
||||||
* elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
|
* elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
|
||||||
|
@ -30,6 +30,30 @@
|
|||||||
/* Define only if <sys/procfs.h> is available *and* it defines prstatus_t. */
|
/* Define only if <sys/procfs.h> is available *and* it defines prstatus_t. */
|
||||||
#undef HAVE_SYS_PROCFS_H
|
#undef HAVE_SYS_PROCFS_H
|
||||||
|
|
||||||
|
/* Define if <sys/procfs.h> has prstatus_t */
|
||||||
|
#undef HAVE_PRSTATUS_T
|
||||||
|
|
||||||
|
/* Define if <sys/procfs.h> has prstatus_t.pr_who */
|
||||||
|
#undef HAVE_PRSTATUS_T_PR_WHO
|
||||||
|
|
||||||
|
/* Define if <sys/procfs.h> has pstatus_t */
|
||||||
|
#undef HAVE_PSTATUS_T
|
||||||
|
|
||||||
|
/* Define if <sys/procfs.h> has prpsinfo_t */
|
||||||
|
#undef HAVE_PRPSINFO_T
|
||||||
|
|
||||||
|
/* Define if <sys/procfs.h> has psinfo_t */
|
||||||
|
#undef HAVE_PSINFO_T
|
||||||
|
|
||||||
|
/* Define if <sys/procfs.h> has lwpstatus_t */
|
||||||
|
#undef HAVE_LWPSTATUS_T
|
||||||
|
|
||||||
|
/* Define if <sys/procfs.h> has lwpstatus_t.pr_context */
|
||||||
|
#undef HAVE_LWPSTATUS_T_PR_CONTEXT
|
||||||
|
|
||||||
|
/* Define if <sys/procfs.h> has lwpstatus_t.pr_reg */
|
||||||
|
#undef HAVE_LWPSTATUS_T_PR_REG
|
||||||
|
|
||||||
/* Do we really want to use mmap if it's available? */
|
/* Do we really want to use mmap if it's available? */
|
||||||
#undef USE_MMAP
|
#undef USE_MMAP
|
||||||
|
|
||||||
|
518
bfd/acinclude.m4
518
bfd/acinclude.m4
@ -1,111 +1,443 @@
|
|||||||
sinclude(acmacros.m4)
|
dnl See whether we need to use fopen-bin.h rather than fopen-same.h.
|
||||||
|
AC_DEFUN(BFD_BINARY_FOPEN,
|
||||||
|
[AC_REQUIRE([AC_CANONICAL_SYSTEM])
|
||||||
|
case "${host}" in
|
||||||
|
changequote(,)dnl
|
||||||
|
i[345]86-*-msdos* | i[345]86-*-go32* | i[345]86-*-mingw32* | *-*-cygwin32* | *-*-windows)
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_DEFINE(USE_BINARY_FOPEN) ;;
|
||||||
|
esac])dnl
|
||||||
|
|
||||||
dnl This is a copy of AM_PROG_LIBTOOL from libtool 1.0, modified to
|
dnl Get a default for CC_FOR_BUILD to put into Makefile.
|
||||||
dnl not produce a shared library by default.
|
AC_DEFUN(BFD_CC_FOR_BUILD,
|
||||||
AC_DEFUN(AM_PROG_LIBTOOL,
|
[# Put a plausible default for CC_FOR_BUILD in Makefile.
|
||||||
[AC_REQUIRE([AC_CANONICAL_HOST])
|
if test -z "$CC_FOR_BUILD"; then
|
||||||
AC_REQUIRE([AC_PROG_CC])
|
if test "x$cross_compiling" = "xno"; then
|
||||||
AC_REQUIRE([AC_PROG_RANLIB])
|
CC_FOR_BUILD='$(CC)'
|
||||||
AC_REQUIRE([AM_PROG_LD])
|
else
|
||||||
AC_REQUIRE([AC_PROG_LN_S])
|
CC_FOR_BUILD=gcc
|
||||||
|
fi
|
||||||
# Always use our own libtool.
|
|
||||||
LIBTOOL='$(top_builddir)/libtool'
|
|
||||||
AC_SUBST(LIBTOOL)
|
|
||||||
|
|
||||||
dnl Allow the --disable-shared flag to stop us from building shared libs.
|
|
||||||
AC_ARG_ENABLE(shared,
|
|
||||||
[ --enable-shared build shared libraries [default=yes]],
|
|
||||||
test "$enableval" = no && libtool_shared=" --disable-shared",
|
|
||||||
libtool_shared=--disable-shared)
|
|
||||||
|
|
||||||
dnl Allow the --disable-static flag to stop us from building static libs.
|
|
||||||
AC_ARG_ENABLE(static,
|
|
||||||
[ --enable-static build static libraries [default=yes]],
|
|
||||||
test "$enableval" = no && libtool_static=" --disable-static",
|
|
||||||
libtool_static=)
|
|
||||||
|
|
||||||
libtool_flags="$libtool_shared$libtool_static"
|
|
||||||
test "$silent" = yes && libtool_flags="$libtool_flags --silent"
|
|
||||||
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
|
||||||
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
|
||||||
|
|
||||||
# Some flags need to be propagated to the compiler or linker for good
|
|
||||||
# libtool support.
|
|
||||||
[case "$host" in
|
|
||||||
*-*-irix6*)
|
|
||||||
for f in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
|
|
||||||
if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
|
|
||||||
LD="${LD-ld} $f"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
;;
|
|
||||||
|
|
||||||
*-*-sco3.2v5*)
|
|
||||||
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
|
||||||
CFLAGS="$CFLAGS -belf"
|
|
||||||
;;
|
|
||||||
esac]
|
|
||||||
|
|
||||||
# Actually configure libtool. ac_aux_dir is where install-sh is found.
|
|
||||||
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
|
||||||
LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \
|
|
||||||
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
|
|
||||||
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|
|
||||||
|| AC_MSG_ERROR([libtool configure failed])
|
|
||||||
])
|
|
||||||
|
|
||||||
# AM_PROG_LD - find the path to the GNU or non-GNU linker
|
|
||||||
AC_DEFUN(AM_PROG_LD,
|
|
||||||
[AC_ARG_WITH(gnu-ld,
|
|
||||||
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
|
|
||||||
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
|
|
||||||
if test "$with_gnu_ld" = yes; then
|
|
||||||
AC_MSG_CHECKING([for GNU ld])
|
|
||||||
else
|
|
||||||
AC_MSG_CHECKING([for non-GNU ld])
|
|
||||||
fi
|
fi
|
||||||
AC_CACHE_VAL(ac_cv_path_LD,
|
AC_SUBST(CC_FOR_BUILD)
|
||||||
[case "$LD" in
|
# Also set EXEEXT_FOR_BUILD.
|
||||||
|
if test "x$cross_compiling" = "xno"; then
|
||||||
|
EXEEXT_FOR_BUILD='$(EXEEXT)'
|
||||||
|
else
|
||||||
|
AC_CACHE_CHECK([for build system executable suffix], bfd_cv_build_exeext,
|
||||||
|
[cat > ac_c_test.c << 'EOF'
|
||||||
|
int main() {
|
||||||
|
/* Nothing needed here */
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5
|
||||||
|
bfd_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
|
||||||
|
rm -f ac_c_test*
|
||||||
|
test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no])
|
||||||
|
EXEEXT_FOR_BUILD=""
|
||||||
|
test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
|
||||||
|
fi
|
||||||
|
AC_SUBST(EXEEXT_FOR_BUILD)])dnl
|
||||||
|
|
||||||
|
dnl See whether we need a declaration for a function.
|
||||||
|
AC_DEFUN(BFD_NEED_DECLARATION,
|
||||||
|
[AC_MSG_CHECKING([whether $1 must be declared])
|
||||||
|
AC_CACHE_VAL(bfd_cv_decl_needed_$1,
|
||||||
|
[AC_TRY_COMPILE([
|
||||||
|
#include <stdio.h>
|
||||||
|
#ifdef HAVE_STRING_H
|
||||||
|
#include <string.h>
|
||||||
|
#else
|
||||||
|
#ifdef HAVE_STRINGS_H
|
||||||
|
#include <strings.h>
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_STDLIB_H
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif],
|
||||||
|
[char *(*pfn) = (char *(*)) $1],
|
||||||
|
bfd_cv_decl_needed_$1=no, bfd_cv_decl_needed_$1=yes)])
|
||||||
|
AC_MSG_RESULT($bfd_cv_decl_needed_$1)
|
||||||
|
if test $bfd_cv_decl_needed_$1 = yes; then
|
||||||
|
bfd_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||||
|
AC_DEFINE_UNQUOTED($bfd_tr_decl)
|
||||||
|
fi
|
||||||
|
])dnl
|
||||||
|
|
||||||
|
|
||||||
|
# This file is derived from `gettext.m4'. The difference is that the
|
||||||
|
# included macros assume Cygnus-style source and build trees.
|
||||||
|
|
||||||
|
# Macro to add for using GNU gettext.
|
||||||
|
# Ulrich Drepper <drepper@cygnus.com>, 1995.
|
||||||
|
#
|
||||||
|
# This file file be copied and used freely without restrictions. It can
|
||||||
|
# be used in projects which are not available under the GNU Public License
|
||||||
|
# but which still want to provide support for the GNU gettext functionality.
|
||||||
|
# Please note that the actual code is *not* freely available.
|
||||||
|
|
||||||
|
# serial 3
|
||||||
|
|
||||||
|
AC_DEFUN(CY_WITH_NLS,
|
||||||
|
[AC_MSG_CHECKING([whether NLS is requested])
|
||||||
|
dnl Default is enabled NLS
|
||||||
|
AC_ARG_ENABLE(nls,
|
||||||
|
[ --disable-nls do not use Native Language Support],
|
||||||
|
USE_NLS=$enableval, USE_NLS=yes)
|
||||||
|
AC_MSG_RESULT($USE_NLS)
|
||||||
|
AC_SUBST(USE_NLS)
|
||||||
|
|
||||||
|
USE_INCLUDED_LIBINTL=no
|
||||||
|
|
||||||
|
dnl If we use NLS figure out what method
|
||||||
|
if test "$USE_NLS" = "yes"; then
|
||||||
|
AC_DEFINE(ENABLE_NLS)
|
||||||
|
AC_MSG_CHECKING([whether included gettext is requested])
|
||||||
|
AC_ARG_WITH(included-gettext,
|
||||||
|
[ --with-included-gettext use the GNU gettext library included here],
|
||||||
|
nls_cv_force_use_gnu_gettext=$withval,
|
||||||
|
nls_cv_force_use_gnu_gettext=no)
|
||||||
|
AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
|
||||||
|
|
||||||
|
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
||||||
|
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
||||||
|
dnl User does not insist on using GNU NLS library. Figure out what
|
||||||
|
dnl to use. If gettext or catgets are available (in this order) we
|
||||||
|
dnl use this. Else we have to fall back to GNU NLS library.
|
||||||
|
dnl catgets is only used if permitted by option --with-catgets.
|
||||||
|
nls_cv_header_intl=
|
||||||
|
nls_cv_header_libgt=
|
||||||
|
CATOBJEXT=NONE
|
||||||
|
|
||||||
|
AC_CHECK_HEADER(libintl.h,
|
||||||
|
[AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
|
||||||
|
[AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
|
||||||
|
gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
|
||||||
|
|
||||||
|
if test "$gt_cv_func_gettext_libc" != "yes"; then
|
||||||
|
AC_CHECK_LIB(intl, bindtextdomain,
|
||||||
|
[AC_CACHE_CHECK([for gettext in libintl],
|
||||||
|
gt_cv_func_gettext_libintl,
|
||||||
|
[AC_TRY_LINK([], [return (int) gettext ("")],
|
||||||
|
gt_cv_func_gettext_libintl=yes,
|
||||||
|
gt_cv_func_gettext_libintl=no)])])
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$gt_cv_func_gettext_libc" = "yes" \
|
||||||
|
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
|
||||||
|
AC_DEFINE(HAVE_GETTEXT)
|
||||||
|
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
||||||
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
|
||||||
|
if test "$MSGFMT" != "no"; then
|
||||||
|
AC_CHECK_FUNCS(dcgettext)
|
||||||
|
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
||||||
|
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
||||||
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
||||||
|
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
|
||||||
|
return _nl_msg_cat_cntr],
|
||||||
|
[CATOBJEXT=.gmo
|
||||||
|
DATADIRNAME=share],
|
||||||
|
[CATOBJEXT=.mo
|
||||||
|
DATADIRNAME=lib])
|
||||||
|
INSTOBJEXT=.mo
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl In the standard gettext, we would now check for catgets.
|
||||||
|
dnl However, we never want to use catgets for our releases.
|
||||||
|
|
||||||
|
if test "$CATOBJEXT" = "NONE"; then
|
||||||
|
dnl Neither gettext nor catgets in included in the C library.
|
||||||
|
dnl Fall back on GNU gettext library.
|
||||||
|
nls_cv_use_gnu_gettext=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
||||||
|
dnl Mark actions used to generate GNU NLS library.
|
||||||
|
INTLOBJS="\$(GETTOBJS)"
|
||||||
|
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
||||||
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
|
||||||
|
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
||||||
|
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
||||||
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
||||||
|
AC_SUBST(MSGFMT)
|
||||||
|
USE_INCLUDED_LIBINTL=yes
|
||||||
|
CATOBJEXT=.gmo
|
||||||
|
INSTOBJEXT=.mo
|
||||||
|
DATADIRNAME=share
|
||||||
|
INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
||||||
|
INTLLIBS=$INTLDEPS
|
||||||
|
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
||||||
|
nls_cv_header_intl=libintl.h
|
||||||
|
nls_cv_header_libgt=libgettext.h
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl Test whether we really found GNU xgettext.
|
||||||
|
if test "$XGETTEXT" != ":"; then
|
||||||
|
dnl If it is no GNU xgettext we define it as : so that the
|
||||||
|
dnl Makefiles still can work.
|
||||||
|
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
||||||
|
: ;
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(
|
||||||
|
[found xgettext programs is not GNU xgettext; ignore it])
|
||||||
|
XGETTEXT=":"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# We need to process the po/ directory.
|
||||||
|
POSUB=po
|
||||||
|
else
|
||||||
|
DATADIRNAME=share
|
||||||
|
nls_cv_header_intl=libintl.h
|
||||||
|
nls_cv_header_libgt=libgettext.h
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If this is used in GNU gettext we have to set USE_NLS to `yes'
|
||||||
|
# because some of the sources are only built for this goal.
|
||||||
|
if test "$PACKAGE" = gettext; then
|
||||||
|
USE_NLS=yes
|
||||||
|
USE_INCLUDED_LIBINTL=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl These rules are solely for the distribution goal. While doing this
|
||||||
|
dnl we only have to keep exactly one list of the available catalogs
|
||||||
|
dnl in configure.in.
|
||||||
|
for lang in $ALL_LINGUAS; do
|
||||||
|
GMOFILES="$GMOFILES $lang.gmo"
|
||||||
|
POFILES="$POFILES $lang.po"
|
||||||
|
done
|
||||||
|
|
||||||
|
dnl Make all variables we use known to autoconf.
|
||||||
|
AC_SUBST(USE_INCLUDED_LIBINTL)
|
||||||
|
AC_SUBST(CATALOGS)
|
||||||
|
AC_SUBST(CATOBJEXT)
|
||||||
|
AC_SUBST(DATADIRNAME)
|
||||||
|
AC_SUBST(GMOFILES)
|
||||||
|
AC_SUBST(INSTOBJEXT)
|
||||||
|
AC_SUBST(INTLDEPS)
|
||||||
|
AC_SUBST(INTLLIBS)
|
||||||
|
AC_SUBST(INTLOBJS)
|
||||||
|
AC_SUBST(POFILES)
|
||||||
|
AC_SUBST(POSUB)
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(CY_GNU_GETTEXT,
|
||||||
|
[AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_CC])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_RANLIB])dnl
|
||||||
|
AC_REQUIRE([AC_ISC_POSIX])dnl
|
||||||
|
AC_REQUIRE([AC_HEADER_STDC])dnl
|
||||||
|
AC_REQUIRE([AC_C_CONST])dnl
|
||||||
|
AC_REQUIRE([AC_C_INLINE])dnl
|
||||||
|
AC_REQUIRE([AC_TYPE_OFF_T])dnl
|
||||||
|
AC_REQUIRE([AC_TYPE_SIZE_T])dnl
|
||||||
|
AC_REQUIRE([AC_FUNC_ALLOCA])dnl
|
||||||
|
AC_REQUIRE([AC_FUNC_MMAP])dnl
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
||||||
|
unistd.h values.h sys/param.h])
|
||||||
|
AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
||||||
|
__argz_count __argz_stringify __argz_next])
|
||||||
|
|
||||||
|
if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
||||||
|
AC_CHECK_FUNCS(stpcpy)
|
||||||
|
fi
|
||||||
|
if test "${ac_cv_func_stpcpy}" = "yes"; then
|
||||||
|
AC_DEFINE(HAVE_STPCPY)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_LC_MESSAGES
|
||||||
|
CY_WITH_NLS
|
||||||
|
|
||||||
|
if test "x$CATOBJEXT" != "x"; then
|
||||||
|
if test "x$ALL_LINGUAS" = "x"; then
|
||||||
|
LINGUAS=
|
||||||
|
else
|
||||||
|
AC_MSG_CHECKING(for catalogs to be installed)
|
||||||
|
NEW_LINGUAS=
|
||||||
|
for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
||||||
|
case "$ALL_LINGUAS" in
|
||||||
|
*$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
LINGUAS=$NEW_LINGUAS
|
||||||
|
AC_MSG_RESULT($LINGUAS)
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl Construct list of names of catalog files to be constructed.
|
||||||
|
if test -n "$LINGUAS"; then
|
||||||
|
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl The reference to <locale.h> in the installed <libintl.h> file
|
||||||
|
dnl must be resolved because we cannot expect the users of this
|
||||||
|
dnl to define HAVE_LOCALE_H.
|
||||||
|
if test $ac_cv_header_locale_h = yes; then
|
||||||
|
INCLUDE_LOCALE_H="#include <locale.h>"
|
||||||
|
else
|
||||||
|
INCLUDE_LOCALE_H="\
|
||||||
|
/* The system does not provide the header <locale.h>. Take care yourself. */"
|
||||||
|
fi
|
||||||
|
AC_SUBST(INCLUDE_LOCALE_H)
|
||||||
|
|
||||||
|
dnl Determine which catalog format we have (if any is needed)
|
||||||
|
dnl For now we know about two different formats:
|
||||||
|
dnl Linux libc-5 and the normal X/Open format
|
||||||
|
if test -f $srcdir/po2tbl.sed.in; then
|
||||||
|
if test "$CATOBJEXT" = ".cat"; then
|
||||||
|
AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
|
||||||
|
|
||||||
|
dnl Transform the SED scripts while copying because some dumb SEDs
|
||||||
|
dnl cannot handle comments.
|
||||||
|
sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
||||||
|
fi
|
||||||
|
dnl po2tbl.sed is always needed.
|
||||||
|
sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
||||||
|
$srcdir/po2tbl.sed.in > po2tbl.sed
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl In the intl/Makefile.in we have a special dependency which makes
|
||||||
|
dnl only sense for gettext. We comment this out for non-gettext
|
||||||
|
dnl packages.
|
||||||
|
if test "$PACKAGE" = "gettext"; then
|
||||||
|
GT_NO="#NO#"
|
||||||
|
GT_YES=
|
||||||
|
else
|
||||||
|
GT_NO=
|
||||||
|
GT_YES="#YES#"
|
||||||
|
fi
|
||||||
|
AC_SUBST(GT_NO)
|
||||||
|
AC_SUBST(GT_YES)
|
||||||
|
|
||||||
|
MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
||||||
|
AC_SUBST(MKINSTALLDIRS)
|
||||||
|
|
||||||
|
dnl *** For now the libtool support in intl/Makefile is not for real.
|
||||||
|
l=
|
||||||
|
AC_SUBST(l)
|
||||||
|
|
||||||
|
dnl Generate list of files to be processed by xgettext which will
|
||||||
|
dnl be included in po/Makefile. But only do this if the po directory
|
||||||
|
dnl exists in srcdir.
|
||||||
|
if test -d $srcdir/po; then
|
||||||
|
test -d po || mkdir po
|
||||||
|
if test "x$srcdir" != "x."; then
|
||||||
|
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
||||||
|
posrcprefix="$srcdir/"
|
||||||
|
else
|
||||||
|
posrcprefix="../$srcdir/"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
posrcprefix="../"
|
||||||
|
fi
|
||||||
|
rm -f po/POTFILES
|
||||||
|
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
||||||
|
< $srcdir/po/POTFILES.in > po/POTFILES
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
# Search path for a program which passes the given test.
|
||||||
|
# Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
#
|
||||||
|
# This file file be copied and used freely without restrictions. It can
|
||||||
|
# be used in projects which are not available under the GNU Public License
|
||||||
|
# but which still want to provide support for the GNU gettext functionality.
|
||||||
|
# Please note that the actual code is *not* freely available.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
|
||||||
|
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
|
||||||
|
AC_DEFUN(AM_PATH_PROG_WITH_TEST,
|
||||||
|
[# Extract the first word of "$2", so it can be a program name with args.
|
||||||
|
set dummy $2; ac_word=[$]2
|
||||||
|
AC_MSG_CHECKING([for $ac_word])
|
||||||
|
AC_CACHE_VAL(ac_cv_path_$1,
|
||||||
|
[case "[$]$1" in
|
||||||
/*)
|
/*)
|
||||||
ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||||
for ac_dir in $PATH; do
|
for ac_dir in ifelse([$5], , $PATH, [$5]); do
|
||||||
test -z "$ac_dir" && ac_dir=.
|
test -z "$ac_dir" && ac_dir=.
|
||||||
if test -f "$ac_dir/ld"; then
|
if test -f $ac_dir/$ac_word; then
|
||||||
ac_cv_path_LD="$ac_dir/ld"
|
if [$3]; then
|
||||||
# Check to see if the program is GNU ld. I'd rather use --version,
|
ac_cv_path_$1="$ac_dir/$ac_word"
|
||||||
# but apparently some GNU ld's only accept -v.
|
break
|
||||||
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
||||||
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
|
|
||||||
test "$with_gnu_ld" = yes && break
|
|
||||||
else
|
|
||||||
test "$with_gnu_ld" != yes && break
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
IFS="$ac_save_ifs"
|
IFS="$ac_save_ifs"
|
||||||
|
dnl If no 4th arg is given, leave the cache variable unset,
|
||||||
|
dnl so AC_PATH_PROGS will keep looking.
|
||||||
|
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
|
||||||
|
])dnl
|
||||||
;;
|
;;
|
||||||
esac])
|
esac])dnl
|
||||||
LD="$ac_cv_path_LD"
|
$1="$ac_cv_path_$1"
|
||||||
if test -n "$LD"; then
|
if test -n "[$]$1"; then
|
||||||
AC_MSG_RESULT($LD)
|
AC_MSG_RESULT([$]$1)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
AC_SUBST($1)dnl
|
||||||
AC_SUBST(LD)
|
|
||||||
AM_PROG_LD_GNU
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_DEFUN(AM_PROG_LD_GNU,
|
# Check whether LC_MESSAGES is available in <locale.h>.
|
||||||
[AC_CACHE_CHECK([whether we are using GNU ld], ac_cv_prog_gnu_ld,
|
# Ulrich Drepper <drepper@cygnus.com>, 1995.
|
||||||
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
#
|
||||||
if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
|
# This file file be copied and used freely without restrictions. It can
|
||||||
ac_cv_prog_gnu_ld=yes
|
# be used in projects which are not available under the GNU Public License
|
||||||
else
|
# but which still want to provide support for the GNU gettext functionality.
|
||||||
ac_cv_prog_gnu_ld=no
|
# Please note that the actual code is *not* freely available.
|
||||||
fi])
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_LC_MESSAGES,
|
||||||
|
[if test $ac_cv_header_locale_h = yes; then
|
||||||
|
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
|
||||||
|
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
|
||||||
|
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
|
||||||
|
if test $am_cv_val_LC_MESSAGES = yes; then
|
||||||
|
AC_DEFINE(HAVE_LC_MESSAGES)
|
||||||
|
fi
|
||||||
|
fi])
|
||||||
|
|
||||||
|
|
||||||
|
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([#include <sys/procfs.h>],
|
||||||
|
[$1 avar],
|
||||||
|
bfd_cv_have_sys_procfs_type_$1=yes
|
||||||
|
AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z])),
|
||||||
|
bfd_cv_have_sys_procfs_type_$1=no
|
||||||
|
)])
|
||||||
|
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([#include <sys/procfs.h>],
|
||||||
|
[$1 avar; void* aref = (void*) &avar.$2],
|
||||||
|
bfd_cv_have_sys_procfs_type_member_$1_$2=yes
|
||||||
|
AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z])[_]translit($2, [a-z], [A-Z])),
|
||||||
|
bfd_cv_have_sys_procfs_type_member_$1_$2=no
|
||||||
|
)])
|
||||||
|
AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_member_$1_$2)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
432
bfd/aclocal.m4
vendored
432
bfd/aclocal.m4
vendored
@ -1,7 +1,7 @@
|
|||||||
dnl aclocal.m4 generated automatically by aclocal 1.2e
|
dnl aclocal.m4 generated automatically by aclocal 1.3b
|
||||||
|
|
||||||
dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||||
dnl This Makefile.in is free software; the Free Software Foundation
|
dnl This file is free software; the Free Software Foundation
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
dnl gives unlimited permission to copy and/or distribute it,
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
dnl with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
@ -78,6 +78,382 @@ if test $bfd_cv_decl_needed_$1 = yes; then
|
|||||||
fi
|
fi
|
||||||
])dnl
|
])dnl
|
||||||
|
|
||||||
|
|
||||||
|
# This file is derived from `gettext.m4'. The difference is that the
|
||||||
|
# included macros assume Cygnus-style source and build trees.
|
||||||
|
|
||||||
|
# Macro to add for using GNU gettext.
|
||||||
|
# Ulrich Drepper <drepper@cygnus.com>, 1995.
|
||||||
|
#
|
||||||
|
# This file file be copied and used freely without restrictions. It can
|
||||||
|
# be used in projects which are not available under the GNU Public License
|
||||||
|
# but which still want to provide support for the GNU gettext functionality.
|
||||||
|
# Please note that the actual code is *not* freely available.
|
||||||
|
|
||||||
|
# serial 3
|
||||||
|
|
||||||
|
AC_DEFUN(CY_WITH_NLS,
|
||||||
|
[AC_MSG_CHECKING([whether NLS is requested])
|
||||||
|
dnl Default is enabled NLS
|
||||||
|
AC_ARG_ENABLE(nls,
|
||||||
|
[ --disable-nls do not use Native Language Support],
|
||||||
|
USE_NLS=$enableval, USE_NLS=yes)
|
||||||
|
AC_MSG_RESULT($USE_NLS)
|
||||||
|
AC_SUBST(USE_NLS)
|
||||||
|
|
||||||
|
USE_INCLUDED_LIBINTL=no
|
||||||
|
|
||||||
|
dnl If we use NLS figure out what method
|
||||||
|
if test "$USE_NLS" = "yes"; then
|
||||||
|
AC_DEFINE(ENABLE_NLS)
|
||||||
|
AC_MSG_CHECKING([whether included gettext is requested])
|
||||||
|
AC_ARG_WITH(included-gettext,
|
||||||
|
[ --with-included-gettext use the GNU gettext library included here],
|
||||||
|
nls_cv_force_use_gnu_gettext=$withval,
|
||||||
|
nls_cv_force_use_gnu_gettext=no)
|
||||||
|
AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
|
||||||
|
|
||||||
|
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
||||||
|
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
||||||
|
dnl User does not insist on using GNU NLS library. Figure out what
|
||||||
|
dnl to use. If gettext or catgets are available (in this order) we
|
||||||
|
dnl use this. Else we have to fall back to GNU NLS library.
|
||||||
|
dnl catgets is only used if permitted by option --with-catgets.
|
||||||
|
nls_cv_header_intl=
|
||||||
|
nls_cv_header_libgt=
|
||||||
|
CATOBJEXT=NONE
|
||||||
|
|
||||||
|
AC_CHECK_HEADER(libintl.h,
|
||||||
|
[AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
|
||||||
|
[AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
|
||||||
|
gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
|
||||||
|
|
||||||
|
if test "$gt_cv_func_gettext_libc" != "yes"; then
|
||||||
|
AC_CHECK_LIB(intl, bindtextdomain,
|
||||||
|
[AC_CACHE_CHECK([for gettext in libintl],
|
||||||
|
gt_cv_func_gettext_libintl,
|
||||||
|
[AC_TRY_LINK([], [return (int) gettext ("")],
|
||||||
|
gt_cv_func_gettext_libintl=yes,
|
||||||
|
gt_cv_func_gettext_libintl=no)])])
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$gt_cv_func_gettext_libc" = "yes" \
|
||||||
|
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
|
||||||
|
AC_DEFINE(HAVE_GETTEXT)
|
||||||
|
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
||||||
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
|
||||||
|
if test "$MSGFMT" != "no"; then
|
||||||
|
AC_CHECK_FUNCS(dcgettext)
|
||||||
|
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
||||||
|
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
||||||
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
||||||
|
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
|
||||||
|
return _nl_msg_cat_cntr],
|
||||||
|
[CATOBJEXT=.gmo
|
||||||
|
DATADIRNAME=share],
|
||||||
|
[CATOBJEXT=.mo
|
||||||
|
DATADIRNAME=lib])
|
||||||
|
INSTOBJEXT=.mo
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl In the standard gettext, we would now check for catgets.
|
||||||
|
dnl However, we never want to use catgets for our releases.
|
||||||
|
|
||||||
|
if test "$CATOBJEXT" = "NONE"; then
|
||||||
|
dnl Neither gettext nor catgets in included in the C library.
|
||||||
|
dnl Fall back on GNU gettext library.
|
||||||
|
nls_cv_use_gnu_gettext=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
||||||
|
dnl Mark actions used to generate GNU NLS library.
|
||||||
|
INTLOBJS="\$(GETTOBJS)"
|
||||||
|
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
||||||
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
|
||||||
|
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
|
||||||
|
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
||||||
|
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
|
||||||
|
AC_SUBST(MSGFMT)
|
||||||
|
USE_INCLUDED_LIBINTL=yes
|
||||||
|
CATOBJEXT=.gmo
|
||||||
|
INSTOBJEXT=.mo
|
||||||
|
DATADIRNAME=share
|
||||||
|
INTLDEPS='$(top_builddir)/../intl/libintl.a'
|
||||||
|
INTLLIBS=$INTLDEPS
|
||||||
|
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
|
||||||
|
nls_cv_header_intl=libintl.h
|
||||||
|
nls_cv_header_libgt=libgettext.h
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl Test whether we really found GNU xgettext.
|
||||||
|
if test "$XGETTEXT" != ":"; then
|
||||||
|
dnl If it is no GNU xgettext we define it as : so that the
|
||||||
|
dnl Makefiles still can work.
|
||||||
|
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
|
||||||
|
: ;
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(
|
||||||
|
[found xgettext programs is not GNU xgettext; ignore it])
|
||||||
|
XGETTEXT=":"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# We need to process the po/ directory.
|
||||||
|
POSUB=po
|
||||||
|
else
|
||||||
|
DATADIRNAME=share
|
||||||
|
nls_cv_header_intl=libintl.h
|
||||||
|
nls_cv_header_libgt=libgettext.h
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If this is used in GNU gettext we have to set USE_NLS to `yes'
|
||||||
|
# because some of the sources are only built for this goal.
|
||||||
|
if test "$PACKAGE" = gettext; then
|
||||||
|
USE_NLS=yes
|
||||||
|
USE_INCLUDED_LIBINTL=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl These rules are solely for the distribution goal. While doing this
|
||||||
|
dnl we only have to keep exactly one list of the available catalogs
|
||||||
|
dnl in configure.in.
|
||||||
|
for lang in $ALL_LINGUAS; do
|
||||||
|
GMOFILES="$GMOFILES $lang.gmo"
|
||||||
|
POFILES="$POFILES $lang.po"
|
||||||
|
done
|
||||||
|
|
||||||
|
dnl Make all variables we use known to autoconf.
|
||||||
|
AC_SUBST(USE_INCLUDED_LIBINTL)
|
||||||
|
AC_SUBST(CATALOGS)
|
||||||
|
AC_SUBST(CATOBJEXT)
|
||||||
|
AC_SUBST(DATADIRNAME)
|
||||||
|
AC_SUBST(GMOFILES)
|
||||||
|
AC_SUBST(INSTOBJEXT)
|
||||||
|
AC_SUBST(INTLDEPS)
|
||||||
|
AC_SUBST(INTLLIBS)
|
||||||
|
AC_SUBST(INTLOBJS)
|
||||||
|
AC_SUBST(POFILES)
|
||||||
|
AC_SUBST(POSUB)
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(CY_GNU_GETTEXT,
|
||||||
|
[AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_CC])dnl
|
||||||
|
AC_REQUIRE([AC_PROG_RANLIB])dnl
|
||||||
|
AC_REQUIRE([AC_ISC_POSIX])dnl
|
||||||
|
AC_REQUIRE([AC_HEADER_STDC])dnl
|
||||||
|
AC_REQUIRE([AC_C_CONST])dnl
|
||||||
|
AC_REQUIRE([AC_C_INLINE])dnl
|
||||||
|
AC_REQUIRE([AC_TYPE_OFF_T])dnl
|
||||||
|
AC_REQUIRE([AC_TYPE_SIZE_T])dnl
|
||||||
|
AC_REQUIRE([AC_FUNC_ALLOCA])dnl
|
||||||
|
AC_REQUIRE([AC_FUNC_MMAP])dnl
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
|
||||||
|
unistd.h values.h sys/param.h])
|
||||||
|
AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
|
||||||
|
__argz_count __argz_stringify __argz_next])
|
||||||
|
|
||||||
|
if test "${ac_cv_func_stpcpy+set}" != "set"; then
|
||||||
|
AC_CHECK_FUNCS(stpcpy)
|
||||||
|
fi
|
||||||
|
if test "${ac_cv_func_stpcpy}" = "yes"; then
|
||||||
|
AC_DEFINE(HAVE_STPCPY)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_LC_MESSAGES
|
||||||
|
CY_WITH_NLS
|
||||||
|
|
||||||
|
if test "x$CATOBJEXT" != "x"; then
|
||||||
|
if test "x$ALL_LINGUAS" = "x"; then
|
||||||
|
LINGUAS=
|
||||||
|
else
|
||||||
|
AC_MSG_CHECKING(for catalogs to be installed)
|
||||||
|
NEW_LINGUAS=
|
||||||
|
for lang in ${LINGUAS=$ALL_LINGUAS}; do
|
||||||
|
case "$ALL_LINGUAS" in
|
||||||
|
*$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
LINGUAS=$NEW_LINGUAS
|
||||||
|
AC_MSG_RESULT($LINGUAS)
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl Construct list of names of catalog files to be constructed.
|
||||||
|
if test -n "$LINGUAS"; then
|
||||||
|
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl The reference to <locale.h> in the installed <libintl.h> file
|
||||||
|
dnl must be resolved because we cannot expect the users of this
|
||||||
|
dnl to define HAVE_LOCALE_H.
|
||||||
|
if test $ac_cv_header_locale_h = yes; then
|
||||||
|
INCLUDE_LOCALE_H="#include <locale.h>"
|
||||||
|
else
|
||||||
|
INCLUDE_LOCALE_H="\
|
||||||
|
/* The system does not provide the header <locale.h>. Take care yourself. */"
|
||||||
|
fi
|
||||||
|
AC_SUBST(INCLUDE_LOCALE_H)
|
||||||
|
|
||||||
|
dnl Determine which catalog format we have (if any is needed)
|
||||||
|
dnl For now we know about two different formats:
|
||||||
|
dnl Linux libc-5 and the normal X/Open format
|
||||||
|
if test -f $srcdir/po2tbl.sed.in; then
|
||||||
|
if test "$CATOBJEXT" = ".cat"; then
|
||||||
|
AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
|
||||||
|
|
||||||
|
dnl Transform the SED scripts while copying because some dumb SEDs
|
||||||
|
dnl cannot handle comments.
|
||||||
|
sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
|
||||||
|
fi
|
||||||
|
dnl po2tbl.sed is always needed.
|
||||||
|
sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
|
||||||
|
$srcdir/po2tbl.sed.in > po2tbl.sed
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl In the intl/Makefile.in we have a special dependency which makes
|
||||||
|
dnl only sense for gettext. We comment this out for non-gettext
|
||||||
|
dnl packages.
|
||||||
|
if test "$PACKAGE" = "gettext"; then
|
||||||
|
GT_NO="#NO#"
|
||||||
|
GT_YES=
|
||||||
|
else
|
||||||
|
GT_NO=
|
||||||
|
GT_YES="#YES#"
|
||||||
|
fi
|
||||||
|
AC_SUBST(GT_NO)
|
||||||
|
AC_SUBST(GT_YES)
|
||||||
|
|
||||||
|
MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
|
||||||
|
AC_SUBST(MKINSTALLDIRS)
|
||||||
|
|
||||||
|
dnl *** For now the libtool support in intl/Makefile is not for real.
|
||||||
|
l=
|
||||||
|
AC_SUBST(l)
|
||||||
|
|
||||||
|
dnl Generate list of files to be processed by xgettext which will
|
||||||
|
dnl be included in po/Makefile. But only do this if the po directory
|
||||||
|
dnl exists in srcdir.
|
||||||
|
if test -d $srcdir/po; then
|
||||||
|
test -d po || mkdir po
|
||||||
|
if test "x$srcdir" != "x."; then
|
||||||
|
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
|
||||||
|
posrcprefix="$srcdir/"
|
||||||
|
else
|
||||||
|
posrcprefix="../$srcdir/"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
posrcprefix="../"
|
||||||
|
fi
|
||||||
|
rm -f po/POTFILES
|
||||||
|
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
|
||||||
|
< $srcdir/po/POTFILES.in > po/POTFILES
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
# Search path for a program which passes the given test.
|
||||||
|
# Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
#
|
||||||
|
# This file file be copied and used freely without restrictions. It can
|
||||||
|
# be used in projects which are not available under the GNU Public License
|
||||||
|
# but which still want to provide support for the GNU gettext functionality.
|
||||||
|
# Please note that the actual code is *not* freely available.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
|
||||||
|
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
|
||||||
|
AC_DEFUN(AM_PATH_PROG_WITH_TEST,
|
||||||
|
[# Extract the first word of "$2", so it can be a program name with args.
|
||||||
|
set dummy $2; ac_word=[$]2
|
||||||
|
AC_MSG_CHECKING([for $ac_word])
|
||||||
|
AC_CACHE_VAL(ac_cv_path_$1,
|
||||||
|
[case "[$]$1" in
|
||||||
|
/*)
|
||||||
|
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||||
|
for ac_dir in ifelse([$5], , $PATH, [$5]); do
|
||||||
|
test -z "$ac_dir" && ac_dir=.
|
||||||
|
if test -f $ac_dir/$ac_word; then
|
||||||
|
if [$3]; then
|
||||||
|
ac_cv_path_$1="$ac_dir/$ac_word"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$ac_save_ifs"
|
||||||
|
dnl If no 4th arg is given, leave the cache variable unset,
|
||||||
|
dnl so AC_PATH_PROGS will keep looking.
|
||||||
|
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
|
||||||
|
])dnl
|
||||||
|
;;
|
||||||
|
esac])dnl
|
||||||
|
$1="$ac_cv_path_$1"
|
||||||
|
if test -n "[$]$1"; then
|
||||||
|
AC_MSG_RESULT([$]$1)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
|
AC_SUBST($1)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
# Check whether LC_MESSAGES is available in <locale.h>.
|
||||||
|
# Ulrich Drepper <drepper@cygnus.com>, 1995.
|
||||||
|
#
|
||||||
|
# This file file be copied and used freely without restrictions. It can
|
||||||
|
# be used in projects which are not available under the GNU Public License
|
||||||
|
# but which still want to provide support for the GNU gettext functionality.
|
||||||
|
# Please note that the actual code is *not* freely available.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_LC_MESSAGES,
|
||||||
|
[if test $ac_cv_header_locale_h = yes; then
|
||||||
|
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
|
||||||
|
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
|
||||||
|
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
|
||||||
|
if test $am_cv_val_LC_MESSAGES = yes; then
|
||||||
|
AC_DEFINE(HAVE_LC_MESSAGES)
|
||||||
|
fi
|
||||||
|
fi])
|
||||||
|
|
||||||
|
|
||||||
|
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([#include <sys/procfs.h>],
|
||||||
|
[$1 avar],
|
||||||
|
bfd_cv_have_sys_procfs_type_$1=yes
|
||||||
|
AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z])),
|
||||||
|
bfd_cv_have_sys_procfs_type_$1=no
|
||||||
|
)])
|
||||||
|
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([#include <sys/procfs.h>],
|
||||||
|
[$1 avar; void* aref = (void*) &avar.$2],
|
||||||
|
bfd_cv_have_sys_procfs_type_member_$1_$2=yes
|
||||||
|
AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z])[_]translit($2, [a-z], [A-Z])),
|
||||||
|
bfd_cv_have_sys_procfs_type_member_$1_$2=no
|
||||||
|
)])
|
||||||
|
AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_member_$1_$2)
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Do all the work for Automake. This macro actually does too much --
|
# Do all the work for Automake. This macro actually does too much --
|
||||||
# some checks are only needed if your package does certain things.
|
# some checks are only needed if your package does certain things.
|
||||||
# But this isn't really a big deal.
|
# But this isn't really a big deal.
|
||||||
@ -180,11 +556,12 @@ fi
|
|||||||
AC_SUBST($1)])
|
AC_SUBST($1)])
|
||||||
|
|
||||||
|
|
||||||
# serial 24 AM_PROG_LIBTOOL
|
# serial 25 AM_PROG_LIBTOOL
|
||||||
AC_DEFUN(AM_PROG_LIBTOOL,
|
AC_DEFUN(AM_PROG_LIBTOOL,
|
||||||
[AC_REQUIRE([AM_ENABLE_SHARED])dnl
|
[AC_REQUIRE([AM_ENABLE_SHARED])dnl
|
||||||
AC_REQUIRE([AM_ENABLE_STATIC])dnl
|
AC_REQUIRE([AM_ENABLE_STATIC])dnl
|
||||||
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||||
|
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
||||||
AC_REQUIRE([AC_PROG_RANLIB])dnl
|
AC_REQUIRE([AC_PROG_RANLIB])dnl
|
||||||
AC_REQUIRE([AC_PROG_CC])dnl
|
AC_REQUIRE([AC_PROG_CC])dnl
|
||||||
AC_REQUIRE([AM_PROG_LD])dnl
|
AC_REQUIRE([AM_PROG_LD])dnl
|
||||||
@ -229,14 +606,24 @@ case "$host" in
|
|||||||
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
||||||
CFLAGS="$CFLAGS -belf"
|
CFLAGS="$CFLAGS -belf"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
*-*-cygwin32*)
|
||||||
|
AM_SYS_LIBTOOL_CYGWIN32
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Actually configure libtool. ac_aux_dir is where install-sh is found.
|
# Actually configure libtool. ac_aux_dir is where install-sh is found.
|
||||||
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
||||||
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
|
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
|
||||||
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
|
DLLTOOL="$DLLTOOL" AS="$AS" \
|
||||||
|
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
|
||||||
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|
||||||
|| AC_MSG_ERROR([libtool configure failed])
|
|| AC_MSG_ERROR([libtool configure failed])
|
||||||
|
|
||||||
|
# Redirect the config.log output again, so that the ltconfig log is not
|
||||||
|
# clobbered by the next message.
|
||||||
|
exec 5>>./config.log
|
||||||
])
|
])
|
||||||
|
|
||||||
# AM_ENABLE_SHARED - implement the --enable-shared flag
|
# AM_ENABLE_SHARED - implement the --enable-shared flag
|
||||||
@ -247,10 +634,8 @@ AC_DEFUN(AM_ENABLE_SHARED,
|
|||||||
[define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
|
[define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
|
||||||
AC_ARG_ENABLE(shared,
|
AC_ARG_ENABLE(shared,
|
||||||
changequote(<<, >>)dnl
|
changequote(<<, >>)dnl
|
||||||
<< --enable-shared build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT]
|
<< --enable-shared[=PKGS] build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT],
|
||||||
changequote([, ])dnl
|
changequote([, ])dnl
|
||||||
[ --enable-shared=PKGS only build shared libraries if the current package
|
|
||||||
appears as an element in the PKGS list],
|
|
||||||
[p=${PACKAGE-default}
|
[p=${PACKAGE-default}
|
||||||
case "$enableval" in
|
case "$enableval" in
|
||||||
yes) enable_shared=yes ;;
|
yes) enable_shared=yes ;;
|
||||||
@ -286,10 +671,8 @@ AC_DEFUN(AM_ENABLE_STATIC,
|
|||||||
[define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
|
[define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
|
||||||
AC_ARG_ENABLE(static,
|
AC_ARG_ENABLE(static,
|
||||||
changequote(<<, >>)dnl
|
changequote(<<, >>)dnl
|
||||||
<< --enable-static build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT]
|
<< --enable-static[=PKGS] build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT],
|
||||||
changequote([, ])dnl
|
changequote([, ])dnl
|
||||||
[ --enable-static=PKGS only build shared libraries if the current package
|
|
||||||
appears as an element in the PKGS list],
|
|
||||||
[p=${PACKAGE-default}
|
[p=${PACKAGE-default}
|
||||||
case "$enableval" in
|
case "$enableval" in
|
||||||
yes) enable_static=yes ;;
|
yes) enable_static=yes ;;
|
||||||
@ -323,7 +706,9 @@ if test "$ac_cv_prog_gcc" = yes; then
|
|||||||
ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
ac_prog=`($CC -print-prog-name=ld) 2>&5`
|
||||||
case "$ac_prog" in
|
case "$ac_prog" in
|
||||||
# Accept absolute paths.
|
# Accept absolute paths.
|
||||||
|
changequote(,)dnl
|
||||||
/* | [A-Za-z]:\\*)
|
/* | [A-Za-z]:\\*)
|
||||||
|
changequote([,])dnl
|
||||||
test -z "$LD" && LD="$ac_prog"
|
test -z "$LD" && LD="$ac_prog"
|
||||||
;;
|
;;
|
||||||
"")
|
"")
|
||||||
@ -386,11 +771,10 @@ fi])
|
|||||||
AC_DEFUN(AM_PROG_NM,
|
AC_DEFUN(AM_PROG_NM,
|
||||||
[AC_MSG_CHECKING([for BSD-compatible nm])
|
[AC_MSG_CHECKING([for BSD-compatible nm])
|
||||||
AC_CACHE_VAL(ac_cv_path_NM,
|
AC_CACHE_VAL(ac_cv_path_NM,
|
||||||
[case "$NM" in
|
[if test -n "$NM"; then
|
||||||
/* | [A-Za-z]:\\*)
|
# Let the user override the test.
|
||||||
ac_cv_path_NM="$NM" # Let the user override the test with a path.
|
ac_cv_path_NM="$NM"
|
||||||
;;
|
else
|
||||||
*)
|
|
||||||
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||||
for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
|
for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
|
||||||
test -z "$ac_dir" && ac_dir=.
|
test -z "$ac_dir" && ac_dir=.
|
||||||
@ -410,13 +794,18 @@ AC_CACHE_VAL(ac_cv_path_NM,
|
|||||||
done
|
done
|
||||||
IFS="$ac_save_ifs"
|
IFS="$ac_save_ifs"
|
||||||
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
|
||||||
;;
|
fi])
|
||||||
esac])
|
|
||||||
NM="$ac_cv_path_NM"
|
NM="$ac_cv_path_NM"
|
||||||
AC_MSG_RESULT([$NM])
|
AC_MSG_RESULT([$NM])
|
||||||
AC_SUBST(NM)
|
AC_SUBST(NM)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
|
||||||
|
AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN32,
|
||||||
|
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
||||||
|
AC_CHECK_TOOL(AS, as, false)
|
||||||
|
])
|
||||||
|
|
||||||
# Like AC_CONFIG_HEADER, but automatically create stamp file.
|
# Like AC_CONFIG_HEADER, but automatically create stamp file.
|
||||||
|
|
||||||
AC_DEFUN(AM_CONFIG_HEADER,
|
AC_DEFUN(AM_CONFIG_HEADER,
|
||||||
@ -498,7 +887,14 @@ int main() {
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
|
${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
|
||||||
am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
|
am_cv_exeext=
|
||||||
|
for file in am_c_test.*; do
|
||||||
|
case $file in
|
||||||
|
*.c) ;;
|
||||||
|
*.o) ;;
|
||||||
|
*) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
rm -f am_c_test*])
|
rm -f am_c_test*])
|
||||||
test x"${am_cv_exeext}" = x && am_cv_exeext=no
|
test x"${am_cv_exeext}" = x && am_cv_exeext=no
|
||||||
fi
|
fi
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Mon Oct 19 01:44:42 1998 Felix Lee <flee@cygnus.com>
|
||||||
|
|
||||||
|
* common.h (NT_PSTATUS, NT_FPREGS, NT_PSINFO,
|
||||||
|
NT_LWPSTATUS,NT_LWPSINFO): added.
|
||||||
|
* internal.h (Elf_Internal_Note): new structure members.
|
||||||
|
|
||||||
Fri Oct 16 14:11:25 1998 Catherine Moore <clm@cygnus.com>
|
Fri Oct 16 14:11:25 1998 Catherine Moore <clm@cygnus.com>
|
||||||
|
|
||||||
* m32r.h: Add vtable relocs.
|
* m32r.h: Add vtable relocs.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* ELF support for BFD.
|
/* ELF support for BFD.
|
||||||
Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
|
Copyright (C) 1991,92,93,94,95,96,97,98 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by Fred Fish @ Cygnus Support, from information published
|
Written by Fred Fish @ Cygnus Support, from information published
|
||||||
in "UNIX System V Release 4, Programmers Guide: ANSI C and
|
in "UNIX System V Release 4, Programmers Guide: ANSI C and
|
||||||
@ -28,7 +28,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
and external (in-file) representations. */
|
and external (in-file) representations. */
|
||||||
|
|
||||||
#ifndef _ELF_COMMON_H
|
#ifndef _ELF_COMMON_H
|
||||||
#define _ELF_COMMON_H
|
#define _ELF_COMMON_H
|
||||||
|
|
||||||
/* Fields in e_ident[] */
|
/* Fields in e_ident[] */
|
||||||
|
|
||||||
@ -209,6 +209,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
#define NT_FPREGSET 2 /* Contains copy of fpregset struct */
|
#define NT_FPREGSET 2 /* Contains copy of fpregset struct */
|
||||||
#define NT_PRPSINFO 3 /* Contains copy of prpsinfo struct */
|
#define NT_PRPSINFO 3 /* Contains copy of prpsinfo struct */
|
||||||
|
|
||||||
|
/* Note segments for core files on dir-style procfs systems. */
|
||||||
|
|
||||||
|
#define NT_PSTATUS 10 /* Has a struct pstatus */
|
||||||
|
#define NT_FPREGS 12 /* Has a struct fpregset */
|
||||||
|
#define NT_PSINFO 13 /* Has a struct psinfo */
|
||||||
|
#define NT_LWPSTATUS 16 /* Has a struct lwpstatus_t
|
||||||
|
#define NT_LWPSINFO 17 /* Has a struct lwpsinfo_t */
|
||||||
|
|
||||||
/* Values of note segment descriptor types for object files. */
|
/* Values of note segment descriptor types for object files. */
|
||||||
/* (Only for hppa right now. Should this be moved elsewhere?) */
|
/* (Only for hppa right now. Should this be moved elsewhere?) */
|
||||||
|
|
||||||
@ -288,6 +296,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
|
|
||||||
/* The next four dynamic tags are used on Solaris. We support them
|
/* The next four dynamic tags are used on Solaris. We support them
|
||||||
everywhere. */
|
everywhere. */
|
||||||
|
#define DT_VALRNGLO 0x6ffffd00
|
||||||
|
#define DT_POSFLAG_1 0x6ffffdfd
|
||||||
|
#define DT_SYMINSZ 0x6ffffdfe
|
||||||
|
#define DT_SYMINENT 0x6ffffdff
|
||||||
|
#define DT_VALRNGHI 0x6ffffdff
|
||||||
|
|
||||||
|
#define DT_ADDRRNGLO 0x6ffffe00
|
||||||
|
#define DT_SYMINFO 0x6ffffeff
|
||||||
|
#define DT_ADDRRNGHI 0x6ffffeff
|
||||||
|
|
||||||
|
#define DT_RELACOUNT 0x6ffffff9
|
||||||
|
#define DT_RELCOUNT 0x6ffffffa
|
||||||
|
#define DT_FLAGS_1 0x6ffffffb
|
||||||
#define DT_VERDEF 0x6ffffffc
|
#define DT_VERDEF 0x6ffffffc
|
||||||
#define DT_VERDEFNUM 0x6ffffffd
|
#define DT_VERDEFNUM 0x6ffffffd
|
||||||
#define DT_VERNEED 0x6ffffffe
|
#define DT_VERNEED 0x6ffffffe
|
||||||
@ -303,8 +324,26 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
everywhere, and hope they do not conflict. */
|
everywhere, and hope they do not conflict. */
|
||||||
|
|
||||||
#define DT_AUXILIARY 0x7ffffffd
|
#define DT_AUXILIARY 0x7ffffffd
|
||||||
|
#define DT_USED 0x7ffffffe
|
||||||
#define DT_FILTER 0x7fffffff
|
#define DT_FILTER 0x7fffffff
|
||||||
|
|
||||||
|
/* Flag values used in the DT_POSFLAG_1 .dynamic entry. */
|
||||||
|
#define DF_P1_LAZYLOAD 0x00000001
|
||||||
|
#define DF_P1_GROUPPERM 0x00000002
|
||||||
|
|
||||||
|
/* Flag value in in the DT_1_FLAGS .dynamic entry. */
|
||||||
|
#define DF_1_NOW 0x00000001
|
||||||
|
#define DF_1_GLOBAL 0x00000002
|
||||||
|
#define DF_1_GROUP 0x00000004
|
||||||
|
#define DF_1_NODELETE 0x00000008
|
||||||
|
#define DF_1_LOADFLTR 0x00000010
|
||||||
|
#define DF_1_INITFIRST 0x00000020
|
||||||
|
#define DF_1_NOOPEN 0x00000040
|
||||||
|
#define DF_1_ORIGIN 0x00000080
|
||||||
|
#define DF_1_DIRECT 0x00000100
|
||||||
|
#define DF_1_TRANS 0x00000200
|
||||||
|
#define DF_1_INTERPOSE 0x00000400
|
||||||
|
|
||||||
/* These constants are used for the version number of a Elf32_Verdef
|
/* These constants are used for the version number of a Elf32_Verdef
|
||||||
structure. */
|
structure. */
|
||||||
|
|
||||||
@ -346,4 +385,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||||||
|
|
||||||
#define ELF_VER_CHR '@'
|
#define ELF_VER_CHR '@'
|
||||||
|
|
||||||
|
/* Possible values for si_boundto. */
|
||||||
|
#define SYMINFO_BT_SELF 0xffff /* Symbol bound to self */
|
||||||
|
#define SYMINFO_BT_PARENT 0xfffe /* Symbol bound to parent */
|
||||||
|
#define SYMINFO_BT_LOWRESERVE 0xff00 /* Beginning of reserved entries */
|
||||||
|
|
||||||
|
/* Possible bitmasks for si_flags. */
|
||||||
|
#define SYMINFO_FLG_DIRECT 0x0001 /* Direct bound symbol */
|
||||||
|
#define SYMINFO_FLG_PASSTHRU 0x0002 /* Pass-thru symbol for translator */
|
||||||
|
#define SYMINFO_FLG_COPY 0x0004 /* Symbol is a copy-reloc */
|
||||||
|
#define SYMINFO_FLG_LAZYLOAD 0x0008 /* Symbol bound to object to be lazy
|
||||||
|
loaded */
|
||||||
|
/* Syminfo version values. */
|
||||||
|
#define SYMINFO_NONE 0
|
||||||
|
#define SYMINFO_CURRENT 1
|
||||||
|
#define SYMINFO_NUM 2
|
||||||
|
|
||||||
#endif /* _ELF_COMMON_H */
|
#endif /* _ELF_COMMON_H */
|
||||||
|
Reference in New Issue
Block a user