Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
a746a09b
...
a746a09b008fa5fb297a50422913e1918341ad11
authored
2004-12-17 16:19:49 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Do not allow to specify modules more than once
1 parent
54200808
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
configure.ac
configure.ac
View file @
a746a09
...
...
@@ -453,6 +453,13 @@ AC_DEFUN([MU_SQL_LDADD],[
fi
])
add_sql_module() {
case $SQL_MODULES in
*$1*) AC_MSG_FAILURE([$1 specified twice]);;
*) SQL_MODULES="$SQL_MODULES $1";;
esac
}
## *********
## MySQL
## *********
...
...
@@ -473,7 +480,7 @@ AC_ARG_WITH(mysql,
AC_HELP_STRING([--with-mysql],
[Configure to work with MySQL]),
[case $withval in
yes)
SQL_MODULES="$SQL_MODULES
mysql"
yes)
add_sql_module "
mysql"
;;
no) ;;
esac])
...
...
@@ -496,7 +503,7 @@ AC_ARG_WITH(postgres,
AC_HELP_STRING([--with-postgres],
[Configure to work with Postgres]),
[case $withval in
yes)
SQL_MODULES="$SQL_MODULES
postgres"
yes)
add_sql_module "
postgres"
;;
no) ;;
esac])
...
...
@@ -508,7 +515,7 @@ AC_ARG_WITH(sql,
[for mod in `echo $withval | tr ':,' ' '`
do
if test -r $srcdir/sql/${mod}.c; then
SQL_MODULES="$SQL_MODULES
${mod}"
add_sql_module "
${mod}"
else
AC_MSG_ERROR(No such SQL module: $mod)
fi
...
...
Please
register
or
sign in
to post a comment