]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | dnl Process this file with autoconf to produce a configure script. |
6bf9431b BE |
2 | AC_PREREQ(2.59) |
3 | AC_INIT | |
4 | AC_CONFIG_SRCDIR([gprof.c]) | |
252b5132 | 5 | |
6bf9431b | 6 | AC_CANONICAL_TARGET([]) |
5d64ca4e | 7 | AC_ISC_POSIX |
252b5132 | 8 | |
27b7e12d AM |
9 | changequote(,)dnl |
10 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
11 | changequote([,])dnl | |
12 | AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION}) | |
252b5132 | 13 | |
252b5132 RH |
14 | dnl For simplicity, we use the BFD configuration file for most |
15 | dnl things. However, we also need our own configuration file for | |
16 | dnl the automake PACKAGE and VERSION macros. We don't name it | |
17 | dnl config.h, to avoid any possible confusion with the bfd config.h. | |
6bf9431b | 18 | AC_CONFIG_HEADERS([gconfig.h:gconfig.in]) |
252b5132 RH |
19 | |
20 | AC_PROG_CC | |
0ab6f085 | 21 | AC_GNU_SOURCE |
7357c5b6 | 22 | AC_USE_SYSTEM_EXTENSIONS |
da2f07f1 | 23 | ACX_LARGEFILE |
252b5132 RH |
24 | AC_PROG_INSTALL |
25 | ||
da594c4a | 26 | LT_INIT |
ce2cded5 | 27 | |
5af11cab | 28 | AC_CHECK_FUNCS(setmode) |
252b5132 | 29 | |
07725569 | 30 | ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja" |
20e95c23 DJ |
31 | ZW_GNU_GETTEXT_SISTER_DIR |
32 | AM_PO_SUBDIRS | |
252b5132 RH |
33 | |
34 | AM_MAINTAINER_MODE | |
d5fbea21 | 35 | AM_CONDITIONAL(GENINSRC_NEVER, false) |
252b5132 RH |
36 | AC_EXEEXT |
37 | ||
0eee5820 AM |
38 | AC_CHECK_HEADERS(sys/gmon_out.h) |
39 | ||
34875e64 NC |
40 | AC_MSG_CHECKING(for a known getopt prototype in unistd.h) |
41 | AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h, | |
da594c4a | 42 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])], |
34875e64 NC |
43 | gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)]) |
44 | AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h) | |
45 | if 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?]) | |
48 | fi | |
49 | ||
1b9750d6 NC |
50 | # Some systems have fabs only in -lm, not in -lc. |
51 | AC_SEARCH_LIBS(fabs, m) | |
52 | ||
9e9b66a9 | 53 | AM_BINUTILS_WARNINGS |
a2d91340 | 54 | |
31dd3154 | 55 | dnl Required by html, pdf, install-pdf and install-html |
108a6f8e CD |
56 | AC_SUBST(datarootdir) |
57 | AC_SUBST(docdir) | |
58 | AC_SUBST(htmldir) | |
31dd3154 | 59 | AC_SUBST(pdfdir) |
108a6f8e | 60 | |
6bf9431b | 61 | AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in]) |
6bf9431b | 62 | AC_OUTPUT |