aboutsummaryrefslogtreecommitdiff
path: root/build/import/libodbc/configure
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-28 09:56:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-28 09:56:02 +0200
commit8823eb1c28f6589068a080a68283a8ddb47cb71b (patch)
treee9b2bfd3e2bc3ee0d177d7a4b6e862e66886768e /build/import/libodbc/configure
parentc0fa8c535ddb136f5488dd1028a02e8d1f1d4465 (diff)
Add ODBC library import stub
Supports both Windows ODBC driver manager and unixODBC.
Diffstat (limited to 'build/import/libodbc/configure')
-rwxr-xr-xbuild/import/libodbc/configure30
1 files changed, 30 insertions, 0 deletions
diff --git a/build/import/libodbc/configure b/build/import/libodbc/configure
new file mode 100755
index 0000000..3a5301a
--- /dev/null
+++ b/build/import/libodbc/configure
@@ -0,0 +1,30 @@
+#! /usr/bin/env bash
+
+# file : build/import/libodbc/configure
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2009-2011 Boris Kolpackov
+# license : GNU GPL v2; see accompanying LICENSE file
+
+
+# $1 - out config file
+#
+# bld_root - build root
+# project_name - project name
+#
+
+source $bld_root/dialog.bash
+
+$echo
+$echo "Configuring external dependency on 'ODBC library' for '$project_name'."
+$echo
+
+$echo
+$echo "Please select the driver manager you would like to use:"
+$echo
+$echo "(1) Windows ODBC"
+$echo "(2) unixODBC"
+$echo
+
+manager=`read_option "windows unix" "unix"`
+
+echo libodbc_manager := $manager >$1