Commit c52d6369 authored by Patrik Flykt's avatar Patrik Flykt Committed by Slava Monich

build: Define runstatedir

Provide an m4 macro defining runstatedir as $(localstatedir)/var. This
applies to automake versions < 2.70.
parent 0ae2b2af
......@@ -25,6 +25,8 @@ missing
stamp-h1
autom4te.cache
test-driver
m4/
!m4/configmake.m4
connman.pc
include/connman
......
AC_PREREQ(2.60)
AC_INIT(connman, 1.30)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
AC_CONFIG_HEADERS([config.h])
......@@ -31,6 +33,8 @@ m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
gl_CONFIGMAKE_PREP
AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
[disable code optimization through compiler]), [
if (test "${enableval}" = "no"); then
......
# configmake.m4 serial 2
dnl Copyright (C) 2010-2015 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
# gl_CONFIGMAKE_PREP
# ------------------
AC_DEFUN([gl_CONFIGMAKE_PREP],
[
dnl Added in autoconf 2.70
if test "x$runstatedir" = x; then
AC_SUBST([runstatedir], ['${localstatedir}/run'])
fi
])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment