]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gprofng/libcollector/configure.ac
Update year range in gprofng copyright notices
[thirdparty/binutils-gdb.git] / gprofng / libcollector / configure.ac
CommitLineData
bb368aad
VM
1dnl Process this file with autoconf to produce a configure script.
2dnl
76bdc726 3dnl Copyright (C) 2021-2023 Free Software Foundation, Inc.
bb368aad
VM
4dnl
5dnl This file is free software; you can redistribute it and/or modify
6dnl it under the terms of the GNU General Public License as published by
7dnl the Free Software Foundation; either version 3 of the License, or
8dnl (at your option) any later version.
9dnl
10dnl This program is distributed in the hope that it will be useful,
11dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13dnl GNU General Public License for more details.
14dnl
15dnl You should have received a copy of the GNU General Public License
16dnl along with this program; see the file COPYING3. If not see
17dnl <http://www.gnu.org/licenses/>.
18
19m4_include([../../bfd/version.m4])
20AC_INIT([gprofng], BFD_VERSION)
21AC_CONFIG_MACRO_DIRS([../../config ../..])
22AC_CONFIG_AUX_DIR(../..)
6109e902 23AC_CANONICAL_TARGET
bb368aad
VM
24AM_INIT_AUTOMAKE
25AM_MAINTAINER_MODE
26
27AC_CONFIG_SRCDIR(libcol_util.c)
28
29AC_USE_SYSTEM_EXTENSIONS
30AC_PROG_CC
31AC_PROG_CXX
32AC_PROG_INSTALL
33AC_PROG_RANLIB
34AM_PROG_AR
35
36LT_INIT
37AC_ENABLE_SHARED
38AC_DISABLE_STATIC
39
40if test "$enable_shared" != "yes"; then
aa9b5dbc 41 AC_MSG_WARN([Cannot set --enable-shared for gprofng/libcollector. Profiling will be unavailable.])
bb368aad
VM
42fi
43
44GPROFNG_VARIANT=unknown
1bb1f55d
VM
45x=`echo | $CC $CFLAGS -dM -E - | grep -w __x86_64`
46if test -n "$x"; then
47 GPROFNG_VARIANT=amd64-Linux
48else
49 x=`echo | $CC $CFLAGS -dM -E - | grep -w __i386__`
50 if test -n "$x"; then
bb368aad 51 GPROFNG_VARIANT=intel-Linux
1bb1f55d
VM
52 else
53 x=`echo | $CC $CFLAGS -dM -E - | grep -w __aarch64__`
54 if test -n "$x"; then
55 GPROFNG_VARIANT=aarch64-Linux
56 fi
57 fi
58fi
bb368aad
VM
59AC_SUBST(GPROFNG_VARIANT)
60
a8b34706
L
61ACX_PROG_CC_WARNING_OPTS([-Wno-nonnull-compare], [GPROFNG_NO_NONNULL_COMPARE_CFLAGS])
62AC_SUBST(GPROFNG_NO_NONNULL_COMPARE_CFLAGS)
63
bb368aad 64AC_CONFIG_FILES([Makefile])
e4d04cb3
VM
65AC_CONFIG_HEADERS([lib-config.h:../common/lib-config.h.in])
66
bb368aad
VM
67AC_OUTPUT
68