Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/configure.ac Fri Oct 08 12:05:40 2010 +0100 +++ b/configure.ac Fri Oct 08 13:30:47 2010 +0100 @@ -51,7 +51,10 @@ CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" SV_DEFINES_BUILD="$SV_DEFINES_RELEASE" +QMAKE_CONFIG="release" + AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],[enable debug support [default=no]])],[AC_MSG_NOTICE([enabling debug build]) +QMAKE_CONFIG="debug" CXXFLAGS_BUILD="$CXXFLAGS_DEBUG" SV_DEFINES_BUILD="$SV_DEFINES_DEBUG"]) @@ -101,6 +104,8 @@ AC_SUBST(CC) AC_SUBST(CXX) +AC_SUBST(QMAKE_CONFIG) + AC_SUBST(CODENAME) AC_OUTPUT([config.pri])