bfd/
[deliverable/binutils-gdb.git] / gprof / configure.in
CommitLineData
252b5132 1dnl Process this file with autoconf to produce a configure script.
6bf9431b
BE
2AC_PREREQ(2.59)
3AC_INIT
4AC_CONFIG_SRCDIR([gprof.c])
252b5132 5
6bf9431b 6AC_CANONICAL_TARGET([])
5d64ca4e 7AC_ISC_POSIX
252b5132 8
27b7e12d
AM
9changequote(,)dnl
10BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
11changequote([,])dnl
12AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
252b5132
RH
13
14AM_PROG_LIBTOOL
15
16dnl For simplicity, we use the BFD configuration file for most
17dnl things. However, we also need our own configuration file for
18dnl the automake PACKAGE and VERSION macros. We don't name it
19dnl config.h, to avoid any possible confusion with the bfd config.h.
6bf9431b 20AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
252b5132
RH
21
22AC_PROG_CC
23AC_PROG_INSTALL
24
5af11cab 25AC_CHECK_FUNCS(setmode)
252b5132 26
221ca466 27ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms"
20e95c23
DJ
28ZW_GNU_GETTEXT_SISTER_DIR
29AM_PO_SUBDIRS
252b5132
RH
30
31AM_MAINTAINER_MODE
d5fbea21 32AM_CONDITIONAL(GENINSRC_NEVER, false)
252b5132
RH
33AC_EXEEXT
34
0eee5820
AM
35AC_CHECK_HEADERS(sys/gmon_out.h)
36
34875e64
NC
37AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
38AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h,
39[AC_TRY_COMPILE([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);],
40gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)])
41AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h)
42if test $gprof_cv_decl_getopt_unistd_h = yes; then
43 AC_DEFINE([HAVE_DECL_GETOPT], 1,
44 [Is the prototype for getopt in <unistd.h> in the expected format?])
45fi
46
9e9b66a9 47AM_BINUTILS_WARNINGS
a2d91340 48
108a6f8e
CD
49dnl Required by html and install-html
50AC_SUBST(datarootdir)
51AC_SUBST(docdir)
52AC_SUBST(htmldir)
53
6bf9431b 54AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
6bf9431b 55AC_OUTPUT
This page took 0.332823 seconds and 4 git commands to generate.