From 9009e1ae5f13e12f572907c251f503fba53c9966 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Fri, 27 Apr 2012 18:30:20 +0000 Subject: [PATCH] * configure.ac: Add AC_ARG_PROGRAM. * configure: Regenerate. --- gdb/ChangeLog | 5 +++++ gdb/configure | 15 +++++++++++++++ gdb/configure.ac | 1 + 3 files changed, 21 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 31b207fd91a..3c692a5a065 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-04-26 Maciej W. Rozycki + + * configure.ac: Add AC_ARG_PROGRAM. + * configure: Regenerate. + 2012-04-26 Jan Kratochvil Fix DW_AT_lower_bound defaults for DWARF-4+. diff --git a/gdb/configure b/gdb/configure index 54c2399080d..fd8160951ed 100755 --- a/gdb/configure +++ b/gdb/configure @@ -1428,6 +1428,11 @@ _ACEOF cat <<\_ACEOF +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR @@ -4373,6 +4378,16 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + # Dependency checking. rm -rf .tst 2>/dev/null diff --git a/gdb/configure.ac b/gdb/configure.ac index a40c2e55327..0f5d65174ae 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -30,6 +30,7 @@ AM_PROG_CC_STDC AC_CONFIG_AUX_DIR(..) AC_CANONICAL_SYSTEM +AC_ARG_PROGRAM # Dependency checking. ZW_CREATE_DEPDIR -- 2.30.2