Skip to content

Commit

Permalink
- Added configure feature rml-trace (to be disabled by the Debian/Ubu…
Browse files Browse the repository at this point in the history
…ntu builds as the executable shrinks 5-6MB)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7049 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 16, 2010
1 parent a72f6b2 commit 8dccb91
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/omc_release/Makefile.in
Expand Up @@ -33,7 +33,7 @@ LDFLAGS = @LDFLAGS@ -lm -L$(RMLHOME)/lib/plain -lrml \
PROG = omc
RMLC = @rmlc_bin@
RML = $(RMLHOME)/bin/rml
RMLCFLAGS = -Wr,-ftrace,-Wshow-warnings
RMLCFLAGS = -Wr,-Wshow-warnings@RML_TRACE@

MAKETARGET = Makefile
include $(srcdir)/Makefile.compiler_subdirs.common
Expand Down
25 changes: 25 additions & 0 deletions configure
Expand Up @@ -607,6 +607,7 @@ CPPFLAGS
LDFLAGS
CFLAGS
CC
RML_TRACE
EXE
QMAKE
LIBSENDDATA_LDFLAGS
Expand Down Expand Up @@ -676,6 +677,7 @@ SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_rml_trace
with_static_lpsolve
with_CORBA
with_MICO
Expand Down Expand Up @@ -1299,6 +1301,12 @@ if test -n "$ac_init_help"; then

cat <<\_ACEOF
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Enables RML -trace support, default=no
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Expand Down Expand Up @@ -2181,6 +2189,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu






if test -z "$CFLAGS"; then
Expand Down Expand Up @@ -3651,6 +3660,22 @@ else
$as_echo "yes" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the user wants RML -trace support" >&5
$as_echo_n "checking if the user wants RML -trace support... " >&6; }
RML_TRACE=",-ftrace"
# Check whether --enable-rml-trace was given.
if test "${enable_rml_trace+set}" = set; then :
enableval=$enable_rml_trace; test "xno" = x"$enableval" && RML_TRACE=""
fi

if test -z "$RMLTRACE" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.Tool support" >&5
$as_echo_n "checking for antlr.Tool support... " >&6; }
omc_antlr_jar=build/share/omc/java/antlr-3.1.3.jar
Expand Down
10 changes: 10 additions & 0 deletions configure.in
Expand Up @@ -30,6 +30,7 @@ AC_SUBST(LIBSENDDATA)
AC_SUBST(LIBSENDDATA_LDFLAGS)
AC_SUBST(QMAKE)
AC_SUBST(EXE)
AC_SUBST(RML_TRACE)

dnl Disables the default CFLAGS="-g -O2"
if test -z "$CFLAGS"; then
Expand Down Expand Up @@ -109,6 +110,15 @@ else
AC_MSG_RESULT([yes])
fi

AC_MSG_CHECKING([if the user wants RML -trace support])
RML_TRACE=",-ftrace"
AC_ARG_ENABLE(rml-trace, [Enables RML -trace support, default=no],[test "xno" = x"$enableval" && RML_TRACE=""])
if test -z "$RMLTRACE" ; then
AC_MSG_RESULT([no])
else
AC_MSG_RESULT([yes])
fi

AC_MSG_CHECKING([for antlr.Tool support])
omc_antlr_jar=build/share/omc/java/antlr-3.1.3.jar
mkdir -p build/share/omc/java
Expand Down

0 comments on commit 8dccb91

Please sign in to comment.