diff --git a/Makefile.am b/Makefile.am index 5ed6554866..52ae4e9527 100644 --- a/Makefile.am +++ b/Makefile.am @@ -322,6 +322,10 @@ scripts/fsxs: scripts/fsxs.in ## ## misc ## + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = build/freeswitch.pc + $(switch_builddir)/modules.conf: if test -f $@; then touch $@; else cp $(switch_srcdir)/build/modules.conf.in $@ ;fi diff --git a/build/freeswitch.pc.in b/build/freeswitch.pc.in new file mode 100644 index 0000000000..5a0463fdce --- /dev/null +++ b/build/freeswitch.pc.in @@ -0,0 +1,23 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +libexecdir=@libexecdir@ +includedir=@includedir@ +modulesdir=@modulesdir@ +runtimedir=@runtimedir@ +logfiledir=@logfiledir@ +sysconfdir=@sysconfdir@ +dbdir=@dbdir@ +htdocsdir=@htdocsdir@ +localstatedir=@localstatedir@ +grammardir=@grammardir@ +soundsdir=@soundsdir@ +scriptdir=@scriptdir@ +recordingsdir=@recordingsdir@ +bindir=@bindir@ + +Name: freeswitch +Version: @PACKAGE_VERSION@ +Description: FreeSWITCH open source telephony platform +Libs: -L${libdir} -lfreeswitch +Cflags: -I${includedir} diff --git a/configure.in b/configure.in index 0b7c30c1f1..d68842bdaa 100644 --- a/configure.in +++ b/configure.in @@ -871,6 +871,7 @@ AC_CONFIG_FILES([Makefile src/include/switch_am_config.h build/getsounds.sh build/getlib.sh + build/freeswitch.pc build/modmake.rules libs/xmlrpc-c/include/xmlrpc-c/config.h libs/xmlrpc-c/xmlrpc_config.h