Subject: bug#2280: 23.0.90; incorrect configuration

From: Chong Yidong <[email-masked]>
Date: Sat, 09 Jan 2010 19:11:24 -0500

> > Going back to this bug report from Feb, did you manage to solve the
> > problem?
>
> I "patch" the "patched" configure script to either use the default /sw
> setting (for Fink) or I comment this block and uncomment my block
> which adds in paths to /opt/local (MacPorts). I just have to think of
> it before I start to configure.

Does the following patch solve the problem for you?

*** emacs/configure~	2009-12-30 20:38:31.000000000 -0500
--- emacs/configure	2010-01-09 19:09:55.000000000 -0500
***************
*** 2742,2747 ****
--- 2742,2752 ----
        GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
        CPP="${CPP} ${GCC_TEST_OPTIONS}"
        NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
+     # Or use MacPorts packages if available.
+     elif test -d /opt/local/include && test -d /opt/local/lib; then
+       GCC_TEST_OPTIONS="-I/opt/local/include -L/opt/local/lib"
+       CPP="${CPP} ${GCC_TEST_OPTIONS}"
+       NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
      fi
    ;;
  
*** emacs/configure.in~	2010-01-04 05:35:18 +0000
--- emacs/configure.in	2010-01-10 00:09:03 +0000
***************
*** 475,480 ****
--- 475,485 ----
        GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
        CPP="${CPP} ${GCC_TEST_OPTIONS}"
        NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
+     # Or use MacPorts packages if available.
+     elif test -d /opt/local/include && test -d /opt/local/lib; then
+       GCC_TEST_OPTIONS="-I/opt/local/include -L/opt/local/lib"
+       CPP="${CPP} ${GCC_TEST_OPTIONS}"
+       NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
      fi
    ;;