From c0911b053f111f04e48c0eb79ec1e971b5355a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 3 Oct 1997 12:55:41 +0200 Subject: [PATCH] Split the /usr/local /usr/gnu include and lib search into two. Rev: src/configure.in:1.126 --- src/configure.in | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/src/configure.in b/src/configure.in index a6117618bc..30fa183ec3 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1,4 +1,4 @@ -AC_REVISION("$Id: configure.in,v 1.125 1997/10/02 22:06:44 grubba Exp $") +AC_REVISION("$Id: configure.in,v 1.126 1997/10/03 10:55:41 grubba Exp $") AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h) @@ -274,16 +274,16 @@ fi if test ! -d modules/. ; then mkdir modules fi -if test $cppflags_is_set$ldflags_is_set = nono -a x${C_INCLUDE_PATH-} = x ; then + +############################################################################# + +## Search for some popular places where libraries may be hidden. + +############################################################################# + +if test $cppflags_is_set = no -a x${C_INCLUDE_PATH-} = x ; then for d in /usr/local /usr/gnu /opt/gnu /sw/gnu /home/GNU /sw /usr/freeware do - if test -d "$d/lib" ; then - echo Adding $d/lib to the library-path - LDFLAGS="${LDFLAGS} -R$d/lib -L$d/lib" - else - : - fi - if test -d "$d/include" ; then echo Adding $d/include to the include-path CPPFLAGS="${CPPFLAGS} -I$d/include" @@ -294,6 +294,19 @@ if test $cppflags_is_set$ldflags_is_set = nono -a x${C_INCLUDE_PATH-} = x ; then else : fi +if test $ldflags_is_set = no ; then + for d in /usr/local /usr/gnu /opt/gnu /sw/gnu /home/GNU /sw /usr/freeware + do + if test -d "$d/lib" ; then + echo Adding $d/lib to the library-path + LDFLAGS="${LDFLAGS} -R$d/lib -L$d/lib" + else + : + fi + done +else + : +fi ############################################################################# -- GitLab