Fix navigation in twoPagesSpread mode
[qcomicbook-oblomov] / acinclude.m4
1 dnl @synopsis BNV_HAVE_QT [--with-Qt-dir=DIR] [--with-Qt-lib-dir=DIR] [--with-Qt-lib=LIB]
2 dnl @synopsis BNV_HAVE_QT [--with-Qt-include-dir=DIR] [--with-Qt-bin-dir=DIR] [--with-Qt-lib-dir=DIR] [--with-Qt-lib=LIB]
3 dnl
4 dnl @summary Search for Trolltech's Qt GUI framework.
5 dnl
6 dnl Searches common directories for Qt include files, libraries and Qt
7 dnl binary utilities. The macro supports several different versions of
8 dnl the Qt framework being installed on the same machine. Without
9 dnl options, the macro is designed to look for the latest library,
10 dnl i.e., the highest definition of QT_VERSION in qglobal.h. By use of
11 dnl one or more options a different library may be selected. There are
12 dnl two different sets of options. Both sets contain the option
13 dnl --with-Qt-lib=LIB which can be used to force the use of a
14 dnl particular version of the library file when more than one are
15 dnl available. LIB must be in the form as it would appear behind the
16 dnl "-l" option to the compiler. Examples for LIB would be "qt-mt" for
17 dnl the multi-threaded version and "qt" for the regular version. In
18 dnl addition to this, the first set consists of an option
19 dnl --with-Qt-dir=DIR which can be used when the installation conforms
20 dnl to Trolltech's standard installation, which means that header files
21 dnl are in DIR/include, binary utilities are in DIR/bin and the library
22 dnl is in DIR/lib. The second set of options can be used to indicate
23 dnl individual locations for the header files, the binary utilities and
24 dnl the library file, in addition to the specific version of the
25 dnl library file.
26 dnl
27 dnl The following shell variable is set to either "yes" or "no":
28 dnl
29 dnl   have_qt
30 dnl
31 dnl Additionally, the following variables are exported:
32 dnl
33 dnl   QT_CXXFLAGS
34 dnl   QT_LIBS
35 dnl   QT_MOC
36 dnl   QT_UIC
37 dnl   QT_DIR
38 dnl
39 dnl which respectively contain an "-I" flag pointing to the Qt include
40 dnl directory (and "-DQT_THREAD_SUPPORT" when LIB is "qt-mt"), link
41 dnl flags necessary to link with Qt and X, the name of the meta object
42 dnl compiler and the user interface compiler both with full path, and
43 dnl finaly the variable QTDIR as Trolltech likes to see it defined (if
44 dnl possible).
45 dnl
46 dnl Example lines for Makefile.in:
47 dnl
48 dnl   CXXFLAGS = @QT_CXXFLAGS@
49 dnl   MOC      = @QT_MOC@
50 dnl
51 dnl After the variables have been set, a trial compile and link is
52 dnl performed to check the correct functioning of the meta object
53 dnl compiler. This test may fail when the different detected elements
54 dnl stem from different releases of the Qt framework. In that case, an
55 dnl error message is emitted and configure stops.
56 dnl
57 dnl No common variables such as $LIBS or $CFLAGS are polluted.
58 dnl
59 dnl Options:
60 dnl
61 dnl --with-Qt-dir=DIR: DIR is equal to $QTDIR if you have followed the
62 dnl installation instructions of Trolltech. Header files are in
63 dnl DIR/include, binary utilities are in DIR/bin and the library is in
64 dnl DIR/lib.
65 dnl
66 dnl --with-Qt-include-dir=DIR: Qt header files are in DIR.
67 dnl
68 dnl --with-Qt-bin-dir=DIR: Qt utilities such as moc and uic are in DIR.
69 dnl
70 dnl --with-Qt-lib-dir=DIR: The Qt library is in DIR.
71 dnl
72 dnl --with-Qt-lib=LIB: Use -lLIB to link with the Qt library.
73 dnl
74 dnl If some option "=no" or, equivalently, a --without-Qt-* version is
75 dnl given in stead of a --with-Qt-*, "have_qt" is set to "no" and the
76 dnl other variables are set to the empty string.
77 dnl
78 dnl @category InstalledPackages
79 dnl @author Bastiaan Veelo <Bastiaan@Veelo.net>
80 dnl @version 2006-03-12
81 dnl @license AllPermissive
82
83 dnl Copyright (C) 2001, 2002, 2003, 2005, 2006 Bastiaan Veelo
84
85 dnl THANKS! This code includes bug fixes and contributions made by:
86 dnl Tim McClarren,
87 dnl Dennis R. Weilert,
88 dnl Qingning Huo,
89 dnl Brian Mingus,
90 dnl Jens Hannemann,
91 dnl Pavel Roskin,
92 dnl Scott J. Bertin.
93
94 dnl ChangeLog
95 dnl 2006-03-12  * Hide output of ls and fix an m4 quoting problem (due to Scott J. Bertin).
96 dnl 2006-02-13  * Check compiler return value instead of parsing the error stream,
97 dnl               which detected warnings as false negatives (due to Jens Hannemann).
98 dnl 2006-02-02  * Spelling of "Success".
99 dnl             * Fixed unsave test for $bnv_qt_lib without quotes.
100 dnl             * Put dnl in front of all comments.
101 dnl             * Changed -l$bnv_qt_lib_dir into -L$bnv_qt_lib_dir (all due to Pavel Roskin).
102 dnl 2006-01-19  * Support for 64bit architectures.
103 dnl             * Updated documentation.
104 dnl 2006-01-18: * Fix "cat: bnv_qt_test.c: No such file or directory" (due to Jens Hannemann).
105 dnl             * Hide output of failing ls.
106 dnl 2006-01-11: * Check in /Developer on Mac OS X; Check in $QTDIR (due to Brian Mingus).
107
108 dnl Calls BNV_PATH_QT_DIRECT (contained in this file) as a subroutine.
109 AC_DEFUN([BNV_HAVE_QT],
110 [
111   AC_REQUIRE([AC_PROG_CXX])
112   AC_REQUIRE([AC_PATH_X])
113   AC_REQUIRE([AC_PATH_XTRA])
114
115   AC_MSG_CHECKING(for Qt)
116
117   AC_ARG_WITH([Qt-dir],
118     [  --with-Qt-dir=DIR       DIR is equal to $QTDIR if you have followed the
119                           installation instructions of Trolltech. Header
120                           files are in DIR/include, binary utilities are
121                           in DIR/bin. The library is in DIR/lib, unless
122                           --with-Qt-lib-dir is also set.])
123   AC_ARG_WITH([Qt-include-dir],
124     [  --with-Qt-include-dir=DIR
125                           Qt header files are in DIR])
126   AC_ARG_WITH([Qt-bin-dir],
127     [  --with-Qt-bin-dir=DIR   Qt utilities such as moc and uic are in DIR])
128   AC_ARG_WITH([Qt-lib-dir],
129     [  --with-Qt-lib-dir=DIR   The Qt library is in DIR])
130   AC_ARG_WITH([Qt-lib],
131     [  --with-Qt-lib=LIB       Use -lLIB to link with the Qt library])
132   if test x"$with_Qt_dir" = x"no" ||
133      test x"$with_Qt_include-dir" = x"no" ||
134      test x"$with_Qt_bin_dir" = x"no" ||
135      test x"$with_Qt_lib_dir" = x"no" ||
136      test x"$with_Qt_lib" = x"no"; then
137     # user disabled Qt. Leave cache alone.
138     have_qt="User disabled Qt."
139   else
140     # "yes" is a bogus option
141     if test x"$with_Qt_dir" = xyes; then
142       with_Qt_dir=
143     fi
144     if test x"$with_Qt_include_dir" = xyes; then
145       with_Qt_include_dir=
146     fi
147     if test x"$with_Qt_bin_dir" = xyes; then
148       with_Qt_bin_dir=
149     fi
150     if test x"$with_Qt_lib_dir" = xyes; then
151       with_Qt_lib_dir=
152     fi
153     if test x"$with_Qt_lib" = xyes; then
154       with_Qt_lib=
155     fi
156     # No Qt unless we discover otherwise
157     have_qt=no
158     # Check whether we are requested to link with a specific version
159     if test x"$with_Qt_lib" != x; then
160       bnv_qt_lib="$with_Qt_lib"
161     fi
162     # Check whether we were supplied with an answer already
163     if test x"$with_Qt_dir" != x; then
164       have_qt=yes
165       bnv_qt_dir="$with_Qt_dir"
166       bnv_qt_include_dir="$with_Qt_dir/include"
167       bnv_qt_bin_dir="$with_Qt_dir/bin"
168       bnv_qt_lib_dir="$with_Qt_dir/lib"
169       # Only search for the lib if the user did not define one already
170       if test x"$bnv_qt_lib" = x; then
171         bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
172                      sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`"
173       fi
174       bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
175     else
176       # Use cached value or do search, starting with suggestions from
177       # the command line
178       AC_CACHE_VAL(bnv_cv_have_qt,
179       [
180         # We are not given a solution and there is no cached value.
181         bnv_qt_dir=NO
182         bnv_qt_include_dir=NO
183         bnv_qt_lib_dir=NO
184         if test x"$bnv_qt_lib" = x; then
185           bnv_qt_lib=NO
186         fi
187         BNV_PATH_QT_DIRECT
188         if test "$bnv_qt_dir" = NO ||
189            test "$bnv_qt_include_dir" = NO ||
190            test "$bnv_qt_lib_dir" = NO ||
191            test "$bnv_qt_lib" = NO; then
192           # Problem with finding complete Qt.  Cache the known absence of Qt.
193           bnv_cv_have_qt="have_qt=no"
194         else
195           # Record where we found Qt for the cache.
196           bnv_cv_have_qt="have_qt=yes                  \
197                        bnv_qt_dir=$bnv_qt_dir          \
198                bnv_qt_include_dir=$bnv_qt_include_dir  \
199                    bnv_qt_bin_dir=$bnv_qt_bin_dir      \
200                       bnv_qt_LIBS=\"$bnv_qt_LIBS\""
201         fi
202       ])dnl
203       eval "$bnv_cv_have_qt"
204     fi # all $bnv_qt_* are set
205   fi   # $have_qt reflects the system status
206   if test x"$have_qt" = xyes; then
207     QT_CXXFLAGS="-I$bnv_qt_include_dir"
208     if test x"$bnv_qt_lib" = xqt-mt; then
209         QT_CXXFLAGS="$QT_CXXFLAGS -DQT_THREAD_SUPPORT"
210     fi
211     QT_DIR="$bnv_qt_dir"
212     QT_LIBS="$bnv_qt_LIBS"
213     # If bnv_qt_dir is defined, utilities are expected to be in the
214     # bin subdirectory
215     if test x"$bnv_qt_dir" != x; then
216         if test -x "$bnv_qt_dir/bin/uic"; then
217           QT_UIC="$bnv_qt_dir/bin/uic"
218         else
219           # Old versions of Qt don't have uic
220           QT_UIC=
221         fi
222       QT_MOC="$bnv_qt_dir/bin/moc"
223     else
224       # Or maybe we are told where to look for the utilities
225       if test x"$bnv_qt_bin_dir" != x; then
226         if test -x "$bnv_qt_bin_dir/uic"; then
227           QT_UIC="$bnv_qt_bin_dir/uic"
228         else
229           # Old versions of Qt don't have uic
230           QT_UIC=
231         fi
232         QT_MOC="$bnv_qt_bin_dir/moc"
233       else
234       # Last possibility is that they are in $PATH
235         QT_UIC="`which uic`"
236         QT_MOC="`which moc`"
237       fi
238     fi
239     # All variables are defined, report the result
240     AC_MSG_RESULT([$have_qt:
241     QT_CXXFLAGS=$QT_CXXFLAGS
242     QT_DIR=$QT_DIR
243     QT_LIBS=$QT_LIBS
244     QT_UIC=$QT_UIC
245     QT_MOC=$QT_MOC])
246   else
247     # Qt was not found
248     QT_CXXFLAGS=
249     QT_DIR=
250     QT_LIBS=
251     QT_UIC=
252     QT_MOC=
253     AC_MSG_RESULT($have_qt)
254   fi
255   AC_SUBST(QT_CXXFLAGS)
256   AC_SUBST(QT_DIR)
257   AC_SUBST(QT_LIBS)
258   AC_SUBST(QT_UIC)
259   AC_SUBST(QT_MOC)
260
261   #### Being paranoid:
262   if test x"$have_qt" = xyes; then
263     AC_MSG_CHECKING(correct functioning of Qt installation)
264     AC_CACHE_VAL(bnv_cv_qt_test_result,
265     [
266       cat > bnv_qt_test.h << EOF
267 #include <qobject.h>
268 class Test : public QObject
269 {
270 Q_OBJECT
271 public:
272   Test() {}
273   ~Test() {}
274 public slots:
275   void receive() {}
276 signals:
277   void send();
278 };
279 EOF
280
281       cat > bnv_qt_main.$ac_ext << EOF
282 #include "bnv_qt_test.h"
283 #include <qapplication.h>
284 int main( int argc, char **argv )
285 {
286   QApplication app( argc, argv );
287   Test t;
288   QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) );
289 }
290 EOF
291
292       bnv_cv_qt_test_result="failure"
293       bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
294       AC_TRY_EVAL(bnv_try_1)
295       if test x"$ac_status" != x0; then
296         echo "$bnv_err_1" >&AC_FD_CC
297         echo "configure: could not run $QT_MOC on:" >&AC_FD_CC
298         cat bnv_qt_test.h >&AC_FD_CC
299       else
300         bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_bnv_qt_test.o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
301         AC_TRY_EVAL(bnv_try_2)
302         if test x"$ac_status" != x0; then
303           echo "$bnv_err_2" >&AC_FD_CC
304           echo "configure: could not compile:" >&AC_FD_CC
305           cat moc_bnv_qt_test.$ac_ext >&AC_FD_CC
306         else
307           bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>/dev/null"
308           AC_TRY_EVAL(bnv_try_3)
309           if test x"$ac_status" != x0; then
310             echo "$bnv_err_3" >&AC_FD_CC
311             echo "configure: could not compile:" >&AC_FD_CC
312             cat bnv_qt_main.$ac_ext >&AC_FD_CC
313           else
314             bnv_try_4="$CXX $QT_LIBS $LIBS -o bnv_qt_main bnv_qt_main.o moc_bnv_qt_test.o >/dev/null 2>/dev/null"
315             AC_TRY_EVAL(bnv_try_4)
316             if test x"$ac_status" != x0; then
317               echo "$bnv_err_4" >&AC_FD_CC
318             else
319               bnv_cv_qt_test_result="success"
320             fi
321           fi
322         fi
323       fi
324     ])dnl AC_CACHE_VAL bnv_cv_qt_test_result
325     AC_MSG_RESULT([$bnv_cv_qt_test_result]);
326     if test x"$bnv_cv_qt_test_result" = "xfailure"; then
327       AC_MSG_ERROR([Failed to find matching components of a complete
328                   Qt installation. Try using more options,
329                   see ./configure --help.])
330     fi
331
332     rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \
333           bnv_qt_main.$ac_ext bnv_qt_main.o bnv_qt_main
334   fi
335 ])
336
337 dnl Internal subroutine of BNV_HAVE_QT
338 dnl Set bnv_qt_dir bnv_qt_include_dir bnv_qt_bin_dir bnv_qt_lib_dir bnv_qt_lib
339 AC_DEFUN([BNV_PATH_QT_DIRECT],
340 [
341   ## Binary utilities ##
342   if test x"$with_Qt_bin_dir" != x; then
343     bnv_qt_bin_dir=$with_Qt_bin_dir
344   fi
345   ## Look for header files ##
346   if test x"$with_Qt_include_dir" != x; then
347     bnv_qt_include_dir="$with_Qt_include_dir"
348   else
349     # The following header file is expected to define QT_VERSION.
350     qt_direct_test_header=qglobal.h
351     # Look for the header file in a standard set of common directories.
352     bnv_include_path_list="
353       /usr/include
354       `ls -dr ${QTDIR}/include 2>/dev/null`
355       `ls -dr /usr/include/qt* 2>/dev/null`
356       `ls -dr /usr/lib/qt*/include 2>/dev/null`
357       `ls -dr /usr/local/qt*/include 2>/dev/null`
358       `ls -dr /opt/qt*/include 2>/dev/null`
359       `ls -dr /Developer/qt*/include 2>/dev/null`
360     "
361     for bnv_dir in $bnv_include_path_list; do
362       if test -r "$bnv_dir/$qt_direct_test_header"; then
363         bnv_dirs="$bnv_dirs $bnv_dir"
364       fi
365     done
366     # Now look for the newest in this list
367     bnv_prev_ver=0
368     for bnv_dir in $bnv_dirs; do
369       bnv_this_ver=`egrep -w '#define QT_VERSION' $bnv_dir/$qt_direct_test_header | sed s/'#define QT_VERSION'//`
370       if expr $bnv_this_ver '>' $bnv_prev_ver > /dev/null; then
371         bnv_qt_include_dir=$bnv_dir
372         bnv_prev_ver=$bnv_this_ver
373       fi
374     done
375   fi dnl Found header files.
376
377   # Are these headers located in a traditional Trolltech installation?
378   # That would be $bnv_qt_include_dir stripped from its last element:
379   bnv_possible_qt_dir=`dirname $bnv_qt_include_dir`
380   if (test -x $bnv_possible_qt_dir/bin/moc) &&
381      ((ls $bnv_possible_qt_dir/lib/libqt* > /dev/null 2>/dev/null) ||
382       (ls $bnv_possible_qt_dir/lib64/libqt* > /dev/null 2>/dev/null)); then
383     # Then the rest is a piece of cake
384     bnv_qt_dir=$bnv_possible_qt_dir
385     bnv_qt_bin_dir="$bnv_qt_dir/bin"
386     if test x"$with_Qt_lib_dir" != x; then
387       bnv_qt_lib_dir="$with_Qt_lib_dir"
388     else
389       if (test -d $bnv_qt_dir/lib64); then
390         bnv_qt_lib_dir="$bnv_qt_dir/lib64"
391       else
392         bnv_qt_lib_dir="$bnv_qt_dir/lib"
393       fi
394     fi
395     # Only look for lib if the user did not supply it already
396     if test x"$bnv_qt_lib" = xNO; then
397       bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
398                    sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`"
399     fi
400     bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
401   else
402     # There is no valid definition for $QTDIR as Trolltech likes to see it
403     bnv_qt_dir=
404     ## Look for Qt library ##
405     if test x"$with_Qt_lib_dir" != x; then
406       bnv_qt_lib_dir="$with_Qt_lib_dir"
407       # Only look for lib if the user did not supply it already
408       if test x"$bnv_qt_lib" = xNO; then
409         bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
410                      sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`"
411       fi
412       bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
413     else
414       # Normally, when there is no traditional Trolltech installation,
415       # the library is installed in a place where the linker finds it
416       # automatically.
417       # If the user did not define the library name, try with qt
418       if test x"$bnv_qt_lib" = xNO; then
419         bnv_qt_lib=qt
420       fi
421       qt_direct_test_header=qapplication.h
422       qt_direct_test_main="
423         int argc;
424         char ** argv;
425         QApplication app(argc,argv);
426       "
427       # See if we find the library without any special options.
428       # Don't add top $LIBS permanently yet
429       bnv_save_LIBS="$LIBS"
430       LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
431       bnv_qt_LIBS="$LIBS"
432       bnv_save_CXXFLAGS="$CXXFLAGS"
433       CXXFLAGS="-I$bnv_qt_include_dir"
434       AC_TRY_LINK([#include <$qt_direct_test_header>],
435         $qt_direct_test_main,
436       [
437         # Success.
438         # We can link with no special library directory.
439         bnv_qt_lib_dir=
440       ], [
441         # That did not work. Try the multi-threaded version
442         echo "Non-critical error, please neglect the above." >&AC_FD_CC
443         bnv_qt_lib=qt-mt
444         LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
445         AC_TRY_LINK([#include <$qt_direct_test_header>],
446           $qt_direct_test_main,
447         [
448           # Success.
449           # We can link with no special library directory.
450           bnv_qt_lib_dir=
451         ], [
452           # That did not work. Try the OpenGL version
453           echo "Non-critical error, please neglect the above." >&AC_FD_CC
454           bnv_qt_lib=qt-gl
455           LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
456           AC_TRY_LINK([#include <$qt_direct_test_header>],
457             $qt_direct_test_main,
458           [
459             # Success.
460             # We can link with no special library directory.
461             bnv_qt_lib_dir=
462           ], [
463             # That did not work. Maybe a library version I don't know about?
464             echo "Non-critical error, please neglect the above." >&AC_FD_CC
465             # Look for some Qt lib in a standard set of common directories.
466             bnv_dir_list="
467               `echo $bnv_qt_includes | sed ss/includess`
468               /lib
469               /usr/lib64
470               /usr/lib
471               /usr/local/lib64
472               /usr/local/lib
473               /opt/lib64
474               /opt/lib
475               `ls -dr /usr/lib64/qt* 2>/dev/null`
476               `ls -dr /usr/lib64/qt*/lib64 2>/dev/null`
477               `ls -dr /usr/lib/qt* 2>/dev/null`
478               `ls -dr /usr/local/qt* 2>/dev/null`
479               `ls -dr /opt/qt* 2>/dev/null`
480             "
481             for bnv_dir in $bnv_dir_list; do
482               if ls $bnv_dir/libqt* >/dev/null 2>/dev/null; then
483                 # Gamble that it's the first one...
484                 bnv_qt_lib="`ls $bnv_dir/libqt* | sed -n 1p |
485                             sed s@$bnv_dir/lib@@ | sed s/[[.]].*//`"
486                 bnv_qt_lib_dir="$bnv_dir"
487                 break
488               fi
489             done
490             # Try with that one
491             LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
492             AC_TRY_LINK([#include <$qt_direct_test_header>],
493               $qt_direct_test_main,
494             [
495               # Success.
496               # We can link with no special library directory.
497               bnv_qt_lib_dir=
498             ], [
499               # Leave bnv_qt_lib_dir defined
500             ])
501           ])
502         ])
503       ])
504       if test x"$bnv_qt_lib_dir" != x; then
505         bnv_qt_LIBS="-L$bnv_qt_lib_dir $LIBS"
506       else
507         bnv_qt_LIBS="$LIBS"
508       fi
509       LIBS="$bnv_save_LIBS"
510       CXXFLAGS="$bnv_save_CXXFLAGS"
511     fi dnl $with_Qt_lib_dir was not given
512   fi dnl Done setting up for non-traditional Trolltech installation
513 ])