]> git.draconx.ca Git - upkg.git/blobdiff - configure.ac
uobject: Add initial support for object properties.
[upkg.git] / configure.ac
index ed1e5de84a9f48c6690bff3fdaa381960d1e719f..5de7569569d2b24d1b6166f172bfeb279bfbf237 100644 (file)
@@ -1,3 +1,9 @@
+dnl Copyright (C) 2009 Nick Bowler
+dnl Copying and distribution of this file, with or without modification,
+dnl are permitted in any medium without royalty provided the copyright
+dnl notice and this notice are preserved.  This file is offered as-is,
+dnl without any warranty.
+
 AC_PREREQ(2.62)
 AC_INIT([upkg],[0.1],[nbowler@draconx.ca])
 AC_CONFIG_SRCDIR([src/libupkg.c])
@@ -27,23 +33,16 @@ AC_ARG_WITH([modlib],
        [with_modlib=$withval],
        [with_modlib=auto])
 
-CHECK_LIBMODPLUG([have_libmodplug=yes], [have_libmodplug=no])
-AC_MSG_CHECKING([which module library to use])
 case $with_modlib in
-none)
-       use_modlib=none
-;;
-no)
+no|none)
        use_modlib=none
 ;;
 modplug)
-       if test x$have_libmodplug = xyes; then
-               use_modlib=modplug
-       else
-               use_modlib=none
-       fi
+       DX_CHECK_LIBMODPLUG([use_modlib=modplug], [])
 ;;
 auto)
+       DX_CHECK_LIBMODPLUG([have_libmodplug=yes], [have_libmodplug=no])
+
        if test x$have_libmodplug = xyes; then
                use_modlib=modplug
        else
@@ -54,6 +53,7 @@ auto)
        AC_MSG_ERROR([Invalid argument to --with-modlib: $with_modlib])
 ;;
 esac
+AC_MSG_CHECKING([which module library to use])
 AC_MSG_RESULT([$use_modlib])
 
 AM_CONDITIONAL([USE_LIBMODPLUG], [test x$use_modlib = xmodplug])