Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Zbigniew Jędrzejewski-Szmek
polkit
Commits
3406f9f2
Commit
3406f9f2
authored
Sep 06, 2007
by
Doug Goldstein
Committed by
David Zeuthen
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gentoo OS type support
Adds Gentoo as a valid OS type
parent
1b8d31e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
configure.in
configure.in
+6
-2
No files found.
configure.in
View file @
3406f9f2
...
...
@@ -295,12 +295,13 @@ fi
AC_SUBST(PAM_MODULE_DIR)
AC_ARG_WITH(os-type, [ --with-os-type=<os> distribution or OS (redhat)])
AC_ARG_WITH(os-type, [ --with-os-type=<os> distribution or OS (redhat
/suse/gentoo
)])
#### Check our operating system (distro-tweaks required)
if test "z$with_os_type" = "z"; then
AC_CHECK_FILE(/etc/redhat-release,distro_type="redhat")
AC_CHECK_FILE(/etc/SuSE-release,distro_type="suse")
AC_CHECK_FILE(/etc/gentoo-release,distro_type="gentoo")
if test "z$distro_type" = "z"; then
echo "Linux distribution autodetection failed, specify the distribution to target using --with-os-type="
else
...
...
@@ -314,6 +315,8 @@ if test x$with_os_type = x; then
with_os_type=redhat
elif test x$operating_system = xsuse ; then
with_os_type=suse
elif test x$operating_system = xgentoo ; then
with_os_type=gentoo
else
with_os_type=unknown
fi
...
...
@@ -323,6 +326,7 @@ fi
AM_CONDITIONAL(OS_TYPE_UNKNOWN, test x$with_os_type = xunknown, [Running on unknown OS])
AM_CONDITIONAL(OS_TYPE_RED_HAT, test x$with_os_type = xredhat, [Running on Red Hat OS'es])
AM_CONDITIONAL(OS_TYPE_SUSE, test x$with_os_type = xsuse, [Running on SUSE OS'es])
AM_CONDITIONAL(OS_TYPE_GENTOO, test x$with_os_type = xgentoo, [Running on Gentoo OS'es])
AC_ARG_WITH(pam-include, [ --with-pam-include=<file> pam file to include])
...
...
@@ -332,7 +336,7 @@ if ! test -z "$with_pam_include"; then
PAM_FILE_INCLUDE_ACCOUNT=$with_pam_include
PAM_FILE_INCLUDE_PASSWORD=$with_pam_include
PAM_FILE_INCLUDE_SESSION=$with_pam_include
elif test x$with_os_type = xredhat ; then
elif test x$with_os_type = xredhat
-o x$with_os_type = xgentoo
; then
PAM_FILE_INCLUDE_AUTH=system-auth
PAM_FILE_INCLUDE_ACCOUNT=system-auth
PAM_FILE_INCLUDE_PASSWORD=system-auth
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment