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