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

📄 gnome-x-checks.m4

📁 gnome/gtk+编程宝典的源代码.
💻 M4
字号:
dnl GNOME_X_CHECKSdnldnl Basic X11 related checks for X11.  At the end, the following will bednl defined/changed:dnl   GTK_{CFLAGS,LIBS}      From AM_PATH_GTKdnl   CPPFLAGS		     Will include $X_CFLAGSdnl   GNOME_HAVE_SM	     `true' or `false' depending on whether sessiondnl                          management is available.  It is available ifdnl                          both -lSM and X11/SM/SMlib.h exist.  (Somednl                          Solaris boxes have the library but not the header)dnl   XPM_LIBS               -lXpm if Xpm library is present, otherwise ""dnldnl The following configure cache variables are defined (but not used):dnl   gnome_cv_passdown_{x_libs,X_LIBS,X_CFLAGS}dnlAC_DEFUN([GNOME_X_CHECKS],[	AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(GTK not installed, or gtk-config not in path))	dnl Hope that GTK_CFLAGS have only -I and -D.  Otherwise, we could	dnl   test -z "$x_includes" || CPPFLAGS="$CPPFLAGS -I$x_includes"	dnl	dnl Use CPPFLAGS instead of CFLAGS because AC_CHECK_HEADERS uses	dnl CPPFLAGS, not CFLAGS        CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"        saved_ldflags="$LDFLAGS"        LDFLAGS="$LDFLAGS $GTK_LIBS"	gnome_cv_passdown_x_libs="$GTK_LIBS"	gnome_cv_passdown_X_LIBS="$GTK_LIBS"	gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"	gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"        LDFLAGS="$saved_ldflags $GTK_LIBS"dnl We are requiring GTK >= 1.1.1, which means this will be fine anyhow.	USE_DEVGTK=truednl	AC_MSG_CHECKING([whether to use features from (unstable) GTK+ 1.1.x])dnl	AC_EGREP_CPP(answer_affirmatively,dnl	[#include <gtk/gtkfeatures.h>dnl	#ifdef GTK_HAVE_FEATURES_1_1_0dnl	   answer_affirmativelydnl	#endifdnl	], dev_gtk=yes, dev_gtk=no)dnl	if test "$dev_gtk" = "yes"; thendnl	   USE_DEVGTK=truednl	fidnl	AC_MSG_RESULT("$dev_gtk")	GNOME_HAVE_SM=true	case "$GTK_LIBS" in	 *-lSM*)	    dnl Already found it.	    ;;	 *)	    dnl Assume that if we have -lSM then we also have -lICE.	    AC_CHECK_LIB(SM, SmcSaveYourselfDone,	        [GTK_LIBS="-lSM -lICE $GTK_LIBS"],GNOME_HAVE_SM=false,		$x_libs -lICE)	    ;;	esac	if test "$GNOME_HAVE_SM" = true; then	   AC_CHECK_HEADERS(X11/SM/SMlib.h,,GNOME_HAVE_SM=false)	fi	if test "$GNOME_HAVE_SM" = true; then	   AC_DEFINE(HAVE_LIBSM)	fi	XPM_LIBS=""	AC_CHECK_LIB(Xpm, XpmFreeXpmImage, [XPM_LIBS="-lXpm"], , $x_libs)	AC_SUBST(XPM_LIBS)	AC_REQUIRE([GNOME_PTHREAD_CHECK])        LDFLAGS="$saved_ldflags"	AC_PROVIDE([GNOME_X_CHECKS])])

⌨️ 快捷键说明

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