summaryrefslogtreecommitdiffstats
path: root/bdbobj/configure.ac
diff options
context:
space:
mode:
authorSam Varshavchik2022-05-22 23:52:28 -0400
committerSam Varshavchik2022-05-22 23:52:31 -0400
commit83e37efc8ed785cd095eb585ff747e5702ec49b3 (patch)
tree15aed6da6214e9a03d91be1754cd351175349945 /bdbobj/configure.ac
parent1ce81fa6af52651628a0bffcd8b15fdb459901a5 (diff)
downloadcourier-libs-83e37efc8ed785cd095eb585ff747e5702ec49b3.tar.bz2
gcc 12, autotool updates, sqwebmail fixes.
Diffstat (limited to 'bdbobj/configure.ac')
-rw-r--r--bdbobj/configure.ac18
1 files changed, 8 insertions, 10 deletions
diff --git a/bdbobj/configure.ac b/bdbobj/configure.ac
index 9761e20..6e3ae52 100644
--- a/bdbobj/configure.ac
+++ b/bdbobj/configure.ac
@@ -3,7 +3,7 @@ dnl
dnl Copyright 1998 - 1999 Double Precision, Inc. See COPYING for
dnl distribution information.
-AC_INIT(bdbobj, 0.10, [courier-users@lists.sourceforge.net])
+AC_INIT([bdbobj],[0.10],[courier-users@lists.sourceforge.net])
>confdefs.h # Kill PACKAGE_ macros
@@ -15,11 +15,10 @@ AC_CONFIG_HEADERS(config.h)
dnl Checks for programs.
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
-AC_PROG_CC_C99
AC_PROG_AWK
AC_PROG_CXX
-AC_ISC_POSIX
-AC_PROG_LIBTOOL
+AC_SEARCH_LIBS([strerror],[cposix])
+LT_INIT
dnl Checks for libraries.
@@ -49,15 +48,13 @@ AC_C_CONST
AC_TYPE_SIZE_T
AC_SYS_LARGEFILE
-AC_LANG_CPLUSPLUS
+AC_LANG([C++])
AC_CACHE_CHECK([if the C++ compiler needs -fhandle-exceptions],
ac_cv_need_handlexceptions,
-AC_TRY_COMPILE([],
-[
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
throw;
-], ac_cv_need_handlexceptions=no,
-ac_cv_need_handlexceptions=yes)
+]])],[ac_cv_need_handlexceptions=no],[ac_cv_need_handlexceptions=yes])
)
if test "$ac_cv_need_handlexceptions" = "yes"
@@ -77,4 +74,5 @@ then
CFLAGS="-Wall $CFLAGS"
fi
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT