Commit | Line | Data |
---|---|---|
7858d8dc | 1 | dnl Process this file with autoconf to produce a configure script. |
39c3964f | 2 | AC_PREREQ(2.5)dnl |
7858d8dc | 3 | AC_INIT(gprof.c) |
c98f0ae5 | 4 | |
2f1fec47 ILT |
5 | AC_CANONICAL_SYSTEM |
6 | ||
274e44ae | 7 | AM_INIT_AUTOMAKE(gprof, 2.8.2) |
2f1fec47 | 8 | |
274e44ae ILT |
9 | AM_PROG_LIBTOOL |
10 | ||
11 | dnl For simplicity, we use the BFD configuration file for most | |
12 | dnl things. However, we also need our own configuration file for | |
13 | dnl the automake PACKAGE and VERSION macros. We don't name it | |
14 | dnl config.h, to avoid any possible confusion with the bfd config.h. | |
15 | AM_CONFIG_HEADER(gconfig.h:gconfig.in) | |
ba8e3a2e | 16 | |
7858d8dc | 17 | AC_PROG_CC |
274e44ae | 18 | AM_PROG_INSTALL |
c98f0ae5 | 19 | |
e3c0e00b ILT |
20 | AC_ISC_POSIX |
21 | ||
22395d7e ILT |
22 | dnl We need to set BSD44_FORMAT on a host which uses the additional |
23 | dnl header fields. This is an attempt to do that. I can't think of a | |
24 | dnl good feature test for this. | |
25 | case "${target}" in | |
26 | *-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*) | |
27 | AC_DEFINE(BSD44_FORMAT) | |
28 | ;; | |
29 | esac | |
30 | ||
2f1fec47 ILT |
31 | AM_MAINTAINER_MODE |
32 | AM_CYGWIN32 | |
274e44ae | 33 | AM_EXEEXT |
2f1fec47 | 34 | |
7858d8dc | 35 | AC_OUTPUT(Makefile) |