mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-13 01:05:36 +00:00
enable-debug option for debug flags in compile
This commit is contained in:
parent
78a9e31ff0
commit
03f8da8fbc
16
configure.ac
16
configure.ac
@ -15,8 +15,20 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|||||||
|
|
||||||
################ Set flags
|
################ Set flags
|
||||||
# do not move!
|
# do not move!
|
||||||
#CXXFLAGS="-g $CXXFLAGS"
|
AC_ARG_ENABLE([debug],[AC_HELP_STRING([--enable-debug=yes|no], [enable debug compilation ])],
|
||||||
CXXFLAGS="-O3 $CXXFLAGS"
|
[ac_DEBUG=${enable_debug}], [ac_DEBUG=no])
|
||||||
|
case ${ac_DEBUG} in
|
||||||
|
yes)
|
||||||
|
CXXFLAGS="-g $CXXFLAGS"
|
||||||
|
;;
|
||||||
|
no)
|
||||||
|
CXXFLAGS="-O3 $CXXFLAGS"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
CXXFLAGS="-O3 $CXXFLAGS"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
############### Checks for programs
|
############### Checks for programs
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
Loading…
Reference in New Issue
Block a user