From 3be5f0397a020d6d82c7e5a87203ff902f869cf8 Mon Sep 17 00:00:00 2001 From: "J.T. Conklin" Date: Wed, 31 May 1995 19:31:20 +0000 Subject: * nlm/configure.in: Use sed instead of awk to get the value of cpufile. Awk is not a utility required by the GNU coding standards. This change also fixes the rigid whitespace requirements that were required for awk. --- gdb/nlm/configure.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gdb/nlm/configure.in') diff --git a/gdb/nlm/configure.in b/gdb/nlm/configure.in index f50e3cf..436af5b 100644 --- a/gdb/nlm/configure.in +++ b/gdb/nlm/configure.in @@ -23,15 +23,15 @@ sparc*) gdb_target_cpu=sparc ;; esac -if [ ! -f ${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt ]; then +target_makefile_frag=${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt +if [ ! -f ${target_makefile_frag} ]; then echo '***' "GDBSERVE does not support target ${target}" 1>&2 exit 1 fi -# We really shouldn't depend on there being a space after CPU_FILE= ... -cpufile=`awk '$1 == "CPU_FILE=" { print $2 }' <${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt` - -target_makefile_frag=../config/${gdb_target_cpu}/gdbserve.mt +cpufile=`sed -n ' +s/CPU_FILE[ ]*=[ ]*\([^ ]*\)/\1/p +' ${target_makefile_frag} # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile # (NAT_FILE) is not set in the ?config/* file, we don't make the -- cgit v1.1