Changeset 7142 in orxonox.OLD for branches/qt_gui
- Timestamp:
- Feb 14, 2006, 7:11:45 PM (19 years ago)
- Location:
- branches/qt_gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/acinclude.m4
r6274 r7142 44 44 fi 45 45 ]) 46 47 48 49 dnl AX_CHECK_REQUIRED_LIB([LIBRARY-NAME], [FUNCTION-IN-LIB], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [LIB-WEB-PAGE]) 50 AC_DEFUN([AX_CHECK_REQUIRED_LIB], [ 51 _lib_check="" 52 _found_lib="" 53 54 55 for _lib in $1 56 do 57 AC_CHECK_LIB([$_lib], [$2], [_lib_check="yes"], [_lib_check="no"]) 58 if test "x$_lib_check" = "xyes" ; then 59 _found_lib=$_lib 60 break 61 fi 62 done 63 64 if [test "x$_lib_check" = "xyes"] ; then 65 LIBS="$LIBS -l$_found_lib" 66 $3 67 else 68 echo "------------------" 69 echo "LIBRARY $1 not found." 70 echo "please install the $1-LIBRARY-package which can be found at $5" 71 echo "------------------" 72 $4 73 exit -1 74 fi 75 ]) 76 77 78 79 80 dnl Copyright (C) 2001, 2002, 2003, 2005, 2006 Bastiaan Veelo 81 82 dnl THANKS! This code includes bug fixes and contributions made by: 83 dnl Tim McClarren, 84 dnl Dennis R. Weilert, 85 dnl Qingning Huo, 86 dnl Brian Mingus, 87 dnl Jens Hannemann, 88 dnl Pavel Roskin. 89 90 dnl ChangeLog 91 dnl 2006-02-13 * Check compiler return value instead of parsing the error stream, 92 dnl which detected warnings as false negatives (due to Jens Hannemann). 93 dnl 2006-02-02 * Spelling of "Success". 94 dnl * Fixed unsave test for $bnv_qt_lib without quotes. 95 dnl * Put dnl in front of all comments. 96 dnl * Changed -l$bnv_qt_lib_dir into -L$bnv_qt_lib_dir (all due to Pavel Roskin). 97 dnl 2006-01-19 * Support for 64bit architectures. 98 dnl * Updated documentation. 99 dnl 2006-01-18: * Fix "cat: bnv_qt_test.c: No such file or directory" (due to Jens Hannemann). 100 dnl * Hide output of failing ls. 101 dnl 2006-01-11: * Check in /Developer on Mac OS X; Check in $QTDIR (due to Brian Mingus). 102 103 dnl Calls BNV_PATH_QT_DIRECT (contained in this file) as a subroutine. 104 AC_DEFUN([BNV_HAVE_QT], 105 [ 106 AC_REQUIRE([AC_PROG_CXX]) 107 AC_REQUIRE([AC_PATH_X]) 108 AC_REQUIRE([AC_PATH_XTRA]) 109 110 AC_MSG_CHECKING(for Qt) 111 112 AC_ARG_WITH([Qt-dir], 113 [ --with-Qt-dir=DIR DIR is equal to $QTDIR if you have followed the 114 installation instructions of Trolltech. Header 115 files are in DIR/include, binary utilities are 116 in DIR/bin. The library is in DIR/lib, unless 117 --with-Qt-lib-dir is also set.]) 118 AC_ARG_WITH([Qt-include-dir], 119 [ --with-Qt-include-dir=DIR 120 Qt header files are in DIR]) 121 AC_ARG_WITH([Qt-bin-dir], 122 [ --with-Qt-bin-dir=DIR Qt utilities such as moc and uic are in DIR]) 123 AC_ARG_WITH([Qt-lib-dir], 124 [ --with-Qt-lib-dir=DIR The Qt library is in DIR]) 125 AC_ARG_WITH([Qt-lib], 126 [ --with-Qt-lib=LIB Use -lLIB to link with the Qt library]) 127 if test x"$with_Qt_dir" = x"no" || 128 test x"$with_Qt_include-dir" = x"no" || 129 test x"$with_Qt_bin_dir" = x"no" || 130 test x"$with_Qt_lib_dir" = x"no" || 131 test x"$with_Qt_lib" = x"no"; then 132 # user disabled Qt. Leave cache alone. 133 have_qt="User disabled Qt." 134 else 135 # "yes" is a bogus option 136 if test x"$with_Qt_dir" = xyes; then 137 with_Qt_dir= 138 fi 139 if test x"$with_Qt_include_dir" = xyes; then 140 with_Qt_include_dir= 141 fi 142 if test x"$with_Qt_bin_dir" = xyes; then 143 with_Qt_bin_dir= 144 fi 145 if test x"$with_Qt_lib_dir" = xyes; then 146 with_Qt_lib_dir= 147 fi 148 if test x"$with_Qt_lib" = xyes; then 149 with_Qt_lib= 150 fi 151 # No Qt unless we discover otherwise 152 have_qt=no 153 # Check whether we are requested to link with a specific version 154 if test x"$with_Qt_lib" != x; then 155 bnv_qt_lib="$with_Qt_lib" 156 fi 157 # Check whether we were supplied with an answer already 158 if test x"$with_Qt_dir" != x; then 159 have_qt=yes 160 bnv_qt_dir="$with_Qt_dir" 161 bnv_qt_include_dir="$with_Qt_dir/include" 162 bnv_qt_bin_dir="$with_Qt_dir/bin" 163 bnv_qt_lib_dir="$with_Qt_dir/lib" 164 # Only search for the lib if the user did not define one already 165 if test x"$bnv_qt_lib" = x; then 166 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p | 167 sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`" 168 fi 169 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" 170 else 171 # Use cached value or do search, starting with suggestions from 172 # the command line 173 AC_CACHE_VAL(bnv_cv_have_qt, 174 [ 175 # We are not given a solution and there is no cached value. 176 bnv_qt_dir=NO 177 bnv_qt_include_dir=NO 178 bnv_qt_lib_dir=NO 179 if test x"$bnv_qt_lib" = x; then 180 bnv_qt_lib=NO 181 fi 182 BNV_PATH_QT_DIRECT 183 if test "$bnv_qt_dir" = NO || 184 test "$bnv_qt_include_dir" = NO || 185 test "$bnv_qt_lib_dir" = NO || 186 test "$bnv_qt_lib" = NO; then 187 # Problem with finding complete Qt. Cache the known absence of Qt. 188 bnv_cv_have_qt="have_qt=no" 189 else 190 # Record where we found Qt for the cache. 191 bnv_cv_have_qt="have_qt=yes \ 192 bnv_qt_dir=$bnv_qt_dir \ 193 bnv_qt_include_dir=$bnv_qt_include_dir \ 194 bnv_qt_bin_dir=$bnv_qt_bin_dir \ 195 bnv_qt_LIBS=\"$bnv_qt_LIBS\"" 196 fi 197 ])dnl 198 eval "$bnv_cv_have_qt" 199 fi # all $bnv_qt_* are set 200 fi # $have_qt reflects the system status 201 if test x"$have_qt" = xyes; then 202 QT_CXXFLAGS="-I$bnv_qt_include_dir" 203 if test x"$bnv_qt_lib" = xqt-mt; then 204 QT_CXXFLAGS="$QT_CXXFLAGS -DQT_THREAD_SUPPORT" 205 fi 206 QT_DIR="$bnv_qt_dir" 207 QT_LIBS="$bnv_qt_LIBS" 208 # If bnv_qt_dir is defined, utilities are expected to be in the 209 # bin subdirectory 210 if test x"$bnv_qt_dir" != x; then 211 if test -x "$bnv_qt_dir/bin/uic"; then 212 QT_UIC="$bnv_qt_dir/bin/uic" 213 else 214 # Old versions of Qt don't have uic 215 QT_UIC= 216 fi 217 QT_MOC="$bnv_qt_dir/bin/moc" 218 else 219 # Or maybe we are told where to look for the utilities 220 if test x"$bnv_qt_bin_dir" != x; then 221 if test -x "$bnv_qt_bin_dir/uic"; then 222 QT_UIC="$bnv_qt_bin_dir/uic" 223 else 224 # Old versions of Qt don't have uic 225 QT_UIC= 226 fi 227 QT_MOC="$bnv_qt_bin_dir/moc" 228 else 229 # Last possibility is that they are in $PATH 230 QT_UIC="`which uic`" 231 QT_MOC="`which moc`" 232 fi 233 fi 234 # All variables are defined, report the result 235 AC_MSG_RESULT([$have_qt: 236 QT_CXXFLAGS=$QT_CXXFLAGS 237 QT_DIR=$QT_DIR 238 QT_LIBS=$QT_LIBS 239 QT_UIC=$QT_UIC 240 QT_MOC=$QT_MOC]) 241 else 242 # Qt was not found 243 QT_CXXFLAGS= 244 QT_DIR= 245 QT_LIBS= 246 QT_UIC= 247 QT_MOC= 248 AC_MSG_RESULT($have_qt) 249 fi 250 AC_SUBST(QT_CXXFLAGS) 251 AC_SUBST(QT_DIR) 252 AC_SUBST(QT_LIBS) 253 AC_SUBST(QT_UIC) 254 AC_SUBST(QT_MOC) 255 256 #### Being paranoid: 257 if test x"$have_qt" = xyes; then 258 AC_MSG_CHECKING(correct functioning of Qt installation) 259 AC_CACHE_VAL(bnv_cv_qt_test_result, 260 [ 261 cat > bnv_qt_test.h << EOF 262 #include <qobject.h> 263 class Test : public QObject 264 { 265 Q_OBJECT 266 public: 267 Test() {} 268 ~Test() {} 269 public slots: 270 void receive() {} 271 signals: 272 void send(); 273 }; 274 EOF 275 276 cat > bnv_qt_main.$ac_ext << EOF 277 #include "bnv_qt_test.h" 278 #include <qapplication.h> 279 int main( int argc, char **argv ) 280 { 281 QApplication app( argc, argv ); 282 Test t; 283 QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) ); 284 } 285 EOF 286 287 bnv_cv_qt_test_result="failure" 288 bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null" 289 AC_TRY_EVAL(bnv_try_1) 290 if test x"$ac_status" != x0; then 291 echo "$bnv_err_1" >&AC_FD_CC 292 echo "configure: could not run $QT_MOC on:" >&AC_FD_CC 293 cat bnv_qt_test.h >&AC_FD_CC 294 else 295 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" 296 AC_TRY_EVAL(bnv_try_2) 297 if test x"$ac_status" != x0; then 298 echo "$bnv_err_2" >&AC_FD_CC 299 echo "configure: could not compile:" >&AC_FD_CC 300 cat moc_bnv_qt_test.$ac_ext >&AC_FD_CC 301 else 302 bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>/dev/null" 303 AC_TRY_EVAL(bnv_try_3) 304 if test x"$ac_status" != x0; then 305 echo "$bnv_err_3" >&AC_FD_CC 306 echo "configure: could not compile:" >&AC_FD_CC 307 cat bnv_qt_main.$ac_ext >&AC_FD_CC 308 else 309 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" 310 AC_TRY_EVAL(bnv_try_4) 311 if test x"$ac_status" != x0; then 312 echo "$bnv_err_4" >&AC_FD_CC 313 else 314 bnv_cv_qt_test_result="success" 315 fi 316 fi 317 fi 318 fi 319 ])dnl AC_CACHE_VAL bnv_cv_qt_test_result 320 AC_MSG_RESULT([$bnv_cv_qt_test_result]); 321 if test x"$bnv_cv_qt_test_result" = "xfailure"; then 322 AC_MSG_ERROR([Failed to find matching components of a complete 323 Qt installation. Try using more options, 324 see ./configure --help.]) 325 fi 326 327 rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \ 328 bnv_qt_main.$ac_ext bnv_qt_main.o bnv_qt_main 329 fi 330 ]) 331 332 dnl Internal subroutine of BNV_HAVE_QT 333 dnl Set bnv_qt_dir bnv_qt_include_dir bnv_qt_bin_dir bnv_qt_lib_dir bnv_qt_lib 334 AC_DEFUN([BNV_PATH_QT_DIRECT], 335 [ 336 ## Binary utilities ## 337 if test x"$with_Qt_bin_dir" != x; then 338 bnv_qt_bin_dir=$with_Qt_bin_dir 339 fi 340 ## Look for header files ## 341 if test x"$with_Qt_include_dir" != x; then 342 bnv_qt_include_dir="$with_Qt_include_dir" 343 else 344 # The following header file is expected to define QT_VERSION. 345 qt_direct_test_header=qglobal.h 346 # Look for the header file in a standard set of common directories. 347 bnv_include_path_list=" 348 /usr/include 349 `ls -dr ${QTDIR}/include 2>/dev/null` 350 `ls -dr /usr/include/qt* 2>/dev/null` 351 `ls -dr /usr/lib/qt*/include 2>/dev/null` 352 `ls -dr /usr/local/qt*/include 2>/dev/null` 353 `ls -dr /opt/qt*/include 2>/dev/null` 354 `ls -dr /Developer/qt*/include 2>/dev/null` 355 " 356 for bnv_dir in $bnv_include_path_list; do 357 if test -r "$bnv_dir/$qt_direct_test_header"; then 358 bnv_dirs="$bnv_dirs $bnv_dir" 359 fi 360 done 361 # Now look for the newest in this list 362 bnv_prev_ver=0 363 for bnv_dir in $bnv_dirs; do 364 bnv_this_ver=`egrep -w '#define QT_VERSION' $bnv_dir/$qt_direct_test_header | sed s/'#define QT_VERSION'//` 365 if expr $bnv_this_ver '>' $bnv_prev_ver > /dev/null; then 366 bnv_qt_include_dir=$bnv_dir 367 bnv_prev_ver=$bnv_this_ver 368 fi 369 done 370 fi dnl Found header files. 371 372 # Are these headers located in a traditional Trolltech installation? 373 # That would be $bnv_qt_include_dir stripped from its last element: 374 bnv_possible_qt_dir=`dirname $bnv_qt_include_dir` 375 if (test -x $bnv_possible_qt_dir/bin/moc) && 376 ((ls $bnv_possible_qt_dir/lib/libqt* > /dev/null 2>/dev/null) || 377 (ls $bnv_possible_qt_dir/lib64/libqt* > /dev/null 2>/dev/null)); then 378 # Then the rest is a piece of cake 379 bnv_qt_dir=$bnv_possible_qt_dir 380 bnv_qt_bin_dir="$bnv_qt_dir/bin" 381 if test x"$with_Qt_lib_dir" != x; then 382 bnv_qt_lib_dir="$with_Qt_lib_dir" 383 else 384 if (test -d $bnv_qt_dir/lib64); then 385 bnv_qt_lib_dir="$bnv_qt_dir/lib64" 386 else 387 bnv_qt_lib_dir="$bnv_qt_dir/lib" 388 fi 389 fi 390 # Only look for lib if the user did not supply it already 391 if test x"$bnv_qt_lib" = xNO; then 392 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p | 393 sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`" 394 fi 395 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" 396 else 397 # There is no valid definition for $QTDIR as Trolltech likes to see it 398 bnv_qt_dir= 399 ## Look for Qt library ## 400 if test x"$with_Qt_lib_dir" != x; then 401 bnv_qt_lib_dir="$with_Qt_lib_dir" 402 # Only look for lib if the user did not supply it already 403 if test x"$bnv_qt_lib" = xNO; then 404 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p | 405 sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`" 406 fi 407 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" 408 else 409 # Normally, when there is no traditional Trolltech installation, 410 # the library is installed in a place where the linker finds it 411 # automatically. 412 # If the user did not define the library name, try with qt 413 if test x"$bnv_qt_lib" = xNO; then 414 bnv_qt_lib=qt 415 fi 416 qt_direct_test_header=qapplication.h 417 qt_direct_test_main=" 418 int argc; 419 char ** argv; 420 QApplication app(argc,argv); 421 " 422 # See if we find the library without any special options. 423 # Don't add top $LIBS permanently yet 424 bnv_save_LIBS="$LIBS" 425 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" 426 bnv_qt_LIBS="$LIBS" 427 bnv_save_CXXFLAGS="$CXXFLAGS" 428 CXXFLAGS="-I$bnv_qt_include_dir" 429 AC_TRY_LINK([#include <$qt_direct_test_header>], 430 $qt_direct_test_main, 431 [ 432 # Success. 433 # We can link with no special library directory. 434 bnv_qt_lib_dir= 435 ], [ 436 # That did not work. Try the multi-threaded version 437 echo "Non-critical error, please neglect the above." >&AC_FD_CC 438 bnv_qt_lib=qt-mt 439 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" 440 AC_TRY_LINK([#include <$qt_direct_test_header>], 441 $qt_direct_test_main, 442 [ 443 # Success. 444 # We can link with no special library directory. 445 bnv_qt_lib_dir= 446 ], [ 447 # That did not work. Try the OpenGL version 448 echo "Non-critical error, please neglect the above." >&AC_FD_CC 449 bnv_qt_lib=qt-gl 450 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" 451 AC_TRY_LINK([#include <$qt_direct_test_header>], 452 $qt_direct_test_main, 453 [ 454 # Success. 455 # We can link with no special library directory. 456 bnv_qt_lib_dir= 457 ], [ 458 # That did not work. Maybe a library version I don't know about? 459 echo "Non-critical error, please neglect the above." >&AC_FD_CC 460 # Look for some Qt lib in a standard set of common directories. 461 bnv_dir_list=" 462 `echo $bnv_qt_includes | sed ss/includess` 463 /lib 464 /usr/lib64 465 /usr/lib 466 /usr/local/lib64 467 /usr/local/lib 468 /opt/lib64 469 /opt/lib 470 `ls -dr /usr/lib64/qt* 2>/dev/null` 471 `ls -dr /usr/lib64/qt*/lib64 2>/dev/null` 472 `ls -dr /usr/lib/qt* 2>/dev/null` 473 `ls -dr /usr/local/qt* 2>/dev/null` 474 `ls -dr /opt/qt* 2>/dev/null` 475 " 476 for bnv_dir in $bnv_dir_list; do 477 if ls $bnv_dir/libqt* 2>/dev/null; then 478 # Gamble that it's the first one... 479 bnv_qt_lib="`ls $bnv_dir/libqt* | sed -n 1p | 480 sed s@$bnv_dir/lib@@ | sed s/[.].*//`" 481 bnv_qt_lib_dir="$bnv_dir" 482 break 483 fi 484 done 485 # Try with that one 486 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" 487 AC_TRY_LINK([#include <$qt_direct_test_header>], 488 $qt_direct_test_main, 489 [ 490 # Success. 491 # We can link with no special library directory. 492 bnv_qt_lib_dir= 493 ], [ 494 # Leave bnv_qt_lib_dir defined 495 ]) 496 ]) 497 ]) 498 ]) 499 if test x"$bnv_qt_lib_dir" != x; then 500 bnv_qt_LIBS="-L$bnv_qt_lib_dir $LIBS" 501 else 502 bnv_qt_LIBS="$LIBS" 503 fi 504 LIBS="$bnv_save_LIBS" 505 CXXFLAGS="$bnv_save_CXXFLAGS" 506 fi dnl $with_Qt_lib_dir was not given 507 fi dnl Done setting up for non-traditional Trolltech installation 508 ]) 509 -
branches/qt_gui/config.h.in
r6838 r7142 119 119 #undef VERSION 120 120 121 /* Define to 1 if the X Window System is missing or not being used. */ 122 #undef X_DISPLAY_MISSING 123 121 124 /* Define to rpl_malloc if the replacement function should be used. */ 122 125 #undef malloc -
branches/qt_gui/configure.ac
r7140 r7142 105 105 fi 106 106 fi 107 108 if test $DEBUD > 3 ; then 109 CPPFLAGS="${CPPFLAGS} -g" 110 fi 107 111 AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are]) 108 112 AC_SUBST(DEBUG) … … 124 128 fi 125 129 126 #--------------#127 # GTK-disabled #128 #--------------#129 AC_MSG_CHECKING([if gtk should be enabled])130 AC_ARG_ENABLE([gtk],131 AS_HELP_STRING(--disable-gtk,Prevents GTK from being loaded), [def_gtk=no], [def_gtk=yes])132 if test x$def_gtk = xyes; then133 echo "yes"134 fi135 if test x$def_gtk = xno; then136 echo "no"137 fi138 130 139 131 #------------------# … … 149 141 echo "no" 150 142 fi 143 144 145 #-------------# 146 # with-qt-dir # 147 #-------------# 148 WITH_QT=yes 149 AC_MSG_CHECKING([if we use QT for the gui]) 150 AC_ARG_WITH([modular-debug], 151 AS_HELP_STRING([--without-qt], [does not use QT for the display of the GUI]), 152 WITH_QT=$enableval) 153 154 if test x$WITH_QT = xno; then 155 echo "no" 156 elif test x$WITH_QT = xyes; then 157 echo "yes" 158 BNV_HAVE_QT 159 if test x$have_qt = xno ; then 160 WITH_QT=no 161 fi 162 fi 163 AM_CONDITIONAL([WITH_QT], [test x$WITH_QT = xyes]) 164 165 #--------------# 166 # GTK-disabled # 167 #--------------# 168 169 AC_MSG_CHECKING([if gtk should be enabled]) 170 AC_ARG_WITH([gtk], 171 AS_HELP_STRING(--with-gtk, uses GTK for the GUI), [def_gtk=yes], [def_gtk=no]) 172 if test x$def_gtk = xyes; then 173 echo "yes" 174 fi 175 if test x$def_gtk = xno; then 176 echo "no" 177 fi 178 179 151 180 152 181 #-------------------# … … 208 237 fi 209 238 AM_CONDITIONAL(DOCUMENTATION, test x$def_documentation = xyes) 210 211 212 239 213 240 #---------------------------# … … 270 297 ## also checking for SDL on differen Systems 271 298 272 CPPFLAGS="$CPPFLAGS -g"273 274 275 299 AC_MSG_CHECKING([for System]) 276 300 ## checking for openGL-environment and other sys-specific parameters … … 553 577 AX_CHECK_REQUIRED_HEADER_LIB([ogg/ogg.h], [ogg], [main],,, [http://www.xiph.org/ogg/vorbis/index.html]) 554 578 555 556 #---------#557 # libcURL #558 #---------#559 AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [560 have_curl=yes561 CURL_LIBS=`curl-config --libs`562 CURLCFLAGS=`curl-config --cflags`563 AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL]) ]564 ,, [http://curl.haxx.se/])565 566 AC_SUBST(CURL_LIBS)567 AC_SUBST(CURL_CFLAGS)568 AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes")569 570 #--------#571 # efence #572 #--------#573 if test x$def_efence = xyes ; then574 AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])575 if test x$FOUND_efence != xyes ; then576 echo "efence was requested, but is not installed!! going on"577 fi578 579 fi580 579 581 580 #-----# … … 604 603 AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes) 605 604 605 606 #---------# 607 # libcURL # 608 #---------# 609 AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [ 610 have_curl=yes 611 CURL_LIBS=`curl-config --libs` 612 CURLCFLAGS=`curl-config --cflags` 613 AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL]) ] 614 ,, [http://curl.haxx.se/]) 615 616 AC_SUBST(CURL_LIBS) 617 AC_SUBST(CURL_CFLAGS) 618 AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes") 619 620 #--------# 621 # efence # 622 #--------# 623 if test x$def_efence = xyes ; then 624 AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"]) 625 if test x$FOUND_efence != xyes ; then 626 echo "efence was requested, but is not installed!! going on" 627 fi 628 629 fi 606 630 607 631 # FIXME: Replace `main' with a function in `-lm': -
branches/qt_gui/src/lib/gui/qt_gui/Makefile.am
r7140 r7142 7 7 8 8 9 libORXqtgui_a_CPPFLAGS = -DBUILD_ORXONOX 9 libORXqtgui_a_CPPFLAGS = \ 10 @QT_CXXFLAGS@ \ 11 -DBUILD_ORXONOX 10 12 11 13 -
branches/qt_gui/src/lib/gui/qt_gui/qt_gui.h
r7140 r7142 8 8 9 9 #include "base_object.h" 10 #include < QtGui/qpushbutton.h>11 #include < QtGui/qcheckbox>12 #include < QtGui/qslider>10 #include <qpushbutton.h> 11 #include <qcheckbox.h> 12 #include <qslider.h> 13 13 14 14
Note: See TracChangeset
for help on using the changeset viewer.