Changeset 4194 in orxonox.OLD for orxonox/branches/openAL/configure.ac
- Timestamp:
- May 16, 2005, 1:33:19 PM (19 years ago)
- Location:
- orxonox/branches/openAL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/openAL
- Property svn:externals
-
old new 1 data http://svn.orxonox.ethz.ch/data 1
-
- Property svn:externals
-
orxonox/branches/openAL/configure.ac
r3921 r4194 23 23 ######################### 24 24 AC_PREREQ(2.56) 25 AC_INIT(orxonox, 0.2. 2-pre-alpha, [orxonox-dev at mail.datacore.ch])25 AC_INIT(orxonox, 0.2.3-pre-alpha, [orxonox-dev at mail.datacore.ch]) 26 26 27 27 ## Detect the canonical host and target build environment. … … 39 39 ######################### 40 40 AC_PROG_CXX 41 AC_PROG_RANLIB 41 42 AC_HEADER_STDC 42 43 … … 96 97 fi 97 98 if test x$def_gtk = xno; then 98 echo "no"99 fi100 101 #------------------#102 # gThread-disabled #103 #------------------#104 AC_MSG_CHECKING([if gThread should be enabled])105 AC_ARG_WITH([gthread],106 AC_HELP_STRING( [--without-gthread],107 [Prevents gThread from being loaded]), [def_gthread=no], [def_gthread=yes])108 if test x$def_gthread = xyes; then109 echo "yes"110 fi111 if test x$def_gthread = xno; then112 echo "no"113 fi114 115 #------------------#116 # pthread-disabled #117 #------------------#118 AC_MSG_CHECKING([if pthread should be enabled])119 AC_ARG_WITH([pthread],120 AC_HELP_STRING( [--without-pthread],121 [Prevents pthread from being loaded]), [def_pthread=no], [def_pthread=yes])122 if test x$def_pthread = xyes; then123 echo "yes"124 fi125 if test x$def_pthread = xno; then126 99 echo "no" 127 100 fi … … 218 191 #--------------------# 219 192 AC_PATH_PROG(GPROF, gprof) 193 194 #-------------------------# 195 # checking for pkg-config # 196 #-------------------------# 197 if test x$def_gtk = xyes; then 198 AC_PATH_PROG(PKG_CONFIG, pkg-config) 199 fi 200 220 201 221 202 ######################### … … 482 463 #-----# 483 464 if test x$def_gtk = xyes; then 484 485 465 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 486 466 AC_MSG_CHECKING([for gtk2.0]) 487 if ` pkg-config--exists gtk+-2.0`; then467 if `$PKG_CONFIG --exists gtk+-2.0`; then 488 468 echo "yes" 489 469 have_gtk2=yes 490 GTK2_LIBS=` pkg-config--libs gtk+-2.0`491 GTK2_CFLAGS=` pkg-config--cflags gtk+-2.0`470 GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 471 GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 492 472 AC_DEFINE_UNQUOTED(HAVE_GTK2, 1, [if we have GTK2]) 473 if test $DEBUG -ge 3; then 474 echo "cflags: $GTK2_CFLAGS" 475 echo "libs: $GTK2_LIBS" 476 fi 493 477 else 494 478 echo "no" … … 499 483 AC_SUBST(GTK2_CFLAGS) 500 484 AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes) 501 502 #---------#503 # gThread #504 #---------#505 if test x$def_gthread = xyes; then506 507 AC_MSG_CHECKING([for gthread])508 if `pkg-config --exists gthread-2.0`; then509 echo "yes"510 have_gthread=yes511 GTHREAD_LIBS=`pkg-config --libs gthread-2.0`512 GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`513 AC_DEFINE_UNQUOTED(HAVE_GTHREAD, 1, [if we have gThread])514 else515 echo "no"516 fi517 518 fi519 AC_SUBST(GTHREAD_LIBS)520 AC_SUBST(GTHREAD_CFLAGS)521 AM_CONDITIONAL(HAVE_GTHREAD, test x$have_gthread = xyes)522 485 523 486 #---------# … … 541 504 AC_SUBST(CURL_CFLAGS) 542 505 AM_CONDITIONAL(HAVE_CURL, test x$have_curl = xyes) 543 544 #---------#545 # pthread #546 #---------#547 if test x$def_pthread = xyes ; then548 if test x$have_gthread = xyes ; then549 AC_CHECK_HEADERS([pthread.h], [pthreadHeader="yes"], [pthreadHeader="no"])550 AC_CHECK_LIB([pthread], [main], [FOUND_pthread=yes])551 if test x$FOUND_pthread = xyes ; then552 LIBS="$LIBS -lpthread"553 fi554 fi555 fi556 557 506 558 507 #--------#
Note: See TracChangeset
for help on using the changeset viewer.