Changeset 3100 in orxonox.OLD for orxonox/trunk/configure.ac
- Timestamp:
- Dec 5, 2004, 2:50:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure.ac
r3099 r3100 20 20 AC_PROG_CXX 21 21 AC_HEADER_STDC 22 23 24 ### CHECKING OPTIONAT ARGUMENTS 25 ## GTK-disabled 26 def_gtk=yes 27 AC_MSG_CHECKING([if gtk should be enabled]) 28 AC_ARG_ENABLE([gtk], 29 AC_HELP_STRING( [--disable-gtk], 30 [Prevents GTK from being loaded]), [def_gtk=no]) 31 if test "$def_gtk" = yes; then 32 echo "yes" 33 fi 34 if test "$def_gtk" = no; then 35 echo "no" 36 fi 37 38 22 39 23 40 ### CHECKING FOR SYSTEM ### … … 207 224 208 225 ## 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" 226 if 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 218 239 fi 219 240 AC_SUBST(GTK2_LIBS) 220 241 AC_SUBST(GTK2_CFLAGS) 221 AM_CONDITIONAL(HAVE_GTK2, test "x$have_gtk2" = xyes) 242 AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes) 243 222 244 223 245
Note: See TracChangeset
for help on using the changeset viewer.