head 1.27; access; symbols UUID_1_6_2:1.26 UUID_1_6_1:1.25 UUID_1_6_0:1.22 UUID_1_5_1:1.21 UUID_1_5_0:1.21 UUID_1_4_2:1.21 UUID_1_4_1:1.20 UUID_1_4_0:1.20 UUID_1_3_2:1.18 UUID_1_3_1:1.18 UUID_1_3_0:1.18 UUID_1_2_1:1.14 UUID_1_2_0:1.14 UUID_1_1_2:1.14 UUID_1_1_1:1.13 UUID_1_1_0:1.12 UUID_1_0_4:1.11 UUID_1_0_3:1.11 UUID_1_0_2:1.11 UUID_1_0_1:1.11 UUID_1_0_0:1.11 UUID_0_9_7:1.11 UUID_0_9_6:1.10 UUID_0_9_5:1.9 UUID_0_9_4:1.9 UUID_0_9_3:1.9 UUID_0_9_2:1.8 UUID_0_9_1:1.6 UUID_0_9_0:1.5; locks; strict; comment @# @; 1.27 date 2008.07.05.12.58.15; author rse; state dead; branches; next 1.26; commitid XLXN7vUmABwPcC9t; 1.26 date 2008.03.06.12.14.49; author rse; state Exp; branches; next 1.25; commitid DMtu1kD8JmZZQ3Us; 1.25 date 2008.02.21.15.34.51; author rse; state Exp; branches; next 1.24; commitid byWeYC7uJCoBphSs; 1.24 date 2008.02.21.08.58.45; author rse; state Exp; branches; next 1.23; commitid 49UAeQtix4DIdfSs; 1.23 date 2008.01.10.14.18.46; author rse; state Exp; branches; next 1.22; commitid LqMgFGBgTR7clSMs; 1.22 date 2007.01.01.18.14.54; author rse; state Exp; branches; next 1.21; commitid jOXiIO8S8v7xFP0s; 1.21 date 2006.03.13.09.39.11; author rse; state Exp; branches; next 1.20; commitid enz1Xi0mSbbwg0pr; 1.20 date 2006.01.13.06.44.30; author rse; state Exp; branches; next 1.19; commitid hYfQc9JIMh4bcphr; 1.19 date 2006.01.12.20.31.50; author rse; state Exp; branches; next 1.18; commitid zorI32uWUKI1Olhr; 1.18 date 2005.09.02.14.32.40; author rse; state Exp; branches; next 1.17; 1.17 date 2005.09.01.22.24.01; author rse; state Exp; branches; next 1.16; 1.16 date 2005.08.31.14.29.56; author rse; state Exp; branches; next 1.15; 1.15 date 2005.08.31.09.59.45; author rse; state Exp; branches; next 1.14; 1.14 date 2004.12.31.19.20.34; author rse; state Exp; branches; next 1.13; 1.13 date 2004.11.18.15.57.00; author rse; state Exp; branches; next 1.12; 1.12 date 2004.11.03.17.07.57; author rse; state Exp; branches; next 1.11; 1.11 date 2004.02.13.21.01.41; author rse; state Exp; branches; next 1.10; 1.10 date 2004.02.11.14.38.40; author rse; state Exp; branches; next 1.9; 1.9 date 2004.01.16.15.35.37; author rse; state Exp; branches; next 1.8; 1.8 date 2004.01.15.16.22.09; author rse; state Exp; branches; next 1.7; 1.7 date 2004.01.15.12.43.52; author rse; state Exp; branches; next 1.6; 1.6 date 2004.01.13.19.43.14; author rse; state Exp; branches; next 1.5; 1.5 date 2004.01.11.08.27.18; author rse; state Exp; branches; next 1.4; 1.4 date 2004.01.10.21.47.45; author rse; state Exp; branches; next 1.3; 1.3 date 2004.01.10.18.50.24; author rse; state Exp; branches; next 1.2; 1.2 date 2004.01.10.17.01.22; author rse; state Exp; branches; next 1.1; 1.1 date 2004.01.06.20.14.28; author rse; state Exp; branches; next ; desc @@ 1.27 log @remove OSSP uuid from CVS -- it is now versioned controlled in a Monotone repository @ text @dnl ## dnl ## OSSP uuid - Universally Unique Identifier dnl ## Copyright (c) 2004-2008 Ralf S. Engelschall dnl ## Copyright (c) 2004-2008 The OSSP Project dnl ## dnl ## This file is part of OSSP uuid, a library for the generation dnl ## of UUIDs which can found at http://www.ossp.org/pkg/lib/uuid/ dnl ## dnl ## Permission to use, copy, modify, and distribute this software for dnl ## any purpose with or without fee is hereby granted, provided that dnl ## the above copyright notice and this permission notice appear in all dnl ## copies. dnl ## dnl ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED dnl ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF dnl ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. dnl ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR dnl ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, dnl ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT dnl ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF dnl ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND dnl ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, dnl ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT dnl ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF dnl ## SUCH DAMAGE. dnl ## dnl ## uuid.ac: UUID specific Autoconf checks dnl ## dnl # Check for anything OSSP uuid wants to know dnl # configure.in: dnl # UUID_CHECK_ALL AC_DEFUN(UUID_CHECK_ALL,[ dnl # make sure libnsl and libsocket are linked in if they exist AC_CHECK_LIB(nsl, gethostname) if test ".`echo $LIBS | grep nsl`" = .; then AC_CHECK_LIB(nsl, gethostbyname) fi AC_CHECK_LIB(socket, accept) dnl # check for portable va_copy() AC_CHECK_VA_COPY() dnl # check for system headers AC_CHECK_HEADERS(sys/types.h sys/param.h sys/time.h sys/socket.h sys/sockio.h sys/ioctl.h sys/select.h) AC_CHECK_HEADERS(netdb.h ifaddrs.h net/if.h net/if_dl.h net/if_arp.h netinet/in.h arpa/inet.h,,, [[ #if HAVE_SYS_TYPES_H #include #endif #if HAVE_SYS_SOCKET_H #include #endif #if HAVE_SYS_IOCTL_H #include #endif ]]) dnl # check for existence of particular C structures AC_MSG_CHECKING(for struct timeval) AC_TRY_COMPILE([ #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #include ],[ struct timeval tv; ], [ msg="yes" ], [ msg="no" ]) if test ".$msg" = .yes; then AC_DEFINE(HAVE_STRUCT_TIMEVAL, 1, [define if exists "struct timeval"]) fi AC_MSG_RESULT([$msg]) dnl # check for functions AC_CHECK_FUNCS(getifaddrs nanosleep Sleep gettimeofday clock_gettime) dnl # check size of built-in types AC_CHECK_TYPES([long long, long double]) AC_CHECK_SIZEOF(char, 1) AC_CHECK_SIZEOF(unsigned char, 1) AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(unsigned short, 2) AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(unsigned int, 4) AC_CHECK_SIZEOF(long, 4) AC_CHECK_SIZEOF(unsigned long, 4) AC_CHECK_SIZEOF(long long, 8) AC_CHECK_SIZEOF(unsigned long long, 8) dnl # configure option --with-dce AC_ARG_WITH([dce], AC_HELP_STRING([--with-dce], [build DCE 1.1 backward compatibility API]), [ac_cv_with_dce=$withval], [ac_cv_with_dce=no]) AC_CACHE_CHECK([whether to build DCE 1.1 backward compatibility API], [ac_cv_with_dce], [ac_cv_with_dce=no]) if test ".$ac_cv_with_dce" = ".yes"; then AC_DEFINE(WITH_DCE, 1, [whether to build DCE 1.1 backward compatibility API]) WITH_DCE='yes' DCE_NAME='$(DCE_NAME)' else WITH_DCE='no' DCE_NAME='' fi AC_SUBST(WITH_DCE) AC_SUBST(DCE_NAME) dnl # configure option --with-cxx AC_ARG_WITH([cxx], AS_HELP_STRING([--with-cxx], [build C++ bindings to C API]), [ac_cv_with_cxx=$withval], [ac_cv_with_cxx=no]) AC_CACHE_CHECK([whether to build C++ bindings to C API], [ac_cv_with_cxx], [ac_cv_with_cxx=no]) if test ".$ac_cv_with_cxx" = ".yes"; then AC_DEFINE(WITH_CXX, 1, [whether to build C++ bindings to C API]) WITH_CXX='yes' CXX_NAME='$(CXX_NAME)' AC_PROG_CXX else WITH_CXX='no' CXX_NAME='' fi AC_SUBST(CXX_NAME) AC_SUBST(WITH_CXX) dnl # configure option --with-perl AC_ARG_WITH([perl], AS_HELP_STRING([--with-perl], [build Perl bindings to C API]), [ac_cv_with_perl=$withval], [ac_cv_with_perl=no]) AC_CACHE_CHECK([whether to build Perl bindings to C API], [ac_cv_with_perl], [ac_cv_with_perl=no]) AC_ARG_WITH([perl-compat], AS_HELP_STRING([--with-perl-compat], [build Perl compatibility API]), [ac_cv_with_perl_compat=$withval], [ac_cv_with_perl_compat=no]) AC_CACHE_CHECK([whether to build Perl compatibility API], [ac_cv_with_perl_compat], [ac_cv_with_perl_compat=no]) if test ".$ac_cv_with_perl" = ".yes"; then AC_DEFINE(WITH_PERL, 1, [whether to build Perl bindings to C API]) WITH_PERL='yes' PERL_NAME='$(PERL_NAME)' else WITH_PERL='no' PERL_NAME='' fi if test ".$ac_cv_with_perl_compat" = ".yes"; then AC_DEFINE(WITH_PERL_COMPAT, 1, [whether to build Perl compatibility API]) WITH_PERL_COMPAT=1 else WITH_PERL_COMPAT=0 fi AC_SUBST(PERL_NAME) AC_SUBST(WITH_PERL) AC_SUBST(WITH_PERL_COMPAT) AC_PATH_PROG(PERL, perl, NA) if test ".$ac_cv_with_perl" = ".yes" -a ".$PERL" = ".NA"; then AC_ERROR([required Perl interpreter not found in \$PATH]) fi dnl # configure option --with-php AC_ARG_WITH([php], AS_HELP_STRING([--with-php], [build PHP bindings to C API]), [ac_cv_with_php=$withval], [ac_cv_with_php=no]) AC_CACHE_CHECK([whether to build PHP bindings to C API], [ac_cv_with_php], [ac_cv_with_php=no]) if test ".$ac_cv_with_php" = ".yes"; then AC_DEFINE(WITH_PHP, 1, [whether to build PHP bindings to C API]) WITH_PHP='yes' PHP_NAME='$(PHP_NAME)' else WITH_PHP='no' PHP_NAME='' fi AC_SUBST(PHP_NAME) AC_SUBST(WITH_PHP) AC_PATH_PROGS(PHP, php5 php, NA) if test ".$ac_cv_with_php" = ".yes" -a ".$PHP" = ".NA"; then AC_ERROR([required PHP interpreter not found in \$PATH]) fi if test ".$ac_cv_with_php" = ".yes"; then (cd php && make -f Makefile.local config PHP=$PHP) fi dnl # configure option --with-pgsql AC_ARG_WITH([pgsql], AS_HELP_STRING([--with-pgsql], [build PostgreSQL bindings to C API]), [ac_cv_with_pgsql=$withval], [ac_cv_with_pgsql=no]) AC_CACHE_CHECK([whether to build PostgreSQL bindings to C API], [ac_cv_with_pgsql], [ac_cv_with_pgsql=no]) if test ".$ac_cv_with_pgsql" = ".yes"; then AC_DEFINE(WITH_PGSQL, 1, [whether to build PostgreSQL bindings to C API]) WITH_PGSQL='yes' PGSQL_NAME='$(PGSQL_NAME)' else WITH_PGSQL='no' PGSQL_NAME='' fi AC_SUBST(PGSQL_NAME) AC_SUBST(WITH_PGSQL) AC_PATH_PROGS(PG_CONFIG, pg_config, NA) if test ".$ac_cv_with_pgsql" = ".yes" -a ".$PG_CONFIG" = ".NA"; then AC_ERROR([required PostgreSQL pg_config utility not found in \$PATH]) fi if test ".$ac_cv_with_pgsql" = ".yes" -a ".`${MAKE-make} -v 2>/dev/null | grep GNU`" = .; then AC_ERROR([PostgreSQL bindings require GNU make to build]) fi ]) @ 1.26 log @1. Remove unused "struct timezone" from time_gettimeofday() in order to simplify portability. 2. Add support for POSIX clock_gettime(3) in case the Unix/POSIX gettimeofday(3) is not available. @ text @@ 1.25 log @fix remaining Win32 issues @ text @a78 18 AC_MSG_CHECKING(for struct timezone) AC_TRY_COMPILE([ #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #include ],[ struct timezone tz; ], [ msg="yes" ], [ msg="no" ]) if test ".$msg" = .yes; then AC_DEFINE(HAVE_STRUCT_TIMEZONE, 1, [define if exists "struct timezone"]) fi AC_MSG_RESULT([$msg]) d81 1 a81 1 AC_CHECK_FUNCS(getifaddrs nanosleep Sleep) @ 1.24 log @Port to Win32 API @ text @d60 38 @ 1.23 log @adjust copyright messages for 2008 and bump version in advance @ text @d46 1 a46 1 AC_CHECK_HEADERS(sys/types.h sys/param.h sys/time.h sys/socket.h sys/sockio.h sys/ioctl.h) d61 1 a61 1 AC_CHECK_FUNCS(getifaddrs nanosleep) @ 1.22 log @Adjust copyright messages for new year 2007. @ text @d3 2 a4 2 dnl ## Copyright (c) 2004-2007 Ralf S. Engelschall dnl ## Copyright (c) 2004-2007 The OSSP Project @ 1.21 log @Fix uuid_export() function by fixing the internal uuid_s[ar]printf() functions which require the backup of va_list arguments between subsequent processing. @ text @d3 2 a4 2 dnl ## Copyright (c) 2004-2006 Ralf S. Engelschall dnl ## Copyright (c) 2004-2006 The OSSP Project @ 1.20 log @Adjust copyright messages for new year 2006. @ text @d42 3 @ 1.19 log @hook PostgreSQL bindings into regular build environment @ text @d3 2 a4 2 dnl ## Copyright (c) 2004-2005 Ralf S. Engelschall dnl ## Copyright (c) 2004-2005 The OSSP Project @ 1.18 log @fix typo @ text @d159 23 @ 1.17 log @Add an experimental PHP 4/5 language API binding which can be enabled under build-time with opption --with-php. @ text @d152 1 a152 1 AC_PATH_PROG(PHP, php5 php, NA) @ 1.16 log @Add an experimental C++ API binding which can be enabled under build-time with option --with-cxx. @ text @d136 23 @ 1.15 log @Added optional Data::UUID backward compatibility Perl API which can be enabled with the build-time option --with-perl-compat. Submitted by: Piotr Roszatycki @ text @d89 17 @ 1.14 log @Adjust copyright messages for new year 2005. @ text @d94 4 d106 7 d114 1 a114 1 AC_SUBST(PERL_NAME) @ 1.13 log @Fix --with-perl configure option processing: Perl is only required if --with-perl is used although we search for Perl always in order to provide the PERL variable substitution. @ text @d3 2 a4 2 dnl ## Copyright (c) 2004 Ralf S. Engelschall dnl ## Copyright (c) 2004 The OSSP Project @ 1.12 log @Add --with-perl configure option for optionally enabling the Perl language bindings. @ text @d105 1 a105 1 if test ".$PERL" = .NA; then @ 1.11 log @remove --with-rfc2518 option and functionality because even the IETF/IESG has finally approved our report about the broken random multicast MAC address generation in the standard (and will fix it in new versions of the draft-mealling-uuid-urn). So, finally get rid of this broken-by-design backward compatibility @ text @d73 2 a74 2 dnl # options AC_ARG_WITH(dce, d77 1 d88 20 @ 1.10 log @Added an experimental additional DCE 1.1 API for backward compatibility with existing applications. @ text @a73 6 AC_ARG_WITH(rfc2518, AC_HELP_STRING([--with-rfc2518], [use incorrect generation of IEEE 802 multicast addresses according to RFC2518]), [ac_cv_with_rfc2518=$withval], [ac_cv_with_rfc2518=no]) if test ".$ac_cv_with_rfc2518" = ".yes"; then AC_DEFINE(WITH_RFC2518, 1, [whether to use incorrect generation of IEEE 802 multicast addresses according to RFC2518]) fi @ 1.9 log @Fix syntax error in uuid.ac @ text @d80 13 @ 1.8 log @Provide both incorrect RFC2518-based and correct IEEE 802 multicast address generation. The default now is the correct IEEE 802 multicast address generation but compile-time option --with-rfc2518 selects the broken variant. @ text @d77 1 a77 1 if test ".$ac_cv_with_rfc2518" == .yes; then @ 1.7 log @Cleanup uuid.ac for unused elements. @ text @d72 8 @ 1.6 log @Implement uuid_dump() and corresponding uuid CLI "-d" option for dumping a given UUID into clear text. For convinience reasons add uuid_bm.h (bit mask API) and uuid_str (string formatting API) sub-modules. @ text @a29 25 dnl # Check for an ANSI C typedef in a header dnl # configure.in: dnl # SA_CHECK_TYPEDEF(,
) dnl # acconfig.h: dnl # #undef HAVE_ AC_DEFUN(SA_CHECK_TYPEDEF,[dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_MSG_CHECKING(for typedef $1) AC_CACHE_VAL(ac_cv_typedef_$1,[ AC_EGREP_CPP(dnl changequote(<<,>>)dnl <<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl changequote([,]), [ #include <$2>], ac_cv_typedef_$1=yes, ac_cv_typedef_$1=no ) ])dnl AC_MSG_RESULT($ac_cv_typedef_$1) if test $ac_cv_typedef_$1 = yes; then AC_DEFINE(HAVE_[]translit($1, [a-z], [A-Z]), 1, [Define to 1 if $1 exists]) fi ]) a41 3 dnl # make sure some platforms find their IPv6 library AC_CHECK_LIB(inet6, getaddrinfo) a71 4 dnl # check for network/socket size type SA_CHECK_TYPEDEF(socklen_t, sys/socket.h) SA_CHECK_TYPEDEF(ssize_t, sys/types.h) @ 1.5 log @cleanup and fix header checks @ text @d89 1 @ 1.4 log @add system clock resolution compensation according to the UUID standard(s) @ text @d71 13 a83 3 AC_CHECK_HEADERS(string.h sys/types.h sys/socket.h netdb.h netinet/in.h dnl ifaddrs.h net/if_dl.h net/if_arp.h net/if.h sys/ioctl.h dnl sys/sockio.h arpa/inet.h) @ 1.3 log @add blind Linux and Solaris MAC address support @ text @d74 3 a76 1 AC_CHECK_FUNCS(getifaddrs) @ 1.2 log @add MAC address framework part of UUID v1 generation and implement the MAC address resolving for BSD style platforms with getifaddrs(3) @ text @d71 3 a73 4 AC_CHECK_HEADERS(string.h sys/types.h sys/socket.h netdb.h netinet/in.h net/if.h) dnl # check for MAC determination on BSD class platforms AC_CHECK_HEADERS(ifaddrs.h net/if_dl.h) @ 1.1 log @import the first cut for our forthcoming OSSP uuid library @ text @d71 1 a71 1 AC_CHECK_HEADERS(string.h sys/types.h sys/socket.h netdb.h netinet/in.h) d73 3 a75 2 dnl # check for system functions AC_CHECK_FUNCS(getaddrinfo) @