aboutsummaryrefslogtreecommitdiff
path: root/bfd/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/aclocal.m4')
-rw-r--r--bfd/aclocal.m450
1 files changed, 37 insertions, 13 deletions
diff --git a/bfd/aclocal.m4 b/bfd/aclocal.m4
index 4446fc1..b6dfcbe 100644
--- a/bfd/aclocal.m4
+++ b/bfd/aclocal.m4
@@ -136,6 +136,43 @@ AC_DEFUN([CY_WITH_NLS],)
AC_SUBST(INTLLIBS)
])
+AC_DEFUN([AM_INSTALL_LIBBFD],
+[AC_MSG_CHECKING([whether to install libbfd])
+ AC_ARG_ENABLE(install-libbfd,
+[ --install-libbfd controls installation of libbfd and related headers],
+ install_libbfd_p=$enableval,
+ if test "${host}" = "${target}" -o "$enable_shared" = "yes"; then
+ install_libbfd_p=yes
+ else
+ install_libbfd_p=no
+ fi)
+ AC_MSG_RESULT($install_libbfd_p)
+ AM_CONDITIONAL(INSTALL_LIBBFD, test $install_libbfd_p = yes)
+ # libbfd.a is a host library containing target dependent code
+ bfdlibdir='$(libdir)'
+ bfdincludedir='$(includedir)'
+ if test "${host}" != "${target}"; then
+ bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
+ bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
+ fi
+ AC_SUBST(bfdlibdir)
+ AC_SUBST(bfdincludedir)
+]
+)
+
+# Define a conditional.
+
+AC_DEFUN([AM_CONDITIONAL],
+[AC_SUBST($1_TRUE)
+AC_SUBST($1_FALSE)
+if $2; then
+ $1_TRUE=
+ $1_FALSE='#'
+else
+ $1_TRUE='#'
+ $1_FALSE=
+fi])
+
# Do all the work for Automake. This macro actually does too much --
# some checks are only needed if your package does certain things.
# But this isn't really a big deal.
@@ -271,16 +308,3 @@ AC_DEFUN([AM_MAINTAINER_MODE],
]
)
-# Define a conditional.
-
-AC_DEFUN([AM_CONDITIONAL],
-[AC_SUBST($1_TRUE)
-AC_SUBST($1_FALSE)
-if $2; then
- $1_TRUE=
- $1_FALSE='#'
-else
- $1_TRUE='#'
- $1_FALSE=
-fi])
-