diff options
author | Mark Wielaard <mjw@redhat.com> | 2016-03-02 15:04:43 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2016-03-02 17:13:53 +0100 |
commit | 9ba245842af829bf4f3530747037993d5bc8b16a (patch) | |
tree | 58cc3167d0048a4d17389427b3160ea128a9043b /configure.ac | |
parent | 128947e6c3ccf8b975c50bae8b3772d19ab1420f (diff) |
config: Use --program-prefix=eu- by default.
We want eu- as default program prefix if none was given by the user.
But if the user explicitly provided --program-prefix="" then pretend
it wasn't set at all (NONE).
This makes sure all tools will be installed as eu-<program>.
We want this default since most tools would normally conflict with
the GNU binutils variants that have similar names.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index df58b5b9..dd510a03 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,19 @@ dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see <http://www.gnu.org/licenses/>. AC_INIT([elfutils],[0.165],[https://bugzilla.redhat.com/],[elfutils]) +# We want eu- as default program prefix if none was given by the user. +# But if the user explicitly provided --program-prefix="" then pretend +# it wasn't set at all (NONE). We want to test this really early before +# configure has a chance to use the value. + +if test "x$program_prefix" = "xNONE"; then + AC_MSG_NOTICE([No --program-prefix given, using "eu-"]) + program_prefix="eu-" +elif test "x$program_prefix" = "x"; then + AC_MSG_NOTICE([Using no program-prefix]) + program_prefix=NONE +fi + AC_CONFIG_AUX_DIR([config]) AC_CONFIG_FILES([config/Makefile]) |