head 1.28; access; symbols XDS_0_9_3:1.28 XDS_0_9_2:1.28 XDS_0_9_1:1.27 XDS_0_9_0:1.26 last-version-in-peti-style:1.15 callback-semantic-rewrite:1.7.0.2; locks; strict; comment @# @; 1.28 date 2005.06.02.18.51.44; author rse; state Exp; branches; next 1.27; 1.27 date 2004.09.12.17.32.14; author rse; state Exp; branches; next 1.26; 1.26 date 2003.02.17.12.36.02; author rse; state Exp; branches; next 1.25; 1.25 date 2002.03.17.10.25.53; author rse; state Exp; branches; next 1.24; 1.24 date 2002.01.31.09.09.01; author rse; state Exp; branches; next 1.23; 1.23 date 2002.01.02.17.13.44; author rse; state Exp; branches; next 1.22; 1.22 date 2001.08.13.19.48.02; author rse; state Exp; branches; next 1.21; 1.21 date 2001.08.12.11.31.45; author rse; state Exp; branches; next 1.20; 1.20 date 2001.08.11.15.23.09; author rse; state Exp; branches; next 1.19; 1.19 date 2001.08.09.21.21.04; author rse; state Exp; branches; next 1.18; 1.18 date 2001.08.09.19.58.35; author rse; state Exp; branches; next 1.17; 1.17 date 2001.08.09.11.58.22; author simons; state Exp; branches; next 1.16; 1.16 date 2001.08.08.19.15.23; author rse; state Exp; branches; next 1.15; 1.15 date 2001.08.08.11.49.07; author simons; state Exp; branches; next 1.14; 1.14 date 2001.08.07.11.16.19; author simons; state Exp; branches; next 1.13; 1.13 date 2001.08.02.14.56.53; author simons; state Exp; branches; next 1.12; 1.12 date 2001.08.02.14.56.14; author simons; state Exp; branches; next 1.11; 1.11 date 2001.08.02.14.39.15; author simons; state Exp; branches; next 1.10; 1.10 date 2001.08.02.14.18.30; author simons; state Exp; branches; next 1.9; 1.9 date 2001.08.02.08.36.33; author simons; state Exp; branches; next 1.8; 1.8 date 2001.08.02.08.29.17; author simons; state Exp; branches; next 1.7; 1.7 date 2001.07.22.17.24.31; author simons; state Exp; branches; next 1.6; 1.6 date 2001.07.20.11.32.52; author simons; state Exp; branches; next 1.5; 1.5 date 2001.07.20.11.27.25; author simons; state Exp; branches; next 1.4; 1.4 date 2001.07.20.11.22.17; author simons; state Exp; branches; next 1.3; 1.3 date 2001.07.20.11.05.54; author simons; state Exp; branches; next 1.2; 1.2 date 2001.07.20.10.56.01; author simons; state Exp; branches; next 1.1; 1.1 date 2001.07.20.10.42.34; author simons; state Exp; branches; next ; desc @@ 1.28 log @Bumped year in copyright messages for year 2005. @ text @dnl ## dnl ## OSSP xds - Extensible Data Serialization dnl ## Copyright (c) 2001-2005 Ralf S. Engelschall dnl ## Copyright (c) 2001-2005 The OSSP Project dnl ## Copyright (c) 2001-2005 Cable & Wireless dnl ## dnl ## This file is part of OSSP xds, an extensible data serialization dnl ## library which can be found at http://www.ossp.org/pkg/lib/xds/. 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 ## configure.ac: autoconf script source dnl ## AC_PREREQ(2.57) AC_INIT AC_HEADLINE(dnl OSSP xds, eXtensible Data Serialization, dnl XDS_VERSION, xds_version.c, dnl [Copyright (c) 2001-2005 Ralf S. Engelschall Copyright (c) 2001-2005 The OSSP Project Copyright (c) 2001-2005 Cable & Wireless ]) AC_PLATFORM(PLATFORM) AC_MSG_PART(Build Tools) AC_PROG_MAKE_SET AC_PROG_CC AC_CHECK_PROG(LATEX, latex, latex, :) AC_CHECK_PROG(POD2MAN, pod2man, pod2man, :) AC_CHECK_DEBUGGING AC_CHECK_LIB(nsl, xdrmem_create, [xdr_lib=-lnsl]) AC_SUBST([xdr_lib]) AC_MSG_PART(Libtool Configuration) AC_CONFIGURE_LIBTOOL AC_MSG_PART(XDS Configuration) AC_CONFIGURE_XDS AC_MSG_PART(Output Substitution) AC_CONFIG_HEADERS(config.h) AC_CONFIG_FILES(xds.h xds-config Makefile docs/Makefile) AC_CONFIG_COMMANDS([default], [chmod a+x xds-config; chmod -w xds.h Makefile docs/Makefile]) AC_OUTPUT @ 1.27 log @Bumped year in copyright messages for year 2004. @ text @d3 3 a5 3 dnl ## Copyright (c) 2001-2004 Ralf S. Engelschall dnl ## Copyright (c) 2001-2004 The OSSP Project dnl ## Copyright (c) 2001-2004 Cable & Wireless d37 3 a39 3 [Copyright (c) 2001-2004 Ralf S. Engelschall Copyright (c) 2001-2004 The OSSP Project Copyright (c) 2001-2004 Cable & Wireless ]) @ 1.26 log @upgrade to standard OSSP copyright and bump year to 2003 @ text @d3 3 a5 3 dnl ## Copyright (c) 2001-2003 Ralf S. Engelschall dnl ## Copyright (c) 2001-2003 The OSSP Project dnl ## Copyright (c) 2001-2003 Cable & Wireless Germany d37 3 a39 3 [Copyright (c) 2001-2003 Ralf S. Engelschall Copyright (c) 2001-2003 The OSSP Project Copyright (c) 2001-2003 Cable & Wireless Germany ]) @ 1.25 log @update texts @ text @d3 3 a5 2 dnl ## Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/) dnl ## Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/) d31 1 a31 1 AC_PREREQ(2.53) d37 3 a39 2 [Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/) Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/)]) @ 1.24 log @fix naming @ text @d2 1 a2 1 dnl ## XDS - OSSP Extensible Data Serialization Library d6 2 a7 2 dnl ## This file is part of OSSP XDS, an extensible data serialization dnl ## library which can be found at http://www.ossp.org/pkg/xds/. d30 2 a31 3 AC_PREREQ(2.52) AC_REVISION(1.0) AC_INIT(xds.h.in) a38 1 AC_CONFIG_HEADERS(config.h) d41 1 a41 1 AC_SET_MAKE d56 1 @ 1.23 log @bump copyright year @ text @d35 1 a35 1 XDS, eXtensible Data Serialization, dnl @ 1.22 log @Remove trailing whitespaces on all non-generated files. @ text @d3 2 a4 2 dnl ## Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) dnl ## Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/) d37 2 a38 2 [Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)]) @ 1.21 log @Hhmm... who has introduced ossp.com?! Our project's domain is ossp.org, of course. @ text @d5 1 a5 1 dnl ## d8 1 a8 1 dnl ## d13 1 a13 1 dnl ## @ 1.20 log @First cut for GNU Libtool 1.4 & GNU Shtool 1.5 support. This needs a little bit more cleanup which will follow later, but I want to flush my pending work now in order to continue with other projects. The XDS build environment now is in sync with the usual style for OSSP libraries. @ text @d7 1 a7 1 dnl ## library which can be found at http://www.ossp.com/pkg/xds/. @ 1.19 log @Already add xds-config to Autoconf stuff. @ text @d30 2 a32 2 AC_PREREQ(2.52) AC_REVISION($Revision: 1.18 $) d34 7 a40 3 dnl Get rid of the lousy -g and -O defaults in CFLAGS. dnl CFLAGS=${CFLAGS:-} d42 2 a43 2 dnl Checks for paths and programs. dnl a44 1 AC_PROG_RANLIB d47 3 d51 2 a52 49 dnl Set special flags for gcc. dnl if test "$GCC" = yes; then CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Winline -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long" fi dnl Check for exact data types. dnl AC_CHECK_TYPE(u_int8_t, [xds_uint8_t=u_int8_t], [AC_CHECK_TYPE(uint8_t, [xds_uint8_t=uint8_t], [AC_MSG_ERROR([no unsigned 8 bit data type found])])]) AC_CHECK_TYPE(u_int16_t, [xds_uint16_t=u_int16_t], [AC_CHECK_TYPE(uint16_t, [xds_uint16_t=uint16_t], [AC_MSG_ERROR([no unsigned 16 bit data type found])])]) AC_CHECK_TYPE(u_int32_t, [xds_uint32_t=u_int32_t], [AC_CHECK_TYPE(uint32_t, [xds_uint32_t=uint32_t], [AC_MSG_ERROR([no unsigned 32 bit data type found])])]) AC_CHECK_TYPE(u_int64_t, [xds_uint64_t=u_int64_t], [AC_CHECK_TYPE(uint64_t, [xds_uint64_t=uint64_t], [AC_MSG_WARN([no unsigned 64 bit data type found]) xds_uint64_t=undefined])]) dnl AC_CHECK_TYPE(int8_t, [xds_int8_t=int8_t], [AC_MSG_ERROR([no signed 8 bit data type found]) ]) AC_CHECK_TYPE(int16_t, [xds_int16_t=int16_t], [AC_MSG_ERROR([no signed 16 bit data type found]) ]) AC_CHECK_TYPE(int32_t, [xds_int32_t=int32_t], [AC_MSG_ERROR([no signed 32 bit data type found]) ]) AC_CHECK_TYPE(int64_t, [xds_int64_t=int64_t], [AC_MSG_WARN([no signed 64 bit data type found]) xds_int64_t=undefined]) dnl AC_SUBST([xds_uint8_t]) AC_SUBST([xds_uint16_t]) AC_SUBST([xds_uint32_t]) AC_SUBST([xds_uint64_t]) AC_SUBST([xds_int8_t]) AC_SUBST([xds_int16_t]) AC_SUBST([xds_int32_t]) AC_SUBST([xds_int64_t]) if test "$xds_int64_t" = "undefined" -o "$xds_uint64_t" = "undefined"; then have_64_bit_support="#undef XDS_HAVE_64_BIT_SUPPORT" else have_64_bit_support="#define XDS_HAVE_64_BIT_SUPPORT" fi AC_SUBST([have_64_bit_support]) d54 2 a55 4 dnl Find the library containing the xdr_xxx() functions. dnl AC_CHECK_LIB(nsl, xdrmem_create, [xdr_lib=-lnsl]) AC_SUBST([xdr_lib]) d57 1 a57 2 dnl Write results. dnl d59 1 a59 1 AC_CONFIG_COMMANDS([default], [chmod -w xds.h Makefile docs/Makefile]) d61 1 @ 1.18 log @Use the license consistently. @ text @d32 1 a32 1 AC_REVISION($Revision: 1.17 $) d102 1 a102 1 AC_CONFIG_FILES(xds.h Makefile docs/Makefile) @ 1.17 log @AC_INIT expects as parameter the name of an unique source file in the repository. I gave it xds.h.in. @ text @d1 28 a28 1 dnl configure.in -- Process this file with autoconf to produce a configure script. d32 1 a32 1 AC_REVISION($Revision: 1.16 $) @ 1.16 log @First cut of the ruthless style adjustments to OSSP XDS: o adjust source tree to follow OSSP source tree style by heavily combining sources into smaller sets (needs more work when still missing parts are added later) o automatic re-indentation of sources with GNU indent (still needs manual review and adjustments; will follow) These two heavy steps were mostly done automatically with the help of two helper scripts written in Perl. So expect more manual adjustments to follow... @ text @d3 1 a3 1 AC_INIT(xds) d5 1 a5 1 AC_REVISION($Revision: 1.15 $) @ 1.15 log @Don't compile with -ansi or gcc won't find the 64-bit data types on some platforms. @ text @d3 1 a3 1 AC_INIT(libxds) d5 1 a5 1 AC_REVISION($Revision: 1.14 $) a52 11 if test "$xds_int64_t" = "undefined" -o "$xds_uint64_t" = "undefined"; then have_64_bit_support="#undef XDS_HAVE_64_BIT_SUPPORT" else have_64_bit_support="#define XDS_HAVE_64_BIT_SUPPORT" xdr_64_bit_objects="xdr-encode-int64.o xdr-decode-int64.o" xdr_64_bit_objects="$xdr_64_bit_objects xdr-encode-uint64.o xdr-decode-uint64.o" xml_64_bit_objects="xml-encode-int64.o xml-decode-int64.o" xml_64_bit_objects="$xml_64_bit_objects xml-encode-uint64.o xml-decode-uint64.o" tests_64_bit="xdr-int64.exe xdr-uint64.exe xml-int64.exe xml-uint64.exe" tests_64_bit="$tests_64_bit xds-mystruct.exe" fi d61 5 a66 3 AC_SUBST([xdr_64_bit_objects]) AC_SUBST([xml_64_bit_objects]) AC_SUBST([tests_64_bit]) d75 2 a76 2 AC_CONFIG_FILES(xds.h Makefile regression-tests/Makefile docs/Makefile) AC_CONFIG_COMMANDS([default], [chmod -w xds.h Makefile regression-tests/Makefile docs/Makefile]) @ 1.14 log @Added docs directory to the build system. @ text @d5 1 a5 1 AC_REVISION($Revision: 1.13 $) d21 1 a21 1 CFLAGS="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wcast-align -Winline -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long" @ 1.13 log @Fixed suffix of the mystruct test. @ text @d5 1 a5 1 AC_REVISION($Revision: 1.12 $) d15 2 d84 2 a85 2 AC_CONFIG_FILES(xds.h Makefile regression-tests/Makefile) AC_CONFIG_COMMANDS([default], [chmod -w xds.h Makefile regression-tests/Makefile]) @ 1.12 log @Build modules that need 64-bit support only if 64-bit data types have been found! @ text @d5 1 a5 1 AC_REVISION($Revision: 1.11 $) d60 1 a60 1 tests_64_bit="$tests_64_bit xds-mystruct" @ 1.11 log @The configure script will now recognize when any of the 64-bit data types is missing. In this case, the define XDS_HAVE_64_BIT_SUPPORT will _not_ be defined in xds.h; it will be defined otherwise. Depending on whether the define is there or not, the 64-bit engines will not be defined. @ text @d5 1 a5 1 AC_REVISION($Revision: 1.10 $) d55 6 d71 3 @ 1.10 log @Removed the duplicate test for the signed integer variants. @ text @d5 1 a5 1 AC_REVISION($Revision: 1.9 $) d26 1 a26 3 [AC_MSG_ERROR([no unsigned 8 bit data type found])] )]) AC_SUBST([xds_uint8_t]) d29 1 a29 3 [AC_MSG_ERROR([no unsigned 16 bit data type found])] )]) AC_SUBST([xds_uint16_t]) d32 1 a32 3 [AC_MSG_ERROR([no unsigned 32 bit data type found])] )]) AC_SUBST([xds_uint32_t]) d35 2 a36 3 [AC_MSG_ERROR([no unsigned 64 bit data type found]) ])]) AC_SUBST([xds_uint64_t]) a40 1 AC_SUBST([xds_int8_t]) a43 1 AC_SUBST([xds_int16_t]) d47 15 a62 3 AC_CHECK_TYPE(int64_t, [xds_int64_t=int64_t], [AC_MSG_ERROR([no signed 64 bit data type found]) ]) a63 1 dnl @ 1.9 log @Added AC_PREREQ and AC_REVISION statements. @ text @d5 1 a5 1 AC_REVISION($Revision: 1.8 $) d27 1 a27 2 )] ) d32 1 a32 2 )] ) d37 1 a37 2 )] ) d41 2 a42 3 [AC_MSG_ERROR([no unsigned 64 bit data type found])] )] ) d44 1 d46 2 a47 4 [AC_CHECK_TYPE(int8_t, [xds_int8_t=int8_t], [AC_MSG_ERROR([no signed 8 bit data type found])] )] ) d50 2 a51 4 [AC_CHECK_TYPE(int16_t, [xds_int16_t=int16_t], [AC_MSG_ERROR([no signed 16 bit data type found])] )] ) d54 2 a55 4 [AC_CHECK_TYPE(int32_t, [xds_int32_t=int32_t], [AC_MSG_ERROR([no signed 32 bit data type found])] )] ) d58 2 a59 4 [AC_CHECK_TYPE(int64_t, [xds_int64_t=int64_t], [AC_MSG_ERROR([no signed 64 bit data type found])] )] ) d61 2 @ 1.8 log @Remove the writable flag from file generated by autoconf. @ text @d3 3 a5 1 AC_INIT(libxds, [$Revision: 1.7 $]) @ 1.7 log @The new run-tests script works fine without bash, so we don't need to have the script under autoconf control anymore. @ text @d3 1 a3 1 AC_INIT(libxds, [$Revision: 1.6 $]) d79 1 @ 1.6 log @Use /bin/sh if no bash could be found. @ text @d3 1 a3 1 AC_INIT(libxds, [$Revision: 1.5 $]) a12 1 AC_PATH_PROG(bash, bash, /bin/sh) d78 1 a78 2 AC_CONFIG_FILES(xds.h regression-tests/.run-tests Makefile regression-tests/Makefile) AC_CONFIG_COMMANDS([default], [chmod +x regression-tests/.run-tests]) @ 1.5 log @Make sure ./run-tests has an x-flag. @ text @d3 1 a3 1 AC_INIT(libxds, [$Revision: 1.4 $]) d13 1 a13 1 AC_PATH_PROG(bash, bash) @ 1.4 log @Insert path of "bash" into the run-tests script. @ text @d3 1 a3 1 AC_INIT(libxds, [$Revision: 1.3 $]) d79 3 a81 1 AC_OUTPUT(xds.h regression-tests/.run-tests Makefile regression-tests/Makefile) @ 1.3 log @Check whether libnsl has to be linked for the xdr_xxx() routines. @ text @d3 1 a3 1 AC_INIT(libxds, [$Revision: 1.2 $]) d13 1 d79 1 a79 1 AC_OUTPUT(xds.h Makefile regression-tests/Makefile) @ 1.2 log @Use xds_(u)int(8|16|32|64) instead of the system defines. @ text @d3 1 a3 1 AC_INIT(libxds, [$Revision: 1.1 $]) d70 5 @ 1.1 log @- Renamed configure.in to configure.ac for autoconf 2.50 and later. - Added tests that will find the exact data types and typedef our versions to them. @ text @d3 1 a3 1 AC_INIT(libxds, [$Revision: 1.2 $]) d40 6 d64 6 @