comparison configure @ 74:d78c80be335f qt5

Update for Qt5
author Chris Cannam
date Tue, 30 Apr 2013 16:13:56 +0100
parents b9b145d3013c
children adce5f7e2917
comparison
equal deleted inserted replaced
73:b9b145d3013c 74:d78c80be335f
3965 3965
3966 3966
3967 3967
3968 3968
3969 if test x$QMAKE = x ; then 3969 if test x$QMAKE = x ; then
3970 # Extract the first word of "qmake-qt4", so it can be a program name with args. 3970 # Extract the first word of "qmake-qt5", so it can be a program name with args.
3971 set dummy qmake-qt4; ac_word=$2 3971 set dummy qmake-qt5; ac_word=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; } 3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if ${ac_cv_prog_QMAKE+:} false; then : 3974 if ${ac_cv_prog_QMAKE+:} false; then :
3975 $as_echo_n "(cached) " >&6 3975 $as_echo_n "(cached) " >&6
3976 else 3976 else
3982 do 3982 do
3983 IFS=$as_save_IFS 3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=. 3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do 3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt4" 3987 ac_cv_prog_QMAKE="$QTDIR/bin/qmake-qt5"
3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2 3989 break 2
3990 fi 3990 fi
3991 done 3991 done
3992 done 3992 done
4082 fi 4082 fi
4083 4083
4084 4084
4085 fi 4085 fi
4086 if test x$QMAKE = x ; then 4086 if test x$QMAKE = x ; then
4087 # Extract the first word of "qmake-qt4", so it can be a program name with args. 4087 # Extract the first word of "qmake-qt5", so it can be a program name with args.
4088 set dummy qmake-qt4; ac_word=$2 4088 set dummy qmake-qt5; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; } 4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_QMAKE+:} false; then : 4091 if ${ac_cv_prog_QMAKE+:} false; then :
4092 $as_echo_n "(cached) " >&6 4092 $as_echo_n "(cached) " >&6
4093 else 4093 else
4099 do 4099 do
4100 IFS=$as_save_IFS 4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=. 4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do 4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_QMAKE="qmake-qt4" 4104 ac_cv_prog_QMAKE="qmake-qt5"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2 4106 break 2
4107 fi 4107 fi
4108 done 4108 done
4109 done 4109 done
4161 4161
4162 4162
4163 fi 4163 fi
4164 if test x$QMAKE = x ; then 4164 if test x$QMAKE = x ; then
4165 as_fn_error $? " 4165 as_fn_error $? "
4166 Failed to find the required qmake-qt4 or qmake program. Please 4166 Failed to find the required qmake-qt5 or qmake program. Please
4167 ensure you have the necessary Qt4 development files installed, and 4167 ensure you have the necessary Qt5 development files installed, and
4168 if necessary set QTDIR to the location of your Qt4 installation. 4168 if necessary set QTDIR to the location of your Qt5 installation.
4169 " "$LINENO" 5 4169 " "$LINENO" 5
4170 fi 4170 fi
4171 4171
4172 # Suitable versions of qmake should print out something like: 4172 # Suitable versions of qmake should print out something like:
4173 # 4173 #
4177 # This may be translated, so we check only for the numbers (2.x and 4.x 4177 # This may be translated, so we check only for the numbers (2.x and 4.x
4178 # in that order). 4178 # in that order).
4179 # 4179 #
4180 QMAKE_VERSION_OUTPUT=`$QMAKE -v` 4180 QMAKE_VERSION_OUTPUT=`$QMAKE -v`
4181 case "$QMAKE_VERSION_OUTPUT" in 4181 case "$QMAKE_VERSION_OUTPUT" in
4182 *2.*4.*) ;; 4182 *5.*) ;;
4183 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 4183 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4184 *** The version of qmake found in \"$QMAKE\" looks like it might be 4184 *** The version of qmake found in \"$QMAKE\" looks like it might be
4185 from the wrong version of Qt (Qt4 is required). Please check 4185 from the wrong version of Qt (Qt5 is required). Please check
4186 that this is the correct version of qmake for Qt4 builds. 4186 that this is the correct version of qmake for Qt5 builds.
4187 " >&5 4187 " >&5
4188 $as_echo "$as_me: WARNING: 4188 $as_echo "$as_me: WARNING:
4189 *** The version of qmake found in \"$QMAKE\" looks like it might be 4189 *** The version of qmake found in \"$QMAKE\" looks like it might be
4190 from the wrong version of Qt (Qt4 is required). Please check 4190 from the wrong version of Qt (Qt5 is required). Please check
4191 that this is the correct version of qmake for Qt4 builds. 4191 that this is the correct version of qmake for Qt5 builds.
4192 " >&2;} 4192 " >&2;}
4193 esac 4193 esac
4194 4194
4195 case "`uname`" in 4195 case "`uname`" in
4196 *Darwin*) QMAKE="$QMAKE -spec macx-g++";; 4196 *Darwin*) QMAKE="$QMAKE -spec macx-g++";;
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8354 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8354 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8355 fi 8355 fi
8356 8356
8357 8357
8358 if ! $QMAKE -r; then 8358 if ! $QMAKE -r sonic-annotator.pro; then
8359 as_fn_error $? "qmake failed: Command was \"$QMAKE -r\"" "$LINENO" 5 8359 as_fn_error $? "qmake failed: Command was \"$QMAKE -r\"" "$LINENO" 5
8360 fi 8360 fi
8361 8361
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: 8362 { $as_echo "$as_me:${as_lineno-$LINENO}:
8363 8363