Created
January 9, 2014 02:20
-
-
Save mcg1969/8328356 to your computer and use it in GitHub Desktop.
Patches Octave 3.8.0's configure script so that it can find the QT framework when installed via Homebrew.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configure b/configure | |
index 96ab21c..662d720 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -68538,8 +68538,8 @@ fi | |
if test $build_gui = yes; then | |
## Retrieve Qt compilation and linker flags | |
QT_CPPFLAGS="`$PKG_CONFIG --cflags-only-I QtCore QtGui QtNetwork`" | |
- QT_LDFLAGS="`$PKG_CONFIG --libs-only-L QtCore QtGui QtNetwork`" | |
- QT_LIBS="`$PKG_CONFIG --libs-only-l QtCore QtGui QtNetwork`" | |
+ QT_LDFLAGS="`$PKG_CONFIG --libs QtCore QtGui QtNetwork | tr ' ' '\n' | grep '\-[FL]' | uniq | tr '\n' ' '`" | |
+ QT_LIBS="`$PKG_CONFIG --libs QtCore QtGui QtNetwork | tr ' ' '\n' | grep -v '\-[FL]' | uniq | tr '\n' ' '`" | |
## Check for Qt4 | |
if ! `$PKG_CONFIG --atleast-version=4.0.0 QtCore`; then | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment