📄 configure.ac
字号:
dnl -*- mode: shell-script -*-dnl 'configure.ac' file for the Clicky GUIdnl Process this file with autoconf to produce a configure script.dnldnl Permission is hereby granted, free of charge, to any person obtaining adnl copy of this software and associated documentation files (the "Software"),dnl to deal in the Software without restriction, subject to the conditionsdnl listed in the Click LICENSE file. These conditions include: you mustdnl preserve this copyright notice, and you cannot mention the copyrightdnl holders in advertising related to the Software without their permission.dnl The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. Thisdnl notice is a summary of the Click LICENSE file; the license in that file isdnl legally binding.dnldnl the usual 'configure.ac' boilerplatednlAC_INIT([clicky], [0.1])AC_CONFIG_SRCDIR([configure.ac])AM_INIT_AUTOMAKEAM_CONFIG_HEADER(config.h)AM_MAINTAINER_MODEAC_SUBST(ac_configure_args)AC_ISC_POSIXAC_PROG_MAKE_SETAC_PROG_CCAM_PROG_CC_STDCAC_PROG_CPPAC_PROG_CXXAC_PROG_CXXCPPAC_PROG_INSTALLif test -n "$GCC" ; then CC="$CC -W -Wall" ; CXX="$CXX -W -Wall" ; fipkg_modules="gtk+-2.0 >= 2.0.0"PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])AC_SUBST(PACKAGE_CFLAGS)AC_SUBST(PACKAGE_LIBS)dnldnl locate Click install directorydnlAC_ARG_WITH(click, [ --with-click[[=DIR]] Click install path is DIR [[PREFIX]]], [clickprefix=$withval; if test -z "$withval" -o "$withval" = yes; then clickprefix=$prefix; fi], clickprefix=NONE)dnl Preset $prefix and $exec_prefix.test "x$prefix" = xNONE && prefix=$ac_default_prefixtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'test "x$clickprefix" != xNONE -a "x$prefix" = xNONE && prefix="$clickprefix"test "x$clickprefix" = xNONE && clickprefix="$prefix"clickdatadir="${clickprefix}/share/click"if test ! -r $clickdatadir/config.mk; then AC_MSG_ERROR([=============================================='$clickdatadir/config.mk' not found.Are you sure '$clickprefix' is a Click install directory?==============================================])fi. $clickdatadir/config.mkAC_SUBST(clickprefix)AC_SUBST(clickbindir)AC_SUBST(clicksbindir)AC_SUBST(clickdatadir)CLICKTOOL_LIBS='`$(clickbindir)/click-buildtool --toollibs`'AC_SUBST(CLICKTOOL_LIBS)dnldnl OutputdnlAC_OUTPUT(Makefile src/Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -