Import new turkish translations from Translation Project's website.
[deliverable/binutils-gdb.git] / gprof / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.13)
3 AC_INIT(gprof.c)
4
5 AC_CANONICAL_SYSTEM
6 AC_ISC_POSIX
7
8 changequote(,)dnl
9 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
10 changequote([,])dnl
11 AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
12
13 AM_PROG_LIBTOOL
14
15 dnl For simplicity, we use the BFD configuration file for most
16 dnl things. However, we also need our own configuration file for
17 dnl the automake PACKAGE and VERSION macros. We don't name it
18 dnl config.h, to avoid any possible confusion with the bfd config.h.
19 AM_CONFIG_HEADER(gconfig.h:gconfig.in)
20
21 AC_PROG_CC
22 AC_PROG_INSTALL
23
24 AC_CHECK_FUNCS(setmode)
25
26 ALL_LINGUAS="fr tr"
27 CY_GNU_GETTEXT
28
29 AM_MAINTAINER_MODE
30 AC_EXEEXT
31
32 AC_CHECK_HEADERS(sys/gmon_out.h)
33
34 AC_MSG_CHECKING(the size of gmon pointers)
35 AC_TRY_RUN([#include <stdio.h>
36 #include <stdlib.h>
37 #if HAVE_SYS_GMON_OUT_H
38 #include <sys/gmon_out.h>
39 #endif
40 main()
41 {
42 #if HAVE_SYS_GMON_OUT_H
43 struct gmon_cg_arc_record arc;
44 FILE *f=fopen("conftestval", "w");
45 if (!f) exit(1);
46 fprintf(f, "%d\n", sizeof(arc.from_pc));
47 exit(0);
48 #else
49 FILE *f=fopen("conftestval", "w");
50 if (!f) exit(1);
51 fprintf(f, "%d\n", (int) sizeof(char *));
52 exit(1);
53 #endif
54 }], gmon_ptr_size=`cat conftestval`, gmon_ptr_size=4, gmon_ptr_size=4)
55 AC_MSG_RESULT($gmon_ptr_size)
56
57 AC_DEFINE_UNQUOTED(GMON_PTR_SIZE, $gmon_ptr_size)
58
59 build_warnings="-W -Wall"
60 AC_ARG_ENABLE(build-warnings,
61 [ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
62 [case "${enableval}" in
63 yes) ;;
64 no) build_warnings="-w";;
65 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
66 build_warnings="${build_warnings} ${t}";;
67 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
68 build_warnings="${t} ${build_warnings}";;
69 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
70 esac
71 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
72 echo "Setting warning flags = $build_warnings" 6>&1
73 fi])dnl
74 WARN_CFLAGS=""
75 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
76 WARN_CFLAGS="${build_warnings}"
77 fi
78 AC_SUBST(WARN_CFLAGS)
79
80 AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
81 [sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])
This page took 0.050667 seconds and 5 git commands to generate.