fix warnings
This commit is contained in:
parent
cc1702d4b5
commit
e29b7afa1b
@ -116,6 +116,14 @@ close_tstring( char *p USES_REGS ) {
|
|||||||
static inline seq_type_t
|
static inline seq_type_t
|
||||||
mod_to_type( Term mod USES_REGS )
|
mod_to_type( Term mod USES_REGS )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// see pl-incl.h
|
||||||
|
#ifndef DBLQ_CHARS
|
||||||
|
#define DBLQ_CHARS (0x0004) /* "ab" --> ['a', 'b'] */
|
||||||
|
#define DBLQ_ATOM (0x0008) /* "ab" --> 'ab' */
|
||||||
|
#define DBLQ_STRING (0x0010) /* "ab" --> "ab" */
|
||||||
|
#define DBLQ_MASK (DBLQ_CHARS|DBLQ_ATOM|DBLQ_STRING)
|
||||||
|
#endif
|
||||||
unsigned int flags = Yap_GetModuleEntry(mod)->flags;
|
unsigned int flags = Yap_GetModuleEntry(mod)->flags;
|
||||||
if (flags & DBLQ_ATOM) {
|
if (flags & DBLQ_ATOM) {
|
||||||
return YAP_STRING_ATOM;
|
return YAP_STRING_ATOM;
|
||||||
|
@ -857,6 +857,9 @@
|
|||||||
/* Define to 1 if you have the <sys/ucontext.h> header file. */
|
/* Define to 1 if you have the <sys/ucontext.h> header file. */
|
||||||
#undef HAVE_SYS_UCONTEXT_H
|
#undef HAVE_SYS_UCONTEXT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/uio.h> header file. */
|
||||||
|
#undef HAVE_SYS_UIO_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/un.h> header file. */
|
/* Define to 1 if you have the <sys/un.h> header file. */
|
||||||
#undef HAVE_SYS_UN_H
|
#undef HAVE_SYS_UN_H
|
||||||
|
|
||||||
|
247
configure
vendored
247
configure
vendored
@ -700,6 +700,7 @@ ARCHIVE_CPPFLAGS
|
|||||||
ARCHIVE_LIBS
|
ARCHIVE_LIBS
|
||||||
ARCHIVE_PLTARGETS
|
ARCHIVE_PLTARGETS
|
||||||
ARCHIVE_TARGETS
|
ARCHIVE_TARGETS
|
||||||
|
CLIB_FLAGS_LIBUUID
|
||||||
CLIB_LIBUUID
|
CLIB_LIBUUID
|
||||||
CLIB_CRYPTOBJ
|
CLIB_CRYPTOBJ
|
||||||
CLIB_CRYPTLIBS
|
CLIB_CRYPTLIBS
|
||||||
@ -724,6 +725,7 @@ JITLD
|
|||||||
JITFLAGS
|
JITFLAGS
|
||||||
LLVM_CONFIG
|
LLVM_CONFIG
|
||||||
MYDDAS_LIBS
|
MYDDAS_LIBS
|
||||||
|
MYDDAS_CPPFLAGS
|
||||||
PKG_MYDDAS
|
PKG_MYDDAS
|
||||||
EXTRA_LIBS_FOR_SWIDLLS
|
EXTRA_LIBS_FOR_SWIDLLS
|
||||||
CLIB_PTHREADS
|
CLIB_PTHREADS
|
||||||
@ -901,7 +903,10 @@ with_stack_space
|
|||||||
with_trail_space
|
with_trail_space
|
||||||
with_max_workers
|
with_max_workers
|
||||||
with_max_threads
|
with_max_threads
|
||||||
with_myddas
|
enable_myddas
|
||||||
|
with_mysql
|
||||||
|
with_odbc
|
||||||
|
with_sqlite3
|
||||||
enable_myddas_stats
|
enable_myddas_stats
|
||||||
enable_myddas_top_level
|
enable_myddas_top_level
|
||||||
enable_jit
|
enable_jit
|
||||||
@ -912,7 +917,6 @@ with_rfc2045_version
|
|||||||
enable_mimecharset
|
enable_mimecharset
|
||||||
with_time
|
with_time
|
||||||
with_libarchive
|
with_libarchive
|
||||||
with_odbc
|
|
||||||
with_cudd
|
with_cudd
|
||||||
enable_bddlib
|
enable_bddlib
|
||||||
with_cplint
|
with_cplint
|
||||||
@ -1577,6 +1581,7 @@ Optional Features:
|
|||||||
--enable-april compile Yap to support April ILP system
|
--enable-april compile Yap to support April ILP system
|
||||||
--enable-dlcompat use dlcompat library for dynamic loading on Mac OS X
|
--enable-dlcompat use dlcompat library for dynamic loading on Mac OS X
|
||||||
--enable-horus enable CLPBN HORUS library.
|
--enable-horus enable CLPBN HORUS library.
|
||||||
|
--enable-myddas[=DIR] with the MYDDAS library
|
||||||
--enable-myddas-stats enable the MYDDAS library statistics support
|
--enable-myddas-stats enable the MYDDAS library statistics support
|
||||||
--enable-myddas-top-level enable the MYDDAS top-level support to MySQL
|
--enable-myddas-top-level enable the MYDDAS top-level support to MySQL
|
||||||
--enable-jit support just-in-time (JIT) compilation
|
--enable-jit support just-in-time (JIT) compilation
|
||||||
@ -1599,7 +1604,9 @@ Optional Packages:
|
|||||||
--with-trail-space=space default trail size in Kbytes
|
--with-trail-space=space default trail size in Kbytes
|
||||||
--with-max-workers=integer maximum number of or-parallel processes
|
--with-max-workers=integer maximum number of or-parallel processes
|
||||||
--with-max-threads=integer maximum number of or-parallel processes
|
--with-max-threads=integer maximum number of or-parallel processes
|
||||||
--with-myddas[=DIR] with the MYDDAS library
|
--with-mysql[=DIR] with the MYSQL library
|
||||||
|
--with-odbc[=DIR] with an ODBC library
|
||||||
|
--with-sqlite3[=DIR] with an SQLITE3 library
|
||||||
|
|
||||||
--without-time Exclude alarm library
|
--without-time Exclude alarm library
|
||||||
--with-libarchive=DIR libarchive package
|
--with-libarchive=DIR libarchive package
|
||||||
@ -4633,8 +4640,8 @@ if test "${with_gmp+set}" = set; then :
|
|||||||
elif test "$withval" = no; then
|
elif test "$withval" = no; then
|
||||||
yap_cv_gmp=no
|
yap_cv_gmp=no
|
||||||
else
|
else
|
||||||
yap_cv_gmp="$with_gmp"
|
yap_cv_gmp="$withval"
|
||||||
GMPDIR="$with_gmp"
|
GMPDIR="$withval"
|
||||||
LDFLAGS="$LDFLAGS -L${yap_cv_gmp}/lib"
|
LDFLAGS="$LDFLAGS -L${yap_cv_gmp}/lib"
|
||||||
LIBS="$LIBS -L${yap_cv_gmp}/lib"
|
LIBS="$LIBS -L${yap_cv_gmp}/lib"
|
||||||
CPPFLAGS="$CPPFLAGS -I${yap_cv_gmp}/include"
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_gmp}/include"
|
||||||
@ -8252,7 +8259,7 @@ fi
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
for ac_header in sys/ucontext.h sys/un.h sys/wait.h
|
for ac_header in sys/ucontext.h sys/uio.h sys/un.h sys/wait.h
|
||||||
do :
|
do :
|
||||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||||
@ -10312,34 +10319,88 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
MYDDAS_VERSION=0.9.1
|
MYDDAS_VERSION=0.9.2
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define MYDDAS_VERSION $MYDDAS_VERSION
|
#define MYDDAS_VERSION $MYDDAS_VERSION
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
OLD_LIBS="$LIBS"
|
||||||
|
OLD_CPPFLAGS="$CPPFLAGS"
|
||||||
|
MYDDAS_CPPFLAGS=""
|
||||||
|
|
||||||
# Check whether --with-myddas was given.
|
# Check whether --enable-myddas was given.
|
||||||
if test "${with_myddas+set}" = set; then :
|
if test "${enable_myddas+set}" = set; then :
|
||||||
withval=$with_myddas; if test "$withval" = yes; then
|
enableval=$enable_myddas; if test "$withval" = yes; then
|
||||||
yap_cv_myddas=/usr
|
yap_cv_myddas=/usr
|
||||||
elif test "$withval" = no; then
|
elif test "$withval" = no; then
|
||||||
yap_cv_myddas=no
|
yap_cv_myddas=no
|
||||||
else
|
else
|
||||||
yap_cv_myddas=$with_myddas
|
yap_cv_myddas=$withval
|
||||||
LDFLAGS="$LDFLAGS -L${yap_cv_myddas}/lib "
|
LDFLAGS="$LDFLAGS -L${yap_cv_myddas}/lib "
|
||||||
CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas}/include "
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_myddas}/include "
|
||||||
ODBC_LDFLAGS="-L${yap_cv_myddas}/lib "
|
MYDDAS_CPPFLAGS="$MYDDAS_CPPFLAGS -I${yap_cv_myddas}/include "
|
||||||
ODBC_CFLAGS="-I${yap_cv_myddas}/include "
|
|
||||||
SQLITE3_LDFLAGS="-L${yap_cv_myddas}/lib "
|
|
||||||
SQLITE3_CFLAGS="-I${yap_cv_myddas}/include "
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
yap_cv_myddas=/usr
|
yap_cv_myddas=/usr
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-mysql was given.
|
||||||
|
if test "${with_mysql+set}" = set; then :
|
||||||
|
withval=$with_mysql; if test "$withval" = yes; then
|
||||||
|
yap_cv_mysql=/usr
|
||||||
|
elif test "$withval" = no; then
|
||||||
|
yap_cv_mysql=no
|
||||||
|
else
|
||||||
|
yap_cv_mysql=$withval
|
||||||
|
LDFLAGS="$LDFLAGS -L${yap_cv_mysql}/lib "
|
||||||
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_mysql}/include "
|
||||||
|
MYDDAS_CPPFLAGS="$MYDDAS_CPPFLAGS -I${yap_cv_mysql}/include "
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
yap_cv_mysql=/usr
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-odbc was given.
|
||||||
|
if test "${with_odbc+set}" = set; then :
|
||||||
|
withval=$with_odbc; if test "$withval" = yes; then
|
||||||
|
yap_cv_odbc=/usr
|
||||||
|
elif test "$withval" = no; then
|
||||||
|
yap_cv_odbc=no
|
||||||
|
else
|
||||||
|
yap_cv_odbc=$withval
|
||||||
|
LDFLAGS="$LDFLAGS -L${yap_cv_odbc}/lib "
|
||||||
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_odbc}/include "
|
||||||
|
MYDDAS_CPPFLAGS="$MYDDAS_CPPFLAGS -I${yap_cv_odbc}/include "
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
yap_cv_odbc=/usr
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-sqlite3 was given.
|
||||||
|
if test "${with_sqlite3+set}" = set; then :
|
||||||
|
withval=$with_sqlite3; if test "$withval" = yes; then
|
||||||
|
yap_cv_sqlite3=/usr
|
||||||
|
elif test "$withval" = no; then
|
||||||
|
yap_cv_sqlite3=no
|
||||||
|
else
|
||||||
|
yap_cv_sqlite3=$withval
|
||||||
|
LDFLAGS="$LDFLAGS -L${yap_cv_sqlite3}/lib "
|
||||||
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_sqlite3}/include "
|
||||||
|
MYDDAS_CPPFLAGS="$MYDDAS_CPPFLAGS -I${yap_cv_sqlite3}/include "
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
yap_cv_sqlite3=/usr
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Check whether --enable-myddas-stats was given.
|
# Check whether --enable-myddas-stats was given.
|
||||||
if test "${enable_myddas_stats+set}" = set; then :
|
if test "${enable_myddas_stats+set}" = set; then :
|
||||||
enableval=$enable_myddas_stats; if test "$yap_cv_myddas" = no; then
|
enableval=$enable_myddas_stats; if test "$yap_cv_myddas" = no; then
|
||||||
@ -10367,7 +10428,6 @@ fi
|
|||||||
if test "$yap_cv_myddas" != "no"
|
if test "$yap_cv_myddas" != "no"
|
||||||
then
|
then
|
||||||
PKG_MYDDAS="packages/myddas"
|
PKG_MYDDAS="packages/myddas"
|
||||||
OLD_LIBS="$LIBS"
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mysql_init" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mysql_init" >&5
|
||||||
$as_echo_n "checking for library containing mysql_init... " >&6; }
|
$as_echo_n "checking for library containing mysql_init... " >&6; }
|
||||||
if ${ac_cv_search_mysql_init+:} false; then :
|
if ${ac_cv_search_mysql_init+:} false; then :
|
||||||
@ -10448,7 +10508,6 @@ done
|
|||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
*darwin*)
|
*darwin*)
|
||||||
LIBS="$LIBS -framework CoreFoundation"
|
LIBS="$LIBS -framework CoreFoundation"
|
||||||
MYDDAS_LIBS="$MYDDAS_LIBS -framework CoreFoundation"
|
|
||||||
;;
|
;;
|
||||||
**)
|
**)
|
||||||
;;
|
;;
|
||||||
@ -10511,9 +10570,9 @@ else
|
|||||||
yap_cv_odbc="no"
|
yap_cv_odbc="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$yap_cv_odbc" = yes
|
if test "$yap_cv_odbc" != no
|
||||||
then
|
then
|
||||||
MYDDAS_LIBS="$MYDDAS_LIBS -lodbc"
|
LIBS="$LIBS -lodbc"
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLAllocHandle" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLAllocHandle" >&5
|
||||||
$as_echo_n "checking for library containing SQLAllocHandle... " >&6; }
|
$as_echo_n "checking for library containing SQLAllocHandle... " >&6; }
|
||||||
@ -10573,9 +10632,9 @@ else
|
|||||||
yap_cv_odbc="no"
|
yap_cv_odbc="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$yap_cv_odbc" = yes
|
if test "$yap_cv_odbc" != no
|
||||||
then
|
then
|
||||||
MYDDAS_LIBS="$MYDDAS_LIBS -liodbc"
|
LIBS="$LIBS -liodbc"
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLAllocHandle" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SQLAllocHandle" >&5
|
||||||
$as_echo_n "checking for library containing SQLAllocHandle... " >&6; }
|
$as_echo_n "checking for library containing SQLAllocHandle... " >&6; }
|
||||||
@ -10635,9 +10694,9 @@ else
|
|||||||
yap_cv_odbc="no"
|
yap_cv_odbc="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$yap_cv_odbc" = yes
|
if test "$yap_cv_odbc" != no
|
||||||
then
|
then
|
||||||
MYDDAS_LIBS="$MYDDAS_LIBS -lodbc32"
|
LIBS="$LIBS -lodbc32"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -10661,27 +10720,18 @@ if test "x$ac_cv_header_sql_h" = xyes; then :
|
|||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define HAVE_SQL_H 1
|
#define HAVE_SQL_H 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
yap_cv_odbc="yes"
|
||||||
else
|
else
|
||||||
yap_cv_odbc="no"
|
yap_cv_odbc="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if test "$yap_cv_odbc" = yes
|
if test "$yap_cv_odbc" != no
|
||||||
then
|
then
|
||||||
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC"
|
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$myddasstats" = "yes"
|
|
||||||
then
|
|
||||||
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_STATS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$myddastoplevel" = "yes"
|
|
||||||
then
|
|
||||||
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_TOP_LEVEL"
|
|
||||||
fi
|
|
||||||
#from SWI PROSQLITE library.
|
#from SWI PROSQLITE library.
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
|
||||||
$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
|
$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
|
||||||
@ -10720,7 +10770,7 @@ fi
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
|
||||||
$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
|
$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
|
||||||
if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
|
if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
|
||||||
MYDDAS_LIBS="-lsqlite3 $MYDDAS_LIBS"
|
LIBS="-lsqlite3 $LIBS"
|
||||||
havelib=yes
|
havelib=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -10740,12 +10790,24 @@ fi
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if test "$yap_cv_odbc" = yes
|
if test "$yap_cv_sqlite3" != no
|
||||||
then
|
then
|
||||||
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_SQLITE3"
|
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_SQLITE3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$myddasstats" = "yes"
|
||||||
|
then
|
||||||
|
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_STATS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$myddastoplevel" = "yes"
|
||||||
|
then
|
||||||
|
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_TOP_LEVEL"
|
||||||
|
fi
|
||||||
|
|
||||||
|
MYDDAS_LIBS="$LIBS"
|
||||||
LIBS="$OLD_LIBS"
|
LIBS="$OLD_LIBS"
|
||||||
|
CPPFLAGS="$OLD_CPPFLAGS"
|
||||||
else
|
else
|
||||||
ENABLE_MYDDAS=""
|
ENABLE_MYDDAS=""
|
||||||
fi
|
fi
|
||||||
@ -10770,6 +10832,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --enable-jit was given.
|
# Check whether --enable-jit was given.
|
||||||
@ -11739,6 +11802,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CLIB_TARGETS="socket.$SO cgi.$SO memfile.$SO files.$SO mime.$SO crypt.$SO time.$SO"
|
CLIB_TARGETS="socket.$SO cgi.$SO memfile.$SO files.$SO mime.$SO crypt.$SO time.$SO"
|
||||||
|
|
||||||
case "$PLARCH" in
|
case "$PLARCH" in
|
||||||
@ -11918,7 +11982,69 @@ fi
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
dl to be installed in various places.
|
||||||
|
|
||||||
|
# brew in OSX
|
||||||
|
if test -d /usr/local/opt/ossp-uuid; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -I /usr/local/opt/ossp-uuid/include"
|
||||||
|
UUID_LIB_PATH="-L /usr/local/opt/ossp-uuid/lib"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# /opt
|
||||||
|
if test -d /opt/include/ossp; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -I /opt/include"
|
||||||
|
UUID_LIB_PATH="-L /opt/lib"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# /usr/local
|
||||||
|
if test -d /opt/include/ossp; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -I /opt/include"
|
||||||
|
UUID_LIB_PATH="-L /opt/lib"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x"$UUID_H" = "x"; then
|
||||||
|
ac_fn_c_check_header_compile "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "/*first*/
|
||||||
|
"
|
||||||
|
if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
|
||||||
|
UUID_H=ossp/uuid.h
|
||||||
|
has_uuid=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test x"$UUID_H" = "x" -a ! -d /usr/include/uuid; then
|
||||||
|
ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "/*first*/
|
||||||
|
"
|
||||||
|
if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
|
||||||
|
UUID_H=uuid/uuid.h
|
||||||
|
has_uuid=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test x"$UUID_H" = "x"; then
|
||||||
|
ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "/*first*/
|
||||||
|
"
|
||||||
|
if test "x$ac_cv_header_uuid_h" = xyes; then :
|
||||||
|
UUID_H=uuid.h
|
||||||
|
has_uuid=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
if test x"$UUID_H" = "x"; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find uuid.h -- dropping uuid.pl" >&5
|
||||||
|
$as_echo "$as_me: WARNING: Cannot find uuid.h -- dropping uuid.pl" >&2;}
|
||||||
|
else
|
||||||
|
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define UUID_H <$UUID_H>
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
has_uuid=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x"$has_uuid" != "x"; then
|
||||||
ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
|
ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
|
||||||
if test "x$ac_cv_func_uuid_create" = xyes; then :
|
if test "x$ac_cv_func_uuid_create" = xyes; then :
|
||||||
has_uuid=true
|
has_uuid=true
|
||||||
@ -11962,7 +12088,7 @@ fi
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_create" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_create" >&5
|
||||||
$as_echo "$ac_cv_lib_uuid_uuid_create" >&6; }
|
$as_echo "$ac_cv_lib_uuid_uuid_create" >&6; }
|
||||||
if test "x$ac_cv_lib_uuid_uuid_create" = xyes; then :
|
if test "x$ac_cv_lib_uuid_uuid_create" = xyes; then :
|
||||||
CLIB_LIBUUID=-luuid
|
CLIB_LIBUUID="$UUID_LIB_PATH -luuid"
|
||||||
has_uuid=true
|
has_uuid=true
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@ -11976,45 +12102,6 @@ $as_echo "$as_me: WARNING: Cannot find libossp-uuid or libuuid -- dropping uuid
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x"$has_uuid" != "x"; then
|
|
||||||
if test x"$UUID_H" = "x"; then
|
|
||||||
ac_fn_c_check_header_compile "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "/*first*/
|
|
||||||
"
|
|
||||||
if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
|
|
||||||
UUID_H=ossp/uuid.h
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
if test x"$UUID_H" = "x" -a ! -d /usr/include/uuid; then
|
|
||||||
ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "/*first*/
|
|
||||||
"
|
|
||||||
if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
|
|
||||||
UUID_H=uuid/uuid.h
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
if test x"$UUID_H" = "x"; then
|
|
||||||
ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "/*first*/
|
|
||||||
"
|
|
||||||
if test "x$ac_cv_header_uuid_h" = xyes; then :
|
|
||||||
UUID_H=uuid.h
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
if test x"$UUID_H" = "x"; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find uuid.h -- dropping uuid.pl" >&5
|
|
||||||
$as_echo "$as_me: WARNING: Cannot find uuid.h -- dropping uuid.pl" >&2;}
|
|
||||||
else
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
|
||||||
#define UUID_H <$UUID_H>
|
|
||||||
_ACEOF
|
|
||||||
|
|
||||||
CLIB_TARGETS="$CLIB_TARGETS uuid.$SO"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -14255,7 +14342,7 @@ else
|
|||||||
JAVA_TEST=Test.java
|
JAVA_TEST=Test.java
|
||||||
CLASS_TEST=Test.class
|
CLASS_TEST=Test.class
|
||||||
cat << \EOF > $JAVA_TEST
|
cat << \EOF > $JAVA_TEST
|
||||||
/* #line 14258 "configure" */
|
/* #line 14345 "configure" */
|
||||||
public class Test {
|
public class Test {
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@ -14431,7 +14518,7 @@ EOF
|
|||||||
if uudecode$EXEEXT Test.uue; then
|
if uudecode$EXEEXT Test.uue; then
|
||||||
ac_cv_prog_uudecode_base64=yes
|
ac_cv_prog_uudecode_base64=yes
|
||||||
else
|
else
|
||||||
echo "configure: 14434: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
echo "configure: 14521: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
||||||
echo "configure: failed file was:" >&5
|
echo "configure: failed file was:" >&5
|
||||||
cat Test.uue >&5
|
cat Test.uue >&5
|
||||||
ac_cv_prog_uudecode_base64=no
|
ac_cv_prog_uudecode_base64=no
|
||||||
@ -14562,7 +14649,7 @@ else
|
|||||||
JAVA_TEST=Test.java
|
JAVA_TEST=Test.java
|
||||||
CLASS_TEST=Test.class
|
CLASS_TEST=Test.class
|
||||||
cat << \EOF > $JAVA_TEST
|
cat << \EOF > $JAVA_TEST
|
||||||
/* #line 14565 "configure" */
|
/* #line 14652 "configure" */
|
||||||
public class Test {
|
public class Test {
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@ -14597,7 +14684,7 @@ JAVA_TEST=Test.java
|
|||||||
CLASS_TEST=Test.class
|
CLASS_TEST=Test.class
|
||||||
TEST=Test
|
TEST=Test
|
||||||
cat << \EOF > $JAVA_TEST
|
cat << \EOF > $JAVA_TEST
|
||||||
/* [#]line 14600 "configure" */
|
/* [#]line 14687 "configure" */
|
||||||
public class Test {
|
public class Test {
|
||||||
public static void main (String args[]) {
|
public static void main (String args[]) {
|
||||||
System.exit (0);
|
System.exit (0);
|
||||||
|
@ -280,8 +280,8 @@ AC_ARG_WITH(gmp,
|
|||||||
elif test "$withval" = no; then
|
elif test "$withval" = no; then
|
||||||
yap_cv_gmp=no
|
yap_cv_gmp=no
|
||||||
else
|
else
|
||||||
yap_cv_gmp="$with_gmp"
|
yap_cv_gmp="$withval"
|
||||||
GMPDIR="$with_gmp"
|
GMPDIR="$withval"
|
||||||
LDFLAGS="$LDFLAGS -L${yap_cv_gmp}/lib"
|
LDFLAGS="$LDFLAGS -L${yap_cv_gmp}/lib"
|
||||||
LIBS="$LIBS -L${yap_cv_gmp}/lib"
|
LIBS="$LIBS -L${yap_cv_gmp}/lib"
|
||||||
CPPFLAGS="$CPPFLAGS -I${yap_cv_gmp}/include"
|
CPPFLAGS="$CPPFLAGS -I${yap_cv_gmp}/include"
|
||||||
@ -1316,7 +1316,7 @@ AC_CHECK_HEADERS(sys/mman.h sys/ndir.h sys/param.h)
|
|||||||
AC_CHECK_HEADERS(sys/resource.h sys/select.h)
|
AC_CHECK_HEADERS(sys/resource.h sys/select.h)
|
||||||
AC_CHECK_HEADERS(sys/shm.h sys/socket.h sys/stat.h)
|
AC_CHECK_HEADERS(sys/shm.h sys/socket.h sys/stat.h)
|
||||||
AC_CHECK_HEADERS(sys/time.h sys/times.h sys/types.h)
|
AC_CHECK_HEADERS(sys/time.h sys/times.h sys/types.h)
|
||||||
AC_CHECK_HEADERS(sys/ucontext.h sys/un.h sys/wait.h)
|
AC_CHECK_HEADERS(sys/ucontext.h sys/uio.h sys/un.h sys/wait.h)
|
||||||
AC_CHECK_HEADERS(time.h ucontext.h unistd.h utime.h)
|
AC_CHECK_HEADERS(time.h ucontext.h unistd.h utime.h)
|
||||||
AC_CHECK_HEADERS(wctype.h)
|
AC_CHECK_HEADERS(wctype.h)
|
||||||
AC_CHECK_HEADERS(zlib.h zutil.h)
|
AC_CHECK_HEADERS(zlib.h zutil.h)
|
||||||
|
@ -23,7 +23,7 @@ SHAREDIR=$(ROOTDIR)/share
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
CXX=@CXX@
|
CXX=@CXX@
|
||||||
CXXFLAGS= @SHLIB_CXXFLAGS@ $(YAP_EXTRAS) $(DEFS) -I. -I$(srcdir) -I../.. -I$(srcdir)/../../include -I$(srcdir)/../../os -I "@GECODE_INCLUDES@"
|
CXXFLAGS= @SHLIB_CXXFLAGS@ $(YAP_EXTRAS) $(DEFS) -I. -I$(srcdir) -I../.. -I$(srcdir)/../../include -I$(srcdir)/../../os -I @GECODE_INCLUDES@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# You shouldn't need to change what follows.
|
# You shouldn't need to change what follows.
|
||||||
|
@ -210,11 +210,11 @@ myddas_stat_end_query( MYDDAS_STATS_TIME start )
|
|||||||
return diff;
|
return diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
#ifdef MYDDAS_STATS
|
||||||
|
/* measure transfer time */
|
||||||
static void
|
static void
|
||||||
myddas_stat_transfer_query( MYDDAS_STATS_TIME diff )
|
myddas_stat_transfer_query( MYDDAS_STATS_TIME diff )
|
||||||
{
|
{
|
||||||
#ifdef MYDDAS_STATS_DISABLED
|
|
||||||
/* Measure time spent by the sqlite3 Server
|
/* Measure time spent by the sqlite3 Server
|
||||||
transferring the result of the last query
|
transferring the result of the last query
|
||||||
back to the client */
|
back to the client */
|
||||||
@ -226,7 +226,7 @@ myddas_stat_transfer_query( MYDDAS_STATS_TIME diff )
|
|||||||
|
|
||||||
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(diff,time_copy);
|
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(diff,time_copy);
|
||||||
myddas_stats_subtract_time(diff,end,start);
|
myddas_stats_subtract_time(diff,end,start);
|
||||||
diff = myddas_stats_time_copy_to_final(diff);
|
diff = MYDDAS_STATS_TIME_copy_to_final(diff);
|
||||||
|
|
||||||
MYDDAS_FREE(end,struct myddas_stats_time_struct);
|
MYDDAS_FREE(end,struct myddas_stats_time_struct);
|
||||||
MYDDAS_FREE(start,struct myddas_stats_time_struct);
|
MYDDAS_FREE(start,struct myddas_stats_time_struct);
|
||||||
@ -252,6 +252,7 @@ myddas_stat_transfer_query( MYDDAS_STATS_TIME diff )
|
|||||||
/* This is only works if we use sqlite3_store_result */
|
/* This is only works if we use sqlite3_store_result */
|
||||||
MyddasUInt numberRows = sqlite3_num_rows(res_set);
|
MyddasUInt numberRows = sqlite3_num_rows(res_set);
|
||||||
MyddasUInt rows;
|
MyddasUInt rows;
|
||||||
|
myddas_stat_transfer_query( diff );
|
||||||
|
|
||||||
MYDDAS_STATS_CON_GET_TOTAL_ROWS(node,rows);
|
MYDDAS_STATS_CON_GET_TOTAL_ROWS(node,rows);
|
||||||
numberRows = numberRows + rows;
|
numberRows = numberRows + rows;
|
||||||
@ -283,8 +284,8 @@ myddas_stat_transfer_query( MYDDAS_STATS_TIME diff )
|
|||||||
MYDDAS_STATS_CON_GET_TOTAL_BYTES_TRANSFERING_FROM_DBSERVER_COUNT(node,count);
|
MYDDAS_STATS_CON_GET_TOTAL_BYTES_TRANSFERING_FROM_DBSERVER_COUNT(node,count);
|
||||||
MYDDAS_STATS_CON_SET_TOTAL_BYTES_TRANSFERING_FROM_DBSERVER_COUNT(node,++count);
|
MYDDAS_STATS_CON_SET_TOTAL_BYTES_TRANSFERING_FROM_DBSERVER_COUNT(node,++count);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* db_query: SQLQuery x ResultSet x connection */
|
/* db_query: SQLQuery x ResultSet x connection */
|
||||||
static Int
|
static Int
|
||||||
@ -634,13 +635,17 @@ c_sqlite3_row( USES_REGS1 ) {
|
|||||||
list = arg_list_args;
|
list = arg_list_args;
|
||||||
arity = IntegerOfTerm(arg_arity);
|
arity = IntegerOfTerm(arg_arity);
|
||||||
sqlite3 *db = res_set->db;
|
sqlite3 *db = res_set->db;
|
||||||
|
|
||||||
if (res_set->stmt == NULL ) {
|
if (res_set->stmt == NULL ) {
|
||||||
CACHE_REGS
|
CACHE_REGS
|
||||||
Int indx = IntegerOfTerm(EXTRA_CBACK_CUT_ARG(Term,2));
|
Int indx = IntegerOfTerm(EXTRA_CBACK_CUT_ARG(Term,2));
|
||||||
Int rc = true;
|
Int rc = true;
|
||||||
// data needs to be copied to Prolog
|
// data needs to be copied to Prolog
|
||||||
// row by row
|
// row by row
|
||||||
|
#ifdef MYDDAS_STATS
|
||||||
|
MYDDAS_STATS_TIME diff;
|
||||||
|
|
||||||
|
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(diff,time_copy);
|
||||||
|
#endif
|
||||||
while (indx/arity < res_set->nrows)
|
while (indx/arity < res_set->nrows)
|
||||||
{
|
{
|
||||||
for (i = 0; i < arity; i++)
|
for (i = 0; i < arity; i++)
|
||||||
@ -654,6 +659,9 @@ c_sqlite3_row( USES_REGS1 ) {
|
|||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
#ifdef MYDDAS_STATS
|
||||||
|
myddas_stat_transfer_query( diff );
|
||||||
|
#endif
|
||||||
cut_fail();
|
cut_fail();
|
||||||
}
|
}
|
||||||
// busy-waiting
|
// busy-waiting
|
||||||
@ -721,7 +729,6 @@ c_sqlite3_row( USES_REGS1 ) {
|
|||||||
#ifdef MYDDAS_STATS
|
#ifdef MYDDAS_STATS
|
||||||
end = myddas_stats_walltime();
|
end = myddas_stats_walltime();
|
||||||
|
|
||||||
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(diff,time_copy);
|
|
||||||
myddas_stats_subtract_time(diff,end,start);
|
myddas_stats_subtract_time(diff,end,start);
|
||||||
diff = myddas_stats_time_copy_to_final(diff);
|
diff = myddas_stats_time_copy_to_final(diff);
|
||||||
|
|
||||||
|
@ -180,8 +180,8 @@ extern BPLONG toam_signal_vec;
|
|||||||
|
|
||||||
#define unify YAP_UnifyINT
|
#define unify YAP_UnifyINT
|
||||||
|
|
||||||
extern inline INLINE_ONLY YAP_UnifyINT(YAP_Term t1, YAP_Term t2);
|
extern inline INLINE_ONLY int YAP_UnifyINT(YAP_Term t1, YAP_Term t2);
|
||||||
extern inline INLINE_ONLY YAP_UnifyINT(YAP_Term t1, YAP_Term t2) { return YAP_Unify(t1,t2); }
|
extern inline INLINE_ONLY int YAP_UnifyINT(YAP_Term t1, YAP_Term t2) { return YAP_Unify(t1,t2); }
|
||||||
|
|
||||||
INLINE_ONLY extern inline char *
|
INLINE_ONLY extern inline char *
|
||||||
bp_term_2_string(TERM t)
|
bp_term_2_string(TERM t)
|
||||||
|
Reference in New Issue
Block a user