diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-05-06 09:00:37 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-05-16 13:28:14 -0400 |
commit | e6ae55d5423434d5dc6c236e8647b33610d30e2e (patch) | |
tree | 5e4f2851e08fb26ecf45f76f6e6dcedd0bcbc282 /src/external | |
parent | 227dcb12f8cb8bc5f6968bc87d44e1a0bdb08c69 (diff) | |
download | sssd-e6ae55d5423434d5dc6c236e8647b33610d30e2e.tar.gz sssd-e6ae55d5423434d5dc6c236e8647b33610d30e2e.tar.bz2 sssd-e6ae55d5423434d5dc6c236e8647b33610d30e2e.zip |
Allow Debian/Ubuntu build to pass --install-layout=deb to setup.py
Diffstat (limited to 'src/external')
-rw-r--r-- | src/external/platform.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/external/platform.m4 b/src/external/platform.m4 index ee009378..b7899b4b 100644 --- a/src/external/platform.m4 +++ b/src/external/platform.m4 @@ -5,7 +5,8 @@ osname="" if test x"$with_os" != x ; then if test x"$with_os" == xfedora -o \ x"$with_os" == xredhat -o \ - x"$with_os" == xsuse ; then + x"$with_os" == xsuse -o \ + x"$with_os" == xdebian ; then osname=$with_os else AC_MSG_ERROR([Illegal value -$with_os- for option --with-os]) @@ -19,14 +20,17 @@ if test x"$osname" = x ; then osname="redhat" elif test -f /etc/SuSE-release ; then osname="suse" + elif test -f /etc/debian_version ; then + osname="debian" fi - AC_MSG_NOTICE([Detected operation system type: $osname]) + AC_MSG_NOTICE([Detected operating system type: $osname]) fi AM_CONDITIONAL([HAVE_FEDORA], [test x"$osname" == xfedora]) AM_CONDITIONAL([HAVE_REDHAT], [test x"$osname" == xredhat]) AM_CONDITIONAL([HAVE_SUSE], [test x"$osname" == xsuse]) +AM_CONDITIONAL([HAVE_DEBIAN], [test x"$osname" == xdebian]) AC_CHECK_MEMBERS([struct ucred.pid, struct ucred.uid, struct ucred.gid], , , [[#define _GNU_SOURCE |