@@ -16,10 +16,17 @@ dnl General Public License for more details.
1616
1717AC_INIT ( [ libsmithlab_cpp] ,
[ 1.0] ,
[ [email protected] ] ,
1818 [ ] , [ https://github.com/smithlabcode] )
19+ dnl the config.h is not currently #included in the source, and only
20+ dnl used to keep command lines short.
21+ AC_CONFIG_HEADERS ( [ config.h] )
1922AC_PREREQ ( [ 2.63] ) dnl 4-argument AC_CHECK_HEADER
20- AM_INIT_AUTOMAKE ( [ -Wall -Werror foreign] )
23+ AM_INIT_AUTOMAKE ( [ foreign] )
2124
22- AC_CONFIG_SRCDIR ( [ smithlab_os.cpp] )
25+ dnl Less output to the terminal. Use "--disable-silent-rules" when
26+ dnl running ./configure to reverse this.
27+ AM_SILENT_RULES ([ yes] )
28+
29+ AC_CONFIG_SRCDIR ( [ smithlab_utils.cpp] )
2330AC_CONFIG_MACRO_DIR ( [ m4] )
2431
2532dnl check for c++11
@@ -30,21 +37,25 @@ AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
3037AM_PROG_AR
3138LT_INIT
3239
33- dnl check for HTSLib
34- AX_WITH_HTSLIB
35- AS_IF ( [ test "x$ax_cv_htslib" != "xyes"] ,
36- [ AC_MSG_WARN ( [ HTSlib not found.
40+ dnl the line breaks in thie message are intended
41+ hts_fail_msg="
42+
43+ Failed to locate HTSLib on your system. Please use the LDFLAGS and
44+ CPPFLAGS variables to specify the directories where the HTSLib library
45+ and headers can be found.
46+ "
3747
38- HTSLib is optional for using libsmithlab_cpp. Please use
39- --with-htslib=DIR to specify htslib installation if you have it
40- installed locally.
41- ] ) ] )
42- AM_CONDITIONAL([ HAS_HTSLIB] , [ test "x$ax_cv_htslib" = "xyes"] )
48+ AC_ARG_ENABLE ( [ hts] ,
49+ [ AS_HELP_STRING ( [ --enable-hts] , [ Enable HTSLib @<:@ yes@:>@ ] ) ] ,
50+ [ enable_hts=yes] , [ enable_hts=no] )
51+ AS_IF ( [ test "x$enable_hts" = "xyes"] ,
52+ [ AC_CHECK_LIB ( [ hts] , [ hts_version] , [ ] , [ AC_MSG_FAILURE ( [ $hts_fail_msg] ) ] ) ] )
53+ AM_CONDITIONAL([ ENABLE_HTS] , [ test "x$enable_hts" = "xyes"] )
4354
4455dnl check for required libraries
4556AC_CHECK_LIB ( [ z] ,[ zlibVersion] )
46- AC_CHECK_LIB ( [ gslcblas] ,[ main ] )
47- AC_CHECK_LIB ( [ gsl] ,[ main ] )
57+ AC_CHECK_LIB ( [ gslcblas] ,[ cblas_dgemm ] )
58+ AC_CHECK_LIB ( [ gsl] ,[ gsl_blas_dgemm ] )
4859
4960AC_CONFIG_FILES ( [ Makefile] )
5061AC_OUTPUT
0 commit comments