build: new 'disable-optimization' configure option
This commit is contained in:
parent
72bf7a8593
commit
46303a640a
|
@ -44,6 +44,13 @@ AC_PROG_CC
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(
|
||||||
|
[optimization],
|
||||||
|
[AS_HELP_STRING([--disable-optimization],[disable compile optimization @<:@enabled@:>@])],
|
||||||
|
,
|
||||||
|
[enable_optimization="yes"]
|
||||||
|
)
|
||||||
|
|
||||||
AC_ARG_WITH(
|
AC_ARG_WITH(
|
||||||
[cygwin-native],
|
[cygwin-native],
|
||||||
[AS_HELP_STRING([--with-cygwin-native],[compile native win32])],
|
[AS_HELP_STRING([--with-cygwin-native],[compile native win32])],
|
||||||
|
@ -51,9 +58,14 @@ AC_ARG_WITH(
|
||||||
[with_cygwin_native="no"]
|
[with_cygwin_native="no"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if test "${enable_optimization}" = "no"; then
|
||||||
|
CFLAGS="-O0 -g"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Check for some target-specific stuff
|
dnl Check for some target-specific stuff
|
||||||
test -z "${WIN32}" && WIN32="no"
|
test -z "${WIN32}" && WIN32="no"
|
||||||
test -z "${CYGWIN}" && CYGWIN="no"
|
test -z "${CYGWIN}" && CYGWIN="no"
|
||||||
|
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-solaris*)
|
*-*-solaris*)
|
||||||
CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
|
CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
|
||||||
|
|
Loading…
Reference in New Issue