* mdemo2/configure.ac: Use AC_LIBTOOL_DLOPEN.
[libtool.git] / mdemo / configure.ac
blobe7f9121b2480f4be562950b44ad8ff8f44d8ccdc
1 ## Process this file with autoconf to create configure. -*- autoconf -*-
2 # Copyright 2001  Free Software Foundation, Inc.
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.
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.
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
19 AC_PREREQ(2.50)
22 ## ------------------------ ##
23 ## Autoconf initialisation. ##
24 ## ------------------------ ##
25 AC_INIT([mdemo], [0.1], [bug-libtool@gnu.org])
26 AC_CONFIG_SRCDIR([main.c])
29 ## ------------------------ ##
30 ## Automake Initialisation. ##
31 ## ------------------------ ##
32 AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION)
35 ## ------------------ ##
36 ## C compiler checks. ##
37 ## ------------------ ##
38 AC_PROG_CC
39 AC_C_CONST
42 ## ----------------------- ##
43 ## Libtool initialisation. ##
44 ## ----------------------- ##
45 AC_LIBLTDL_CONVENIENCE([../libltdl])
46 AC_SUBST([INCLTDL])
47 AC_SUBST([LIBLTDL])
49 AC_LIBTOOL_WIN32_DLL
50 AC_LIBTOOL_DLOPEN
51 AM_PROG_LIBTOOL
52 AC_SUBST(LIBTOOL_DEPS)
54 if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
55   STATIC=-static
56 else
57   STATIC=
59 AC_SUBST([STATIC])
62 ## ---------------------------- ##
63 ## C headers required by mdemo. ##
64 ## ---------------------------- ##
65 AC_CHECK_HEADERS([math.h])
68 ## ---------------------------- ##
69 ## Libraries required by cdemo. ##
70 ## ---------------------------- ##
71 AC_CHECK_LIBM
72 AC_SUBST([LIBM])
75 ## -------- ##
76 ## Outputs. ##
77 ## -------- ##
78 AC_CONFIG_FILES([Makefile])
79 AC_OUTPUT