* configure.ac: Add AC_ARG_PROGRAM.
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 27 Apr 2012 18:30:20 +0000 (18:30 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Fri, 27 Apr 2012 18:30:20 +0000 (18:30 +0000)
* configure: Regenerate.

gdb/ChangeLog
gdb/configure
gdb/configure.ac

index 31b207fd91a6f22edb21df2122030d41d6a391a1..3c692a5a0651209c76373901b8ecb5d9aa99d1db 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * configure.ac: Add AC_ARG_PROGRAM.
+       * configure: Regenerate.
+
 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Fix DW_AT_lower_bound defaults for DWARF-4+.
index 54c2399080d314c36d4659d8ad4006d298bc3eb8..fd8160951ed99455e8394a0e8c57dca913d0bf91 100755 (executable)
@@ -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
index a40c2e55327e4739f4adfe8f60be01241f48fb0e..0f5d65174ae395121ac6b8ee71f1757346ef54e2 100644 (file)
@@ -30,6 +30,7 @@ AM_PROG_CC_STDC
 
 AC_CONFIG_AUX_DIR(..)
 AC_CANONICAL_SYSTEM
+AC_ARG_PROGRAM
 
 # Dependency checking.
 ZW_CREATE_DEPDIR
This page took 0.035751 seconds and 4 git commands to generate.