From 54c3c928019565d9e75a8289ed86a3b233acb34d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Tue, 21 Jan 1997 13:50:10 +0100
Subject: [PATCH] Made the -R test somewhat more exhaustive.

Rev: src/configure.in:1.43
---
 src/configure.in | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index 377e695e44..5576def87d 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,4 +1,4 @@
-AC_REVISION("$Id: configure.in,v 1.42 1997/01/18 21:48:06 hubbe Exp $")
+AC_REVISION("$Id: configure.in,v 1.43 1997/01/21 12:50:10 grubba Exp $")
 AC_INIT(interpret.c)
 AC_CONFIG_HEADER(machine.h)
 
@@ -149,11 +149,12 @@ AC_MSG_CHECKING(if ld accepts setting the run-time path with -R)
 AC_CACHE_VAL(pike_cv_ld_accepts_r,
 [
   OLD_CFLAGS="$CFLAGS"
+  pike_cv_ld_accepts_r=yes
   
-  CFLAGS="$CFLAGS -R."
-  AC_TRY_LINK([],[ exit(0); ],[
-    pike_cv_ld_accepts_r=yes
-  ],[ pike_cv_ld_accepts_r=no ])
+  for test_path in . .. /lib /usr/lib .:.. /lib:/usr/lib; do
+    CFLAGS="$OLD_CFLAGS -R$test_path"
+    AC_TRY_LINK([],[ exit(0); ],[],[ pike_cv_ld_accepts_r=no ])
+  done
   CFLAGS="$OLD_CFLAGS"
 ])
 AC_MSG_RESULT($pike_cv_ld_accepts_r)
-- 
GitLab