summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-08-11 18:09:45 +0000
committerEric Anholt <anholt@freebsd.org>2005-08-11 18:09:45 +0000
commitef53714d87aa71309fe2f22862f1892a8e620336 (patch)
treece68b1768869c154a3793c5353168d8b4918cf4f /configure.ac
parent2b515c0e9940d3fc5b4151d10678f3c0b09668fc (diff)
Set CSRG_BASED for BSD systems so the build succeeds.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 351737a..5d51a91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,12 +34,20 @@ AC_PATH_PROGS(RAWCPP, [cpp], [$(CPP)],
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
AC_PROG_INSTALL
AC_PATH_PROG(SED,sed)
+AC_CANONICAL_HOST
AC_TYPE_SIGNAL
AC_FUNC_FORK
# Checks for pkg-config packages
PKG_CHECK_MODULES(XINIT, x11)
+
+case $host_os in
+ *bsd*)
+ XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
+ ;;
+esac
+
AC_SUBST(XINIT_CFLAGS)
AC_SUBST(XINIT_LIBS)