diff options
author | Matthias Klose <doko@ubuntu.com> | 2009-04-29 17:18:19 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2009-04-29 17:18:19 (GMT) |
commit | 10cbe4886e796ccb8e38bb4d93265ff50c8a761f (patch) | |
tree | ac4959fe049de03c6b30a884d8348ebf86194f18 /configure.in | |
parent | 971b1b100b02cf7d79ec2ca5599f916f31925b48 (diff) | |
download | cpython-10cbe4886e796ccb8e38bb4d93265ff50c8a761f.zip cpython-10cbe4886e796ccb8e38bb4d93265ff50c8a761f.tar.gz cpython-10cbe4886e796ccb8e38bb4d93265ff50c8a761f.tar.bz2 |
- Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
the order that backends for the dbm extension are checked.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 1cb6cfe..2c6cb52 100644 --- a/configure.in +++ b/configure.in @@ -1918,6 +1918,26 @@ AC_ARG_WITH(system_ffi, AC_MSG_RESULT($with_system_ffi) +# Check for --with-dbmliborder +AC_MSG_CHECKING(for --with-dbmliborder) +AC_ARG_WITH(dbmliborder, + AC_HELP_STRING(--with-dbmliborder=db1:db2:..., order to check db backends for dbm), +[ +if test x$with_dbmliborder = xyes +then +AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:...]) +else + for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do + if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb + then + AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:...]) + fi + done + AC_MSG_RESULT($with_dbmliborder) +fi], +[AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:...]) +]) + # Determine if signalmodule should be used. AC_SUBST(USE_SIGNAL_MODULE) AC_SUBST(SIGNAL_OBJS) |