diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-02-04 14:54:27 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-02-04 14:54:27 +0000 |
commit | 6c77bbab3977d70c7a7247061e2ee4ae1df3dccb (patch) | |
tree | ebef5c1b453dd5424690063249fbc703ff818e75 /aclocal/check-files-in.m4 | |
parent | Ralf Corsepius noticed that generally was spelled incorrectly. (diff) | |
download | rtems-6c77bbab3977d70c7a7247061e2ee4ae1df3dccb.tar.bz2 |
New autoconf feature from Ralf Corsepius:
It adds make rules for reconfiguring build-trees ("make Makefile") and
adds dependency rules for configure and friends (i.e. calls autoconf).
Most of this code has been "borrowed" from automake and was adapted to
rtems.
Addionally, I added automatic generation of the "aclocal.m4"-file by
"aclocal" (from the automake package). Therefore I splitted aclocal.m4
into several separate files (attached to this mail), each containing one
of rtems customized autoconf/m4-macros and have put them into a new
subdirectory "aclocal". Normal users won't be influenced and won't even
need this, unless they try to modify configure.in.
The main advantage of this is: these aclocal/m4-macros become reusable
and easier to administer. As a disadvantage, rtems becomes dependent of
having aclocal/automake installed. To keep building rtems functional if
autoconf or aclocal isn't installed, the related Makefile commands are
prefixed by "-" -- only an error message should be issued by "make".
Diffstat (limited to 'aclocal/check-files-in.m4')
-rw-r--r-- | aclocal/check-files-in.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/aclocal/check-files-in.m4 b/aclocal/check-files-in.m4 new file mode 100644 index 0000000000..f5e5556df1 --- /dev/null +++ b/aclocal/check-files-in.m4 @@ -0,0 +1,21 @@ +dnl $Id$ + +dnl RTEMS_CHECK_FILES_IN(path,file,var) +dnl path .. path relative to srcdir, where to start searching for files +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) +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`; + $3="$$3 $rtems_av_tmp"; + cd $rtems_av_save_dir; + AC_MSG_RESULT(done) +else + AC_MSG_RESULT(no) +fi +]) + |