diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-08-27 20:27:35 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-08-27 20:27:35 +0000 |
commit | 8da1639b0c63e581d73bfc169ae6158b36958aeb (patch) | |
tree | fd7d1d0279134b76314ba6ca2c26c91403743c21 /newlib/aclocal.m4 | |
parent | 0a642325253949a306fc3e62863f8c188f8b7037 (diff) | |
download | cygnal-8da1639b0c63e581d73bfc169ae6158b36958aeb.tar.gz cygnal-8da1639b0c63e581d73bfc169ae6158b36958aeb.tar.bz2 cygnal-8da1639b0c63e581d73bfc169ae6158b36958aeb.zip |
2002-08-27 Jeff Johnston <jjohnstn@redhat.com>
* Makefile.am(stmp-targ-include): Copy newlib.h to targ-include.
(install-data-local): Install newlib.h.
* Makefile.in: Regenerated.
* aclocal.m4: Ditto.
* configure: Ditto.
* configure.in: Add AM_CONFIG_HEADER to generate newlib.h based on
newlib.hin. Add AC_DEFINE_UNQUOTED entries for _ELIX_LEVEL
and _NEWLIB_VERSION to fill in newlib.h header file entries.
In AC_OUTPUT statement, unset ac_file so multilib support does
not use last ac_file temporary used in newlib.h configuration.
* libc/include/_ansi.h: Include <newlib.h>.
* newlib.hin: New template file for newlib.h.
* stamp-h.in: New file.
Diffstat (limited to 'newlib/aclocal.m4')
-rw-r--r-- | newlib/aclocal.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/newlib/aclocal.m4 b/newlib/aclocal.m4 index eae4b2000..a0a5d0eec 100644 --- a/newlib/aclocal.m4 +++ b/newlib/aclocal.m4 @@ -322,6 +322,29 @@ else $1_FALSE= fi]) +# Like AC_CONFIG_HEADER, but automatically create stamp file. + +AC_DEFUN(AM_CONFIG_HEADER, +[AC_PREREQ([2.12]) +AC_CONFIG_HEADER([$1]) +dnl When config.status generates a header, we must update the stamp-h file. +dnl This file resides in the same directory as the config header +dnl that is generated. We must strip everything past the first ":", +dnl and everything past the last "/". +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, +<<am_indx=1 +for am_file in <<$1>>; do + case " <<$>>CONFIG_HEADERS " in + *" <<$>>am_file "*<<)>> + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx + ;; + esac + am_indx=`expr "<<$>>am_indx" + 1` +done<<>>dnl>>) +changequote([,]))]) + # serial 46 AC_PROG_LIBTOOL AC_DEFUN([AC_PROG_LIBTOOL], |