1## Process this file with autoconf to create configure. -*- autoconf -*-
2# Copyright 2001  Free Software Foundation, Inc.
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17# 02110-1301  USA
18
19AC_PREREQ(2.50)
20
21
22## ------------------------ ##
23## Autoconf initialisation. ##
24## ------------------------ ##
25AC_INIT([tagdemo], [0.1], [bug-libtool@gnu.org])
26AC_CONFIG_SRCDIR([foo.cpp])
27
28AC_CANONICAL_TARGET
29
30
31## ------------------------ ##
32## Automake Initialisation. ##
33## ------------------------ ##
34AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION)
35
36
37## ---------------- ##
38## Compiler checks. ##
39## ---------------- ##
40AC_PROG_CC
41AC_PROG_CPP
42AC_PROG_CC_C_O
43
44AC_PROG_CXX
45AC_PROG_CXXCPP
46
47# As of the writing of this demo, GNU Autoconf's AC_OBJEXT and
48# AC_EXEEXT macros only works for C compilers!
49# Libtool's setup macro calls AC_OBJEXT and AC_EXEEXT without setting
50# the test language to C.  We do it before any libtool setup macros are
51# called so that the proper values are cached beforehand.  We also do
52# it before any linker flags (LDFLAGS) are set so that C++ specific
53# ones don't break the tests.
54AC_LANG_PUSH([C])
55AC_OBJEXT
56AC_EXEEXT
57AC_LANG_POP
58
59
60## ----------------------- ##
61## Libtool initialisation. ##
62## ----------------------- ##
63
64# Set the test language to C++.
65AC_LANG([C++])
66AM_PROG_LIBTOOL
67
68
69## ---------------------------- ##
70## C headers required by cdemo. ##
71## ---------------------------- ##
72AC_CHECK_HEADERS([math.h])
73
74
75## ---------------------------- ##
76## Libraries required by cdemo. ##
77## ---------------------------- ##
78AC_CHECK_LIBM
79AC_SUBST([LIBM])
80
81
82## -------- ##
83## Outputs. ##
84## -------- ##
85AC_CONFIG_FILES([Makefile])
86AC_OUTPUT
87