comparison configure @ 547:8103ad8eef87

Merge from qt5 branch. Next release will require qt5
author Chris Cannam
date Thu, 09 May 2013 17:20:24 +0100
parents 50f6569ac28e 724ded575041
children c928aa734e6b
comparison
equal deleted inserted replaced
544:4163ddee7c00 547:8103ad8eef87
3972 3972
3973 3973
3974 3974
3975 3975
3976 if test x$QMAKE = x ; then 3976 if test x$QMAKE = x ; then
3977 # Extract the first word of "qmake-qt4", so it can be a program name with args. 3977 # Extract the first word of "qmake-qt5", so it can be a program name with args.
3978 set dummy qmake-qt4; ac_word=$2 3978 set dummy qmake-qt5; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; } 3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_prog_QMAKE+:} false; then : 3981 if ${ac_cv_prog_QMAKE+:} false; then :
3982 $as_echo_n "(cached) " >&6 3982 $as_echo_n "(cached) " >&6
3983 else 3983 else
3989 do 3989 do
3990 IFS=$as_save_IFS 3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=. 3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do 3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt4" 3994 ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt5"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2 3996 break 2
3997 fi 3997 fi
3998 done 3998 done
3999 done 3999 done
4089 fi 4089 fi
4090 4090
4091 4091
4092 fi 4092 fi
4093 if test x$QMAKE = x ; then 4093 if test x$QMAKE = x ; then
4094 # Extract the first word of "qmake-qt4", so it can be a program name with args. 4094 # Extract the first word of "qmake-qt5", so it can be a program name with args.
4095 set dummy qmake-qt4; ac_word=$2 4095 set dummy qmake-qt5; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; } 4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_QMAKE+:} false; then : 4098 if ${ac_cv_prog_QMAKE+:} false; then :
4099 $as_echo_n "(cached) " >&6 4099 $as_echo_n "(cached) " >&6
4100 else 4100 else
4106 do 4106 do
4107 IFS=$as_save_IFS 4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=. 4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do 4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_QMAKE="qmake-qt4" 4111 ac_cv_prog_QMAKE="qmake-qt5"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2 4113 break 2
4114 fi 4114 fi
4115 done 4115 done
4116 done 4116 done
4168 4168
4169 4169
4170 fi 4170 fi
4171 if test x$QMAKE = x ; then 4171 if test x$QMAKE = x ; then
4172 as_fn_error $? " 4172 as_fn_error $? "
4173 Failed to find the required qmake-qt4 or qmake program. Please 4173 Failed to find the required qmake-qt5 or qmake program. Please
4174 ensure you have the necessary Qt4 development files installed, and 4174 ensure you have the necessary Qt5 development files installed, and
4175 if necessary set QTDIR to the location of your Qt4 installation. 4175 if necessary set QTDIR to the location of your Qt5 installation.
4176 " "$LINENO" 5 4176 " "$LINENO" 5
4177 fi 4177 fi
4178 4178
4179 # Suitable versions of qmake should print out something like: 4179 # Suitable versions of qmake should print out something like:
4180 # 4180 #
4184 # This may be translated, so we check only for the numbers (2.x and 4.x 4184 # This may be translated, so we check only for the numbers (2.x and 4.x
4185 # in that order). 4185 # in that order).
4186 # 4186 #
4187 QMAKE_VERSION_OUTPUT=`$QMAKE -v` 4187 QMAKE_VERSION_OUTPUT=`$QMAKE -v`
4188 case "$QMAKE_VERSION_OUTPUT" in 4188 case "$QMAKE_VERSION_OUTPUT" in
4189 *2.*4.*) ;; 4189 *5.*) ;;
4190 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 4190 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4191 *** The version of qmake found in \"$QMAKE\" looks like it might be 4191 *** The version of qmake found in \"$QMAKE\" looks like it might be
4192 from the wrong version of Qt (Qt4 is required). Please check 4192 from the wrong version of Qt (Qt5 is required). Please check
4193 that this is the correct version of qmake for Qt4 builds. 4193 that this is the correct version of qmake for Qt5 builds.
4194 " >&5 4194 " >&5
4195 $as_echo "$as_me: WARNING: 4195 $as_echo "$as_me: WARNING:
4196 *** The version of qmake found in \"$QMAKE\" looks like it might be 4196 *** The version of qmake found in \"$QMAKE\" looks like it might be
4197 from the wrong version of Qt (Qt4 is required). Please check 4197 from the wrong version of Qt (Qt5 is required). Please check
4198 that this is the correct version of qmake for Qt4 builds. 4198 that this is the correct version of qmake for Qt5 builds.
4199 " >&2;} 4199 " >&2;}
4200 esac 4200 esac
4201 4201
4202 case "`uname`" in 4202 case "`uname`" in
4203 *Darwin*) QMAKE="$QMAKE -spec macx-g++";; 4203 *Darwin*) QMAKE="$QMAKE -spec macx-g++";;