diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-01-15 22:48:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-01-15 22:48:30 +0000 |
commit | 2f03a608dcb32d27a6f2affdc5e33308b0bd0a92 (patch) | |
tree | c74731086b5f4b6c797f27a84660dbb50bc55150 /aclocal.m4 | |
parent | Error reported by Duncan Smith <dds@flavors.com>: (diff) | |
download | rtems-2f03a608dcb32d27a6f2affdc5e33308b0bd0a92.tar.bz2 |
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
RTEMS_CHECK_FILES_IN uses a sequence of find, sort and sed to collect
all *.in files in a given subdirectory.
The current version uses : `find $1 -name $2 -print | sed 's%\.in%%' |
sort` with $1 being a subdirectory $2 set to Makefile.in.
This works as long all subdirectories start with a letter that is
lexically bigger than the letter M, but will fail otherwise.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 7a64ac3b80..d330bfe174 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,6 +1,8 @@ dnl some macros for rtems host configuration checks dnl dnl Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de), 97/11/29 +dnl +dnl Last Modified: 98/01/10 dnl dnl macro to detect mkdir @@ -46,11 +48,11 @@ dnl file .. name of the files to search for dnl var .. shell variable to append found files AC_DEFUN(RTEMS_CHECK_FILES_IN, [ -AC_MSG_CHECKING(for $2 in $1) +AC_MSG_CHECKING(for $2.in in $1) if test -d $srcdir/$1; then rtems_av_save_dir=`pwd`; cd $srcdir; - rtems_av_tmp=`find $1 -name $2 -print | sed 's%\.in%%' | sort`; + rtems_av_tmp=`find $1 -name "$2.in" -print | sed "s/$2\.in/%/" | sort | sed "s/%/$2/"` $3="$$3 $rtems_av_tmp"; cd $rtems_av_save_dir; AC_MSG_RESULT(done) @@ -65,7 +67,7 @@ dnl at path and append an entry for Makefile to global variable dnl "makefiles" (from configure.in) for each Makefile.in found dnl AC_DEFUN(RTEMS_CHECK_MAKEFILE, -[RTEMS_CHECK_FILES_IN($1,Makefile.in,makefiles) +[RTEMS_CHECK_FILES_IN($1,Makefile,makefiles) ]) dnl canonicalize target name |