1 -configure-enable-disable-vars- +=
2 "postgres" USE_PGSQL "auto" "use PostgreSQL"
3 "sqlite" USE_SQLITE "auto" "use Sqlite"
4 "firebird" USE_FBSQL "auto" "use Firebird"
5 "mysql" USE_MYSQL "auto" "use Mysql"
6 "excel" USE_XLSX "auto" "use XLSX writer"
7 "ixsql" USE_IXSQL "auto" "use ixsql"
8 "ixsqld" USE_IXSQLD "auto" "use ixsqld"
9 "monetdb" USE_MONETDB "auto" "use MonetDB"
10 "vista" USE_VISTA "auto" "use db_VISTA"
13 rule -configure-test-xlsxwriter- {
15 -configure-test-compile-cc- "xlsxwriter" :
16 "#include <xlsxwriter.h>"
18 "lxw_workbook *workbook;"
19 "workbook_close(workbook);"
26 rule -configure-test-dbvista- {
28 -configure-test-compile-cc- "dbvista" :
34 : "-I$(SDIR)/vista" : "-L $(SDIR)/slib -lvista"
40 Echo 'checking for' $(1) '... ' : -n ;
41 if [ Command pkg-config --exists $(1) : exit-code no-output ] == 0 {
51 Echo 'checking for mysql ... ' : -n ;
52 r = [ Command mysql_config --version : exit-code no-output ] ;
63 Echo 'checking for firebird ... ' : -n ;
64 r = [ Command fb_config --version : exit-code no-output ] ;
73 rule -custom-pkg-find- {
75 local cmd = [ Command "whereis -b $(2) | awk '{print $2}'" : parse-output ] ;
76 Echo 'checking for' $(1) '... ' : -n ;
78 r = [ Command $(2) --version : exit-code no-output ] ;
92 local pp = [ Command "echo $(PREFIX) | sed \"s/\\//\\\\\\\\\\\//g\"" : dummy ] ;
93 Command "sed \"s/@prefix/\\$(pp)/\" ./libxsql.pc.in > ./libxsql.pc" ;
94 -configure-pkg-config-necessary-
98 -configure-add-line- "SubInclude TOP src ixsql ;" ;
101 # if [ -pkg-find- libcurl ] == 1 && [ -pkg-find- libmicrohttpd ] == 1 && [ -pkg-find- uuid ] == 1 {
102 # -configure-add-line- "SubInclude TOP src contrib libquickmail ;" ;
103 # -configure-add-line- "SubInclude TOP src xsqld ;" ;
104 # HAVE_IXSQLD = 'yes' ;
109 if [ -custom-pkg-find- pq : pg_config ] == 1 {
110 -configure-add-line- "SubInclude TOP src postgres ;" ;
116 if [ -pkg-find- sqlite3 ] == 1 {
117 -configure-add-line- "SubInclude TOP src sqlite ;" ;
118 HAVE_SQLITE = 'yes' ;
123 if [ -custom-pkg-find- mysql : mysql_config ] == 1 {
124 -configure-add-line- "SubInclude TOP src mysql ;" ;
130 if [ -custom-pkg-find- firebird : fb_config ] == 1 {
131 -configure-add-line- "SubInclude TOP src firebird ;" ;
135 HAVE_MONETDB = 'no' ;
137 #if [ -pkg-find- monetdb-mapi ] == 1 && [ -pkg-find- monetdb-gdk ] == 1 && [ -pkg-find- monetdb-stream ] == 1 {
138 if [ -pkg-find- monetdb-mapi ] == 1 {
139 -configure-add-line- "SubInclude TOP src monetdb ;" ;
140 HAVE_MONETDB = 'yes' ;
145 if [ -configure-test-dbvista- ] == 1 {
146 -configure-add-line- "SubInclude TOP src rdm ;" ;
147 -configure-add-line- "SubInclude TOP src vista ;" ;
149 Command config.sh $(TOP) $(PREFIX) $(HAVE_VISTA) ;
154 if [ -pkg-find- libxlsxwriter ] == 1 {
155 -configure-add-line- "SubInclude TOP src excel ;" ;
160 -configure-add-line- "CFLAGS.all += -O0 -g3 ;" ;
161 -configure-add-line- "SubInclude TOP test ;" ;
163 -configure-add-line- "set-profile ;" ;
167 Echo ' console utilite (ixsql): ' $(HAVE_IXSQL) ;
168 # Echo ' server (xsqld): ' $(HAVE_IXSQLD) ;
169 Echo 'Database providers' ;
170 Echo ' PostgresSQL ' $(HAVE_PGSQL) ;
171 Echo ' Sqlite ' $(HAVE_SQLITE) ;
172 Echo ' Mysql ' $(HAVE_MYSQL) ;
173 Echo ' Firebird ' $(HAVE_FBSQL) ;
174 Echo ' MonetDB ' $(HAVE_MONETDB) ;
175 Echo ' db_VISTA ' $(HAVE_VISTA) ;
176 Echo 'Output provders' ;
180 Echo ' excel ' $(HAVE_XLSX) ;