configure.ac

changeset 79
eb9dd60aa791
parent 75
4b976601737d
child 107
f2f201b7cb48
--- a/configure.ac	Wed Jun 25 17:18:01 2014 +0200
+++ b/configure.ac	Wed Jun 25 19:42:03 2014 +0200
@@ -8,7 +8,7 @@
 dnl General settings
 dnl After changeing the version number, run autoconf!
 PACKAGE="mbsePi-apps"
-VERSION="0.0.8"
+VERSION="0.0.9"
 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved"
 CYEARS="2014"
 AC_SUBST(PACKAGE)
@@ -63,16 +63,23 @@
 fi
 
 
-LIBXML2=No
 AC_CHECK_LIB(xml2,xmlParseFile,result=yes,result=no)
 if test "$result" = "yes"; then
   LIBS="$LIBS -lxml2"
   CFLAGS="$CFLAGS $(xml2-config --cflags)"
-  AC_CHECK_HEADERS(libxml/xmlmemory.h,LIBXML2=Yes,LIBXML2=No)
+  AC_CHECK_HEADERS(libxml/xmlmemory.h)
 else
   AC_MSG_ERROR(libxml2 not found)
 fi
 
+AC_CHECK_LIB(uuid,uuid_generate,result=yes,result=no)
+if test "$result" = "yes"; then
+  LIBS="$LIBS $(pkg-config --libs uuid)"
+  CFLAGS="$CFLAGS $(pkg-config --cflags uuid)"
+  AC_CHECK_HEADERS(uuid/uuid.h)
+else
+  AC_MSG_ERROR(libuuid not found)
+fi
 
 
 dnl Checks for header files.
@@ -93,7 +100,6 @@
     Version : ............ ${VERSION}
     Main directory : ..... ${prefix}
     WiringPi : ........... ${WIRINGPI}
-    XML2: ................ ${LIBXML2}
 
   Now type 'make' and 'sudo make install'
 ])

mercurial