comparison configure.ac @ 573:462e4f59c261

* Add qmake config (debug or release) corresponding to configure invocation
author Chris Cannam
date Fri, 08 Oct 2010 13:30:52 +0100
parents 3facd03da4a4
children b716527bb0c9
comparison
equal deleted inserted replaced
572:4cc67b45aaa7 573:462e4f59c261
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