(AUTHLIBS_DEPENDENCY,SQLLIB_DEPENDENCY): New
variables. I still hope to find a better solution, though (see comment to imap4d_DEPENDENCIES in imap4d/Makefile.am). New SQL driver: ODBC (--with-sql=odbc or --with-odbc) Raised version number to 0.6.1
Showing
1 changed file
with
64 additions
and
5 deletions
1 | dnl Configuration for GNU Mailutils -- a suite of utilities for electronic mail | 1 | dnl Configuration for GNU Mailutils -- a suite of utilities for electronic mail |
2 | dnl | 2 | dnl |
3 | dnl Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 1999,2000,2001,2002,2003,2004,2005 Free Software Foundation, Inc. |
4 | dnl | 4 | dnl |
5 | dnl GNU Mailutils is free software; you can redistribute it and/or modify | 5 | dnl GNU Mailutils is free software; you can redistribute it and/or modify |
6 | dnl it under the terms of the GNU General Public License as published by | 6 | dnl it under the terms of the GNU General Public License as published by |
... | @@ -16,7 +16,7 @@ dnl You should have received a copy of the GNU General Public License | ... | @@ -16,7 +16,7 @@ dnl You should have received a copy of the GNU General Public License |
16 | dnl along with GNU Mailutils; if not, write to the Free Software | 16 | dnl along with GNU Mailutils; if not, write to the Free Software |
17 | dnl Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 | dnl Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 | ||
19 | AC_INIT([GNU Mailutils], [0.6], [bug-mailutils@gnu.org], [mailutils]) | 19 | AC_INIT([GNU Mailutils], [0.6.1], [bug-mailutils@gnu.org], [mailutils]) |
20 | AC_CONFIG_SRCDIR([mailbox/mailbox.c]) | 20 | AC_CONFIG_SRCDIR([mailbox/mailbox.c]) |
21 | AC_CONFIG_AUX_DIR([scripts]) | 21 | AC_CONFIG_AUX_DIR([scripts]) |
22 | AC_CANONICAL_TARGET([]) | 22 | AC_CANONICAL_TARGET([]) |
... | @@ -78,7 +78,13 @@ fi | ... | @@ -78,7 +78,13 @@ fi |
78 | MU_DEBUG_MODE | 78 | MU_DEBUG_MODE |
79 | 79 | ||
80 | # Initialize authlibs | 80 | # Initialize authlibs |
81 | |||
82 | AC_SUBST(AUTHLIBS) | ||
83 | AC_SUBST(AUTHLIBS_DEPENDENCY) | ||
84 | AC_SUBST(AUTHINCS) | ||
85 | |||
81 | AUTHLIBS=../auth/libmuauth.la | 86 | AUTHLIBS=../auth/libmuauth.la |
87 | AUTHLIBS_DEPENDENCY=$AUTHLIBS | ||
82 | 88 | ||
83 | dnl Check for arguments | 89 | dnl Check for arguments |
84 | AC_ARG_ENABLE([pam], | 90 | AC_ARG_ENABLE([pam], |
... | @@ -441,6 +447,7 @@ AC_SUBST(SQL_LTLIBOBJS) | ... | @@ -441,6 +447,7 @@ AC_SUBST(SQL_LTLIBOBJS) |
441 | BUILD_SQL= | 447 | BUILD_SQL= |
442 | AC_SUBST(BUILD_SQL) | 448 | AC_SUBST(BUILD_SQL) |
443 | AC_SUBST(SQLLIB) | 449 | AC_SUBST(SQLLIB) |
450 | AC_SUBST(SQLLIB_DEPENDENCY) | ||
444 | 451 | ||
445 | SQL_LOADABLE_MODULES= | 452 | SQL_LOADABLE_MODULES= |
446 | AC_SUBST(SQL_LOADABLE_MODULES) | 453 | AC_SUBST(SQL_LOADABLE_MODULES) |
... | @@ -508,6 +515,60 @@ AC_ARG_WITH(postgres, | ... | @@ -508,6 +515,60 @@ AC_ARG_WITH(postgres, |
508 | no) ;; | 515 | no) ;; |
509 | esac]) | 516 | esac]) |
510 | 517 | ||
518 | |||
519 | # ********* | ||
520 | # ODBC | ||
521 | # ********* | ||
522 | AH_TEMPLATE(USE_SQL_ODBC,[When defined, enable ODBC support]) | ||
523 | AH_TEMPLATE(HAVE_LIBODBC,[Define if you have libodbc or libiodbc]) | ||
524 | AC_SUBST(ODBCLIBS) | ||
525 | |||
526 | check_lib_odbc() { | ||
527 | MU_CHECK_LIB(odbc, SQLAllocHandle, [], | ||
528 | [ AC_DEFINE(USE_SQL_ODBC) | ||
529 | AC_DEFINE(HAVE_LIBODBC) | ||
530 | MU_SQL_LDADD(ODBCLIBS, $mu_cv_lib_odbc)], | ||
531 | [AC_MSG_FAILURE([The requested library libobdc is not found or is unusable])], | ||
532 | [/usr/local/lib]) | ||
533 | } | ||
534 | |||
535 | check_lib_iodbc() { | ||
536 | MU_CHECK_LIB(iodbc, SQLAllocHandle, [], | ||
537 | [ AC_DEFINE(USE_SQL_ODBC) | ||
538 | AC_DEFINE(HAVE_LIBODBC) | ||
539 | MU_SQL_LDADD(ODBCLIBS, $mu_cv_lib_iodbc)], | ||
540 | [AC_MSG_FAILURE([The requested library libiodbc is not found or is unusable])], | ||
541 | [/usr/local/lib]) | ||
542 | } | ||
543 | |||
544 | with_flag_used=odbc | ||
545 | |||
546 | odbc_init() { | ||
547 | case $with_flag_used in | ||
548 | yes|odbc|ODBC) | ||
549 | check_lib_odbc | ||
550 | ;; | ||
551 | iodbc|iODBC|IODBC) | ||
552 | check_lib_iodbc | ||
553 | ;; | ||
554 | no) ;; | ||
555 | esac | ||
556 | } | ||
557 | |||
558 | AC_ARG_WITH(odbc, | ||
559 | AC_HELP_STRING([--with-odbc[={odbc|iodbc}]], | ||
560 | [Configure to work with ODBC]), | ||
561 | [case $withval in | ||
562 | yes|odbc|ODBC|iodbc|iODBC|IODBC) | ||
563 | add_sql_module "odbc" | ||
564 | with_flag_used=$withval | ||
565 | ;; | ||
566 | no) with_flag_used=$withval | ||
567 | ;; | ||
568 | *) AC_MSG_ERROR([unsupported option value: $withval]) | ||
569 | esac]) | ||
570 | |||
571 | |||
511 | ### General SQL support | 572 | ### General SQL support |
512 | AC_ARG_WITH(sql, | 573 | AC_ARG_WITH(sql, |
513 | AC_HELP_STRING([--with-sql=modlist], | 574 | AC_HELP_STRING([--with-sql=modlist], |
... | @@ -530,6 +591,7 @@ if test -n "$SQL_MODULES"; then | ... | @@ -530,6 +591,7 @@ if test -n "$SQL_MODULES"; then |
530 | AC_DEFINE(USE_SQL) | 591 | AC_DEFINE(USE_SQL) |
531 | BUILD_SQL=libsql.la | 592 | BUILD_SQL=libsql.la |
532 | SQLLIB=../sql/libsql.la | 593 | SQLLIB=../sql/libsql.la |
594 | SQLLIB_DEPENDENCY=$SQLLIB | ||
533 | 595 | ||
534 | for module in $SQL_MODULES | 596 | for module in $SQL_MODULES |
535 | do | 597 | do |
... | @@ -639,9 +701,6 @@ char *crypt(const char *key, const char *salt); | ... | @@ -639,9 +701,6 @@ char *crypt(const char *key, const char *salt); |
639 | 701 | ||
640 | AC_CHECK_LIB(crypt, crypt) | 702 | AC_CHECK_LIB(crypt, crypt) |
641 | 703 | ||
642 | AC_SUBST(AUTHLIBS) | ||
643 | AC_SUBST(AUTHINCS) | ||
644 | |||
645 | #When using thread support some platforms need -D_REENTRANT to get the | 704 | #When using thread support some platforms need -D_REENTRANT to get the |
646 | #right prototypes including errno. | 705 | #right prototypes including errno. |
647 | dnl Check threading support | 706 | dnl Check threading support | ... | ... |
-
Please register or sign in to post a comment