2003-08-14 02:14:27 +08:00
|
|
|
dnl configure.ac
|
|
|
|
dnl
|
2022-08-22 16:28:56 +08:00
|
|
|
dnl xfce4-speed-plugin - Netload plugin for xfce4-panel
|
2003-08-14 02:14:27 +08:00
|
|
|
dnl
|
2010-12-07 23:46:31 +08:00
|
|
|
dnl Copyright 2003 Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>
|
|
|
|
dnl Copyright 2010 Florian Rivoal <frivoal@xfce.org>
|
2014-11-02 23:09:37 +08:00
|
|
|
dnl Copyright 2014 Mike Massonnet <mmassonnet@xfce.org>
|
2003-08-14 02:14:27 +08:00
|
|
|
dnl
|
|
|
|
|
2021-03-11 00:11:08 +08:00
|
|
|
dnl ***************************
|
|
|
|
dnl *** Version information ***
|
|
|
|
dnl ***************************
|
|
|
|
m4_define([netload_version_major], [1])
|
2021-03-11 00:17:36 +08:00
|
|
|
m4_define([netload_version_minor], [4])
|
|
|
|
m4_define([netload_version_micro], [0])
|
2021-03-11 00:11:08 +08:00
|
|
|
m4_define([netload_version_build], [@REVISION@])
|
2021-03-11 00:18:23 +08:00
|
|
|
m4_define([netload_version_tag], [git])
|
2021-03-11 00:11:08 +08:00
|
|
|
m4_define([netload_version], [netload_version_major().netload_version_minor().netload_version_micro()ifelse(netload_version_tag(), [git], [netload_version_tag()-netload_version_build()], [netload_version_tag()])])
|
|
|
|
|
|
|
|
m4_define([netload_debug_default], [ifelse(netload_version_tag(), [git], [yes], [minimum])])
|
2003-08-14 02:14:27 +08:00
|
|
|
|
2022-08-22 16:28:56 +08:00
|
|
|
AC_INIT([xfce4-speed-plugin], [netload_version],
|
2019-11-13 15:00:34 +08:00
|
|
|
[xfce-dev@xfce.org])
|
2021-01-30 17:00:12 +08:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2017-06-08 17:21:52 +08:00
|
|
|
AC_CONFIG_MACRO_DIRS([m4])
|
2014-11-02 23:09:37 +08:00
|
|
|
AC_PREREQ([2.50])
|
|
|
|
AC_CANONICAL_TARGET()
|
2003-08-14 02:14:27 +08:00
|
|
|
|
2014-11-02 23:09:37 +08:00
|
|
|
AM_INIT_AUTOMAKE([1.8 no-dist-gzip dist-bzip2])
|
2003-08-14 02:14:27 +08:00
|
|
|
AM_MAINTAINER_MODE
|
2014-11-02 23:09:37 +08:00
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
|
|
|
LT_PREREQ([2.2.6])
|
|
|
|
LT_INIT([disable-static])
|
2003-08-14 02:14:27 +08:00
|
|
|
|
|
|
|
dnl Check for basic programs
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
2017-06-08 17:21:52 +08:00
|
|
|
IT_PROG_INTLTOOL([0.35.0])
|
2003-08-14 02:14:27 +08:00
|
|
|
|
|
|
|
dnl Check for standard header files
|
|
|
|
AC_HEADER_STDC
|
|
|
|
|
2003-08-18 02:58:26 +08:00
|
|
|
dnl Substitute in Makefiles
|
|
|
|
AC_SUBST(OS)
|
|
|
|
|
2003-08-25 04:07:08 +08:00
|
|
|
AC_CHECK_FUNCS([gethostname])
|
|
|
|
AC_CHECK_FUNCS([memset])
|
|
|
|
AC_CHECK_FUNCS([socket])
|
|
|
|
AC_CHECK_FUNCS([strstr])
|
|
|
|
AC_CHECK_FUNCS([malloc])
|
|
|
|
AC_CHECK_FUNCS([bzero])
|
|
|
|
AC_CHECK_HEADERS([arpa/inet.h])
|
|
|
|
AC_CHECK_HEADERS([netinet/in.h])
|
|
|
|
AC_CHECK_HEADERS([stdlib.h])
|
|
|
|
AC_CHECK_HEADERS([string.h])
|
|
|
|
AC_CHECK_HEADERS([sys/ioctl.h])
|
|
|
|
AC_CHECK_HEADERS([sys/param.h])
|
|
|
|
AC_CHECK_HEADERS([sys/socket.h])
|
|
|
|
AC_CHECK_HEADERS([sys/time.h])
|
|
|
|
AC_CHECK_HEADERS([unistd.h])
|
2005-02-05 02:13:04 +08:00
|
|
|
AC_CHECK_HEADERS([sys/sockio.h])
|
2003-08-25 04:07:08 +08:00
|
|
|
AC_HEADER_SYS_WAIT
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
|
|
|
|
AC_CHECK_LIB(kstat, kstat_open, SOLLIBS="-lkstat -lsocket", SOLLIBS="")
|
2005-02-05 02:13:04 +08:00
|
|
|
AC_CHECK_LIB(nsl, kstat_open, SOLLIBS="$SOLLIBS -linet_ntop", SOLLIBS="$SOLLIBS")
|
2003-08-25 04:07:08 +08:00
|
|
|
AC_SUBST(SOLLIBS)
|
|
|
|
|
2003-08-18 02:58:26 +08:00
|
|
|
dnl configure the panel plugin
|
2016-05-03 20:35:40 +08:00
|
|
|
XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-2.0], [4.12.0])
|
2006-04-26 04:26:28 +08:00
|
|
|
|
2010-10-12 09:19:09 +08:00
|
|
|
dnl configure the libxfcegui4
|
2016-05-03 20:35:40 +08:00
|
|
|
XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.12.0])
|
2010-10-12 09:19:09 +08:00
|
|
|
|
2006-04-26 04:26:28 +08:00
|
|
|
dnl Check for i18n support
|
2007-02-25 06:48:00 +08:00
|
|
|
XDT_I18N([@LINGUAS@])
|
2003-08-18 02:58:26 +08:00
|
|
|
|
2003-08-14 02:14:27 +08:00
|
|
|
dnl Check for debugging support
|
2006-04-26 04:26:28 +08:00
|
|
|
XDT_FEATURE_DEBUG()
|
2003-08-14 02:14:27 +08:00
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
panel-plugin/Makefile
|
|
|
|
po/Makefile.in
|
2010-12-07 11:53:18 +08:00
|
|
|
icons/Makefile
|
2021-03-10 23:30:12 +08:00
|
|
|
icons/16x16/Makefile
|
|
|
|
icons/32x32/Makefile
|
|
|
|
icons/128x128/Makefile
|
2010-12-07 11:53:18 +08:00
|
|
|
icons/scalable/Makefile
|
2003-08-14 02:14:27 +08:00
|
|
|
])
|