From fc61192b400f18008d8997f188837656d81d93ac Mon Sep 17 00:00:00 2001 From: Gerd v. Egidy Date: Wed, 24 Nov 2004 16:33:20 +0000 Subject: [PATCH] arnied, libcnffile, libi2ncommon: (gerd) implement makerpm --release --- configure.in | 12 ++++++++++++ libi2ncommon.spec | 2 +- 2 files changed, 13 insertions(+), 1 deletions(-) diff --git a/configure.in b/configure.in index 720efb0..3ae3733 100644 --- a/configure.in +++ b/configure.in @@ -7,6 +7,18 @@ AC_LANG_CPLUSPLUS AC_PROG_CXX AM_PROG_LIBTOOL +AC_ARG_WITH(optimize,[ --with-optimize compile with optimizing], +[ + AC_MSG_CHECKING(for optimizing) + if test "$withval" != "no"; then + CXXFLAGS=" -O2 " + AC_MSG_RESULT(yes) + else + CXXFLAGS=" -g -O0 " + AC_MSG_RESULT(no) + fi +],[ CXXFLAGS=" -g -O0 "]) + AM_CONDITIONAL(AUTOCHECK, test "$enable_autocheck" = yes) PKG_CHECK_MODULES(LIBGETTEXT, libgettext >= 0.0.0) diff --git a/libi2ncommon.spec b/libi2ncommon.spec index c1228d6..2e1cb0d 100644 --- a/libi2ncommon.spec +++ b/libi2ncommon.spec @@ -29,7 +29,7 @@ library with functions common in Intra2net programs export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/intranator/lib/pkgconfig cp -f /usr/share/libtool/ltmain.sh . autoreconf --force -./configure --prefix=%{prefix} +./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix} dmake dmake check -- 1.7.1