detect MAC in configure

This commit is contained in:
rofl0r 2012-01-27 20:21:06 +01:00
parent 5b5cc604a6
commit 9c83402d37

7
configure vendored
View File

@ -19,6 +19,10 @@ parsearg() {
esac esac
} }
ismac() {
uname -s | grep Darwin
}
while true ; do while true ; do
case $1 in case $1 in
-*) parsearg "$1"; shift;; -*) parsearg "$1"; shift;;
@ -54,6 +58,9 @@ echo exec_prefix=$exec_prefix>>config.mak
echo bindir=$bindir>>config.mak echo bindir=$bindir>>config.mak
echo libdir=$libdir>>config.mak echo libdir=$libdir>>config.mak
echo includedir=$includedir>>config.mak echo includedir=$includedir>>config.mak
if ismac ; then
echo LDSO_SUFFIX=dylib>>config.mak
fi
echo done, now run make \&\& make install echo done, now run make \&\& make install