- if test "$CATALOG" = "mysql" ; then
- DBPORT=3306
- else
- DBPORT=5432
- fi
-
- _WHICHDB="WHICHDB=\"--disable-nls --with-dbi --with-dbi-driver=${CATALOG} ${ENABLE_BATCH_INSERT} --with-db-port=${DBPORT}\""
- _LIBDBI="LIBDBI=\"dbdriver = dbi:${CATALOG}; dbaddress = 127.0.0.1; dbport = ${DBPORT}\""
-
+ if test "$CATALOG" = "mysql" ; then
+ DBPORT=3306
+ elif test "$CATALOG" = "postgresql" ; then
+ DBPORT=5432
+ elif test "$CATALOG" = "sqlite" ; then
+ DBPORT=0
+ elif test "$CATALOG" = "sqlite3" ; then
+ DBPORT=0
+ fi
+
+ _WHICHDB="WHICHDB=\"--with-dbi\""
+ _OPENSSL="OPENSSL=\"--with-openssl --disable-nls ${ENABLE_BATCH_INSERT} --with-dbi-driver=${CATALOG} --with-db-port=${DBPORT}\""
+ _LIBDBI="LIBDBI=\"dbdriver = dbi:${CATALOG}; dbaddress = 127.0.0.1; dbport = ${DBPORT}\""