Skip to content
Snippets Groups Projects
Commit 54c3c928 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Made the -R test somewhat more exhaustive.

Rev: src/configure.in:1.43
parent 598acbd1
No related branches found
No related tags found
No related merge requests found
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_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h) AC_CONFIG_HEADER(machine.h)
...@@ -149,11 +149,12 @@ AC_MSG_CHECKING(if ld accepts setting the run-time path with -R) ...@@ -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, AC_CACHE_VAL(pike_cv_ld_accepts_r,
[ [
OLD_CFLAGS="$CFLAGS" OLD_CFLAGS="$CFLAGS"
pike_cv_ld_accepts_r=yes
CFLAGS="$CFLAGS -R." for test_path in . .. /lib /usr/lib .:.. /lib:/usr/lib; do
AC_TRY_LINK([],[ exit(0); ],[ CFLAGS="$OLD_CFLAGS -R$test_path"
pike_cv_ld_accepts_r=yes AC_TRY_LINK([],[ exit(0); ],[],[ pike_cv_ld_accepts_r=no ])
],[ pike_cv_ld_accepts_r=no ]) done
CFLAGS="$OLD_CFLAGS" CFLAGS="$OLD_CFLAGS"
]) ])
AC_MSG_RESULT($pike_cv_ld_accepts_r) AC_MSG_RESULT($pike_cv_ld_accepts_r)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment