Add -lm to AUTHLIBS when configured with --enable-mysql.
When checking for PAM: Append to AUTHLIBS instead of just assigning to it.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -136,7 +136,7 @@ AC_ARG_ENABLE(mysql, [ --enable-mysql enable mysql support (default no)], [use | ... | @@ -136,7 +136,7 @@ AC_ARG_ENABLE(mysql, [ --enable-mysql enable mysql support (default no)], [use |
136 | if test x"$use_mysql" = x"yes"; then | 136 | if test x"$use_mysql" = x"yes"; then |
137 | echo Enabling mysql support, be sure to edit \'MySql/MySql.h\' to change default values | 137 | echo Enabling mysql support, be sure to edit \'MySql/MySql.h\' to change default values |
138 | AC_CHECK_HEADER(mysql/mysql.h, | 138 | AC_CHECK_HEADER(mysql/mysql.h, |
139 | [AUTHLIBS="$AUTHLIBS -lmailMysql -lmysqlclient -L/usr/lib/mysql -L/usr/local/lib/mysql -L../MySql/" | 139 | [AUTHLIBS="$AUTHLIBS -lmailMysql -lmysqlclient -lm -L/usr/lib/mysql -L/usr/local/lib/mysql -L../MySql/" |
140 | BUILD_LIBMYSQL=libmailMysql.a | 140 | BUILD_LIBMYSQL=libmailMysql.a |
141 | AC_DEFINE(HAVE_MYSQL)]) | 141 | AC_DEFINE(HAVE_MYSQL)]) |
142 | fi | 142 | fi |
... | @@ -153,7 +153,7 @@ if test x"$testpam" = x"yes"; then | ... | @@ -153,7 +153,7 @@ if test x"$testpam" = x"yes"; then |
153 | if test x"$ac_cv_header_security_pam_appl_h" = x"yes"; then | 153 | if test x"$ac_cv_header_security_pam_appl_h" = x"yes"; then |
154 | AC_CHECK_LIB(dl, dlopen, [LDL=-ldl], [LDL=]) | 154 | AC_CHECK_LIB(dl, dlopen, [LDL=-ldl], [LDL=]) |
155 | AC_CHECK_LIB(pam, pam_start, | 155 | AC_CHECK_LIB(pam, pam_start, |
156 | AUTHLIBS="-lpam $LDL" ac_cv_have_libpam="yes",, $LDL) | 156 | AUTHLIBS="$AUTHLIBS -lpam $LDL" ac_cv_have_libpam="yes",, $LDL) |
157 | AC_DEFINE(USE_LIBPAM) | 157 | AC_DEFINE(USE_LIBPAM) |
158 | AM_CONDITIONAL(USE_LIBPAM, test x"$ac_cv_have_libpam" != xno) | 158 | AM_CONDITIONAL(USE_LIBPAM, test x"$ac_cv_have_libpam" != xno) |
159 | fi | 159 | fi | ... | ... |
-
Please register or sign in to post a comment