📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(TestVideo.c)dnl Setup for automakeAM_INIT_AUTOMAKE(TestVideo, 1.0)dnl SDL version requiredSDL_VERSION=1.2.0dnl Setup for automakednl Detect the canonical host and target build environmentAC_CANONICAL_HOSTAC_CANONICAL_TARGETdnl Check for compilersAC_LIBTOOL_WIN32_DLLAM_PROG_LIBTOOLAC_PROG_MAKE_SETAC_PROG_CCAC_PROG_CXXAC_PROG_INSTALLdnl Check for compiler environmentAC_C_CONSTdnl Set for C compiler by defaultAC_LANG_Cdnl Setup target flagswcase "$target" in *-*-cygwin* | *-*-mingw32*) CFLAGS="$CFLAGS -DWIN32" if test "$build" != "$target"; then # cross-compiling ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc fi ;; *) dnl nothing to do ;;esacdnl Figure out which math library to usecase "$target" in *-*-cygwin* | *-*-mingw32*) MATHLIB="" ;; *-*-beos*) MATHLIB="" ;; *-*-darwin*) MATHLIB="" ;; *-*-aix*) MATHLIB="-lm" if test x$ac_cv_prog_gcc = xyes; then CFLAGS="-mthreads" fi ;; *) MATHLIB="-lm" ;;esacAC_SUBST(MATHLIB)LIBS="$LIBS $MATHLIB"dnl Check for SDLAM_PATH_SDL($SDL_VERSION, :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))CFLAGS="$CFLAGS $SDL_CFLAGS"LIBS="$LIBS $SDL_LIBS"dnl Check for the SDL_bgrab libhave_sdlbgrab=noAC_CHECK_LIB(SDL_bgrab, bgrabOpen , have_sdlbgrab=yes)if test x$have_sdlbgrab = xyes; then LIBS="$LIBS -lSDL_bgrab"else AC_MSG_ERROR([*** Unable to find SDL_bgrab library])fi# Finally create all the generated filesAC_OUTPUT([Makefile])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -