Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3100 in orxonox.OLD for orxonox/trunk/configure.ac


Ignore:
Timestamp:
Dec 5, 2004, 2:50:29 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ability to disable GTK with ./configure —disable-gtk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/configure.ac

    r3099 r3100  
    2020AC_PROG_CXX
    2121AC_HEADER_STDC
     22
     23
     24### CHECKING  OPTIONAT ARGUMENTS
     25## GTK-disabled
     26def_gtk=yes
     27AC_MSG_CHECKING([if gtk should be enabled])
     28AC_ARG_ENABLE([gtk],
     29        AC_HELP_STRING( [--disable-gtk],
     30        [Prevents GTK from being loaded]), [def_gtk=no])
     31if test "$def_gtk" = yes; then
     32  echo "yes"
     33fi
     34if test "$def_gtk" = no; then
     35  echo "no"
     36fi
     37
     38
    2239
    2340### CHECKING FOR SYSTEM ###
     
    207224
    208225## checking for GTK
    209 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
    210 AC_MSG_CHECKING([for gtk2.0])
    211 if `pkg-config --exists gtk+-2.0`; then
    212   echo "yes"
    213   have_gtk2=yes
    214   GTK2_LIBS=`pkg-config --libs gtk+-2.0`
    215   GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
    216 else
    217   echo "no"
     226if test "$def_gtk" = yes; then
     227
     228        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
     229        AC_MSG_CHECKING([for gtk2.0])
     230        if `pkg-config --exists gtk+-2.0`; then
     231                echo "yes"
     232                have_gtk2=yes
     233                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
     234                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
     235        else
     236                echo "no"
     237        fi
     238       
    218239fi
    219240AC_SUBST(GTK2_LIBS)
    220241AC_SUBST(GTK2_CFLAGS)
    221 AM_CONDITIONAL(HAVE_GTK2, test "x$have_gtk2" = xyes)
     242AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
     243
    222244
    223245
Note: See TracChangeset for help on using the changeset viewer.