diff options
| author | David M. Syzdek <david@syzdek.net> | 2008-10-12 16:28:34 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2008-10-12 16:28:34 -0800 |
| commit | 9d8a7eeec14efafcaa8162f0f260178649571cf6 (patch) | |
| tree | bce60222ba3ddfd133a6715a5749c3b54a406296 /configure.ac | |
| parent | 422e58995b74a962886b284aa5c165c1edf85b72 (diff) | |
| download | ldap-utils-9d8a7eeec14efafcaa8162f0f260178649571cf6.tar.gz ldap-utils-9d8a7eeec14efafcaa8162f0f260178649571cf6.tar.bz2 ldap-utils-9d8a7eeec14efafcaa8162f0f260178649571cf6.tar.xz ldap-utils-9d8a7eeec14efafcaa8162f0f260178649571cf6.zip | |
Resolving issues with porting to FreeBSD.
* Adding check for libgnugetopt
* Changing the order of compiler checks in configure.ac.
* Fixing type mismatch in ldaputils_config.c
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 8df5513..638c4d4 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -93,10 +93,24 @@ AC_PROG_LIBTOOL | |||
| 93 | # GNU gettext support | 93 | # GNU gettext support |
| 94 | AM_GNU_GETTEXT([external]) | 94 | AM_GNU_GETTEXT([external]) |
| 95 | 95 | ||
| 96 | AC_LDAP_UTILS_ENABLE_WARNINGS | ||
| 97 | |||
| 98 | # Defines macros | 96 | # Defines macros |
| 99 | AC_CHECK_HEADERS([termios.h]) | 97 | AC_CHECK_HEADERS([termios.h]) |
| 98 | AC_CHECK_HEADERS([ldap.h],, [AC_MSG_ERROR([missing required header])]) | ||
| 99 | AC_CHECK_HEADERS([getopt.h],, [AC_MSG_ERROR([missing required header])]) | ||
| 100 | AC_SEARCH_LIBS([getopt_long], c gnugetopt,,AC_MSG_ERROR([missing required function])) | ||
| 101 | AC_SEARCH_LIBS([ldap_first_entry], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 102 | AC_SEARCH_LIBS([ldap_free_urldesc], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 103 | AC_SEARCH_LIBS([ldap_get_dn], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 104 | AC_SEARCH_LIBS([ldap_initialize], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 105 | AC_SEARCH_LIBS([ldap_result], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 106 | AC_SEARCH_LIBS([ldap_sasl_bind_s], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 107 | AC_SEARCH_LIBS([ldap_search_ext], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 108 | AC_SEARCH_LIBS([ldap_set_option], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 109 | AC_SEARCH_LIBS([ldap_unbind_ext_s], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 110 | AC_SEARCH_LIBS([ldap_url_parse], ldap lber socket,,AC_MSG_ERROR([missing required function])) | ||
| 111 | AC_CHECK_TYPES([LDAPURLDesc],, [AC_MSG_ERROR([missing required datatype])],[#include <ldap.h>]) | ||
| 112 | |||
| 113 | AC_LDAP_UTILS_ENABLE_WARNINGS | ||
| 100 | 114 | ||
| 101 | # checks host | 115 | # checks host |
| 102 | case "${host_os}" in | 116 | case "${host_os}" in |
