Prepare build-env for first beta
This commit is contained in:
@@ -2,13 +2,14 @@ dnl
|
||||
dnl xfce4-taskmanager - A small taskmanager based on the Xfce 4 libraries.
|
||||
dnl
|
||||
dnl 2005-2007 Johannes Zellner <webmaster@nebulon.de>
|
||||
dnl 2010 Mike Massonnet <mmassonnet@xfce.org>
|
||||
|
||||
dnl ***************************
|
||||
dnl *** Version information ***
|
||||
dnl ***************************
|
||||
m4_define([taskmanager_version_major], [0])
|
||||
m4_define([taskmanager_version_minor], [5])
|
||||
m4_define([taskmanager_version_micro], [0])
|
||||
m4_define([taskmanager_version_micro], [90])
|
||||
m4_define([taskmanager_version_build], [@REVISION@])
|
||||
m4_define([taskmanager_version_tag], [git])
|
||||
m4_define([taskmanager_version], [taskmanager_version_major().taskmanager_version_minor().taskmanager_version_micro()ifelse(taskmanager_version_tag(), [git], [taskmanager_version_tag()-taskmanager_version_build()], [taskmanager_version_tag()])])
|
||||
@@ -30,14 +31,7 @@ dnl ***************************
|
||||
AM_INIT_AUTOMAKE([1.8 dist-bzip2])
|
||||
AM_CONFIG_HEADER([config.h])
|
||||
AM_MAINTAINER_MODE()
|
||||
AM_SILENT_RULES([yes])
|
||||
|
||||
dnl *******************************
|
||||
dnl *** Check for UNIX variants ***
|
||||
dnl *******************************
|
||||
AC_AIX()
|
||||
AC_ISC_POSIX()
|
||||
AC_MINIX()
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||
|
||||
dnl ********************************
|
||||
dnl *** Check for basic programs ***
|
||||
@@ -57,10 +51,8 @@ AC_C_CONST()
|
||||
|
||||
dnl **********************************
|
||||
dnl *** Check for standard headers ***
|
||||
dnl **********************************.
|
||||
dnl **********************************
|
||||
AC_HEADER_STDC()
|
||||
AC_CHECK_HEADERS([dirent.h pwd.h sys/types.h sys/stat.h sys/param.h \
|
||||
stdio.h stdlib.h string.h unistd.h stdlib.h signal.h])
|
||||
|
||||
dnl ******************************
|
||||
dnl *** Check for i18n support ***
|
||||
@@ -75,29 +67,39 @@ XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.12.0])
|
||||
dnl ***********************************
|
||||
dnl ******* Check for OS family *******
|
||||
dnl ***********************************
|
||||
AC_MSG_CHECKING([for operating system family])
|
||||
case "$target_os" in
|
||||
dragonfly*|freebsd*|netbsd*|openbsd*|darwin*)
|
||||
ac_taskmanager_os_family="bsd"
|
||||
;;
|
||||
solaris*)
|
||||
ac_taskmanager_os_family="solaris"
|
||||
AC_CHECK_LIB([kstat], [kstat_open])
|
||||
;;
|
||||
*)
|
||||
ac_taskmanager_os_family="linux"
|
||||
;;
|
||||
esac
|
||||
AC_MSG_RESULT([$ac_taskmanager_os_family])
|
||||
AM_CONDITIONAL([OS_BSD_FAMILY], [test x"$ac_taskmanager_os_family" = x"bsd"])
|
||||
AM_CONDITIONAL([OS_SOLARIS], [test x"$ac_taskmanager_os_family" = x"solaris"])
|
||||
AM_CONDITIONAL([OS_LINUX], [test x"$ac_taskmanager_os_family" = x"linux"])
|
||||
dragonfly*|freebsd*|netbsd*|openbsd*|darwin*)
|
||||
ac_os_implementation="bsd"
|
||||
;;
|
||||
solaris*)
|
||||
ac_os_implementation="solaris"
|
||||
AC_CHECK_LIB([kstat], [kstat_open])
|
||||
;;
|
||||
linux*)
|
||||
ac_os_implementation="linux"
|
||||
AC_CHECK_HEADERS([pwd.h signal.h stdio.h string.h sys/resource.h \
|
||||
sys/stat.h sys/types.h unistd.h])
|
||||
;;
|
||||
*)
|
||||
AC_MSG_CHECKING([for OS implementation])
|
||||
AC_MSG_ERROR([no OS implementation for $target_os is available])
|
||||
;;
|
||||
esac
|
||||
AC_MSG_CHECKING([for OS implementation])
|
||||
AC_MSG_RESULT([$ac_os_implementation])
|
||||
|
||||
AM_CONDITIONAL([OS_BSD], [test x"$ac_os_implementation" = x"bsd"])
|
||||
AM_CONDITIONAL([OS_SOLARIS], [test x"$ac_os_implementation" = x"solaris"])
|
||||
AM_CONDITIONAL([OS_LINUX], [test x"$ac_os_implementation" = x"linux"])
|
||||
|
||||
dnl ***********************************
|
||||
dnl *** Check for debugging support ***
|
||||
dnl ***********************************
|
||||
BM_DEBUG_SUPPORT()
|
||||
XDT_FEATURE_DEBUG()
|
||||
|
||||
dnl ***************
|
||||
dnl *** Outputs ***
|
||||
dnl ***************
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
src/Makefile
|
||||
@@ -110,7 +112,7 @@ dnl ***************************
|
||||
echo
|
||||
echo "Build Configuration:"
|
||||
echo
|
||||
echo "* Target OS: $ac_taskmanager_os_family"
|
||||
echo "* Target OS: $target_os ($ac_os_implementation)"
|
||||
echo "* Debug Support: $enable_debug"
|
||||
echo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user