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=/
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])
# 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