From e7f1f046f51d95d5d05ada3abd3f2e88219118e9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 16 Jun 1997 00:14:00 +0000 Subject: Update. 1997-06-16 00:54 Ulrich Drepper * libc.map: Add more symbols. * Mwkerules (load-map-file): Currectly handle missing map file. 1997-06-15 17:00 Philip Blundell * configure.in: Correct detection of generic uname implementation. 1997-06-15 23:19 Ulrich Drepper * math/libm-test.c: Fix typos. Patch by Andreas Jaeger. * libc.map: Add __nss_configure_lookup. Reported by Thorsten Kukuk. --- sysdeps/unix/sysv/linux/configure | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure index 79dbf16..a8780df 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 -- cgit v1.1