aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2008-10-12 16:28:34 -0800
committerDavid M. Syzdek <david@syzdek.net>2008-10-12 16:28:34 -0800
commit9d8a7eeec14efafcaa8162f0f260178649571cf6 (patch)
treebce60222ba3ddfd133a6715a5749c3b54a406296 /configure.ac
parent422e58995b74a962886b284aa5c165c1edf85b72 (diff)
downloadldap-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.ac18
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
94AM_GNU_GETTEXT([external]) 94AM_GNU_GETTEXT([external])
95 95
96AC_LDAP_UTILS_ENABLE_WARNINGS
97
98# Defines macros 96# Defines macros
99AC_CHECK_HEADERS([termios.h]) 97AC_CHECK_HEADERS([termios.h])
98AC_CHECK_HEADERS([ldap.h],, [AC_MSG_ERROR([missing required header])])
99AC_CHECK_HEADERS([getopt.h],, [AC_MSG_ERROR([missing required header])])
100AC_SEARCH_LIBS([getopt_long], c gnugetopt,,AC_MSG_ERROR([missing required function]))
101AC_SEARCH_LIBS([ldap_first_entry], ldap lber socket,,AC_MSG_ERROR([missing required function]))
102AC_SEARCH_LIBS([ldap_free_urldesc], ldap lber socket,,AC_MSG_ERROR([missing required function]))
103AC_SEARCH_LIBS([ldap_get_dn], ldap lber socket,,AC_MSG_ERROR([missing required function]))
104AC_SEARCH_LIBS([ldap_initialize], ldap lber socket,,AC_MSG_ERROR([missing required function]))
105AC_SEARCH_LIBS([ldap_result], ldap lber socket,,AC_MSG_ERROR([missing required function]))
106AC_SEARCH_LIBS([ldap_sasl_bind_s], ldap lber socket,,AC_MSG_ERROR([missing required function]))
107AC_SEARCH_LIBS([ldap_search_ext], ldap lber socket,,AC_MSG_ERROR([missing required function]))
108AC_SEARCH_LIBS([ldap_set_option], ldap lber socket,,AC_MSG_ERROR([missing required function]))
109AC_SEARCH_LIBS([ldap_unbind_ext_s], ldap lber socket,,AC_MSG_ERROR([missing required function]))
110AC_SEARCH_LIBS([ldap_url_parse], ldap lber socket,,AC_MSG_ERROR([missing required function]))
111AC_CHECK_TYPES([LDAPURLDesc],, [AC_MSG_ERROR([missing required datatype])],[#include <ldap.h>])
112
113AC_LDAP_UTILS_ENABLE_WARNINGS
100 114
101# checks host 115# checks host
102case "${host_os}" in 116case "${host_os}" in