You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
564 B
27 lines
564 B
dnl AC_CONFIG_AUX_DIR(./scripts) |
|
AC_INIT |
|
0>confdefs.h |
|
|
|
AC_ARG_WITH(libxmp, [ --with-libxmp=<path> libxmp prefix (optional)], |
|
libxmp_path="$withval") |
|
|
|
AC_PROG_CC |
|
|
|
if test "$libxmp_path" != ""; then |
|
CINCS="${CINCS} -I${libxmp_path}/include" |
|
LIBS="${LIBS} -L${libxmp_path}/lib" |
|
fi |
|
CPPFLAGS="${CINCS}" |
|
|
|
AC_CHECK_HEADER(xmp.h) |
|
if test "${ac_cv_header_xmp_h}" = "yes"; then |
|
AC_CHECK_LIB(xmp,xmp_player_start,, |
|
AC_MSG_ERROR(Can't find libxmp)) |
|
else |
|
AC_MSG_ERROR(Can't find libxmp header files) |
|
fi |
|
|
|
|
|
AC_PROG_INSTALL |
|
AC_CONFIG_FILES([Makefile]) |
|
AC_OUTPUT
|
|
|