summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-06-16 00:14:00 +0000
committerUlrich Drepper <drepper@redhat.com>1997-06-16 00:14:00 +0000
commite7f1f046f51d95d5d05ada3abd3f2e88219118e9 (patch)
tree1095d104b90bb6f85faa927c1eca7d2b47d3e63b /sysdeps
parent900bec852d0bd53eb27b8b2193899f5cf470b38f (diff)
downloadglibc-e7f1f046f51d95d5d05ada3abd3f2e88219118e9.tar.gz
1997-06-16 00:54 Ulrich Drepper <drepper@cygnus.com> * libc.map: Add more symbols. * Mwkerules (load-map-file): Currectly handle missing map file. 1997-06-15 17:00 Philip Blundell <Philip.Blundell@pobox.com> * configure.in: Correct detection of generic uname implementation. 1997-06-15 23:19 Ulrich Drepper <drepper@cygnus.com> * math/libm-test.c: Fix typos. Patch by Andreas Jaeger. * libc.map: Add __nss_configure_lookup. Reported by Thorsten Kukuk.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/configure24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure
index 79dbf16912..a8780df917 100644
--- a/sysdeps/unix/sysv/linux/configure
+++ b/sysdeps/unix/sysv/linux/configure
@@ -98,3 +98,27 @@ fi
if test -f $srcdir/elf/ldconfig.c; then
has_ldconfig=yes
fi
+
+# Generate stdio_lim.h
+default_fopen_max="`${CC-gcc} -E $srcdir/sysdeps/unix/sysv/linux/mk-stdiolim.c | grep DEFAULT_FOPEN_MAX | cut -f2 -d':'`"
+default_filename_max="`${CC-gcc} -E $srcdir/sysdeps/unix/sysv/linux/mk-stdiolim.c | grep DEFAULT_FILENAME_MAX | cut -f2 -d':'`"
+# We double check if "default_fopen_max" and "default_filename_max" are
+# ok or not.
+if test "x$default_fopen_max" != "xOPEN_MAX" \
+ -a "x$default_filename_max" != "xPATH_MAX"
+then
+ sed -e "s/DEFAULT_FOPEN_MAX/$default_fopen_max/" \
+ -e "s/DEFAULT_FILENAME_MAX/$default_filename_max/" \
+ $srcdir/sysdeps/unix/sysv/linux/stdio_lim.h.in > stdio_lim.h.new
+ if test -r stdio_lim.h.new && cmp -s stdio_lim.h.new stdio_lim.h
+ then
+ echo stdio_lim.h unchanged
+ rm -f stdio_lim.h.new
+ else
+ mv -f stdio_lim.h.new stdio_lim.h
+ fi
+else
+ # We remove the old one if we cannot generate the new one during
+ # configure.
+ rm -f stdio_lim.h
+fi