summary refs log tree commit diff
path: root/configure.in
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-01 22:04:20 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-01 22:04:20 +0000
commit97a4786792e1603c82f127744743fd51fbe5e5a3 (patch)
tree2926852ed6ac3b2ee2eaa379319bc3c9f33ea6bb /configure.in
parentf89ac85ca83afd8d3c040f81931b8fac3c0ce9bf (diff)
downloadglibc-97a4786792e1603c82f127744743fd51fbe5e5a3.tar.gz
glibc-97a4786792e1603c82f127744743fd51fbe5e5a3.tar.xz
glibc-97a4786792e1603c82f127744743fd51fbe5e5a3.zip
Update.
1998-04-30 14:15  Zack Weinberg  <zack@rabi.phys.columbia.edu>

	* sysdeps/unix/sysv/linux/netrose/rose.h: Don't include kernel headers.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in29
1 files changed, 18 insertions, 11 deletions
diff --git a/configure.in b/configure.in
index b7727c3459..e7dfcc59a3 100644
--- a/configure.in
+++ b/configure.in
@@ -492,19 +492,26 @@ if test -n "$sysheaders"; then
 fi
 AC_SUBST(SYSINCLUDES)
 
-# check if ar takes S
-AC_CACHE_CHECK(for ar S, libc_cv_ar_S, [dnl
-tmpo=$$.o
-tmplib=lib$$.a
-rm -f $tmpo $tmplib
-touch $tmpo
-if AC_TRY_COMMAND([${AR-ar} rcuS $tmplib $tmpo > /dev/null 2>&1]); then
-  libc_cv_ar_S=yes
+# check if ranlib is necessary
+AC_CACHE_CHECK(whether ranlib is necessary, libc_cv_ranlib_necessary, [dnl
+cat > conftest.c <<EOF
+int a;
+char b;
+void c(void) {}
+EOF
+$CC $CFLAGS -c conftest.c
+$AR cr conftest.a conftest.c
+cp conftest.a conftest2.a
+$RANLIB conftest.a
+if cmp -s conftest.a conftest2.a; then
+  libc_cv_ranlib_necessary=no
 else
-  libc_cv_ar_S=no
+  libc_cv_ranlib_necessary=yes
+fi
+rm -rf conftest*])
+if test "$libc_cv_ranlib_necessary" = no; then
+ RANLIB=:
 fi
-rm -f $tmpo $tmplib])
-AC_SUBST(libc_cv_ar_S)dnl
 
 # Test if LD_LIBRARY_PATH contains the notation for the current directory
 # since this would lead to problems installing/building glibc.