$NetBSD: patch-configure,v 1.1 2016/05/07 10:04:00 joerg Exp $ --- configure.orig 2008-04-21 07:58:11.000000000 +0000 +++ configure @@ -3706,9 +3706,9 @@ else X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . - { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 -echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } - ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" + { echo "$as_me:$LINENO: checking whether ${COMPILER_RPATH_FLAG} must be followed by a space" >&5 +echo $ECHO_N "checking whether ${COMPILER_RPATH_FLAG} must be followed by a space... $ECHO_C" >&6; } + ac_xsave_LIBS=$LIBS; LIBS="$LIBS ${COMPILER_RPATH_FLAG}$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat >conftest.$ac_ext <<_ACEOF @@ -3746,12 +3746,12 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec $as_test_x conftest$ac_exeext; then { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } - X_LIBS="$X_LIBS -R$x_libraries" + X_LIBS="$X_LIBS ${COMPILER_RPATH_FLAG}$x_libraries" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - LIBS="$ac_xsave_LIBS -R $x_libraries" + LIBS="$ac_xsave_LIBS ${COMPILER_RPATH_FLAG} $x_libraries" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -3787,7 +3787,7 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec $as_test_x conftest$ac_exeext; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } - X_LIBS="$X_LIBS -R $x_libraries" + X_LIBS="$X_LIBS ${COMPILER_RPATH_FLAG} $x_libraries" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5