1 |
dnl Process this file with autoconf to create configure. -*-Autoconf-*- |
## 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., 59 Temple Place, Suite 330, Boston, MA |
17 |
|
# 02111-1307 USA |
18 |
|
|
19 |
AC_PREREQ(2.50) |
AC_PREREQ(2.50) |
20 |
AC_INIT(hell, 1.0) |
|
21 |
|
|
22 |
|
## ------------------------ ## |
23 |
|
## Autoconf initialisation. ## |
24 |
|
## ------------------------ ## |
25 |
|
AC_INIT([pdemo], [0.1], [bug-libtool@gnu.org]) |
26 |
AC_CONFIG_SRCDIR([longer_file_name_hello.c]) |
AC_CONFIG_SRCDIR([longer_file_name_hello.c]) |
27 |
|
|
28 |
|
|
29 |
|
## ------------------------ ## |
30 |
|
## Automake Initialisation. ## |
31 |
|
## ------------------------ ## |
32 |
AM_INIT_AUTOMAKE(hell,1.0) |
AM_INIT_AUTOMAKE(hell,1.0) |
33 |
|
|
34 |
|
|
35 |
|
## ------------------ ## |
36 |
|
## C compiler checks. ## |
37 |
|
## ------------------ ## |
38 |
AC_PROG_CC |
AC_PROG_CC |
39 |
AC_C_CONST |
AC_C_CONST |
40 |
AC_EXEEXT |
|
41 |
|
|
42 |
|
## ----------------------- ## |
43 |
|
## Libtool initialisation. ## |
44 |
|
## ----------------------- ## |
45 |
AC_LIBTOOL_DLOPEN |
AC_LIBTOOL_DLOPEN |
46 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
47 |
AC_SUBST(LIBTOOL_DEPS) |
AC_SUBST([LIBTOOL_DEPS]) |
48 |
|
|
49 |
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then |
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then |
50 |
STATIC=-static |
STATIC=-static |
51 |
else |
else |
52 |
STATIC= |
STATIC= |
53 |
fi |
fi |
54 |
AC_SUBST(STATIC) |
AC_SUBST([STATIC]) |
55 |
|
|
56 |
|
AM_CONDITIONAL([BINARY_HELLDL], |
57 |
|
[grep '^global_symbol_pipe=..*$' ./libtool >/dev/null]) |
58 |
|
|
|
AM_CONDITIONAL(BINARY_HELLDL, [dnl |
|
|
grep '^global_symbol_pipe=..*$' ./libtool >/dev/null]) |
|
59 |
|
|
60 |
AC_CHECK_HEADERS(string.h math.h) |
## ---------------------------- ## |
61 |
|
## C headers required by cdemo. ## |
62 |
|
## ---------------------------- ## |
63 |
|
AC_CHECK_HEADERS([string.h math.h]) |
64 |
|
|
65 |
|
|
66 |
|
## ---------------------------- ## |
67 |
|
## Libraries required by cdemo. ## |
68 |
|
## ---------------------------- ## |
69 |
AC_CHECK_LIBM |
AC_CHECK_LIBM |
70 |
AC_SUBST(LIBM) |
AC_SUBST([LIBM]) |
71 |
|
|
72 |
|
|
73 |
dnl Output the makefile |
## -------- ## |
74 |
|
## Outputs. ## |
75 |
|
## -------- ## |
76 |
AC_CONFIG_FILES([Makefile]) |
AC_CONFIG_FILES([Makefile]) |
77 |
AC_OUTPUT |
AC_OUTPUT |