Source

dlini / configure.ac

Full commit
dnl -*- Autoconf -*-

dnl Copyright (C) 2005 by Germanischer Lloyd AG

dnl author: Berthold Höllmann <hoel@gl-group.com>

dnl This program is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

dnl Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(Makefile.am)
AM_INIT_AUTOMAKE(dlini,0.2.0,[David Duncan Ross Palmer <http://www.daybologic.co.uk/mailddrp/>])

dnl [-Wall])

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL

dnl Checks for libraries.

dnl Checks for header files.
AC_HEADER_STDBOOL

dnl -------------------------------------------------------------------------

dnl Handle dlstds
dnl Set the default path first
dlstds_prefix=/usr/local/share/daybo_logic/stds/
AC_ARG_WITH(dlstds-prefix,
  [AC_HELP_STRING([--with-dlstds-prefix=DIR],
    [Daybo Logic Standards Package (dlstds) installation prefix]
  )],
  [dlstds_prefix=${withval}]
)
if test "$dlstds_prefix" != ""; then
  CFLAGS="${CFLAGS} -I${dlstds_prefix}"
fi

AC_CHECK_HEADER(
  ${dlstds_prefix}dlstdinc.h,
  AC_DEFINE(HAVE_DLSTDINC_H,1,""),
  AC_MSG_ERROR(
    dlstdinc.h 38.5 or later is not installed or cannot be found.
    You need the dlstds package from http://www.daybologic.co.uk/
    Or you may need to use the flag --with-dlstds-prefix=<path> if you have
    installed dlstds in a non-standard location.
  )
)
dnl -------------------------------------------------------------------------

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_DEFINE(__UNIX__)
AC_C_BIGENDIAN

dnl Checks for library functions.

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

dnl Local Variables:
dnl compile-command:"make check"
dnl End: