1 dnl Process this file with autoconf to produce a configure script.
7 AM_INIT_AUTOMAKE(gprof, 2.9.5)
11 dnl For simplicity, we use the BFD configuration file for most
12 dnl things. However, we also need our own configuration file for
13 dnl the automake PACKAGE and VERSION macros. We don't name it
14 dnl config.h, to avoid any possible confusion with the bfd config.h.
15 AM_CONFIG_HEADER(gconfig.h:gconfig.in)
28 build_warnings="-W -Wall"
29 AC_ARG_ENABLE(build-warnings,
30 [ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
31 [case "${enableval}" in
33 no) build_warnings="-w";;
34 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
35 build_warnings="${build_warnings} ${t}";;
36 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
37 build_warnings="${t} ${build_warnings}";;
38 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
40 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
41 echo "Setting warning flags = $build_warnings" 6>&1
44 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
45 WARN_CFLAGS="${build_warnings}"
49 AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
50 [sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])