On Friday 25 January 2002 7:43 pm, John Levon wrote:
> On Fri, Jan 25, 2002 at 07:35:24PM +0000, Angus Leeming wrote:
> 
> > > @@ -278,6 +280,7 @@
> > >    dnl libs and headers supplied. Need to check lib name
> > >    qt2_incdir="$ac_qt2_includes"
> > >    qt2_libdir="$ac_qt2_libraries"
> > > +  ac_qt2_name="-lqt"
> > >    QT2_CHECK_LIB_NAME
> > >    have_qt2="yes"
> > >  fi
> > > 
> > > hunk ? (This is the case where the previous value has already been 
cached).
> > 
> > To which file? qt2.m4?
> 
> yes (and autogen.sh it after of course)

Yes, this now works.

I further modified qt2.m4 to print out:

checking for Qt 2... libraries -lqt in /usr/local/kde/qt/lib, headers 
/usr/local/kde/qt/include

So, the user has an idea about what's going on. Do as you see fit.
Have a good weekend,
Angus


Index: config/qt2.m4
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/qt2.m4,v
retrieving revision 1.6
diff -u -p -r1.6 qt2.m4
--- config/qt2.m4       2001/09/27 16:03:47     1.6
+++ config/qt2.m4       2002/01/25 20:04:04
@@ -278,6 +278,7 @@ else
   dnl libs and headers supplied. Need to check lib name
   qt2_incdir="$ac_qt2_includes"
   qt2_libdir="$ac_qt2_libraries"
+  ac_qt2_name="-lqt"
   QT2_CHECK_LIB_NAME
   have_qt2="yes"
 fi
@@ -289,7 +290,7 @@ if test "$have_qt2" != yes; then
 else
   ac_cv_have_qt2="have_qt2=yes ac_qt2_name=$ac_qt2_name \
     ac_qt2_includes=$ac_qt2_includes ac_qt2_libraries=$ac_qt2_libraries"
-  AC_MSG_RESULT([libraries $ac_qt2_libraries, headers $ac_qt2_includes])
+  AC_MSG_RESULT([libraries $ac_qt2_name in $ac_qt2_libraries, headers 
$ac_qt2_includes])

   qt2_libraries="$ac_qt2_libraries"
   qt2_includes="$ac_qt2_includes"

Reply via email to