Changeset 395 in openpam for trunk


Ignore:
Timestamp:
Jun 3, 2007, 8:26:18 PM (12 years ago)
Author:
Dag-Erling Smørgrav
Message:

Fix some bugs in the build system, and make 'make dist' work as expected.
Also add some configure options for developer use.

Location:
trunk
Files:
1 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r391 r395  
    1212        INSTALL \
    1313        LICENSE \
    14         MANIFEST \
    1514        README \
    1615        RELNOTES \
     16        autogen.sh \
    1717        misc/gendoc.pl
  • trunk/autogen.sh

    r379 r395  
    66if [ -d /usr/local/gnu-autotools/bin ] ; then
    77        export PATH=${PATH}:/usr/local/gnu-autotools/bin
     8        FIX_BROKEN_FREEBSD_PORTS="-I /usr/local/share/aclocal"
    89fi
    910
    10 aclocal
     11aclocal ${FIX_BROKEN_FREEBSD_PORTS}
    1112libtoolize --copy --force
    1213autoheader
  • trunk/configure.ac

    r390 r395  
    11dnl $Id$
    22
    3 AC_PREREQ(2.53)
    4 AC_INIT([OpenPAM],[20050616],[des@freebsd.org],[openpam])
    5 AC_CONFIG_SRCDIR([lib/pam_start.c])
    6 AM_CONFIG_HEADER([config.h])
     3AC_PREREQ(2.59)
     4AC_REVISION([$Id$])
     5AC_INIT([OpenPAM],[trunk],[des@des.no])
     6AC_CONFIG_SRCDIR(lib/pam_start.c)
     7AM_CONFIG_HEADER(config.h)
    78
    89AC_CANONICAL_SYSTEM
     10AC_LANG(C)
    911AC_C_VOLATILE
    1012AC_DISABLE_STATIC
    1113AC_PROG_LIBTOOL
    12 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
     14AM_INIT_AUTOMAKE
    1315
    1416LIB_MAJ=2
     
    9597CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
    9698
    97 if test "$GCC" = yes; then
    98         CFLAGS="$CFLAGS -Werror"
    99 fi
     99# This corresponds to FreeBSD's WARNS level 6
     100DEVELOPER_CFLAGS="-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
     101
     102AC_ARG_ENABLE(developer-warnings,
     103        AS_HELP_STRING([--enable-developer-warnings],[enable strict warnings (default is NO)]),
     104        CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}")
     105AC_ARG_ENABLE(debugging-symbols,
     106        AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
     107        CFLAGS="${CFLAGS} -O0 -g -fno-inline")
     108AC_ARG_ENABLE(werror,
     109        AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),
     110        CFLAGS="${CFLAGS} -Werror")
    100111
    101112AC_CONFIG_FILES([
  • trunk/doc/man/Makefile.am

    r391 r395  
    6262LINKS = $(ALLCMAN:.3=.c) openpam_configure.c openpam_dispatch.c
    6363
    64 man3_MANS = $(ALLCMAN) openpam.3 pam.3
     64dist_man3_MANS = $(ALLCMAN) openpam.3 pam.3
    6565
    6666dist_man3_MANS = pam_conv.3
  • trunk/lib/Makefile.am

    r391 r395  
    5858
    5959EXTRA_DIST = \
     60        pam_authenticate_secondary.c \
     61        pam_get_mapped_authtok.c \
     62        pam_get_mapped_username.c \
     63        pam_set_mapped_authtok.c \
     64        pam_set_mapped_username.c \
     65        \
    6066        pam_sm_acct_mgmt.c \
    6167        pam_sm_authenticate.c \
     
    6975        pam_sm_set_mapped_username.c \
    7076        pam_sm_setcred.c
    71 
    72 # Not implemented yet:
    73 #       pam_authenticate_secondary.c
    74 #       pam_get_mapped_authtok.c
    75 #       pam_get_mapped_username.c
    76 #       pam_set_mapped_authtok.c
    77 #       pam_set_mapped_username.c
Note: See TracChangeset for help on using the changeset viewer.