mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-28 19:05:51 +01:00
Configure: Changed OS dependant check to use Autoconf's macro
The macro provided by Autoconf will generate a similar code but with better portability, and the source file is more consistent.
This commit is contained in:
committed by
Carlos R. Mafra
parent
e7c2a3dc69
commit
7e424bf232
41
configure.ac
41
configure.ac
@@ -92,38 +92,15 @@ AX_CFLAGS_GCC_OPTION(-Wextra -Wno-sign-compare -Wno-unused-parameter)
|
|||||||
|
|
||||||
dnl Platform-specific Makefile setup
|
dnl Platform-specific Makefile setup
|
||||||
dnl ================================
|
dnl ================================
|
||||||
|
AS_CASE(["$host"],
|
||||||
case "${host}" in
|
[*-*-linux*|*-*-cygwin*|*-gnu*], [WM_OSDEP="linux" ; CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600"],
|
||||||
*-*-linux*|*-*-cygwin*|*-gnu*)
|
[*-*-freebsd*|*-k*bsd-gnu*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -DFREEBSD"],
|
||||||
WM_OSDEP="linux"
|
[*-*-netbsd*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -DNETBSD"],
|
||||||
CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600"
|
[*-*-openbsd*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -DOPENBSD"],
|
||||||
;;
|
[*-*-dragonfly*], [WM_OSDEP="bsd" ; CFLAGS="$CFLAGS -DDRAGONFLYBSD"],
|
||||||
*-*-freebsd*|*-k*bsd-gnu*)
|
[*-apple-darwin*], [WM_OSDEP="darwin"],
|
||||||
WM_OSDEP="bsd"
|
[*-*-solaris*], [WM_OSDEP="stub"], dnl solaris.c when done
|
||||||
CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -DFREEBSD"
|
[WM_OSDEP="stub"])
|
||||||
;;
|
|
||||||
*-*-netbsd*)
|
|
||||||
WM_OSDEP="bsd"
|
|
||||||
CFLAGS="$CFLAGS -DNETBSD"
|
|
||||||
;;
|
|
||||||
*-*-openbsd*)
|
|
||||||
WM_OSDEP="bsd"
|
|
||||||
CFLAGS="$CFLAGS -DOPENBSD"
|
|
||||||
;;
|
|
||||||
*-*-dragonfly*)
|
|
||||||
WM_OSDEP="bsd"
|
|
||||||
CFLAGS="$CFLAGS -DDRAGONFLYBSD"
|
|
||||||
;;
|
|
||||||
*-apple-darwin*)
|
|
||||||
WM_OSDEP="darwin"
|
|
||||||
;;
|
|
||||||
*-*-solaris*)
|
|
||||||
WM_OSDEP="stub" # solaris.c when done
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
WM_OSDEP="stub"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
AC_SUBST(WM_OSDEP)
|
AC_SUBST(WM_OSDEP)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user