Skip to content

Commit

Permalink
Fix configure script for FreeBSD
Browse files Browse the repository at this point in the history
the bash is usually not at /bin/bash on a BSD system
Atlas has different library naming
  • Loading branch information
vigsterkr committed Jul 8, 2012
1 parent 0746d4a commit 7b3ee5a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/configure
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# This configure script is based on the one from mplayer
# http://mplayer.hu
Expand Down Expand Up @@ -3218,6 +3218,13 @@ EOF
HAVE_LAPACK='#define HAVE_LAPACK 1'
DEFINES="$DEFINES -DHAVE_ATLAS -DHAVE_LAPACK"
POSTLINKFLAGS="$POSTLINKFLAGS -L${ALTERNATIVE_ATLASDIR} -llapack -lcblas -llapack_atlas"
elif bsd && cc_check -I/usr/local/include -L/usr/local/lib -lalapack -lf77blas -lcblas
then
echores "yes"
HAVE_ATLAS='#define HAVE_ATLAS 1'
HAVE_LAPACK='#define HAVE_LAPACK 1'
DEFINES="$DEFINES -DHAVE_ATLAS -DHAVE_LAPACK"
POSTLINKFLAGS="$POSTLINKFLAGS -L/usr/local/lib -lalapack -lf77blas -lcblas"
else
if cc_check -llapack -lcblas -latlas
then
Expand Down

0 comments on commit 7b3ee5a

Please sign in to comment.