diff options
author | Robert Millan <rmh@debian.org> | 2011-06-15 16:49:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-15 16:49:56 +0200 |
commit | 1df2a0fce427fab7754f6ac572cf68cef2e95696 (patch) | |
tree | 3a4fcc5f1e9a3cad3d4c875564b48afed73ae926 /configure.ac | |
parent | 87a477c74e2478e94e89e7026cf7207fcdc2dffc (diff) |
Use legacy getifaddrs() on GNU/kFreeBSD
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 38cd58fb41..30ebc44a80 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,13 @@ AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/nss-myhostname/]) ac_default_prefix="/" +AC_CANONICAL_HOST +case "$host_os" in + linux*) legacy=false ;; + *) legacy=true ;; +esac +AM_CONDITIONAL([LEGACY], [test x$legacy = xtrue]) + # Checks for programs. AC_PROG_CC AC_PROG_CC_C99 |