comparison configure.ac @ 657:1bb85de8c5b9

* Add qmake config (debug or release) corresponding to configure invocation
author Chris Cannam
date Fri, 08 Oct 2010 13:30:47 +0100
parents 0d639fe81481
children 9e29bf7ce1ff
comparison
equal deleted inserted replaced
656:34dad3ed923a 657:1bb85de8c5b9
49 fi 49 fi
50 50
51 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" 51 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE"
52 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" 52 SV_DEFINES_BUILD="$SV_DEFINES_RELEASE"
53 53
54 QMAKE_CONFIG="release"
55
54 AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],[enable debug support [default=no]])],[AC_MSG_NOTICE([enabling debug build]) 56 AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],[enable debug support [default=no]])],[AC_MSG_NOTICE([enabling debug build])
57 QMAKE_CONFIG="debug"
55 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" 58 CXXFLAGS_BUILD="$CXXFLAGS_DEBUG"
56 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"]) 59 SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"])
57 60
58 if test x"$USER_CXXFLAGS" != x; then 61 if test x"$USER_CXXFLAGS" != x; then
59 AC_MSG_NOTICE([The CXXFLAGS environment variable is set to "$USER_CXXFLAGS".]) 62 AC_MSG_NOTICE([The CXXFLAGS environment variable is set to "$USER_CXXFLAGS".])
99 AC_SUBST(LIBS) 102 AC_SUBST(LIBS)
100 103
101 AC_SUBST(CC) 104 AC_SUBST(CC)
102 AC_SUBST(CXX) 105 AC_SUBST(CXX)
103 106
107 AC_SUBST(QMAKE_CONFIG)
108
104 AC_SUBST(CODENAME) 109 AC_SUBST(CODENAME)
105 110
106 AC_OUTPUT([config.pri]) 111 AC_OUTPUT([config.pri])
107 112
108 if ! $QMAKE -r; then 113 if ! $QMAKE -r; then