Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-08-28 00:27:35 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-08-28 00:27:35 +0400
commit8da1639b0c63e581d73bfc169ae6158b36958aeb (patch)
treefd7d1d0279134b76314ba6ca2c26c91403743c21 /newlib/aclocal.m4
parent0a642325253949a306fc3e62863f8c188f8b7037 (diff)
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.m423
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],