Ignore:
Timestamp:
Jul 5, 2008, 6:28:30 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Check for FTGL in the configure step, because we will use it later.
  • Better CFLAGS and LDFLAGS propagation to the Makefiles.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r2425 r2517  
    218218    AC_MSG_ERROR([cannot find OpenGL+FreeGLUT development files])
    219219  fi
     220  PKG_CHECK_MODULES(FTGL, ftgl >= 2.1.3, [FTGL="yes"], [FTGL="no"])
     221  AM_CONDITIONAL(USE_FTGL, test "${FTGL}" = "yes")
    220222fi
    221223
     
    306308  CACA_LIBS="${CACA_LIBS} -ldl"
    307309else
    308   CACA_LIBS="${CACA_LIBS} ${X11_LIBS} ${GL_LIBS}"
     310  CACA_CFLAGS="${CACA_CFLAGS} ${X11_CFLAGS} ${GL_CFLAGS} ${FTGL_CFLAGS}"
     311  CACA_LIBS="${CACA_LIBS} ${X11_LIBS} ${GL_LIBS} ${FTGL_LIBS}"
    309312fi
    310313AM_CONDITIONAL(USE_PLUGINS, test "${ac_cv_my_have_plugins}" = "yes")
     
    322325AC_SUBST(ZLIB_LIBS)
    323326AC_SUBST(GETOPT_LIBS)
     327AC_SUBST(CACA_CFLAGS)
    324328AC_SUBST(CACA_LIBS)
     329AC_SUBST(X11_CFLAGS)
    325330AC_SUBST(X11_LIBS)
     331AC_SUBST(GL_CFLAGS)
    326332AC_SUBST(GL_LIBS)
    327333
Note: See TracChangeset for help on using the changeset viewer.