Add support for v850E2 and v850E2V3
[deliverable/binutils-gdb.git] / gprof / configure.in
... / ...
CommitLineData
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.59)
3AC_INIT
4AC_CONFIG_SRCDIR([gprof.c])
5
6AC_CANONICAL_TARGET([])
7AC_ISC_POSIX
8
9changequote(,)dnl
10BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
11changequote([,])dnl
12AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
13
14dnl For simplicity, we use the BFD configuration file for most
15dnl things. However, we also need our own configuration file for
16dnl the automake PACKAGE and VERSION macros. We don't name it
17dnl config.h, to avoid any possible confusion with the bfd config.h.
18AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
19
20AC_PROG_CC
21AC_GNU_SOURCE
22AC_USE_SYSTEM_EXTENSIONS
23ACX_LARGEFILE
24AC_PROG_INSTALL
25
26LT_INIT
27
28AC_CHECK_FUNCS(setmode)
29
30ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg"
31ZW_GNU_GETTEXT_SISTER_DIR
32AM_PO_SUBDIRS
33
34AM_MAINTAINER_MODE
35AM_CONDITIONAL(GENINSRC_NEVER, false)
36AC_EXEEXT
37
38AC_CHECK_HEADERS(sys/gmon_out.h)
39
40AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
41AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h,
42[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
43gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)])
44AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h)
45if test $gprof_cv_decl_getopt_unistd_h = yes; then
46 AC_DEFINE([HAVE_DECL_GETOPT], 1,
47 [Is the prototype for getopt in <unistd.h> in the expected format?])
48fi
49
50# Some systems have fabs only in -lm, not in -lc.
51AC_SEARCH_LIBS(fabs, m)
52
53AM_BINUTILS_WARNINGS
54
55dnl Required by html, pdf, install-pdf and install-html
56AC_SUBST(datarootdir)
57AC_SUBST(docdir)
58AC_SUBST(htmldir)
59AC_SUBST(pdfdir)
60
61AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
62AC_OUTPUT
This page took 0.036159 seconds and 4 git commands to generate.