aboutsummaryrefslogtreecommitdiff
path: root/gprof/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-02-27 17:49:00 +0000
committerIan Lance Taylor <ian@airs.com>1997-02-27 17:49:00 +0000
commit22395d7ed4081e9dca0fb92dd8428330264f777f (patch)
treedbc1242847d65955afd19f34834c2dd96dad0eea /gprof/configure.in
parentf7d098a5b9b6fac47bc16dea6d212a936cd92c8c (diff)
downloadfsf-binutils-gdb-22395d7ed4081e9dca0fb92dd8428330264f777f.zip
fsf-binutils-gdb-22395d7ed4081e9dca0fb92dd8428330264f777f.tar.gz
fsf-binutils-gdb-22395d7ed4081e9dca0fb92dd8428330264f777f.tar.bz2
* configure.in: Define BSD44_FORMAT if the target looks like a
BSD4.4 derived system. * configure: Rebuild. * Makefile.in (.c.o): Add @DEFS@. * gmon_io.c (gmon_out_read): In BSD44_FORMAT code, get profrate from profrate field, not version field.
Diffstat (limited to 'gprof/configure.in')
-rw-r--r--gprof/configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/gprof/configure.in b/gprof/configure.in
index 074ace7..30bb9b2 100644
--- a/gprof/configure.in
+++ b/gprof/configure.in
@@ -33,6 +33,15 @@ esac
AC_SUBST(MY_TARGET)
+dnl We need to set BSD44_FORMAT on a host which uses the additional
+dnl header fields. This is an attempt to do that. I can't think of a
+dnl good feature test for this.
+case "${target}" in
+*-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
+ AC_DEFINE(BSD44_FORMAT)
+ ;;
+esac
+
BFDLIB='-L../bfd -lbfd'
# We need to handle some special cases if BFD was built shared.