1 dnl Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
2 dnl COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5 dnl Process this file with autoconf to produce a configure script.
9 AM_INIT_AUTOMAKE(main, 0.0.1)
10 AM_CONFIG_HEADER(src/config.h)
13 dnl Checks for programs.
17 AC_ARG_ENABLE(debug,--disable-debug,[
19 CXXFLAGS="-g -O0 -Wall"
23 AC_ARG_WITH(libldap,[ --with-libldap=DIR Path to the libldap library [/usr/local/lib]],[
24 LIBS="$LIBS -L$with_libldap"
26 LIBS="$LIBS -L/usr/local/lib"
30 AC_ARG_WITH(ldap-includes,[ --with-ldap-includes=DIR Path to the libldap include files [/usr/local/include]],[
31 CPPFLAGS="$CPPFLAGS -I$with_ldap_includes"
33 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
36 dnl Checks for libraries.
37 AC_CHECK_LIB(resolv,main)
38 AC_CHECK_LIB(lber,main)
39 AC_CHECK_LIB(ldap,main)
40 dnl Checks for header files.
42 AC_CHECK_HEADER(ldap.h)
43 AC_CHECK_HEADER(lber.h)
45 dnl Checks for typedefs, structures, and compiler characteristics.
47 dnl Checks for library functions.
49 AC_OUTPUT(Makefile src/Makefile)