1 | #! /bin/sh |
---|
2 | # $Id: yat_use_libtool_tag_test.sh 3036 2013-06-03 08:19:32Z peter $ |
---|
3 | # |
---|
4 | # Copyright (C) 2013 Peter Johansson |
---|
5 | # |
---|
6 | # This file is part of the yat library, http://dev.thep.lu.se/yat |
---|
7 | # |
---|
8 | # The yat library is free software; you can redistribute it |
---|
9 | # and/or modify it under the terms of the GNU General Public License as |
---|
10 | # published by the Free Software Foundation; either version 3 of the |
---|
11 | # License, or (at your option) any later version. |
---|
12 | # |
---|
13 | # The yat library is distributed in the hope that it will be useful, |
---|
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | # General Public License for more details. |
---|
17 | # |
---|
18 | # You should have received a copy of the GNU General Public License |
---|
19 | # along with yat. If not, see <http://www.gnu.org/licenses/>. |
---|
20 | |
---|
21 | required="autoconf" |
---|
22 | set -e |
---|
23 | . ./test/init.sh || exit 99 |
---|
24 | |
---|
25 | cat >> configure.ac <<EOF |
---|
26 | m4_include([m4/yat_lt_link_ifelse.m4]) |
---|
27 | grep_tag1 pre:_YAT_USE_LIBTOOL_TAG:post |
---|
28 | AC_LANG([C++]) |
---|
29 | grep_tag2 pre:_YAT_USE_LIBTOOL_TAG:post |
---|
30 | AC_LANG([Fortran 77]) |
---|
31 | grep_tag3 pre:_YAT_USE_LIBTOOL_TAG:post |
---|
32 | AC_LANG([Fortran]) |
---|
33 | grep_tag4 pre:_YAT_USE_LIBTOOL_TAG:post |
---|
34 | EOF |
---|
35 | |
---|
36 | # bootstrapping |
---|
37 | bootstrap |
---|
38 | |
---|
39 | grep '^grep_tag' configure |
---|
40 | grep '^grep_tag1' configure | grep 'pre:CC:post' || exit_fail |
---|
41 | grep '^grep_tag2' configure | grep 'pre:CXX:post' || exit_fail |
---|
42 | grep '^grep_tag3' configure | grep 'pre:F77:post' || exit_fail |
---|
43 | grep '^grep_tag4' configure | grep 'pre:FC:post' || exit_fail |
---|
44 | |
---|
45 | exit_success |
---|