~ubuntu-branches/ubuntu/maverick/ophcrack/maverick

« back to all changes in this revision

Viewing changes to config/ax_path_qmake4.m4

  • Committer: Bazaar Package Importer
  • Author(s): Adam Cécile (Le_Vert)
  • Date: 2008-08-11 15:58:58 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080811155858-calnhe07mxkkqb1s
Tags: 3.0.1-1
* Upload to experimental because of lenny freeze.
* New upstream release.
* Update debian/watch.
* Switch from libgtk2.0-dev to libqt4-dev b-dep.
* Drop dpatch, not needed anymore.
* Add new package ophcrack-cli that provides command-line binary.
* Rewrite whole debian/rules to build qt4 and cli flavours.
* Update README.Debian with new tables names/urls.
* Do not depend anymore on bkhive/samdump2, both are embedded.
* Update debian/copyright.
* Add imagemagick b-dep to create icons.
* Write a new manpage for the new command line switches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##### 
 
2
#
 
3
# SYNOPSIS
 
4
#
 
5
#   AX_PATH_QMAKE4
 
6
#
 
7
# DESCRIPTION
 
8
#
 
9
#   Check for Qt4 version of qmake.
 
10
#
 
11
#   $QMAKE4 is set to absolute name of the executable if found.
 
12
#
 
13
# LAST MODIFICATION
 
14
#
 
15
#   2007-09-30
 
16
#
 
17
# COPYLEFT
 
18
#
 
19
#   Copyright (c) 2007 YAMAMOTO Kengo <yamaken AT bp.iij4u.or.jp>
 
20
#
 
21
#   Copying and distribution of this file, with or without
 
22
#   modification, are permitted in any medium without royalty provided
 
23
#   the copyright notice and this notice are preserved.
 
24
 
 
25
AC_DEFUN([AX_PATH_QMAKE4], [
 
26
  ax_guessed_qt4_dirs="/usr/lib/qt4/bin:/usr/local/lib/qt4/bin:/usr/qt4/bin:/usr/local/qt4/bin:${QT4DIR}/bin:${QTDIR}/bin"
 
27
  AC_PROG_EGREP
 
28
  AC_PATH_PROGS(_QMAKE4, [qmake-qt4 qmake4], [], ["$with_qt/bin:$PATH:$ax_guessed_qt4_dirs"])
 
29
  AC_PATH_PROGS(_QMAKE, [qmake], [], ["$with_qt/bin:$PATH:$ax_guessed_qt4_dirs"])
 
30
 
 
31
  AC_CACHE_CHECK([for Qt4 version of qmake], ax_cv_path_QMAKE4, [
 
32
    ax_cv_path_QMAKE4=no
 
33
    for qmake4 in ${_QMAKE4} ${_QMAKE}; do
 
34
      if ($qmake4 --version 2>&1 | $EGREP -q 'Qt.*[[Vv]]ersion 4.[[3456789]]'); then
 
35
        QMAKE4="$qmake4"
 
36
        ax_cv_path_QMAKE4="$qmake4"
 
37
        AC_SUBST([QMAKE4])
 
38
        break
 
39
      fi
 
40
    done
 
41
    if test "x$ax_cv_path_QMAKE4" = "xno"; then  
 
42
      AC_MSG_ERROR([
 
43
                ophcrack requires Qt toolkit version 4.3 or later.
 
44
                Please disable the GUI via '--disable-gui',
 
45
                or see http://www.trolltech.com/ to obtain it.])
 
46
    fi
 
47
  ])
 
48
])