--- configure.ac 2001/08/09 21:21:04 1.19
+++ configure.ac 2001/08/11 15:23:09 1.20
@@ -27,78 +27,35 @@
dnl ## configure.ac: autoconf script source
dnl ##
-AC_INIT(xds.h.in)
AC_PREREQ(2.52)
-AC_REVISION($Revision: 1.19 $)
+AC_REVISION(1.0)
+AC_INIT(xds.h.in)
-dnl Get rid of the lousy -g and -O defaults in CFLAGS.
-dnl
-CFLAGS=${CFLAGS:-}
+AC_HEADLINE(dnl
+XDS, eXtensible Data Serialization, dnl
+XDS_VERSION, xds_version.c, dnl
+[Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
+Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)])
+AC_PLATFORM(PLATFORM)
+AC_CONFIG_HEADERS(config.h)
-dnl Checks for paths and programs.
-dnl
+AC_MSG_PART(Build Tools)
+AC_SET_MAKE
AC_PROG_CC
-AC_PROG_RANLIB
AC_CHECK_PROG(LATEX, latex, latex, :)
AC_CHECK_PROG(POD2MAN, pod2man, pod2man, :)
-
-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])
-
-dnl Find the library containing the xdr_xxx() functions.
-dnl
+AC_CHECK_DEBUGGING
AC_CHECK_LIB(nsl, xdrmem_create, [xdr_lib=-lnsl])
AC_SUBST([xdr_lib])
-dnl Write results.
-dnl
+AC_MSG_PART(Libtool Configuration)
+AC_CONFIGURE_LIBTOOL
+
+AC_MSG_PART(XDS Configuration)
+AC_CONFIGURE_XDS
+
+AC_MSG_PART(Output Substitution)
AC_CONFIG_FILES(xds.h xds-config Makefile docs/Makefile)
-AC_CONFIG_COMMANDS([default], [chmod -w xds.h Makefile docs/Makefile])
+AC_CONFIG_COMMANDS([default], [chmod a+x xds-config; chmod -w xds.h Makefile docs/Makefile])
AC_OUTPUT
+
|