From 5a5478de7ab4ee2eef0308d8b4ce5c53222cd55e Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 13 Jul 2005 00:13:12 +0000 Subject: distcheck fixes --- README | 2 +- autogen.sh | 3 +++ configure.ac | 12 +----------- libdrm/Makefile.am | 2 +- 4 files changed, 6 insertions(+), 13 deletions(-) create mode 100755 autogen.sh diff --git a/README b/README index c94dce5f..b466dd88 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ By default, this will install into /usr/local. If you want to install this libdrm to replace your system copy, say: -./autogen.sh --enable-system +./configure --prefix=/usr --exec-prefix=/ diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 00000000..b1376df5 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,3 @@ +#! /bin/sh +autoreconf -v --install || exit 1 +./configure --enable-maintainer-mode "$@" diff --git a/configure.ac b/configure.ac index 4fb505df..04bd8e7e 100644 --- a/configure.ac +++ b/configure.ac @@ -30,17 +30,7 @@ AC_PROG_CC AC_HEADER_STDC -AC_ARG_ENABLE(system, AC_HELP_STRING([--enable-system], - [Configure to be the system libdrm]), - [SYSTEM=$enableval], [SYSTEM=no]) -AM_CONDITIONAL(SYSTEM, [test x$SYSTEM = xyes]) -if test x$SYSTEM = xyes; then - libdir=/lib - includedir=/usr/include - pkgconfigdir=/usr/lib/pkgconfig -else - pkgconfigdir=${libdir}/pkgconfig -fi +pkgconfigdir=${libdir}/pkgconfig AC_SUBST(pkgconfigdir) AC_OUTPUT([Makefile libdrm/Makefile libdrm.pc]) diff --git a/libdrm/Makefile.am b/libdrm/Makefile.am index f5fa69b2..62ba272a 100644 --- a/libdrm/Makefile.am +++ b/libdrm/Makefile.am @@ -19,7 +19,7 @@ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. libdrm_la_LTLIBRARIES = libdrm.la -libdrm_ladir = /lib +libdrm_ladir = $(libdir) libdrm_la_LDFLAGS = -version-number 1:0:0 -no-undefined AM_CFLAGS = -I$(top_srcdir)/shared-core -- cgit v1.2.3