public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/elfix:master commit in: /
Date: Tue, 19 Aug 2014 14:01:46 +0000 (UTC)	[thread overview]
Message-ID: <1406759854.1bbd73eb9f765d6ad5ed257f8520877bfd58edfe.blueness@gentoo> (raw)
Message-ID: <20140819140146.8R1WpBM12DvUtXRj1OMeAb4mV_PDkV7U9f0OLnbvd-8@z> (raw)

commit:     1bbd73eb9f765d6ad5ed257f8520877bfd58edfe
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 30 22:37:34 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 22:37:34 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=1bbd73eb

configure.ac: cleanup after moving fix-gnustack

---
 configure.ac | 66 ++++++++++++++++++++++++++----------------------------------
 1 file changed, 28 insertions(+), 38 deletions(-)

diff --git a/configure.ac b/configure.ac
index 179eed5..aec42a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,7 @@
 #	along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-AC_PREREQ([2.68])
+AC_PREREQ([2.69])
 AC_INIT([elfix], [0.9], [http://bugs.gentoo.org/])
 AC_CONFIG_SRCDIR([src/paxctl-ng.c])
 AC_CONFIG_HEADERS([config.h])
@@ -27,16 +27,6 @@ LT_PREREQ([2.4])
 LT_INIT([dlopen])
 AC_CONFIG_MACRO_DIR([m4])
 
-AC_ARG_ENABLE(
-    [tests],
-    AS_HELP_STRING(
-        [--enable-tests],
-        [perform tests]
-    ),
-    [test "x$enable_tests" = "xyes"]
-)
-AM_CONDITIONAL([TEST],[test "x$enable_tests" = "xyes"])
-
 # Checks for programs.
 AC_PROG_AWK
 AC_PROG_CC
@@ -50,9 +40,6 @@ AC_CHECK_HEADERS(
     [AC_MSG_ERROR(["Missing necessary header"])]
 )
 
-# Checks for DECLs.
-AC_CHECK_DECL([ELF_C_RDWR_MMAP],[],[],[[#include <libelf.h>]])
-
 # Checks for typedefs, structures, and compiler characteristics.
 AC_TYPE_PID_T
 AC_TYPE_SIZE_T
@@ -65,14 +52,15 @@ AC_FUNC_FORK
 AC_FUNC_MMAP
 AC_CHECK_FUNCS([memset strerror])
 
-# Note: this is always needed for fix-gnustack
-# and for paxctl-ng only with --enable-ptpax
-AC_CHECK_LIB(
-    [elf],
-    [elf_begin],
-    [],
-    [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
+AC_ARG_ENABLE(
+    [tests],
+    AS_HELP_STRING(
+        [--enable-tests],
+        [perform tests]
+    ),
+    [test "x$enable_tests" = "xyes"]
 )
+AM_CONDITIONAL([TEST],[test "x$enable_tests" = "xyes"])
 
 AC_ARG_ENABLE(
     [ptpax],
@@ -85,29 +73,31 @@ AC_ARG_ENABLE(
 AS_IF(
     [test "x$enable_ptpax" != "xno"],
     [
-        AS_IF(
-            [test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"],
-            [
-                AC_CHECK_DECLS(
-                    [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
-                    [],
-                    [
-                        CFLAGS+=" -DNEED_PAX_DECLS"
-                    ],
-                    [[#include <gelf.h>]]
-                )
-                CFLAGS+=" -DPTPAX"
-            ],
-            [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf"])]
+        AC_CHECK_LIB(
+            [elf],
+            [elf_begin],
+            [],
+            [AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])]
+        )
+        AC_CHECK_DECL(
+            [ELF_C_RDWR_MMAP],
+            [],
+            [AC_MSG_ERROR(["Missing necessary DECL ELF_C_RDWR_MMAP in libelf.h"])],
+            [[#include <libelf.h>]]
         )
+        AC_CHECK_DECLS(
+            [PT_PAX_FLAGS, PF_PAGEEXEC, PF_MPROTECT, PF_RANDMMAP],
+            [],
+            [CFLAGS+=" -DNEED_PAX_DECLS"],
+            [[#include <gelf.h>]]
+        )
+        CFLAGS+=" -DPTPAX"
     ],
     [
         CFLAGS+=" -UPTPAX -DNEED_PAX_DECLS"
     ]
 )
 
-AM_CONDITIONAL([BUILD_ELF],[test "x$enable_ptpax" = "xyes" && test "x$ac_cv_have_decl_ELF_C_RDWR_MMAP" = "xyes"])
-
 AC_ARG_ENABLE(
     [xtpax],
     AS_HELP_STRING(
@@ -137,7 +127,7 @@ AS_IF(
     ]
 )
 
-if [test "x$enable_ptpax" = "xno" -a  "x$enable_xtpax" = "xno" ]; then
+if [test "x$enable_ptpax" = "xno" -a "x$enable_xtpax" = "xno" ]; then
     AC_MSG_ERROR(["You must enable either ptpax or xtpax"])
 fi
 


             reply	other threads:[~2014-08-19 14:01 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30 22:36 Anthony G. Basile [this message]
2014-08-19 14:01 ` [gentoo-commits] proj/elfix:master commit in: / Anthony G. Basile
  -- strict thread matches above, loose matches on Subject: below --
2023-01-24  3:18 Sam James
2023-01-10  5:21 Sam James
2016-04-02 22:11 Anthony G. Basile
2016-02-28 21:14 Anthony G. Basile
2016-02-28 21:02 Anthony G. Basile
2016-02-28 17:15 Anthony G. Basile
2016-02-28 17:04 Anthony G. Basile
2016-02-28 16:28 Anthony G. Basile
2016-02-28 14:13 Anthony G. Basile
2016-02-28  7:12 Anthony G. Basile
2016-02-28  7:10 Anthony G. Basile
2016-02-13 21:29 Anthony G. Basile
2015-10-27 19:48 Anthony G. Basile
2015-10-24 18:32 Anthony G. Basile
2014-11-03 12:23 Anthony G. Basile
2014-10-13 22:19 Anthony G. Basile
2014-08-19 14:01 Anthony G. Basile
2014-07-30 16:32 ` Anthony G. Basile
2014-08-19 14:01 Anthony G. Basile
2014-07-30 16:40 ` Anthony G. Basile
2014-07-30 19:39 Anthony G. Basile
2014-08-19 14:01 ` Anthony G. Basile
2014-07-30 16:20 Anthony G. Basile
2014-07-21 21:05 Anthony G. Basile
2014-06-07 14:20 Anthony G. Basile
2014-06-07 14:18 Anthony G. Basile
2013-11-07 14:51 Anthony G. Basile
2013-05-21  2:21 Anthony G. Basile
2012-12-29  2:36 Anthony G. Basile
2012-12-29  1:36 Anthony G. Basile
2012-12-27  3:16 Anthony G. Basile
2012-12-16 21:31 Anthony G. Basile
2012-12-12 18:47 Anthony G. Basile
2012-11-10 23:38 Anthony G. Basile
2012-11-10 22:26 Anthony G. Basile
2012-11-10 21:02 Anthony G. Basile
2012-11-10 21:01 Anthony G. Basile
2012-07-29 15:18 Anthony G. Basile
2012-07-28 12:46 Anthony G. Basile
2012-07-27 22:37 Anthony G. Basile
2012-07-24 12:53 Anthony G. Basile
2012-07-24 12:38 Anthony G. Basile
2012-07-21 19:04 Anthony G. Basile
2012-07-20 15:20 Anthony G. Basile
2011-12-29  0:53 Anthony G. Basile
2011-12-04 22:00 Anthony G. Basile
2011-12-04 21:47 Anthony G. Basile
2011-11-27  1:33 Anthony G. Basile
2011-11-27  1:12 Anthony G. Basile
2011-11-26 22:54 Anthony G. Basile
2011-11-15 19:37 Anthony G. Basile
2011-11-03 19:00 Anthony G. Basile
2011-11-02  9:30 Anthony G. Basile
2011-10-23 15:44 Anthony G. Basile
2011-10-23 14:57 Anthony G. Basile
2011-10-17 21:24 Anthony G. Basile
2011-10-12 10:53 Anthony G. Basile
2011-10-08 19:31 Anthony G. Basile
2011-09-18 23:06 Anthony G. Basile
2011-05-05 19:46 Anthony G. Basile
2011-05-04  2:24 Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1406759854.1bbd73eb9f765d6ad5ed257f8520877bfd58edfe.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox