From 3911660e429d321e967b3f6332e75d5c7076264e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 23 Mar 1998 12:30:14 +0000 Subject: Update. 1998-03-23 Andreas Jaeger * configure.in: Correct test for compiler version. Check that LD_LIBRARY_PATH doesn't contain current path. --- configure.in | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index cd89b421b4..1fc18f74a7 100644 --- a/configure.in +++ b/configure.in @@ -479,12 +479,37 @@ case `${CC-cc} -v 2>&1` in ;; esac AC_MSG_RESULT($cc_is_recent) -if test $cc_is_recent != ok; then +if test "$cc_is_recent" != "ok"; then AC_MSG_WARN([ *** Your compiler is too old. *** You need at least egcs 1.0.2 or GNU CC 2.8.1 to compile glibc. ]) fi ++ +# Test if LD_LIBRARY_PATH contains the notation for the current directory +# since this would lead to problems installing/building glibc. +# LD_LIBRARY_PATH contains the current directory if one of the following +# is true: +# - one of the terminals (":" and ";") is the first or last sign +# - two terminals occur directly after each other +# - the path contains an element with a dot in it +AC_MSG_CHECKING(LD_LIBRARY_PATH variable) +changequote(,)dnl +case ${LD_LIBRARY_PATH} in + [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) + ld_library_path_setting="contains current path" + ;; + *) + ld_library_path_setting="ok" + ;; +esac +changequote([,])dnl +AC_MSG_RESULT($ld_library_path_setting) +if test "$ld_library_path_setting" != "ok"; then +AC_MSG_ERROR( +*** LD_LIBRARY_PATH shouldn't contain the current path when building glibc. +*** Please change the environment variable and run configure again.) +fi AC_PATH_PROG(BASH, bash, no) if test "$BASH" != no && -- cgit 1.4.1