4232566291
were out of date, and we've previously seen expat.h out of sync). *) Use new script "buildconf.sh" to create the set of generated files (aclocal.m4, config.h.in, configure). This is intended to be used by developers (rerun when configure.in changes) and just before a release (releases include these outputs). Developers now need the "autoconf" and "libtool" packages. *) config.h.in is now built by autoheader and includes bits from acconfig.h rather than manual construction/maintenance. (renamed from config.hin) *) added conftools/PrintPath from the ASF; it is a portable "which" *) added "extraclean" target to top-level Makefile to get rid of all generated files (return to pure CVS state; before buildconf.sh) *) updates various bits for config.hin -> config.h.in rename *) no longer need to delete the ".deps" subdir since we don't create it anymore (dependencies are explicit rather than auto-generated).
107 lines
2.5 KiB
Plaintext
107 lines
2.5 KiB
Plaintext
dnl configuration script for expat
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
dnl
|
|
dnl Copyright 2000 Clark Cooper
|
|
dnl
|
|
dnl This file is part of EXPAT.
|
|
dnl
|
|
dnl EXPAT is free software; you can redistribute it and/or modify it
|
|
dnl under the terms of the License (based on the MIT/X license) contained
|
|
dnl in the file COPYING that comes with this distribution.
|
|
dnl
|
|
|
|
AC_INIT(Makefile.in)
|
|
AC_CONFIG_AUX_DIR(conftools)
|
|
|
|
dnl
|
|
dnl Follow the GNU/Linux convention of odd number minor version for
|
|
dnl beta/development releases and even number minor version for stable
|
|
dnl releases. Edit is bumped with each release and set to 0 with
|
|
dnl change to major or minor version.
|
|
dnl
|
|
|
|
EXPAT_MAJOR_VERSION=1
|
|
EXPAT_MINOR_VERSION=95
|
|
EXPAT_EDIT=2
|
|
|
|
EXPAT_VERSION=$EXPAT_MAJOR_VERSION.$EXPAT_MINOR_VERSION.$EXPAT_EDIT
|
|
VERSION=$EXPAT_VERSION
|
|
PACKAGE=expat
|
|
|
|
dnl
|
|
dnl Increment LIBREVISION if source code has changed at all
|
|
dnl
|
|
dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
|
|
dnl
|
|
dnl If the API changes compatibly (i.e. simply adding a new function
|
|
dnl without changing or removing earlier interfaces), then increment LIBAGE.
|
|
dnl
|
|
dnl If the API changes incompatibly set LIBAGE back to 0
|
|
dnl
|
|
|
|
LIBCURRENT=1
|
|
LIBREVISION=0
|
|
LIBAGE=1
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_SUBST(PACKAGE)
|
|
AC_SUBST(VERSION)
|
|
AC_SUBST(EXPAT_MAJOR_VERSION)
|
|
AC_SUBST(EXPAT_MINOR_VERSION)
|
|
AC_SUBST(EXPAT_EDIT)
|
|
|
|
AC_SUBST(LIBCURRENT)
|
|
AC_SUBST(LIBREVISION)
|
|
AC_SUBST(LIBAGE)
|
|
|
|
dnl Checks for programs.
|
|
AC_PROG_CC
|
|
AC_PROG_INSTALL
|
|
|
|
dnl Checks for libraries.
|
|
|
|
dnl Checks for header files.
|
|
AC_HEADER_STDC
|
|
AC_CHECK_HEADERS(fcntl.h unistd.h)
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
AC_C_BIGENDIAN
|
|
AC_C_CONST
|
|
AC_TYPE_OFF_T
|
|
AC_TYPE_SIZE_T
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_FUNC_MEMCMP
|
|
AC_FUNC_MMAP
|
|
|
|
if test -z "$HAVE_MMAP"; then
|
|
FILEMAP_OBJ=unixfilemap.o
|
|
else
|
|
FILEMAP_OBJ=readfilemap.o
|
|
fi
|
|
AC_SUBST(FILEMAP_OBJ)
|
|
|
|
AC_CHECK_FUNCS(memmove bcopy)
|
|
|
|
dnl Generate makefiles only for the directories that are present;
|
|
dnl this allows this (and the generated configure script) to work
|
|
dnl in "embedded distributions", where only part of the Expat sources
|
|
dnl are included in the sources for another project.
|
|
|
|
OUTPUT="Makefile lib/Makefile lib/expat.h"
|
|
if test -d xmlwf; then
|
|
OUTPUT="$OUTPUT xmlwf/Makefile"
|
|
fi
|
|
if test -d sample; then
|
|
OUTPUT="$OUTPUT sample/Makefile"
|
|
fi
|
|
if test -d examples; then
|
|
OUTPUT="$OUTPUT examples/Makefile"
|
|
fi
|
|
AC_OUTPUT($OUTPUT)
|