diff options
author | albert-github <albert.tests@gmail.com> | 2015-03-09 18:33:18 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2015-03-09 18:33:18 (GMT) |
commit | 3bd3ad9f8f4d010e42f0ba8eeab229f44b1ecb1c (patch) | |
tree | 2954a8c6ea88ffc750cca1dfd94a5435331d5b58 /configure | |
parent | e9983f652ad703784d889cd8ed4c8aa81f714b22 (diff) | |
download | Doxygen-3bd3ad9f8f4d010e42f0ba8eeab229f44b1ecb1c.zip Doxygen-3bd3ad9f8f4d010e42f0ba8eeab229f44b1ecb1c.tar.gz Doxygen-3bd3ad9f8f4d010e42f0ba8eeab229f44b1ecb1c.tar.bz2 |
Bug 745870 - [PATCH] QT4's qmake is titled differently on Fedora 21
Corrected patch for the problem. Here nothing to be copied but multiple possibilities for executables are checked.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 28 |
1 files changed, 19 insertions, 9 deletions
@@ -363,18 +363,27 @@ if test "$f_wizard" = YES; then echo " QTDIR environment variable not set!" printf " Checking for Qt..." for d in /usr/{lib,share,qt}/{qt-4,qt4,qt,qt*,4} /usr; do - if test -x "$d/bin/qmake"; then - QTDIR=$d - break 2 - fi + for e in qmake gmake-qt4; do + if test -x "$d/bin/$e"; then + QTDIR=$d + QMAKEEXE=$e + break 2 + fi + done done else - if test -e "$QTDIR/bin/qmake"; then - printf " Detected Qt via the QTDIR environment variable..." - else + for e in qmake gmake-qt4; do + if test -x "$QTDIR/bin/$e"; then + if test -e "$QTDIR/bin/$e"; then + printf " Detected Qt via the QTDIR environment variable..." + QMAKEEXE=$e + fi + fi + done + if test -z "$QMAKEEXE"; then printf "ERROR Detected Qt via the QTDIR environment variable..." - echo ", but $QTDIR/bin/qmake does not exist." - echo " Set the QTDIR environment variable such that \$QTDIR/bin/qmake exists." + echo ", but $QTDIR/bin/qmake or variant does not exist." + echo " Set the QTDIR environment variable such that \$QTDIR/bin/qmake or variant exists." exit 2 fi fi @@ -771,6 +780,7 @@ INSTTOOL = $f_insttool DOXYDOCS = .. DOCDIR = $f_docdir QTDIR = $QTDIR +QMAKEEXE = $QMAKEEXE EOF if test "$f_dot" != NO; then |