aboutsummaryrefslogtreecommitdiff
path: root/opcodes/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-03-26 21:12:59 +0000
committerIan Lance Taylor <ian@airs.com>1996-03-26 21:12:59 +0000
commit7919b9ec416c33f5a6997ce0c73e1f5d2208ac19 (patch)
treea3c19b650caf2f9bd8e6f952c4a5cadf65ac40fe /opcodes/configure.in
parent986cf3b852cc7db40e73ec59eb0ef995b24f270c (diff)
downloadgdb-7919b9ec416c33f5a6997ce0c73e1f5d2208ac19.zip
gdb-7919b9ec416c33f5a6997ce0c73e1f5d2208ac19.tar.gz
gdb-7919b9ec416c33f5a6997ce0c73e1f5d2208ac19.tar.bz2
* configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
Miles Bader <miles@gnu.ai.mit.edu>. * configure: Rebuild.
Diffstat (limited to 'opcodes/configure.in')
-rw-r--r--opcodes/configure.in17
1 files changed, 11 insertions, 6 deletions
diff --git a/opcodes/configure.in b/opcodes/configure.in
index 90ebe10..d4ff51c 100644
--- a/opcodes/configure.in
+++ b/opcodes/configure.in
@@ -1,7 +1,7 @@
AC_PREREQ(2.0)
AC_INIT(z8k-dis.c)
# configure.in script for the opcodes library.
-# Copyright (C) 1995 Free Software Foundation, Inc.
+# Copyright (C) 1995, 1996 Free Software Foundation, Inc.
# Written by Cygnus Support.
#
# This program is free software; you can redistribute it and/or modify
@@ -54,8 +54,8 @@ AC_ARG_PROGRAM
ALLLIBS='$(TARGETLIB)'
PICFLAG=
-SHLIB=
-SHLINK=
+SHLIB=unused-shlib
+SHLINK=unused-shlink
if test "${shared}" = "true"; then
ALLLIBS='$(TARGETLIB) $(SHLIB) $(SHLINK)'
PICFLAG=-fpic
@@ -77,16 +77,17 @@ AC_PROG_CC
. ${srcdir}/../bfd/configure.host
AC_SUBST(HDEFINES)
-AC_CHECK_PROG(AR, ar, ar, :)
-AC_PROG_RANLIB
+AC_CHECK_TOOL(AR, ar)
+AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_PROG_INSTALL
if test "${shared}" = "true"; then
if test "${GCC}" != "yes" && test "${shared_non_gcc}" != "yes"; then
AC_MSG_WARN([opcodes --enable-shared only supported when using gcc])
shared=false
+ ALLLIBS='$(TARGETLIB)'
PICFLAG=
- SHLIB=
+ SHLIB=unused-shlib
fi
fi
@@ -97,10 +98,14 @@ AC_SUBST(SHLIB_CC)
AC_SUBST(SHLIB_CFLAGS)
if test "${commonbfdlib}" = "true"; then
COMMON_SHLIB=yes
+ # Rebuild the shared library if libiberty or libbfd changes.
+ SHLIB_DEP="../libiberty/libiberty.a ../bfd/libbfd.a"
else
COMMON_SHLIB=
+ SHLIB_DEP=
fi
AC_SUBST(COMMON_SHLIB)
+AC_SUBST(SHLIB_DEP)
AC_SUBST(SHLINK)
AC_CHECK_HEADERS(string.h strings.h)