Changeset 834 in openpam for trunk/configure.ac


Ignore:
Timestamp:
Oct 28, 2014, 10:25:58 AM (6 years ago)
Author:
Dag-Erling Smørgrav
Message:

Add configure options to build as much as possible using the system
libpam and / or liboath. Doing so disables building the corresponding
library and its documentation, but still builts the corresponding tools
and modules and runs the unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r803 r834  
    8686AM_CONDITIONAL([WITH_SU], [test x"$with_su" = x"yes"])
    8787
     88AC_ARG_WITH(system-libpam,
     89    AC_HELP_STRING([--with-system-libpam], [use system libpam]),
     90    [],
     91    [with_system_libpam=no])
     92AM_CONDITIONAL([WITH_SYSTEM_LIBPAM], [test x"$with_system_libpam" = x"yes"])
     93
     94AC_ARG_WITH(system-liboath,
     95    AC_HELP_STRING([--with-system-liboath], [use system liboath]),
     96    [],
     97    [with_system_liboath=no])
     98AM_CONDITIONAL([WITH_SYSTEM_LIBOATH], [test x"$with_system_liboath" = x"yes"])
     99
    88100AC_CHECK_HEADERS([crypt.h])
    89101
     
    114126LIBS="${saved_LIBS}"
    115127AC_SUBST(CRYPTO_LIBS)
     128
     129saved_LIBS="${LIBS}"
     130LIBS=""
     131AC_CHECK_LIB([pam], [pam_start])
     132SYSTEM_LIBPAM="${LIBS}"
     133LIBS="${saved_LIBS}"
     134AC_SUBST(SYSTEM_LIBPAM)
     135
     136saved_LIBS="${LIBS}"
     137LIBS=""
     138AC_CHECK_LIB([oath], [oath_key_alloc])
     139SYSTEM_LIBOATH="${LIBS}"
     140LIBS="${saved_LIBS}"
     141AC_SUBST(SYSTEM_LIBOATH)
    116142
    117143AC_ARG_ENABLE([developer-warnings],
Note: See TracChangeset for help on using the changeset viewer.