pkgconf/configure.ac

51 lines
1.7 KiB
Plaintext
Raw Normal View History

2012-07-21 03:36:58 +00:00
dnl configure.ac
dnl m4 preprocessor script for autotools
dnl
2013-12-27 11:44:59 +00:00
dnl Copyright (c) 2011, 2012, 2013, 2014 pkgconf authors (see AUTHORS).
2012-07-21 03:36:58 +00:00
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])
AC_INIT([pkgconf], [1.0.90], [http://github.com/pkgconf/pkgconf/issues])
2015-09-06 14:35:08 +00:00
AC_CONFIG_SRCDIR([main.c])
AC_CONFIG_HEADERS([libpkgconf/config.h])
AC_CHECK_FUNCS([strlcpy strlcat strndup])
AC_CHECK_HEADERS([sys/stat.h])
2016-09-18 20:48:13 +00:00
AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-xz subdir-objects])
AM_SILENT_RULES([yes])
2015-09-06 14:35:08 +00:00
LT_INIT
2011-07-25 02:03:17 +00:00
AC_SYS_LARGEFILE
AC_ARG_WITH([pkg-config-dir],[AC_HELP_STRING([--with-pkg-config-dir],[specify
the place where pc files will be found])],PKGCONFIGDIR="$withval",
PKGCONFIGDIR="${libdir}/pkgconfig:${datadir}/pkgconfig")
AC_SUBST([PKGCONFIGDIR])
AC_ARG_WITH([system-libdir],[AC_HELP_STRING([--with-system-libdir],[specify the
system library directory (default LIBDIR)])],
SYSTEM_LIBDIR="$withval", SYSTEM_LIBDIR="${libdir}")
AC_SUBST([SYSTEM_LIBDIR])
AC_ARG_WITH([system-includedir],[AC_HELP_STRING([--with-system-includedir],[specify the
system include directory (default INCLUDEDIR)])],
SYSTEM_INCLUDEDIR="$withval", SYSTEM_INCLUDEDIR="${includedir}")
AC_SUBST([SYSTEM_INCLUDEDIR])
2011-07-25 02:03:17 +00:00
AC_PROG_CPP
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
2016-12-14 07:30:41 +00:00
AC_CONFIG_FILES([Makefile Kyuafile libpkgconf.pc tests/Kyuafile tests/test_env.sh])
2011-07-25 02:03:17 +00:00
AC_OUTPUT