Changeset 623 for trunk/configure.ac
- Timestamp:
- Feb 9, 2011, 3:20:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r421 r623 23 23 AC_C_INLINE 24 24 25 dnl Ensure an error is thrown if pkg-config M4 files are not found. 26 m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) 27 m4_pattern_forbid([^PKG_CHECK_MODULES$]) 28 m4_pattern_forbid([^PKG_PROG_PKG_CONFIG$]) 29 30 dnl Do not use PKG_CONFIG_LIBDIR when cross-compiling. 31 if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then 32 export PKG_CONFIG_LIBDIR=/dev/null 33 fi 34 25 35 dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right 26 36 dnl now otherwise it might be set in an obscure if statement. Same thing for … … 28 38 AC_EGREP_CPP(yes, foo) 29 39 PKG_PROG_PKG_CONFIG() 30 m4_pattern_allow([^PKG_CONFIG_LIBDIR$])31 if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then32 export PKG_CONFIG_LIBDIR=/dev/null33 fi34 40 35 41 dnl conditional builds … … 74 80 75 81 76 #Use libcaca? (required for font generation)82 dnl Use libcaca? (required for font generation) 77 83 ac_cv_my_have_caca="no" 78 84 PKG_CHECK_MODULES(CACA, caca >= 0.99.beta17, [ac_cv_my_have_caca="yes"], [:]) … … 83 89 84 90 85 #Use libpipi? (required for video recording)91 dnl Use libpipi? (required for video recording) 86 92 ac_cv_my_have_pipi="no" 87 93 PKG_CHECK_MODULES(PIPI, pipi, [ac_cv_my_have_pipi="yes"], [:]) … … 92 98 93 99 100 dnl Use GTK+? (required for the deushax editor) 101 GTK_CFLAGS="$GTK_CFLAGS `pkg-config --cflags gtk+-2.0 gtkgl-2.0`" 102 GTK_LIBS="$GTK_LIBS `pkg-config --libs gtk+-2.0 gtkgl-2.0`" 103 94 104 # How to use the Lol Engine inside this tree 95 LOL_CFLAGS=" -I \$(top_srcdir)/src `pkg-config --cflags sdl gl SDL_image`"96 LOL_LIBS=" `pkg-config --libs sdl gl SDL_image` -lSDL_mixer"105 LOL_CFLAGS="$LOL_CFLAGS -I \$(top_srcdir)/src `pkg-config --cflags sdl gl SDL_image`" 106 LOL_LIBS="$LOL_LIBS `pkg-config --libs sdl gl SDL_image` -lSDL_mixer" 97 107 98 108 if test "${enable_release}" = "yes"; then … … 101 111 102 112 AC_SUBST(MATH_LIBS) 113 AC_SUBST(GTK_CFLAGS) 114 AC_SUBST(GTK_LIBS) 103 115 AC_SUBST(LOL_CFLAGS) 104 116 AC_SUBST(LOL_LIBS)
Note: See TracChangeset
for help on using the changeset viewer.