X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Facinclude.m4;h=0941acf0b345e8200d76ec7d93d9981a71532740;hb=HEAD;hp=ad9663b49120794bfa85f120d0f001929d2ab264;hpb=2ccadcbe7c7555495b9710d1a6a12ebc5e86adae;p=citadel.git diff --git a/citadel/acinclude.m4 b/citadel/acinclude.m4 deleted file mode 100644 index ad9663b49..000000000 --- a/citadel/acinclude.m4 +++ /dev/null @@ -1,48 +0,0 @@ -# CIT_STRUCT_TM -# ------------------ -# Figure out how to get the current GMT offset. If `struct tm' has a -# `tm_gmtoff' member, define `HAVE_STRUCT_TM_TM_GMTOFF'. Otherwise, if the -# external variable `timezone' is found, define `HAVE_TIMEZONE'. -AC_DEFUN([CIT_STRUCT_TM], -[AC_REQUIRE([AC_STRUCT_TM])dnl -AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[#include -#include <$ac_cv_struct_tm> -]) -if test "$ac_cv_member_struct_tm_tm_gmtoff" != yes; then - AC_CACHE_CHECK(for timezone, ac_cv_var_timezone, -[AC_TRY_LINK( -[#include ], -[printf("%ld", (long)timezone);], ac_cv_var_timezone=yes, ac_cv_var_timezone=no)]) - if test $ac_cv_var_timezone = yes; then - AC_DEFINE(HAVE_TIMEZONE, 1, - [Define if you don't have `tm_gmtoff' but do have the external - variable `timezone'.]) - fi -fi -])# CIT_STRUCT_TM - -AC_DEFUN([AC_CHECK_DB],[ -for lib in $1 -do - AS_VAR_PUSHDEF([ac_tr_db], [ac_cv_db_lib_${lib}])dnl - bogo_saved_LIBS="$LIBS" - LIBS="$LIBS -l$lib" - AC_CACHE_CHECK([for db_create in -l${lib}], ac_tr_db, - [AC_TRY_LINK([#include ], [int foo=db_create((void *)0, (void *) 0, -0 )], - [AS_VAR_SET(ac_tr_db, yes)], - [AS_VAR_SET(ac_tr_db, no)]) - ]) - AS_IF([test AS_VAR_GET(ac_tr_db) = yes], - [$2 - db=yes], - [LIBS="$bogo_saved_LIBS" - db=no]) - AS_VAR_POPDEF([ac_tr_db])dnl -test "$db" = "yes" && break -done -if test "$db" = "no"; then -$3 -fi -])# AC_CHECK_DB -