diff --git a/enet/Makefile.am b/enet/Makefile.am index 5b9caf3..e9d7b7b 100644 --- a/enet/Makefile.am +++ b/enet/Makefile.am @@ -1,3 +1,6 @@ +pkgconfigdir = $(libdir)/pkgconfig +nodist_pkgconfig_DATA = libenet.pc + lib_LIBRARIES = libenet.a libenet_a_SOURCES = host.c list.c callbacks.c packet.c peer.c protocol.c unix.c win32.c INCLUDES = -Iinclude/ diff --git a/enet/Makefile.in b/enet/Makefile.in index 060f0ff..da593fb 100644 --- a/enet/Makefile.in +++ b/enet/Makefile.in @@ -36,7 +36,7 @@ PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(top_srcdir)/configure ChangeLog \ + $(srcdir)/Makefile.in $(srcdir)/libenet.pc.in $(top_srcdir)/configure ChangeLog \ depcomp install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in @@ -45,7 +45,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(install_sh) -d -CONFIG_CLEAN_FILES = +CONFIG_CLEAN_FILES = libenet.pc am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -171,6 +171,8 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +pkgconfigdir = $(libdir)/pkgconfig +nodist_pkgconfig_DATA = libenet.pc lib_LIBRARIES = libenet.a libenet_a_SOURCES = host.c list.c callbacks.c packet.c peer.c protocol.c unix.c win32.c INCLUDES = -Iinclude/ @@ -212,6 +214,8 @@ $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +libenet.pc: $(top_builddir)/config.status $(srcdir)/libenet.pc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ install-libLIBRARIES: $(lib_LIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" diff --git a/enet/configure b/enet/configure index b4c12e2..01b4d7c 100755 --- a/enet/configure +++ b/enet/configure @@ -4487,7 +4487,7 @@ echo "${ECHO_T}no" >&6; } fi -ac_config_files="$ac_config_files Makefile include/Makefile include/enet/Makefile" +ac_config_files="$ac_config_files Makefile include/Makefile include/enet/Makefile libenet.pc" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -5084,6 +5084,7 @@ do "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; "include/enet/Makefile") CONFIG_FILES="$CONFIG_FILES include/enet/Makefile" ;; + "libenet.pc") CONFIG_FILES="$CONFIG_FILES libenet.pc" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}