author | Michael Krelin <hacker@klever.net> | 2007-10-01 08:15:49 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-10-01 08:15:49 (UTC) |
commit | f886bfcc7e91a54421c36456d40a8e4eb97e4b49 (patch) (side-by-side diff) | |
tree | b92499bf36d4d8042d3e82621a3c94a7e410e1f6 | |
parent | a2d909d2ecaaf80e6d0e063f37fa04ed6934c185 (diff) | |
download | konforka-f886bfcc7e91a54421c36456d40a8e4eb97e4b49.zip konforka-f886bfcc7e91a54421c36456d40a8e4eb97e4b49.tar.gz konforka-f886bfcc7e91a54421c36456d40a8e4eb97e4b49.tar.bz2 |
don't try to be smart about pkgconfig directory
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | acinclude.m4 | 45 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 2 insertions, 50 deletions
diff --git a/Makefile.am b/Makefile.am index aab3c4b..4c706b7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,4 @@ EXTRA_DIST = NEWS NEWS.xml NEWS.xsl -DISTCHECK_CONFIGURE_FLAGS=--with-pkgconfigdir=$${dc_install_base}/lib/pkgconfig -if HAVE_PKGCONFIG -pkgconfigdir=@PKGCONFIG_DIR@ +pkgconfigdir=${libdir}/pkgconfig pkgconfig_DATA=konforka.pc -endif diff --git a/acinclude.m4 b/acinclude.m4 index ec2c50f..9f61d6c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,46 +1 @@ -dnl AC_WITH_PKGCONFIG([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) -dnl Outputs: -dnl AC_SUBST: PKGCONFIG_PKGCONFIG PKGCONFIG_DIR -dnl AM_CONDTIONAL: HAVE_PKGCONFIG -AC_DEFUN([AC_WITH_PKGCONFIG],[ - PKGCONFIG_PKGCONFIG="" - PKGCONFIG_DIR="" - HAVE_PKGCONFIG="no" - EXPLICIT_PKGCONFIGDIR="no" - test -z "${WANT_PKGCONFIG}" && WANT_PKGCONFIG="" - AC_PATH_PROG([PKGCONFIG_PKGCONFIG],[pkg-config],[false]) - if test "${PKGCONFIG_PKGCONFIG}" != "false" ; then - AC_ARG_WITH([pkgconfigdir], - AC_HELP_STRING([--with-pkgconfigdir=dir],[Specify pkgconfig directory]), - [ - if test "${withval}" = "no" ; then - WANT_PKGCONFIG="no" - else - PKGCONFIG_DIR="${withval}" - EXPLICIT_PKGCONFIGDIR="yes" - fi - ],[ - AC_MSG_CHECKING([for pkgconfig directory]) - PKGCONFIG_DIR="`${PKGCONFIG_PKGCONFIG} --debug 2>&1 | grep '^Scanning'| head -n 1 | cut -d\' -f2-|cut -d\' -f1`" - AC_MSG_RESULT([${PKGCONFIG_DIR}]) - ] - ) - if test -d "${PKGCONFIG_DIR}" ; then - HAVE_PKGCONFIG=yes - AC_SUBST([PKGCONFIG_PKGCONFIG]) - AC_SUBST([PKGCONFIG_DIR]) - else - AC_MSG_NOTICE([unexistent pkgconfig directory: ${PKGCONFIG_DIR}]) - if test "${EXPLICIT_PKGCONFIGDIR}" = "yes" ; then - HAVE_PKGCONFIG=yes - AC_SUBST([PKGCONFIG_PKGCONFIG]) - AC_SUBST([PKGCONFIG_DIR]) - else - ifelse([$2], , :, [$2]) - fi - fi - fi - AM_CONDITIONAL([HAVE_PKGCONFIG],[test "${HAVE_PKGCONFIG}" = "yes"]) -]) - dnl AC_WITH_DOXYGEN([ACTION-IF-FOUND[,ACTION-IF-NOT-FOUND]]) diff --git a/configure.ac b/configure.ac index 33d1a59..7a302a8 100644 --- a/configure.ac +++ b/configure.ac @@ -10,2 +10,3 @@ AC_PROG_CC AC_PROG_LIBTOOL +PKG_PROG_PKG_CONFIG @@ -20,3 +21,2 @@ AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) -AC_WITH_PKGCONFIG WANT_DOXYGEN="yes" |