]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/libltdl/configure.ac
463df9b65705e5a0d77eb456e1a7ad064f99e3e4
[thirdparty/gcc.git] / libjava / libltdl / configure.ac
1 ## Process this file with autoconf to create configure. -*- autoconf -*-
2 # Copyright 2001, 2006 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
19
20 dnl FIXME: Is this really new enough?
21 AC_PREREQ(2.50)
22
23
24 ## ------------------------ ##
25 ## Autoconf initialisation. ##
26 ## ------------------------ ##
27 AC_INIT([libltdl], [1.2], [bug-libtool@gnu.org])
28 AC_CONFIG_SRCDIR([ltdl.c])
29
30 ## GCJ LOCAL: gcc tree uses maintainer mode.
31 AM_MAINTAINER_MODE
32
33 AM_ENABLE_MULTILIB(, ../..)
34
35 ## ------------------------------- ##
36 ## Libltdl specific configuration. ##
37 ## ------------------------------- ##
38
39 AC_CONFIG_AUX_DIR([.])
40
41 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
42 if test -f ${srcdir}/ltmain.sh; then
43 # if libltdl is libtoolized, it is assumed to be stand-alone and
44 # installed unless the command line overrides it (tested above)
45 enable_ltdl_install=yes
46 else
47 AC_MSG_WARN([*** The top-level configure must select either])
48 AC_MSG_WARN([*** [A""C_LIBLTDL_INSTALLABLE] or [A""C_LIBLTDL_CONVENIENCE].])
49 AC_MSG_ERROR([*** Maybe you want to --enable-ltdl-install?])
50 fi
51 fi
52
53
54 ## ------------------------ ##
55 ## Automake Initialisation. ##
56 ## ------------------------ ##
57 AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION, -)
58 AM_CONFIG_HEADER([config.h:config-h.in])
59
60
61 ## ------------------ ##
62 ## C compiler checks. ##
63 ## ------------------ ##
64 AC_PROG_CC
65 AC_C_CONST
66 AC_C_INLINE
67
68
69 ## ----------------------- ##
70 ## Libtool initialisation. ##
71 ## ----------------------- ##
72 AC_LIBTOOL_WIN32_DLL
73 AC_PROG_LIBTOOL
74 AC_SUBST([LIBTOOL_DEPS])
75
76 AC_LIB_LTDL
77
78
79 ## -------- ##
80 ## Outputs. ##
81 ## -------- ##
82 AC_CONFIG_FILES([Makefile])
83 AC_OUTPUT