diff options
author | Geoffrey M Oxberry <goxberry@gmail.com> | 2019-07-17 05:15:58 -0700 |
---|---|---|
committer | Geoffrey M Oxberry <goxberry@gmail.com> | 2019-07-17 14:48:50 -0700 |
commit | e998ef6224961d3720716083943fe08b791abbc9 (patch) | |
tree | c3eed049e62ad7628cb9f26aa7df06a06e9c3f5d /m4/ax_lapack.m4 | |
parent | 45dc2d38c5b16f86861420a1041bfe1b3598b6ed (diff) | |
download | autoconf-archive-e998ef6224961d3720716083943fe08b791abbc9.tar.gz |
ax_lapack: add dylib glob to with_lapack
Prior to this commit, the `with_lapack` case statement checked for
dynamic libraries with `.so` suffixes (used on *nix operating
systems), but did not check for dynamic libraries with `.dylib`
suffixes (used on macOS operating systems). This commit adds globs to
the `with_lapack` case statement that check for macOS shared libraries
using `.dylib` suffixes.
Diffstat (limited to 'm4/ax_lapack.m4')
-rw-r--r-- | m4/ax_lapack.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/ax_lapack.m4 b/m4/ax_lapack.m4 index 2939bd3..abaff9d 100644 --- a/m4/ax_lapack.m4 +++ b/m4/ax_lapack.m4 @@ -37,6 +37,7 @@ # LICENSE # # Copyright (c) 2009 Steven G. Johnson <stevenj@alum.mit.edu> +# Copyright (c) 2019 Geoffrey M. Oxberry <goxberry@gmail.com> # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -64,7 +65,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 9 +#serial 10 AU_ALIAS([ACX_LAPACK], [AX_LAPACK]) AC_DEFUN([AX_LAPACK], [ @@ -76,7 +77,9 @@ AC_ARG_WITH(lapack, case $with_lapack in yes | "") ;; no) ax_lapack_ok=disable ;; - -* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$with_lapack" ;; + -* | */* | *.a | *.so | *.so.* | *.dylib | *.dylib.* | *.o) + LAPACK_LIBS="$with_lapack" + ;; *) LAPACK_LIBS="-l$with_lapack" ;; esac |