Skip to content
Browse files

Add an "arbitrary QT" mode

I hate ISIS so much.
  • Loading branch information...
1 parent 2f3c793 commit d6387f3a2e0d340a069c7f17c1c7ca358232adb2 @novas0x2a novas0x2a committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 configure.ac
View
11 configure.ac
@@ -196,6 +196,17 @@ else
fi
AX_PKG_ONE_OF(QT,
+ ARBITRARY_QT,
+ [if test -z "$QT_ARBITRARY_MODULES" -a -z "$HAVE_PKG_ARBITRARY_MODULES"; then
+ HAVE_PKG_ARBITRARY_QT="no:Set \$QT_ARBITRARY_MODULES"
+ else
+ for module in $QT_ARBITRARY_MODULES; do
+ PKG_ARBITRARY_QT_NEEDED_HEADERS="$PKG_ARBITRARY_QT_NEEDED_HEADERS Qt${module}"
+ PKG_ARBITRARY_QT_LIBS="-lQt${module} $PKG_ARBITRARY_QT_LIBS"
+ done
+ fi
+ PKG_ARBITRARY_QT_CPPFLAGS="$PKG_ARBITRARY_QT_CPPFLAGS -DQT_SHARED"
+ AX_PKG(ARBITRARY_QT, [], [-lQtCore], [$PKG_ARBITRARY_QT_NEEDED_HEADERS])],
APPLE_QMAKE_QT, [AX_PKG_APPLE(QMAKE_QT, [GL QT_QMAKE], [])],
LINUX_QMAKE_QT,
[AX_PKG(QT_QMAKE_OPENGL, [QT_QMAKE], [], [QtOpenGL])

0 comments on commit d6387f3

Please sign in to comment.
Something went wrong with that request. Please try again.