* aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
[deliverable/binutils-gdb.git] / gprof / configure.in
CommitLineData
252b5132 1dnl Process this file with autoconf to produce a configure script.
5bf135a7
NC
2dnl
3dnl Copyright 2012 Free Software Foundation
4dnl
5dnl This file is free software; you can redistribute it and/or modify
6dnl it under the terms of the GNU General Public License as published by
7dnl the Free Software Foundation; either version 3 of the License, or
8dnl (at your option) any later version.
9dnl
10dnl This program is distributed in the hope that it will be useful,
11dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13dnl GNU General Public License for more details.
14dnl
15dnl You should have received a copy of the GNU General Public License
16dnl along with this program; see the file COPYING3. If not see
17dnl <http://www.gnu.org/licenses/>.
18dnl
6bf9431b
BE
19AC_PREREQ(2.59)
20AC_INIT
21AC_CONFIG_SRCDIR([gprof.c])
252b5132 22
6bf9431b 23AC_CANONICAL_TARGET([])
5d64ca4e 24AC_ISC_POSIX
252b5132 25
27b7e12d 26changequote(,)dnl
c4dd807e 27BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
27b7e12d
AM
28changequote([,])dnl
29AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
252b5132 30
252b5132
RH
31dnl For simplicity, we use the BFD configuration file for most
32dnl things. However, we also need our own configuration file for
33dnl the automake PACKAGE and VERSION macros. We don't name it
34dnl config.h, to avoid any possible confusion with the bfd config.h.
6bf9431b 35AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
252b5132
RH
36
37AC_PROG_CC
0ab6f085 38AC_GNU_SOURCE
7357c5b6 39AC_USE_SYSTEM_EXTENSIONS
da2f07f1 40ACX_LARGEFILE
252b5132
RH
41AC_PROG_INSTALL
42
da594c4a 43LT_INIT
ce2cded5 44
5af11cab 45AC_CHECK_FUNCS(setmode)
252b5132 46
f4b2f7c2 47ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja sr"
20e95c23
DJ
48ZW_GNU_GETTEXT_SISTER_DIR
49AM_PO_SUBDIRS
252b5132
RH
50
51AM_MAINTAINER_MODE
d5fbea21 52AM_CONDITIONAL(GENINSRC_NEVER, false)
252b5132
RH
53AC_EXEEXT
54
0eee5820
AM
55AC_CHECK_HEADERS(sys/gmon_out.h)
56
34875e64
NC
57AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
58AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h,
da594c4a 59[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
34875e64
NC
60gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)])
61AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h)
62if test $gprof_cv_decl_getopt_unistd_h = yes; then
63 AC_DEFINE([HAVE_DECL_GETOPT], 1,
64 [Is the prototype for getopt in <unistd.h> in the expected format?])
65fi
66
1b9750d6
NC
67# Some systems have fabs only in -lm, not in -lc.
68AC_SEARCH_LIBS(fabs, m)
69
9e9b66a9 70AM_BINUTILS_WARNINGS
a2d91340 71
31dd3154 72dnl Required by html, pdf, install-pdf and install-html
108a6f8e
CD
73AC_SUBST(datarootdir)
74AC_SUBST(docdir)
75AC_SUBST(htmldir)
31dd3154 76AC_SUBST(pdfdir)
108a6f8e 77
6bf9431b 78AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
6bf9431b 79AC_OUTPUT
This page took 0.609704 seconds and 4 git commands to generate.