summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-07-13 00:13:12 +0000
committerAdam Jackson <ajax@nwnk.net>2005-07-13 00:13:12 +0000
commit5a5478de7ab4ee2eef0308d8b4ce5c53222cd55e (patch)
tree1536bbdf663fee1c450f88bd3fe7fbb7da2b3fa7
parent7130662aa0c476a56a4a053c6dda19bc3a91060a (diff)
distcheck fixeslibdrm-1_0_0
-rw-r--r--README2
-rwxr-xr-xautogen.sh3
-rw-r--r--configure.ac12
-rw-r--r--libdrm/Makefile.am2
4 files changed, 6 insertions, 13 deletions
diff --git a/README b/README
index c94dce5f9..b466dd886 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 000000000..b1376df5a
--- /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 4fb505dfc..04bd8e7ed 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 f5fa69b2c..62ba272ae 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