mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-30 21:23:57 +08:00
89c393b73d
Purpose of commit: bugfix Commit summary: --------------- Fix some bugs on older distributions 2006-08-31 Thorsten Kukuk <kukuk@thkukuk.de> * modules/pam_namespace/Makefile.am: Don't install manual page if we don't build module. * m4/ld-as-needed.m4: Don't set LDFLAGS if check failed. * m4/ld-O1: Likewise.
25 lines
536 B
Plaintext
25 lines
536 B
Plaintext
# ld-O1.m4 serial 2
|
|
|
|
# Test if ld supports -O1
|
|
|
|
AC_DEFUN([PAM_LD_O1],
|
|
[
|
|
AC_CACHE_CHECK(whether ld supports -O1,
|
|
pam_cv_ld_O1, [ dnl
|
|
cat > conftest.c <<EOF
|
|
int main (void) { return 0; }
|
|
EOF
|
|
if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
|
|
-o conftest.o conftest.c
|
|
-Wl,-O1 1>&AS_MESSAGE_LOG_FD])
|
|
then
|
|
pam_cv_ld_O1=yes
|
|
LDFLAGS="$LDFLAGS -Wl,-O1"
|
|
else
|
|
pam_cv_ld_O1=no
|
|
fi
|
|
rm -f conftest*])
|
|
AC_SUBST(pam_cv_ld_as_needed)
|
|
]
|
|
)
|