Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / demo / configure.ac
1 ## Process this file with autoconf to create configure. -*- autoconf -*-
2 #
3 #   Copyright (C) 2001, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
4 #
5 #   This file is part of GNU Libtool.
6 #
7 # GNU Libtool is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License as
9 # published by the Free Software Foundation; either version 2 of
10 # the License, or (at your option) any later version.
11 #
12 # GNU Libtool is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Libtool; see the file COPYING.  If not, a copy
19 # can be downloaded from  http://www.gnu.org/licenses/gpl.html,
20 # or obtained by writing to the Free Software Foundation, Inc.,
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 ####
23
24 AC_PREREQ(2.54)
25
26
27 ## ------------------------ ##
28 ## Autoconf initialisation. ##
29 ## ------------------------ ##
30 AC_INIT([demo], [1.0], [bug-libtool@gnu.org])
31 AC_CONFIG_SRCDIR([hello.c])
32 AC_CONFIG_AUX_DIR([../../libltdl/config])
33
34
35 ## ------------------------ ##
36 ## Automake Initialisation. ##
37 ## ------------------------ ##
38 AM_INIT_AUTOMAKE
39
40
41 ## ---------------- ##
42 ## compiler checks. ##
43 ## ---------------- ##
44 AC_PROG_CC
45
46
47 ## ----------------------- ##
48 ## Libtool initialisation. ##
49 ## ----------------------- ##
50 LT_INIT([dlopen win32-dll])
51 AC_SUBST([LIBTOOL_DEPS])
52
53 STATIC=
54 test "X$enable_static" = Xyes && STATIC=-static
55 AC_SUBST([STATIC])
56
57 case $lt_cv_sys_global_symbol_pipe in
58   ?*) binary_helldl=yes ;;
59 esac
60 AM_CONDITIONAL([BINARY_HELLDL], [test "X$binary_helldl" = Xyes])
61
62
63 ## --------------------------- ##
64 ## Libraries required by demo. ##
65 ## --------------------------- ##
66 LT_LIB_M
67
68
69 ## -------- ##
70 ## Outputs. ##
71 ## -------- ##
72 AC_CONFIG_FILES([Makefile])
73 AC_OUTPUT