mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +01:00
Half-assed fix to make autoconf bend
- this should make platform detection automagic - also fixes debian builds that broke in the meantime - fix osdep_darwin.c
This commit is contained in:
committed by
Carlos R. Mafra
parent
67a8a82670
commit
55959b4f7e
35
configure.ac
35
configure.ac
@@ -37,6 +37,41 @@ dnl AC_PROG_INSTALL -- already done by AM_INIT_AUTOMAKE
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
|
||||
dnl Platform-specific Makefile setup
|
||||
dnl ================================
|
||||
|
||||
case "${host}" in
|
||||
*-*-linux*)
|
||||
WM_OSDEP="linux"
|
||||
;;
|
||||
*-*-freebsd*)
|
||||
WM_OSDEP="bsd"
|
||||
CFLAGS="$CFLAGS -DFREEBSD"
|
||||
;;
|
||||
*-*-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)
|
||||
|
||||
|
||||
dnl the prefix
|
||||
dnl ==========
|
||||
|
||||
Reference in New Issue
Block a user