1AC_PREREQ(2.57) 2AC_INIT([libwsbm], 1.1.0, [thomas@tungstengraphics.com], libwsbm) 3AC_CONFIG_SRCDIR([Makefile.am]) 4AM_INIT_AUTOMAKE([dist-bzip2]) 5 6AM_CONFIG_HEADER([config.h]) 7 8AC_DISABLE_STATIC 9AC_PROG_LIBTOOL 10AC_PROG_CC 11PKG_PROG_PKG_CONFIG 12 13PKG_CHECK_MODULES(libdrm, libdrm) 14AC_SUBST(libdrm_CFLAGS) 15AC_SUBST(libdrm_LIBS) 16AC_HEADER_STDC 17AC_SYS_LARGEFILE 18 19AC_CHECK_HEADER(pthread.h, [ 20 AC_SEARCH_LIBS(pthread_cond_init, pthread, 21 [AC_DEFINE(HAVE_PTHREADS, 1, "os has pthreads")],,,) 22 ],,,) 23 24pkgconfigdir=${libdir}/pkgconfig 25AC_SUBST(pkgconfigdir) 26 27AC_OUTPUT([ 28 Makefile 29 src/Makefile 30 libwsbm.pc]) 31