Mercurial > masqmail-0.2
comparison configure.ac @ 1:af25f5c39d90 0.2.21-4
added diff from debian (masqmail-0.2.21-4)
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 20:56:23 +0200 |
parents | 08114f7dcc23 |
children | 8c55886cacd8 |
comparison
equal
deleted
inserted
replaced
0:08114f7dcc23 | 1:af25f5c39d90 |
---|---|
36 dnl checks necessary for libc5: | 36 dnl checks necessary for libc5: |
37 dnl if there is res_search in libc, it is probably libc5 | 37 dnl if there is res_search in libc, it is probably libc5 |
38 dnl if not, it is probably libc6 and we need libresolv | 38 dnl if not, it is probably libc6 and we need libresolv |
39 AC_CHECK_LIB(c, res_search, need_resolv=no, need_resolv=yes) | 39 AC_CHECK_LIB(c, res_search, need_resolv=no, need_resolv=yes) |
40 if test "$need_resolv" = yes; then | 40 if test "$need_resolv" = yes; then |
41 AC_CHECK_LIB(resolv, res_search,has_resolv=yes,AC_MSG_ERROR("no libresolv")) | 41 AC_CHECK_LIB(resolv, res_search, |
42 RESOLV_LIBS='-lresolv' | 42 has_resolv=yes; RESOLV_LIBS="-lresolv", |
43 else | 43 has_resolv=no) |
44 RESOLV_LIBS='' | 44 if test "$has_resolv" = no; then |
45 saved_LIBS="$LIBS" | |
46 LIBS="$LIBS -lresolv" | |
47 AC_MSG_CHECKING(for res_search in -lresolv) | |
48 AC_TRY_LINK([#include <resolv.h>], | |
49 [res_search (0, 0, 0, 0, 0);], | |
50 RESOLV_LIBS="-lresolv"; has_resolv=yes; AC_MSG_RESULT(yes), | |
51 AC_MSG_RESULT(no)); | |
52 LIBS="$saved_LIBS" | |
53 fi | |
54 if test "$has_resolv" = no; then | |
55 AC_MSG_ERROR("no libresolv") | |
56 RESOLV_LIBS='' | |
57 fi | |
45 fi | 58 fi |
46 else | 59 else |
47 RESOLV_LIBS='' | 60 RESOLV_LIBS='' |
48 fi | 61 fi |
49 AC_SUBST(RESOLV_LIBS) | 62 AC_SUBST(RESOLV_LIBS) |