Skip to content

Instantly share code, notes, and snippets.

@mcg1969
Created January 9, 2014 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcg1969/8328356 to your computer and use it in GitHub Desktop.
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.
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