pkg-config/configure.in
Arch Librarian c2a44053c3 2005-04-14 Tollef Fog Heen <tfheen@err.no>
Author: tfheen
Date: 2005-04-14 08:32:33 GMT
2005-04-14  Tollef Fog Heen  <tfheen@err.no>

    * configure.in: Bump to 0.17.2

    * NEWS: Update for 0.17.2
2005-07-14 13:07:10 +00:00

106 lines
3 KiB
Text

AC_INIT(pkg-config.1)
AM_INIT_AUTOMAKE(pkgconfig, 0.17.2)
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
AC_PROG_CC
AC_DEFUN([PKG_CONFIG_FIND_PC_PATH],
[AC_ARG_WITH(pc_path,
[ --with-pc-path Override the default search path for .pc files ],
[ pc_path="$withval"
AC_MSG_CHECKING([for default search path for .pc files])
AC_MSG_RESULT([$pc_path])],
[pc_path="$libdir/$PACKAGE:$datadir/$PACKAGE"])
AC_SUBST([pc_path])
dnl AC_DEFINE_UNQUOTED(PKG_CONFIG_PC_PATH,["$pc_path"],[Default search path for .pc files])
])
PKG_CONFIG_FIND_PC_PATH
#
# Code taken from gtk+-2.0's configure.in.
#
# This causes pkg-config to only list direct dependencies on platforms
# which support inter-library dependencies.
#
AC_ARG_ENABLE(indirect-deps,
[AC_HELP_STRING([--enable-indirect-deps],
[list both direct and indirect dependencies.])
AC_HELP_STRING([--disable-indirect-deps],
[only list direct dependencies.])
[default=auto]],use_indirect_deps=$enableval,
[use_indirect_deps=auto])
echo use_indirect_deps=$use_indirect_deps >&AS_MESSAGE_LOG_FD
AC_MSG_CHECKING([whether to list both direct and indirect dependencies])
case $use_indirect_deps in
auto)
deplibs_check_method=`(./libtool --config; echo eval echo \$deplibs_check_method) | sh`
if test "X$deplibs_check_method" = Xnone; then
echo "foo: $deplibs_check_method" >&AS_MESSAGE_LOG_FD
use_indirect_deps=yes
else
use_indirect_deps=no
fi
;;
yes|no)
;;
*) AC_MSG_ERROR([Value given to --enable-indirect-deps must be one of yes, no
or auto])
;;
esac
AC_MSG_RESULT($use_indirect_deps)
AC_DEFINE_UNQUOTED(ENABLE_INDIRECT_DEPS, `test $use_indirect_deps = no; echo $?`, [Link library to all dependent libraries, not only directly needed ones])
AC_MSG_CHECKING([for Win32])
case "$host" in
*-*-mingw*)
native_win32=yes
AC_DEFINE(USE_INSTALLED_GLIB, 1, [We are using an installed GLib])
;;
*)
native_win32=no
;;
esac
AC_MSG_RESULT([$native_win32])
AM_CONDITIONAL(USE_INSTALLED_GLIB, test x$native_win32 = xyes)
case "$libdir" in
*lib64) AC_DEFINE(PREFER_LIB64,1,[Define if your native architecture defines libdir to be $prefix/lib64 instead of $prefix/lib.]) ;;
*) : ;;
esac
if test x$native_win32 = xyes; then
# On Win32, use the normal installed GLib. Yes, this is a circular
# dependency. But then, only experienced hackers that presumably can
# work around that will be building pkg-config and GLib on Win32
# anyway (especially using the auto*/configure/libtool
# mechanism). Others use prebuilt versions.
#
# These are correct for GLib 2.x
GLIB_CFLAGS="-I$includedir/glib-2.0 -I$libdir/glib-2.0/include"
GLIB_LIBS="-L$libdir -lglib-2.0 -liconv -lintl"
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_CFLAGS)
AC_CONFIG_AUX_DIR(.)
else
AC_CONFIG_SUBDIRS(glib-1.2.8)
fi # !native_win32
AC_FUNC_ALLOCA
AC_CHECK_FUNCS(setresuid setreuid,break)
AC_CHECK_HEADERS([dirent.h unistd.h sys/wait.h])
AC_OUTPUT([Makefile check/Makefile])