doc: update Vala documentation
[automake.git] / t / ldflags.sh
bloba655351645af125b4a2a592adb44fd5dd54399dd
1 #! /bin/sh
2 # Copyright (C) 2000-2024 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, or (at your option)
7 # 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, see <https://www.gnu.org/licenses/>.
17 # Check for LDFLAGS in conditional.
18 # PR 77.
20 required=libtool
21 . test-init.sh
23 cat >> configure.ac << 'END'
24 AC_PROG_CC
25 AM_PROG_AR
26 AC_PROG_LIBTOOL
27 AC_SUBST([LTLIBOBJS], [q.o])
28 AM_CONDITIONAL([USE_SWIG], [:])
29 AC_OUTPUT
30 END
32 cat > Makefile.am << 'END'
33 if USE_SWIG
34 lib_LTLIBRARIES = libtu.la
35 libtu_la_SOURCES = foo.c
36 libtu_la_LDFLAGS = -module
37 endif
38 END
40 : > ltconfig
41 : > ltmain.sh
42 : > ar-lib
43 : > config.guess
44 : > config.sub
45 : > q.c
47 $ACLOCAL
48 $AUTOMAKE