* libiberty.h: Move #includes to top. Prototype xmalloc_failed.
[deliverable/binutils-gdb.git] / gprof / configure.in
CommitLineData
252b5132
RH
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.13)
3AC_INIT(gprof.c)
4
5AC_CANONICAL_SYSTEM
5d64ca4e 6AC_ISC_POSIX
252b5132 7
18e03609 8AM_INIT_AUTOMAKE(gprof, 2.10.91)
252b5132
RH
9
10AM_PROG_LIBTOOL
11
12dnl For simplicity, we use the BFD configuration file for most
13dnl things. However, we also need our own configuration file for
14dnl the automake PACKAGE and VERSION macros. We don't name it
15dnl config.h, to avoid any possible confusion with the bfd config.h.
16AM_CONFIG_HEADER(gconfig.h:gconfig.in)
17
18AC_PROG_CC
19AC_PROG_INSTALL
20
5af11cab 21AC_CHECK_FUNCS(setmode)
252b5132
RH
22
23ALL_LINGUAS=
24CY_GNU_GETTEXT
25
26AM_MAINTAINER_MODE
27AC_EXEEXT
28
a2d91340
AC
29build_warnings="-W -Wall"
30AC_ARG_ENABLE(build-warnings,
31[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
32[case "${enableval}" in
33 yes) ;;
34 no) build_warnings="-w";;
35 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
36 build_warnings="${build_warnings} ${t}";;
37 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
38 build_warnings="${t} ${build_warnings}";;
39 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
40esac
41if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
42 echo "Setting warning flags = $build_warnings" 6>&1
43fi])dnl
44WARN_CFLAGS=""
45if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
46 WARN_CFLAGS="${build_warnings}"
47fi
48AC_SUBST(WARN_CFLAGS)
49
252b5132
RH
50AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
51[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])
This page took 0.06748 seconds and 4 git commands to generate.