* section.c (struct sec): Remove usused flags. Reorganize a little.
[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
27b7e12d
AM
8changequote(,)dnl
9BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
10changequote([,])dnl
11AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
252b5132
RH
12
13AM_PROG_LIBTOOL
14
15dnl For simplicity, we use the BFD configuration file for most
16dnl things. However, we also need our own configuration file for
17dnl the automake PACKAGE and VERSION macros. We don't name it
18dnl config.h, to avoid any possible confusion with the bfd config.h.
19AM_CONFIG_HEADER(gconfig.h:gconfig.in)
20
21AC_PROG_CC
22AC_PROG_INSTALL
23
5af11cab 24AC_CHECK_FUNCS(setmode)
252b5132 25
093872ec 26ALL_LINGUAS="fr tr sv es id da pt_BR de"
252b5132
RH
27CY_GNU_GETTEXT
28
29AM_MAINTAINER_MODE
30AC_EXEEXT
31
0eee5820
AM
32AC_CHECK_HEADERS(sys/gmon_out.h)
33
66477e87 34build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
35AC_ARG_ENABLE(build-warnings,
36[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
37[case "${enableval}" in
38 yes) ;;
39 no) build_warnings="-w";;
40 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
41 build_warnings="${build_warnings} ${t}";;
42 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
43 build_warnings="${t} ${build_warnings}";;
44 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
45esac
46if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
47 echo "Setting warning flags = $build_warnings" 6>&1
48fi])dnl
49WARN_CFLAGS=""
50if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
51 WARN_CFLAGS="${build_warnings}"
52fi
53AC_SUBST(WARN_CFLAGS)
54
252b5132
RH
55AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
56[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])
This page took 0.199425 seconds and 4 git commands to generate.