diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-28 16:15:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-28 16:28:14 +0200 |
commit | e1f1d473091e2a33e9a18942dfb1416a27019e0f (patch) | |
tree | fa3077f5619cbb956c9d8c969a5c8f6f461ab9ca /m4 | |
parent | 3e4339ad65422372794d7ad66c290d283c1e3d05 (diff) |
Clear shell variables before appending
Diffstat (limited to 'm4')
-rw-r--r-- | m4/mysql.m4 | 2 | ||||
-rw-r--r-- | m4/oracle.m4 | 2 | ||||
-rw-r--r-- | m4/pgsql.m4 | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/m4/mysql.m4 b/m4/mysql.m4 index 102f150..a93efe6 100644 --- a/m4/mysql.m4 +++ b/m4/mysql.m4 @@ -207,6 +207,8 @@ AC_CONFIG_COMMANDS([mysql.options], rm -f db.options echo '#! /bin/sh' >db-driver + echo 'opt=' >>db-driver + if test x$mysql_user_set = xyes; then echo "--user '$mysql_user'" >>db.options echo 'opt="$opt --user='"$mysql_user"'"' >>db-driver diff --git a/m4/oracle.m4 b/m4/oracle.m4 index bf192e4..24e2724 100644 --- a/m4/oracle.m4 +++ b/m4/oracle.m4 @@ -184,6 +184,8 @@ AC_CONFIG_COMMANDS([oracle.options], rm -f db.options echo '#! /bin/sh' >db-driver + echo 'conn_str=' >>db-driver + if test x$oracle_user_set = xyes; then echo "--user '$oracle_user'" >>db.options echo 'conn_str="'"$oracle_user"'"' >>db-driver diff --git a/m4/pgsql.m4 b/m4/pgsql.m4 index a75a95e..b38bf34 100644 --- a/m4/pgsql.m4 +++ b/m4/pgsql.m4 @@ -153,6 +153,8 @@ AC_CONFIG_COMMANDS([pgsql.options], rm -f db.options echo '#! /bin/sh' >db-driver + echo 'opt=' >>db-driver + if test x$pgsql_user_set = xyes; then echo "--username '$pgsql_user'" >>db.options echo 'opt="$opt --username='"$pgsql_user"'"' >>db-driver |