Changeset 537d9b9 for configure


Ignore:
Timestamp:
2016-11-20T08:40:36Z (8 years ago)
Author:
dequis <dx@…>
Children:
3f44e43
Parents:
ba52ac5 (diff), 9f03c47 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge master up to commit '9f03c47' into parson

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    rba52ac5 r537d9b9  
    5454ssl=auto
    5555
     56pam=0
     57ldap=0
     58
    5659pie=1
    5760
    5861arch=$(uname -s)
    59 cpu=$(uname -m)
    6062
    6163GLIB_MIN_VERSION=2.16
     
    138140--rpc=0/1       Disable/enable RPC plugin interface     $rpc
    139141
     142--pam=0/1       Disable/enable PAM authentication       $pam
     143--ldap=0/1      Disable/enable LDAP authentication      $ldap
     144
    140145--doc=0/1       Disable/enable help.txt generation      $doc
    141146--debug=0/1     Disable/enable debugging                $debug
     
    200205
    201206TARGET=$target
    202 ARCH=$arch
    203 CPU=$cpu
    204207
    205208INSTALL=install -p
     
    249252#define PIDFILE "$pidfile"
    250253#define IPCSOCKET "$ipcsocket"
    251 #define ARCH "$arch"
    252 #define CPU "$cpu"
    253254EOF
    254255
     
    348349fi
    349350
    350 if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then
     351if ! $PKG_CONFIG --version > /dev/null 2>/dev/null; then
     352        echo
     353        echo 'Cannot find pkg-config, aborting.'
     354        exit 1
     355fi
     356
     357if $PKG_CONFIG glib-2.0; then
    351358        if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then
    352359                cat<<EOF >>Makefile.settings
     
    641648done
    642649echo "STORAGE_OBJS="$STORAGE_OBJS >> Makefile.settings
     650
     651authobjs=
     652authlibs=
     653if [ "$pam" = 0 ]; then
     654        echo '#undef WITH_PAM' >> config.h
     655else
     656        if ! echo '#include <security/pam_appl.h>' | $CC -E - >/dev/null 2>/dev/null; then
     657                echo 'Cannot find libpam development libraries, aborting. (Install libpam0g-dev?)'
     658                exit 1
     659        fi
     660        echo '#define WITH_PAM' >> config.h
     661        authobjs=$authobjs'auth_pam.o '
     662        authlibs=$authlibs'-lpam '
     663fi
     664if [ "$ldap" = 0 ]; then
     665        echo '#undef WITH_LDAP' >> config.h
     666else
     667        if ! echo '#include <ldap.h>' | $CC -E - >/dev/null 2>/dev/null; then
     668                echo 'Cannot find libldap development libraries, aborting. (Install libldap2-dev?)'
     669                exit 1
     670        fi
     671        echo '#define WITH_LDAP' >> config.h
     672        authobjs=$authobjs'auth_ldap.o '
     673        authlibs=$authlibs'-lldap '
     674fi
     675echo AUTH_OBJS=$authobjs >> Makefile.settings
     676echo EFLAGS+=$authlibs >> Makefile.settings
    643677
    644678if [ "$strip" = 0 ]; then
Note: See TracChangeset for help on using the changeset viewer.