- Add the --enable-debug flag to configure.ac
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1022 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
08a4cd4f63
commit
cb5d958790
18
configure.ac
18
configure.ac
|
@ -45,10 +45,6 @@ dnl starting automake
|
||||||
AM_INIT_AUTOMAKE([dejagnu dist-bzip2])
|
AM_INIT_AUTOMAKE([dejagnu dist-bzip2])
|
||||||
|
|
||||||
dnl gettext & libtool
|
dnl gettext & libtool
|
||||||
AC_ARG_VAR([LT_LDFLAGS],
|
|
||||||
[You can use this variable to pass an option
|
|
||||||
to libtool when it is in linking mode (for
|
|
||||||
example, "-all-static")])
|
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
AM_GNU_GETTEXT([external])
|
AM_GNU_GETTEXT([external])
|
||||||
AM_GNU_GETTEXT_VERSION([0.14.1])
|
AM_GNU_GETTEXT_VERSION([0.14.1])
|
||||||
|
@ -67,6 +63,20 @@ AC_CHECK_CXXFLAG([CXXFLAGS], [Wextra])
|
||||||
AC_CHECK_CXXFLAG([CXXFLAGS], [Wno-long-long])
|
AC_CHECK_CXXFLAG([CXXFLAGS], [Wno-long-long])
|
||||||
AC_CHECK_LDFLAG([LDFLAGS],[--as-needed])
|
AC_CHECK_LDFLAG([LDFLAGS],[--as-needed])
|
||||||
|
|
||||||
|
dnl see if we've to enable debug flags
|
||||||
|
AC_ARG_ENABLE([debug],
|
||||||
|
AS_HELP_STRING([--enable-debug],
|
||||||
|
[turn on debug compiler flags. Disabled by default]),
|
||||||
|
[enable_debug="$enableval"], [enable_debug="no"])
|
||||||
|
|
||||||
|
if test "$enable_debug" = "yes"; then
|
||||||
|
AC_CHECK_CXXFLAG([CXXFLAGS], [O0])
|
||||||
|
AC_CHECK_CXXFLAG([CXXFLAGS], [g3])
|
||||||
|
else
|
||||||
|
AC_CHECK_CXXFLAG([CXXFLAGS], [DNDEBUG])
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
dnl make
|
dnl make
|
||||||
|
|
|
@ -45,10 +45,6 @@ dnl starting automake
|
||||||
AM_INIT_AUTOMAKE([dejagnu dist-bzip2])
|
AM_INIT_AUTOMAKE([dejagnu dist-bzip2])
|
||||||
|
|
||||||
dnl gettext & libtool
|
dnl gettext & libtool
|
||||||
AC_ARG_VAR([LT_LDFLAGS],
|
|
||||||
[You can use this variable to pass an option
|
|
||||||
to libtool when it is in linking mode (for
|
|
||||||
example, "-all-static")])
|
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
AM_GNU_GETTEXT([external])
|
AM_GNU_GETTEXT([external])
|
||||||
AM_GNU_GETTEXT_VERSION([0.14.1])
|
AM_GNU_GETTEXT_VERSION([0.14.1])
|
||||||
|
@ -67,6 +63,19 @@ AC_CHECK_CXXFLAG([CXXFLAGS], [Wextra])
|
||||||
AC_CHECK_CXXFLAG([CXXFLAGS], [Wno-long-long])
|
AC_CHECK_CXXFLAG([CXXFLAGS], [Wno-long-long])
|
||||||
AC_CHECK_LDFLAG([LDFLAGS], [--as-needed])
|
AC_CHECK_LDFLAG([LDFLAGS], [--as-needed])
|
||||||
|
|
||||||
|
dnl see if we've to enable debug flags
|
||||||
|
AC_ARG_ENABLE([debug],
|
||||||
|
AS_HELP_STRING([--enable-debug],
|
||||||
|
[turn on debug compiler flags. Disabled by default]),
|
||||||
|
[enable_debug="$enableval"], [enable_debug="no"])
|
||||||
|
|
||||||
|
if test "$enable_debug" = "yes"; then
|
||||||
|
AC_CHECK_CXXFLAG([CXXFLAGS], [O0])
|
||||||
|
AC_CHECK_CXXFLAG([CXXFLAGS], [g3])
|
||||||
|
else
|
||||||
|
AC_CHECK_CXXFLAG([CXXFLAGS], [DNDEBUG])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
dnl make
|
dnl make
|
||||||
|
|
|
@ -45,10 +45,6 @@ dnl starting automake
|
||||||
AM_INIT_AUTOMAKE([dejagnu dist-bzip2])
|
AM_INIT_AUTOMAKE([dejagnu dist-bzip2])
|
||||||
|
|
||||||
dnl gettext & libtool
|
dnl gettext & libtool
|
||||||
AC_ARG_VAR([LT_LDFLAGS],
|
|
||||||
[You can use this variable to pass an option
|
|
||||||
to libtool when it is in linking mode (for
|
|
||||||
example, "-all-static")])
|
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
AM_GNU_GETTEXT([external])
|
AM_GNU_GETTEXT([external])
|
||||||
AM_GNU_GETTEXT_VERSION([0.14.1])
|
AM_GNU_GETTEXT_VERSION([0.14.1])
|
||||||
|
@ -67,6 +63,19 @@ AC_CHECK_CXXFLAG([CXXFLAGS], [Wextra])
|
||||||
AC_CHECK_CXXFLAG([CXXFLAGS], [Wno-long-long])
|
AC_CHECK_CXXFLAG([CXXFLAGS], [Wno-long-long])
|
||||||
AC_CHECK_LDFLAG([LDFLAGS], [--as-needed])
|
AC_CHECK_LDFLAG([LDFLAGS], [--as-needed])
|
||||||
|
|
||||||
|
dnl see if we've to enable debug flags
|
||||||
|
AC_ARG_ENABLE([debug],
|
||||||
|
AS_HELP_STRING([--enable-debug],
|
||||||
|
[turn on debug compiler flags. Disabled by default]),
|
||||||
|
[enable_debug="$enableval"], [enable_debug="no"])
|
||||||
|
|
||||||
|
if test "$enable_debug" = "yes"; then
|
||||||
|
AC_CHECK_CXXFLAG([CXXFLAGS], [O0])
|
||||||
|
AC_CHECK_CXXFLAG([CXXFLAGS], [g3])
|
||||||
|
else
|
||||||
|
AC_CHECK_CXXFLAG([CXXFLAGS], [DNDEBUG])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
dnl make
|
dnl make
|
||||||
|
|
Loading…
Reference in New Issue