⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.ac

📁 giflib-4.1.6.tar.gz,最新的GIF 解码库
💻 AC
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(giflib, [4.1.6], [abadger1999@sourceforge.net], giflib)AC_CONFIG_SRCDIR([lib/dgif_lib.c])AM_INIT_AUTOMAKE([gnu check-news dist-bzip2 -Wall])AM_CONFIG_HEADER(config.h)dnl Checks for programs.AC_PROG_LIBTOOLAC_PROG_CCAC_PROG_CPPAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_MAKE_SETAM_PROG_CC_C_Odnl Define warnings if we're compiling with gcc.dnl Set it in CFLAGS so the end-user can disable it if they wish.if test "x$GCC" = "xyes" ; then  CFLAGS="$CFLAGS -Wall"fidnl Checks for libraries.AC_CHECK_LIB(m, pow, [MATH_LIB="${MATH_LIB} -lm"		      COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gifclrmp${EXEEXT} gifrotat${EXEEXT}"] )AC_ARG_ENABLE(rle, AC_HELP_STRING([rle],[detect whether we can support conversion to/from rle]),    enable_rle=$enableval, enable_rle=auto)AC_ARG_ENABLE(x11, AC_HELP_STRING([x11],[detect whether we can support conversion directly to X11 Windows]),    enable_x11=$enableval, enable_x11=auto)AC_ARG_ENABLE(gl, AC_HELP_STRING([gl],[detect whether we can support conversion to/from gl]),    enable_gl=$enableval, enable_gl=auto)dnl I don't have this on my system.  Could someone else configure it anddnl check that it works?if test "x$enable_rle" != "xno" ; then  if test ${MATH_LIB}; then    AC_CHECK_HEADERS([rle.h],      AC_CHECK_LIB(rle, rle_hdr_init, [RLE_LIB="${RLE_LIBS} -lrle -lm"                 COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2rle${EXEEXT} rle2gif${EXEEXT}"],                 ,"-lm" ))  fifiif test "x$enable_gl" != "xno" ; then  AC_CHECK_HEADERS([gl/gl.h],    AC_CHECK_LIB(gl_s, main, [GL_S_LIB="${GL_S_LIB} -lgl_s $X_LIBS"                 AC_DEFINE(HAVE_LIBGL_S, [1], [Define if the gl_s library is installed (SGI GL library)])		 COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2iris${EXEEXT}"],, $X_LIBS))fiif test "x$enable_x11" != "xno" ; then  AC_PATH_XTRA  AC_CHECK_HEADERS([X11/Xlib.h X11/Xutil.h],    AC_CHECK_LIB(X11, main, [X11_LIB="${X11_LIB} ${X_PRE_LIBS} $X_LIBS ${X_EXTRA_LIBS} -lX11"                 AC_DEFINE(HAVE_LIBX11, [1], [Define if the X11 library is installed])                 COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2x11${EXEEXT}"],, $X_LIBS))fiDEVS="${GL_S_LIB} ${X11_LIB}" AC_SUBST(DEVS)AC_SUBST(COMPILABLE_EXTRAS)AC_SUBST(GL_S_LIB)AC_SUBST(X11_LIB)AC_SUBST(X_CFLAGS)AC_SUBST(MATH_LIB)AC_SUBST(RLE_LIB)dnl Checks for header files.AC_HEADER_STDCdnl * HEADER_STDC checks for stdargs.h so this is a bit redundant.dnl * The code will prefer stdargs.h if available.dnl   If not available, we will try to fallback to using varargs.hAC_CHECK_HEADERS([stdarg.h varargs.h], break,		 AC_MSG_ERROR([giflib 4.x must have stdarg.h or varargs.h]))AC_CHECK_HEADERS(fcntl.h, ,		 AC_MSG_ERROR([giflib 4.x must have fcntl.h to compile]))dnl Now look for a 32 bit integer typefoundint=noAC_CHECK_TYPES([u_int32_t], [AC_DEFINE([UINT32], u_int32_t,		  [Set to an unsigned 32 bit integer available on this system])                  foundint=yes])if test x$foundint != x'yes'; then  AC_CHECK_TYPES([uint32_t], [AC_DEFINE([UINT32], uint32_t,		  [Set to an unsigned 32 bit integer available on this system])                  foundint=yes]  )fidnl Fall back on trying to find one ourselves by compiling and checking sizes.if test x$foundint != x'yes'; then	AC_CHECK_SIZEOF(unsigned int)	if test $ac_cv_sizeof_unsigned_int -eq 4; then		AC_DEFINE([UINT32], [unsigned int],		  [Set to an unsigned 32 bit integer available on this system])	else		AC_CHECK_SIZEOF(unsigned long)		if test $ac_cv_sizeof_unsigned_long -eq 4; then			AC_DEFINE([UINT32], [unsigned long],		  [Set to an unsigned 32 bit integer available on this system])		else			AC_ERROR("Unable to find a thirty-two bit integer type")		fi	fifidnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTdnl Checks for library functions.AC_FUNC_MEMCMPAC_FUNC_SETVBUF_REVERSEDAC_FUNC_VPRINTFAC_CHECK_FUNCS(strdup)AC_CONFIG_FILES([util/Makefilelib/MakefileMakefiledoc/Makefilepic/Makefile])AC_OUTPUT

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -