[FreeTDM] Add --with-pkgconfigdir option to FreeTDM.
Default behaviour is unchanged. Packagers should use this option to install freetdm.pc into the system's main pkg-config directory (e.g. /usr/lib/pkgconfig). Signed-off-by: Stefan Knoblich <s.knoblich@axsentis.de> Tested-by: Stefan Knoblich <s.knoblich@axsentis.de>
This commit is contained in:
parent
f20ba4d1f6
commit
c8065499ad
|
@ -62,7 +62,7 @@ LINK = $(LIBTOOL) --mode=link --tag=CC $(CC) $(FTDM_CFLAGS) $(LDFLAGS) -o $
|
||||||
#
|
#
|
||||||
EXTRA_DIST = freetdm.pc.in
|
EXTRA_DIST = freetdm.pc.in
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = @pkgconfigdir@
|
||||||
pkgconfig_DATA = freetdm.pc
|
pkgconfig_DATA = freetdm.pc
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,18 @@ AC_ARG_WITH([modinstdir],
|
||||||
)
|
)
|
||||||
AC_SUBST([modinstdir])
|
AC_SUBST([modinstdir])
|
||||||
|
|
||||||
|
# freetdm.pc pkgconfig file
|
||||||
|
AC_ARG_WITH([pkgconfigdir],
|
||||||
|
[AS_HELP_STRING([--with-pkgconfigdir=DIR], [Installation directory for pkgconfig file (default: ${libdir}/pkgconfig)])],
|
||||||
|
[case "${withval}" in
|
||||||
|
yes|no) AC_MSG_ERROR([Invalid value ${withval} for option --with-pkgconfigdir]) ;;
|
||||||
|
*) pkgconfigdir="${withval}" ;;
|
||||||
|
esac
|
||||||
|
],
|
||||||
|
[pkgconfigdir="${libdir}/pkgconfig"]
|
||||||
|
)
|
||||||
|
AC_SUBST([pkgconfigdir])
|
||||||
|
|
||||||
AC_ARG_ENABLE([enable_64],
|
AC_ARG_ENABLE([enable_64],
|
||||||
[AS_HELP_STRING([--enable-64], [Enable 64bit compilation])],
|
[AS_HELP_STRING([--enable-64], [Enable 64bit compilation])],
|
||||||
[enable_64="${enableval}"],
|
[enable_64="${enableval}"],
|
||||||
|
|
Loading…
Reference in New Issue