Skip to content

Commit 5323f64

Browse files
configure.ac: updates for better library dependency checking
1 parent e127767 commit 5323f64

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

configure.ac

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dnl This file is part of dnmtools
22
dnl
3-
dnl Copyright (C) 2022-2024: Andrew D. Smith
3+
dnl Copyright (C) 2022-2025: Andrew D. Smith
44
dnl
55
dnl Authors: Andrew D. Smith
66
dnl
@@ -32,19 +32,21 @@ AC_CONFIG_SUBDIRS([src/smithlab_cpp])
3232

3333
dnl check for HTSLib if requested
3434
hts_fail_msg="
35-
Failed to locate HTSLib on your system. Please use the LDFLAGS and
36-
CPPFLAGS variables to specify the directories where the HTSLib library
37-
and headers can be found.
35+
Failed to locate HTSLib on your system. Please use the LDFLAGS and CPPFLAGS
36+
variables to specify the directories where the HTSLib library and headers can
37+
be found.
3838
"
3939

4040
gsl_fail_msg="
41-
Failed to locate the GNU Scientific Library (GSL) on your
42-
system. Please use the LDFLAGS and CPPFLAGS variables to specify the
43-
directories where the GSL library and headers can be found.
41+
Failed to locate the GNU Scientific Library (GSL) on your system. Please use
42+
the LDFLAGS and CPPFLAGS variables to specify the directories where the GSL
43+
library and headers can be found.
4444
"
4545

4646
dnl check for required libraries
47-
AC_SEARCH_LIBS([hts_version], [hts], [], [AC_MSG_FAILURE([$hts_fail_msg])])
47+
AC_SEARCH_LIBS([pthread_create], [pthread], [], [AC_MSG_FAILURE(["pthread library not found"])])
48+
AC_SEARCH_LIBS([gzopen], [z], [], [AC_MSG_FAILURE(["Zlib library not found"])])
49+
AC_SEARCH_LIBS([hts_version], [hts], [], [AC_MSG_FAILURE([$hts_fail_msg])], [-lz -lpthread])
4850
AC_SEARCH_LIBS([cblas_dgemm], [gslcblas], [], [AC_MSG_FAILURE([$gsl_fail_msg])])
4951
AC_SEARCH_LIBS([gsl_blas_dgemm], [gsl], [], [AC_MSG_FAILURE([$gsl_fail_msg])])
5052

0 commit comments

Comments
 (0)