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

📄 configure.in

📁 watchdog source watchdog source
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(include/extern.h)MAJOR_VERSION=5MINOR_VERSION=4AM_INIT_AUTOMAKE(watchdog, $MAJOR_VERSION.$MINOR_VERSION)AC_PREFIX_DEFAULT(/usr)AC_DEFINE_UNQUOTED(MAJOR_VERSION, $MAJOR_VERSION, "major version number")AC_DEFINE_UNQUOTED(MINOR_VERSION, $MINOR_VERSION, "minor version number")AM_CONFIG_HEADER(include/config.h)AM_SANITY_CHECKAM_MAINTAINER_MODE	dnl Checks for programs.AC_PROG_AWKAC_PROG_CCAC_PROG_INSTALLAC_PATH_PROG(PATH_SENDMAIL, sendmail, /usr/lib/sendmail, $PATH /usr/bin /usr/sbin /usr/etc /etc /usr/ucblib)if test -n "$PATH_SENDMAIL"; then  AC_DEFINE_UNQUOTED(PATH_SENDMAIL, "$PATH_SENDMAIL", "path to sendmail binary")fidnl Checks for libraries.dnl Checks for header files.AC_HEADER_DIRENTAC_HEADER_STDCAC_HEADER_SYS_WAITAC_CHECK_HEADERS(fcntl.h limits.h paths.h sys/ioctl.h sys/time.h syslog.h unistd.h)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_INLINEAC_TYPE_PID_TAC_TYPE_SIZE_TAC_STRUCT_ST_RDEVAC_DECL_SYS_SIGLISTAC_HEADER_TIMEdnl Checks for library functions.AC_FUNC_ALLOCAAC_PROG_GCC_TRADITIONALAC_TYPE_SIGNALAC_FUNC_VPRINTFAC_CHECK_FUNCS(gethostname select socket strcspn strdup strerror strstr strtoul uname)AC_MSG_CHECKING(whether to log via syslog)AC_ARG_ENABLE(syslog,[  --disable-syslog        Disable logging by syslog (deprecated)],[   if test "$enableval" = "yes"; then      AC_DEFINE(USE_SYSLOG, 1, "enable syslog")	  AC_MSG_RESULT(yes)   else      AC_DEFINE(USE_SYSLOG, 0, "enable syslog")	  AC_MSG_RESULT(no)   fi],[  AC_DEFINE(USE_SYSLOG, 1, "enable syslog")  AC_MSG_RESULT(yes)])AC_MSG_CHECKING(whether to include NFS support)AC_ARG_ENABLE(nfs,[  --disable-nfs           Disable NFS support],[   if test "$enableval" = "yes"; then      AC_DEFINE(HAVE_NFS, 1, "enable NFS")	  AC_MSG_RESULT(yes)   else      AC_DEFINE(HAVE_NFS, 0, "enable NFS")	  AC_MSG_RESULT(no)   fi],[  AC_DEFINE(HAVE_NFS, 1, "enable NFS")  AC_MSG_RESULT(yes)])AC_MSG_CHECKING(for minimum value accepted as reboot cause)AC_ARG_WITH(minload,[  --with-minload=int      minimum value accepted as reboot cause (default 2)],[  AC_DEFINE_UNQUOTED(MINLOAD, $withval, "minimum value accepted as reboot cause")  AC_MSG_RESULT($withval)],[  AC_DEFINE(MINLOAD, 2, "minimum value accepted as reboot cause")  AC_MSG_RESULT(2)])AC_MSG_CHECKING(for timer margin used by kernel)AC_ARG_WITH(timermargin,[  --with-timermargin=int  timer margin used by kernel (default 60)],[  AC_DEFINE_UNQUOTED(TIMER_MARGIN, $withval, "timer margin used by kernel")  AC_MSG_RESULT($withval)],[  AC_DEFINE(TIMER_MARGIN, 60, "timer margin used by kernel")  AC_MSG_RESULT(60)])AC_MSG_CHECKING(for config filename)AC_ARG_WITH(configfile,[  --with-configfile=filename			  name of config file (default /etc/watchdog.conf)],[  AC_DEFINE_UNQUOTED(CONFIG_FILENAME, "$withval", "name of config file")  CONFIG_FILENAME="$withval"  AC_MSG_RESULT($withval)],[  CONFIG_FILENAME="/etc/watchdog.conf"  AC_DEFINE_UNQUOTED(CONFIG_FILENAME, "$CONFIG_FILENAME", "name of config file")  AC_MSG_RESULT($CONFIG_FILENAME)])AC_SUBST(CONFIG_FILENAME)AC_MSG_CHECKING(for config file line length)AC_ARG_WITH(linelength,[  --with-linelength=int   max line length in config file (default 80)],[  AC_DEFINE_UNQUOTED(CONFIG_LINE_LEN, $withval, "max line length in config file")  AC_MSG_RESULT($withval)],[  AC_DEFINE(CONFIG_LINE_LEN, 80, "max line length in config file")  AC_MSG_RESULT(80)])AC_MSG_CHECKING(for pid filename)AC_ARG_WITH(pidfile,[  --with-pidfile=filename name of pid file (default /var/run/watchdog.pid)],[  AC_DEFINE_UNQUOTED(PIDFILE, "$withval", "name of pid file")  AC_MSG_RESULT($withval)],[  AC_DEFINE(PIDFILE, "/var/run/watchdog.pid", "name of pid file")  AC_MSG_RESULT("/var/run/watchdog.pid")])AC_MSG_CHECKING(for keepalive pid filename)AC_ARG_WITH(ka_pidfile,[  --with-ka_pidfile=filename name of keepalive pid file (default /var/run/wd_keepalive.pid)],[  AC_DEFINE_UNQUOTED(KA_PIDFILE, "$withval", "name of keepalive pid file")  AC_MSG_RESULT($withval)],[  AC_DEFINE(KA_PIDFILE, "/var/run/wd_keepalive.pid", "name of keepalive pid file")  AC_MSG_RESULT("/var/run/wd_keepalive.pid")])AC_MSG_CHECKING(for random seed filename)AC_ARG_WITH(randomseed,[  --with-randomseed=filename                          filename for storing random seed (default /var/run/random-seed)],[  AC_DEFINE_UNQUOTED(RANDOM_SEED, "$withval", filename for storing random seed")  AC_MSG_RESULT($withval)],[  AC_DEFINE(RANDOM_SEED, "/var/run/random-seed", "filename for storing random seed")  AC_MSG_RESULT("/var/run/random-seed")])AC_OUTPUT([Makefile src/Makefile])

⌨️ 快捷键说明

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