From: Gerd v. Egidy Date: Wed, 24 Nov 2004 16:33:20 +0000 (+0000) Subject: arnied, libcnffile, libi2ncommon: (gerd) implement makerpm --release X-Git-Tag: v2.6~219 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=fc61192b400f18008d8997f188837656d81d93ac;p=libi2ncommon arnied, libcnffile, libi2ncommon: (gerd) implement makerpm --release --- 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