diff options
author | Gustav HÃ¥llberg <gustav@gmail.com> | 2009-01-01 02:01:41 (GMT) |
---|---|---|
committer | Gustav HÃ¥llberg <gustav@gmail.com> | 2009-01-16 23:40:41 (GMT) |
commit | 87cdaae6e546c5aaa8b5db086572d5bfbe69c97a (patch) | |
tree | cd8f1d8d09385230c888404a07c87f3601f0b601 /configure.in | |
parent | 9e30f88e70f6416c50d3fe3e41f6cbc3748c7c14 (diff) | |
download | powwow-87cdaae6e546c5aaa8b5db086572d5bfbe69c97a.zip powwow-87cdaae6e546c5aaa8b5db086572d5bfbe69c97a.tar.gz powwow-87cdaae6e546c5aaa8b5db086572d5bfbe69c97a.tar.bz2 |
make --enable-bsd default on OS X (darwin) hosts
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 891fa09..e46e902 100644 --- a/configure.in +++ b/configure.in @@ -2,6 +2,8 @@ AC_INIT AM_INIT_AUTOMAKE(powwow, 1.2.13) +AC_CANONICAL_HOST + AC_ARG_ENABLE(vt100, AC_HELP_STRING([--enable-vt100], [Hard code VT100 escape sequences; use if you have no termcap ]), @@ -36,12 +38,15 @@ AC_ARG_ENABLE(ansibug, AC_ARG_ENABLE(bsd, AC_HELP_STRING([--enable-bsd], - [Needed for BSD systems, in powwow this was USE_SGTTY and BSD_LIKE]), - [case "${enableval}" in - yes) AC_DEFINE(USE_SGTTY) - AC_DEFINE(BSD_LIKE) ;; - no) ;; - esac]) + [Needed for BSD systems, in powwow this was USE_SGTTY and BSD_LIKE. Default on Darwin (OS X) systems.])) +AS_IF([ test -z "${enable_bsd}" ], + [ case "${host_os}" in + darwin*) enable_bsd=yes ;; + *) enable_bsd=no ;; + esac]) +AS_IF([ test "${enable_bsd}" = yes ], + [ AC_DEFINE(USE_SGTTY) + AC_DEFINE(BSD_LIKE) ]) # Checks for programs. AC_PROG_CC |