]> code.delx.au - gnu-emacs/commitdiff
(x_libraries): Remove standard 64-bit directories - experimental
authorGlenn Morris <rgm@gnu.org>
Sat, 3 May 2008 18:59:40 +0000 (18:59 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 3 May 2008 18:59:40 +0000 (18:59 +0000)
workaround for minor autoconf bug.

ChangeLog
configure.in

index 55afae13d897455b26e2f7600c5212242d9543bc..d9aa7dd8a58ccd6d57994384dbf2576b4d4ca62e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-03  Glenn Morris  <rgm@gnu.org>
+
+       * configure.in (x_libraries): Remove standard 64-bit directories -
+       experimental workaround for minor autoconf bug.
+
 2008-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * configure.in: Remove hpux10.20 from the desupported list.
index 4740fb9b5da11df6fc0730086a363e49913f51a6..6e128a1bd9b9dcac062a7d7218967c630b6bf2d5 100644 (file)
@@ -1339,6 +1339,16 @@ else
   window_system=x11
 fi
 
+## Workaround for bug in autoconf <= 2.62.
+## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
+## No need to do anything special for these standard directories.
+## This is an experiment, take it out if it causes problems.
+if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
+   
+   x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
+
+fi
+
 if test "${x_libraries}" != NONE; then
   if test -n "${x_libraries}"; then
     LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`