2012-07-21 03:36:58 +00:00
|
|
|
dnl configure.ac
|
|
|
|
dnl m4 preprocessor script for autotools
|
|
|
|
dnl
|
|
|
|
dnl Copyright (c) 2011, 2012 William Pitcock <nenolod@dereferenced.org>.
|
|
|
|
dnl
|
|
|
|
dnl Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
dnl purpose with or without fee is hereby granted, provided that the above
|
|
|
|
dnl copyright notice and this permission notice appear in all copies.
|
|
|
|
dnl
|
|
|
|
dnl This software is provided 'as is' and without any warranty, express or
|
|
|
|
dnl implied. In no event shall the authors be liable for any damages arising
|
|
|
|
dnl from the use of this software.
|
|
|
|
|
2011-07-25 02:03:17 +00:00
|
|
|
AC_PREREQ([2.68])
|
2012-07-22 02:41:55 +00:00
|
|
|
AC_INIT([pkgconf], [0.8.2], [http://github.com/nenolod/pkgconf/issues])
|
2011-07-25 02:03:17 +00:00
|
|
|
AC_CONFIG_SRCDIR([pkg.c])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2012-07-20 18:46:14 +00:00
|
|
|
AC_CHECK_FUNCS([strlcpy strlcat strndup])
|
2011-07-25 02:03:17 +00:00
|
|
|
|
2012-07-20 21:29:57 +00:00
|
|
|
AC_ARG_ENABLE([strict],
|
|
|
|
[AC_HELP_STRING([--enable-strict],
|
|
|
|
[enable POSIX-strict argument checking and disable some workarounds])],
|
|
|
|
[ac_cv_use_strict=$enableval], [ac_cv_use_strict=no])
|
|
|
|
AC_CACHE_CHECK([whether to enable strict mode],
|
|
|
|
[ac_cv_use_strict], [ac_cv_use_strict=no])
|
|
|
|
|
|
|
|
if test "x$ac_cv_use_strict" = "xyes"; then
|
|
|
|
AC_DEFINE([HAVE_STRICT_MODE], [1], [Define if strict mode is requested.])
|
2012-07-20 21:33:48 +00:00
|
|
|
STRICT_MODE=yes
|
2012-07-20 21:29:57 +00:00
|
|
|
else
|
|
|
|
AC_DEFINE([HAVE_STRICT_MODE], [0], [Define if strict mode is requested.])
|
2012-07-20 21:33:48 +00:00
|
|
|
STRICT_MODE=no
|
2012-07-20 21:29:57 +00:00
|
|
|
fi
|
|
|
|
|
2012-07-20 21:33:48 +00:00
|
|
|
AC_SUBST([STRICT_MODE])
|
|
|
|
|
2011-07-25 02:03:17 +00:00
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
|
|
|
|
BUILDSYS_SHARED_LIB
|
|
|
|
BUILDSYS_PROG_IMPLIB
|
|
|
|
BUILDSYS_TOUCH_DEPS
|
|
|
|
|
2012-07-20 21:33:48 +00:00
|
|
|
AC_CONFIG_FILES([buildsys.mk tests/run.sh])
|
2011-07-25 02:03:17 +00:00
|
|
|
AC_OUTPUT
|