Skip to content

Commit

Permalink
Re-add --with-optim option to configure script.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Nov 30, 2018
1 parent 2304c06 commit 01e2e50
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
18 changes: 14 additions & 4 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ ac_ct_CC
CPPFLAGS
CFLAGS
CC
ARCHFLAGS
OPTIM
ARCHFLAGS
LDFLAGS
VERSION
host_os
Expand Down Expand Up @@ -711,6 +711,7 @@ ac_user_opts='
enable_option_checking
with_ansi
with_archflags
with_optim
enable_debug
with_docdir
with_vsnprintf
Expand Down Expand Up @@ -1351,6 +1352,7 @@ Optional Packages:
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-ansi set full ANSI C mode, default=no
--with-archflags set additional architecture flags, default=none
--with-optim set additional optimization flags, default=none
--with-docdir set directory for documentation, default=${prefix}/share/doc/mxml
--with-vsnprintf use vsnprintf emulation functions, default=auto
Expand Down Expand Up @@ -2309,8 +2311,6 @@ CFLAGS="${CFLAGS:=}"
CXXFLAGS="${CXXFLAGS:=}"
LDFLAGS="${LDFLAGS:=}"

OPTIM=""



# Check whether --with-ansi was given.
Expand All @@ -2331,10 +2331,20 @@ fi




# Check whether --with-optim was given.
if test "${with_optim+set}" = set; then :
withval=$with_optim; OPTIM="$withval"
else
OPTIM=""
fi



# Check whether --enable-debug was given.
if test "${enable_debug+set}" = set; then :
enableval=$enable_debug; if eval "test x$enable_debug = xyes"; then
OPTIM="-g"
OPTIM="$OPTIM -g"
fi
fi

Expand Down
9 changes: 6 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ CFLAGS="${CFLAGS:=}"
CXXFLAGS="${CXXFLAGS:=}"
LDFLAGS="${LDFLAGS:=}"
AC_SUBST(LDFLAGS)
OPTIM=""
AC_SUBST(OPTIM)

AC_ARG_WITH(ansi, [ --with-ansi set full ANSI C mode, default=no],
use_ansi="$withval",
Expand All @@ -53,9 +51,14 @@ AC_ARG_WITH(archflags, [ --with-archflags set additional architecture fl
ARCHFLAGS="")
AC_SUBST(ARCHFLAGS)

AC_ARG_WITH(optim, [ --with-optim set additional optimization flags, default=none],
OPTIM="$withval",
OPTIM="")
AC_SUBST(OPTIM)

AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging, default=no],
if eval "test x$enable_debug = xyes"; then
OPTIM="-g"
OPTIM="$OPTIM -g"
fi)

AC_ARG_WITH(docdir, [ --with-docdir set directory for documentation, default=${prefix}/share/doc/mxml],
Expand Down

0 comments on commit 01e2e50

Please sign in to comment.