1 |
dnl -*-Autoconf-*- |
## Process this file with autoconf to create configure. -*- autoconf -*- |
2 |
dnl $Id$ |
# Copyright 2001 Free Software Foundation, Inc. |
3 |
|
# |
4 |
dnl |
# This program is free software; you can redistribute it and/or modify |
5 |
dnl An autoconf script to automatically configure the sample C++ "foo" |
# it under the terms of the GNU General Public License as published by |
6 |
dnl application. |
# the Free Software Foundation; either version 2 of the License, or |
7 |
dnl Process this file with autoconf to produce a configure script. |
# (at your option) any later version. |
8 |
dnl |
# |
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., 59 Temple Place, Suite 330, Boston, MA |
17 |
|
# 02111-1307 USA |
18 |
|
|
19 |
AC_PREREQ(2.50) |
AC_PREREQ(2.50) |
|
dnl Can't use $PACKAGE/$VERSION here |
|
|
AC_INIT(foo, 0.1) |
|
|
AC_CONFIG_SRCDIR([foo.cpp])dnl |
|
|
|
|
|
dnl Check what platform we are running on. |
|
|
AC_CANONICAL_TARGET([]) |
|
|
|
|
|
dnl Cause GNU Automake to initialize the state of things and run |
|
|
dnl some sanity checks |
|
|
PACKAGE=foo |
|
|
VERSION=0.1 |
|
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION) |
|
20 |
|
|
21 |
dnl Check the C compiler and preprocessor. |
|
22 |
|
## ------------------------ ## |
23 |
|
## Autoconf initialisation. ## |
24 |
|
## ------------------------ ## |
25 |
|
AC_INIT([tagdemo], [0.1], [bug-libtool@gnu.org]) |
26 |
|
AC_CONFIG_SRCDIR([foo.cpp]) |
27 |
|
|
28 |
|
AC_CANONICAL_TARGET |
29 |
|
|
30 |
|
|
31 |
|
## ------------------------ ## |
32 |
|
## Automake Initialisation. ## |
33 |
|
## ------------------------ ## |
34 |
|
AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION) |
35 |
|
|
36 |
|
|
37 |
|
## ---------------- ## |
38 |
|
## Compiler checks. ## |
39 |
|
## ---------------- ## |
40 |
AC_PROG_CC |
AC_PROG_CC |
41 |
AC_PROG_CPP |
AC_PROG_CPP |
42 |
AC_PROG_CC_C_O |
AC_PROG_CC_C_O |
43 |
|
|
|
dnl Check the C++ compiler and preprocessor. |
|
44 |
AC_PROG_CXX |
AC_PROG_CXX |
45 |
AC_PROG_CXXCPP |
AC_PROG_CXXCPP |
46 |
|
|
56 |
AC_EXEEXT |
AC_EXEEXT |
57 |
AC_LANG_POP |
AC_LANG_POP |
58 |
|
|
|
dnl Setup Libtool |
|
59 |
|
|
60 |
dnl Set the test language to C++. |
## ----------------------- ## |
61 |
AC_LANG([C++]) |
## Libtool initialisation. ## |
62 |
|
## ----------------------- ## |
63 |
|
|
64 |
dnl Check for libtool and turn on Automake processing for Libtool |
# Set the test language to C++. |
65 |
|
AC_LANG([C++]) |
66 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
67 |
|
|
|
AC_CHECK_HEADERS(math.h) |
|
68 |
|
|
69 |
|
## ---------------------------- ## |
70 |
|
## C headers required by cdemo. ## |
71 |
|
## ---------------------------- ## |
72 |
|
AC_CHECK_HEADERS([math.h]) |
73 |
|
|
74 |
|
|
75 |
|
## ---------------------------- ## |
76 |
|
## Libraries required by cdemo. ## |
77 |
|
## ---------------------------- ## |
78 |
AC_CHECK_LIBM |
AC_CHECK_LIBM |
79 |
AC_SUBST(LIBM) |
AC_SUBST([LIBM]) |
80 |
|
|
81 |
|
|
82 |
AC_CONFIG_FILES(Makefile) |
## -------- ## |
83 |
AC_CONFIG_COMMANDS([default], [[echo "Done configuring package $PACKAGE"]]) |
## Outputs. ## |
84 |
|
## -------- ## |
85 |
|
AC_CONFIG_FILES([Makefile]) |
86 |
AC_OUTPUT |
AC_OUTPUT |