From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q3SXe-0006AC-BO for garchives@archives.gentoo.org; Sat, 26 Mar 2011 12:24:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20A0D1C019; Sat, 26 Mar 2011 12:24:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E521D1C019 for ; Sat, 26 Mar 2011 12:24:11 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 443511B411D for ; Sat, 26 Mar 2011 12:24:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8B30180079 for ; Sat, 26 Mar 2011 12:24:10 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: Subject: [gentoo-commits] proj/libbash:master commit in: / X-VCS-Repository: proj/libbash X-VCS-Files: Makefile.am autogen.sh configure.ac X-VCS-Directories: / X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: e31a500017b0d2f30dd7f2bb35e0996f02aae817 Date: Sat, 26 Mar 2011 12:24:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 38801ce1517981df72a7c0bcb84471f5 commit: e31a500017b0d2f30dd7f2bb35e0996f02aae817 Author: Petteri R=C3=A4ty petteriraty eu> AuthorDate: Fri Mar 25 22:15:04 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Fri Mar 25 22:15:04 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3De31a5000 Add developer option to autotools When you give --enable-developer to configure sources get built with -Wall -Werror. In this case boost 1.45 seems to give errors so boost 1.46.1 is marked as the needed version. --- Makefile.am | 6 ++++-- autogen.sh | 2 +- configure.ac | 8 +++++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 65bd783..229c11a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,10 +50,12 @@ TESTS =3D $(GUNIT_TESTS) check_JAVA =3D bashast/bashastLexer.java bashast/bashastParser.java AM_JAVACFLAGS =3D -classpath @antlr_cp@ =20 -AM_CXXFLAGS=3D$(BOOST_CPPFLAGS) -std=3Dc++0x -I$(top_srcdir)/src/ +COMMON_FLAGS =3D $(BOOST_CPPFLAGS) -std=3Dc++0x -I$(top_srcdir)/src/ # We use -x c++ to compile all C source files as C++ because there's C++ # code embedded in them. -AM_CFLAGS=3D-x c++ $(AM_CXXFLAGS) +# no DEVELOPER_FLAGS to as the generated files don't pass -Werror +AM_CFLAGS =3D -x c++ $(COMMON_FLAGS) +AM_CXXFLAGS =3D $(COMMON_FLAGS) @DEVELOPER_FLAGS@ =20 if HAVE_GTEST TESTS +=3D core_unittests builtin_unittests post_check diff --git a/autogen.sh b/autogen.sh index e18e24b..3ccf6d8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,2 +1,2 @@ #!/bin/sh -autoreconf -W all -i && ./configure --enable-gtest +autoreconf -W all -i && ./configure --enable-gtest --enable-developer diff --git a/configure.ac b/configure.ac index 045fb49..27276fa 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,13 @@ AC_INIT([libbash],[0.1],[powerofazure@gmail.com]) AM_INIT_AUTOMAKE([foreign parallel-tests color-tests subdir-objects]) AC_PROG_CXX LT_INIT -AX_BOOST_BASE(1.43.0,[:],[AC_MSG_ERROR([Needed boost not found])]) + +AC_ARG_ENABLE([developer], + [AS_HELP_STRING([--enable-developer],[makes compiler warnings error= s])], + [AS_IF([test "x$enable_developer" !=3D xno],[AC_SUBST(DEVELOPER_FLA= GS,["-Wall -Werror"])]])) +AS_IF([test "x$enable_developer" !=3D xno],[boost_version=3D"1.46.1"],[b= oost_version=3D"1.43.0"]) +AX_BOOST_BASE([$boost_version],[:], + [AC_MSG_ERROR([Needed boost not found])]) AX_BOOST_SYSTEM AX_BOOST_FILESYSTEM AC_PATH_PROG([JAVA],[java],"no")