Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3100 in orxonox.OLD


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

Location:
orxonox/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/Makefile.am

    r2819 r3100  
    1 SUBDIRS = src console gui importer
     1if HAVE_GTK2
     2  GTK_PROGS =gui console
     3else
     4  GTK_PROGS =
     5endif
     6
     7SUBDIRS = src importer $(GTK_PROGS)
  • orxonox/trunk/Makefile.in

    r3099 r3100  
    6060ETAGS = etags
    6161CTAGS = ctags
    62 DIST_SUBDIRS = $(SUBDIRS)
     62DIST_SUBDIRS = src importer gui console
    6363DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    6464distdir = $(PACKAGE)-$(VERSION)
     
    164164target_os = @target_os@
    165165target_vendor = @target_vendor@
    166 SUBDIRS = src console gui importer
     166@HAVE_GTK2_FALSE@GTK_PROGS =
     167@HAVE_GTK2_TRUE@GTK_PROGS = gui console
     168SUBDIRS = src importer $(GTK_PROGS)
    167169all: config.h
    168170        $(MAKE) $(AM_MAKEFLAGS) all-recursive
     
    370372          fi; \
    371373        done
    372         list='$(SUBDIRS)'; for subdir in $$list; do \
     374        list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
    373375          if test "$$subdir" = .; then :; else \
    374376            test -d "$(distdir)/$$subdir" \
  • orxonox/trunk/configure

    r3099 r3100  
    865865  --disable-dependency-tracking  speeds up one-time build
    866866  --enable-dependency-tracking   do not reject slow dependency extractors
     867  --disable-gtk           Prevents GTK from being loaded
    867868
    868869Some influential environment variables:
     
    38303831
    38313832
     3833
     3834### CHECKING  OPTIONAT ARGUMENTS
     3835## GTK-disabled
     3836def_gtk=yes
     3837echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
     3838echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
     3839# Check whether --enable-gtk or --disable-gtk was given.
     3840if test "${enable_gtk+set}" = set; then
     3841  enableval="$enable_gtk"
     3842  def_gtk=no
     3843fi;
     3844if test "$def_gtk" = yes; then
     3845  echo "yes"
     3846fi
     3847if test "$def_gtk" = no; then
     3848  echo "no"
     3849fi
     3850
     3851
     3852
    38323853### CHECKING FOR SYSTEM ###
    38333854
     
    58015822
    58025823## checking for GTK
    5803 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
    5804 echo "$as_me:$LINENO: checking for gtk2.0" >&5
     5824if test "$def_gtk" = yes; then
     5825
     5826        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
     5827        echo "$as_me:$LINENO: checking for gtk2.0" >&5
    58055828echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
    5806 if `pkg-config --exists gtk+-2.0`; then
    5807   echo "yes"
    5808   have_gtk2=yes
    5809   GTK2_LIBS=`pkg-config --libs gtk+-2.0`
    5810   GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
    5811 else
    5812   echo "no"
    5813 fi
    5814 
    5815 
    5816 
    5817 
    5818 if test "x$have_gtk2" = xyes; then
     5829        if `pkg-config --exists gtk+-2.0`; then
     5830                echo "yes"
     5831                have_gtk2=yes
     5832                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
     5833                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
     5834        else
     5835                echo "no"
     5836        fi
     5837
     5838fi
     5839
     5840
     5841
     5842
     5843if test x$have_gtk2 = xyes; then
    58195844  HAVE_GTK2_TRUE=
    58205845  HAVE_GTK2_FALSE='#'
     
    58235848  HAVE_GTK2_FALSE=
    58245849fi
     5850
    58255851
    58265852
  • 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.