]> git.lyx.org Git - lyx.git/blobdiff - config/qt2.m4
uses references instead of returning vectors
[lyx.git] / config / qt2.m4
index a1d12ef89b83bba375a0d541ab2850754b75a345..f5ada68e92557f678395d9051fd8a80eb7492349 100644 (file)
@@ -1,4 +1,4 @@
-# Configure paths and libs when using Qt2 GUI
+# Configure paths and libs when using Qt GUI
 ##    -*- shell-script -*-
 
 ##    Based on KDE file written by :
@@ -172,28 +172,28 @@ LIBS="$ac_libs_safe"
 ##
 AC_DEFUN(QT2_AC_PATH,
 [
-AC_MSG_CHECKING([for Qt 2])
+AC_MSG_CHECKING([for Qt])
 ac_qt2_includes=NO ac_qt2_libraries=NO ac_qt2_bindir=NO
 qt2_libraries=""
 qt2_includes=""
  
-AC_ARG_WITH(qt2-dir,
-    [  --with-qt2-dir           where the root of Qt2 is installed ],
+AC_ARG_WITH(qt-dir,
+    [  --with-qt-dir           where the root of Qt 2/3 is installed ],
     [  ac_qt2_includes=`eval echo "$withval"/include`
        ac_qt2_libraries=`eval echo "$withval"/lib`
        ac_qt2_bindir=`eval echo "$withval"/bin`
     ])
 
-AC_ARG_WITH(qt2-includes,
-    [  --with-qt2-includes      where the Qt2 includes are. ],
+AC_ARG_WITH(qt-includes,
+    [  --with-qt-includes      where the Qt 2/3 includes are. ],
     [ 
        ac_qt2_includes=`eval echo "$withval"`
     ])
    
 qt2_libs_given=no
 
-AC_ARG_WITH(qt2-libraries,
-    [  --with-qt2-libraries     where the Qt2 library is installed.],
+AC_ARG_WITH(qt-libraries,
+    [  --with-qt-libraries     where the Qt 2/3 library is installed.],
     [  ac_qt2_libraries=`eval echo "$withval"`
        qt2_libs_given=yes
     ])
@@ -224,7 +224,7 @@ done
 
 ac_qt2_name="-lqt"
  
-AC_FIND_FILE(libqt.so.2.2.3 libqt.so.2.2 libqt.so.2 libqt2.so libqt.a libqt.sl, $qt2_libdirs, qt2_libdir)
+AC_FIND_FILE(libqt.so.3 libqt.so.2.2.3 libqt.so.2.2 libqt.so.2 libqt2.so libqt.a libqt.sl, $qt2_libdirs, qt2_libdir)
  
 ac_qt2_libraries="$qt2_libdir"
 
@@ -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"