1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
--- Yap-5.1.1.orig/configure.in 2006-03-21 07:51:42.000000000 +1200
+++ Yap-5.1.1/configure.in 2006-04-23 11:03:02.000000000 +1200
@@ -50,7 +50,7 @@
[ --enable-threads support system threads ],
threads="$enableval", threads=no)
AC_ARG_ENABLE(pthread-locking,
- [ --pthread-locking use pthread locking primitives for internal locking (requires threads) ],
+ [ --enable-pthread-locking use pthread locking primitives for internal locking (requires threads) ],
pthreadlocking="$enableval", pthreadlocking=no)
AC_ARG_ENABLE(max-performance,
[ --enable-max-performance try using the best flags for specific architecture ],
@@ -98,18 +98,31 @@
fi,
[yap_cv_gmp=yes])
-AC_ARG_ENABLE(myddas,
- [ --enable-myddas enable the MYDDAS library],
+AC_ARG_ENABLE(myddas-mysql,
+ [ --enable-myddas-mysql enable the MYDDAS MySQL library],
if test "$enableval" = yes; then
- yap_cv_myddas=yes
+ yap_cv_myddas_mysql=yes
elif test "$enableval" = no; then
- yap_cv_myddas=no
+ yap_cv_myddas_mysql=no
else
- yap_cv_myddas=$enable_myddas
- LDFLAGS="$LDFLAGS -L${yap_cv_myddas}/lib"
- CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas}/include"
+ yap_cv_myddas_mysql=$enable_myddas_mysql
+ LDFLAGS="$LDFLAGS -L${yap_cv_myddas_mysql}/lib"
+ CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas_mysql}/include"
fi,
- [yap_cv_myddas=no])
+ [yap_cv_myddas_mysql=no])
+
+AC_ARG_ENABLE(myddas-odbc,
+ [ --enable-myddas-odbc enable the MYDDAS ODBC library],
+ if test "$enableval" = yes; then
+ yap_cv_myddas_odbc=yes
+ elif test "$enableval" = no; then
+ yap_cv_myddas_odbc=no
+ else
+ yap_cv_myddas_odbc=$enable_myddas_odbc
+ LDFLAGS="$LDFLAGS -L${yap_cv_myddas_odbc}/lib"
+ CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas_odbc}/include"
+ fi,
+ [yap_cv_myddas_odbc=no])
AC_ARG_ENABLE(myddas-stats,
[ --enable-myddas-stats enable the MYDDAS library statistics support],
@@ -123,8 +136,6 @@
[ --with-jpl=JAVA_HOME use Java instalation in JAVA_HOME],
if test "$withval" = yes; then
yap_cv_jpl="$JAVA_HOME"
- dynamic_loading=yes
- maxmemory=yes
dnl threads=yes
elif test "$withval" = no; then
yap_cv_jpl=no
@@ -390,7 +401,7 @@
AC_CHECK_LIB(gmp,main)
fi
-if test "$yap_cv_myddas" != "no"
+if test "$yap_cv_myddas_mysql" != "no"
then
dnl check for mysql
AC_MSG_CHECKING(for main in -lmysqlclient)
@@ -409,7 +420,24 @@
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL"
LIBS="$LIBS -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv "
fi
-
+ if test "$yap_mysql" = no
+ then
+ echo "-------------------------------"
+ echo "--"
+ echo "--"
+ echo "--"
+ echo "-- There\'s no devel libraries for MySQL"
+ echo "--"
+ echo "--"
+ echo "--"
+ echo "-------------------------------"
+ exit
+ fi
+ cutc="yes"
+fi
+
+if test "$yap_cv_myddas_odbc" != "no"
+then
dnl check for odbc
AC_MSG_CHECKING(for main in -lodbc)
AC_CACHE_VAL(yap_odbc,[
@@ -428,40 +456,21 @@
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC"
LIBS="$LIBS -lodbc "
fi
-
- if test "$yap_mysql" = no -a "$yap_odbc" = no
+ if test "$yap_odbc" = no
then
echo "-------------------------------"
echo "--"
echo "--"
echo "--"
- echo "-- There\'s no devel libraries for MySQL or ODBC"
+ echo "-- There\'s no devel libraries for ODBC"
echo "--"
echo "--"
echo "--"
echo "-------------------------------"
exit
fi
-
- if test "$cutc" = no
- then
- echo
- echo
- echo "********************************************************"
- echo
- echo
- echo "!!!!!! WARNING !!!!!!"
- echo "The MYDDAS interface makes no sense without cut-c"
- echo "Please contact tiagosoares@ncc.up.pt for help"
- echo
- echo "Enabling cut-c"
- echo
- echo "********************************************************"
- echo
- echo
- cutc="yes"
- fi
-fi
+ cutc="yes"
+fi
if test "$myddasstats" = "yes"
then
@@ -850,7 +859,7 @@
then
AC_CHECK_HEADERS(gmp.h)
fi
-if test "$yap_cv_myddas" != "no"
+if test "$yap_cv_myddas_mysql" != "no"
then
AC_CHECK_HEADERS(mysql/mysql.h)
fi
|