Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4194 in orxonox.OLD for orxonox/branches/openAL/configure.ac


Ignore:
Timestamp:
May 16, 2005, 1:33:19 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/openAL: merged trunk back to openAL
merged with command:

svn merge ../trunk/ openAL/ -r 3920:HEAD

no conflicts at all

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
  • orxonox/branches/openAL/configure.ac

    r3921 r4194  
    2323#########################
    2424AC_PREREQ(2.56)
    25 AC_INIT(orxonox, 0.2.2-pre-alpha, [orxonox-dev at mail.datacore.ch])
     25AC_INIT(orxonox, 0.2.3-pre-alpha, [orxonox-dev at mail.datacore.ch])
    2626
    2727## Detect the canonical host and target build environment.
     
    3939#########################
    4040AC_PROG_CXX
     41AC_PROG_RANLIB
    4142AC_HEADER_STDC
    4243
     
    9697fi
    9798if test x$def_gtk = xno; then
    98   echo "no"
    99 fi
    100 
    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; then
    109   echo "yes"
    110 fi
    111 if test x$def_gthread = xno; then
    112   echo "no"
    113 fi
    114 
    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; then
    123   echo "yes"
    124 fi
    125 if test x$def_pthread = xno; then
    12699  echo "no"
    127100fi
     
    218191#--------------------#
    219192AC_PATH_PROG(GPROF, gprof)
     193
     194#-------------------------#
     195# checking for pkg-config #
     196#-------------------------#
     197if test x$def_gtk = xyes; then
     198 AC_PATH_PROG(PKG_CONFIG, pkg-config)
     199fi
     200
    220201
    221202#########################
     
    482463#-----#
    483464if test x$def_gtk = xyes; then
    484 
    485465        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
    486466        AC_MSG_CHECKING([for gtk2.0])
    487         if `pkg-config --exists gtk+-2.0`; then
     467        if `$PKG_CONFIG --exists gtk+-2.0`; then
    488468                echo "yes"
    489469                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`
    492472                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
    493477        else
    494478                echo "no"
     
    499483AC_SUBST(GTK2_CFLAGS)
    500484AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
    501 
    502 #---------#
    503 # gThread #
    504 #---------#
    505 if test x$def_gthread = xyes; then
    506 
    507         AC_MSG_CHECKING([for gthread])
    508         if `pkg-config --exists gthread-2.0`; then
    509                 echo "yes"
    510                 have_gthread=yes
    511                 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         else
    515                 echo "no"
    516         fi
    517 
    518 fi
    519 AC_SUBST(GTHREAD_LIBS)
    520 AC_SUBST(GTHREAD_CFLAGS)
    521 AM_CONDITIONAL(HAVE_GTHREAD, test x$have_gthread = xyes)
    522485
    523486#---------#
     
    541504AC_SUBST(CURL_CFLAGS)
    542505AM_CONDITIONAL(HAVE_CURL, test x$have_curl = xyes)
    543 
    544 #---------#
    545 # pthread #
    546 #---------#
    547 if test x$def_pthread = xyes ; then
    548  if test x$have_gthread = xyes ; then
    549   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 ; then
    552       LIBS="$LIBS -lpthread"
    553    fi
    554  fi
    555 fi
    556 
    557506
    558507#--------#
Note: See TracChangeset for help on using the changeset viewer.