* Sanitization fixes to retain new files.
[binutils-gdb.git] / gprof / configure.in
blob90c53a336b6acc8e517afeea63ef0d6a314b4c7f
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.5)dnl
3 AC_INIT(gprof.c)
5 AC_CANONICAL_SYSTEM
7 AM_INIT_AUTOMAKE(gprof, 2.9.4)
9 AM_PROG_LIBTOOL
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)
17 AC_PROG_CC
18 AM_PROG_INSTALL
20 AC_ISC_POSIX
22 ALL_LINGUAS=
23 CY_GNU_GETTEXT
25 dnl We need to set BSD44_FORMAT on a host which uses the additional
26 dnl header fields.  This is an attempt to do that.  I can't think of a
27 dnl good feature test for this.
28 case "${target}" in
29 *-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* \
30 | *-*-cygwin* | *-*-mingw32 | *-*-win32 )
31   AC_DEFINE(BSD44_FORMAT)
32   ;;
33 esac
35 AM_MAINTAINER_MODE
36 AM_CYGWIN32
37 AM_EXEEXT
39 AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
40 [sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])