10139N/A LUTIL_LIBS="$LUTIL_LIBS -lutil"],
10139N/A if test $have_setproctitle = yes ; then
10139N/A dnl ====================================================================
10139N/A-AC_DEFUN(AC_COMPILE_CHECK_SIZEOF,
10139N/A+AC_DEFUN([AC_COMPILE_CHECK_SIZEOF],
10139N/A define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl
10139N/A dnl --------------------------------------------------------------------
10139N/A dnl OpenLDAP version of STDC header check w/ EBCDIC support
10139N/A AC_CACHE_CHECK([for ANSI C header files], ol_cv_header_stdc,
10139N/A dnl Early MIPS compilers (used in Ultrix 4.2) don't like
10139N/A dnl "int x; int *volatile a = &x; *a = 0;"
10139N/A [AC_CACHE_CHECK(if compiler understands volatile, ol_cv_c_volatile,
10139N/A [AC_TRY_COMPILE([int x, y, z;],
10139N/A [volatile int a; int * volatile b = x ? &y : &z;
10139N/A dnl ====================================================================
10139N/A+AC_DEFUN([OL_TYPE_SIG_ATOMIC_T],
10139N/A [AC_CACHE_CHECK(for sig_atomic_t, ol_cv_type_sig_atomic_t,
10139N/A ol_cv_type_sig_atomic_t=yes, ol_cv_type_sig_atomic_t=no)])
10139N/A dnl ====================================================================
10139N/A [AC_CACHE_CHECK(for socklen_t, ol_cv_type_socklen_t,
10139N/A dnl ====================================================================
10139N/A dnl Define inet_aton is available
10139N/A [AC_CACHE_CHECK([for inet_aton()], ol_cv_func_inet_aton,
10139N/A dnl ====================================================================
10139N/A dnl check no of arguments for ctime_r
10139N/A-AC_DEFUN(OL_FUNC_CTIME_R_NARGS,
10139N/A+AC_DEFUN([OL_FUNC_CTIME_R_NARGS],
10139N/A [AC_CACHE_CHECK(number of arguments of ctime_r, ol_cv_func_ctime_r_nargs,
10139N/A [time_t ti; char *buffer; ctime_r(&ti,buffer,32);],
10139N/A dnl --------------------------------------------------------------------
10139N/A dnl check return type of ctime_r()
10139N/A+AC_DEFUN([OL_FUNC_CTIME_R_TYPE],
10139N/A [AC_CACHE_CHECK(return type of ctime_r, ol_cv_func_ctime_r_type,
10139N/A dnl ====================================================================
10139N/A dnl check no of arguments for gethostbyname_r
10139N/A-AC_DEFUN(OL_FUNC_GETHOSTBYNAME_R_NARGS,
10139N/A+AC_DEFUN([OL_FUNC_GETHOSTBYNAME_R_NARGS],
10139N/A [AC_CACHE_CHECK(number of arguments of gethostbyname_r,
10139N/A ol_cv_func_gethostbyname_r_nargs,
10139N/A dnl check no of arguments for gethostbyaddr_r
10139N/A-AC_DEFUN(OL_FUNC_GETHOSTBYADDR_R_NARGS,
10139N/A+AC_DEFUN([OL_FUNC_GETHOSTBYADDR_R_NARGS],
10139N/A [AC_CACHE_CHECK(number of arguments of gethostbyaddr_r,
10139N/A [ol_cv_func_gethostbyaddr_r_nargs],
10139N/A+ [AC_CACHE_CHECK([for ptrdiff_t], am_cv_type_ptrdiff_t,
10139N/A+ am_cv_type_ptrdiff_t=yes, am_cv_type_ptrdiff_t=no)])
10139N/A+ if test $am_cv_type_ptrdiff_t = yes; then
10139N/A+ AC_DEFINE(HAVE_PTRDIFF_T,1,[Define if system has ptrdiff_t type])
10139N/A # The database directory MUST exist prior to running slapd AND
10139N/A-directory %LOCALSTATEDIR%/openldap-data