2445 |
19 Mar 11 |
peter |
#! /bin/sh |
2445 |
19 Mar 11 |
peter |
# $Id$ |
2445 |
19 Mar 11 |
peter |
3 |
# |
3330 |
14 Oct 14 |
peter |
# Copyright (C) 2011, 2012, 2013, 2014 Peter Johansson |
2445 |
19 Mar 11 |
peter |
5 |
# |
2445 |
19 Mar 11 |
peter |
# This file is part of the yat library, http://dev.thep.lu.se/yat |
2445 |
19 Mar 11 |
peter |
7 |
# |
2445 |
19 Mar 11 |
peter |
# The yat library is free software; you can redistribute it |
2445 |
19 Mar 11 |
peter |
# and/or modify it under the terms of the GNU General Public License as |
2445 |
19 Mar 11 |
peter |
# published by the Free Software Foundation; either version 3 of the |
2445 |
19 Mar 11 |
peter |
# License, or (at your option) any later version. |
2445 |
19 Mar 11 |
peter |
12 |
# |
2445 |
19 Mar 11 |
peter |
# The yat library is distributed in the hope that it will be useful, |
2445 |
19 Mar 11 |
peter |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
2445 |
19 Mar 11 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
2445 |
19 Mar 11 |
peter |
# General Public License for more details. |
2445 |
19 Mar 11 |
peter |
17 |
# |
2445 |
19 Mar 11 |
peter |
# You should have received a copy of the GNU General Public License |
2445 |
19 Mar 11 |
peter |
# along with yat. If not, see <http://www.gnu.org/licenses/>. |
2445 |
19 Mar 11 |
peter |
20 |
|
2445 |
19 Mar 11 |
peter |
21 |
|
2445 |
19 Mar 11 |
peter |
# test that YAT_MSG_ERROR does not make configure abort when placed |
2445 |
19 Mar 11 |
peter |
# within an inactive if statement |
2445 |
19 Mar 11 |
peter |
24 |
|
3227 |
17 May 14 |
peter |
25 |
required="autoconf aclocal" |
2445 |
19 Mar 11 |
peter |
26 |
|
2445 |
19 Mar 11 |
peter |
27 |
set -e |
2445 |
19 Mar 11 |
peter |
28 |
|
3036 |
03 Jun 13 |
peter |
29 |
. test/init.sh || exit 99 |
2445 |
19 Mar 11 |
peter |
30 |
|
2527 |
26 Jul 11 |
peter |
31 |
cat >> configure.ac <<EOF |
3130 |
18 Nov 13 |
peter |
32 |
AC_PREREQ([2.63]) |
2445 |
19 Mar 11 |
peter |
33 |
AS_IF([test x = x], [], [YAT_MSG_ERROR([some message])]) |
2445 |
19 Mar 11 |
peter |
34 |
AC_CONFIG_FILES([Makefile]) |
2445 |
19 Mar 11 |
peter |
35 |
AC_OUTPUT |
2445 |
19 Mar 11 |
peter |
36 |
EOF |
2445 |
19 Mar 11 |
peter |
37 |
|
2445 |
19 Mar 11 |
peter |
38 |
echo "@configure_input@" > Makefile.in |
2445 |
19 Mar 11 |
peter |
39 |
|
2445 |
19 Mar 11 |
peter |
40 |
bootstrap |
2445 |
19 Mar 11 |
peter |
41 |
rm -f config.status |
3112 |
10 Nov 13 |
peter |
42 |
run ./configure 0 $configure_opts |
2445 |
19 Mar 11 |
peter |
43 |
|
2608 |
01 Nov 11 |
peter |
44 |
exit_success |