Commit 210ab726 authored by Petri Hintukainen's avatar Petri Hintukainen

Make version string optional

parent ef32e738
...@@ -96,6 +96,8 @@ AC_SUBST(UDFREAD_VERSION_MINOR) ...@@ -96,6 +96,8 @@ AC_SUBST(UDFREAD_VERSION_MINOR)
UDFREAD_VERSION_MICRO=udfread_micro() UDFREAD_VERSION_MICRO=udfread_micro()
AC_SUBST(UDFREAD_VERSION_MICRO) AC_SUBST(UDFREAD_VERSION_MICRO)
AC_DEFINE([HAVE_UDFREAD_VERSION_H], 1, ["Define to 1 if you have udfread-version.h header file."])
dnl export library (.so) version dnl export library (.so) version
UDFREAD_LTVERSION="lt_current():lt_revision():lt_age()" UDFREAD_LTVERSION="lt_current():lt_revision():lt_age()"
AC_SUBST(UDFREAD_LTVERSION) AC_SUBST(UDFREAD_LTVERSION)
......
...@@ -25,7 +25,10 @@ ...@@ -25,7 +25,10 @@
#include "udfread.h" #include "udfread.h"
#ifdef HAVE_UDFREAD_VERSION_H
#include "udfread-version.h" #include "udfread-version.h"
#endif
#include "blockinput.h" #include "blockinput.h"
#include "default_blockinput.h" #include "default_blockinput.h"
#include "ecma167.h" #include "ecma167.h"
...@@ -698,7 +701,10 @@ udfread *udfread_init(void) ...@@ -698,7 +701,10 @@ udfread *udfread_init(void)
enable_log = 1; enable_log = 1;
} }
#ifdef HAVE_UDFREAD_VERSION_H
udf_log("libudfread " UDFREAD_VERSION_STRING "\n"); udf_log("libudfread " UDFREAD_VERSION_STRING "\n");
#endif
return (udfread *)calloc(1, sizeof(udfread)); return (udfread *)calloc(1, sizeof(udfread));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment