3053 |
13 Jun 13 |
peter |
#! /bin/sh |
3053 |
13 Jun 13 |
peter |
# $Id$ |
3053 |
13 Jun 13 |
peter |
3 |
# |
3855 |
02 Jan 20 |
peter |
# Copyright (C) 2013, 2015, 2017, 2019 Peter Johansson |
3053 |
13 Jun 13 |
peter |
5 |
# |
3053 |
13 Jun 13 |
peter |
# This file is part of the yat library, http://dev.thep.lu.se/yat |
3053 |
13 Jun 13 |
peter |
7 |
# |
3053 |
13 Jun 13 |
peter |
# The yat library is free software; you can redistribute it |
3053 |
13 Jun 13 |
peter |
# and/or modify it under the terms of the GNU General Public License as |
3053 |
13 Jun 13 |
peter |
# published by the Free Software Foundation; either version 3 of the |
3053 |
13 Jun 13 |
peter |
# License, or (at your option) any later version. |
3053 |
13 Jun 13 |
peter |
12 |
# |
3053 |
13 Jun 13 |
peter |
# The yat library is distributed in the hope that it will be useful, |
3053 |
13 Jun 13 |
peter |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
3053 |
13 Jun 13 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3053 |
13 Jun 13 |
peter |
# General Public License for more details. |
3053 |
13 Jun 13 |
peter |
17 |
# |
3053 |
13 Jun 13 |
peter |
# You should have received a copy of the GNU General Public License |
3053 |
13 Jun 13 |
peter |
# along with yat. If not, see <http://www.gnu.org/licenses/>. |
3053 |
13 Jun 13 |
peter |
20 |
|
3400 |
30 Mar 15 |
peter |
21 |
required="autoconf automake libtool htslib" |
3053 |
13 Jun 13 |
peter |
22 |
|
3053 |
13 Jun 13 |
peter |
23 |
set -e |
3053 |
13 Jun 13 |
peter |
24 |
|
3053 |
13 Jun 13 |
peter |
25 |
. test/init.sh || exit 99 |
3053 |
13 Jun 13 |
peter |
26 |
|
3053 |
13 Jun 13 |
peter |
27 |
cat >> configure.ac <<EOF |
3053 |
13 Jun 13 |
peter |
28 |
YAT_CHECK_HEADER([], [AC_MSG_ERROR]) |
3588 |
19 Jan 17 |
peter |
29 |
CPPFLAGS="\$YAT_CPPFLAGS" |
3053 |
13 Jun 13 |
peter |
30 |
LDFLAGS="\$LDFLAGS \`\$yat_config --ldflags\`" |
3108 |
09 Nov 13 |
peter |
31 |
LIBS="\$LIBS \`\$yat_config --link-libtool\`" |
3053 |
13 Jun 13 |
peter |
32 |
AC_MSG_NOTICE(["LDFLAGS: \$LDFLAGS"]) |
3053 |
13 Jun 13 |
peter |
33 |
AC_MSG_NOTICE(["LIBS: \$LIBS"]) |
3053 |
13 Jun 13 |
peter |
34 |
YAT_USE_LIBTOOL_PUSH |
3053 |
13 Jun 13 |
peter |
35 |
YAT_CHECK_LIB_WITH_BAM([], [AC_MSG_ERROR]) |
3053 |
13 Jun 13 |
peter |
36 |
AC_CONFIG_FILES([Makefile]) |
3053 |
13 Jun 13 |
peter |
37 |
AC_OUTPUT |
3053 |
13 Jun 13 |
peter |
38 |
EOF |
3053 |
13 Jun 13 |
peter |
39 |
|
3053 |
13 Jun 13 |
peter |
40 |
bootstrap |
3053 |
13 Jun 13 |
peter |
41 |
grep '^YAT_CHECK_LIB_WITH_BAM' configure && exit_fail |
3825 |
18 Jul 19 |
peter |
42 |
if ./configure CXX="$CXX" $configure_opts --with-yat=$YAT_CONFIG; then :; |
3108 |
09 Nov 13 |
peter |
43 |
else |
3108 |
09 Nov 13 |
peter |
44 |
warn_ configure failed unexpectedly |
3108 |
09 Nov 13 |
peter |
45 |
tail -n 1000 config.log |
3108 |
09 Nov 13 |
peter |
46 |
exit_fail |
3108 |
09 Nov 13 |
peter |
47 |
fi |
3053 |
13 Jun 13 |
peter |
48 |
|
3053 |
13 Jun 13 |
peter |
49 |
exit_success |