aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index eca9005b8a..278b917ea1 100755
--- a/configure
+++ b/configure
@@ -1828,16 +1828,18 @@ case $_host_os in
# There is no way to get the prefix, so implementing a hack here
macport_version=`port version 2>/dev/null`
if test "$?" -eq 0; then
- macport_version="`echo "${macport_version}" } sed -ne 's/Version: \([0-9]\.[0-9]\.[0-9]\)/\1/gp'`"
+ macport_version="`echo "${macport_version}" | sed -ne 's/Version: \([0-9]\.[0-9]\.[0-9]\)/\1/gp'sed -ne 's/Version: \([0-9]\.[0-9]\.[0-9]\)/\1/gp'`"
echo_n "You seem to be running MacPorts version ${macport_version}..."
- $macport_prefix=`which port`
- $macport_prefix=`dirname ${macport_prefix}`
+ macport_prefix=`which port`
+ # strip off /bin/port from /opt/local/bin/port
+ macport_prefix=`dirname ${macport_prefix}`
+ macport_prefix=`dirname ${macport_prefix}`
echo "adding ${macport_prefix} to paths"
LDFLAGS="-L${macport_prefix}/lib $LDFLAGS"
- CXXFLAGS="-I${macport_prefix}/lib $CXXFLAGS"
+ CXXFLAGS="-I${macport_prefix}/include $CXXFLAGS"
fi
;;
dreamcast)