There is no way to build "modules" subdirectory before "libpam" anyway.
In STATIC_MODULES mode, "libpam" subdirectory must be built twice to
produce a usable libpam.a without undefined references to multiple
_pam_*_modstruct symbols.
* Makefile.am: Use default SUBDIRS in STATIC_MODULES mode.
AUTOMAKE_OPTIONS = 1.9 gnu dist-bzip2 check-news
-if STATIC_MODULES
-SUBDIRS = modules libpam libpamc libpam_misc tests po conf doc examples xtests
-else
SUBDIRS = libpam tests libpamc libpam_misc modules po conf doc examples xtests
-endif
CLEANFILES = *~