Changes in configure [2f8e3ca:9ae8f82]
Legend:
- Unmodified
- Added
- Removed
-
configure
r2f8e3ca r9ae8f82 52 52 ssl=auto 53 53 54 pam=0 55 ldap=0 56 54 57 pie=1 55 58 56 59 arch=$(uname -s) 57 cpu=$(uname -m)58 60 59 61 GLIB_MIN_VERSION=2.16 … … 133 135 --purple=0/1 Disable/enable libpurple support $purple 134 136 (automatically disables other protocol modules) 137 138 --pam=0/1 Disable/enable PAM authentication $pam 139 --ldap=0/1 Disable/enable LDAP authentication $ldap 135 140 136 141 --doc=0/1 Disable/enable help.txt generation $doc … … 194 199 195 200 TARGET=$target 196 ARCH=$arch197 CPU=$cpu198 201 199 202 INSTALL=install -p … … 242 245 #define PIDFILE "$pidfile" 243 246 #define IPCSOCKET "$ipcsocket" 244 #define ARCH "$arch"245 #define CPU "$cpu"246 247 EOF 247 248 … … 335 336 fi 336 337 337 if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then 338 if ! $PKG_CONFIG --version > /dev/null 2>/dev/null; then 339 echo 340 echo 'Cannot find pkg-config, aborting.' 341 exit 1 342 fi 343 344 if $PKG_CONFIG glib-2.0; then 338 345 if $PKG_CONFIG glib-2.0 --atleast-version=$GLIB_MIN_VERSION; then 339 346 cat<<EOF >>Makefile.settings … … 628 635 done 629 636 echo "STORAGE_OBJS="$STORAGE_OBJS >> Makefile.settings 637 638 authobjs= 639 authlibs= 640 if [ "$pam" = 0 ]; then 641 echo '#undef WITH_PAM' >> config.h 642 else 643 if ! echo '#include <security/pam_appl.h>' | $CC -E - >/dev/null 2>/dev/null; then 644 echo 'Cannot find libpam development libraries, aborting. (Install libpam0g-dev?)' 645 exit 1 646 fi 647 echo '#define WITH_PAM' >> config.h 648 authobjs=$authobjs'auth_pam.o ' 649 authlibs=$authlibs'-lpam ' 650 fi 651 if [ "$ldap" = 0 ]; then 652 echo '#undef WITH_LDAP' >> config.h 653 else 654 if ! echo '#include <ldap.h>' | $CC -E - >/dev/null 2>/dev/null; then 655 echo 'Cannot find libldap development libraries, aborting. (Install libldap2-dev?)' 656 exit 1 657 fi 658 echo '#define WITH_LDAP' >> config.h 659 authobjs=$authobjs'auth_ldap.o ' 660 authlibs=$authlibs'-lldap ' 661 fi 662 echo AUTH_OBJS=$authobjs >> Makefile.settings 663 echo EFLAGS+=$authlibs >> Makefile.settings 630 664 631 665 if [ "$strip" = 0 ]; then
Note: See TracChangeset
for help on using the changeset viewer.