📄 configure.in
字号:
AC_INIT(src/gedit.c)AM_CONFIG_HEADER(config.h)AM_INIT_AUTOMAKE(gedit, 0.9.6)AM_MAINTAINER_MODEAM_ACLOCAL_INCLUDE(macros)AC_ISC_POSIXAC_PROG_CCAC_STDC_HEADERSAC_ARG_PROGRAMAM_PROG_LIBTOOLGNOME_INITGNOME_COMPILE_WARNINGSGNOME_X_CHECKSdnl AM_CONDITIONAL(FALSE, test foo = bar)dnldnl Let the user disable ORBit even if it can be founddnl AC_ARG_ENABLE(orbit,dnl [ --enable-orbit Try to use ORBit [default=no] ],dnl enable_orbit="$enableval", enable_orbit=no)dnl We only need CORBA for pluginsdnl if test x$have_gmodule_plugins = xyes ; thendnl if test x$enable_orbit = xyes ; thendnl GNOME_ORBIT_HOOK([have_orbit=yes])dnl fidnl fiAM_CONDITIONAL(HAVE_ORBIT, test x$have_orbit = xyes)dnl Check if we also have LibGnorbadnl if test x$have_orbit = xyes; thendnl AC_CHECK_LIB(gnorba, gnome_CORBA_init, have_libgnorba=yes, have_libgnorba=no,dnl $ORBIT_LIBS $GNOMEUI_LIBS)dnl fidnl if test x$have_libgnorba = xyes ; thendnl AC_DEFINE(HAVE_LIBGNORBA)dnl fiAM_CONDITIONAL(HAVE_LIBGNORBA, test x$have_libgnorba = xyes)dnl Check for libzvt from gnome-libs/zvtdnl AC_CHECK_LIB(zvt, zvt_term_new, have_libzvt=yes, have_libzvt=no, $GNOMEUI_LIBS)AM_CONDITIONAL(HAVE_LIBZVT, test x$have_libzvt = xyes)ALL_LINGUAS="az ca cs da de el es fi fr ga gl hu it ja ko lt nl no pl pt pt_BR ru sv sk sl tr uk wa zh_TW.Big5 zh_CN.GB2312"AM_GNOME_GETTEXTdnl ******************************dnl gtk+ checkingdnl ******************************AM_PATH_GTK(1.2.7,, AC_MSG_ERROR([*** GTK+ 1.2.7 or better is required. The latest version of GTK+*** is always available from ftp://ftp.gtk.org/.]), )dnl ******************************dnl GnomePrint checkingdnl ******************************AC_MSG_CHECKING(for GnomePrint libraries >= 0.25)if gnome-config --libs print > /dev/null 2>&1; then vers=`gnome-config --modversion print | sed -e "s/gnome-print-//" | \ awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'` if test "$vers" -ge 25; then AC_MSG_RESULT(found) else AC_MSG_ERROR(You need at least GNOME print 0.25 for this version of gedit) fielse AC_MSG_ERROR(Did not find GnomePrint installed)fidnl ******************************dnl LibGlade checkingdnl ******************************AC_MSG_CHECKING(for Glade libraries >= 0.11)if gnome-config --libs libglade > /dev/null 2>&1; then vers=`gnome-config --modversion libglade | awk 'BEGIN { FS = "."; } { print $1 * 1000 + $2;}'` if test "$vers" -ge 11; then AC_MSG_RESULT(found) else AC_MSG_ERROR(You need at least libglade 0.11 for this version of gedit) fielse AC_MSG_ERROR(Did not find libGlade installed)fidnl ******************************dnl gnome-libs checkingdnl ******************************AC_MSG_CHECKING(for gnome-libs >= 1.0.55)if gnome-config --version > /dev/null 2>&1; then vers=`gnome-config --version | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` if test "$vers" -ge 55; then AC_MSG_RESULT(found) else AC_MSG_ERROR(You need at least gnome-libs 1.0.55 for this version of gedit) fielse AC_MSG_ERROR(Did not find gnome-libs installed)fidnl verstxt=`xml-config --version`dnl vers=`echo "$verstxt" | sed -e "s/libxml //" | \dnl awk -F. '{ printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`dnl if test "$vers" -ge 1008010; thendnl if test "$vers" -lt 2000000; thendnl ******************************dnl gnome-vfs checkingdnl ******************************AC_MSG_CHECKING(for gnome-vfs >= 0.1)if gnome-config --libs vfs > /dev/null 2>&1; then vers=`gnome-config --modversion vfs | sed -e "s/gnome-vfs-//" | awk -F. '{printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` if test "$vers" -ge 1000000; then AC_MSG_RESULT(found) else AC_MSG_ERROR(You need at least gnome-vfs 1.0 for this version of gedit.) fielse AC_MSG_ERROR(Did not find gnome-vfs installed)fiEXTRA_GNOME_LIBS=`gnome-config --libs print libglade vfs`EXTRA_GNOME_CFLAGS=`gnome-config --cflags print libglade vfs`AC_SUBST(EXTRA_GNOME_LIBS)AC_SUBST(EXTRA_GNOME_CFLAGS)AC_SUBST(CFLAGS)AC_SUBST(CPPFLAGS)AC_SUBST(LDFLAGS)dnl ******************************dnl Makefilesdnl ******************************AC_OUTPUT([gedit.specMakefileintl/Makefilepo/Makefile.inmacros/Makefilehelp/Makefilehelp/C/Makefilehelp/ja/Makefilepixmaps/Makefileplugins/Makefileplugins/browse/Makefileplugins/convert/Makefileplugins/diff/Makefileplugins/email/Makefileplugins/sample/Makefileplugins/time/Makefileplugins/reverse/Makefileplugins/shell_output/Makefilesrc/Makefilesrc/dialogs/Makefile],[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])echo "Configuration: Source code location: ${srcdir} Compiler: ${CC} "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -