]> err.no Git - yubikey-personalization.old/commitdiff
Handle the presence of yubikey-core, and make sure it gets configured as well
authorlevitte <levitte@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Thu, 25 Sep 2008 12:01:59 +0000 (12:01 +0000)
committerlevitte <levitte@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Thu, 25 Sep 2008 12:01:59 +0000 (12:01 +0000)
git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@14 b62f149e-849f-11dd-9899-c7ba65f7c4c7

Makefile.am
configure.ac

index eb7367628b7b5455b2e9b848af43d0f1f77153f4..e2a1dd2f25639c3dfc37bde6e59ac1e4547f7374 100644 (file)
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-# The library.
+# Subdirectories
+
+SUBDIRS=@subdirs@
 
-COMMON_SOURCES =  common/ykutil.c common/yubikey.c common/aes128.c
+# The library.
 
 lib_LTLIBRARIES = libykpers.la
 libykpers_la_SOURCES = ykpers.h ykpers.c $(COMMON_SOURCES)
-libykpers_la_CFLAGS = -Icommon
+libykpers_la_CFLAGS = -I./yubikey-core
 libykpers_la_LDFLAGS = -no-undefined \
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 
-noinst_HEADERS =  common/ykdef.h common/ykutil.h common/yubikey.h common/aes128.h
-
 # The command line tools.
 
 bin_PROGRAMS = ykpersonalize
 
 ykpersonalize_SOURCES = ykpersonalize.c
+ykpersonalize_CFLAGS = -I./yubikey-core
+ykpersonalize_LDFLAGS = -lusb ./yubikey-core/libykcore.a
 ykpersonalize_LDADD = ./libykpers.la
 
 # Self tests.
index 7ff9e4d8b98a41844c348a76cca0c90f503db450..ea6fe2a7b8c4dd0cab43d1ada13269d9f1b1f8c6 100644 (file)
@@ -41,7 +41,16 @@ AC_PROG_CC
 AC_LIBTOOL_WIN32_DLL
 AC_PROG_LIBTOOL
 
+# This really checks a directory
+AC_CHECK_FILE(yubikey-core/configure.ac,,AC_MSG_FAILURE(yubikey-core directory not found.
+
+************************************
+Please provide by checking out http://yubikey-core.googlecode.com/svn/trunk
+with svn and creating a symbolic link `yubikey-core' to that checkout
+************************************
+))
 #AC_SEARCH_LIBS([yubikey_parse],[yubikey],,AC_MSG_FAILURE(libyubikey not found))
 
+AC_CONFIG_SUBDIRS(yubikey-core)
 AC_CONFIG_FILES(Makefile)
 AC_OUTPUT